Abstract
Electroencephalography (EEG)-based emotion recognition is a biosensing approach for affective brain–computer interfaces and mental-state assessment. Inter-subject variation can mix emotion-related responses with subject-dependent patterns in learned representations, complicating recognition in unseen subjects. Learning task-relevant representations requires preserving information useful for emotion recognition while limiting irrelevant content. This study proposes a soft-gated feature decomposition framework for cross-subject EEG valence recognition. A shared long short-term memory (LSTM) encoder processes one-second EEG segments, and a globally learned dimension-wise gate forms a task representation and a complementary residual. The task representation supports emotion prediction, whereas the residual is used as an auxiliary input for reconstruction during training. Feature purification combines classification and prediction-consistency constraints with Gaussian activation regularization, supported by orthogonality and joint reconstruction. For internal subject-independent validation, we applied the leave-one-subject-out (LOSO) protocol separately within the 14-channel AMIGOS and DREAMER datasets, without target-subject training data or calibration. The framework achieves valence classification accuracies of on AMIGOS and on DREAMER. Comparative results, ablation studies, and feature analysis support the reported utility of jointly regularized task representations. These findings suggest that task-oriented soft gating with joint regularization can support cross-subject emotion recognition on the evaluated datasets.