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

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.

Authors

Publication Details

Journal
Journal of Applied Informatics and Computing
Published
2025-06-05
DOI
https://doi.org/10.30871/jaic.v9i3.9458
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Asrianda Asrianda, Pitra Rahmadani Panggabean, Hafizh Al-Kausar Aidilof
Journal of Applied Informatics and Computing
Sentiment Analysis and Opinion Mining
article

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

Asrianda Asrianda, Pitra Rahmadani Panggabean, Hafizh Al-Kausar Aidilof
article en

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.

Journal of Applied Informatics and ComputingVol. 9(3)
Openalex Percentile: Top 91%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.