A study of stock price prediction models based on time series analysis: LSTM and CNN
Abstract
The stock market is one of the most dynamic and complex systems and stock price prediction is essential for investors to make informed investment decisions and minimize risks. Over the years, various techniques have been developed for this topic. This paper studied two machine learning models for predicting the price of stock, leveraging time series analysis, namely Long Short-Term Memory (LSTM) and Convolutional Neural Network (CNN). This essay use time index as labels, and the data was standardized before training the two models with a step-size. A circulation was created for predicting the daily price of stock with the data of the last three days. RMSE and MAE were two indicators used to assess the models in this task. The results of this study indicated that both of the two models performed well in this topic, and the CNN model showed a better performance than LSTM. As a suggestion, investors should consider other factors such as market trends and risk management strategies when relying on these models to ensure a higher accurate result.
References
- Vijh, M., Chandola, D., Tikkiwal, V. A., & Kumar, A. (2020). Stock closing price prediction using machine learning techniques. Procedia computer science, 167, 599-606.
- Masoud, N. M. (2013). The impact of stock market performance upon economic growth. International Journal of Economics and Financial Issues, 3(4), 788-798.
- Murkute, A., & Sarode, T. (2015). Forecasting market price of stock using artificial neural network. International Journal of Computer Applications, 124(12), 11-15.
- Li, L., Wu, Y., Ou, Y., Li, Q., Zhou, Y., & Chen, D. (2017). Research on machine learning algorithms and feature extraction for time series. In 2017 IEEE 28th annual international symposium on personal, indoor, and mobile radio communications (PIMRC), 1-5.
- Mehtab, S., & Sen, J. (2020). Stock price prediction using convolutional neural networks on a multivariate timeseries. arXiv preprint arXiv:2001.09769.
- Liang, X., Ge, Z., Sun, L., He, M., & Chen, H. (2019). LSTM with wavelet transform based data preprocessing for stock price prediction. Mathematical Problems in Engineering, 1-8.
- Smagulova, K., & James, A. P. (2019). A survey on LSTM memristive neural network architectures and applications. The European Physical Journal Special Topics, 228(10), 2313-2324.
- Yu, Y., Si, X., Hu, C., & Zhang, J. (2019). A review of recurrent neural networks: LSTM cells and network architectures. Neural computation, 31(7), 1235-1270.
- Gu, J., Wang, Z., Kuen, J., Ma, L., Shahroudy, A., Shuai, B., et al. (2018). Recent advances in convolutional neural networks. Pattern recognition, 77, 354-377.
- Ajit, A., Acharya, K., & Samanta, A. (2020). A review of convolutional neural networks. In 2020 international conference on emerging trends in information technology and engineering (ic-ETITE), 1-5.