Fake News Detection System

Desktop NLP app that classifies a news text as real or fake using TF-IDF and 6 machine-learning models, with comparison charts, your-own-CSV training and a check history.

  • Price: ₹1,499
  • Category: AI / ML
  • Technology: Python, Tkinter, scikit-learn (TF-IDF), pandas, Matplotlib, SQLite
  • Includes: Source code + database
  • Suitable for: BCA / B.Sc CS, MCA / M.Sc CS, B.E / B.Tech CSE & IT

Project overview

Fake news spreads fast and misleads readers, which makes automatic detection a favourite NLP project. This desktop application reads a news headline or article and predicts whether it looks real or fake. The text is converted into TF-IDF word and word-pair features and six models - Logistic Regression, Naive Bayes, Linear SVM, Random Forest, Decision Tree and K-Nearest Neighbours - are trained in the background and compared with accuracy, precision, recall and F1 score, a bar chart and a confusion matrix. The best model is saved automatically and used on the Predict screen, which shows the result with a confidence percentage and a probability chart. A demo dataset of 1,600 synthetic news texts is included, clearly labelled as such; with one click on 'Use my own CSV file' the student can train on a real public dataset (for example the Kaggle Fake and Real News data) and compare the results. A dataset explorer shows the class balance, text-length chart and the most common words, and every check is stored in a history that can be exported to CSV.

Modules

  1. Login: Admin login with a salted password hash; the password can be changed from the Home screen.
  2. Home: Shows records, classes, the active model and its accuracy.
  3. Dataset explorer: Browse the texts; class balance, text length chart, most common words; import your own CSV or restore the demo data.
  4. Train & Compare: Train 6 models on TF-IDF features in the background; accuracy, precision, recall, F1 table; bar chart; confusion matrix; CSV export.
  5. Check a news text (Predict): Paste a headline or article, get REAL / FAKE with confidence and a probability chart; sample loader.
  6. History: Every check saved with time and text; export to CSV or clear.

Requirements

  • Python 3.11
  • Internet once, to install the libraries (about 3 minutes)
  • Windows 10 / 11

How to run this project

  1. Install Python 3.11 from python.org and tick "Add python.exe to PATH" during setup.
  2. Extract the zip and open the project folder (STUDENT_GUIDE.md explains every step in simple words).
  3. Double-click `1_INSTALL.bat` once and wait until it says [OK] (about 3 minutes; it downloads the libraries into a private .venv folder).
  4. Double-click `2_RUN.bat` to start the project. If it does not start, double-click `CHECK_SETUP.bat` and read what it says.
  5. Log in with admin / admin123.
  6. Open Train & Compare and click Train: compare the 6 models and open the confusion matrix. Open Predict, click 'Load a sample record' and Predict; then paste your own sentence such as 'SHOCKING secret they hide from you!!!'.

More AI / ML projects