Pendekatan LSTM Berbasis Deep Learning dalam Memprediksi Fluktuasi Harga Cabai


  • Aryka Anisa Pertiwi * Mail Universitas Logistik dan Bisnis Internasional, Bandung, Indonesia
  • Nisa Hanum Harani Universitas Logistik dan Bisnis Internasional, Bandung, Indonesia
  • Cahyo Prianto Universitas Logistik dan Bisnis Internasional, Bandung, Indonesia
  • (*) Corresponding Author
Keywords: Price Prediction; Chili; LSTM; Deep Learning; CRISP-DM

Abstract

The significant fluctuation in chili prices in Indonesia leads to economic instability, particularly for consumers and market stakeholders. This study aims to develop a daily chili price prediction model using the Long Short-Term Memory (LSTM) algorithm based on deep learning, designed to capture seasonal patterns and long-term dependencies in historical data. The research adopts the CRISP-DM approach, encompassing business understanding, data processing, model training, and implementation into a web-based dashboard. The dataset, collected from Pagar Alam City between 2022 and 2024, includes features such as previous prices, chili sub-variants, sinusoidal time transformations, and market conditions. The LSTM regression model demonstrated high performance, achieving an R² score of 0.9567, a MAE of 1,402.92, and an RMSE of 2,595.98. Additionally, a classification model was developed to predict price status (increase, decrease, stable) as a decision-support tool. The deployment of this system into an interactive dashboard enables real-time price predictions. These results indicate that the LSTM-based approach is not only technically accurate but also offers a practical solution for commodity price monitoring and decision-making in the food sector.

Downloads

Download data is not yet available.

References

C. A. Rizqy, N. R. Ali, and K. R. Hayati, “Analisis Pengaruh Kenaikan Harga Bahan Pokok Terhadap Kebutuhan Rumah Tangga Dan Sebagai Tantangan Kegiatan Pkk Di Daerah Ketegan, Taman, Sidoarjo,” Causa J. Huk. Dan Kewarganegaraan, vol. 3, no. 8, pp. 55–65, 2024, doi: https://doi.org/10.3783/causa.v3i8.3284.

M. R. Widarso and S. Djamaluddin, “Analisis Harga Pangan Pokok Terhadap Ketahanan Pangan Di Indonesia,” J. Sos. Ekon. Pertan. dan Agribisnis, vol. 21, no. 2, pp. 256–272, 2024, doi: http://dx.doi.org/10.20961/sepa.v21i2.83821.

R. L. Manogna, V. Dharmaji, and S. Sarang, “Enhancing agricultural commodity price forecasting with deep learning,” Sci. Rep., vol. 15, no. 1, pp. 1–24, 2025, doi: 10.1038/s41598-025-05103-z.

G. M. Gunadi and A. Perdana, “Forecasting Chili Prices in Metro City Using Long Short-Term Memory (LSTM),” Int. J. Softw. Eng. Comput. Sci., vol. 5, no. 1, pp. 215–225, 2025, doi: 10.35870/ijsecs.v5i1.3526.

M. Tami and A. Y. Owda, “Efficient commodity price forecasting using long short-term memory model,” IAES Int. J. Artif. Intell., vol. 13, no. 1, pp. 994–1004, 2024, doi: 10.11591/ijai.v13.i1.pp994-1004.

Q. Zhang, W. Yang, A. Zhao, X. Wang, Z. Wang, and L. Zhang, Short-term forecasting of vegetable prices based on LSTM model—Evidence from Beijing’s vegetable data, vol. 19, no. 7 July. 2024. doi: 10.1371/journal.pone.0304881.

L. Heng, C. Hao, and L. C. Nan, “Load forecasting method based on CEEMDAN and TCN-LSTM,” PLoS One, vol. 19, no. 7 July, pp. 1–18, 2024, doi: 10.1371/journal.pone.0300496.

P. Pandit et al., “Hybrid modeling approaches for agricultural commodity prices using CEEMDAN and time delay neural networks,” Sci. Rep., vol. 14, no. 1, p. 26639, 2024, doi: 10.1038/s41598-024-74503-4.

H. Jayadianti, V. A. Permadi, and P. Partoyo, “LSTM forecast of volatile national strategic food commodities,” J. Infotel, vol. 15, no. 4, pp. 345–351, 2023, doi: 10.20895/infotel.v15i4.1037.

