Abstract
Major Depression Disorder (MDD) is a common yet destructive mental disorder that affects millions of people worldwide. Making early and accurate diagnosis of it is very meaningful. Recently, EEG, a non-invasive technique of recording spontaneous electrical activity of brains, has been widely used for MDD diagnosis. However, there are still some challenges in data quality and data size of EEG: (1) A large amount of noise is inevitable during EEG collection, making it difficult to extract discriminative features from raw EEG; (2) It is difficult to recruit a large number of subjects to collect sufficient and diverse data for model training. Both of the challenges cause the overfitting problem, especially for deep learning methods. In this paper, we propose DiffMDD, a diffusion-based deep learning framework for MDD diagnosis using EEG. Specifically, we extract more noise-irrelevant features to improve the model's robustness by designing the Forward Diffusion Noisy Training Module. Then we increase the size and diversity of data to help the model learn more generalized features by designing the Reverse Diffusion Data Augmentation Module. Finally, we re-train the classifier on the augmented dataset for MDD diagnosis. We conducted comprehensive experiments to test the overall performance and each module's effectiveness. The framework was validated on two public MDD diagnosis datasets, achieving the state-of-the-art performance.
Introduction
Major Depressive Disorder (MDD) is a significant global health challenge. While Electroencephalography (EEG) provides an objective, non-invasive method for monitoring brain activity, its application in automated diagnosis is hindered by two primary issues: high noise levels (artifacts from eye blinks or muscle movements) and data scarcity (small clinical sample sizes). These factors often lead to overfitting in deep learning models. DiffMDD addresses these hurdles by repurposing diffusion models—typically used in image generation—to enhance classifier robustness and generate high-fidelity synthetic EEG data.
Methods
The DiffMDD framework operates through a three-step pipeline designed to mitigate noise and expand the training dataset.
- Forward Diffusion Noisy Training: Instead of standard filtering, the model injects controlled Gaussian noise into the EEG data. Training a classifier on this "diffused" data forces it to identify robust, noise-irrelevant features.
- Reverse Diffusion Data Augmentation: To overcome small sample sizes, a Denoising Diffusion Probabilistic Model (DDPM) generates synthetic EEG samples. This process is classifier-guided, ensuring the generated data retains the specific neural signatures of MDD or healthy states.
- Re-training and Classification: The final classifier is trained on a combined dataset of real and synthetic samples.
The underlying architecture is a hybrid 1D-CNN-Transformer. The 1D-CNN layers extract short-term temporal features, while the Transformer module captures long-range dependencies and spatial relationships between brain regions using specialized embeddings.
Datasets and Evaluation
The framework was validated using two public datasets: Mumtaz2016 (34 MDD, 30 Healthy) and Arizona2020 (23 MDD, 19 Healthy). Evaluation utilized 10-fold subject-independent cross-validation to ensure generalizability to unseen patients.
Key Results
DiffMDD achieved state-of-the-art performance, significantly outperforming traditional methods like SVM and specialized deep learning models like EEGNet.
- Mumtaz2016 Dataset: The model reached 94.0% accuracy and a 93.8% F1-score.
- Arizona2020 Dataset: It achieved 80.0% accuracy and a 79.2% F1-score.
Ablation studies confirmed that removing the diffusion modules led to a substantial drop in performance (up to 10% in F1-score), highlighting the critical role of noise-robust training and data augmentation.
Conclusion
DiffMDD demonstrates that diffusion models can effectively address the inherent limitations of EEG data in clinical settings. By treating noise as a regularization tool and using generative modeling for augmentation, the framework provides a more robust path toward automated MDD diagnosis. Future work will focus on scaling the model to larger, more diverse clinical datasets and optimizing computational efficiency.
Summary updated