Prediksi Harga Bawang Merah Menggunakan Gated Recurrent Unit (GRU)


Authors

  • Siti Sri Wahyuni Universitas Pembangunan Nasional "Veteran" Jawa Timur, Surabaya, Indonesia
  • Budi Nugroho Universitas Pembangunan Nasional "Veteran" Jawa Timur, Surabaya, Indonesia
  • Chrystia Aji Putra Universitas Pembangunan Nasional "Veteran" Jawa Timur, Surabaya, Indonesia

DOI:

https://doi.org/10.47065/bulletincsr.v6i6.1374

Keywords:

Gated Recurrent Unit; Shallots; Price Prediction; Time Series; Univariate Time Series

Abstract

Shallots are one of the horticultural commodities with high economic value and play an important role in food supply in Indonesia. Fluctuations in shallot prices in East Java Province highlight the need for forecasting methods to estimate prices in future periods. This study applies the Gated Recurrent Unit (GRU) method to predict shallot prices using a univariate time series approach. The data consist of daily shallot prices obtained from the Food Staple Availability and Price Development Information System (SISKAPERBAPO) of East Java Province, covering the period from January 1, 2015, to March 31, 2026. After data cleaning, a total of 4,108 observations were obtained. The research stages include data exploration, data cleaning, normalization using Min-Max Scaling, sequence formation, model training, and performance evaluation using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and Mean Absolute Percentage Error (MAPE). The experiments used an 80:10:10 ratio for training, validation, and testing data, respectively, with variations in sequence length, the number of hidden units, and the number of epochs. The best configuration was selected based on the lowest MAPE value on the test data, while also considering MAE and RMSE. The experimental results identified the best configuration as a sequence length of 30 days, 64 hidden units, 50 epochs, and a batch size of 32, yielding an MAE of IDR 270.26, an RMSE of IDR 423.46, and a MAPE of 0.7073%. The model with this configuration was subsequently used to perform three-day recursive forecasting. The forecasting evaluation yielded an MAE of IDR 518.39, an RMSE of IDR 538.34, and a MAPE of 1.43%. These results indicate that the GRU model can produce shallot price predictions with relatively low error levels under the evaluated conditions. However, forecasting performance remains dependent on historical data patterns and the model configuration used; therefore, the predictions should be interpreted with consideration of these limitations.

Downloads

Download data is not yet available.

References

T. Y. Primatama, “Tinjauan Literatur: Kasgot dan Pemberian PGPR (Plant Growth Promoting Rhizobacteria) Terhadap Pertumbuhan dan Produksi Bawang Merah (Allium ascalonicum L.),” Jurnal Ilmiah Pertanian (JIPERTA), vol. 7, no. 2, pp. 263–269, 2025, doi: 10.31289/jiperta.v7i2.6012.

V. Theresia, A. Fariyanti, and N. Tinaprilla, “Analisis Persepsi Petani Terhadap Penggunaan Benih Bawang Merah Lokal dan Impor di Kabupaten Cirebon, Jawa Barat,” Jurnal Penyuluhan, vol. 12, no. 1, pp. 74–88, 2016, doi: 10.25015/penyuluhan.v12i1.11324.

K. Mawadah and A. Oktaviarina, “Perbandingan Model ARIMA dan Hybrid ARIMA-Random Forest untuk Peramalan Harga Bawang Merah Harian di Provinsi Jawa Timur,” Imajiner: Jurnal Matematika dan Pendidikan Matematika, vol. 8, no. 2, pp. 462–476, 2026, doi: 10.26877/imajiner.v8i2.26800.

N. R. Sari and Y. Agustina, “Analisis Volatilitas Harga Bawang Merah di Kabupaten Kediri,” Agricore: Jurnal Agribisnis dan Sosial Ekonomi Pertanian Unpad, vol. 10, no. 2, pp. 515–526, 2025, doi: 10.24198/agricore.v10i2.65263.

F. A. Putri, Anisa, E. H. Fanida, and R. A. Fitrie, “Ketidakstabilan Harga Bawang Merah dan Kondisi Pendapatan Petani di Kabupaten Nganjuk,” Sultan Adam: Jurnal Hukum dan Sosial, vol. 4, no. 1, pp. 615–622, 2026, doi: 10.71456/sultan.v4i1.1884.

