English

Predicting The Stock Trend Using News Sentiment Analysis and Technical Indicators in Spark

Statistical Finance 2022-01-31 v1 Machine Learning

Abstract

Predicting the stock market trend has always been challenging since its movement is affected by many factors. Here, we approach the future trend prediction problem as a machine learning classification problem by creating tomorrow_trend feature as our label to be predicted. Different features are given to help the machine learning model predict the label of a given day; whether it is an uptrend or downtrend, those features are technical indicators generated from the stock's price history. In addition, as financial news plays a vital role in changing the investor's behavior, the overall sentiment score on a given day is created from all news released on that day and added to the model as another feature. Three different machine learning models are tested in Spark (big-data computing platform), Logistic Regression, Random Forest, and Gradient Boosting Machine. Random Forest was the best performing model with a 63.58% test accuracy.

Keywords

Cite

@article{arxiv.2201.12283,
  title  = {Predicting The Stock Trend Using News Sentiment Analysis and Technical Indicators in Spark},
  author = {Taylan Kabbani and Fatih Enes Usta},
  journal= {arXiv preprint arXiv:2201.12283},
  year   = {2022}
}

Comments

4 pages, 5 figures

R2 v1 2026-06-24T09:07:49.226Z