Motor Imagery Classification for Brain Computer Interface Using Deep Metric Learning

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.

[1]  Changde Du,et al.  Improving EEG-Based Motor Imagery Classification via Spatial and Temporal Recurrent Neural Networks , 2018, 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC).

[2]  E. Sellers,et al.  How many people are able to control a P300-based brain–computer interface (BCI)? , 2009, Neuroscience Letters.

[3]  Hongzhi Qi,et al.  EEG feature comparison and classification of simple and compound limb motor imagery , 2013, Journal of NeuroEngineering and Rehabilitation.

[4]  Jürgen Schmidhuber,et al.  Long Short-Term Memory , 1997, Neural Computation.

[5]  Yoshua Bengio,et al.  How transferable are features in deep neural networks? , 2014, NIPS.

[6]  Aymeric Histace,et al.  Metric Learning With HORDE: High-Order Regularizer for Deep Embeddings , 2019, 2019 IEEE/CVF International Conference on Computer Vision (ICCV).

[7]  Xin Zhang,et al.  End to End Learning for Self-Driving Cars , 2016, ArXiv.

[8]  Gregory R. Koch,et al.  Siamese Neural Networks for One-Shot Image Recognition , 2015 .

[9]  Guodong Zhang,et al.  Three Mechanisms of Weight Decay Regularization , 2018, ICLR.

[10]  Ishak Aris,et al.  EEG activity in Muslim prayer: A pilot study , 2010 .

[11]  Klaus-Robert Müller,et al.  Interpretable deep neural networks for single-trial EEG classification , 2016, Journal of Neuroscience Methods.

[12]  Mohd Zuki Yusoff,et al.  SHREDDED CONTROL OF DRONES VIA MOTOR IMAGERY BRAIN COMPUTER INTERFACE , 2020 .

[13]  W. J. Nowack Neocortical Dynamics and Human EEG Rhythms , 1995, Neurology.

[14]  Brendan Z. Allison,et al.  Could Anyone Use a BCI? , 2010, Brain-Computer Interfaces.

[15]  G. Pfurtscheller,et al.  Motor imagery and action observation: Modulation of sensorimotor brain rhythms during mental control of a brain–computer interface , 2009, Clinical Neurophysiology.

[16]  L. Cohen,et al.  Brain–computer interfaces: communication and restoration of movement in paralysis , 2007, The Journal of physiology.

[17]  A. Aertsen,et al.  Predominance of Movement Speed Over Direction in Neuronal Population Signals of Motor Cortex: Intracranial EEG Data and A Simple Explanatory Model , 2016, Cerebral cortex.

[18]  Ping Yang,et al.  An Empirical Bayesian Framework for Brain–Computer Interfaces , 2009, IEEE Transactions on Neural Systems and Rehabilitation Engineering.

[19]  D.J. McFarland,et al.  The wadsworth BCI research and development program: at home with BCI , 2006, IEEE Transactions on Neural Systems and Rehabilitation Engineering.

[20]  Auke Jan Ijspeert,et al.  Central pattern generators for locomotion control in animals and robots: A review , 2008, Neural Networks.

[21]  Lalu Mansinha,et al.  Localization of the complex spectrum: the S transform , 1996, IEEE Trans. Signal Process..

[22]  Desney S. Tan,et al.  Brain-Computer Interfacing for Intelligent Systems , 2008, IEEE Intelligent Systems.

[23]  Richard Buessow,et al.  An algorithm for the continuous Morlet wavelet transform , 2007, 0706.0099.

[24]  Krystian Mikolajczyk,et al.  PN-Net: Conjoined Triple Deep Network for Learning Local Image Descriptors , 2016, ArXiv.

[25]  Jonathan R Wolpaw,et al.  Brain–computer interface systems: progress and prospects , 2007, Expert review of medical devices.

[26]  Orhan Arikan,et al.  Short-time Fourier transform: two fundamental properties and an optimal implementation , 2003, IEEE Trans. Signal Process..

