Deep Learning-Based Sentiment Analysis of COVID-19 Vaccination Responses from Twitter Data

Comput Math Methods Med. 2021 Dec 2:2021:4321131. doi: 10.1155/2021/4321131. eCollection 2021.


The COVID-19 pandemic has had a devastating effect on many people, creating severe anxiety, fear, and complicated feelings or emotions. After the initiation of vaccinations against coronavirus, people's feelings have become more diverse and complex. Our aim is to understand and unravel their sentiments in this research using deep learning techniques. Social media is currently the best way to express feelings and emotions, and with the help of Twitter, one can have a better idea of what is trending and going on in people's minds. Our motivation for this research was to understand the diverse sentiments of people regarding the vaccination process. In this research, the timeline of the collected tweets was from December 21 to July21. The tweets contained information about the most common vaccines available recently from across the world. The sentiments of people regarding vaccines of all sorts were assessed using the natural language processing (NLP) tool, Valence Aware Dictionary for sEntiment Reasoner (VADER). Initializing the polarities of the obtained sentiments into three groups (positive, negative, and neutral) helped us visualize the overall scenario; our findings included 33.96% positive, 17.55% negative, and 48.49% neutral responses. In addition, we included our analysis of the timeline of the tweets in this research, as sentiments fluctuated over time. A recurrent neural network- (RNN-) oriented architecture, including long short-term memory (LSTM) and bidirectional LSTM (Bi-LSTM), was used to assess the performance of the predictive models, with LSTM achieving an accuracy of 90.59% and Bi-LSTM achieving 90.83%. Other performance metrics such as precision,, F1-score, and a confusion matrix were also used to validate our models and findings more effectively. This study improves understanding of the public's opinion on COVID-19 vaccines and supports the aim of eradicating coronavirus from the world.

Publication types

  • Retracted Publication

MeSH terms

  • Attitude
  • Attitude to Health
  • COVID-19 / prevention & control*
  • COVID-19 Vaccines*
  • Databases, Factual
  • Deep Learning*
  • Humans
  • Language
  • Models, Statistical
  • Neural Networks, Computer
  • Public Opinion
  • Reproducibility of Results
  • Sentiment Analysis*
  • Social Media*
  • Vaccination


  • COVID-19 Vaccines