OPTIMASI HYPERPARAMETER INDOBERT UNTUK ANALISIS SENTIMEN KENDARAAN LISTRIK DENGAN KOMPARASI ALGORITMA MACHINE LEARNING

Authors

  • Elly Indrayuni Universitas Bina Sarana Informatika image/svg+xml
  • Acmad Nurhadi

DOI:

https://doi.org/10.33480/inti.v21i1.8588

Keywords:

Electric Vehicles, Hyperparameter Optimization, IndoBERT, Machine Learning, Sentiment Analysis

Abstract

The presence of electric vehicles has generated diverse public opinions on social media, creating the need for an automated approach to sentiment identification. Transformer-based models such as IndoBERT can capture semantic context more effectively than conventional machine learning methods that rely on feature representations such as TF-IDF, which are less effective in modeling word relationships, particularly in imbalanced datasets. This study aims to analyze public sentiment toward electric vehicles using an IndoBERT model optimized with Grid Search and compare its performance with Naive Bayes and Support Vector Machine (SVM). An experimental method was applied to a dataset of 1,517 Indonesian-language opinions. IndoBERT was fine-tuned using Grid Search by evaluating hyperparameter combinations of epochs (3, 4, and 5), learning rates (2e-5 and 3e-5), and a batch size of 16. Model performance was evaluated using accuracy, precision, recall, F1-score, and ROC-AUC. The best IndoBERT configuration was obtained with 5 epochs, a learning rate of 3e-5, and a batch size of 16, achieving 73% accuracy. Although its accuracy matched that of SVM, IndoBERT produced more balanced results, with a macro F1-score of 0.62 and the highest average AUC (0.780), outperforming SVM (0.758) and Naive Bayes (0.736). The novelty of this study lies in optimizing IndoBERT using Grid Search and comparing it with Naive Bayes and SVM based on ROC-AUC for Indonesian-language electric vehicle sentiment analysis. The findings demonstrate that Grid Search optimization enhances IndoBERT's contextual understanding, resulting in superior overall performance.

Downloads

Download data is not yet available.

References

A. Bello, S. C. N., & Leung, M. F. (2023). A BERT Framework to Sentiment Analysis of Tweets. Sensors, 23(1). https://doi.org/10.3390/s23010506

Alin, F. N., Totohendarto, M. H., & Muttaqin, M. R. (2023). Analisis Sentimen Terhadap Kendaraan Listrik Pada Platform Twitter Menggunakan Metode Naive Bayes. INFORMATICS FOR EDUCATORS AND PROFESSIONAL : Journal of Informatics, 8(2), 96–107. https://doi.org/https://doi.org/10.51211/itbi.v8i2.2490

Azzahra, W. L., & Mailoa, E. (2025). Analisis Sentimen terhadap RSUD Salatiga Menggunakan SVM dan TF-IDF. Jurnal Indonesia : Manajemen Informatika Dan Komunikasi, 6(1), 478–489. https://doi.org/10.35870/jimik.v6i1.1208

Ernawati, S., & Wati, R. (2024). Evaluasi Performa Kernel SVM dalam Analisis Sentimen Review Aplikasi ChatGPT Menggunakan Hyperparameter dan VADER Lexicon. Jurnal Buana Informatika, 15(01), 40–49. https://doi.org/10.24002/jbi.v15i1.7925

Haris, M., Suharso, A., & Nurkifli, E. H. (2024). Analisis Sentimen Pada Game Efootball Di Google Play Store Menggunakan Algoritma Indobert. JATI (Jurnal Mahasiswa Teknik Informatika), 8(6), 12108–12121. https://doi.org/10.36040/jati.v8i6.11810

Husen, R. A., Astuti, R., Marlia, L., Rahmaddeni, R., & Efrizoni, L. (2023). Analisis Sentimen Opini Publik pada Twitter Terhadap Bank BSI Menggunakan Algoritma Machine Learning. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 3(2), 211–218. https://doi.org/10.57152/malcom.v3i2.901

