Skip to main content
Log in

Generative adversarial network (GAN) and enhanced root mean square error (ERMSE): deep learning for stock price movement prediction

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

Abstract

The prediction of stock price movement direction is significant in financial circles and academic. Stock price contains complex, incomplete, and fuzzy information which makes it an extremely difficult task to predict its development trend. Predicting and analysing financial data is a nonlinear, time-dependent problem. With rapid development in machine learning and deep learning, this task can be performed more effectively by a purposely designed network. This paper aims to improve prediction accuracy and minimizing forecasting error loss through deep learning architecture by using Generative Adversarial Networks. It was proposed a generic model consisting of Phase-space Reconstruction (PSR) method for reconstructing price series and Generative Adversarial Network (GAN) which is a combination of two neural networks which are Long Short-Term Memory (LSTM) as Generative model and Convolutional Neural Network (CNN) as Discriminative model for adversarial training to forecast the stock market. LSTM will generate new instances based on historical basic indicators information and then CNN will estimate whether the data is predicted by LSTM or is real. It was found that the Generative Adversarial Network (GAN) has performed well on the enhanced root mean square error to LSTM, as it was 4.35% more accurate in predicting the direction and reduced processing time and RMSE by 78 s and 0.029, respectively. This study provides a better result in the accuracy of the stock index. It seems that the proposed system concentrates on minimizing the root mean square error and processing time and improving the direction prediction accuracy, and provides a better result in the accuracy of the stock index.

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

Abbreviations

GAN:

Generative Adversarial Network

CNN:

Convolution Neural Network

RNN:

Recurrent Neural Network

LSTM:

Long Short-Term Memory

RMSE:

Root Mean Square Error

1D:

One Dimensional

PSR:

Phase-space Reconstruction

D:

discriminative model

References

  1. Arora M, Kansal V (2019) Character level embedding with deep convolutional neural network for text normalization of unstructured data for Twitter sentiment analysis. Soc Netw Anal Min 9(1):1–14

    Article  Google Scholar 

  2. Derakhshan A, Beigy H (2019) Sentiment analysis on stock social media for stock price movement prediction. Eng Appl Artif Intell 85:569–578

    Article  Google Scholar 

  3. Göçken M, Özçalıcı M, Boru A, Dosdoğru AT (2019) Stock price prediction using hybrid soft computing models incorporating parameter tuning and input variable selection. Neural Comput Appl 31(2):577–592

    Article  Google Scholar 

  4. Hoseinzade E, Haratizadeh S (2019) CNNpred: CNN-based stock market prediction using a diverse set of variables. Expert Syst Appl 129:273–285

    Article  Google Scholar 

  5. Jeon S, Hong B, Chang V (2018) Pattern graph tracking-based stock price prediction using big data. Future Gener Comput Syst 80:171–187

    Article  Google Scholar 

  6. Li X, Xie H, Wang R, Cai Y, Cao J, Wang F, Min H, Deng X (2016) Empirical analysis: stock market prediction via extreme learning machine. Neural Comput Appl 27(1):67–78

    Article  Google Scholar 

  7. 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 

  8. Ning Y, Wah LC, Erdan L (2018) Stock price prediction based on error correction model and granger casuality test. Clust Comput:1–10

  9. Sermpinis G, Karathanasopolulos A, Rosillo R, Fuente DDL (2019) Neural networks in financial trading. Ann Oper Res:1–16

  10. Suryoday B, Kar S, Saha S, Khaidem L, Dey SR (2019) Predicting the direction of stock market prices using tree-based classifiers. North Am J Econ Finance 47:552–567

    Article  Google Scholar 

  11. Werner KR, Kevin MV (2018) A stock market risk forecasting model through integration of switching regime, ANFIS and GARCH techniques. Appl Soft Comput 67:106–116

    Article  Google Scholar 

  12. Yoojeong S, Jae L, Jongwoo L (2019) A study on novel filtering and relationship between input-features and target-vectors in a deep learning model for stock price prediction. Appl Intell 49(3):897–911

    Article  Google Scholar 

  13. Yu P, Yan X (2019) Stock price prediction based on deep neural networks. Neural Comput Appl:1–20

  14. Zhang X, Li Y, Wang S, Fang B, Yu P (2018) Enhancing stock market prediction with extended coupled hidden Markov model over multi-sourced data. Knowl Inf Syst:1–10

  15. Zhou X, Pan Z, Hu G, Tang S, Zhao C (2018) Stock market prediction on high-frequency data using generative adversarial nets. Math Probl Eng 2018:1–11

    Google Scholar 

  16. Zhou Z, Xu K, Jichang Z (2018) Tales of emotion and stock in China: volatility, causality and prediction. World Wide Web 21(4):1093–1116

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Abeer Alsadoon.

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

Kumar, A., Alsadoon, A., Prasad, P.W.C. et al. Generative adversarial network (GAN) and enhanced root mean square error (ERMSE): deep learning for stock price movement prediction. Multimed Tools Appl 81, 3995–4013 (2022). https://doi.org/10.1007/s11042-021-11670-w

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-021-11670-w

Keywords

Navigation