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
- Devendra Singh (ORCID: https://orcid.org/0000-0002-6536-4302)
- Sumit Saklani
- K. Thapa
Institutions
- Graphic Era University (IN)
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