Predicting Stock Market Movements Using News Sentiment and Machine Learning
Keywords:
Stock Market Prediction, News Sentiment Analysis, Machine Learning, Deep Learning, Ensemble MethodsAbstract
Stock market prediction has always been a challenging task due to the volatility, complexity, and non-linear dynamics of financial markets. Traditional approaches based on fundamental and technical analysis often fail to capture the behavioral factors that drive market fluctuations. In recent years, the integration of news sentiment analysis with machine learning (ML) techniques has emerged as a promising solution for improving predictive accuracy. By extracting sentiment scores from financial news and combining them with historical stock data and technical indicators, researchers can capture both quantitative and qualitative aspects of market behavior. This allows models to reflect not only economic fundamentals but also investor psychology, which frequently influences short-term price movements.
In this study, a hybrid approach was applied to predict stock movements of selected Nifty50 companies by combining sentiment data with ML algorithms such as K-Nearest Neighbour (KNN), Random Forest (RF), XGBoost, and Long Short-Term Memory (LSTM). The results reveal that ensemble-based models, particularly Random Forest and XGBoost, outperform deep learning and instance-based methods, achieving the lowest error rates and highest R² scores. These findings confirm that sentiment-enhanced machine learning frameworks are effective in capturing market dynamics. The study highlights the importance of integrating behavioral signals with computational intelligence, paving the way for more robust, transparent, and practical forecasting models in modern financial markets.
References
Bollen, J., Mao, H., & Zeng, X. (2011). Twitter mood predicts the stock market. Journal of Computational Science, 2(1), 1–8.
Chen, H., De, P., Hu, Y. J., & Hwang, B. H. (2016). Wisdom of crowds: The value of stock opinions transmitted through social media. Review of Financial Studies, 27(5), 1367–1403.
Fischer, T., & Krauss, C. (2018). Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270(2), 654–669.
Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 2223–2273.
Lessmann, S., Baesens, B., Seow, H. V., & Thomas, L. C. (2015). Benchmarking state-of-the-art classification algorithms for credit scoring. Journal of the Operational Research Society, 66(5), 740–755.
Nelson, D. M., Pereira, A. C. M., & de Oliveira, R. A. (2017). Stock market’s price movement prediction with LSTM neural networks. International Joint Conference on Neural Networks (IJCNN), 1419–1426.
Araci, D. (2019). FinBERT: Financial sentiment analysis with pre-trained language models. arXiv preprint arXiv:1908.10063.
Li, X., Xie, H., Wang, R., & Cai, Y. (2014). News impact on stock price return via sentiment analysis. Knowledge-Based Systems, 69, 14–23.
Loughran, T., & McDonald, B. (2011). When is a liability not a liability? Textual analysis, dictionaries, and 10‐Ks. The Journal of Finance, 66(1), 35–65.
Nassirtoussi, A. K., Aghabozorgi, S., Wah, T. Y., & Ngo, D. C. L. (2015). Text mining for market prediction: A systematic review. Expert Systems with Applications, 41(16), 7653–7670.
Li, X., Xie, H., Wang, R., & Cai, Y. (2014). News impact on stock price return via sentiment analysis. Knowledge-Based Systems, 69, 14–23.
Hagenau, M., Liebmann, M., & Neumann, D. (2013). Automated news reading: Stock price prediction based on financial news using context-capturing features. Decision Support Systems, 55(3), 685–697.
Downloads
How to Cite
Issue
Section
License
Copyright (c) 2025 International Journal of Engineering, Science and Humanities

This work is licensed under a Creative Commons Attribution 4.0 International License.