Comparative Analysis of Text Classification Techniques for Phishing and Smishing Detection Using Term Frequency–Inverse Document Frequency and Gemini Sentence Embeddings

This study presents an approach to phishing and smishing detection using text classification algorithms and two feature extraction techniques: term frequency–inverse document frequency (TF-IDF) and Gemini sentence embeddings. The research uses a curated, self-collected dataset of 27,000 messages, including 2,000 synthetic records to increase linguistic diversity. With TF-IDF, the support vector classifier (SVC) achieved a training accuracy of 97.85% and a test accuracy of 89.37%, indicating a generalization gap. Multilayer perceptron (MLP) and stochastic gradient descent classifiers achieved test accuracies of 88.28% and 86.06%, respectively. Sentence embeddings showed stronger performance, with SVC achieving 94.69% test accuracy, followed by MLP at 92.70% and K-nearest neighbors (KNN) at 92.35%. The decision tree classifier showed comparatively lower performance, with test accuracies of 78.04% using TF-IDF and 64.04% using sentence embeddings. Overall, sentence embeddings outperformed TF-IDF in the evaluated experimental setting. Unlike studies evaluating traditional features or semantic embeddings separately, this work provides a controlled comparison across feature representations, classifiers, and communication channels (email and SMS). The study examines generalization behavior, model stability, and feature representation effects beyond peak accuracy, contributing a structured evaluation framework for natural language processing-based cybersecurity research.

Authors

Institutions

Publication Details

Journal
AI Computer Science and Robotics Technology
Published
2026-11-03
DOI
https://doi.org/10.5772/acrt.20250154
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Analysis of Text Classification Techniques for Phishing and Smishing Detection Using Term Frequency–Inverse Document Frequency and Gemini Sentence Embeddings

Kavita S. Oza, Annasaheb M. Chougule, Rohit B. Diwane, Vishal T. Patil
AI Computer Science and Robotics Technology
Spam and Phishing Detection
article

Comparative Analysis of Text Classification Techniques for Phishing and Smishing Detection Using Term Frequency–Inverse Document Frequency and Gemini Sentence Embeddings

Kavita S. Oza, Annasaheb M. Chougule, Rohit B. Diwane, Vishal T. Patil
article en

Abstract

This study presents an approach to phishing and smishing detection using text classification algorithms and two feature extraction techniques: term frequency–inverse document frequency (TF-IDF) and Gemini sentence embeddings. The research uses a curated, self-collected dataset of 27,000 messages, including 2,000 synthetic records to increase linguistic diversity. With TF-IDF, the support vector classifier (SVC) achieved a training accuracy of 97.85% and a test accuracy of 89.37%, indicating a generalization gap. Multilayer perceptron (MLP) and stochastic gradient descent classifiers achieved test accuracies of 88.28% and 86.06%, respectively. Sentence embeddings showed stronger performance, with SVC achieving 94.69% test accuracy, followed by MLP at 92.70% and K-nearest neighbors (KNN) at 92.35%. The decision tree classifier showed comparatively lower performance, with test accuracies of 78.04% using TF-IDF and 64.04% using sentence embeddings. Overall, sentence embeddings outperformed TF-IDF in the evaluated experimental setting. Unlike studies evaluating traditional features or semantic embeddings separately, this work provides a controlled comparison across feature representations, classifiers, and communication channels (email and SMS). The study examines generalization behavior, model stability, and feature representation effects beyond peak accuracy, contributing a structured evaluation framework for natural language processing-based cybersecurity research.

AI Computer Science and Robotics TechnologyVol. 5
Shivaji University (IN)
Openalex Percentile: Top 10%
Spam and Phishing Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon