Skip to main content
Log in

Predicting stock returns of Tehran exchange using LSTM neural network and feature engineering technique

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Prediction is defined as the expression of events that will occur in the future, before they occur, based on scientific and logical principles and rules. Due to the importance of financial markets for economic activists, prediction in this field has received much attention from scholars. Prediction of the stock market, as one of the largest financial markets can be very profitable to the predictors. The dynamic and complexity of the market has added to its appeal to researchers. To date, many researchers have reported good returns for prediction in this market using neural network methods. In this paper, we attempted to obtain better results on Tehran Stock Exchange by using their findings and by applying the Long Short-Term Memory (LSTM) deep neural network. In the area of feature engineering, we have tried to reduce the number of features using AutoEncoder-based feature selection to improve stock returns and reduce prediction error. To evaluate the proposed method, a return measure that is closer to the real world of stock trading was used. Experimental results showed that using the proposed method yielded a better output with a lower error mean.

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
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18

Similar content being viewed by others

Notes

  1. http://en.tsetmc.com

References

  1. Abdoh, T. H., Jouhare, H. (1996) The investigation of efficiency of stock price index of TSE. J Financ Res, 13(11–12).

  2. Agrawal S, Thakkar D, Soni D, Bhimani K, Patel C (2019) Stock market prediction using machine learning techniques. Int J Sci Res Comput Sci Eng Inform Technol 5(2):1099–1103

    Google Scholar 

  3. Aiken MW, Bsat M (1999) Forecasting market trends with neural networks. Inf Syst Manag 16(4):1–7

    Article  Google Scholar 

  4. Anish CM, Majhi B (2016) Hybrid nonlinear adaptive scheme for stock market prediction using feedback FLANN and factor analysis. J Korean Stat Soc 45(1):64–76

    Article  MathSciNet  Google Scholar 

  5. Asghar MZ, Rahman F, Kundi FM, Ahmad S (2019) Development of stock market trend prediction system using multiple regression. Comput Mathematic Organ Theory 25(3):271–301

    Article  Google Scholar 

  6. Chiang WC, Urban TL, Baldridge GW (1996) A neural network approach to mutual fund net asset value forecasting. Omega 24(2):205–215

    Article  Google Scholar 

  7. Cohen KJ, Maier SF, Schwartz RA, Whitcomb DK (1977) On the existence of serial correlation in an efficient securities market. Salomon Brothers Center for the Study of Financial Institutions.

  8. Egeli E, Çiçekci G, Silan F, Öztürk Ö, Harputluoğlu U, Onur A, Egeli A, Yildiz A (2003) Etiology of deafness at the Yeditepe school for the deaf in Istanbul. Int J Pediatr Otorhinolaryngol 67(5):467–471

    Article  Google Scholar 

  9. Garliauskas, A. (1999) Neural network chaos and computational algorithms of forecast in finance. In IEEE SMC'99 Conference Proceedings. 1999 IEEE International Conference on Systems, Man, and Cybernetics (Cat. No. 99CH37028) (Vol. 2, pp. 638-643). IEEE.

  10. Huang Y, Capretz LF, Ho D (2019) Neural network models for stock selection based on fundamental analysis. In 2019 IEEE Canadian Conference of Electrical and Computer Engineering (CCECE) (pp. 1-4). IEEE

  11. Jozefowicz R, Zaremba W, Sutskever I (2015) An empirical exploration of recurrent network architectures. In International conference on machine learning (pp. 2342-2350)

  12. Kadkhoda M, Rostamzadeh P, Hayati M, Serri R (2017) Predicting stock index of Tehran exchange by a new multi layer neural network. J Economic Manag Perspect 11(3):656–667

    Google Scholar 

  13. Kim KJ, Han I (2000) Genetic algorithms approach to feature discretization in artificial neural networks for the prediction of stock price index. Expert Syst Appl 19(2):125–132

    Article  Google Scholar 

  14. Lendasse A, de Bodt E, Wertz V, Verleysen M (2000) Non-linear financial time series forecasting-application to the Bel 20 stock market index. Eur J Econ Soc Syst 14(1):81–91

    Article  Google Scholar 

  15. Long W, Lu Z, Cui L (2019) Deep learning-based feature engineering for stock price movement prediction. Knowl-Based Syst 164:163–173

    Article  Google Scholar 

  16. Mohanty DK, Parida AK, Khuntia SS (2020) Financial market prediction under deep learning framework using auto encoder and kernel extreme learning machine. Appl Soft Comput:106898

  17. Naik N, Mohan BR (2019) Stock Price movements classification using machine and deep learning techniques-the case study of Indian stock market. In: International Conference on Engineering Applications of Neural Networks. Springer, Cham, pp 445–452

    Chapter  Google Scholar 

  18. Pal SS, Kar S (2019) Time series forecasting for stock market prediction through data discretization by fuzzistics and rule generation by rough set theory. Math Comput Simul 162:18–30

    Article  MathSciNet  Google Scholar 

  19. Ramezanian R, Peymanfar A, Ebrahimi SB (2019) An integrated framework of genetic network programming and multi-layer perceptron neural network for prediction of daily stock return: an application in Tehran stock exchange market. Appl Soft Comput 82:105551

    Article  Google Scholar 

  20. Singh R, Srivastava S (2017) Stock prediction using deep learning. Multimed Tools Appl 76(18):18569–18584

    Article  Google Scholar 

  21. Tehrani R, Tabrizi A, Jafari H, Sarasht D (2012) Assessing the effect of public supply of stocks of governmental firms on stock liquidity in Tehran stock exchange. J Fin Res 13(31):23–40

    Google Scholar 

  22. Wang W (2018) A big data framework for stock price forecasting using fuzzy time series. Multimed Tools Appl 77(8):10123–10134

    Article  Google Scholar 

  23. Wang W, Mishra KK (2018) A novel stock trading prediction and recommendation system. Multimed Tools Appl 77(4):4203–4215

    Article  Google Scholar 

  24. Wang X, Zhang J (2020) Gait feature extraction and gait classification using two-branch CNN. Multimed Tools Appl 79(3):2917–2930

    Article  Google Scholar 

  25. Wong KS, Li H, Chan YL, Ahuja A, Lam WW, Wong A, Kay R (2000) Use of transcranial Doppler ultrasound to predict outcome in patients with intracranial large-artery occlusive disease. Stroke 31(11):2641–2647

    Article  Google Scholar 

  26. Yu P, Yan X (2020) Stock price prediction based on deep neural networks. Neural Comput & Applic 32(6):1609–1628

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sina Dami.

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

Dami, S., Esterabi, M. Predicting stock returns of Tehran exchange using LSTM neural network and feature engineering technique. Multimed Tools Appl 80, 19947–19970 (2021). https://doi.org/10.1007/s11042-021-10778-3

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-021-10778-3

Keywords

Navigation