Deep Learning Approaches for Stock Price Prediction A Comparative Study on Nifty 50 Dataset

Authors

DOI:

https://doi.org/10.4108/eetismla.7481

Keywords:

NSE50, regression models, R2 score, RMSE, MAPE, MAE

Abstract

Stock price prediction is essential for investors and traders in financial markets. Deep learning methods have emerged as promising tools for capturing intricate patterns in stock market data. In this paper, we explore a comprehensive comparative study of various deep learning architectures for stock price prediction using  the Nifty 50 dataset. The models evaluated include Linear regression, LSTM, GRU, CNN, RNN, Temporal Convolutional Network (TCN), as well as combination models such as LSTM+GRU, CNN+RNN, CNN+TCN, and LSTM+TCN. Our study aims to evaluate how well they perform and suitability of these methodologies in capturing the dynamics of stock price movements. Utilizing historical Nifty 50 data spanning multiple years, we evaluate the models’ predictive capabilities using standard evaluation metrics such as MSE, R2 Score, RMSE, MAE, and MAPE. Results from our experiments unveil distinct strengths and weaknesses among the different deep learning architectures. While linear regression provides a baseline for comparison, deep learning models like LSTM, GRU, CNN, RNN, and TCN exhibit superior performance in capturing the nonlinear and time-varying nature of stock market data. Additionally, hybrid architectures demonstrate promising results by leveraging the complementary strengths of individual models. This comparative study offers meaningful perspectives on the effectiveness of various deep learning approaches for stock price prediction, which can benefit researchers, practitioners, and stakeholders in the financial domain. By understanding the performance characteristics of these models, stakeholders can make informed decisions in their investment strategies.

Downloads

Download data is not yet available.

References

[1] M Ananthi and K Vijayakumar. Retracted article: stock market analysis using candlestick regression and market trend prediction (ckrm). Journal of Ambient Intelligence and Humanized Computing, 12(5):4819–4826, 2021.

[2] Kunal Pahwa and Neha Agarwal. Stock market analysis using supervised machine learning. In 2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMITCon), pages 197–200. IEEE, 2019.

[3] Wenjie Lu, Jiazheng Li, Jingyang Wang, and Lele Qin. A cnn-bilstm-am method for stock price prediction. Neural Computing and Applications, 33:4741–4753, 2021.

[4] Pengfei Yu and Xuesong Yan. Stock price prediction based on deep neural networks. Neural Computing and Applications, 32:1609–1628, 2020.

[5] Saloni Mohan, Sahitya Mullapudi, Sudheer Sammeta, Parag Vijayvergia, and David C Anastasiu. Stock price prediction using news sentiment analysis. In 2019 IEEE fifth international conference on big data computing service and applications (BigDataService), pages 205–208. IEEE, 2019.

[6] Achyut Ghosh, Soumik Bose, Giridhar Maji, Narayan Debnath, and Soumya Sen. Stock price prediction using lstm on indian share market. In Proceedings of 32nd international conference on, volume 63, pages 101–110, 2019.

[7] Sidra Mehtab and Jaydip Sen. A robust predictive model for stock price prediction using deep learning and natural language processing. arXiv preprint arXiv:1912.07700, 2019.

[8] Lounnapha Sayavong, Zhongdong Wu, and Sookasame Chalita. Research on stock price prediction method based on convolutional neural network. In 2019 international conference on virtual reality and intelligent systems (ICVRIS), pages 173–176. IEEE, 2019.

[9] Guangyu Ding and Liangxi Qin. Study on the prediction of stock price based on the associated network model of lstm. International Journal of Machine Learning and Cybernetics, 11:1307–1317, 2020.

[10] Jun Zhang, Yu-Fan Teng, and Wei Chen. Support vector regression with modified firefly algorithm for stock price forecasting. Applied Intelligence, 49:1658–1674, 2019.

[11] Chenglin Xiao, Weili Xia, and Jijiao Jiang. Stock price forecast based on combined model of ari-ma-ls-svm. Neural Computing and Applications, 32:5379–5388, 2020.

[12] Hongli Niu, Kunliang Xu, and Weiqing Wang. A hybrid stock price index forecasting model based on variational mode decomposition and lstm network. Applied Intelligence, 50:4296–4309, 2020.

