Abstract
Objective diagnosis of depression remains a significant challenge in clinical psychiatry. While physiological signals such as electroencephalography (EEG) and functional near-infrared spectroscopy (fNIRS) provide insights into brain activity, effectively integrating these modalities is difficult due to their differing spatio-temporal resolutions. This paper presents MRLMC (Multimodal Representation Learning via Multiscale Contrasting), a deep learning framework designed to improve depression recognition by capturing both unique and shared features across EEG and fNIRS. Utilizing a Siamese architecture with multiscale spatio-temporal contrasting and a Transformer-based semantic consistency module, the framework achieves a state-of-the-art accuracy of 91.7% on multimodal datasets.
1. Introduction
Depression diagnosis currently relies heavily on subjective clinical interviews and self-report scales, such as the PHQ-9. These methods are prone to patient bias and lack the precision required for real-time monitoring. Physiological signals offer an objective alternative; however, single-modality approaches often fall short. EEG provides high temporal resolution but poor spatial localization, while fNIRS offers superior spatial resolution at a much slower temporal scale.
Existing AI models often employ simple feature-level fusion, which fails to account for the fact that both signals reflect the same underlying "semantic" brain state. The challenge lies in learning a representation that captures the unique strengths of each modality while aligning them to a shared biological meaning. MRLMC addresses this by enforcing semantic consistency and utilizing multiscale feature extraction.
2. Methodology
The MRLMC framework is built upon several key architectural innovations designed to handle the complexities of multimodal time-series data:
2.1 Siamese Architecture and Data Augmentation
To ensure the model learns robust, invariant features, MRLMC employs a Siamese network architecture—two identical branches with shared weights. The model utilizes time-domain augmentations, specifically time warping and time masking, to create correlated versions of the input data. This forces the network to identify core characteristics of the signal that remain stable despite noise or temporal shifts.
2.2 Multiscale Spatio-temporal Contrasting (MSC)
Brain signals operate across various frequencies and time scales. The MSC module uses multiscale convolutions to extract features across different time windows. A contrastive loss function is then applied to minimize the distance between different views of the same participant's brain activity while maximizing the distance between different individuals, effectively learning a discriminative representation of the participant's physiological state.
2.3 Semantic Consistency Module
At the heart of MRLMC is a Transformer-based unit that identifies deep semantic information, such as specific activation patterns in the prefrontal cortex during cognitive tasks. By using cosine similarity, the model ensures that the representations derived from EEG and fNIRS point toward the same semantic conclusion, effectively translating the two "languages" of the brain into a single coherent diagnostic output.
2.4 Focal Loss for Classification
Medical datasets are frequently imbalanced. To mitigate this, the framework utilizes Focal Loss during the classification stage. This prevents the model from becoming overconfident on "easy" samples and forces it to prioritize hard-to-classify cases, which is critical in clinical settings where missing a diagnosis (false negative) has high stakes.
3. Experimental Setup
The study evaluated MRLMC on two distinct datasets:
- MODMA Dataset: A public dataset containing event-related EEG data from 53 participants (24 with depression, 29 healthy controls) performing an emotional "Dot-probe" task.
- fNIRS-EEG Dataset: A self-collected multimodal dataset featuring 64 participants (52 with depression, 12 healthy controls) performing a verbal fluency task. This dataset provided synchronized recordings of both modalities, allowing for a direct test of the fusion framework.
4. Results and Discussion
4.1 Performance Metrics
The multimodal MRLMC model achieved a peak accuracy of 91.7% on the fNIRS-EEG dataset. This significantly outperformed single-modality benchmarks, which reached 90.7% for fNIRS only and 87.5% for EEG only. This confirms that the integration of temporal (EEG) and spatial (fNIRS) data provides a more holistic view of the depressed brain.
4.2 Comparison with State-of-the-Art
MRLMC outperformed several established models, including Graph Convolutional Networks (GCNs) and specialized EEG Transformers, by margins ranging from 2% to 11%. Ablation studies further revealed that removing either the spatio-temporal contrasting or the semantic consistency module led to a measurable drop in performance, validating the necessity of both components.
4.3 The Importance of Task-State Data
The research emphasizes that signals collected during "stimulation tasks" (like verbal fluency) are more informative than resting-state signals. These tasks force the brain to reveal functional deficits that might remain hidden during rest, providing the model with clearer signals of impairment.
5. Conclusion and Future Work
MRLMC represents a significant step toward objective, multimodal depression recognition. By aligning the disparate resolutions of EEG and fNIRS through semantic consistency, the model achieves high diagnostic accuracy. However, limitations remain, including the relatively small sample size and the inherent class imbalance of the self-collected dataset. Future work will focus on testing the framework's generalizability to other conditions, such as anxiety and cognitive impairment, and scaling the model to larger, more diverse patient populations.
Summary updated