Journal
Sentiment Analysis on Twitter Social Media Regarding Covid-19 Vaccination with Naive Bayes Classifier (NBC) and Bidirectional Encoder Representations from Transformers (BERT)
Recursive Journal of Informatics · Vol. 2 No. 2 (2024) · pp. 106–113
- ISSN
- 2986-6588, 2963-5551
- Published
- 2024-09-30
- Publisher
- Universitas Negeri Semarang
- Language
- eng
Abstract
Abstract. The Covid-19 vaccine is an important tool to stop the Covid-19 pandemic, however, there are pros and cons from the public regarding this Covid-19 vaccine. Purpose: These responses were conveyed by the public in many ways, one of which is through social media such as Twitter. Responses given by the public regarding the Covid-19 vaccination can be analyzed and categorized into responses with positive, neutral or negative sentiments. Methods: In this study, sentiment analysis was carried out regarding Covid-19 vaccination originating from Twitter using the Naïve Bayes Classifier (NBC) and Bidirectional Encoder Representations from Transformers (BERT) algorithms. The data used in this study is public tweet data regarding the Covid-19 vaccination with a total of 29,447 tweet data in English. Result: Sentiment analysis begins with data preprocessing on the dataset used for data normalization and data cleaning before classification. Then word vectorization was performed with TF-IDF and data classification was performed using the Naïve Bayes Classifier (NBC) and Bidirectional Encoder Representations from Transformers (BERT) algorithms. From the classification results, an accuracy value of 73% was obtained for the Naïve Bayes Classifier (NBC) algorithm and 83% for the Bidirectional Encoder Representations from Transformers (BERT) algorithm. Novelty: A direct comparison between classical models such as NBC and modern deep learning models such as BERT offers new insights into the advantages and disadvantages of both approaches in processing Twitter data. Additionally, this study proposes temporal sentiment analysis, which allows evaluating changes in public sentiment regarding vaccination over time. Another innovation is the implementation of a hybrid approach to data cleansing that combines traditional methods with the natural language processing capabilities of BERT, which more effectively addresses typical Twitter data issues such as slang and spelling errors. Finally, this research also expands sentiment classification to be multi-label, identifying more specific sentiment categories such as trust, fear, or doubt, which provides a deeper understanding of public opinion.
Keywords
Collaboration network of the authors
39 authors · 119 co-authorship links · 12 across different organisations
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- State University of Semarang
- Tun Hussein Onn University of Malaysia
- Institut Teknologi Kalimantan
- Badan Pengkajian dan Penerapan Teknologi
- Affiliation unknown
- Different organisations
- Same organisation
- Affiliation unknown
- Thicker line = more joint articles · bigger circle = more articles
Show as table
| Co-author | Organisation | Joint articles |
|---|---|---|
| Much Aziz Muslim | Tun Hussein Onn University of Malaysia | 2 |
| Grace Yudha Satriawan | Affiliation unknown | 2 |
| Salsabila Rahadatul Aisy | Affiliation unknown | 2 |
| Erwin Prasetyo | State University of Semarang | 1 |
| Nafa Fajriati | State University of Semarang | 1 |
| Jumanto Jumanto | State University of Semarang | 1 |
| Rofik Rofik | State University of Semarang | 1 |
| Endang Sugiharti | State University of Semarang | 1 |
| Alamsyah Alamsyah | Institut Teknologi Kalimantan | 1 |
| Riza Arifudin | State University of Semarang | 1 |
| Athifa Dihyan Calysta | State University of Semarang | 1 |
| Regina Ayumi Ulayyaa | State University of Semarang | 1 |
| Barokah Isdaryanti | State University of Semarang | 1 |
| Isti Hidayah | Affiliation unknown | 1 |
| Lyna Latifah | Affiliation unknown | 1 |
| Fafurida | Affiliation unknown | 1 |
| Sabrina Desy Rahmawati | Affiliation unknown | 1 |
| Adam Satrio Kanza | Affiliation unknown | 1 |
| Agus Bayu Pamungkas | Affiliation unknown | 1 |
| Edward Jhonatan | Affiliation unknown | 1 |
| Fredy Kusuma Nelly | Affiliation unknown | 1 |
| Fariska Ratna Fauziah | Affiliation unknown | 1 |
| Desi Adrianti Awaliyah | Affiliation unknown | 1 |
| Rini Muzayanah | Affiliation unknown | 1 |
| Apri Dwi Lestari | Affiliation unknown | 1 |
| M. Anbiya Nur Islam | Affiliation unknown | 1 |
| Anwar Anwar | Affiliation unknown | 1 |
| Djoko Wahyu Karmiadji | Badan Pengkajian dan Penerapan Teknologi | 1 |
| Budi Haryanto | Affiliation unknown | 1 |
| Ogi Ivano | Affiliation unknown | 1 |
| Mustasyar Perkasa | Affiliation unknown | 1 |
| Makmuri Nuramin | Affiliation unknown | 1 |
| Yudi Irawadi | Affiliation unknown | 1 |
| Yana Heryana | Affiliation unknown | 1 |
| Indra Hardiman | Affiliation unknown | 1 |
| Saeful Andhi | Affiliation unknown | 1 |
| Wahyu Purnawirawan | Affiliation unknown | 1 |
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.