Multi-Source EEG Emotion Recognition via Dynamic Contrastive Domain Adaptation

Yun Xiao, Yimeng Zhang, Xiaopeng Peng, Shuzheng Han, Xia Zheng, Dingyi Fang, Xiaojiang ChenarXiv 2024 · DOI

TL;DR

This paper introduces MS-DCDA, a novel multi-source domain adaptation framework that significantly improves EEG-based emotion recognition across different subjects and sessions. By combining fine-grained class-aware contrastive learning with a dynamically balanced loss function, the model achieves state-of-the-art accuracy on standard benchmarks while identifying the frontal and parietal lobes as the most emotionally sensitive regions of the brain.

What Problem Does This Paper Address?

Reading emotions from brainwaves (EEG) is a major goal for human-computer interfaces, personalized medicine, and mental health tech. However, EEG signals are notoriously "noisy" and non-stationary—meaning brainwave patterns change drastically from person to person (cross-subject) and even within the same person over different days or sessions (cross-session).

Traditional Single-Source Domain Adaptation (SS-DA) lumps all training subjects into one massive source domain, which wipes out individual nuances. On the other hand, existing Multi-Source Domain Adaptation (MS-DA) methods try to align a target subject with individual sources but often rely on coarse, global alignments. This can lead to a poor balance between making features transferable across domains and keeping them distinct enough to classify actual emotions accurately.

Methods

The authors propose Multi-Source Dynamic Contrastive Domain Adaptation (MS-DCDA) to tackle these cross-domain shifts through three key architectural innovations:

  1. Dual-Target Alignment (Individual + Ensemble): Instead of just matching the target subject to individual sources, MS-DCDA maps the target to individual sources and a global "Source Ensemble" (SE). This dual-layer approach captures both subject-specific nuances and generalized domain knowledge.
  2. Sub-domain Contrastive Discrepancy (SCD): Rather than globally aligning datasets (which can accidentally map a "happy" source feature to a "sad" target feature), SCD enforces fine-grained, class-aware alignment. It uses target pseudo-labels during training to ensure that identical emotional states are clustered tightly together across domains, while different emotional states are pushed apart.
  3. Dynamic Weighting ($\tau$): The optimal balance between domain alignment (transferability) and class separation (discriminability) shifts during training. MS-DCDA uses a dynamic coefficient ($\tau$) calculated using Linear Discriminant Analysis (LDA) and Maximum Mean Discrepancy (MMD) to automatically balance these competing objectives on the fly.
MS-DCDA Network Architecture

Datasets

The model was rigorously evaluated on two widely recognized benchmarks from Shanghai Jiao Tong University:

  • SEED: Features EEG data from 15 subjects exposed to movie clips inducing 3 emotional states (positive, neutral, negative) across 3 separate sessions.
  • SEED-IV: Features EEG data from the same 15 subjects but maps to 4 emotional states (neutral, sad, fear, happy) across 3 sessions.

Key Insights and Ideas

  • The Power of the Ensemble: Merging individual source alignment with an ensemble source alignment acts as an effective regularizer. It prevents the network from overfitting to the quirks of any single subject while maintaining global consistency.
  • Class-Awareness is Crucial: Global domain alignment often leads to "class blending" where the boundaries between distinct emotions get blurred. Fine-grained sub-domain alignment preserves the inter-class margins.
  • Dynamic Equilibrium beats Static Tuning: Fixed hyperparameter weights for loss functions usually yield suboptimal models. Letting the network dynamically prioritize transferability early on and discriminability later on yields much cleaner feature representations.
  • Mapping Emotional Brain Regions: Through electrode-masking ablation studies, the authors mapped emotional sensitivity to specific brain regions, finding that the frontal and parietal lobes are significantly more active and reliable for emotion classification than the occipital and temporal lobes.

Key Results

MS-DCDA achieved state-of-the-art performance across both datasets, outperforming both single-source and multi-source baseline models.

Cross-Subject Performance

  • SEED: Achieved a peak accuracy of 90.84%, outperforming the runner-up method by 1.5%.
  • SEED-IV: Achieved a peak accuracy of 78.49%, outperforming the runner-up by 2.4%.
Table 3 Cross-Subject Results of Three LOO Rounds (ACC-best)

Cross-Session Performance

  • SEED: Reached a top accuracy of 95.82% (with an average of 93.92% across sessions).
  • SEED-IV: Reached a top accuracy of 82.25% (with an average of 77.53% across sessions).

Limitations and Future Work

  • Linear Complexity Scaling: Because MS-DCDA assigns an independent branch to each source domain, its computational complexity grows linearly with the number of subjects. For massive datasets with hundreds of subjects, this becomes a bottleneck. The authors suggest exploring dynamic routing or a Mixture-of-Experts (MoE) architecture to keep training costs down.
  • Untapped Spatial Features: The current pipeline relies heavily on frequency-domain Differential Entropy (DE) features but ignores the physical, spatial coordinates of the electrodes on the scalp. Incorporating spatial-temporal graph neural networks (GNNs) or spatial attention mechanisms represents a promising future direction.

Summary updated

BibTeX
@misc{xiao2024multi,
  author = {Yun Xiao and Yimeng Zhang and Xiaopeng Peng and Shuzheng Han and Xia Zheng and Dingyi Fang and Xiaojiang Chen},
  title = {{Multi-Source EEG Emotion Recognition via Dynamic Contrastive Domain Adaptation}},
  year = {2024},
  eprint = {2408.10235},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.10235},
}
Figure