A Novel CNN-FRTAM Model for Enhanced Detection of Epileptic Seizures in EEG Signals Utilizing Deep Learning and Continuous Wavelet Transform
DOI:
https://doi.org/10.46604/peti.2024.14819Keywords:
epileptic, EEG signals, CNN, continuous wavelet transform, attention mechanismAbstract
This study presents a novel approach to enhancing electroencephalography (EEG) signal classification for improved epileptic seizure detection. Traditional techniques for seizure detection often rely on manual analysis and suffer from high computational burdens and bias. Integrating deep learning with the continuous wavelet transform (CWT) is proposed to address these limitations for effective feature extraction. The CNN-FRTAM model, which integrates a convolutional neural network (CNN) and a frequency-region temporal attention mechanism (FRTAM), employs rigorous pre-processing of EEG signals to optimize performance. Extensive evaluation on a diverse dataset revealed an accuracy of 99.80% in multi-class classification and 99.90% in binary classification between Normal and Abnormal states. The CNN-FRTAM model significantly outperformed traditional architectures such as InceptionV3, VGG19, and ResNet50, demonstrating its potential for effective real-time applications in clinical epileptic seizure management. By opening up new avenues for accurate seizure detection, this work contributes to improving patient outcomes in epilepsy care.
References
J. Zhang, S. Zheng, W. Chen, G. Du, Q. Fu, and H. Jiang, “A Scheme Combining Feature Fusion and Hybrid Deep Learning Models for Epileptic Seizure Detection and Prediction,” Scientific Reports, vol. 14, article no. 16916, 2024.
V. V. Grubov, S. I. Nazarikov, S. A. Kurkin, N. P. Utyashev, D. A. Andrikov, O. E. Karpov, et al., “Two-Stage Approach with Combination of Outlier Detection Method and Deep Learning Enhances Automatic Epileptic Seizure Detection,” IEEE Access, vol. 12, pp. 122168–122182, 2024.
A. H. Abdulwahhab, A. H. Abdulaal, A. H. T. Al-Ghrairi, A. A. Mohammed, and M. Valizadeh, “Detection of Epileptic Seizure Using EEG Signals Analysis Based on Deep Learning Techniques,” Chaos, Solitons & fractals, vol. 181, article no. 114700, 2024.
A. H. Abdulaal, R. A. Yassin, M. Valizadeh, A. H. Abdulwahhab, A. M. Jasim, A. J. Mohammed, et al., “Cutting-Edge CNN Approaches for Breast Histopathological Classification: the Impact of Spatial Attention Mechanisms,” ShodhAI: Journal of Artificial Intelligence, vol. 1, no. 1, pp. 109–130, 2024.
Y. Tang, Q. Wu, H. Mao, and L. Guo, “Epileptic Seizure Detection Based on Path Signature and Bi-LSTM Network with Attention Mechanism,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 32, pp. 304–313, 2024.
A. Dogra, S. A. Dhondiyal, and D. S. Rana, “Epilepsy Seizure Detection Using Optimised KNN Algorithm Based on EEG,” Proceedings of 2023 International Conference for Advancement in Technology, pp. 1–6, 2023.
S. Ryu, S. Back, S. Lee, H. Seo, C. Park, K. Lee, et al., “Pilot Study of a Single-Channel EEG Seizure Detection Algorithm Using Machine Learning,” Child’s Nervous System, vol. 37, no. 7, pp. 2239–2244, 2021.
M. Zhou, C. Tian, R. Cao, B. Wang, Y. Niu, T. Hu, et al., “Epileptic Seizure Detection Based on EEG Signals and CNN,” Frontiers in Neuroinformatics, vol. 12, article no. 95, 2018.
Y. Yang, N. D. Truong, C. Maher, A. Nikpour, and O. Kavehei, “Continental Generalization of a Human-In-The-Loop AI System for Clinical Seizure Recognition,” Expert Systems with Applications, vol. 207, article no. 118083, 2022.
Y. Ma, C. Liu, M. S. Ma, Y. Yang, N. D. Truong, K. Kothur, et al., “TSD: Transformers for Seizure Detection,” https://www.biorxiv.org/content/10.1101/2023.01.24.525308v2, 2023.
T. Xiao, Z. Wang, Y. Zhang, Hongbin lv, S. Wang, H. Feng, et al., “Self-supervised Learning with Attention Mechanism for EEG-Based Seizure Detection,” Biomedical Signal Processing and Control, vol. 87, article no. 105464, 2024.
N. Ke, T. Lin, Z. Lin, X. H. Zhou, and T. Ji, “Convolutional Transformer Networks for Epileptic Seizure Detection,” Proceedings of the 31st ACM International Conference on Information & Knowledge Management, pp. 4109–4113, 2022.
A. A. Asadi-Pooya, M. Kashkooli, A. Asadi-Pooya, M. Malekpour, and A. Jafari, “Machine Learning Applications to Differentiate Comorbid Functional Seizures and Epilepsy from Pure Functional Seizures,” Journal of Psychosomatic Research, vol. 153, article no. 110703, 2022.
Y. Sun, W. Jin, X. Si, X. Zhang, J. Cao, L. Wang, et al., “Continuous Seizure Detection Based on Transformer and Long-Term iEEG,” IEEE Journal of Biomedical and Health Informatics, vol. 26, no. 11, pp. 5418–5427, 2022.
X. Zhao, N. Yoshida, T. Ueda, H. Sugano, and T. Tanaka, “Epileptic Seizure Detection by Using Interpretable Machine Learning Models,” Journal of Neural Engineering, vol. 20, no. 1, article no. 015002, 2023.
R. G. Andrzejak, K. Lehnertz, F. Mormann, C. Rieke, P. David, and C. E. Elger, “Indications of Nonlinear Deterministic and Finite-Dimensional Structures in Time Series of Brain Electrical Activity: Dependence on Recording Region and Brain State,” Physical Review E, vol. 64, article no. 061907, 2002.
F. Hassan, S. F. Hussain, and S. M. Qaisar, “Epileptic Seizure Detection Using a Hybrid 1D CNN-Machine Learning Approach from EEG Data,” Journal of Healthcare Engineering, vol. 2022, no. 1, article no. 9579422, 2022.
Y. Badr, U. Tariq, F. Al-Shargie, F. Babiloni, F. Al Mughairbi, and H. Al-Nashash, “A Review on Evaluating Mental Stress by Deep Learning Using EEG Signals,” Neural Computing and Applications, vol. 36, no. 21, pp. 12629–12654, 2024.
M. Z. Ullah and D. Yu, “Grid-Tuned Ensemble Models for 2D Spectrogram-Based Autism Classification,” Biomedical Signal Processing and Control, vol. 93, article no. 106151, 2024.
C. J. O. Echeverri, S. Salazar-Colores, and G. Hernández-Nava, “A Study of the Relationship of Wavelet Transform Parameters and Their Impact on EEG Classification Performance,” Brain-Computer Interfaces, pp. 115–130, 2025.
A. H. Abdulaal, M. Valizadeh, R. A. Yassin, B. M. Albaker, A. H. Abdulwahhab, M. C. Amirani, et al., “Unsupervised Histopathological Sub-Image Analysis for Breast Cancer Diagnosis Using Variational Autoencoders, Clustering, and Supervised Learning,” Journal of Engineering and Sustainable Development, vol. 28, no. 6, pp. 729–744, 2024.
R. Anand, S. V. Lakshmi, D. Pandey, and B. K. Pandey, “An Enhanced ResNet-50 Deep Learning Model for Arrhythmia Detection Using Electrocardiogram Biomedical Indicators,” Evolving Systems, vol. 15, pp. 83–97, 2023.
A. H. Abdulaal, M. Valizadeh, M. C. Amirani, and A. F. M. S. Shah, “A self-learning Deep Neural Network for Classification of Breast Histopathological Images,” Biomedical Signal Processing and Control, vol. 87, article no. 105418, 2024.
Y. Fu, C. Zhou, T. Huang, E. Han, Y. He, and H. Jiao, “SoftAct: a High-Precision Softmax Architecture for Transformers Supporting Nonlinear Functions,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 34, no. 9, pp. 8912–8923, 2024.
A. Abdelhameed and M. Bayoumi, “A Deep Learning Approach for Automatic Seizure Detection in Children with Epilepsy,” Frontiers in Computational Neuroscience, vol. 15, 2021.
S. M. Beeraka, A. Kumar, M. Sameer, S. Ghosh, and B. Gupta, “Accuracy Enhancement of Epileptic Seizure Detection: a Deep Learning Approach with Hardware Realization of STFT,” Circuits, Systems, and Signal Processing, vol. 41, pp. 461–484, 2022.
W. Y. Peh, P. Thangavel, Y. Yao, J. Thomas, Y. L. Tan, and J. Dauwels, “Six-Center Assessment of CNN-Transformer with Belief Matching Loss for Patient-Independent Seizure Detection in EEG,” International Journal of Neural Systems, vol. 33, no. 03, 2023.
I. Ahmad, X. Wang, D. Javeed, P. Kumar, O. W. Samuel, and S. Chen, “A Hybrid Deep Learning Approach for Epileptic Seizure Detection in EEG Signals,” IEEE Journal of Biomedical and Health Informatics, pp. 1–12, 2023.
S. Wong, A. Simmons, J. Rivera-Villicana, S. Barnett, S. Sivathamboo, P. Perucca, et al., “Channel-Annotated Deep Learning for Enhanced Interpretability in EEG-Based Seizure Detection,” Biomedical Signal Processing and Control, vol. 103, article no. 107484, 2025.
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Riyam Ali Yassin, Morteza Valizadeh, Alaa Hussein Abdulaal, Mehdi Chehel Amirani

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Submission of a manuscript implies: that the work described has not been published before that it is not under consideration for publication elsewhere; that if and when the manuscript is accepted for publication. Authors can retain copyright of their article with no restrictions. Also, author can post the final, peer-reviewed manuscript version (postprint) to any repository or website.

Since Oct. 01, 2015, PETI will publish new articles with Creative Commons Attribution Non-Commercial License, under The Creative Commons Attribution Non-Commercial 4.0 International (CC BY-NC 4.0) License.
The Creative Commons Attribution Non-Commercial (CC-BY-NC) License permits use, distribution and reproduction in any medium, provided the original work is properly cited and is not used for commercial purposes