N. S. Jubaedah, “Penanganan Instabilitas Pasokan Aneka Cabai dan Bawang Merah untuk Menekan Inflasi,” Jurnal Perencanaan Pembangunan Pertanian, vol. 2, no. 2, pp. 1–11, 2025, [Online]. Available: https://epublikasi.pertanian.go.id/berkala/jp3/article/view/4194

Y. Perdana, N. R. Hanum, A. Rabiula, and Y. Anzari, “Analisis Perbandingan Model GRU dan LSTM untuk Prediksi Harga Saham Bank Rakyat Indonesia,” Jurnal Akademika, vol. 17, no. 2, pp. 54–60, 2025, doi: 10.53564/akademika.v17i2.1692.

A. N. Mulyani and G. Ghufron, “Implementasi Prediksi Harga Saham Menggunakan Model Gated Recurrent Unit (GRU) Pada Perusahaan Sektor Properti,” Nusantara of Engineering (NOE), vol. 8, no. 02, pp. 457–464, 2025, doi: 10.29407/noe.v8i02.24732.

R. A. S. Anees, N. M. Khoirani, S. F. P. Annisa, and H. A. Rusyda, “Peramalan Harga Bawang Merah di Pasar Tradisional Sulawesi Selatan dengan Metode ARIMA,” Jurnal Agribisnis, vol. 24, no. 2, pp. 274–287, 2022, doi: 10.31849/agr.v24i2.8670.

N. Rofiq and A. Salim, “Prediksi Harga Bawang Merah menggunakan Algoritma Fuzzy Inference System (FIS),” RESOLUSI: Rekayasa Teknik Informatika dan Informasi, vol. 3, no. 4, pp. 154–162, 2023, doi: 10.30865/resolusi.v3i4.677.

Nurwahidah, P. L. Lokapitasari, and H. Darwis, “Implementasi Algoritma Neural Network untuk Memprediksi Harga Bawang Merah di Kabupaten Bima,” Buletin Sistem Informasi dan Teknologi Islam, vol. 4, no. 2, pp. 112–119, 2023, doi: 10.33096/busiti.v4i2.1661.

M. Oni, M. D. Lauro, A. Winata, and T. Handhayani, “Analysis and Forecasting of Foodstuffs Prices in Bandung Using Gated Recurrent Unit,” Jurnal Esensi Infokom: Jurnal Esensi Sistem Informasi dan Sistem Komputer, vol. 7, no. 2, pp. 109–118, 2023, doi: 10.55886/infokom.v7i2.651.

M. S. Yordania, Asrianda, and Maryana, “Perbandingan Hasil Implementasi Metode ARIMA dan GRU dalam Memprediksi Harga Cabai Merah Keriting di Kota Lhokseumawe,” INOMATEC: Jurnal Inovasi dan Kajian Multidisipliner Kontemporer, vol. 1, no. 8, pp. 947–956, 2026, [Online]. Available: https://portalpublikasi.com/index.php/inomatec/article/view/1490

A. Y. Nugroho, “Penerapan Teknik Analisis Data untuk Prediksi Penjualan Exploratory Data Analysis (EDA),” JIMU: Jurnal Ilmiah Multidisipliner, vol. 2, no. 3, pp. 922–929, 2024, [Online]. Available: https://ojs.smkmerahputih.com/index.php/jimu/article/view/525

R. Oktafiani, A. Hermawan, and D. Avianto, “Pengaruh Komposisi Split Data terhadap Performa Klasifikasi Penyakit Kanker Payudara Menggunakan Algoritma Machine Learning,” Jurnal Sains dan Informatika, vol. 9, no. 1, pp. 19–28, 2023, doi: 10.34128/jsi.v9i1.622.

P. Arsi, T. Astuti, D. Rahmawati, and P. Subarkah, “Implementasi Sliding Window Algorithm pada Prediksi Kurs berbasis Neural Network,” DoubleClick: Journal of Computer and Information Technology, vol. 6, no. 1, pp. 51–59, 2022, doi: 10.25273/doubleclick.v6i1.13496.

R. S. Andromeda and N. A. S. Winarsih, “Perbandingan Kinerja Metode LSTM dan GRU dalam Prediksi Harga Close Cryptocurrency,” Sistemasi: Jurnal Sistem Informasi, vol. 14, no. 1, pp. 366–379, 2025, doi: 10.32520/stmsi.v14i1.4880.

