Open Access Open Access  Restricted Access Subscription Access
Open Access Open Access Open Access  Restricted Access Restricted Access Subscription Access

Deep Learning Methods for the Accurate Modeling and Forecasting of the Indian Stock Market


Affiliations
1 Department of Statistics, University of Dar Es Salaam, Tanzania, United Republic of
2 Department of Statistics, Yenepoya University, India
     

   Subscribe/Renew Journal


The stock markets are among the most volatile market worldwide. The future of these markets is daily affected by political instability and different enacted economic and government policies. Thus, the prediction and forecast of these markets are very important. The Bombay Stock Exchange (BSE) is the oldest stock market in Asia and India. This paper applied deep learning methods to predict the five companies closing prices under BSE. The selected companies based on market capitalization were Reliance Industries Ltd (RELI), TATA Consultancy Services (TCS), HDFC Bank Ltd (HDBK), Infosys Ltd (INFY), and ICICI Bank Ltd (ICBK). Based on Root Mean Square Error (RMSE), the traditional Bidirectional Long Short-Term Model (Bi-LSTM) model predicted well the HDBK closing prices. The Convolution Neural Networks (CNN) outperformed other models in predicting the ICBK, RELI, and INFY. The proposed Hybrid CNN-LSTM model with Bayesian hyperparameter tuning outperformed the CNN and Bi-LSTM models in predicting the TCS close price. Moreover, the hybrid model ranked second in predicting closing prices in all the selected companies. The next 100 days forecast shows high price volatility in the selected companies. In the closing prices forecasts, the hybrid CNN-LSTM model with Bayesian hyperparameter tuning has captured well the trend of the historical data. Additionally, Traders and financial analysts may easily understand the future market trend using the methods. Therefore, the powerful computer and more complex hybrid model may be applied to bring the best performance in terms of accuracy.

Keywords

