Enhanced tuberculosis detection using Vision Transformers and explainable AI with a Grad-CAM approach on chest X-rays

被引:0
|
作者
Vanitha, K. [1 ]
Mahesh, T. R. [2 ]
Kumar, V. Vinoth [3 ]
Guluwadi, Suresh [4 ]
机构
[1] Deemed Univ, Karpagam Acad Higher Educ, Fac Engn, Dept Comp Sci & Engn, Coimbatore, India
[2] JAIN Deemed Univ, Dept Comp Sci & Engn, Bengaluru 562112, India
[3] Vellore Inst Technol Univ, Sch Comp Sci, Vellore 632014, India
[4] Adama Sci & Technol Univ, Adama 302120, Ethiopia
来源
BMC MEDICAL IMAGING | 2025年 / 25卷 / 01期
关键词
Tuberculosis detection; Vision Transformer; Chest X-rays; Explainable AI; Grad-CAM; Self-attention; Medical imaging; Deep learning; Diagnostic accuracy; Convolutional neural networks;
D O I
10.1186/s12880-025-01630-3
中图分类号
R8 [特种医学]; R445 [影像诊断学];
学科分类号
1002 ; 100207 ; 1009 ;
摘要
Tuberculosis (TB), caused by Mycobacterium tuberculosis, remains a leading global health challenge, especially in low-resource settings. Accurate diagnosis from chest X-rays is critical yet challenging due to subtle manifestations of TB, particularly in its early stages. Traditional computational methods, primarily using basic convolutional neural networks (CNNs), often require extensive pre-processing and struggle with generalizability across diverse clinical environments. This study introduces a novel Vision Transformer (ViT) model augmented with Gradient-weighted Class Activation Mapping (Grad-CAM) to enhance both diagnostic accuracy and interpretability. The ViT model utilizes self-attention mechanisms to extract long-range dependencies and complex patterns directly from the raw pixel information, whereas Grad-CAM offers visual explanations of model decisions about highlighting significant regions in the X-rays. The model contains a Conv2D stem for initial feature extraction, followed by many transformer encoder blocks, thereby significantly boosting its ability to learn discriminative features without any pre-processing. Performance testing on a validation set had an accuracy of 0.97, recall of 0.99, and F1-score of 0.98 for TB patients. On the test set, the model has accuracy of 0.98, recall of 0.97, and F1-score of 0.98, which is better than existing methods. The addition of Grad-CAM visuals not only improves the transparency of the model but also assists radiologists in assessing and verifying AI-driven diagnoses. These results demonstrate the model's higher diagnostic precision and potential for clinical application in real-world settings, providing a massive improvement in the automated detection of TB.
引用
收藏
页数:16
相关论文
共 50 条
  • [1] Leveraging compact convolutional transformers for enhanced COVID-19 detection in chest X-rays: a grad-CAM visualization approach
    Aravinda, C., V
    Sudeepa, K. B.
    Pradeep, S.
    Suraksha, P.
    Lin, Meng
    FRONTIERS IN BIG DATA, 2024, 7
  • [2] Enhancing brain tumor detection in MRI images through explainable AI using Grad-CAM with Resnet 50
    Musthafa, Mohamed M.
    Mahesh, T. R.
    Kumar, Vinoth V.
    Guluwadi, Suresh
    BMC MEDICAL IMAGING, 2024, 24 (01):
  • [3] Explainable COVID-19 detection using fractal dimension and vision transformer with Grad-CAM on cough sounds
    Sobahi, Nebras
    Atila, Orhan
    Deniz, Erkan
    Sengur, Abdulkadir
    Acharya, U. Rajendra
    BIOCYBERNETICS AND BIOMEDICAL ENGINEERING, 2022, 42 (03) : 1066 - 1080
  • [4] Explainable detection of myocardial infarction using deep learning models with Grad-CAM technique on ECG signals
    Jahmunah, V.
    Ng, E. Y. K.
    Tan, Ru-San
    Oh, Shu Lih
    Acharya, U. Rajendra
    COMPUTERS IN BIOLOGY AND MEDICINE, 2022, 146
  • [5] Detecting Tuberculosis-Consistent Findings in Lateral Chest X-Rays Using an Ensemble of CNNs and Vision Transformers
    Rajaraman, Sivaramakrishnan
    Zamzmi, Ghada
    Folio, Les R.
    Antani, Sameer
    FRONTIERS IN GENETICS, 2022, 13
  • [6] Machine and Deep Learning for Tuberculosis Detection on Chest X-Rays: Systematic Literature Review
    Hansun, Seng
    Argha, Ahmadreza
    Liaw, Siaw-Teng
    Celler, Branko G.
    Marks, Guy B.
    JOURNAL OF MEDICAL INTERNET RESEARCH, 2023, 25
  • [7] Transparent and trustworthy interpretation of COVID-19 features in chest X-rays using explainable AI
    Shakti Kinger
    Vrushali Kulkarni
    Multimedia Tools and Applications, 2025, 84 (18) : 19853 - 19881
  • [8] Histogram Matched Chest X-Rays Based Tuberculosis Detection Using CNN
    Ignatius, Joe Louis Paul
    Selvakumar, Sasirekha
    Louis Paul, Kavin Gabriel Joe
    Kailash, Aadhithya B.
    Keertivaas, S.
    Prajan, S. A. J. Akarvin Raja
    COMPUTER SYSTEMS SCIENCE AND ENGINEERING, 2023, 44 (01): : 81 - 97
  • [9] Object Detection and Segmentation in Chest X-rays for Tuberculosis Screening
    Griffin, Terence
    Cao, Yu
    Liu, Benyuan
    Brunette, Maria J.
    2020 SECOND INTERNATIONAL CONFERENCE ON TRANSDISCIPLINARY AI (TRANSAI 2020), 2020, : 34 - 42
  • [10] Analysis of Tuberculosis Detection Techniques Using Chest X-Rays: A Review
    Yousuf, Z.
    Akram, U.
    Jameel, A.
    Raza, W.
    2018 IEEE CONFERENCE ON SYSTEMS, PROCESS AND CONTROL (ICSPC), 2018, : 23 - 28