A Transformer-Based Approach Combining Deep Learning Network and Spatial-Temporal Information for Raw EEG Classification
- PMID: 35914032
- DOI: 10.1109/TNSRE.2022.3194600
A Transformer-Based Approach Combining Deep Learning Network and Spatial-Temporal Information for Raw EEG Classification
Abstract
The attention mechanism of the Transformer has the advantage of extracting feature correlation in the long-sequence data and visualizing the model. As time-series data, the spatial and temporal dependencies of the EEG signals between the time points and the different channels contain important information for accurate classification. So far, Transformer-based approaches have not been widely explored in motor-imagery EEG classification and visualization, especially lacking general models based on cross-individual validation. Taking advantage of the Transformer model and the spatial-temporal characteristics of the EEG signals, we designed Transformer-based models for classifications of motor imagery EEG based on the PhysioNet dataset. With 3s EEG data, our models obtained the best classification accuracy of 83.31%, 74.44%, and 64.22% on two-, three-, and four-class motor-imagery tasks in cross-individual validation, which outperformed other state-of-the-art models by 0.88%, 2.11%, and 1.06%. The inclusion of the positional embedding modules in the Transformer could improve the EEG classification performance. Furthermore, the visualization results of attention weights provided insights into the working mechanism of the Transformer-based networks during motor imagery tasks. The topography of the attention weights revealed a pattern of event-related desynchronization (ERD) which was consistent with the results from the spectral analysis of Mu and beta rhythm over the sensorimotor areas. Together, our deep learning methods not only provide novel and powerful tools for classifying and understanding EEG data but also have broad applications for brain-computer interface (BCI) systems.
Similar articles
-
ConTraNet: A hybrid network for improving the classification of EEG and EMG signals with limited training data.Comput Biol Med. 2024 Jan;168:107649. doi: 10.1016/j.compbiomed.2023.107649. Epub 2023 Nov 2. Comput Biol Med. 2024. PMID: 37980798
-
A shallow mirror transformer for subject-independent motor imagery BCI.Comput Biol Med. 2023 Sep;164:107254. doi: 10.1016/j.compbiomed.2023.107254. Epub 2023 Jul 10. Comput Biol Med. 2023. PMID: 37499295
-
A Novel Algorithmic Structure of EEG Channel Attention Combined With Swin Transformer for Motor Patterns Classification.IEEE Trans Neural Syst Rehabil Eng. 2023;31:3132-3141. doi: 10.1109/TNSRE.2023.3297654. Epub 2023 Aug 4. IEEE Trans Neural Syst Rehabil Eng. 2023. PMID: 37478039
-
Deep learning for electroencephalogram (EEG) classification tasks: a review.J Neural Eng. 2019 Jun;16(3):031001. doi: 10.1088/1741-2552/ab0ab5. Epub 2019 Feb 26. J Neural Eng. 2019. PMID: 30808014 Review.
-
An empirical comparison of deep learning explainability approaches for EEG using simulated ground truth.Sci Rep. 2023 Oct 18;13(1):17709. doi: 10.1038/s41598-023-43871-8. Sci Rep. 2023. PMID: 37853010 Free PMC article. Review.
Cited by
-
Deep temporal networks for EEG-based motor imagery recognition.Sci Rep. 2023 Nov 1;13(1):18813. doi: 10.1038/s41598-023-41653-w. Sci Rep. 2023. PMID: 37914729 Free PMC article.
-
Temporal transformer-spatial graph convolutional network: an intelligent classification model for anti N-methyl-D-aspartate receptor encephalitis based on electroencephalogram signal.Front Neurosci. 2023 Aug 28;17:1223077. doi: 10.3389/fnins.2023.1223077. eCollection 2023. Front Neurosci. 2023. PMID: 37700752 Free PMC article.
-
Transformers for autonomous recognition of psychiatric dysfunction via raw and imbalanced EEG signals.Brain Inform. 2023 Sep 9;10(1):25. doi: 10.1186/s40708-023-00201-y. Brain Inform. 2023. PMID: 37689601 Free PMC article.
-
An improved model using convolutional sliding window-attention network for motor imagery EEG classification.Front Neurosci. 2023 Aug 15;17:1204385. doi: 10.3389/fnins.2023.1204385. eCollection 2023. Front Neurosci. 2023. PMID: 37662108 Free PMC article.
-
Local and global convolutional transformer-based motor imagery EEG classification.Front Neurosci. 2023 Aug 17;17:1219988. doi: 10.3389/fnins.2023.1219988. eCollection 2023. Front Neurosci. 2023. PMID: 37662099 Free PMC article.
Publication types
MeSH terms
LinkOut - more resources
Full Text Sources
Research Materials