[27]  D. McCrea,et al.  Organization of mammalian locomotor rhythm and pattern generation , 2008, Brain Research Reviews.

[28]  Anders Krogh,et al.  A Simple Weight Decay Can Improve Generalization , 1991, NIPS.

[29]  Wolfram Burgard,et al.  Deep learning with convolutional neural networks for EEG decoding and visualization , 2017, Human brain mapping.

[30]  Yoshua Bengio,et al.  Gated Feedback Recurrent Neural Networks , 2015, ICML.

[31]  Hans-Jochen Heinze,et al.  Single trial discrimination of individual finger movements on one hand: A combined MEG and EEG study , 2012, NeuroImage.

[32]  E. Donchin,et al.  Brain-computer interface research at the university of south Florida cognitive psychophysiology laboratory: the P300 speller , 2006, IEEE Transactions on Neural Systems and Rehabilitation Engineering.

[33]  M. Hallett,et al.  Classifying EEG signals preceding right hand, left hand, tongue, and right foot movements and motor imageries , 2008, Clinical Neurophysiology.

[34]  B. Allison,et al.  BCI Demographics: How Many (and What Kinds of) People Can Use an SSVEP BCI? , 2010, IEEE Transactions on Neural Systems and Rehabilitation Engineering.

[35]  Natalia Gimelshein,et al.  PyTorch: An Imperative Style, High-Performance Deep Learning Library , 2019, NeurIPS.

[36]  Vinod Achutavarrier Prasad,et al.  Optimized Bi-Objective EEG Channel Selection and Cross-Subject Generalization With Brain–Computer Interfaces , 2016, IEEE Transactions on Human-Machine Systems.

[37]  D. McFarland,et al.  An auditory brain–computer interface (BCI) , 2008, Journal of Neuroscience Methods.

[38]  Nadeem Ahmad Khan,et al.  DeepMI: Deep Learning for Multiclass Motor Imagery Classification , 2018, 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC).

[39]  P. Guertin,et al.  Key central pattern generators of the spinal cord , 2009, Journal of neuroscience research.

[40]  Filippo Zappasodi,et al.  Deep learning for hybrid EEG-fNIRS brain–computer interface: application to motor imagery classification , 2018, Journal of neural engineering.

[41]  N. Birbaumer,et al.  The Influence of Psychological State and Motivation on Brain–Computer Interface Performance in Patients with Amyotrophic Lateral Sclerosis – a Longitudinal Study , 2010, Front. Neuropharma..

[42]  J. Wolpaw,et al.  Towards an independent brain–computer interface using steady state visual evoked potentials , 2008, Clinical Neurophysiology.

[43]  Ronald G. Harley,et al.  Recurrent Neural Networks Trained With Backpropagation Through Time Algorithm to Estimate Nonlinear Load Harmonic Currents , 2008, IEEE Transactions on Industrial Electronics.

[44]  Yanwei Wang,et al.  Fast Discrete Orthonormal Stockwell Transform , 2009, SIAM J. Sci. Comput..

[45]  Tara N. Sainath,et al.  Improving deep neural networks for LVCSR using rectified linear units and dropout , 2013, 2013 IEEE International Conference on Acoustics, Speech and Signal Processing.

[46]  Wei Tang,et al.  Ensembling neural networks: Many could be better than all , 2002, Artif. Intell..

[47]  J. Wolpaw,et al.  Mu and Beta Rhythm Topographies During Motor Imagery and Actual Movements , 2004, Brain Topography.

[48]  Jeffrey M. Hausdorff,et al.  Physionet: Components of a New Research Resource for Complex Physiologic Signals". Circu-lation Vol , 2000 .

[49]  Klaus-Robert Müller,et al.  Estimating Noise and Dimensionality in BCI Data Sets : Towards Illiteracy Comprehension , 2008 .

[50]  Ishak Aris,et al.  Brain Computer Interface Design and Applications: Challenges and Future , 2010 .

