Skip to content

SMS-Spam-Filter πŸ“¨ uses TensorFlow and Keras to spot spam SMS messages. Trained on the SMS Spam Collection Dataset πŸ“©, it preprocesses data, visualizes insights, builds a model, and checks accuracy for better spam detection βœ‰οΈ

Notifications You must be signed in to change notification settings

nihalshx/SMS-Spam-Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

SMS-Spam-Filter [Spam SMS Detection πŸ“¨]

SMS-Spam-Filter πŸ“¨ utilizes TensorFlow and Keras to detect spam SMS messages. Trained on the SMS Spam Collection Dataset πŸ“©, it preprocesses data, visualizes insights, builds a model, and evaluates accuracy for improved spam detection βœ‰οΈ.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/spam-sms-detection.git
    cd spam-sms-detection
  2. Install the required libraries:

    pip install pandas matplotlib seaborn wordcloud tensorflow keras scikit-learn

Dataset

The dataset used is the SMS Spam Collection Dataset, consisting of SMS labeled as ham (legitimate) or spam.

Preprocessing

  1. Load and explore the dataset:

    import pandas as pd
    
    data = pd.read_csv("/content/SMSSpamCollection", sep='\t', names=["label", "message"])
  2. Visualize the data using word clouds

Model Architecture

The model uses an Embedding layer followed by a GlobalAveragePooling1D layer and Dense layers

About

SMS-Spam-Filter πŸ“¨ uses TensorFlow and Keras to spot spam SMS messages. Trained on the SMS Spam Collection Dataset πŸ“©, it preprocesses data, visualizes insights, builds a model, and checks accuracy for better spam detection βœ‰οΈ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published