We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/Komparasi Naïve Bayes dan SVM Analisis Sentimen RUU Kesehatan di Twitter
PeriodicalsComputer Science & Information Technology

Komparasi Naïve Bayes dan SVM Analisis Sentimen RUU Kesehatan di Twitter

Checking your access to this record.

Abstract & Overview

This research focuses on sentiment analysis regarding the plan to ratify the Health Bill which has become a hot topic of conversation on social media, especially Twitter. This research aims to classify tweets that reflect various opinions regarding the Health Bill, including support, rejection and neutrality. In this research, the author uses two types of classification algorithms, namely the Multinomial Naïve Bayes Algorithm and the Support Vector Machine (SVM) Algorithm. Previously, tweets were labelled using the Lexicon InSet dictionary. The research was conducted in the Python programming language and using Google Collaboratory. Data validation was carried out using the K-fold cross-validation method. The research results indicate that both algorithms predominantly produce positive sentiments over negative ones. However, SVM with a linear kernel achieves a higher accuracy rate of 0.87, compared to Multinomial Naïve Bayes, which has an accuracy of 0.82. SVM also records a precision of 0.87, recall of 0.97, and an F1-score of 0.91, while Multinomial Naïve Bayes shows a precision of 0.81, recall of 0.98, and an F1-score of 0.89. Overall, this research confirms that SVM excels in text sentiment classification, while Multinomial Naïve Bayes also provides good results in recognising positive and negative sentiment. These results have important implications for understanding public sentiment regarding the Health Bill on the Twitter platform.

Cite this record

Tetrian Widyanto, Ina Ristiana, Arief Wibowo (2023). Komparasi Naïve Bayes dan SVM Analisis Sentimen RUU Kesehatan di Twitter. SINTECH (Science and Information Technology) Journal, 6(3), 147–161. https://doi.org/10.31598/sintechjournal.v6i3.1433

Copy in another style

Widyanto, T., Ristiana, I., & Wibowo, A. (2023). Komparasi Naïve Bayes dan SVM Analisis Sentimen RUU Kesehatan di Twitter. SINTECH (Science and Information Technology) Journal, 6(3), 147–161. https://doi.org/10.31598/sintechjournal.v6i3.1433
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.