Comparison of Xgboost, Lstm, and Neural Prophet Models for Red Cayenne Pepper Price Prediction in East Java

Authors

  • Hafid Alfa Anamsyah Informatics, UPN "Veteran" Jawa Timur
  • I Gede Susrama Mas Diyasa Informatics, UPN "Veteran" Jawa Timur
  • Andreas Nugroho Sihananto Informatics, UPN "Veteran" Jawa Timur

DOI:

https://doi.org/10.59934/jaiea.v5i3.2584

Keywords:

Price prediction, Red cayenne pepper, XGBoost, LSTM, Neural Prophet, Time series forecasting

Abstract

The price of red cayenne pepper in Indonesia, particularly in East Java Province, frequently experiences significant fluctuations, affecting food inflation and economic stability. Accurate price forecasting is therefore essential to support decision-making in food supply chain management and price stabilization policies. This study compares the forecasting performance of three models, namely XGBoost, LSTM, and Neural Prophet, using historical price data from September 2024 to August 2025 obtained from the official Siskaperbapo website of the East Java Provincial Department of Industry and Trade (DISPERINDAG). A quantitative time series forecasting approach was employed, and model performance was evaluated using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). The results indicate that XGBoost achieved the highest prediction accuracy, with an RMSE of 0.52, MAE of 0.40, and MAPE of 1.42%, outperforming LSTM and Neural Prophet. The findings also show that model selection, dataset length, and training-test split proportion significantly influence forecasting performance, with longer datasets and larger training sets generally improving prediction accuracy. Overall, XGBoost proved to be the most accurate and stable model for forecasting red cayenne pepper prices, providing valuable support for AI-based food price prediction and agricultural policy decision-making.

Downloads

Download data is not yet available.

References

A. Mandarsari, R. Anindita, and S. Budi, “Price Volatility Analysis of Cayenne Pepper (Capsicum frutescens) in East Java,” Agricultural Socio-Economics Journal, vol. 20, no. 2, Apr. 2020. doi: 10.21776/UB.AGRISE.2020.020.2.5.

M. N. E. Brahmana, Sahara, and N. K. Hidayat, “Price Volatility Analysis of Red and Cayenne Pepper of Java Islands during Covid-19 Pandemic,” Journal of Economics, Finance and Accounting Studies, vol. 4, no. 4, Sep. 2022. doi: 10.32996/jefas.2022.4.4.2.

I. Marina, D. Sukmawati, E. Juliana, and others, “Dinamika Pasar Komoditas Pangan Strategis: Analisis Fluktuasi Harga Dan Produksi,” Paspalum, vol. 12, no. 1, Apr. 2024. doi: 10.35138/paspalum.v12i1.700.

B. W. Sari and D. Prabowo, “Analisis perbandingan prediksi harga rumah dengan Random Forest, Gradient Boosting, dan XGBoost,” Intellect: Indonesian Journal of Learning and Technological Innovation, vol. 4, no. 1, pp. 42–51, 2025.

A. F. Alkayes and T. Sugihartono, “Perbandingan algoritma XGBoost dan LSTM dalam prediksi harga saham Tesla menggunakan data tahun 2025,” J. Pendidik. dan Teknol. Indones., vol. 5, no. 6, pp. 1563–1573, 2025.

A. Primawati, F. A. Mustika, and Y. Wibawanti, “Analisis tren dan prediksi harga emas menggunakan Prophet dan Long Short Term Memory (LSTM),” Simetris: Jurnal Teknik Mesin, Elektro dan Ilmu Komputer, vol. 16, no. 2, 2025.

R. K. K. Sitepu, “Price Transmission in the Indonesian Red Chili Market: Static and Dynamic Models,” Jurnal Ekonomi Kuantitatif Terapan, vol. 15, no. 2, Aug. 2022. doi: 10.24843/jekt.2022.v15.i02.p04.

A. Fauzi and V. Andriani, “Pengaruh meningkatnya harga cabai terhadap permintaan dan penawaran di Indonesia,” Jurnal Akuntansi dan Manajemen Bisnis, vol. 3, no. 1, Apr. 2023. doi: 10.56127/jaman.v3i1.645.

R. J. Hyndman and G. Athanasopoulos, Forecasting: Principles and Practice, 3rd ed. Melbourne: OTexts, 2021.

T. Chen and C. Guestrin, “XGBoost: A Scalable Tree Boosting System,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, pp. 785–794.

F. Z. Ulya, S. Khomsah, and N. A. F. Tanjung, “Perbandingan Algoritma XGBoost dan LSTM untuk Memprediksi Harga Bitcoin Berdasarkan Harga Harian, Sentimen, dan Google Trends Index,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 12, no. 6, 2025.

F. Yuan et al., “An xLSTM–XGBoost Ensemble Model for Forecasting Non-Stationary and Highly Volatile Gasoline Price,” Computers, vol. 14, no. 7, 2025.

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

S. Mehtab, J. Sen, and A. Dutta, “Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models,” arXiv preprint arXiv:2009.10819, 2020.

A. H. Mahmoud et al., “Enhancing the Exploitation of Natural Resources for Green Energy: An Application of LSTM-Based Meta-Model for Aluminum Prices Forecasting,” Resources Policy, vol. 92, 2024.

O. Triebe et al., “NeuralProphet: Explainable Forecasting at Scale,” arXiv preprint arXiv:2111.15397, 2021.

Downloads

Published

2026-06-30

How to Cite

Hafid Alfa Anamsyah, I Gede Susrama Mas Diyasa, & Andreas Nugroho Sihananto. (2026). Comparison of Xgboost, Lstm, and Neural Prophet Models for Red Cayenne Pepper Price Prediction in East Java. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 5(3), 4950–4958. https://doi.org/10.59934/jaiea.v5i3.2584

Issue

Section

Articles