Related Experiment Video
Updated: May 2, 2026

The MODS method for diagnosis of tuberculosis and multidrug resistant tuberculosis
Published on: August 11, 2008
Explainable prediction of MDR/RR-TB in tuberculosis-diabetes mellitus multimorbidity: a machine learning model
Xinxin Zhong1,2,3,4, Kuan Liu1,2,3, Jiujin Zhang4
1Department of Respiratory and Critical Care Medicine, Center of Respiratory Medicine, The First Affiliated Hospital of Guilin Medical University, Guilin, 541001, China.
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.
Related Concept Videos
Pulmonary Tuberculosis V
Latent tuberculosis infection occurs when TB bacteria are present in a person's body, but are not causing illness or symptoms. It is not contagious, and preventive treatment is crucial to avoid the...
Pulmonary Tuberculosis I
Causative Organism
The primary infectious agent causing tuberculosis is Mycobacterium tuberculosis, a slow-growing, acid-fast, aerobic rod that exhibits sensitivity to heat and ultraviolet light. Instances of Mycobacterium bovis and Mycobacterium avium contributing to the development of TB infection are rare.
Mode of...
Pulmonary Tuberculosis IV
Several diagnostic approaches are used to detect TB. The conventional method is the Tuberculin Skin Test (TST), also known as the Mantoux test. However, this method has...
