Komparasi Algoritma Naive Bayes dan Support Vector Machine pada Analisis Sentimen Komentar Instagram Laga El Clásico Barcelona vs Real Madrid
DOI:
https://doi.org/10.31316/jdi.v15i1.432Keywords:
instagram, Naive Bayes, SVM, TF-IDF, el clasicoAbstract
The rapid development of information and communication technology has driven social media to become a primary platform for users to express opinions on various events, including prestigious football matches such as El Clásico between Barcelona and Real Madrid. The high level of interaction among Instagram users generates a large volume of comments with unstructured text characteristics and diverse sentiments, making automatic sentiment analysis necessary to understand public opinion trends. This study aims to analyze the sentiment of Instagram user comments related to the El Clásico match by comparing the Naive Bayes and Support Vector Machine (SVM) algorithms. The dataset consists of 1,526 comments with an imbalanced sentiment class distribution. The research stages include text preprocessing, term weighting using Term Frequency–Inverse Document Frequency (TF-IDF), and sentiment classification. The experimental results show that the SVM algorithm outperforms Naive Bayes, achieving an accuracy of 62.88% and a weighted F1-score of 0.62, while Naive Bayes achieves an accuracy of 59.53% and a weighted F1-score of 0.52. These results indicate that SVM is more effective in handling high-dimensional data and imbalanced class distributions in social media sentiment analysis.
Downloads
Published
Versions
- 2026-03-04 (4)
- 2026-03-04 (3)
- 2026-03-04 (2)
- 2026-03-01 (1)
Issue
Section
License
Copyright (c) 2026 irvan maulana

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Authors who publish with this journal agree to the following terms:
Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlike 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
