IDEAS home Printed from https://ideas.repec.org/a/gam/jijerp/v18y2021i8p4069-d534804.html
   My bibliography  Save this article

Applying Machine Learning to Identify Anti-Vaccination Tweets during the COVID-19 Pandemic

Author

Listed:
  • Quyen G. To

    (Physical Activity Research Group, Appleton Institute, Central Queensland University, Rockhampton, QLD 4701, Australia)

  • Kien G. To

    (Public Health Faculty, University of Medicine and Pharmacy at Ho Chi Minh City, Ho Chi Minh City 700000, Vietnam)

  • Van-Anh N. Huynh

    (Public Health Faculty, University of Medicine and Pharmacy at Ho Chi Minh City, Ho Chi Minh City 700000, Vietnam)

  • Nhung T. Q. Nguyen

    (Trung Vuong Hospital, Ho Chi Minh City 700000, Vietnam)

  • Diep T. N. Ngo

    (Public Health Faculty, University of Medicine and Pharmacy at Ho Chi Minh City, Ho Chi Minh City 700000, Vietnam)

  • Stephanie J. Alley

    (Physical Activity Research Group, Appleton Institute, Central Queensland University, Rockhampton, QLD 4701, Australia)

  • Anh N. Q. Tran

    (Public Health Faculty, University of Medicine and Pharmacy at Ho Chi Minh City, Ho Chi Minh City 700000, Vietnam)

  • Anh N. P. Tran

    (Public Health Faculty, University of Medicine and Pharmacy at Ho Chi Minh City, Ho Chi Minh City 700000, Vietnam)

  • Ngan T. T. Pham

    (Public Health Faculty, University of Medicine and Pharmacy at Ho Chi Minh City, Ho Chi Minh City 700000, Vietnam)

  • Thanh X. Bui

    (Public Health Faculty, University of Medicine and Pharmacy at Ho Chi Minh City, Ho Chi Minh City 700000, Vietnam)

  • Corneel Vandelanotte

    (Physical Activity Research Group, Appleton Institute, Central Queensland University, Rockhampton, QLD 4701, Australia)

Abstract

Anti-vaccination attitudes have been an issue since the development of the first vaccines. The increasing use of social media as a source of health information may contribute to vaccine hesitancy due to anti-vaccination content widely available on social media, including Twitter. Being able to identify anti-vaccination tweets could provide useful information for formulating strategies to reduce anti-vaccination sentiments among different groups. This study aims to evaluate the performance of different natural language processing models to identify anti-vaccination tweets that were published during the COVID-19 pandemic. We compared the performance of the bidirectional encoder representations from transformers (BERT) and the bidirectional long short-term memory networks with pre-trained GLoVe embeddings (Bi-LSTM) with classic machine learning methods including support vector machine (SVM) and naïve Bayes (NB). The results show that performance on the test set of the BERT model was: accuracy = 91.6%, precision = 93.4%, recall = 97.6%, F1 score = 95.5%, and AUC = 84.7%. Bi-LSTM model performance showed: accuracy = 89.8%, precision = 44.0%, recall = 47.2%, F1 score = 45.5%, and AUC = 85.8%. SVM with linear kernel performed at: accuracy = 92.3%, Precision = 19.5%, Recall = 78.6%, F1 score = 31.2%, and AUC = 85.6%. Complement NB demonstrated: accuracy = 88.8%, precision = 23.0%, recall = 32.8%, F1 score = 27.1%, and AUC = 62.7%. In conclusion, the BERT models outperformed the Bi-LSTM, SVM, and NB models in this task. Moreover, the BERT model achieved excellent performance and can be used to identify anti-vaccination tweets in future studies.

