Compare CNN and LSTM Model to Forecast the Stock Price
DOI: 10.23977/ferm.2022.050607 | Downloads: 34 | Views: 668
Author(s)
Tong Wang 1, Panji Wang 1, Menghan Yu 1
Affiliation(s)
1 College of Science and Technology, Wenzhou-Kean University, Wenzhou, Zhejiang Province, 325006, China
Corresponding Author
Menghan YuABSTRACT
The prediction of stock price has been one of the hot research fields in recent years. Although the trend of stock price is non-linear and complex, and affected by the global situation, corporate decisions and other factors, it is difficult to accurately predict the stock price. However, since the change of stock price directly affects the interests of investors, stock price prediction can help people to provide a reference information for future decision-making. In previous studies, neural networks and deep learning have shown good results in stock price prediction. In this paper, two models of LSTM and CNN are used to forecast MRF stock price respectively, and the predicted results are analyzed and compared. We used stock data from January 1, 2013 to May 18, 2018, including four characteristic values: the highest price, the lowest price, the opening price and the closing price. The data of the first 1060 trading days were used to train the two models respectively, and the data of the last 265 trading days were used to test the models. The results show that the prediction effect of CNN model is more accurate than that of LSTM model.
KEYWORDS
Convolutional Neural Networks, Long Short-Term Memory, Stock Price PredictionCITE THIS PAPER
Tong Wang, Panji Wang, Menghan Yu, Compare CNN and LSTM Model to Forecast the Stock Price. Financial Engineering and Risk Management (2022) Vol. 5: 44-52. DOI: http://dx.doi.org/10.23977/ferm.2022.050607.
REFERENCES
[1] Basak, S., Kar, S., Saha, S., Khaidem, L., & Dey, S. R. (2019). Predicting the direction of stock market prices using tree-based classifiers. The North American Journal of Economics and Finance, 47(1062-9408), 552–567. https://doi.org /10.1016/j.najef.2018.06.013.
[2] Li, Y., & Pan, Y. (2021). A novel ensemble deep learning model for stock prediction based on stock prices and news. International Journal of Data Science and Analytics, 13(139–149). https://doi.org/10.1007/s41060-021-00279-9.
[3] Adamowski, J., Fung Chan, H., Prasher, S. O., Ozga-Zielinski, B., & Sliusarieva, A. (2012). Comparison of multiple linear and nonlinear regression, autoregressive integrated moving average, artificial neural network, and wavelet artificial neural network methods for urban water demand forecasting in Montreal, Canada. Water Resources Research, 48(1). https://doi.org/10.1029/2010wr009945.
[4] Marcus, G. (2018). Deep Learning: A Critical Appraisal. ArXiv.org. https://arxiv.org/abs/1801.00631.
[5] Gu, J., Wang, Z., Kuen, J., Ma, L., Shahroudy, A., Shuai, B., Liu, T., Wang, X., Wang, G., Cai, J., & Chen, T. (2018). Recent advances in convolutional neural networks. Pattern Recognition, 77(0031-3203), 354–377. https://doi.org/ 10.1016/j.patcog.2017.10.013.
[6] Abdou, M. A. (2022). Literature review: efficient deep neural networks techniques for medical image analysis. Neural Computing and Applications, 34(5791–5812). https://doi.org/10.1007/s00521-022-06960-9.
[7] Han, D., Liu, Q., & Fan, W. (2018). A new image classification method using CNN transfer learning and web data augmentation. Expert Systems with Applications, 95(0957-4174), 43–56. https://doi.org/10.1016/j.eswa.2017.11.028.
[8] Han, Y., Huang, G., Song, S., Yang, L., Wang, H., & Wang, Y. (2022). Dynamic Neural Networks: A Survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(11), 7436–7456. https://doi.org/ 10.1109/ TPAMI. 2021.3117837.
[9] Hubel, D., & Wiesel, T. (1977). Ferrier lecture - Functional architecture of macaque monkey visual cortex. Proceedings of the Royal Society of London. Series B. Biological Sciences, 198(1130), 1–59. https://doi.org/10. 1098/rspb.1977.0085.
[10] Shijie, J., Ping, W., Peiyi, J., & Siping, H. (2017, October 1). Research on data augmentation for image classification based on convolution neural networks. IEEE Xplore. https://doi.org/10.1109/CAC.2017.8243510.
[11] Khan, A., Sohail, A., Zahoora, U., & Qureshi, A. S. (2020). A survey of the recent architectures of deep convolutional neural networks. Artificial Intelligence Review, 53(5455–5516). https://doi.org/10.1007/s10462-020-09825-6.
[12] Wang, S., Li, Z., & Zhao, X. (2022, January 28). The Application of Convolutional Neural Network in Malware Images Classification. Www.atlantis-Press.com; Atlantis Press. https://doi.org/10.2991/assehr.k.220110.047.
[13] Luo, J.-H., Wu, J., & Lin, W. (2017). ThiNet: A Filter Level Pruning Method for Deep Neural Network Compression. Openaccess.thecvf.com. https://openaccess.thecvf.com/ content_iccv_2017/html/Luo_ThiNet_A_ Filter_ICCV_2017_ paper.html.
[14] Deshmukh, A. M. (2020). Comparison of Hidden Markov Model and Recurrent Neural Network in Automatic Speech Recognition. European Journal of Engineering and Technology Research, 5(8), 958–965. https://doi.org/ 10. 24018/ejeng.2020.5.8.2077.
[15] Pham, V., Bluche, T., Kermorvant, C., & Louradour, J. (2014, September 1). Dropout Improves Recurrent Neural Networks for Handwriting Recognition. IEEE Xplore. https://doi.org/10.1109/ICFHR.2014.55.
Downloads: | 17920 |
---|---|
Visits: | 348934 |
Sponsors, Associates, and Links
-
Information Systems and Economics
-
Accounting, Auditing and Finance
-
Industrial Engineering and Innovation Management
-
Tourism Management and Technology Economy
-
Journal of Computational and Financial Econometrics
-
Accounting and Corporate Management
-
Social Security and Administration Management
-
Population, Resources & Environmental Economics
-
Statistics & Quantitative Economics
-
Agricultural & Forestry Economics and Management
-
Social Medicine and Health Management
-
Land Resource Management
-
Information, Library and Archival Science
-
Journal of Human Resource Development
-
Manufacturing and Service Operations Management
-
Operational Research and Cybernetics