Generative Adversarial Network (GAN) and Enhanced Root Mean Square Error (ERMSE): Deep Learning for Stock Price Movement Prediction

Ashish Kumar,Abeer Alsadoon,P. W. C. Prasad,Salma Abdullah,Tarik A. Rashid,Duong Thu Hang Pham,Tran Quoc Vinh Nguyen
DOI: https://doi.org/10.1007/s11042-021-11670-w
2021-12-01
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 secs 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.
Statistical Finance,Machine Learning,Neural and Evolutionary Computing
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the accuracy of stock price trend prediction and the minimization of prediction error loss in the financial field. Specifically, the paper points out that stock prices contain complex, incomplete and ambiguous information, which makes it extremely difficult to predict their development trends. Traditional prediction methods have limitations when dealing with such non - linear and highly time - dependent data. Therefore, this paper proposes a deep - learning architecture based on Generative Adversarial Networks (GAN) and Enhanced Root Mean Square Error (ERMSE), aiming to improve the accuracy of stock price prediction and reduce prediction error loss. ### Main Objectives: 1. **Improve Prediction Accuracy**: By using GAN combined with LSTM (generator) and CNN (discriminator), it is expected to predict the trend of stock prices more accurately. 2. **Reduce Prediction Error**: By optimizing the loss function, especially the Direction Prediction Loss (DPL) and the Root Mean Square Error (RMSE), to improve the prediction performance of the model. 3. **Reduce Processing Time**: By optimizing the model structure and algorithm, reduce the computing time required in the prediction process. ### Method Overview: - **Data Collection**: Obtain stock price data from sources such as Yahoo Finance. - **Pre - processing**: Use wavelet denoising technology to denoise the data, and then expand the dimension of the price data through the Phase - space Reconstruction (PSR) method. - **Prediction Model**: Adopt Generative Adversarial Networks (GAN), where the generator is based on the LSTM model and the discriminator is based on the CNN model. The generator generates new instances based on historical data, and the discriminator determines whether these data are generated by the generator or are real. - **Evaluation Metrics**: - **Directional Accuracy (DA)**: Measures the model's ability to predict trends. - **Root Mean Square Relative Error (RMSRE)**: Measures the relative error between the predicted value and the actual value. - **Modified Root Mean Square Error (MRMSE)**: A further optimized error measurement method. ### Formula Summary: - **Directional Accuracy (DA)**: \[ \text{DA}=\frac{100}{T_0}\sum_{t = 1}^{T_0}I_t,\quad\text{where}\quad I_t=\begin{cases} 1, &\text{if }(Y_{t + 1}-Y_t)(Y'_{t + 1}-Y'_t)>0\\ 0, &\text{otherwise} \end{cases} \] - **Root Mean Square Relative Error (RMSRE)**: \[ \text{RMSRE}=\sqrt{\frac{1}{T_0}\sum_{t = 1}^{T_0}\left(\frac{Y'_{t + 1}-Y_{t + 1}}{Y_{t + 1}}\right)^2} \] - **Modified Root Mean Square Error (MRMSE)**: \[ \text{MRMSE}=\sqrt{\frac{1}{T}\sum_{t = 1}^{T}\left(\frac{Y'_{t + 1}-Y_{t + 1}}{Y_{t + 1}}\right)^2} \] Through the above methods and indicators, the paper aims to provide a more accurate and efficient stock price prediction model to help investors make better investment decisions.