Log in
Find a journal Publish with us Track your research Search
Intelligent spam filtering and analysis using web automation, report lab, and ensemble machine learning techniques - Progress in Artificial Intelligence

Intelligent spam filtering and analysis using web automation, report lab, and ensemble machine learning techniques

Regular Paper | Published: 27 December 2025
Mr SATHVIK EPPAKAYALA, ✉️SathvikEppakayala23@gmail.com
DOI:https://doi.org/10.5281/zenodo.17854285
📊 57 Accesses
Explore all metrics →

Abstract

The greatest cybersecurity problem of spam emails results in security risks and unnecessary mails in inboxes. To resolve this issue, we developed a real-time automated spam filtering system that efficiently detects and filters spam emails. The goal was to build a model that not only achieves high accuracy but also continuously works without the intervention of a user. We have trained and tested five machine learning classifiers: logistic regression, decision tree, K-nearest neighbors (KNN), Gaussian Naive Bayes, and AdaBoost. We have compared their performances with precision, recall, and F1-score. Among them, AdaBoost has performed the best, showing the highest accuracy in classifying spam and legitimate emails. In order to improve the reliability, we combined and balanced two different spam email datasets so that our model adapts well to the various types of emails. This meant that we implemented a fully automatic system by constructing a web application using Python Flask. We deployed Selenium to get emails from a user's inbox automatically and to classify them real-time. Subsequently, it generates an automatically created PDF report using Report Lab, which highlights the detected patterns of spam mail and the success rate of spam filtering. A hands-free mechanism ensures that this process does not require users to check and go through their spam emails manually and thus increases both efficiency and security. Our results indicated that real-time machine learning-based spam filtering along with automation boosts accuracy and reliability. Our system is scalable and adaptable, so it can be useful for many email platforms. We will try to improve the model further, adapting it in order to follow the evolving techniques of spammers, improving speed of processing, and integrating some additional security features. Our contribution is toward making advanced, real-time spam-filtering solutions able to protect the users from unwanted and harmful e-mails.

Access this article

Log in via an institution → Institutional subscriptions →
📄 Download Full Article (PDF)
Relevant Collection

Explainable AI and NLP Innovations for Understanding Online Social Media via Large Language Models

This collection explores the growing convergence of Natural Language Processing (NLP), Explainable...

Submission deadline 2026-03-31