Abstract
Finding an accurate, stable and effective model to predict the rise and fall of stocks has become a task increasingly favored by scholars. This paper proposes a long short-term memory (LSTM) network based on Pearson's correlation coefficient and a Bayesian-optimized LightGBM hybrid model, named as LSTM-BO-LightGBM, to solve the problem of stock price fluctuation prediction. The multilayer bidirectional LSTM-BO-LightGBM prediction model is compared with the LSTM-BO-XGBoost hybrid model, the LSTM-LightGBM hybrid model, the LSTM-XGBoost hybrid model, the single LSTM network model and the RNN network model. The prediction result of the LSTM-BO-LightGBM model for the "ES = F" stock is an RMSE value of 596.04, MAE value of 15.24, accuracy value of 0.639 and f1_score value of 0.799, which are improved compared with the prediction results of the other five models. At the same time, when applying the model to "YM = F", "CL = F", "^TNX", "^N225", "NQ = F", "AAPL", "GC = F", "JPY = X" and "SI = F", all of the nine stocks showed good forecasting performance. The results demonstrate that the multilayer bidirectional LSTM-BO-LightGBM model proposed in this paper has better approximation ability and generalization ability in the stock fluctuation forecast than previous models and can well fit the stock fluctuation.
Similar content being viewed by others
References
Mcqueen G, Thorley S (1991) Are stock returns predictable? A test using Markov chains. J Financ 46(1):239–263
Patricia MD, Amy PH, Lisa M et al (2001) Short-sellers, fundamental analysis, and stock returns. J Financ Econ 61(1):77–106
Yan XS, Zheng L (2017) Fundamental analysis and the cross-section of stock returns: a data-mining approach. Rev Financ Stud 30(4):1382–1423
Wang Y, Guo Y (2020) Forecasting method of stock market volatility in time series data based on mixed model of ARIMA and XGBoost. China Commun 17(3):205–221
Parmar K, Singh S, Kumar J (2021) Soft computing model coupled with statistical models to estimate future of stock market. Neural Comput Appl 4(1):1–19
Wu MT, Li Z, Herencsar N et al (2021) A graph-based CNN-LSTM stock price prediction algorithm with leading indicators. Multimed Syst 22(2):1–20
Mehtab S, Sen J (2020) Stock price prediction using CNN and LSTM-based deep learning models. In: 2020 International conference on decision aid sciences and application (DASA). IEEE, pp 447–453
Jia H (2016) Investigation into the effectiveness of long short term memory networks for stock price prediction. arXiv preprintarXiv:1603.07893
Akita R, Yoshihara A, Matsubara T et al. (2016) Deep learning for stock prediction using numerical and textual information[C]. In: 2016 IEEE/ACIS 15th International Conference on Computer and Information Science (ICIS). IEEE
Nelson D, Pereira A, Oliveira R (2017) Stock market's price movement prediction with LSTM neural networks[C]. In: 2017 International Joint Conference on Neural Networks (IJCNN). IEEE
Kim HY, Won CH (2018) Forecasting the volatility of stock price index: a hybrid model integrating LSTM with multiple GARCH-type models. Expert Syst Appl 103(8):25–37
Ning Y, Zhang Y (2019) LSTM-Adaboost's stock price forecasting model. J Univ Sci Technol Liaoning 42(5):383–388
Ren Y, Liao F, Gong Y (2020) Impact of news on the trend of stock price change: an analysis based on the deep Bidirectiona LSTM model. Proced Comput Sci 174:128–140
Chang V, Man X, Xu Q et al (2020) Pairs trading on different portfolios based on machine learning. Expert Syst 38(3):1–47
Wei H, Zeng QT (2021) Research on sales forecast based on XGBoost-LSTM algorithm model. J Phys: Conf Ser 1754(1):012191
Greff K, Srivastava RK, Koutník J et al (2016) LSTM: a search space Odyssey. IEEE Trans Neural Netw Learn Syst 28(10):2222–2232
Ta V-D, Liu C-M, Tadesse DA (2020) Portfolio optimization-based stock prediction using long-short term memory network in quantitative trading. Appl Sci 10(2):437
Zhao Y, Khushi M (2020) Wavelet Denoised-ResNet CNN and LightGBM method to predict forex rate of change[C]. In: 2020 International Conference on Data Mining Workshops (ICDMW). IEEE, pp. 385–391
Yang S, Zhang H (2018) Comparison of several data mining methods in credit card default prediction. Intell Inf Manag 10(5):115–122
Gao P, Zhao D, Yang J et al (2021) Evaluation of physical fitness of pupils based on bayesian and fuzzy recognition coupling method. Wirel Pers Commun 119(4):3037–3051
Wang R, Liu Y, Ye X et al. (Bayesian) Power system transient stability assessment based on bayesian optimized LightGBM[C]. In: 2019 IEEE 3rd Conference on Energy Internet and Energy System Integration (EI2). IEEE pp. 263–268
Zhang X, Zhang Q (2020) Short-term traffic flow prediction based on LSTM-XGBoost combination model. Comput Model Eng Sci 125(1):95–109
Guo Y, Li Y, Xu Y (2021) Study on the application of LSTM-LightGBM Model in stock rise and fall prediction. MATEC Web of Conf 336(10):05011
Selvin S, Vinayakumar R, Gopalakrishnan EA et al. (2017) Stock price prediction using LSTM, RNN and CNN-sliding window model. In: International Conference on Advances in Computing. IEEE
Huang G, Liu X, Ma Y et al (2019) Programming situational mobile web applications with cloud-mobile convergence: an internetware-oriented approach. IEEE Trans Serv Comput 12(1):6–19
Chen X, Wang H, Ma Y et al (2020) Self-adaptive resource allocation for cloud-based software services based on iterative QoS prediction model. Future Gener Comput Syst 105:287–296
Funding
This paper is funded by the following fund projects: The National Nature Science Foundation of China under Grants 61872452, 61872451 and 61702365, in part by the Macao FDCT under Grants 0098/2018/A3, 0076/2019/A2 and 0037/2020/A1; General Social Development Project in Dongguan City in 2020 (NO. 2020507154401); Guangdong Province Basic and Applied Basic Research Fund Project (NO. 2020A1515010784).
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Tian, L., Feng, L., Yang, L. et al. Stock price prediction based on LSTM and LightGBM hybrid model. J Supercomput 78, 11768–11793 (2022). https://doi.org/10.1007/s11227-022-04326-5
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11227-022-04326-5