Abstract
In recent years, there has been a surge of interest in research on automatic mental health detection (MHD) from social media data leveraging advances in natural language processing and machine learning techniques. While significant progress has been achieved in this interdisciplinary research area, the vast majority of work has treated MHD as a binary classification task. The multiclass classification setup is, however, essential if we are to uncover the subtle differences among the statistical patterns of language use associated with particular mental health conditions. Here, we report on experiments aimed at predicting six conditions (anxiety, attention deficit hyperactivity disorder, bipolar disorder, post-traumatic stress disorder, depression, and psychological stress) from Reddit social media posts. We explore and compare the performance of hybrid and ensemble models leveraging transformer-based architectures (BERT and RoBERTa) and BiLSTM neural networks trained on within-text distributions of a diverse set of linguistic features. This set encompasses measures of syntactic complexity, lexical sophistication and diversity, readability, and register-specific ngram frequencies, as well as sentiment and emotion lexicons. In addition, we conduct feature ablation experiments to investigate which types of features are most indicative of particular mental health conditions.
Introduction: Beyond Binary Classification
Traditional Automatic Mental Health Detection (MHD) often simplifies the diagnostic landscape into binary categories: "healthy" versus "ill." However, clinical reality is far more complex, characterized by overlapping symptoms and comorbid conditions. To move toward more nuanced diagnostic tools, researchers must distinguish between specific disorders such as Bipolar Disorder and Depression. This study addresses the multiclass challenge by identifying subtle linguistic patterns across six conditions: Anxiety, ADHD, Bipolar Disorder, PTSD, Depression, and Psychological Stress.
Methodology: Hybrid and Ensemble Architectures
The research evaluates several architectures designed to capture the nuances of multiclass prediction:
- Transformer Baselines: Standard BERT and RoBERTa models serve as the foundation.
- Psyling-BiLSTM: A 4-layer Bidirectional Long Short-Term Memory (BiLSTM) network trained on 436 engineered linguistic features, including morpho-syntax, lexical richness, and readability.
- Hybrid Model: A dual-branch architecture that integrates raw text processing via a pre-trained language model with structured linguistic feature analysis via BiLSTM.
- Stacking Ensemble: A meta-model (Logistic Regression) that aggregates predictions from the individual models to produce a final, robust decision.
To interpret these models, the team utilized SP-LIME (Submodular Pick Local Interpretable Model-agnostic Explanations) for feature ablation, determining which linguistic categories were most informative for each condition.
Data and Preprocessing
The study utilized two primary Reddit-based sources: the SMHD (Self-Reported Mental Health Diagnoses) dataset and Dreaddit, which focuses on psychological stress. A critical preprocessing step involved removing "cheating" terms—explicit mentions of disorders—forcing the models to rely on underlying linguistic style rather than simple keywords.
Results and Discussion
The Stacking Ensemble emerged as the top performer, achieving a macro F1 score of 31.4%, a 3.4% improvement over the BERT baseline. Performance varied significantly across classes, as visualized in the confusion matrix below.
Key Insights
- Stress vs. Chronic Disorders: The models were exceptionally good at identifying "Stress" (~77% F1) and rarely confused it with clinical disorders, suggesting its linguistic fingerprint is fundamentally different.
- General Features Over Specialized Lexicons: Surprisingly, readability and lexical richness were more predictive than specialized sentiment or emotion lexicons (e.g., LIWC), which are common in MHD research.
- Linguistic Overlap Mirrors Clinical Reality: The frequent confusion between Depression, ADHD, and Bipolar disorder reflects the high rates of comorbidity seen in clinical psychiatry. The model's struggle with PTSD (~1% F1) further highlights the challenge of isolating signals in highly overlapping conditions.
Conclusion and Future Work
While the hybrid approach shows promise by integrating structured linguistic data with deep learning, significant challenges remain in distinguishing highly comorbid disorders. Future research will explore "textual cohesion"—how ideas link across sentences—and incorporate behavioral data, such as posting frequency and temporal patterns, to provide a more holistic view of mental health status on social media.
Summary updated