Next Article in Journal
Dataset: Traffic Images Captured from UAVs for Use in Training Machine Vision Algorithms for Traffic Management
Next Article in Special Issue
A Dataset for the Vietnamese Banking System (2002–2021)
Previous Article in Journal
Measurements of User and Sensor Data from the Internet of Things (IoT) Devices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Hybrid Stock Price Prediction Model Based on PRE and Deep Neural Network

1
Department of Computer Science and Engineering, Presidency University, Bangalore 560065, India
2
Department of Computer Science and Engineering, GITAM School of Technology, GITAM (Deemed to Be University), Bangalore 561203, India
3
Nitte Meenakshi Institute of Technology, Bangalore 560064, India
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Submission received: 22 March 2022 / Revised: 14 April 2022 / Accepted: 17 April 2022 / Published: 20 April 2022
(This article belongs to the Special Issue Second Edition of Data Analysis for Financial Markets)

Abstract

:
Stock prices are volatile due to different factors that are involved in the stock market, such as geopolitical tension, company earnings, and commodity prices, affecting stock price. Sometimes stock prices react to domestic uncertainty such as reserve bank policy, government policy, inflation, and global market uncertainty. The volatility estimation of stock is one of the challenging tasks for traders. Accurate prediction of stock price helps investors to reduce the risk in portfolio or investment. Stock prices are nonlinear. To deal with nonlinearity in data, we propose a hybrid stock prediction model using the prediction rule ensembles (PRE) technique and deep neural network (DNN). First, stock technical indicators are considered to identify the uptrend in stock prices. We considered moving average technical indicators: moving average 20 days, moving average 50 days, and moving average 200 days. Second, using the PRE technique-computed different rules for stock prediction, we selected the rules with the lowest root mean square error (RMSE) score. Third, the three-layer DNN is considered for stock prediction. We have fine-tuned the hyperparameters of DNN, such as the number of layers, learning rate, neurons, and number of epochs in the model. Fourth, the average results of the PRE and DNN prediction model are combined. The hybrid stock prediction model results are computed using the mean absolute error (MAE) and RMSE metric. The performance of the hybrid stock prediction model is better than the single prediction model, namely DNN and ANN, with a 5% to 7% improvement in RMSE score. The Indian stock price data are considered for the work.

1. Introduction

