Lyu et al [1] used natural language processing techniques to analyze the topics and sentiment of Twitter conversations related to the COVID-19 vaccine using the Twitter chatter data set created by Georgia State University’s Panacea Lab. Tweets that contained any of the following keywords “vaccination,” “vaccinations,” “vaccine,” “vaccines,” “immunization,” “vaccinate,” and “vaccinated” were selected for further analysis (eg, topic modeling and sentiment analysis).
I would suggest that the study might be enhanced by including additional keyword searches for vaccination synonyms identified by a method such as the Continuous Bag of Words (CBOW) word2vec model [2]. While the study focused on formal language such as “vaccination” and “vaccine,” other colloquial terms are commonly used on Twitter and other social media platforms to describe the vaccination process.
I identified synonyms for “vaccination” commonly used on Twitter by using the gensim implementation of the CBOW word2vec model [3]. This model predicts synonyms and related words by creating vector representations of words. Words with similar vector representations are more likely to be synonyms than words with dissimilar vector representations. I trained the CBOW word2vec model on 503,862 tweets containing the keyword “covid” or “corona” from June 24-27, 2021, collected through the rtweet package [4]. The keyword pattern search results included tweets using words related to COVID-19 such as “covid-19” or “coronavirus.”
Out of the 503,862 COVID-19–related tweets downloaded with rtweet, 94,768 contained at least one of the words searched for in the study by Lyu et al [1]. In addition, a total of 22,587 tweets used the terms “shot,” “shots,” “jab,” “jabs,” “jabbed,” “vax,” or “vaxxed.” The words “shot” or “shots” were used in 9017 tweets. The words “jab,” “jabs,” or “jabbed” were used in 7021 tweets. The words “vax” or “vaxxed” were used in 4081 tweets. Out of the 22,587 tweets that contained these alternative terms, 15,855 (70.2%) were tweeted by users who self-disclosed their location on their user profile. Using the Nominatim application programming interface, it was possible to identify geocoded location, including country, for 13,101 of the 15,855 user-disclosed locations [5]. Of these 13,101 geocoded tweets, 3111 were from the United Kingdom, of which 2261 used “jab,” “jabbed,” or “jabs.” Among the geocoded tweets, 4910 were from the United States; of these, 2704 included “shot” or “shots” and 1130 used “vax” and “vaxxed.”
I would propose that researchers performing keyword searches on social media chatter consider using the CBOW word2vec model to enhance their studies by expanding the number of comments they capture and to reduce geographic or population bias that may occur from the preselection of terminology. The CBOW word2vec model can help capture more completely the full range of word choices used by social media users.
Abbreviations
- CBOW
Continuous Bag of Words
Footnotes
Conflicts of Interest: None declared.
Editorial Notice
The corresponding author of "COVID-19 Vaccine–Related Discussion on Twitter: Topic Modeling and Sentiment Analysis" declined to respond to this letter.
References
- 1.Lyu Joanne Chen, Han Eileen Le, Luli Garving K. COVID-19 Vaccine-Related Discussion on Twitter: Topic Modeling and Sentiment Analysis. J Med Internet Res. 2021 Jun 29;23(6):e24435. doi: 10.2196/24435. https://www.jmir.org/2021/6/e24435/ v23i6e24435 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Mikolov T, Chen K, Corrado G, Dean J. Efficient Estimation of Word Representations in Vector Space. arXiv. Preprint posted online Jan 16, 2013. http://arxiv.org/abs/1301.3781 . [Google Scholar]
- 3.Řehůřek R, Sojka P. Software Framework for Topic Modelling with Large Corpora. Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks; May 22; Valletta, Malta. 2010. https://radimrehurek.com/lrec2010_final.pdf . [DOI] [Google Scholar]
- 4.Kearney M. rtweet: Collecting and analyzing Twitter data. JOSS. 2019 Oct;4(42):1829. doi: 10.21105/joss.01829. [DOI] [Google Scholar]
- 5.Nominatim. OpenStreetMap Wiki. [2021-07-12]. https://wiki.openstreetmap.org/wiki/Nominatim .