Comparison of Naïve Bayes and K-Nearest Neighbor for Iphone 16 Youtube Sentiment
International Journal of Information Technology and Computer Science Applications · 23.06.2026 · 4 (2) · 104-114
DOI: 10.58776/ijitcsa.v4i2.210 ↗Kurz gefasst
Fachartikel in der Zeitschrift International Journal of Information Technology and Computer Science Applications, online erschienen am 23.06.2026. Verfasst von Anisya Wulandari und 2 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Sentiment analysis plays an important role in understanding public opinion toward technological products, particularly in the context of social media such as YouTube. This study aims to analyze the sentiment of user comments on an iPhone 16 review video published by the GadgetIn YouTube channel, as well as to compare the performance of the Naïve Bayes and K-Nearest Neighbor classification algorithms. The data were collected through a crawling process, resulting in 2,499 comments, which were then split into training data 80% and testing data 20%. The methodology includes text cleaning, tokenization, normalization, and term weighting using the TF-IDF method. The experimental results show that the Naïve Bayes algorithm achieved an accuracy of 73%, with precision, recall, and F1-score each reaching 72%, outperforming KNN, which only achieved 65% accuracy. Most comments were neutral; positive comments generally focused on design and performance, while negative comments mainly highlighted price and comparisons with other products. These findings indicate that the Naïve Bayes algorithm is more suitable for sentiment analysis of unstructured YouTube comment data.
Zitieren
APA
Wulandari, A., Priatna, W., & Yasir, M. (2026). Comparison of Naïve Bayes and K-Nearest Neighbor for Iphone 16 Youtube Sentiment. International Journal of Information Technology and Computer Science Applications, 4(2), 104-114. https://doi.org/10.58776/ijitcsa.v4i2.210
Vancouver
Wulandari A, Priatna W, Yasir M. Comparison of Naïve Bayes and K-Nearest Neighbor for Iphone 16 Youtube Sentiment. International Journal of Information Technology and Computer Science Applications. 2026;4(2):104-114. doi:10.58776/ijitcsa.v4i2.210
BibTeX
@article{Wulandari2026,
author = {Wulandari, Anisya and Priatna, Wowon and Yasir, Muhammad},
title = {Comparison of Naïve Bayes and K-Nearest Neighbor for Iphone 16 Youtube Sentiment},
journal = {International Journal of Information Technology and Computer Science Applications},
year = {2026},
volume = {4},
number = {2},
pages = {104--114},
doi = {10.58776/ijitcsa.v4i2.210}
}
EUVIMED