RABIT: Jurnal Teknologi dan Sistem Informasi Univrab
Vol 10 No 2 (2025): Juli

ANALISIS SENTIMEN PUBLIK DI MEDIA SOSIAL TERHADAP KASUS DUGAAN KORUPSI IMPOR MINYAK PERTAMINA MENGGUNAKAN XGBOOST

Dhea Ferdiana Merpatika (Universitas Mercu Buana Yogyakarta)
Albert Yakobus Chandra (Unknown)



Article Info

Publish Date
10 Jul 2025

Abstract

Public sentiment analysis of the alleged corruption case of oil imports by PT Pertamina was carried out using a machine learning approach using the Extreme Gradient Boosting (XGBoost) algorithm. Data was obtained from user comments on Pertamina's official accounts on social media platforms X, Instagram, and TikTok during the period from February 1, 2025 to March 31, 2025. Comments collected through the scraping process were then processed through text preprocessing stages such as normalization, tokenization, filtering, and stemming. Feature representation was carried out using the Term Frequency-Inverse Document Frequency (TF-IDF) method to convert text data into numeric form. Each comment was manually labeled with sentiment into three categories, namely negative (0), neutral (1), and positive (2). The XGBoost model was trained with TF-IDF extracted data and evaluated using metrics such as accuracy, precision, recall, and f1-score. The evaluation results showed that the model was able to classify sentiment with good performance, with an accuracy value of 78% and an F1-score of 78%. The application of this method shows the effectiveness of the machine learning approach in understanding public perception of strategic issues in the national energy sector. The findings show that only 8% of positive sentiment on platform X, Instagram and TikTok indicates a crisis of public trust that needs to be responded to by Pertamina.

Copyrights © 2025






Journal Info

Abbrev

rabit

Publisher

Subject

Computer Science & IT Engineering

Description

This journal is called RABIT, where the name comes from two words namely, RAB which means Abdurrab University and IT which means information technology, it can be interpreted as a journal of this journal Journal of Informatics Engineering Study Program Pekanbaru Abdurrab University. This RABIT ...