SpamShield is a full-stack AI-powered web application that detects whether an SMS message is Spam or Ham (Safe) using Natural Language Processing and Machine Learning.
The project began as an NLP classification model and was later transformed into a production-ready full-stack web application with a modern responsive user interface.
Users can paste suspicious SMS messages and instantly receive spam detection predictions through a live deployed web application.
π https://sms-spam-detector-kzfg.onrender.com
- AI-powered SMS spam detection
- Real-time message classification
- NLP text preprocessing pipeline
- TF-IDF vectorization
- Multinomial Naive Bayes classification
- REST API backend using Django REST Framework
- Modern responsive frontend built with React
- Beautiful UI designed using Tailwind CSS + Stitch-inspired design
- Full-stack deployment on Render
- Production-ready frontend/backend integration
- React.js
- Axios
- Tailwind CSS
- Lucide React Icons
- Vite
- Python
- Django
- Django REST Framework
- django-cors-headers
- Pandas
- NumPy
- NLTK
- Scikit-learn
- TF-IDF Vectorizer
- Multinomial Naive Bayes
- Render
SMS Spam Collection Dataset
Dataset contains:
- 5,572 SMS messages
- Real-world spam/ham labeled messages
- Binary classification dataset
SMS Message Input
β Lowercase Conversion
β Remove Numbers
β Remove Punctuation
β Stopword Removal
β TF-IDF Vectorization
β Multinomial Naive Bayes Prediction
β Spam / Ham Output
Accuracy: 97.13%
Model used:
Multinomial Naive Bayes
Spam
Congratulations! You won a free iPhone. Click now!
Result:
π¨ Spam
Ham
Hey, where are you? Call me when you're free.
Result:
β
Ham
spamshield/
β
βββ backend/
β βββ config/
β βββ predictor/
β βββ model.pkl
β βββ vectorizer.pkl
β βββ requirements.txt
β
βββ frontend/
β βββ src/
β βββ public/
β βββ package.json
β
βββ spam_classifier.py
βββ README.mdcd backend
pip install -r requirements.txt
python manage.py runserverBackend runs at:
http://127.0.0.1:8000cd frontend
npm install
npm run devFrontend runs at:
http://localhost:5173Frontend + Backend deployed on Render
Deployment includes:
- React frontend build using Vite
- Django backend hosting
- Static asset serving
- ML model pickle loading
- API integration
- Production build automation
- Email spam detection
- URL phishing detection
- User authentication
- Spam history dashboard
- Dark mode UI
- Mobile-first PWA version
- Confidence score display
GitHub: https://github.com/sivapriyanka-dev
Passionate about Machine Learning, NLP, full-stack development, and building real-world AI applications π