Skip to main content
Log in

Financial Time Series Prediction Based on Deep Learning

  • Published:
Wireless Personal Communications Aims and scope Submit manuscript

Abstract

By combining wavelet analysis with Long Short-Term Memory (LSTM) neural network, this paper proposes a time series prediction model to capture the complex features such as non-linearity, non-stationary and sequence correlation of financial time series. The LSTM is then applied to the prediction of the daily closing price of the Shanghai Composite Index as well as the comparison of its prediction ability with machine learning models such as multi-layer perceptron, support vector machine and K-nearest neighbors. The empirical results show that the LSTM performs a better prediction effect, and it shows excellent effects on the static prediction and dynamic trend prediction of the financial time series, which indicates its applicability and effectiveness to the prediction of financial time series. At the same time, both wavelet decomposition and reconstruction of financial time series can improve the generalization ability of the LSTM prediction model and the prediction accuracy of long-term dynamic trend.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

References

  1. Taylor, G. W. (2009). Composable, distributed-state models for high-dimensional time series. Toronto: University of Toronto.

    Google Scholar 

  2. Simonyan, K., & Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv:1409.1556.

  3. Sarikaya, R., Hinton, G. E., & Deoras, A. (2014). Application of Deep Belief Networks for natural language understanding. ACM Transactions on Audio Speech and Language Processing, 22(4), 778–784.

    Google Scholar 

  4. Trafalis, T. B., & Ince, H. (2000). Support vector machine for regression and applications to financial forecasting. Neural Networks. In Proceedings of the IEEE-INNS-ENNS international joint conference on IJCNN 2000 (pp. 348–353). IEEE.

  5. Guresen, E., Kayakutlu, G., & Daim, T. U. (2011). Using artificial neural network models in stock market index prediction. Expert Systems with Applications, 38, 10389–10397.

    Article  Google Scholar 

  6. Ahmed, N. K., Atiya, A. F., Gayar, N. E., et al. (2010). An empirical comparison of machine learning models for time series forecasting. Econometric Reviews, 2010, 594–621.

    Article  MathSciNet  Google Scholar 

  7. Bengio, Y., & LeCun, Y. (2007). Scaling learning algorithms towards AI. Large-scale kernel machines, 34, 1–41.

    Google Scholar 

  8. Heaton, J. B, Polson, N. G., & Witte, J. H. (2016). Deep learning in finance. arXiv preprint arXiv:1602.06561.

  9. Hinton, G., Deng, L., Yu, D., et al. (2012). Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29, 82–97.

    Article  Google Scholar 

  10. Taylor, G. W., Fergus, R., Lecun, Y., & Bregler, C. (2010). Convolutional learning of spatio-temporal features. European conference on computer vision (Vol. 6316, pp. 140–153). Springer.

  11. Hsieh, T. J., Hsiao, H. F., & Yeh, W. C. (2011). Forecasting stock markets using wavelet transforms and recurrent neural networks: An integrated system based on artificial bee colony algorithm. Applied soft computing, 11, 2510–2525.

    Article  Google Scholar 

  12. Hochreiter, S., Bengio, Y., Frasconi, P., et al. (2001). Gradient flow in recurrent nets: The difficulty of learning long-term dependencies. In: J. F. Kolen, S. C. Kremer (Eds.), A field guide to dynamical recurrent neural networks (Vol. 28, pp. 237–244). IEEE Press.

  13. Sutskever, I., Vinyals, O., & Le, Q. V. (2014). Sequence to sequence learning with neural networks. In Advances in neural information processing systems (pp. 3104–3112).

  14. Pang, Z. Y., & Liu, L. (2013). Can agricultural product price fluctuation be stabilized by future market: Empirical study based on discrete wavelet transform and GARCH model. Journal of Finance Research, 11, 126–139.

    Google Scholar 

  15. Längkvist, M., Karlsson, L., & Loutfi, A. (2014). A review of unsupervised feature learning and deep learning for time-series modeling. Pattern Recognition Letters, 42, 11–24.

    Article  Google Scholar 

  16. Tesauro, G. (1992). Practical issues in temporal difference learning. Machine Learning, 8, 257–277.

    MATH  Google Scholar 

  17. Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep learning. Cambridge: MIT Press.

    MATH  Google Scholar 

  18. Graves, A. (2012). Supervised sequence labelling with recurrent neural networks (pp. 5–13). Berlin: Springer.

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hongbing Ouyang.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yan, H., Ouyang, H. Financial Time Series Prediction Based on Deep Learning. Wireless Pers Commun 102, 683–700 (2018). https://doi.org/10.1007/s11277-017-5086-2

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11277-017-5086-2

Keywords

Navigation