Ensemble of transformers for depression emotion classification


Creative Commons License

Kasap F., İLHAN OMURCA S., Ekinci E.

Cognitive Neurodynamics, cilt.20, sa.1, 2026 (SCI-Expanded, Scopus) identifier identifier identifier

  • Yayın Türü: Makale / Tam Makale
  • Cilt numarası: 20 Sayı: 1
  • Basım Tarihi: 2026
  • Doi Numarası: 10.1007/s11571-026-10444-0
  • Dergi Adı: Cognitive Neurodynamics
  • Derginin Tarandığı İndeksler: Science Citation Index Expanded (SCI-EXPANDED), Scopus, EMBASE, Psycinfo
  • Anahtar Kelimeler: AI in psychology, Depression, Encoder-only transformers, Ensemble learning, Large language models, Multi-label classification, Transformer-based ensemble
  • Açık Arşiv Koleksiyonu: AVESİS Açık Erişim Koleksiyonu
  • Kocaeli Üniversitesi Adresli: Evet

Özet

People act on their emotions even in the most rational decision-making mechanisms in their lives. Emotions are powerful motivators that profoundly influence human behavior and social interactions. Human emotions tend to co-occur. Analyzing emotions with this co-occurrence in mind may lead to more accurate insights for addressing various mental health issues. A good example of this is the analysis of depression, which often involves a complex interplay of multiple interrelated emotions rather than a single, isolated feeling. This paper provides a comprehensive analysis of co-occurring emotions in depression by using artificial intelligence methods. We have proposed a transformer-based ensemble model that predicts multiple emotional tendencies associated with depression based on the public DepressionEmo dataset of user posts associated with depression. DistilBERT, RoBERTa, Mental-BERT, Mental-RoBERTa, and DeBERTa are used as pre-trained transformers. The heterogeneous ensemble learning architecture developed using stacking and majority voting methods improves the individual prediction performance of the transformer architectures. Our study is the first to apply the transformer ensemble to the DepressionEmo dataset to identify multiple emotions in an individual’s textual psychological posts. Experimental results demonstrate that ensemble-based approaches provide more consistently improved performance compared to individual transformers, particularly in terms of macro-averaged F1 scores under conditions of class imbalance. Among ensemble learning approaches, the highest performance was achieved with Stacking-FFNN, which achieved 0.8121. These ensemble approaches consistently outperformed the strongest individual model, demonstrating the effectiveness of ensemble learning in improving depression emotion classification.