Compiler
Vol 14, No 2 (2025)

Sentiment Analysis of Opinions on the Performance of the Governor of West Java in 2025 on Social Media X Using LSTM

Safaat, Muhammad Apipudin (Unknown)
Ekawati, Nia (Unknown)



Article Info

Publish Date
30 Nov 2025

Abstract

The rise of political discourse on Indonesian social media platforms such as X (formerly Twitter) creates opportunities and challenges for policymakers. Existing sentiment analysis methods often fail to handle informal language, slang, and sarcasm, leading to frequent misclassification that may misguide governance decisions. This study aims to establish the first benchmark for three-class sentiment analysis (positive, neutral, negative) in Indonesian political discourse using a Long Short-Term Memory (LSTM) model with culture-specific preprocessing. A dataset of 1,002 tweets on the performance of the Governor of West Java (Feb–May 2025) was collected, normalized for slang and typos, and enriched with a political lexicon. Manual annotation achieved high agreement (κ = 0.82). An LSTM model with 128 units and 30% dropout was trained and evaluated. Results show 95.88% training accuracy but only 36.32% validation accuracy, indicating severe overfitting. Misclassifications (42%) mainly stemmed from sarcasm and contextual ambiguity, with the lowest precision in the positive class (31%). The study contributes by (1) providing the first benchmark for Indonesian political sentiment, (2) demonstrating the value of culture-specific preprocessing, and (3) offering policy insights into latent dissatisfaction hidden in neutral tweets. Limitations include small dataset size and lack of sarcasm-aware mechanisms, suggesting future exploration of hybrid and transformer-based models.

Copyrights © 2025






Journal Info

Abbrev

compiler

Publisher

Subject

Computer Science & IT

Description

Jurnal "COMPILER" dengan ISSN Cetak : 2252-3839 dan ISSN On Line 2549-2403 adalah jurnal yang diterbitkan oleh Departement Informatika Sekolah Tinggi Teknologi Adisutjipto Yogyakarta. Jurnal ini memuat artikel yang merupakan hasil-hasil penelitian dengan bidang kajian Struktur Diskrit, Ilmu ...