Research Article Open Access

Fine-Tuned and Optimized Transformer-Based Model for EEG Seizure Detection 

Puspanjali Mallik1, Ajit Kumar Nayak2, Kumar Janardan Patra3, Rajendra Prasad Panigrahi4 and Getachew Mekuia Habtemaiam5
  • 1 Department of Computer Science and Engineering, Institute of Technical Education and Research, Siksha ‘O’ Anusandhan (Deemed to be) University, Odisha, India
  • 2 Department of CS & IT, Institute of Technical Education and Research, Siksha ‘O’ Anusandhan (Deemed to be) University, Odisha, India
  • 3 Schools of Computer Sciences, Odisha University of Technology and Research, Odisha, India
  • 4 Department of computer Science, Institute of Management and Information Technology, BPUT, Odisha, India
  • 5 Software Engineering Department, Computing College, Debre Berhan University, Ethiopia

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.

Journal of Computer Science
Volume 21 No. 11, 2025, 2647-2662

DOI: https://doi.org/10.3844/jcssp.2025.2647.2662

Submitted On: 11 May 2025 Published On: 11 February 2026

How to Cite: 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

  • 44 Views
  • 8 Downloads
  • 0 Citations

Download

Keywords

  • R- ELANFIS
  • WPT
  • Seizure Detection
  • Sensitivity
  • Specificity
  • AUC
  • 10-fold cross-validation
  • Transformer
  • EEGNet