Skip to content

Blog / Financial Models & Research

Market News Sentiment: Can a Model Understand Financial Headlines?

During quarterly results season, we come across hundreds of headlines covering earnings, revenue growth, order wins, management guidance and other company announcements. Reading each headline and understanding whether the news is positive, negative or neutral takes time.

But financial headlines are not always straightforward. A company reporting a decline in profit could still see its stock price rise if the results were better than market expectations.

Market News Sentiment: Can a Model Understand Financial Headlines?

I wanted to understand how much of this context a simple text classification model could capture without using a large language model.

I generated 3,000 synthetic financial news headlines covering 10 fictional companies, written in the style of Indian stock market news. Each headline was assigned a positive, negative or neutral sentiment.

I used TF-IDF to convert individual words and word pairs into numerical features and logistic regression to classify the headlines. The model was trained on 2,400 headlines and tested on the remaining 600.

The overall accuracy was 98.5%. The model correctly classified all headlines in the test group using familiar sentiment words. When I introduced unfamiliar words such as “soars”, “surges” and “tumbles”, accuracy dropped to approximately 88%.

The more interesting part of the experiment was testing eight headlines where understanding the context mattered more than recognising individual words.

For example, a headline reporting that a company’s profit increased but missed market expectations was classified as positive. Another headline reporting that a company’s losses had narrowed was classified as negative.

The model incorrectly classified all eight headlines in this additional test.

Looking at the model coefficients, words such as “climbs”, “rises” and “grows” were strongly associated with positive sentiment, while “falls”, “drops” and “declines” were associated with negative sentiment. The model had learned these associations but struggled when the meaning depended on the relationship between different parts of a sentence.

This also explains why the initial accuracy was so high. The training and testing headlines were generated from the same set of templates, making their structure relatively predictable.

I would like to extend this experiment using actual financial news and compare the results with a finance-specific language model such as FinBERT. It would also be useful to separate the sentiment of a company announcement from the actual market reaction, as the two are not necessarily the same.

The current experiment uses synthetic headlines and predefined sentiment labels. It does not predict stock price movements or establish whether news sentiment can be used to generate investment returns.

This is part of my own learning around financial data, natural language processing and machine learning, not an investment recommendation.