A web-based spam detection system built with React, Flask, and scikit-learn, capable of classifying SMS messages as spam or not spam in real-time.
This project was developed as part of our academic internship, where our goal was to build a reliable machine learning model to distinguish between spam and ham (non-spam) SMS messages using Natural Language Processing (NLP) techniques.
We used Pythonβs machine learning ecosystem to train, evaluate, and deploy a lightweight spam classifier accessible via a modern web interface.
- Faruk Khan
- Mridul Roy
- Mriganka Jyoti Deka
- Sanjeev Iqbal Ahmed
- Sourav Sharma
- π Instant SMS Analysis β Get real-time spam detection results
- π Spam Classification β Classifies messages as Spam β or Not Spam β
- β‘ Fast & Lightweight β Efficient predictions through pre-trained model
- π Online Access β Hosted using Render for seamless usage
| Technology | Purpose | Version |
|---|---|---|
| React βοΈ | Frontend UI | 18.2.0+ |
| Flask π | Backend API | 2.3.2+ |
| scikit-learn π | ML Model Training | 1.3.0+ |
| Pandas π | Data Handling | Latest |
| NumPy π’ | Numerical Operations | Latest |
| Axios π | API Integration | Latest |
| Gunicorn π | Production WSGI | Latest |
| Tailwind CSS π¨ | UI Styling | 3.3.0+ |
- π Dataset: SMS Spam Collection Dataset
- π§ ML Techniques:
- Feature Extraction:
TF-IDF Vectorizer - Algorithms:
Multinomial NaΓ―ve Bayes,Logistic Regression - Final Model:
MultinomialNBwithTF-IDF
- Feature Extraction:
- β
Evaluation Accuracy:
97.6%on test dataset - π Evaluation Metrics Used: Accuracy, Precision, Recall, F1-score
π Try it live: https://sms-spam-detector-b15e.onrender.com
- π Add confidence score for predictions
- π Multi-language spam detection
- π Improve dataset with real-world examples
- π₯ Add email spam detection model