EEG-Based Mental Tasks Recognition via a Deep Learning-Driven Anomaly Detector