Analisis Komentar Youtube Terhadap Kebijakan Bebas Impor Oleh Pemerintah Pusat Menggunakan Support Vector Machine
DOI:
https://doi.org/10.47065/bulletincsr.v6i3.995Keywords:
Sentiment Analysis; YouTube; Free Import Policy; Support Vector Machine; TF-IDFAbstract
YouTube has become an important platform for expressing public opinion on government policies, including the free import policy. This study aims to analyze the sentiment of YouTube user comments regarding the free import policy using the Support Vector Machine (SVM) algorithm. The data were collected through web scraping using the YouTube Data API v3 from a Kompas.com video, resulting in 3,267 raw comments. The research stages include text preprocessing, feature extraction using Term Frequency–Inverse Document Frequency (TF-IDF), lexicon-based sentiment labeling, and sentiment classification using SVM. To address data imbalance, the Synthetic Minority Oversampling Technique (SMOTE) was applied. Model performance was evaluated using a confusion matrix with accuracy, precision, recall, and F1-score metrics. The results show that the SVM model achieved an accuracy of 77.00% without tuning and 75.15% after hyperparameter optimization, with improved balance across sentiment classes. These findings indicate that SVM is effective for sentiment classification of YouTube comments.
Downloads
References
R. Firdaus, R. Al Hariri, and H. F. Amran, “Sentimen Analisis Masyarakat Tentang Penetapan Hari Raya Idul Adha Tahun 2023 Pada Video Youtube Menggunakan Algoritma Random Forest dan Support Vector Machine,” J. Fasilkom, vol. 14, no. 1, pp. 278–285, 2024, doi: 10.37859/jf.v14i1.7012.
R. T. Adek, Z. Fitri, and S. Chairani Siegar, “Analisis Sentimen Komentar Pada Saluran Youtube Beauty Vlogger Berbahasa Indonesia Menggunakan Metode Support Vector Machine,” J. Algoritm., vol. 5, no. 2, pp. 164–175, 2025, doi: 10.35957/algoritme.v5i2.9692.
D. Marganingsih, H. Oktavianto, and G. Abdurrahman, “Analisis Sentimen Komentar Youtube Masterchef Indonesia Menggunakan Algoritma Support Vector Machine dan Gaussian Naïve Bayes,” J. Inform. dan Teknol. Pendidik., vol. 5, no. 1, pp. 16–26, 2025, doi: 10.59395/jitp.v5i1.117.
Y. I. Muasaroh, Z. Fatah, and A. Baijuri, “Analisis Sentimen Komentar Youtube Terhadap Isu Ijazah Presiden Jokowi menggunakan Support Vector Machine dan Random Forest,” Pros. Semnas 2025 Sekol. Tinggi Teknol. Dumai, vol. 1, no. 2, pp. 2581–267, 2025, [Online]. Available: https://ejurnal.sttdumai.ac.id/index.php/prosidingsemnas/article/view/1546/680
M. I. Sultan and M. Akbar, “Analisis Sentimen Pemecatan Jokowi Pada Komentar Publik YouTube Tempo.co,” vol. 07, no. 02, pp. 125–140, 2025, [Online]. Available: https://ejournal.uit-lirboyo.ac.id/index.php/kopis/article/view/6888/2187
S. Pratama, Majduddin, and M. Triawan, “Klasifikasi Sentimen Komentar pada Video ‘Rendang Hilang di Palembang’ oleh Willy Salim Menggunakan Algoritma Support Vector Machine (SVM),” SISKOMTI J. Sist. Inf. Komput. dan Teknol. Inf., vol. 7, no. 1, pp. 47–55, 2025, doi: 10.54342/625mqn95.
A. A. Nurrahman, M. Mauladi, and A. Rahman, “Analisis Sentimen Masyarakat terhadap Kenaikan Harga Bahan Bakar Minyak Menggunakan Support Vector Machine dan SMOTE,” sudo J. Tek. Inform., vol. 4, no. 2, pp. 50–56, 2025, doi: 10.56211/sudo.v4i2.908.
F. F. Abdulloh and I. R. Pambudi, “Analisis Sentimen Pengguna Youtube Terhadap Program Vaksin Covid-19,” CSRID (Computer Sci. Res. Its Dev. Journal), vol. 13, no. 3, p. 141, 2021, doi: 10.22303/csrid.13.3.2021.141-148.
F. Caroline, R. G. S. Budi, and M. E. Al Rivan, “Analisis Sentimen Masyarakat terhadap Kasus Korupsi PT. Timah Menggunakan Metode Support Vector Machine,” J. Ilmu Komput. dan Inform., vol. 4, no. 1, pp. 43–50, 2024, doi: 10.54082/jiki.141.
H. Hidayat, F. Santoso, and L. F. Lidimillah, “Analisis Sentimen Pengguna YouTube Tentang Rohingya Menggunakan Algoritma SVM (Support Vector Machine),” G-Tech J. Teknol. Terap., vol. 8, no. 3, pp. 1729–1738, Jul. 2024, doi: 10.33379/gtech.v8i3.4497.
A. M. Putra, Candra Saputra, Rahmaddeni, Safril Irsandi, and Vawana Muzaki, “Analisis Sentimen Masyarakat Terhadap Kasus Gas LPG 3 Kg Pada Youtube Kompas Menggunakan Metode Support Vector Machine,” Explore, vol. 15, no. 2, pp. 163–171, 2025, doi: 10.35200/ex.v15i2.159.
R. Asrianto and M. Herwinanda, “Analisis sentimen kenaikan harga kebutuhan pokok dimedia sosial youtube menggunakan algoritma support vector machine,” J. CoSciTech (Computer Sci. Inf. Technol., vol. 3, no. 3, pp. 431–440, Dec. 2022, doi: 10.37859/coscitech.v3i3.4368.
N. A. Wahyuni, D. P. Ayu, and H. Irsyad, “Analisis Sentimen di Youtube Terhadap Kenaikan UKT Menggunakan Metode Support Vector Machine,” Arcitech J. Comput. Sci. Artif. Intell., vol. 4, no. 1, p. 57, Jun. 2024, doi: 10.29240/arcitech.v4i1.10829.
T. Muhayat, A. Fauzi, and J. Indra, “Analisis Sentimen Terhadap Komentar Video Youtube Menggunakan Support Vector Machines,” Progresif J. Ilm. Komput., vol. 19, no. 1, p. 231, 2023, doi: 10.35889/progresif.v19i1.1060.
A. N. Syafia, M. F. Hidayattullah, and W. Suteddy, “Studi Komparasi Algoritma SVM Dan Random Forest Pada Analisis Sentimen Komentar Youtube BTS,” vol. 8, no. 3, pp. 207–212, 2023, [Online]. Available: https://pdfs.semanticscholar.org/7766/7b4bdc15a13c4644b1c2d17811ebf60d47d5.pdf
A. Wijayanto and A. D. Defara, “Analisis Sentimen Komentar Youtube Mengenai Vaksin Covid-19 Menggunakan Support Vector Machine.” [Online]. Available: http://pilar.unmermadiun.ac.id/index.php/pilarteknologi
N. A. Laia and S. P. Barus, “Analisis Sentimen Pengguna Youtube Pada Video Berjudul ‘10 Tahun Jokowi Jadi Presiden,’” JIKA (Jurnal Inform., vol. 9, no. 2, p. 169, 2025, doi: 10.31000/jika.v9i2.13470.
L. Rofiqi and M. Akbar, “Analisis Sentimen Terkait RUU Perampasan Aset dengan Support Vector Machine,” JEKIN - J. Tek. Inform., vol. 4, no. 3, pp. 529–538, 2024, doi: 10.58794/jekin.v4i3.824.
S. A. S. Mola, P. R. Lete, B. J. A. J. A. Pa, Triyanto, and T. Widiastuti, “Analisis Sentimen Menggunakan Metode Naive Bayes Dan Metode Support Vector Machine Pada Kasus Pelantikan Artis Sebagai Anggota Anggota Dpr Ri Tahun 2024,” HOAQ (High Educ. Organ. Arch. Qual. J. Teknol. Inf., vol. 15, no. 1, pp. 22–32, 2024, doi: 10.52972/hoaq.vol15no1.p22-32.
A. A. Syam, G. Hardy M, A. Salim, D. F. Surianto, and M. Fajar B, “Analisis Teknik Preprocessing Pada Sentimen Masyarakat Terkait Konflik Israel-Palestina Menggunakan Support Vector Machine,” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., vol. 9, no. 3, pp. 1464–1472, 2024, doi: 10.29100/jipi.v9i3.5527.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Komentar Youtube Terhadap Kebijakan Bebas Impor Oleh Pemerintah Pusat Menggunakan Support Vector Machine
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2026 Ignasius Aditya Anggoro Putra, Salmon Salmon, Kusnandar Kusnandar

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













