Stock Price Trend Prediction Based on News Headlines

Authors

  • Linxu Dai

DOI:

https://doi.org/10.61173/atjs5f64

Keywords:

News Headlines, Stock Price Prediction, Machine Learning, Natural Language Processing

Abstract

Behavioral finance shows market sentiment affects market trends. And news headlines, as information carriers with emotional elements. Analyzing the day’s trending news headlines enables the prediction of the day’s market trends. This study focuses on using news headlines to forecast stock price trends, aiming to capture sentiment’s impact on overall stock price changes macroscopically. It uses 25 most viewed Yahoo Finance news headlines (2000–2016) as text data, combined with corresponding Dow Jones Industrial Average (DJIA) fluctuations. Algorithms like Random Forest, XGBoost, Logistic Regression, Naive Bayes, and Support Vector Machine (SVM) were used to learn the mapping between headline features and stock price movements for prediction. Among these models, Logistic Regression performed best: highest accuracy (85.71%), most balanced predictive ability for rises/falls (0.01 F1-score difference), and fast training speed (1.26 seconds). And all models achieved over 83% accuracy, verifying news headlines’ sentiment value for stock price prediction and providing a reference for further research.

References

[1] Hossain M A, Karim R, Thulasiram R, Bruce N D B and Wang Y, Hybrid Deep Learning Model for Stock Price Prediction, 2018 IEEE Symposium Series on Computational Intelligence (SSCI), Bangalore, India, 2018, pp. 1837-1844, doi: 10.1109/SSCI.2018.8628641.

[2] Cheng L C, Huang Y H and Wu M E, Applied attentionbased LSTM neural networks in stock prediction, 2018 IEEE International Conference on Big Data (Big Data), Seattle, WA, USA, 2018, pp. 4716-4718, doi: 10.1109/ BigData.2018.8622541.

[3] Melyani N A, Angraini M and Afdal M, Application of Bidirectional Gated Recurrent Unit and Stacked Gated Recurrent Unit Algorithms for Stock Price Prediction, 2025 International Conference on Advancement in Data Science, E-learning and Information System (ICADEIS), Bandung, Indonesia, 2025, pp. 1-6, doi: 10.1109/ICADEIS65852.2025.10933033.

[4] Li T, Liu Z, Shen Y, Wang X, Chen H, & Huang S. MASTER: Market-Guided Stock Transformer for Stock Price Forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, 38(1), 162-170. 2024. https://doi.org/10.1609/aaai. v38i1.27767

[5] Lin F, Li P, Lin Y, Chen Z, You H and Feng S, Kernel-based Hybrid Interpretable Transformer for High-frequency Stock Movement Prediction, 2022 IEEE International Conference on Dean&Francis Linxu Dai Data Mining (ICDM), Orlando, FL, USA, 2022, pp. 241-250, doi: 10.1109/ICDM54844.2022.00034.

[6] Parvatha L S, Naga Veera Tarun D, Yeswanth M and Kiran J S, Stock Market Prediction Using Sentiment Analysis and Incremental Clustering Approaches, 2023 9th International Conference on Advanced Computing and Communication Systems (ICACCS), Coimbatore, India, 2023, pp. 888-893, doi: 10.1109/ICACCS57279.2023.10112768.

[7] Harguem S et al., Machine Learning Based Prediction of Stock Exchange on NASDAQ 100: A Twitter Mining Approach, 2022 International Conference on Cyber Resilience (ICCR), Dubai, United Arab Emirates, 2022, pp. 01-10, doi: 10.1109/ ICCR56254.2022.9996008.

[8] Martineau J, & Finin T. Delta TFIDF: An Improved Feature Space for Sentiment Analysis. Proceedings of the International AAAI Conference on Web and Social Media, 3(1), 258-261. 2009. https://doi.org/10.1609/icwsm.v3i1.13979

[9] Du Z J, Huang A G, Wermers R, Wu W F, Language and Domain Specificity: A Chinese Financial Sentiment Dictionary, Review of Finance, Volume 26, Issue 3, May 2022, Pages 673– 719, https://doi.org/10.1093/rof/rfab036

[10] Elahi A and Taghvaei F, Combining Financial Data and News Articles for Stock Price Movement Prediction Using Large Language Models, 2024 IEEE International Conference on Big Data (BigData), Washington, DC, USA, 2024, pp. 4875-4883, doi: 10.1109/BigData62323.2024.10825449.

Downloads

Published

2025-10-23