The financial stock market is dynamic [1,2]. Stock price trading is riskier due to high volatility [3]. The volatility estimation in the financial market is a challenging task. The financial market is volatile due to many internal and external factors [4]. Internal factors such as company earnings, political issues, and reserve bank policy affect stock prices. External factors, such as geopolitical tension, e.g., Russia and Ukraine, COVID-19, oil prices, and commodity market ups and downs, impact stock prices. Due to high volatility and nonlinearity in stock prices, an accurate stock predicting model is one of the hot research fields. An accurate prediction model helps investors to gain profits from the financial market.
In recent years, technical features [5] and fundamentals data [6] have been considered to identify the trend in stock prices. Here, trends can be classified as uptrend and downtrend in stock prices. Technical indicators are computed based on a mathematical formula [7]. These technical indicators are helpful to identify the trends in stock prices. Therefore, in this work, we considered technical indicators to identify the trends in stock prices.
Patel et al. [8] considered technical indicators to identify the trend in stock price. The study stated that if technical indicator relative strength index (RSI) value is greater than 70, the trend is down due to overbought stock prices. If technical indicator RSI value is less than 30, the trend is up due to oversold stock prices. In recent years, technical indicators were considered to identify the trend in stock prices. These technical indicators are trained in machine learning models to predict the future stock prices [9]. Technical indicators such as moving average, Bollinger bands, RSI, and MACD are commonly used.
An artificial-neural-network (ANN) [10]-based model was considered for stock price forecasting. ANN was inspired by a biological neural network, where each neuron accepts the input as stock price data and performs the task. The output of neurons is computed using nonlinear functions such as sigmoid and rectifier units. A support-vector-machine (SVM) [11]-based model was considered for stock price prediction. SVM is the most popular method for stock price classification. Stock prices are classified into two classes. One is up class, and the second is down class. In SVM, stock price data are constructed as a stock(s)-dimensional vector, and these dimensions are separated using S-1 using the hyperplane. Since stock price data are nonlinear to classify classes, kernel tricks were used, such as sigmoid and Gaussian radial function. A random-forest (RF) [12]-based model was considered for stock prediction and classification. Stock price data are considered to construct the multiple decision trees; the decision tree aims to reduce variance in stock data. The average prediction of each decision tree is computed and selects the decision tree which has the lowest RMSE score.
A hybrid neural network VMD-LSTM [13] was considered to predict stock price indices. The VMD algorithm divides the original time series into subseries, and LSTM builds a training and prediction model for each subseries. The sum of all estimated subseries results was combined and considered as final prediction results. Jing et al. [14] proposed a hybrid model that combines deep learning and sentiment analysis to forecast the Chinese stock market. The hybrid model integrates LSTM neural networks for stock prediction with convolutional neural networks for sentiment analysis. Senapati et al. [15] proposed a hybrid model for stock price prediction using ADALINE neural networks and modified particle swarm optimization (PSO). It uses PSO to optimize and update weights of ADALINE neural networks. Kim et al. [16] proposed a hybrid long short-term memory (LSTM) model that combines LSTM and GARCH-type models to forecast stock price volatility. The LSTM model is an RNN variation; it creates a self-loop to generate a gradient path that can flow continuously for a long time. Each iteration changes the self-weight loops, preventing gradient vanishing when the RNN model updates the weights. The hybrid LSTM model performance was better than GARCH models. DNN [17,18] can solve nonlinear problems better than conventional machine learning techniques. A DNN-based prediction model is developed using the PSR approach and long- and short-term memory networks (LSTMs) for DL, and it is used to predict stock price movements. Sedighi et al. [19] proposed a hybrid stock prediction model by combining ABC-ANFIS-SVM. To optimize the technical indicators, they considered the ABC-ANFIS combination in the SVM forecasting model.
Hu et al. [20] proposed combined deep learning and the GARCH model to predict copper price volatility. One ANN is connected with two RNNs (LSTM and BLSTM) to create hybrid neural networks. Zhong et al. [21] proposed a DNN-based method for stock price prediction. The performance of DNN depends on the data representation format and the network structure, activation function, and model parameters. A 16 support vector regression model is considered for stock forecasting. The grid search method was used to find the optimal kernel function and fine-tune the SVM parameters to improve the model prediction accuracy.
Most of the work considered the hybrid models for stock price prediction to deal with the nonlinear data and improve the prediction accuracy in the model. The combination of PRE and DNN methods has not been studied in the literature. The reason is that both models are very robust for nonlinear data.
The contribution of this work is as follows:
(1)
First, stock technical indicators are considered to identify the uptrend in stock prices. We consider moving average technical indicators: moving average 20 days, moving average 50 days, and moving average 200 days.
(2)
We propose a hybrid stock prediction model using the PRE and DNN.
The paper’s organization is as follows; Section 2 describes the literature review, and Section 3 data specification. Section 4 presents the moving average to identify an uptrend in stock price. Section 5 presents a hybrid stock price prediction model. Section 6 describes the results, and Section 7 concludes the work.

2. Literature Reviews

