Melola Discovery

← Melola Discovery

Jurnal

An Ablation Study on Stacked LSTM and SMOTE for Government Policy Sentiment Classification

Scientific Journal of Informatics · Vol. 13 No. 3 (2026) · hlm. 569–580

DOI
10.15294/sji.v13i3.53853
ISSN
2407-7658, 2460-0040
Terbit
2026-08-19
Penerbit
Universitas Negeri Semarang
Bahasa
eng

Abstrak

Purpose: We compare four deep learning configurations of Standard LSTM without SMOTE, Standard LSTM with SMOTE, Stacked LSTM without SMOTE, and Stacked LSTM with SMOTE used for multi-class sentiment classification of Indonesian public comments on the government’s Free Nutritious Meals Program (MBG) policy posted on Instagram. Most existing research on this topic relies on single-layer LSTM models that fail to address class imbalance and the layered, often sarcastic semantic structure commonly found in informal Indonesian social media writing at the same time. We test whether a Stacked LSTM architecture combined with SMOTE can simultaneously model sequential word dependencies and high-level semantic patterns, while correcting the bias that class imbalance tends to introduce. Methods: We collected 1,000 Instagram comments from the account @ferryirwandi using the Instaloader library and labeled them into three sentiment classes with TextBlob. Preprocessing was carried out through six steps: cleaning, case folding, slang normalization with a custom dictionary, stopword removal, tokenization, and stemming via Sastrawi after which TF-IDF was used for feature extraction. The data was split 80:20 into training and testing sets before applying any oversampling; SMOTE was applied only to the training data, so the test set remained intact and free of data leakage. Performance was measured using Accuracy, Macro-Precision, Macro-Recall, and Macro-F1 Score, obtained from a multiclass confusion matrix based on a One-vs-Rest scheme. Result: Scenario 3 (Stacked LSTM without SMOTE) produced the top result, reaching 95.00% Accuracy, Macro-Precision of 0.9276, Macro-Recall of 0.8752, and Macro-F1 Score of 0.8973 the best outcome among the four configurations. In contrast, Scenario 4 (Stacked LSTM with SMOTE) performed worse, with accuracy dropping to 92.50% and the F1-Score falling to 0.8178. We attribute this decline to feature space overlap: the synthetic minority samples generated by SMOTE landed too close to the dominant neutral class within the high-dimensional, sparse TF-IDF feature space. Novelty: Our findings provide empirical support for the idea that hierarchical representations built by stacked recurrent layers are well suited to capturing the complex context, sarcasm, and long-range semantic relationships found in Indonesian political discourse. We also propose the four-scenario ablation design as a reusable method for disentangling how much architectural depth and data balancing each contribute, both independently and jointly, when working with imbalanced Indonesian social media sentiment data. Practical Implications: For practitioners working with TF-IDF features on narrow-topic datasets, our findings suggest that Stacked LSTM without oversampling is the more reliable configuration for multi-class sentiment analysis of Indonesian government-policy discourse on social media.

Kata kunci

Jaringan kolaborasi para penulis

22 penulis · 43 tautan kepenulisan bersama · 2 lintas organisasi

Arahkan kursor atau ketuk sebuah nama untuk menyorot rekan penulisnya. Klik dua kali untuk membuka halaman penulis.

  • Diponegoro University
  • State University of Semarang
  • Afiliasi tidak diketahui
  • Organisasi berbeda
  • Organisasi sama
  • Afiliasi tidak diketahui
  • Garis lebih tebal = lebih banyak artikel bersama · lingkaran lebih besar = lebih banyak artikel
Tampilkan sebagai tabel
Rekan penulisOrganisasiArtikel bersama
R. Rizal IsnantoDiponegoro University3
Kusworo AdiDiponegoro University2
Bayu SurarsoDiponegoro University2
Sri SumiyatiDiponegoro University2
Yulaikha MaratullatifahDiponegoro University1
Fitriana MasrurohDiponegoro University1
Ucky Pradestha NovettralitaDiponegoro University1
Nitami Lestari PutriDiponegoro University1
Arie IswantiDiponegoro University1
Juwita Dwinda SariDiponegoro University1
Catur Edi WibowoDiponegoro University1
N IdrusDiponegoro University1
Dwi RochmayantiDiponegoro University1
Sri HandayaniState University of Semarang1
Purwanto PurwantoDiponegoro University1
Sudarno UtomoAfiliasi tidak diketahui1
Budiyono BudiyonoDiponegoro University1
Muliyadi MuliyadiDiponegoro University1
Anik SarminingsihDiponegoro University1

