🔍 Predict Spam or Not in a Click!
SpamShield is an AI-powered SMS spam detection model that analyzes incoming messages and predicts whether they are spam 🚨 or safe ✅. Built with Python & Machine Learning, this tool helps keep your inbox clean and spam-free!
🎯 What It Does:
- Takes an SMS as input 📩
- Predicts Spam or Not Spam instantly ⚡
- Uses a robust Machine Learning model for accuracy 🎯
- Hosted on the web using Streamlit 🌐
📢 Try the Live Demo 👉 SpamShield
🔹 Programming Language: Python 🐍
🔹 ML Libraries: Scikit-learn 🤖, Pandas 📊, NumPy 🔢
🔹 Web Deployment: Streamlit 🚀
✅ Data Collection & Preprocessing 🗂️
✅ Exploratory Data Analysis (EDA) 📊
✅ Machine Learning Model Selection 🤖
✅ Web Interface for Predictions 🌍
✅ Deployed & Ready to Use! 🎯
📌 Dataset Source: Kaggle SMS Spam Collection
📌 5,500+ labeled SMS messages 📨
📌 Preprocessing Steps:
- Handling missing & duplicate values 🧹
- Label encoding the "type" column 🏷️
- Tokenizing text ✂️
- Removing special characters, stopwords & punctuation 🔍
- Converting text to lowercase 🔡
- Stemming words for better feature extraction 🌱
We analyzed the dataset using various techniques:
📊 Visualizations: Bar Charts 📊 | Pie Charts 🥧 | Heatmaps 🔥
📜 Word Frequency Analysis 📝
🌎 Word Cloud for Spam & Non-Spam Messages ☁️
📌 Message Length Analysis (Characters, Words, Sentences)
We tested multiple classifiers to find the best:
✅ Naïve Bayes 🟢
✅ Random Forest 🌳
✅ K-Nearest Neighbors (KNN) 📌
✅ Decision Tree 🌱
✅ Logistic Regression 📉
✅ ExtraTreesClassifier 🍃
✅ Support Vector Classifier (SVC) 💻
🔥 Best Model: Achieved 100% Precision for spam detection!
💡 Built with Streamlit for a smooth user experience!
📝 How It Works:
1️⃣ Enter an SMS message
2️⃣ Click Predict
3️⃣ Get instant results (Spam 🚨 or Not Spam ✅)
🔗 Live Demo: SpamShield
Want to run SpamShield locally? Follow these steps:
git clone https://github.com/Kane-dylan/SpamShield.git
cd SpamShield
pip install -r requirements.txt
streamlit run app.py
💡 Now open your browser and start detecting spam! 🚀
I ❤️ contributions! If you:
- ✅ Found a bug 🐞
- ✅ Have a feature request 🌟
- ✅ Want to improve the model 📈
Feel free to open an issue or pull request at 👉 GitHub Repo
🚀 Let's build a spam-free future together!