Journal Global Technology Computer
Vol 5 No 3 (2026): Agustus 2026

Optimizing Agricultural Commodity Price Forecasts Using an Ensemble Stacking Method Based on Market and Product Characteristics

Abdul Karim (Universitas Labuhanbatu, Rantau Prapat)
Kusmanto Kusmanto (Universitas Al Washliyah Labuhanbatu, Rantau Prapat)



Article Info

Publish Date
31 Aug 2026

Abstract

Commodity price prediction is a vital aspect of supporting decision-making because price fluctuations can create uncertainty for businesses and stakeholders. This study aims to compare the performance of several machine learning algorithms for commodity price prediction, namely Random Forest, XGBoost, Support Vector Regression (SVR), Gradient Boosting, and Stacking Ensemble. Model performance was evaluated using Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R²). The experimental results show that Gradient Boosting achieved the best overall performance, with an RMSE of 219.07 and an R² of 0.9968, while Random Forest had the lowest MAE of 65.98. The Stacking Ensemble also demonstrated competitive performance, achieving an RMSE of 253.07 and an R² of 0.9958. In contrast, SVR produced the lowest performance, with an RMSE of 1,919.65 and an R² of 0.7555. Based on these results, Gradient Boosting was selected as the most optimal model because it provided the lowest prediction error and the highest ability to explain data variation. These findings demonstrate that selecting an appropriate machine learning algorithm plays a crucial role in improving commodity price prediction performance.

Copyrights © 2026






Journal Info

Abbrev

jogtc

Publisher

Subject

Computer Science & IT Control & Systems Engineering Engineering

Description

Journal Global Technology Computer, ini memiliki bidang kajian: 1. Manajemen Informatika, 2. Sistem Informasi, 3. Game Design, 4. Multimedia System, 5. Sistem Pembelajaran Berbasis Multimedia, 6. GIS, 7. Mobile Programming, 8. Database Design, 9. Network Programming, 10. Distributed System, 11. Data ...