Text this: CoRAE: Energy Compaction-Based Correlation Pattern Recognition Training Using AutoEncoder