Related Experiment Video
Updated: Jan 7, 2026

Diagnosing Pulmonary Tuberculosis with the Xpert MTB/RIF Test
Published on: April 9, 2012
Machine learning-based early detection of tuberculosis in asymptomatic high-risk populations
Hrushikesh Jaiwant Joshi1, Minal Barhate1, Kiran Prabhakar More1
1Vishwakarma Institute of Technology, Savitribai Phule Pune University (SPPU), Pune, Maharashtra, India.
None:
Tuberculosis (TB) remains a major global health challenge and continues to affect millions worldwide despite decades of control efforts. The disease can remain dormant and symptom-free for long periods, especially in high-risk populations such as household contacts, immunocompromised individuals and people living in crowded environments. Delayed detection of these silent cases fuels ongoing transmission. Chest X-ray imaging is widely used for screening, yet radiographic signs in early TB are subtle and easily confused with other lung conditions. Shortage of trained radiologists, subjective interpretation and limited data further complicate diagnosis. Recent advances in deep learning have enabled automated detection, but conventional convolutional neural networks often require large labelled datasets and struggle to capture global context in images. This paper proposes a machine-learning framework that combines contrastive pretraining with a fine-tuned vision transformer (CPT-TB) for early detection of TB in asymptomatic, high-risk populations. We utilize the publicly available chest X-ray dataset which contains 4200 images, including 3500 normal X-rays and 700 images from TB patients. Contrastive pretraining leverages unlabeled images by creating multiple augmented views and learning representations that bring similar views closer while pushing dissimilar examples apart. A transformer architecture with self-attention is then fine-tuned on the labelled portion of the dataset. The attention mechanism aggregates information across the entire lung field, capturing subtle pathological patterns that are difficult for CNNs to learn. Our method demonstrates significant improvements over standard models. In five-fold cross-validation, CPT-TB achieves an area under the receiver operating characteristic curve (AUC) of 98.2 %, accuracy of 95.5 %, sensitivity of 94.9 % and specificity of 96.0 %. These results represent a 4.0 % increase in accuracy compared to a supervised ResNet-50 baseline and a 2.3 % improvement over a supervised vision transformer. Beyond these quantitative gains, attention maps offer interpretable visual cues for clinicians. The proposed CPT-TB framework shows promise for scalable, non-invasive screening and could facilitate active case finding in resource-constrained settings where radiological expertise is scarce.
More Related Videos
15:28A Microscopic Phenotypic Assay for the Quantification of Intracellular Mycobacteria Adapted for High-throughput/High-content Screening
Published on: January 17, 2014
09:34An Automated Culture System for Use in Preclinical Testing of Host-Directed Therapies for Tuberculosis
Published on: August 16, 2021
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 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 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...
Pulmonary Tuberculosis III
The first classification is based on the development of the disease, and it includes the following categories:
Steps in Outbreak Investigation