Deep learning-based differentiation of non-tuberculous mycobacterial lung disease and pulmonary tuberculosis using
Bingchuan Hu1, Bin Wu2, Yuwei Zhou1
1Department of Thoracic Surgery, The Affiliated Lihuili Hospital of Ningbo University, Ningbo, China.
Background:
Differentiating non-tuberculous mycobacterial lung disease (NTM-LD) from pulmonary tuberculosis (PTB) remains a significant clinical challenge owing to their overlapping clinical and imaging features, despite markedly different therapeutic strategies.
Methods:
A total of 409 patients with microbiologically confirmed diagnoses were retrospectively enrolled and randomly divided into a training set (n = 329; NTM-LD: 171, PTB: 158) and an independent test set (n = 80; NTM-LD: 41, PTB: 39). After lung segmentation with nnU-Net, images were intensity-normalized and resampled to 256 × 256 × 128 voxels. A 3D ResNeXt-based classifier was developed and compared against six mainstream deep learning architectures: ResNet, SENet, DenseNet, ShuffleNet, Transformer, and Swin Transformer. Model performance was evaluated using the area under the receiver operating characteristic curve (AUC), accuracy, sensitivity, specificity, and F1 score.
Results:
The proposed 3D ResNeXt model achieved the highest performance, with an AUC of 0.89 and accuracy of 0.89 on the training set, and an AUC of 0.83 and accuracy of 0.84 on the independent test set. DeLong's test confirmed statistically significant superiority over all six comparator architectures on the test set (all p < 0.05). Gradient-weighted Class Activation Mapping (Grad-CAM) visualizations highlighted disease-specific features, including nodular bronchiectasis and tree-in-bud opacities in NTM-LD, as well as thick-walled cavitary lesions in PTB.
Conclusion:
The 3D ResNeXt model demonstrated superior and interpretable performance in differentiating NTM-LD from PTB on chest CT. It holds promise as a valuable clinical decision-support tool, although prospective multicenter validation is warranted.
Related Concept Videos
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...
Pulmonary Tuberculosis III
The first classification is based on the development of the disease, and it includes the following categories:
Pulmonary Tuberculosis II
Here is a detailed explanation of its pathophysiology:
Transmission: The process begins when a person inhales droplet nuclei containing M. tuberculosis. These are typically released into the air when an individual with pulmonary or...
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...


