The Performance of Support Vector Machine in Classifying Public Sentiment toward Student Suicide Cases
DOI:
https://doi.org/10.56705/ijodas.v7i2.431Keywords:
Sentiment Analysis, Support Vector Machine, YouTube Comments, Text MiningAbstract
The increasing popularity of social media has created a large volume of user-generated content that can be used to measure public opinion on sensitive social issues. A student suicide case that attracted much public attention was widely discussed on YouTube. The purpose of this study is to evaluate the performance of the Support Vector Machine (SVM) algorithm in classifying public sentiment towards the case by using comments collected from YouTube. For data collection, 5000 comments were scraped from a YouTube video uploaded to the Denny Sumargo channel using the YouTube Data API. The data collected were manually grouped into positive and negative sentiment categories. The sentiment analysis process included several steps of text pre-processing, such as cleansing, case normalization, tokenization, stop-word removal, and stemming. Feature extraction was done using Term Frequency-Inverse Document Frequency (TF-IDF), and the class imbalance was addressed using Synthetic Minority Over-sampling Technique (SMOTE). The dataset was split into a training and a testing set at 80:20. The experimental results show that the SVM model achieved 99.96% accuracy on the training set and 89.25% on the test set. In addition, the model produced balanced evaluation metrics, with accuracy, recall, and F1-score values close to 89%. The results indicate that the SVM algorithm is effective and robust for sentiment classification of Indonesian social media comments, especially on sensitive social issues. The study adds to the body of knowledge on machine learning–driven sentiment analysis to understand public responses in the digital sphere.
Downloads
References
[1] 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, Jul. 2025, doi: https://doi.org/10.35200/ex.v15i2.159.
[2] D. Marganingsih, H. Oktavianto, and G. Abdurrahman, “Analisis Sentimen Komentar Youtube Masterchef Indonesia Menggunakan Algoritma Support Vector Machine dan Gaussian Naïve Bayes,” Jurnal Informatika dan Teknologi Pendidikan, vol. 5, no. 1, May 2025, doi: https://doi.org/10.59395/jitp.v5i1.117.
[3] M. R. Kana, N. Rahmi, and M. Mulkal, “Penggunaan Machine Learning Algoritma Support Vector Machine (SVM) Untuk Mengidentifikasi Kadar Pasir Besi di Kabupaten Aceh Besar,” Jurnal Pertambangan dan Lingkungan, vol. 5, no. 1, p. 36, Jul. 2024, doi: https://doi.org/10.31764/jpl.v5i1.23216.
[4] R. R. G. D. M. S. Desti Mualfah1), “Analisis Sentimen Komentar YouTube TvOne Tentang Ustadz Abdul Somad Dideportasi Dari Singapura Menggunakan Algoritma SVM,” Apr. 2023.
[5] D. Atmajaya, A. Febrianti, H. Darwis, I. Artikel Abstrak, and K. Kunci, “Metode SVM dan Naive Bayes untuk Analisis Sentimen ChatGPT di Twitter,” Indonesian Journal of Computer Science Attribution, vol. 12, no. 4, p. 2173, Aug. 2023.
[6] H. Herlawati, R. T. Handayanto, P. D. Atika, F. N. Khasanah, A. Y. P. Yusuf, and D. Y. Septia, “Analisis Sentimen Pada Situs Google Review dengan Naïve Bayes dan Support Vector Machine,” Jurnal Komtika (Komputasi dan Informatika), vol. 5, no. 2, pp. 153–163, Nov. 2021, doi: https://doi.org/10.31603/komtika.v5i2.6280.
[7] V. Fitriyana et al., “Analisis Sentimen Ulasan Aplikasi Jamsostek Mobile Menggunakan Metode Support Vector Machine,” Apr. 2023.
[8] N. Hendrastuty, A. Rahman Isnain, and A. Yanti Rahmadhani, “Analisis Sentimen Masyarakat Terhadap Program Kartu Prakerja Pada Twitter Dengan Metode Support Vector Machine,” vol. 6, no. 3, 2021.
[9] Andika Mahesa 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, Jul. 2025, doi: https://doi.org/10.35200/ex.v15i2.159.
[10] B. Savita and D. D. Gore, “Sentiment Analysis on Twitter Data Using Support Vector Machine,” International Journal of Computer Science Trends and Technology, vol. 4.
[11] F. Putrawansyah, “Penerapan Metode Support Vector Machine Terhadap Klasifikasi Jenis Jambu Biji,” JIKO (Jurnal Informatika dan Komputer), vol. 8, no. 1, p. 193, Feb. 2024, doi: https://doi.org/10.26798/jiko.v8i1.988.
[12] Ade Dwi Dayani, Yuhandri, and G. Widi Nurcahyo, “Analisis Sentimen Terhadap Opini Publik pada Sosial Media Twitter Menggunakan Metode Support Vector Machine,” Jurnal KomtekInfo, pp. 1–10, Mar. 2024, doi: https://doi.org/10.35134/komtekinfo.v11i1.439.
[13] Chely Aulia Misrun, E. Haerani, M. Fikry, and E. Budianita, “Analisis sentimen komentar youtube terhadap Anies Baswedan sebagai bakal calon presiden 2024 menggunakan metode naive bayes classifier,” Jurnal CoSciTech (Computer Science and Information Technology), vol. 4, no. 1, pp. 207–215, Apr. 2023, doi: https://doi.org/10.37859/coscitech.v4i1.4790.
Published
Issue
Section
License
Copyright (c) 2026 I Gusi Gede Bagus Ngurah Sarjana, Made Leo Radhitya, Ni Wayan Suardiati Putri

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Authors retain copyright and full publishing rights to their articles. Upon acceptance, authors grant Indonesian Journal of Data and Science a non-exclusive license to publish the work and to identify itself as the original publisher.
Self-archiving. Authors may deposit the submitted version, accepted manuscript, and version of record in institutional or subject repositories, with citation to the published article and a link to the version of record on the journal website.
Commercial permissions. Uses intended for commercial advantage or monetary compensation are not permitted under CC BY-NC 4.0. For permissions, contact the editorial office at ijodas.journal@gmail.com.
Legacy notice. Some earlier PDFs may display “Copyright © [Journal Name]” or only a CC BY-NC logo without the full license text. To ensure clarity, the authors maintain copyright, and all articles are distributed under CC BY-NC 4.0. Where any discrepancy exists, this policy and the article landing-page license statement prevail.










