Unsupervised feature learning via sparse hierarchical representations