Comparative Sentiment Analysis of YouTube Comments on Indonesia's Electric Vehicle Incentive Policy Using TF-IDF and IndoBERTweet Models
DOI:
https://doi.org/10.52436/1.jutif.2025.6.6.5499Keywords:
Electric Vehicle Incentives, IndoBERTweet, Sentiment Classification, TF-IDF Vectorization, YouTube Comments AnalysisAbstract
Indonesia’s battery electric vehicle (KBLBB) incentives aim to accelerate low-carbon mobility, yet public reactions regarding affordability, charging infrastructure readiness, and subsidy equity remain highly heterogeneous. This research systematically compares classical machine learning and transformer-based models for classifying sentiment in 1,516 YouTube comments discussing the incentive policy and broader EV ecosystem. Comments are collected via web scraping and processed through filtering, case folding, normalization, tokenization, stopword removal, stemming, lexicon-based sentiment labelling, TF-IDF bigram vectorization, random oversampling, and hyperparameter optimization with GridSearch. Support Vector Machine and Random Forest serve as baseline models, while Logistic Regression with TF-IDF bigram and IndoBERTweet represent advanced approaches that exploit richer feature representations. Results show that the baseline models achieve around 65–66% accuracy, Logistic Regression improves performance to 88%, and IndoBERTweet attains the highest accuracy of 94% with balanced precision, recall, and F1-score across sentiment classes. Sentiment distribution indicates that 63.3% of comments are negative, dominated by concerns over limited charging networks, high upfront costs, and perceived unfairness of public subsidies, while 36.7% of comments highlight support for cleaner transportation, technological innovation, and national industrial competitiveness. These findings demonstrate that transformer-based contextual embeddings substantially enhance sentiment classification for noisy Indonesian social media text and provide a scalable informatics tool for continuous monitoring of EV policy reception. The resulting empirical evidence can inform more targeted refinements of incentive design, infrastructure planning, and communication strategies, thereby supporting inclusive, data-driven, and sustainable KBLBB adoption across diverse demographic groups and evolving policy scenarios nationwide over time.
Downloads
References
D. A. Putera, N. Fajri, and T. Alda, “Advancing Electric Vehicle Safety and Adoption in Indonesia: Insights from Global and Local Perspectives,” in The 8th Mechanical Engineering, Science and Technology International Conference, Basel Switzerland: MDPI, Feb. 2025, p. 52. doi: 10.3390/engproc2025084052.
R. Udendhran et al., “Transitioning to sustainable E-vehicle systems – Global perspectives on the challenges, policies, and opportunities,” Journal of Hazardous Materials Advances, vol. 17, p. 100619, Feb. 2025, doi: 10.1016/j.hazadv.2025.100619.
N. Tilly, T. Yigitcanlar, K. Degirmenci, and A. Paz, “How sustainable is electric vehicle adoption? Insights from a PRISMA review,” Sustain Cities Soc, vol. 117, p. 105950, Dec. 2024, doi: 10.1016/j.scs.2024.105950.
N. Damanik, R. Saraswani, D. F. Hakam, and D. M. Mentari, “A Comprehensive Analysis of the Economic Implications, Challenges, and Opportunities of Electric Vehicle Adoption in Indonesia,” Energies (Basel), vol. 18, no. 6, p. 1384, Mar. 2025, doi: 10.3390/en18061384.
F. Fathoni, E. Kesidou, M. M. Rifansha, and A. Tiftazani, “Drivers and barriers of eco-innovation in electric vehicle diffusion: Evidence from Indonesia,” J Environ Manage, vol. 389, p. 126021, Aug. 2025, doi: 10.1016/j.jenvman.2025.126021.
Y. Wu and J. Tham, “The impact of environmental regulation, Environment, Social and Government Performance, and technological innovation on enterprise resilience under a green recovery,” Heliyon, vol. 9, no. 10, p. e20278, Oct. 2023, doi: 10.1016/j.heliyon.2023.e20278.
L. Ariyani, E. Aminullah, W. Hermawati, R. Febrianda, A. H. Y. Rosadi, and A. Dinaseviani, “The global innovation system view for electric vehicles in Indonesia: Facilitating the transition to electric mobility in society,” Sustainable Futures, vol. 9, p. 100741, Jun. 2025, doi: 10.1016/j.sftr.2025.100741.
E. Correia Sinézio Martins, J. Lépine, and J. Corbett, “Assessing the effectiveness of financial incentives on electric vehicle adoption in Europe: Multi-period difference-in-difference approach,” Transp Res Part A Policy Pract, vol. 189, p. 104217, Nov. 2024, doi: 10.1016/j.tra.2024.104217.
Y. Lin, “Social media for collaborative planning: A typology of support functions and challenges,” Cities, vol. 125, p. 103641, Jun. 2022, doi: 10.1016/j.cities.2022.103641.
M. Ahmmad, K. Shahzad, A. Iqbal, and M. Latif, “Trap of Social Media Algorithms: A Systematic Review of Research on Filter Bubbles, Echo Chambers, and Their Impact on Youth,” Societies, vol. 15, no. 11, p. 301, Oct. 2025, doi: 10.3390/soc15110301.
F. Rafiq, E. S. Parthiban, Y. Rajkumari, M. Adil, M. Nasir, and N. Dogra, “From Thinking Green to Riding Green: A Study on Influencing Factors in Electric Vehicle Adoption,” Sustainability, vol. 16, no. 1, p. 194, Dec. 2023, doi: 10.3390/su16010194.
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, p. 100059, Mar. 2024, doi: 10.1016/j.nlp.2024.100059.
B. Ilyas and A. Sharifi, “A systematic review of social media-based sentiment analysis in disaster risk management,” International Journal of Disaster Risk Reduction, vol. 123, p. 105487, Jun. 2025, doi: 10.1016/j.ijdrr.2025.105487.
A. F. Pathan and C. Prakash, “Cross-Domain Aspect Detection and Categorization using Machine Learning for Aspect-based Opinion Mining,” International Journal of Information Management Data Insights, vol. 2, no. 2, p. 100099, Nov. 2022, doi: 10.1016/j.jjimei.2022.100099.
R. F. Ramadhan and W. M. Ashari, “Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks,” Journal of Applied Informatics and Computing, vol. 8, no. 2, pp. 367–375, Nov. 2024, doi: 10.30871/jaic.v8i2.8492.
Y. Mao, Q. Liu, and Y. Zhang, “Sentiment analysis methods, applications, and challenges: A systematic literature review,” Journal of King Saud University - Computer and Information Sciences, vol. 36, no. 4, p. 102048, Apr. 2024, doi: 10.1016/j.jksuci.2024.102048.
R. A. Maisal, A. N. Hidayanto, N. F. Ayuning Budi, Z. Abidin, and A. Purbasari, “Analysis of Sentiments on Indonesian YouTube Video Comments: Case Study of The Indonesian Government’s Plan to Move the Capital City,” in 2019 International Conference on Informatics, Multimedia, Cyber and Information System (ICIMCIS), IEEE, Oct. 2019, pp. 121–124. doi: 10.1109/ICIMCIS48181.2019.8985228.
M. Černá and A. Borkovcová, “YouTube Dominance in Sustainability of Gaining Knowledge via Social Media in University Setting—Case Study,” Sustainability, vol. 12, no. 21, p. 9126, Nov. 2020, doi: 10.3390/su12219126.
D. Erokhin, “ESG Reporting in the Digital Era: Unveiling Public Sentiment and Engagement on YouTube,” Sustainability, vol. 17, no. 15, p. 7039, Aug. 2025, doi: 10.3390/su17157039.
P. Chen, M. H. Selamat, and S.-N. Lee, “The Impact of Policy Incentives on the Purchase of Electric Vehicles by Consumers in China’s First-Tier Cities: Moderate-Mediate Analysis,” Sustainability, vol. 17, no. 12, p. 5319, Jun. 2025, doi: 10.3390/su17125319.
A. R. Mesquita, V. H. S. de Abreu, C. N. Poyares, and A. S. Santos, “Barriers to Electric Vehicle Adoption: A Framework to Accelerate the Transition to Sustainable Mobility,” Sustainability, vol. 17, no. 18, p. 8318, Sep. 2025, doi: 10.3390/su17188318.
J. W. Iskandar and Y. Nataliani, “Perbandingan Naïve Bayes, SVM, dan k-NN untuk Analisis Sentimen Gadget Berbasis Aspek,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 5, no. 6, pp. 1120–1126, Dec. 2021, doi: 10.29207/resti.v5i6.3588.
E. Fitri, “Analisis Sentimen Terhadap Aplikasi Ruangguru Menggunakan Algoritma Naive Bayes, Random Forest Dan Support Vector Machine,” Jurnal Transformatika, vol. 18, no. 1, pp. 71–80, Jul. 2020, doi: 10.26623/transformatika.v18i1.2317.
K. Hasanah, “Comparison of Sentiment Analysis Model for Shopee Comments on Google Play Store,” Jurnal Sisfokom (Sistem Informasi dan Komputer), vol. 13, no. 1, pp. 21–30, Feb. 2024, doi: 10.32736/sisfokom.v13i1.1916.
P. Wahyuningtias, H. Warih Utami, U. Ahda Raihan, H. Nur Hanifah, and Y. Nicholas Adanson, “Comparison of Random Forest and Support Vector Machine Methods on Twitter Sentiment Analysis,” Jurnal Teknik Informatika (JUTIF), vol. 3, no. 1, pp. 141–145, 2022, doi: 10.20884/1.jutif.2022.3.1.168.
A. Kurniawan et al., “Sentiment Analysis on User Opinion of Qasir Application Using A Support Vector Machine And Random Forests,” Teknimedia, no. Vol. 4 No. 1, pp. 1–8, Jun. 2023.
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Arief Suardi Nur Chairat, Randi Rizal, Hidayatulloh Himawan

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





