[Paper Review] Spatial-temporal Transformers for EEG Emotion Recognition
This paper proposes a Spatial-Temporal Transformer framework (EeT) for EEG-based emotion recognition, leveraging self-attention mechanisms to model both spatial electrode relationships and temporal dynamics simultaneously. The simultaneous spatial-temporal attention variant achieves state-of-the-art accuracy of 96.28% on the SEED dataset and 93.34% on the DEAP dataset, demonstrating that joint modeling of EEG's spatiotemporal features significantly improves emotion recognition performance.
Electroencephalography (EEG) is a popular and effective tool for emotion recognition. However, the propagation mechanisms of EEG in the human brain and its intrinsic correlation with emotions are still obscure to researchers. This work proposes four variant transformer frameworks~(spatial attention, temporal attention, sequential spatial-temporal attention and simultaneous spatial-temporal attention) for EEG emotion recognition to explore the relationship between emotion and spatial-temporal EEG features. Specifically, spatial attention and temporal attention are to learn the topological structure information and time-varying EEG characteristics for emotion recognition respectively. Sequential spatial-temporal attention does the spatial attention within a one-second segment and temporal attention within one sample sequentially to explore the influence degree of emotional stimulation on EEG signals of diverse EEG electrodes in the same temporal segment. The simultaneous spatial-temporal attention, whose spatial and temporal attention are performed simultaneously, is used to model the relationship between different spatial features in different time segments. The experimental results demonstrate that simultaneous spatial-temporal attention leads to the best emotion recognition accuracy among the design choices, indicating modeling the correlation of spatial and temporal features of EEG signals is significant to emotion recognition.
Motivation & Objective
- To investigate the impact of spatial and temporal EEG features on emotion recognition performance.
- To address the limitations of CNNs and RNNs in capturing global spatial-temporal dependencies in multi-channel EEG signals.
- To explore whether modeling spatial and temporal correlations simultaneously improves emotion recognition accuracy.
- To develop a transformer-based framework that explicitly models the spatiotemporal dynamics of EEG signals for emotion classification.
- To compare different attention mechanisms—spatial, temporal, sequential, and simultaneous—to identify the most effective architecture for EEG emotion recognition.
Proposed method
- Designs four variants of a transformer-based EEG emotion recognition model: spatial attention, temporal attention, sequential spatial-temporal attention, and simultaneous spatial-temporal attention.
- Uses self-attention mechanisms to learn spatial relationships among EEG electrodes and temporal dependencies across time segments.
- Applies a multi-head attention mechanism to capture long-range dependencies in both spatial and temporal dimensions.
- Employs a dual-branch architecture to process EEG signals from both hemispheres separately, enhancing discriminative representation learning.
- Integrates a deep neural network (DNN) and classification head to map learned features to emotion labels using cross-entropy loss.
- Utilizes t-SNE visualization to analyze the discriminative quality of high-level features learned by the model.

Experimental results
Research questions
- RQ1How do spatial and temporal EEG features individually contribute to emotion recognition performance?
- RQ2What is the relative impact of modeling spatial and temporal correlations jointly versus sequentially or independently?
- RQ3Does simultaneous modeling of spatial and temporal features lead to better emotion recognition accuracy than sequential or single-modality attention?
- RQ4How does the proposed transformer-based framework compare to existing CNN- and RNN-based models in EEG emotion recognition?
- RQ5What is the contribution of spatial versus temporal attention in capturing emotion-related EEG patterns?
Key findings
- The simultaneous spatial-temporal attention (S+T) variant achieved the highest accuracy of 96.28% on the SEED dataset and 93.34% on the DEAP dataset, outperforming all other variants and state-of-the-art models.
- The S+T attention mechanism improved accuracy by 4.85% and 5.42% over 3D-CNN on DEAP for arousal and valence, respectively.
- The S+T variant reduced standard deviation by 0.59% on SEED and 0.59% on SEED-IV compared to 3D-CNN with PST-Attention, indicating higher model robustness.
- The ablation study showed that joint modeling (S+T) improved performance by 0.63% and 2.96% over the second-best variant (S-T) on SEED and SEED-IV, respectively.
- Spatial attention alone outperformed temporal attention by 0.4% and 0.94% on SEED and SEED-IV, suggesting spatial features carry more emotion-related information.
- t-SNE visualization confirmed that features learned with S+T attention were more discriminative, with greater inter-class separation in the embedding space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.