Tuberculosis Classification Using LightGBM Based on Patient Clinical Data: An Initial Screening Study
DOI:
https://doi.org/10.56705/ijaimi.v4i2.490Keywords:
Tuberculosis, LightGBM, Clinical Data, Machine Learning, Class Imbalance, Decision Support System, Preliminary ScreeningAbstract
Introduction: Tuberculosis (TB) remains a major public-health burden in Indonesia, and symptom-based triage is complicated by heterogeneous clinical presentations. This exploratory study evaluated the Light Gradient Boosting Machine (LightGBM) algorithm for classifying pulmonary TB from routine hospital clinical records under severe class imbalance. Methods: The dataset comprised 420 patient records from RSUD Syekh Yusuf Gowa (395 TB and 25 non-TB) and eight demographic and symptom-related attributes. After data cleaning, missing-value imputation, and binary encoding, stratified splitting yielded 336 training and 84 testing records. LightGBM was trained with a learning rate of 0.05, 31 leaves, a maximum depth of 6, and 100 estimators. Performance was assessed using accuracy, precision, recall, specificity, balanced accuracy, and F1-score. Results: On the held-out test set, the model produced 77 true positives, zero true negatives, five false positives, and two false negatives, yielding 91.67% accuracy, 93.90% precision, 97.47% recall, 0.00% specificity, 48.74% balanced accuracy, and a 95.65% F1-score. Accuracy was below the 94.05% majority-class baseline. Patient age provided the largest first-tree split gain (12.7595 at a threshold of 73.5 years). Conclusion: Although LightGBM detected most TB cases, it misclassified every non-TB case in the test set. The findings support exploratory analysis only, not clinical deployment. Class rebalancing, threshold calibration, and validation in larger, more representative cohorts are needed before this approach can be considered for screening support.
References
[1] Geneva: World Health Organization, Report 20-23, vol. t/malaria/, no. March. 2023.
[2] P. M. Williams, R. H. Pratt, W. L. Walker, S. F. Price, R. J. Stewart, and P. I. Feng, “Tuberculosis — United States , 2023,” vol. 73, no. 12, pp. 265–270, 2024.
[3] W. Ermawaty and M. Ramdhan, “Tuberculosis Challenges in Jabodetabek toward Golden Indonesia 2045” (in Indonesian), J. Ris. Jakarta, vol. 18, no. 1, pp. 35–48, 2025, doi: https://doi.org/10.37439/jurnaldrd.v18i1.115.
[4] I. Alfina, A. Azzahra, A. Setiawan, U. M. Kudus, I. Alfina, and A. Azzahra, “AI Technology Innovations in the Early Detection of Tuberculosis Using Artificial Intelligence” (in Indonesian), vol. 4, no. 2, pp. 281–297, 2024.
[5] D. T. K. Ghebreyesus, Dr Tedros Adhanom, Global tuberculosis report 2025. 2025.
[6] M. M. Islam et al., “Combining semantic CNN and HOG texture with LightGBM for explainable tuberculosis detection,” Discov. Artif. Intell., vol. 6, no. 1, pp. 1–26, 2026, doi: https://doi.org/10.1007/s44163-026-01109-2.
[7] H. Hastuti, E. S. Sutisna, A. Agung, A. Kirti, and E. Narendra, “Correlation Study between Population Density and Tuberculosis Incidence at Selogiri Community Health Center Area in 2023,” vol. 8, no. 3, pp. 148–154, 2025.
[8] J. Beck et al., “A Tutorial on Meta-Reinforcement Learning,” Found. Trends Mach. Learn., vol. 18, no. 2–3, pp. 224–384, 2025, doi: https://doi.org/10.1561/2200000080.
[9] S. D. Pralambang and S. Setiawan, “Risk Factors for Tuberculosis Incidence in Indonesia” (in Indonesian), vol. 2, no. 1, 2021, doi: https://doi.org/10.7454/bikfokes.v2i1.1023.
[10] B. S. Nusantara and M. Akbar, “Tuberculosis Classification Based on Chest X-Ray Images Using a Multi-Scale Convolutional Neural Network” (in Indonesian), 2024.
[11] J. S. Fitrianova and E. M. Imah, “Tuberculosis Detection Based on Chest X-Rays Using a Convolutional Neural Network Introduction” (in Indonesian), vol. 1, no. 1, pp. 95–106, 2026.
[12] H. Li, R. Zhi, H. Liu, and M. Wang, “Multimodal machine learning-based model for differentiating nontuberculous mycobacteria from mycobacterium tuberculosis,” no. February, 2025, doi: https://doi.org/10.3389/fpubh.2025.1470072.
[13] M. Li, Y. Ling, and J. Ma, “The dynamics of the risk perception on a social network and its effect on disease dynamics,” Infect. Dis. Model., vol. 8, no. 3, pp. 632–644, 2023, doi: https://doi.org/10.1016/j.idm.2023.05.006.
[14] K. Santosh, S. Allu, S. Rajaraman, and S. Antani, “Advances in Deep Learning for Tuberculosis Screening using Chest X-rays: The Last 5 Years Review,” J. Med. Syst., vol. 46, no. 11, 2022, doi: https://doi.org/10.1007/s10916-022-01870-8.
[15] C. Elkhill et al., “Geometric learning and statistical modeling for surgical outcomes evaluation in craniosynostosis using 3D photogrammetry,” Comput. Methods Programs Biomed., vol. 240, 2023, doi: https://doi.org/10.1016/j.cmpb.2023.107689.
[16] “Hepatitis C Disease Prediction Using Machine Learning Models With Smote-Based Data,” vol. 3, no. 2, pp. 44–55, 2026.
[17] K. City et al., “Correspondence : Funding : Pr ep rin t n ot pe er re v Pr ep rin t n ot pe er v ed,” vol. 6, no. 6, pp. 1–4, 2019.
[18] R. Kang, H. Liu, Q. Lei, and T. Li, “Clinical data analysis research on tuberculosis based on machine learning,” no. April, pp. 1–13, 2026, doi: https://doi.org/10.3389/fmed.2026.1785419.
[19] A. Mohammadian, Z. Mortezaei, and Y. NejatyJahromy, “Fast rank-based normalization of miRNA qPCR arrays using support vector regression,” Informatics Med. Unlocked, vol. 39, no. January, p. 101265, 2023, doi: https://doi.org/10.1016/j.imu.2023.101265.
[20] N. A. Palancoi, A. I. Awaluddin, N. S. Ramadhan, A. N. K. Safitri, and S. N. Aminuddin, “Prevention of Tuberculosis Transmission in Households Using Virgin Coconut Oil and Multi-Drug Treatment: A Quasi-Experimental Study,” J. Penelit. Pendidik. IPA, vol. 11, no. 11, pp. 1451–1461, 2025, doi: https://doi.org/10.29303/jppipa.v11i11.12784.
[21] Y. Y. Yeow, X. T. Tan, and L. L. Low, “Mucosal Sporotrichosis from Zoonotic Transmission: Descriptions of Four Case Reports,” Infect. Dis. Rep., vol. 15, no. 1, pp. 102–111, 2023, doi: https://doi.org/10.3390/idr15010011.
[22] G. Ke et al., “LightGBM: A highly efficient gradient boosting decision tree,” Adv. Neural Inf. Process. Syst., vol. 2017-December, no. Nips, pp. 3147–3155, 2017.
[23] Nazori Suhandi, Rendra Gustriansyah, and A. Destria, “Tuberculosis Classification Using UMAP and K-NN Methods” (in Indonesian), bit-Tech, vol. 7, no. 3, pp. 843–852, 2025, doi: https://doi.org/10.32877/bt.v7i3.2227.
[24] V. R. Joseph and A. Vakayil, “SPlit: An Optimal Method for Data Splitting,” Technometrics, vol. 64, no. 2, pp. 166–176, 2022, doi: https://doi.org/10.1080/00401706.2021.1921037.
[25] S. Y. Nailendra, W. Witanti, and G. Abdillah, “Optimizing Online Retail Sales Prediction Using LightGBM and Hyperparameter Tuning” (in Indonesian), J. Algoritm., vol. 22, no. 2, pp. 1931–1942, 2025, doi: https://doi.org/10.33364/algoritma/v.22-2.2551.
[26] Z. Wang et al., “Survival modeling using deep learning, machine learning and statistical methods: A comparative analysis for predicting mortality after admission,” Heal. Data Sci., pp. 1–14, 2026, doi: https://doi.org/10.34133/hds.0449.
[27] N. Rismayanti, D. D. Prasetya, T. Widiyaningtyas, and T. Hirashima, “Comparative Study of Random Forest and Ordinal Regression in Concept Map Quality Assessment: The Role of TF-IDF, BERT, and SMOTE-based Balancing,” Ilk. J. Ilm., vol. 17, no. 3, pp. 336–345, 2025, doi: https://doi.org/10.33096/ilkom.v17i3.2906.336-345.
[28] Zatihulwani Eliza Zihni, Aryani Hany Puspita, and Soelistyo Adji, “Relationship between Family Knowledge Levels and Attitudes toward Preventing Pulmonary Tuberculosis Transmission” (in Indonesian), J. Keperawatan dan Kebidanan, pp. 63–69, 2019.
[29] Y. Hou et al., “Bearing Fault Diagnosis Under Small Data Set Condition: A Bayesian Network Method With Transfer Learning for Parameter Estimation,” IEEE Access, vol. 10, pp. 35768–35783, 2022, doi: https://doi.org/10.1109/ACCESS.2022.3151240.
[30] D. Chicco and G. Jurman, “The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation,” BMC Genomics, vol. 21, no. 1, pp. 1–13, 2020, doi: https://doi.org/10.1186/s12864-019-6413-7.
[31] A. Fernández, S. García, M. Galar, R. C. Prati, B. Krawczyk, and F. Herrera, “Learning from Imbalanced Data Sets,” Learn. from Imbalanced Data Sets, 2018, doi: https://doi.org/10.1007/978-3-319-98074-4.








