Indonesian Journal of Artificial Intelligence and Data Mining
Vol 9, No 1 (2026): March 2026

Analyzing Opinion Polarization on Joko Widodo's Diploma Using Machine Learning

Julianti, Julianti (Unknown)
Wajidi, Farid (Unknown)
Musawwir, Musawwir (Unknown)



Article Info

Publish Date
14 Mar 2026

Abstract

The authenticity of former President Joko Widodo's diploma has become a hot topic on the digital space, especially in the comments section of Kompas TV's YouTube channel. The wide diversity of opinions reflects a polarization of public opinion that is worth further analysis. Given the large volume of text data from public comments, manual analysis is ineffective; a technology-based approach is needed to systematically group opinions. Therefore, this study was conducted to analyze public opinion polarization using a machine learning approach. Two classification algorithms, Naive Bayes and Random Forest, were used to distinguish between pro and con public comments on the issue. Data were obtained through an automated collection process (web scraping), followed by text pre-processing and TF-IDF (Term Frequency–Inverse Document Frequency) word weighting. The test results showed that the Random Forest algorithm performed best, with an accuracy of 91%, while Naïve Bayes achieved only 74%. This shows that the Random Forest method is more effective than the Naïve Bayes approach in detecting unstructured text patterns. This study concludes that machine learning can be used effectively to identify trends in public opinion on social media and can serve as a basis for further research using word embedding and deep learning models.

Copyrights © 2026






Journal Info

Abbrev

IJAIDM

Publisher

Subject

Computer Science & IT

Description

Indonesian Journal of Artificial Intelligence and Data Mining (IJAIDM) is an electronic periodical publication published by Puzzle Research Data Technology (Predatech) Faculty of Science and Technology UIN Sultan Syarif Kasim Riau, Indonesia. IJAIDM provides online media to publish scientific ...