Jurnal Algoritma
Vol 23 No 1 (2026): Jurnal Algoritma

Klasifikasi Sentimen Opini Publik pada Isu Anggaran DPR Menggunakan Support Vector Machine Berbasis Pembobotan Kelas

Julio Siringoringo (Universitas Prima Indonesia)
Sapril Perdamean Tanjung (Universitas Prima Indonesia)
Hery Budi Santoso Lukito (Universitas Prima Indonesia)
Jackleenius Prancis Rumapea (Universitas Prima Indonesia)
Yennimar (Universitas Prima Indonesia)



Article Info

Publish Date
15 Jun 2026

Abstract

This study classifies YouTube users’ sentiment toward the issue of the Indonesian House of Representatives’ allowance increase using a TF-IDF-based Support Vector Machine (SVM). The dataset consists of 26,074 cleaned comments, with a class distribution of 74.61 percent negative and 25.39 percent positive. Initial labeling was performed using a lexicon-based approach and was validated on a limited scale through manual annotation of 150 samples, with a Cohen’s Kappa value of 0.8298. The Linear Kernel SVM model with `class_weight=‘balanced’` achieved an accuracy of 97.10 percent, an F1-score of 98.05 percent for the negative class, and 94.40 percent for the positive class. Using `class_weight=‘balanced’` did not improve all metrics, but it increased the positive class recall from 95.47 percent to 96.15 percent. The comparison results show that the Linear Kernel outperforms the RBF Kernel on high-dimensional data. Despite the high classification performance, 151 misclassified data points were found, influenced by contextual ambiguity, sarcasm, slang, and lexical coverage limitations. Further research is recommended to expand manual validation and utilize contextual semantic features.

Copyrights © 2026






Journal Info

Abbrev

algoritma

Publisher

Subject

Computer Science & IT

Description

Jurnal Algoritma merupakan jurnal yang digunakan untuk mempublikasikan hasil penelitian dalam bidang Teknologi Informasi (TI), Sistem Informasi (SI), dan Rekayasa Perangkat Lunak (RPL), Multimedia (MM), dan Ilmu Komputer (Computer ...