Skip to content
Conference

A Transformer-Based Approach to Valence–Arousal Prediction in Mental Health-Related Social Media Texts

Aug 2026 · International Conferences on Information Science and System · pp. 1-6 · 0 citations · 27 references

Abstract

Mental health disorders such as depression, anxiety, and attention deficit hyperactivity disorder (ADHD) are public health concerns among adolescents. Social media produces textual data reflecting users' emotional and psychological states. This research proposes a transformer-based approach for early mental health screening by predicting continuous valence and arousal from Indonesian social media texts. A dataset of 20,716 posts was compiled from Facebook and Twitter (X) on anxiety, depression, and ADHD. A selected subset of 1,036 posts was manually annotated by 10 annotators using the Self-Assessment Manikin (SAM) to validate GPT-4o-mini, achieving MAE values of 0.377 (4.72%) for valence and 0.396 (4.95%) for arousal, before annotating remaining posts. XLM-RoBERTa Large consistently outperformed XLM-RoBERTa Base, and the optimal configuration used a learning rate of 2 × 10⁻5, a test split ratio of 0.2, a training loss of 0.024, and a validation loss of 0.028. The model achieved an MAE of 0.121, an MSE of 0.026, an RMSE of 0.163, an R2 of 0.656, and a Pearson correlation of 0.813 for valence prediction. For arousal prediction, the model achieved an MAE of 0.174, an MSE of 0.062, an RMSE of 0.249, an R2 of 0.607, and a Pearson correlation of 0.785. Valence–arousal distributions showed diverse affective characteristics across mental health categories. Depression showed low-arousal negative emotions, while anxiety and ADHD showed greater arousal variation despite similarly negative valence. The model was deployed as a web-based application with SHAP-based explanations and cosine similarity-based affective profile comparison for interpretable early mental health screening.

View source

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.