Open Access iconOpen Access

ARTICLE

crossmark

Forecast of LSTM-XGBoost in Stock Price Based on Bayesian Optimization

Tian Liwei1,2,*, Feng Li1, Sun Yu3, Guo Yuankai4

1 Macau University of Science and Technology, Taipa, 999078, Macau
2 Guangdong University of Science and Technology, Dongguan, 523083, China
3 Guangdong University of Technology, Guangzhou, 510006, China
4 Ankang Vocational Technical College, Ankang, 725000, China

* Corresponding Author: Tian Liwei. Email: email

Intelligent Automation & Soft Computing 2021, 29(3), 855-868. https://doi.org/10.32604/iasc.2021.016805

Abstract

The prediction of the “ups and downs” of stock market prices is one of the important undertakings of the financial market. Since accurate prediction helps foster considerable economic benefits, stock market prediction has attracted significant interest by both investors and researchers. Efforts into building an accurate, stable and effective model to predict stock prices’ movements have been proliferating at a fast pace, to meet such a challenge. Firstly, this paper uses a correlation analysis to analyze the attributes of a stock dataset, processing missing values, determining the data attributes to be retained data, then divide it in a training set and a testing set. Then, the LSTM model is subsequently used to predict the retained attributes after the analysis and retention of prediction results to construct a new testing set. At the same time, the Bo-XGBoost model based on XGBoost is used to train the original training set. It uses Bayesian calculation to optimize the parameters which are proved to be difficult to find the best solution in the XGBoost model. Finally, the LSTM-BO-XGBoost model proposed in this paper is applied to “ES=F”, “YM=F”, “CL=F”, “^TNX”, “^N225”, “NQ=F”, “AAPL”, “GC= F”, “JPY=X” and “SI=F” rates with 10 stocks in the forecast and evaluated by four evaluation indexes: root mean square error (RMSE), average absolute error (MAE), accuracy rate, and F1-score. It is found that the LSTM-BO-XGBoost model proposed in this paper performs better than LSTM in stock price prediction. In order to further evaluate the performance of the algorithm, the LSTM-BO-XGBoost mode is compared with the single LSTM network model and RNN network model, the LSTM-BO-XGBoost hybrid model. The results show that the LSTM-BO-XGBoost mode has high performance, stability and feasibility than the others.

Keywords


Cite This Article

APA Style
Liwei, T., Li, F., Yu, S., Yuankai, G. (2021). Forecast of lstm-xgboost in stock price based on bayesian optimization. Intelligent Automation & Soft Computing, 29(3), 855-868. https://doi.org/10.32604/iasc.2021.016805
Vancouver Style
Liwei T, Li F, Yu S, Yuankai G. Forecast of lstm-xgboost in stock price based on bayesian optimization. Intell Automat Soft Comput . 2021;29(3):855-868 https://doi.org/10.32604/iasc.2021.016805
IEEE Style
T. Liwei, F. Li, S. Yu, and G. Yuankai, “Forecast of LSTM-XGBoost in Stock Price Based on Bayesian Optimization,” Intell. Automat. Soft Comput. , vol. 29, no. 3, pp. 855-868, 2021. https://doi.org/10.32604/iasc.2021.016805



cc Copyright © 2021 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 3074

    View

  • 2699

    Download

  • 0

    Like

Share Link