Dominion Akinrotimi
Back to Projects
PythonNLPTF-IDFscikit-learn

Fake News Detection with TF-IDF

The problem: fact-checkers can't read every article. A first-pass filter that flags likely misinformation lets them spend their time where it counts.

What I built: a classifier trained on 6,306 labelled articles (half fake, half real) that reads the title and body text and predicts which kind it is.

View the code on GitHub

Results

Model (tuned)AccuracyMacro F1
Logistic Regression92.2%0.922
Random Forest90.5%0.905
Naive Bayes88.7%0.887

Scored once on 1,262 held-out articles. The best model catches 92.9% of fake articles, and 91.7% of the articles it flags as fake really are fake.

How it works

Limitations

Need an AI or machine learning system like this?

I build and deploy models that solve real problems, from clinical research to products in production.