Articles Vol. 4, No. 2 (2026)
Muhammad Sigit Nurhafid, Rudiman Rudiman, Taghfirul Azhima Yoga
Universitas Muhammadiyah Kalimantan Timur ROR
10.58477/cj.v4i2.497 Published: 2026-08-30
Abstract

This study analyzes sentiment in InDrive user reviews from the Google Play Store using IndoBERT, Genetic Algorithm (GA), and K-Nearest Neighbor (KNN). A total of 2,000 reviews were assigned to three sentiment classes: 1,695 negative, 235 positive, and 70 neutral reviews. The pretrained indobenchmark/indobert-base-p1 model was used as a feature extractor by taking the [CLS] representation to produce 768-dimensional embeddings. The dataset was divided using a stratified 80:20 split into 1,600 training and 400 testing samples. The optimal K value was determined through stratified five-fold cross-validation on the training data. GA was applied only to the training set using a population of 30 individuals, 25 generations, a crossover rate of 0.8, a mutation rate of 0.005, and a feature penalty of 0.002. GA selected 250 features, reducing the dimensionality by 67.45%. IndoBERT + KNN correctly classified 365 of 400 test samples, achieving 91.25% accuracy (95% CI: 88.07–93.64%) and a macro F1-score of 66.88%. IndoBERT + GA + KNN correctly classified 362 samples, achieving 90.50% accuracy (95% CI: 87.23–93.00%) and a macro F1-score of 62.71%. Both models exceeded the 84.75% majority-class baseline. However, only three and two of the 14 neutral samples were correctly classified, respectively. GA substantially reduced feature dimensionality but did not improve predictive performance, indicating a trade-off between representation compactness and minority-class classification performance.

How to Cite

How to Cite

Nurhafid, M. S., Rudiman, R., & Yoga, T. A. (2026). Analisis Sentimen Ulasan Pengguna inDrive Menggunakan IndoBERT dan Algoritma Genetika pada Klasifikasi K-Nearest Neighbor. Computer Journal, 4(2), 224-237. https://doi.org/10.58477/cj.v4i2.497
Muhammad Sigit Nurhafid

Universitas Muhammadiyah Kalimantan Timur

Jurusan S1 Teknik Informatika, Fakultas Sains dan Teknologi, Universitas Muhammadiyah Kalimantan Timur, Kota Samarinda, Provinsi Kalimantan Timur, Indonesia.

Rudiman Rudiman

Universitas Muhammadiyah Kalimantan Timur

Jurusan S1 Teknik Informatika, Fakultas Sains dan Teknologi, Universitas Muhammadiyah Kalimantan Timur, Kota Samarinda, Provinsi Kalimantan Timur, Indonesia.

Taghfirul Azhima Yoga

Universitas Muhammadiyah Kalimantan Timur

Jurusan S1 Teknik Informatika, Fakultas Sains dan Teknologi, Universitas Muhammadiyah Kalimantan Timur, Kota Samarinda, Provinsi Kalimantan Timur, Indonesia.

