Comparison of Support Vector Machines and K-Nearest Neighbor Algorithm Analysis of Spam Comments on Youtube Covid Omicron

Sudianto Sudianto, Juan Arton Arton Masheli, Nursatio Nugroho, Rafi Wika Ananda Rumpoko, Zarkasih Akhmad


Every time a new variant of Coronavirus (Covid-19) appears, the
media or news platforms review it to find out whether the new variant
is more dangerous or contagious than before. One of the media or
platforms that is fast in presenting news in videos is YouTube.
YouTube is a social media that can upload videos, watch videos, and
comment on the video. The comment field on YouTube videos cannot
be separated from spam comments that annoy other users who want to
follow or participate in the comment column. Indication of spam
comments is still done by observing one by one; this is very inefficient
and time-consuming. This study aims to create a model that can
classify spam on YouTube comments. The classification method uses the SVM (Support Vector Machines) algorithm and the KNN (K-Nearest Neighbor) algorithm to identify spam comments or not with comment data taken from Omicron's Covid-19 news video on national news channels. The classification results show that the SVM method is superior inaccuracy with the Linear SVC algorithm of 75.12%, SVC of 76.11%, and Nu-SVC of 77.11%. While the KNN algorithm with k=2 is 65.67%, k=4 is 64.51%, k=6 is 62.35%.


Comment, Covid-19, KNN, spam, SVM, YouTube

Full Text:


DOI: Abstract - 0 PDF - 0


  • There are currently no refbacks.

Copyright (c) 2022 sudianto sudianto

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

3rd Floor, Dept. of Informatics, Faculty of Science and Technology, UIN Syarif Hidayatullah Jakarta
Jl. Ir. H. Juanda No.95, Cempaka Putih, Ciputat Timur. 
Kota Tangerang Selatan, Banten 15412
Tlp/Fax: +62 21 74019 25/ +62 749 3315
Handphone: +62 8128947537

Creative Commons Licence
Jurnal Teknik Informatika by Prodi Teknik Informatika Universitas Islam Negeri Syarif Hidayatullah Jakarta is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at


JTI Visitor Counter: View JTI Stats

 Flag Counter