Forecasting Drug Inventory Using the SARIMA Method Based on Sales Data at DMA Medika Pharmacy

Authors

  • Tutut Dwinka Utari Universitas Dehasen Bengkulu
  • Siswanto Siswanto Universitas Dehasen Bengkulu
  • Ila Yati Beti Universitas Dehasen Bengkulu

DOI:

https://doi.org/10.37676/jki.v5i3.1891

Keywords:

Forecasting, Drug Inventory, SARIMA, Time Series, Pharmacy

Abstract

DMA Medika Pharmacy faces challenges in managing its drug inventory due to unstable fluctuations in sales, which tend to increase at the beginning of each month and after Eid al-Fitr. Consequently, inventory planning is still based on estimates without optimally utilizing historical data analysis. This study aims to develop a web-based drug inventory forecasting system and implement the Seasonal Autoregressive Integrated Moving Average (SARIMA) method to predict drug inventory requirements based on sales data. This study used a quantitative approach using the Data Analytics Research Method and the Cross-Industry Standard Process for Data Mining (CRISP-DM) development model. The data consisted of historical sales records for 61 types of drugs from January to December 2025, which were processed using the Python programming language. The results showed that the system successfully processed historical data, developed SARIMA models, and generated drug sales forecasts for the period from January to June 2026, presented in the form of tables and graphs, with model performance evaluated using Mean Absolute Error (MAE) and Mean Absolute Percentage Error (MAPE). Evaluation of the 61 types of drugs using MAE and MAPE resulted in an average MAE value of 80.0638 and an average MAPE value of 488.11%, with 24 types of drugs classified in the moderate category and 37 types classified in the poor category. For Actifed Hijau, the evaluation produced an MAE value of 2.2644 and a MAPE value of 60.81%, which was classified in the poor category. These results indicate that the implementation of SARIMA has not yet produced optimal forecasting performance because the historical data used covered only a 12-month period. Nevertheless, the developed system can serve as supporting information to assist the drug inventory planning and management process at DMA Medika Pharmacy.

References

1. Azwar, K., Mulyana, A., Himawan, I. S., Astuti, R., Juwita, R. I., Yuniawati, R. I., Purwatiningsih, K. I., Dewi, L. P. M., Mirayani, N. L. P., Widhiastuti, P. D., Wahyuni, I. K., Bagiana, I. K., & Sumartono. (2022). Pengantar akuntansi. Tohar Media.

2. Awaluddin, R., Fauzi, R., & Harjadi, D. (2021). Perbandingan penerapan metode peramalan guna mengoptimalkan penjualan (Studi kasus pada Konveksi Astaprint Kabupaten Majalengka). Jurnal Bisnisman: Riset Bisnis dan Manajemen, 3(1),12–18. https://doi.org/10.52005/bisnisman.v3i1.43

3. Badan Pemeriksa Keuangan Republik Indonesia. (2023, 8 Agustus). Undang-Undang Nomor 17 Tahun 2023 tentang Kesehatan. https://peraturan.bpk.go.id/details/258028/uu-no-17-tahun-2023

4. Ermawati, A., Amrullah, A., Huda, K., & Haris, M. A. (2024). Implementasi metode Seasonal Autoregressive Integrated Moving Average (SARIMA) untuk memprediksi curah hujan di Kota Semarang. Jurnal Statistika dan Komputasi, 3(2), 62–71. https://doi.org/10.32665/statkom.v3i2.3224

5. Hernadewita, H., Hadi, Y. K., Syaputra, M. J., & Setiawan, D. (2020). Peramalan penjualan obat generik melalui time series forecasting model pada perusahaan farmasi di Tangerang: Studi kasus. Journal of Industrial Engineering & Management Research, 1(2), 35–49. https://doi.org/10.7777/jiemar.v1i2.38

6. Hakiqi, M. I., Firmansyah, A., & Arisanti, R. (2023). Peramalan curah hujan di Kota Bandung dengan metode Seasonal Autoregressive Integrated Moving Average (SARIMA). Inferensi, 1(1). https://doi.org/10.12962/j27213862.v1i1.19119

7. Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts.

8. Hanif, Z. A., Azzahara, A. D., Lumban Raja, M. Y., & Faidah, D. Y. (2025). Peramalan indeks produksi industri di Indonesia dengan metode SARIMA. Dalam Prosiding Seminar Nasional Statistika Aktuaria (Vol. 4, hlm. 1–16). https://prosidingsnsa.statistics.unpad.ac.id

9. Karlina, N., & Malik, E. (2022). Evaluasi perlakuan akuntansi untuk persediaan barang dagang sesuai dengan Pernyataan Standar Akuntansi Keuangan (PSAK) No. 14 pada CV. Pasipa Raya Kota Baubau. Entries: Jurnal Ilmiah Mahasiswa Fakultas Ekonomi UMButon, 4(2)

10. Khoiriyah, N. S., Silfiani, M., Novelinda, R., & Rezki, S. M. (2023). Peramalan jumlah penumpang kapal di Pelabuhan Balikpapan dengan SARIMA. Jurnal Statistika dan Komputasi, 2(2), 76–82. https://doi.org/10.32665/statkom.v2i2.2303

11. Microsoft. (n.d.). Word help & learning. Microsoft Support.https://support.microsoft.com/en-us/word/

12. Mustopa, A., Santoso, J. D., Nauvaldhi, M. S. F., & Wulandari, D. (2025). Pemodelan variabilitas musiman dalam curah hujan: Pendekatan deret waktu. Journal of Information System Management (JOISM), 6(2), 148–155. https://doi.org/10.24076/joism.2025v6i2.1936

13. Nazila, I. (2023). Analisis pembelajaran algoritma pemrograman di era Covid-19 terhadap mahasiswa Matematika. Journal of Informatics and Business, 1(3), 70–75. https://doi.org/10.47233/jibs.v1i2.330

14. Noer, M. A., & Erlin, R. (2022). Inventory control analysis in UD. Dippo Jaya Sentosa Bandar Lampung. Journal Tafkirul Iqtishodiyyah, 2(2), 176–211. https://doi.org/10.63761/10.63761/.2022.v2.i2.a54

15. Nuroh, M. K. (2022). Rancang bangun sistem tracer study berbasis web pada SMK Negeri 2 Blitar Universitas Internasional Batam.

16. Oktaviani, S. A., Listianti, S., & Tripalupi, R. I. (2022). Penerapan Just In Time (JIT) sebagai solusi pengendalian persediaan perusahaan di masa pandemi Covid-19. AKSY: Jurnal Ilmu Akuntansi dan Bisnis Syariah, 4(1), 117–132. https://doi.org/10.15575/aksy.v4i1.17106

17. Nurani, A. T., Setiawan, A., & Susanto, B. (2023). Perbandingan kinerja regresi decision tree dan regresi linear berganda untuk prediksi BMI pada dataset asthma. Jurnal Sains dan Edukasi Sains, 6(1), 34–43

18. Paramita, A., Niswati, Z., & Karyati, Z. (2022). Microsoft PowerPoint sebagai media pembelajaran audiovisual pada Taman Kanak-Kanak Fatahillah Lenteng Agung. Jurnal PkM (Pengabdian kepada Masyarakat), 5(3), 255–260. https://doi.org/10.30998/jurnalpkm.v5i3.7017

19. Perez-Guerra, U. H., et al. (2023). Seasonal autoregressive integrated moving average (SARIMA) time-series model for milk production forecasting. PLOS ONE, 18(11), e0288849. https://doi.org/10.1371/journal.pone.0288849

20. Purnama, H. (2022). Pengaruh pembelajaran Microsoft Office terhadap kemampuan mahasiswa/i. Jurnal Lentera Bisnis, 9(1), 36–48.

21. Puspadini, R., & Zen, M. (2023). Python: dasar dan pemrograman. Tahta Media Group.

22. Putri, A. E., MZ, Y., & Bororing, J. E. (2023). Implementasi K-Means clustering dan CRISP-DM untuk pengelompokan daerah rawan narkoba. JINTEKS: Jurnal Informatika Teknologi dan Sains, 7(2), 606–615.

