Fine-Tuned and Optimized Transformer-Based Model for EEG Seizure Detection
Puspanjali Mallik1, Ajit Kumar Nayak2, Kumar Janardan Patra3, Rajendra Prasad Panigrahi4 & Getachew Mekuia Habtemaiam5 Show affiliations
- Department of Computer Science and Engineering, Institute of Technical Education and Research, Siksha ‘O’ Anusandhan (Deemed to be) University, Odisha, India
- Department of CS & IT, Institute of Technical Education and Research, Siksha ‘O’ Anusandhan (Deemed to be) University, Odisha, India
- Schools of Computer Sciences, Odisha University of Technology and Research, Odisha, India
- Department of computer Science, Institute of Management and Information Technology, BPUT, Odisha, India
- Software Engineering Department, Computing College, Debre Berhan University, Ethiopia
Journal of Computer Science, Volume 21, Issue 11, pp. 2647–2662 · doi.org/10.3844/jcssp.2025.2647.2662
Abstract
Epilepsy, a widely recognized neurological disorder, results from irregularities in the transmission of electrical impulses among neurons in the brain. Over the last two decades, significant efforts have been made by researchers and clinicians to develop effective methods for its early detection and management. The electroencephalogram (EEG), a non-invasive tool used to monitor brainwave activity, has become a central device in seizure diagnosis. With recent advances, EEG-based analysis is increasingly supported by machine learning and metaheuristic optimization approaches to enhance diagnostic accuracy and efficiency. This research proposes an optimized framework for seizure detection that leverages a Regularized Extreme Learning Adaptive Neuro-Fuzzy Inference System (R-ELANFIS) as the primary classifier. To reduce computational overhead and improve solution accuracy, a hybrid metaheuristic algorithm combining Particle Swarm Optimization (PSO) and Parrot Optimization (PO) is applied to fine-tune the model. The Bonn University EEG dataset, known for its reliable short-term seizure recordings, is used to evaluate system performance. Key classification metrics such as accuracy, sensitivity, and specificity reflect the model’s strong predictive capability with accuracy reaching up to 98.3%. The proposed method demonstrates the potential for high-performance EEG-based seizure detection paving the way for future integration with edge computing devices to support remote clinical diagnostics and continuous monitoring in real-world healthcare applications.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
Mallik, P., Nayak, A. K., Patra, K. J., Panigrahi, R. P. & Habtemaiam, G. M. (2025). Fine-Tuned and Optimized Transformer-Based Model for EEG Seizure Detection . Journal of Computer Science, 21(11), 2647–2662. https://doi.org/10.3844/jcssp.2025.2647.2662
- Licence
- CC BY 4.0
- Issue
- Volume 21, Issue 11
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
