Spam Email Detection using K-Nearest Neighbors: An Enhanced Approach

Spam emails represent a large portion of global email traffic and pose several risks, such as phishing, fraud, and malware attacks. Traditional spam filters are ineffective in combating spam that is ever-evolving, which makes the problems more complex in nature. Therefore, advanced machine learning techniques need to be adopted. This study attempts to integrate an optimized K-Nearest Neighbors (KNN) model for spam detection that implements Term Frequency-Inverse Document Frequency (TF-IDF) for text representation, along with Principal Component Analysis (PCA) for feature selection. Classification is performed with relevance to the neighbors with more distance using an adaptive distance weighting algorithm. Enhanced KNN techniques improve the metrics on Naive Bayes and Support Vector Machines (SVM) with respect to accuracy, precision, recall, and F1 score. Experimental results demonstrated the classification accuracy to amount 96.4 %, exceeds the existing systems. This study develops efficient spam detection systems having the capability of adapting novel spam methods.

Authors

Institutions

Publication Details

Published
2025-03-19
DOI
https://doi.org/10.1109/iciccs65191.2025.10985096
Citations
1
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
3.25
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Spam Email Detection using K-Nearest Neighbors: An Enhanced Approach

Devendra Singh, Sumit Saklani, K. Thapa
1 citations
Spam and Phishing Detection
3.25
article

Spam Email Detection using K-Nearest Neighbors: An Enhanced Approach

Devendra Singh, Sumit Saklani, K. Thapa
article en
1 citations

Abstract

Spam emails represent a large portion of global email traffic and pose several risks, such as phishing, fraud, and malware attacks. Traditional spam filters are ineffective in combating spam that is ever-evolving, which makes the problems more complex in nature. Therefore, advanced machine learning techniques need to be adopted. This study attempts to integrate an optimized K-Nearest Neighbors (KNN) model for spam detection that implements Term Frequency-Inverse Document Frequency (TF-IDF) for text representation, along with Principal Component Analysis (PCA) for feature selection. Classification is performed with relevance to the neighbors with more distance using an adaptive distance weighting algorithm. Enhanced KNN techniques improve the metrics on Naive Bayes and Support Vector Machines (SVM) with respect to accuracy, precision, recall, and F1 score. Experimental results demonstrated the classification accuracy to amount 96.4 %, exceeds the existing systems. This study develops efficient spam detection systems having the capability of adapting novel spam methods.

Graphic Era University (IN)
Openalex Percentile: Top 9%
Spam and Phishing Detection
3.25
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.