Research Article

Gold Futures Price Prediction Using Transformer Deep Learning Models with Data Scraped via UiPath

DOI:

10.3791/68903

September 26th, 2025

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The study develops a transformer deep learning model to accurately predict gold prices using historical data from 2014 to 2024. Achieving 93% accuracy, the model outperforms traditional methods by capturing complex trends and dependencies. It aids investors and policymakers in decision-making and suggests future improvements using sentiment analysis and global factors.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Gold is one of the most valuable and widely traded commodities worldwide, particularly in India, and plays a significant role in economic and financial markets. Historically, gold has been a cornerstone of international trade and economic stability, with central banks maintaining reserves to manage inflation and foreign debt. The price of gold serves as a key economic indicator that influences market trends and investment strategies. However, accurately predicting gold prices is challenging due to the complex and nonlinear nature of financial markets which are influenced by various factors including interest rates, economic recessions, oil price fluctuations, and geopolitical events. The study transformer model was used to predict the daily gold prices which were collected from investing.com through web scraping by using UiPath. It is a Robotic Process Automation (RPA) platform to preserve the integrity of the data and enhance model performance, preprocessing operations such as missing data handling and MinMax scaling were performed. The model was tested and trained on key performance metrics and achieved a Mean Squared Error (MSE) of 0.0224, Root Mean Squared Error (RMSE) of 0.1496, and R-squared of 0.93, with a high prediction accuracy. The study results confirm that the transformer model efficiently detects short-term price movements and long-term market trends offering a more accurate and dependable method than traditional forecasting methods. The study provides valuable guidance to investors, financial analysts and policymakers in making informed decisions in the gold bullion market. Future research can be improved by the inclusion of alternative data sources such as sentiment from news headlines and social media which can potentially offer richer insight into market movements.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Gold is one of the most significant commodities in the financial markets, a critical economic resource and a price-controlling tool. Gold constitutes a substantial portion of central bank reserves in many countries1. Recently, gold has become more well-known as an inflation hedge2. It is a key hedging asset and its volatility forecasting improves using Generalized Autoregressive Conditional Heteroskedasticity - Mixed Data Sampling (GARCH-MIDAS) models that account for asymmetry, extremes, and jumps3. India and China are the largest importers and consumers of gold accounting for approximately 60% of global demand. The continuous rise in gold prices driven by market dynamics and commodity relations has positioned gold as a preferred investment for future returns4. In India the magnitude of physical gold holdings is substantial with households often treating gold as both a cultural asset and a financial safeguard. Its demand for physical gold directly impacts market trends emphasizing the need to consider its relevance in gold price forecasting5,6. Investors are constantly seeking investment opportunities that offer the highest returns with the lowest risk. In this regard gold serves as a safe-haven asset providing financial security during economic uncertainties. Among the top investment alternatives in India are stocks, banks, deposits, insurance, gold postal savings, other savings and investment options7. Given its stability gold is widely regarded as the best alternative investment option among various investment options and a valuable asset that protects against inflation and financial risks1,8. Gold price determination is influenced by factors like gold demand, supply, inflation, and exchange rates. A surprising finding indicates that dollar appreciation correlates with increased gold prices potentially due to speculative investment9. It is difficult to predict the gold price because of its volatile, unpredictable, nonlinear and uncontrollable price movement10. Therefore, accurate gold price prediction is crucial for investors, portfolio managers, and policymakers as improved forecasting can lead to significant profit opportunities11. The current price trend of gold which is four times higher than two decades ago and the desire to keep gold attract investors to invest in related assets12. Therefore, before investing in gold every investor must understand the key factors influencing its price13. In the financial industry the capacity to forecast the direction of gold prices is essential even minor advancements in performance prediction can result in profits money is essential to lead a life and sound financial forecasting will support economic expansion14.

