Sentiment Analysis of YouTube Comments on the 2025 DPR RI Demonstration Using Machine Learning

Authors

  • Adelia Putri Widyasari Universitas Dian Nuswantoro
  • Muljono Muljono Universitas Dian Nuswantoro

DOI:

https://doi.org/10.30871/jaic.v10i2.12254

Keywords:

DPR RI Demonstration, Machine Learning, Sentiment Classification, Text Classification, Youtube Comment

Abstract

The 2025 DPR RI Demonstration is a national political issue that has triggered a broad response from the Indonesian public, especially through user comments on the YouTube platform. These comments reflect diverse and emotional public opinion, making it relevant to study using a Machine Learning based Sentiment Analysis approach. This study aims to compare the performance of the Support Vector Machine (SVM), Multilayer Perceptron (MLP) based Neural Network (NN), and Random Forest algorithms in classifying YouTube comment sentiments related to the 2025 DPR RI Demonstration issue. Data were obtained through a comment collection process, then processed through text preprocessing and feature weighting stages using the TF-IDF method. The data used in this study were publicly accessible comments, and no personally identifiable information was collected or disclosed to ensure user privacy and ethical data use. Model performance evaluation was conducted using a confusion matrix with accuracy, precision, recall, and F1-score metrics. The results indicate that the SVM algorithm achieved the best performance, with weighted average accuracy, precision, recall, and F1-score values of 96.20%, respectively. Meanwhile, the Neural Network achieved accuracy, precision, recall, and F1-score values of 95.90%. Random Forest produced an accuracy of 88.40%, precision of 88.60%, recall of 88.40%, and an F1-score of 88.50%. These findings indicate that SVM is more effective in handling the complexity of language in comments related to political issues compared to the other two algorithms. The results of this study are expected to be a reference in selecting the right algorithm for analyzing political issue sentiment on social media.

Downloads

Download data is not yet available.

Author Biographies

Adelia Putri Widyasari, Universitas Dian Nuswantoro

I am a student at the Department of Informatics, Universitas Dian Nuswantoro, Indonesia. I am very interested in Natural Language Processing (NLP), particularly sentiment analysis and its applications in text data analysis.

Muljono Muljono, Universitas Dian Nuswantoro

Prof. Dr. Muljono, S.Si., M.Kom. is a lecturer and Professor at the Departement of Informatics, Universitas Dian Nuswantoro, Indonesia. He is actively involved in education, research, and academic development in the field of informatics. His research interests include Computer Vision, Data Mining, and Software Engineering, with a primary area of expertise in Natural Language Processing (NLP). His Scopus Author ID is 7409884994.

References

[1] I. Koswara, “Diskursus Digital dan Suara Publik: Komentar YouTube dalam Kasus #IndonesiaGelap,” Glob. Komunika, vol. 8, no. 2, 2025.

[2] D. Röchert, G. Neubaum, and S. Stieglitz, “Identifying Political Sentiments on YouTube: A Systematic Comparison Regarding the Accuracy of Recurrent Neural Network and Machine Learning Models,” Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics), vol. 12259 LNCS, pp. 107–121, 2020, doi: 10.1007/978-3-030-61841-4_8.

[3] A. N. Syafia, M. F. Hidayattullah, and W. Suteddy, “Studi Komparasi Algoritma SVM Dan Random Forest Pada Analisis Sentimen Komentar Youtube BTS,” J. Inform. J. Pengemb. IT, vol. 8, no. 3, pp. 207–212, 2023, doi: 10.30591/jpit.v8i3.5064.

[4] I. Via Mariska, A. Meiriza, and D. Lestarini, “Comparison of Support Vector Machine and Random Forest Algorithms in Sentiment Analysis of the JMO Mobile Application,” J. Appl. Informatics Comput., vol. 9, no. 5, pp. 2533–2540, 2025, doi: 10.30871/jaic.v9i5.10764.

[5] O. N. Akande, J. Ayoola, S. Misra, R. Ahuja, A. Agrawal, and J. Oluranti, “Application of Support Vector Machine and Convolutional Neural Network for Sentence-Level Sentiment Analysis of Companies Products Review,” Lect. Notes Electr. Eng., vol. 881, pp. 133–145, 2022, doi: 10.1007/978-981-19-1111-8_12.

[6] R. Uma, H. Aafreen Sana, P. Jawahar, and B. V. Rishitha, “Support Vector Machine and Convolutional Neural Network Approach to Customer Review Sentiment Analysis,” 2022 1st Int. Conf. Comput. Sci. Technol. ICCST 2022 - Proc., pp. 239–243, 2022, doi: 10.1109/ICCST55948.2022.10040381.

[7] X. Fan, J. Zhang, and M. Yang, “a Sentiment Analysis Model for Electroencephalogram Signals of Students in Universities Using a Convolutional Neural Network and Support Vector Machine Models,” J. Mech. Med. Biol., vol. 23, no. 9, pp. 1–15, 2023, doi: 10.1142/S0219519423400869.

