Copper price prediction using LSTM recurrent neural network integrated simulated annealing algorithm

PLoS One. 2023 Oct 30;18(10):e0285631. doi: 10.1371/journal.pone.0285631. eCollection 2023.

Abstract

Copper is an important mineral and fluctuations in copper prices can affect the stable functioning of some countries' economies. Policy makers, futures traders and individual investors are very concerned about copper prices. In a recent paper, we use an artificial intelligence model long short-term memory (LSTM) to predict copper prices. To improve the efficiency of long short-term memory (LSTM) model, we introduced a simulated annealing (SA) algorithm to find the best combination of hyperparameters. The feature engineering problem of the AI model is then solved by correlation analysis. Three economic indicators, West Texas Intermediate Oil Price, Gold Price and Silver Price, which are highly correlated with copper prices, were selected as inputs to be used in the training and forecasting model. Three different copper price time periods, namely 485, 363 and 242 days, were chosen for the model forecasts. The forecast errors are 0.00195, 0.0019 and 0.00097, respectively. Compared with the existing literature, the prediction results of this paper are more accurate and less error. The research in this paper provides a reliable reference for analyzing future copper price changes.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Artificial Intelligence*
  • Copper*
  • Forecasting
  • Memory, Long-Term
  • Neural Networks, Computer

Substances

  • Copper

Grants and funding

This study is supported by the National Natural Science Foundation of China (NSFC) (No. 71991482). The funder played an important role in the research design, publication decision and manuscript preparation of the study.