Analysis and Prediction of Foodstuffs Prices in Tasikmalaya Using ELM and LSTM

Andry Winata, Manatap Dolok Lauro, Teny Handhayani


Foodstuffs price analysis and prediction is one of the important research topics. This paper applies Long Short-Term Memory (LSTM) and Extreme Learning Machines (ELM) as models for forecasting the price of rice, chicken meat, chicken egg, shallot, garlic, and red chili in the Tasikmalaya traditional market. The dataset is a daily time series obtained from April 2017 - February 2023. LSTM models perform accurately to forecast 5 foodstuffs prices and obtain MAPE scores of no more than 3%. ELM works well to predict the price of rice, chicken meat, chicken egg, shallot, and garlic with MAPE scores are less than 1%. The price of rice, chicken egg, shallot, and red chili has an increasing trend. The correlation analysis finds that the price of chicken egg, shallot, and red chili has a positive correlation with each other.

Full Text:



BPS, “Jumlah Penduduk Menurut Kelompok Umur dan Jenis Kelamin (Jiwa), 2019-2021,” 11 Juli 2023. [Online]. Available:

S. Wijaya, “Indonesian food culture mapping: a starter contribution to promote Indonesian culinary tourism,” Journal of Ethnic Foods, vol. 6, no. 9, pp. 1-10, 2019.

PIHPS Nasional, “PUSAT INFORMASI HARGA PANGAN STRATEGIS NASIONAL,” PIHPS Nasional, 2022. [Online]. Available: [Accessed 23 July 2023].

D. J. Irawati, R. P. Wibowo and S. F. Ayu, “The impact of fluctuation of the price of food commodity on inflation in North Sumatera Province,” in IOP Conference Series: Earth and Environmental Science: International Conference on Agriculture, Environment, and Food Security, Medan, 2019.

F. Faharuddin, M. Yamin, A. Mulyana and Y. Yunita, “Impact of food price increases on poverty in Indonesia: empirical evidence from cross-section data.,” Journal of Asian Business and Economic Studies, vol. 30, no. 2, pp. 1-17, 2022.

T. Andreyeva, M. W. Long and K. D. Brownell, “The Impact of Food Prices on Consumption: A Systematic Review of Research on the Price Elasticity of Demand for Food,” American Journal of Public Health , vol. 100, no. 2, p. 216–222, 2010.

W. E. Waterlander, Y. Jiang, N. Nghiem, H. Eyles, N. Wilson, C. Cleghorn, M. Genç, ,. B. Swinburn, C. N. Mhurchu and T. Blakely, “The effect of food price changes on consumer purchases: a randomised experiment,” Lancet Public Health, vol. 4, no. 8, p. e394–e405, 2019.

S. Bairagi, A. K. Mishra and K. A. Mottaleb, “Impacts of the COVID-19 pandemic on food prices: Evidence from storable and perishable commodities in India,” Plos One, vol. 17, no. 3, pp. 1-15, 2022.

L. W. Ngare and O. W. Derek, “The Effect of Fuel Prices on Food Prices in Kenya,” International Journal of Energy Economics and Policy, vol. 11, no. 4, pp. 127-131, 2021.

G.-B. Huang, Q.-Y. Zhu and C.-K. Siew, “Extreme learning machine: a new learning scheme of feedforward neural networks,” in IEEE International Joint Conference on Neural Networks (IEEE Cat. No.04CH37541), Budapest, 2004.

B. Deng, X. Zhang, W. Gong and D. Shang, “An Overview of Extreme Learning Machine,” in 4th International Conference on Control, Robotics and Cybernetics (CRC), Tokyo, 2019.

J. Wang, S. Lu, S.-H. Wang and Y.-D. Zhang, “A review on extreme learning machine,” Multimedia Tools and Applications, vol. 81, p. 41611–41660, 2022.

S. Das, T. P. Sahu, R. R. Janghel and B. K. Sahu, “Effective forecasting of stock market price by using extreme learning machine optimized by PSO-based group oriented crow search algorithm,” Neural Computing and Applications, vol. 34, p. 555–591, 2022.

C. Deina, M. H. d. A. Prates, C. H. R. Alves, M. S. R. Martins, F. Trojan, S. L. S. Jr. and H. V. Siqueira, “A methodology for coffee price forecasting based on extreme learning machines,” Information Processing in Agriculture, vol. 9, no. 4, pp. 556-565, 2022.

