ANALISIS PREDIKSI HARGA CABAI MENGGUNAKAN RANDOM FOREST DENGAN INTEGRASI DATA
DOI:
https://doi.org/10.29407/4qsr7b54Abstract
Fluktuasi harga cabai sering terjadi akibat pengaruh faktor produksi, kondisi cuaca, dan faktor musiman sehingga menyulitkan pelaku usaha maupun pemerintah dalam melakukan perencanaan. Penelitian ini bertujuan memprediksi harga cabai menggunakan algoritma Random Forest dengan memanfaatkan data historis harga, data agroklimat yang meliputi suhu, kelembapan, kecepatan angin, dan tutupan awan, serta faktor musiman berupa hari besar nasional. Data dari berbagai sumber diintegrasikan berdasarkan tanggal dan diproses melalui tahapan pembersihan data, transformasi variabel, pelatihan model, dan evaluasi. Kinerja model dievaluasi menggunakan Mean Absolute Error, Root Mean Square Error, Mean Absolute Percentage Error, dan koefisien determinasi. Hasil penelitian menunjukkan bahwa model Random Forest mampu menghasilkan prediksi yang akurat dengan nilai Mean Absolute Percentage Error sebesar 7,86% dan koefisien determinasi sebesar 0,9052. Hasil tersebut menunjukkan bahwa Random Forest efektif digunakan untuk memprediksi harga cabai dan berpotensi menjadi alat bantu pengambilan keputusan dalam pengelolaan komoditas pangan.
Keywords:
agroklimat, harga cabai, machine learning, prediksi harga, Random Forest.##plugins.themes.default.displayStats.downloads##
References
[1] A. D. Lestari, E. Erlikasna, R. C. Simbolon, I. Breta, M. Daniyal, and R. S. Karo Karo, "Dampak Fluktuasi Harga Beras, Bawang Merah, Cabai Terhadap Inflasi," Jurnal Sosial Ekonomi Pertanian, vol. 20, no. 2, 2024, doi: 10.20956/jsep.v20i2.35057.
[2] I. R. A. S. Putri, Harianto, and N. Rosiana, "DISPARITAS HARGA CABAI RAWIT (Capsicum frutescens L.) ANTAR WAKTU DAN ANTAR WILAYAH DI INDONESIA," Jurnal Agribisnis Indonesia, vol. 13, no. 2, pp. 333-349, 2025, doi: 10.29240/jai.2025.13.2.333-349.
[3] F. Nasirudin and A. A. Dzikrullah, "Pemodelan Harga Cabai Indonesia dengan Metode Seasonal ARIMAX," Jurnal Statistika dan Aplikasinya, vol. 7, no. 1, 2023, doi: 10.21009/JSA.07110.
[4] G. Gunawan, W. Andriani, and N. T. Ujianto, "Prediksi Harga Cabai Musiman Menggunakan Model LSTM di Jawa Tengah," Infomatek, vol. 27, no. 2, pp. 243-254, 2025, doi: 10.23969/infomatek.v27i2.26460.
[5] J. Permana, R. Naufal Sujana, K. Pradipa Komala, and B. Dwiyanto, "PREDIKSI HARGA CABAI RAWIT MENGGUNAKAN LGBM, RANDOM FOREST, DAN XGBOOST," Jurnal Ilmu Komputer dan Sistem Informasi, 2026, doi: 10.24912/7nbfrp18.
[6] D. R. Lestari, E. A. S. Bangun, F. L. Gaol, and T. Matsuo, "Machine Learning-Based Forecasting of Agricultural Commodity Prices Using Ensemble Models," Journal of Human, Earth, and Future, vol. 6, no. 4, pp. 887-899, 2025, doi: 10.28991/hef-2025-06-04-09.
[7] V. M. Byrareddy, T. Shaik, L. Kouadio, U. Bhattarai, T. Nguyen-Huy, and S. Mushtaq, "Explainable machine learning approaches for climate-driven forecasting of global Arabica coffee prices," Smart Agricultural Technology, vol. 14, 2026, doi: 10.1016/j.atech.2026.102146.
[8] X. Kang, J. Qi, Z. Bai, W. Xu, and X. Kong, "Integrating heterogeneous user-generated contents into spatial modeling of agricultural landscape recreational services: A geographically weighted random forest approach," Ecological Informatics, vol. 96, 2026, doi: 10.1016/j.ecoinf.2026.103796.
[9] D. Rey-Blanco, J. L. Zofío, and J. González-Arias, "Improving hedonic housing price models by integrating optimal accessibility indices into regression and random forest analyses," Expert Systems with Applications, vol. 235, 2024, doi: 10.1016/j.eswa.2023.121059.
[10] S. Chowdhury, A. K. Saha, and D. K. Das, "Hydroelectric Power Potentiality Analysis for the Future Aspect of Trends with R2 Score Estimation by XGBoost and Random Forest Regressor Time Series Models," in Procedia Computer Science, 2025, pp. 450-456, doi: 10.1016/j.procs.2025.01.004.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Copyright on any article is retained by the author(s).
- The author grants the journal, right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
- The article and any associated published material is distributed under the Creative Commons Attribution-ShareAlike 4.0 International License