MVGT: A Multi-view Graph Transformer Based on Spatial Relations for EEG Emotion Recognition

Yanjie Cui, Xiaohong Liu, Jing Liang, Yamin Fu · DOI

Abstract

Electroencephalography (EEG), a technique that records electrical activity from the scalp using electrodes, plays a vital role in affective computing. However, fully utilizing the multi-domain characteristics of EEG signals remains a significant challenge. Traditional single-perspective analyses often fail to capture the complex interplay of temporal, frequency, and spatial dimensions in EEG data. To address this, we introduce a multi-view graph transformer (MVGT) based on spatial relations that integrates information across three domains: temporal dynamics from continuous series, frequency features extracted from frequency bands, and inter-channel relationships captured through several spatial encodings. This comprehensive approach allows model to capture the nuanced properties inherent in EEG signals, enhancing its flexibility and representational power. Evaluation on publicly available datasets demonstrates that MVGT surpasses state-of-the-art methods in performance. The results highlight its ability to extract multi-domain information and effectively model inter-channel relationships, showcasing its potential for EEG-based emotion recognition tasks.

Introduction: Recognizing Emotions from EEG

Recognizing emotions from Electroencephalography (EEG) signals is a complex multi-domain challenge. EEG data contains vital information across three primary dimensions: temporal (changes over time), frequency (power of different brain waves), and spatial (active scalp regions and their communication).

Existing models often struggle to balance these dimensions. Recurrent Neural Networks (RNNs) are computationally expensive due to their serial nature; Convolutional Neural Networks (CNNs) possess limited receptive fields; and standard Graph Neural Networks (GNNs) frequently suffer from "over-smoothing," where features from different brain regions become indistinguishable. Furthermore, many models fail to account for the physical, geometric reality of electrode placement.

Methods: The MVGT Architecture

The proposed Multi-view Graph Transformer (MVGT) addresses these issues by using a Graph Transformer backbone to integrate all three domains. The architecture features several key innovations:

  • Inverted Temporal Embedding: Instead of treating individual time points as tokens, MVGT embeds entire continuous time segments. This allows the model to use Feed-Forward Networks (FFNs) to extract stable temporal patterns for each channel independently, increasing robustness to time-unaligned events.
  • Multi-View Spatial Encoding: To provide the model with geographical context, three specific encodings are introduced:
  • Brain Region Encoding (BRE): Groups electrodes based on anatomical lobes (e.g., Frontal, Temporal).
  • Centrality Encoding (CE): Identifies electrodes that act as "hubs" of activity.
  • Geometric Structure Encoding (GSE): Uses Gaussian basis functions to calculate physical Euclidean distances between electrodes, injecting this as a bias into the attention mechanism to model "volume conduction."
  • Iterative Refinement (Recycling): The model recursively feeds its output back into itself to refine its understanding of the emotional state.
The MVGT architecture (left) with detailed views of the Encoding block (a) and the Multi-Head Attention block (b) incorporating spatial encodings.

Key Insights: The Role of Prior Knowledge

A central insight of this research is that "blank slate" transformers are insufficient for complex EEG tasks. By incorporating anatomical structures—such as the symmetry between left and right hemispheres—into the BRE schemes, the model significantly improved its ability to distinguish emotional valence (positive vs. negative).

Four brain region partitioning schemes (LOBE, GENERAL, FRONTAL, HEMISPHERE) used to provide anatomical priors for the Brain Region Encoding (BRE) module.

Additionally, the GSE component emerged as the most impactful spatial feature. By informing the model of the physical proximity of electrodes, it could more accurately represent how electrical signals spread through brain tissue.

Key Results and Performance

MVGT was evaluated on two public datasets: SEED (three emotional states) and SEED-IV (four emotional states). The model consistently outperformed recent state-of-the-art methods, including DGCNN and RGNN:

  • SEED Dataset: Achieved a peak accuracy of 96.55% using the "FRONTAL" region scheme, a 1.23% improvement over previous benchmarks.
  • SEED-IV Dataset: Achieved 94.03% accuracy using the "GENERAL" scheme, surpassing the best baseline by 1.21%.

Ablation studies confirmed that removing the Geometric Structure Encoding (GSE) caused the largest performance drop, proving that spatial geometry is a critical component for EEG-based transformers.

Conclusion

The MVGT model demonstrates that effectively modeling the distributed nature of emotional processing requires a multi-domain approach that respects physical brain structure. While the current Brain Region Encoding schemes are tailored for affective computing, future work will focus on making these spatial partitions more adaptive for a wider variety of neurological tasks beyond emotion recognition.

Summary updated

BibTeX
@misc{cui2024mvgt,
  author = {Yanjie Cui and Xiaohong Liu and Jing Liang and Yamin Fu},
  title = {{MVGT: A Multi-view Graph Transformer Based on Spatial Relations for EEG Emotion Recognition}},
  year = {2024},
  eprint = {2407.03131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.03131},
}
Figure