
This research aims to analyze public sentiment toward the boycott movement against Israel on the X platform by applying Random Forest and Logistic Regression algorithms. The study uses 616 tweets collected through web crawling with relevant keywords such as "Boikot", "Israel", and "Palestine", covering the period from March 1, 2023 to January 30, 2025. The dataset underwent preprocessing including cleaning, normalization, stopword removal, tokenization, and stemming. Sentiment labeling was conducted both manually, categorizing the data into positive, negative, and neutral classes. TF-IDF was used for feature weighting. The data was split into 80% training and 20% testing. The Random Forest model achieved an accuracy of 70%, while Logistic Regression reached 68%. Both models showed higher accuracy in predicting positive sentiment compared to negative and neutral. The results suggest that public opinion on the boycott movement on social media tends to be supportive, with “Boikot,” “Israel,” and “Palestine” being the most dominant terms. Random Forest performed slightly better in classification, though improvements are needed in recognizing non-positive sentiments.
logistic regression, sentiment analysis, social media, Electronic computers. Computer science, boycott, QA75.5-76.95, random forest
logistic regression, sentiment analysis, social media, Electronic computers. Computer science, boycott, QA75.5-76.95, random forest
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
