Distinguishing nontuberculous mycobacterial pulmonary disease from pulmonary tuberculosis using visual machine learning: a Chinese multicenter prospective surveillance cohort study.
8 affiliations
- 1School of Public Health, Guangdong Medical University, Dongguan, 523808, PR China.
- 2Department of Bacteriology and Immunology, Beijing Chest Hospital, Beijing Tuberculosis & Thoracic Tumor Research Institute, Capital Medical University, Beijing, 101149, PR China.
- 3School of Public Health (Shenzhen), Shenzhen Key Laboratory of Pathogenic Microbes and Biosafety, Shenzhen Campus of Sun Yat-sen University, Sun Yat-sen University, Guangdong, 518107, P.R. China.
- 4Department of Clinical Laboratory, Guangzhou Chest Hospital, Guangzhou, 510520, P.R. China.
- 5Department of Bacteriology and Immunology, Beijing Chest Hospital, Beijing Tuberculosis & Thoracic Tumor Research Institute, Capital Medical University, Beijing, 101149, PR China. [email protected].
- 6School of Public Health, Guangdong Medical University, Dongguan, 523808, PR China. [email protected].
- 7Guangdong Food and Drug Vocational College, Guangzhou, 510520, P.R. China. [email protected].
- 8School of Basic Medical Sciences, Southern Medical University, Guangzhou, 510515, P.R. China. [email protected].
Abstract
Background
Nontuberculous mycobacteria (NTM) are opportunistic pathogens. In recent years, the incidence of NTM diseases has increased significantly worldwide. Nontuberculous mycobacterial pulmonary disease (NTM-PD) is highly similar to pulmonary tuberculosis (PTB) in clinical presentation, imaging features, and sputum smear microscopy results, which can easily cause misdiagnosis. Notably, there are significant differences between the anti-infective treatment regimens for NTM-PD and PTB; however, effective differential diagnostic methods are currently lacking, seriously limiting the standardized treatment of NTM diseases.Objective
This study aimed to distinguish NTM-PD from PTB using a visual machine learning approach.Methods
This study employed a prospective cohort design to conduct prospective national surveillance of NTM-PD in 17 hospitals participating in the China Non-Tuberculous Mycobacteria Surveillance (CNTMS). A total of 6694 patients were included in the analysis, NTM-PD was considered a positive event. Visual models based on logistic regression (LR) and a gradient boosting framework using tree-based learning algorithms (LightGBM, LGB) were developed using important predictive features such as bronchiectasis, diabetes, and geographic region. Model performance was evaluated using sensitivity, specificity, and the area under the curve (AUC). Model predictions were interpreted using SHAP (a method that explains which features drive each prediction).Results
Nine characteristics, including bronchodilation, diabetes, HIV, etc., were screened as key variables for distinguish NTM-PD and PTB. The AUC values of Logistic regression and LightGBM models in the training set were 0.714 (95%CI: 0.679 ~ 0.749) and 0.862 (95%CI: 0.843 ~ 0.882), respectively. In the two external test sets, the average AUC values of logistic regression model and LightGBM model were 0.789 (95%CI: 0.728-0.851) and 0.798 (95%CI: 0.743-0.851), respectively. Nomogram visualization identified bronchiectasis, HIV infection, COPD, and geographic region as the major contributors to the predictive score. SHAP visualization revealed geographic region, diabetes, and occupation as the most influential features for model prediction.Conclusions
Logistic regression and LGB models demonstrated effective accuracy and stability in external validation, and their visualization and interpretability analyses provide auxiliary evidence for the rapid clinical differentiation between NTM-PD and PTB.
Related
- Nontuberculous Mycobacterial Pulmonary Disease in a High Tuberculosis-Burden Country: A One-Year Analysis of Isolates from the Romanian National Reference Laboratory.
- Clinical characteristics and factors associated with Mycobacterium tuberculosis and nontuberculous mycobacterial infections among HIV-infected patients
- Asymptomatic Tattoo-Associated Cutaneous Nontuberculous Mycobacterial Infection: Case Report.
- Pulmonary pharmacokinetics and lesion penetration of antimicrobials in patients with nontuberculous mycobacterial disease
- Falling short: Inadequate target attainment in guideline-based therapy of nontuberculous mycobacterial disease
BibTeX
@article{wu2026distinguishing,
title = {{Distinguishing nontuberculous mycobacterial pulmonary disease from pulmonary tuberculosis using visual machine learning: a Chinese multicenter prospective surveillance cohort study.}},
author = {Chucai Wu and Jiaojiao Wei and Fuzhen Zhang and Yaoju Tan and Yu Pang and Ling Li},
journal = {BMC pulmonary medicine},
year = {2026},
month = aug,
doi = {10.1186/s12890-026-04505-7},
url = {https://europepmc.org/article/MED/43052916},
note = {CC BY-NC-ND},
}
RIS
TY - JOUR
TI - Distinguishing nontuberculous mycobacterial pulmonary disease from pulmonary tuberculosis using visual machine learning: a Chinese multicenter prospective surveillance cohort study.
AU - Chucai Wu
AU - Jiaojiao Wei
AU - Fuzhen Zhang
AU - Yaoju Tan
AU - Yu Pang
AU - Ling Li
PY - 2026
DA - 2026/08/25
JO - BMC pulmonary medicine
DO - 10.1186/s12890-026-04505-7
UR - https://europepmc.org/article/MED/43052916
AB - Background Nontuberculous mycobacteria (NTM) are opportunistic pathogens. In recent years, the incidence of NTM diseases has increased significantly worldwide. Nontuberculous mycobacterial pulmonary disease (NTM-PD) is highly similar to pulmonary tuberculosis (PTB) in clinical presentation, imaging features, and sputum smear microscopy results, which can easily cause misdiagnosis. Notably, there are significant differences between the anti-infective treatment regimens for NTM-PD and PTB; however, effective differential diagnostic methods are currently lacking, seriously limiting the standardized treatment of NTM diseases.Objective This study aimed to distinguish NTM-PD from PTB using a visual machine learning approach.Methods This study employed a prospective cohort design to conduct prospective national surveillance of NTM-PD in 17 hospitals participating in the China Non-Tuberculous Mycobacteria Surveillance (CNTMS). A total of 6694 patients were included in the analysis, NTM-PD was considered a positive event. Visual models based on logistic regression (LR) and a gradient boosting framework using tree-based learning algorithms (LightGBM, LGB) were developed using important predictive features such as bronchiectasis, diabetes, and geographic region. Model performance was evaluated using sensitivity, specificity, and the area under the curve (AUC). Model predictions were interpreted using SHAP (a method that explains which features drive each prediction).Results Nine characteristics, including bronchodilation, diabetes, HIV, etc., were screened as key variables for distinguish NTM-PD and PTB. The AUC values of Logistic regression and LightGBM models in the training set were 0.714 (95%CI: 0.679 ~ 0.749) and 0.862 (95%CI: 0.843 ~ 0.882), respectively. In the two external test sets, the average AUC values of logistic regression model and LightGBM model were 0.789 (95%CI: 0.728-0.851) and 0.798 (95%CI: 0.743-0.851), respectively. Nomogram visualization identified bronchiectasis, HIV infection, COPD, and geographic region as the major contributors to the predictive score. SHAP visualization revealed geographic region, diabetes, and occupation as the most influential features for model prediction.Conclusions Logistic regression and LGB models demonstrated effective accuracy and stability in external validation, and their visualization and interpretability analyses provide auxiliary evidence for the rapid clinical differentiation between NTM-PD and PTB.
SN - 1471-2466
ER -