Public Sentiment Analysis on Ethanol-Blended Fuel News Using Support Vector Machine and Naïve Bayes

Authors

  • Muhammad Khadafi Universitas Dinamika Bangsa, Indonesia
  • Riza Pahlevi Universitas Dinamika Bangsa, Indonesia
  • Eni Rohaini Universitas Dinamika Bangsa, Indonesia

DOI:

https://doi.org/10.47709/brilliance.v6i3.9007

Keywords:

Sentiment Analysis, Support Vector Machine, Naïve Bayes, SMOTE, Ethanol-blended fuel

Abstract

The increasing discourse surrounding ethanol-blended fuel policy in Indonesia has generated substantial public opinion across digital media platforms. Understanding this public sentiment is essential for policymakers and stakeholders in formulating effective communication strategies and evidence-based policy decisions. This study aims to (1) implement Support Vector Machine (SVM) and Naïve Bayes algorithms for classifying public sentiment toward ethanol-blended fuel news and (2) compare the performance of both algorithms using accuracy, precision, recall, and F1-score metrics. A total of 1,492 YouTube comments were collected through web scraping and preprocessed using case folding, tokenization, normalization, and stemming. Features were extracted using Term Frequency–Inverse Document Frequency (TF-IDF), and sentiments were classified into positive, negative, and neutral categories. Model performance was evaluated using a confusion matrix and the aforementioned metrics. Results show that SVM achieved a higher test accuracy of 73% and mean cross-validation accuracy of 72.05%, while Naïve Bayes obtained 61% and 64.94%, respectively. SVM also demonstrated superior weighted precision on the test set (0.72 vs. 0.65), whereas Naïve Bayes achieved higher macro recall (0.50 vs. 0.37) and macro F1-score (0.47 vs. 0.35). Cross-validation results showed a similar pattern. A Paired T-Test confirmed statistically significant differences between the models across all evaluation metrics (accuracy p=0.00016, precision p=0.039, recall p<0.001, F1-score p<0.001). This study contributes to Indonesian-language sentiment analysis in the renewable energy policy domain and provides insights into public perception of the national ethanol fuel blending program.

References

Alloysius Joko Purwanto & Dian Lutfiana. (2024). Developing Biofuel-Based Road Transport Industry: Market Penetration Assessment of Biodiesel (B100) and Bioethanol (E100) as Road Transport Fuels in Indonesia (Research Project Report No. FY2024 No. 13). Jakarta, Indonesia: Economic Research Institute for ASEAN and East Asia (ERIA). Retrieved from Economic Research Institute for ASEAN and East Asia (ERIA) website: https://www.eria.org/research/developing-biofuel-based-road-transport-industry--market-penetration-assessment-of-biodiesel--b100--and-bioethanol--e100--as-road-transport-fuels-in-indonesia

Angdresey, A., Sitanayah, L., & Tangka, I. L. H. (2025). Sentiment Analysis for Political Debates on YouTube Comments using BERT Labeling, Random Oversampling, and Multinomial Naïve Bayes. Journal of Computing Theories and Applications, 2(3), 342–354. https://doi.org/10.62411/jcta.11668

Danyal, M. M., Khan, S. S., Khan, M., Ullah, S., Ghaffar, M. B., & Khan, W. (2024). Sentiment analysis of movie reviews based on NB approaches using TF–IDF and count vectorizer. Social Network Analysis and Mining, 14(1), 87. https://doi.org/10.1007/s13278-024-01250-9

Dinh Xuan, T., Vu Minh, D., Hoa, B. P., Duc, K. N., & Nguyen Duy, V. (2022). Influence of ethanol-gasoline blended fuel on performance and emission characteristics of the test motorcycle engine. Journal of the Air & Waste Management Association, 72(8), 895–904. https://doi.org/10.1080/10962247.2022.2064003

Gasparetto, A., Marcuzzo, M., Zangari, A., & Albarelli, A. (2022). A Survey on Text Classification Algorithms: From Text to Predictions. Information, 13(2), 83. https://doi.org/10.3390/info13020083

