key: cord-0079062-wlu868so authors: León-Sandoval, Edgar; Zareei, Mahdi; Barbosa-Santillán, Liliana Ibeth; Falcón Morales, Luis Eduardo; Pareja Lora, Antonio; Ochoa Ruiz, Gilberto title: Monitoring the Emotional Response to the COVID-19 Pandemic Using Sentiment Analysis: A Case Study in Mexico date: 2022-05-18 journal: Comput Intell Neurosci DOI: 10.1155/2022/4914665 sha: 4f976144eff23f1ab772961d16e727691ca281d6 doc_id: 79062 cord_uid: wlu868so The world is facing the COVID-19 pandemic, leading to an unprecedented change in the lifestyle routines of millions. Beyond the general physical health, financial, and social repercussions of the pandemic, the adopted mitigation measures also present significant challenges in the population's mental health and health programs. It is complex for public organizations to measure the population's mental health in order to incorporate it into their own decision-making process. Traditional survey methods are time-consuming, expensive, and fail to provide the continuous information needed to respond to the rapidly evolving effects of governmental policies on the population's mental health. A significant portion of the population has turned to social media to express the details of their daily life, rendering this public data a rich field for understanding emotional and mental well-being. This study aims to track and measure the sentiment changes of the Mexican population in response to the COVID-19 pandemic. To this end, we analyzed 760,064,879 public domain tweets collected from a public access repository to examine the collective shifts in the general mood about the pandemic evolution, news cycles, and governmental policies using open sentiment analysis tools. Sentiment analysis polarity scores, which oscillate around -0.15, show a weekly seasonality according to Twitter's usage and a consistently negative outlook from the population. It also remarks on the increased controversy after the governmental decision to terminate the lockdown and the celebrated holidays, which encouraged the people to incur social gatherings. These findings expose the adverse emotional effects of the ongoing pandemic while showing an increase in social media usage rates of 2.38 times, which users employ as a coping mechanism to mitigate the feelings of isolation related to long-term social distancing. The findings have important implications in the mental health infrastructure for ongoing mitigation efforts and feedback on the perception of policies and other measures. The overall trend of the sentiment polarity is 0.0001110643. As the world faces new challenges with the COVID-19 (Coronavirus Disease 2019) pandemic, it becomes increasingly crucial for governments, public, and private organizations to consider the public's well-being in the decisionmaking process. e COVID-19 pandemic strongly impacts the population's physical health, a decisive factor in the current decision-making process. However, the COVID-19 pandemic also presents challenges in the emotional and psychological well-being of individuals. is raises the need to collect physical health-related data and build dashboards showing critical information, making it easily accessible. Equally important is the need to get dayto-day data on the pandemic progression regarding ongoing infection rates and fatality, among other statistics. However, another important dimension, which we refer to as emotional health, has not been properly studied in Mexico, and no instruments for measuring it have been developed, which has long-term implications for the population's general wellbeing. ese reasons highlight the need for a large-scale, resilient system to perform sentiment analysis in large, continuous datasets, such as Twitter traffic. Sentiment analysis refers to a group of natural language processing techniques that allow extracting affective indicators from raw text to determine the polarity of a given tweet, that is, if the tweet expresses a positive or negative emotion. To measure the sentiment polarity of tweets, we employ VADER (Valence Aware Dictionary and sEntiment Reasoner) [1] . VADER is an open-source, rule-based tool that is able to recognize common terms, idioms, jargon, and more complex grammar structures such as punctuation, negations, and abbreviations that are commonly employed in social media platforms. VADER uses a curated lexicon of over 7,500 common terms rated by ten independent humans. VADER has been extensively validated for Twitterbased content, showing good results in terms of accuracy for tweets in several sentiment analysis tools [2] . For the reasons mentioned, we have selected this analyzer for this study. Acquiring and processing this amount of information is not an easy task, for this is a perfect example of the challenges encountered by the three Vs. of Big-Data: Volume, Variety, and Velocity [3] . Here, we adhere to the most common definition of big data based on "the three Vs," used in [3] and first introduced by [4] . But there are multiple definitions containing different aspects of these architectures, such as analysis, value, computer power, visualization, variability, and veracity, among various others. An in-depth description of these definitions is described by [5] , but suffice to say that this research work adheres to the big data by most definitions. is presents several problems, such as those listed as follows: (i) Acquiring feedback on the emotional state is both expensive and time-consuming. (ii) Having that data available presents a significant challenge in processing capabilities and time to get feedback. (iii) Building such systems is costly, regardless of volume variations that may occur in the data. Traditional survey methods for gathering information are prohibitive; besides the high expense, they require a significant amount of time to gather feedback on a small portion of the population, providing information on discrete periods rather than a continuous flow. Twitter is a mature, wellestablished, and popular microblogging service that offers users a platform to share their opinions, conversations, reviews, and other information. A large corpus for heterogeneous data was collected by [6] , which we will refer to as the COVID-19 Twitter chatter dataset. It includes raw text, tweet metadata, images, videos, URLs, and popularity. is corpus is an excellent candidate for performing sentiment analysis to follow public opinion on any given topic or event but presents several challenges, including high computing resources needed for the research and a curated, well-defined training corpus. Furthermore, the advances in technology nowadays allow the processing of data in large volumes, at a fast velocity, and from numerous heterogeneous sources, making possible the analysis of sentiments on a near real-time basis [7] . Several studies have used sentiment analysis on Twitter in financial, political, and social, among other applications [8] . Sentiment analysis research makes extensive use of Twitterrelated traffic, partly due to the high volume [9] , high availability, and the limit of 280 characters per entry [10] . A survey shows that it is feasible to build such systems running on private clouds relying on the Hadoop tech stack. However, these systems are expensive: they require a significant upfront investment, require effort to set up and maintain, and fail to scale according to the demand [3] . Lastly, the validity of using these techniques to measure the subjects' emotional well-being has been under study by [11, 12] . Our study analyzes the sentiment polarity of tweets related to the COVID-19 pandemic posted by users in Mexico to assess the emotional well-being of the population and its evolution during the year 2020. Next, we present a survey of similar or related systems, highlighting for each one of them the technology used, their advantages, and their shortcomings, hoping to build upon them rather than creating a prototype from scratch. Table 1 displays a summary of these systems, showcasing that most prototypes are supported by Apache Hadoop technologies for streaming and batch data processing. While these present good results, they also lack flexibility and scalability, resulting in high maintenance costs. We reviewed a collection of similar studies, summarized in Table 2 , where we found them to utilize a small dataset, either in volume or in the length of the analyzed time frame. In general, only tweets written in English were accepted, restricted to the US, with just a couple of exceptions. For example, in [20] , the studied tweets were restricted to those that originated in Australia only, in contrast to the survey made by [23] , which uses a global dataset. Each study implements its own filtering criteria, making comparing results difficult, especially since they have not made their data sets public. We found key differences in the methodology as well. is study is most aligned with [23] , which performs time series analysis over the dataset. e rest uses panel data analysis, separating the pandemic, in a fixed set of stages, either predefined or found through clustering using LDA (Latent Dirichlet Allocation) for topic discovery. Regardless of the details, an emerging pattern is to discover popular topics, report an average sentiment polarity over the cluster of tweets for the given subjects, or find the most influential users and focus the analysis on the timelines of such users. Instead of following this pattern, for this study, we diverge in the following points: (i) Our study spans the study for a year-long worth of data, forcing us to deal with an extensive dataset. (ii) We make use of an already defined, publicly available dataset. (iii) is work focuses on the geographical area of study in Mexico, including tweets in both English and Spanish. (iv) We employ time series analysis in general to better measure the evolution of the public perception of the pandemic. (v) We remove all confidential, sensitive, and personally identifiable information from the metadata available, making it impossible to analyze a particular individual's timeline. It is worth noticing that important dates have a strong impact on the population's emotions. We focused the analysis 2 Computational Intelligence and Neuroscience on only those events where official announcements were made available nationwide. e information about these events was taken directly from [27, 28] and the official reports from the public health department, such as [29] . Details on these events are elaborated in the experiments section. e outline of this work is as follows. is introduction section included a brief background of the problem and a literature review of similar applications and studies. e following section, Method, describes the followed methodology of the research, covering the data acquisition and general flow of the analysis, details of the time series models constructed and relevant events in different periods and experiments executed, and the technical elements of the architecture implemented to achieve this goal. Next, the results are presented along with relevant findings and figures. Finally, we conclude with a discussion, describing the observed phenomena and drawing the conclusion from the data and highlighting the strong points, limitations, and next steps of this work. is section describes the data gathering process, the data processing performed, the technical solution's general architecture, and the analysis performed on the data gathered. We used a large dataset of tweets collected from an open-access repository of global COVID-19 related tweets, designed to collect every tweet posted that is somehow related to the pandemic in a diverse variety of geographic locations. It includes timeline metadata, allowing us to perform social network analysis on this COVID-19 Twitter chatter dataset. is repository provides a list of Tweet IDs, its geographical location, and detected language, utilizing the following schema: [tweet_id, date, time, lang, country_code]. However, we encountered schema inconsistencies over time. For example, the annotation of country_code, which is necessary for filtering before requesting a tweet lookup, was not introduced until the second half of the year, and even so, a vast number of tweets lack this metadata annotation. For this reason, we had to load them via Twitter's public API in order to filter out tweets originated from outside Mexico, which may leave data out from those users who choose not to share their location. We used this information to download each tweet in Mexico, discarding all other metadata provided by Twitter's API for privacy reasons. Specifically, we retrieved COVID-19-related tweets posted in Mexico from February 1, 2020, through December 31, 2020. All tweets were scrubbed of any personally identifiable information to ensure user's privacy and comply with ethical, social media use practices, resulting in the following simplified schema: full_text, id. It is worth mentioning that this dataset includes tweets in n Adikari et al. [20] Topic analysis follows popular subjects, pre/post lockdown Australia Jan to Sep 73K Abd-Alrazaq et al. [21] Uses PostgreSQL and topic analysis, pre/post lockdown Feb 2 to Mar 15 167K Boon-Itt and skunkan [22] Topic analysis, 3 panel data analysis US Dec 13 to Mar 9 108K Lwin et al. [23] Uses the Plutchik basic sentiments, pre/post lockdown Global Jan 28 to Apr 9 20M Xue et al. [24] Topic analysis, pre/post lockdown US Mar 7 to Apr 21 4M Valdez et al. [25] Topic analysis, pre/post lockdown, follows popular subjects US Jan 28 to Apr 7 86M Huerta et al. [26] Pre both English and Spanish, for a large part of the population engages in social media in English. Figure 1 shows the data ingestion pipeline, for which we used the regular lookup API (https://api.twitter.com/2/ tweets?ids�[. . .]). However, this design allows for this API to be swapped for other endpoints, such as the search endpoint, allowing data consumption as a near real-time data stream without the need to perform any further changes to the existing solution. Note that the resulting sample size for the dataset exceeds the mean utilized by a recent scoping survey [30] on social media analytics for public health by several orders of magnitude (n � 20, 000 compared to ours, n � 2, 142, 800), resulting in an ample sample into which to conduct this analysis. Previous studies, summarized in Table 2, used large-scale sentiment analysis to accurately predict the public's mood and how it applies to several domains, including those of emotional and psychological well-being [11] . Following the sentiment polarity determination, we pass the data through several analyses explained in detail in the section Sentiment Analysis of the Emotional Response to the COVID-19 Pandemic in Mexico and Procedure, performed in weekly averages, rolling 3-day averages, and daily smoothed averages. is last technique was found to describe best the trends found in the time series. is work has several technical requirements that need to be fulfilled in order to succeed. First, the system needs to ingest large amounts of data in the smallest possible quantity of time while having the flexibility to change the parameters of the data consumed and cutting costs by adjusting the scale needed according to the volume of data. Secondly, the system also needs to maintain user's privacy and keep the data secure at all times. And finally, it is also desirable to use a modern technology stack such that we can exploit state-of-the-art deep-learning-based language models and implementation with low-level optimization for the data processing. ese requirements are satisfied by implementing cloud technologies, a serverless architecture, and industry-standard ML-ops practices. us, the system was implemented on top of Google Cloud Services (GCP) for its dynamic scaling of managed infrastructure and tight integration with the TensorFlow technology stack, enabling dynamic scaling, loose coupling, and managed microservices. Figure 2 shows the general architecture of the solution, which can be seen it is separated into several modules. e general data flow is as follows: (i) Data are ingested directly from Twitter, using the identifiers provided by the COVID-19 Twitter chatter dataset and the public query API provided by Twitter. (ii) e queried tweet is posted in Pub/Sub, where it is written directly in cloud storage for possible future reference and debugging. (iii) Pub/Sub feeds this data entry into a microservice, which evaluates the tweet polarity using a VADER [1] implementation written in Python, and posts the results again in Pub/Sub to be fed into BigTable for final consumption. A brief VADER description can be found in Subsection 2.3. (iv) e data are now ready for consumption by a managed Dataproc instance with two different approaches: (a) Periodic batch jobs, which collect daily aggregations. ese aggregations are also stored in cloud storage for easy access. (b) Jupyter notebooks for manual data exploration. (c) A third hook can be placed here for generating near real-time visualizations of the gathered data. We used the daily aggregations generated by the batch jobs for this study. All the code was implemented using standard Python 3.6 and its data-focused libraries. e language models used for polarity calculation were implemented in TensorFlow. Ten-sorFlow enables consuming state-of-the-art language models as a service, decoupling this architecture from the rest of the solution and allowing the implementation of an automated ML-ops flow to inject updates and model changes. Note the clear separation of operations performed to the ingested data and that this flow allows for ingesting data as streams, thus allowing using this solution as a decision-making tool by providing near real-time data processing. e operations performed on the data can be described in three steps: preprocessing, sentiment polarity calculation, and general aggregation. e preprocessing performed is data cleanup, for the language model itself handles any operations required by the language models, such as tokenization. e cleanup performed follows the standard practices and as such, they are not enumerated in this work. To measure the sentiment polarity of tweets, we employ VADER. is open-source, rulebased tool is robust enough to be able to handle commonly employed complex grammar structures in social media platforms. It is important to note that the word virus, and its variations, is not included in the training lexicon; thus, this particular term has no impact on the sentiment polarity evaluation. e sentiment taxonomy employed by VADER covers two dimensions, ranging from positive to negative and from objective to subjective. However, this score is represented as a single numerical value, going from −1 to 1, where 1 is very positive, −1 is very negative, and 0 is neutral or completely objective. We can find a summary of these other solutions, applied in somewhat similar circumstances, in Table 2. 2.4. Procedure. Data are directly consumed using the Twitter public API, which is then put into hard storage as a simple comma-separated (.csv) file. is action automatically triggers change events that then feeds the entries into a data pipeline, making this easy to swap them for tweet feeds. is also helped us mitigate Twitter's API limitations by consuming them using multiple clients and feeding the results into a single location. Data then are cleaned and stored into a large non-sql database, in our case, into BigTable. From BigTable, we query data for exploration, experimentation, or model training, but we use data triggers to feed them into the sentiment polarity calculator, ending in another BigTable instance. is final instance is used as a source for aggregation and analysis, generating daily aggregates. is data pipeline produces the processing, cleaning, and experimentation needed, giving access points in each processing stage for experimentation or visualization. Sentiment can change over time as individuals discuss different topics or because of changes in the emotional state of the individuals. To mitigate the impact of the former in the study, we utilized a COVID-19 curated dataset, the COVID-19 Twitter chatter dataset, which focuses on topics related to the pandemic. We then used daily sentiment scores for the Twitter corpus ranging from February 1 to December 31, 2020. We determine change-points in the time series of the daily average VADER sentiment polarity to identify significant sentiment changes during this time period. For the time series analysis, we followed the standard methodology. We start by denoising the series, for which we opted for a moving average of seven days as we also found a strong weekly seasonality in the data. Next, data are detrended by fitting a regular time series model, for which several partial autocorrelation tests were performed to find a good initial parameter approximation and validate the model. Residuals and box testing reveal a good fit of the model, resulting in a p − value < 2.2 * 10 − 16 . ese steps were repeated for several aggregation statistics, keeping relevant both the mean and the standard deviation as they summarize well the behavior observed in the data. e next section covers more details on the experiments and the results obtained from this analysis. We performed sentiment analysis on COVID-19 related tweets posted in Mexico from February 1, 2020, to December 31, 2020, forming a corpus of 760, 064, 879 tweets, which after preprocessing and filtering came to a total of n � 2, 142, 890 utilized tweets, retrieved from the COVID-19 Twitter chatter dataset. Computational Intelligence and Neuroscience Table 3 shows monthly summary of the sentiment polarity for a given month. Please note that the ranges of values go from −1 (i.e., very negative) to 1 (i.e., very positive), where 0 is considered a neutral value or a completely objective tweet. However, the time series analysis we performed on the data was with a daily granularity. From there, a box-test showed a p − value < 2.2e − 16, indicating a high probability of encountering auto-correlations in the data. is led to further exploration using partial ACF (Autocorrelation Function), summarized in Table 4 . Here, we observe strong indications of weekly autocorrelations, which helped us quickly find the correct coefficients for fitting an ARIMA (Autoregressive Integrated Moving Average) model and decomposing the time series. ese results are further described in the Results section. It is worth noticing important dates. Next, a summary of important events is listed, taken from official announcements made available nationwide, but note that this list is not exhaustive and is listed here in chronological order. (iii) On March 24, 2020, phase 2 of the pandemic evolution was officially started; that is, local transmission is observed between persons not in contact with foreigners. López-Gatell remarked that we are still observing transmissions, and the expectation is not to put an immediate end to the pandemic. I want to be clear that the success of a transmission reduction, instead of taking us to a shorter pandemic, will take us to a longer pandemic, but this is important in allowing for risk management. It means that each day, there are fewer cases than those that can be treated by the health system in Mexico. (iv) On April 21, 2020, phase 3 of the pandemic evolution starts, which maintains the safe-distance policies at least until May 30th. is phase is also known as the epidemiological phase, which is characterized by having many cases in different localities, requiring strict health measurements, such as a general lockdown. However, local celebrations depend on the local government, many of which did not follow this example. (xiii) On October 05, 2020, the official methodology to record COVID-19 cases, and deaths, is updated in order to allow introducing old data into the records. is changes the official death count to 81,877 cases. (xiv) On November 14, 2020, a total of 1,000,000 COVID-19 cases were officially confirmed. (xv) On November 20, 2020, a total of 100,000 COVID-19-related deaths were officially confirmed. (xvi) On December 02, 2020, a contract was signed with private pharmaceutical Pfizer to acquire 34.4 million COVID-19 vaccines. It is expected to receive the first 250,000 vaccines this same month, which will be dedicated to health professionals. (xvii) On December 11, 2020, the COFEPRIS (Federal Commission for Health Risks Protection) approved the emergency application of Pfizer's vaccines as long as they are utilized in accordance with the national vaccination policy. We expect to find changes in the sentiments during these events, but keep in mind that it is possible there are other events not listed here, such as holidays or local festivities. e time series is shown in detail in the Results section. We performed sentiment analysis on COVID-19-related tweets posted in Mexico, from February 1, 2020, to December 31, 2020, forming a corpus of 760, 064, 879 tweets, which after preprocessing and filtering came to a total of n � 2, 142, 890 utilized tweets retrieved from the COVID-19 Twitter chatter dataset. We performed a time series analysis to discover trends, seasonality, and other insights we might gain from the data, such as if there was an impact of changing policies on the emotional health of the Mexican population. Figure 3 shows smoothed time series of the average sentiment polarity for the day and its variance. We can observe clear trends in the data, making clear that government policies do affect the general population mood. A clear example is the date when the WHO (World Health Organization) declared the COVID-19 a global pandemic, showing a negative peak in the mood trend immediately afterwards. Another example is when the government decided to put an early end to the lockdown in order to promote the local economy. After this decision, it is clear Computational Intelligence and Neuroscience that there is controversy from the population, which can be observed by the increased variance in Figure 3 , but in general showcasing increased peaks, both negative and positive. ere are also clear negative peaks that correspond to either an official holiday or otherwise an economicpromoting activity, from which the official statement was that it was safe for the population to go out and gather in large numbers. is decision was received with heavy criticism from the general population, as is shown by the increased variance in Figure 3 , resulting in a negative impact on the physical health, exposing a larger segment directly to the virus and thus increasing the infection and mortality rate. Besides, Figure 3 highlights several relevant dates during the pandemic, using the labels [a . . . q], which are defined in the experiments section. Note that the list focuses on official national announcements only. Another point to note is the change in tweet volume. In February, that is, before the declaration of the pandemic, the average tweet volume in Mexico was 20, 971 per day, adding to a total of 608, 170 tweets for the month. March presented an average of 46, 767 tweets per day and a total of 1, 449, 768 tweets for the month alone. is represents an increase in the volume of 238.382% between these two months. e partial autocorrelation function, shown in Figure 4 , indicates a strong correlation with the time series and makes an early estimation for the possible coefficients for fitting a statistical model. While the objective of this study is not to perform forecasting, but to describe the series, this early test indicates that there are valuable information to gain and an early indication of seasonality, for the correlation repeats itself weekly, as was also observed by [12] . is is confirmed by the Box-Pierce test, which yields a very small p-value (of 2.2e − 16 ), suggesting a strong correlation. e different components of the time series analysis, shown in Figure 5 , show a slightly positive trend during the long-term lockdown. ere is a slight and relatively constant slope during this period (m � 0.0001110643). Early indications of the partial autocorrelation function were found to be true, and there is a weekly seasonality, but it is curious to find no monthly or quarterly seasonality. Fitting a linear model to the trend shown leads to a negative intersection with a near-zero slope (y � −2.2087107971+ 0.0001110643x). However, Figure 3 shows a drastic change in the variance at the beginning of May, thus showing an increase in the controversy caused by the decrease of the mandatory lockdown followed by no clear guidelines on the part of the authorities. We analyzed the sentiment polarity of COVID-19 related tweets gathered from February to December 2020 in Mexico. VADER was used as a sentiment analyzer, selected for its robustness and fast classification, and performed sentiment analysis on these data. To enable this, we have designed a flexible software architecture that, besides handling large datasets and dynamically adjusting scale, allows switching between language models and data sources in a timely Here, we present the components of the time series analysis in the order shown: observations (mean polarity, similar to 3, trend in the time series, seasonality, and noise). We observe weekly seasonality, which is aligned with observed usage and mood patterns of Twitter by [12] . manner. e technical solution utilizes microtriggers and serverless architecture to produce and process a data stream with the modularity of a single tweet, allowing easily changing the tweets' source to analyze other events and provide near real-time data. e same is true for the preprocessing and the language model utilized to calculate the tweet's sentiment polarity. is study remarks on the impact of the pandemic and the decisions made by the national government and their official communications into the overall psychological wellbeing of the population. As such, it is important to highlight the essential need for a tool capable of providing feedback on time, considering the public's health, that is capable of drawing conclusions from large amounts of data in a short time. It is thus of great importance to incorporate this emotional well-being information as a feedback loop, and it to be adopted and utilized by decision-making organizations. is can greatly impact the decisions made by organizations of any size, showcasing in this study a nationalwide impact of such decisions. And while emotional health is not the only metric that should be considered, this emotional feedback shows the public's perception and well-being, and it does provide a faster feedback loop than other regular pandemic-related metrics, which can take up to two weeks to manifest. Nevertheless, this research opted for a somewhat different methodology to answer slightly different questions than those summarized in Table 2 , which showcases other studies of COVID-19 related tweets. Among the key differences in this study is the study's span of a year-long worth of data, the use of the publicly available dataset, focusing the geographical area of study to that of Mexico, including tweets in both English and Spanish, a time series analysis to measure the evolution of the public perception of the pandemic, and striping down all the metadata available, making impossible analyzing individual's timelines by respecting user's privacy and keeping security as one of the guiding principles of the technical design. ere are some limitations in this study that are worth discussing. e study is restricted to a single country, Mexico. Still, the technology and methodology can be applied to a larger geographical region by simply feeding the system a more significant portion of the dataset or a different collection of tweets and using the same methodology this study performs. We utilized VADER as a language model for its versatility and well-studied behavior in other similar studies. However, different robust language models' architectures are worth exploring. e sentiment taxonomy utilized was the standard binary class classification, limiting the results to a single positive to negative dimension. While this produced interesting results, adopting a more robust language model would allow exploring a multiclass taxonomy. Another limitation is the striping of all metadata to ensure privacy and security while also preventing the making of a more extensive data analysis. In the future, we want to focus on building publicly available dashboards that show the analysis results, and they could be used as a decision-making support tool. We have already developed tools that can scale out to different countries. However, this study utilized a corpus restricted to a single country, Mexico, and can easily modify these tools to adopt more complex sentiment taxonomies. We followed the standard practice of using a binary class sentiment classification taxonomy. Another area of interest would be comparing the results obtained in this study versus a more robust language model and exploiting the advantages of using modern machine learning architectures. However, this study can be utilized as a good baseline for performance in real-world tasks utilizing actual data. It is important to remark that we discarded all metadata included in the tweets, keeping users' privacy and security guiding design principles. is last point could enable more extensive, more sophisticated future studies, and to this end, the anonymous data are publicly available. We have shown in this study the importance of having tools for visualizing sentiment polarity, which we performed on Mexican tweets related to COVID-19, which highlighted the impact of several policy decisions on the general's populations emotional health. is is essential, particularly during a health emergency such as this ongoing pandemic. From February 1 to December 31, 2020, the overall sentiment polarity trend is constant and stable. Moreover, the sentiment polarity time series shows several events with a negative impact on the sentiment of the general population, showing a natural positive evolution until it stabilizes with an overall slope of 0.0001110643. e data that support the findings of this study are available upon request to the corresponding author. e authors declare that there are no conflicts of interest regarding the publication of this paper. Vader: a parsimonious rule-based model for sentiment analysis of social media text Handling of voluminous tweets and analyzing the sentiment of tweets Full consideration of big data characteristics in sentiment analysis context 3D data management: controlling data volume, velocity and variety Perspectives to definition of big data: a mapping study and discussion A large-scale COVID-19 Twitter chatter dataset for open scientific research -an international collaboration Twitter vigilance: a multi-user platform for cross-domain Twitter data analytics, NLP and sentiment analysis A system for real-time twitter sentiment analysis of 2012 U.S. Presidential election cycle Internet Live Stats Twitter's 280 character limit increased engagement without increasing the average tweet length Estimating geographic subjective wellbeing from Twitter: a comparison of dictionary and datadriven language methods Seasonality pattern of suicides in the US-a comparative analysis of a Twitter based bad-mood index and committed suicides A big data processing framework for polarity detection in social network data Ascertaining public opinion through sentiment analysis Sentiment analysis of big data applications using Twitter Data with the help of HADOOP framework Analyzing Twitter sentiments through big data Visualizing temporal changes in impressions from tweets Towards building large-scale distributed systems for Twitter sentiment analysis Twitinfo Emotions of COVID-19: content analysis of self-reported information using artificial intelligence Top concerns of tweeters during the COVID-19 pandemic: infoveillance study Public perception of the COVID-19 pandemic on twitter: sentiment analysis and topic modeling study Global sentiments surrounding the COVID-19 pandemic on twitter: analysis of twitter trends Twitter Discussions and Emotions About the COVID-19 Pandemic: machine Learning Approach Social media insights into US mental health during the COVID-19 pandemic: longitudinal analysis of twitter data Exploring discussions of health and risk and public sentiment in MA during COVID-19 pandemic mandate implementation: a Twitter analysis Novel coronavirus (2019-nCoV) situation summary Epidemiología de COVID-19 en México: del 27 de febrero al 30 de abril de 2020 Tecnico Diario Nuevo Coronavirus en el Comunicado Mundo (COVID-19) A scoping review of the use of Twitter for public health research