Comparison of Naïve Bayes and SVM in Sentiment Analysis of ChatGPT for Learning on X and YouTube
Indonesian Journal of Data and Science · 31.03.2026 · 7 (1) · 66-78
DOI: 10.56705/ijodas.v7i1.382 ↗Kurz gefasst
Fachartikel in der Zeitschrift Indonesian Journal of Data and Science, online erschienen am 31.03.2026. Verfasst von Ni Putu Eka Swari und 4 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-NC 4.0).
Abstract (Originalsprache)
The rapid development of artificial intelligence technology has encouraged users to actively express opinions on social media platforms such as X and YouTube, including discussions on the use of ChatGPT as a learning support tool. This study aims to analyze public sentiment toward the use of ChatGPT in learning contexts by comparing the performance of the Naïve Bayes and Support Vector Machine (SVM) classification methods. A total of 5,500 comments from platform X and 5,543 comments from YouTube were collected through a crawling process using relevant keywords during the period from January 2023 to December 2025. The data were preprocessed and labeled into three sentiment classes (positive, negative, and neutral) using a lexicon-based approach with the INSET Lexicon. Feature extraction was conducted using the Term Frequency–Inverse Document Frequency (TF-IDF) method, and the dataset was divided into training and testing sets with an 80:20 ratio. Model performance was evaluated using accuracy, precision, recall, and F1-score. The results show that the SVM classifier consistently outperformed the Naïve Bayes method on both platforms. On platform X, SVM achieved an accuracy of 76.67%, while Naïve Bayes obtained 74.60%. On YouTube, SVM achieved an accuracy of 73.10%, significantly higher than Naïve Bayes at 62.04%. These findings indicate that SVM is more effective for sentiment analysis of social media data related to the use of ChatGPT in learning environments
Zitieren
APA
Swari, N. P. E., Dewi, N. W. J. K., Nilawati, N. K. U., Kusuma, A. S., & Ginantra, N. L. W. S. R. (2026). Comparison of Naïve Bayes and SVM in Sentiment Analysis of ChatGPT for Learning on X and YouTube. Indonesian Journal of Data and Science, 7(1), 66-78. https://doi.org/10.56705/ijodas.v7i1.382
Vancouver
Swari NPE, Dewi NWJK, Nilawati NKU, Kusuma AS, Ginantra NLWSR. Comparison of Naïve Bayes and SVM in Sentiment Analysis of ChatGPT for Learning on X and YouTube. Indonesian Journal of Data and Science. 2026;7(1):66-78. doi:10.56705/ijodas.v7i1.382
BibTeX
@article{Swari2026,
author = {Swari, Ni Putu Eka and Dewi, Ni Wayan Jeri Kusuma and Nilawati, Ni Ketut Utami and Kusuma, Aniek Suryanti and Ginantra, Ni Luh Wiwik Sri Rahayu},
title = {Comparison of Naïve Bayes and SVM in Sentiment Analysis of ChatGPT for Learning on X and YouTube},
journal = {Indonesian Journal of Data and Science},
year = {2026},
volume = {7},
number = {1},
pages = {66--78},
doi = {10.56705/ijodas.v7i1.382}
}
EUVIMED