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

Yi Ding,Yong Li,Hao Sun,Rui Liu,Chengxuan Tong,Chenyu Liu,Xinliang Zhou,Cuntai Guan
2024-10-29
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 <a class="link-external link-https" href="https://github.com/yi-ding-cs/EEG-Deformer" rel="external noopener nofollow">this https URL</a>.
Signal Processing,Machine Learning,Neurons and Cognition
What problem does this paper attempt to address?
The problem that this paper attempts to solve is to effectively learn the temporal dynamic features of electroencephalogram (EEG) signals in brain - computer interfaces (BCIs). Although existing methods have made certain progress in combining convolutional neural networks (CNNs) and transformers, most of them fail to capture the coarse - and fine - grained temporal dynamic features in EEG signals. Specifically, the paper points out: 1. **Limitations of existing methods**: - Most methods that combine CNNs and transformers fail to capture the coarse - and fine - grained temporal dynamic features in EEG signals. - These methods can usually only capture fine - grained (short - term) or coarse - grained (global) temporal dependencies within each layer, but not both simultaneously. - Existing methods often overlook the rich potential features in intermediate neural layers, which contain rich temporal information and can further enhance the accurate perception of the temporal dynamics of EEG data. 2. **Research objectives**: - Propose a new dense convolutional transformer model (EEG - Deformer) to more effectively capture the coarse - and fine - grained temporal dynamic features in EEG signals. - Design a hierarchical coarse - to - fine transformer (HCT) module that can capture coarse - and fine - grained temporal dynamics simultaneously. - Introduce a dense information purification (DIP) module to fully utilize multi - level EEG features and improve EEG decoding performance. Through these innovations, the paper aims to overcome the limitations of existing methods and provide a more powerful tool for decoding brain activity, thereby achieving better performance in tasks such as cognitive attention, driving fatigue, and cognitive workload detection.