“Nifty 50 Price Forecasting with NLP Technique”

Authors

  • Vikrant Kamlakar Ingale, Vikas Kumar

Keywords:

NIFTY 50, Price Forecasting, Natural Language Processing (NLP), Random Forest, Machine Learning, Sentiment Analysis, Financial News, Social Media, X Posts, TF-IDF, Word Embeddings, Express.js, React, Python, Flask, High-Dimensional Data, Non-Linear Patterns, Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), R² Score, Interactive Charts, Real-Time Data, Financial Forecasting, Web Application, Deep Learning, Transformers, Personalized Dashboards, Investment Strategies

Abstract

This research proposes a novel approach to forecasting NIFTY 50 index prices by integrating Natural Language Processing (NLP) with a Random Forest model within a user-friendly web application, distinct from existing methodologies. The platform enables users to input NIFTY 50-related queries, extract sentiment from diverse textual sources such as financial reports and social media discussions (e.g., posts on X, accessed as of May 23, 2025), and visualize price trends through dynamic charts. Built with Express.js, the back-end connects to external APIs for real-time sentiment data and stores processed features in a database. A Random Forest model, developed using Python and Flask, processes NLP-generated features (e.g., TF-IDF vectors and custom word embeddings) combined with historical NIFTY 50 data to predict price movements. The model’s strength in managing high-dimensional, non-linear relationships ensures accurate forecasting, with results displayed on a React-based front-end. Performance is assessed using Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and R² score, demonstrating superior predictive power compared to traditional statistical models. This approach uniquely leverages sentiment-driven insights to enhance financial forecasting. Future improvements may include incorporating advanced NLP techniques like transformer models, real-time sentiment monitoring, and user-specific features such as custom alerts and portfolio trackers. This project showcases the innovative fusion of NLP, Random Forest, and web technologies to empower financial decision-making with actionable, data-driven insights.

Downloads

Download data is not yet available.

References

Zahra Fathali, S., Mirzaie, K., & Asadi, S. (2022). Deep Learning for NIFTY 50 Price Prediction with Optimized Feature Selection. Expert Systems with Applications, 201, 117-129.

Puh, S., & Bagić Babac, M. (2023). Sentiment Analysis for Stock Index Forecasting Using Social Media and News. In Proceedings of the 2023 International Conference on Computational Finance (pp. 112–123). IEEE.

Zhong, H. (2024). Predicting Stock Market Trends: Analyzing Financial Data with Machine Learning. Analytics Vidhya, Medium.

Bollen, J., Mao, H., & Zeng, X. (2011). Twitter Mood Predicts the Stock Market. Journal of Computational Science, 2(1), 1–8. https://doi.org/10.1016/j.jocs.2010.12.007

Mittal, A., & Goel, A. (2012). Stock Market Prediction Using Twitter Sentiment Analysis. IEEE ASONAM 2012, 134–143. https://doi.org/10.1109/ASONAM.2012.56

Li, X., Xie, H., Chen, L., & Wang, J. (2020). News Impact on Stock Price Return via Sentiment Analysis. IEEE Access, 8, 155077–155087. https://doi.org/10.1109/ACCESS.2020.2988691

Si, J., Mukherjee, A., Liu, B., Pan, S., & Li, Q. (2014). Exploiting Social Relations and Sentiment for Stock Prediction. Proceedings of ACL 2014. https://aclanthology.org/P14-2121/

Prosus AI. (2020). FinBERT: Financial Sentiment Analysis Using Pretrained Language Models. GitHub Repository. https://github.com/ProsusAI/finBERT

Smailović, J., Grčar, M., Lavrač, N., & Žnidaršič, M. (2014). Predictive Sentiment Analysis of Tweets: A Stock Market Application. In Human-Computer Interaction and Knowledge Discovery in Complex, Unstructured, Big Data (pp. 77–88). Springer. https://link.springer.com/chapter/10.1007/978-3-319-07350-7_13

Stanford University CS229 Students. (2015). Stock Price Prediction Using Sentiment Analysis. CS229 Project Report. https://cs229.stanford.edu/proj2015/

Downloads

Published

18.03.2025

How to Cite

Vikrant Kamlakar Ingale. (2025). “Nifty 50 Price Forecasting with NLP Technique”. International Journal of Intelligent Systems and Applications in Engineering, 13(1s), 248–257. Retrieved from https://www.ijisae.org/index.php/IJISAE/article/view/7633

Issue

Section

Research Article