Figure 1 explores the gold price trends in India over a period of time spanning from 2014 to 2024 and how gold prices are increasingly based on global factors like the dollar index, federal funds rate, the consumer price index (CPI), exchange rate, oil prices and the S&P50015. Other factors include business cycles, nominal interest rates, commodity prices, exchange rates and stock prices16. It highlights the significant price changes, volatility in the market and a period of sustained expansion in gold prices particularly in recent years. Prices showed little volatility between 2014 and 2018 however, in 2019 a robust increasing trend with more price swings was observed. Gold's position as a safe-haven asset was strengthened by a substantial increase in 2020, most likely brought on by concerns about inflation and economic upheaval. The close price closely tracks the open price but greater volatility particularly after 2020 is shown by broader gaps between high and low prices. Prices have been rising steadily during the 2023-2024 timeframe hitting all-time highs. The chart shows how gold has appreciated throughout time, making it a useful asset for analysts and investors.

Accurate gold price prediction is vital for informed decision-making but it is challenging due to complex factors like economic and geopolitical conditions17. Traditional models like Autoregressive Integrated Moving Average (ARIMA) often struggle to capture these complexities limiting their predictive accuracy18,19. In a quest to overcome these limitations the recent advancements in machine learning and deep learning have significantly improved financial forecasting accuracy. Experiments demonstrated that deep learning models like Long Short-Term Memory (LSTM) networks perform significantly better than traditional statistical models by capturing sequential relationships and trends in gold prices20. Hybrid forecasting models are a key consideration in forecasting gold prices in big data computation and economics21. Nevertheless, regardless of their performance recurrent models like Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) have natural limitations like disappearing gradient problems, high computational complexity and inability to capture long-range relationships which may impact their efficiency in handling large-scale finance time series data.

In order to bridge these deficits and further enhance the accuracy of prediction transformer models are now an attractive choice in time-series forecasting, compared to LSTM networks transformers leverage self-attention mechanisms, hence making them effectively detect long-term patterns and short-term oscillations in financial data and parallel processing to improve scalability. Transformers have considerable potential to improve gold price prediction accuracy given their effectiveness in financial market forecasting. The present study aims to develop a transformer model for gold price forecasting using past gold prices and major economic data providing a more robust approach for gold prediction.

Earlier studies had predicted the gold price using several techniques like neural networks, algorithms, machine learning, deep learning and artificial intelligence. Some of the studies related to gold price prediction are as follows:

Gaussian process regression (GPR) has emerged as a robust tool for metal price forecasting with applications in steel, copper and precious metals highlighting its effectiveness in handling high-dimensional financial data and optimizing models through Bayesian methods to predict the gold price more accurately RMSE of 0.8722. The study presents a novel hybrid model that combines a Random Convolutional Kernels-based Neural Network (RCK) with Generalized Autoregressive Conditional Heteroskedasticity (GARCH) to predict the volatility of gold, silver and platinum. The accuracy of the suggested method is 53% higher than that of the GARCH-LSTM model23. The study used ARIMA and Holt-Winters models to forecast the future gold prices and inflation rates in India and the United States by considering the Consumer Price Index (CPI). Gold is a good hedge against inflation for both Indian and United States Investors24. The study compares deep learning and machine learning models to analyse Bitcoin's relationship with global factors such as gold, oil, US Dollar Index (DXY) and interest rates. Temporal Fusion Transformer (TFT) outperforms others highlighting gold and DXY as key influencers amid global events and regulations25. Moreover, the study systematically reviews the factors affecting gold futures prices like inflation rate, interest rate, crude oil price and US dollar index with three main forecasting methods: traditional time series models (ARIMA GARCH, ARDL), hybrid models (MS-MIDAS-CJ, VMD-ICSS-BiGRU) and deep learning methods (SGRU-AM) DBN)26. Transformer architectures have strong potential in long-term time series forecasting by effectively capturing long-range dependencies and outperforming traditional Recurring Neural Network (RNN) based models27. The study explored the relationship between gold prices and key determinants like stock markets, crude oil, exchange rates, inflation and interest rates. It utilizes machine learning algorithms finding gradient boosting regression is more accurate than random forest regression in predicting gold prices14. The study used Autoregressive Distribution Lag (ARDL) model to forecast the annual gold prices using treasury bill rates, gold demand and lagged gold prices as covariates28. The proposed Convolutional Neural Network-Long Short-Term Memory (CNN-LSTM) model for gold price forecasting demonstrates superior performance compared to traditional methods with lower MAE and RMSE values. Incorporating convolutional layers into the LSTM architecture further enhances its ability to capture both short-term patterns and long-term dependencies in the data29.

