Data Science & NLPAcademic project2025

Financial News Sentiment Classification

Analytical Question

How do classic vectorization techniques compare against deep neural network architectures in classifying market sentiment from condensed financial headlines?

Built an NLP pipeline to evaluate sentiment polarity in financial news. Compared Bag-of-Words (BoW) and Term Frequency-Inverse Document Frequency (TF-IDF) feature engineering across Random Forest and Deep Neural Network (DNN) classifiers, achieving 79% accuracy.

Methodology & Stack:
PythonNLTKScikit-learnTensorFlowDeep Learning
01 / Context & Problem

Problem Framing and Analytical Objective

Financial market sentiment can shift within seconds of headline publication. Unlike general conversational text, financial journalism employs subtle linguistic nuance, domain-specific terminology, and condensed sentence structures where single words ('cut', 'beat', 'drag', 'soar') dictate market sentiment direction.

This project explored the trade-offs between traditional statistical text representations and dense neural network models in classifying financial sentiment accurately.

02 / Architecture & Methodology

Analytical Steps and Modeling Workflow

01

Text Preprocessing & Tokenization

Cleaned headline corpora using custom financial stopword filters, lemmatization, and n-gram extraction to preserve critical phrases like "rate cut" or "revenue miss".

02

Vectorization Modeling

Constructed comparative feature sets utilizing Bag-of-Words (BoW) frequency matrices and TF-IDF representations with sublinear term frequency scaling.

03

Classifier Architectures

Trained and tuned Random Forest ensembles and multi-layer Deep Neural Networks (DNN) with dropout regularization to avoid overfitting on high-dimensional text vectors.

04

Evaluation & Error Analysis

Assessed precision, recall, and F1-scores across positive, neutral, and negative sentiment classes, performing detailed error analysis on ambiguous headlines.

03 / Model Assumptions

Baseline Assumptions and Parameter Inputs

  • Labeled ground truth dataset validated against financial domain annotator benchmarks.
  • Independent headline evaluation without incorporating external price action context.
04 / Findings & Outcomes

Analytical Judgement and Observed Insights

Outcome 01

TF-IDF with unigrams and bigrams paired with Deep Neural Networks achieved a peak test accuracy of 79.2%, outperforming basic BoW Random Forest by 7.4%.

Outcome 02

Neutral headlines presented the highest classification difficulty due to factual reporting lacking explicit emotional vocabulary, illustrating the necessity of financial domain embeddings.

05 / Scope & Limitations

Critical Limitations and Uncertainty Boundaries

Model Boundaries and Known Caveats
  • Bag-of-Words and TF-IDF representations discard sequential word order; modern transformer architectures (e.g. FinBERT) capture contextual relationships more comprehensively.