Sentiment Analysis on Covid-19 Vaccination Tweets using Naïve Bayes and LSTM

Authors

  • Ranjan Raj Aryal Cosmos College of Management and Technology, Lalitpur, Nepal
  • Ankit Bhattarai Cosmos College of Management and Technology, Lalitpur, Nepal

DOI:

https://doi.org/10.3126/aet.v1i1.39660

Keywords:

Twitter, sentiment analysis, Naive Bayes, RNN-LSTM

Abstract

Social media is one platform where people share their opinions and views on different topics, services, or behaviors that happen around them. Since the COVID19 pandemic that started at the end of 2019, it has been a topic on which people express their sentiments. Recently, the COVID19 vaccination programs have got a lot of responses. In this paper, we have proposed two models: one based on the machine learning approach: Naive Bayes & the other based on deep learning: LSTM, whose goal is to know the sentiment of Asian region tweets towards the vaccine through sentiment analysis. The data were extracted with the help of Twitter API from March 23, 2021, till April 2, 2021. The extraction approach contains keywords with geocoding of some of the Asian countries, especially Nepal, India and Singapore. After collecting data, some preprocessing such as removing numbers, non-English & stop words, removing special characters, and hyperlinks were done. The polarity of tweets was assigned using the Text blob library. The tweets were classified into one of the three: positive, negative, or neutral. Now the data were preprocessed with the splitting of tweets into training & testing sets. Both the models were trained & tested using 10767 unique tweets. This experiment shows that a number of people in these three countries (Nepal, India and Singapore) have positive sentiment towards the vaccine and are taking the first dose of Covid19 vaccine. At last, the accuracy of the LSTM model was found to be 7% greater than that of the Naive Bayes-based model.

Downloads

Download data is not yet available.
Abstract
745
PDF
539

Author Biographies

Ranjan Raj Aryal, Cosmos College of Management and Technology, Lalitpur, Nepal

Department of IT and Computer Engineering

Ankit Bhattarai, Cosmos College of Management and Technology, Lalitpur, Nepal

Department of IT and Computer Engineering

Downloads

Published

2021-09-10

How to Cite

Aryal, R. R., & Bhattarai, A. (2021). Sentiment Analysis on Covid-19 Vaccination Tweets using Naïve Bayes and LSTM. Advances in Engineering and Technology: An International Journal, 1(1), 57–70. https://doi.org/10.3126/aet.v1i1.39660

Issue

Section

Articles