Using Machine Learning to Predict Depression among Adolescents Living with HIV in Uganda
Adolescents living with HIV (ALWHIV) face a high prevalence of depression. In Uganda, limited access to mental health services exacerbates depression, necessitating innovative solutions for early detection and intervention. Machine learning (ML) provides a promising approach for identifying adolescents at risk of depression to facilitate early intervention. This study aims to use machine learning to predict depression among ALWHIV in Uganda. This study analyzed cross-sectional data from 833 ALWHIV aged 10–17 years in Southern Uganda. Depression was assessed using the Children’s Depression Inventory (CDI) –short version. Seven ML models, including Random Forest, Logistic Regression, Gradient Boosting, decision tree, XGBoost, Least Absolute Shrinkage and Selection Operator (LASSO), and Support Vector Machine, were evaluated using stratified 10-fold cross-validation. Model performance metrics included Area under receiver operating characteristic curve (AUROC), Area under precision-recall curve (AUPRC), accuracy, sensitivity, specificity, and F1-score. SHapley Additive exPlanations (SHAP) analysis was used to interpret feature importance. The median age was 13 years, and the majority of the participants were females (55.5%). The prevalence of depression was 30.97%. The Random Forest model achieved the highest performance (AUROC = 0.79, AUPRC = 0.66). Key predictors of depression included hopelessness, HIV stigma, shame, self-esteem, teacher support, and caregiver support. SHAP analysis highlighted psychosocial challenges as primary predictors of depression, emphasizing the need for psychosocial-based interventions. Our study results demonstrated good performance of ML in predicting depression among ALWHIV. However, we acknowledge that the absence of external validation limits the generalizability of these findings. Future research should seek to validate these models in independent cohorts of ALWHIV to confirm their robustness and applicability across different settings.
Authors
- Flavia Namuwonge (ORCID: https://orcid.org/0000-0001-7640-0607)
- Samuel Kizito
- Phionah Namatovu (ORCID: https://orcid.org/0000-0001-6197-4413)
- Proscovia Nabunya (ORCID: https://orcid.org/0000-0002-9088-5839)
- Claire Najjuuko (ORCID: https://orcid.org/0009-0007-1911-0508)
- Vicent Ssentumbwe (ORCID: https://orcid.org/0009-0007-9094-7124)
- Francis Matovu (ORCID: https://orcid.org/0000-0002-9241-6761)
- Portia Nartey (ORCID: https://orcid.org/0000-0001-8929-6028)
- Massy Mutumba
- Josephine Nabayinda
- Chenyang Lu
- Fred. M Ssewamala
Institutions
- Department for International Development (GB)
- Washington University in St. Louis (US)
- New York University (US)
- ICF International (United States) (US)
Publication Details
- Journal
- Global Social Welfare
- Published
- 2026-03-21
- DOI
- https://doi.org/10.1007/s40609-026-00456-3
- Primary Topic
- Digital Mental Health Interventions
- Type
- article
- Field-Weighted Citation Impact
- 0.00