Abstract
With the rapid rise of economic globalization and digital economics, the rapid development of the global economy has been promoted. As the most important part of the financial industry, the stock market has an important impact on economic fluctuations. How to improve the changing trend of stock market fluctuations has become a hot topic that many scholars and investors pay most attention to. This paper uses the XGBoost model to train the opening price, closing price, highest price, lowest price, trading volume, change, adjusted closing price, and converted time data information in the processed stock historical data set, and train it The results are saved. Then input each attribute into the LSTM model for prediction, and use the prediction result of each attribute as the test set of prediction after XGBoost training, and continuously adjust the parameters of each model, and finally get the optimal stock fluctuation prediction model, LSTM_XGBoost model. The LSTM_XGBoost model is applied to the five stocks ES = F, YM = F, AAPL, SI = F, and CL = F to predict the rise and fall of five stocks. The model is compared and verified by five evaluation indexes: the root mean square error RMSE, the average absolute error MAE, the coefficient of determination R2, the accuracy rate, and the f1-score. It is found that the LSTM-XGBoost model proposed in this paper has risen and fallen in stocks. There is a certain degree of stability and feasibility in the forecast.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Kohara, K., Ishikawa, T., Fukuhara, Y.: Stock price prediction using prior knowledge and neural networks. Intell. Syst. Account. Finan. Manag. 6(1), 11–22 (2015)
Nelson D., Pereira A., Oliveira R.: Stock market’s price movement prediction with LSTM neural networks. In: International Joint Conference on Neural Networks. IEEE (2017)
Kim, H.Y., Won, C.H.: Forecasting the volatility of stock price index: a hybrid model integrating LSTM with multiple GARCH-type models. Expert Syst. Appl. 103(8), 25–37 (2018)
Althelaya K.A., El-Alfy E.S.M., Mohammed, S.: Stock market forecast using multivariate analysis with bidirectional and stacked (LSTM, GRU). In: 21st Saudi Computer Society National Computer Conference (2018)
Sun, S., Wei, Y., Wang, S.: AdaBoost-LSTM ensemble learning for financial time series forecasting. In: Shi, Y., et al. (eds.) ICCS 2018. LNCS, vol. 10862, pp. 590–597. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-93713-7_55
Chen, W., Yeo, C.K., Lau, C.T.: Leveraging social media news to predict stock index movement using RNN-boost. Data Knowl. Eng. 118(11), 14–24 (2018)
Mehtab S., Sen J.: A robust predictive model for stock price prediction using deep learning and natural language processing. Papers (2019)
Xiao, C., Xia, W., Jiang, J.: Stock price forecast based on combined model of ARI-MA-LS-SVM. Neural Comput. Appl. 32(10), 5379–5388 (2020). https://doi.org/10.1007/s00521-019-04698-5
Greff, K., Srivastava, R.K., Jan, K.: LSTM: A Search Space Odyssey. IEEE Trans. Neural Netw. Learn. Syst. 28(10), 2222–2232 (2016)
Chen T., Guestrin C.: XGBoost: a scalable tree boosting system. In: ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (2016)
Sundermeyer, M., Schlüter, R., Ney H.: LSTM neural networks for language modelling. In: Interspeech, pp. 601–608 (2012)
Miao, Y., Gowayyed, M., Metze, F.: EESEN: end-to-end speech recognition using deep RNN models and WFST-based decoding (2016)
Acknowledgement
The paper is funded by Dongguan social science and technology development (general) project (No. 2020507154645) in 2020 and the key platform construction leap up program project of Guangdong University of science and technology: network engineering application technology research center of Guangdong University of science and technology.This work is supported by Natural Science Foundation of Guangdong Province of China with No. 2020A1515010784.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Yu, S., Tian, L., Liu, Y., Guo, Y. (2021). LSTM-XGBoost Application of the Model to the Prediction of Stock Price. In: Sun, X., Zhang, X., Xia, Z., Bertino, E. (eds) Artificial Intelligence and Security. ICAIS 2021. Lecture Notes in Computer Science(), vol 12736. Springer, Cham. https://doi.org/10.1007/978-3-030-78609-0_8
Download citation
DOI: https://doi.org/10.1007/978-3-030-78609-0_8
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-78608-3
Online ISBN: 978-3-030-78609-0
eBook Packages: Computer ScienceComputer Science (R0)