The 2023 escalation of the Gaza conflict triggered widespread public discourse on the X platform, highlighting the importance of sentiment analysis for understanding public opinion on global geopolitical issues. While sentiment analysis has been widely applied to social media data, comparative evaluations of machine learning models on conflict-related datasets remain limited. This study analyzes public sentiment toward the Gaza conflict by comparing the performance of Multi-Layer Perceptron, XGBoost, and Logistic Regression models. A dataset of 2,175 tweets was processed using standard text preprocessing techniques and TF-IDF feature extraction. Model performance was evaluated using multiple train-test split scenarios. The results indicate that Logistic Regression consistently outperformed the other models, achieving the highest accuracy of 73.17% with an 80:20 data split. These findings suggest that simpler linear models may perform more robustly and efficiently than more complex approaches when applied to high-dimensional, noisy social media text data. This study provides practical insights into model selection for sentiment analysis of conflict-related discussions on social media platforms.
Copyrights © 2026