Article Details

Title · Authors · Abstract · Keywords · DOI · References

Gold Price Prediction Based on LSTM-Attention Combination Model

WU Junping, LIU Jihua, QIN Yulu

(Business School, Hubei University, Wuhan 430062, China)

Section:Information Application · 2025, Vol. 9, No. 11 · Pages:144-149,155 · 2096-4706(2025)11-0144-07 · CLC number:TP391.4 · Document code:A · DOI:10.19850/j.cnki.2096-4706.2025.11.027

Abstract

This paper explores effective methods for predicting gold prices, and proposes three modeling strategies including standalone Long Short-Term Memory (LSTM) networks, Attention-based models, and LSTM-Attention combination model. Through empirical analysis, it systematically compares the performance of these three models in gold price prediction, with a focus on evaluating their predictive accuracy. The experimental results indicate that the LSTM-Attention combination model significantly outperforms the standalone LSTM and Attention models in terms of prediction accuracy, demonstrating a more comprehensive ability to capture the dynamic features of price fluctuations. This model not only showcases the potential of effective integration of LSTM and Attention Mechanism in time series prediction, but also provides a practical tool for financial decision-making, offering valuable references for investors in a volatile market environment.

Keywords

gold; LSTM; price prediction; Attention

References

  1. [1] Xu Jingyi, Kong Mengqi Research on COMEX Gold Futures Prices in New York Based on ARIMA Model [J]. China Business Review, 2022 (18): 123-125
  2. [2] Luo Hongben Research on Intelligent Hybrid Forecasting of Financial Time Series Based on Grey ARIMA [J]. Financial Theory and Practice, 2014, 35 (2): 27-34
  3. [3] Liu Lu, Lou Lei, Liu Xianjun, etc Comparative Study on COMEX Gold Futures Price Prediction Based on LSTM [J]. Journal of Changchun University of Science and Technology: Natural Science Edition, 2021, 44 (2): 129-135
  4. [4] KIM H Y,WON C H. Forecasting the Volatility of Stock Price Index: A Hybrid Model Integratin LSTM with Multiple GARCH-type Models [J].Expert Systems with Applications,2018,103(1):25-37.
  5. [5] Ouyang Hongbing, Huang Kang, Yan Hongju Financial time series prediction based on LSTM neural network [J]. Chinese Journal of Management Science, 2020, 28 (4): 27-35
  6. [6] Yang Chen, Chen Guici International gold futures price prediction based on EMD-LSTM [J]. Journal of Central South University for Nationalities: Natural Science Edition, 2023, 42 (6): 857-864
  7. [7] Jing Zhigang, Shi Guoliang Gold Price Prediction Using LS-SVM-ARIMA Combination Model Based on Wavelet Analysis [J]. Gold, 2017, 38 (5): 5-8+14
  8. [8] VASWANI A,SHAZEER N,PARMAR N,et al. Attention is All You Need [J/OL].arXiv:1706.03762 [cs.CL].(2017-06-12).https://arxiv.org/abs/1706.03762.
  9. [9] JIN X Y,WANG Y-X,YAN X F. Inter-series Attention Model for COVID-19 Forecasting [J/OL].arXiv:2010.13006 [cs.LG].(2020-10-25).https://arxiv.org/abs/2010.13006.
  10. [10] LI S Y,JIN X Y,XUAN Y,et al. Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting [C]//NeurIPS 2019.Vancouver:NIPS,2019:5243-5253.
  11. [11] CAI L,JANOWICZ K,MAI G,et al. Traffic Transformer: Capturing the Continuity and Periodicity of Time Series for Traffic Forecasting [J].Transactions in GIS,2020,24(3):736-755.
  12. [12] LI C,ZHANG X,QAOSAR M,et al. Multi-factor Based Stock Price Prediction Using Hybrid Neural Networks with Attention Mechanism [C]//IEEE International Symposium on Dependable, Autonomic and Secure Computing (DASC).Fukuoka:IEEE,2019:961-966.
  13. [13] Xu Jiali CNN-LSTM Shanghai Gold Futures Price Prediction Based on Attention Mechanism [D]. Chengdu: Chengdu University of Technology, 2021
  14. [14] Wang Hong, Shi Jinchuan, Zhang Zhiwei Semantic relation extraction based on attention mechanism in LSTM [J]. Computer Application Research, 2018, 35 (5): 1417-1420+1440
  15. [15] Cao Wennan, Zhang Pengcheng, Jia Yangyang A Short term Rainfall Forecasting Method Based on Attention Mechanism [J]. Computer Applications and Software, 2023, 40 (2): 48-53+81
  16. [16] Zhou Ying, Liu Yue, Cai Jun Weibo sentiment analysis based on attention mechanism [J]. Intelligence Theory and Practice, 2018, 41 (3): 89-94

About the authors

Wu Junping (2002-), male, Han ethnicity, from Huanggang, Hubei, currently pursuing a master's degree in data analysis and mining; Liu Jihua (1971-), male, Han ethnicity, from Wuhan, Hubei, associate professor, PhD, research interests: neural networks, data mining; Qin Yulu (2001-), female, Han ethnicity, from Huanggang, Hubei, is currently pursuing a master's degree in data analysis and mining.