Learning Hierarchical Sparse Representations using Iterative Dictionary Learning and Dimension Reduction