PREDIKSI KEBUTUHAN STOK OBAT MENGGUNAKAN METODE HYBRID LONG SHORT-TERM MEMORY (LSTM) DAN CATBOOST
##plugins.themes.academic_pro.article.main##
Abstract
Drug inventory planning in primary health facilities requires an accurate forecasting model because fluctuating demand can trigger stockouts or excess inventory. This study develops and evaluates a hybrid Long Short-Term Memory (LSTM) and CatBoost model for predicting the stock requirements of five essential medicines at Puskesmas Pattingalloang. The dataset consists of monthly drug dispensing records from January 2019 to December 2025. LSTM is applied as a temporal feature extractor with a three-month sliding window, while CatBoost functions as the final nonlinear regression estimator. Model performance is assessed using MAE, RMSE, MAPE, and SMAPE, with a single LSTM model used as the baseline comparison. The results show that model suitability depends on the demand pattern of each medicine. The hybrid LSTM-CatBoost model performs better on highly fluctuating medicines, particularly Paracetamol 500 mg with 24.03% SMAPE and Guaifenesin with 37.28% SMAPE. In contrast, the single LSTM model is more efficient for relatively stable demand, especially Blood Supplement Tablets with 14.09% SMAPE. Forecasting for 2026 also provides annual demand estimates that can support data-driven drug requirement planning. These findings indicate that machine learning-based forecasting is useful for pharmaceutical inventory decision support, but model selection must consider the fluctuation characteristics of each drug.
##plugins.themes.academic_pro.article.details##

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
[2] V. A. Lestari, A. Y. Ananta, dan P. Basudewa, “Sistem Informasi Prediksi Persediaan Obat Di Apotek Naylun Farma Menggunakan Holt-Winters,” Jurnal Informatika Polinema, vol. 9, no. 2, pp. 229-236, 2023, doi: 10.33795/jip.v9i2.1289.
[3] A. Srinivas, A. Soni, G. Prajapati, dan M. P. S. Manjunath, “Pharmaceutical Sales Data Prediction Using Time Series Forecasting,” International Journal of Intelligent Systems and Applications in Engineering, vol. 13s, pp. 681-696, 2024.
[4] M. L. Ashari dan M. Sadikin, “Prediksi Data Transaksi Penjualan Time Series Menggunakan Regresi LSTM,” Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI), vol. 9, no. 1, p. 1, 2020, doi: 10.23887/janapati.v9i1.19140.
[5] A. Billah, A. Yolanda, D. Khairani, D. T. Putra, dan H. T. Syif, “Prediksi Jumlah Obat Menggunakan Jaringan Syaraf Tiruan RNN pada Data Penjualan Bulan Juli,” Jurnal Sains dan Teknologi (JSIT), vol. 5, no. 3, pp. 215-221, 2025, doi: 10.47233/jsit.v5i3.3588.
[6] R. Rathipriya, A. A. Abdul Rahman, S. Dhamodharavadhani, A. Meero, dan G. Yoganandan, “Demand forecasting model for time-series pharmaceutical data using shallow and deep neural network model,” Neural Computing and Applications, vol. 35, no. 2, pp. 1945-1957, 2023, doi: 10.1007/s00521-022-07889-9.
[7] A. M. Abed, “Accelerate demand forecasting by hybridizing CatBoost with the dingo optimization algorithm to support supply chain conceptual framework precisely,” Frontiers in Sustainability, vol. 5, 2024, doi: 10.3389/frsus.2024.1388771.
[8] A. V. Dorogush, V. Ershov, dan A. Gulin, “CatBoost: gradient boosting with categorical features support,” 2018.
[9] L. Prokhorenkova, G. Gusev, A. Vorobev, A. V. Dorogush, dan A. Gulin, “CatBoost: Unbiased boosting with categorical features,” Advances in Neural Information Processing Systems, 2020, pp. 6638-6648.
[10] R. J. Hyndman dan G. Athanasopoulos, Forecasting: Principles and Practice. OTexts, 2021.
[11] H. Hewamalage, C. Bergmeir, dan K. Bandara, “Recurrent Neural Networks for Time Series Forecasting: Current status and future directions,” International Journal of Forecasting, vol. 37, no. 1, pp. 388-427, 2021, doi: 10.1016/j.ijforecast.2020.06.008.
[12] C. J. Willmott dan K. Matsuura, “Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance,” Climate Research, vol. 30, no. 1, pp. 79-82, 2020, doi: 10.3354/cr030079.
[13] S. Makridakis, E. Spiliotis, dan V. Assimakopoulos, “Statistical and Machine Learning forecasting methods: Concerns and ways forward,” PLoS ONE, vol. 13, no. 3, e0194889, 2020.
[14] M. T. Hidayat dan M. Sulistiyono, “Analisis Performa Algoritma XGBoost, GRU, dan Prophet dalam Peramalan Penjualan Obat untuk Optimasi Rantai Pasok Farmasi,” Jurnal Pendidikan dan Teknologi Indonesia, vol. 5, no. 1, pp. 65-73, 2025, doi: 10.52436/1.jpti.562.