Leveraging Machine Learning Models and Pharmacy Refill Adherence as a Cost-Effective Proxy for Predicting HIV Viral Suppression during Antiretroviral Therapy in Resource-Limited Settings
Lugoba, M. D.; Sangeda, R. Z.; Mutagonda, R. F.; Mwakyomo, J.; Musiba, G.; Sambu, V.; Mutayoba, B.; Masuki, M. M.; Njau, P.; Maokola, W.
Show abstract
IntroductionAchieving viral suppression is central to HIV epidemic control; however, routine viral load (VL) testing in many low- and middle-income countries is constrained by laboratory capacity, logistics, and cost. In Tanzania, disparities in VL coverage persist across age groups and geographical regions, limiting the timely detection of treatment failure. Pharmacy refill adherence is a low-cost, routinely collected objective indicator of treatment behavior. This study assessed whether pharmacy refill adherence, enhanced using machine learning (ML) models, can reliably predict viral suppression among people living with HIV (PLHIV) in Tanzania. MethodsWe conducted a retrospective analysis using nationally representative patient-level data from the Care and Treatment Center (CTC-2) database, collected between 2017 and 2021. A random sample of 40,000 records was drawn, of which 28,044 patients met the inclusion criteria. Pharmacy refill adherence was calculated as the proportion of days covered and capped at 100%. Viral suppression was defined as a VL of <1,000 copies/mL. Logistic regression, Random Forest, Gradient Boosting Machine (GBM), and XGBoost models were trained using an 80/20 training-testing split, and the model performance was evaluated using the area under the receiver operating characteristic curve (AUC). Youdens Index was used to determine the optimal adherence threshold. ResultsAmong the 28,044 patients included in the analysis, the median age at ART initiation was 38 years, and 64.9% were female. The median pharmacy refill adherence was 90.64% (mean, 87.37%). Viral load (VL) measurements were available for 21,572 patients, of whom 88.7% achieved viral suppression. Higher pharmacy refill adherence was strongly associated with viral suppression, whereas lower adherence was observed among adolescents, young adults, and individuals who were lost to follow-up. Marked geographic variation was observed, with higher adherence in regions such as Dar es Salaam and lower adherence in more remote regions, including Rukwa and Singida. Among machine learning models, XGBoost demonstrated the highest predictive performance (AUC >0.85), followed by Gradient Boosting Machines and Random Forest, while logistic regression provided stable baseline estimates. Pharmacy refill adherence, duration of follow-up, clinic visit frequency, and patient age were the strongest predictors of viral suppression. ConclusionPharmacy refill adherence is a strong predictor of viral suppression and provides a feasible and cost-effective tool for monitoring ART outcomes in settings with limited VL testing. Machine learning approaches further enhance the predictive value of routine program data and can support the early identification of patients at risk of virological failure. Integrating adherence-based predictive analytics into national HIV program monitoring systems may strengthen differentiated service delivery, improve treatment outcomes, and accelerate progress toward the UNAIDS 95-95-95 targets in Tanzania and similar resource-limited settings.
Matching journals
The top 3 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- Clinical outcomes after extended 12-month antiretroviral therapy prescriptions in a community-based differentiated HIV service delivery programme in South Africa: a retrospective cohort study 96%
- Changes in HIV Treatment Differentiated Care Utilization During the COVID-19 Pandemic in Zambia 95%
- Field performance and cost-effectiveness of a point-of-care triage test for HIV virological failure in Southern Africa 95%
Similar papers in this journal
- Increased uptake of tuberculosis preventive therapy (TPT) among people living with HIV following the 100-days accelerated campaign: A retrospective review of routinely collected data at six urban public health facilities in Uganda 96%
- Factors associated with attrition from HIV treatment after enrollment in a differentiated service delivery model: a cohort analysis of routine care in Zambia 95%
- Virologic outcomes on dolutegravir-, atazanavir-, or efavirenz-based ART in urban Zimbabwe: A longitudinal study 95%
Similar papers in this journal
- Adherence Monitoring Methods to Measure Virological Failure in People Living with HIV on Long-Term Antiretroviral Therapy in Uganda 97%
- Integrating Isoniazid Preventive Therapy into the Fast-Track HIV Treatment Model in Urban Zambia: A Proof-of -Concept Pilot Project 94%
- Point-of-care HIV viral load testing in a community antiretroviral therapy delivery programme: a randomised controlled trial (PHILA) 94%
Similar papers in this journal
- Clinical outcomes after viraemia among people receiving dolutegravir versus efavirenz-based first-line antiretroviral therapy in South Africa 95%
- Predictors of Clinical Outcomes among People with HIV and Tuberculosis Symptoms after Rapid Treatment Initiation in Haiti 95%
- Understanding non-adherence to tuberculosis medications in India using urine drug metabolite testing: a cohort study 95%
Similar papers in this journal
- Behaviourally-informed two-way text messaging to improve return to HIV care in South Africa: evidence from a randomised controlled trial 94%
- Undetectable=untransmittable (U=U) messaging increases uptake of HIV testing among men: Results from a pilot cluster randomized trial 93%
- Mental health, longitudinal ART adherence, and viral suppression among adolescents and adults living with HIV in South Africa: a cohort study 93%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.