🚀 An end-to-end AI-powered Fake News Detection system built using LSTM Neural Networks and deployed as a live web application on Hugging Face.

With the rapid growth of digital media, misinformation and fake news spread quickly across social platforms.
This project aims to build a deep learning-based system that classifies news articles as REAL or FAKE using Natural Language Processing (NLP).
The system is trained on labeled news data and deployed as an interactive web application.
- ✅ Text preprocessing and cleaning pipeline
- ✅ LSTM-based Deep Learning model
- ✅ ~95% validation accuracy
- ✅ Real-time prediction via Streamlit Web App
- ✅ Deployed on Hugging Face Spaces
- ✅ End-to-end ML workflow implementation
The deep learning architecture consists of:
- Embedding Layer – Converts words into dense vectors
- LSTM Layer (64 units) – Captures sequential dependencies
- Dropout Layer (0.3) – Prevents overfitting
- Dense Output Layer (Sigmoid) – Binary classification (Real/Fake)
Loss Function: Binary Crossentropy
Optimizer: Adam
- Data Collection (Kaggle Fake News Dataset)
- Data Preprocessing
- Remove special characters
- Lowercasing
- Tokenization
- Padding sequences
- Model Training using TensorFlow/Keras
- Model Saving (.keras format)
- Streamlit App Development
- Deployment on Hugging Face Spaces
- 📈 Training Accuracy: ~96%
- 📈 Validation Accuracy: ~95%
- ⚡ Real-time prediction performance
- 🌍 Successfully deployed online
🔗 Hugging Face Deployment Link:
https://huggingface.co/spaces/RakeshBabuGajula/Fake-News-Detector

- Python
- TensorFlow / Keras
- Scikit-learn
- Pandas & NumPy
- Streamlit
- Hugging Face Spaces
fake-news-detector/ │ ├── app.py ├── fake_news_model.keras ├── tokenizer.pkl ├── requirements.txt ├── README.md
Clone the repository:
git clone https://github.com/your-username/fake-news-detector.git
cd fake-news-detector
Install dependencies:
pip install -r requirements.txt
Run the application:
streamlit run app.py
- Upgrade to BERT / Transformer model
- Add multilingual support
- Add explainable AI (highlight suspicious words)
- URL-based news prediction
- Mobile app version
- TensorFlow Documentation
- Streamlit Documentation
- Hugging Face Spaces
- Kaggle Fake News Dataset
Rakesh Babu Gajula
B.Tech - Computer Science Engineering
AI & Machine Learning Enthusiast
⭐ If you like this project, give it a star!