[51]  Ana Loboda,et al.  Discrimination of EEG-Based Motor Imagery Tasks by Means of a Simple Phase Information Method , 2014 .

[52]  Li Fei-Fei,et al.  ImageNet: A large-scale hierarchical image database , 2009, CVPR.

[53]  J. Zygierewicz,et al.  Asynchronous BCI Based on Motor Imagery With Automated Calibration and Neurofeedback Training , 2012, IEEE Transactions on Neural Systems and Rehabilitation Engineering.

[54]  J R Wolpaw,et al.  Spatial filter selection for EEG-based communication. , 1997, Electroencephalography and clinical neurophysiology.

[55]  Richard S. Zemel,et al.  Prototypical Networks for Few-shot Learning , 2017, NIPS.

[56]  S. Boll,et al.  Suppression of acoustic noise in speech using spectral subtraction , 1979 .

[57]  Sergey Ioffe,et al.  Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift , 2015, ICML.

[58]  Ugur Halici,et al.  A novel deep learning approach for classification of EEG motor imagery signals , 2017, Journal of neural engineering.

[59]  M. Teplan FUNDAMENTALS OF EEG MEASUREMENT , 2002 .

[60]  J. Wolpaw,et al.  Brain-Computer Interfaces: Principles and Practice , 2012 .

[61]  Nir Ailon,et al.  Deep Metric Learning Using Triplet Network , 2014, SIMBAD.

[62]  G Pfurtscheller,et al.  Centrally controlled heart rate changes during mental practice in immersive virtual environment: a case study with a tetraplegic. , 2008, International journal of psychophysiology : official journal of the International Organization of Psychophysiology.

[63]  G. Pfurtscheller,et al.  15 years of BCI research at graz university of technology: current projects , 2006, IEEE Transactions on Neural Systems and Rehabilitation Engineering.

[64]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[65]  Forrest N. Iandola,et al.  DenseNet: Implementing Efficient ConvNet Descriptor Pyramids , 2014, ArXiv.

[66]  R. Lesser,et al.  Functional mapping of human sensorimotor cortex with electrocorticographic spectral analysis. II. Event-related synchronization in the gamma band. , 1998, Brain : a journal of neurology.

[67]  Shuicheng Yan,et al.  Parallel convolutional-linear neural network for motor imagery classification , 2015, 2015 23rd European Signal Processing Conference (EUSIPCO).

[68]  Shie Qian,et al.  Discrete Gabor transform , 1993, IEEE Trans. Signal Process..

[69]  Guodong Guo,et al.  Learning deep compact similarity metric for kinship verification from face images , 2019, Inf. Fusion.

[70]  R. Srinivasan Methods to Improve the Spatial Resolution of EEG , 1999 .

[71]  Brendan Z. Allison,et al.  Brain-Computer Interfaces: Revolutionizing Human-Computer Interaction , 2013 .

[72]  Kai Qian,et al.  Event-related desynchronization/ synchronization-based brain-computer interface towards volitional cursor control in a 2D center-out paradigm , 2011, 2011 IEEE Symposium on Computational Intelligence, Cognitive Algorithms, Mind, and Brain (CCMB).

[73]  Leslie N. Smith,et al.  A disciplined approach to neural network hyper-parameters: Part 1 - learning rate, batch size, momentum, and weight decay , 2018, ArXiv.

[74]  G Pfurtscheller,et al.  Toward a hybrid brain–computer interface based on imagined movement and visual attention , 2010, Journal of neural engineering.

[75]  Bo Hu,et al.  A hierarchical semi-supervised extreme learning machine method for EEG recognition , 2018, Medical & Biological Engineering & Computing.

[76]  Kiyoharu Aizawa,et al.  Significance of Softmax-Based Features in Comparison to Distance Metric Learning-Based Features , 2017, IEEE Transactions on Pattern Analysis and Machine Intelligence.