EmotionMIL: An End-to-End Multiple Instance Learning Framework for Emotion Recognition From EEG Signals
Emotion recognition from EEG signals offers significant advantages in affective computing, as EEG more accurately reflects internal emotional states than other modalities, such as facial expressions or peripheral physiological signals. Modeling and capturing subtle affective changes over time is crucial for real-world applications to achieve better human-computer interaction. However, training such models usually requires segment-level emotion labels, which are costly and may not be feasible. Assigning the overall label to all EEG segments within a trial can lead to inaccurate model training and degraded performance, as emotions evolve continuously. This highlights the need for models capable of learning from trial-wise emotion labels while capturing temporal dynamics of emotional responses within each segment because trial-wise post-stimulus labels are more accessible. To this end, we propose EmotionMIL, an end-to-end EEG-based emotion recognition framework that leverages recent advances in deep multiple instance learning (MIL). This framework enables robust emotion recognition from weakly labeled EEG signals and identifies the most prominent emotional responses. EmotionMIL captures the temporal dynamics of emotions using a retentive self-attention mechanism, which adaptively assigns weights to EEG segments based on their relevance in predicting the overall emotion label. A pseudo-bag augmentation strategy is also introduced to enhance the model's generalization ability by generating additional pseudo-bags from the original ones. Evaluated on three benchmark datasets—DEAP, DREAMER, and SEED—EmotionMIL outperforms state-of-the-art non-MIL and MIL models in both subject-dependent and subject-independent tasks, achieving superior accuracy and F1-score. Ablation study further validates the model design, while visualization results demonstrate that EmotionMIL effectively identifies both spatial EEG patterns and temporal emotional dynamics. These findings underscore EmotionMIL's potential for robust, interpretable emotion recognition, paving the way for real-world applications in emotion-aware systems. The code is available at <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/yuty2009/emotionmil</uri>.
Authors
- Feifei Qi (ORCID: https://orcid.org/0000-0001-6380-2981)
- Zhenghui Gu (ORCID: https://orcid.org/0000-0001-9365-2953)
- Jin-Gang Yu (ORCID: https://orcid.org/0000-0003-2148-2726)
- Wang Li (ORCID: https://orcid.org/0000-0003-1286-4407)
- Wei Wu (ORCID: https://orcid.org/0000-0001-8232-3564)
- Jun Xiao (ORCID: https://orcid.org/0000-0001-6354-2972)
- Yanbin He (ORCID: https://orcid.org/0000-0002-3643-5976)
- Tianyou Yu (ORCID: https://orcid.org/0000-0002-1805-5339)
- Yuanqing Li
- Zhuliang Yu
Institutions
- Shanghai Jiao Tong University (CN)
- Guangdong Work Injury Rehabilitation Hospital (CN)
- Songjiang District Central Hospital (CN)
- Guangdong University of Finance (CN)
- South China University of Technology (CN)
Publication Details
- Journal
- IEEE Transactions on Affective Computing
- Published
- 2025-06-19
- DOI
- https://doi.org/10.1109/taffc.2025.3581388
- Citations
- 2
- Primary Topic
- Emotion and Mood Recognition
- Type
- article
- Field-Weighted Citation Impact
- 4.24