Related Experiment Video
Updated: May 20, 2025

A Swin Transformer-Based Model for Thyroid Nodule Detection in Ultrasound Images
Published on: April 21, 2023
Enhanced tuberculosis detection using Vision Transformers and explainable AI with a Grad-CAM approach on chest X-rays
K Vanitha1, T R Mahesh2, V Vinoth Kumar3
1Department of Computer Science and Engineering, Faculty of Engineering, Karpagam Academy of Higher Education (Deemed to be University), Coimbatore, India.
This study introduces a novel Vision Transformer (ViT) model with Gradient-weighted Class Activation Mapping (Grad-CAM) for improved tuberculosis diagnosis from chest X-rays. The AI model achieves high accuracy, aiding radiologists in early detection.
Area of Science:
- Medical Imaging
- Artificial Intelligence
- Computational Pathology
Background:
- Tuberculosis (TB) diagnosis from chest X-rays is crucial but challenging due to subtle disease manifestations.
- Traditional methods using Convolutional Neural Networks (CNNs) require extensive pre-processing and lack generalizability.
- Accurate and interpretable AI tools are needed for early TB detection, especially in resource-limited settings.
Purpose of the Study:
- To develop and evaluate a novel Vision Transformer (ViT) model integrated with Gradient-weighted Class Activation Mapping (Grad-CAM) for enhanced TB diagnosis from chest X-rays.
- To improve diagnostic accuracy and model interpretability compared to existing computational methods.
- To facilitate clinical application and assist radiologists in automated TB detection.
Main Methods:
- A Vision Transformer (ViT) model with a Conv2D stem and transformer encoder blocks was developed to process raw X-ray pixels directly.
- Self-attention mechanisms in the ViT model were utilized to capture long-range dependencies and complex patterns.
- Gradient-weighted Class Activation Mapping (Grad-CAM) was incorporated to provide visual explanations of the model's diagnostic decisions.
Main Results:
- The ViT-Grad-CAM model achieved high performance on validation and test sets, with accuracy, recall, and F1-scores consistently above 0.97.
- The model demonstrated superior performance compared to existing methods for TB detection in chest X-rays.
- Grad-CAM provided visual heatmaps highlighting significant regions, enhancing model transparency and aiding radiologist verification.
Conclusions:
- The novel ViT-Grad-CAM model offers a significant improvement in automated tuberculosis detection from chest X-rays.
- The model's high accuracy and interpretability show strong potential for clinical application in real-world settings.
- This approach enhances diagnostic precision and supports radiologists in timely and accurate TB diagnosis.
Related Concept Videos
Computed Tomography
The technique was invented in the 1970s and is based on the principle that as X-rays pass through the body, they are absorbed or reflected at different levels. In the technique, a patient lies on a motorized platform while a computerized axial tomography (CAT) scanner rotates...
X-ray Imaging
Radiological Investigation I: X-ray and CT
Imaging Studies for Cardiovascular System III: X-Ray
Definition and Purpose
An X-ray, or radiograph, is a non-invasive method that uses ionizing radiation to take images of internal structures. It is mainly used in cardiac imaging to examine the heart, lungs, and major blood vessels, aiming to identify abnormalities in the heart's size, shape, and position, such as heart failure, congenital defects, and vascular...

