Skip to main content
Log in

Forecasting significant stock price changes using neural networks

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

Stock price prediction is a rich research topic that has attracted interest from various areas of science. The recent success of machine learning in speech and image recognition has prompted researchers to apply these methods to asset price prediction. The majority of literature has been devoted to predicting either the actual asset price or the direction of price movement. In this paper, we study a hitherto little explored question of predicting significant changes in stock price based on previous changes using machine learning algorithms. We are particularly interested in the performance of neural network classifiers in the given context. To this end, we construct and test three neural network models including multilayer perceptron, convolutional net, and long short-term memory net. As benchmark models, we use random forest and relative strength index methods. The models are tested using 10-year daily stock price data of four major US public companies. Test results show that predicting significant changes in stock price can be accomplished with a high degree of accuracy. In particular, we obtain substantially better results than similar studies that forecast the direction of price change.

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

(Source: http://colah.github.io/posts/2015-08-Understanding-LSTMs/)

Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

References

  1. Agustini WF, Affianti IR, Putri ER (2018) Stock price prediction using geometric Brownian motion. J Phys Conf Ser 974(1):012047

    Article  Google Scholar 

  2. Arpit D, Jastrzebski S, Ballas N, Krueger D, Bengio E, Kanwal MS, Lacoste-Julien S (2017) A closer look at memorization in deep networks. In: Proceedings of the 34th international conference on machine learning. JMLR. org, vol 70, pp 233–242

  3. Bao W, Yue J, Rao Y (2017) A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PLoS ONE 12(7)

  4. Borovkova S, Tsiamas I (2019) An ensemble of LSTM neural networks for high-frequency stock market classification. J Forecast 38(6):600–619

    Article  MathSciNet  Google Scholar 

  5. Breiman L (2001) Random forests. Mach Learn 45(1):5–32

    Article  Google Scholar 

  6. Chatzis SP, Siakoulis V, Petropoulos A, Stavroulakis E, Vlachogiannakis N (2018) Forecasting stock market crisis events using deep and statistical machine learning techniques. Expert Syst Appl 112:353–371

    Article  Google Scholar 

  7. Chen K, Zhou Y, Dai F (2015) A LSTM-based method for stock returns prediction: a case study of China stock market. In: 2015 IEEE international conference on big data (big data). IEEE, pp 2823–2824

  8. Dudek G (2016) Multilayer perceptron for GEFCom2014 probabilistic electricity price forecasting. Int J Forecast 32(3):1057–1060

    Article  Google Scholar 

  9. Fama EF, French KR (1988) Permanent and temporary components of stock prices. J Polit Econ 96(2):246–273

    Article  Google Scholar 

  10. Fischer T, Krauss C (2018) Deep learning with long short-term memory networks for financial market predictions. Eur J Oper Res 270(2):654–669

    Article  MathSciNet  Google Scholar 

  11. De Fortuny EJ, De Smedt T, Martens D, Daelemans W (2014) Evaluating and understanding text-based stock price prediction models. Inf Process Manag 50(2):426–441

    Article  Google Scholar 

  12. Gergaud O, Ziemba WT (2012) Great investors: their methods, results, and evaluation. J Portf Manag 38(4):128–147

    Article  Google Scholar 

  13. Guresen E, Kayakutlu G, Daim TU (2011) Using artificial neural network models in stock market index prediction. Expert Syst Appl 38(8):10389–10397

    Article  Google Scholar 

  14. Gurrib I, Kamalov F (2019) The implementation of an adjusted relative strength index model in foreign currency and energy markets of emerging and developed economies. Macroecon Finance Emerg Mark Econ 12(2):105–123

    Google Scholar 

  15. He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp 770–778

  16. Heaton JB, Polson NG, Witte JH (2017) Deep learning for finance: deep portfolios. Appl Stoch Models Bus Ind 33(1):3–12

    Article  MathSciNet  Google Scholar 

  17. Kamalov F (2020) Kernel density estimation based sampling for imbalanced class distribution. Inf Sci 512:1192–1201

    Article  MathSciNet  Google Scholar 

  18. Karathanasopoulos A, Theofilatos KA, Sermpinis G, Dunis C, Mitra S, Stasinakis C (2016) Stock market prediction using evolutionary support vector machines: an application to the ASE20 index. Eur J Finance 22(12):1145–1163

    Article  Google Scholar 

  19. Kim HY, Won CH (2018) Forecasting the volatility of stock price index: a hybrid model integrating LSTM with multiple GARCH-type models. Expert Syst Appl 103:25–37

    Article  Google Scholar 

  20. Krizhevsky A, Sutskever I, Hinton GE (2012) Imagenet classification with deep convolutional neural networks. In: Advances in neural information processing systems. pp 1097–1105

  21. LeCun Y, Bottou L, Bengio Y, Haffner P (1998) Gradient-based learning applied to document recognition. Proc IEEE 86(11):2278–2324

    Article  Google Scholar 

  22. Liew JKS, Mayster B (2017) Forecasting etfs with machine learning algorithms. J Altern Invest 20(3):58–78

    Article  Google Scholar 

  23. Malkiel BG, Fama EF (1970) Efficient capital markets: a review of theory and empirical work. J Finance 25(2):383–417

    Article  Google Scholar 

  24. Nelson DM, Pereira AC, de Oliveira RA (2017) Stock market’s price movement prediction with LSTM neural networks. In: 2017 International joint conference on neural networks (IJCNN). IEEE, pp 1419–1426

  25. Nguyen TH, Shirai K, Velcin J (2015) Sentiment analysis on social media for stock movement prediction. Expert Syst Appl 42(24):9603–9611

    Article  Google Scholar 

  26. Patel J, Shah S, Thakkar P, Kotecha K (2015) Predicting stock market index using fusion of machine learning techniques. Expert Syst Appl 42(4):2162–2172

    Article  Google Scholar 

  27. Qiu J, Sun K, Rudas IJ, Gao H (2019) Command filter-based adaptive NN control for MIMO nonlinear systems with full-state constraints and actuator hysteresis. IEEE Trans Cybern 1–11

  28. Sahin U, Ozbayoglu AM (2014) TN-RSI: trend-normalized RSI indicator for stock trading systems with evolutionary computation. Procedia Comput Sci 36:240–245

    Article  Google Scholar 

  29. Szegedy C, Vanhoucke V, Ioffe S, Shlens J, Wojna Z (2016) Rethinking the inception architecture for computer vision. In :Proceedings of the IEEE conference on computer vision and pattern recognition. pp 2818–2826

  30. Sun J, Xiao K, Liu C, Zhou W, Xiong H (2019) Exploiting intra-day patterns for market shock prediction: a machine learning approach. Expert Syst Appl 127:272–281

    Article  Google Scholar 

  31. Shwartz-Ziv R, Tishby N (2017) Opening the black box of deep neural networks via information. arXiv preprint arXiv:1703.00810

  32. Thabtah F, Hammoud S, Kamalov F, Gonsalves A (2020) Data imbalance in classification: experimental evaluation. Inf Sci 513:429–441

    Article  MathSciNet  Google Scholar 

  33. Wilder JW (1978) New concepts in technical trading systems. Trend Res, p 141

  34. Xiong W, Wu L, Alleva F, Droppo J, Huang X, Stolcke A (2018, April) The Microsoft 2017 conversational speech recognition system. In: 2018 IEEE international conference on acoustics, speech and signal processing (ICASSP). IEEE, pp 5934–5938

  35. Zhang C, Bengio S, Hardt M, Recht B, Vinyals O (2016) Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Firuz Kamalov.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kamalov, F. Forecasting significant stock price changes using neural networks. Neural Comput & Applic 32, 17655–17667 (2020). https://doi.org/10.1007/s00521-020-04942-3

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-020-04942-3

Keywords

Navigation