23. Rahman, S., Sembiring, A., Siregar, D., Khair, H., Prahmana, I. G. E., Siregar, D., Puspadini, R., & Zen, M. (2023). Python: dasar dan pemrograman berorientasi objek. Tahta Media.

24. Ramadani, K., Wahyuningsih, S., & Hayati, M. N. (2022). Pemodelan harga saham PT. Telekomunikasi Indonesia Tbk menggunakan model TSR linier. EKSPONENSIAL, 13(1), 45–50. https://doi.org/10.30872/eksponensial.v13i1.879

25. Riaz, M., Sial, M. H., Sharif, S., & Mehmood, Q. (2023). Epidemiological forecasting models using ARIMA and SARIMA. Journal of Environmental and Public Health, 2023, 8907610. https://doi.org/10.1155/2023/8907610

26. Riyanto, S., & Rahman, P. A. (2022). Metode riset penelitian kesehatan. Deepublish.

27. Rizki, M. I., & Taqiyyuddin, T. A. (2021). Penerapan model SARIMA untuk memprediksi inflasi Indonesia. Jurnal Sains Matematika dan Statistika, 7(2), 62–72.

28. Rosa, A. S., & Shalahuddin, M. (2018). Rekayasa perangkat lunak: Terstruktur dan berorientasi objek. Informatika Bandung.

29. Rosiyanti, R. (2023). Pemanfaatan Python dalam pengolahan data. Jurnal Informatika, 5(2), 123–130.

30. Sari, N. L. I. R., Astawa, I. W. P., & Suharta, I. G. P. (2023). Peramalan nilai ekspor di Bali dengan SARIMA. Wahana Matematika dan Sains, 17(3), 28–41.

31. Siahaan, C., Sumarauw, M., Gultom, R., Ottay, S., Linggot, A., Wior, A., & Langkai, R. (2024). Mengoperasikan Microsoft Excel. VitaMedica: Jurnal Rumpun Kesehatan Umum, 2(2), 104–110. https://doi.org/10.62027/vitamedica.v2i2.237

32. Shulihah, S. (2024). Waktu tunggu pelayanan resep di rumah sakit. PubHealth, 3(1), 26–32.

33. Syahzaqi, I., Sediono, S., Oktavia, S. S., Anggakusuma, A. C., & Wieldyanisa, E. E. (2025). Peramalan jumlah barang kereta api di Indonesia menggunakan metode Seasonal Autoregressive Integrated Moving Average (SARIMA). STATKOM: Jurnal Statistika dan Komputasi, 4(1). https://doi.org/10.32665/statkom.v4i1.4424

34. Tokan, L. F., & Hermawan, A. (2023). Implementasi model SARIMA untuk memprediksi produksi minyak kelapa sawit. Jurnal FASILKOM (teknologi informasi dan ilmu komputer), 13(3), 456–463. https://doi.org/10.37859/jf.v13i3.6033

35. Vatresia, A., & Utama, F. (2023). Time series modeling of disease occurrence patterns with SARIMA (Seasonal Autoregressive Integrated Moving Average). Window of Health: Jurnal Kesehatan, 6(2), 154–166. https://doi.org/10.33096/woh.vi.739

36. Yahya, A. (2022). Peramalan indeks harga konsumen Indonesia dengan metode Seasonal ARIMA (SARIMA). Jurnal Gaussian, 11(2), 313–322. https://doi.org/10.14710/j.gauss.v11i2.35528

37. Yakubu, U. A., & Saputra, M. P. A. (2022). Time series model analysis using autocorrelation function (ACF) and partial autocorrelation function (PACF) for e-wallet transactions during a pandemic. International Journal of Global Operations Research, 3(3), 80–85. https://doi.org/10.47194/ijgor.v3i3.168

Downloads

Published

2026-09-11

How to Cite

Utari, T. D., Siswanto, S., & Beti, I. Y. (2026). Forecasting Drug Inventory Using the SARIMA Method Based on Sales Data at DMA Medika Pharmacy. Jurnal Komputer Indonesia, 5(3), 143–154. https://doi.org/10.37676/jki.v5i3.1891

Issue

Section

Articles

Similar Articles

1 2 > >> 

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