Cargando…

Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures

Sentiments are the key factors that lead to influence our behavior. Sentiment analysis is a technique that analyzes people’s behaviors, attitudes, and emotions toward a service, product, topic, or event. Since 2020, no country has remained untouched by COVID-19, and the governing bodies of most coun...

Descripción completa

Detalles Bibliográficos
Autores principales: Ali, Muhammad Faisal, Irfan, Rabia, Lashari, Tahira Anwar
Formato: Online Artículo Texto
Lenguaje:English
Publicado: PeerJ Inc. 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10280596/
https://www.ncbi.nlm.nih.gov/pubmed/37346645
http://dx.doi.org/10.7717/peerj-cs.1220
_version_ 1785060830917689344
author Ali, Muhammad Faisal
Irfan, Rabia
Lashari, Tahira Anwar
author_facet Ali, Muhammad Faisal
Irfan, Rabia
Lashari, Tahira Anwar
author_sort Ali, Muhammad Faisal
collection PubMed
description Sentiments are the key factors that lead to influence our behavior. Sentiment analysis is a technique that analyzes people’s behaviors, attitudes, and emotions toward a service, product, topic, or event. Since 2020, no country has remained untouched by COVID-19, and the governing bodies of most countries have been applying several anti-pandemic countermeasures to combat it. In this regard, it becomes tremendously important to analyze people’s sentiments when tackling infectious diseases similar to COVID-19. The countermeasures taken by any country to control the pandemic leave a direct and crucial impact on each sector of public life, and every individual reacts to them differently. It is necessary to consider these reactions to implement appropriate messaging and decisive policies. Pakistan has done enough to control this virus’s spread like every other country. This research aims to perform a sentimental analysis on the famous microblogging social platform, Twitter, to get insights into public sentiments and the attitudes displayed towards the precautionary steps taken by the Government of Pakistan in the years 2020 and 2021. These steps or countermeasures include the closure of educational institutes, suspension of flight operations, lockdown of business activities, enforcement of several standard operating procedures (SOPs), and the commencement of the vaccination program. We implemented four approaches for the analysis, including the Valence Aware Dictionary and sEntiment Reasoner (VADER), TextBlob, Flair, and Bidirectional Encoder Representations from Transformers (BERT). The first two techniques are lexicon-based. Flair is a pre-trained embedding-based approach, whereas BERT is a transformer-based model. BERT was fine-tuned and trained on a labeled dataset, achieving a validation accuracy of 92%. We observed that the polarity score kept varying from month to month in both years for all countermeasures. This score was analyzed with real-time events occurring in the country, which helped understand the public’s sentiment and led to the possible formation of a notable conclusion. All implemented approaches showed independent performances. However, we noticed from the classification results of both TextBlob and the fine-tuned BERT model that neutral sentiment was dominant in the data, followed by positive sentiment.
format Online
Article
Text
id pubmed-10280596
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher PeerJ Inc.
record_format MEDLINE/PubMed
spelling pubmed-102805962023-06-21 Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures Ali, Muhammad Faisal Irfan, Rabia Lashari, Tahira Anwar PeerJ Comput Sci Data Mining and Machine Learning Sentiments are the key factors that lead to influence our behavior. Sentiment analysis is a technique that analyzes people’s behaviors, attitudes, and emotions toward a service, product, topic, or event. Since 2020, no country has remained untouched by COVID-19, and the governing bodies of most countries have been applying several anti-pandemic countermeasures to combat it. In this regard, it becomes tremendously important to analyze people’s sentiments when tackling infectious diseases similar to COVID-19. The countermeasures taken by any country to control the pandemic leave a direct and crucial impact on each sector of public life, and every individual reacts to them differently. It is necessary to consider these reactions to implement appropriate messaging and decisive policies. Pakistan has done enough to control this virus’s spread like every other country. This research aims to perform a sentimental analysis on the famous microblogging social platform, Twitter, to get insights into public sentiments and the attitudes displayed towards the precautionary steps taken by the Government of Pakistan in the years 2020 and 2021. These steps or countermeasures include the closure of educational institutes, suspension of flight operations, lockdown of business activities, enforcement of several standard operating procedures (SOPs), and the commencement of the vaccination program. We implemented four approaches for the analysis, including the Valence Aware Dictionary and sEntiment Reasoner (VADER), TextBlob, Flair, and Bidirectional Encoder Representations from Transformers (BERT). The first two techniques are lexicon-based. Flair is a pre-trained embedding-based approach, whereas BERT is a transformer-based model. BERT was fine-tuned and trained on a labeled dataset, achieving a validation accuracy of 92%. We observed that the polarity score kept varying from month to month in both years for all countermeasures. This score was analyzed with real-time events occurring in the country, which helped understand the public’s sentiment and led to the possible formation of a notable conclusion. All implemented approaches showed independent performances. However, we noticed from the classification results of both TextBlob and the fine-tuned BERT model that neutral sentiment was dominant in the data, followed by positive sentiment. PeerJ Inc. 2023-03-31 /pmc/articles/PMC10280596/ /pubmed/37346645 http://dx.doi.org/10.7717/peerj-cs.1220 Text en © 2023 Ali et al. https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited.
spellingShingle Data Mining and Machine Learning
Ali, Muhammad Faisal
Irfan, Rabia
Lashari, Tahira Anwar
Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures
title Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures
title_full Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures
title_fullStr Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures
title_full_unstemmed Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures
title_short Comprehensive sentimental analysis of tweets towards COVID-19 in Pakistan: a study on governmental preventive measures
title_sort comprehensive sentimental analysis of tweets towards covid-19 in pakistan: a study on governmental preventive measures
topic Data Mining and Machine Learning
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10280596/
https://www.ncbi.nlm.nih.gov/pubmed/37346645
http://dx.doi.org/10.7717/peerj-cs.1220
work_keys_str_mv AT alimuhammadfaisal comprehensivesentimentalanalysisoftweetstowardscovid19inpakistanastudyongovernmentalpreventivemeasures
AT irfanrabia comprehensivesentimentalanalysisoftweetstowardscovid19inpakistanastudyongovernmentalpreventivemeasures
AT lasharitahiraanwar comprehensivesentimentalanalysisoftweetstowardscovid19inpakistanastudyongovernmentalpreventivemeasures