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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using Machine Learning to Predict Depression among Adolescents Living with HIV in Uganda

Flavia Namuwonge, Samuel Kizito, Phionah Namatovu, Proscovia Nabunya et al.
Global Social Welfare
Digital Mental Health Interventions
article

Using Machine Learning to Predict Depression among Adolescents Living with HIV in Uganda

Flavia Namuwonge, Samuel Kizito, Phionah Namatovu, Proscovia Nabunya, Claire Najjuuko, Vicent Ssentumbwe, Francis Matovu, Portia Nartey, Massy Mutumba, Josephine Nabayinda, Chenyang Lu, Fred. M Ssewamala
article en

Abstract

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.

Global Social Welfare
Department for International Development (GB), Washington University in St. Louis (US), New York University (US), ICF International (United States) (US)
Good health and well-being
Openalex Percentile: Top 15%
Digital Mental Health Interventions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.