Perbandingan Kinerja Model IndoBERT, IndoBERTweet, dan Algoritma Klasik pada Analisis Sentimen Isu Indonesia Gelap
Abstract
This study aims to compare the performance of Transformer-based models, namely IndoBERT and IndoBERTweet, with three classical machine learning algorithms, namely Support Vector Machine (SVM), Logistic Regression, and Random Forest, in analyzing public sentiment regarding the “Indonesia Gelap” issue that has been widely discussed on social media. The dataset was collected using a crawling process on TikTok user comments containing keywords related to the issue, resulting in 5.000 comments. After the preprocessing stage, 4.667 comments were deemed suitable for analysis and were labeled into positive, negative, and neutral sentiment categories using a lexicon-based approach. To address the imbalance in class distribution, three oversampling strategies were applied: without oversampling, oversampling before data splitting, and oversampling after data splitting applied only to the training data. Each model was evaluated using four performance metrics: accuracy, precision, recall, and F1-score. The results show that oversampling before data splitting yielded the best performance across all models, with IndoBERT achieving the highest F1-score of 0.93, followed by IndoBERTweet with 0.91, while the classical algorithms achieved average F1-scores ranging from 0.89 to 0.90. Meanwhile, both the non-oversampling scenario and oversampling after data splitting on the training data resulted in lower performance, with average F1-scores ranging from 0.70 to 0.78. These findings indicate that Transformer-based models are more effective in capturing informal language characteristics commonly found in social media comments. Furthermore, balancing the dataset before model training significantly improves the stability and performance of sentiment classification on imbalanced data.
Downloads
References
H. Yaputra, “Tagar Indonesia Gelap Dapat 81 Persen Sentimen Negatif,” Tempo. Accessed: Nov. 02, 2025. [Online]. Available: https://www.tempo.co/politik/tagar-indonesia-gelap-dapat-81-persen-sentimen-negatif-1221552
D. T. Aswan, “Indonesia Gelap Trending X Capai 14 Juta Cuitan 24 Jam, Perkara Aksi Demo Mahasiswa Gegara Efisiensi,” Tribunnews. Accessed: Nov. 02, 2025. [Online]. Available: https://sultra.tribunnews.com/2025/02/18/indonesia-gelap-trending-x-capai-14-juta-cuitan-24-jam-perkara-aksi-demo-mahasiswa-gegara-efisiensi
I. Khozen, “Indonesia Gelap: Ketakutan publik atas negara yang direbut,” Publication: Fakultas Ilmu Administrasi Universitas Indonesia (FIA UI). Accessed: Nov. 02, 2025. [Online]. Available: https://fia.ui.ac.id/indonesia-gelap-a-public-fear-over-a-seized-country/
A. Firdaus, “Apa itu ‘Indonesia Gelap’, tajuk unjuk rasa mahasiswa di beberapa daerah?,” BenarNews. Accessed: Nov. 02, 2025. [Online]. Available: https://www.benarnews.org/indonesian/berita/apa-itu-indonesia-gelap-02212025063250.html
D. Andzani, D. Virgin, B. Pristica, and D. L. Dwihadiah, “Analisis Peran Media Sosial Dalam Proses Mediatisasi Politik: Perspektif Komunikasi Politik dan Partisipas Publik,” Jurnal Ilmiah Manajemen Bisnis dan Inovasi Universitas Sam Ratulangi (JMBI UNSRAT), vol. 11, no. 1, pp. 1003–1011, Apr. 2024, doi: https://doi.org/10.35794/jmbi.v11i1.55526.
H. B. Mardikantoro, M. B. Siroj, E. S. Utami, and E. Kurniati, “Investigating Indonesian language varieties in social media interactions: Implications to teaching practices,” Indonesian Journal of Applied Linguistics, vol. 13, no. 2, pp. 306–316, Sep. 2023, doi: https://doi.org/10.17509/ijal.v13i2.63069.
J. R. Jim, M. A. R. Talukder, P. Malakar, M. M. Kabir, K. Nur, and M. F. Mridha, “Recent advancements and challenges of NLP-based sentiment analysis: A state-of-the-art review,” Natural Language Processing Journal, vol. 6, pp. 1–30, Mar. 2024, doi: https://doi.org/10.1016/j.nlp.2024.100059.
G. Mario Conroy Paridy Man, A. Aristo Jansen Sinlae, and E. Ngaga, “Analisis Sentimen di Media Sosial X tentang IKN dengan Naïve Bayes,” JIP (Jurnal Informatika Polinema), vol. 11, no. 4, pp. 417–425, Aug. 2025, doi: https://doi.org/10.33795/jip.v11i4.7246.
M. B. M. Amin et al., “Deteksi Spam Berbahasa Indonesia Berbasis Teks Menggunakan Model Bert,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 6, pp. 1291–1301, Dec. 2024, doi: https://doi.org/10.25126/jtiik.2024118121.
Muh. Hasbi Asshiddiq and A. Witanti, “Analisis Sentimen tentang Penundaan Pengangkatan CPNS 2025 pada Platform X Menggunakan Metode IndoBERT,” Jurnal teknika, vol. 17, no. 2, pp. 97–108, Sep. 2025, doi: 10.30736/jt.v17i2.1448.
W. Widyananda, Maskur, and A. Fauzi, “Machine Learning and Transformer-based Model for Sentiment Analysis of Indonesian E-Commerce Reviews,” The Indonesian Journal of Computer Science, vol. 14, no. 4, pp. 6262–6271, Aug. 2025, doi: https://doi.org/10.33022/ijcs.v14i4.4980.
H. Jayadianti, W. Kaswidjanti, A. T. Utomo, S. Saifullah, F. A. Dwiyanto, and R. Drezewski, “Sentiment analysis of Indonesian reviews using fine-tuning IndoBERT and R-CNN,” ILKOM Jurnal Ilmiah, vol. 14, no. 3, pp. 348–354, Dec. 2022, doi: https://doi.org/10.33096/ilkom.v14i3.1505.348-354.
J. C. Setiawan, K. M. Lhaksmana, and Bunyamin, “Sentiment Analysis of Indonesian TikTok Review Using LSTM and IndoBERTweet Algorithm,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 8, no. 3, pp. 774–780, Sep. 2023, doi: https://doi.org/10.29100/jipi.v8i3.3911.
A. Annur Rohman, G. Alfa Trisnapradika, and K. Kunci, “Perbandingan Algoritma NBC, SVM, Logistic Regression untuk Analisis Sentimen Terhadap Wacana KaburAjaDulu di Media Sosial X,” Building of Informatics, Technology and Science (BITS), vol. 7, no. 1, pp. 169–178, Jun. 2025, doi: https://doi.org/10.47065/bits.v7i1.7261.
R. Herdian Saputra and R. Randy Suryono, “Perbandingan Algoritma SVM, Random Forest, dan Naive Bayes Terhadap Kasus Scam di Media Sosial Twitter,” Technology and Science (BITS), vol. 7, no. 2, pp. 907–919, Sep. 2025, doi: https://doi.org/10.47065/bits.v7i2.7236.
U. Khairani, V. Mutiawani, and H. Ahmadian, “Pengaruh Tahapan Preprocessing Terhadap Model Indobert Dan Indobertweet Untuk Mendeteksi Emosi Pada Komentar Akun Berita Instagram,” Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK)), vol. 11, no. 4, pp. 887–894, Aug. 2024, doi: https://doi.org/10.25126/jtiik.1148315.
M. Fernanda Naufal Fathoni, E. Yulia Puspaningrum, and A. Nugroho Sihananto, “Perbandingan Performa Labeling Lexicon InSet dan VADER pada Analisa Sentimen Rohingya di Aplikasi X dengan SVM,” Jurnal Informatika dan Sains Teknologi, vol. 1, no. 3, pp. 62–76, Jul. 2024, doi: https://doi.org/10.62951/modem.v2i3.112.
M. Rafly Gusmansyah, H. Hendrawan, Rahmaddeni, and Rohid, “Peningkatan Kinerja Analisis Sentimen pada Ulasan Aplikasi Identitas Kependudukan Digital (IKD) di Indonesia Menggunakan Algoritma Support Vector Machine (SVM) dan Smote,” Jurnal Instek, vol. 10, no. 1, pp. 185–196, May 2025, doi: https://doi.org/10.24252/instek.v10i1.55292.
I. Sari B, Muh. Rafli Rasyid, F. Wajidi, and K. Kunci, “Implementasi Support Vector Machine Untuk Analisis Sentimen Robot Polisi Humanoid,” Jurnal Sistem Informasi dan Teknik Komputer (SIMTEK), vol. 10, no. 2, pp. 329–335, Oct. 2025, doi: https://doi.org/10.51876/simtek.v10i2.1623.
A. Mu’amar Wahid, K. Adi Nugroho, T. Safitri, Darmono, and F. Setyo Utomo, “Optimasi Logistic Regression dan Random Forest untuk Deteksi Berita Hoax Berbasis TF-IDF,” Jurnal Pendidikan dan Teknologi Indonesia (JPTI), vol. 4, no. 8, pp. 381–392, Jan. 2025, doi: 10.52436/1.jpti.602.
S. Rihastuti and A. Rosyidi, “Analisis Sentimen Pengguna Tiktok Tentang Progres Pembangunan IKN Dengan Metode Random Forest,” Journal of Computer Science and Technology JCS-TECH, vol. 5, no. 1, pp. 19–23, May 2025, doi: https://doi.org/10.54840/jcstech.v5i1.345.
S. Syakira Rambe, Asriyanik, and Prajoko, “Penerapan Model Convolutional Neural Network (CNN) Berbasis MobilenetV2 Untuk Klasifikasi Tingkat Kesegaran Ikan Nila,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 13, no. 3, pp. 2234–2246, Jul. 2025, doi: https://doi.org/10.23960/jitet.v13i3.6744.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Perbandingan Kinerja Model IndoBERT, IndoBERTweet, dan Algoritma Klasik pada Analisis Sentimen Isu Indonesia Gelap
Pages: 1601-1613
Copyright (c) 2025 Fris Alvin, Nurul Anisa Sri Winarsih

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















