JOURNAL ARTICLE

COMPARISON OF NAÏVE BAYES ALGORITHM AND SUPPORT VECTOR MACHINE IN SENTIMENT ANALYSIS OF BOYCOTT ISRAELI PRODUCTS ON TWITTER

Abstract

The Israeli-Palestinian conflict has captured the attention of Indonesians and even the world for decades, with the death toll reaching 17,000 Palestinians. Indonesians have expressed various opinions, including a proposed boycott of products that allegedly support Israel as a form of protest against the ongoing conflict. This study explores the opinions and sentiments of the Indonesian people regarding the Israel-Palestine conflict and the efforts to boycott Israeli products on social media twitter. This study aims to compare the accuracy of the two algorithms in classifying sentiment towards boycotting Israeli products. A total of 2288 comment data were processed using the Naïve Bayes and Support Vector Machine (SVM) algorithm classification methods. The results show that the Naïve Bayes algorithm has higher accuracy with a data division ratio of 70:30 and 80:30 for training data and testing data. Accuracy results with 70:30 data division reached 84% using the Naïve Bayes algorithm model, while the SVM algorithm model reached 78%. And the accuracy results with 80:20 data division reached 85% using the Naïve Bayes algorithm model, with the SVM algorithm model reaching 84%. This study provides an understanding of the concept of text mining and data mining and can be a reference for similar research.

Keywords:
Boycott Sentiment analysis Naive Bayes classifier Support vector machine Bayes' theorem Computer science Artificial intelligence Political science Bayesian probability Law

Metrics

1
Cited By
0.64
FWCI (Field Weighted Citation Impact)
0
Refs
0.73
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Sentiment Analysis and Opinion Mining
Physical Sciences →  Computer Science →  Artificial Intelligence
Spam and Phishing Detection
Physical Sciences →  Computer Science →  Information Systems
Data Mining and Machine Learning Applications
Physical Sciences →  Computer Science →  Information Systems
© 2026 ScienceGate Book Chapters — All rights reserved.