I. M. Teixeira, A. P. Barroso and T. Marques, “Extreme Learning Machine for Short and Mid-term Electricity Spot Prices Forecasting,” in IEEE International Conference on Industrial Engineering and Engineering Management (IEEM), Singapore, 2021.

S. Hochreiter and J. Schmidhuber, “Long Short-term Memory,” Neural Computation, vol. 9, no. 8, pp. 1735-80, 1997.

T. Handhayani, “An integrated analysis of air pollution and meteorological conditions in Jakarta,” Scientific Reports, vol. 13, no. 1, 2023.

T. Handhayani, I. Lewenusa, D. E. Herwindiati and J. Hendryli, “A Comparison of LSTM and BiLSTM for Forecasting the Air Pollution Index and Meteorological Conditions in Jakarta,” in 5th International Seminar on Research of Information Technology and Intelligent Systems (ISRITI), Yogyakarta, 2022.

G. I. Drewil and R. J. Al-Bahadili, “Air pollution prediction using LSTM deep learning and metaheuristics algorithms,” Measurement: Sensors, vol. 24, pp. 1-7, 2022.

W. Budiharto, “Data science approach to stock prices forecasting in Indonesia during Covid-19 using Long Short-Term Memory (LSTM),” Journal of Big Data, vol. 8, no. 47, pp. 1-9, 2021.

A. Lawi, H. Mesra and S. Amir, “Implementation of Long Short-Term Memory and Gated Recurrent Units on grouped time-series data to predict stock prices accurately,” Journal of Big Data, vol. 8, no. 89, pp. 1-19, 2022.

H. N. Bhandari, B. Rimal, N. R. Pokhrel, R. Rimal, K. R. Dahal and R. K. Khatri, “Predicting stock market index using LSTM,” Machine Learning with Applications, vol. 9, pp. 1-15, 2022.

S. F. Asnhari, P. H. Gunawan and Y. Rusmawati, “Predicting Staple Food Materials Price Using Multivariables Factors (Regression and Fourier Models with ARIMA),” in 7th International Conference on Information and Communication Technology (ICoICT), Kuala Lumpur, 2019.

K. Syadiah, Y. H. Chrisnanto and G. Abdillah, “Prediksi Harga Sembako di DKI Jakarta Menggunakan Artificial Neural Network,” Jurnal Masyarakat Informatika Unjani, vol. 3, no. 2, pp. 34-41, 2023.

T. Widiyaningtyas, I. A. E. Zaeni and T. I. Zahrani, “Food Commodity Price Prediction in East Java Using Extreme Learning Machine (ELM) Method,” in International Seminar on Application for Technology of Information and Communication (iSemantic), Semarang, 2020.

O. I. Ratu Farisi, N. Jannah and R. Insania, “Prediksi Harga Komoditas Pangan di Indonesia Menggunakan Backpropagation,” Jurnal Kecerdasan Buatan, Komputasi dan Teknologi Informasi, vol. 3, no. 1, pp. 91-101, 2022.

K. Kusnawi, M. F. E. Putra and J. Ipmawati, “Prediksi Harga Bahan Pokok Dengan Menggunakan Metode Forcasting ARIMA Melalui Open Data Kabupaten Sumedang,” Forcasting ARIMA Melalui Open Data Kabupaten Sumedang, vol. 12, no. 2, pp. 293-307, 2023.

H. A. Rosyid, T. Widiyaningtyas and N. F. Hadinata, “Implementation of the Exponential Smoothing Method for Forecasting Food Prices at Provincial Levels on Java Island,” in Fourth International Conference on Informatics and Computing (ICIC), Semarang, 2019.

S. A. Almufarida, R. Batari, A. Hidayat and A. A. Pravitasari, “Indonesian Food Price Prediction with Adaptive Neuro Fuzzy Inference System,” in International Conference on Artificial Intelligence and Big Data Analytics, Bandung, 2021.

G. Huang, “Missing data filling method based on linear interpolation and lightgbm,” in Journal of Physics: Conference Series, 2021.


Article Metrics

Abstract view : 217 times
PDF - 120 times


  • There are currently no refbacks.

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