Prediksi Harga Pangan di Kota Pangkalpinang Menggunakan Algoritma XGBoost
DOI:
https://doi.org/10.33504/jitt.v4i2.420Keywords:
Food Prices, Price Predictions, Time Series, XGBoost, PangkalpinangAbstract
Food price fluctuations are a strategic issue affecting food security and regional inflation stability. Pangkalpinang City experiences significant inflationary pressure in the food sector, highlighting the need for accurate predictive models. This study aims to develop a time series–based price prediction model for strategic food commodities using the Extreme Gradient Boosting (XGBoost) algorithm. The dataset consists of daily prices of 40 food commodities obtained from the Pangkalpinang City Trade Information System, covering the period from January 1, 2024, to May 28, 2025. The research methodology includes data preprocessing, feature engineering, time series–based data splitting, hyperparameter optimization using Optuna, and model evaluation. Feature engineering incorporates price lag features, statistical features, calendar features, and national holiday indicators. Model performance is evaluated using Mean Absolute Percentage Error (MAPE), Root Mean Square Error (RMSE), and the R-Squared (R²). The results indicate that XGBoost achieves high prediction accuracy for most commodities, particularly those with stable price patterns, while still capturing fluctuation trends in highly volatile commodities. The findings suggest that commodity-specific modeling provides better performance than a single global model and can support regional inflation control policies.
Downloads
References
V. R. Virginia, Herman Nayoan, and Neni Kumayas, “Peran Pemerintah Dalam Mewujudkan Ketahanan Pangan di Minahasa Selatan (Studi Dinas Ketahanan Pangan Minahasa Selatan),” Journal Governance, vol. 1, no. 1, Apr. 2021.
F. Fauzin, “Pengaturan Impor Pangan Negara Indonesia Yang Berbasis Pada Kedaulatan Pangan,” Pamator Journal, vol. 14, no. 1, pp. 1–9, May 2021, doi: 10.21107/pamator.v14i1.10497.
T. Ericko, M. Dolok Lauro, and T. Handhayani, “PREDIKSI HARGA PANGAN DI PASAR TRADISIONAL KOTA SURABAYA DENGAN METODE LSTM,” Jakarta, Aug. 2023. doi: https://doi.org/10.24912/jiksi.v11i2.26012.
R. Bahtiar and F. D. Raswatie, “Analisis Fluktuasi Harga Pangan di Kota Bogor,” Indonesian Journal of Agriculture Resource and Environmental Economics, vol. 1, no. 2, pp. 70–81, Oct. 2023, doi: 10.29244/ijaree.v1i2.42020.
“Inflasi Tahun Kalender (y-to-d) Provinsi Kepulauan Bangka Belitung Menurut Kelompok Pengeluaran (2022=100) - Tabel Statistik - Badan Pusat Statistik Provinsi Kep. Bangka Belitung.” Accessed: Apr. 13, 2025. [Online]. Available: https://babel.bps.go.id/id/statistics-table/2/MTE5MiMy/inflasi-tahun-kalender--y-to-d--provinsi-kepulauan-bangka-belitung-menurut-kelompok-pengeluaran--2022-100---persen-.html
B. Jange, “Prediksi Harga Saham Bank BCA Menggunakan XGBoost,” ARBITRASE: Journal of Economics and Accounting, vol. 3, no. 2, pp. 231–237, Nov. 2022, doi: 10.47065/arbitrase.v3i2.495.
T. Astutiningsih, D. R. S. Saputro, and Sutanto, “Optimasi Algoritme Xtreme Gradient Boosting (XGBoost) pada Harga Saham PT. United Tractors Tbk.,” SPECTA Journal of Technology, vol. 7, no. 3, pp. 632–641, Dec. 2023, doi: 10.35718/specta.v7i3.1031.
C. Digno, M. I. Jauhar, and M. N. Syaifullah, “Pendekaatan Deep Learning dan Gradient Boosting dalam Prediksi Harga Properti Airbnb dengan Analisi Sentimen,” Jurnal Elektronik Ilmu Komputer Udayana, vol. 12, no. 1, p. 191, Jul. 2023, doi: https://doi.org/10.24843/JLK.2023.v12.i01.p22.
J. F. Hair, G. Tomas, M. Hult, C. M. Ringle, and M. Sarstedt, “A Primer on Partial Least Squares Structural Equation Modeling (PLS-SEM),” 2022. [Online]. Available: https://www.researchgate.net/publication/354331182
A. Nilsen, “Perbandingan Model RNN, Model LSTM, dan Model GRU dalam Memprediksi Harga Saham-Saham LQ45,” Jurnal Statistika dan Aplikasinya, vol. 6, no. 1, pp. 137–147, 2022, doi: https://doi.org/10.21009/JSA.06113.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jurnal Inovasi Teknologi Terapan

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