A CNN-BiLSTM-AM [22] approach was considered to forecast the stock price for the next day based on historical stock price data. Opening prices, highest and lowest prices, closing prices, volume, and turnover are all inputs that are used in this method. Ups and downs are also taken into account. The input data is processed by a convolutional neural network (CNN). The extracted feature data is learned and predicted using BiLSTM. Using AM, one could see how various periods in a time series dataset impact prediction results. Experiment results using CNN-BiLSTM-AM were the most accurate and had the best prediction accuracy compared to the other models.
ANN [23] was used to forecast the stock’s closing price for the next day, and RF was also used for comparison analysis. Based on RMSE, MAPE, and MBE values, it is also evident that ANN outperforms RF when it comes to stock price forecasting. Experimental results demonstrate that ANN performed better than other methods with RMSE (0.42), MAPE (0.77), and MBE (0.013).
GWO-optimized ENN [24] was considered to improve stock forecasting accuracy. The proposed model used the daily stock prices of eight businesses from the NASDAQ and the New York Stock Exchange to calculate daily returns. The ENN model was optimized by using the GWO algorithm. Results show that GWO-ENN outperforms the optimized models such as PSO-ANN and FPA-ANN.
The combination model ARI-MA-LS-SVM [25] was used in this work to forecast stock prices for the domestic stock market. The input variables are reduced in dimension with the principal component analysis method. Due to this, the model’s training time was lowered.
K-NN regression [26] was used to forecast the stock prices. The stock prices of various companies were studied and various technical indicators considered to predict the future movements of stock prices. The experimental results performed better compared to other machine learning approaches.
Zhang et al. proposed [27] an ensemble machine learning model called SVR-ENANFIS for stock forecasting by merging support vector regression with ensemble adaptive neuro-fuzzy inference. ANFIS is the first two-stage model to deal with deviations between technical indicator forecast results on the (t + n)th day and the actual value on that day, which is included. Furthermore, GA estimates the optimal input length and the optimal SVR hyperparameters to improve technical indicator prediction accuracy.
Xu et al. [28] considered the clustering method in the two-stage prediction model. It consists of technical indicators and stock price data. A two-stage prediction model employed an ensemble learning algorithm with clustering techniques. The results of the experiments reveal that for financial stock forecasting, the hybrid prediction model has the best overall prediction accuracy.
A deep reinforcement learning strategy for stock transactions was implemented [29], which demonstrated the usefulness of DRL, and it helps to identify the financial strategy for stock trading. It also compared three different traditional DRL models. The DQN model had the best results when dealing with stock market strategy decision-making problems.
A DNN-based LSTM network model [17] and the PSR time series analysis approach were combined. Preprocessing involves denoising and normalizing the data. Partitioning with a temporal window was used for data structures. The different activation function was considered in the DNN model. The results are compared with the existing conventional SVR machine learning method, a deep MLP model, a deep LST model without the PSR process, and a deep LST model paired with PSR. It was found that the DNN-based LSTM model was more accurate than the others.
Prediction’s study [30] shows that the proposed feature selection method comprises feature set creation and identification of a relevant feature set, which is responsible for effective performance in stock price predictions. The initial model considered 68 technical indicators. A total of 94% accurate predictions were made using the KOSPI dataset’s expanded feature set 2, which increased accuracy by 33% from the original feature set’s accuracy of 61% and by 18% from the expanded feature set’s accuracy of 75%, which was used to replicate a benchmark study using commonly used technical indicators.
Jing et al. [14] considered a convolutional neural network model to classify the investor’s hidden attitudes from a large stock forum. The hybrid model was proposed using the LSTM neural network approach for assessing stock market technical indicators and the sentiment analysis results performance. In terms of F-measures, the sentiment analysis model was outperformed. The Shanghai Stock Exchange’s thirty equities were considered to build the prediction model (SSE). The hybrid model has a reduced MAPE value of 0.0449, outperforming the single model. Using LSTM neural networks, it was found that combining investor sentiment with technical indicators improves the accuracy of future stock price predictions. The FinALBERT [31] model has been considered for stock price classification.
Zhang et al. [32] considered technical indicators to extract the trading rules for stock price prediction. HAR-PSO-ESN-based reservoir computing was applied [3] in combination with the established HAR recurrent neural network to create a new HAR-PSO-ESN model. The ESN architecture’s hybrid model was used as the PSO metaheuristic to adapt its hyperparameters based on the HAR’s handcrafted features. In most cases, the model anticipates more accurately than other models. The related work is depicted in Table 1.

3. Data Specification

The Indian stock market [33] data are used in the experiment. The stock data contain daily stock price information such as open, high, low, close, and volume. In total, 4500 trading days are considered from 1 January 2007 to 10 October 2021. For the experiment, we considered the top nifty bank stock. The stock is Kotak, ICICI, Axis, and Yes Bank. The reason for selecting banking stock is due to high market capital. Hence, it is more volatile. The overall work is described in Figure 1. First, stock technical indicators are considered to identify the uptrend in stock prices. We considered moving average technical indicators. Second, using the PRE technique, we computed different rules for stock prediction. Third, the three-layer DNN is considered for stock prediction. Fourth, the average results of the PRE and DNN prediction model are combined. The code is released in the supplementary.

4. Stock Uptrend Identification Using Moving Average Technical Indicators

Technical indicator [34] is a popular statistical technique to identify the trend in the stock. Here, the trend can be an uptrend or downtrend. In this work, we considered moving average technical indicators to identify the trend in the stock. The advantage of moving average technical indicators is that it reduces the random behavior of the stock price. However, most of the work considered a single moving average technical indicator to identify an uptrend in the stock. Identifying the accurate uptrend in stock required the combination of moving average technical indicators for uptrend confirmation. Therefore, we considered three moving average technical indicators to identify the uptrend in the stock price. Technical indicators are computed for 20 days, 50 days, and 200 days, based on the formula of [35]. Stock trading above the 20 days, 50 days, and 200 days moving average is considered an uptrend in stock; otherwise, it is a downtrend in stock price. The uptrends of stock prices are given as input to the hybrid stock prediction model for future stock prediction.

5. Hybrid Stock Prediction Model Using Prediction Rule Ensembles and Deep Neural Network

The hybrid prediction model is the most popular method for stock price prediction, which produces superior results [36,37]. The hybrid-based prediction learning model has emerged as one of the most effective learning approaches for stock price prediction. Due to their bias in variable selection and instability [38,39] they cannot be used effectively. This means that small changes in the training data can significantly impact the final results. Therefore, to overcome instability in the prediction model, we proposed hybrid stock prediction based on PRE and DNN. A hybrid stock prediction model is depicted in Figure 2. Later, the prediction rule ensembles method and the DNN method are combined to enhance the prediction results.

5.1. Prediction Rule Ensembles

PRE is a sparse collection of rules that generate different decision trees, which is helpful for classification and regression-based problems [40]. The stock uptrend data are given as input to PRE, creating the different combinations of trees. Each prediction rule is evaluated based on logical statements, i.e., if and else conditions. Each node in a tree can be represented as 0 and 1 rule, and it is defined in Equation (1), where K represents the total number of trees, F(p) represents the prediction function, and x 0 represents the weight of the tree. We selected the decision tree with the lowest RMSE score. The different prediction rules generated by PRE methods are depicted in Figure 3, Figure 4 and Figure 5.
F ( p ) = x 0 + k K x k F k ( p )

5.2. DNN for Stock Price Prediction

DNN is most commonly used to deal with nonlinear data [17]. In the proposed work, we considered the three-layer DNN model. First is the input layer, which is composed of a set of neurons. Each neuron in the input layer represents the stock price data. Here, open price, low price, high price, and volume price, technical indicator features, are given as input to the first layer of the DNN model. The weight is adjusted to input data for learning purposes. In Equation (2), W denotes weight, B denotes bias, H is the hidden layer, and  δ denotes the activation function. The outcome of each neuron in the first layer is computed using the activation function; this acts as a nonlinear function in the model. The second layer is the hidden layer, and the third layer is the output layer. The activation function is used to activate the neurons in the DNN. The rectifier linear unit and the hyperbolic tangent (tanh) are two activation functions that are considered in DNN architecture. Backpropagation computes the gradient of the loss function for the DNN model and adjusts weight accordingly. We have fine-tuned the hyperparameters manually for better accuracy, such as the number of layers, learning rate, neurons, and number of epochs in the model.
The hybrid stock price prediction algorithm steps are described in Algorithm 1.
Algorithm 1 Hybrid stock prediction model using PRE and DNN.
1:
Input stock price data from NSE portal.
2:
Compute the Moving Average for 20, 50 and 200 days of stock price.
3:
Moving Average = Stock Price1 + Stock Price2…Stock PriceN/Total Number of Days
4:
Combine the moving average to identify the uptrend in stock price.
5:
if (Stock Price > 20 Days & Stock Price > 50 Days & Stock Price> 200 Days)
6:
then Uptrend in Stock Price
7:
Else
8:
Down Trend in Stock Price
9:
Uptrend Stock Price are given input to PRE method.
10:
Rule are generated using prediction rule ensembles method.
11:
F ( p ) = x 0 + k K x k F k ( p )
12:
Selected the decision tree with the lowest RMSE score.
13:
Later, Uptrend stock data given input to the DNN.
14:
Constructed Three Layer DNN model.
15:
Compute H = δ ( W H 1 + B )
16:
Fine-tune the hyperparameters of the DNN method, such as the number of layers, learning rate, neurons, and number epoch in the model.
17:
Average results of the PRE and DNN prediction model are combined.
18:
Validate the results using 10 cross fold validation.
19:
Evaluate the performance of model using RMSE and MAE metric.
H = δ ( W H 1 + B )

6. Results

For the experimental work, we considered Indian stock exchange data which is publicly available at https://www.nseindia.com/ (accessed on 16 April 2022). The datasets comprise daily stock price data for 4500 trading days covering from 1 January 2007 through 10 October 2021. Stock technical indicators are considered to identify the uptrend in stock prices using moving average technical indicators. The proposed hybrid stock prediction model is evaluated using MAE and RMSE, an equations are defined below (3) and (4). The observed value is represented by the variable y i . The predicted value is defined by variable x i , while the number of elements in the dataset is represented by the variable n. To obtain the best results, we fine-tuned the hyperparameters of DNN, and they are depicted in Table 2. The training loss and testing loss are computed, and they are depicted in Figure 6, Figure 7 and Figure 8. The objective of the loss function is to reduce the error rate in the model; for that, we increased the number of epochs, and we found that after 450 epochs, the model starts to converge. The proposed hybrid stock price prediction model performed better than DNN and ANN models, and it is depicted in Table 3.
m a e = ( 1 n ) i = 1 n y i x i
r m s e = ( 1 n ) i = 1 n ( y i x i ) 2

7. Conclusions

Stock price forecasting is challenging due to noisy, dynamic, and nonlinear data in the stock market. The accurate prediction of stock prices helps investors increase profits in the financial market. Identifying the trend in the market is a challenging task. We proposed a hybrid stock prediction model by combining the PRE and DNN models. The proposed model overcomes the instability in the prediction model. We have fine-tuned the DNN hyperparameters manually for better accuracy, such as the model’s number of layers, learning rate, neurons, and number of epochs. The hybrid stock price model is evaluated using the metrics MAE and RMSE. The proposed hybrid stock prediction model results are compared with the DNN and ANN. The performance of the proposed model’s RMSE score is 5% to 7% lower than the existing DNN and ANN models. However, we considered limited technical indicators in the hybrid model. Exploring the different technical indicators alongside candlestick pattern identification can be future work.

Supplementary Materials

The code for the reducibility of credibility of the work is released and available at https://0-www-mdpi-com.brum.beds.ac.uk/article/10.3390/data7050051/s1.

Author Contributions

Methodology, S.; Validation, S.; Conceptualization, B.C.M., Supervision, B.C.M.; Conceptualization, M.G.K., Supervision, M.G.K.; Conceptualization, N.N.; Validation, N.N. All authors have read and agreed to the published version of the manuscript.

Funding

We would like to thank Presidency University Bangalore, GITAM University Bangalore Campus, and Nitte Meenakshi Institute of Technology, Bangalore, for their support for to carry the Research Work.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data available at https://www.nseindia.com/, accessed on 16 April 2022.

Conflicts of Interest

The authors declare that they have no competing interests.

References

  1. Rai, K.; Garg, B. Dynamic correlations and volatility spillovers between stock price and exchange rate in BRIICS economies: Evidence from the COVID-19 outbreak period. Appl. Econ. Lett. 2021, 29, 1–8. [Google Scholar] [CrossRef]
  2. He, J.; Khushi, M.; Tran, N.H.; Liu, T. Robust Dual Recurrent Neural Networks for Financial Time Series Prediction. In Proceedings of the 2021 SIAM International Conference on Data Mining (SDM), virtually, 29 April–1 May 2021; pp. 747–755. [Google Scholar]
  3. Ribeiro, G.T.; Santos, A.A.P.; Mariani, V.C.; dos Santos Coelho, L. Novel hybrid model based on echo state neural network applied to the prediction of stock price return volatility. Expert Syst. Appl. 2021, 184, 115490. [Google Scholar] [CrossRef]
  4. Doong, S.C.; Doan, A.T. The influence of political uncertainty on commercial banks in emerging market countries. Int. J. Public Adm. 2021, 104, 1–17. [Google Scholar] [CrossRef]
  5. Avramov, D.; Kaplanski, G.; Subrahmanyam, A. Moving average distance as a predictor of equity returns. Rev. Financ. Econ. 2021, 39, 127–145. [Google Scholar] [CrossRef]
  6. Singh, J.; Khushi, M. Feature Learning for Stock Price Prediction Shows a Significant Role of Analyst Rating. Appl. Syst. Innov. 2021, 4, 17. [Google Scholar] [CrossRef]
  7. Thakkar, A.; Chaudhari, K. A comprehensive survey on deep neural networks for stock market: The need, challenges, and future directions. Expert Syst. Appl. 2021, 177, 114800. [Google Scholar] [CrossRef]
  8. Patel, J.; Shah, S.; Thakkar, P.; Kotecha, K. Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert Syst. Appl. 2015, 42, 259–268. [Google Scholar] [CrossRef]
  9. Kong, A.; Zhu, H.; Azencott, R. Predicting intraday jumps in stock prices using liquidity measures and technical indicators. J. Forecast. 2021, 40, 416–438. [Google Scholar] [CrossRef]
  10. Ravichandra, T.; Thingom, C. Stock price forecasting using ANN method. In Information Systems Design and Intelligent Applications; Springer: New Delhi, India, 2016; pp. 599–605. [Google Scholar]
  11. Fenghua, W.; Jihong, X.; Zhifang, H.; Xu, G. Stock price prediction based on SSA and SVM. Procedia Comput. Sci. 2014, 31, 625–631. [Google Scholar] [CrossRef] [Green Version]
  12. Khaidem, L.; Saha, S.; Dey, S.R. Predicting the direction of stock market prices using random forest. arXiv 2016, arXiv:1605.00003. [Google Scholar]
  13. Niu, H.; Xu, K.; Wang, W. A hybrid stock price index forecasting model based on variational mode decomposition and LSTM network. Appl. Intell. 2020, 50, 4296–4309. [Google Scholar] [CrossRef]
  14. Jing, N.; Wu, Z.; Wang, H. A hybrid model integrating deep learning with investor sentiment analysis for stock price prediction. Expert Syst. Appl. 2021, 178, 115019. [Google Scholar] [CrossRef]
  15. Senapati, M.R.; Das, S.; Mishra, S. A novel model for stock price prediction using hybrid neural network. J. Inst. Eng. (India) Ser. B 2018, 99, 555–563. [Google Scholar] [CrossRef]
  16. Kim, H.Y.; Won, C.H. Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models. Expert Syst. Appl. 2018, 103, 25–37. [Google Scholar] [CrossRef]
  17. Yu, P.; Yan, X. Stock price prediction based on deep neural networks. Neural Comput. Appl. 2020, 32, 1609–1628. [Google Scholar] [CrossRef]
  18. Hu, Z.; Zhao, Y.; Khushi, M. A survey of forex and stock price prediction using deep learning. Appl. Syst. Innov. 2021, 4, 9. [Google Scholar] [CrossRef]
  19. Sedighi, M.; Jahangirnia, H.; Gharakhani, M.; Farahani Fard, S. A novel hybrid model for stock price forecasting based on metaheuristics and support vector machine. Data 2019, 4, 75. [Google Scholar] [CrossRef] [Green Version]
  20. Hu, Y.; Ni, J.; Wen, L. A hybrid deep learning approach by integrating LSTM-ANN networks with GARCH model for copper price volatility prediction. Phys. A Stat. Mech. Its Appl. 2020, 557, 124907. [Google Scholar] [CrossRef]
  21. Zhong, X.; Enke, D. Predicting the daily return direction of the stock market using hybrid machine learning algorithms. Financ. Innov. 2019, 5, 1–20. [Google Scholar] [CrossRef]
  22. Lu, W.; Li, J.; Wang, J.; Qin, L. A CNN-BiLSTM-AM method for stock price prediction. Neural Comput. Appl. 2021, 33, 4741–4753. [Google Scholar] [CrossRef]
  23. Vijh, M.; Chandola, D.; Tikkiwal, V.A.; Kumar, A. Stock closing price prediction using machine learning techniques. Procedia Comput. Sci. 2020, 167, 599–606. [Google Scholar] [CrossRef]
  24. Chandar, S.K. Grey Wolf optimization-Elman neural network model for stock price prediction. Soft Comput. 2021, 25, 649–658. [Google Scholar] [CrossRef]
  25. Xiao, C.; Xia, W.; Jiang, J. Stock price forecast based on combined model of ARI-MA-LS-SVM. Neural Comput. Appl. 2020, 32, 5379–5388. [Google Scholar] [CrossRef]
  26. Ananthi, M.; Vijayakumar, K. Stock market analysis using candlestick regression and market trend prediction (CKRM). J. Ambient Intell. Humaniz. Comput. 2021, 12, 4819–4826. [Google Scholar] [CrossRef]
  27. Zhang, J.; Li, L.; Chen, W. Predicting stock price using two-stage machine learning techniques. Comput. Econ. 2021, 57, 1237–1261. [Google Scholar] [CrossRef]
  28. Xu, Y.; Yang, C.; Peng, S.; Nojima, Y. A hybrid two-stage financial stock forecasting algorithm based on clustering and ensemble learning. Appl. Intell. 2020, 50, 3852–3867. [Google Scholar] [CrossRef]
  29. Li, Y.; Ni, P.; Chang, V. Application of deep reinforcement learning in stock trading strategies and stock forecasting. Computing 2020, 102, 1305–1322. [Google Scholar] [CrossRef]
  30. Yun, K.K.; Yoon, S.W.; Won, D. Prediction of stock price direction using a hybrid GA-XGBoost algorithm with a three-stage feature engineering process. Expert Syst. Appl. 2021, 186, 115716. [Google Scholar] [CrossRef]
  31. Jaggi, M.; Mandal, P.; Narang, S.; Naseem, U.; Khushi, M. Text mining of stocktwits data for predicting stock prices. Appl. Syst. Innov. 2021, 4, 13. [Google Scholar] [CrossRef]
  32. Zhang, Z.; Khushi, M. Ga-MSSR: Genetic algorithm maximizing sharpe and sterling ratio method for robotrading. In Proceedings of the 2020 International Joint Conference on Neural Networks (IJCNN), Glasgow, UK, 19–24 July 2020; pp. 1–8. [Google Scholar]
  33. Nayak, R.K.; Tripathy, R.; Mishra, D.; Burugari, V.K.; Selvaraj, P.; Sethy, A.; Jena, B. Indian Stock Market Prediction Based on Rough Set and Support Vector Machine Approach. In Intelligent and Cloud Computing; Springer: Singapore, 2021; pp. 345–355. [Google Scholar]
  34. Manickamahesh, N. A Study on Technical Indicators for Prediction of Select Indices Listed on NSE. Turk. J. Comput. Math. Educ. (TURCOMAT) 2021, 12, 5730–5736. [Google Scholar]
  35. Fifield, S.; Power, D.; Knipe, D. The performance of moving average rules in emerging stock markets. Appl. Financ. Econ. 2008, 18, 1515–1532. [Google Scholar] [CrossRef]
  36. Djemo, C.R.T.; Eita, J.H.; Mwamba, J.W.M. Predicting Foreign Exchange Rate Movements: An Application of the Ensemble Method. Rev. Dev. Financ. 2021, 11, 58–70. [Google Scholar]
  37. Dwivedi, V.K.; Gore, M.M. A historical data based ensemble system for efficient stock price prediction. Recent Adv. Comput. Sci. Commun. (Former. Recent Pat. Comput. Sci.) 2021, 14, 1182–1212. [Google Scholar] [CrossRef]
  38. Fokkema, M. Fitting prediction rule ensembles with R package pre. arXiv 2017, arXiv:1707.07149. [Google Scholar] [CrossRef] [Green Version]
  39. Friedman, J.H.; Popescu, B.E. Predictive learning via rule ensembles. Ann. Appl. Stat. 2008, 2, 916–954. [Google Scholar] [CrossRef]
  40. Fokkema, M.; Strobl, C. Fitting prediction rule ensembles to psychological research data: An introduction and tutorial. Psychol. Methods 2020, 25, 636. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Overall work.
Figure 1. Overall work.
Data 07 00051 g001
Figure 2. Hybrid stock price prediction model.
Figure 2. Hybrid stock price prediction model.
Data 07 00051 g002
Figure 3. Rules generated by PRE-Axis Bank.
Figure 3. Rules generated by PRE-Axis Bank.
Data 07 00051 g003
Figure 4. Rules generated by PRE-ICICI Bank.
Figure 4. Rules generated by PRE-ICICI Bank.
Data 07 00051 g004
Figure 5. Rules generated by PRE-Kotak Bank.
Figure 5. Rules generated by PRE-Kotak Bank.
Data 07 00051 g005
Figure 6. Kotak Bank loss function.
Figure 6. Kotak Bank loss function.
Data 07 00051 g006
Figure 7. ICICI Bank loss function.
Figure 7. ICICI Bank loss function.
Data 07 00051 g007
Figure 8. Yes loss function.
Figure 8. Yes loss function.
Data 07 00051 g008
Table 1. Related works.
Table 1. Related works.
AuthorsTechniqueOutcomes
Niu et al. [13]Hybrid neural network VMD-LSTMStock price prediction
Jing et al. [14]Hybrid model that combines deep learning and sentiment analysisStock price prediction
Senapati et al. [15]Hybrid model for stock price prediction using ANN and PSOStock price prediction
Kim et al. [16]Hybrid long short-term memory (LSTM)Stock price forecasting
Sedighi et al. [19]Hybrid stock prediction model by combining ABC, ANFIS, and SVMStock price forecasting
Table 2. Hyperparameters.
Table 2. Hyperparameters.
HyperParametersRange
Number of layers2 to 3
Number of neurons5 to 20
Learning rate0.001 to 0.004
Epochs300 to 600
Table 3. Results.
Table 3. Results.
StockPrediction TechniqueMAERMSE
Kotak BankProposed Hybrid Model9.506.50
ICICI BankProposed Hybrid Model10.305.60
Axis BankProposed Hybrid Model9.907.10
SBI BankProposed Hybrid Model8.536.30
InfosysProposed Hybrid Model9.307.20
TCSProposed Hybrid Model8.556.75
Kotak BankDNN Model13.5011.50
ICICI BankDNN Model14.5013.60
Axis BankDNN Model13.3012.60
SBI BankDNN Model13.5011.20
InfosysDNN Model15.1313.11
TCSDNN Model14.4512.40
ICICI BankANN Model [10]15.122119.9444
SBI BANKANN Model [10]17.434123.1585
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Srivinay; Manujakshi, B.C.; Kabadi, M.G.; Naik, N. A Hybrid Stock Price Prediction Model Based on PRE and Deep Neural Network. Data 2022, 7, 51. https://0-doi-org.brum.beds.ac.uk/10.3390/data7050051

AMA Style

Srivinay, Manujakshi BC, Kabadi MG, Naik N. A Hybrid Stock Price Prediction Model Based on PRE and Deep Neural Network. Data. 2022; 7(5):51. https://0-doi-org.brum.beds.ac.uk/10.3390/data7050051

Chicago/Turabian Style

Srivinay, B. C. Manujakshi, Mohan Govindsa Kabadi, and Nagaraj Naik. 2022. "A Hybrid Stock Price Prediction Model Based on PRE and Deep Neural Network" Data 7, no. 5: 51. https://0-doi-org.brum.beds.ac.uk/10.3390/data7050051

Article Metrics

Back to TopTop