Analysis of User Sentiment Toward Mountain Climbing Content Based on YouTube Comments Using the K-Nearest Neighbors Algorithm

Authors

  • Ghiffari Arrozaq Universitas Ngudi Waluyo
  • Sri Mujiono Universitas Ngudi Waluyo

DOI:

https://doi.org/10.30871/jaic.v10i4.13518

Keywords:

Sentiment Analysis, YouTube, Mountain Climbing, K-Nearest Neighbor (KNN), TF-IDF, Natural Language Processing (NLP)

Abstract

The growth of social media has made YouTube one of the primary sources of information regarding mountain climbing activities. YouTube’s comment feature contains a variety of user opinions that can be used to gauge public perception of climbing content. However, the sheer volume of comments makes manual analysis less effective. This study aims to analyze user sentiment toward mountain climbing content based on YouTube comments using the K-Nearest Neighbor (KNN) algorithm. The research method used is a quantitative approach involving data collection through YouTube comment crawling, manual sentiment abelling, and data preprocessing which includes cleaning, case folding, normalization, tokenization, stopword removal, and stemming followed by feature weighting using Term Frequency–Inverse Document Frequency (TF-IDF) and classification using the K -Nearest Neighbor (KNN) algorithm. The model was evaluated using a confusion matrix with the metrics of accuracy, precision, recall, and F1-score. The results of the study show that the K-Nearest Neighbor (KNN) algorithm is capable of classifying the sentiment of YouTube comments with a maximum accuracy of 79.35% at K = 5. These results indicate that the K-Nearest Neighbor (KNN) algorithm is quite effective in analyzing the sentiment of comments related to mountain climbing content, although it still has limitations in understanding semantic context, such as the use of informal language, irony, and sarcasm. Therefore, future research is recommended to use more complex feature representation methods, such as Word2Vec, FastText, or BERT-based models, to improve classification capabilities and sentiment analysis accuracy.

Downloads

Download data is not yet available.

References

[1] Hidayat, A. N., Ramdani, A. L., & Muthoharoh, L. (2026). Analisis Sentimen Berbasis Aspek pada Ulasan Pariwisata Menggunakan Varian Algoritma K-Nearest Neighbor: Aspect-Based Sentiment Analysis of Tourism Reviews Using Variants of the K-Nearest Neighbor Algorithm. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 6(2), 534-545. https://www.journal.irpi.or.id/index.php/malcom/article/view/2522

[2] Latifurrohman, L. (2025). Perbandingan Perbandingan Metode K-Nearest Neighbor (Knn) Dan Naive Bayes Untuk Analisis Sentimen Review Objek Wisata Jepara Ourland Park (JOP) Berdasarkan Ulasan Pada Google Maps. Jtinfo: Jurnal Teknik Informatika, 4(2), 277-286. https://journal.unisnu.ac.id/JTINFO/article/view/1296

[3] As' ad, I. (2022). Analisis Pengguna Facebook Terhadap Objek Wisata Di Maluku Tengah Menggunakan Metode K-Nearest Neighbor. Buletin Sistem Informasi dan Teknologi Islam. https://jurnal.fikom.umi.ac.id/index.php/BUSITI/article/view/1329

[4] Artamevia, A. M., & Wibowo, J. S. (2025). Analisis Sentimen Terhadap Kontroversi Pergantian Pelatih Timnas Indonesia Menggunakan Metode Knn (K-Nearest Neighbour). JATI (Jurnal Mahasiswa Teknik Informatika), 9(5), 8945-8952. https://www.ejournal.itn.ac.id/jati/article/view/15228

[5] Palepa, M. J., Pratiwi, N., & Rohmansa, R. Q. (2024). Analisis Sentimen Masyarakat Tentang Pengaruh Politik Identitas Pada Pemilu 2024 Terhadap Toleransi Beragama Menggunakan Metode K-Nearest Neighbor. JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), 9(1), 389-401. https://jurnal.stkippgritulungagung.ac.id/index.php/jipi/article/view/4957

[6] Himawan, A., & Sugianto, C. A. (2024). Perbandingan algoritma Naïve Bayes dan K-Nearest Neighbor (KNN) pada video YouTube mengenai global warming. Informatics and Digital Expert (INDEX), 6(2), 98-104. https://e-journal.unper.ac.id/index.php/informatics/article/view/1803

[7] Larasakti, D. N., Aziz, A., & Aditya, D. (2023). Analisis Sentimen Komentar Video Youtube Dengan Metode K-Nearest Neighbor. Jurnal Ilmiah Wahana Pendidikan, 9(5), 132-142. https://jurnal.peneliti.net/index.php/JIWP/article/view/3953

[8] Saputra, A., Nurdiyani, I., Nurhidayah, U. S., & Maesaroh, S. (2026). Analisis Sentimen Masyarakat Terhadap Penanganan Banjir Bandang di Pulau Sumatra Berdasarkan Komentar Youtube Menggunakan Metode Support Vector Machine (SVM). Jejak digital: Jurnal Ilmiah Multidisiplin, 2(1), 2225-2239. http://indojurnal.com/index.php/jejakdigital/article/view/2094

[9] Dewati, P. P. P., & Sukardani, P. S. (2024). Analisis Sentimen Komentar Youtube Virtual Tour 360° Wisata Bali Oleh Kemenparekraf. The Commercium, 8(2), 146-153. https://ejournal.unesa.ac.id/index.php/Commercium/article/view/62511

[10] Suta, P. W. P., Rafael, R., & Kesumadewi, A. A. A. R. (2025). Analisis Ulasan Wisatawan Pada Wisata Trekking Di Batur. Jurnal Ilmiah Hospitality, 14(2), 719-728. https://ejournal.stpmataram.ac.id/JIH/article/view/4012

[11] Hadi, M. S., Akbar, J., & Zulkarnain, M. F. (2025). Analisis Sentimen Wisata Air Terjun Di Kabupaten Lombok Tengah Menggunakan Metode Support Vector Machine (SVM). SKANIKA: Sistem Komputer dan Teknik Informatika, 8(2), 318-329. https://jom.fti.budiluhur.ac.id/SKANIKA/article/view/3578

[12] Satio, D. A., Fallah, A. H. N., Setiawan, A., & Kuncoroyakti, Y. A. (2026). Analisis Isi Komentar pada Media Sosial YouTube Fiersa Besari" Pendaki Fomo?". Jurnal Penelitian Ilmiah Multidisipliner, 2(03), 2226-2233. https://ojs.ruangpublikasi.com/index.php/jpim/article/view/1143

[13] Novitasari, D. C., & Putri, R. R. (2025). Analisis Sentimen Cuitan X terhadap Pendaki Asing Gunung Rinjani Menggunakan Algoritma SVM dan Random Forest. INTEGER: Journal of Information Technology, 10(2). https://ejurnal.itats.ac.id/integer/article/view/8119

Downloads

Published

2026-08-08

How to Cite

[1]
G. Arrozaq and S. Mujiono, “Analysis of User Sentiment Toward Mountain Climbing Content Based on YouTube Comments Using the K-Nearest Neighbors Algorithm”, JAIC, vol. 10, no. 4, pp. 3485–3492, Aug. 2026.

Similar Articles

1 2 3 4 5 > >> 

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