Multi-Commodity Food Price Forecasting Ahead of Eid Al-Fitr in Indonesia (2026–2030): A Comparative Study of Machine Learning Algorithms Using Time-Series Data

Authors

  • Murtani Murtani Universitas Budi Luhur
  • Dewi Kobi Universitas Budi Luhur
  • Imelda Imelda Universitas Budi Luhur

DOI:

https://doi.org/10.57152/malcom.v6i1.2572

Keywords:

Eid Al-Fitr, Food Price Prediction, Gradient Boosting, LSTM, Random Forest

Abstract

Food price volatility during the Eid Al-Fitr season poses a recurring socioeconomic challenge in Indonesia, significantly affecting household purchasing power and national food security. This study develops a predictive framework for forecasting staple food price increases ahead of Eid Al-Fitr for the period 2026–2030 using three machine learning algorithms: Random Forest (RF), Long Short-Term Memory (LSTM), and Gradient Boosting Regression (GBR). The dataset comprises multi-commodity time-series records of eleven essential commodities, including rice, chicken, beef, eggs, shallots, garlic, chili peppers, cooking oil, sugar, wheat flour, and soybeans, collected from the Indonesian National Strategic Food Price Information Center (PIHPS) spanning January 2015 to December 2025. Exogenous features, including inflation rate, USD/IDR exchange rate, fuel price index, and seasonal indicators, were incorporated. A walk-forward validation scheme with a strict chronological train validation test split was employed to prevent data leakage, and a recursive multi-step forecasting strategy was adopted for generating the 2026–2030 predictions. The results demonstrate that LSTM achieved the highest predictive accuracy with a Mean Absolute Percentage Error (MAPE) of 4.32%, followed by GBR (5.87%) and RF (7.14%). The model forecasts an average price surge of 12.6–18.4% across key commodities during the 30-day pre-Eid window for 2026–2030.

Downloads

Download data is not yet available.

References

Pew Research Center, "The Future of the Global Muslim Population: Projections for 2010-2030," Pew Forum on Religion & Public Life, pp. 1-209, 2011.

E. Suryadarma, A. Suryahadi, and S. Sumarto, "The effects of food price increases on consumption and poverty in Indonesia," Journal of Development Studies, vol. 54, no. 6, pp. 1012-1031, 2018.

Bank Indonesia, "Monetary Policy Report: Seasonal Inflation Dynamics during Ramadan and Eid Al-Fitr," Jakarta: Bank Indonesia, 2025.

Badan Pusat Statistik (BPS), "Pengeluaran untuk Konsumsi Penduduk Indonesia per Provinsi," BPS-Statistics Indonesia, Jakarta, 2024.

H. Torlesse, L. Kiess, and M. W. Bloem, "Association of household rice expenditure with child nutritional status indicates a role for macroeconomic food policy in combating malnutrition," Journal of Nutrition, vol. 133, no. 5, pp. 1320-1325, 2003.

Badan Pangan Nasional, "Rencana Strategis Badan Pangan Nasional 2023-2029," Jakarta: BPN, 2023.

T. G. Dietterich, "Machine learning for sequential data: A review," in Proc. Joint IAPR Int. Workshop on Structural and Syntactic Pattern Recognition, LNCS, vol. 2396, pp. 15-30, 2002.

L. Breiman, "Random Forests," Machine Learning, vol. 45, no. 1, pp. 5-32, 2001.

S. Hochreiter and J. Schmidhuber, "Long Short-Term Memory," Neural Computation, vol. 9, no. 8, pp. 1735-1780, 1997.

J. H. Friedman, "Greedy function approximation: A gradient boosting machine," Annals of Statistics, vol. 29, no. 5, pp. 1189-1232, 2001.

R. F. Engle and C. W. Granger, "Co-integration and error correction: Representation, estimation, and testing," Econometrica, vol. 55, no. 2, pp. 251-276, 1987.

R. J. Hyndman and G. Athanasopoulos, Forecasting: Principles and Practice, 3rd ed. Melbourne: OTexts, 2021.

H. Lutkepohl, New Introduction to Multiple Time Series Analysis. Berlin: Springer, 2005.

A. Mosavi, P. Ozturk, and K. W. Chau, "Flood prediction using machine learning models: Literature review," Water, vol. 10, no. 11, p. 1536, 2018.

D. Pratama, R. Sarno, and C. Fatichah, "Rice price prediction using artificial neural networks in East Java Province," in Proc. IEEE ISEMANTIC, pp. 134-139, 2023.

A. Wijaya and B. Sutanto, "Application of Random Forest algorithm for palm oil price forecasting," Journal of Agricultural Informatics, vol. 12, no. 3, pp. 78-91, 2024.

Pusat Informasi Harga Pangan Strategis Nasional (PIHPS), "Database Harga Pangan," [Online]. Available: https://hargapangan.id. [Accessed: Dec. 20, 2025].

Kementerian Perdagangan RI, "Laporan Perkembangan Harga Bahan Pokok 2015-2025," Jakarta: Kemendag, 2025.

Pertamina, "Laporan Tahunan: Harga Jual BBM di Indonesia 2015-2025," Jakarta, 2025.

R. A. Irizarry, Introduction to Data Science: Data Analysis and Prediction Algorithms with R. Boca Raton: CRC Press, 2020.

J. W. Osborne, Best Practices in Data Cleaning. Thousand Oaks: SAGE, 2013.

