Empowering Tuberculosis Screening with Explainable Self-Supervised Deep Neural Networks

Neel Patel, Alexander Wong, Ashkan Ebadi · DOI

Introduction

Tuberculosis (TB) remains a critical global health challenge, particularly in resource-constrained regions where the volume of cases often exceeds the capacity of available radiological expertise. While deep learning offers a path toward automated, high-throughput screening, two primary obstacles hinder its clinical adoption: the "data-hungry" nature of supervised models and the "black-box" lack of interpretability. This paper presents DISTL (Distillation for self-supervision and self-train learning), a framework designed to address these challenges by leveraging self-supervised learning and Vision Transformers (ViTs).

The DISTL Framework

The DISTL framework integrates self-supervised learning with a teacher-student distillation process to maximize the utility of both labeled and unlabeled data. The methodology is built upon four key pillars:

  1. Teacher-Student Paradigm: The system employs a "Teacher" model, initially trained on a limited labeled dataset, to generate pseudo-labels for a larger pool of unlabeled images. A "Student" model then learns from these pseudo-labels, iteratively refining its understanding of pathological features without requiring exhaustive manual annotation.
  2. Vision Transformer (ViT) Backbone: Moving away from traditional Convolutional Neural Networks (CNNs), DISTL utilizes a ViT-small backbone pre-trained on the CheXpert dataset. ViTs are particularly adept at capturing long-range dependencies across an image, which is crucial for identifying the diffuse or multi-focal patterns often seen in TB.
  3. Self-Distillation (DINO): The framework incorporates the DINO (Self-distillation with no labels) technique. By comparing global views of a lung with local patches, the model learns to distinguish between the general anatomical structure of the chest and localized textural anomalies.
  4. Explainability via Attention: Because ViTs rely on attention mechanisms to process data, the model naturally produces attention maps. These maps function as heatmaps that highlight the specific regions—such as the superior lobes or areas of cavitation—that influenced the model's decision. This shift from post-hoc explainability (like GradCAM) to intrinsic interpretability is essential for building clinician trust.

Data and Preprocessing

To ensure clinical and geographic robustness, the researchers aggregated chest X-ray (CXR) data from four distinct sources: the Montgomery and Shenzhen datasets, the Belarus dataset (focused on drug-resistant TB), and the Rahman et al. dataset. Following rigorous quality control and U-Net-based lung segmentation, the final dataset comprised 1,923 TB-positive and 2,984 normal images. This diversity allows the model to internalize complex pathological patterns across different populations.

Results and Performance

The DISTL framework demonstrated superior performance when compared to industry-standard CNN baselines:

  • Overall Accuracy: 98.14% (outperforming ResNet50 at 97.31% and VGG16 at 96.07%).
  • Sensitivity (Recall): 95.72%, a critical metric for screening to ensure that active cases are not missed.
  • Precision: 99.44%, indicating a remarkably low false-positive rate.

Qualitative analysis confirmed that the model's attention heads consistently focused on clinically significant regions. Unlike traditional CNNs, which can sometimes focus on irrelevant artifacts, the DISTL framework's heatmaps aligned closely with actual radiological indicators, such as upper lobe infiltrates.

Conclusion and Future Work

DISTL demonstrates that self-supervised Vision Transformers can achieve state-of-the-art performance in TB screening while providing the transparency required for medical applications. By reducing the reliance on massive labeled datasets, this approach makes AI-driven screening more accessible for regions with limited resources.

Future research will focus on integrating patient demographics and detailed clinical histories to further refine diagnostic accuracy. Additionally, the team aims to transition this research prototype into a production-ready tool through formal validation within real-world clinical workflows alongside certified radiologists.

Summary updated

BibTeX
@inproceedings{patel2024empowering,
  author = {Neel Patel and Alexander Wong and Ashkan Ebadi},
  title = {{Empowering Tuberculosis Screening with Explainable Self-Supervised Deep Neural Networks}},
  booktitle = {ICMLA},
  year = {2024},
  doi = {10.1109/icmla61862.2024.00113},
}
Figure