COMPARATIVE PERFORMANCE OF SARIMAX AND LSTM MODEL IN PREDICTING IMPORT QUANTITIES OF MILK, BUTTER, AND EGGS
Abstract
This study evaluates how well SARIMAX and LSTM models predict monthly imports of HS-04 commodities (butter, eggs, and milk) in Indonesia. Data were provided by BPS Statistics Indonesia, Bank Indonesia, Ministry of Trade, Trade Map, and Indonesia National Single Window and used from January 2006 to February 2024. The SARIMAX model included exogenous variables such as inflation rates, USD/IDR exchange rates, and major Indonesian holidays (Eid al-Fitr, Eid al-Adha, Christmas, and Lunar New Year). The results show that the SARIMAX and LSTM models predict the import volumes of butter, eggs, and milk with good accuracy. However, the SARIMAX model demonstrated superior forecasting accuracy, achieving a lower RMSE of 7547.89 and a MAPE of 13.16 compared to the LSTM model, which yielded an RMSE of 8787.73 and a MAPE of 14.89. The SARIMAX model performed significantly better when the lunar new year was added as an exogenous variable. In order to support price stability and economic growth in Indonesia, this research provides policymakers and industry stakeholders with critical information to optimize import management strategies for butter, eggs, and milk commodities. Accurate forecasts can contribute to price stability, enhanced food security, and sustainable economic development in Indonesia by enabling informed decisions on import quotas, tariff adjustments, investment in domestic production, and strategic reserves.
Downloads
References
J. Heizer and B. Render, Manajemen Operasi, 9th ed., vol. 1. Jakarta: Salemba Empat, 2009.
S. K. Dwi Arini, F. M. Afendi, and P. Silvianti, “Penanganan Pencilan pada Peramalan Data Deret Waktu Menggunakan Metode Pemulusan Holt dan Robust Holt,” Xplore: Journal of Statistics, vol. 10, no. 2, pp. 112–128, May 2021, doi: 10.29244/xplore.v10i2.205.
T. Hastie, R. Tibshirani, and J. Friedman, Springer series in statistics the elements of statistical learning. New York: Springer, 2009.
G. T. Meilania, A. V. Septiani, E. Erianti, K. A. Notodiputro, and Y. Angraini, “Pemodelan ARIMA-GARCH dalam Peramalan Kurs Rupiah Terhadap Yen dengan Masalah Keheterogenan Ragam,” Ekonomis: Journal of Economics and Business, vol. 8, no. 1, p. 165, Mar. 2024, doi: 10.33087/ekonomis.v8i1.1294.
V. P. Ariyanti and Tristyanti Yusnitasari, “Comparison of ARIMA and SARIMA for Forecasting Crude Oil Prices,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 7, no. 2, pp. 405–413, Mar. 2023, doi: 10.29207/resti.v7i2.4895.
C. J. Pangestu, E. Piantari, and M. Munir, “Prediction of diarrhea sufferers in Bandung with Seasonal Autoregressive Integrated Moving Average (SARIMA),” Journal of Computers for Society, vol. 1, no. 1, pp. 61–79, Jun. 2020.
A. Ibrahim and A. O. Musa, “ON THE PERFORMANCE OF SARIMA AND SARIMAX MODEL IN FORECASTING MONTHLY AVERAGE RAINFALL IN KOGI STATE, NIGERIA,” FUDMA JOURNAL OF SCIENCES, vol. 7, no. 6, pp. 24–31, Dec. 2023, doi: 10.33003/fjs-2023-0706-2095.
S. Zahara, Sugianto, and M. Bahril Ilmiddafiq, “Prediksi Indeks Harga Konsumen Menggunakan Metode Long Short Term Memory (LSTM) Berbasis Cloud Computing,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 3, no. 3, pp. 357–363, Dec. 2019, doi: 10.29207/resti.v3i3.1086.
N. Kalchbrenner, I. Danihelka, and A. Graves, “Grid Long Short-Term Memory,” Jul. 2015.
A. P. Ratnasari, B. Susetyo, and K. A. Notodiputro, “COMPARISON OF DOUBLE RANDOM FOREST AND LONG SHORT-TERM MEMORY METHODS FOR ANALYZING ECONOMIC INDICATOR DATA,” BAREKENG: Jurnal Ilmu Matematika dan Terapan, vol. 17, no. 2, pp. 0757–0766, Jun. 2023, doi: 10.30598/barekengvol17iss2pp0757-0766.
Penetapan Sistem Klasifikasi Barang dan Pembebanan Tarif Bea Masuk atas Barang Impor. Indonesia: BN 2022 (316), 2022.
World Bank, “Indonesia Trade Statistics,” World Integrated Trade Solution (WITS).
International Trade Administration, “Indonesia Country Commercial Guides,” Country Commercial Guides - Trade.gov.
Oosga, “Trade Policy Overview of Indonesia in 2023,” Import & Export in Indonesia (2023): Trade Policies & Regulation.
S. A. Rodia and M. A. Ridla, “Prediksi Nilai Impor Susu Segar Menggunakan Algoritma Backpropagation,” Ahsana: Jurnal Penelitian dan Pengabdian kepada Masyarakat, vol. 2, no. 1, pp. 27–32, 2024.
M. H. Lee and Suhartono, “Calendar variation model based on ARIMAX for forecasting sales data with Ramadhan effect,” Proceedings of the Regional Conference on Statistical Sciences, vol. 10, no. 2010, pp. 349–361, Jun. 2010.
U. A. Victor-Edema and I. D. Essi, “Autoregressive integrated moving average with exogenous variable (ARIMAX) model for Nigerian non‐oil export,” European Journal of Business and Management, vol. 8, no. 36, pp. 29–34, 2016.
A. P. Sonia and N. D. Setiawina, “Pengaruh Kurs, Jub Dan Tingkat Inflasi Terhadap Ekspor, Impor Dan Cadangan Devisa Indonesia,” E-Jurnal Ekonomi Pembangunan Universitas Udayana, vol. 5, no. 10, pp. 1077–1102, Oct. 2016.
S. M. Ferguson and A. Smith, “Import demand elasticities based on quantity data: Theory and evidence,” Canadian Journal of Economics/Revue canadienne d’économique, vol. 55, no. 2, pp. 1027–1056, May 2022, doi: 10.1111/caje.12596.
D. A. Dickey and W. A. Fuller, “Distribution of the Estimators for Autoregressive Time Series with a Unit Root,” J Am Stat Assoc, vol. 74, no. 366a, pp. 427–431, Jun. 1979, doi: 10.1080/01621459.1979.10482531.
H. Darmawan, M. Yuliana, and Moch. Z. Samsono Hadi, “GRU and XGBoost Performance with Hyperparameter Tuning Using GridSearchCV and Bayesian Optimization on an IoT-Based Weather Prediction System,” Int J Adv Sci Eng Inf Technol, vol. 13, no. 3, pp. 851–862, Jun. 2023, doi: 10.18517/ijaseit.13.3.18377.
A. Karpathy, J. Johnson, and L. Fei-Fei, “Visualizing and Understanding Recurrent Networks,” Jun. 2015.
B. Karlik and A. V. Olgac, “Performance analysis of various activation functions on generalized MLP architectures of neural network,” International Journal of Artificial Intelligent and Expert System (IJAE), vol. 1, no. 4, pp. 111–122, Feb. 2011.
W. Zha et al., “Forecasting monthly gas field production based on the CNN-LSTM model,” Energy, vol. 260, p. 124889, Dec. 2022, doi: 10.1016/j.energy.2022.124889.
J. J. M. Moreno, A. P. Pol, A. S. Abad, and B. C. Blasco, “Using the R-MAPE index as a resistant measure of forecast accuracy,” Psicothema, vol. 25, no. 4, pp. 500–506, 2013.
Copyright (c) 2025 Ghardapaty Ghaly Ghiffary, Eka Dicky Darmawan Yanuari, Khairil Anwar Notodiputro, Yenni Angraini, Laily Nissa Atul Mualifah
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this Journal agree to the following terms:
- Author retain copyright and grant the journal right of first publication with the work simultaneously licensed under a creative commons attribution license that allow others to share the work within an acknowledgement of the work’s authorship and initial publication of this journal.
- Authors are able to enter into separate, additional contractual arrangement for the non-exclusive distribution of the journal’s published version of the work (e.g. acknowledgement of its initial publication in this journal).
- Authors are permitted and encouraged to post their work online (e.g. in institutional repositories or on their websites) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published works.