Home > Published Issues > 2026 > Volume 17, No. 1, 2026 >
JAIT 2026 Vol.17(1): 107-121
doi: 10.12720/jait.17.1.107-121

Enhancing Gold Price Forecasting Using Machine Learning Models Optimized with Metaheuristic Algorithms

Alaa N. Sawalha 1, Mohammed A. Al-Betar 1,2,*, and Sharif N. Makhadmeh 3
1. Artificial Intelligence Research Center (AIRC), College of Engineering and Information Technology, Ajman University, Ajman, United Arab Emirates
2. Center of Excellence in Precision Medicine and Digital Health, Department of Physiology, Faculty of Dentistry, Chulalongkorn University, Bangkok, Thailand
3. Department of Information Technology, King Abdullah II School for Information Technology, The University of Jordan (UJ), Amman, Jordan
Email: 202010417@ajmanuni.ac.ae (A.N.S.); m.albetar@ajman.ac.ae (M.A.A-.B.); s_makhadmeh@ju.edu.jo (S.N.M.)
*Corresponding author

Manuscript received June 12, 2025; revised June 26, 2025; accepted September 2, 2025; published January 15, 2026.

Abstract—Forecasting gold prices is essential for supporting informed decision-making among investors, policymakers, and financial analysts. However, due to their non-linear and volatile behavior influenced by complex economic and geopolitical factors, predicting gold prices remains a significant challenge. This study evaluates the forecasting performance of three traditional machine learning models—Random Forest (RF), Multi-Layer Perceptron (MLP), and XGBoost—on a monthly dataset spanning from January 1991 to December 2023, using macroeconomic and commodity-related indicators obtained from IndexMundi. To enhance predictive accuracy, RF and MLP were optimized using metaheuristic algorithms including Particle Swarm Optimization (PSO), Differential Evolution (DE), Simulated Annealing (SA), and Genetic Algorithm (GA), while XGBoost was fine-tuned using Grid Search. Two ensemble strategies were developed to further improve performance: a weighted ensemble based on inverse error metrics and a boosting ensemble that sequentially combined top-performing models. The results show that combining traditional models with metaheuristic optimization significantly improves forecasting accuracy. The best performance was achieved by the boosting ensemble integrating RF-PSO and optimized XGBoost, attaining an R² of 0.9654 and a Root Mean Square Error (RMSE) of 0.0433, representing an improvement of 11.1% in RMSE over the best single optimized model. This research demonstrates that effective and scalable financial forecasting systems can be developed using established machine learning techniques, offering valuable decision-support tools in dynamic financial markets.
 
Keywords—gold price forecasting, machine learning, metaheuristic optimization, ensemble learning, financial time series

Cite: Alaa N. Sawalha, Mohammed A. Al-Betar, and Sharif N. Makhadmeh, "Enhancing Gold Price Forecasting Using Machine Learning Models Optimized with Metaheuristic Algorithms," Journal of Advances in Information Technology, Vol. 17, No. 1, pp. 107-121, 2026. doi: 10.12720/jait.17.1.107-121

Copyright © 2026 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions