An improved LSTM stock price prediction model based on multiple basis function expansion and two-layer Bagging algorithm

Authors

  • Qiong Wu
  • Jiayi Lu
  • Heping Zhang

DOI:

https://doi.org/10.54097/hbem.v10i.8043

Keywords:

stock price prediction, LSTM, basis function expansion, Bagging.

Abstract

Using neural network technology to predict the time series data of stock prices is a hot issue in the field of computational science. For example, Long Short-Term memory network technology (LSTM) has been widely used in stock price prediction. However, if the original stock opening price series information is not enough to predict the future trend, the effect of LSTM model may not be ideal. In addition, improper selection of the step size will also make the prediction effect of the LSTM model poor. This paper proposes an improved LSTM model based on multi-view basis function expansion and Bagging algorithm. On the one hand, under a fixed step size, the intra-day price information of the stock is extracted by using a variety of basis function expansion forms as prior information, and then the Bagging algorithm is used to establish the relationship between the basis expansion coefficients and the prediction residual of the original LSTM model to predict the residual, thereby increasing the prediction accuracy. On the other hand, the problem of LSTM step size selection is adaptively solved by using the idea of model average instead of the model selection method, and the specific method is to combine the weighted average of LSTM models with different time lengths. The actual data analysis shows that the proposed method improves the prediction accuracy of the original LSTM model, and the t-test shows that the proposed method has significant robustness.

Downloads

Download data is not yet available.

References

Vo, N., & Ślepaczuk, R. (2022). Applying Hybrid ARIMA-SGARCH in Algorithmic Investment Strategies on S&P500 Index. Entropy (Basel, Switzerland), 24(2),158.

Wang, Y., & Guo, Y. (2020). Forecasting method of stock market volatility in time series data based on mixed model of ARIMA and XGBoost. China Communications, 17, 205-221.

Liu, Q., Zhang, G., Ali, S., Wang, X., Wang, G., Pan, Z., & Zhang, J. (2019). SPI-based drought simulation and prediction using ARMA-GARCH model. Appl. Math. Comput., 355, 96-107.

Wang Yingwei, Ma Shucai. Time Series prediction based on Hybrid Model of ARIMA and LSTM [J]. Computer Applications and Software,2021,38(02):291-298. (in Chinese)

Zhao Hongrui, Xue Lei. Research on Stock Prediction based on LSTM-CNN-CBAM Model [J] Computer Engineering and Applications,2021,57(03):203-207. (in Chinese)

D. Chen, J. Zhang and S. Jiang, "Forecasting the Short-Term Metro Ridership With Seasonal and Trend Decomposition Using Loess and LSTM Neural Networks," in IEEE Access, vol. 8, pp. 91181-91187, 2020.

H. Zhang, C. Ma, Z. Jiang and J. Lian, "Image Caption Generation Using Contextual Information Fusion With Bi-LSTM-s," in IEEE Access, vol. 11, pp. 134-143, 2023.

Ma, W., Zhang, Y., Guo, J., & Li, K. (2021). Unbalanced abnormal traffic detection based on improved Res-BIGRU and integrated dynamic ELM optimization. Comput. Commun., 179, 112-130.

Yang Guang, Chao Suya, Nie Min, Liu Yuanhua, Zhang Meiling (2023). Construction of hybrid quantum LSTM neural networks for image Classification [J/OL]. Journal of Physics, 1-29.

Yan, X., Zhou, Y., Pu, X., & Zhao, P. (2021). Functional Multiple-Outcome Model in Application to Multivariate Growth Curves of Infant Data. Journal of Systems Science and Complexity, 1-23.

Xu Wen, Tang Jian, Xia Heng & Qiao Junfei. (2022). Soft measurement of dioxin emission concentration based on Bagging semi-supervised deep forest regression. Journal of instruments and meters (6), 251-259.

Bai Haifeng, Liu Xiaodong, Niu Shukui, He Yadong. Construction of forest fire prediction model based on Bayesian model averaging method: taking Dali Prefecture, Yunnan Province of southwestern China as an example[J]. Journal of Beijing Forestry University, 2021, 43(5): 44-52.

Downloads

Published

09-05-2023

How to Cite

Wu, Q., Lu, J., & Zhang, H. (2023). An improved LSTM stock price prediction model based on multiple basis function expansion and two-layer Bagging algorithm. Highlights in Business, Economics and Management, 10, 227-235. https://doi.org/10.54097/hbem.v10i.8043