Afiliasi berasal dari OpenAlex; metadata OAI-PMH jurnal tidak memuatnya. Penulis tanpa ID OpenAlex dicocokkan berdasarkan nama, sehingga dua orang bisa tergabung atau satu orang bisa terpisah.

Sumber metadata: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/sji/oai, pertama di-harvest 6 Nov 2026, terakhir terlihat 8 Nov 2026.
Metadata asli (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">An Ablation Study on Stacked LSTM and SMOTE for Government Policy Sentiment Classification</dc:title>
	<dc:creator xml:lang="en">Maulina, Sima</dc:creator>
	<dc:creator xml:lang="en">Widodo, Catur Edi </dc:creator>
	<dc:creator xml:lang="en">Warsito, Budi </dc:creator>
	<dc:subject xml:lang="en">Sentiment Analysis</dc:subject>
	<dc:subject xml:lang="en">Government Policy</dc:subject>
	<dc:subject xml:lang="en">Stacked LSTM</dc:subject>
	<dc:subject xml:lang="en">SMOTE</dc:subject>
	<dc:subject xml:lang="en">Class Imbalanced</dc:subject>
	<dc:description xml:lang="en">Purpose: We compare four deep learning configurations of Standard LSTM without SMOTE, Standard LSTM with SMOTE, Stacked LSTM without SMOTE, and Stacked LSTM with SMOTE used for multi-class sentiment classification of Indonesian public comments on the government’s Free Nutritious Meals Program (MBG) policy posted on Instagram. Most existing research on this topic relies on single-layer LSTM models that fail to address class imbalance and the layered, often sarcastic semantic structure commonly found in informal Indonesian social media writing at the same time. We test whether a Stacked LSTM architecture combined with SMOTE can simultaneously model sequential word dependencies and high-level semantic patterns, while correcting the bias that class imbalance tends to introduce.
Methods: We collected 1,000 Instagram comments from the account @ferryirwandi using the Instaloader library and labeled them into three sentiment classes with TextBlob. Preprocessing was carried out through six steps: cleaning, case folding, slang normalization with a custom dictionary, stopword removal, tokenization, and stemming via Sastrawi after which TF-IDF was used for feature extraction. The data was split 80:20 into training and testing sets before applying any oversampling; SMOTE was applied only to the training data, so the test set remained intact and free of data leakage. Performance was measured using Accuracy, Macro-Precision, Macro-Recall, and Macro-F1 Score, obtained from a multiclass confusion matrix based on a One-vs-Rest scheme.
Result: Scenario 3 (Stacked LSTM without SMOTE) produced the top result, reaching 95.00% Accuracy, Macro-Precision of 0.9276, Macro-Recall of 0.8752, and Macro-F1 Score of 0.8973 the best outcome among the four configurations. In contrast, Scenario 4 (Stacked LSTM with SMOTE) performed worse, with accuracy dropping to 92.50% and the F1-Score falling to 0.8178. We attribute this decline to feature space overlap: the synthetic minority samples generated by SMOTE landed too close to the dominant neutral class within the high-dimensional, sparse TF-IDF feature space.
Novelty: Our findings provide empirical support for the idea that hierarchical representations built by stacked recurrent layers are well suited to capturing the complex context, sarcasm, and long-range semantic relationships found in Indonesian political discourse. We also propose the four-scenario ablation design as a reusable method for disentangling how much architectural depth and data balancing each contribute, both independently and jointly, when working with imbalanced Indonesian social media sentiment data.
Practical Implications: For practitioners working with TF-IDF features on narrow-topic datasets, our findings suggest that Stacked LSTM without oversampling is the more reliable configuration for multi-class sentiment analysis of Indonesian government-policy discourse on social media.</dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2026-08-19</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/sji/article/view/53853</dc:identifier>
	<dc:identifier>10.15294/sji.v13i3.53853</dc:identifier>
	<dc:source xml:lang="en">Scientific Journal of Informatics; Vol. 13 No. 3: Special Issue; 569-580</dc:source>
	<dc:source>2407-7658</dc:source>
	<dc:source>2460-0040</dc:source>
	<dc:source>10.15294/sji.v13i3</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/sji/article/view/53853/11160</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2026 Scientific Journal of Informatics</dc:rights>
</oai_dc:dc>