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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
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
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)
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
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)
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
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
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
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)
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)
L. Liu, Generative adversarial network for stock price prediction. L. (2020). arXiv Preprint arXiv:2001.04548
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)
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)
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
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)
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
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)
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)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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
DOI: https://doi.org/10.1007/978-3-031-38074-7_24
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-38073-0
Online ISBN: 978-3-031-38074-7
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)