Analisis Sentimen Terhadap Program Kampus Merdeka Menggunakan Algoritma Naive Bayes Classifier Di Twitter

Elisa Febriyani, Herny Februariyanti


The independent campus program or independent learning campus independence (MBKM) is a new policy launched in January 2019 by the ministry of education, culture, research, and technology of the republic of Indonesia. This policy is the government's strategy in improving the quality of students to respond to the needs of the times along with significant changes in technology, the world of work, social and culture. As a new breakthrough in the world of higher education, this program is very much discussed on social media. Currently, many people use social media Twitter to provide feedback or opinions on a government policy or trend that is developing. This independent campus program has reaped the pros and cons of the community, especially on Twitter social media since its inception. This study aims to analyze the sentiment of public opinion on the independent campus program on twitter to determine the level of accuracy in the method and the proportion of sentiment as an evaluation of the algorithm, performance and program of the independent campus itself. Data collection using the website was carried out in real time with #kampus merdeka and #mbkm from tweets and retweets of twitter users during November 2021 to March 2022. Analysis of 501 tweet data was carried out by classifying text in negative and positive forms using the naive bayes classifier algorithm. . The implementation of the classification in the Naive Bayes algorithm is carried out in several stages, namely text preprocessing, TF-IDF calculations, classification calculations, and K-fold cross validation. K-fold is used for applications that are used to get maximum accuracy results. The program is made in the python programming language on the google colab tools provided by google. The visualization of the results displayed in this study is a word cloud with the most dominant word results appearing on positive sentiments, namely campus, merdeka, mbkm, and programs, while on negative sentiments, namely campus, money, pocket, and conversion. Based on the results of the research, the classification that can be done by the system gets 272 positive sentiment classification results and 229 negative sentiment opinions with an average accuracy of 60%, precision 64%, recall 58% and f1-score 58%.

Full Text:



D. G. Nugroho, Y. H. Chrisnanto, and A. Wahana, “Analisis Sentimen Pada Jasa Ojek Online ... (Nugroho dkk.),” pp. 156–161, 2015.

W. Yulita et al., “Analisis Sentimen Terhadap Opini Masyarakat Tentang Vaksin Covid-19 Menggunakan Algoritma Naïve Bayes Classifier,” Jdmsi, vol. 2, no. 2, pp. 1–9, 2021.

R. Rosdiana, T. Eddy, S. Zawiyah, and N. Y. U. Muhammad, “Analisis Sentimen pada Twitter terhadap Pelayanan Pemerintah Kota Makassar,” Proceeding SNTEI, no. June 2020, pp. 87–93, 2019.

D. F. Zhafira, B. Rahayudi, and I. Indriati, “Analisis Sentimen Kebijakan Kampus Merdeka Menggunakan Naive Bayes dan Pembobotan TF-IDF Berdasarkan Komentar pada Youtube,” J. Sist. Informasi, Teknol. Informasi, dan Edukasi Sist. Inf., vol. 2, no. 1, pp. 55–63, 2021, doi: 10.25126/justsi.v2i1.24.

S. Suryono and E. Taufiq Luthfi, “Analisis sentimen pada Twitter dengan menggunakan metode Naïve Bayes Classifier,” Jnanaloka, pp. 81–86, 2021, doi: 10.36802/jnanaloka.2020.v1-no2-81-86.

M. N. Ardhiansyah, R. Umar, and Sunardi, “Analisis Sentimen pada Twitter Menggunakan Metode Support Vector Machine,” Semin. Nas. Teknol. Fak. Tek. Univ. Krisnadwipayana, vol. 1, no. 1, pp. 739–742, 2019, [Online]. Available:

F. Ratnawati, “Implementasi Algoritma Naive Bayes Terhadap Analisis Sentimen Opini Film Pada Twitter,” INOVTEK Polbeng - Seri Inform., vol. 3, no. 1, p. 50, 2018, doi: 10.35314/isi.v3i1.335.

A. Sari, F. V., & Wibowo, “Analisis Sentimen Pelanggan Toko Online Jd. Id Menggunakan Metode Naïve Bayes Classifier Berbasis Konversi Ikon Emosi,” Simetris J. Tek. Mesin, Elektro dan Ilmu Komput., vol. 2, no. 2, pp. 681–686, 2019, [Online]. Available:


N. Ruhyana, “Analisis Sentimen Terhadap Penerapan Sistem Plat Nomor Ganjil / Genap Pada Twitter Dengan Metode Klasifikasi Naive Bayes,” J. IKRA-ITH Inform., vol. 3, no. 1, pp. 94–99, 2019.

F. Tempola, M. Muhammad, and A. Khairan, “Perbandingan Klasifikasi Antara KNN dan Naive Bayes pada Penentuan Status Gunung Berapi dengan K-Fold Cross Validation,” J. Teknol. Inf. dan Ilmu Komput., vol. 5, no. 5, p. 577, 2018, doi: 10.25126/jtiik.201855983.

Samsir, Ambiyar, U. Verawardina, F. Edi, and R. Watrianthos, “Analisis Sentimen Pembelajaran Daring Pada Twitter di Masa Pandemi COVID-19 Menggunakan Metode Naïve Bayes,” J. Media Inform. Budidarma, vol. 5, pp. 157–163, 2021, doi: 10.30865/mib.v5i1.2604.

M. F. A. Bashri, “Analisis sentimen menggunakan latent dirichlet allocation dan visualisasi topic polarity wordcloud,” Semarang Univ. Diponegoro, 2017.



  • There are currently no refbacks.

Copyright (c) 2023 Elisa Febriyani, Herny Februariyanti

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Jurnal Tekno Kompak
Published by Universitas Teknokrat Indonesia
Organized by Program Studi D3 Sistem Informasi AkuntansiUniversitas Teknokrat Indonesia
Jl. Zainal Abidin Pagaralam, No.9-11, Labuhanratu, Bandarlampung, Indonesia
Telepon : 0721 70 20 22
W :
E  :

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Jumlah Pengunjung : View Tekno Kompak StatsCounter

Flag Counter