Future gold prices are predicted from four commodities: historical data of gold prices, silver prices, crude oil prices and the Standard and Poor's 500 stock index (S&P500) index and foreign exchange rate by using the Extreme Learning Machine (ELM) model with an accuracy of 91.67%4. A Multilayer Perceptron (MLP) neural network model was employed to predict stock price fluctuations and gold prices based on data from the Tehran Stock Exchange (TSE). The result indicated that the artificial neural network outperformed traditional forecasting models in terms of prediction accuracy30. The study compared LSTM with Linear Regression models and discovered that Linear Regression achieved a marginally higher accuracy rate of 53.02% in forecasting the daily fluctuations of gold prices. This suggests that even simpler models can be effective in predicting gold price movements highlighting the importance of understanding the relationships between gold prices and broader economic factors31. Wavelet Neural Network (WNN) modelling for gold price forecasting study experimental results demonstrated that the enhanced Artificial Bee Colony (ABC) algorithm outperforms the traditional ABC approach in gold price forecasting utilizing wavelet neural networks32.

Several advanced predictive models have been proposed for gold and financial market forecasting. One of the studies developed a gold price prediction model using an Adaptive Neuro-Fuzzy Inference System (ANFIS) with past gold prices as inputs. The model accurately predicted next-day gold prices outperforming ARIMA and CNN models in terms of RMSE. It also exceeded the performance of both Buy and Hold strategies by delivering significantly higher returns on investment demonstrating strong potential for gold price forecasting33. Another study integrated an ELM with a Fuzzy Inference System (FIS) and used the Chaotic Quantum Crisscross Search Algorithm (CQCSA) optimization technique. This hybrid model exhibits superior performance in predicting the gold and oil prices34. A research employed various machine learning models on financial market prediction during the COVID-19 period where Vanilla Stacked LSTMs surpassed other approaches in time-series forecasting. The findings emphasized the importance of incorporating non-economic variables alongside historical financial data for short-term market predictions35. The study explored ensemble models for predicting the gold and silver stock price movements. These approaches achieved notable accuracy rates of 85% for gold and 79% for silver indicating their capability to capture complex market dynamics36. In another study focusing on deep learning architectures for gold price prediction the Bidirectional Long Short-Term Memory (BiLSTM) model outperformed standard LSTMs by achieving higher R2, lower MAE, and RMSE values. By effectively capturing temporal patterns from normalized historical data BiLSTM demonstrated its potential to enhance the accuracy of financial forecasts37.

Accurate prediction of gold prices has long posed a significant challenge for investors, analysts, and policymakers due to the volatile, nonlinear, and multifactorial nature of financial markets10. Traditional statistical models such as ARIMA and regression-based approaches have shown limitations in capturing the complex and dynamic relationships inherent in gold price movements particularly under the influence of macroeconomic indicators, geopolitical tensions, and global financial shifts19. While ARIMA and similar models are useful for short-term linear forecasting, they lack the ability to capture nonlinearity, structural breaks, and long-term dependencies18,38. Although deep learning models like LSTM and GRU have improved prediction performance by learning sequential patterns20. These models still suffer from intrinsic limitations such as vanishing gradients and difficulties in modelling long-term dependencies in time-series data29. Furthermore, while hybrid and ensemble models have been explored, they often struggle with scalability and computational efficiency in large-scale financial datasets23. Gold, increasingly used as a hedge against inflation and economic uncertainty, especially in countries like India, where it holds substantial cultural and financial significance, the demand for robust, high-accuracy predictive models has become paramount2. Recent innovations in deep learning, particularly the transformer architecture known for its self-attention mechanism, have shown promising results in time-series forecasting tasks across financial domains17. However, existing literature lacks a comprehensive investigation of transformer models specifically for gold price prediction using long-term historical datasets enriched with diverse economic indicators. Most previous studies have either focused on short-term prediction or used limited data inputs, neglecting the full potential of transformer models in capturing both short-term and long-term market trends31.

