Journal of Computer Science, Information Technology and Telecommunication Engineering (JCoSITTE)
Vol 6, No 2 (2025)

Twitter Sentiment Analysis on the Iran-Israel Conflict Using the Naïve Bayes Classification Algorithm

Karima, Annisa (Unknown)
Ulya, Athiyatul (Unknown)
Achriadi, Teuku Sukma (Unknown)
Zufia, Anni (Unknown)



Article Info

Publish Date
09 Sep 2025

Abstract

The armed conflict between Iran and Israel, which has attracted global attention, has sparked various public reactions, including from the Indonesian community. Given its potential impact on global social and economic stability, it is important to systematically analyze public perceptions using a sentiment analysis approach. A total of 310 tweets were collected through a crawling process and processed using several preprocessing stages, such as text cleaning, normalization, stopword removal, tokenization, stemming, and translation. Labeling was performed directly using the Naive Bayes algorithm, by comparing three algorithms: Gaussian Naive Bayes, Multinomial Naive Bayes, and Bernoulli Naive Bayes. Performance evaluation was conducted using metrics such as accuracy, precision, recall, and F1-score. The classification results showed that Multinomial Naive Bayes achieved an accuracy of 75.81%, Gaussian Naive Bayes achieved 77.42%, while Bernoulli Naive Bayes achieved 87.1%. Bernoulli Naive Bayes demonstrated superior performance in handling textual data with word frequency representation. This study contributes to strengthening the use of machine learning methods for public opinion analysis on social media, particularly in the context of geopolitical issues. The findings indicate that Bernoulli Naive Bayes is more suitable for classifying public opinion texts compared to the Gaussian and Multinomial variants.

Copyrights © 2025






Journal Info

Abbrev

jcositte

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management Electrical & Electronics Engineering

Description

ournal of Computer Science, Information Technology and Telecommunication Engineering (JCoSITTE) is being published in the months of March and September. It is academic, online, open access (abstract), peer reviewed international journal. The aim of the journal is to: Disseminate original, ...