A Feature Selection and Hyperparameter Optimization Framework for Multiclass EEG-based Epilepsy Detection
Abstract
Epilepsy is a neurological disorder characterized by recurrent seizures, and EEG continues to be the gold standard for diagnosis in clinical practice. However, the nonlinear nature of the EEG and its sensitivity to noise make manual interpretations difficult. This study presents a feature selection and hyperparameter optimization approach for automatic multi-class EEG-based epilepsy detection. Five classes representing two healthy states and three epileptic states were analyzed using EEG signals from the Bonn database. Temporal, statistical, fractal, and spectral features were extracted, and their importance was ranked according to ANOVA F-values. Classifications were performed using support vector machines, random forests, nearest-neighbor algorithms, decision trees, multilayer perceptrons, and linear discriminant analysis; hyperparameters were optimized using Grid Search Cross-Validation. The robustness of the proposed model was ensured using grouped layered k-fold cross-validation. With this approach, it achieved an F1-score of 0.8126 in 5-class classification and 0.9894 in binary classification, outperforming existing methods on the same dataset. Hjorth complexity, standard deviation, and Hjorth mobility emerged as the most discriminative features for epileptic states. The study demonstrates that combining feature selection with hyperparameter optimization provides a robust, interpretable framework for multi-class EEG classification. This approach has the potential to support neurologists in their epilepsy assessments by improving diagnostic accuracy and providing clinically meaningful insights.
Keywords
Ethical Statement
References
- T. A. Milligan, “Epilepsy: A clinical overview,” Amer. J. Med., vol. 134, no. 7, pp. 840–847, 2021, doi: 10.1016/j.amjmed.2021.01.038. [Online]. Available: https://doi.org/10.1016/j.amjmed.2021.01.038
- World Health Organization, “Epilepsy,” 2025. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/epilepsy. [Accessed: Aug. 14, 2025].
- T. Shan et al., “Global, regional, and national time trends in the burden of epilepsy, 1990–2019: An age-period-cohort analysis for the global burden of disease 2019 study,” Front. Neurol., vol. 15, Art. no. 1418926, 2024, doi: 10.3389/fneur.2024.1418926. [Online]. Available: https://doi.org/10.3389/fneur.2024.1418926
- J. Moriarty, “Anxiety disorders and epilepsy,” in Introduction to Epilepsy, G. Alarcón and A. Valentín, Eds. Cambridge, U.K.: Cambridge Univ. Press, 2012, pp. 518–519.
- M. K. Siddiqui, R. Morales-Menendez, X. Huang, and N. Hussain, “A review of epileptic seizure detection using machine learning classifiers,” Brain Informat., vol. 7, Art. no. 5, 2020, doi: 10.1186/s40708-020-00105-1. [Online]. Available: https://doi.org/10.1186/s40708-020-00105-1
- P. B. Boz and C. Özden, “Decision support system based on ensemble models in distinguishing epilepsy types,” Epilepsy Behav., vol. 170, Art. no. 110470, 2025, doi: 10.1016/j.yebeh.2025.110470. [Online]. Available: https://doi.org/10.1016/j.yebeh.2025.110470
- H. Bao and J. Ma, “A novel frame funnel-shaped CNN with SE block for epilepsy detection in EEG signals,” in Proc. 10th Int. Conf. Intell. Comput. Signal Process. (ICSP), Xi’an, China, 2025, pp. 471–477, doi: 10.1109/ICSP65755.2025.11087152. [Online]. Available: https://doi.org/10.1109/ICSP65755.2025.11087152
- S. S. Baawi, E. Hakem, A. A. Al-Hamzawi, D. Al-Shammary, A. Ibaida, and A. M. Mahdi, “Hilbert similarity convex for efficient EEG feature selections,” J. Supercomput., vol. 81, 2025, doi: 10.1007/s11227-025-07199-6. [Online]. Available: https://doi.org/10.1007/s11227-025-07199-6
Details
Primary Language
English
Subjects
Artificial Intelligence (Other)
Journal Section
Research Article
Authors
Publication Date
September 30, 2026
Submission Date
November 29, 2025
Acceptance Date
March 13, 2026
Published in Issue
Year 2026 Volume: 9 Number: 4