Deep Learning in Medical Imaging: Using Densenet121 for Automated Tuberculosis Detection from Chest X-Rays
DOI:
https://doi.org/10.65150/EP-gjetr/V1E3/2025-01Keywords:
Tuberculosis (TB), Chest X-rays, DenseNet121, Medical Imaging, Deep LearningAbstract
Millions of reported cases and associated deaths highlight the annual global threat posed by Tuberculosis (TB). Added to this, limited diagnostic services, particularly in rural Nigeria, worsen the prevalence of TB in the country. To address these challenges, this research explores the deployment of the deep learning model DenseNet121 to automate TB diagnosis from chest X-rays in low-resource settings such as Nigeria. The model aims to facilitate earlier TB detection in communities with inadequate access to diagnostic services. The absence of qualified TB radiologists in these communities further enhances the model’s potential. Based on analysis of a database comprising 4,200 chest X-ray images, the model achieved the following diagnostic metrics: 97.14% accuracy, 0.94 precision, 0.93 recall, and 0.90 F1 score. Such results provide sufficient evidence that the model will significantly improve the timely diagnosis and detection of TB cases. This illustrates the power of Artificial Intelligence tools in constraining and limited environments.
References
1) Alege, A., Hashmi, S., Eneogu, R., Meurrens, V., Budts, A. L., Pedro, M., ... & Agbaje, A. (2024). Effectiveness of using AI-driven hotspot mapping for active case finding of tuberculosis in Southwestern Nigeria. Tropical Medicine and Infectious Disease, 9(5), 99.
2) Eneogu, R. A., Mitchell, E. M., Ogbudebe, C., Aboki, D., Anyebe, V., Dimkpa, C. B., ... & Gidado, M. (2024). Iterative evaluation of mobile computer-assisted digital chest x-ray screening for TB improves efficiency, yield, and outcomes in Nigeria. PLOS Global Public Health, 4(1), e0002018.
3) Estaji, F., Kamali, A., & Keikha, M. (2025). Strengthening the global Response to Tuberculosis: Insights from the 2024 WHO global TB report. Journal of Clinical Tuberculosis and Other Mycobacterial Diseases, 39, 100522.
4) Hansun, S., Argha, A., Bakhshayeshi, I., Wicaksana, A., Alinejad-Rokny, H., Fox, G. J., Liaw, S.-T., Celler, B. G., & Marks, G. B. (2025). Diagnostic performance of artificial intelligence–based methods for tuberculosis detection: Systematic review. Journal of Medical Internet Research, 27, e69068.
5) Hwang, E. J., Jeong, W. G., David, P. M., Arentz, M., Ruhwald, M., & Yoon, S. H. (2024). AI for detection of tuberculosis: Implications for global health. Radiology: Artificial Intelligence, 6(2), e230327.
6) Maheswari, B. U., Sam, D., Mittal, N., Sharma, A., Kaur, S., Askar, S. S., & Abouhawwash, M. (2024). Explainable deep-neural-network supported scheme for tuberculosis detection from chest radiographs. BMC Medical Imaging, 24(1), 32.
7) Mahmud, A. I., Suleiman, A. B., & Yahaya, U. (2025). Modelling functional brain aging in Alzheimer's disease using neural ODEs on rs-fMRI graphs. International Journal of Research Publication and Reviews, 6(7), 2482–2488.
8) Mohammed, A., Aboagye, R. G., Duodu, P. A., Adnani, Q. E. S., Wongnaah, F. G., Seidu, A. A., & Ahinkorah, B. O. (2025). Sex-related absolute inequalities in tuberculosis incidence in 47 countries in Africa. BMC medicine, 23(1), 324.
9) Nijiati, M., Zhou, R., Damaola, M., Hu, C., Li, L., Qian, B., Abulizi, A., Kaisaier, A., Cai, C., Li, H., & Zou, X. (2022). Deep learning based CT images automatic analysis model for active/non-active pulmonary tuberculosis differential diagnosis. Frontiers in Molecular Biosciences, 9, 1086047. https://doi.org/10.3389/fmolb.2022.1086047
10) Sharma, V., Nillmani, Gupta, S. K., & Shukla, K. K. (2024). Deep learning models for tuberculosis detection and infected region visualization in chest X-ray images. Intelligent Medicine, 4, 104–113. https://doi.org/10.1016/j.imed.2023.06.001
11) Showkatian, E., Salehi, M., Ghaffari, H., Reiazi, R., & Sadighi, N. (2022). Deep learning-based automatic detection of tuberculosis disease in chest X-ray images. Polish Journal of Radiology, 87, e118–e124. https://doi.org/10.5114/pjr.2022.113435.
12) Siddharth, G., Ambekar, A., & Jayakumar, N. (2025). Enhanced CoAtNet based hybrid deep learning architecture for automated tuberculosis detection in human chest X-rays. BMC Medical Imaging, 25(1), 379.
13) Suvvari, Tarun Kumar. "The persistent threat of tuberculosis− Why ending TB remains elusive?." Journal of Clinical Tuberculosis and Other Mycobacterial Diseases 38 (2025): 100510.
14) Ugwu, K. O., Agbo, M. C., & Ezeonu, I. M. (2021). PREVALENCE OF TUBERCULOSIS, DRUG-RESISTANT TUBERCULOSIS AND HIV/TB CO-INFECTION IN ENUGU, NIGERIA. African Journal of Infectious Diseases (AJID), 15(2), 24–30. https://doi.org/10.21010/Ajid.v15i2.5
15) Zulfiqar, R., Akhtar, R., Khan, T. A., Jawad, M. M., & Khan, F. u. (2025). Tuberculosis diagnosis using deep learning. Bahria University Journal of Information & Communication Technologies, 13(2), 42–46.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Emmy Danny Ajik, Aminu Bashir Suleiman, Stephen Luka, Mukhtar Umar Shitu, Joseph Nda Ndabula (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.











