A Temporally Validated Machine Learning Framework for Predicting Anti-Tuberculosis Drug Stockouts: A Synthetic-Data Evaluation

Authors

  • Ahmad Asyhadi Universitas Dinamika Bangsa
  • Rudolf Sinaga Universitas Dinamika Bangsa
  • Widyadhana Candraningtias Universitas Dinamika Bangsa

DOI:

https://doi.org/10.30871/jaic.v10i5.14092

Keywords:

Stockout Prediction, Machine Learning, Temporal Validation, Pharmaceutical Inventory, Anti-Tuberculosis Drugs

Abstract

Continuous availability of anti-tuberculosis drugs is essential for maintaining tuberculosis treatment services, yet future stockouts arise from interacting demand, inventory, procurement, and supply conditions that are not fully represented by static stock thresholds. This study evaluates a temporally validated machine-learning framework for future anti-tuberculosis drug stockout prediction using synthetic longitudinal data as a methodological test bed prior to evaluation with operational hospital data. Drug-day predictors were derived from four domains: demand and consumption, inventory, procurement and supply, and historical stockouts. A 14-day horizon was used as the primary prediction target, with 7- and 30-day horizons considered for sensitivity analysis. Logistic Regression, Random Forest, XGBoost, and LightGBM were evaluated using temporally separated training, validation, and locked out-of-time test periods and compared with reorder-point and coverage-based inventory rules. Model assessment included recall, precision, specificity, F1-score, ROC-AUC, PR-AUC, Brier score, calibration, alert burden, temporal robustness, feature ablation, and predictive explanation. Logistic Regression was selected during validation but its recall decreased to 0.556 in the locked test period, whereas LightGBM descriptively achieved a recall of 0.889 and XGBoost a PR-AUC of 0.960. The results demonstrate the importance of locked temporal evaluation, multidomain predictors, threshold selection, and operationally oriented assessment. These findings validate the analytical pipeline rather than establish real-world effectiveness; external evaluation using SIMRS data remains required.

Downloads

Download data is not yet available.

References

[1] Marchelli LP. Recurrent Tuberculosis Due To Lack Of Continuity Of Treatment: Evidence-Based Analysis. The Brazilian Journal of Infectious Diseases 2026;30:105767. https://doi.org/https://doi.org/10.1016/j.bjid.2026.105767.

[2] Sazali MF, Rahim SSSA, Mohammad AH, Kadir F, Payus AO, Avoi R, et al. Improving Tuberculosis Medication Adherence: The Potential of Integrating Digital Technology and Health Belief Model. Tuberc Respir Dis (Seoul) 2023;86:82–93. https://doi.org/10.4046/trd.2022.0148.

[3] Dartois VA, Rubin EJ. Anti-tuberculosis treatment strategies and drug development: challenges and priorities. Nat Rev Microbiol 2022;20:685–701. https://doi.org/10.1038/s41579-022-00731-y.

[4] Kėvelaitienė K, Davidavičienė VE, Danila E. Tuberculosis treatment failure: what are the risk factors? A comprehensive literature review. Multidiscip Respir Med 2025;20. https://doi.org/10.5826/mrm.2025.1030.

[5] Tola FB, Anbessa GT, Yikna BB. Anti-Tuberculosis Commodities Management Performance and Factors Affecting It at Public Health Facilities in Dire Dawa City Administration, Ethiopia. J Multidiscip Healthc 2020;Volume 13:1677–91. https://doi.org/10.2147/JMDH.S280253.

[6] Sintayehu K, Zeleke ED, Temesgen B, Kifle M, Assefa DG, Zenebe K, et al. Determinants of stock-outs of first line anti-tuberculosis drugs: the case of public health facilities of Addis Ababa city administration health bureau, Addis Ababa, Ethiopia. BMC Health Serv Res 2022;22:1047. https://doi.org/10.1186/s12913-022-08430-3.

[7] Yang J, Yu X, Yao Y, Zhao W, Chen Y, Wang Z, et al. Analysis of the impact of national centralized volume-based procurement drug policy on the market dynamics of tuberculosis drugs. BMC Health Serv Res 2026;26:756. https://doi.org/10.1186/s12913-026-14668-y.

[8] Shukar S, Zahoor F, Hayat K, Saeed A, Gillani AH, Omer S, et al. Drug Shortage: Causes, Impact, and Mitigation Strategies. Front Pharmacol 2021;12. https://doi.org/10.3389/fphar.2021.693426.

[9] Antari NPU, Sujarna IGW, Sari NWRP, Fatoni N, Damayanti NL, Suena NMDS. Roots Cause of the Drug Shortage and Expired Drug Problem at Hospital X. JMMR (Jurnal Medicoeticolegal Dan Manajemen Rumah Sakit) 2024;13:67–84. https://doi.org/10.18196/jmmr.v13i1.46.

[10] Cornelissen N, Zielhuis SW, van den Bemt PMLA, van den Bemt BJF. Causes and management of drug shortages: A scoping review. Research in Social and Administrative Pharmacy 2026;22:232–53. https://doi.org/https://doi.org/10.1016/j.sapharm.2025.10.008.

[11] Adak S. Impacts of Drug Shortages in the Pharmaceutical Supply Chain. Universal Journal of Pharmacy and Pharmacology 2024;3:22. https://doi.org/10.31586/ujpp.2024.1136.

