Building of Informatics, Technology and Science
Vol 8 No 1 (2026): June 2026

Analisis Sentimen X Terhadap Isu Industri Sawit Prabowo Subianto Menggunakan TF-IDF dan Machine Learning

Ibrahim Akbar Arga Dewangga (Universitas Dian Nuswantoro, Semarang)
Rama Aria Megantara (Universitas Dian Nuswantoro, Semarang)



Article Info

Publish Date
05 Jun 2026

Abstract

This study aims to analyze public sentiment on the X platform regarding the palm oil industry issue associated with Prabowo Subianto and to compare the performance of Decision Tree, Support Vector Machine (SVM), and Random Forest algorithms. The dataset consisted of 3,785 tweets collected through a crawling process. The data were then processed through cleaning, case folding, text normalization, tokenizing, stopword removal, and stemming. Sentiment labeling was conducted using a lexicon-based approach, followed by feature extraction using Term Frequency-Inverse Document Frequency (TF-IDF) and traintest data splitting. The labeling results show that public opinion was dominated by positive sentiment with 3,018 tweets (79.7%), while negative sentiment accounted for 767 tweets (20.3%). The experimental results indicate that SVM achieved the best performance with an accuracy of 0.90, followed by Random Forest with 0.86 and Decision Tree with 0.84. SVM also demonstrated more stable performance based on precision, recall, and F1-score across both sentiment classes. These findings indicate that SVM is the most effective model for Indonesian-language sentiment classification on palm oil policy issues and has strong potential to support public policy evaluation based on social media data.

Copyrights © 2026






Journal Info

Abbrev

bits

Publisher

Subject

Computer Science & IT

Description

Building of Informatics, Technology and Science (BITS) is an open access media in publishing scientific articles that contain the results of research in information technology and computers. Paper that enters this journal will be checked for plagiarism and peer-rewiew first to maintain its quality. ...