Machine Learning-based Prediction of Active Tuberculosis in People With HIV Using Clinical Data
- PMID: 40132061
- PMCID: PMC12497954
- DOI: 10.1093/cid/ciaf149
Machine Learning-based Prediction of Active Tuberculosis in People With HIV Using Clinical Data
Abstract
Background: Coinfections of Mycobacterium tuberculosis (MTB) and human immunodeficiency virus (HIV) impose a substantial global health burden. Patients with MTB infection face a heightened risk of progression to incident active TB, which preventive therapy can mitigate. Current testing methods often fail to identify individuals who subsequently develop incident active TB.
Methods: We developed random forest models to predict incident active TB using patients' medical data at HIV-1 diagnosis. Training our model involved using clinical data routinely collected at enrollment from the Swiss HIV Cohort Study (SHCS). This dataset encompassed 55 people with HIV (PWH) who developed incident active TB 6 months after enrollment and 1432 matched PWH without TB enrolled between 2000 and 2023. External validation used data from the Austrian HIV Cohort Study, comprising 43 people with incident active TB and 1005 people without TB.
Results: We predicted incident active TB with an area under the receiver operating characteristic curve of 0.83 (95% CI: .8-.86) in the SHCS. After adjusting for ethnicity and the region of origin and refitting the model with fewer parameters, we obtained comparable receiver operating characteristic curve values of 0.72 (SHCS) and 0.67 (Austrian HIV Cohort Study). Our model outperformed the standard of care (tuberculin skin test and interferon-gamma release assay) in identifying high-risk patients, demonstrated by a lower number needed to diagnose (1.96 vs 4).
Conclusions: Models based on machine learning offer considerable promise for improving care for PWH, requiring no additional data collection and incurring minimal additional costs while enhancing the identification of PWH that could benefit from preventive TB treatment.
Keywords: HIV; clinical risk score; machine learning; prediction; tuberculosis.
© The Author(s) 2025. Published by Oxford University Press on behalf of Infectious Diseases Society of America.
Conflict of interest statement
Potential conflicts of interest. A. C. received grants from Merck Sharp & Dohme (MSD), ViiV Healthcare, and Gilead Sciences for unrelated research. R. D. K. received grants from Gilead Sciences and the National Institutes of Health (NIH) for unrelated research. L. B. received honoraria for working on the advisory board of Gilead Sciences, Merck, ViiV, Pfizer, and AstraZeneca. L. B. received honoraria for presentations from Gilead Sciences and Merck. E. B. received grants from MSD for unrelated research. E. B. received payments for travel reimbursement from ViiV, MSD, Gilead Sciences, Pfizer, and Abbvie. E. B. received honoraria for working on the advisory board of ViiV, MSD, Pfizer, Gilead Sciences, AstraZeneca, and Ely Lilly. H. H. H. received honoraria for working on the advisory board of AiCuris, Merck, Vera Dx, and Molecular Partners. H. H. H. received honoraria for presentations from Merck, Gilead Sciences, Biotest, and Vera Dx. J. N. received honoraria for presentations from Oxford Immunotec and ViiV. H. F. G. received honoraria for working on the advisory board of Gilead Sciences, Merck, ViiV, Janssen, Johnson and Johnson, Novartis, and GlaxoSmithKline (GSK). H. F. G. received payments for travel reimbursements from Gilead Sciences. H. F. G. received grants from NIH, Yvonne Jacob Foundation, the Bill and Melinda Gates foundation, Gilead Sciences, and ViiV healthcare. All other authors report no potential conflicts. All authors have submitted the ICMJE Form for Disclosure of Potential Conflicts of Interest. Conflicts that the editors consider relevant to the content of the manuscript have been disclosed.
Figures
References
-
- Goletti D, Weissman D, Jackson RW, et al. Effect of Mycobacterium tuberculosis on HIV replication. Role of immune activation. J Immunol 1996; 157:1271–8. - PubMed
-
- Wood R, Maartens G, Lombard CJ. Risk factors for developing tuberculosis in HIV-1-infected adults from communities with a low or very high incidence of tuberculosis. J Acquir Immune Defic Syndr 2000; 23:75–80. - PubMed
