Explainable Text-Based Depression and Suicide Risk Prediction from Social Media Using Deep Learning and Graph Neural Networks
Objectives: The rise in the frequency of mental health concerns (depression and suicide) expressed on social media calls for reliable, explainable, and efficient computational methods for mental health surveillance. In this paper, we propose an interpretable framework for text-based detection of post- and community-level mental health risk on social media. Methods: The framework combines (i) Secretary Bird Optimization (SBO) for feature selection of informative linguistic and psychological features, (ii) a BERT (Bidirectional Encoder Representations from Transformers)—CNN (Convolutional Neural Network) model for post-level reasoning, and (iii) a Graph Neural Network (GraphSAGE) for community-level reasoning. The graph is estimated based on semantic similarity between posts and author relations, instead of social interactions (e.g., mentions, replies) between authors. We use SHAP and LIME for model interpretability, uncertainty, and calibration analysis to evaluate the trustworthiness of predictions. Results: The model delivers 93.1% accuracy, 0.91 F1-score, and 0.944 ROC-AUC on the eRisk and CLPsych datasets using a strict user-disjoint validation strategy. SBO lowers the number of features by about 38%, leading to better generalization. The graph-based model enables improved learning of post and user representations by capturing relational dependencies. Conclusions: Our approach offers an explainable and robust means of detecting mental health risk from text. Graph-based representations of semantic and authorship interactions enable community-level analyses, while interpretability and uncertainty estimation facilitate possible human-in-the-loop decision-making. This research does not explicitly consider a human-in-the-loop experiment.
Authors
- Muhammad Ismail Mohmand (ORCID: https://orcid.org/0000-0002-6991-1481)
- Zaheer Aslam
- Ali Sayyed (ORCID: https://orcid.org/0000-0001-8373-3135)
- Atiq Ur Rehman (ORCID: https://orcid.org/0000-0003-0248-7919)
- Ghassan Husnain (ORCID: https://orcid.org/0000-0001-6637-6754)
- Abid Iqbal (ORCID: https://orcid.org/0009-0002-5585-3679)
Institutions
- National University of Computer and Emerging Sciences (PK)
- CECOS University (PK)
- King Faisal University (SA)
- Istanbul Technical University (TR)
- Istanbul University (TR)
Publication Details
- Journal
- Healthcare
- Published
- 2026-05-22
- DOI
- https://doi.org/10.3390/healthcare14111440
- Primary Topic
- Mental Health via Writing
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Deanship of Scientific Research, King Faisal University