CHEST RADIOLOGY / ORIGINAL PAPER
An automated tuberculosis detection approach using deep learning and machine learning techniques from chest X-ray images: a step towards effective diagnosis
More details
Hide details
1
Department of Computer Science and Engineering, Varendra University, Rajshahi, Bangladesh
2
Department of Computer Science and Engineering, Pundra University of Science and Technology, Gokul, Bangladesh
3
Department of Computer Science and Engineering, Ahsania Mission University of Science and Technology, Rajshahi, Bangladesh
These authors had equal contribution to this work
Submission date: 2025-06-24
Final revision date: 2025-10-17
Acceptance date: 2025-10-28
Publication date: 2026-02-02
Corresponding author
Md. Musfiqur Rahman Mridha Mridha
Department of Computer Science and Engineering, Varendra University, Rajshahi Bypass Road, Chandrima, Paba, Rajshahi-6204, Bangladesh
Pol J Radiol, 2026; 91(1): 46-55
KEYWORDS
TOPICS
ABSTRACT
Purpose:
Tuberculosis (TB) is a severe bacterial infectious lung disease. Millions of people die or experience severe health complications due to TB each year. Accurate, automated, and effective detection of TB is key to curing and preventing person-to-person transmission. In this regard, deep learning (DL) and machine learning (ML) techniques applied to chest X-ray (CXR) images have proved effective. Here, we present our DL- and ML-based approach for TB detection using CXR images.
Material and methods:
We implemented convolutional neural network (CNN)-based pre-trained DL models, such as DenseNet121, DenseNet169, DenseNet201, ResNet152, and VGG19, as feature extractors. ML models, including support vector machine (SVM), XGBoost, logistic regression, and a DL-based custom model, were used as classifiers. A total of 2,391 CXR images from three publicly available datasets were considered.
Results:
We found three models achieving the highest value in different evaluation metrics: accuracy (99.91%) with ResNet152 and SVM; recall (99.22%), precision (99.23%), and F1-score (99.22%) with DenseNet169 and the custom classifier; and area under the curve (99.99%) with DenseNet201 and the custom classifier. Among these models, we propose DenseNet169 with the custom classifier as the best performer for potential clinical application, as it reflected a high and well-balanced performance across all evaluation metrics.
Conclusions:
This study evaluated pre-trained CNN-based DL and ML models on pre-processed CXR images for the detection of TB. The DenseNet169 model with a custom classifier stands out with its high and well-balanced performance, offering a significant contribution to the effective and automated detection of TB.
REFERENCES (29)
5.
Centers for Disease Control and Prevention. Reported tuberculosis in the United States, 2023. National data. Available at:
https://www.cdc.gov/tb-surveil... (Accessed: 20.05.2025).
7.
Desikan P. Sputum smear microscopy in tuberculosis: is it still relevant? Indian J Med Res 2013; 137: 442-444.
9.
Gao J, Jiang Q, Zhou B, Chen D. Convolutional neural networks for computer-aided detection or diagnosis in medical image analysis: an overview. Math Biosci Eng 2019; 16: 6536-6561.
11.
Ganapthy A, Shastry P, Kumarasami N, Venkatesh KP, Subramanian B, Sivasailam K, et al. Vision-language models for acute tuberculosis diagnosis: a multimodal approach combining imaging and clinical data. arXiv 2025; arXiv: 2503.14538. DOI: 10.48550/arXiv.2503.14538.
12.
Maheswari N, Kumar B, Hemalatha K, Aswith G, Jyothi M. Enhancing tuberculosis detection through machine learning on chest X-ray scans. Int J Creat Res Thoughts 2024; 12: 2320-2882.
13.
Huy VT, Lin CM. An improved densenet deep neural network model for tuberculosis detection using chest X-ray images. IEEE Access 2023; 11: 42839-42849.
14.
Showkatian E, Salehi M, Ghaffari H, Reiazi R, Sadighi N. Deep learning-based automatic detection of tuberculosis disease in chest X-ray images. Pol J Radiol 2022; 87: e118-e124. DOI: 10.5114/pjr.2022.113435.
15.
Alsaffar M, Alshammari G, Alshammari A, Aljaloud S, Almurayziq TS, Hamad AA, et al. Detection of tuberculosis disease using image processing technique. Mobile Inf Syst 2021; 2021: 7424836. DOI: 10.1155/2021/7424836.
16.
Rahman T, Khandakar A, Kadir MA, Islam KR, Islam KF, Mazhar R, et al. Reliable tuberculosis detection using chest X-ray with deep learning, segmentation, and visualization. IEEE Access 2020; 8: 191586-191601.
17.
Kim TH, Krichen M, Ojo S, Alamro MA, Sampedro GA. TSSG-CNN: a tuberculosis semantic segmentation-guided model for detecting and diagnosis using the adaptive convolutional neural network. Diagnostics (Basel) 2024; 14: 1174. DOI: 10.3390/diagnostics14111174.
18.
Reshma SR, Beegum TR. Microscope image processing for TB diagnosis using shape features and ellipse fitting. In: Proceedings of the 2017 IEEE International Conference on Signal Processing, Informatics, Communication and Energy Systems (SPICES); 2017 Aug 8-10; Kollam, India. Piscataway (NJ): IEEE; 2017. p. 1-7.
19.
Lee J, Lee J. A study of mycobacterium tuberculosis detection using different neural networks in autopsy specimens. Diagnostics (Basel) 2023; 13: 2230. DOI: 10.3390/diagnostics13132230.
20.
Wong A, Lee JR, Rahmat-Khah H, Sabri A, Alaref A, Liu H. TB-Net: a tailored, self-attention deep convolutional neural network design for detection of tuberculosis cases from chest X-ray images. Front Artif Intell 2022; 5: 827299. DOI: 10.3389/frai.2022.827299.
21.
Dasanayaka C, Dissanayake MB. Deep learning methods for screening pulmonary tuberculosis using chest X-rays. Comput Methods Biomech Biomed Eng Imaging Vis 2021; 9: 39-49.
22.
Singh A, Lall B, Panigrahi BK, Agrawal A, Agrawal A, Thangakunam B, Christopher DJ. Deep learning for automated screening of tuberculosis from Indian chest X-rays: analysis and update. arXiv 2020; arXiv: 2011.09778. DOI: 10.48550/arXiv.2011.09778.
26.
Kina E. TLEABLCNN: Brain and Alzheimer’s disease detection using attention based explainable deep learning and SMOTE using imbalanced brain MRI. IEEE Access 2025; 13: 27670-27683.
27.
Halloum K, Ez-Zahraouy H. Enhancing medical image classification through transfer learning and CLAHE optimization. Curr Med Imaging 2025; 21: e15734056342623. DOI: 10.2174/0115734056342623241119061744.
28.
Masood MK, Nava E, Otero P. A novel intensity-corrected blue channel compensation and edge-preserving contrast enhancement using laplace filter and sigmoid function for sand-dust image enhancement. IEEE Access 2025; 13: 43127-43144.