Sentiment Analysis of Indonesian YouTube Comments Using Machine Learning and Deep Learning Algorithms

  • Fahreza Alhadi Sekolah Tinggi Teknologi Ronggolawe
  • Adhika Pramita Widyassari Sekolah Tinggi Teknologi Ronggolawe

Abstract

YouTube provides a comment section that reflects public sentiment toward an issue. The large volume of comments makes manual analysis inefficient, requiring automated sentiment analysis. This study compares the performance of machine learning and deep learning algorithms in classifying Indonesian YouTube comments. The dataset consists of 364 comments collected using the YouTube Data API and classified into positive, negative, and neutral sentiments. The data were processed through text preprocessing and represented using TF-IDF for machine learning models, while the deep learning model employed a Long Short-Term Memory (LSTM) architecture. The evaluated algorithms include Naive Bayes, Support Vector Machine (SVM), K-Nearest Neighbor, Decision Tree, Multi-Layer Perceptron (MLP), and LSTM. Model performance was evaluated using accuracy, precision, recall, and F1-score. The results show that SVM achieved the best performance, followed by MLP and Naive Bayes, while LSTM performed the worst due to limited data size and class distribution. This study indicates that traditional machine learning remains effective for sentiment analysis on small Indonesian-language datasets.

References

Fahrezi, M., Pratama, Y. B., & Pramudiyantoro, A. (2025). Analisis Sentimen Debat Publik Pilpres 2024 Menggunakan Metode Algoritma LSTM dan IndoBERT Pada Platform Youtube. 02(03), 1936–1961.
Maulana, B. A., & Fahmi, M. J. (2024). Sentiment Analysis of Pluang Applications With Naive Bayes and Support Vector Machine ( SVM ) Algorithm Analisis Sentimen Terhadap Aplikasi Pluang Menggunakan Algoritma Naive Bayes dan Support Vector Machine ( SVM ). 4(April), 375–384.
Misrun, C. A., Haerani, E., Fikry, M., & Budianita, E. (2024). Jurnal Computer Science and Information Technology ( CoSciTech ) naive bayes classifier method. 4(1), 207–215.
Mufriz, F. (2024). Analisis Sentimen Pada Komentar Youtube Untuk Mengetahui Pandangan Masyarakat Kepada Calon Presiden Indonesia 2024 Menggunakan Algoritma Support Vector Machine. 11(4), 4257–4263.
Naquitasia, Risca; Fudholi, Dhomas Hatta; Iswari, L. (2022). Analisis Sentimen Berbasis Aspek Pada Wisata Halal Dengan Metode Deep Learning. 16(2), 156–164.
Nursyanti, R., Alamsyah, N., & Yusuf, T. M. (2024). Perbandingan Dan Efektivitas Kinerja Algoritma Svm Dan Bi-Lstm Dengan Tf-Idf Dan Smote Untuk Analisis Sentimen Kelestarian Hewan Liar. 7(1), 137–145.
Pandie, E. S. Y., Fanggidae, A., & Lona, R. (2025). Perbandingan Naïve Bayes dan K-NN dalam Analisis Sentimen Aplikasi X. 22(2), 97–107.
Sutriawan; Mutmainnah, Siti; Lorosae, Teguh Ansyor; Ramadhan, S. (2025). Model Text Embedding dan TF-IDF + Ngram untuk Meningkatkan Kinerja Algoritma Binary Classifier pada Klasifikasi SMS Palsu. 4(1), 55–64.
Utari, E. L., & Wibowo, S. H. (2025). Analisis komparatif algoritma SVM, Naive Bayes, dan LSTM pada sentimen komentar lagu Labour. 7(3), 1276–1286. https://doi.org/10.51401/jinteks.v7i3.6213
Wijaya, F., Ramadhani, R. A., & Setiawan, A. B. (2025). Analisis Sentimen Komentar Video Youtube Dengan Leksikon Textblob Menggunakan Algoritma Svm Berdasarkan Rasio Data Uji. 9, 1894–1902.
Published
2026-01-26
How to Cite
Alhadi, F., & Widyassari, A. P. (2026). Sentiment Analysis of Indonesian YouTube Comments Using Machine Learning and Deep Learning Algorithms. JIIFKOM (Jurnal Ilmiah Informatika Dan Komputer), 5(1), 19-25. https://doi.org/https://doi.org/10.51901/jiifkom.v5i01.702
Section
Articles