EEG-DATNet: Dual Attention Transformer for EEG Classification
Authors:
- Wahiduzzaman SuvaWSWahiduzzaman Suva
- Imtiaj Alam SajinISImtiaj Alam Sajin
- Esm E. Moula Chowdhury AbhaEAEsm E. Moula Chowdhury Abha
- Susham Moula Choudhury AkashSASusham Moula Choudhury Akash
- Tauhidul IslamTITauhidul Islam
- Abhijit BhowmikAbhijit Bhowmik
- Dip NandiDip Nandi
- Mashiour RahmanMRMashiour Rahman
- Debajyoti KarmakerDebajyoti Karmaker
Preprint
- 6 April 2026
- preprint
- Published by Elsevier in SSRN Electronic Journal
Abstract
EEG-based brain-computer interfaces remain constrained by signal non-stationarity, noise, and high dimensionality, limiting reliable decoding of motor imagery and cognitive states. EEG-DATNet is a hybrid architecture addressing these challenges through four components: multi-scale temporal convolutions spanning 60-260,ms capturing oscillatory content across canonical frequency bands; depthwise spatial convolutions encoding inter-electrode functional dependencies; a dual statistical pooling module pairing mean-activity and local-variance streams, the latter targeting event-related desynchronization patterns inaccessible to average pooling; and a spiking activation function trained via surrogate gradients yielding approximately 60% output sparsity, supporting energy-efficient inference. These streams feed a dual-attention transformer encoder applying independent temporal and spatial attention.On BCI Competition IV-2a (4-class motor imagery), EEG-DATNet achieves a mean accuracy of 82.84% (kappa = 0.77), reaching 96.82% (kappa = 0.95) for the best subject. On IV-2b (2-class), mean accuracy is 89.03%, outperforming EEG-Conformer (87.27%), EEGNet (85.04%), and FBCNet (81.95%). On the Thinking Out Loud dataset for inner speech decoding, EEG-DATNet achieves 43.68% using only 22 channels, versus 36.1% for BiLSTM and 29.67% for EEGNet. Ablation experiments confirm that dual attention is structurally necessary, with removal reducing accuracy by over 30 percentage points for certain subjects. Under Gaussian noise simulating motion artefacts, accuracy degrades by only 2.1%, versus 3.0% for EEGNet and 2.5% for EEG-Conformer. Preliminary estimates place inference at approximately 0.47, GFLOPs and 3.2 ms latency, and fine-tuning with 20% subject-specific data retains the majority of peak accuracy, suggesting practical viability in data-scarce clinical settings.Keywords
This publication has 18 references indexed in Scilit:
- High-performance deep spiking neural networks with 0.3 spikes per neuronNature Communications, 2024
- Ongoing EEG artifact correction using blind source separationClinical Neurophysiology, 2024
- Reference Electrode Standardization Interpolation Technique (RESIT): A Novel Interpolation Method for Scalp EEGBrain Topography, 2021
- ERP CORE: An open resource for human event-related potential researchNeuroImage, 2021
- Chronnectome fingerprinting: Identifying individuals and predicting higher cognitive functions using dynamic brain connectivity patternsHuman Brain Mapping, 2017
- Deep learning with convolutional neural networks for EEG decoding and visualizationHuman Brain Mapping, 2017
- Inner speech: Development, cognitive functions, phenomenology, and neurobiology.Psychological Bulletin, 2015
- Digital filter design for electrophysiological data – a practical approachJournal of Neuroscience Methods, 2015
- Neuronal Dynamics2014
- EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysisJournal of Neuroscience Methods, 2004