M. Galphade, V. B. Nikam, B. Banerjee, A. W. Kiwelekar, and P. Sharma, “Stacked LSTM for Short-Term Wind Power Forecasting Using Multivariate Time Series Data,” Int. J. Interact. Multimed. Artif. Intell., vol. 9, no. 3, pp. 71–81, 2025, doi: 10.9781/ijimai.2024.07.002.

A. M. Shimaoka, R. C. Ferreira, and A. Goldman, “The evolution of CRISP-DM for Data Science: Methods, Processes and Frameworks,” SBC Rev. Comput. Sci., vol. 4, no. 1, pp. 28–43, 2024, doi: 10.5753/reviews.2024.3757.

N. Lundén, E. T. Bekar, A. Skoogh, and J. Bokrantz, “Domain Knowledge in CRISP-DM: An Application Case in Manufacturing,” IFAC-PapersOnLine, vol. 56, no. 2, pp. 7603–7608, 2023, doi: 10.1016/j.ifacol.2023.10.1156.

B. L. Ortiz et al., “Data Preprocessing Techniques for AI and Machine Learning Readiness: Scoping Review of Wearable Sensor Data in Cancer Care,” JMIR mHealth uHealth, vol. 12, p. e59587, 2024, doi: 10.2196/59587.

J. Kim, H. Kim, H. G. Kim, D. Lee, and S. Yoon, “A comprehensive survey of deep learning for time series forecasting: architectural diversity and open challenges,” Artif. Intell. Rev., vol. 58, no. 7, 2025, doi: 10.1007/s10462-025-11223-9.

F. F. Mojtahedi, N. Yousefpour, S. H. Chow, and M. Cassidy, “Deep Learning for Time Series Forecasting: Review and Applications in Geotechnics and Geosciences,” Arch. Comput. Methods Eng., vol. 32, no. 6, pp. 3415–3445, 2025, doi: 10.1007/s11831-025-10244-5.

W. Witanti, S. Arie Anggara, and M. Melina, “Peramalan Harga Cabai Rawit Merah Menggunakan Attention Mechanism Berbasis Long Short-Term Memory,” J. Appl. Comput. Sci. Technol., vol. 5, no. 2, pp. 128–135, 2024, doi: 10.52158/jacost.v5i2.875.

T. O. Hodson, “Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not,” Geosci. Model Dev., vol. 15, no. 14, pp. 5481–5487, 2022, doi: 10.5194/gmd-15-5481-2022.

H. Sonavane, G. By, and P. Pankaj, “TradeForecast : Stock Performance and Prediction Web Application,” 2009.

M. S. Iskandar and Rita Wahyuni Arifin, “Prediction of Red Chili Prices at Musi Market Using Android-Based Linear Regression Algorithm,” J. Artif. Intell. Eng. Appl., vol. 4, no. 3, pp. 2215–2221, 2025, doi: 10.59934/jaiea.v4i3.1138.

M. Elkabalawy, A. Al-Sakkaf, E. Mohammed Abdelkader, and G. Alfalah, “CRISP-DM-Based Data-Driven Approach for Building Energy Prediction Utilizing Indoor and Environmental Factors,” Sustainability, vol. 16, no. 17, p. 7249, 2024, doi: 10.3390/su16177249.

Y. H. Agustin, F. Nuraeni, and R. Lestari, “Implementation of Multiple Linear Regression Algorithm in Predicting Red Chili Prices in Garut Regency,” JITK (Jurnal Ilmu Pengetah. dan Teknol. Komputer), vol. 10, no. 2, pp. 304–314, 2024, doi: 10.33480/jitk.v10i2.5882.

F. N. Fikri and N. Nurochman, “Performance Evaluation of Long Short-Term Memory for Chili Price Prediction,” JISKA (Jurnal Inform. Sunan Kalijaga), vol. 10, no. 1, pp. 33–47, 2025, doi: 10.14421/jiska.2025.10.1.33-47.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Pendekatan LSTM Berbasis Deep Learning dalam Memprediksi Fluktuasi Harga Cabai

Dimensions Badge
Article History
Submitted: 2025-07-25
Published: 2025-09-04
Abstract View: 23 times
PDF Download: 39 times
How to Cite
Pertiwi, A., Harani, N., & Prianto, C. (2025). Pendekatan LSTM Berbasis Deep Learning dalam Memprediksi Fluktuasi Harga Cabai. Building of Informatics, Technology and Science (BITS), 7(2), 1278-1289. https://doi.org/10.47065/bits.v7i2.8100
Section
Articles