Explainable prediction of MDR/RR-TB in tuberculosis-diabetes mellitus multimorbidity: a machine learning model developed and validated in a dual-center study

BACKGROUND: Tuberculosis-diabetes mellitus (TB-DM) multimorbidity significantly increases the risk of multidrug-resistant/rifampicin-resistant tuberculosis (MDR/RR-TB). Early risk stratification tools for this high-risk population remain lacking. OBJECTIVE: To develop and validate an interpretable machine learning (ML) model for predicting MDR/RR-TB in patients with TB-DM multimorbidity, and to identify key predictive factors using explainable artificial intelligence. METHODS: This dual-center retrospective study enrolled 245 patients with TB-DM multimorbidity from January 2019 to December 2022. Seven machine learning algorithms were constructed and validated with 10-fold cross-validation. Model performance was evaluated using the area under the receiver operating characteristic curve (AUC-ROC), accuracy, precision, recall, F1-score, calibration curve, and decision curve analysis (DCA). SHapley Additive exPlanations (SHAP) was applied to identify critical predictive factors. RESULTS: The random forest (RF) model achieved the optimal performance, with an AUC-ROC of 0.818, accuracy of 0.806, precision of 0.688, recall of 0.611, and F1-score of 0.647; the moderate recall indicates a considerable false-negative rate (FNR) , supporting its use as a triage tool rather than a stand-alone diagnostic test. Calibration and DCA confirmed robust predictive reliability and substantial clinical net benefit within a clinically relevant threshold range of 0.06-0.80. SHAP analysis identified the symptom-to-diagnosis interval, tuberculosis (TB) treatment history, treatment adherence, pulmonary cavitation, and smoking history as the top five critical predictors. CONCLUSION: The interpretable RF model accurately and reliably predicts the risk of MDR/RR-TB in patients with TB-DM multimorbidity. The symptom-to-diagnosis interval is the most crucial risk factor. This model can assist clinical triage, early intervention, and personalized management.

Authors

Institutions

Publication Details

Journal
BMC Infectious Diseases
Published
2026-04-30
DOI
https://doi.org/10.1186/s12879-026-13480-7
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

Explainable prediction of MDR/RR-TB in tuberculosis-diabetes mellitus multimorbidity: a machine learning model developed and validated in a dual-center study

Jianzhi Pang, Xinxin Zhong, Kuan Liu, Bingrou Li et al.
BMC Infectious Diseases
Tuberculosis Research and Epidemiology
article

Explainable prediction of MDR/RR-TB in tuberculosis-diabetes mellitus multimorbidity: a machine learning model developed and validated in a dual-center study

Jianzhi Pang, Xinxin Zhong, Kuan Liu, Bingrou Li, Rongjun Chen, Jiujin Zhang, Libing Ma, Qiqi Chen, Xinhua Tang, Siyuan Ding, Tao Lu
article en

Abstract

BACKGROUND: Tuberculosis-diabetes mellitus (TB-DM) multimorbidity significantly increases the risk of multidrug-resistant/rifampicin-resistant tuberculosis (MDR/RR-TB). Early risk stratification tools for this high-risk population remain lacking. OBJECTIVE: To develop and validate an interpretable machine learning (ML) model for predicting MDR/RR-TB in patients with TB-DM multimorbidity, and to identify key predictive factors using explainable artificial intelligence. METHODS: This dual-center retrospective study enrolled 245 patients with TB-DM multimorbidity from January 2019 to December 2022. Seven machine learning algorithms were constructed and validated with 10-fold cross-validation. Model performance was evaluated using the area under the receiver operating characteristic curve (AUC-ROC), accuracy, precision, recall, F1-score, calibration curve, and decision curve analysis (DCA). SHapley Additive exPlanations (SHAP) was applied to identify critical predictive factors. RESULTS: The random forest (RF) model achieved the optimal performance, with an AUC-ROC of 0.818, accuracy of 0.806, precision of 0.688, recall of 0.611, and F1-score of 0.647; the moderate recall indicates a considerable false-negative rate (FNR) , supporting its use as a triage tool rather than a stand-alone diagnostic test. Calibration and DCA confirmed robust predictive reliability and substantial clinical net benefit within a clinically relevant threshold range of 0.06-0.80. SHAP analysis identified the symptom-to-diagnosis interval, tuberculosis (TB) treatment history, treatment adherence, pulmonary cavitation, and smoking history as the top five critical predictors. CONCLUSION: The interpretable RF model accurately and reliably predicts the risk of MDR/RR-TB in patients with TB-DM multimorbidity. The symptom-to-diagnosis interval is the most crucial risk factor. This model can assist clinical triage, early intervention, and personalized management.

BMC Infectious Diseases
Guilin Medical University (CN), Guangxi Academy of Special Crops (CN), Guangxi Zhuang Autonomous Region Health and Family Planning (CN), Affiliated Hospital of Guilin Medical College (CN), Yulin Orthopedics Hospital of Chinese and Western Medicine (CN)
Good health and well-being
Openalex Percentile: Top 10%
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.