Abstract
This study presents an ensemble transformer framework for detecting depression-related emotions and classifying their severity in social media text. It addresses the need for scalable and trustworthy AI solutions in mental health by integrating four transformer models. The DepTformer-XAI-SV model uses a weighted soft-voting mechanism based on validation macro-F1 scores to improve accuracy and incorporates LIME to highlight key linguistic features associated with depression. The framework is evaluated on two benchmark data-sets: DepressionEmo, with eight emotion classes, and the merged depression severity detection (MDSD), with four severity levels, both sourced from social media. To address class imbalance, we use class-weighted cross-entropy, stratified k-fold splits, and minority-aware sampling. Results show that the model surpasses individual transformer models and traditional methods, achieving macro-F1 scores of 80.44% for DepressionEmo and 79.88% for MDSD, significantly improving minority class detection. Lastly, a web application has been developed for interactive and interpretable inference.
| Original language | English |
|---|---|
| Article number | 114605 |
| Number of pages | 38 |
| Journal | iScience |
| Volume | 29 |
| Issue number | 2 |
| DOIs | |
| Publication status | Published - 20 Feb 2026 |
Keywords
- CLASSIFICATION
- LEVEL
- RISK
Fingerprint
Dive into the research topics of 'Ensemble transformer with post-hoc explanations for depression emotion and severity detection'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver