| Literature DB >> 35965780 |
Nusrat Rouf1, Majid Bashir Malik1, Sparsh Sharma2, In-Ho Ra3, Saurabh Singh4, Abhishek Meena5.
Abstract
The unprecedented Corona Virus Disease (COVID-19) pandemic has put the world in peril and shifted global landscape in unanticipated ways. The SARSCoV2 virus, which caused the COVID-19 outbreak, first appeared in Wuhan, Hubei Province, China, in December 2019 and quickly spread around the world. This pandemic is not only a global health crisis, but it has caused the major global economic depression. As soon as the virus spread, stock market prices plummeted and volatility increased. Predicting the market during this outbreak has been of substantial importance and is the primary motivation to carry out this work. Given the nonlinearity and dynamic nature of stock data, the prediction of stock market is a challenging task. The machine learning models have proven to be a good choice for the development of effective and efficient prediction systems. In recent years, the application of hyperparameter optimization techniques for the development of highly accurate models has increased significantly. In this study, a customized neural network model is proposed and the power of hyperparameter optimization in modelling stock index prices is explored. A novel dataset is generated using nine standard technical indicators and COVID-19 data. In addition, the primary focus is on the importance of selection of optimal features and their preprocessing. The utilization of multiple feature ranking techniques combined with extensive hyperparameter optimization procedures is comprehensive for the prediction of stock index prices. Moreover, the model is evaluated by comparing it with other models, and results indicate that the proposed model outperforms other models. Given the detailed design methodology, preprocessing, exploratory feature analysis, and hyperparameter optimization procedures, this work gives a significant contribution to stock analysis research community during this pandemic.Entities:
Mesh:
Substances:
Year: 2022 PMID: 35965780 PMCID: PMC9366270 DOI: 10.1155/2022/7097044
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1Structure of a neuron.
Figure 2Structure of a feed forward neural network.
Figure 3The error back propagation in neural networks.
Figure 4Methodology for stock market prediction.
Technical indicators, formulas, and levels.
| Technical indicators | Formula | Levels |
|---|---|---|
| Return | Change=(( | 1 |
| Volatility | SD(change) | 1 |
| Simple |
| 4 (3, 6, 9, 12) |
| Weighted | ((( | 4 (3, 6, 9, 12) |
| Close lag | 4 (3, 6, 9, 12) | |
| RSI | 100 − (100/(1+(∑ | 4 (3, 6, 9, 12) |
| Moving average convergence/divergence (MACD) | MACD( | 4 (3, 6, 9, 12) |
| Momentum stochastic ( | (( | 4 (3, 6, 9, 12) |
| Commodity channel index (CCI) | (( | 4 (3, 6, 9, 12) |
| Total | 30 |
Note. n is the time period n days ago, C, L , and H are the closing, lowest, and highest prices at time t, respectively, SD is the standard deviation, SQRT is the square root function, LL and HH are the lowest low and highest high price in last t days, respectively, UP and DW are the upward and downward index change at time t, DIFF is the EMA(12) − EMA(26), where EMA is exponential moving average, EMA(p)=EMA(p)+∝(C − EMA(p)), where ∝=2/(1+p)p = 10 in p-day EMA. M=((C+L+H)/3); SM=∑(M/n); and D=∑(|M − SM|/n).
Figure 5Mean feature rankings.
Figure 6Neural network architecture.
Hyperparameters with range of values.
| Hyperparameters | Values |
|---|---|
| Learning rate | Range (0.5, 0.1) 10 values |
| First_neuron | [10, 20] |
| Hidden layers | [1, 2, 3] |
| Batch_size | Range (10, 30) 5 values |
| Epochs | 100 |
| Dropout | Range (0, 0.5) 5 values |
| Shapes | [Brick, funnel] |
| Activation | ReLU |
| Optimizer | RMSProp, AdaDelta, Adam, AdaGrad |
Figure 7Variation of validation MAPE with number of rounds performed.
Figure 84-dimensional bar plot representing the variation of validation MAPE by using different values for hyperparameters.
Optimized hyperparameters.
| Parameters | Values |
|---|---|
| Start | 07/02/21 |
| End | 07/02/21 |
| Duration | 2 hours and 45 minutes |
| Round_epochs | 100 |
| Loss | 618206.8125 |
| MAPE | 8.039555 |
| Val_loss | 161916.171875 |
| Val_MAPE | 4.379007 |
| Activation | ReLU |
| Optimizer | Adam |
| Batch_size | 10 |
| Dropout | 0.0 |
| Epochs | 100 |
| First_neuron | 10 |
| Hidden layers | 2 |
|
| 0.14 |
| Shapes | Funnel |
| Name | 42, dtype: object |
Figure 9Correlation heat map of hyperparameters.
Figure 10Comparison of MAPE scores of other models with the proposed model.
Figure 11Comparison of MSE scores of other models with the proposed model.