@article{scholars13827, title = {Motor Imagery Classification for Brain Computer Interface Using Deep Metric Learning}, doi = {10.1109/ACCESS.2020.3002459}, note = {cited By 21}, volume = {8}, pages = {109949--109963}, publisher = {Institute of Electrical and Electronics Engineers Inc.}, journal = {IEEE Access}, year = {2020}, author = {Alwasiti, H. and Yusoff, M. Z. and Raza, K.}, issn = {21693536}, url = {https://www.scopus.com/inward/record.uri?eid=2-s2.0-85087279627&doi=10.1109\%2fACCESS.2020.3002459&partnerID=40&md5=131d21e15985a293397fc8e33731293c}, keywords = {Biomedical signal processing; Deep learning; Embeddings; Frequency domain analysis; Image classification; Sampling; Spectrographs; Time domain analysis, Classification accuracy; Classification performance; Euclidean distance; Frequency domains; Individual variability; Motor imagery classification; Short term fourier transforms; Stockwell transform, Brain computer interface}, abstract = {Deep metric learning (DML) has achieved state-of-the-art results in several deep learning applications. However, this type of deep learning models has not been tested on the classification of electrical brain waves (EEG) for brain computer interface (BCI) applications. For the first time, we propose a triplet network to classify motor imagery (MI) EEG signals. Stockwell Transform has been used for converting the EEG signals in the time domain into the frequency domain, which resulted in improved DML classification accuracy in comparison to DML with Short Term Fourier Transform (0.647 vs. 0.431). DML model was trained with a topogram of concatenated 64 EEG channel spectrograms. The training batch was comprised of triplet pairs of the anchor, positive, and negative labeled epochs. The triplet network was able to train an embedding feature space that minimized the Euclidean distance between the embeddings of spectrograms of the same class and increased the distance between the embeddings of different labeled images. The proposed method has been tested on an EEG dataset of 109 untrained subjects. We showed that the DML classifier is able to converge with an extremely small number of training samples ( 120 EEG trials) for only one subject per model, mitigating the well-known issue of the large inter-individual variability of human MI-BCI EEG which degrades the classification performance. The proposed preprocessing pipeline and the Triplet Network provide a promising method to classify MI-BCI EEG signals with much less training samples than the previous methods. {\^A}{\copyright} 2013 IEEE.} }