journal article·2025-11-20Open access

Outlier Detection in EEG Signals Using Ensemble Classifiers

Agnieszka Duraj, Natalia Łukasik, Piotr S. Szczepaniak

Applied Sciences· Volume 15· Issue 22

Abstract

Epilepsy is one of the most prevalent neurological disorders, affecting over 50 million people worldwide. Accurate detection and characterization of epileptic activity are clinically critical, as seizures are associated with substantial morbidity, mortality, and impaired quality of life. Electroencephalography (EEG) remains the gold standard for epilepsy assessment; however, its manual interpretation is time-consuming, subjective, and prone to inter-rater variability, emphasizing the need for automated analytical approaches. This study proposes an automated ensemble classification framework for outlier detection in EEG signals. Three interpretable baseline models—Support Vector Machine (SVM), k-Nearest Neighbors (k-NN), and decision tree (DT-CART)—were screened. Ensembles were formed only from base models that had a pre-registered meta-selection rule (F1 on the outlier-class >0.60). Under this criterion, DT-CART did not qualify and was excluded from all ensembles; final ensembles combined SVM and k-NN. The framework was evaluated on two publicly available datasets with distinct acquisition conditions. The Bonn EEG dataset comprises 500 artifact-free single-channel recordings from healthy subjects and epilepsy patients under controlled laboratory settings. In contrast, the Guinea-Bissau and Nigeria Epilepsy (GBNE) dataset contains multi-channel EEG recordings from 97 participants acquired in field conditions using low-cost equipment, reflecting real-world diagnostic challenges such as motion artifacts and signal variability. The ensemble framework substantially improved outlier detection performance, with stacking achieving up to a 95.0% F1-score (accuracy 95.0%) on the Bonn dataset and 85.5% F1-score (accuracy 85.5%) on the GBNE dataset. These findings demonstrate that the proposed approach provides a robust, interpretable, and generalizable solution for EEG analysis, with strong potential to enhance reliable, efficient, and scalable epilepsy detection in both laboratory and resource-limited clinical environments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: EEG and Brain-Computer Interfaces · ECG Monitoring and Analysis · Epilepsy research and treatment

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Institute of Information Technology, Lodz University of Technology, al. Politechniki 8, 93-590 Lodz, Poland

University Clinical Center of the Medical University of Warsaw, ul. Banacha 1a, 02-097 Warsaw, Poland

References (73)

