Code Monkey home page Code Monkey logo

ritessshhh / mailguard Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15 KB

Mail Guard is an advanced ML-based email spam classification system, using Google's Gmail API and NLP techniques to manage Gmail spam folders. Utilizing SVMs and Random Forest algorithms, it trains models for accurate email classification, boasting an impressive 96% accuracy.

Jupyter Notebook 100.00%
google-colab machine-learning neural-network python gmail-api natural-language-processing

mailguard's Introduction

MailGuard

Project Overview

This repository contains the Mail Guard project, a machine learning-based email spam classification system developed to filter and manage your Gmail account's spam folder more effectively. This project leverages the power of Google’s Gmail API and Natural Language Processing (NLP) techniques to retrieve and preprocess emails.

The system utilizes sophisticated algorithms, specifically Support Vector Machines (SVMs) and Random Forest, to train models on preprocessed data with the goal of accurately classifying emails. The project provides an in-depth evaluation of the model’s performance using precision, recall, and F1-score metrics. This system has been rigorously tested and compared against existing state-of-the-art spam filtering systems to ensure optimal spam detection and classification with an impressive accuracy of 96%.

Installation

Before you start, make sure you have a working Python 3.8 (or later) installation.

Clone the repository to your local machine:

git clone https://github.com/ritessshhh/MailGuard
cd MailGuard

Usage

Before starting, make sure you have granted the necessary permissions for your Google account and have your Google API credentials.

Upload the file in jupyter NoteBook or Google Colab to run

Development

The project consists of several key components:

  1. Data Retrieval and Preprocessing: Google’s Gmail API is utilized to fetch emails, followed by text preprocessing using NLP techniques.
  2. Feature Extraction: Key features from the preprocessed emails are extracted for machine learning purposes.
  3. Model Training: Using the features extracted, the system trains models based on SVMs and Random Forest algorithms.
  4. Evaluation: The models are evaluated rigorously using precision, recall, and F1-score metrics.

Evaluation

A comprehensive evaluation has been performed on this system. The system has been compared with existing state-of-the-art spam filtering systems and has showcased superior performance with an accuracy of 96%.

Happy spam filtering!

License

Copyright [2023] [Ritesh Chavan]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

mailguard's People

Contributors

ritessshhh avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.