JOURNAL OF APPLIED INFORMATICS AND COMPUTING
Vol. 9 No. 5 (2025): October 2025

Sentiment Analysis of Economic Policy Comments on YouTube Using Ensemble Machine Learning

Nandini, Kety (Unknown)
Rahardi, Majid (Unknown)



Article Info

Publish Date
14 Oct 2025

Abstract

Public sentiment analysis of economic policies is increasingly important in the digital age, as social media platforms have become the main arena for public discussion. This study analyzes YouTube comments related to Tom Lembong's economic policies to address the lack of policy sentiment analysis tools in Indonesian. A dataset containing 1,029 comments was collected and systematically processed using normalization, stop word removal, and stemming techniques tailored to Indonesian. To overcome data scarcity and class imbalance, advanced data augmentation methods—synonym replacement, random insertion, and random deletion—were applied, expanding the dataset to 2,169 samples. Feature extraction used TF-IDF vectorization (unigram, bigram, trigram) and CountVectorizer, followed by an 80:20 split into training and testing sets. Several machine learning algorithms, including Support Vector Machine (SVM), Logistic Regression, Random Forest, Gradient Boosting, and Naïve Bayes, were evaluated with hyperparameter tuning through grid search. The results showed that SVM with TF-IDF bigrams achieved the best performance (accuracy: 96.08%, F1-score: 96.03%). Class-level evaluation showed high performance for negative sentiment (F1-score: 0.97) and positive sentiment (F1-score: 0.97), while neutral sentiment was more challenging (F1-score: 0.90) due to ambiguity, sarcasm, and fewer samples. The ensemble model, which combines several optimized SVM variants with soft voting, achieved robust and stable performance (accuracy and F1-score: 95.16%). These findings confirm the effectiveness of the ensemble-based approach for Indonesian sentiment analysis, while providing valuable insights into public perceptions of economic policy in the digital space.

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 ...