Improving Tuberculosis Detection in Chest X-Ray Images Through Transfer Learning and Deep Learning: Comparative Study of Convolutional Neural Network Architectures
JMIRx Med · 2025-07-01 · 6 · e66029-e66029
DOI: 10.2196/66029 ↗At a glance
Journal article in JMIRx Med, published online on 2025-07-01. Written by Alex Mirugwe and 2 co-authors. Institution: School of Public Health, Makerere University, Kawalya Kaggwa Close, Plot 20A, Kampala, Uganda, 256 701120534. Cited 31 times so far (Crossref); 48 references. The full text is freely available in PubMed Central.
Abstract (original language)
Background
Tuberculosis (TB) remains a significant global health challenge, as current diagnostic methods are often resource-intensive, time-consuming, and inaccessible in many high-burden communities, necessitating more efficient and accurate diagnostic methods to improve early detection and treatment outcomes.
Objective
This study aimed to evaluate the performance of 6 convolutional neural network architectures—Visual Geometry Group-16 (VGG16), VGG19, Residual Network-50 (ResNet50), ResNet101, ResNet152, and Inception-ResNet-V2—in classifying chest x-ray (CXR) images as either normal or TB-positive. The impact of data augmentation on model performance, training times, and parameter counts was also assessed.
Methods
The dataset of 4200 CXR images, comprising 700 labeled as TB-positive and 3500 as normal cases, was used to train and test the models. Evaluation metrics included accuracy, precision, recall, F 1 -score, and area under the receiver operating characteristic curve. The computational efficiency of each model was analyzed by comparing training times and parameter counts.
Results
VGG16 outperformed the other architectures, achieving an accuracy of 99.4%, precision of 97.9%, recall of 98.6%, F 1 -score of 98.3%, and area under the receiver operating characteristic curve of 98.25%. This superior performance is significant because it demonstrates that a simpler model can deliver exceptional diagnostic accuracy while requiring fewer computational resources. Surprisingly, data augmentation did not improve performance, suggesting that the original dataset’s diversity was sufficient. Models with large numbers of parameters, such as ResNet152 and Inception-ResNet-V2, required longer training times without yielding proportionally better performance.
Conclusions
Simpler models like VGG16 offer a favorable balance between diagnostic accuracy and computational efficiency for TB detection in CXR images. These findings highlight the need to tailor model selection to task-specific requirements, providing valuable insights for future research and clinical implementations in medical image classification.
Subjects
Author keywords
Authors and institutions
- School of Public Health, Makerere University, Kawalya Kaggwa Close, Plot 20A, Kampala, Uganda, 256 701120534.
- Faculty of Science and Technology, Victoria University, Kampala, Uganda.
- Department of Statistical Sciences, University of Cape Town, Cape Town, South Africa.
Cite
APA
Mirugwe, A., Tamale, L., & Nyirenda, J. (2025). Improving Tuberculosis Detection in Chest X-Ray Images Through Transfer Learning and Deep Learning: Comparative Study of Convolutional Neural Network Architectures. JMIRx Med, 6, e66029-e66029. https://doi.org/10.2196/66029
Vancouver
Mirugwe A, Tamale L, Nyirenda J. Improving Tuberculosis Detection in Chest X-Ray Images Through Transfer Learning and Deep Learning: Comparative Study of Convolutional Neural Network Architectures. JMIRx Med. 2025;6:e66029-e66029. doi:10.2196/66029
BibTeX
@article{Mirugwe2025,
author = {Mirugwe, Alex and Tamale, Lillian and Nyirenda, Juwa},
title = {Improving Tuberculosis Detection in Chest X-Ray Images Through Transfer Learning and Deep Learning: Comparative Study of Convolutional Neural Network Architectures},
journal = {JMIRx Med},
year = {2025},
volume = {6},
pages = {e66029--e66029},
doi = {10.2196/66029}
}
EUVIMED