Therefore, the present study addresses the critical research gap by proposing and evaluating a transformer deep learning model trained on a decade's worth of historical gold price data (2014-2024) collected through an automated and reproducible web scraping method using UiPath. The model aims to enhance prediction accuracy outperform existing models like LSTM, CNN-LSTM, and regression. It provides a reliable tool for investors and policymakers in making informed decisions under market uncertainty22.

The unstoppable increase in gold prices has heightened the need for forecasting which is more important than ever for investors, financial analysts and policymakers. Gold is widely valued as a safe-haven asset and plays a key role in investment strategies particularly in countries like India where it holds economic and cultural importance. In an increasingly volatile market and global uncertainty environment reliable predictions are crucial for maximizing returns, managing risks, and making sound financial decisions. The study is designed to develop an accurate and effective gold price forecasting model that aligns with the complexities of today's financial markets.

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The methodology for this research is a systematic process designed to develop a transformer model for gold price prediction. Data collection is the initial step where historical gold price data and relevant financial indicators are gathered to form a comprehensive dataset. The dataset undergoes data preprocessing, model development, evaluation, performance metrics and finally gold price prediction with a detailed explanation in the subsequent sections.

Data collection and reliability:
Historical gold price data for this study were collected using an automated process developed on the UiPath Robotic Process Automation (RPA) platform. The dataset was obtained from Investing.com a widely utilized and reputable financial platform known for its structured and accurate commodity and market data39. It included daily values for Date, Open, High, Low, Close, Volume and Percentage Change covering the period from 1 January 2014 to 31 December 2024 (Supplementary Table 1). The automation was programmed to navigate to the relevant historical data page specify the defined date range and export the dataset into Excel. To improve stability and execution speed the process avoided the calendar picker interface and incorporated validation routines, time delays and conditional checks to accommodate webpage variations. This approach allowed for efficient, repeatable and accurate data extraction without requiring manual intervention.

To ensure data integrity and reliability, multiple validation steps like UiPath's Element Exists, conditional checks, and delays to control dynamic page loads were included to guarantee data integrity and dependability. Web scraping from external sources can be a valuable method for acquiring large datasets efficiently. However, it may also present challenges such as inconsistent data formats, changes in webpage structure, or variations in data availability over time. The scraping tool has error-handling procedures and has undergone periodic reliability testing to reduce these risks. To confirm correctness the retrieved data was further cross-checked at random with information from other sources, like Yahoo Finance. During preprocessing, forward filling and interpolation were used to manage non-trading days and missing records. This method offers a robust yet effective way to produce a trustworthy dataset that is appropriate for deep learning models.

Data preprocessing:
In the present study the gold price dataset was first loaded into a pandas DataFrame to create a tabular dataset for analysis and examined using methods such as info, describe and unique to assess data types, statistical distributions and the number of unique values in each column. The dataset was then sorted in ascending order based on its index, ensuring chronological arrangement for time series analysis. Missing values were identified and eliminated using dropna and duplicate entries were detected using the duplicated method and subsequently removed with drop_duplicates to maintain data integrity. Column names were standardized for consistency by renaming variables like Price to Close, Volume to Volume, and Change % to Change, thereby facilitating clarity in further analysis. Through these steps, the dataset was cleaned, structured, and prepared to support accurate and reliable subsequent modelling and interpretation.

