Research on Stock Price Prediction based on the GWO-LSTM-ATT Model
DOI:
https://doi.org/10.54097/6k81dw88Keywords:
Attention Mechanism, Grey Wolf Algorithm, Long Short-Term Memory Network, Stock Price Prediction, Time Series PredictionAbstract
To address the challenge of deep learning models becoming trapped in local optima and to enhance prediction accuracy in stock price forecasting, this study proposes a stock prediction model that utilizes the Grey Wolf Optimization (GWO) algorithm to optimize the Long Short-Term Memory with Attention Mechanism (LSTM-ATT). The GWO algorithm is employed to fine-tune the hyperparameters of the LSTM-ATT model, thereby identifying the optimal hyperparameter configuration necessary for constructing a high-accuracy stock prediction model. Experimental results indicate that for 5-step, 10-step, and 20-step predictions, the Mean Absolute Error (MAE) of the GWO-LSTM-ATT model is reduced by 61.33%, 77.06%, and 89.28%, respectively, in comparison to the LSTM-ATT model. The GWO-LSTM-ATT model not only effectively mitigates the issue of local optima but also offers a novel perspective and a robust tool for enhancing the accuracy and stability of stock price predictions.
Downloads
References
[1] ZHANG Juping,LI Lu. Research on stock index trend forecasting based on IMGAF-RLNet model[J/OL].Computer Engineering and Applications, 1-18[2024-09-18].
[2] Yu Xiaojian, Liu Guopeng, Liu Jianlin, et alStock index prediction based on LSTM network and text sentiment analysis[J].CMS,2024,32(08):25-35.
[3] Yang Yumeng, Li XingdongStock Price Prediction Based on GA-LSTM Combination Model[J].Modern Computer,2021, 27(33):1-7.
[4] Chen S ,Ge L .Exploring the attention mechanism in LSTM-based Hong Kong stock price movement prediction[J]. Quantitative Finance,2019,19(9):1507-1515.
[5] Jin Z ,Yang Y ,Liu Y .Stock closing price prediction based on sentiment analysis and LSTM[J].Neural Computing and Applications,2019,32(13):1-17.
[6] Qiao RuoyuStock prediction model based on neural network[J].Operations Research and Management, 2019, 28 (10):132-140.
[7] Zhang J ,Ye L ,Lai Y .Stock Price Prediction Using CNN-BiLSTM-Attention Model[J].Mathematics,2023,11(9).
[8] Song Gang, Zhang Yunfeng, Bao Fangxun, et alStock Prediction Model Based on Particle Swarm Optimization LSTM[J].Journal of Beijing University of Aeronautics and Astronautics,2019,45(12):2533-2542.
[9] Huang Jianhua, Zhong Min, Hu QingchunLSTM stock prediction model based on improved particle swarm optimization (PCO)[J].Journal of East China University of Science and Technology (Natural Science Edition), 2022, 48 (05): 696-707.
[10] Li JingqiResearch on stock price index prediction based on improved recurrent neural network[D].Shandong University of Technology and Business, 2023.
[11] Zhu A ,Zhao Q ,Yang T , et al.Wind speed prediction and reconstruction based on improved grey wolf optimization algorithm and deep learning networks[J].Computers and Electrical Engineering,2024,114109074-.
[12] Cong L ,Renxiang L .Short-term power forecasting model based on GWO-LSTM network[J].Journal of Physics: Conference Series,2023,2503(1).
[13] Arsalan M ,Reza H N ,Mokhtar M , et al.Forecasting tunnel boring machine penetration rate using LSTM deep neural network optimized by grey wolf optimization algorithm[J]. Expert Systems With Applications,2022,209.
[14] Li MiaoResearch on ship trajectory prediction based on GWO-LSTM algorithm[J].Pearl River Water Transport, 2024, (12): 49-51.
[15] T. E S ,N. S M ,R. S .Stock market forecasting using deep learning with long short-term memory and gated recurrent unit [J].Soft Computing,2024,28(4):3267-3282.
[16] HOCHREITER S,SCHMIDHUBER J.Long short-term memory [J]. NeuralComputation,1997,9(8):1735-1780.
[17] Sang S ,Li L .A Novel Variant of LSTM Stock Prediction Method Incorporating Attention Mechanism[J]. Mathematics, 2024,12(7):
[18] TREISMAN A M, GELADE G.A feature-integration theory of attention[J].Cognitive Psychology,1980,12(1):97-136.
[19] Tao Z ,Xiao-Qing Z ,Ming-Xin L .Multiscale attention-based LSTM for ship motion prediction[J].Ocean Engineering, 2021, 230.
[20] Zeng Qinghua, Ran Peng, Dong Kun, et al. Prediction algorithm of SO_2 emission GWO-N-BEATS based on big data platform[J].Thermal Power Engineering, 2024, 39(03): 125-131.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Frontiers in Computing and Intelligent Systems

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.