Explainable GLCM–Decision Tree Framework for Pulmonary Tuberculosis Classification from Chest X-Rays
DOI:
https://doi.org/10.51903/jtie.v5i2.567Keywords:
Pulmonary Tuberculosis, Chest X-Ray, Explainable Machine Learning, GLCM, Decision TreeAbstract
Pulmonary tuberculosis (TB) remains a major global health challenge, while chest X-ray interpretation is still influenced by radiologist expertise and inter-observer variability. This study develops an explainable machine learning framework for pulmonary TB classification from chest X-ray images by integrating Gray-Level Co-occurrence Matrix (GLCM) texture features, statistical image features, and a Decision Tree classifier implemented in RapidMiner. The dataset comprised 1,000 chest X-ray images representing TB-positive and normal classes. Image preprocessing included resizing, grayscale conversion, and intensity normalization, followed by extraction of four GLCM features—contrast, energy, homogeneity, and correlation—and four statistical features comprising mean, variance, standard deviation, and entropy. Model performance was evaluated using stratified 10-fold cross-validation. The Decision Tree achieved an average accuracy of 85.4%, precision of 87.1%, recall of 83.6%, and F1-score of 85.3%. Beyond predictive performance, the model generated interpretable IF–THEN rules that provide transparent reasoning for classification outcomes. Analysis of false-negative cases further identified clinically important misclassification patterns that require additional diagnostic confirmation. The proposed framework demonstrates that interpretable machine learning can provide a practical balance between classification performance, transparency, computational efficiency, and reproducibility, supporting its potential use as a clinical decision-support tool for TB screening in resource-constrained healthcare environments.
References
Arrieta, A. B., Díaz-Rodríguez, N., Del Ser, J., et al. (2020). Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information Fusion, 58, 82–115. https://doi.org/10.1016/j.inffus.2019.12.012
Candemir, S., Jaeger, S., Palaniappan, K., et al. (2018). A novel stacked generalization of models for improved TB detection in chest radiographs. Proc. IEEE EMBC 2018, 718–721. https://doi.org/10.1109/EMBC.2018.8512337
Doshi-Velez, F., & Kim, B. (2017). Towards a rigorous science of interpretable machine learning. arXiv 1702.08608. Retrieved from https://arxiv.org/abs/1702.08608
García Seco de Herrera, A., Yagis, E., Pinpo, N., et al. (2026). Ensemble deep learning architectures for detecting pulmonary tuberculosis in chest X-rays. Scientific Reports, 16:1242. (In press)
Hansun, S., Argha, A., Liaw, S.-T., et al. (2023). Machine and Deep Learning for Tuberculosis Detection on Chest X-Rays: Systematic Literature Review. J. Med. Internet Res. 25(7), e43154. https://doi.org/10.2196/43154
Haralick, R. M., Shanmugam, K., & Dinstein, I. (1973). Textural features for image classification. IEEE Trans. Syst., Man, Cybern. SMC-3(6), 610–621. https://doi.org/10.1109/TSMC.1973.4309314
Hofmann, M., & Klinkenberg, R. (2016). RapidMiner: Data mining use cases and business analytics applications (2nd ed.). CRC Press.
Hwang, E. J., Park, S., Jin, K. N., et al. (2019). Development and validation of a deep learning-based automated detection algorithm for major thoracic diseases on chest radiographs. JAMA Netw Open, 2(3), e191095. https://doi.org/10.1001/jamanetworkopen.2019.1095
Jaeger, S., Candemir, S., Karargyris, A., et al. (2014). Two public chest X-ray datasets for computer-aided screening of tuberculosis. PLOS ONE, 9(6): e98409. https://doi.org/10.1371/journal.pone.0098409
Jeong, Y. J., & Lee, K. S. (2008). Pulmonary tuberculosis: Up-to-date imaging and management. AJR American J. Roentgenology, 191(3), 834–844. https://doi.org/10.2214/AJR.07.3896
Kermany, D. S., Goldbaum, M., Cai, W., et al. (2018). Identifying medical diagnoses and treatable diseases by image-based deep learning. Cell, 172(5), 1122–1131.e9. https://doi.org/10.1016/j.cell.2018.02.010
Kim, M., Yun, J., Cho, Y., Shin, K., Jang, R., Bae, H.-J., & Kim, N. (2019). Deep learning in medical imaging. Neurospine, 16(4), 657–668. https://doi.org/10.14245/ns.1938396.198
Lakhani, P., & Sundaram, B. (2017). Deep learning at chest radiography: Automated classification of pulmonary tuberculosis by using convolutional neural networks. Radiology, 284(2), 574–582. https://doi.org/10.1148/radiol.2017162326
Litjens, G., Kooi, T., Bejnordi, B. E., et al. (2017). A survey on deep learning in medical image analysis. Medical Image Analysis, 42, 60–88. https://doi.org/10.1016/j.media.2017.07.005
Owda, M., Abumihsan, A., Owda, A. Y., & Abumohsen, M. (2025). A lightweight hybrid deep learning model for tuberculosis detection from chest X-rays. Diagnostics, 15(3), 247. https://doi.org/10.3390/diagnostics15030247
Qin, Z. Z., Sander, M. S., Rai, B., et al. (2021). Using artificial intelligence to read chest radiographs for tuberculosis detection: A multi-site evaluation of the diagnostic accuracy of three deep learning systems. Sci. Reports, 11, 15000. https://doi.org/10.1038/s41598-021-94466-x
Quinlan, J. R. (1986). Induction of decision trees. Machine Learning, 1(1), 81–106. https://doi.org/10.1007/BF00116251
Rajpurkar, P., Irvin, J., Zhu, K., et al. (2017). CheXNet: Radiologist-level pneumonia detection on chest X-rays with deep learning. arXiv 1711.05225. Retrieved from https://arxiv.org/abs/1711.05225
Rudin, C. (2019). Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature Machine Intelligence, 1, 206–215. https://doi.org/10.1038/s42256-019-0048-x
Selvaraju, R. R., Cogswell, M., Das, A., et al. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proc. ICCV 2017, 618–626. https://doi.org/10.1109/ICCV.2017.74
Shen, T., Zhou, H., et al. (2024). Explainable hybrid deep learning and decision tree model for lung cancer classification from chest X-ray images. (In preparation).
Tjoa, E., & Guan, C. (2021). A survey on explainable artificial intelligence (XAI): Toward medical XAI. IEEE Trans. Neural Networks Learn. Syst., 32(11), 4793–4813. https://doi.org/10.1109/TNNLS.2020.3027314
Topol, E. (2019). Deep Medicine: How Artificial Intelligence Can Make Healthcare Human Again. Hachette UK.
Vanitha, K., Mahesh, T. R., Kumar, V. V., et al. (2025). Enhanced tuberculosis detection using Vision Transformers and explainable AI with a Grad-CAM approach on chest X-rays. BMC Medical Imaging, 25, 96. https://doi.org/10.1186/s12880-025-01630-3
Wang, X., Peng, Y., Lu, Z., et al. (2017). ChestX-ray8: Hospital-scale Chest X-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. Proc. IEEE CVPR 2017, 2097–2106. https://doi.org/10.1109/CVPR.2017.369
World Health Organization. (2013). Systematic screening for active tuberculosis: Principles and recommendations. Geneva: WHO. https://apps.who.int/iris/handle/10665/84971
World Health Organization. (2018). The End TB Strategy: Global strategy and targets for tuberculosis prevention, care and control after 2015. Geneva: WHO. https://www.who.int/publications/i/item/9789241565394
World Health Organization. (2021). WHO consolidated guidelines on tuberculosis: Module 2 – screening; systematic screening for tuberculosis disease. Geneva: WHO. https://www.ncbi.nlm.nih.gov/books/NBK569341/
World Health Organization. (2023). Global tuberculosis report 2023. Geneva: WHO. https://www.who.int/publications/i/item/9789240083851
Published
Data Availability Statement
The dataset used in this study was obtained from publicly available chest X-ray repositories, including ChestX-ray14 and relevant open-access tuberculosis image datasets. The data supporting the findings of this study are available from these public sources and can be accessed subject to the terms and conditions of the respective repositories.
Issue
Section
License
Copyright (c) 2026 Wiwid Wahyudi, Fitro Nur Hakim, Nur Rokhman, Irdha Yunianto

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

