Development and External Validation of a Treatment-Adjusted Machine Learning Model for Precision Allocation of Group-Based Depression Care Among People Living with HIV in Uganda

<ns3:p>Background Group-based depression care is widely used in HIV services in Uganda, yet some patients remain symptomatic. Uniform intervention allocation may not match individual needs and can strain scarce mental health resources. We developed and externally validated a treatment-adjusted machine learning model to predict six-month depression non-remission and support precision allocation of care. Methods We analyzed data from 1,140 adults living with HIV and significant depression symptoms enrolled across 30 HIV clinics in the SEEK-GSP trial (PACTR201608001738234). Participants were assigned to Group Support Psychotherapy (GSP) or Group HIV Education (GHE). The primary outcome was six-month depression non-remission, defined as Self-Reporting Questionnaire (SRQ) score ≥ 6 and a functional impairment score &lt; 9. Treatment assignment was included to enable risk estimation adjusted for treatment. Three machine learning models (Elastic Net, Random Forest, and XGBoost) were trained on baseline data from Gulu and Kitgum and externally validated in Pader district, with the best-performing parsimonious model selected to inform precision allocation. Calibration was evaluated on the external set using slope, intercept, Brier score, and the area under the receiver operating characteristic curve [AUC], with isotonic regression and Platt scaling applied for recalibration. Results All models demonstrated excellent discrimination in geographically distinct external validation (AUC 0.974–0.980). XGBoost achieved strong overall classification performance in Pader district (AUC 0.979; accuracy 0.920; sensitivity 0.865; specificity 0.970), supporting reliable identification of individuals at risk of non-remission. Post-calibration isotonic regression improved probability alignment (slope 1.703 to 1.00; Brier 0.070 to 0.015; AUC 0.986). Across modeling approaches, consistent predictors of non-remission included treatment assignment, older age, economic vulnerability (lower income, savings, and employment instability), stigma, low perceived social support, and maladaptive coping patterns. Conclusion Treatment-adjusted machine learning models can accurately predict six-month depression non-remission and provide a foundation for precision allocation of group-based depression care within HIV services in low-resource settings.</ns3:p>

Authors

Institutions

Publication Details

Journal
Wellcome Open Research
Published
2026-04-06
DOI
https://doi.org/10.12688/wellcomeopenres.25768.1
Primary Topic
Digital Mental Health Interventions
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Development and External Validation of a Treatment-Adjusted Machine Learning Model for Precision Allocation of Group-Based Depression Care Among People Living with HIV in Uganda

Rongjie Huang, Kizito Wamala, Chengbo Zeng, Rosco Kasujja et al.
Wellcome Open Research
Digital Mental Health Interventions
article

Development and External Validation of a Treatment-Adjusted Machine Learning Model for Precision Allocation of Group-Based Depression Care Among People Living with HIV in Uganda

Rongjie Huang, Kizito Wamala, Chengbo Zeng, Rosco Kasujja, Jeremiah Kwesiga Mutinye, S. Babirye, Etheldreda Nakimuli-Mpungu, Raquel Andres Martinez, Kenneth Kalani, Barbara Kemigisha
article en

Abstract

<ns3:p>Background Group-based depression care is widely used in HIV services in Uganda, yet some patients remain symptomatic. Uniform intervention allocation may not match individual needs and can strain scarce mental health resources. We developed and externally validated a treatment-adjusted machine learning model to predict six-month depression non-remission and support precision allocation of care. Methods We analyzed data from 1,140 adults living with HIV and significant depression symptoms enrolled across 30 HIV clinics in the SEEK-GSP trial (PACTR201608001738234). Participants were assigned to Group Support Psychotherapy (GSP) or Group HIV Education (GHE). The primary outcome was six-month depression non-remission, defined as Self-Reporting Questionnaire (SRQ) score ≥ 6 and a functional impairment score &lt; 9. Treatment assignment was included to enable risk estimation adjusted for treatment. Three machine learning models (Elastic Net, Random Forest, and XGBoost) were trained on baseline data from Gulu and Kitgum and externally validated in Pader district, with the best-performing parsimonious model selected to inform precision allocation. Calibration was evaluated on the external set using slope, intercept, Brier score, and the area under the receiver operating characteristic curve [AUC], with isotonic regression and Platt scaling applied for recalibration. Results All models demonstrated excellent discrimination in geographically distinct external validation (AUC 0.974–0.980). XGBoost achieved strong overall classification performance in Pader district (AUC 0.979; accuracy 0.920; sensitivity 0.865; specificity 0.970), supporting reliable identification of individuals at risk of non-remission. Post-calibration isotonic regression improved probability alignment (slope 1.703 to 1.00; Brier 0.070 to 0.015; AUC 0.986). Across modeling approaches, consistent predictors of non-remission included treatment assignment, older age, economic vulnerability (lower income, savings, and employment instability), stigma, low perceived social support, and maladaptive coping patterns. Conclusion Treatment-adjusted machine learning models can accurately predict six-month depression non-remission and provide a foundation for precision allocation of group-based depression care within HIV services in low-resource settings.</ns3:p>

Wellcome Open ResearchVol. 11
Brigham and Women's Hospital (US), University of South Carolina (US), Ministry of Health (UG), Infectious Diseases Research Collaboration (UG), Institut d'Anàlisi Econòmica (ES), Barcelona School of Economics (ES), Kemira (Finland) (FI), Makerere University (UG), Uganda Virus Research Institute (UG)
Wellcome Trust, MQ: Transforming Mental Health, Grand Challenges Canada
Openalex Percentile: Top 30%
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.