A Novel Fourier Adjacency Transformer for Advanced EEG Emotion Recognition

Jinfeng Wang, Yanhao Huang, Sifan Song, Boqian Wang, Jionglong Su, Jiaman Ding

TL;DR

Researchers have developed the Fourier Adjacency Transformer (FAT), a new deep learning framework that significantly improves how machines "read" emotions from brainwaves (EEG). By decoupling periodic brain rhythms from aperiodic noise and incorporating learnable "brain connectivity" maps directly into the attention mechanism, the model achieves a state-of-the-art accuracy boost of up to 6.5% over existing methods.

What Problem Does This Paper Address?

Recognizing emotions via Electroencephalography (EEG) is a "holy grail" for affective computing and brain-computer interfaces (BCIs). However, EEG data is notoriously difficult to work with. It is non-stationary (its statistical properties change over time), has a very low signal-to-noise ratio, and varies significantly between different people.

Standard deep learning tools like CNNs (good at spatial patterns) and RNNs (good at sequences) often struggle to capture the full complexity of the brain. Even modern Transformers, while powerful, often lack the inductive bias—the "prior knowledge"—about how brain regions are physically and functionally connected. This paper aims to bridge that gap by combining frequency-domain analysis with structural graph modeling.

Methods

The authors introduce two primary innovations within the Transformer architecture:

  1. Fourier Analytic Linear (FAL) Layer: Standard neural network layers often mix all signal components together. FAL explicitly separates the signal into two streams:

  2. Periodic: Uses sine and cosine basis functions to capture the rhythmic oscillations (alpha, beta, gamma waves) essential to brain activity.

  3. Aperiodic: Uses a purely linear transformation to handle the "background" signal.
  4. Key Difference: Unlike previous "Fourier Analysis Networks" (FAN), FAL keeps the aperiodic part linear, which the authors found works much better within the Transformer's Query-Key-Value (QKV) structure.
  5. Fourier Adjacent Attention (FAA): In a standard Transformer, "attention" is calculated on the fly for every sample. FAA adds a learnable adjacency matrix to this process. This matrix acts as a persistent map of universal inter-channel correlations (how different parts of the brain usually talk to each other), which is then combined with the sample-specific data. This provides the "inductive bias" that standard Transformers lack.

The final model, the Fourier Adjacency Transformer (FAT), replaces standard Multi-Head Self-Attention with this new FAA module.

Datasets

The model was rigorously tested on five major benchmarks:

  • SEED Family: SEED (3-class), SEED-IV (4-class), SEED-V (5-class), and SEED-VII (7-class).
  • DEAP: A widely recognized dataset for Valence and Arousal classification.

The researchers evaluated the model using both subject-dependent (training and testing on the same group) and subject-independent (Leave-One-Subject-Out) protocols to test generalization.

Key Insights and Ideas

  • Decoupling is Key: By separating periodic rhythms from aperiodic noise before the attention mechanism, the model can focus on the most emotionally relevant features of the EEG signal without being distracted by non-stationary noise.
  • Linearity Matters: A subtle but important finding was that keeping the aperiodic component linear (the "Identity Function" in FAL) preserved the mapping capability of the Transformer better than using non-linear activations.
  • Structural Priors: The addition of the adjacency matrix helps stabilize the model. It effectively tells the Transformer, "Regardless of this specific person's data, we know the frontal and temporal lobes usually interact in this specific way."
  • Frequency Richness: Ablation studies showed that using "All Bands" (delta through gamma) provided the best performance, confirming that emotion is a whole-brain, multi-frequency phenomenon.

Key Results

The FAT model consistently outperformed existing State-of-the-Art (SOTA) methods:

  • Accuracy Gains: Improved recognition accuracy by approximately 6.5% on SEED-V and 6.6% on SEED-VII.
  • Generalization: In subject-independent (LOSO) tests, FAT showed superior stability, outperforming the "Conformer" (a leading architecture) by about 5% on the complex SEED-VII dataset.
  • Interpretability: Visualization of the learned adjacency matrices revealed distinct structural patterns for periodic vs. aperiodic components, proving the model was learning meaningful biological relationships between EEG channels.

Limitations and Future Work

While the results are impressive, the paper notes a few areas for growth:

  • Cognitive Integration: The authors plan to explore deeper "Fourier-based cognition," potentially looking at how these periodic features relate to specific cognitive states beyond just basic emotions.
  • Computational Complexity: While the authors mention high efficiency, the addition of Fourier transforms and dual attention matrices typically increases the parameter count, which may need optimization for real-time BCI applications.
  • Cross-Dataset Generalization: While the model generalizes well across subjects within a dataset, testing it on entirely different hardware or recording environments remains a future challenge.

Summary updated

BibTeX
@inproceedings{wang2025novel,
  author = {Jinfeng Wang and Yanhao Huang and Sifan Song and Boqian Wang and Jionglong Su and Jiaman Ding},
  title = {{A Novel Fourier Adjacency Transformer for Advanced EEG Emotion Recognition}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2025},
  doi = {10.1007/978-3-032-05162-2\_2},
}

Loading related content...

Figure