MG

muhgalihhh

Back to Works

ANALISISSENTIMENFENOMENA#KABURAJADULUPADAPLATFORMXMENGGUNAKANLONGSHORT-TERMMEMORY(LSTM)

Data Science & AnalysisMachine Learning, Data Science & Analysis (Asignment) · Universitas Jenderal Soedirman
NumPyPandasPython
ANALISIS SENTIMEN FENOMENA #KABURAJADULU PADA PLATFORM X MENGGUNAKAN LONG SHORT-TERM MEMORY (LSTM) screenshot 1

Overview

#KaburAjaDulu ("just leave first") went viral on X in early 2025 as Indonesians vented about social and economic pressure and talked about moving abroad. This study classifies public sentiment toward the phenomenon with a deep learning model built on LSTM (Long Short-Term Memory).

  • Context: Artificial Neural Networks course research article, Informatics, Universitas Jenderal Soedirman (2025)

  • Team: 5 people

  • Tools: Python, Selenium, Pandas, NumPy

Data Collection

Tweets were scraped from X with Python and Selenium between 1 January and 31 May 2025, using keywords such as "#KaburAjaDulu", "kabur aja dulu", "pindah ke luar negeri" and "lari dari indonesia".

Stage

Tweets

Raw

19,848

Duplicates removed

276

Clean

19,572

Activity spiked in February 2025, with close to 10,000 tweets in a single month, alongside political hashtags such as #peringatandarurat.

Preprocessing & Labeling

Every tweet went through case folding, symbol cleaning, slang normalization, tokenizing, stopword removal and stemming. The data had no labels, so sentiment was assigned with a lexicon-based scorer that sums word polarities and flips them after negation words like "tidak", "bukan" and "jangan".

Label

Tweets

Neutral

12,631

Negative

5,648

Positive

1,293

The text was then converted into padded integer sequences, and the labels were one-hot encoded.

Experiments

Three train/test splits (80:20, 75:25 and 70:30) were combined with five hyperparameter scenarios, for 15 experiments in total, all trained with categorical cross-entropy and the Adam optimizer.

Scenario

Embedding

LSTM units

Epochs

Batch

Best val. accuracy

1

128

128

10

32

97.80%

2

64

64

5

64

94.52%

3

256

256

15

32

98.35%

4

128

64

10

64

95.16%

5

64

128

15

32

97.17%

Scenario 3 with a 70:30 split became the final model: 98.35% validation accuracy (99.99% on training), with the narrowest gap between training and validation curves and no sign of overfitting.

Testing on New Sentences

Sentence

Prediction

Confidence

"Ekonomi negara sangat stabil, semua orang bahagia."

Positive

1.00

"Situasi ini benar-benar kacau, membuat saya marah."

Negative

1.00

"Pemerintah tidak buruk dalam menangani krisis ini."

Neutral

0.99

"Jangankan sukses, maju saja sudah susah."

Negative

1.00

The model reads negation ("tidak buruk") and implicit complaints correctly instead of just matching keywords.

Sentiment Distribution

On the 5,872-tweet test set, the final model's predictions split like this:

Sentiment

Share

Neutral

65.65%

Negative

28.13%

Positive

6.22%

Negative tweets outnumber positive ones 4.5 to 1.

Findings

The word cloud is dominated by "luar", "negeri", "jepang" and "kerja", next to "pemerintah", "negara" and "rakyat". Together with the sentiment split, this shows the hashtag is less a joke and more a critical reflection and form of escapism against structural pressure, with a concrete wish to work abroad. The frequent "tertawa" (laughing) points to sarcasm as a coping mechanism.