Issue Vol. 4 No. 2 (2026)
SectionArticles
DOI10.58477/cj.v4i2.497
Publication Date2026-08-30
Pages224-237
  • Aras, S., Yusuf, M., Ruimassa, R. Y., Wambrauw, E. A. B., & Pala’langan, E. B. (2024). Sentiment analysis on Shopee product reviews using IndoBERT. Journal of Information Systems and Informatics, 6(3), 1616–1627. https://doi.org/10.51519/journalisi.v6i3.814
  • Asri, Y., Kuswardani, D., Suliyanti, W. N., Manullang, Y. O., & Ansyari, A. R. (2025). Sentiment analysis based on Indonesian language lexicon and IndoBERT on user reviews PLN Mobile application. Indonesian Journal of Electrical Engineering and Computer Science, 38(1), 677–688. https://doi.org/10.11591/ijeecs.v38.i1.pp677-688
  • Brando, C., Anggai, S., & Tukiyat. (2025). Analisis sentimen ulasan pengguna aplikasi Info BMKG pada Google Play Store menggunakan model Transformer BERT dan RoBERTa. Jurnal SISKOM-KB, 9(1), 40–49. https://doi.org/10.47970/siskom-kb.v9i1.872
  • Cahya, L. D., Luthfiarta, A., Krisna, J. I. T., Winarno, S., & Nugraha, A. (2024). Improving multi-label classification performance on imbalanced datasets through SMOTE technique and data augmentation using IndoBERT model. Jurnal Nasional Teknologi dan Sistem Informasi, 9(3), 290–298. https://doi.org/10.25077/teknosi.v9i3.2023.290-298
  • Gaol, G. L., & Ichwani, A. (2025). Perbandingan kinerja IndoBERT dan KNN dalam analisis sentimen ulasan Tokopedia Google Playstore. Jurnal Rekayasa Teknologi Informasi, 9(4), 427–436. https://doi.org/10.30872/jurti.v9i4.26305
  • Habbat, N., Nouri, H., Anoun, H., & Hassouni, L. (2023). Sentiment analysis of imbalanced datasets using BERT and ensemble stacking for deep learning. Engineering Applications of Artificial Intelligence, 126, 106999. https://doi.org/10.1016/j.engappai.2023.106999
  • Mostafa, A. M., Aljasir, M., Alruily, M., Alsayat, A., & Ezz, M. (2023). Innovative forward fusion feature selection algorithm for sentiment analysis using supervised classification. Applied Sciences, 13(4), 2074. https://doi.org/10.3390/app13042074
  • Nabiilah, G. Z., Alam, I. N., Purwanto, E. S., & Hidayat, M. F. (2024). Indonesian multilabel classification using IndoBERT embedding and MBERT classification. International Journal of Electrical and Computer Engineering, 14(1), 1071–1078. https://doi.org/10.11591/ijece.v14i1.pp1071-1078
  • Pradhisa, K. C., & Fajriyah, R. (2024). Analisis sentimen ulasan pengguna e-commerce di Google Play Store menggunakan metode IndoBERT. Building of Informatics, Technology and Science, 6(1), 92–104. https://doi.org/10.47065/bits.v6i1.5247
  • Putra, G. G. S., Swastika, W., & Irawan, P. L. T. (2022). Perbandingan Particle Swarm Optimization dengan Genetic Algorithm dalam feature selection untuk analisis sentimen pada Permendikbudristek PPKS-LPT. JEPIN (Jurnal Edukasi dan Penelitian Informatika), 8(3), 412–421. https://doi.org/10.26418/jp.v8i3.57300
  • Riyanto, S., Sitanggang, I. S., Djatna, T., & Atikah, T. D. (2023). Comparative analysis using various performance metrics in imbalanced data for multi-class text classification. International Journal of Advanced Computer Science and Applications, 14(6). https://doi.org/10.14569/IJACSA.2023.01406116
  • Sağbaş, E. A. (2024). A novel two-stage wrapper feature selection approach based on greedy search for text sentiment classification. Neurocomputing, 590, 127729. https://doi.org/10.1016/j.neucom.2024.127729
  • Sani, D. A., & Sarwani, M. Z. (2024). A random oversampling and BERT-based model approach for handling imbalanced data in essay answer correction. Jurnal Infotel, 16(4), 729–739. https://doi.org/10.20895/infotel.v16i4.1224
  • Siino, M., Tinnirello, I., & La Cascia, M. (2024). Is text preprocessing still worth the time? A comparative survey on the influence of popular preprocessing methods on transformers and traditional classifiers. Information Systems, 121, 102342. https://doi.org/10.1016/j.is.2023.102342
  • 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
  • Supriyadi, P. F., & Sibaroni, Y. (2023). Xiaomi smartphone sentiment analysis on Twitter social media using IndoBERT. JURIKOM (Jurnal Riset Komputer), 10(1), 19–30. https://doi.org/10.30865/jurikom.v10i1.5540
  • Talaat, A. S. (2023). Sentiment analysis classification system using hybrid BERT models. Journal of Big Data, 10, 110. https://doi.org/10.1186/s40537-023-00781-w
  • Tarwoto, Nugroho, R., Azka, N., & Graha, W. S. R. (2025). Analisis sentimen ulasan aplikasi Mobile JKN di Google PlayStore menggunakan IndoBERT. Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi), 9(2), 495–505. https://doi.org/10.35870/jtik.v9i2.3340
  • Wau, K. (2025). Application of fine-tuned IndoBERT for sentiment classification local product reviews on Tokopedia marketplace with limited dataset. Journal of Artificial Intelligence and Engineering Applications, 5(1), 1377–1381. https://doi.org/10.59934/jaiea.v5i1.1629
  • Wirayudha, A., Murniyati, M., & Rosdiana, R. (2025). Analisis sentimen terhadap ulasan Access By KAI pada Google Play Store menggunakan metode IndoBERT. Portal Riset dan Inovasi Sistem Perangkat Lunak, 3(1), 9–20. https://doi.org/10.59696/prinsip.v3i1.69
License

This work is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Article Statistics
Download data is not yet available.
Similar Articles