Preictal Period Optimization for Deep Learning-Based Epileptic Seizure Prediction

Petros Koutsouvelis,Bartlomiej Chybowski,Alfredo Gonzalez-Sulser,Shima Abdullateef,Javier Escudero
2024-07-20
Abstract:Accurate prediction of epileptic seizures could prove critical for improving patient safety and quality of life in drug-resistant epilepsy. Although deep learning-based approaches have shown promising seizure prediction performance using scalp electroencephalogram (EEG) signals, substantial limitations still impede their clinical adoption. Furthermore, identifying the optimal preictal period (OPP) for labeling EEG segments remains a challenge. Here, we not only develop a competitive deep learning model for seizure prediction but, more importantly, leverage it to demonstrate a methodology to comprehensively evaluate the predictive performance in the seizure prediction task. For this, we introduce a CNN-Transformer deep learning model to detect preictal spatiotemporal dynamics, alongside a novel Continuous Input-Output Performance Ratio (CIOPR) metric to determine the OPP. We trained and evaluated our model on 19 pediatric patients of the open-access CHB-MIT dataset in a subject-specific manner. Using the OPP of each patient, preictal and interictal segments were correctly identified with an average sensitivity of 99.31%, specificity of 95.34%, AUC of 99.35%, and F1- score of 97.46%, while prediction time averaged 76.8 minutes before onset. Notably, our novel CIOPR metric allowed outlining the impact of different preictal period definitions on prediction time, accuracy, output stability, and transition time between interictal and preictal states in a comprehensive and quantitative way and highlighted the importance of considering both inter- and intra-patient variability in seizure prediction.
Signal Processing,Artificial Intelligence
What problem does this paper attempt to address?
The paper aims to address two key issues in epilepsy seizure prediction: 1. **Developing an efficient seizure prediction model**: The research team designed a deep learning model combining Convolutional Neural Networks (CNN) and Transformer architecture to identify preictal spatiotemporal dynamic features in the electroencephalogram (EEG) signals of epilepsy patients, enabling accurate seizure prediction. 2. **Determining the Optimal Preictal Period (OPP)**: The study proposes a new method—Continuous Input-Output Performance Ratio (CIOPR)—to comprehensively evaluate the performance of prediction models under different preictal period definitions and determine the optimal preictal period length for each patient. ### Main Contributions - **Efficient Classification Model**: A CNN-Transformer model is proposed, capable of highly sensitive identification of preictal and interictal EEG signals, with early prediction capability and stable cross-subject performance. - **Detailed Evaluation of Model Behavior**: By fitting the continuous output of the classifier to a sigmoid curve, researchers can analyze the model's performance on long-term EEG data in detail, including prediction time, output stability, and the transition time from interictal to preictal state. - **CIOPR Metric**: A new performance metric, CIOPR, is developed, which comprehensively considers factors such as prediction time, output stability, and state transition time, providing a thorough evaluation of the seizure prediction system. - **Determining Optimal Preictal Period**: The impact of different preictal period definitions on system performance is demonstrated, and the CIOPR metric is used to determine the optimal preictal period length for each patient. ### Overview of Research Methods - **Dataset and Preprocessing**: The study is based on the publicly available CHB-MIT dataset, which includes EEG recordings of 23 pediatric patients. Preprocessing steps include re-referencing, filtering, etc., to improve signal quality. - **Model Training**: Data is extracted using four different preictal period lengths (60, 45, 30, and 15 minutes) and trained and tested using the Leave-One-Seizure-Out cross-validation method. - **Model Architecture**: The proposed CNN-Transformer model includes three convolutional layers for feature extraction, followed by a transformer module to capture long-range dependencies. - **Performance Evaluation**: In addition to traditional performance metrics (such as sensitivity, specificity, etc.), the CIOPR metric is introduced to evaluate the model's performance under different preictal period lengths. In summary, this study not only proposes a high-performance seizure prediction model but also provides a systematic approach to optimize the selection of preictal period length, which is crucial for improving the practicality of clinical applications.