Forcasting Analysis of Drug Use in Hospitals Based on Multivariate Long Short-Term Memory Networks
DOI:
https://doi.org/10.70609/g-tech.v9i4.8244Keywords:
Drug Forecasting, Inventory Management, Multivariate Time Series, Deep Learning, LSTMAbstract
Effective drug inventory management is crucial for maintaining service quality and cost efficiency in hospitals. Inaccurate procurement planning can cause stockouts or overstock conditions, disrupting healthcare operations. This study presents a predictive model for outpatient drug consumption using a Multivariate Long Short-Term Memory (LSTM) network. The dataset comprises historical records from the general, pediatric, and maternity polyclinics at RSIA Fatimah Hospital, Probolinggo Regency, East Java, Indonesia, collected in January 2023. The variables include timestamp, polyclinic name, drug name, and quantity used. Data preprocessing involved cleaning, one-hot encoding for categorical features, min-max normalization, and time-based train-test splitting to avoid data leakage. The multivariate LSTM model was trained for 500 epochs under various configurations, evaluated using Mean Absolute Error (MAE) and Mean Absolute Percentage Error (MAPE). Three model groups (A, B, C) with distinct neuron counts and batch sizes were tested to assess performance variations. Model B1 achieved the best results, with the lowest MAE (10.239), MAPE (1.979%), and highest R² (0.199). Although the R² value indicates limited variance explanation, Nonetheless, the model remains useful for operational forecasting, the model effectively captures temporal patterns in drug consumption, demonstrating its potential as a decision-support tool for optimizing hospital pharmaceutical inventory management.
References
Alhanaf, A. S., Farsadi, M., & Balik, H. H. (2024). Fault Detection and Classification in Ring Power System With DG Penetration Using Hybrid CNN-LSTM. IEEE Access, 12(April), 59953–59975. https://doi.org/10.1109/ACCESS.2024.3394166
Anshory, M. I., Priyandari, Y., & Yuniaristanto, Y. (2020). Peramalan Penjualan Sediaan Farmasi Menggunakan Long Short-term Memory: Studi Kasus pada Apotik Suganda. Performa: Media Ilmiah Teknik Industri, 19(2). https://doi.org/10.20961/performa.19.2.45962
Ashari, M. L., & Sadikin, M. (2020). PREDIKSI DATA TRANSAKSI PENJUALAN TIME SERIES MENGGUNAKAN REGRESI LSTM. Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI), 9(1), 1. https://doi.org/10.23887/janapati.v9i1.19140
Bayangkari Karno, A. S. (2020). Analisis Data Time Series Menggunakan LSTM (Long Short Term Memory) Dan ARIMA (Autocorrelation Integrated Moving Average) Dalam Bahasa Python. Ultima InfoSys : Jurnal Ilmu Sistem Informasi, 11(1), 1–7. https://doi.org/10.31937/si.v9i1.1223
Devaraj, J., Madurai Elavarasan, R., Pugazhendhi, R., Shafiullah, G. M., Ganesan, S., Jeysree, A. K., Khan, I. A., & Hossain, E. (2021). Forecasting of COVID-19 cases using deep learning models: Is it reliable and practically significant? Results in Physics, 21(December 2020), 103817. https://doi.org/10.1016/j.rinp.2021.103817
Eka P, D. (2021). PERANCANGAN SISTEM INFORMASI PENDAFTARAN PASIEN RAWAT JALAN MENGGUNAKAN MICROSOFT VISUAL STUDIO 2010 DI PUSKESMAS CIJAGRA LAMA KOTA BANDUNG. 2(4), 1147–1152.
Husaini, G. R., Suakanto, S., & Fakhrurroja, H. (2025). Design of Drug Sales Prediction System Using The Hybrid Demand Forecast Model. ICoCSETI 2025 - International Conference on Computer Sciences, Engineering, and Technology Innovation, Proceeding, 107–112. https://doi.org/10.1109/ICoCSETI63724.2025.11020313
Ma, Q., Chen, Z., Tian, S., & Ng, W. W. Y. (2022). Difference-Guided Representation Learning Network for Multivariate Time-Series Classification. IEEE Transactions on Cybernetics, 52(6), 4717–4727. https://doi.org/10.1109/TCYB.2020.3034755
Mbonyinshuti, F., Nkurunziza, J., Niyobuhungiro, J., & Kayitare, E. (2024). Health supply chain forecasting: a comparison of ARIMA and LSTM time series models for demand prediction of medicines. Acta Logistica, 11(2), 269–280. https://doi.org/10.22306/AL.V11I2.510
Mohsen, S., Elkaseer, A., & Scholz, S. G. (2021). Industry 4.0-Oriented Deep Learning Models for Human Activity Recognition. IEEE Access, 9(November), 150508–150521. https://doi.org/10.1109/ACCESS.2021.3125733
Nathaniel, J. (2023). Penerapan Nonpooling CNN-LSTM Untuk Prediksi Pemakaian Obat Rumah Sakit. http://files/2159/Nathaniel dan Engel - Penerapan Nonpooling CNN-LSTM Untuk Prediksi Pemak.pdf
Nketiah, E. A., Chenlong, L., Yingchuan, J., & Aram, S. A. (2023). Recurrent neural network modeling of multivariate time series and its application in temperature forecasting. PLOS ONE, 18(5), e0285713. https://doi.org/10.1371/journal.pone.0285713
Tang, Z., Cui, Z., Wang, H., Liu, P., Xu, X., & Yang, K. (2024). A 4-DOF Exosuit Using a Hybrid EEG-Based Control Approach for Upper-Limb Rehabilitation. IEEE Journal of Translational Engineering in Health and Medicine, 12(April), 622–634. https://doi.org/10.1109/JTEHM.2024.3454077
Wahyudi, A. S., Khairil, K., & Zulfiandry, R. (2024). Penerapan Metode Regresi Linear Berganda Dalam Prediksi Jumlah Pemakaian Obat Pada Rumah Sakit Rafflesia Kota Bengkulu. JURNAL MEDIA INFOTAMA, 20(2), 525–533. https://doi.org/10.37676/jmi.v20i2.6512
Yanti, F., Nurina Sari, B., Defiyanti, S., Jl Ronggo Waluyo, K. H., & Timur, T. (2024). IMPLEMENTASI ALGORITMA LSTM PADA PERAMALAN STOK OBAT (STUDI KASUS: PUSKESMAS BEBER). In Jurnal Mahasiswa Teknik Informatika (Vol. 8, Issue 4).
Yusiana, M. A., Rossa, G., & Aprilia, O. (2022). Literatur Review: Analisis Manajemen Obat Di Rumah Sakit Pemerintah Dan Swasta. JARSI: Jurnal Administrasi RS Indonesia, 1(2), 81–88.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Fanny Brawijaya, Agung Teguh Wibowo Almais , Totok Chamidy

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








