Skip to content
Open access

Development and validation of an interpretable machine learning model for risk stratification among individuals with latent tuberculosis infection: a multicenter case-control study

Oct 2026 · BMC Public Health · 0 citations

TL;DR

An interpretable XGB model based on low-cost epidemiological indicators can distinguish prevalent PTB from LTBI and may help prioritize individuals with LTBI for further evaluation and preventive interventions.

Abstract

Latent tuberculosis infection (LTBI) affects a quarter of the global population. Conventional LTBI risk screening tools have limited sensitivity, and existing machine learning prediction models mostly rely on costly laboratory biomarkers, restricting their application in grassroots healthcare and public health. This study aimed to develop an interpretable machine learning model to distinguish pulmonary tuberculosis (PTB) from LTBI and stratify individuals with LTBI to prioritize further evaluation and preventive interventions. This multicenter case-control study enrolled 782 participants from 21 designated tuberculosis institutions in Henan Province, China, including 401 individuals with LTBI and 381 patients with newly diagnosed, treatment-naive PTB. Epidemiological predictors were collected via standardized face-to-face questionnaires. The dataset was randomly split into a training set and a test set at a 7:3 ratio. Eleven predictors were screened via ten-fold cross-validated LASSO regression. Seven machine learning algorithms were constructed and evaluated using multiple metrics including AUC, F1 score, Brier score, calibration curves, and decision curve analysis. A three-tier risk framework was defined based on a percentile strategy. SHapley Additive exPlanations (SHAP) was applied to interpret the optimal model, which was further deployed as a free web calculator. The eXtreme Gradient Boosting (XGB) model achieved the highest test-set performance, with an AUC of 0.818 (95% CI 0.763–0.873), an F1 score of 0.764 (95% CI 0.698–0.822), and a Brier score of 0.176 (95% CI 0.148–0.204), with favorable calibration (Hosmer-Lemeshow P  > 0.05). DCA confirmed a stable positive net benefit. Using cutoffs of > 0.763 (high-risk) and < 0.328 (low-risk), the model stratified participants into three tiers, with the proportion of PTB cases increasing from 20.00% in the low-risk tier to 84.29% in the high-risk tier. SHAP analysis identified male sex, low body mass index, advanced age, unintentional weight loss within six months, and low annual household income as the most influential features. The interpretable XGB model based on low-cost epidemiological indicators can distinguish prevalent PTB from LTBI and may help prioritize individuals with LTBI for further evaluation. The web calculator is a research prototype; its clinical utility requires external validation and prospective evaluation before it can guide preventive-treatment decisions.

Read PDF

Similar papers

Open access Oct 2026

Development and validation of an interpretable machine learning model for early prediction of refractory mycoplasma pneumoniae pneumonia: a multi-center study

Early prediction of refractory Mycoplasma pneumoniae pneumonia (RMPP) in children remains challenging with conventional approaches. Machine learning (ML) offers a promising approach to improve risk stratification by identifying patterns in multidimensional clinical data. This study aims to develop and externally vali...

Ying-Jie Sheng, Hui-Ya Tang, Yun Guo et al. · 0 citations
Review Open access Sep 2026

Development and Internal Validation of an Interpretable Machine Learning Screening Model for MAFLD–Diabetes Mellitus Comorbidity: A Cross-Sectional NHANES Study

This study developed and validated a robust 13-feature ANN model for predicting MAFLD-DM comorbidity, highlighting the indicative value of systemic homeostasis and electrolyte imbalances and the derived web-based tool offers cost-effective, non-invasive clinical decision support for early risk stratification and "dual...

Rui Wang, Yang Cheng, Jie Wang et al. · 0 citations
Oct 2026

Development and External Validation of An Interpretable Machine Learning Model for Severity Stratification of Current Periodontitis Using Routine Blood Biomarkers, With Exploratory Analyses of Age- and Sex-Specific Model Behaviour.

AIM To develop and externally validate an interpretable machine learning model using routine laboratory data to distinguish current Stage III-IV from Stage I-II periodontitis among adults with established periodontitis. MATERIALS AND METHODS This two-centre retrospective study included 1321 patients for development a...

Han-Bo Shi, Jing-Jing Yao, Zhong-Liang Jiang et al. · 0 citations
Sep 2026

Interpretable Machine Learning for In-Hospital Mortality Prediction in Patients With Diabetes and ARDS: Development and External Validation.

Logistic Regression showed potential as an interpretable early ICU risk-stratification tool and externally validated machine learning models for in-hospital mortality prediction in patients with diabetes and ARDS.

Ya-Lin Dong, Meng-Xue Hou, Qian-Qian Wang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.