Sentiment Analysis of Towards Electric Cars using Naive Bayes Classifier and Support Vector Machine Algorithm

Authors

  • Suryani Suryani Universitas Islam Negeri Sultan Syarif Kasim Riau
  • Muhammad Fauzi Fayyad Universitas Islam Negeri Sultan Syarif Kasim Riau
  • Daffa Takratama Savra Universitas Islam Negeri Sultan Syarif Kasim Riau
  • Viki Kurniawan Universitas Islam Negeri Sultan Syarif Kasim Riau
  • Baihaqi Hilmi Estanto Faculty of Technology, Biomedical Engineering, Pamukkale University, Türkiye

DOI:

https://doi.org/10.57152/predatecs.v1i1.814

Keywords:

Electric Cars, Naïve Bayes Classifier, Sentiment Analysis, Support Vector Machine, Twitter

Abstract

The use of non-renewable energy sources causes a reduction in fossil fuel resources, and greenhouse gas emissions. Based on the 2020 Climate Transparency Report, G20 member countries are trying to minimize gas emissions according to the target of the Nationally Determined Contribution (NDC), that the transportation sector contributes 27% of air pollution. The solution to reduce greenhouse gas emissions is to start using electric cars. The change from conventional transportation to electric transportation is expected to reduce carbon emissions and dependency on fossil fuels. However, the transition from conventional transportation to electric transportation raises pros and cons for the people of Indonesia. Social media Twitter is a forum for sharing opinions. Twitter users can express opinions on a matter. This study uses the sentiment analysis method to determine public opinion on the use of electric cars in Indonesia. Sentiment classification was performed using the NBC and SVM Algorithms. The results of this study indicate the use of two different algorithms, namely the Naive Bayes Classifier and SVM with the highest accuracy in Naive Bayes with k = 2 and k = 9 is 88%, while the highest accuracy in SVM with k = 9 and k = 10 is 90%. Thus, SVM has better capabilities than Naive Bayes in this study.

References

S. A. A. Rizvi, A. Xin, A. Masood, S. Iqbal, M. U. Jan, and H. ur Rehman, “Electric Vehicles and their Impacts on Integration into Power Grid: A Review,” in 2018 2nd IEEE Conference on Energy Internet and Energy System Integration (EI2), IEEE, 2018, pp. 1–6.

A. Mohammad, R. Zamora, and T. T. Lie, “Integration of electric vehicles in the distribution network: A review of PV based electric vehicle modelling,” Energies (Basel), vol. 13, no. 17, Sep. 2020, doi: 10.3390/en13174541.

A. F. Riyadi, F. R. Rahman, M. A. Nofa Pratama, M. K. Khafidli, and H. Patria, “Assessment of Social Sentiment Toward Electric Vehicle Technology: Empirical Evidence in Indonesia,” EXPERT: Jurnal Manajemen Sistem Informasi dan Teknologi, vol. 11, no. 2, p. 141, Dec. 2021, doi: 10.36448/expert.v11i2.2171.

J. I. Mikayilov, S. Mukhtarov, H. Dinçer, S. Yüksel, and R. Ayd?n, “Elasticity analysis of fossil energy sources for sustainable economies: A case of gasoline consumption in Turkey,” Energies (Basel), vol. 13, no. 3, 2020, doi: 10.3390/en13030731.

A. Santoso, A. Nugroho, and A. S. Sunge, “Sentiment Analysis About Electric Cars With Support Vector Machine Method and Feature Selection Particle Swarm Optimization,” Journal of Practical Computer Science, vol. 2, no. 1, pp. 24–31, 2022.

V. A. Fitri, R. Andreswari, and M. A. Hasibuan, “Sentiment analysis of social media Twitter with case of Anti-LGBT campaign in Indonesia using Naïve Bayes, decision tree, and random forest algorithm,” in Procedia Computer Science, Elsevier B.V., 2019, pp. 765–772. doi: 10.1016/j.procs.2019.11.181.

M. K. Anam, B. N. Pikir, and M. B. Firdaus, “Applications of Na ??ve Bayes Classifier, K-Nearest Neighbor and Decision Tree to Analyze Sentiment on Netizen and Government Interaction,” MATRIK?: Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, vol. 21, no. 1, pp. 139–150, Nov. 2021, doi: 10.30812/matrik.v21i1.1092.

A. M. Rahat, A. Kahir, and A. K. M. Masum, “Comparison of Naive Bayes and SVM Algorithm based on Sentiment Analysis Using Review Dataset,” in Proceedings of the SMART–2019 8th International Conference on System Modeling & Advancement in Research Trends, 2019, pp. 266–270.

J. Song, K. T. Kim, B. Lee, S. Kim, and H. Y. Youn, “A novel classification approach based on Naïve Bayes for Twitter sentiment analysis,” KSII Transactions on Internet and Information Systems (TIIS), vol. 11, no. 6, pp. 2996–3011, 2017.

D. Zimbra, A. Abbasi, D. Zeng, and H. Chen, “The state-of-the-art in twitter sentiment analysis: A review and benchmark evaluation,” ACM Transactions on Management Information Systems, vol. 9, no. 2. Association for Computing Machinery, Apr. 01, 2018. doi: 10.1145/3185045.

A. Deviyanto and M. D. R. Wahyudi, “Application of Sentiment Analysis on Twitter Users using the K-Nearest Neighbor Method,” JISKA (Jurnal Informatika Sunan Kalijaga), vol. 3, no. 1, pp. 1–13, 2018.

