JOURNAL OF APPLIED INFORMATICS AND COMPUTING
Vol. 9 No. 3 (2025): June 2025

Sentiment Analysis of Public Comments on X Social Media Related to Israeli Product Boycotts Using The Long Short-Term Memory (LSTM) Method

Panggabean, Pitra Rahmadani (Unknown)
Asrianda, Asrianda (Unknown)
Aidilof, Hafizh Al-Kausar (Unknown)



Article Info

Publish Date
05 Jun 2025

Abstract

The boycott of Israeli products is a widely discussed issue on social media, particularly on X. This study aims to analyze public sentiment regarding the boycott using the Long Short-Term Memory (LSTM) method. Data was collected via the X API, resulting in 800 comments after cleaning and removing duplicates from initially 980 crawled datasets. LSTM was chosen for this analysis due to its superior ability to process sequential data like text and effectively capture long-term dependencies in natural language, which is crucial for accurate sentiment classification. Data was processed through preprocessing steps, sentiment labeling, and Term Frequency-Inverse Document Frequency (TF-IDF) weighting before being fed into the LSTM model. Sentiment was classified into three categories: positive, negative, and neutral. Model evaluation was conducted using accuracy, precision, recall, and F1-score metrics. The results show that the LSTM model achieved an accuracy of 80.62%, with negative sentiment dominating, followed by neutral and positive. This study demonstrates that the LSTM method effectively classifies public sentiment and can be applied to inform public policy decisions, map public opinion trends, and monitor responses to foreign policy issues related to the Israeli-Palestinian conflict.

Copyrights © 2025






Journal Info

Abbrev

JAIC

Publisher

Subject

Computer Science & IT

Description

Journal of Applied Informatics and Computing (JAIC) Volume 2, Nomor 1, Juli 2018. Berisi tulisan yang diangkat dari hasil penelitian di bidang Teknologi Informatika dan Komputer Terapan dengan e-ISSN: 2548-9828. Terdapat 3 artikel yang telah ditelaah secara substansial oleh tim editorial dan ...