Prediksi Harga Cabai Merah Berbasis Long Short-Term Memory dan Komparasi ARIMA pada Data Runtun Waktu

Alisa Apriliani, Ade Ima Afifa Himayati, Findasari Findasari

Abstract


The price of red chili in Jepara Regency, Central Java, shows high and nonlinear fluctuations due to seasonal factors, weather, and supply dynamics. This instability affects food inflation as well as the income of farmers and traders. This study aims to build a prediction model for red chili prices in Jepara Regency using the Long Short-Term Memory (LSTM) method and compare its performance with the Autoregressive Integrated Moving Average (ARIMA) method. The data used are weekly red chili prices from January 2020 to December 2025, obtained from the official hargajateng.org website. The research steps include data preprocessing, normalization using Min-Max Scaling, forming time series data with a sliding window, training the LSTM model using the Adam optimizer, Mean Squared Error (MSE) as the loss function, a maximum of 200 epochs, batch size of 8, and applying EarlyStopping to get the best model. Performance evaluation was done using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). The study results show that the LSTM model can follow chili price change patterns well, producing an RMSE of 16,707.02, an MAE of 12,348.54, and a MAPE of 19.31% on the testing data. Additionally, the 16-week forecasting results give an idea of the price trend in the upcoming period. Compared to the ARIMA model, which produced an RMSE of 20,992.15, an MAE of 13,867.26, and a MAPE of 22.70%, the LSTM model shows better prediction performance with lower error rates. The study indicates that the LSTM method is more effective in modeling nonlinear patterns in red chili price data compared to the ARIMA method.

Keywords


Time Series Data; Forecasting; Chili Price Prediction; Long Short-Term Memory

Full Text:

PDF

References


S. D. Silalahi and C. A. P., “The influence of increased prices of satisfactions on economic growth,” Int. J. Econ. Account. Res., vol. 7, no. 1, pp. 1–9, 2023, doi: 10.29040/ijebar.v7i1.8406.

F. Ustadatin, A. Muqtadir, and A. Arifia, “Implementasi metode weighted moving average (WMA) pada prediksi harga bahan pokok,” Komputika J. Sist. Komput., vol. 12, no. 2, pp. 203–210, 2023, doi: 10.34010/komputika.v12i2.10304.

R. Wahyuni, S. Wira, A. Utomo, T. B. Muhammad, E. Zhafir, and A. Ghifari, “Artificial neural network prediction model for agricultural commodity production using backpropagation algorithm,” Int. J. Knowl. Database, vol. 5, no. 1, pp. 52–68, 2025, doi: 10.30983/knowbase.v5i1.9530.

R. A. Putri et al., “Comparative study of hybrid ARIMA-LSTM and CNN-LSTM for palm oil price forecasting,” J. Sains, Mat. dan Terap., vol. 10, no. 1, pp. 69–79, 2026, doi: 10.30829/zero.v10i1.27631.

G. Mani and R. Volety, “A comparative analysis of LSTM and ARIMA for enhanced real-time air pollutant levels forecasting using sensor fusion with ground station data,” Cogent Eng., vol. 8, no. 1, p. 1936886, 2021, doi: 10.1080/23311916.2021.1936886.

S. Wahyutama, T. Rismawan, and S. Bahri, “Penerapan algoritma long short term memory (LSTM) dalam prediksi pergerakan harga cryptocurrency menggunakan data time series,” Coding: J. Komput. dan Apl., vol. 14, no. 1, pp. 128–139, 2026, doi: 10.26418/coding.v14i1.98866.

F. N. Fikri, “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.

N. T. U. G. Gunawan and W. Andriani, “Prediksi harga cabai musiman menggunakan model LSTM di Jawa Tengah,” J. Inform. Manaj. dan Teknol., vol. 27, no. 2, pp. 243–254, 2025, doi: 10.23969/infomatek.v27i2.26460.

A. R. Adam, H. A. Raditiansyah, F. Imani, M. R. Fawwaz, M. F. Julham, and Lubis, “Comparison of ARIMA and LSTM models in stock price forecasting: A case study of GOTO.JK,” JITE (Journal Informatics Telecommun. Eng.), vol. 8, no. 1, pp. 94–105, 2024, doi: 10.31289/jite.v8i1.11841.

C. T. Utari, M. T. Arya, P. Sembiring, M. H. Rizq, and Z. Siregar, “Analisis komparasi algoritma ARIMA dan LSTM pada prediksi harga cabai merah keriting harian,” Building of Informatics, Technology and Science (BITS), vol. 7, no. 3, pp. 1932–1942, 2025, doi: 10.47065/bits.v7i3.8784.

A. R. H. Dwika and D. Avianto, “Implementasi algoritma LSTM untuk prediksi harga cabai merah keriting di Yogyakarta,” Jurnal Indonesia: Manajemen Informatika dan Komunikasi, vol. 5, no. 1, pp. 635–648, 2024.

K. Choudhary, G. K. Jha, R. Jaiswal, and R. R. Kumar, “A genetic algorithm optimized hybrid model for agricultural price forecasting based on VMD and LSTM network,” Scientific Reports, vol. 15, p. 9932, 2025.

I. Sembiring, I. Prihandi, S. Wijono, and E. Maria, “A hybrid ARIMA–LSTM model optimized with a tree-structured Parzen estimator for automatic hyperparameter tuning to forecast Indonesia’s chili and climate data,” Engineering, Technology & Applied Science Research, vol. 16, no. 3, pp. 35477–35490, 2026.

Y. Sunendar and Rianto, “Comparison of ARIMA, LSTM, and GRU models for forecasting sales of HIT aerosol products,” J. Comput. Inf. Syst., vol. 21, no. 2, pp. 153–159, 2025, doi: 10.33480/pilar.v21i2.6412.

L. D. Jayanti, R. Lestari, F. Aji, and D. Suparno, “Metode autoregressive integrated moving average (ARIMA) pada aplikasi RStudio,” J. Penelit. Multidisplin, vol. 3, no. 4, pp. 1275–1289, 2025, doi: 10.60126/maras.v3i4.1253.

N. S. Salimah, A. Satrianto, and U. N. Padang, “Volatility analysis and forecasting of inflation in Indonesia: Analisis volatilitas dan forecasting inflasi di Indonesia,” J. Econ. Bus. Account., vol. 8, no. 2, pp. 1252–1262, 2025, doi: 10.31539/costing.v8i2.14947.




DOI: https://doi.org/10.37905/euler.v14i2.39298

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Alisa Apriliani, Ade Ima Afifa Himayati, Findasari

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


Euler : Jurnal Ilmiah Matematika, Sains dan Teknologi has been indexed by:


 EDITORIAL OFFICE OF EULER : JURNAL ILMIAH MATEMATIKA, SAINS, DAN TEKNOLOGI

 Department of Mathematics, Faculty of Mathematics and Natural Science, Universitas Negeri Gorontalo
Jl. Prof. Dr. Ing. B. J. Habibie, Tilongkabila, Kabupaten Bone Bolango 96554, Gorontalo, Indonesia
 Email: [email protected]
 +6287777-586462 (WhatsApp Only)
 Euler : Jurnal Ilmiah Matematika, Sains dan Teknologi (p-ISSN: 2087-9393 | e-ISSN:2776-3706) by Department of Mathematics Universitas Negeri Gorontalo is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.  Powered by Public Knowledge Project OJS.