Related Experiment Video
Updated: Jan 23, 2026

Nest Building Behavior as an Early Indicator of Behavioral Deficits in Mice
Published on: October 19, 2019
Explainable machine learning for mental health prediction from social media behavior: a nested cross-validation study
Kamini Lamba1, Shalli Rani2, Mohammad Shabaz3
1Chitkara University Institute of Engineering and Technology, Chitkara University, Rajpura, Punjab, 140401, India.
This study introduces an explainable machine learning framework to predict depression risk from social media behavior. The model accurately identifies key behavioral markers, offering transparent insights for mental health applications.
Area of Science:
- Computational psychiatry
- Digital mental health
- Machine learning in healthcare
Background:
- Social media behavior offers potential for early detection of psychological distress.
- Existing predictive models often lack transparency, hindering their use in clinical mental health settings.
Purpose of the Study:
- To develop and evaluate an explainable machine learning (XAI) framework for predicting self-reported depression risk using social media behavioral data.
- To identify key behavioral markers associated with depression risk and assess model transparency and reliability.
Main Methods:
- Utilized a dataset of 481 anonymized social media users.
- Employed a nested 5×5 cross-validation strategy to train and test three supervised learning models.
- Integrated SHAP (SHapley Additive exPlanations) for model explainability and assessed model calibration using reliability curves and Expected Calibration Error (ECE).
Main Results:
- Random Forest model achieved the highest performance (accuracy=84.2%, AUC=0.88) and demonstrated well-calibrated probability estimates.
- Identified significant behavioral markers including screen time, passive scrolling, nighttime usage, and stress-driven engagement.
- SHAP analysis provided stable and consistent feature rankings across multiple random seeds, supporting explanation reliability.
Conclusions:
- The developed XAI framework offers a transparent and interpretable approach for depression risk prediction from social media behavior.
- The findings suggest that interpretable model outputs can inform personalized digital interventions for mental health.
- Future research should focus on larger datasets, multimodal data integration, and clinical validation to enhance generalizability.
Related Concept Videos
Stress and Mental Health
Individuals with depression often experience challenges in both their personal and professional...
Social Scripts
Higher Mental Functions of Brain: Learning and Memory
The Sense of Self: Reflected Self-Appraisal and Social Comparison
Reliability and Validity
Social Proof

