Skip to main content

Using Generative Adversarial Network to Forecast Stock Price

  • Conference paper
  • First Online:
Recent Advancements in Computational Finance and Business Analytics (CFBA 2023)

Part of the book series: Learning and Analytics in Intelligent Systems ((LAIS,volume 32))

  • 186 Accesses

Abstract

Stock price forecasting is one of the hottest research fields in recent years because it can help policymakers and investors make appropriate decisions. The method of deep learning can make the prediction more accurate. Therefore, in this paper, a Generative Adversarial Network (GAN)model is proposed for the prediction of stock price. In this model, the Gated Recurrent Units (GRU) are used as the generator to predict the future stock price by training historical data. Convolutional neural networks (CNN) are used as discriminators to distinguish real data from predicted data. We selected Apple's stock price as the research object, extracted the highest price, lowest price, opening price, S&P 500 index, and other indicators as characteristics, and added the feature of the news index into the research, which can increase the accuracy of the forecast. Finally, the accuracy of the prediction results was determined by calculating the value of RMSE.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover 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

Institutional subscriptions

References

  1. L. Alzubaidi, J. Zhang, A.J. Humaidi, A. Al-Dujaili, Y. Duan, O. Al-Shamma, J. Santamaría, M.A. Fadhel, M. Al-Amidie, L. Farhan, Review of deep learning: concepts, CNN architectures, challenges, applications, future directions. J. Big Data, 8(1), (2021). https://doi.org/10.1186/s40537-021-00444-8

  2. S. Bahng, I. Oh, J.G. Kim, G.K. Choo, Stock price prediction using conditional generative adversarial networks. Proc. G-IoT 2018, 13–17 (2018)

    Google Scholar 

  3. H. Banaee, M. Ahmed, A. Loutfi, Data Mining for wearable sensors in health monitoring systems: a review of recent trends and challenges. Sensors 13(12), 17472–17500 (2013). https://doi.org/10.3390/s131217472

    Article  Google Scholar 

  4. Y. Cho, B. Choi, Neural network architecture for predicting stock price index by combining chart pattern recognition and fundamental analysis, in Proceedings of the 25th KIPS computer society conference (2018)

    Google Scholar 

  5. H.-W. Dong, W.-Y. Hsiao, L-C. Yang, Y.-H. Yang, MuseGAN: Multi-track sequential generative adversarial networks for symbolic music generation and accompaniment. in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 32, issue no 1 (2018). https://doi.org/10.1609/aaai.v32i1.11312

  6. A. Esteva, K. Chou, S. Yeung, N. Naik, A. Madani, A. Mottaghi, Y. Liu, E. Topol, J. Dean, R. Socher, Deep learning-enabled medical computer vision. Npj Digit. Med., 4(1), (2021). https://doi.org/10.1038/s41746-020-00376-2

  7. I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A.C. Courville, Y. Bengio, Generative adversarial nets. in Advances in neural information processing systems (2014), pp. 2672–2680

    Google Scholar 

  8. S. Kiranyaz, T. Ince, G. Turan, A. Weitzenfeld, S. Ince, M. Gabbouj, Stock market analysis using generative adversarial networks for fuzzy time series. Inf. Sci. 515, 214–227 (2020)

    Google Scholar 

  9. W. Li, Q. Zhang, J. Deng, Q. Tang, Utilize big data mining and machine learning methods to detect bank loan fraud based on illegal transactions. Int. Conf. Big Data Smart Comput., 125–129 (2019)

    Google Scholar 

  10. L. Liu, Generative adversarial network for stock price prediction. L. (2020). arXiv Preprint arXiv:2001.04548

  11. S. Otomo, G. Kawabe, Y. Sayama, H. Asama, M. Hatanaka, K. Tsuda, T. Kagawa, Explaining the distributional changes in Japan’s coastal fishing villages causing price variation of fish. PLoS ONE 15(5), 1–18 (2020)

    Google Scholar 

  12. K. Sun, Y. Yuan, S. Ji, H. An, The application of big data technology in data-driven decision-making in financial systems. Sci. Rep. 7(1), 10556 (2017)

    Google Scholar 

  13. W. Y. Wang, S. Singh, J. Li, Deep Adversarial learning for NLP. ACLWeb. Association for Computational Linguistics, (2019) https://doi.org/10.18653/v1/N19-5001

  14. G. Wang, T. Wang, Y. Wen, Y. Gu, Y. Chang, Deep learning-based stock price prediction: a generative adversarial imitation learning approach. Sci. China Inf. Sci., 1–15 (2019)

    Google Scholar 

  15. Z. Zheng, L. Zheng, Y. Yang, Unlabeled samples generated by GAN improve the person re-identification baseline in vitro (2017). Openaccess.thecvf.com. https://openaccess.thecvf.com/content_iccv_2017/html/Zheng_Unlabeled_Samples_Generated_ICCV_2017_paper.html

  16. H.T. Zhu, J.F. Yang, K. Zhao, X. Xie, An artificial intelligence-based stock investment decision support system. J. Ambient. Intell. Humaniz. Comput. 9(4), 1029–1038 (2018)

    Google Scholar 

  17. I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, Y. Bengio, Generative adversarial networks. Commun. ACM 63(11), 139–144 (2020)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Menghan Yu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Wang, T., Yu, M., Wang, P. (2023). Using Generative Adversarial Network to Forecast Stock Price. In: Gupta, R., Bartolucci, F., Katsikis, V.N., Patnaik, S. (eds) Recent Advancements in Computational Finance and Business Analytics. CFBA 2023. Learning and Analytics in Intelligent Systems, vol 32. Springer, Cham. https://doi.org/10.1007/978-3-031-38074-7_24

Download citation

Publish with us

Policies and ethics