Nandini, Kety
Unknown Affiliation

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

Sentiment Analysis of Economic Policy Comments on YouTube Using Ensemble Machine Learning Nandini, Kety; Rahardi, Majid
Journal of Applied Informatics and Computing Vol. 9 No. 5 (2025): October 2025
Publisher : Politeknik Negeri Batam

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.30871/jaic.v9i5.10897

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.