Clustering-based feature learning on variable stars