Cognitive Impairment Anomaly Detection Using Metric Learning On Triplet Networks