Epileptic seizure forecasting aims to provide actionable warnings before seizure onset, yet patient-independent generalization and false-alarm control remain major challenges. We propose a calibrated hybrid ensemble for EEG-based seizure forecasting that combines five deep learning models and three classical machine learning models through a logistic regression stacking meta-learner. The proposed pipeline integrates signal preprocessing, handcrafted feature extraction, class-imbalance handling, probability calibration, and clinically motivated post-processing. We evaluate the framework on CHB-MIT using strict Leave-One-Patient-Out (LOPO) cross-validation, with threshold and post-processing parameters selected only on held-out meta data. On the filtered cohort, excluding patients with anomalous preictal rates below 1% or above 15%, the model achieves 74.2% seizure-level sensitivity at 1.24 false alarms per hour, with an average warning time of 16.9 minutes. A test-tuned oracle constrained to the target false-alarm budget achieves 60.9% sensitivity at 0.951 false alarms per hour, highlighting the importance of reporting sensitivity together with realized false-alarm rates. Our code is available at: https://github.com/DanaMason/IEEE-CARS-Hybrid-Ensemble-Learning-for-EEG-Based-Epileptic-Seizure-Forecasting
Figures & tables
Fig. 1 : Overview of the proposed seizure-forecasting framework, including data acquisition, preprocessing, feature extraction, LOPO-based partitioning, deep learning and classical model training, stacking-based meta-learning, temporal post-processing, and performance evaluation. Signal preprocessing is applied only to the classical machine learning branch.
Patient
Sens.
Detected
FA/hr
Warn (min)
chb01
28.6%
2/7
1.16
15.5
chb02
100.0%
2/2
1.24
10.3
chb03
28.6%
2/7
0.52
9.6
chb04
100.0%
4/4
1.46
12.7
chb05
60.0%
3/5
0.74
18.3
chb06
50.0%
5/10
0.57
13.7
TABLE I : Per-patient seizure-level performance under LOPO cross-validation using a 30-minute preictal horizon and 5-minute exclusion gap. † denotes patients with anomalous preictal rates excluded from the filtered aggregate.
Fig. 2 : Sensitivity and FA/hr for meta-tuned and test-tuned configurations under fixed post-processing settings.
Metric
All ( n=24 )
Filtered ( n=20 )
Sensitivity
0.001±0.000
0.001±0.000
Specificity
0.999±0.000
0.999±0.000
Precision
0.104±0.077
0.086±0.046
F1-score
0.002±0.001
0.002±0.001
Accuracy
0.890±0.092
0.925±0.040
AUC-ROC
0.487±0.085
0.485±0.091
TABLE II : Average window-level performance, reported as mean ± standard deviation for all and filtered patients.
Method
Year
Sens.
FA/hr
Threshold
Patient-specific evaluation
Truong et al. [ 20 ]
2018
0.812
0.159
N/R
Ben Messaoud & Chavez [ 25 ]
2021
0.821
0.080
N/R
Patient-independent LOPO evaluation
Meng et al. (3D-SERESNet) [ 26 ]
2025
0.844
0.232
N/R
Ours, honest (all, n=24 )
2026
0.728
1.251
Meta slice
TABLE III : Comparison of CHB-MIT seizure forecasting results across evaluation protocols 2 2 2 The threshold-source column indicates whether the reported operating point was selected using a held-out meta slice, test labels, or was not reported. Results across protocol groups are not directly comparable. .
Epilepsy is one of the most common neurological disorders globally, characterized by recurring seizures and significantly impacting the quality of life. Despite advancements in diagnostic techniques, the mitigation of risks faced by epilepsy patients remains challenging due to the unpredictability of seizure events. An accurate forecast of seizure onset helps to reduce risks in epilepsy patients. In this paper, we propose EEG-FuseFormer, a transformer-based feature fusion framework for seizure-onset prediction that combines intermediate features extracted from Convolutional Neural Networks-Long Short-Term Memory (CNN-LSTM) and ResNet-18 networks. The CNN-LSTM architecture captures both spatial and temporal features directly from the raw signal, whereas the ResNet-18 extracts features from the Short-Time Fourier Transform (STFT) representation of the EEG signals. Fusion is carried out using a transformer encoder, and the final prediction is generated using fully connected dense layers. The CHB-MIT dataset was used to validate the proposed model. The results show that the proposed model achieves a mean recall of 98.85% and outperforms most of the state-of-the-art methods. This study evaluates the ability of the proposed feature fusion model to generalize in cross-patient testing scenarios. Fine-tuning pre-trained models on limited target patient data (target adaptation) within the cross-patient validation framework results in higher recall, precision, and F1-score metrics in comparison to the conventional cross-patient validation approach. Finally, the runtime-based computational complexity of the model is assessed across diverse hardware platforms to highlight the performance-complexity trade-off.
Vigneshwar Hariharan, Chithra Reghuvaran, Arlene John +4
National University of Singapore · University College Dublin · University of Twente +1
Deep learning for EEG-based seizure detection faces critical challenges: severe annotation scarcity and extreme class imbalance, where ictal events comprise less than 10% of clinical recordings. We present DiffEEG, a 9.6M-parameter self-supervised foundation model that addresses both limitations through denoising diffusion pre-training and reinforcement learning (RL)-based fine-tuning. Pre-trained on 1.3M unlabeled segments from the Temple University Hospital Seizure Corpus (TUHSZ), DiffEEG learns generic neural representations via a 1D U-Net with multi-head self-attention. For downstream adaptation, a reinforced decision layer employs policy gradient optimization to directly maximize F1-score, prioritizing sensitivity to rare seizure events over overall accuracy. Under strict patient-wise evaluation (279 patients, Leave-One-Fold-Out), DiffEEG achieves 61% accuracy and 59% F1 for 4-class seizure subtyping, and 81% accuracy with 85% weighted F1 for binary detection, maintaining clinically viable seizure recall (59%) despite extreme imbalance (6.7% prevalence). Segment-level evaluation establishes an upper bound of 97.6% accuracy, confirming strong architectural capacity. DiffEEG demonstrates that diffusion-based pre-training combined with metric-aware reinforcement learning enables clinically deployable seizure monitoring with minimal labeled data requirements.
Abdulkader Helwan, Lina Abou-Abbas, Hussein El Amouri +2
Department of Electrical and Computer Engineering, Lebanese American University, Byblos, Lebanon · Institute of Applied Artificial Intelligence, TÉLUQ University, Montreal, Canada
Epileptic seizure prediction from electroencephalographic (EEG) recordings remains challenging due to strong inter-patient variability and the complex temporal structure of neural signals. This paper presents a patient-adaptive transformer framework for short-horizon seizure forecasting. The proposed approach employs a two-stage training strategy: self-supervised pretraining is first used to learn general EEG temporal representations through autoregressive sequence modeling, followed by patient-specific fine-tuning for binary prediction of seizure onset within a 30-second horizon. To enable transformer-based sequence learning, multichannel EEG signals are processed using noise-aware preprocessing and discretized into tokenized temporal sequences. Experiments conducted on subjects from the TUH EEG dataset demonstrate that the proposed method achieves validation accuracies above 90% and F1 scores exceeding 0.80 across evaluated patients, supporting the effectiveness of combining self-supervised representation learning with patient-specific adaptation for individualized seizure prediction.
Mohamed Mahdi, Asma Baghdadi
Information and Communication Engineering Department National Engineering School of Tunis Tunis El Manar University · REGIM-Lab, University of Sfax, National Engineering School of Sfax (ENIS), BP 1173, Sfax, 3038, Tunisia