Bayesian hyperparameter tuning, Bi-LSTM, Bombay Stock Exchange, CNN, and CNN-LSTM
Subscription Login to verify subscription
User
Notifications
Font Size

  • A. Ghosh, S. Bose, G. Maji, N. Debnath and S. Sen, “Stock Price Prediction using LSTM on Indian Share Market”, Proceedings of International Conference on Neural Computing, Vol. 63, pp. 101-110, 2019.
  • H. Abbasimehr, R. Paki and A. Bahrini, “A Novel Approach based on Combining Deep Learning Models with Statistical Methods for COVID-19 Time Series Forecasting”, Neural Computing and Applications, Vol. 45, pp. 1-15, 2021.
  • N.F. Omran, S.F. Abd-El Ghany, H. Saleh, A.A. Ali, A. Gumaei and M. Al-Rakhami, “Applying Deep Learning Methods on Time-Series Data for Forecasting Covid-19 in Egypt, Kuwait, and Saudi Arabia”, Complexity, Vol. 2021, pp. 1-12, 2021.
  • T. Thi Kieu Tran, T. Lee, J.Y. Shin, J.S. Kim and M. Kamruzzaman, “Deep Learning-based Maximum Temperature Forecasting Assisted with Meta-Learning for Hyperparameter Optimization”, Atmosphere, Vol. 11, No. 5, pp. 487-498, 2020.
  • K.M. Sabu and T.M. Kumar, “Predictive Analytics in Agriculture: Forecasting prices of Arecanuts in Kerala”, Procedia Computer Science, Vol. 171, pp. 699-708, 2020.
  • A. Perwej, K.P. Yadav, V. Sood and Y. Perwej, “An Evolutionary Approach to Bombay Stock Exchange Prediction with Deep Learning Technique”, IOSR Journal on Business Management, Vol. 20, No. 12, pp. 63-79, 2018.
  • S. Sahoo and M.N. Mohanty, “Stock Market Price Prediction Employing Artificial Neural Network Optimized by Gray Wolf Optimization”, New Paradigm in Decision Science and Management, pp. 77-87, 2020.
  • O.B. Sezer, M.U. Gudelek and A.M. Ozbayoglu, “Financial Time Series Forecasting with Deep Learning: A Systematic Literature Review: 2005-2019”, Applied Soft Computing, Vol. 90, pp. 106181-106189, 2020.
  • Z. Hu, Y. Zhao and M. Khushi, “A Survey of Forex and Stock Price Prediction using Deep Learning”, Applied System Innovation, Vol. 4, No. 1, pp. 1-9, 2021.
  • M.R. Senapati, S. Das and S. Mishra, “A Novel Model for Stock Price Prediction using Hybrid Neural Network”, Journal of the Institution of Engineers (India): Series B, Vol. 99, No. 6, pp. 555-563, 2018.
  • W. Kong, “Effect of Automatic Hyperparameter Tuning for Residential Load Forecasting via Deep Learning”, Proceedings of Australasian Universities Conference on Power Engineering, pp. 1-6, 2017.
  • S. Ayvaz and O. Arslan, “Forecasting Electricity Consumption using Deep Learning Methods with Hyperparameter Tuning”, Proceedings of International Conference on Signal Processing and Communications Applications, pp. 1-4, 2020.
  • N. Bakhashwain and A. Sagheer, “Online Tuning of Hyperparameters in Deep LSTM for Time Series Applications”, International Journal of Intelligent Engineering and Systems, Vol. 14, No. 1, pp. 212-220, 2021.
  • H. Rezaei, H. Faaljou and G. Mansourfar, “Stock Price Prediction using Deep Learning and Frequency Decomposition”, Expert Systems with Applications, Vol. 169, pp. 1-18, 2021.
  • J. Zhao, X. Mao and L. Chen, “Speech Emotion Recognition using Deep 1D & 2D CNN LSTM Networks”, Biomedical Signal Processing and Control, Vol. 47, pp. 312-323, 2019.
  • N. Hatami, Y. Gavet and J. Debayle, “Classification of Time-Series Images using Deep Convolutional Neural Networks”, Proceedings of International Conference on Machine Vision, pp. 1-5, 2018.
  • A. Le Guennec, S. Malinowski and R. Tavenard, “Data Augmentation for Time Series Classification using Convolutional Neural Networks”, Proceedings of International Conference on Signal Processing, pp. 1-9, 2016.
  • S.H.I. Xingjian, Z. Chen, H. Wang, D.Y. Yeung, W.K. Wong and W. Woo, “Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting”,
  • Advances in Neural Information Processing Systems, pp. 802-810, 2015.
  • B. Zhao, H. Lu, S. Chen, J. Liu and D. Wu, “Convolutional Neural Networks for Time Series Classification”, Journal of Systems Engineering and Electronics, Vol. 28, No. 1, pp. 162-169, 2017.
  • R. Collobert, J. Weston, L. Bottou, M. Karlen, K. Kavukcuoglu and P. Kuksa, “Natural Language Processing (Almost) from Scratch”, Journal of Machine Learning Research, Vol. 12, No. 1, pp. 2493-2537, 2011.
  • A. Gulli and S. Pal, “Deep Learning with Keras”, Packt Publishing Ltd, 2017.
  • J. Jin, A. Dundar and E. Culurciello, “Flattened Convolutional Neural Networks for Feedforward Acceleration”, Proceedings of International Conference on Signal Processing, pp. 1-12, 2014.
  • S. Hochreiter and J. Schmidhuber, “Long Short-Term Memory”, Neural Computation, Vol. 9, No. 8, pp. 1735-1780, 1997.
  • S. Bodapati, H. Bandarupally, and M. Trupthi, “COVID-19 Time Series Forecasting of Daily Cases, Deaths Caused and Recovered Cases using Long Short Term Memory Networks”, Proceedings of International Conference on Computing Communication and Automation, pp. 525-530, 2020.
  • F. Karim, S. Majumdar, H. Darabi and S. Chen, “LSTM Fully Convolutional Networks for Time Series Classification”, IEEE Access, Vol. 6, pp. 1662-1669, 2017.
  • X. Song, “Time-Series Well Performance Prediction based on Long Short-Term Memory (LSTM) Neural Network Model”, Journal of Petroleum Science and Engineering, Vol. 186, pp. 106682-106689, 2020.
  • A. Felix and Fred Cummins, “Learning to Forget: Continual Prediction with LSTM”, Neural Computation, Vol. 12, No. 10, pp. 2451-2471, 2000.
  • M.A.I. Sunny, M.M.S. Maswood and A.G. Alharbi, “Deep Learning-Based Stock Price Prediction using LSTM and Bi-Directional LSTM Model”, Proceedings of International Conference on Novel Intelligent and Leading Emerging Sciences, pp. 87-92, 2020.
  • J. Wang, J. Xu and X. Wang, “Combination of Hyperband and Bayesian Optimization for Hyperparameter Optimization in Deep Learning”, Proceedings of International Conference on Machine Learning, pp. 1-13, 2018.
  • C.K. Williams and C.E. Rasmussen, “Gaussian Processes for Machine Learning”, MIT Press, 2006.
  • J. Snoek, “Scalable Bayesian Optimization using Deep Neural Networks”, Proceedings of International Conference on Machine Learning, pp. 2171-2180, 2015.
  • T. Chai and R.R. Draxler, “Root Mean Square Error (RMSE) or Mean Absolute Error (MAE)? Arguments against Avoiding RMSE in the Literature”, Geoscientific Model Development, Vol. 7, No. 3, pp. 1247-1250, 2014.
  • C.J. Willmott and K. Matsuura, “Advantages of the Mean Absolute Error (MAE) over the Root Mean Square Error (RMSE) in Assessing Average Model Performance”, Climate Research, Vol. 30, No. 1, pp. 79-82, 2005.
  • S. Mehtab and J. Sen, “Stock Price Prediction using Convolutional Neural Networks on a Multivariate Timeseries”, Proceedings of International Conference on Neural Networks, pp. 1-13, 2020.
  • K.A. Althelaya, E.S.M. El-Alfy and S. Mohammed, “Evaluation of Bidirectional LSTM for Short-and Long-Term Stock Market Prediction”, Proceedings of International Conference on Information and Communication Systems, pp. 151-156, 2018.
  • R. Chandra, S. Goyal and R. Gupta, “Evaluation of Deep Learning Models for Multi-Step Ahead Time Series Prediction”, IEEE Access, Vol. 9, pp. 83105-83123, 2021.
  • S. Jain, R. Gupta and A.A. Moghe, “Stock Price Prediction on Daily Stock Data using Deep Neural Networks”, Proceedings of International Conference on Advanced Computation and Telecommunication, pp. 1-13, 2018.
  • A. Kelotra and P. Pandey, “Stock Market Prediction using Optimized Deep-Convlstm Model”, Big Data, Vol. 8, No. 1, pp. 5-24, 2020.
  • W. Lu, J. Li, Y. Li, A. Sun and J. Wang, “A CNN-LSTM-Based Model to Forecast Stock Prices”, Complexity, Vol. 2020, pp. 1-14, 2020.

