TL;DR
This paper introduces a novel Transformer-based diffusion model for generating high-quality EEG signals and a unique data augmentation strategy that combines these generated signals with real data. This approach significantly improves EEG classification performance across various tasks by addressing limitations in existing generative models and data augmentation techniques.
What Problem Does This Paper Address?
Electroencephalogram (EEG) classification is crucial for understanding brain activity in medical and engineering applications. However, a major bottleneck is the scarcity of EEG data, which severely limits the performance of classification models. While generative models offer a solution through data augmentation, existing methods suffer from two key issues: (1) the generated EEG signals often lack sufficient quality, and (2) simply incorporating these generated signals into training datasets doesn't always lead to effective improvements in classification performance, sometimes even causing degradation. This paper aims to tackle these problems by proposing a more robust generative model and a smarter data augmentation strategy.
Methods
The proposed method has two main stages:
- EEG Data Generation: The core of this stage is a Transformer-based denoising diffusion probabilistic model (DDPM). To handle the unique characteristics of EEG signals, they introduce:
- Constant-factor scaling: A preprocessing step to scale signal amplitudes, reducing information loss compared to standard z-score normalization.
- Multi-Scale Convolution (MSC) module: Extracts features across various frequency bands, crucial for capturing diverse EEG signal characteristics.
- Dynamic Fourier Spectrum Information (DFSI) module: Leverages Fourier transform to extract frequency-domain information, acting as a guiding signal for generation, especially for unconditional models.
- EEG Diffusion Transformer: The overall architecture combines MSC, DFSI, and Diffusion Transformer (DiT) blocks to predict and remove noise iteratively, generating high-quality EEG signals.
- Generated-Original Signals Reassembled Data Augmentation: This stage addresses the issue of directly incorporating generated data. Instead of simple concatenation, they propose:
- Label Reconstruction: Applying label smoothing to generated data to prevent the model from learning incorrect information from potentially imperfect labels.
- Vicinal Data Generation: Randomly reassembling segments of original and generated EEG data in the time-domain to create "vicinal data." This process aims to create data points that are close to the original distribution but introduce diversity.
- Combined Loss Function (LGO): The EEG classification network is trained using a combined loss that minimizes both the empirical risk (on original data) and the vicinal risk (on the reassembled data), using cross-entropy for original data and KL divergence for vicinal data.
Datasets
The paper evaluates its method on four publicly available EEG datasets for four different tasks:
- Bonn Dataset: Epilepsy detection (single-channel).
- SleepEDF-20 Dataset: Sleep stage classification (multi-channel).
- FACED Dataset: Emotion recognition (multi-channel).
- Shu Dataset: Motor imagery (multi-channel).
The authors note that for FACED and Shu datasets, they selected specific electrodes (Fp1, Fp2, and Fz) to expedite training and reduce GPU memory usage, while still achieving favorable results.
Key Insights and Ideas
- Quality Matters: The paper strongly emphasizes that the quality of generated EEG signals is paramount. Simply generating more data isn't enough; it needs to be high-fidelity to be useful.
- Beyond Simple Concatenation: Directly adding generated data to the training set can be detrimental. The proposed "vicinal data" approach, which intelligently mixes original and generated segments, is key to effective augmentation.
- Label Reconstruction is Crucial: For generated data, reconstructing labels (e.g., via label smoothing) is vital to prevent the classification model from learning incorrect associations.
- Frequency Diversity is a Challenge: EEG signals have diverse frequency components, and the proposed MSC and DFSI modules are designed to capture this complexity, leading to better generation quality.
- Universality of the Approach: The method demonstrates significant improvements across diverse EEG tasks and datasets, suggesting its broad applicability.
Key Results
- Improved EEG Generation Quality: The proposed EEG Diffusion Transformer achieved lower FID scores across all four datasets compared to EEG-GAN, TimeVAE, and UNet-Diffusion, indicating higher quality generated EEG signals. For instance, on the Bonn dataset, the FID was 3.81 compared to 7.86 for EEG-GAN.
- Significant Classification Performance Gains: The data augmentation method led to substantial accuracy improvements:
- Bonn dataset: 14.00% improvement.
- SleepEDF-20 dataset: 6.38% improvement.
- FACED dataset: 9.42% improvement.
- Shu dataset: 2.5% improvement.
- Ablation Studies: Both label reconstruction and the vicinal data reassembly strategy individually improved performance, but their combined use yielded the greatest enhancement. The MSC and DFSI modules also contributed to better generation quality.
Limitations and Future Work
- Limited to EEG: The current validation is solely on EEG tasks. The authors plan to investigate the effectiveness of their approach on a wider range of time series tasks in the future.
- Computational Cost: While not explicitly detailed as a limitation, diffusion models are generally computationally intensive, which might be a consideration for real-time applications.
- Electrode Selection: For multi-channel datasets like FACED and Shu, the selection of a subset of electrodes was done to expedite training. Future work might explore the impact of using all channels.
Summary updated