Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrktsm/spam-email-recognizer
Long Short-Term Memory (LSTM) network trained to classify emails as spam or non-spam. It processes email content to make accurate predictions and can be integrated into projects for efficient spam detection and email management.
https://github.com/mrktsm/spam-email-recognizer
data-preprocessing keras lstm-neural-network model-architecture nltk numpy pandas performance-evaluation scikit-learn spam-classification-model tenserflow training-the-model
Last synced: 10 days ago
JSON representation
Long Short-Term Memory (LSTM) network trained to classify emails as spam or non-spam. It processes email content to make accurate predictions and can be integrated into projects for efficient spam detection and email management.
- Host: GitHub
- URL: https://github.com/mrktsm/spam-email-recognizer
- Owner: mrktsm
- License: apache-2.0
- Created: 2024-11-29T00:03:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T10:43:04.000Z (17 days ago)
- Last Synced: 2025-01-10T11:30:08.957Z (17 days ago)
- Topics: data-preprocessing, keras, lstm-neural-network, model-architecture, nltk, numpy, pandas, performance-evaluation, scikit-learn, spam-classification-model, tenserflow, training-the-model
- Language: Jupyter Notebook
- Homepage:
- Size: 20.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Spamurai: Gmail Spam Protection Extension Powered by This Neural Network
The Spamurai Gmail spam protection extension is powered by the neural network developed in this repository. By classifying incoming emails as spam or non-spam (ham), this AI-driven solution enhances Gmail's defense against unwanted emails, helping users manage their inbox effectively.
[Explore Spamurai](https://spamurai.online/)
## Features
- Classifies emails as spam or non-spam (ham) using advanced machine learning
- Helps improve email organization by filtering spam effectively
- Additional safety checks for Gmail (more details on the website)## Training the Model
This repository contains the Jupyter notebook used for training the spam classification model. The notebook details the entire process, from data preparation to model evaluation. Here's a brief overview of the steps involved:
### Data Preparation
I use a dataset of labeled emails (around 200,000 emails from Kaggle) to train the model. The data is balanced by downsampling, and preprocessing steps like removing punctuation and stopwords are applied.You can access the email dataset used for training [here](https://www.kaggle.com/datasets/uciml/sms-spam-collection-dataset).
### Model Building
A Long Short-Term Memory (LSTM) model is used to classify emails. The model uses an LSTM architecture to classify emails based on the content of the email body. The model is trained using TensorFlow and Keras.### Evaluation
The model's performance is evaluated using accuracy (you can extend it to other metrics like precision, recall, and F1 score as needed).## Setup Instructions
1. Clone the repository:
```bash
git clone https://github.com/your-username/spamurai.git
```
2. Run the Jupyter notebook to train the model and evaluate its performance.## Usage
Now you can integrate the model into your own project. Once the model is trained, you can use it to classify incoming emails, marking them as spam or non-spam based on the classification results.## License
Distributed under the Apache-2.0 License. See `LICENSE` for more information.