Artificial Intelligence-Enabled Analysis of Public Attitudes on Facebook and Twitter Toward COVID-19 Vaccines in the United Kingdom and the United States: Observational Study
- PMID: 33724919
- PMCID: PMC8023383
- DOI: 10.2196/26627
Artificial Intelligence-Enabled Analysis of Public Attitudes on Facebook and Twitter Toward COVID-19 Vaccines in the United Kingdom and the United States: Observational Study
Abstract
Background: Global efforts toward the development and deployment of a vaccine for COVID-19 are rapidly advancing. To achieve herd immunity, widespread administration of vaccines is required, which necessitates significant cooperation from the general public. As such, it is crucial that governments and public health agencies understand public sentiments toward vaccines, which can help guide educational campaigns and other targeted policy interventions.
Objective: The aim of this study was to develop and apply an artificial intelligence-based approach to analyze public sentiments on social media in the United Kingdom and the United States toward COVID-19 vaccines to better understand the public attitude and concerns regarding COVID-19 vaccines.
Methods: Over 300,000 social media posts related to COVID-19 vaccines were extracted, including 23,571 Facebook posts from the United Kingdom and 144,864 from the United States, along with 40,268 tweets from the United Kingdom and 98,385 from the United States from March 1 to November 22, 2020. We used natural language processing and deep learning-based techniques to predict average sentiments, sentiment trends, and topics of discussion. These factors were analyzed longitudinally and geospatially, and manual reading of randomly selected posts on points of interest helped identify underlying themes and validated insights from the analysis.
Results: Overall averaged positive, negative, and neutral sentiments were at 58%, 22%, and 17% in the United Kingdom, compared to 56%, 24%, and 18% in the United States, respectively. Public optimism over vaccine development, effectiveness, and trials as well as concerns over their safety, economic viability, and corporation control were identified. We compared our findings to those of nationwide surveys in both countries and found them to correlate broadly.
Conclusions: Artificial intelligence-enabled social media analysis should be considered for adoption by institutions and governments alongside surveys and other conventional methods of assessing public attitude. Such analyses could enable real-time assessment, at scale, of public confidence and trust in COVID-19 vaccines, help address the concerns of vaccine sceptics, and help develop more effective policies and communication strategies to maximize uptake.
Keywords: COVID-19; Facebook; Twitter; artificial intelligence; deep learning; health informatics; infodemiology; natural language processing; public health; sentiment analysis; social media; vaccination.
©Amir Hussain, Ahsen Tahir, Zain Hussain, Zakariya Sheikh, Mandar Gogate, Kia Dashtipour, Azhar Ali, Aziz Sheikh. Originally published in the Journal of Medical Internet Research (http://www.jmir.org), 05.04.2021.
Conflict of interest statement
Conflicts of Interest: AS is a member of the Chief Medical Officer’s COVID-19 Advisory Group of the Scottish Government and the UK Government’s New and Emerging Respiratory Virus Threats Risk Stratification Subgroup.
Figures





Similar articles
-
Artificial Intelligence-Enabled Social Media Analysis for Pharmacovigilance of COVID-19 Vaccinations in the United Kingdom: Observational Study.JMIR Public Health Surveill. 2022 May 27;8(5):e32543. doi: 10.2196/32543. JMIR Public Health Surveill. 2022. PMID: 35144240 Free PMC article.
-
Tweet Topics and Sentiments Relating to COVID-19 Vaccination Among Australian Twitter Users: Machine Learning Analysis.J Med Internet Res. 2021 May 19;23(5):e26953. doi: 10.2196/26953. J Med Internet Res. 2021. PMID: 33886492 Free PMC article.
-
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. J Med Internet Res. 2021. PMID: 34115608 Free PMC article.
-
The unintended consequences of COVID-19 vaccine policy: why mandates, passports and restrictions may cause more harm than good.BMJ Glob Health. 2022 May;7(5):e008684. doi: 10.1136/bmjgh-2022-008684. BMJ Glob Health. 2022. PMID: 35618306 Free PMC article. Review.
-
Vaccine safety in the next decade: why we need new modes of trust building.BMJ Glob Health. 2021 May;6(Suppl 2):e003908. doi: 10.1136/bmjgh-2020-003908. BMJ Glob Health. 2021. PMID: 34011503 Free PMC article. Review.
Cited by
-
Examining thematic and emotional differences across Twitter, Reddit, and YouTube: The case of COVID-19 vaccine side effects.Comput Human Behav. 2023 Jul;144:107734. doi: 10.1016/j.chb.2023.107734. Epub 2023 Mar 15. Comput Human Behav. 2023. PMID: 36942128 Free PMC article.
-
An optimal cascaded recurrent neural network for intelligent COVID-19 detection using Chest X-ray images.Appl Soft Comput. 2021 Dec;113:107878. doi: 10.1016/j.asoc.2021.107878. Epub 2021 Sep 8. Appl Soft Comput. 2021. PMID: 34512217 Free PMC article.
-
Using AI-ML to Augment the Capabilities of Social Media for Telehealth and Remote Patient Monitoring.Healthcare (Basel). 2023 Jun 10;11(12):1704. doi: 10.3390/healthcare11121704. Healthcare (Basel). 2023. PMID: 37372822 Free PMC article.
-
Exploring Topics, Emotions, and Sentiments in Health Organization Posts and Public Responses on Instagram: Content Analysis.JMIR Infodemiology. 2025 May 2;5:e70576. doi: 10.2196/70576. JMIR Infodemiology. 2025. PMID: 40315451 Free PMC article.
-
How politics affect pandemic forecasting: spatio-temporal early warning capabilities of different geo-social media topics in the context of state-level political leaning.Front Public Health. 2025 Jul 1;13:1618347. doi: 10.3389/fpubh.2025.1618347. eCollection 2025. Front Public Health. 2025. PMID: 40666148 Free PMC article.
References
-
- de Figueiredo A, Simas C, Karafillakis E, Paterson P, Larson HJ. Mapping global trends in vaccine confidence and investigating barriers to vaccine uptake: a large-scale retrospective temporal modelling study. Lancet. 2020 Sep 26;396(10255):898–908. doi: 10.1016/S0140-6736(20)31558-0. https://linkinghub.elsevier.com/retrieve/pii/S0140-6736(20)31558-0 - DOI - PMC - PubMed
-
- Gellin B. Why vaccine rumours stick—and getting them unstuck. The Lancet. 2020 Aug;396(10247):303–304. doi: 10.1016/s0140-6736(20)31640-8. - DOI
-
- Ten threats to global health in 2019. World Health Organization. [2021-10-26]. https://www.who.int/news-room/spotlight/ten-threats-to-global-health-in-...
-
- Lazarus J, Ratzan SC, Palayew A, Gostin LO, Larson HJ, Rabin K, Kimball S, El-Mohandes A. A global survey of potential acceptance of a COVID-19 vaccine. Nat Med. 2021 Feb;27(2):225–228. doi: 10.1038/s41591-020-1124-9. http://europepmc.org/abstract/MED/33082575 - DOI - PMC - PubMed
Publication types
MeSH terms
Substances
Grants and funding
LinkOut - more resources
Full Text Sources
Medical
Research Materials