Sentiment Analysis of X Users Toward Electric Motorcycles Using SVM and BERT Algorithms

Authors

  • Calvin Adiwinata Universitas Mercu Buana
  • Afiyati Afiyati Universitas Mercu Buana

DOI:

https://doi.org/10.30595/juita.v13i2.26152

Keywords:

Electric Motorcycles, Sentiment Analysis, SVM, BERT, Social Media

Abstract

This study presents a comparative analysis of Support Vector Machine (SVM) and Bidirectional Encoder Representations from Transformers (BERT) for sentiment analysis on electric motorcycles in Indonesia using data from the social media platform X, formerly known as Twitter. The dataset of 128,711 tweets collected between 2015 and 2024 was refined through systematic preprocessing, reducing the corpus to 38,954 entries after data cleaning, tokenization, and feature selection. The objective was to evaluate algorithm performance in classifying public sentiment, with metrics including accuracy, precision, recall, and computational efficiency. Results showed that SVM achieved higher overall accuracy 89.74% with strong precision for positive sentiment 91%, while BERT, specifically the IndoBERT variant, demonstrated superior recall for negative sentiment 91% despite slightly lower accuracy 87.90%, effectively capturing nuanced contextual language, such as sarcasm, informal expressions, and emotionally ambiguous statements that require deeper semantic understanding beyond literal word meanings. Computational analysis revealed that SVM required approximately 53 minutes of CPU training, compared to BERT’s 3.3 hours on GPU. The study suggests that SVM is optimal for rapid, resource-constrained applications, whereas BERT excels in detailed contextual analysis. These findings guide stakeholders in selecting algorithms based on analytical priorities, such as monitoring public reception or addressing consumer concerns

References

[1] V. Tulus Pangapoi Sidabutar, “Kajian pengembangan kendaraan listrik di Indonesia: prospek dan hambatannya,” Jurnal Paradigma Ekonomika, vol. 15, no. 1, pp. 21–38, May 2020, doi: 10.22437/paradigma.v15i1.9217.

[2] A. F. Riyadi, F. R. Rahman, M. A. Nofa Pratama, M. K. Khafidli, and H. Patria, “Pengukuran Sentimen Sosial Terhadap Teknologi Kendaraan Listrik: Bukti Empiris di Indonesia,” EXPERT: Jurnal Manajemen Sistem Informasi dan Teknologi, vol. 11, no. 2, p. 141, Dec. 2021, doi: 10.36448/expert.v11i2.2171.

[3] APJII, “Survey Internet APJII 2024,” 2024.

[4] Y. Sartika Sari, “Sentiment Analysis of Public Service Performance in Jakarta Using the Naïve Bayes Algorithm and Support Vector Machine,” International Journal of Multidisciplinary Research and Publications (IJMRAP), vol. 7, no. 3, pp. 49–55, 2024, [Online]. Available: http://site.com

[5] G. N. Hendrawan and H. Kusniyati, “Evaluasi Performa Naive Bayes dan SVM dalam Analisis Sentimen Kendaraan Listrik di Media Sosial Twitter Evaluating the Performance of Naive Bayes and SVM in Sentiment Analysis of Electric Vehicles on Twitter Social Media,” Journal of Computing Engineering, System and Science) e-ISSN, vol. 9, no. 1, pp. 299–313, 2024, [Online]. Available: www.jurnal.unimed.ac.id

[6] A. Nata, D. Wicaksono, and D. Jayus, “Analisis Sentimen Publik Indonesia Terhadap Motor Listrik pada Media Sosial Twitter,” THETA OMEGA: Journal of Electrical Engineering, vol. 4, no. 1, p. 2023, 2023, doi: 10.31002/jeecit.v4i1.7526.