[13] Md Arif Istiake Sunny, Mirza Mohd Shahriar Maswood, and Abdullah G Alharbi. Deep learning-based stock price prediction using lstm and bi-directional lstm model. In 2020 2nd novel intelligent and leading emerging sciences conference (NILES), pages 87–92. IEEE, 2020.

[14] Milad Shahvaroughi Farahani and Seyed Hossein Razavi Hajiagha. Forecasting stock price using integrated artificial neural network and metaheuristic algorithms compared to time series models. Soft computing, 25(13):8483–8513, 2021.

[15] YanWang and Yuankai Guo. Forecasting method of stock market volatility in time series data based on mixed model of arima and xgboost. China Communications, 17(3):205–221, 2020.

[16] Zhigang Jin, Yang Yang, and Yuhong Liu. Stock closing price prediction based on sentiment analysis and lstm. Neural Computing and Applications, 32:9713–9729, 2020.

[17] Xiaodan Liang, Zhaodi Ge, Liling Sun, Maowei He, and Hanning Chen. Lstm with wavelet transform based data preprocessing for stock price prediction. Mathematical Problems in Engineering, 2019, 2019.

[18] Widodo Budiharto. Data science approach to stock prices forecasting in indonesia during covid-19 using long short-term memory (lstm). Journal of big data, 8:1–9, 2021.

[19] Yang Zhao and Zhonglu Chen. Forecasting stock price movement: New evidence from a novel hybrid deep learning model. Journal of Asian Business and Economic Studies, 29(2):91–104, 2021.

[20] GWRIWijesinghe and RMKT Rathnayaka. Stock market price forecasting using arima vs ann; a case study from cse. In 2020 2nd International Conference on Advancements in Computing (ICAC), volume 1, pages 269–274. IEEE, 2020.

[21] Jimmy Ming-Tai Wu, Zhongcui Li, Norbert Herencsar, Bay Vo, and Jerry Chun-Wei Lin. A graph-based cnn-lstm stock price prediction algorithm with leading indicators. Multimedia Systems, 29(3):1751–1770, 2023.

[22] Joshua Zoen Git Hiew, Xin Huang, Hao Mou, Duan Li, Qi Wu, and Yabo Xu. Bert-based financial sentiment index and lstm-based stock return predictability. arXiv preprint arXiv:1906.09024, 2019.

[23] Yi Ji, Alan Wee-Chung Liew, and Lixia Yang. A novel improved particle swarm optimization with long-short term memory hybrid model for stock indices forecast. Ieee Access, 9:23660–23671, 2021.

[24] Mustafa Göçken, Mehmet Özçalıcı, Aslı Boru, and Ayşe Tuğba Dosdoğru. Stock price prediction using hybrid soft computing models incorporating parameter tuning and input variable selection. Neural Computing and Applications, 31:577–592, 2019.

[25] Ying Xu, Cuijuan Yang, Shaoliang Peng, and Yusuke Nojima. A hybrid two-stage financial stock forecasting algorithm based on clustering and ensemble learning. Applied Intelligence, 50:3852–3867, 2020.

[26] Ya Gao, Rong Wang, and Enmin Zhou. Stock prediction based on optimized lstm and gru models. Scientific Programming, 2021:1–8, 2021.

[27] Mohammad J Hamayel and Amani Yousef Owda. A novel cryptocurrency price prediction model using gru, lstm and bi-lstm machine learning algorithms. Ai, 2(4):477–496, 2021.

[28] Wei Dai, Yuan An, and Wen Long. Price change prediction of ultra high frequency financial data based on temporal convolutional network. Procedia Computer Science, 199:1177–1183, 2022.

[29] Shuzhen Wang. A stock price prediction method based on bilstm and improved transformer. IEEE Access, 2023.

[30] Yifeng Fu and He Xiao. Stock price prediction model based on dual attention and tcn. Available at SSRN 4282842, 2022.

[31] Viswapriya Misra. Time series forecasting with applications to finance. 2021.

Downloads

Published

28-02-2025

How to Cite

[1]
S. P. Kallimath, N. Darapaneni, and A. R. Paduri, “Deep Learning Approaches for Stock Price Prediction A Comparative Study on Nifty 50 Dataset”, EAI Endorsed Trans Int Sys Mach Lear App, vol. 1, Feb. 2025.