GitHub RadarBlue team tool
Multiclass spam, ham and phishing message detection system using NLP, TF-IDF and Logistic Regression with Streamlit deployment. Primary language: Jupyter Notebook. 9 stars.
Project links:Open GitHub projectBack to radar
An end-to-end Machine Learning solution that classifies SMS and text messages into Ham, Spam, and Phishing using NLP techniques and Logistic Regression.
---
This project implements a multiclass text classification system to classify messages into:
The system uses Natural Language Processing (NLP) techniques and Machine Learning to preprocess text, extract features using TF-IDF, and classify messages using a Logistic Regression model. A Streamlit web application is also developed for real-time predictions.
---
---
Spam and phishing messages pose significant risks in communication systems. This project aims to build a robust machine learning model that can automatically detect and classify such messages to improve security and filtering systems.
---
The project follows a complete NLP pipeline:
---
Raw Data → Preprocessing → TF-IDF → Model Training → Evaluation → Model Saving → Deployment---
✔ Text Cleaning
✔ Tokenization
✔ Stopword Removal
✔ TF-IDF Vectorization
✔ Multiclass Classification
✔ Real-time Prediction
✔ Model Serialization
✔ Interactive Streamlit Interface ---
| Class | Precision | Recall | F1-Score | | -------- | --------- | ------ | -------- | | Ham | 0.99 | 0.98 | 0.98 | | Spam | 0.97 | 0.96 | 0.97 | | Phishing | 0.87 | 0.90 | 0.88 |
The model achieves strong performance across all classes with effective phishing detection.
---
https://kaggle.com/My_Dataset-Link
https://kaggle.com/My_Model-Link
https://kaggle.com/My-Notebook-Link
These resources ensure full reproducibility of the project.
---
---
---
spam-phishing-detection/
│
├── app.py
├── train.py
├── requirements.txt
├── README.md
│
├── models/
│ ├── model.pkl
│ └── vectorizer.pkl
│
├── data/
│ └── dataset_sample.csv
│
├── assets/
│ └── confusion_matrix.png
│
└── .gitignore---
git clone https://github.com/dharshiyan/spam-phishing-detection.git
cd spam-phishing-detectionpip install -r requirements.txtstreamlit run app.py---
| Message | Prediction | | ----------------------------------------------- | ---------- | | "Congratulations! You won a free iPhone" | Spam | | "Let's meet tomorrow at 5 PM" | Ham | | "Verify your bank account password immediately" | Phishing |
---
The final Logistic Regression model achieved excellent performance on the test dataset with an overall accuracy of 95.8%, demonstrating strong generalization capability across all three message categories.
The model successfully distinguishes phishing attempts from legitimate messages while maintaining high precision and recall. ---
---
Developed by
DHARSHIYAN
Artificial Intelligence & Data Science Undergraduate
Machine Learning | Deep Learning | Computer Vision | NLP
---
This project is licensed under the MIT License.