A two-stage transformer based network for motor imagery classification

Med Eng Phys. 2024 Jun:128:104154. doi: 10.1016/j.medengphy.2024.104154. Epub 2024 Mar 20.

Abstract

Brain-computer interfaces (BCIs) are used to understand brain functioning and develop therapies for neurological and neurodegenerative disorders. Therefore, BCIs are crucial in rehabilitating motor dysfunction and advancing motor imagery applications. For motor imagery, electroencephalogram (EEG) signals are used to classify the subject's intention of moving a body part without actually moving it. This paper presents a two-stage transformer-based architecture that employs handcrafted features and deep learning techniques to enhance the classification performance on benchmarked EEG signals. Stage-1 is built on parallel convolution based EEGNet, multi-head attention, and separable temporal convolution networks for spatiotemporal feature extraction. Further, for enhanced classification, in stage-2, additional features and embeddings extracted from stage-1 are used to train TabNet. In addition, a novel channel cluster swapping data augmentation technique is also developed to handle the issue of limited samples for training deep learning architectures. The developed two-stage architecture offered an average classification accuracy of 88.5 % and 88.3 % on the BCI Competition IV-2a and IV-2b datasets, respectively, which is approximately 3.0 % superior over similar recent reported works.

Keywords: Augmentation; Classification; TabNet; Temporal convolution network (TCN); Two-stage architecture.

MeSH terms

  • Brain-Computer Interfaces*
  • Deep Learning
  • Electroencephalography*
  • Humans
  • Imagination / physiology
  • Motor Activity / physiology
  • Movement
  • Neural Networks, Computer
  • Signal Processing, Computer-Assisted*