[Paper Review] Stock trend prediction using news sentiment analysis
This paper proposes a machine learning approach to predict stock trends by analyzing sentiment in financial news articles using three classification models—Random Forest (RF), Support Vector Machine (SVM), and Naïve Bayes. The models classify news sentiment as positive or negative, and experiments show the RF and SVM models achieve over 80% accuracy, significantly outperforming random labeling (50%) by 30 percentage points.
Efficient Market Hypothesis is the popular theory about stock prediction. With its failure much research has been carried in the area of prediction of stocks. This project is about taking non quantifiable data such as financial news articles about a company and predicting its future stock trend with news sentiment classification. Assuming that news articles have impact on stock market, this is an attempt to study relationship between news and stock trend. To show this, we created three different classification models which depict polarity of news articles being positive or negative. Observations show that RF and SVM perform well in all types of testing. Naïve Bayes gives good result but not compared to the other two. Experiments are conducted to evaluate various aspects of the proposed model and encouraging results are obtained in all of the experiments. The accuracy of the prediction model is more than 80% and in comparison with news random labeling with 50% of accuracy; the model has increased the accuracy by 30%.
Motivation & Objective
- To investigate the relationship between financial news sentiment and future stock price movements.
- To evaluate the effectiveness of natural language processing techniques in predicting stock trends using unstructured news data.
- To compare the performance of multiple machine learning models—RF, SVM, and Naïve Bayes—in sentiment-based stock prediction.
- To demonstrate that sentiment extracted from news articles can yield statistically significant predictive power for stock direction.
- To validate the model's accuracy against a random baseline (50%) to establish meaningful performance improvement.
Proposed method
- Collected financial news articles related to specific companies for sentiment analysis.
- Preprocessed text data using standard NLP techniques such as tokenization, stopword removal, and lemmatization.
- Applied three supervised learning models—Random Forest, SVM, and Naïve Bayes—for binary sentiment classification (positive/negative).
- Trained models on labeled news articles where sentiment was determined through manual or rule-based labeling.
- Evaluated model performance using standard metrics, with accuracy as the primary evaluation criterion.
- Compared the predictive accuracy of the models against a random baseline (50% accuracy) to assess real-world utility.
Experimental results
Research questions
- RQ1Can sentiment extracted from financial news articles reliably predict future stock price trends?
- RQ2How do different machine learning models (RF, SVM, Naïve Bayes) compare in classifying news sentiment for stock prediction?
- RQ3To what extent does sentiment-based prediction improve upon random chance (50% accuracy) in stock trend forecasting?
- RQ4What is the impact of non-quantifiable textual data (news articles) on stock market movement prediction?
- RQ5Which model architecture yields the highest accuracy in sentiment-driven stock trend prediction?
Key findings
- The Random Forest and SVM models achieved a prediction accuracy of over 80% in classifying stock trend direction based on news sentiment.
- Naïve Bayes produced good results but underperformed compared to RF and SVM in sentiment-based stock prediction.
- The proposed model improved prediction accuracy by 30 percentage points compared to random labeling (50% accuracy), demonstrating significant predictive power.
- The results confirm a meaningful relationship between news sentiment and subsequent stock price movements, supporting the use of textual data in financial forecasting.
- The study validates that sentiment analysis of financial news can serve as a reliable signal for stock trend prediction when combined with robust machine learning models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.