Research on Stock Market Index Prediction Based on LSTM Model
DOI:
https://doi.org/10.54691/bcpbm.v48i.5357Keywords:
Stock Forecasting; LSTM; Multi-Classification; Feature Engineering.Abstract
In this paper, we propose a method based on a long short-term memory network (LSTM) to predict the rise and fall of a stock market index, and we select the data of CSI 300 from 2016 to 2020 as the research object of this paper. In this paper, the prediction problem of the index is transformed into a multi-classification problem by doing a multi-valued quantitative classification of the up and down ranges. As for the input of the model, we take the basic trading information of the stock and a variety of derived technical indicators as the feature for the model's training, and finally, we make the multi-classification prediction of the rise and fall of the stock. The experimental results show that the model achieves a high prediction accuracy of 78% in the case of multiple classifications. In addition, several comparison models are built in this paper to study the effects of different feature engineering methods on prediction accuracy, so there are some innovations in feature construction. It is concluded that filtering the features before dimensionality reduction can achieve better performance results. Finally, we compare the method proposed in this paper with other traditional machine learning models and conclude that the LSTM model in this paper yields better results while using the same training and test sets.
Downloads
References
Bollerslev, T., Marrone, J., Xu, L., & Zhou, H. (2014). Stock Return Predictability and Variance Risk Premia: Statistical Inference and International Evidence. Journal of Financial and Quantitative Analysis, 49(3), 633-661. doi:10.1017/S0022109014000453.
J.H. Kim, A. Shamsuddin, K.-P. Lim Stock return predictability and the adaptive markets hypothesis: Evidence from century-long us data Journal of Empirical Finance, 18 (5) (2011), pp. 868-879.
Murphy JJ (1999) Technical analysis of the financial markets: A comprehensive guide to trading methods and applications. Penguin.
Rao T S, Gabr M M.An introduction to bispectral analysis and bilinear time series models[M].New York: Springer, 2012.
Zheng T, Farrish J, Kitterlin M.Performance trends of hotels and casino hotels through the recession: an ARIMA with intervention analysis of stock indices[J].Journal of Hospitality Marketing & Management, 2016, 25(1): 49-68.
Rangel-Gonzalez J A, Frausto-Solis J, González-Barbosa J J, et al.Comparative study of ARIMA methods for forecasting time series of the mexican stock exchange[J]. Studies in Computational Intelligence, 2018, 749: 475-485.
White H (1988) Economic prediction using neural networks: the case of IBM daily stock returns. In: IEEE Int Conf. Neural Networks. 451–458.
Pan H, Tilakaratne C, Yearwood J (2003) Predicting the Australian stock market index using neural networks exploiting dynamical swings and intermarket influences. In: Australas. Jt. Conf. Artif. Intell. 327–338.
G. Armano, M. Marchesi, A. Murru,A hybrid genetic-neural architecture for stock indexes forecasting,Information Sciences,Volume 170, Issue 1,2005, Pages 3-33,ISSN 0020-0255,https://doi.org/10.1016/j.ins.2003.03.023.
Enke, David & Mehdiyev, Nijat. (2014). A Hybrid Neuro-fuzzy Model to Forecast Inflation. Procedia Computer Science. 36. 10.1016/j.procs.2014.09.088.
M. Khashei , M. Bijari A novel hybridization of artificial neural networks and arima models for time series forecasting Applied Soft Computing, 11 (2 ) (2011), pp. 2664-2675.
Hinton GE, Osindero S, Teh Y-W (2006) A fast learning algorithm for deep belief nets. Neural Comput 18:1527-1554.
Nicolas Le Roux, Yoshua Bengio; Deep Belief Networks Are Compact Universal Approximators. Neural Comput 2010; 22 (8): 2192–2207. doi: https://doi.org/10.1162/neco.2010.08-09-1081.
Sutskever I, Hinton GE. Deep, narrow sigmoid belief networks are universal approximators. Neural Comput. 2008 Nov;20(11):2629-36. doi: 10.1162/neco.2008.12-07-661. PMID: 18533819.
Ashwin Siripurapu. Convolutional Networks for Stock Trading[R ] . Stanford,2016.
ZHANG Gui-yong. Research on the Application of Improved Convolutional Neural Network in Financial Forecasting[D]. Zhengzhou University, 2016.
HU Yue. Stock market timing model based on Convolutional Neural Network --- Shanghai Composite Index as an example[J]. Financial Economics, 2018(4).
SUN Rui-qi,.Research on U.S. stock index price trend prediction model based on LSTM Neural Network [D]. Capital University of Economics and Business, 2016.
PENG Yan, LIU Yu-hong, ZHANG Rong-fen. Modeling and Analysis of Stock Price Forecast Based on LSTM,[J]. Computer Engineering and Applications, 2019, 55 (11): 209-212.
ZENG An, NIE Wen-jun. Stock Recommendation Based on Deep Bidirectional LSTM[J]. Computer Science, 2019, 46 (10): 84-89.
Kim T, Kim H Y. Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data[J]. PLoS One, 2019, 14(2): e0212320.
DUAN Yu-yuan. The impact of COVID-19 on China's stock market--an empirical analysis based on the pharmaceutical industry[J]. China Business Journal,2020(18):28-30.DOI:10.19699/j.cnki.issn2096-0298.2020.18.028






