Bridging Temporal Dependencies and Sentiment: A Comprehensive Approach to NIFTY 50 Index Prediction

International Journal of Computer Science and Engineering
© 2024 by SSRG - IJCSE Journal
Volume 11 Issue 10
Year of Publication : 2024
Authors : Pranav P. Naik, Vadiraj G. Inamdar

pdf
How to Cite?

Pranav P. Naik, Vadiraj G. Inamdar, "Bridging Temporal Dependencies and Sentiment: A Comprehensive Approach to NIFTY 50 Index Prediction," SSRG International Journal of Computer Science and Engineering , vol. 11,  no. 10, pp. 46-53, 2024. Crossref, https://doi.org/10.14445/23488387/IJCSE-V11I10P106

Abstract:

The primary goal of this research is to enhance the predictive accuracy of stock market trends by developing a comprehensive model that integrates Long Short-Term Memory (LSTM) networks with BERT-based sentiment analysis. This study aims to address the gap in traditional prediction models by exploring whether integrating sentiment from financial news with temporal market data can significantly improve forecasting of the NIFTY 50 index, a key benchmark in the Indian stock market. The proposed approach leverages critical financial indicators such as Foreign Institutional Investor (FII) and Domestic Institutional Investor (DII) activities, the India VIX (Volatility Index), and the Put-Call Ratio (PCR) of the two nearest expiry options. LSTM networks are employed to capture the temporal dependencies in historical market data, while BERT is used to extract sentiment insights from news articles. The unique contribution of this research is a dual-perspective model that combines quantitative financial data with qualitative sentiment analysis, which significantly outperforms traditional models in predicting bullish, bearish, or neutral market trends. This study provides a valuable tool for retail investors by offering more nuanced and accurate forecasts, underscoring the importance of integrating diverse data sources in stock market prediction. The findings suggest potential applications for similar predictive models in other financial markets.

Keywords:

Financial forecasting, India vix, LSTM, NIFTY50, Sentiment analysis.

References:

[1] M. Hiransha et al., “NSE Stock Market Prediction Using Deep-Learning Models,” Procedia Computer Science, vol. 132, pp. 1351-1362, 2018.
[CrossRef] [Google Scholar] [Publisher Link]
[2] Abdulhamit Subasi et al., “Stock Market Prediction Using Machine Learning,” Procedia Computer Science, vol. 194, pp. 173-179, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[3] Shuang (Sophie) Zhai, and Zhu (Drew) Zhang, “Read the News, Not the Books: Forecasting Firms’ Long-term Financial Performance via Deep Text Mining,” ACM Transactions on Management Information Systems, vol. 14, no. 1, pp. 1-37, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[4] Aditya Bhardwaj et al., “Sentiment Analysis for Indian Stock Market Prediction Using Sensex and Nifty,” Procedia Computer Science, vol. 70, pp. 85-91, 2015.
[CrossRef] [Google Scholar] [Publisher Link]
[5] Ruchika Gahlot, “An Analytical Study on Effect of FIIs & DIIs on Indian Stock Market,” Journal of Transnational Management, vol. 24, no. 2, pp. 67-82, 2019.
[CrossRef] [Google Scholar] [Publisher Link]
[6] Bledar Fazlija, and Pedro Harder, “Using Financial News Sentiment for Stock Price Direction Prediction,” Mathematics, vol. 10, no. 13, pp. 1-20, 2022.
[CrossRef] [Google Scholar] [Publisher Link]
[7] Narayan Parab, and Y.V. Reddy, “A Cause and Effect Relationship between FIIs, DIIs and Stock Market Returns in India: Pre- and Post Demonetization Analysis,” Future Business Journal, vol. 6, pp. 1-10, 2020.
[CrossRef] [Google Scholar] [Publisher Link]
[8] Imlak Shaikh, and Puja Padhi, “On the Relationship between Implied Volatility Index and Equity Index Returns,” Journal of Economic Studies, vol. 43, no. 1, pp. 27-47, 2016.
[CrossRef] [Google Scholar] [Publisher Link]
[9] Achyut Ghosh et al., “Stock Price Prediction Using LSTM on Indian Share Market,” EPiC Series in Computing, vol. 63, pp. 101-110, 2019.
[CrossRef] [Google Scholar] [Publisher Link]
[10] Hans R. Stoll et al., “The Relationship between Put and Call Option Prices,” The Journal of Finance, vol. 24, no. 5, pp. 801-824, 1969.
[CrossRef] [Google Scholar] [Publisher Link]
[11] Kiran Maharana, Surajit Mondal, and Bhushankumar Nemade, “A Review: Data Pre-Processing and Data Augmentation Techniques,” Global Transitions Proceedings, vol. 3, no. 1, pp. 91-99, 2022.
[CrossRef] [Google Scholar] [Publisher Link]
[12] Kevin Clark et al., “What does BERT look at? An Analysis of BERT’s Attention,” Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, Florence, Italy, pp. 276-286, 2019.
[CrossRef] [Google Scholar] [Publisher Link]