Skip to main content

Study of Stock Return Predictions Using Recurrent Neural Networks with LSTM

  • Conference paper
  • First Online:

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1000))

Abstract

Stock price returns forecasting is challenging task for day traders to yield more returns. In the past, most of the literature was focused on machine learning algorithm to predict the stock returns. In this work, the recurrent neural network (RNN) with long short term memory (LSTM) is studied to forecast future stock returns. It has the ability to keep the memory of historical stock returns in order to forecast future stock return output. RNN with LSTM is used to store recent stock information than old related stock information. We have considered a recurrent dropout in RNN layers to avoid overfitting in the model. To accomplish the task we have calculated stock return based on stock closing prices. These stock returns are given as input to the recurrent neural network. The objective function of the prediction model is to minimize the error in the model. To conduct the experiment, data is collected from the National Stock Exchange, India (NSE). The proposed RNN with LSTM model outperforms compared to an feed forward artificial neural network.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Berutich, J.M., López, F., Luna, F., Quintana, D.: Robust technical trading strategies using GP for algorithmic portfolio selection. Expert Syst. Appl. 46, 307–315 (2016)

    Article  Google Scholar 

  2. Chourmouziadis, K., Chatzoglou, P.D.: An intelligent short term stock trading fuzzy system for assisting investors in portfolio management. Expert Syst. Appl. 43, 298–311 (2016)

    Article  Google Scholar 

  3. Enke, D., Mehdiyev, N.: Stock market prediction using a combination of stepwise regression analysis, differential evolution-based fuzzy clustering, and a fuzzy inference neural network. Intell. Autom. Soft Comput. 19(4), 636–648 (2013)

    Article  Google Scholar 

  4. Graves, A.: Generating sequences with recurrent neural networks. arxiv preprint arxiv: 1308.0850 (2013)

  5. Macedo, L.L., Godinho, P., Alves, M.J.: Mean-semivariance portfolio optimization with multiobjective evolutionary algorithms and technical analysis rules. Expert Syst. Appl. 79, 33–43 (2017)

    Article  Google Scholar 

  6. Mousavi, S., Esfahanipour, A., Zarandi, M.H.F.: A novel approach to dynamic portfolio trading system using multitree genetic programming. Knowl.-Based Syst. 66, 68–81 (2014)

    Article  Google Scholar 

  7. Nakano, M., Takahashi, A., Takahashi, S.: Generalized exponential moving average (EMA) model with particle filtering and anomaly detection. Expert Syst. Appl. 73, 187–200 (2017)

    Article  Google Scholar 

  8. Olah, C.: Understanding LSTM networks (2015)

    Google Scholar 

  9. Preis, T., Moat, H.S., Stanley, H.E.: Quantifying trading behavior in financial markets using google trends. Sci. Rep. 3, 01684 (2013)

    Article  Google Scholar 

  10. Qiu, M., Song, Y., Akagi, F.: Application of artificial neural network for the prediction of stock market returns: the case of the Japanese stock market. Chaos, Solitons Fractals 85, 1–7 (2016)

    Article  MathSciNet  Google Scholar 

  11. Rubio, A., Bermúdez, J.D., Vercher, E.: Improving stock index forecasts by using a new weighted fuzzy-trend time series method. Expert Syst. Appl. 76, 12–20 (2017)

    Article  Google Scholar 

  12. Ticknor, J.L.: A bayesian regularized artificial neural network for stock market forecasting. Expert Syst. Appl. 40(14), 5501–5506 (2013)

    Article  Google Scholar 

  13. Tsai, C.-F., Hsiao, Y.-C.: Combining multiple feature selection methods for stock prediction: union, intersection, and multi-intersection approaches. Decis. Support Syst. 50(1), 258–269 (2010)

    Article  Google Scholar 

  14. Tsai, C.-F., Lin, Y.-C., Yen, D.C., Chen, Y.-M.: Predicting stock returns by classifier ensembles. Appl. Soft Comput. 11(2), 2452–2459 (2011)

    Article  Google Scholar 

  15. Vaisla, K.S., Bhatt, A.K.: An analysis of the performance of artificial neural network technique for stock market forecasting. Int. J. Comput. Sci. Eng. 2(6), 2104–2109 (2010)

    Google Scholar 

  16. Zhang, Y., Lenan, W.: Stock market prediction of s&p 500 via combination of improved bco approach and bp neural network. Expert Syst. Appl. 36(5), 8849–8854 (2009)

    Article  Google Scholar 

  17. Zhong, X., Enke, D.: Forecasting daily stock market return using dimensionality reduction. Expert Syst. Appl. 67, 126–139 (2017)

    Article  Google Scholar 

Download references

Acknowledgment

This work is supported by the Visvesvaraya Ph.D Scheme for Electronics and IT the departments of MeitY, Government of India. The Task carried out at the Department of IT, NITK Surathkal, Mangalore, India.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nagaraj Naik .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Naik, N., Mohan, B.R. (2019). Study of Stock Return Predictions Using Recurrent Neural Networks with LSTM. In: Macintyre, J., Iliadis, L., Maglogiannis, I., Jayne, C. (eds) Engineering Applications of Neural Networks. EANN 2019. Communications in Computer and Information Science, vol 1000. Springer, Cham. https://doi.org/10.1007/978-3-030-20257-6_39

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-20257-6_39

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-20256-9

  • Online ISBN: 978-3-030-20257-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics