EEG-based emotion recognition using graph convolutional neural network with dual attention mechanism

Wei Chen, Yuan Liao, Rui Dai, Yuanlin Dong, Liya HuangFrontiers in Computational Neuroscience 2024

Abstract

EEG-based emotion recognition is becoming crucial in brain-computer interfaces (BCI). Currently, most research focuses on improving accuracy while neglecting the interpretability of models. This paper proposes a method named Dual Attention Mechanism Graph Convolutional Neural Network (DAMGCN) to analyze the impact of different brain regions and signal frequency bands on emotion generation. Specifically, we utilize graph convolutional neural networks to model the brain network as a graph to extract representative spatial features. Furthermore, we employ the self-attention mechanism of the Transformer model to allocate more electrode channel weights and signal frequency band weights to important brain regions and frequency bands. The visualization of the attention mechanism clearly demonstrates the weight allocation learned by DAMGCN. During performance evaluation on the DEAP, SEED, and SEED-IV datasets, we achieved subject-dependent accuracy of 99.42% and subject-independent accuracy of 73.21% on the SEED dataset, superior to most existing models.

Introduction

Recognizing human emotion from electroencephalogram (EEG) signals is a significant challenge in Brain-Computer Interfaces (BCIs) and affective computing. While deep learning has improved classification accuracy, existing models often overlook the complex 3D spatial topology of the brain, treating EEG channels as independent data streams. Furthermore, many models operate as "black boxes," lacking interpretability regarding which brain regions or signal frequencies drive emotional predictions. This paper introduces the Dual Attention Mechanism Graph Convolutional Neural Network (DAMGCN) to address these gaps by combining high accuracy with neuroscientific interpretability.

Methods

The DAMGCN architecture consists of four primary functional blocks designed to capture spatial and spectral features of EEG data.

1. Feature Extraction and Graph Construction

The model extracts Differential Entropy (DE) features from EEG signals across five frequency bands ($\delta, \theta, \alpha, \beta, \gamma$). To preserve spatial information, a 3D spatial adjacency matrix is constructed based on the physical coordinates of the electrodes on the scalp.

2. Graph Convolution Block

Standard Graph Convolutional Network (GCN) layers, enhanced with residual connections, aggregate spatial topological features using the 3D adjacency matrix. This allows the model to learn the physical network relationships within the brain.

The DAMGCN architecture: Feature Extraction and Graph Convolution blocks.

3. Dual Attention Mechanism

The core novelty lies in the application of Transformer-based multi-head self-attention across two dimensions:

  • Electrode Channel Attention: Dynamically assigns higher weights to electrode channels corresponding to active brain regions during emotional states.
  • Frequency Band Attention: Amplifies the impact of emotion-relevant frequency bands while suppressing noise.

4. Classifier Block

Final emotion predictions are generated through fully connected layers utilizing GELU activation functions.

The DAMGCN architecture: Dual Channel Attention Mechanism and Classifier blocks.

Results

The model was evaluated on three benchmark datasets: DEAP, SEED, and SEED-IV.

Subject-Dependent Performance

In subject-dependent experiments, DAMGCN achieved state-of-the-art results:

  • SEED (3-class): 99.42% average accuracy.
  • SEED-IV (4-class): 96.86% average accuracy.
  • DEAP (2-class): 96.96% (Valence), 97.17% (Arousal), and 97.50% (Dominance).

Subject-Independent Performance

In the more challenging subject-independent tasks (leave-one-subject-out), the model maintained competitive performance, outperforming most baselines with 73.21% on SEED, 68.22% on SEED-IV, and approximately 64.6% on DEAP. Ablation studies confirmed the importance of the dual attention and GCN modules; removing them reduced SEED accuracy from 99.42% to 80.46%.

Discussion and Interpretability

A key strength of DAMGCN is its alignment with neuroscientific findings. Visualization of attention weights revealed that the $\delta$ (delta) band, associated with sleep, consistently received the lowest weights (<0.2) during emotional tasks. Spatially, the frontal, temporal, and occipital lobes showed the highest node weight coefficients, identifying them as primary hubs for emotional activity.

Despite its success, the model faces challenges such as computational intensity and the risk of local optima during training. Future work will explore contrastive and transfer learning to improve cross-subject generalization, bridging the gap between subject-dependent and subject-independent performance.

Summary updated

BibTeX
@inproceedings{chen2024eeg,
  author = {Wei Chen and Yuan Liao and Rui Dai and Yuanlin Dong and Liya Huang},
  title = {{EEG-based emotion recognition using graph convolutional neural network with dual attention mechanism}},
  booktitle = {Frontiers in Computational Neuroscience},
  year = {2024},
  doi = {10.3389/fncom.2024.1416494},
}
Figure