[7] R. Merdiansah, Siska, and A. Ali Ridha, “Analisis Sentimen Pengguna X Indonesia Terkait Kendaraan Listrik Menggunakan IndoBERT,” Jurnal Ilmu Komputer dan Sistem Informasi (JIKOMSI, vol. 7, no. 1, pp. 221–228, 2024, doi: 10.55338/jikomsi.v7i1.2895.

[1] V. Tulus Pangapoi Sidabutar, “Kajian pengembangan kendaraan listrik di Indonesia: prospek dan hambatannya,” Jurnal Paradigma Ekonomika, vol. 15, no. 1, pp. 21–38, May 2020, doi: 10.22437/paradigma.v15i1.9217.

[2] A. F. Riyadi, F. R. Rahman, M. A. Nofa Pratama, M. K. Khafidli, and H. Patria, “Pengukuran Sentimen Sosial Terhadap Teknologi Kendaraan Listrik: Bukti Empiris di Indonesia,” EXPERT: Jurnal Manajemen Sistem Informasi dan Teknologi, vol. 11, no. 2, p. 141, Dec. 2021, doi: 10.36448/expert.v11i2.2171.

[3] APJII, “Survey Internet APJII 2024,” 2024.

[4] Y. Sartika Sari, “Sentiment Analysis of Public Service Performance in Jakarta Using the Naïve Bayes Algorithm and Support Vector Machine,” International Journal of Multidisciplinary Research and Publications (IJMRAP), vol. 7, no. 3, pp. 49–55, 2024, [Online]. Available: http://site.com

[5] G. N. Hendrawan and H. Kusniyati, “Evaluasi Performa Naive Bayes dan SVM dalam Analisis Sentimen Kendaraan Listrik di Media Sosial Twitter Evaluating the Performance of Naive Bayes and SVM in Sentiment Analysis of Electric Vehicles on Twitter Social Media,” Journal of Computing Engineering, System and Science) e-ISSN, vol. 9, no. 1, pp. 299–313, 2024, [Online]. Available: www.jurnal.unimed.ac.id

[6] A. Nata, D. Wicaksono, and D. Jayus, “Analisis Sentimen Publik Indonesia Terhadap Motor Listrik pada Media Sosial Twitter,” THETA OMEGA: Journal of Electrical Engineering, vol. 4, no. 1, p. 2023, 2023, doi: 10.31002/jeecit.v4i1.7526.

