EEG Signal Emotion Recognition Using Spectrogram Image Generation and Vision Mamba 2 for Intelligent Affective State Detection
Abstract
Emotion recognition has become a prominent area of research in affective computing, human-computer interaction, and healthcare. It has the potential to enhance mental health assessment, adaptive systems, stress monitoring, and personalized treatment strategies. Among several physiological signals used for emotion analysis, Electroencephalography (EEG) is widely employed for its capability to directly measure the brain's electrical activity. It offers reliable and objective insights into emotional states. However, EEG-based emotion recognition remains challenging because of signal instability, subject-specific variations, noise interference, and complex spatial-temporal patterns associated with emotional responses. To address this limitation, this work develops an intelligent emotion recognition framework capable of extracting highly discriminative emotional features and improving classification performance. EEG signals are first obtained from a benchmark dataset and then converted into spectrogram images using the Short-Time Fourier Transform (STFT). The STFT enables simultaneous representation of temporal and frequency-domain information. These spectrograms are subsequently processed by a Vision Mamba 2 (ViM2) model. This model effectively captures long-range contextual dependencies and complex feature representations for accurate emotion recognition. Finally, the proposed framework generates the recognized emotional state, and its performance is evaluated through extensive comparisons with existing deep learning techniques. Thus, the model demonstrates its effectiveness and superior recognition capability.