P. J. Rousseeuw and M. Hubert, "Robust statistics for outlier detection," Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, vol. 1, no. 1, pp. 73-79, 2011.

J. D. Hamilton, Time Series Analysis. Princeton: Princeton University Press, 1994.

P. Probst, M. N. Wright, and A.-L. Boulesteix, "Hyperparameters and tuning strategies for Random Forest," Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, vol. 9, no. 3, e1301, 2019.

Y. Gal and Z. Ghahramani, "Dropout as a Bayesian approximation: Representing model uncertainty in deep learning," in Proc. ICML, pp. 1050-1059, 2016.

T. Chen and C. Guestrin, "XGBoost: A scalable tree boosting system," in Proc. KDD, pp. 785-794, 2016.

C. Bergmeir and J. M. Benitez, "On the use of cross-validation for time series predictor evaluation," Information Sciences, vol. 191, pp. 192-213, 2012.

M. Marcellino, J. H. Stock, and M. W. Watson, "A comparison of direct and iterated multistep AR methods for forecasting macroeconomic time series," Journal of Econometrics, vol. 135, no. 1-2, pp. 499-526, 2006.

R. Y. Rubinstein and D. P. Kroese, Simulation and the Monte Carlo Method, 3rd ed. Hoboken: Wiley, 2016.

C. D. Lewis, Industrial and Business Forecasting Methods. London: Butterworth Scientific, 1982.

S. F. Crone, M. Hibon, and K. Nikolopoulos, "Advances in forecasting with neural networks? Empirical evidence from the NN3 competition on time series prediction," International Journal of Forecasting, vol. 27, no. 3, pp. 635-660, 2011.

B. Lim, S. O. Arik, N. Loeff, and T. Pfister, "Temporal Fusion Transformers for interpretable multi-horizon time series forecasting," International Journal of Forecasting, vol. 37, no. 4, pp. 1748-1764, 2021.

E. Arianto and N. Hidayat, "Analysis of chili price volatility in Indonesian traditional markets," Jurnal Agro Ekonomi, vol. 39, no. 2, pp. 145-162, 2023.

World Bank, "Indonesia Economic Prospects: Demographic Transition and Food Security Challenges," Jakarta: World Bank Indonesia, 2024.

S. Irawan, "Food supply chain analysis: Identifying bottlenecks in Indonesian horticultural distribution systems," Supply Chain Management Review, vol. 18, no. 4, pp. 234-251, 2024.

FAO, "The State of Food and Agriculture 2024: Livestock Sector in Developing Countries," Rome: Food and Agriculture Organization of the United Nations, 2024.

G. E. P. Box, G. M. Jenkins, G. C. Reinsel, and G. M. Ljung, Time Series Analysis: Forecasting and Control, 5th ed. Hoboken: Wiley, 2015.

Kementerian Perdagangan RI, "Pedoman Operasi Pasar untuk Stabilisasi Harga Pangan," Jakarta: Kemendag, 2024.

N. Arunraj, D. Ahrens, and M. Fernandes, "Application of SARIMAX model to forecast daily sales in food retail industry," International Journal of Operations Research and Information Systems, vol. 7, no. 2, pp. 1-21, 2016.

Z. Wu, S. Pan, F. Chen, G. Long, C. Zhang, and P. S. Yu, "A comprehensive survey on graph neural networks," IEEE Trans. Neural Networks and Learning Systems, vol. 32, no. 1, pp. 4-24, 2021.

X. Liu, L. Zeng, and L. Ling, "A study on agricultural commodity price prediction model based on secondary decomposition and long short-term memory network," Agriculture, vol. 14, no. 1, p. 60, 2024. doi: 10.3390/agriculture14010060.

D. Oladimeji, O. Ogunbiyi, and S. Adebayo, "Predicting food price trends in Nigeria using advanced machine learning techniques: LSTM and XGBoost," International Journal of Research and Innovation in Social Science, vol. 8, no. 12, pp. 1–15, 2024.

R. Kumar, S. Singh, and A. Sharma, "Enhancing agricultural commodity price forecasting with deep learning," Scientific Reports, vol. 15, no. 1, pp. 1–18, 2025. doi: 10.1038/s41598-025-05103-z.

A. Patil, D. Shah, A. Shah, and R. Kotecha, "Forecasting prices of agricultural commodities using machine learning for global food security: Towards Sustainable Development Goal 2," International Journal of Engineering Trends and Technology, vol. 71, no. 12, pp. 277–291, 2023. doi: 10.14445/22315381/IJETT-V71I12P226.

M. A. Dar, R. K. Sharma, and S. Kumar, "Deep learning-enabled cherry price forecasting and real-time system deployment across multi-market supply chains in India," Scientific Reports, vol. 15, no. 1, pp. 1–20, 2025. doi: 10.1038/s41598-025-30980-9.

N. Zhang, Q. An, S. Zhang, and H. Ma, "Price prediction for fresh agricultural products based on a boosting ensemble algorithm," Mathematics, vol. 12, no. 22, pp. 1–16, 2024.

Downloads

Published

2026-02-02

How to Cite

Murtani, M., Kobi, D., & Imelda, I. (2026). Multi-Commodity Food Price Forecasting Ahead of Eid Al-Fitr in Indonesia (2026–2030): A Comparative Study of Machine Learning Algorithms Using Time-Series Data. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 6(1), 404-413. https://doi.org/10.57152/malcom.v6i1.2572