Predicting unfavorable tuberculosis outcomes using machine learning: a prospective cohort

Tuberculosis (TB) continues to be a primary cause of mortality from a singular infectious agent worldwide, with a significant number of patients still encountering unfavorable outcomes such as treatment failure, relapse, or death. Early identification of high-risk individuals is essential for optimizing clinical management, yet conventional statistical approaches often fail to capture the complex, nonlinear interactions among clinical predictors. Machine learning (ML) presents a promising alternative; however, previous ML-based prognostic studies in TB have been constrained by small sample sizes, retrospective designs, or insufficient external validation. We conducted a multicenter prospective cohort study in Korea using two prospective cohort databases (2016–2024). Adults with newly diagnosed drug-susceptible pulmonary tuberculosis were divided into training and external validation sets by institutions. Five machine learning models were created, and optimized decision thresholds to get the highest F2-score. We used the area under the receiver-operating characteristic curve (AUROC) and the area under the precision–recall curve to measure performance. Feature importance was assessed using SHapley Additive exPlanations (SHAP) values and compared with multivariate logistic regression. Among 1580 participants, 109 (6.9%) experienced unfavorable outcomes. The XGBoost model demonstrated the best discriminative ability, achieving an AUROC of 0.818, and successfully identifying 73.3% of unfavorable outcomes by assessing the top 20% of patients at highest risk. SHAP analysis identified serum albumin, hemoglobin, lymphocyte count, and age as the most significant predictors. Furthermore, multivariate logistic regression analysis revealed that serum albumin (adjusted odds ratio [aOR], 0.492; 95% confidence interval [CI] 0.325–0.743; p < 0.001) and hemoglobin (aOR, 0.858; 95% CI 0.756–0.973; p = 0.017) were independent protective factors of statistical significance. Conversely, a model that excluded laboratory data exhibited diminished performance, with an AUROC of 0.741. The successful external validation confirmed the high predictive accuracy and generalizability of the ML models, with XGBoost demonstrating the most promising results in forecasting tuberculosis outcomes. Both ML and statistical analyses identified serum albumin and hemoglobin as primary predictors, whereas the ML model also incorporated the prognostic significance of lymphocyte count. These results show that common signs of nutritional and immune health are important factors in predicting the course of tuberculosis.

Authors

Institutions

Publication Details

Journal
Tropical Medicine and Health
Published
2026-06-13
DOI
https://doi.org/10.1186/s41182-026-00969-9
Primary Topic
Tuberculosis Research and Epidemiology
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting unfavorable tuberculosis outcomes using machine learning: a prospective cohort

Sun Jung Kwon, Eung Gu Lee, Jinsoo Min, Sun‐Hyung Kim et al.
Tropical Medicine and Health
Tuberculosis Research and Epidemiology
article

Predicting unfavorable tuberculosis outcomes using machine learning: a prospective cohort

Sun Jung Kwon, Eung Gu Lee, Jinsoo Min, Sun‐Hyung Kim, Jee Youn Oh, Jiwon Lyu, H W Kim, Hyeon‐Kyoung Koo, Yun‐Jeong Jeong, Yeonhee Park, S Jung, Seung Hoon Kim, Taehyung Lee, Hoyoun Lee, Jin Woo Kim, Inseo Choi, Ju Sang Kim, Heayon Lee
article en

Abstract

Tuberculosis (TB) continues to be a primary cause of mortality from a singular infectious agent worldwide, with a significant number of patients still encountering unfavorable outcomes such as treatment failure, relapse, or death. Early identification of high-risk individuals is essential for optimizing clinical management, yet conventional statistical approaches often fail to capture the complex, nonlinear interactions among clinical predictors. Machine learning (ML) presents a promising alternative; however, previous ML-based prognostic studies in TB have been constrained by small sample sizes, retrospective designs, or insufficient external validation. We conducted a multicenter prospective cohort study in Korea using two prospective cohort databases (2016–2024). Adults with newly diagnosed drug-susceptible pulmonary tuberculosis were divided into training and external validation sets by institutions. Five machine learning models were created, and optimized decision thresholds to get the highest F2-score. We used the area under the receiver-operating characteristic curve (AUROC) and the area under the precision–recall curve to measure performance. Feature importance was assessed using SHapley Additive exPlanations (SHAP) values and compared with multivariate logistic regression. Among 1580 participants, 109 (6.9%) experienced unfavorable outcomes. The XGBoost model demonstrated the best discriminative ability, achieving an AUROC of 0.818, and successfully identifying 73.3% of unfavorable outcomes by assessing the top 20% of patients at highest risk. SHAP analysis identified serum albumin, hemoglobin, lymphocyte count, and age as the most significant predictors. Furthermore, multivariate logistic regression analysis revealed that serum albumin (adjusted odds ratio [aOR], 0.492; 95% confidence interval [CI] 0.325–0.743; p < 0.001) and hemoglobin (aOR, 0.858; 95% CI 0.756–0.973; p = 0.017) were independent protective factors of statistical significance. Conversely, a model that excluded laboratory data exhibited diminished performance, with an AUROC of 0.741. The successful external validation confirmed the high predictive accuracy and generalizability of the ML models, with XGBoost demonstrating the most promising results in forecasting tuberculosis outcomes. Both ML and statistical analyses identified serum albumin and hemoglobin as primary predictors, whereas the ML model also incorporated the prognostic significance of lymphocyte count. These results show that common signs of nutritional and immune health are important factors in predicting the course of tuberculosis.

Tropical Medicine and Health
Chosun University (KR), Konyang University (KR), Soonchunhyang University (KR), Republic of Korea Army (KR), Korea University Medical Center (KR), St. Mary's Hospital (US), The Catholic University of Korea St. Vincent's Hospital (KR), The Catholic University of Korea Incheon St. Mary's Hospital (KR), Konyang University Hospital (KR), Dongguk University Ilsan Hospital (KR), The Catholic University of Korea Uijeongbu St. Mary's Hospital (KR), Inje University Ilsan Paik Hospital (KR), The Catholic University of Korea Daejeon St. Mary's Hospital (KR), St. Mary's Hospital (US), The Catholic University of Korea Bucheon St. Mary's Hospital (KR), Chungnam National University Hospital (KR), The Catholic University of Korea Seoul St. Mary's Hospital (KR), Chungbuk National University Hospital (KR), Catholic University of Korea (KR)
Reduced inequalities
Openalex Percentile: Top 6%
Tuberculosis Research and Epidemiology
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.