DETECTION OF YOUTUBE COMMENT SPAM USING XGBOOST: OPTIMIZATION AND COMPARISON OF MACHINE LEARNING ALGORITHMS

YouTube, as the largest video platform in Indonesia, faces significant challenges due to spam in the comment sections, which can reduce the quality of discussions. This study aims to develop a spam detection model for YouTube comments using the Extreme Gradient Boosting (XGBoost) algorithm, optimized through Randomized Search CV. This model is compared with several other algorithms, such as Random Forest, Naïve Bayes, and Support Vector Machine (SVM). The methodology used in this study involves developing a machine learning-based model with a primary focus on the XGBoost algorithm. The dataset used is the YouTube Spam Collection, which underwent preprocessing using Natural Language Processing (NLP) techniques such as tokenization and lemmatization to extract important features from the comments. The model was tested using various test data ratios (20%, 25%, 30%, and 35%) and optimized using Randomized Search CV to determine the best parameter combinations.The results indicate that Random Forest achieved the highest accuracy of 92.34% at a 30% test data ratio, while XGBoost demonstrated stable accuracy across different test data ratios, reaching 91.70%. Compared to previous studies, the accuracy of 92.34% is still lower than the previous results of 96.94%. Nevertheless, this study provides important insights by demonstrating that hyperparameter optimization can significantly improve the performance of machine learning algorithms. Based on these findings, it can be concluded that Random Forest and XGBoost are effective models for detecting spam in YouTube comments, with Random Forest excelling in accuracy and XGBoost offering consistent performance stability.

Authors

Institutions

Publication Details

Journal
JOURNAL OF SCIENCE AND APPLIED ENGINEERING
Published
2025-09-20
DOI
https://doi.org/10.31328/jsae.v8i2.7296
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

DETECTION OF YOUTUBE COMMENT SPAM USING XGBOOST: OPTIMIZATION AND COMPARISON OF MACHINE LEARNING ALGORITHMS

Ni Luh Putu Satyaning Pradnya Paramita, Syahroni Wahyu Iriananda, Rizky Kurniawan
1 citations
JOURNAL OF SCIENCE AND APPLIED ENGINEERING
Spam and Phishing Detection
3.25
article

DETECTION OF YOUTUBE COMMENT SPAM USING XGBOOST: OPTIMIZATION AND COMPARISON OF MACHINE LEARNING ALGORITHMS

Ni Luh Putu Satyaning Pradnya Paramita, Syahroni Wahyu Iriananda, Rizky Kurniawan
article en
1 citations

Abstract

YouTube, as the largest video platform in Indonesia, faces significant challenges due to spam in the comment sections, which can reduce the quality of discussions. This study aims to develop a spam detection model for YouTube comments using the Extreme Gradient Boosting (XGBoost) algorithm, optimized through Randomized Search CV. This model is compared with several other algorithms, such as Random Forest, Naïve Bayes, and Support Vector Machine (SVM). The methodology used in this study involves developing a machine learning-based model with a primary focus on the XGBoost algorithm. The dataset used is the YouTube Spam Collection, which underwent preprocessing using Natural Language Processing (NLP) techniques such as tokenization and lemmatization to extract important features from the comments. The model was tested using various test data ratios (20%, 25%, 30%, and 35%) and optimized using Randomized Search CV to determine the best parameter combinations.The results indicate that Random Forest achieved the highest accuracy of 92.34% at a 30% test data ratio, while XGBoost demonstrated stable accuracy across different test data ratios, reaching 91.70%. Compared to previous studies, the accuracy of 92.34% is still lower than the previous results of 96.94%. Nevertheless, this study provides important insights by demonstrating that hyperparameter optimization can significantly improve the performance of machine learning algorithms. Based on these findings, it can be concluded that Random Forest and XGBoost are effective models for detecting spam in YouTube comments, with Random Forest excelling in accuracy and XGBoost offering consistent performance stability.

JOURNAL OF SCIENCE AND APPLIED ENGINEERINGVol. 8(2)
Universitas Widya Gama Malang (ID)
Openalex Percentile: Top 6%
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.