Developing a Naïve Bayes risk classification machine learning algorithm to predict high viral load in a low-resource setting

Access to routine viral load (VL) testing for people living with HIV (PLHIV) remains limited in many low-resource settings. There is a need for pragmatic, data-driven tools that can proactively identify individuals at increased risk of virological failure. This study aimed to identify predictors of high viral load among PLHIV on antiretroviral therapy (ART) and to evaluate the performance of a Naïve Bayes classification algorithm using routinely collected clinical data. We conducted a retrospective case-control study using secondary clinical data from two public ART facilities in Makonde District, Zimbabwe. A total of 530 participants (156 cases with VL ≥ 1000 copies/mL and 374 controls) were included. Logistic regression was used to identify independent predictors of high VL. A Naïve Bayes classification model was developed using significant and clinically relevant predictors. Model performance was evaluated on the development dataset, and sensitivity, specificity, predictive values and overall accuracy were calculated. Independent predictors of high VL included being a child (adjusted OR 6.11, 95% CI: 2.12-9.31), adolescent/young adult (AOR 4.69, 95% CI: 1.83-7.54), single/non-partnered marital status (OR 2.01, 95% CI: 1.02-3.04), nondisclosure of HIV status (OR 2.56, 95% CI: 1.48-4.17), ambulatory functional status (OR 3.09, 95% CI 1.64-5.43), recent weight loss on two consecutive visits (OR 4.48, 95% CI: 2.11-8.03, p < 0.001), and ART duration <5 years (OR 1.78, 95% CI 1.15-2.63). The Naïve Bayes model demonstrated a sensitivity of 78.2% and specificity of 96.5%, indicating that the model may miss approximately one in five individuals (22%) with true high viral load, misclassifying them as low risk. The developed Naïve Bayes algorithm shows potential as a risk classification tool to support prioritization of VL testing in resource-limited settings. However, performance estimates represent apparent (development-only) performance and require validation in independent datasets before implementation.

Authors

Institutions

Publication Details

Journal
PLOS Global Public Health
Published
2026-05-22
DOI
https://doi.org/10.1371/journal.pgph.0006373
Primary Topic
HIV/AIDS Research and Interventions
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Developing a Naïve Bayes risk classification machine learning algorithm to predict high viral load in a low-resource setting

Laston Gonah, Trymore Murakwani
PLOS Global Public Health
HIV/AIDS Research and Interventions
article

Developing a Naïve Bayes risk classification machine learning algorithm to predict high viral load in a low-resource setting

Laston Gonah, Trymore Murakwani
article en

Abstract

Access to routine viral load (VL) testing for people living with HIV (PLHIV) remains limited in many low-resource settings. There is a need for pragmatic, data-driven tools that can proactively identify individuals at increased risk of virological failure. This study aimed to identify predictors of high viral load among PLHIV on antiretroviral therapy (ART) and to evaluate the performance of a Naïve Bayes classification algorithm using routinely collected clinical data. We conducted a retrospective case-control study using secondary clinical data from two public ART facilities in Makonde District, Zimbabwe. A total of 530 participants (156 cases with VL ≥ 1000 copies/mL and 374 controls) were included. Logistic regression was used to identify independent predictors of high VL. A Naïve Bayes classification model was developed using significant and clinically relevant predictors. Model performance was evaluated on the development dataset, and sensitivity, specificity, predictive values and overall accuracy were calculated. Independent predictors of high VL included being a child (adjusted OR 6.11, 95% CI: 2.12-9.31), adolescent/young adult (AOR 4.69, 95% CI: 1.83-7.54), single/non-partnered marital status (OR 2.01, 95% CI: 1.02-3.04), nondisclosure of HIV status (OR 2.56, 95% CI: 1.48-4.17), ambulatory functional status (OR 3.09, 95% CI 1.64-5.43), recent weight loss on two consecutive visits (OR 4.48, 95% CI: 2.11-8.03, p < 0.001), and ART duration <5 years (OR 1.78, 95% CI 1.15-2.63). The Naïve Bayes model demonstrated a sensitivity of 78.2% and specificity of 96.5%, indicating that the model may miss approximately one in five individuals (22%) with true high viral load, misclassifying them as low risk. The developed Naïve Bayes algorithm shows potential as a risk classification tool to support prioritization of VL testing in resource-limited settings. However, performance estimates represent apparent (development-only) performance and require validation in independent datasets before implementation.

PLOS Global Public HealthVol. 6(5)
Walter Sisulu University (ZA)
Openalex Percentile: Top 6%
HIV/AIDS Research and 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.