Abstract Views: 90

PDF Views: 3




  • Deep Learning Methods for the Accurate Modeling and Forecasting of the Indian Stock Market

Abstract Views: 90  |  PDF Views: 3

Authors

Godfrey Joseph Saqware
Department of Statistics, University of Dar Es Salaam, Tanzania, United Republic of
B. Ismail
Department of Statistics, Yenepoya University, India

Abstract


The stock markets are among the most volatile market worldwide. The future of these markets is daily affected by political instability and different enacted economic and government policies. Thus, the prediction and forecast of these markets are very important. The Bombay Stock Exchange (BSE) is the oldest stock market in Asia and India. This paper applied deep learning methods to predict the five companies closing prices under BSE. The selected companies based on market capitalization were Reliance Industries Ltd (RELI), TATA Consultancy Services (TCS), HDFC Bank Ltd (HDBK), Infosys Ltd (INFY), and ICICI Bank Ltd (ICBK). Based on Root Mean Square Error (RMSE), the traditional Bidirectional Long Short-Term Model (Bi-LSTM) model predicted well the HDBK closing prices. The Convolution Neural Networks (CNN) outperformed other models in predicting the ICBK, RELI, and INFY. The proposed Hybrid CNN-LSTM model with Bayesian hyperparameter tuning outperformed the CNN and Bi-LSTM models in predicting the TCS close price. Moreover, the hybrid model ranked second in predicting closing prices in all the selected companies. The next 100 days forecast shows high price volatility in the selected companies. In the closing prices forecasts, the hybrid CNN-LSTM model with Bayesian hyperparameter tuning has captured well the trend of the historical data. Additionally, Traders and financial analysts may easily understand the future market trend using the methods. Therefore, the powerful computer and more complex hybrid model may be applied to bring the best performance in terms of accuracy.

Keywords


Bayesian hyperparameter tuning, Bi-LSTM, Bombay Stock Exchange, CNN, and CNN-LSTM

References