Mustofa, R. L., Tarno, & Widodo, C. E. W. (2025). Analisis Sentimen Berbasis Aspek Pada Aplikasi Elektronik Survei Kepuasan Masyarakat (E-Skm) Jawa Tengah Menggunakan Indobert Aspect-Based Sentiment Analysis on the Central Java Public Satisfaction Survey Electronic Application (E-Skm) Using Indobert. JTIIK(Jurnal Teknologi Informasi Dan Ilmu Komputer), 12(4), 867–874. https://doi.org/https://doi.org/10.25126/jtiik.124

Ningsih, W., Alfianda, B., Rahmaddeni, R., & Wulandari, D. (2024). Perbandingan Algoritma SVM dan Naïve Bayes dalam Analisis Sentimen Twitter pada Penggunaan Mobil Listrik di Indonesia. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(2), 556–562. https://doi.org/10.57152/malcom.v4i2.1253

Nurtikasari, Y., Syariful Alam, & Teguh Iman Hermanto. (2022). Analisis Sentimen Opini Masyarakat Terhadap Film Pada Platform Twitter Menggunakan Algoritma Naive Bayes. INSOLOGI: Jurnal Sains Dan Teknologi, 1(4), 411–423. https://doi.org/10.55123/insologi.v1i4.770

Nuryadi, D., Metandi, F., Alam Hadiwijaya, N., Zainul Rohman, M., Hartanto, S., Syafrizal, A., & Yadie, E. (2025). Fine Tuning Indobert Untuk Analisis Sentimen Pada Ulasan Pengguna Aplikasi Tiket.Com Di Google Play Store. JATI (Jurnal Mahasiswa Teknik Informatika), 9(2), 3577–3583. https://doi.org/10.36040/jati.v9i2.13204

Rizkia, A. S., Wufron, & Roji, F. F. (2025). Sentiment Analysis of Coretax: A Comparison of Manual, Transformers- Based, and Lexicon-Based Data Labeling on IndoBERT Performance. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 5(3), 1037–1048. https://doi.org/https://doi.org/10.57152/malcom.v5i3.2151

Salsabila, S. A., Priyatna, B., Hananto, A., & Tukino. (2025). Komparasi Kinerja Model Naive Bayes, SVM, dan BERT dalam Klasifikasi Sentimen Ulasan Pada Aplikasi YUMMY. STORAGE: Jurnal Ilmiah Teknik Dan Ilmu Komputer, 4(2), 42–47. https://doi.org/10.55123/storage.v4i2.5120

Simarmata, A. A. P., & Sasongko, T. B. (2025). Sentiment Analysis on BRImo Application Reviews Using IndoBERT. Journal of Applied Informatics and Computing, 9(3), 851–862. https://doi.org/10.30871/jaic.v9i3.8162

Sujadi, H., Fajar, S., & Roni, C. (2022). Analisis Sentimen Pengguna Media Sosial Twitter Terhadap Wabah Covid-19 Dengan Metode Naive Bayes Classifier Dan Support Vector Machine. INFOTECH Journal, 8(1), 22–27. https://doi.org/10.31949/infotech.v8i1.1883

Widagdo, A. S., Ardiansyah, Qodri, K. N., Saputra, F. E. N., & Putri, N. A. R. (2023). Analisis Sentimen Mobil Listrik di Indonesia Menggunakan Long-Short Term Memory (LSTM). Jurnal Fasilkom, 13(3), 416–423. https://doi.org/https://doi.org/10.37859/jf.v13i3.6303

Wijaya, D. R., Sasmitha, G. M. A., & Vihikan, W. O. (2024). Sentiment Analysis of Indonesian Citizens on Electric Vehicle Using FastText and BERT Method. Journal of Information Systems and Informatics, 6(3), 1360–1372. https://doi.org/10.51519/journalisi.v6i3.784

Downloads

Published

2026-08-05

How to Cite

OPTIMASI HYPERPARAMETER INDOBERT UNTUK ANALISIS SENTIMEN KENDARAAN LISTRIK DENGAN KOMPARASI ALGORITMA MACHINE LEARNING. (2026). INTI Nusa Mandiri, 21(1), 47-57. https://doi.org/10.33480/inti.v21i1.8588

Most read articles by the same author(s)