Forecasting Chili Prices in Metro City Using Long Short-Term Memory (LSTM)
DOI:
https://doi.org/10.35870/ijsecs.v5i1.3526Keywords:
Cayenne Pepper, Price Prediction, Long Short-Term Memory, Historical Data, Metro CityAbstract
Cayenne pepper is one of the important commodities in the staple market in Indonesia which has a vital role in people's daily lives. Fluctuations in the price of cayenne pepper are often a challenge that impacts farmers and consumers, causing uncertainty in production and distribution planning. This research aims to develop a cayenne pepper price prediction model using the Long Short-Term Memory (LSTM) method, utilizing historical data from the data.metrokota.go.id portal for the period October 2023 to October 2024. By using LSTM, this model successfully captures long-term patterns in cayenne price data, with a Final Validation Loss of 0.00249 which indicates a high level of accuracy. The prediction results are expected to help farmers determine the optimal selling time, traders in managing stocks efficiently, and policy makers in formulating strategies to mitigate the impact of price fluctuations. In addition, this study highlights practical implications for stabilizing commodity markets, particularly in Metro City, as well as the relevance of these findings to be applied to other agricultural commodities.
Downloads
References
Jiang, H., & Liu, C. (2023). Agricultural price forecasting using deep learning approaches. Computers and Electronics in Agriculture, 181, Article 105944.
Ahmed, N. K., Atiya, A. F., Gayar, N. E., & El-Shishiny, H. (2023). An empirical comparison of machine learning models for time series forecasting. Econometric Reviews, 29(5-6), 594-621.
Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735-1780.
Kim, H. Y., & Won, C. H. (2024). LSTM-based deep learning model for agricultural commodity price prediction. IEEE Access, 9, 1223-1234.
Adi, P. A., & Sudianto, F. (2020). Prediksi harga komoditas pangan menggunakan algoritma Long Short-Term Memory (LSTM). Jurnal Teknologi Informasi dan Ilmu Komputer, 7(4), 797-804.
Gao, X., & Chai, L. (2023). Commodity price forecasting using hybrid LSTM networks. Expert Systems with Applications, 162, Article 113859.
Wang, J., & Chen, T. (2023). Deep learning in agricultural price prediction: A systematic review. Computers and Electronics in Agriculture, 185, Article 106155.
Fauzani, S. P., & Rahmi, D. (2023). Penerapan metode ARIMA dalam peramalan harga produksi karet di Provinsi Riau. Jurnal Sains dan Teknologi, 12(2), 45-52.
Taylor, S. J., & Letham, B. (2024). Forecasting at scale: Best practices in time series analysis. The American Statistician, 72(1), 37-45.
Li, Y., Zhu, Z., & Kong, D. (2023). Predicting agricultural commodity prices using machine learning methods. Journal of Forecasting, 42(1), 146-163.
Singh, P., & Kumar, A. (2023). Price forecasting using deep learning: A comprehensive review. ACM Computing Surveys, 55(2), 1-34.
Liu, X., & Zhang, S. (2024). A hybrid model combining LSTM and attention mechanism for time series prediction. Knowledge-Based Systems, 238, Article 108282.
Zhou, H., Zhang, S., Peng, J., Zhang, S., Li, J., Xiong, H., & Zhang, W. (2024). Informer: Beyond efficient transformer for long sequence time-series forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, 35(12), 11106-11115.
Zhang, Q., & Wells, G. (2023). Applications of deep learning in agricultural price analysis. Agricultural Economics Review, 24(1), 78-94.
Miller, T., & Anderson, R. (2023). Machine learning applications in agricultural economics. American Journal of Agricultural Economics, 105(2), 313-332.
Chen, K., Zhou, Y., & Dai, F. (2023). A LSTM-based method for stock price prediction. International Journal of Pattern Recognition and Artificial Intelligence, 34(10), Article 2150034.
Fischer, T., & Krauss, C. (2024). Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270(2), 654-669.
Hidayat, T., & Wibisono, M. (2024). Prediksi harga beras menggunakan LSTM. Jurnal Ilmiah Informatika, 9(1), 23-31.
La Murdani, A. I., & Nanlohy, Y. W. A. (2022). Implementasi model ARIMA untuk peramalan jumlah penumpang. Jurnal Sistem Informasi, 8(2), 112-120.
Qiang, F., & Wei, X. (2024). Deep learning for time series forecasting: A survey. IEEE Transactions on Neural Networks and Learning Systems, 35(1), 11-31.
Xu, Y., & Cohen, S. B. (2024). Stock movement prediction from tweets and historical prices. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, 1(1), 1970-1979.
Zhang, L., & Wang, H. (2023). Multivariate time series forecasting with deep learning: A review. International Journal of Forecasting, 39(2), 345-367.
Downloads
Published
Issue
Section
Categories
License
Copyright (c) 2025 Gusti Made Gunadi, Andreas Perdana

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors who publish with this journal agree to the following terms:
1. Copyright Retention and Open Access License
Authors retain copyright of their work and grant the journal non-exclusive right of first publication under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
This license allows unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2. Rights Granted Under CC BY 4.0
Under this license, readers are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, including commercial use
- No additional restrictions — the licensor cannot revoke these freedoms as long as license terms are followed
3. Attribution Requirements
All uses must include:
- Proper citation of the original work
- Link to the Creative Commons license
- Indication if changes were made to the original work
- No suggestion that the licensor endorses the user or their use
4. Additional Distribution Rights
Authors may:
- Deposit the published version in institutional repositories
- Share through academic social networks
- Include in books, monographs, or other publications
- Post on personal or institutional websites
Requirement: All additional distributions must maintain the CC BY 4.0 license and proper attribution.
5. Self-Archiving and Pre-Print Sharing
Authors are encouraged to:
- Share pre-prints and post-prints online
- Deposit in subject-specific repositories (e.g., arXiv, bioRxiv)
- Engage in scholarly communication throughout the publication process
6. Open Access Commitment
This journal provides immediate open access to all content, supporting the global exchange of knowledge without financial, legal, or technical barriers.
