Frequency-aware transformer networks for robust and generalizable EEG-based seizure detection.
Overview
- Department of Artificial Intelligence, Faculty of Computers and Artificial Intelligence, Benha University, Benha, 13518 Egypt
- Artificial Intelligence Department, Faculty of Artificial Intelligence, Egyptian Russian University Badr City, Cairo, 11829 Egypt
- Department of Neurosurgery, Faculty of Medicine, Benha University, Benha, 13518 Egypt
Abstract
Automated epileptic seizure detection from electroencephalogram (EEG) signals remains a critical challenge for real-world clinical deployment due to the complex, nonstationary, and multi-scale nature of neural dynamics. Existing deep learning approaches, including convolutional and transformer-based models, often fail to jointly capture spectral–temporal dependencies while maintaining robustness across heterogeneous datasets and noisy clinical environments. In this work, we propose BrainXNet, a novel multi-scale spectro-temporal attention framework that unifies local feature extraction, frequency-aware representation learning, and global temporal modeling within a single architecture. The proposed model integrates (i) multi-scale convolutional pathways to capture transient and long-duration EEG patterns, (ii) a spectral attention module that dynamically emphasizes clinically relevant frequency bands, and (iii) a temporal transformer encoder for modeling long-range dependencies across EEG sequences. Extensive evaluations on two large-scale benchmark datasets, CHB-MIT and TUH Seizure Corpus, demonstrate that BrainXNet achieves state-of-the-art performance, reaching accuracies of 99.1% and 98.4%, respectively. Beyond in-dataset performance, the proposed framework exhibits strong cross-dataset generalization, maintaining over 94% accuracy in transfer settings, and demonstrates high robustness under noisy conditions. Ablation studies further confirm the complementary contributions of each architectural component. These results highlight the effectiveness of explicitly modeling multi-scale spectro-temporal dynamics for EEG analysis and position BrainXNet as a promising candidate for reliable, real-time clinical seizure detection systems. This work bridges the gap between high-performance experimental models and practical deployment in diverse healthcare environments.
Reproduced under the paper's license (CC BY), from the paper cited above.
Code
The paper links to its data, not to its authors' code: see the Data section.
Tracing map
A tracing map links a paper to the code its authors published: this paper has none, so it has no map.
Data
Datasets cited
- physionet.org/
content/ , at PhysioNet; found in “Data availability”chbmit
Data availability
The datasets analyzed during the current study are publicly available benchmark EEG datasets.The CHB-MIT Scalp EEG Database is publicly available through PhysioNet at: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 3, 28 September 2026
- Funding: added Science and Technology Development Fund
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 9 keywords, 8 MeSH terms, 22 references.
Cite
This paper
Gamal, M., & Abdel-Wanes, M. (2026). Frequency-aware transformer networks for robust and generalizable EEG-based seizure detection. Scientific reports, 16(1), 28076. https://
BibTeX
@article{gamal2026freque
author = {Gamal, Mostafa and Abdel-Wanes, Mustafa},
title = {{Frequency-aware transformer networks for robust and generalizable EEG-based seizure detection}},
journal = {Scientific reports},
year = {2026},
month = sep,
volume = {16},
number = {1},
pages = {28076},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/
url = {https://
pmid = {42711447},
pmcid = {PMC13554211}
}
RIS
TY - JOUR
AU - Gamal, Mostafa
AU - Abdel-Wanes, Mustafa
TI - Frequency-aware transformer networks for robust and generalizable EEG-based seizure detection
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 28076
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Frequency-aware transformer networks for robust and generalizable EEG-based seizure detection",
"container-title": "Scientific reports",
"author": [
{
"family": "Gamal",
"given": "Mostafa"
},
{
"family": "Abdel-Wanes",
"given": "Mustafa"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "28076",
"DOI": "10.1038/
"PMID": "42711447",
"PMCID": "PMC13554211",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
8
]
]
}
}
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1016/j.mex.2026.103929 [code]
- MCLF: Montage consistent CNN-Liquid fusion for long-term scalp EEG seizure detection.Journal: MethodsXIn common: physionet.org/content/chbmit, epilepsy, EEG, 1 reference
- [2] doi:10.1371/journal.pone.0352191 [code]
- Bayesian Uncertainty-aware Deep Learning with noisy labels: Tackling annotation ambiguity in EEG seizure detection.Journal: PloS oneIn common: physionet.org/content/chbmit, epilepsy, methods / tools, EEG
- [3] doi:10.1038/s41598-026-50003-5
- Federated learning-enabled privacy-preserving framework for seizure forecasting and affective state analysis using multi-modal EEG-ECG data.Journal: Scientific reportsIn common: physionet.org/content/chbmit, epilepsy, methods / tools, EEG
- [4] doi:10.3390/s26175623
- MF-TopoNet: A Multi-Frequency Topological Neural Network for Epileptic Seizure Prediction.Journal: Sensors (Basel, Switzerland)In common: physionet.org/content/chbmit, epilepsy, EEG
- [5] doi:10.1186/s40708-026-00320-2
- Effiformer: a unified data-efficient vision transformer-CNN framework for interpretable epileptic seizure detection.Journal: Brain informaticsIn common: physionet.org/content/chbmit, epilepsy, EEG
- [6] doi:10.3390/e28060599
- Large-Scale Synchronization Dynamics During Epileptic Seizures: A Patient-Independent EEG Network Analysis.Journal: Entropy (Basel, Switzerland)In common: physionet.org/content/chbmit, epilepsy, EEG
- [7] doi:10.1007/s40120-026-00924-0
- Artificial Intelligence and Machine Learning in Pediatric Epilepsy: A Systematic Review.Journal: Neurology and therapyIn common: physionet.org/content/chbmit, epilepsy, EEG
- [8] doi:10.1371/journal.pone.0345470
- Physics-informed graph neural networks for robust cross-patient epileptic seizure prediction via chimera state detection.Journal: PloS oneIn common: physionet.org/content/chbmit, epilepsy, EEG
- [9] doi:10.1038/s41598-026-47627-y [code]
- QuantumNeuroXAI: a quantum-inspired deep learning framework with explainability for brain signal analysis and neurological disorder detection.Journal: Scientific reportsIn common: physionet.org/content/chbmit, methods / tools, EEG
- [10] doi:10.3389/fnins.2026.1856135
- Enhancing seizure prediction using a DC-SA-EBiLSTM framework with self-attention mechanism.Journal: Frontiers in neuroscienceIn common: physionet.org/content/chbmit, epilepsy, EEG
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
