Preprint has been published in a journal as an article
Preprint / Version 1

Sentiment Analysis of the Merdeka Campus Curriculum Based on Comments on the X Platform Using Naive Bayes and Random Forest Methods

Analisis Sentimen Terhadap Kurikulum Kampus Merdeka dari Komentar di Platform X Menggunakan Metode Naive Bayes dan Random Forest

##article.authors##

DOI:

https://doi.org/10.21070/ups.12421

Keywords:

MBKM, MBKM Program, Merdeka Campus

Abstract

Merdeka Belajar Kampus Merdeka (MBKM) Program is a government policy designed to improve higher education through flexible, work-oriented learning. Its implementation has generated diverse public responses on social media, particularly X. This study analyzes public sentiment toward the Merdeka Campus Curriculum using Naive Bayes and Random Forest. Data were collected through Selenium-based web scraping in several sessions until mid-2026 and balanced using random undersampling, resulting in 1,051 tweets comprising 351 Neutral, 350 Positive, and 350 Negative tweets. The research involved preprocessing, TF-IDF feature extraction, an 80:20 train-test split, and classification. Random Forest achieved 63.64% accuracy, 65.14% precision, 63.66% recall, and 62.55% F1-score, while Naive Bayes achieved 55.50%, 54.35%, 55.43%, and 53.93%, respectively. Thus, Random Forest showed better performance than Naive Bayes in classifying MBKM-related sentiment on X.

Downloads

Download data is not yet available.

References

B. Liu, Sentiment Analysis and Opinion Mining. Boston, MA: Morgan & Claypool Publishers, 2012.

R. Feldman and J. Sanger, The Text Mining Handbook: Advanced Approaches in Analyzing Unstructured Data. Cambridge, UK: Cambridge University Press, 2017.

G. G. Chowdhury, "Natural Language Processing: A Literature Review," Library Hi Tech, vol. 21, no. 1, pp. 65-80, 2023.

T. M. Mitchell, Machine Learning. New York, NY: McGraw-Hill, 1997.

L. Breiman, "Random Forests," Machine Learning, vol. 45, no. 1, pp. 5-32, 2021.

D. F. Zhafira, B. Rahayudi, and Indriati, "Analisis Sentimen Kebijakan Kampus Merdeka Menggunakan Naive Bayes dan Pembobotan TF-IDF Berdasarkan Komentar pada YouTube," Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer (J-PTIIK), 2021.

M. I. Fikri, T. S. Sabrila, and Y. Azhar, "Perbandingan Metode Naive Bayes dan Support Vector Machine pada Analisis Sentimen X," Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer (J-PTIIK), 2020.

A. N. Puspitasari, Y. Findawati, and Y. Rahmawati, "Analisis Sentimen Tweet Pengguna E-Commerce dengan Metode Klasifikasi Naive Bayes," Jurnal Informatika, 2024.

F. T. Admojo et al., "Comparison of Naive Bayes and Random Forest Algorithm in Webtoon Application Sentiment Analysis," Journal of Information Systems and Informatics, 2024.

A. K. Nugroho et al., "Analisis Perbandingan Metode Naive Bayes dan Random Forest pada Klasifikasi Sentimen Publik terhadap Aplikasi Identitas Kependudukan Digital (IKD)," Jurnal Teknologi Informasi dan Ilmu Komputer, 2025.

E. Fitri, Y. Yuliani, S. Rosyida, and W. Gata, "Analisis Sentimen Terhadap Aplikasi Ruangguru Menggunakan Algoritma Naive Bayes, Random Forest dan Support Vector Machine," Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 5, no. 6, pp. 1120–1126, 2020.

E. M. A. Ernamia and A. Herliana, "Analisis Sentimen Kuliah Daring dengan Algoritma Naive Bayes, K-NN dan Decision Tree," Jurnal Informatika, 2023.

A. Prasetyo, T. Ridwan, and A. Voutama, "Analisis Sentimen Terhadap Aplikasi GBWhatsApp Menggunakan Naive Bayes Classifier dan Random Forest Classifier," Jurnal Teknologi dan Sistem Komputer, 2024.

J. Ramos, “Using TF-IDF to Determine Word Relevance in Document Queries,” 2023. Sumber ini digunakan untuk mendukung bagian ekstraksi fitur TF-IDF.

B. Pang, L. Lee, and S. Vaithyanathan, “Thumbs up? Sentiment classification using machine learning techniques,” 2022.

Posted

2026-09-25