Advanced Stock Index Prediction Using Optimized LSTM Model Incorporating Sentiment Analysis
Main Article Content
Abstract
Stock index prediction is essential for financial market analysis and investment decisions, but traditional methods like ARIMA and GARCH often fail to deliver accurate results due to the complex and volatile nature of the stock market. Advances in deep learning, such as LSTM and GRU models, have shown promise but still face limitations in fully capturing market sentiment. The aim of this study is to develop a novel stock index prediction model that integrates GRU and LSTM to enhance predictive accuracy. The study also incorporates BERT-based sentiment analysis to better capture investor emotions and improve prediction performance. The proposed model utilizes data from the Stockholder Sentiment Dataset and Stock Index Trading Dataset, sourced from the Shanghai and Shenzhen Stock Exchanges. BERT is used to calculate sentiment scores from public news data, and an optimized combination of GRU and LSTM is employed for time series prediction. Comparative experiments were conducted against baseline LSTM and GRU models using metrics such as accuracy and loss.
The proposed model achieved an accuracy of 88.92% and a loss of 0.18 after 30 epochs, outperforming the basic LSTM (83.21% accuracy, 0.22 loss) and GRU models (85.34% accuracy, 0.20 loss). This demonstrates the superior performance of the model in stock index prediction tasks. This study introduces a more effective stock index prediction model by combining advanced deep learning methods and sentiment analysis. The proposed model offers valuable insights for improving investment strategies and risk management in financial markets, providing a foundation for further research in this field.
Article Details
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Views and opinions appearing in the Journal it is the responsibility of the author of the article, and does not constitute the view and responsibility of the editorial team.
References
Awad, A.L., Elkaffas, S., & Fakhr, M.W. (2023). Stock market prediction using deep reinforcement learning. Applied System Innovation, 6(6), 106. https://doi.org/10.3390/asi6060106
Dara, S., Gayathri, A., Deepika, K., Anitha, L., Priya, M., & Indu, K. (2023). Stock market prediction using deep learning approach. International Journal of Innovative Research in Engineering and Management (IJIREM), 10(2), 130-132. https://doi.org/10.55524/ijirem.2023.10.2.26
Hu, Z., Zhao, Y., & Khushi, M. (2021). A survey of forex and stock price prediction using deep learning. Applied System Innovation, 4(1), 9. DOI:10.3390/asi4010009
Jiang, W. (2020). Applications of deep learning in stock market prediction: recent progress. Expert Systems with Applications, 184, 115537. https://doi.org/10.1016/j.eswa.2021.115537
Khan, R., Miah, J., Rahman, M., Hasan, M., & Mamun, M. (2023). A study of forecasting stocks price by using deep Reinforcement Learning. In 2023 IEEE World AI IoT Congress (AI-IoT), 0250-0255. https://doi.org/10.1109/AIIoT58121.2023.10174358
Nikhil, S., Sah, R.K., Parki, S.K., Tamang, T.B., Somashekhara Reddy, D., & Mahesh, T.R. (2023). Stock market prediction using genetic algorithm assisted LSTM-CNN hybrid model. In 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), Delhi, India, 2023, pp. 1-6. DOI: 10.1109/ICCCNT56998.2023.10306948
Soni, A., Pandey, V., & Yadav, S. (2023). Stock market prediction using deep learning. In International Journal for Research in Applied Science and Engineering Technology (IJRASET), 11(XI), 1911-1918. https://doi.org/10.22214/ijraset.2023.56952
Van, Q.T., Bao, T.N., & Minh, T.P. (2023). integrated hybrid approaches for stock market prediction with deep learning, technical analysis, and reinforcement learning. In Proceedings of the 12th International Symposium on Information and Communication Technology (SOICT’23). 213-220. https://doi.org/10.1145/3628797.3629018