Skip to content
Open access

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

Sep 2026 · Advanced International Journal for Research · Vol 7 · 0 citations · 29 references

TL;DR

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.

Abstract

The proliferation of mobile communication has led to a significant rise in unsolicited SMS spam messages, posing threats to user privacy, security, and overall mobile experience. Existing rule-based spam filters are increasingly inadequate against evolving spammer tactics, necessitating more adaptive and accurate detection approaches. This study investigates the application of machine learning techniques to text-based SMS spam detection using the UCI SMS Spam Collection Dataset, which comprises 5,572 messages with a pronounced class imbalance of 86.6% ham to 13.4% spam. Three classifiers were evaluated: Multinomial Naive Bayes, Support Vector Machines, and Random Forest, combined with TF-IDF feature extraction and bigram analysis. Hyperparameter optimization was performed via grid search, and model robustness was assessed through 5-fold cross-validation. The Multinomial Naive Bayes classifier with optimized TF-IDF parameters achieved 99% accuracy on the held-out test set, with a spam-class precision of 99.28%, recall of 92.61%, and an F1-score of 95.83%. Cross-validation yielded a mean F1-score of 0.9556, confirming consistent generalization. Feature importance analysis identified promotional terms such as "claim," "prize," and "have won" as the strongest spam indicators, while informal conversational terms were strongly predictive of legitimate messages. These findings demonstrate 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.

Read PDF

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
Conference Aug 2026

A Multi-Dataset Evaluation of Classical ML for SMS Spam Detection: Balancing Accuracy, Efficiency, and Generalizability

SMS remains among the top popular modes of communication, both personally and professionally. However, recent concerns about the security aspect of mobile communications due to SMS spam/smishing messages have emerged. While Deep Learning shows promising results in text classification applications, its massive computing...

K. G., V. V, Darshan M. Patel et al. · 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

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
Conference Aug 2026

Spam Email Detection and Categorization using Deep Learning Techniques

Email has become one of the most widely used forms of communication. Email spam refers to unsolicited messages sent in large volumes. While some spam emails may contain useful information, most are unwanted and can lead to online fraud. Therefore, filtering spam emails from legitimate ones is essential. Effective categ...

Keerththana Kishalathan · 0 citations

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