Model development:
The transformer model relies on self-attention mechanisms rather than recurrence or convolution enabling efficient sequence modelling. In the context of time series forecasting such as gold price prediction this architecture can effectively capture long-range dependencies40. Hence, the transformer model in Figure 2 is used for gold price prediction by leveraging advanced deep-learning techniques to analyse historical price trends. After data preprocessing the input data first passes through an embedding layer converting numerical features into dense vector representations making the data more meaningful for analysis. Positional encoding is applied to retain temporal information. Each encoder block contains a multi-head attention mechanism with 4 attention heads followed by a feed-forward neural network. Each attention head uses scaled dot-product attention to focus on relevant historical data points. The model has four encoder layers each having a feed-forward inner-layer size of 512 and a dimensionality (d_model) of 128. Each sub-layer is followed by dropout regularization at a rate of 0.1 to avoid overfitting. Constant use of residual connections and layer normalization stabilizes training and enhances convergence. A key component of the model is the attention mechanism which identifies and prioritizes the most relevant past data points rather than treating all historical values equally. This allows the model to capture important patterns and dependencies in gold price movements. The processed information is then passed through a neural network layer which further refines the patterns and relationships to enhance prediction accuracy. Additionally, the model incorporates multiple stacked transformer layers strengthening its ability to learn complex trends and improve predictive performance. Finally, the model accuracy is evaluated using performance metrics such as Mean Squared Error (MSE), Root Mean Squared Error (RMSE) and R-squared (R2). This transformer approach efficiently captures both short-term and long-term dependencies in financial time-series data making it highly effective for precise gold price forecasting.

To normalize the input features, Min-Max scaling was applied as shown in the following Equation.

Let x be a feature value, xmin and xmax be the minimum and maximum of the feature41.

Data normalization formula, x_scaled equation, mathematical expression for scaling data in statistics.

