Adversarial Training based Domain Adaptation for Cross-Subject Emotion Recognition

Sungpil Woo, Muhammad Zubair, Sunhwan Lim, Daeyoung KimAdvML-Frontiers @ NeurIPS 2024

TL;DR

This paper tackles the challenge of inter-subject variability in EEG-based emotion recognition by proposing an adversarial domain adaptation method. Their approach learns domain-invariant and emotion-specific features using attention mechanisms, significantly improving generalization and accuracy on the SEED dataset.

What Problem Does This Paper Address?

Recognizing human emotions from electroencephalography (EEG) signals is a complex task. A major hurdle is the inherent variability between individuals' brain activity, meaning a model trained on one person's data might perform poorly on another's. This "inter-subject variability" leads to a "domain shift" problem, where the data distribution differs across subjects, hindering model generalization. While domain adaptation techniques aim to bridge this gap, effectively extracting features that are both invariant to the subject (domain-invariant) and specific to the emotion being expressed (emotion-specific) remains a challenge.

Methods

The core of this work is an Adversarial Training based Domain Adaptation strategy. The proposed model consists of three main components:

  1. Feature Extractor (Gf): This deep network, combining Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) layers, learns inter-relationships between EEG channels and extracts high-level representations.
  2. Attention Modules: Crucially, this model incorporates both channel-wise and feature-wise attention mechanisms. These modules adaptively highlight the most relevant EEG channels and features for emotion recognition. They also generate "peripheral features" which are domain-specific and aid the domain discriminator.
  3. Domain Discriminator (Gd): This component works adversarially with the feature extractor. Its goal is to distinguish between features from the source (training) and target (testing) subjects. By trying to "fool" the discriminator, the feature extractor is pushed to learn representations that are indistinguishable across subjects, thus achieving domain invariance.
  4. Feature Classifier (Gy): A standard classifier that uses the learned domain-invariant and emotion-specific features to predict the emotion class.

The training process involves pre-training on source data and then employing adversarial training to align source and target feature distributions using cross-entropy and binary cross-entropy losses.

Datasets

The primary dataset used for evaluation is the SEED dataset. This dataset contains EEG recordings for three emotion classes (positive, neutral, negative) from 15 subjects, elicited by movie clips. Data was preprocessed by downsampling to 200Hz and applying a bandpass filter (0-75Hz). The evaluation was conducted using a subject-independent paradigm, specifically leave-one-subject-out cross-validation (LOSOCV), where 14 subjects were used for training and the remaining subject for testing.

Key Insights and Ideas

  • Attention is Key for Both Specificity and Invariance: The paper highlights that attention mechanisms are not just for selecting relevant information but can be leveraged to disentangle emotion-specific features from domain-specific (subject-related) ones.
  • Peripheral Features Aid Domain Adaptation: The introduction of "peripheral features" (domain-specific features) from the attention modules is a novel aspect that assists the domain discriminator in its task, thereby improving the learning of domain-invariant representations.
  • Adversarial Training as a Regularizer: The adversarial loss acts as a powerful regularizer, forcing the feature extractor to produce representations that are robust to variations in subject identity.
  • Visualizing Attention Maps: The visualization of channel and feature attention masks provides compelling evidence that the model focuses on biologically relevant brain regions and discriminative features for emotion recognition.

Key Results

The proposed method achieved a significant improvement in classification accuracy on the SEED dataset compared to a baseline model.

  • Average Accuracy Improvement: The model boosted the average accuracy from 85.76% (±7.80) for the base model to 91.28% (±6.45) for the proposed model. This represents a substantial gain in generalization capability.
  • Mitigation of Domain Shift: Visualizations using t-SNE confirmed that the proposed model successfully aligns source and target domain features into a more unified cluster, demonstrating effective mitigation of domain shift.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, deep learning models with attention and adversarial training can be computationally intensive.
  • Future Work: The authors suggest future research should focus on further handling distribution shifts in source data adversarially. Additionally, investigating the connectivity between human emotion and EEG channels (electrodes) is proposed as an interesting avenue for future exploration.

Summary updated

BibTeX
@inproceedings{woo2024adversarial,
  author = {Sungpil Woo and MUHAMMAD ZUBAIR and Sunhwan Lim and Daeyoung Kim},
  title = {{Adversarial Training based Domain Adaptation for Cross-Subject Emotion Recognition}},
  booktitle = {AdvML-Frontiers @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=TLjxEcp1PK},
}
Figure