Using Deep Neural Networks for Stock Market Data Forecasting: An Effectiveness Comparative Study

  • Carlos MontenegroEmail author
  • Marco Molina
Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 1066)


Stock market value forecasting has been a challenge, because data are massive, complex, non-linear and noised. Nevertheless, some deep learning promising techniques can be reviewed in technical literature. Using S&P500 historical data as a case study, this work proposes the following approach: (i) NARX and Back Propagation Neural Networks are selected and trained for representing Index data; (ii) A sliding window technique for Index value forecasting is defined and tested; and, (iii) An effectiveness comparison is performed. The results suggest the best model for representing and forecasting S&P500 Index data. Thus, the academics can revise a new experience in data analysis; and practitioners will have an approach concerning the forecasting calculation in the stock market.


Deep learning Neural networks S&P500 index Forecasting Stock market 


  1. 1.
    Mostafa, F., Dillon, T., Chang, E.: Computational Intelligence Applications to Option Pricing, Volatility Forecasting and Value at Risk, Studies in Computational Intelligence, vol. 697. Springer, Heidelberg (2017)CrossRefGoogle Scholar
  2. 2.
    Fang, Y.: Feature selection, deep neural network, and trend prediction. J. Shanghai Jiaotong Univ. (Sci.) 23(2), 297–307 (2018)CrossRefGoogle Scholar
  3. 3.
    Zheng, X., Chen, B.: Stock Market Modeling and Forecasting. LNCIS, vol. 442, p. 1–11. Springer, London (2013)CrossRefGoogle Scholar
  4. 4.
    Olden, M.: Predicting stocks with machine learning (2016)Google Scholar
  5. 5.
    Qian, X.: Financial series prediction: comparison between precision of time series models and machine learning methods (2017)Google Scholar
  6. 6.
    Banik, S., Khan, A.: Forecasting US NASDAQ stock index values using hybrid forecasting systems. In: 18th International Conference on Computer and Information Technology (ICCIT) (2015)Google Scholar
  7. 7.
    Cao, Z., Wang, L., Melo, G.: Multiple-weight recurrent neural networks. In: Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17) (2017)Google Scholar
  8. 8.
    Singh, R., Srivastava, S.: Stock prediction using deep learning. Multimedia Tools Appl. 76, 18569–18584 (2017)CrossRefGoogle Scholar
  9. 9.
    Yong, B., Rahim, M., Abdullah, A.: A stock market trading system using deep neural network. In: Mohamed Ali, M.S., et al. (eds.): AsiaSim 2017, Part I, Singapore (2017)Google Scholar
  10. 10.
    Yang, B., Gong, Z., Yang, W.: Stock market index prediction using deep neural network ensemble. In: Proceedings of the 36th Chinese Control Conference, Dalian (2017)Google Scholar
  11. 11.
    Ma, J., Yu, M., Fong, S., Ono, K., Sage, E., Demchak, B., Sharan, R., Ideker, T.: Using deep learning to model the hierarchical structure and function of a cell. Nat. Methods 15, 1–12 (2018)CrossRefGoogle Scholar
  12. 12.
    Abiodun, O., Jantan, A., Omolara, A.E., Dada, K., Mohamed, N.A., Arshad, H.: State-of-the-art in artificial neural network applications: a survey. Heliyon 4(e00938), 1–41 (2018)Google Scholar
  13. 13.
    Gavrishchaka, V., Yang, Z., Miao, R., Senyukova, O.: Advantages of hybrid deep learning frameworks in applications with limited data. Int. J. Mach. Learn. Comput. 8(6), 549–558 (2018)Google Scholar
  14. 14.
    Prastyo, A., Junaedi, D., Sulistiyo, M.: Stock price forecasting using artificial neural network. In: Fifth International Conference on Information and Communication Technology (ICoICT) (2017)Google Scholar
  15. 15.
    Addo, P., Guegan, D., Hassani, B.: Credit risk analysis using machine and deep learning models. Documents de travail du Centre d’Economie de la Sorbonne 2018.03 (2018)Google Scholar
  16. 16.
    Fischer, T., Krauss, C.: Deep learning with long short-term memory networks. FAU Discussion Papers in Economics, No. 11/2017, Friedrich-Alexander-Universität Erlangen-Nürnberg, Institute for Economics, Erlangen (2017)Google Scholar
  17. 17.
    Abdou, H.: Prediction of financial strength ratings using machine learning and conventional techniques. Invest. Manag. Financ. Innov. 14(4), 194–211 (2017)CrossRefGoogle Scholar
  18. 18.
    Edet, S.: Recurrent neural networks in forecasting S&P 500 Index, 12 July 2017. SSRN: (2017)
  19. 19.
    Unadkat, S., Ciocoiu, M., Medsker, L.: Introduction in Recurrent Neural Networks. Design and Applications. CRC Press, Boca Raton (2001)Google Scholar
  20. 20.
    Urban, G., Subrahmanya, N., Baldi, P.: Inner and outer recursive neural networks for chemoinformatics applications. J. Chem. Inf. Model. 58, 1–13 (2018)CrossRefGoogle Scholar
  21. 21.
    Cook, T., Hall, A.: Macroeconomic Indicator Forecasting with Deep Neural Networks (2017)Google Scholar
  22. 22.
    Siegelmann, H., Horne, B., Lee, C.: Computational capabilities of recurrent NARX neural networks. IEEE Trans. Syst. Man Cybern. 27(2), 208–215 (1997)CrossRefGoogle Scholar
  23. 23.
    Diaconescu, E.: The use of NARX neural networks to predict chaotic time series. Wseas Trans. Comput. Res. 3(3), 182–191 (2008)Google Scholar
  24. 24.
    Abe, M., Nakayama, H.: Deep learning for forecasting stock returns in the cross-section (2017)Google Scholar
  25. 25.
    Moghaddama, A., Moghaddamb, M., Esfandyaric, M.: Stock market index prediction using the artificial neural network. J. Econ. Financ. Adm. Sci. 21, 89–93 (2016)Google Scholar
  26. 26.
    Barnard, E., Wessels, L.: Extrapolation and interpolation in neural network classifiers. IEEE Control Syst. Mag. 12(5), 50–53 (1992)CrossRefGoogle Scholar
  27. 27.
    Haley, P., Soloway, D.: Extrapolation limitations of multilayer feedforward neural networks. In: IJCNN International Joint Conference on Neural Networks, Baltimore (1992)Google Scholar
  28. 28.
    Pektas, A., Cigizoglu, H.: Investigating the extrapolation performance of neural network models in suspended sediment data. Hydrol. Sci. J. 62(10), 1694–1703 (2017)CrossRefGoogle Scholar
  29. 29.
    Hettiarachchi, P., Hall, M., Minns, A.: The extrapolation of artificial neural networks for the modeling of rainfall-runoff relationships. J. Hydroinformatics 7(4), 291–296 (2005)CrossRefGoogle Scholar
  30. 30.
    MathWorks, Neural Network Toolbox™. User’s Guide. R2014a, The MathWorks, Inc. (2014)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2020

Authors and Affiliations

  1. 1.Escuela Politécnica NacionalQuitoEcuador

Personalised recommendations