A Comparative Study of Machine Learning Techniques for Email Spam Detection
Email has become an essential communication medium for individuals, educational institutions, and organisations. However, the increasing volume of unsolicited messages has created challenges related to productivity, privacy, and information security. Spam emails may contain irrelevant advertisements, misleading offers, fraudulent requests, and potentially harmful links. Traditional filtering methods rely on predefined rules and manually maintained lists, which may become less effective when spammers change their message content and communication strategies. Machine learning offers an alternative approach by learning classification patterns from labelled email data. This study presents a comparative analysis framework for four supervised machine learning algorithms used for email spam detection: Multinomial Naive Bayes, Logistic Regression, Decision Tree, and Linear Support Vector Machine (SVM). The study considers text preprocessing, feature extraction using Term Frequency–Inverse Document Frequency (TF-IDF), model training, testing, and performance evaluation. Accuracy, precision, recall, F1-score, confusion matrices, and computational efficiency are considered important measures for evaluating classification quality. Publicly available datasets, including the SpamAssassin public corpus and Enron-Spam, are potential sources of labelled email data for implementing the proposed framework. Illustrative hypothetical results are included to demonstrate how the selected algorithms may be compared and how their performance can be discussed. In the illustrative comparison, Linear SVM records an assumed accuracy of 97.80%, followed by Logistic Regression at 97.10%, Multinomial Naive Bayes at 96.20%, and Decision Tree at 93.40%. These figures are simulated examples and are not measurements obtained from an executed experiment. The actual performance ranking must be established through implementation and testing on a documented dataset. The study provides a structured approach for examining the relative strengths and limitations of traditional machine learning algorithms for email spam detection. It emphasises the importance of consistent experimental conditions, appropriate evaluation metrics, transparent reporting, and careful interpretation of classification errors. The framework may support future research into efficient, reproducible, and adaptable spam-filtering systems.
Authors
- Hariprasad b k
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-19
- DOI
- https://doi.org/10.5281/zenodo.24363964
- Primary Topic
- Spam and Phishing Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00