ResTCN: A Residual–Temporal Convolutional Network with Multi-Head Attention for EEG Seizure Detection
Background: Electroencephalography (EEG) is essential for epilepsy diagnosis, but manual interpretation is time-consuming and varies between clinicians. Deep learning has advanced automated EEG analysis, yet simultaneously capturing fine local waveforms, multi-scale temporal dynamics, and global context remains challenging. We introduce ResTCN, a hierarchical architecture that sequentially combines a residual block (ResBlock), a temporal convolutional network (TCN) with dilated causal convolutions, and multi-head attention (MHA) for epileptic seizure detection. Methods: ResTCN processes raw single-channel EEG through three sequential stages—a ResBlock for local waveform features, a TCN with dilated causal convolutions for multi-scale temporal modeling, and MHA for global context aggregation—followed by a multilayer perceptron classifier. Evaluation was conducted on the Bonn University EEG dataset under a recording-level 10-fold cross-validation protocol, in which all segments of a given recording are confined to the same fold; all primary results are reported under this protocol, whereas the conventional segment-level split is retained only for hyperparameter selection and for task-by-task comparability with the published Bonn literature. Five baselines (ResBiLSTM, CNN-LSTM-Xu2020, CNN-LSTM-Wang2023, BiLSTM, and TCN-SA) were re-implemented under the identical protocol for fair paired comparison, and the transferability of the architecture was assessed on an independent public dataset (NSC-ND), retrained without architectural modification. Results: Under recording-level evaluation, ResTCN achieved a five-class accuracy of 89.68 ± 2.60%, outperforming all five re-implemented baselines on the three hard tasks (C–DE, C–D–E, and A–B–C–D–E; recording-level McNemar test, all p≤ 1.4 × 10−4). On the NSC-ND dataset, ResTCN reached 89.67% and outperformed four of the five baselines (all p< 0.001), but not CNN-LSTM-Wang2023 (p = 0.678). Conclusions: ResTCN achieves statistically significant seizure detection performance by hierarchically integrating local, temporal, and global feature learning, and demonstrates cross-dataset transferability, retrained without architectural modification.
Authors
- Muhua Hu (ORCID: https://orcid.org/0000-0001-7279-475X)
- Yiwen Zhang (ORCID: https://orcid.org/0009-0003-2775-5294)
- Wei Zhao (ORCID: https://orcid.org/0000-0002-6814-1526)
- Xiumei Zou
- Jinwei Huang
Institutions
- Jimei University (CN)
- The Second Affiliated Hospital of Xiamen Medical College (CN)
- Chengyi College, Jimei University (CN)
Publication Details
- Journal
- Brain Sciences
- Published
- 2026-11-29
- DOI
- https://doi.org/10.3390/brainsci16121326
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00