IMPLEMENTATION OF GATED RECURRENT UNIT (GRU) WITH PARTICLE SWARM OPTIMIZATION (PSO) FOR PALM OIL PRICE PREDICTION
Kata Kunci:
Gated Recurrent Unit, hyperparameter, palm oil price, Particle Swarm Optimization, time seriesAbstrak
Palm oil is a major agricultural commodity whose price fluctuates over time, creating uncertainty for planning and decision-making. This study develops a time-series prediction model for Palm Oil Futures prices by implementing a Gated Recurrent Unit (GRU) and optimizing selected GRU hyperparameters using Particle Swarm Optimization (PSO). The dataset was obtained from Investing.com and contains 2,376 daily observations covering 2 June 2016 to 2 June 2026, with Date and Price used as the principal attributes. The research workflow includes data cleaning, chronological train-test splitting, Min-Max normalization, sequence construction, baseline GRU development, PSO-based hyperparameter optimization, final model training, and evaluation using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). Three split scenarios (70:30, 80:20, and 90:10) and two sequence lengths (14 and 28) were examined before the final configuration was selected. PSO searched GRU Units and Dense Units in the ranges 64-128 and 32-64, respectively. The best baseline configuration achieved RMSE 2.890, MAE 2.303, and MAPE 6.681%, while the optimized GRU-PSO achieved RMSE 1.956, MAE 1.653, and MAPE 6.689%. Thus, PSO reduced RMSE by about 32.3% and MAE by about 28.2%, while MAPE increased slightly. The final model was also used to generate a seven-day short-term forecast.
Unduhan
Referensi
Adrian, M. I., & Laksana, E. A. (2025). OptimalAdrian, M. I., & Laksana, E. A. (2025). Optimalisasi Parameter Support Vector Machine dengan Algoritma PSO untuk Tugas Klasifikasi Sentimen Ulasan IMDb. Jurnal Algoritma, 22(1), 288–299. https://doi.org/10.33364/algoritma/v.22-1.2306isasi Parameter. Jurnal Algoritma, 22(1), 288–299. https://doi.org/10.33364/algoritma/v.22-1.2306
Carnegie, M. D. A., & Chairani, C. (2023). Perbandingan Long Short Term Memory (LSTM) dan Gated Recurrent Unit (GRU) Untuk Memprediksi Curah Hujan. JURNAL MEDIA INFORMATIKA BUDIDARMA, 7(3), 1022. https://doi.org/10.30865/mib.v7i3.6213
citra resita, ega trisna rahayu el-fadillah. (2022). Prediksi Harga Minyak Kelapa Sawit Menggunakan Linear Regression Dan Random Forest. Prediksi Harga Minyak Kelapa Sawit Menggunakan Linear Regression Dan Random Forest, 8(1), 1–7. https://doi.org/10.5281/zenodo.6559603
Danestiara, V. R., Setiana, E., Akbar, I., & Hidayah, T. (2024). Algoritma Gated Recurrent Unit untuk Prediksi Harga Indeks Penutupan Saham LQ45. Jurnal Accounting Information System (AIMS), 7(1), 1–8. https://doi.org/10.32627/aims.v7i1.814
Hyperparameter, O., Short, B. L., Memory, T., Particle, M., Optimization, S., & Prediksi, U. (2026). Optimasi Hyperparameter Bi-Directional Long Short Term Memory Menggunakan Particle Swarm Optimization Untuk Prediksi Saham. 7.
Khalis Sofi, Aswan Supriyadi Sunge, Sasmitoh Rahmad Riady, & Antika Zahrotul Kamalia. (2021). Perbandingan Algoritma Linear Regression, Lstm, Dan Gru Dalam Memprediksi Harga Saham Dengan Model Time Series. Seminastika, 3(1), 39–46. https://doi.org/10.47002/seminastika.v3i1.275
Lipu, M. S. H., Rahman, T., Ali, N., Ansari, S., & Mahmood, M. S. (2024). Enhanced SOC estimation in Lithium-ion Batteries using GRU Neural Networks with GSA. GUB Journal of Science and Engineering, 9(1), 1–12. https://doi.org/10.3329/gubjse.v9i1.74879
Mustofa, A., & Setiawan, H. (2024). Perbandingan Metode Deep Learning dengan Model LSTM dan GRU untuk Prediksi Perubahan Iklim. Journal of Computer System and Informatics (JoSYC), 5(4), 868–882. https://doi.org/10.47065/josyc.v5i4.5671
Naheliya, B., Redhu, P., & Kumar, K. (2023). A Hybrid Deep Learning Method for Short-Term Traffic Flow Forecasting: GSA-LSTM. Indian Journal Of Science And Technology, 16(46), 4358–4368. https://doi.org/10.17485/ijst/v16i46.2520
Pratiwi, D. S., Arkusi, F., & Wardani, K. H. J. (2023). Analisis Faktor – Faktor Yang Menyebabkan Kelangkaan Minyak Goreng Indonesia Tahun 2022. Jurnal Economina, 2(12), 3688–3696. https://doi.org/10.55681/economina.v2i12.1061
Riani, U. S., Dermawan, A., Studi, P., Pertanian, P., Prima, U., Bukittinggi, N., Agribisnis, P. S., Taman, U., & Padang, S. (2025). Pengaruh ekspor dan impor minyak kelapa sawit terhadap pertumbuhan ekonomi indonesia tahun 2001-2023 the effect of palm oil exports and imports on indonesia’s economic growth 2001 – 2023. 18(1), 2501–2512.
Ripto, J. A., & Heryanto, H. (2023). Penerapan gated recurrent unit untuk prediksi pergerakan harga saham pada bursa efek Indonesia. Institut Teknologi Harapan Bangsa.
Samsudin, S., Harahap, A. M., & Fitrie, S. (2021). IMPLEMENTASI GATED RECURRENT UNIT (GRU) UNTUK PREDIKSI HARGA SAHAM BANK KONVENSIONAL DI INDONESIA. JISTech (Journal of Islamic Science and Technology), 6(2). https://doi.org/10.30829/jistech.v6i2.11058