Forecasting Local Food Needs Using LSTM with Attention Mechanism: A Case Study of Indonesian Rice Prices
9 Halaman
Penulis
ISSN
2502-5481
Penerbit
Faculty of Engineering, Universitas Muhammadiyah Yogyakarta
Diterbitkan pada
29/05/2026
Bahasa
English
Kata Kunci
Abstrak
Food security is a national priority in Indonesia, with rice as the dominant staple food consumed by nearly the entire population. Fluctuations in rice prices directly affect household welfare and serve as a practical proxy for local food demand. This study appliesa multivariate deep learning approach to forecast local food needs by integrating rice prices with key socio-economic indicators, namely inflation, caloric and protein consumption, and population growth. Monthly data spanning 2007–2020 were compiled from public sources (the World Food Programme, Statistics Indonesia/BPS, and the World Bank). A Long Short-Term Memory (LSTM) network enhanced with an Attention mechanism was benchmarked against Naïve Forecasting and ARIMA baselines using RMSE and MAPE. The proposed LSTM+Attentionmodel achieved the lowest forecasting error (MAPE = 7.9%), outperforming ARIMA (10.2%) and Naïve Forecasting (12.5%), while its attention weights revealed that population growth and protein consumption are the most influential socio-economic drivers of rice price dynamics. These findings demonstrate that multivariate deep learning can both improve forecast accuracy and provide interpretable insight into the structural drivers of staple food prices, supporting evidence-based food policy under Indonesia's Asta Cita agenda.