x: the original value (today's gold price).
xmin, xmin: the training period's min and max of that feature.
[a, b]; the target range (usually [0, 1]; sometimes [-1, 1]).

The core of the transformer encoder is the scaled dot-product attention mechanism40 defined as:

Mean square error (MSE)
The model was trained to minimize the mean square error (MSE) between predicted and actual values42.

MSE = Statistical formula, mean squared error (MSE), equation for data analysis in regression models.

Root mean square error (RMSE)
The performance was evaluated using Root Mean Square Error (RMSE)43, calculated as

RMSE = Root mean square error formula; statistical data analysis; error measurement; mathematical equation.

Training and validation
The dataset is partitioned into three subsets with 80% allocated for training, 10% for testing and 10% for validation. The model is optimized using the Adam optimizer44 with a batch size of 64 and a learning rate of 0.001. To prevent overfitting training is carried out over 50 epochs with early halting based on validation loss. Mean Squared Error (MSE) serves as the loss function. Target outputs are the value at t+30 and sequence inputs are generated with a 30-day lookback window (L = 30). When required padding and masking are applied to preserve constant sequence lengths. TenSorFlow45 was used to implement the model guaranteeing its scalability and reproducibility. Reproducibility is supported by these comprehensive specifications which also improve comprehension of the transformer architecture's adaptation for financial forecasting.

Testing
The final evaluation of the transformer model is conducted using the test dataset comprising the remaining 10% of the total data. The predicted gold prices are compared with actual values and performance metrics are calculated to measure prediction accuracy.

Model evaluation
The predictive performance of the model was evaluated using key statistical metrics like the Mean Squared Error (MSE), Root Mean Squared Error (RMSE) and R-squared (R2). Results are presented in the subsequent section.

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

In the study analysis performance metrics were assessed through historical data these metrics were used to give a comprehensive picture of how well the transformer model predicted the future gold prices.

In Figure 3, the gold price candlestick chart presents a thorough visual representation of price swings, emphasizing significant patterns, market corrections, and stable intervals across time. To make it simpler to follow market movements each candlestick represen...

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The present study proposed a transformer deep learning model that uses data scraped by UiPath, an automated platform ensuring the timely and organized acquisition of financial data to predict the gold futures prices with improved accuracy and reliability. The model incorporates data on the price of gold with important technical indicators like volume metrics, 30-day and 100-day moving averages, trends, gold price prediction, and candlestick patterns. Outperforming conventional models like LSTM, CNN-LSTM, and linear regre...

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors have no conflict of interest in this research work.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This research was supported by VIT-AP University, Amaravati, India.

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Data SourceInvesting.comhttps://in.investing.com/commodities/gold-historical-dataInvesting.com is a financial market platform that provides market quotes, information about stocks, futures, etc.  
Transformer Model (Python implemented in Google Colab)Googlehttps://colab.research.google.com/Developed a python source code for data analysis to extract insights from data, and that code has been executed on this Google Colab virtual environment
UiPath Robotic Process Automation UiPath, Inc.https://www.uipath.comTo extract the data from the source, and the code has been executed on this platform UiPath Studio.

References

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,
  1. Aye, G., Gupta, R., Hammoudeh, S., Kim, W. J. Forecasting the price of gold using dynamic model averaging. Int Rev Financ Anal. 41 (2), 257-266 (2015).
  2. Oloko, T. F., Ogbonna, A. E., Adedeji, A. A., Lakhani, N. Oil price shocks and inflation rate persistence: A fractional cointegration VAR approach. Econ Anal Policy. 70, 259-275 (2021).
  3. Li, X., et al. Forecasting regular and extreme gold price volatility: The roles of asymmetry, extreme event, and jump. J Forecast. 40 (8), 1501-1523 (2021).
  4. Kumar, C. S., Mahendran, S. Forecasting gold price based on extreme learning machine. Int J Comput Commun Control. 11 (3), 372(2016).
  5. India gold market insights: Gold demand trends. , World Gold Council. https://www.gold.org/goldhub/research (2023).
  6. Baur, D. G., Lucey, B. M. Is gold a hedge or a safe haven? An analysis of stocks, bonds and gold. Financ Rev. 45 (2), 217-229 (2010).
  7. Dhawan, S. Top 10 investment options. The Economic Times. , https://economictimes.indiatimes.com/wealth/invest/top-10-investment-options/articleshow/64066079.cms (2022).
  8. Reboredo, J. C. Is gold a safe haven or a hedge for the US dollar? Implications for risk management. J Bank Financ. 37 (8), 2665-2676 (2013).
  9. Farhat, S., Ghalayini, L. Modeling and forecasting gold price s. Research Square. , (2020).
  10. Salim, M., Djunaidy, A. Development of a CNN-LSTM approach with images as time-series data representation for predicting gold prices. Procedia Comput Sci. 234, 333-340 (2024).
  11. Gold price forecasting and related influence factors analysis based on random forest. Liu, D., Li, Z. Proc 10th Int Conf Manag Sci Eng Manag, 59, 711-723 (2017).
  12. Marchiv, D. e, Lee, J., Gereffi, G. Globalization, recession and the internationalization of industrial districts: Experiences from the Italian gold jewellery industry. Eur Plan Stud. 22 (4), 866-884 (2014).
  13. Mestre, R. A wavelet approach of investing behaviors and their effects on risk exposures. Financ Innov. 24 (1), 1-37 (2021).
  14. Gold price prediction using random forest algorithm. Landge, U., Phokmare, U., Borane, N., Shelke, P. Proceedings of the 3rd International Conference on Applied Artificial Intelligence and Computing (ICAAIC), , (2024).
  15. Ho, T. T., Vo, T. N. Factors affecting the disparity of Vietnamese gold prices and worldwide gold prices. J Compet. 11 (3), 160-172 (2019).
  16. Aye, G., Gupta, R., Hammoudeh, S., Kim, W. J. Forecasting the price of gold using dynamic model averaging. Int Rev Financ Anal. 41, 257-266 (2025).
  17. Cohen, G., Aiche, A. Forecasting gold price using machine learning methodologies. Chaos Solitons Fractals. 175 (3), 114-179 (2023).
  18. Bandyopadhyay, G. Gold price forecasting using ARIMA model. J Adv Manag Sci. 4 (2), (2026).
  19. Prediction of gold price with ARIMA and SVM. Makala, D., Li, Z. J Phys Conf Ser, 1767 (1), 012-022 (2021).
  20. Prediction of gold price using deep learning. Dhanush, N., et al. IEEE 9th Region 10 Humanitarian Technology Conference (R10-HTC), , IEEE. (2021).
  21. Guo, Y., Li, C., Wang, X., Duan, Y. Gold price prediction using two-layer decomposition and XGBoost optimized by the whale optimization algorithm. Comput Econ. 66, 1157-1189 (2024).
  22. Jin, B., Xu, X. Machine learning gold price forecasting. J Manag Sci Eng Manag. 20 (2), 273-285 (2025).
  23. Sai, S., Giri, A. K., Chamola, V. A novel hybrid random convolutional kernels model for price volatility forecasting of precious metals. Expert Syst. 42 (2), e13738(2025).
  24. Khetan, M. Forecasting gold price and inflation for India and US: An analysis of ARIMA and Holt Winters models. XXXI (2), 255-268 (2024).
  25. Köse, N., Gür, Y. E., Ünal, E. Deep learning and machine learning insights into the global economic drivers of the bitcoin price. J Forecast. 44 (5), 1666-1698 (2025).
  26. He, T. Gold futures price forecast based on artificial intelligence. Advances in Economics, Management and Political Sciences. 174 (1), 27-33 (2025).
  27. Informer: Beyond efficient transformer for long sequence time-series forecasting. Zhou, H., et al. Thirty-Fifth AAAI Conf Artif Intell, , 11106-11115 (2021).
  28. Madziwa, L., Pillalamarry, M., Chatterjee, S. Gold price forecasting using multivariate stochastic model. Resour Policy. 76, 102-544 (2022).
  29. Livieris, I. E., Pintelas, E., Pintelas, P. A CNN-LSTM model for gold price time-series forecasting. Neural Comput Appl. 32 (23), 17351-17360 (2020).
  30. Ghezelbash, A. Predicting changes in stock index and gold prices to neural network approach. J Math Comput Sci. 4 (2), 227-236 (2012).
  31. Research on gold price forecasting based on LSTM and linear regression. Gong, W. SHS Web Conf, 181, 020-105 (2024).
  32. Li, B. Research on WNN modeling for gold price forecasting based on improved artificial bee colony algorithm. Comput Intell Neurosci. 2014, 270658(2014).
  33. Makridou, G., et al. Gold price forecasting with a neuro-fuzzy-based inference system. Int J Financ Eng Risk Manag. 1 (1), 35-54 (2013).
  34. Das, S., Sahu, T. P., Janghel, R. R. Oil and gold price prediction using optimized fuzzy inference system based extreme learning machine. Resour Policy. 79, 103-109 (2022).
  35. Mohtasham Khani, M., Vahidnia, S., Abbasi, A. A deep learning-based method for forecasting gold price with respect to pandemics. SN Comput Sci. 2 (4), 1-12 (2021).
  36. Prediction of gold and silver stock price using ensemble models. Mahato, P. K., Attar, V. IEEE Int Conf Adv Eng Technol Res (ICAETR), , (2014).
  37. Zangana, H. M. Deep learning-based gold price prediction: A novel approach using time series analysis. J Sist Inf. 13 (6), 1-12 (2024).
  38. Zhang, G. P. Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing. 50, 159-175 (2003).
  39. Bitcoin price prediction using machine learning. Bandlamuri, R., et al. AIP Conf Proc, 2869 (1), 1-9 (2023).
  40. Attention is all you need. Vaswani, A., et al. Proc 31st Conf Neural Inf Process Syst (NeurIPS), , (2017).
  41. Jain, A., Zongker, D. Feature selection: Evaluation, application, and small sample performance. IEEE Trans Pattern Anal Mach Intell. 19 (2), 153-158 (1997).
  42. Chai, T., Draxler, R. R. Root mean square error (RMSE) or mean absolute error (MAE)? - Arguments against avoiding RMSE in the literature. Geosci Model Dev. 7 (3), 1247-1250 (2014).
  43. Willmott, C., Matsuura, K. Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance. Clim Res. 30, 79-82 (2025).
  44. Adam: A method for stochastic optimization. Kingma, D. P., Ba, J. L. 3rd Int Conf Learn Represent (ICLR), , (2015).
  45. Abadi, D., et al. TensorFlow: A system for large-scale machine learning. ArXiV. , (2016).

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

Gold Price PredictionTransformer ModelDeep LearningWeb ScrapingUiPath AutomationFinancial MarketsTime Series ForecastingEconomic IndicatorsMarket TrendsPrediction Accuracy

Related Articles