Optimization of K Value in KNN Algorithm for Spam and HAM Classification in SMS Texts

Spam refers to the unsolicited and repetitive sending of messages to others via electronic devices without their consent. This activity, commonly known as spamming, is typically carried out by individuals referred to as spammers. SMS spam, which often originates from unknown sources, frequently contains advertisements, phishing attempts, scams, and even malware. Such spam messages can be pervasive, affecting almost all mobile phone numbers, thereby causing significant disruptions to communication by delivering irrelevant content. The persistent nature of spam messages underscores the need for effective filtering mechanisms. This study investigates the application of the K-Nearest Neighbors (KNN) algorithm for classifying SMS messages as either spam or non-spam (ham). The findings demonstrate that KNN, when optimized through various methods for determining the appropriate value of K, can achieve an impressive average accuracy of 99.16% in classifying SMS spam. This high level of accuracy indicates that KNN is a reliable method for spam detection.

Authors

Institutions

Publication Details

Journal
International Journal Software Engineering and Computer Science (IJSECS)
Published
2024-08-20
DOI
https://doi.org/10.35870/ijsecs.v4i2.2681
Citations
2
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
1.56
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimization of K Value in KNN Algorithm for Spam and HAM Classification in SMS Texts

Donny Avianto, Arief Hermawan, Ferryma Arba Apriansyah
2 citations
International Journal Software Engineering and Computer Science (IJSECS)
Spam and Phishing Detection
1.56
article

Optimization of K Value in KNN Algorithm for Spam and HAM Classification in SMS Texts

Donny Avianto, Arief Hermawan, Ferryma Arba Apriansyah
article en
2 citations

Abstract

Spam refers to the unsolicited and repetitive sending of messages to others via electronic devices without their consent. This activity, commonly known as spamming, is typically carried out by individuals referred to as spammers. SMS spam, which often originates from unknown sources, frequently contains advertisements, phishing attempts, scams, and even malware. Such spam messages can be pervasive, affecting almost all mobile phone numbers, thereby causing significant disruptions to communication by delivering irrelevant content. The persistent nature of spam messages underscores the need for effective filtering mechanisms. This study investigates the application of the K-Nearest Neighbors (KNN) algorithm for classifying SMS messages as either spam or non-spam (ham). The findings demonstrate that KNN, when optimized through various methods for determining the appropriate value of K, can achieve an impressive average accuracy of 99.16% in classifying SMS spam. This high level of accuracy indicates that KNN is a reliable method for spam detection.

International Journal Software Engineering and Computer Science (IJSECS)Vol. 4(2)
Universitas Teknologi Yogyakarta (ID)
Openalex Percentile: Top 13%
Spam and Phishing Detection
1.56
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.