Tuberculosis Detection based on Lung X-Ray Images Using Convolutional Neural Networks (CNN)
Main Article Content
Abstract
Tuberculosis (TB) is an infectious disease caused by Mycobacterium tuberculosis, primarily affecting the lungs. Despite being preventable and curable, TB remains a significant global health issue, especially in developing countries. The success of TB treatment heavily depends on the accuracy of the diagnosis, which typically requires expertise from pulmonology or radiology specialists to interpret chest X-ray images. This study aims to design an assistive tool for TB detection that can automatically diagnose the disease using chest X-ray data. The study implemented a Convolutional Neural Network (CNN) architecture to analyze the X-ray images. Additionally, image preprocessing and early stopping methods were employed to enhance accuracy performance, optimize computation, and prevent overfitting. Experiment was conducting using 75% of the data as training data to generate the model and then applied to 25% of the data as testing data. This study comparing image sizes in RGB and grayscale modes. Experimental results show that the use of early stopping has a significant impact on training time, reducing training time substantially in almost all scenarios without drastically sacrificing accuracy. Without early stopping, accuracy does tend to be higher, as seen in grayscale color mode with an image size of 128x128, where the accuracy reaches 0.992, and in RGB mode with an image size of 64x64 which reaches 0.995. However, training time also increases significantly, for example for a 299x299 image with RGB mode, the training time reaches 927 seconds. Therefore, while RGB yields slightly higher accuracy, grayscale is recommended due to significantly faster training times. Additionally, the early stopping mechanism proves effective in reducing computational time, making the training process more efficient.
Downloads
Article Details
Copyright (c) 2024 Rudi Kurniawan, Tessy Badriyah, Iwan Syarif

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
References
M. Oloko-Oba and S. Viriri, Diagnosing tuberculosis using deep convolutional neural network, vol. 12119 LNCS. Springer International Publishing, 2020. doi: 10.1007/978-3-030-51935-3_16.
Organização Mundial de Saúde, World health statistics 2022 (Monitoring health of the SDGs). 2022. [Online]. Available: http://apps.who.int/bookorders.
J. Chakaya et al., “International Journal of Infectious Diseases Global Tuberculosis Report 2020 – Re fl ections on the Global TB burden , treatment and prevention efforts,” 2021, doi: 10.1016/j.ijid.2021.02.107.
A. C. Sitepu, M. Sigiro, and J. Panjaitan, “Deteksi Penyakit Tuberkulosis Dengan Atensi Ganda Convolutional Neural Network Pada Citra X-Ray,” JUTISAL J. Tek. Inform. …, vol. 2, no. 1, 2022, [Online]. Available: https://universal.ac.id/jurnal/index.php/jutisal/article/view/11
T. Rahman et al., “Reliable tuberculosis detection using chest X-ray with deep learning, segmentation and visualization,” IEEE Access, vol. 8, pp. 191586–191601, 2020, doi: 10.1109/ACCESS.2020.3031384.
Q. H. Nguyen et al., “Deep Learning Models for Tuberculosis Detection from Chest X-ray Images,” 2019 26th Int. Conf. Telecommun., pp. 381–385, doi: 10.1109/ICT.2019.8798798.
D. X. Andrew, D. X. X. Adam, and F. Auffermann, “Perceptual and Interpretive Error in Diagnostic Radiology — Causes and Potential Solutions,” Acad. Radiol., pp. 1–13, doi: 10.1016/j.acra.2018.11.006.
L. N. Q. Vo et al., “Early evaluation of an ultra-portable x-ray system for tuberculosis active case finding,” Trop. Med. Infect. Dis., vol. 6, no. 3, 2021, doi: 10.3390/TROPICALMED6030163.
Z. Z. Qin et al., “Tuberculosis detection from chest x-rays for triaging in a high tuberculosis-burden setting: an evaluation of five artificial intelligence algorithms,” Lancet Digit. Heal., vol. 3, no. 9, pp. e543–e554, 2021, doi: 10.1016/S2589-7500(21)00116-3.
M. T. Khan, A. C. Kaushik, L. Ji, S. I. Malik, S. Ali, and D. Q. Wei, “Artificial neural networks for prediction of tuberculosis disease,” Front. Microbiol., vol. 10, no. MAR, pp. 1–9, 2019, doi: 10.3389/fmicb.2019.00395.
L. A. Andika, H. Pratiwi, and S. Sulistijowati Handajani, “Convolutional neural network modeling for classification of pulmonary tuberculosis disease,” J. Phys. Conf. Ser., vol. 1490, no. 1, 2020, doi: 10.1088/1742-6596/1490/1/012020.
P. Gidwani, U. Gori, A. Dedhia, and N. Shah, “Tuberculosis Detection Using Convolutional Neural Network,” SSRN Electron. J., 2021, doi: 10.2139/ssrn.3866534.
M. Harahap, A. P. S. Pasaribu, D. R. Sinaga, R. Sipangkar, and S. Samuel, “Classification of Tuberculosis Based on Lung X-Ray Image With Data Science Approach Using Convolutional Neural Network,” Sinkron, vol. 7, no. 4, pp. 2193–2197, 2022, doi: 10.33395/sinkron.v7i4.11711.
P. Senakama and J. Konvolusi, “Sistem diagnosa penyakit tbc berdasarkan gambar x- ray dengan dense convolutional network (densenet),” vol. 1, no. September, pp. 667–674, 2022.
L. Delrue, R. Gosselin, and B. Ilsen, “Difficulties in the Interpretation of Chest Radiography,” 2011, doi: 10.1007/978-3-540-79942-9.