jarvis icon indicating copy to clipboard operation
jarvis copied to clipboard

📃: Text Classification for Spam Detection

Open Avdhesh-Varshney opened this issue 2 years ago • 25 comments

:red_circle: Title : Text Classification for Spam Detection
:red_circle: Aim : Create a text classification system to detect spam messages using machine learning techniques.
:red_circle: Brief Explanation :

  • Gather a dataset of text messages labeled as spam or not spam.
  • Preprocess the text data and extract relevant features.
  • Train a machine learning model (such as Naive Bayes, SVM, or logistic regression) to classify messages as spam or not spam.
  • Develop an interface where users can input text messages and receive predictions on whether they are spam or not.

Screenshots 📷

N/A


:white_check_mark: To be Mentioned while taking the issue :

  • Full name :
  • What is your participant role? (Mention the Open Source Program name. Eg. GSSOC, SSOC, JWOC, etc.)

Happy Contributing 🚀

All the best. Enjoy your open source journey ahead. 😎

Avdhesh-Varshney avatar Jun 30 '24 12:06 Avdhesh-Varshney

Full name : Siddharth Gupta GSSoc'24 Extended

sid7219 avatar Oct 02 '24 07:10 sid7219

Please assign this topic to me

saniyaahemad12 avatar Oct 02 '24 17:10 saniyaahemad12

@sid7219 @saniyaahemad12 tell me the approach and dataset used for the same?

Avdhesh-Varshney avatar Oct 02 '24 18:10 Avdhesh-Varshney

Approach: Dataset : Use the public dataset "SMS spam collection dataset" Text preprocessing : using libraries like pandas, nltk to tokenizing, lowering, remove stop words and perform stemming or lemmatization. Feature extraction : extract features using TF-IDF vectorizer Train the model : for training, use naive bayes (good for classification tasks) User interface : develop using streamlit components

Name : Ramu Role : GSSoC contributor

Assign this issue to me, to work on this!

ramu-nukavarapu avatar Oct 03 '24 00:10 ramu-nukavarapu

Here is the approach for text classification for spam detection Data Collection: Use a labeled dataset like the SMS Spam Collection dataset. Data Preprocessing: Clean text by removing special characters and stopwords. Tokenize and apply stemming/lemmatization. Feature Extraction: Use TF-IDF to convert text into numerical vectors. Optionally, use Bag of Words model. Model Selection: Train models using Naive Bayes, SVM, and Logistic Regression. Model Training and Testing: Split data into training/testing sets, apply cross-validation. Model Evaluation: Use accuracy, precision, recall, and F1-score to evaluate performance. Interface Development: Develop a user interface with Tkinter for input and spam prediction. If you like the technique please assign this topic to me.

saniyaahemad12 avatar Oct 03 '24 11:10 saniyaahemad12

@ramu-nukavarapu In PR attach the screenshot of the accuracy of the model during training and testing.

Avdhesh-Varshney avatar Oct 04 '24 09:10 Avdhesh-Varshney

@Avdhesh-Varshney okay

Add hackotoberfest label as well

ramu-nukavarapu avatar Oct 04 '24 09:10 ramu-nukavarapu

i like to solve this issue please assign it to me

Name : Aakash

aakashmohole avatar Oct 06 '24 17:10 aakashmohole

i like to solve this issue please assign it to me @Avdhesh-Varshney

sanga28 avatar Jan 04 '25 17:01 sanga28

@Avdhesh-Varshney I Like to solve this issue ,please assign it to me

RumaniSadhukhan170204 avatar Jan 04 '25 17:01 RumaniSadhukhan170204

@Avdhesh-Varshney I'll work on that, thank you for assigning me this task!

sanga28 avatar Jan 06 '25 06:01 sanga28

Hi @Avdhesh-Varshney I can work on this issue, Please assign this issue to me

Rstar-910 avatar Jan 19 '25 04:01 Rstar-910

Hi @Avdhesh-Varshney I can work on this issue, Please assign this issue to me

I am working on it

sanga28 avatar Jan 19 '25 05:01 sanga28

Name: Archita Saha Open Source Program: SSOC4

I have experience with machine learning and am excited to implement this spam detection system. Looking forward to working on this! Here's an overview of the apporach that I will use:

  • Use a clean labeled dataset from Kaggle to begin with.
  • Perform text preprocessing.
  • Apply feature extraction using techniques like TF-ID Vectorizer.
  • Train and evaluate a model
  • Build a minimal frontend where users can input a message and get instant spam/non-spam predictions.

I’m confident in delivering a clean, well-documented solution, and I’ll make sure to follow all contribution guidelines. I request you to kindly assign this issue to me.

architasaha21 avatar Jun 14 '25 14:06 architasaha21

Hi @architasaha21

Build a minimal frontend where users can input a message and get instant spam/non-spam predictions.

You have to integrate the model with jarvis streamlit interface, No need to create the separate FE app

Avdhesh-Varshney avatar Jun 15 '25 05:06 Avdhesh-Varshney

@architasaha21 What's the updates?

Avdhesh-Varshney avatar Jun 22 '25 06:06 Avdhesh-Varshney

Hey @Avdhesh-Varshney , This Issue has not been solved for about a month, please assign this to me :)

007-SARANG avatar Jul 28 '25 04:07 007-SARANG

@007-SARANG If you stuck, plz connect with me!

Avdhesh-Varshney avatar Aug 12 '25 18:08 Avdhesh-Varshney

Ok @Avdhesh-Varshney I have dm you on discord

007-SARANG avatar Aug 12 '25 18:08 007-SARANG

Name: Smriti pandey I am gssoc'25 contributor please assign me here, I want to contribute in this issue

student-smritipandey avatar Aug 14 '25 16:08 student-smritipandey