← All projects
AI / Machine Learning · NLP

Fake News Detection — an NLP classifier that shows its reasoning

Classifies an article as real or fake, with a confidence score and the words that drove it.

Most fake-news projects are a pasted Kaggle notebook that reports 99% accuracy and cannot explain a single prediction. This one builds the NLP pipeline properly — cleaning, tokenizing, TF-IDF, a trained classifier, with an optional transformer upgrade — reports real metrics with a confusion matrix, and surfaces the exact words that pushed a decision. It is built to answer the one question that ends most of these vivas honestly: what does your model get wrong, and why?

Suits
MCA ·B.Tech ·M.Tech
Level
Advanced
Live sessions
8
Seats per college
1 / year

What it does

  • Paste or upload an article and get real / fake with a confidence score
  • Explainability — the top words that pushed the prediction each way
  • A confusion matrix and honest precision / recall, not just accuracy
  • Batch-classify a CSV of articles at once
  • Admin option to retrain the model on new labelled data
  • A FastAPI service behind a clean React front end

What the sessions cover

  1. 01The NLP pipeline: cleaning, tokenizing, and vectorizing text
  2. 02TF-IDF and a classifier baseline that actually generalises
  3. 03Evaluation: the confusion matrix and why accuracy lies on imbalance
  4. 04Explainability — reading feature weights back into words
  5. 05An optional transformer upgrade and when it is worth it
  6. 06Serving the model with FastAPI
  7. 07The React UI for single and batch classification
  8. 08Deployment and a full mock viva on the error analysis

Stack

Pythonscikit-learnNLTKTF-IDFFastAPIReact

How it works

Text is cleaned (lower-cased, URLs and punctuation removed, stop words dropped with NLTK, words lemmatised) and turned into TF-IDF features over unigrams and bigrams, capped at the most informative few thousand terms.

Logistic regression and a linear SVM (PassiveAggressive is compared too) are trained on those features with a stratified train and test split. Logistic regression is kept for the live service because its coefficients are directly interpretable and its probabilities double as the confidence score.

For explanation, the service multiplies each word's TF-IDF value in the submitted article by its model coefficient and returns the words pushing hardest towards real and towards fake. The React front end highlights those words in the text, so the prediction comes with its reasons.

The data

Public labelled datasets such as the ISOT Fake News dataset from the University of Victoria (about 44,000 articles) or LIAR (about 12,800 short statements from PolitiFact, six truthfulness labels). The project discusses the known flaw in ISOT: real articles mostly come from one wire service, so a model can learn the source's writing style, for example the word Reuters, instead of truthfulness. Those giveaway tokens are removed before training.

The hard parts examiners ask about

Leakage through the source

With ISOT, a classifier can score near 99 per cent just by spotting the dateline of the real articles. Removing source markers and reporting the drop in accuracy is the most important result in the project.

Accuracy is not enough

The report shows precision, recall and F1 per class and a confusion matrix, because the cost of calling a true story fake differs from the cost of missing a fake one.

What the model cannot do

It learns writing patterns, not facts. It cannot check whether a claim is true, and the project states that limit plainly rather than calling it a lie detector.

Viva questions on this project

What is TF-IDF?
Term frequency multiplied by inverse document frequency. A word scores high when it is frequent in this article but rare across the whole corpus, so common words such as said get little weight and distinctive words get more.
Why logistic regression and not a deep model?
On TF-IDF features it performs close to heavier models, trains in seconds, and its coefficients show which words drive each prediction. Explainability was a requirement, so the simpler model wins.
Your accuracy is 99 per cent. Is the model that good?
No, and that is the point worth explaining. In ISOT the real articles share a source and style, so the model learns the source. After removing those markers the score drops, and the lower number is the honest one.
What is the difference between precision and recall here?
Precision for fake is how many articles flagged fake really were fake. Recall is how many of the fake articles were caught. Raising one usually lowers the other, and the threshold decides the trade.
Can this detect a brand-new fake story?
Only if it is written like the fake articles it trained on. It does not verify facts, so a fabricated story written in a neutral news style can pass. That limitation belongs in the report.

Pick what you need

Direct UPI / bank transfer in monthly installments. Sessions start after the first installment; handover is after the final installment. Full terms — including what happens if you stop midway.

Source

₹6,000

single payment

  • Full source code
  • Local setup guide
  • Sample dataset / seed data
  • One handover call
Enquire about Source

Academic

₹11,000

or ₹5,500/month × 2

  • Everything in Source
  • Project report (synopsis + full document)
  • Presentation deck
  • ER / DFD / architecture diagrams
  • Deployment walkthrough
Enquire about Academic

Mentored

Most picked

₹18,000

or ₹6,000/month × 3

  • Everything in Academic
  • 8 live sessions on Google Meet
  • Line-by-line code walkthrough
  • Viva question prep + mock viva
  • One module varied for you (dataset / domain)
  • WhatsApp support until submission
Enquire about Mentored
Opening 3 seats

This page has no reviews on it yet. Be the reason it does.

The first 3 students get 40% off in exchange for an honest review and permission to show your finished project here. Same build, same sessions, same handover — the discount is the price of going first, and it is not coming back once those seats are gone.

Claim a seat on WhatsApp

Two things I hold myself to

  • Only 1 students from your college get this project in an academic year. On the Mentored tier one module is varied for you — the dataset, the domain, or a feature — so no two submissions read the same.
  • You build nothing. You just have to be able to explain it. The project is delivered finished — code, report, diagrams, deployed. Then daily 60-minute sessions on Google Meet after 8:00 PM IST, walking the code you are submitting, ending in a mock viva. Turn up and you will know it well enough to answer anything the panel asks.

Enquire about this project

Tell me your submission deadline and which tier fits. You get a session schedule and an installment split back — usually within a day.