A novel Fourier Adjacency Transformer for advanced EEG emotion recognition

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

Abstract

EEG emotion recognition faces significant hurdles due to noise interference, signal nonstationarity, and the inherent complexity of brain activity which make accurately emotion classification. In this study, we present the Fourier Adjacency Transformer, a novel framework that seamlessly integrates Fourier-based periodic analysis with graph-driven structural modeling. Our method first leverages novel Fourier-inspired modules to extract periodic features from embedded EEG signals, effectively decoupling them from aperiodic components. Subsequently, we employ an adjacency attention scheme to reinforce universal inter-channel correlation patterns, coupling these patterns with their sample-based counterparts. Empirical evaluations on SEED and DEAP datasets demonstrate that our method surpasses existing state-of-the-art techniques, achieving an improvement of approximately 6.5% in recognition accuracy. By unifying periodicity and structural insights, this framework offers a promising direction for future research in EEG emotion analysis.

Introduction

Recognizing emotions via Electroencephalography (EEG) is a cornerstone of affective computing and brain-computer interfaces (BCIs). However, EEG signals are notoriously difficult to decode; they are non-stationary, possess a low signal-to-noise ratio, and exhibit high inter-subject variability. While standard deep learning architectures like CNNs and Transformers have made strides, they often lack the necessary inductive bias regarding the brain's physical and functional connectivity. This research introduces the Fourier Adjacency Transformer (FAT) to bridge this gap by combining frequency-domain decoupling with structural graph modeling.

Methodology

The FAT architecture introduces two primary innovations designed to handle the unique characteristics of EEG data: the Fourier Analytic Linear (FAL) layer and the Fourier Adjacent Attention (FAA) mechanism.

Fourier Analytic Linear (FAL) Layer

Standard neural layers often conflate periodic rhythms with aperiodic noise. The FAL layer explicitly separates these components. It uses sine and cosine basis functions to capture rhythmic oscillations (alpha, beta, gamma waves) while employing a linear transformation for the aperiodic "background" signal. Unlike previous Fourier Analysis Networks (FAN), the FAL layer maintains linearity in the aperiodic stream, which the authors found significantly improves compatibility with the Transformer's Query-Key-Value (QKV) structure.

Comparison of MLP, FAN, and the proposed FAL layer architectures.

Fourier Adjacent Attention (FAA)

In standard self-attention, correlations are calculated dynamically for each sample. FAA enhances this by incorporating a learnable adjacency matrix. This matrix serves as a persistent map of universal inter-channel correlations—essentially a structural prior of how brain regions typically interact. By combining this persistent map with sample-specific data, the model gains a stabilizing inductive bias that standard Transformers lack.

The overall FAT architecture (top) and the detailed Fourier Adjacent Attention (FAA) module (bottom).

Experimental Evaluation

Datasets and Protocols

The model was evaluated on five major benchmarks, including the SEED family (SEED, SEED-IV, SEED-V, and SEED-VII) and the DEAP dataset. Testing included both subject-dependent and subject-independent (Leave-One-Subject-Out, or LOSO) protocols to ensure robust generalization across different individuals.

Key Results

  • State-of-the-Art Performance: FAT consistently outperformed existing methods, showing accuracy gains of approximately 6.5% on SEED-V and 6.6% on SEED-VII.
  • Robust Generalization: In LOSO tests, FAT demonstrated superior stability, outperforming the leading "Conformer" architecture by roughly 5% on the complex SEED-VII dataset.
  • Interpretability: Visualizations of the learned adjacency matrices confirmed that the model identifies distinct biological relationships between EEG channels for periodic versus aperiodic signal components.

Discussion and Insights

The success of the FAT framework highlights several critical insights for EEG analysis. First, decoupling is essential: separating periodic rhythms from noise before the attention mechanism allows the model to focus on emotionally relevant features. Second, structural priors matter: the addition of the adjacency matrix effectively stabilizes the Transformer by providing a baseline for expected brain region interactions. Finally, ablation studies confirmed that utilizing the full frequency spectrum (delta through gamma) yields the best performance, reinforcing that emotion is a multi-frequency, whole-brain phenomenon.

Conclusion

The Fourier Adjacency Transformer represents a significant advancement in EEG-based emotion recognition. By unifying periodic analysis with structural connectivity maps, FAT overcomes traditional barriers of noise and non-stationarity. Future work will explore deeper Fourier-based cognitive modeling and optimize the architecture for real-time BCI applications.

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},
}
Figure