Implementation of Long Short-Term Memory for Chili Price Prediction in East Java Province

Authors

  • Fata Nabil Fikri UIN Sunan Kalijaga Yogyakarta
  • Nurochman Nurochman UIN Sunan Kalijaga Yogyakarta

DOI:

https://doi.org/10.14421/jiska.2025.10.1.33-47

Keywords:

LSTM, Prediction, RMSE, Chili Prices, Groceries

Abstract

Groceries prices often experience fluctuations in several regions in Indonesia, such as East Java Province and one of the commodities is chilies, both red chilies and rawit chilies. Predictive steps that utilize machine learning such as Long-Short Term Memory (LSTM) can be taken to estimate the next price of chili with expectations that the appropriate strategy can be taken by the authorities. LSTM is a network that developed from RNN networks in previous times by offering a longer cell memory so that more information can be stored. This research focuses on finding out whether the LSTM network can be applied to the case of chili price prediction and what architecture and hyperparameter configuration is appropriate for this case. For this reason, the experimental method is used by testing several predetermined variables to obtain the right architecture and hyperparameter configuration. The results of this research show that the LSTM network can be applied in this case and the architecture and best hyperparameter configuration obtained are the same for both types of chilies, namely red chilies and rawit chilies. For red chili, the best RMSE value that can be produced is 1751.890 and 1888.741 for rawit chili.

References

Arfan, A., & ETP, L. (2020). Perbandingan Algoritma Long Short-Term Memory dengan SVR Pada Prediksi Harga Saham di Indonesia. PETIR, 13(1), 33–43. https://doi.org/10.33322/petir.v13i1.858

Campbell, D. T., & Stanley, J. C. (1963). Experimental And Quasi-Experiment Al Designs For Research. Houghton Mifflin Company.

CNN Indonesia. (2022, March 8). Harga Cabai Rawit di Pasar Wilayah Jatim Naik Jelang Ramadan. CNN Indonesia. https://www.cnnindonesia.com/ekonomi/20220307190530-92-767987/harga-cabai-rawit-di-pasar-wilayah-jatim-naik-jelang-ramadan

Dhadse, A. (2021, May 23). Introduction to TensorFlow with Keras API. Analytics Vidhya. https://medium.com/analytics-vidhya/introduction-to-tensorflow-with-keras-api-36cbeeb562d5

Gifari, J., & Widya, A. (2020, November 17). Belajar Data Science : Apa yang dimaksud dengan Tensorflow dan Bagaimana Penggunaannya? DQLab. https://dqlab.id/belajar-data-science-pahami-tensflow

Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735

Chairurrachman, I. (2022). Penerapan Long Short-Term Memory Pada Data Time Series Untuk Prediksi Harga Saham Pt. Indofood Cbp Sukses Makmur Tbk (ICBP) [UIN SUNAN KALIJAGA YOGYAKARTA]. https://digilib.uin-suka.ac.id/id/eprint/53738/

Maity, R. (2021, June 24). Min Max Scaler. Medium. https://medium.com/@ranjitmaity95/min-max-scaler-b2411ab3136d

Oh, F. (2012, September 10). What Is CUDA? NVIDIA. https://blogs.nvidia.com/blog/what-is-cuda-2/

Qiu, J., Wang, B., & Zhou, C. (2020). Forecasting stock prices with long-short term memory neural network based on attention mechanism. PLOS ONE, 15(1), e0227222. https://doi.org/10.1371/journal.pone.0227222

Rahmadini, R., LorencisLubis, E. E., Priansyah, A., N, Y. R. W., & Meutia, T. (2023). Penerapan Data Mining Untuk Memprediksi Harga Bahan Pangan Di Indonesia Menggunakan Algoritma K-Nearest Neighbor. Jurnal Mahasiswa Akuntansi Samudra, 4(4), 223–235. https://doi.org/10.33059/jmas.v4i4.7074

Riyantoko, P. A., Fahruddin, T. M., Hindrayani, K. M., & Safitri, E. M. (2020). Analisis Prediksi Harga Saham Sektor Perbankan Menggunakan Algoritma Long-Short Terms Memory (LSTM). Seminar Nasional Informatika (SEMNASIF), 1(1), 427–435. http://www.jurnal.upnyk.ac.id/index.php/semnasif/article/view/4135

Sanner, M. F. (1999). Python: a programming language for software integration and development. Journal of Molecular Graphics & Modelling, 17(1), 57–61. http://www.ncbi.nlm.nih.gov/pubmed/10660911

Saxena, S. (2024, December 30). What is LSTM? Introduction to Long Short-Term Memory. Analytics Vidhya. https://www.analyticsvidhya.com/blog/2021/03/introduction-to-long-short-term-memory-lstm/

Suradiradja, K. H. (2022). Algoritme Machine Learning Multi-Layer Perceptron dan Recurrent Neural Network untuk Prediksi Harga Cabai Merah Besar di Kota Tangerang. Faktor Exacta, 14(4), 194. https://doi.org/10.30998/faktorexacta.v14i4.10376

Syaidah, K., Chrisnanto, Y. H., & Abdillah, G. (2020). Prediksi Harga Sembako di DKI Jakarta Menggunakan Artificial Neural Network. JUMANJI (Jurnal Masyarakat Informatika Unjani), 3(02), 136. https://doi.org/10.26874/jumanji.v3i02.63

Yadav, A., Jha, C. K., & Sharan, A. (2020). Optimizing LSTM for time series prediction in Indian stock market. Procedia Computer Science, 167, 2091–2100. https://doi.org/10.1016/j.procs.2020.03.257

Yanwardhana, E. (2022, June 15). Ternyata Gegara Ini Harga Cabai Terbang Sampai Ratusan Ribu. CNBC Indonesia. https://www.cnbcindonesia.com/news/20220615103728-4-347195/ternyata-gegara-ini-harga-cabai-terbang-sampai-ratusan-ribu

Ying, X. (2019). An Overview of Overfitting and its Solutions. Journal of Physics: Conference Series, 1168(2), 022022. https://doi.org/10.1088/1742-6596/1168/2/022022

Downloads

Published

2025-01-31

How to Cite

Fikri, F. N., & Nurochman, N. (2025). Implementation of Long Short-Term Memory for Chili Price Prediction in East Java Province. JISKA (Jurnal Informatika Sunan Kalijaga), 10(1), 33–47. https://doi.org/10.14421/jiska.2025.10.1.33-47