Fusion of EEG feature extraction and CNN-MSTA transformer emotion recognition classification model

Wai Ching Chu, Hongbo Wen, Huanyu Liu, Xinghua Zhang, Jing GuoScientific 2025

Abstract

A multi-scale sparse temporal autoencoder Transformer (3D-CNN-MSTA-Transformer) is proposed for sentiment classification of EEG signals. The overall framework of this model includes raw EEG data input, 3D feature extraction, CNN feature transformation module, improved MSTA Transformer classification, and classification result output. Extracting three-dimensional features to mine information with emotion recognition value from EEG data; The CNN feature transformation module decomposes 3D convolution kernels to reduce computational costs; The MSTA Transformer classification module consists of four parts: data preparation, sparse time block autoencoder, hidden space embedding, and temporal Transformer. It utilizes multi head self-attention mechanism to achieve sentiment classification. The experiment showed that compared with the classic models ResNet-34, ShuffleNet V2, and MobileNet V2 on the SEED, SEED-IV-1, and SEED-IV-2 datasets, the accuracy, recall, specificity, and F1 score of our method were significantly superior on the three datasets, verifying the effectiveness of the proposed algorithm.

Introduction

Recognizing human emotions through Electroencephalogram (EEG) signals is a cornerstone of advanced human-computer interaction, mental health monitoring, and intelligent education. However, EEG data presents significant challenges: it is non-stationary, noisy, and spans spatial, temporal, and frequency dimensions. Existing models often struggle to balance the fusion of these dimensions with computational efficiency. High-accuracy models are often too computationally heavy for real-time applications, while lightweight alternatives often sacrifice precision. This research introduces a hybrid model designed to break this trade-off by being both highly accurate and computationally efficient.

Proposed Methodology

The proposed 3D-CNN-MSTA-Transformer model addresses these challenges through a three-stage pipeline:

  1. 3D Feature Extraction: EEG data is organized into a 3D matrix across five frequency bands. Notably, the inclusion of the high-frequency band (51–75Hz) provides stable, valuable information often overlooked in previous research.
  2. Pseudo-3D CNN Module: To optimize speed, standard 3D convolution kernels are decomposed into 2D (spatial) and 1D (temporal/frequency) kernels. This "pseudo-3D" approach captures multi-dimensional relationships without the high computational cost of true 3D convolutions.
  3. MSTA Transformer: This core component uses a Multi-scale Sparse Temporal Autoencoder (SAE) to create compressed "hidden space" embeddings. A Temporal Transformer then applies multi-head self-attention to map long-term dependencies for final classification.
Overall framework of the 3D-CNN-MSTA-Transformer model, illustrating the flow from raw EEG signals to final emotion classification.

The model maps these features into established psychological frameworks, such as the Circular Emotion Model, which categorizes states based on valence and arousal dimensions.

The Circular Emotion Model used to map EEG features to specific emotional states across valence and arousal dimensions.

Experimental Results

The model was evaluated on the SEED and SEED-IV benchmarks from Shanghai Jiao Tong University. Key findings include:

  • Superior Accuracy: On the SEED dataset, the proposed method reached 92.73% accuracy, significantly outperforming ResNet-34 (88.27%).
  • Enhanced Efficiency: The model's computation time was approximately 3.006 seconds on SEED, nearly 3x faster than ResNet-34 (8.524s) and significantly faster than a standard Transformer (7.246s).
  • Robustness: High F1-scores across multiple datasets verify the model's ability to generalize across different emotional distributions and act as a natural "denoiser" for messy EEG signals via sparse constraints.

Conclusion and Future Work

The 3D-CNN-MSTA-Transformer provides a powerful, efficient solution for EEG-based emotion recognition. By leveraging sparse constraints and pseudo-3D convolutions, it achieves state-of-the-art performance while maintaining low computational overhead. Future research will focus on multi-modal fusion—combining EEG with other physiological signals like heart rate (ECG)—to better distinguish between similar emotional states like fear and sadness, and further optimizing the pipeline for real-time use in wearable devices.

Summary updated

BibTeX
@inproceedings{chu2025fusion,
  author = {Wai Ching Chu and Hongbo Wen and Huanyu Liu and Xinghua Zhang and Jing Guo},
  title = {{Fusion of EEG feature extraction and CNN-MSTA transformer emotion recognition classification model}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41598-025-28470-z},
}
Figure