An Attention-Enhanced 3D-CNN Framework for Spectrogram-Based EEG Analysis in Epilepsy Detection
Epilepsy is a widespread neurological disorder impacting approximately 50 million individuals globally, with a disproportionately high burden in low- and middle-income countries. It is characterized by recurrent seizures caused by sudden and uncontrolled electrical discharges in brain cells, often leading to cognitive and motor impairments. Electroencephalography (EEG) remains the gold standard for epilepsy diagnosis, offering non-invasive monitoring of brain activity. However, the complexity and variability of epileptic patterns make traditional visual analysis subjective, time-consuming, and impractical for continuous monitoring. This underscores the need for automated deep learning solutions to improve diagnostic accuracy and operational efficiency. This study introduces a novel 3D Convolutional Neural Network with integrated Self-Attention (3D-ACNN), specifically designed for the volumetric analysis of multi-channel EEG data. The proposed algorithm preprocesses the 21-channel EEG signals by segmenting them into Hann windows of 4 seconds, applies the Short-Time Fourier Transform (STFT) to extract time-frequency features, and constructs stacked spectrograms that serve as three-dimensional inputs to the model. This proposed model (3D-ACNN), integrated with self-attention mechanisms, effectively captures spatiotemporal dependencies, enhancing seizure classification accuracy. The model achieved a classification accuracy of 99.89%, with a precision of 0.9981, recall of 0.9990, and F1 score of 0.9986 for epileptic signals (class 0), and a precision of 0.9994, recall of 0.9987, and F1 score of 0.9990 for non-epileptic signals (class 1). This high-performance approach demonstrates superior generalization, scalability, and real-time applicability, establishing it as a promising solution for clinical epilepsy monitoring and diagnosis. The study advances AI-driven seizure detection and improves patient management and more accessible epilepsy care.
Authors
- Hee‐Cheol Kim (ORCID: https://orcid.org/0000-0002-5399-7647)
- Ziaullah Khan
- Aakanksha Dayal
Institutions
- Inje University (KR)
Publication Details
- Journal
- IEEE Access
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/access.2025.3574646
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Ministry of Science and ICT, South Korea