Skip to content

An Intelligent Email Spam Detection System Using Machine Learning and Natural Language Processing

Aug 2026 · International Scientific Journal of Engineering and Management · 0 citations

TL;DR

An intelligent email spam detection system that combines Natural Language Processing (NLP) with supervised machine learning to classify email text as spam or non-spam is presented.

Abstract

Abstract Email spam is a persistent problem in digital communication because unsolicited advertisements, phishing attempts, malicious links, and fraudulent messages consume attention and can expose users and organizations to security risks. This paper presents an intelligent email spam detection system that combines Natural Language Processing (NLP) with supervised machine learning to classify email text as spam or non-spam. The system processes labeled email datasets through data cleaning, tokenization, stop-word removal, lemmatization, and feature-vector formation using Bag-of-Words (BoW) and Term Frequency-Inverse Document Frequency (TF-IDF). Five classifiers—Naïve Bayes, Logistic Regression, Random Forest, K-Nearest Neighbors (KNN), and Support Vector Machine (SVM)—are evaluated. The project also implements a proposed ensemble decision in which predictions from the individual classifiers are combined by majority voting. The supplied project experiments use an 80:20 training/testing split and compare models using accuracy, precision, and F1-score. The documented results show that TF-IDF performs better than BoW across the tested models and that the proposed ensemble reaches 99.0% accuracy, 98.5% precision, and 98.6% F1-score in the reported evaluation. A Streamlit interface allows users to enter email text or upload a text file and view the classification, model confidence, extracted nouns, and named entities. Keywords: Email Spam Detection, Machine Learning, Natural Language Processing, TF-IDF, Random Forest, Ensemble Learning, Text Classification

View source

Similar papers

Open access Aug 2026

Email Security: Predictive Analysis of Spam Detection Using Machine Learning

The proposed system utilizes textual features such as word frequency, message structure, and content patterns to classify emails as spam or legitimate (ham) through supervised learning techniques, and is developed using Python and Scikit-learn.

M. K, S. Nandhini · 0 citations
Open access Sep 2026

Spam Email Classification Using TF-IDF and Classical Machine Learning on the Enron-Spam Corpus

Unsolicited email is a persistent operational and security burden and many high-performing neural approaches require computational and deployment costs that are not necessary for resource-constrained filtering systems. This paper tries to fill this gap by providing a rigorous and reproducible comparison of lightweight...

N. K. Hadi, Aymen Adil · 0 citations
Open access Sep 2026

Comparative Evaluation of Machine Learning Classifiers for SMS Spam Detection with Optimized Feature Extraction

It is demonstrated that lightweight probabilistic classifiers, when paired with effective feature engineering, can achieve near-perfect spam detection performance and offer a practical, interpretable foundation for real-world SMS filtering systems.

O. Ogunnusi · 0 citations
Conference Open access 2026

Machine-learning and DNN-based Email Phishing Recognition Methods

Email spam and phishing remain one of the threats in the information era that harms information and financial security. This study, based on machine learning methods, uses a Kaggle dataset containing over 250,000 samples to classify emails into three categories: legitimate, phishing, and spam. A pre-processing pipeline...

Yuan-Dong Wu · 0 citations
Conference Aug 2026

A Context-Aware NLP Model for Automated Spam Message Identification

Spam communications remain a persistent cybersecurity threat, consuming network bandwidth, reducing productivity, and delivering malicious content such as phishing links and malware. Traditional rule-based and keyword-centric filtering methods struggle against modern spam that employs contextual manipulation and obfusc...

D. A, K. M, Tarun M et al. · 0 citations
Open access Sep 2026

An Explainable and Reproducible Lightweight Machine Learning Framework for SMS Spam Detection Using TF-IDF and Linear Support Vector Classification

The continued use of short message service (SMS) for personal, institutional and transactional communication has made mobile messaging a persistent target for unsolicited advertising, social engineering and fraud-oriented content. This paper presents a reproducible and explainable lightweight machine learning framework...

Pradyumna Mishra, Akash Yadav · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.