Implementation of the Naive Bayes Algorithm and Support Vector Machine for Public Sentiment Analysis towards the Ratification of the Job Creation Bill on Twitter

Authors

  • Untung Surapati Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika (STIKOMCKI) Jakarta
  • Sopan Adrianto Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika (STIKOMCKI) Jakarta
  • Erno Sumantri Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika (STIKOMCKI) Jakarta
  • Melinius Nopianto Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika (STIKOMCKI) Jakarta

DOI:

https://doi.org/10.55606/jeei.v2i1.202

Keywords:

Naive Bayes, RapidMiner, RUU Cipta Kerja, Sentiment Analysis, Support Vector Machine

Abstract

The test design of the Public Sentiment Analysis on the Ratification of the Job Creation Bill with the RapidMiner Studio application. The initial stage is to collect data in the form of tweets of Twitter users and then put it into a CSV file, the data obtained will be divided into training data and test data. Furthermore, the training data will be labeled consisting of 2 types of labels, namely Positive and Negative labels, then the data will be cleaned from unneeded words such as Mention or Hastag, then the data will go through several stages in the Preprocessing stage to convert raw data into data that is ready to be processed. Furthermore, each word will be weighted with the TF-IDF method. The final result of the comparison with these two test methods, namely the prediction of Public Sentiment Towards the Issue of Determining the Job Creation Bill based on data obtained from Twitter and implemented by the SVM (Support Vector Machine) method, showed an accuracy value of 96.52%. Of the 605 test data, 492 data were predicted as Negative Sentiment and 112 data as Positive Sentiment and the Naive Bayes Method showed an accuracy value of 49.67%. Of the 605 test data, 492 data were predicted as Negative Sentiment and 112 data as Positive Sentiment.

References

[2] T. N. Wijaya, R. Indriati, and M. N. Muzaki, “Analisis Sentimen Opini Publik Tentang Undang-Undang Cipta Kerja Pada Twitter,” Jambura J. Electr. Electron. Eng., vol. 3, no. 2, pp. 78–83, 2021, doi: 10.37905/jjeee.v3i2.10885.

[3] O. Fanny and H. Suroyo, “Analisis Sentimen Pengguna Media Sosial Terhadap Omnibus Law Berdasarkan Hashtag di Twitter,” Sist. J. Sist. Inf., vol. 11, no. 1, 2022, [Online]. Available: http://sistemasi.ftik.unisi.ac.id

[4] S. F. Pane, A. Owen, and C. Prianto, “Analisis Sentimen UU Omnibus Law pada Twitter Menggunakan Metode Support Vector Machine,” J. Telekomun. dan Komput., vol. 11, no. 2, p. 130, 2021, doi: 10.22441/incomtech.v11i2.10874.

[5] M. Faiq, A. Putro, and E. B. Setiawan, “Analisis Sentimen Terhadap Kebijakan Pemerintah dengan Feature Expansion Metode GloVe pada Media Sosial Twitter,” e-Proceeding Eng., vol. 9, no. 1, pp. 54–66, 2022.

[6] L. N. Pradany and C. Fatichah, “Analisa Sentimen Kebijakan Pemerintah Pada Konten Twitter Berbahasa Indonesia Menggunakan SVM dan K-Medoid Clustering,” SCAN - J. Teknol. Inf. dan Komun., vol. 11, no. 1, pp. 59–66, 2016.

[7] A. Ndruru, “Analisis Sentimen UU Cipta Kerja Melalui Omnibus Law Menggunakan Naive Bayes Classifier (NBC) dan Support Vector Machine (SVM),” Pelita Inform., vol. 10, pp. 85–90, 2022, [Online]. Available: https://www.ejurnal.stmik-budidarma.ac.id/index.php/pelita/article/view/3768

[8] E. Indrayuni, “Komparasi Algoritma Naive Bayes dan Support Vector Machine untuk Analisa Sentimen Review Film,” J. Pilar Nusa Mandiri, vol. 14, no. 2, p. 175, 2018, doi: 10.33480/pilar.v14i2.918.

[9] D. Rusdiaman and D. Rosiyadi, “Analisa Sentimen Terhadap Tokoh Publik Menggunakan Metode Naive Bayes Classifier dan Support Vector Machine,” CESS (Journal Comput. Eng. Syst. Sci., vol. 4, no. 2, pp. 230–235, 2019.

[10] A. Andreas and Y. D. Prabowo, “Analisis Sentimen Opini Publik dalam Bahasa Indonesia Terhadap UU Cipta Kerja Menggunakan Naive Bayes,” Kalbisiana J. Mhs. Inst. Teknol. dan Bisnis Kalbis, vol. 8, no. 2, pp. 2146–2161, 2022.

[11] D. A. Wulandari, “Analisis Sentimen Media Sosial Twitter Terhadap Reaksi Masyarakat Terhadap RUU Cipta Kerja Menggunakan Metode Klasifikasi Naive Bayes,” e-Proceeding Eng., vol. 8, no. 5, pp. 9007–9016, 2021.

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

[13] S. Nurul, J. Fitriyyah, N. Safriadi, and E. Esyudha, “Analisis Sentimen Calon Presiden Indonesia 2019 dari Media Sosial Twitter Menggunakan Metode Naive Bayes,” J. Edukasi dan Penelit. Inform., vol. 5, no. 3, pp. 279–285, 2019, doi: 10.26418/jp.v5i3.34368.

[14] M. D. D. Sreya and E. B. Setiawan, “Penggunaan Metode GloVe untuk Ekspansi Fitur pada Analisis Sentimen Twitter dengan Naive Bayes dan Support Vector Machine,” e-Proceeding Eng., vol. 9, no. 3, pp. 2008–2015, 2022.

Downloads

Published

2022-02-28

How to Cite

Untung Surapati, Sopan Adrianto, Erno Sumantri, & Melinius Nopianto. (2022). Implementation of the Naive Bayes Algorithm and Support Vector Machine for Public Sentiment Analysis towards the Ratification of the Job Creation Bill on Twitter. Journal of Engineering, Electrical and Informatics, 2(1), 01–15. https://doi.org/10.55606/jeei.v2i1.202