M. Vadivukarassi, N. Puviarasan, and P. Aruna, “Sentimental Analysis of Tweets Using Naive Bayes Algorithm,” World Appl Sci J, vol. 35, no. 1, pp. 54–59, 2017, doi: 10.5829/idosi.wasj.2017.54.59.

Bahrawi, “SENTIMENT ANALYSIS USING RANDOM FOREST ALGORITHM-ONLINE SOCIAL MEDIA BASED,” JOURNAL OF INFORMATION TECHNOLOGY AND ITS UTILIZATION, vol. 2, no. 2, 2019.

M. Wongkar and A. Angdresey, “Sentiment Analysis Using Naive Bayes Algorithm Of The Data Crawler?: Twitter,” in Fourth International Conference on Informatics and Computing (ICIC), 2019, pp. 1–5.

J. A. Septian, T. M. Fahrudin, and A. Nugroho, “Sentiment Analysis of Twitter Users Towards Indonesian Football Polemics Using TF-IDF Weighting and K-Nearest Neighbor,” JOURNAL OF INTELLIGENT SYSTEMS AND COMPUTATION, vol. 1, no. 1, pp. 443–49, 2019, [Online]. Available: https://t.co/9WloaWpfD5

N. C. Dang, M. N. Moreno-García, and F. De la Prieta, “Sentiment analysis based on deep learning: A comparative study,” Electronics (Switzerland), vol. 9, no. 3, Mar. 2020, doi: 10.3390/electronics9030483.

M. R. Huq, A. Ali, and A. Rahman, “Sentiment Analysis on Twitter Data using KNN and SVM,” IJACSA) International Journal of Advanced Computer Science and Applications, vol. 8, no. 6, 2017, [Online]. Available: www.ijacsa.thesai.org

Ankit and N. Saleena, “An Ensemble Classification System for Twitter Sentiment Analysis,” in Procedia Computer Science, Elsevier B.V., 2018, pp. 937–946. doi: 10.1016/j.procs.2018.05.109.

A. Alsaeedi and M. Z. Khan, “A Study on Sentiment Analysis Techniques of Twitter Data,” IJACSA) International Journal of Advanced Computer Science and Applications, vol. 10, no. 2, 2019, [Online]. Available: www.ijacsa.thesai.org

D. A. Kristiyanti, A. H. Umam, M. Wahyudi, R. Amin, and L. Marlinda, “Comparison of SVM & Naïve Bayes Algorithm for Sentiment Analysis Toward West Java Governor Candidate Period 2018-2023 Based on Public Opinion on Twitter,” in The 6th International Conference on Cyber and IT Service Management (CITSM 2018), 2018. [Online]. Available: www.twitter.com

R. T. Aldisa and P. Maulana, “Sentiment Analysis of Public Opinion on COVID-19 Booster Vaccination with Comparison of Naive Bayes, Decision Tree and SVM Methods,” Technology and Science (BITS), vol. 4, no. 1, pp. 106–109, 2022, doi: 10.47065/bits.v4i1.1581.

E. Undamayanti et al., “Sentiment Analysis Using the Naive Bayes Method Based on Particle Swarm Optimization Towards the Implementation of the Merdeka Learning Program at Merdeka Campus,” 2022.

F. F. Mailoa and L. Lazuardi, “Sentiment Analysis of Twitter Data Using Text Mining Method About Obesity Problem in Indonesia,” Journal of Information Systems for Public Health, vol. 6, no. 1, pp. 44–51, 2019.

Samsir, Ambiyar, U. Verawardina, F. Edi, and R. Watrainthos, “Sentiment Analysis of Online Learning on Twitter during the COVID-19 Pandemic Using the Naïve Bayes Method,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 5, no. 1, pp. 157–163, Jan. 2021, doi: 10.30865/mib.v5i1.2604.

A. Harun and D. P. Ananda, “Analysis of Public Opinion Sentiment About Covid-19 Vaccination in Indonesia Using Naïve Bayes and Decission Tree,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 1, no. 1, pp. 58–63, 2021.

E. Ditendra, Suryani, S. Romelah, M. H. A. Tanjung, and M. Sarah, “Comparison of Classification Algorithms for Sentiment Analysis of Islam Nusantara in Indonesia,” vol. 2, pp. 71–77, 2022.

A. P. Giovani, A. Ardiansyah, T. Haryanti, L. Kurniawati, and W. Gata, “Sentiment Analysis of Ruang Guru Application on Twitter using Classification Algorithm,” Jurnal Teknoinfo, vol. 14, no. 2, p. 115, Jul. 2020, doi: 10.33365/jti.v14i2.679.

A. M. Pravina, I. Cholissodin, and P. P. Adikara, “Sentiment Analysis of Airline Opinions on Twitter Documents Using Support Vector Machine (SVM) Algorithm,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 3, no. 3, pp. 2789–2797, 2019, [Online]. Available: http://j-ptiik.ub.ac.id

M. I. Fikri, T. S. Sabrila, Y. Azhar, and U. M. Malang, “Comparison of the Naïve Bayes Method and Support Vector Machine on Twitter Sentiment Analysis,” SMATIKA Jurnal: STIKI Informatika Jurnal, vol. 10, no. 2, pp. 71–76, 2020.

Downloads

Published

2023-07-24