[7] R. Merdiansah, Siska, and A. Ali Ridha, “Analisis Sentimen Pengguna X Indonesia Terkait Kendaraan Listrik Menggunakan IndoBERT,” Jurnal Ilmu Komputer dan Sistem Informasi (JIKOMSI, vol. 7, no. 1, pp. 221–228, 2024, doi: 10.55338/jikomsi.v7i1.2895.

[8] M. H. Ali Al-Abyadh et al., “Deep Sentiment Analysis of Twitter Data Using a Hybrid Ghost Convolution Neural Network Model,” Comput Intell Neurosci, vol. 2022, 2022, doi: 10.1155/2022/6595799.

[9] T. S. Sabrila, Y. Azhar, and C. S. K. Aditya, “Analisis Sentimen Tweet Tentang UU Cipta Kerja Menggunakan Algoritma SVM Berbasis PSO,” JISKA (Jurnal Informatika Sunan Kalijaga), vol. 7, no. 1, pp. 10–19, Jan. 2022, doi: 10.14421/jiska.2022.7.1.10-19.

[10] K. Ahmed et al., “Exploiting Stacked Autoencoders for Improved Sentiment Analysis,” Applied Sciences (Switzerland), vol. 12, no. 23, Dec. 2022, doi: 10.3390/app122312380.

[11] Q. Yang and C. Liu, “Application of twin objective function SVM in sentiment analysis,” in Frontiers in Artificial Intelligence and Applications, IOS Press BV, Dec. 2020, pp. 221–228. doi: 10.3233/FAIA200786.

[12] A. Bello, S. C. Ng, and M. F. Leung, “A BERT Framework to Sentiment Analysis of Tweets,” Sensors, vol. 23, no. 1, Jan. 2023, doi: 10.3390/s23010506.

[13] N. Liu and J. Zhao, “A BERT-Based Aspect-Level Sentiment Analysis Algorithm for Cross-Domain Text,” Comput Intell Neurosci, vol. 2022, 2022, doi: 10.1155/2022/8726621.

[14] R. Duan, Z. Huang, Y. Zhang, X. Liu, and Y. Dang, “Sentiment Classification Algorithm Based on the Cascade of BERT Model and Adaptive Sentiment Dictionary,” Wirel Commun Mob Comput, vol. 2021, 2021, doi: 10.1155/2021/8785413.

[15] M. S. Sayeed, V. Mohan, and K. S. Muthu, “BERT: A Review of Applications in Sentiment Analysis,” Jun. 01, 2023, Ital Publication. doi: 10.28991/HIJ-2023-04-02-015.

[16] A. S. P. Braja and A. Kodar, “Implementasi Fine-Tuning BERT untuk Analisis Sentimen terhadap Review Aplikasi PUBG Mobile di Google Play Store,” J I M P - Jurnal Informatika Merdeka Pasuruan, vol. 7, no. 3, pp. 120–128, 2023, doi: 10.51213/jimp.v7i3.779.

[17] H. K. Putra, M. A. Bijaksana, and A. Romadhony, “Deteksi Penggunaan Kalimat Abusive Pada Teks Bahasa Indonesia Menggunakan Metode IndoBERT,” e-Proceeding of Engineering, vol. 8, no. 2, pp. 3028–3038, 2021, [Online]. Available: https://api.semanticscholar.org/CorpusID:237062279

[18] M. Syahputra, A. Putera Kemala, and D. Ramdhan, “Clickbait Detection in Indonesia Headline News Using IndoBERT and RoBERTa,” Jurnal Riset Informatika, vol. 5, pp. 425–430, Jun. 2023, doi: 10.34288/jri.v5i3.556.

[19] H. Satria, “Tweet Harvest,” Github. Accessed: Dec. 23, 2024. [Online]. Available: https://github.com/helmisatria/tweet-harvest

[20] M. Fahmi, “Kamus Lexicon 1,” Github. Accessed: Dec. 23, 2024. [Online]. Available: https://github.com/MohFahmi27/Sentiment-Analysis-for-Bahasa-using-Lexicon-Based-Approach/blob/main/data/datasetAnalysis/lexicon-word-dataset.csv

[21] F. Koto, “Inset (Indonesia Sentiment Lexicon),” Github. Accessed: Dec. 23, 2024. [Online]. Available: https://github.com/fajri91/InSet

[22] A. M. Afinda, “Kamus Lexicon 2,” Github. Accessed: Dec. 23, 2024. [Online]. Available: https://github.com/angelmetanosaa/dataset/blob/main/lexicon_negative.csv

[23] C. K. Vu, “How can I prevent Google Colab from disconnecting?,” stackoverflow. Accessed: Jan. 15, 2025. [Online]. Available: https://stackoverflow.com/questions/57113226/how-can-i-prevent-google-colab-from-disconnecting?page=2&tab=scoredesc#tab-top

[24] D. Andriyani, A. Faqih, and S. E. Permana, “The Effect of SMOTE Application on Support Vector Machine Performance in Sentiment Classification on Imbalanced Datasets,” Journal of Artificial Intelligence and Engineering Applications, vol. 4, no. 2, pp. 752–757, 2025, doi: 10.59934/jaiea.v4i2.742.

[25] F. Rahman and A. S. Girsang, “IndoBERTweet for Sarcasm: Evaluating Domain-Adapted Transformers for Indonesian Twitter Sarcasm Classification,” Journal of Logistics, Informatics and Service Science, vol. 11, no. 2, pp. 155–164, 2024, doi: 10.33168/JLISS.2024.0210.

[26] A. Mirugwe et al., “Sentiment Analysis of Social Media Data on Ebola Outbreak Using Deep Learning Classifiers,” Life, vol. 14, no. 6, Jun. 2024, doi: 10.3390/life14060708.

[27] N. Sureja, N. Chaudhari, P. Patel, J. Bhatt, T. Desai, and V. Parikh, “Hyper-tuned Swarm Intelligence Machine Learning-based Sentiment Analysis of Social Media,” Engineering, Technology and Applied Science Research, vol. 14, no. 4, pp. 15415–15421, Aug. 2024, doi: 10.48084/etasr.7818.

[28] A. Afiyati, A. Azhari, A. K. Sari, and A. Karim, “Challenges of Sarcasm Detection for Social Network: a Literature Review,” vol. 8, no. 2, pp. 169–178, Nov. 2020, doi: 10.30595/juita.v8i2.8709.

Downloads

Published

2025-08-04

How to Cite

Adiwinata, C., & Afiyati, A. (2025). Sentiment Analysis of X Users Toward Electric Motorcycles Using SVM and BERT Algorithms. JUITA: Jurnal Informatika, 13(2), 119–126. https://doi.org/10.30595/juita.v13i2.26152

Issue

Section

Articles

Most read articles by the same author(s)

Similar Articles

1 > >> 

You may also start an advanced similarity search for this article.