Feature learning and clustering analysis for images classification