[8] S. Khomsah, “Sentiment Analysis On YouTube Comments Using Word2Vec and Random Forest,” Telematika, vol. 18, no. 1, p. 61, 2021, doi: 10.31315/telematika.v18i1.4493.

[9] N. Rochmawati, A. K. Zyen, and N. A. Widiastuti, “Comparison of Support Vector Machine (SVM) and Random Forest Algorithms in the Analysis of SOcial Media X User Sentiment Towards the TNI Bill,” J. Appl. Informatics Comput., vol. 9, no. 5, pp. 2854–2860, 2025, doi: 10.30871/jaic.v9i5.10883.

[10] N. Shivsharan, V. Kambli, S. Dabholkar, A. Dalvi, and T. Sukali, “Evaluating Machine Learning Models for Sentiment Analysis of YouTube Comments and Creating an Accessible Web Application for Comment Analysis,” Procedia Comput. Sci., vol. 258, pp. 3165–3174, 2025, doi: 10.1016/j.procs.2025.04.574.

[11] Fenilinas Adi Artanto, “Analisis Sentimen Opini Publik terhadap Fenomena Bunuh Diri Mahasiswa di Twitter Menggunakan Algoritma Naive Bayes,” SATESI J. Sains Teknol. dan Sist. Inf., vol. 4, no. 1, pp. 70–77, 2024, doi: 10.54259/satesi.v4i1.2908.

[12] H. S. Dutta and B. Khan, “YTCommentVerse: A Multi-Category Multi-Lingual YouTube Comment Corpus,” CIKM 2025 - Proc. 34th ACM Int. Conf. Inf. Knowl. Manag., no. December, pp. 6351–6355, 2025, doi: 10.1145/3746252.3761629.

[13] K. E. V Sihombing, M. A. I. Pakereng, U. Kristen, and S. Wacana, “Wawancara Presiden Prabowo Menggunakan Machine,” vol. 4, no. 4, pp. 327–336, 2025.

[14] A. M. Van Der Veen and E. Bleich, “The advantages of lexicon-based sentiment analysis in an age of machine learning,” PLoS One, vol. 20, no. 1 January, pp. 1–19, 2025, doi: 10.1371/journal.pone.0313092.

[15] Y. Fauziah, B. Yuwono, and A. S. Aribowo, “Lexicon Based Sentiment Analysis in Indonesia Languages : A Systematic Literature Review,” RSF Conf. Ser. Eng. Technol., vol. 1, no. 1, pp. 363–367, 2021, doi: 10.31098/cset.v1i1.397.

[16] Z. Jiang, B. Gao, Y. He, Y. Han, P. Doyle, and Q. Zhu, “Text Classification Using Novel Term Weighting Scheme-Based Improved TF-IDF for Internet Media Reports,” Math. Probl. Eng., vol. 2021, no. ii, 2021, doi: 10.1155/2021/6619088.

[17] B. A. Santoso, I. Nugroho, and D. U. Asyfiya, “TIN: Terapan Informatika Nusantara Perbandingan Algoritma Naïve Bayes, Support Vector Machine, dan Random Forest Untuk Analisis Sentimen Komentar Politik Youtube,” TIN Terap. Inform. Nusant., vol. 6, no. 4, pp. 391–400, 2025, doi: 10.47065/tin.v6i4.8326.

[18] K. M. Sagar, “MultiClass Text Classification Using Support Vector Machine,” Interantional J. Sci. Res. Eng. Manag., vol. 07, no. 12, pp. 1–10, 2023, doi: 10.55041/ijsrem27465.

[19] M. Kerasiotis, L. Ilias, and D. Askounis, “Depression detection in social media posts using transformer-based models and auxiliary features,” Soc. Netw. Anal. Min., vol. 14, no. 1, pp. 1–16, 2024, doi: 10.1007/s13278-024-01360-4.

[20] A. Ahmed Bilal, O. Ayhan Erdem, and S. Toklu, “Children’s Sentiment Analysis from Texts by Using Weight Updated Tuned with Random Forest Classification,” IEEE Access, vol. 12, no. May, pp. 70089–70104, 2024, doi: 10.1109/ACCESS.2024.3400992.

[21] R. Yunita and M. Kamayani, “Perbandingan Algoritma SVM Dan Naïve Bayes Pada Analisis Sentimen Kebijakan Penghapusan Kewajiban Skripsi,” Indones. J. Comput. Sci., vol. 12, no. 5, pp. 2879–2890, 2023.

[22] A. Giachanou, P. Rosso, and F. Crestani, “The impact of emotional signals on credibility assessment,” J. Assoc. Inf. Sci. Technol., vol. 72, no. 9, pp. 1117–1132, 2021, doi: 10.1002/asi.24480.

Downloads

Published

2026-04-22

How to Cite

[1]
A. P. Widyasari and M. Muljono, “Sentiment Analysis of YouTube Comments on the 2025 DPR RI Demonstration Using Machine Learning”, JAIC, vol. 10, no. 2, pp. 1729–1740, Apr. 2026.

Issue

Section

Articles

Similar Articles

<< < 3 4 5 6 7 > >> 

You may also start an advanced similarity search for this article.