Subairi, A. P. Sari, and E. P. Mandyartha, “Optimasi Hyperparameter Model GRU untuk Prediksi Harga Saham ANTM,” ILKOMNIKA: Journal of Computer Science and Applied Informatics, vol. 7, no. 3, pp. 484–494, 2025, doi: 10.28926/ilkomnika.v7i3.817.

M. W. Hidayat, H. Hidayat, and E. D. Priyana, “Implementation of QFD and Kano Methods in an Effort to Improve the Quality of UNOWEN Temulawak Products,” G-Tech: Jurnal Teknologi Terapan, vol. 9, no. 2, pp. 626–635, Apr. 2025, doi: 10.70609/gtech.v9i2.6567.

R. Hidayat, Nurmalitasari, and R. D. Irawan, “Prediksi Harga Saham Syariah Menggunakan Metode Deep Learning GRU dan LSTM,” Jurnal Tekno Kompak, vol. 20, no. 1, pp. 37–50, 2026, doi: 10.33365/jtk.v20i1.474.

A. P. Meriani and A. Rahmatulloh, “Perbandingan Gated Recurrent Unit (GRU) dan Algoritma Long Short-Term Memory (LSTM) Linear Refression dalam Prediksi Harga Emas Menggunakan Model Time Series,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 12, no. 1, pp. 468–475, 2024, doi: 10.23960/jitet.v12i1.3808.

A. Tholib, N. K. Agusmawati, and F. Khoiriyah, “Prediksi Harga Emas Menggunakan Metode LSTM dan GRU,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 11, no. 3, pp. 620–627, 2023, doi: 10.23960/jitet.v11i3.3250.

V. Komaria, N. El Maidah, and M. A. Furqon, “Prediksi Harga Cabai Rawit di Provinsi Jawa Timur Menggunakan Metode Fuzzy Time Series Model Lee,” Komputika: Jurnal Sistem Komputer, vol. 12, no. 2, pp. 37–47, 2023, doi: 10.34010/komputika.v12i2.10644.

I. F. Amri et al., “Prediksi Harga Beras di Pasar Grosir Indonesia Menggunakan Metode Triple Exponential Smoothing Holt-Winters,” Jurnal Gaussian, vol. 14, no. 1, pp. 31–41, 2025, doi: 10.14710/j.gauss.14.1.31-41.

B. Al badi, M. A. Bianto, R. N. Rohman, and M. S. Alamsyah, “Sistem Prediksi Harga Komoditas Cabai di Wilayah Jawa Timur Menggunakan Simple Moving Average,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 13, no. 3, pp. 2261–2269, 2025, doi: 10.23960/jitet.v13i3.7345.

N. W. Saputra, F. Insani, S. Agustian, and S. Sanjaya, “Penerapan Deep Learning Menggunakan Gated Recurrent Unit Untuk Memprediksi Harga Minyak Mentah Dunia,” Building of Informatics, Technology and Science (BITS), vol. 5, no. 1, Jun. 2023, doi: 10.47065/bits.v5i1.3552.

Muhammad Atharsyah and Moh. A. Romli, “Implementasi Model Lstm, Gru, Bilstm, Dan Bigru Dalam Prediksi Harga Nikel,” Jurnal Informatika dan Rekayasa Elektronik, vol. 7, no. 2, pp. 413–420, Nov. 2024, doi: 10.36595/jire.v7i2.1317.

M. Lim and T. Handhayani, “Penerapan Lstm Dan Gru Untuk Prediksi Harga Cabai Merah Di Kota Jawa Timur,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 13, no. 2, Apr. 2025, doi: 10.23960/jitet.v13i2.6467.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Prediksi Harga Bawang Merah Menggunakan Gated Recurrent Unit (GRU)

Dimensions Badge

ARTICLE HISTORY

Published: 2026-10-31

Abstract View: 2 times
PDF Download: 4 times

How to Cite

Wahyuni, S. S., Nugroho, B., & Putra, C. A. (2026). Prediksi Harga Bawang Merah Menggunakan Gated Recurrent Unit (GRU). Bulletin of Computer Science Research, 6(6), 2577-2589. https://doi.org/10.47065/bulletincsr.v6i6.1374

Issue

Section

Articles