Show source-provided references
1. World Health Organization (2019). Epilepsy: A Public Health Imperative, World Health Organization. World Health Organization Report.
2. Sudden unexpected death in epilepsy: Epidemiology, mechanisms, and prevention10.1016/S1474-4422(16)30158-2 ↗
3. Standards for epidemiologic studies and surveillance of epilepsy10.1111/j.1528-1167.2011.03121.x ↗
4. Newer drugs for focal epilepsy in adults10.1136/bmj.e345 ↗
5. Instruction manual for the ILAE 2017 operational classification of seizure types10.1111/epi.13671 ↗
6. ILAE classification of the epilepsies: Position paper of the ILAE Commission for Classification and Terminology10.1111/epi.13709 ↗
7. EEG in the diagnosis, classification, and management of patients with epilepsy10.1136/jnnp.2005.069245 ↗
8. The role of EEG in patients with suspected epilepsy10.1684/epd.2020.1151 ↗
9. Computerized epileptiform transient detection in the scalp electroencephalogram: Obstacles to progress and the example of computerized ECG interpretation10.1016/j.clinph.2009.08.007 ↗
10. EEG signal analysis: A survey10.1007/s10916-008-9231-z ↗
11. Automated diagnosis of epilepsy using CWT, HOS and texture parameters10.1142/S0129065713500093 ↗
12. Epileptic seizure detection in long-term EEG recordings by using wavelet-based directed transfer function10.1109/TBME.2018.2809798 ↗
13. Deep learning-based electroencephalography analysis: A systematic review10.1088/1741-2552/ab260c ↗
14. Moving the field forward: Detection of epileptiform abnormalities on scalp electroencephalography using deep learning—Clinical application perspectives10.1093/braincomms/fcac218 ↗
15. Abdi-Sargezeh, B., Shirani, S., Sanei, S., Took, C.C., Geman, O., Alarcon, G., and Valentin, A. (2024). A review of signal processing and machine learning techniques for interictal epileptiform discharge detection. Comput. Biol. Med., 168.10.1016/j.compbiomed.2023.107782 ↗
16. Deep learning for electroencephalogram (EEG) classification tasks: A review10.1088/1741-2552/ab0ab5 ↗
17. EEG datasets for seizure detection and prediction—A review10.1002/epi4.12704 ↗
18. Jiang, X., Bian, G.-B., and Tian, Z. (2019). Removal of Artifacts from EEG Signals: A Review. Sensors, 19.10.3390/s19050987 ↗
19. Jin, Y.-M., Luo, Y.-D., Zheng, W.-L., and Lu, B.-L. (2017, January 8–10). EEG-based emotion recognition using domain adaptation network. Proceedings of the 2017 International Conference on Orange Technologies (ICOT), Singapore.10.1109/ICOT.2017.8336126 ↗
20. Wei, Z., Zou, J., Zhang, J., and Xu, J. (2019). Automatic epileptic EEG detection using convolutional neural network with improvements in time-domain. Biomed. Signal Process. Control, 53.10.1016/j.bspc.2019.04.028 ↗
21. Clinical utility of EEG in diagnosing and monitoring epilepsy10.1016/j.clinph.2018.01.019 ↗
22. Dietterich, T.G. (2000). Ensemble methods in machine learning. Multiple Classifier Systems, Proceedings of the First International Workshop, Cagliari, Italy, 21–23 June 2000, Springer.10.1007/3-540-45014-9_1 ↗
23. Indications of nonlinear deterministic and finite-dimensional structures in time series of brain electrical activity: Dependence on recording region and brain state10.1103/PhysRevE.64.061907 ↗
24. Van Hees, S., and Otte, W.M. (2025, June 21). EEG Data from Epilepsy Patients and Healthy Subjects in Guinea-Bissau and Nigeria (GBNE) [Dataset]. Zenodo, Geneva, Switzerland. Available online: http://zenodo.org/records/1252141.
25. Combination of EEG complexity and spectral analysis for epilepsy diagnosis and seizure detection10.1155/2010/853434 ↗
26. Cohen, L. (1995). Time–Frequency Analysis, Prentice Hall PTR.
27. EEG signal classification using wavelet feature extraction and a mixture of expert model10.1016/j.eswa.2006.02.005 ↗
28. Wavelet packet based energy features for epileptic seizure detection
29. Wavelet entropy: A new tool for analysis of short duration brain electrical signals10.1016/S0165-0270(00)00356-3 ↗
30. Wavelet-based EEG processing for computer-aided seizure detection and epilepsy diagnosis—A review10.1016/j.seizure.2015.01.012 ↗
31. Support vector machines for epileptic EEG classification: A review
32. EEG signal classification using PCA, ICA, LDA and support vector machines10.1016/j.eswa.2010.06.065 ↗
33. Ang, K.K., Chin, Z.Y., Zhang, H., and Guan, C. (2012). Filter bank common spatial pattern algorithm on BCI competition IV datasets 2a and 2b. Front. Neurosci., 6.10.3389/fnins.2012.00039 ↗
34. Obeid, I., and Picone, J. (2025, June 21). The Temple University Hospital EEG Data Corpus (TUH EEG Corpus). Available online: https://isip.piconepress.com/projects/nedc/html/tuh_eeg/.
35. Martis, R.J., Chakraborty, C., and Ray, A.K. (2016). Gaussian mixture model-based clustering technique for electrocardiogram analysis. Data Mining in Biomedical Imaging, Signaling, and Systems, Taylor & Francis.
36. Zhou, Z.-H. (2012). Ensemble Methods: Foundations and Algorithms, Chapman & Hall/CRC.10.1201/b12207 ↗
37. EEG seizure detection and prediction algorithms: A survey10.1186/1687-6180-2014-183 ↗
38. Deep convolutional neural network for the automated detection and diagnosis of seizure using EEG signals10.1016/j.compbiomed.2017.09.017 ↗
39. Lasefr, Z., Elleithy, K., Reddy, R.R., Abdelfattah, E., and Faezipour, M. (2023). An Epileptic Seizure Detection Technique Using EEG Signals with Mobile Application Development. Appl. Sci., 13.10.3390/app13179571 ↗
40. Khan, G.H., Khan, N.A., Altaf, M.A.B., and Abbasi, Q. (2023). A Shallow Autoencoder Framework for Epileptic Seizure Detection in EEG Signals. Sensors, 23.10.3390/s23084112 ↗
41. Palanisamy, K.K., and Rengaraj, A. (2024). Detection of Anxiety-Based Epileptic Seizures in EEG Signals Using Fuzzy Features and Parrot Optimization-Tuned LSTM. Brain Sci., 14.10.3390/brainsci14080848 ↗
42. Lenkala, S., Marry, R., Gopovaram, S.R., Akinci, T.C., and Topsakal, O. (2023). Comparison of Automated Machine Learning (AutoML) Tools for Epileptic Seizure Detection Using Electroencephalograms (EEG). Computers, 12.10.3390/computers12100197 ↗
43. LOF: Identifying density-based local outliers10.1145/335191.335388 ↗
44. Liu, F.T., Ting, K.M., and Zhou, Z.H. (2008, January 15–19). Isolation Forest. Proceedings of the 2008 Eighth IEEE International Conference on Data Mining (ICDM), Pisa, Italy.10.1109/ICDM.2008.17 ↗
45. Ester, M., Kriegel, H.P., Sander, J., and Xu, X. (1996, January 2–4). A density-based algorithm for discovering clusters in large spatial databases with noise. Proceedings of the Second International Conference on Knowledge Discovery and Data Mining (KDD), Portland, OR, USA.
46. Deep learning with convolutional neural networks for EEG decoding and visualization10.1002/hbm.23730 ↗
47. Mirowski, P., Madhavan, D., LeCun, Y., and Kuzniecky, R. (2009, January 3–6). Comparing SVMs and LSTMs for detecting seizures in intracranial EEG. Proceedings of the 2009 IEEE Engineering in Medicine and Biology Society Conference (EMBC), Minneapolis, MN, USA.
48. Convolutional neural networks for seizure prediction using intracranial and scalp EEG10.1016/j.neunet.2018.04.018 ↗
49. Deep neurocomputational fusion for ASD diagnosis using multi-domain EEG analysis10.1016/j.neucom.2025.130353 ↗
50. Temporal attention fusion network with custom loss function for EEG–fNIRS classification10.1088/1741-2552/ad8e86 ↗
51. Ficici, C., Telatar, Z., Kocak, O., and Erogul, O. (2023). Identification of TLE Focus from EEG Signals by Using Deep Learning Approach. Diagnostics, 13.10.3390/diagnostics13132261 ↗
52. Yıldız, İ., Garner, R., Lai, M., and Duncan, D. (2022). Unsupervised seizure identification on EEG. Comput. Methods Programs Biomed., 215.10.1016/j.cmpb.2021.106604 ↗
53. VAEEG: Variational auto-encoder for extracting EEG representation10.1016/j.neuroimage.2024.120946 ↗
54. Vahid, A., Mückschel, M., Stober, S., Stock, A.K., and Beste, C. (2022). Conditional generative adversarial networks applied to EEG data can inform about the inter-relation of antagonistic behaviors on a neural level. Commun. Biol., 5.10.1038/s42003-022-03091-8 ↗
55. Potter, I., Yıldız, I., Zerveas, G., Eickhoff, C., and Duncan, D. (2022, January 12–14). Unsupervised multivariate time-series transformers for seizure identification on EEG. Proceedings of the 21st IEEE International Conference on Machine Learning and Applications (ICMLA), Nassau, Bahamas.10.1109/ICMLA55696.2022.00208 ↗
56. Vafaei, E. (2025). Transformers in EEG Analysis: A Review of Architectures. Sensors, 25.10.3390/s25051293 ↗
57. Catalyzing EEG Signal Analysis: Unveiling the Potential of Machine Learning-Enabled Smart K Nearest Neighbor Outlier Detection
58. Giri, B.K., Sarkar, S., Mazumder, S., and Das, K. (2015, January 25–29). A computationally efficient order statistics based outlier detection technique for EEG signals. Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy.10.1109/EMBC.2015.7319459 ↗
59. Anomaly detection: A survey10.1145/1541880.1541882 ↗
60. A random forest model based classification scheme for neonatal amplitude-integrated EEG10.1186/1475-925X-13-S2-S4 ↗
61. Ensemble of Autoencoders for Anomaly Detection in Biomedical Data: A Narrative Review10.1109/ACCESS.2024.3360691 ↗
62. PyOD: A Python Toolbox for Scalable Outlier Detection
63. Liu, M., Liu, J., Xu, M., Liu, Y., Li, J., Nie, W., and Yuan, Q. (2025). Combining meta and ensemble learning to classify EEG for seizure detection. Sci. Rep., 15.10.1038/s41598-025-88270-3 ↗
64. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals10.1161/01.CIR.101.23.e215 ↗
65. Support-vector networks10.1023/A:1022627411411 ↗
66. Vapnik, V. (1995). The Nature of Statistical Learning Theory, Springer.10.1007/978-1-4757-2440-0 ↗
67. Guo, G., Wang, H., Bell, D., Bi, Y., and Greer, K. (2003, January 3–7). KNN model-based approach in classification. Proceedings of the OTM Confederated International Conferences, CoopIS, DOA, and ODBASE, Catania, Sicily, Italy.
68. Breiman, L., Friedman, J.H., Olshen, R.A., and Stone, C.J. (1984). Classification and Regression Trees, Wadsworth International Group.
69. Analyzing EEG signals using decision trees: A study of modulation of amplitude10.1155/2020/3598416 ↗
70. Bagging predictors10.1023/A:1018054314350 ↗
71. Stacked generalization10.1016/S0893-6080(05)80023-1 ↗
72. Outlier detection in EEG signals
73. Learning from imbalanced data10.1109/TKDE.2008.239 ↗