Suggested Citation

  • Quyen G. To & Kien G. To & Van-Anh N. Huynh & Nhung T. Q. Nguyen & Diep T. N. Ngo & Stephanie J. Alley & Anh N. Q. Tran & Anh N. P. Tran & Ngan T. T. Pham & Thanh X. Bui & Corneel Vandelanotte, 2021. "Applying Machine Learning to Identify Anti-Vaccination Tweets during the COVID-19 Pandemic," IJERPH, MDPI, vol. 18(8), pages 1-9, April.
  • Handle: RePEc:gam:jijerp:v:18:y:2021:i:8:p:4069-:d:534804
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1660-4601/18/8/4069/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1660-4601/18/8/4069/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Hartmann, Jochen & Huppertz, Juliana & Schamp, Christina & Heitmann, Mark, 2019. "Comparing automated text classification methods," International Journal of Research in Marketing, Elsevier, vol. 36(1), pages 20-38.
    2. Stephanie J. Alley & Robert Stanton & Matthew Browne & Quyen G. To & Saman Khalesi & Susan L. Williams & Tanya L. Thwaite & Andrew S. Fenning & Corneel Vandelanotte, 2021. "As the Pandemic Progresses, How Does Willingness to Vaccinate against COVID-19 Evolve?," IJERPH, MDPI, vol. 18(2), pages 1-14, January.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Wajdi Aljedaani & Eysha Saad & Furqan Rustam & Isabel de la Torre Díez & Imran Ashraf, 2022. "Role of Artificial Intelligence for Analysis of COVID-19 Vaccination-Related Tweets: Opportunities, Challenges, and Future Trends," Mathematics, MDPI, vol. 10(17), pages 1-33, September.
    2. Thanh Bui & Andrea Hannah & Sanjay Madria & Rosemary Nabaweesi & Eugene Levin & Michael Wilson & Long Nguyen, 2023. "Emotional Health and Climate-Change-Related Stressor Extraction from Social Media: A Case Study Using Hurricane Harvey," Mathematics, MDPI, vol. 11(24), pages 1-16, December.
    3. Miftahul Qorib & Timothy Oladunni & Max Denis & Esther Ososanya & Paul Cotae, 2023. "COVID-19 Vaccine Hesitancy: A Global Public Health and Risk Modelling Framework Using an Environmental Deep Neural Network, Sentiment Classification with Text Mining and Emotional Reactions from COVID," IJERPH, MDPI, vol. 20(10), pages 1-25, May.
    4. Serge Nyawa & Dieudonné Tchuente & Samuel Fosso-Wamba, 2024. "COVID-19 vaccine hesitancy: a social media analysis using deep learning," Annals of Operations Research, Springer, vol. 339(1), pages 477-515, August.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Bernhardt, Lea & Dewenter, Ralf & Thomas, Tobias, 2023. "Measuring partisan media bias in US newscasts from 2001 to 2012," European Journal of Political Economy, Elsevier, vol. 78(C).
    2. Xin (Shane) Wang & Neil Bendle & Yinjie Pan, 2024. "Beyond text: Marketing strategy in a world turned upside down," Journal of the Academy of Marketing Science, Springer, vol. 52(4), pages 939-954, July.
    3. Kadić-Maglajlić, Selma & Lages, Cristiana R. & Pantano, Eleonora, 2024. "No time to lie: Examining the identity of pro-vaccination and anti-vaccination supporters through user-generated content," Social Science & Medicine, Elsevier, vol. 347(C).
    4. Soderlund, Magnus & Oikarinen, Eeva-Liisa & Tan, Teck Ming, 2021. "The happy virtual agent and its impact on the human customer in the service encounter," Journal of Retailing and Consumer Services, Elsevier, vol. 59(C).
    5. Mateusz Ciski & Krzysztof Rząsa, 2023. "Multiscale Geographically Weighted Regression in the Investigation of Local COVID-19 Anomalies Based on Population Age Structure in Poland," IJERPH, MDPI, vol. 20(10), pages 1-23, May.
    6. Sengupta, Pooja & Biswas, Baidyanath & Kumar, Ajay & Shankar, Ravi & Gupta, Shivam, 2021. "Examining the predictors of successful Airbnb bookings with Hurdle models: Evidence from Europe, Australia, USA and Asia-Pacific cities," Journal of Business Research, Elsevier, vol. 137(C), pages 538-554.
    7. Gensler, Sonja & Oehring, Karlo & Wiesel, Thorsten, 2024. "Reported and communicated shifts in strategic emphasis and firm performance," International Journal of Research in Marketing, Elsevier, vol. 41(2), pages 220-240.
    8. Morimura, Fumikazu & Sakagawa, Yuji, 2023. "The intermediating role of big data analytics capability between responsive and proactive market orientations and firm performance in the retail industry," Journal of Retailing and Consumer Services, Elsevier, vol. 71(C).
    9. Oliveira, João S. & Ifie, Kemefasu & Sykora, Martin & Tsougkou, Eleni & Castro, Vitor & Elayan, Suzanne, 2022. "The effect of emotional positivity of brand-generated social media messages on consumer attention and information sharing," Journal of Business Research, Elsevier, vol. 140(C), pages 49-61.
    10. Hartmann, Jochen & Heitmann, Mark & Siebert, Christian & Schamp, Christina, 2023. "More than a Feeling: Accuracy and Application of Sentiment Analysis," International Journal of Research in Marketing, Elsevier, vol. 40(1), pages 75-87.
    11. Jonah Berger & Grant Packard & Reihane Boghrati & Ming Hsu & Ashlee Humphreys & Andrea Luangrath & Sarah Moore & Gideon Nave & Christopher Olivola & Matthew Rocklage, 2022. "Marketing insights from text analysis," Marketing Letters, Springer, vol. 33(3), pages 365-377, September.
    12. Valentina Rizzoli, 2024. "The risk co-de model: detecting psychosocial processes of risk perception in natural language through machine learning," Journal of Computational Social Science, Springer, vol. 7(1), pages 217-239, April.
    13. Ma, Liye & Sun, Baohong, 2020. "Machine learning and AI in marketing – Connecting computing power to human insights," International Journal of Research in Marketing, Elsevier, vol. 37(3), pages 481-504.
    14. Venkatesh Shankar & Sohil Parsana, 2022. "An overview and empirical comparison of natural language processing (NLP) models and an introduction to and empirical application of autoencoder models in marketing," Journal of the Academy of Marketing Science, Springer, vol. 50(6), pages 1324-1350, November.
    15. Pantano, Eleonora & Dennis, Charles & De Pietro, Michela, 2021. "Shopping centers revisited: The interplay between consumers’ spontaneous online communications and retail planning," Journal of Retailing and Consumer Services, Elsevier, vol. 61(C).
    16. Li, Xinwei & Xu, Mao & Zeng, Wenjuan & Tse, Ying Kei & Chan, Hing Kai, 2023. "Exploring customer concerns on service quality under the COVID-19 crisis: A social media analytics study from the retail industry," Journal of Retailing and Consumer Services, Elsevier, vol. 70(C).
    17. Edeling, Alexander & Srinivasan, Shuba & Hanssens, Dominique M., 2021. "The marketing–finance interface: A new integrative review of metrics, methods, and findings and an agenda for future research," International Journal of Research in Marketing, Elsevier, vol. 38(4), pages 857-876.
    18. Ming-Hui Huang & Roland T. Rust, 2021. "A strategic framework for artificial intelligence in marketing," Journal of the Academy of Marketing Science, Springer, vol. 49(1), pages 30-50, January.
    19. Schwenzow, Jasper & Hartmann, Jochen & Schikowsky, Amos & Heitmann, Mark, 2021. "Understanding videos at scale: How to extract insights for business research," Journal of Business Research, Elsevier, vol. 123(C), pages 367-379.
    20. An Hoai Duong & Ernoiz Antriyandarti, 2023. "The Willingness to get Vaccinated Against SARS-CoV-2 Virus among Southeast Asian Countries: Does the Vaccine Brand Matter?," Applied Research in Quality of Life, Springer;International Society for Quality-of-Life Studies, vol. 18(2), pages 765-793, April.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jijerp:v:18:y:2021:i:8:p:4069-:d:534804. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.