Explainable detection of depression in Arabic tweets: identifying clinically meaningful linguistic markers using SHAP.
Erfan Salehi, Maryam Raissi, Amirhossein Rasouli, Wajdi Zaghouani
Department of Clinical Psychology, Faculty of Medicine, Hamedan Branch, Islamic Azad University, Hamedan, Iran. · Department of Psychology, Science and Research Branch, Islamic Azad University, Tehran, Iran.
Key points
From the paper's conclusion- Conclusion By combining a transparent classifier with SHAP-based interpretation and cross-dataset validation, this study provides a replicable framework for surfacing clinically meaningful linguistic markers of depression in Arabic text.
Abstract
BACKGROUND: Depression detection models for Arabic social-media text often achieve high predictive accuracy but operate as black boxes, limiting their acceptability in clinical and public-health contexts. This study aimed to develop and evaluate an explainable machine learning framework capable of identifying clinically meaningful linguistic markers of depression in Arabic tweets. METHODS: We used the ArabMindGuard dataset (3,079 manually annotated tweets; 21.4% Depressed). Tweets were processed through a standard Arabic NLP pipeline and represented using TF-IDF vectorization (unigrams and bigrams). We compared six classification pipelines (Logistic Regression, Random Forest with three imbalance-handling strategies, SVM, and XGBoost) using 5-fold stratified cross-validation with TF-IDF and resampling strictly inside each fold. The primary model, Random Forest with SMOTE, was selected for its compatibility with exact TreeSHAP computations. To assess generalizability, we externally validated the model on the independent Nassar corpus (N = 10,000). TreeSHAP was applied for interpretability, and a systematic error analysis was conducted on all false negatives and false positives. RESULTS: The RF + SMOTE model achieved an AUC-ROC of 0.80 on the held-out test set and a weighted F1-score of 0.79, with SMOTE improving depressed recall from 0.38 to 0.57 (CV recall = 0.59 ± 0.05). SHAP analysis identified مافيني (lack of energy), نفسيتي (psychological distress), خمول (lethargy), ضيقه (distress) and طاقة مافيني (I have no energy) as the most influential predictors, aligning with DSM-5 symptom domains. External validation on Nassar yielded an AUC of 0.752, with 80% (16/20) of top SHAP features overlapping across datasets. Systematic error analysis of 58 false negatives and 67 false positives revealed that false negatives consistently lacked these prototypical markers, confirming the model's interpretable decision logic. CONCLUSION: By combining a transparent classifier with SHAP-based interpretation and cross-dataset validation, this study provides a replicable framework for surfacing clinically meaningful linguistic markers of depression in Arabic text. The approach is intended to support, rather than replace, clinical judgment, and offers a methodological template for transparent digital mental health screening tools in under-resourced languages.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Explainable machine learning for mental health prediction from social media behavior: a nested cross-validation study with SHAP and LIME interpretabilityDiscover Mental Health · 2026
- Ensemble transformer with post-hoc explanations for depression emotion and severity detectioniScience · 2026
- A Multi-layer Linguistic Profiling Framework for Emotion Recognition in Text: A Data-Driven Natural Language Processing (NLP) Study Using the Kaggle Emotions Dataset.Cureus · 2026
- Neuro-semantic graph fusion for explainable depression risk trajectory mapping using a graph-enhanced RoBERTa frameworkFrontiers in Artificial Intelligence · 2026
- Interpretable machine learning for predicting early mental health care-seeking among reproductive-age women in Bangladesh using BDHS 2022 dataDiscover Public Health · 2026
- Cross-national predictive correlates of depressive symptoms among middle-aged and older adults with chronic conditions: an explainable machine learning analysis.Frontiers in psychiatry · 2026