EmT: A Novel Transformer for Generalized Cross-subject EEG Emotion Recognition

Yi Ding, Chengxuan Tong, Shuailei Zhang, Muyun Jiang, Yong Li +2 more
6/26/2024
cs.LGeess.SP

Official code: yi-ding-cs/EmT (121 stars, last commit 2026-01-08).

Abstract

Integrating prior knowledge of neurophysiology into neural network architecture enhances the performance of emotion decoding. While numerous techniques emphasize learning spatial and short-term temporal patterns, there has been limited emphasis on capturing the vital long-term contextual information associated with emotional cognitive processes. In order to address this discrepancy, we introduce a novel transformer model called emotion transformer (EmT). EmT is designed to excel in both generalized cross-subject EEG emotion classification and regression tasks. In EmT, EEG signals are transformed into a temporal graph format, creating a sequence of EEG feature graphs using a temporal graph construction module (TGC). A novel residual multi-view pyramid GCN module (RMPG) is then proposed to learn dynamic graph representations for each EEG feature graph within the series, and the learned representations of each graph are fused into one token. Furthermore, we design a temporal contextual transformer module (TCT) with two types of token mixers to learn the temporal contextual information. Finally, the task-specific output module (TSO) generates the desired outputs. Experiments on four publicly available datasets show that EmT achieves higher results than the baseline methods for both EEG emotion classification and regression tasks. The code is available at https://github.com/yi-ding-cs/EmT.

View on arXivView PDF

Code Implementations(1)

yi-ding-cs/EmTOfficial100%

[TNNLS-2025] This is the pytorch implementation of EmT, a graph-transformer for EEG emotion recognition.

12110PythonJun 26, 20249 months agoNOASSERTION
classificationeegemotion-recognitiongraph-transformerregression

Similar Papers

Cite this paper

@article{ding2024emt,
  title  = {EmT: A Novel Transformer for Generalized Cross-subject EEG Emotion Recognition},
  author = {Yi Ding and Chengxuan Tong and Shuailei Zhang and Muyun Jiang and Yong Li and Kevin Lim Jun Liang and Cuntai Guan},
  year   = {2024},
  eprint = {2406.18345},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.18345v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.18345.svg)](https://codeofpaper.com/paper/2406.18345)

Discussion