ANALISIS SENTIMEN MASYARAKAT PADA MEDIA SOSIAL PLATFORM X TERHADAP PERTAMINA MENGGUNAKAN METODE DECISION TREE

Authors

  • Yksan Naibaho Sistem Informasi, Universitas Methodist Indonesia
  • Manalu Universitas Methodist Indonesia
  • Samuel VB Manurung Universitas Methodist Indonesia

DOI:

https://doi.org/10.46880/mtk.v12i1.5419

Keywords:

Sentiment Analysis, Decision Tree, Pertamina, Platform X

Abstract

Platform X social media has become a platform for people to express their opinions, including on issues related to Pertamina. This study aims to analyze public sentiment on Platform X towards Pertamina using the ID3 (Iterative Dichotomiser 3) algorithm-based Decision Tree method. The data used are 2,005 tweets collected with the keyword "Pertamina Corruption". The data went through a preprocessing stage which includes case folding, tokenizing, stopword removal, and stemming. Text features were converted into binary representations (Binary Weighting) of 10 main keywords such as 'corruption', 'pertamina', and 'prosecutor'. The ID3 Decision Tree model was built recursively by selecting separator attributes based on the highest Information Gain value. The results showed that the built model had excellent performance. Evaluation on testing data (20% of the total data) produced an accuracy of 98.50%, with a precision value of 97.98%, a recall of 98.50%, and an F1-score of 98.22%. The 5-fold cross-validation results also confirmed the model's stability, with an average accuracy of 98.30% and a low standard deviation (0.0046). The contains_korupsi attribute was identified as the most informative root node in the decision tree structure. The conclusion of this study is that the Decision Tree method with the ID3 algorithm has proven effective and reliable in classifying public sentiment toward Pertamina on Platform X with high accuracy. The results of this analysis are expected to be used by Pertamina in understanding public opinion and formulating more appropriate communication strategies.

References

D. R. Manalu, M. C. L. Tobing, and M. Yohanna, “Analisis Sentimen Twitter Terhadap Wacana Penundaan Pemilu Dengan Metode Support Vector Machine,” vol. 6, no. 2, pp. 149–156, 2024.

Kompas.com, “Kejagung Periksa Pejabat Pertamina dalam Kasus Korupsi Minyak Mentah,” Kompas.com, 2025. .

CNN Indonesia, “Kejagung buka suara isu Pertamax oplosan,” cnn indonesia, 2025. .

C. Cahyaningtyas, Y. Nataliani, and I. R. Widiasari, “Analisis Sentimen Pada Rating Aplikasi Shopee Menggunakan Metode Decision Tree Berbasis SMOTE,” Aiti, vol. 18, no. 2, pp. 173–184, 2021, doi: 10.24246/aiti.v18i2.173-184.

F. Fathonah and A. Herliana, “Penerapan Text Mining Analisis Sentimen Mengenai Vaksin Covid - 19 Menggunakan Metode Naïve Bayes,” J. Sains dan Inform., vol. 7, no. 2, pp. 155–164, 2021, doi: 10.34128/jsi.v7i2.331.

T. Ridwansyah, “Implementasi Text Mining Terhadap Analisis Sentimen Masyarakat Dunia Di Twitter Terhadap Kota Medan Menggunakan K-Fold Cross Validation Dan Naïve Bayes Classifier,” KLIK Kaji. Ilm. Inform. dan Komput., vol. 2, no. 5, pp. 178–185, 2022, doi: 10.30865/klik.v2i5.362.

R. Antika, A. Rifa’I, F. Dikananda, D. Indriya Efendi, and R. Narasati, “Penerapan Algoritma Decision Tree Berbasis Pohon Keputusan Dalam Klasifikasi Penyakit Jantung,” JATI (Jurnal Mhs. Tek. Inform., vol. 7, no. 6, pp. 3688–3692, 2024, doi: 10.36040/jati.v7i6.8264.

L. Qadrini, A. Sepperwali, and A. Aina, “Decision Tree Dan Adaboost Pada Klasifikasi Penerima Program Bantuan Sosial,” J. Inov. Penelit., vol. 2, no. 7, pp. 1959–1966, 2021.

Nengah Widya Utami and I Wayan Budi Suryawan, “Implementasi Data Mining Untuk Mengklasifikasikan Produk Pada Sebuah Supermarket Mengunakan Algoritma Id3 Pada Orange,” Smart Techno (Smart Technol. Informatics Technopreneurship), vol. 3, no. 1, pp. 33–36, 2021, doi: 10.59356/smart-techno.v3i1.33.

A. Sifaunajah and R. D. Wahyuningtyas, “Penggunaan Algoritma ID3 Untuk Klasifikasi Data Calon Perserta Didik,” CSRID (Computer Sci. Res. Its Dev. Journal), vol. 14, no. 2, p. 103, 2022, doi: 10.22303/csrid.14.2.2022.103-112.

A. Nurian, “Analisis Sentimen Ulasan Pengguna Aplikasi Google Play Menggunakan Naïve Bayes,” J. Inform. dan Tek. Elektro Terap., vol. 11, no. 3s1, pp. 829–835, 2023, doi: 10.23960/jitet.v11i3s1.3348.

Published

30-03-2026

How to Cite

[1]
Y. Naibaho, Darwis Robinson, and Samuel VB Manurung, “ANALISIS SENTIMEN MASYARAKAT PADA MEDIA SOSIAL PLATFORM X TERHADAP PERTAMINA MENGGUNAKAN METODE DECISION TREE”, METHODIKA, vol. 12, no. 1, pp. 36–42, Mar. 2026.