Helmud, E., Helmud, E., Fitriyani, F., & Romadiana, P. (2024). Classification Comparison Performance of Supervised Machine Learning Random Forest and Decision Tree Algorithms Using Confusion Matrix. Jurnal Sisfokom (Sistem Informasi Dan Komputer), 13(1), 92–97. https://doi.org/10.32736/sisfokom.v13i1.1985

Jude Chukwura Obi. (2023). A comparative study of several classification metrics and their performances on data. World Journal of Advanced Engineering Technology and Sciences, 8(1), 308–314. https://doi.org/10.30574/wjaets.2023.8.1.0054

Khairunnisa, S., Adiwijaya, A., & Faraby, S. A. (2021). Pengaruh Text Preprocessing terhadap Analisis Sentimen Komentar Masyarakat pada Media Sosial Twitter (Studi Kasus Pandemi COVID-19). JURNAL MEDIA INFORMATIKA BUDIDARMA, 5(2), 406. https://doi.org/10.30865/mib.v5i2.2835

Lin, C.-H., & Nuha, U. (2023). Sentiment analysis of Indonesian datasets based on a hybrid deep-learning strategy. Journal of Big Data, 10(1), 88. https://doi.org/10.1186/s40537-023-00782-9

Nurkholis, A., Alita, D., & Munandar, A. (2022). Comparison of Kernel Support Vector Machine Multi-Class in PPKM Sentiment Analysis on Twitter. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 6(2), 227–233. https://doi.org/10.29207/resti.v6i2.3906

Rodríguez-Ibánez, M., Casánez-Ventura, A., Castejón-Mateos, F., & Cuenca-Jiménez, P.-M. (2023). A review on sentiment analysis from social media platforms. Expert Systems with Applications, 223, 119862. https://doi.org/10.1016/j.eswa.2023.119862

Soleymani Angili, T., Grzesik, K., Rödl, A., & Kaltschmitt, M. (2021). Life Cycle Assessment of Bioethanol Production: A Review of Feedstock, Technology and Methodology. Energies, 14(10), 2939. https://doi.org/10.3390/en14102939

Sujon, K. M., Hassan, R., Choi, K., & Samad, M. A. (2025). Accuracy, precision, recall, f1-score, or MCC? Empirical evidence from advanced statistics, ML, and XAI for evaluating business predictive models. Journal of Big Data, 12(1), 268. https://doi.org/10.1186/s40537-025-01313-4

Supriyono, Wibawa, A. P., Suyono, & Kurniawan, F. (2024). Advancements in natural language processing: Implications, challenges, and future directions. Telematics and Informatics Reports, 16, 100173. https://doi.org/10.1016/j.teler.2024.100173

Wahid, Y. A., Sanatang, & Andayani, D. D. (2025). Performance Comparison of Svm and Naïve Bayes For Indonesian-Language Sentiment Analysis On Free Fire Reviews Using Tf-Idf And Smote. Journal of Embedded Systems, Security and Intelligent Systems, 674–689. https://doi.org/10.59562/jessi.v6i4.10818

Wankhade, M., Rao, A. C. S., & Kulkarni, C. (2022). A survey on sentiment analysis methods, applications, and challenges. Artificial Intelligence Review, 55(7), 5731–5780. https://doi.org/10.1007/s10462-022-10144-1

Zulfikar, W. B., Atmadja, A. R., & Pratama, S. F. (2023). Sentiment Analysis on Social Media Against Public Policy Using Multinomial Naive Bayes. Scientific Journal of Informatics, 10(1), 25–34. https://doi.org/10.15294/sji.v10i1.39952

Downloads

Published

2026-07-13

How to Cite

Khadafi, M., Pahlevi, R., & Rohaini, E. (2026). Public Sentiment Analysis on Ethanol-Blended Fuel News Using Support Vector Machine and Naïve Bayes. Brilliance: Research of Artificial Intelligence, 6(3), 400–408. https://doi.org/10.47709/brilliance.v6i3.9007

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

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