[12] Nguyen A, Lamouri S, Pellerin R, Tamayo S, Lekens B. Data analytics in pharmaceutical supply chains: state of the art, opportunities, and challenges. Int J Prod Res 2022;60:6888–907. https://doi.org/10.1080/00207543.2021.1950937.

[13] Anwar AA, Cahyo LM, Wijayanti T. Inventory Control of Medicine with Minimum-Maximum Stock Level at Ibu Fatmawati Soekarno Hospital Surakarta in 2023. Jurnal Manajemen Dan Pelayanan Farmasi (Journal of Management and Pharmacy Practice) 2025;15:186. https://doi.org/10.22146/jmpf.98812.

[14] Hediarta Widiana Putra P, Ari Kristina S. Efficiency of Drug Inventory Control in Hospitals in Indonesia Using the Minimum-Maximum Stock Level: A Systematic Review. 106600 | JMPF 2026;16:2026. https://doi.org/10.22146/jmpf.106600.

[15] Oeser G, Romano P. Exploring risk pooling in hospitals to reduce demand and lead time uncertainty. Operations Management Research 2021;14:78–94. https://doi.org/10.1007/s12063-020-00171-y.

[16] Shourabizadeh H, Kundakcioglu OE, Bozkir CDC, Tufekci MB, Henry AC. Healthcare inventory management in the presence of supply disruptions and a reliable secondary supplier. Ann Oper Res 2023;331:1149–206. https://doi.org/10.1007/s10479-023-05620-y.

[17] Ramadhan W, Noersasongko E, Syukur A, Soeleman MA. Machine Learning Approaches for Pharmaceutical Demand Forecasting: A Bibliometric and Systematic Review of Methods and Research Trends. Ingenierie Des Systemes d’Information 2026;31:179–91. https://doi.org/10.18280/isi.310117.

[18] Lam JYJ, Barras M, Scott IA, Masood H, Abdel-Hafez A, Falconer N. Machine learning risk prediction models for medication harm in hospitalised adult patients. Ther Adv Drug Saf 2026;17. https://doi.org/10.1177/20420986251409325.

[19] Pall R, Gauthier Y, Auer S, Mowaswes W. Predicting drug shortages using pharmacy data and machine learning. Health Care Manag Sci 2023;26:395–411. https://doi.org/10.1007/s10729-022-09627-y.

[20] Jiang W, Wang Y, Shi W, Li C, Li M, Tang Y, et al. Artificial Intelligence in Clinical Pharmacy: From Decision Support to Prescription Execution. J Clin Pharm Ther 2026;2026:4675298. https://doi.org/https://doi.org/10.1155/jcpt/4675298.

[21] Dong J, Gao Y, Liu Y, Yang X. Development and validation of the nomogram to predict the risk of hospital drug shortages: A prediction model. PLoS One 2023;18:e0284528–e0284528. https://doi.org/10.1371/journal.pone.0284528.

[22] Roe HS, Ko DE, Nam SY, Oh JE, Park SM, Lee SH, et al. Drug shortage in South Korea: machine learning-based prediction models and analysis of duration and causal factors. Front Pharmacol 2026;Volume 16-2025.

[23] Nur A, Harbuwono D. Limitations of Artificial Intelligence Research in Predicting Type 2 Diabetes Macrovascular Complications—A Scoping Review. Diabetes 2024;73:1987-LB. https://doi.org/10.2337/db24-1987-LB.

[24] Aronson JK. When I use a word . . . Drug stock-outs. BMJ 2025;389. https://doi.org/10.1136/bmj.r1088.

[25] Liu Y, Kalaitzi D, Wang M, Papanagnou C. A machine learning approach to inventory stockout prediction. Journal of Digital Economy 2025;4:144–55. https://doi.org/https://doi.org/10.1016/j.jdec.2025.06.002.

[26] Pichardo-Lowden AR, Haidet P, Umpierrez GE, Lehman EB, Quigley FT, Wang L, et al. Clinical Decision Support for Glycemic Management Reduces Hospital Length of Stay. Diabetes Care 2022;45:2526–34. https://doi.org/10.2337/dc21-0829.

[27] Yang W, Jiang J, Schnellinger EM, Kimmel SE, Guo W. Modified Brier score for evaluating prediction accuracy for binary outcomes. Stat Methods Med Res 2022;31:2287–96. https://doi.org/10.1177/09622802221122391.

[28] Cha K, Lee S, Shin J, Lim JY. Beyond Vital Signs: A Machine Learning Model Using Comprehensive Triage-Time Data to Detect Undertriage in Emergency Department Patients. AI 2026;7. https://doi.org/10.3390/ai7060202.

[29] Ganie SM, Dutta Pramanik PK, Zhao Z. Enhanced and Interpretable Prediction of Multiple Cancer Types Using a Stacking Ensemble Approach with SHAP Analysis. Bioengineering 2025;12. https://doi.org/10.3390/bioengineering12050472.

Downloads

Published

2026-10-06

How to Cite

[1]
A. Asyhadi, R. Sinaga, and W. Candraningtias, “A Temporally Validated Machine Learning Framework for Predicting Anti-Tuberculosis Drug Stockouts: A Synthetic-Data Evaluation”, JAIC, vol. 10, no. 5, pp. 4523–4533, Oct. 2026.

Similar Articles

<< < 64 65 66 

You may also start an advanced similarity search for this article.