Journal of System and Technology
Vol. 2 No. 1 (2026): Journal of System & Technology (June Edition)

valuasi Kinerja Lima Algoritma Pembelajaran Mesin dengan SMOTE untuk Klasifikasi Sentimen Komentar YouTube terhadap Kebijakan Purbaya

M. Darma Alfero (Politeknik Negeri Padang)



Article Info

Publish Date
28 Jun 2026

Abstract

The evolution of public policy communication in the digital age has encouraged social media to become a deliberative space that openly reflects the dynamics of public perception and sentiment. This paper aims to conduct a comparative analysis of the performance of several machine learning algorithms in classifying the sentiment of YouTube user comments as a representation of public response to policy communication delivered by Minister Purbaya. The research was conducted using web scraping techniques with the YouTube Data API v3 on three public policy videos, with a total of 6,466 comments. The text data were processed using preprocessing, lexicon-based sentiment labeling, TF-IDF feature weighting, and class imbalance handling via the Synthetic Minority Over-sampling Technique (SMOTE). Five machine learning algorithms were applied, comprising SVM, KNN, RF, NB, and LR. Model performance was evaluated using accuracy, precision, recall, and F1-score metrics. The results showed that SVM produced the most optimal performance with an accuracy value of 0.78 and a consistent F1-score balance across all sentiment classes. These findings highlight the importance of algorithm suitability, feature representation, and data balancing strategies in developing reliable sentiment analysis models for evaluating data-driven public policy communication.

Copyrights © 2026






Journal Info

Abbrev

systec

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering Engineering

Description

Journal of System & Technology (SYSTEC) covers a broad range of research topics within Electrical Engineering, Informatics Engineering, and applied technologies, addressing both theoretical and practical aspects of design, development, and application. Specifically, the scope includes, but is not ...