Abstract
Epilepsy is a chronic neurological disorder affecting 1% of people worldwide. Deep learning (DL) algorithms based on electroencephalograph (EEG) analysis provide the possibility for accurate epileptic seizure (ES) prediction, thereby benefiting patients suffering from epilepsy. To identify the preictal region that precedes the onset of seizure, a large number of annotated EEG signals are required to train DL algorithms. However, the scarcity of seizure onsets leads to significant insufficiency of data for training the DL algorithms. To overcome this data insufficiency, in this paper, we propose a preictal artificial signal synthesis algorithm based on a generative adversarial network to generate synthetic multichannel EEG preictal samples. A high-quality single-channel architecture, determined by visual and statistical evaluations, is used to train the generators of multichannel samples. The effectiveness of the synthetic samples is evaluated by comparing the ES prediction performances without and with synthetic preictal sample augmentation. The leave-one-seizure-out cross validation ES prediction accuracy and corresponding area under the receiver operating characteristic curve evaluation improve from 73.0% and 0.676 to 78.0% and 0.704 by 10x synthetic sample augmentation, respectively. The obtained results indicate that synthetic preictal samples are effective for enhancing ES prediction performance.
Introduction
Predicting an epileptic seizure before its clinical onset is a transformative goal in neurology. Successful prediction offers patients a window of opportunity to take medical intervention or move to a safe environment, significantly improving quality of life. While Deep Learning (DL) models have shown immense promise in analyzing electroencephalograph (EEG) data, they are notoriously data-hungry.
A primary bottleneck in this field is the scarcity of "preictal" data—the specific window of brain activity immediately preceding a seizure. While a patient may provide hours of "interictal" (normal) data, preictal events are rare and brief. This inherent data imbalance makes it difficult to train robust DL classifiers. Furthermore, synthesizing EEG data is significantly more complex than generating images; it requires preserving intricate spatial and temporal correlations across multiple channels over long durations. This paper presents a novel framework using Generative Adversarial Networks (GANs) to bridge this data gap.
Methodology: The GAN Framework
The researchers developed a three-stage synthesis architecture designed to produce high-fidelity, multichannel preictal signals.
1. Adversarial Learning Stage
The study evaluated four distinct GAN architectures to determine which could best handle 20-second EEG segments:
- Deep Convolutional GAN (DCGAN)
- Recurrent GAN (RGAN)
- Wasserstein variants (DCWGAN and RWGAN)
Initially, these models were trained on single-channel data to establish a baseline for signal quality.
2. Data Evaluation Stage
To select the optimal generator, the team employed a combination of visual inspection and three rigorous statistical metrics:
- FDRMSE (Frequency Domain Root Mean Square Error): Unlike standard RMSE, which is often misleading for time-series data, FDRMSE measures how well the synthetic signal matches the spectral characteristics of real EEG.
- FID (Fréchet Inception Distance): A standard GAN metric adapted here to evaluate the distribution of time-series features.
- WD (Wasserstein Distance): Used to measure the mathematical "distance" between the distributions of real and synthetic samples.
Following this evaluation, the DCWGAN (Deep Convolutional Wasserstein GAN) emerged as the superior architecture, demonstrating the highest stability and signal fidelity.
3. Multichannel Synthesis Strategy
Generating 22 channels of synchronized EEG simultaneously is computationally difficult and prone to "mode collapse." To solve this, the authors implemented an "Independent but Synchronized" strategy. They trained 22 separate DCWGAN generators (one for each channel) but fed them the same latent noise vector simultaneously. This allowed the generators to produce synchronized multichannel samples that preserved the necessary spatial characteristics of the scalp EEG.
Experimental Setup and Results
The framework was tested using the CHB-MIT EEG dataset, focusing on seven pediatric subjects with standardized 22-electrode bipolar placements. The EEG data was down-sampled to 100Hz and segmented into 20-second windows.
To evaluate the utility of the synthetic data, the researchers used it to augment a baseline Convolutional Neural Network (CNN) seizure prediction model. The results were measured using "Leave-one-seizure-out" cross-validation:
- Accuracy: The baseline accuracy of 73.0% (using only real data) rose to 78.0% when the training set was augmented with 10x synthetic samples.
- AUC (Area Under the ROC Curve): The AUC improved from 0.676 to 0.704.
The consistent improvement across different augmentation ratios (3x, 5x, and 10x) suggests that the GAN-generated samples provided meaningful features that helped the DL model generalize better to unseen seizure events.
Discussion and Future Directions
The study highlights that Wasserstein loss with weight clipping is particularly effective for stabilizing the training of long-duration (20s) EEG signals. By focusing on frequency-domain metrics (FDRMSE), the researchers ensured that the synthetic signals maintained the physiological characteristics essential for seizure prediction.
However, several challenges remain:
- Patient Specificity: Currently, GANs must be trained on a per-patient basis, as EEG signatures vary significantly between individuals.
- Computational Intensity: Training independent generators for 22+ channels requires significant GPU resources (approximately 4 hours per channel).
- Privacy and Portability: While synthetic data offers a potential path for sharing medical data without compromising patient privacy, further research is needed to ensure these samples cannot be used to re-identify individuals.
In conclusion, this GAN-based augmentation framework provides a viable solution to the data scarcity problem in epilepsy research, paving the way for more accurate and reliable seizure prediction systems.
Summary updated