EEG-Deformer: A Dense Convolutional Transformer for Brain-computer Interfaces

Yi Ding, Yong Li, Hao Sun, Rui Liu, Chengxuan Tong +3 more
4/25/2024
eess.SPcs.LGq-bio.NC

Official code: yi-ding-cs/EEG-Deformer (122 stars, last commit 2025-06-23).

Abstract

Effectively learning the temporal dynamics in electroencephalogram (EEG) signals is challenging yet essential for decoding brain activities using brain-computer interfaces (BCIs). Although Transformers are popular for their long-term sequential learning ability in the BCI field, most methods combining Transformers with convolutional neural networks (CNNs) fail to capture the coarse-to-fine temporal dynamics of EEG signals. To overcome this limitation, we introduce EEG-Deformer, which incorporates two main novel components into a CNN-Transformer: (1) a Hierarchical Coarse-to-Fine Transformer (HCT) block that integrates a Fine-grained Temporal Learning (FTL) branch into Transformers, effectively discerning coarse-to-fine temporal patterns; and (2) a Dense Information Purification (DIP) module, which utilizes multi-level, purified temporal information to enhance decoding accuracy. Comprehensive experiments on three representative cognitive tasks-cognitive attention, driving fatigue, and mental workload detection-consistently confirm the generalizability of our proposed EEG-Deformer, demonstrating that it either outperforms or performs comparably to existing state-of-the-art methods. Visualization results show that EEG-Deformer learns from neurophysiologically meaningful brain regions for the corresponding cognitive tasks. The source code can be found at https://github.com/yi-ding-cs/EEG-Deformer.

View on arXivView PDF

Code Implementations(1)

[IEEE J-BHI-2024] A Convolutional Transformer to decode mental states from Electroencephalography (EEG) for Brain-Computer Interfaces (BCI)

12214PythonNov 20, 20231 years ago
bciconvolutional-transformereegtransformer

Similar Papers

Cite this paper

@article{ding2024eegdeformer,
  title  = {EEG-Deformer: A Dense Convolutional Transformer for Brain-computer Interfaces},
  author = {Yi Ding and Yong Li and Hao Sun and Rui Liu and Chengxuan Tong and Chenyu Liu and Xinliang Zhou and Cuntai Guan},
  year   = {2024},
  eprint = {2405.00719},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.00719v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.00719.svg)](https://codeofpaper.com/paper/2405.00719)

Discussion