Next Article in Journal
Is Team Emotional Composition Essential for Virtual Team Members’ Well-Being? The Role of a Team Emotional Management Intervention
Previous Article in Journal
Long-Term Iron and Vitamin B12 Deficiency Are Present after Bariatric Surgery, despite the Widespread Use of Supplements
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Study of the Effects of the COVID-19 Pandemic on the Experience of Back Pain Reported on Twitter® in the United States: A Natural Language Processing Approach

1
Department of Industrial Engineering and Management Systems, University of Central Florida, Orlando, FL 32816, USA
2
Center for Latin-American Logistics Innovation, LOGyCA, Bogota 110111, Colombia
3
Department of Industrial Engineering, College of Engineering, Taif University, P.O. Box 11099, Taif 21944, Saudi Arabia
4
MATIM, Université de Reims Champagne-Ardenne, 51100 Reims, France
5
Department of Cognitive Neuroscience and Neuroergonomics, Institute of Applied Psychology, Jagiellonian University, 30-252 Kraków, Poland
*
Author to whom correspondence should be addressed.
Int. J. Environ. Res. Public Health 2021, 18(9), 4543; https://0-doi-org.brum.beds.ac.uk/10.3390/ijerph18094543
Submission received: 21 March 2021 / Revised: 21 April 2021 / Accepted: 22 April 2021 / Published: 25 April 2021

Abstract

:
The COVID-19 pandemic has changed our lifestyles, habits, and daily routine. Some of the impacts of COVID-19 have been widely reported already. However, many effects of the COVID-19 pandemic are still to be discovered. The main objective of this study was to assess the changes in the frequency of reported physical back pain complaints reported during the COVID-19 pandemic. In contrast to other published studies, we target the general population using Twitter as a data source. Specifically, we aim to investigate differences in the number of back pain complaints between the pre-pandemic and during the pandemic. A total of 53,234 and 78,559 tweets were analyzed for November 2019 and November 2020, respectively. Because Twitter users do not always complain explicitly when they tweet about the experience of back pain, we have designed an intelligent filter based on natural language processing (NLP) to automatically classify the examined tweets into the back pain complaining class and other tweets. Analysis of filtered tweets indicated an 84% increase in the back pain complaints reported in November 2020 compared to November 2019. These results might indicate significant changes in lifestyle during the COVID-19 pandemic, including restrictions in daily body movements and reduced exposure to routine physical exercise.

1. Introduction

COVID-19 pandemic appeared in early 2020 and quickly spread all over the world [1]. To stop the spread of this very contagious COVID-19 global epidemic, several countries took different actions including social distancing, limiting indoor gatherings, mandating personal protective equipment, and introducing a variety of lockdowns [2,3,4]. As a consequence of the pandemic and related restrictions, the lives of millions of individuals around the world have been changed significantly [5]. Several studies investigated the impacts of the pandemic on the psychological well-being of people at home and at work. For instance, Talevi et al. [6] reviewed fifteen recent studies and observed that many populations suffered from increased mental health problems, with stress and anxiety symptoms reported in the first three weeks of the pandemic. They also showed that some groups—especially females and younger adults—were more vulnerable to such stresses during the pandemic. Mattioli et al. [3] pointed out that quarantine increases anxiety and stress, which can lead to cardiovascular diseases. Furthermore, the close relationship between pandemic and other mental health problems such as self-blame and depression [7], fear [8], and feeling of uncertainty [9] during the COVID-19 outbreak were investigated.
In addition to the aforementioned mental health problems, indoor and outdoor physical activities have also been restricted, which significantly affected people’s everyday lifestyles. Robinson et al. [10] examined the connection between the COVID-19 crisis and obesity through questionnaires with a sample of 2002 participants. The result confirmed that more than 50 percent of participants had no control over their eating habits during the pandemic. Moreover, physical inactivity during quarantine resulted in a variety of musculoskeletal pain, such as back pain, neck pain, and muscle atrophy. Among those, back pain was the most commonly reported type of pain exacerbated by or accompanying the lack of physical activities [11].
As the public discussion on Twitter regarding the COVID-19 outbreak continues, this study aimed to investigate the effect of the pandemic on the frequency of back pain complaints based on publicly available population data contained in Twitter. For this purpose, the following hypotheses were defined as follows:
Hypothesis 1 (H1).
There is a statistically significant difference between the number of complaints regarding back pain during and before the COVID-19 pandemic.
Hypothesis 2 (H2).
“Back pain” data acquired from those Twitter users who enabled the localization feature in Twitter constitutes a reliable sample of the overall ‘back pain’ tweets.
In addition to the above, this study investigated changes in the number of actual back pain complaints reported on Twitter over time. For this purpose, the following research steps have been followed: conducting exploratory Twitter data analysis regarding back pain; downloading relevant Twitter data; defining and training an intelligent data filter based on tools from the machine learning (ML), deep learning (DL), and natural language processing (NLP) domain; applying the trained filter to all data instances; creating visualizations of filtered data; testing the research hypotheses.

2. Literature Review

2.1. Back Pain

Back pain is one of the most common chronic disorders, which not only can reduce work productivity and negatively affect the quality of life [12], but can also increase the economic and societal burden [13]. Furthermore, it is reported that individuals with chronic back pain are worried about losing their jobs and they tend to continue to work without disclosure of pain to their employers [14]. Financial concerns are another reason to take neither sick leave nor therapy facilities [15]. Because of that, in many cases the back pain will not be properly managed. It is reported that for almost 62% of patients with back pain, the pain comes back after one year [13]. The economic burden of back pain is estimated to be between 1% to 2% of the gross national product in Western nations [16]. For example, the economic burden of back pain in the U.S. is calculated at more than 100 billion dollars annually [5].
Due to the lockdown and the necessity to work from home, concerns and complaints of back pain have dramatically emerged. Šagát et al. [5] conducted survey research with 330 participants and found that reports of back pain have increased by more than 11 percent due to the quarantine. Similarly, Pekyavaş and Pekyavas [17] indicated that back pain was the most common pain reported by the participants working at home-offices due to pandemic restrictions. Another research conducted in Turkey during the 3-month pandemic lockdown revealed that the individuals who stayed at home exhibited significantly higher back pain rates than those who continued to work in their offices at their regular workplaces [18]. It should also be noted that physical pain such as headache or lower back pain can be associated with early symptoms of COVID-19 infection [19,20]. Abdullahi et al. [21] conducted a systematic review of 60 articles to assess the evidence on the musculoskeletal and neurological symptoms associated with COVID-19 disease. This review revealed that the COVID-19 patients experienced several musculoskeletal and neurological symptoms, including back pain.

2.2. Social Media in Public Health

Surveys and clinical patient data are two major sources of information essential for public health investigations [5,10,17,18]. The advent of social media has introduced a new source of data and has provided the global society a popular communication platform that can be used to examine individuals’ behavior, emotion, and opinions in several domains. The variety and number of studies relying on social media content analysis is growing continuously. For example, Cavazos-Rehg et al. [22] analyzed marijuana-related chats on Twitter to evaluate public attitudes in the context of drug abuse.
In general, Twitter is a valuable asset for enabling the investigation of public health issues during the COVID-19 pandemic. Koh and Liew [23] classified 4492 tweets into three themes based on the level of loneliness, and investigated temporal variations among themes over time. The results showed that tweets do express public sentiments on loneliness during the current pandemic. Sutton et al. [24] analyzed tweets related to lung cancer to better understand cancer communication on Twitter. Lamb et al. [25] reported that the flu infection rate was similar to flu-related to tweets. However, the study also warned that infection tracking could fail if the flu-related tweets do not report an infection. Furthermore, Heaivilin et al. [26] analyzed tweets related to dental pain by using a publicly available dataset. The study used keywords of “dental pain or tooth pain or toothache or tooth ache” and collected a sample of tweets. The results showed that a significant number of tweets related to dental pain are posted every day and they can be easily extracted using simple search terms.
Because of the COVID-19 pandemic and the need for social distancing, the popularity of Twitter has recently increased. Users tend to express their opinions about the pandemic and they like to participate in the public discussion about the Coronavirus. Xue et al. [27] analyzed four million tweets by using ML technique in order to identify popular Twitter discussions and pandemic-related concerns and concluded that COVID-19 related health problems have become one of the common discussions on Twitter since January 2020. Abd-Alrazaq et al. [28] analyzed tweets collected in February and March 2020 and identified several common themes and topics of discussions about COVID-19 pandemic. Mackey et al. [29] examined tweets data using unsupervised machine learning technique to determine COVID-19 related symptoms and individuals’ self-reported experiences related to the infections and their consequences. In addition, Twitter has also been used to better understand public health challenges during the pandemic. For example, Guntuku et al. [30] investigated mental health among Twitter users during COVID-19. After collecting datasets and geolocating all tweets, frequency of single words and phrases were extracted to assess participants’ mental health status. The reported levels of stress, anxiety, and loneliness were higher during the pandemic in comparison with 2019.

3. Methodology

This section explains the research methodology, including data, filtering and preprocessing of tweets, and training and testing. The entire process is presented in Figure 1 on a general level and discussed in detail later in this section.

3.1. Data Acquisition

The Twitter data acquisition process was carried out in the first days of December 2020. For this study, only English language tweets were considered. We found that obtaining data from Twitter relevant to testing the stated hypotheses can be a challenging task. We have followed Twitter Developer Policy and used official Twitter API to download the necessary data. We have first carried out exploratory analysis to avoid bias in data acquisition process.

3.1.1. Exploratory Twitter Data Analysis

In this study, we analyzed Twitter data for the years 2019 and 2020. The year 2019 served as a baseline before pandemics, and data gathered in 2020 was labeled as COVID-19 related. The initial exploration of Twitter data availability in the selected years was carried out based on the example day of 1 September 2019 and 1 September 2020. From here on, we refer to them as XDay19 and XDay20. The search for term “low back pain” indicated that there were only 134 and 183 tweets in XDay19 and XDay20, respectively. A review of these tweets showed that mostly professionals used the “low back pain” term. Therefore, these tweets were in big portion related to professional discussion, or advertisement, or even counsel, and they did not represent actual back pain complaints. An example of these tweets from Xday19 can be, “Yoga sessions were related to better back-related function as well as reduced symptoms of chronic low back pain in the biggest U.S. randomized controlled study of yoga so far”.
We also searched for “lower back pain” which resulted in 164 and 256 for XDay19 and XDay20 respectively. Interestingly, these tweets were mostly user complaints, for instance, “Today has been rough. Lower back pain, now having bladder spasms. Very uncomfortable. Hope the world can eliminate these shootings. Go to firing range plz...”.
In the third step, we searched for “back pain” which resulted in a large set of relevant tweets. The number of “back pain” tweets were 3331 and 10,726, correspondingly, for XDay19 and XDay20. Many of these tweets were actual user complaints or related discussion; however, there were also numerous scams, repeated tweets and advertisements. In addition, in some of the selected data, politically related and back-pain-irrelevant tweets were found.
Because of the presence of irrelevant tweets, we tested “back pain” search term with an additional constraint. We searched for two words of the “back” and “pain” and the space between them (“back pain”) in a way that they must appear explicitly together in a tweet, which we refer to as explicit search. This method allowed to obtain 1303 and 5762, correspondingly, for XDay19 and XDay20.
Since we were also interested in testing the hypothesis which required assessing if a similar “back pain” analysis can be constrained to a specific geographical location, we searched for “back pain” tweets with localization set to the USA. By enabling localization, we were able to find 1–2% of all tweets because only this percentage of Twitter users opted-in the localization feature. This search provided 54 and 72 tweets, correspondingly, for XDay19 and XDay20. The summary of our exploratory analysis is presented in Table 1.

3.1.2. Experimental Datasets

Based on the above exploratory analysis, we have decided to conduct two searches: search #1 (S1), that represents “back pain” explicit search with no geographical localization constraint for the months of November 2019 and November 2020, and search #2 (S2) that utilized ‘back pain’ simple search with localization set to the USA over two periods: from 1 March 2019 to 1 December 2019, and from 1 March 2020 to 1 December 2020. The rationale for definition of S1 can be explained as follows. First, choosing a single month instead of the whole year allows to cope with Twitter data download rates and our limited resources. Second, explicit back pain search with no localization allowed to obtain considerable volume of Twitter data with less unrelated data than the non-explicit search. Third, as the lockdown in the USA has begun in March 2020, selecting November 2020 provides us with an opportunity to observe the visible effects of the pandemic on behavioral habits of Twitter users. The rationale behind the S2 is the following. First, selecting the period mentioned above allowed us to test Hypothesis H2 and screen tweets from the whole pandemics period in 2020 and the corresponding period in 2019. Second, as the number of tweets with geographical localization was very low, choosing an explicit ‘back pain’ search would yield an extremely low number of tweets that would not allow carrying out any scientific analysis. A solution of conducting a non-explicit search was introduced to mitigate this issue. Further, to prevent bias caused by tweets that were not relevant to the analysis of back pain in our study, the most irrelevant tweets were filtered according to the methods described in cross-references.
The results of S1 and S2 are as follows. For S1 a total of 53,234 and 78,559 explicit “back pain” tweets were obtained for November 2019 and November 2020, respectively. For S2, a total of 15,663 and 14,634 USA localized tweets were collected for the selected period in years 2019 and 2020, respectively. The screening of downloaded Twitter data indicated that numerous tweets have been repeated and, therefore, contained identical texts. Therefore, we filtered such tweets out by dropping tweets with duplicate texts. The final filtered tweet numbers that were used and analyzed for the purpose of our study are presented in Table 2.

3.2. Filtering and Preprocessing of Tweets

Even after removal of repeated tweets, the downloaded Twitter data contained many posts unrelated to back pain or not necessarily expressing complaints regarding the presence of back pain. Therefore, in order to filter out the unwanted tweets and assess the true number of back pain complaints we decided to classify each tweet either as “complaining on back pain” or “other”. Since manual labeling of the total number of 104,274 tweets was not an option due the labor involved, we have developed an automatic filtering method. This method benefits from the recent advantages in the field of ML, DL and NLP and operates on unstructured tweet text only. Based on performance of recent methods in this field [31,32], we decided to train a robustly optimized BERT pretraining approach model (RoBERTa “large” version) [33] and gradient boosting classifier (XGBoost) [34] on a sample of our Twitter data and further automatically infer the classes of all remaining tweets.
The RoBERTa model is a state-of-the-art deep learning transformer model which can be used to output vector representations of text instances. For the best performance of RoBERTa in a given classification task, it is recommended to load a set of parameters pre-trained on a huge textual corpus and fine-tune it in a supervised manner for only a few epochs on the data labeled according to the classification task in question. Afterwards, the high-quality vector representations of the whole text instance can be obtained via the so called CLS (classification) token added to each text instance by the tokenizer used by the RoBERTa model. These vector representations are further used by the XGBoost model, which is a trainable high quality machine learning (ML) classifier capable of outputting a class label for each inputted feature vector.
Since Tweets are written in a specific language, they are sometimes difficult to understand even for humans. Before further analysis and training of the automatic filtering method, tweet texts were preprocessed according to a following procedure:
  • The links to images were replaced with the “_IMAGE” token.
  • Redundant/repeating characters were removed (for example a ten times repeated “a” was converted to “aa”).
  • Textual elements representing retweets were converted to “_RETWEET” token.
  • Other textual elements beginning with “http” or “https” or “bit.ly” or “youtu.be” or “facebook.com” or “instagram.com” were converted to “_URL” tokens.
  • Language of tweets was assessed with use of langdetect module [35] and all non-English tweets were removed.
  • All emoticons were converted to textual representations with use of emoji module [36] (for example “two hearts”).
In order to prepare the data for supervised training of our automatic filtering method we decided to draw a random sample of 5000 tweets from the whole data corpus and labeled all selected tweets manually. Three annotators were asked to separately carry out this task. To assess the extent to which the labels were in agreement we computed the Krippendorff alpha [37] values for the obtained labels. We considered the resulting value of 0.543 to be too low given the binary classification task. Therefore, we repeated the task after an additional clarifying session during which more confusing classification examples have been discussed.
The improved labeling resulted in the higher Krippendorff alpha value of 0.82 which we accepted as sufficient. Because the models training required the obtainment of a single class label from the two possible labels for each data instance, to resolve the remaining disagreements we have assumed that if all three annotators agreed, the chosen label was retained. Furthermore, in the latter case, when two annotators agreed then the label selected by them was also retained. The whole procedure resulted in dividing 5000 tweets into two groups: (1) 2977 tweets with “complaints of back pain”, and (2) 2023 tweets classified as “other”.

3.3. Training and Testing

A fivefold cross validation scheme was adopted for training and testing of the developed NLP-based models. Firstly, the feature extraction model RoBERTa was fine-tuned to provide meaningful vector representations (embeddings) of textual data. The model training parameters were adopted from Reference [33] and Reference [32]. Secondly, the XGBoost classifier was provided with the tweet embeddings and trained to carry out the classification. For each cross-validated fold at both training stages, the test sets were retained the same.
To assess the quality of the trained models we have computed the confusion matrix and utilized various classification metrics such as accuracy, balanced accuracy, F1 scores (macro, micro and weighted), Mathews correlation coefficient (MCC), and precision and recall [38,39,40]. However, since the prepared data set was only slightly unbalanced, the differences in obtained values were minor. For the final computation of the quality metrics, we have first concatenated information regarding true values and predictions from five test sets as classified by models trained separately in each fold, and then computed the relevant metrics. After the training and testing procedure was finalized, we have used a single model for inference on the remaining Twitter data. The tweets considered by the model as “other” were dropped before the final analysis of the change of the number of back pain complaining tweets in years 2019 and 2020.
To verify Hypothesis H1, we tested the data from S1 for normality with the use of the Shapiro–Wilk normality test [41] and adopted the significance threshold of 0.05 and later conducted one-way analysis of variance (ANOVA) for tweets with ‘back complaints’ between November 2019 and November 2020. The examined tweets were grouped by days and hours. Similar analysis was carried out for data from S2 with tweets grouped by days. Additionally, in order to prepare for verification of Hypothesis H2, the data originating from S2 was analyzed in a limited time span of November 2019 and November 2020. In the final steps, the data from S1 with November 2019 data and S2 with November 2019 were compared to test the hypothesis H2. This procedure was repeated for year 2020. The level of significance for one-way ANOVA analyses was set to 0.05.
All codes were written in Python version 3.7. The cross-validation procedure and the metrics were implemented with scikit-learn module [42]. RoBERTa model was fine-tuned with use of Flair module [43]. XGBoost classifier was implemented in the XGBoost module [34]. Visualizations were created with matplotlib module [44] after proper data aggregation with use of pandas module [45]. The statistical analysis was carried out with use of scipy package [46]. Twitter data were downloaded with use of searchtweets [47], the official Twitter application for Python, and tweets were parsed with the use of tweet parser module [48]. All experiments were carried out on the same computing machine equipped with a single NVIDIA Titan RTX 24 GB RAM GPU.

4. Results

4.1. Automatic Filtering Method

The results shown in Table 3 indicate that only 4.56% of all data instances were wrongly classified by the automatic filtering method. Additionally, the results depicted in Table 4 illustrate that the fine-tuned RoBERTa model provided a meaningful vector representations of tweets for the XGBoost classifier.

4.2. Hypotheses Testing

After training and testing, we have further used the developed model for the inference of remaining data instances in the downloaded tweet corpus. The results of inferences are displayed in grouped form in Table 5. For S1, it can be seen that the total number of tweets with back pain complaints in November 2020 was much higher and accounted for over 184% of the number of back pain complaining tweets posted in November 2019. A more detailed day-by-day and hour-by-hour analysis is displayed in Figure 2 and Figure 3, which illustrates large differences in daily and hourly number of “back pain” complaining tweets acquired in S1. In both displayed daily and hourly analyses, there is a visible positive trend in November 2020 data, but no such phenomenon is present in November 2019. Additionally, the absolute numbers of complaining tweets are generally higher in November 2020.
Statistical analysis carried out for (1) S1 data grouped by hours was not normally distributed with data from November 2019 characterized by p = 2.6858 × 10−5 and November 2020 by p = 2.8734 × 10−5, (2) S1 data grouped by days were normally distributed with data from November 2019 characterized by p = 0.406 and November 2020 by p = 0.9858, (3) S2 data were normally distributed and the whole analysis period grouped by days in 2019 was characterized by p = 0.2016 and in 2020 by p = 0.1892, and (4) S2 data, selected Novembers of 2019 and 2020 grouped by days the p-value was 0.5311 and 0.6019 correspondingly. For data grouped by days, the differences between number of low back complaints posted in November 2019 and November 2020 were statistically significant (F = 213.4187, p < 0.05), confirming Hypothesis H1.
Interestingly, for data originating from S2 other conclusions must be drawn. It appears that in the USA localized data there is no positive trend in both years 2019 and 2020. Additionally, contrary to conclusions from S1, in 2020 the total number of complaining tweets was lower accounting for 96.42% of the tweets posted in year 2019. Statistical analysis of the tweets from S2 grouped by days indicated that the distributions of data were normal. and that the differences in the number of tweets that reported back pain between the periods from 1 March to 1 December for 2019 and the same period for 2020 were statistically significant (F = 5.2608, p = 0.022).
Finally, to confirm the suspicion that data and conclusions based on S1 and (2) differ, we approached the H2 hypothesis by comparing data and results for S1 and (2) in comparable time span, i.e., November 2019 and November 2020. Visualization of data extracted according to S2 is visualized in Figure 3. As already mentioned for S1, there were way more back pain complaints in November 2020 than November 2019 andthe differences were statistically significant. However, for S2 limited to the months of November, there were more back pain complaints in November 2019 (1392) than in November 2020 (1275), and no statistically significant difference (F = 2.9181, p = 0.093) was observed. Therefore, because analysis of data from S1 and (2) leads to different conclusions, the H2 hypothesis was not confirmed.

5. Discussion

As discussed above, this study used two types of Twitter data acquired in S1 “back pain” tweets (explicit search) and in S2 “back pain” tweets with enabled data localization limited to the USA. The unsampled search data provided a full picture of the tweets of interest. We also believe that any analysis of Twitter data limited to tweets with enabled localization should be carried out with caution. This is because in our research we had to reject H2 hypothesis which can be interpreted as a warning, that 1–2% of users who activate the localization feature in Twitter not necessarily constitute a representative group of the whole Twitter community. Therefore, drawing conclusions from data provided only by this group might lead to observations that differ from those obtained based on the analysis of the full data sets. However, we believe that in some cases Twitter data with localization is important source of information since data filtering based on availability of localization allows to identify tweets with very little or no duplication in text content. In our study (see Table 5) less than 1% of downloaded tweets with localization had duplicated texts, suggesting that ‘spam and scam’ accounts do not necessarily turn on the Twitter localization feature.
The results of this study are consistent with previous research related to COVID-19 that analyzed the impact of this pandemic on mental and physical health problems across the world. Furthermore, our findings confirm the general public concerns regarding the adverse health effects of the pandemic, especially those expressed through the social media since early 2020. These include, for example, the published accounts of the COVID-19 epidemic in New York City [49] or lockdown in Turkey [18], as well discussion of the specific mental health problems [6,23]; psychological reactions [7,8,9]; and the effects on obesity and cardiovascular diseases [3,10].
The focus of this study was on assessing the extent of reports of back pain before (2019) and during (2020) the COVID-19 outbreak. Previous studies, such as [5,17,18] reported increase in back pain caused by quarantine and home isolation process. Our findings based on a large sample of Twitter data are in agreement with those studies and suggest a significant (up to 84%) increase in the number of complaints of back pain during the pandemic compared to the immediate pre-pandemic time.

6. Conclusions

Obtaining relevant research data from Twitter is not as easy as one might believe. The limit of rates and cost of the data encourages to carrying out exploratory analysis regarding search queries and modifying initial research plans. In this research, to cope with the above constrains, a limited month-to-month analysis was carried out instead of carrying out a full year-to-year comparison. Furthermore, to limit the amount of necessary data, we used filtering to extract only those tweets which have enabled tweets localization. Furthermore, the experiments carried out in S1 of this study were limited to a single month only. It can be expected that the full year-to-year search would provide a more robust picture of the analyzed phenomenon. Additionally, when comparing the number of tweets on a year-by-year basis, one should also keep in mind that there are continuous changes in the number of Twitter users and monthly number of posted tweets. Therefore, to a certain extent, it is possible that the reported differences in the number of back pain complaining tweets could also be attributed to such changes, and not only to the effects of COVID-19 pandemics.
From the computational point of view, the automatic filtering methods based on NLP worked very well, with a total number of wrongly classified tweets lower than 5%. This result was achieved even though the filtering method operated only on unstructured textual data and did not leverage any tweet metadata, which is known to improve prediction performance [50,51]. From this, we can conclude that the previously tested tweet text preprocessing techniques and methods for tweet classification are indeed capable of providing high quality results. While the applied trained automatic filter utilizing DL and ML methods resulted in high predictive performance, some error remains and should be also taken into consideration in the future research.
In this study, Twitter data was collected before (2019) and during the COVID-19 pandemic (2020). By combining the RoBERTa model as a technique for extracting meaningful features from text and gradient boosting process as a machine learning classifier, we effectively classified a sample of tweets posted by individuals who complained of back pain and those who did not. This study indicates that discussions on Twitter can be used to estimate the number of users complaining of back pain in their everyday lives, including during the COVID-19 pandemic. The study results indicate that back pain-related complaints significantly increased during the COVID-19 pandemic (2020) compared to the prior year (2019). Our findings suggest that the COVID-19 outbreak may have had a disproportionately increased prevalence of back pain, creating a need for physical therapy in the general public. This study also provides directions for future research about sentiment analysis on Twitter about ergonomics interventions for home office users to reduce the incidence of back pain.

Author Contributions

Conceptualization, W.K. and K.F.; methodology, K.F., W.K., E.G., M.S., A.M.A. and M.R.D.; project administration, W.K.; funding acquisition, A.M.A.; validation, E.G., R.T., T.M. and B.D.S.; visualization, M.S.; writing—original draft, K.F.; writing—review and editing, K.F., W.K., E.G., A.M.A., M.R.D., R.T., T.M. and B.D.S. All authors have read and agreed to the published version of the manuscript.

Funding

This study was supported in part by Taif University Researchers Supporting Project, number TURSP- 2020/229, Taif University, Taif, Saudi Arabia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authours would like to express their appreciation to Tameika Liciaga, Alessandro Belmonte, Rocco Capobianco for their help in data preparation and reduction.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Anjum, S.; Ullah, R.; Rana, M.S.; Ali Khan, H.; Memon, F.S.; Ahmed, Y.; Jabeen, S.; Faryal, R. COVID-19 Pandemic: A Serious Threat for Public Mental Health Globally. Psychiatr. Danub. 2020, 32, 245–250. [Google Scholar] [CrossRef] [PubMed]
  2. Anderson, R.M.; Heesterbeek, H.; Klinkenberg, D.; Hollingsworth, T.D. How Will Country-Based Mitigation Measures Influence the Course of the COVID-19 Epidemic? Lancet 2020, 395, 931–934. [Google Scholar] [CrossRef]
  3. Mattioli, A.V.; Ballerini Puviani, M.; Nasi, M.; Farinetti, A. COVID-19 Pandemic: The Effects of Quarantine on Cardiovascular Risk. Eur. J. Clin. Nutr. 2020, 74, 852–855. [Google Scholar] [CrossRef]
  4. Wilder-Smith, A.; Freedman, D.O. Isolation, Quarantine, Social Distancing and Community Containment: Pivotal Role for Old-Style Public Health Measures in the Novel Coronavirus (2019-NCoV) Outbreak. J. Travel. Med. 2020, 27. [Google Scholar] [CrossRef]
  5. Šagát, P.; Bartík, P.; Prieto González, P.; Tohănean, D.I.; Knjaz, D. Impact of COVID-19quarantine on Low Back Pain Intensity, Prevalence, and Associated Risk Factors among Adult Citizens Residing in Riyadh (Saudi Arabia): A Cross-Sectional Study. Int. J. Environ. Res. Public. Health 2020, 17, 7302. [Google Scholar] [CrossRef] [PubMed]
  6. Talevi, D.; Socci, V.; Carai, M.; Carnaghi, G.; Faleri, S.; Trebbi, E.; di Bernardo, A.; Capelli, F.; Pacitti, F. Mental Health Outcomes of the CoViD-19 Pandemic. Riv. Psichiatr. 2020, 55, 137–144. [Google Scholar]
  7. Belen, H. Self-Blame Regret, Fear of COVID-19 and Mental Health during Post-Peak Pandemic. Res. Square 2020. preprint. [Google Scholar] [CrossRef]
  8. Rubin, G.J.; Wessely, S. The Psychological Effects of Quarantining a City. BMJ 2020, 368, m313. [Google Scholar] [CrossRef] [Green Version]
  9. El-Terk, N. Toilet Paper, Canned Food: What Explains Coronavirus Panic Buying. Aljazeera Retrieved May 2020, 26, 2020. [Google Scholar]
  10. Robinson, E.; Boyland, E.; Chisholm, A.; Harrold, J.; Maloney, N.G.; Marty, L.; Mead, B.R.; Noonan, R.; Hardman, C.A. Obesity, Eating Behavior and Physical Activity during COVID-19 Lockdown: A Study of UK Adults. Appetite 2020, 156, 104853. [Google Scholar] [CrossRef]
  11. Chen, P.; Mao, L.; Nassis, G.P.; Harmer, P.; Ainsworth, B.E.; Li, F. Coronavirus disease (COVID-19): The need to maintain regular physical activity while taking precautions. J. Sport Health Sci. 2020, 9, 103–104. [Google Scholar] [CrossRef]
  12. Fan, X.; Straube, S. Reporting on Work-Related Low Back Pain: Data Sources, Discrepancies and the Art of Discovering Truths. Pain Manag. 2016, 6, 553–559. [Google Scholar] [CrossRef] [Green Version]
  13. Mutubuki, E.N.; Luitjens, M.A.; Maas, E.T.; Huygen, F.J.; Ostelo, R.W.; van Tulder, M.W.; van Dongen, J.M. Predictive Factors of High Societal Costs among Chronic Low Back Pain Patients. Eur. J. Pain 2020, 24, 325–337. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Tveito, T.H.; Shaw, W.S.; Huang, Y.-H.; Nicholas, M.; Wagner, G. Managing Pain in the Workplace: A Focus Group Study of Challenges, Strategies and What Matters Most to Workers with Low Back Pain. Disabil. Rehabil. 2010, 32, 2035–2045. [Google Scholar] [CrossRef]
  15. Froud, R.; Patterson, S.; Eldridge, S.; Seale, C.; Pincus, T.; Rajendran, D.; Fossum, C.; Underwood, M. A Systematic Review and Meta-Synthesis of the Impact of Low Back Pain on People’s Lives. BMC Musculoskelet. Disord. 2014, 15, 50. [Google Scholar] [CrossRef] [Green Version]
  16. Dutmer, A.L.; Preuper, H.R.S.; Soer, R.; Brouwer, S.; Bültmann, U.; Dijkstra, P.U.; Coppes, M.H.; Stegeman, P.; Buskens, E.; van Asselt, A.D. Personal and Societal Impact of Low Back Pain: The Groningen Spine Cohort. Spine 2019, 44, E1443–E1451. [Google Scholar] [CrossRef]
  17. PEKYAVAŞ, N.Ö.; PEKYAVAS, E. Investigation of The Pain and Disability Situation of The Individuals Working “Home-Office” At Home At The Covid-19 Isolation Process. Int. J. Disabil. Sports Health Sci. 2020, 3, 100–104. [Google Scholar]
  18. Toprak Celenay, S.; Karaaslan, Y.; Mete, O.; Ozer Kaya, D. Coronaphobia, Musculoskeletal Pain, and Sleep Quality in Stay-at Home and Continued-Working Persons during the 3-Month Covid-19 Pandemic Lockdown in Turkey. Chronobiol. Int. 2020, 37, 1778–1785. [Google Scholar] [CrossRef] [PubMed]
  19. Puntillo, F.; Giglio, M.; Brienza, N.; Viswanath, O.; Urits, I.; Kaye, A.D.; Pergolizzi, J.; Paladini, A.; Varrassi, G. Impact of COVID-19 Pandemic on Chronic Pain Management: Looking for the Best Way to Deliver Care. Best Pract. Res. Clin. Anaesthesiol. 2020, 34, 529–537. [Google Scholar] [CrossRef] [PubMed]
  20. Song, X.-J.; Xiong, D.-L.; Wang, Z.-Y.; Yang, D.; Zhou, L.; Li, R.-C. Pain Management during the COVID-19 Pandemic in China: Lessons Learned. Pain Med. 2020, 21, 1319–1323. [Google Scholar] [CrossRef] [PubMed]
  21. Abdullahi, A.; Candan, S.A.; Abba, M.A.; Bello, A.H.; Alshehri, M.A.; Afamefuna Victor, E.; Umar, N.A.; Kundakci, B. Neurological and Musculoskeletal Features of COVID-19: A Systematic Review and Meta-Analysis. Front. Neurol. 2020, 11, 687. [Google Scholar] [CrossRef] [PubMed]
  22. Cavazos-Rehg, P.A.; Krauss, M.; Fisher, S.L.; Salyer, P.; Grucza, R.A.; Bierut, L.J. Twitter Chatter About Marijuana. J. Adolesc. Health 2015, 56, 139–145. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  23. Koh, J.X.; Liew, T.M. How Loneliness Is Talked about in Social Media during COVID-19 Pandemic: Text Mining of 4492 Twitter Feeds. J. Psychiatr. Res. 2020, in press. [Google Scholar] [CrossRef] [PubMed]
  24. Sutton, J.; Vos, S.C.; Olson, M.K.; Woods, C.; Cohen, E.; Gibson, C.B.; Phillips, N.E.; Studts, J.L.; Eberth, J.M.; Butts, C.T. Lung Cancer Messages on Twitter: Content Analysis and Evaluation. J. Am. Coll. Radiol. 2018, 15, 210–217. [Google Scholar] [CrossRef] [Green Version]
  25. Lamb, A.; Paul, M.; Dredze, M. Separating Fact from Fear: Tracking Flu Infections on Twitter. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Atlanta, GA, USA, 9–14 June 2013; pp. 789–795. [Google Scholar]
  26. Heaivilin, N.; Gerbert, B.; Page, J.E.; Gibbs, J.L. Public Health Surveillance of Dental Pain via Twitter. J. Dent. Res. 2011, 90, 1047–1051. [Google Scholar] [CrossRef] [Green Version]
  27. Xue, J.; Chen, J.; Hu, R.; Chen, C.; Zheng, C.; Su, Y.; Zhu, T. Twitter Discussions and Emotions About the COVID-19 Pandemic: Machine Learning Approach. J. Med. Internet Res. 2020, 22, e20550. [Google Scholar] [CrossRef]
  28. Abd-Alrazaq, A.; Alhuwail, D.; Househ, M.; Hamdi, M.; Shah, Z. Top Concerns of Tweeters During the COVID-19 Pandemic: Infoveillance Study. J. Med. Internet Res. 2020, 22, e19016. [Google Scholar] [CrossRef] [Green Version]
  29. Mackey, T.; Purushothaman, V.; Li, J.; Shah, N.; Nali, M.; Bardier, C.; Liang, B.; Cai, M.; Cuomo, R. Machine Learning to Detect Self-Reporting of Symptoms, Testing Access, and Recovery Associated With COVID-19 on Twitter: Retrospective Big Data Infoveillance Study. JMIR Public Health Surveill. 2020, 6, e19509. [Google Scholar] [CrossRef] [PubMed]
  30. Guntuku, S.C.; Sherman, G.; Stokes, D.C.; Agarwal, A.K.; Seltzer, E.; Merchant, R.M.; Ungar, L.H. Tracking Mental Health and Symptom Mentions on Twitter During COVID-19. J. Gen. Intern. Med. 2020, 35, 2798–2800. [Google Scholar] [CrossRef]
  31. Fiok, K.; Karwowski, W.; Gutierrez, E.; Reza-Davahli, M. Comparing the Quality and Speed of Sentence Classification with Modern Language Models. Appl. Sci. 2020, 10, 3386. [Google Scholar] [CrossRef]
  32. Fiok, K.; Karwowski, W.; Gutierrez, E.; Liciaga, T.; Belmonte, A.; Capobianco, R. Automated Classification of Evidence of Respect in the Communication through Twitter. Appl. Sci. 2021, 11, 1294. [Google Scholar] [CrossRef]
  33. Liu, Y.; Ott, M.; Goyal, N.; Du, J.; Joshi, M.; Chen, D.; Levy, O.; Lewis, M.; Zettlemoyer, L.; Stoyanov, V. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv 2019, arXiv:1907.11692. [Google Scholar]
  34. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
  35. Danilak, M.M. Langdetect. 2020. Available online: https://pypi.org/project/langdetect/ (accessed on 20 December 2020).
  36. Taehoon, K.; Wurster, K. Emoji: Emoji for Python. 2021. Available online: https://pypi.org/project/emoji/ (accessed on 20 December 2020).
  37. Krippendorff, K. Computing Krippendorff’s Alpha-Reliability; Departmental Papers (ASC); University of Pennsylvania: Philadelphia, PA, USA, 2011. [Google Scholar]
  38. Chicco, D.; Jurman, G. The Advantages of the Matthews Correlation Coefficient (MCC) over F1 Score and Accuracy in Binary Classification Evaluation. BMC Genom. 2020, 21, 6. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  39. Géron, A. Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems; O’Reilly Media: Newton, MA, USA, 2019. [Google Scholar]
  40. Melamed, I.D.; Green, R.; Turian, J. Precision and Recall of Machine Translation. In Companion Volume of the Proceedings of HLT-NAACL 2003-Short Papers; Association for Computational Linguistics: Stroudsburg, PA, USA, 2003; pp. 61–63. [Google Scholar]
  41. Shapiro, S.S.; Wilk, M.B. An Analysis of Variance Test for Normality (Complete Samples). Biometrika 1965, 52, 591–611. [Google Scholar] [CrossRef]
  42. Abraham, A.; Pedregosa, F.; Eickenberg, M.; Gervais, P.; Mueller, A.; Kossaifi, J.; Gramfort, A.; Thirion, B.; Varoquaux, G. Machine Learning for Neuroimaging with Scikit-Learn. Front. Neuroinform. 2014, 8, 14. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  43. Akbik, A.; Blythe, D.; Vollgraf, R. Contextual String Embeddings for Sequence Labeling. In Proceedings of the 27th International Conference on Computational Linguistics, Santa Fe, NM, USA, 20–26 August 2018; pp. 1638–1649. [Google Scholar]
  44. Ari, N.; Ustazhanov, M. Matplotlib in Python. In Proceedings of the 2014 11th International Conference on Electronics, Computer and Computation (ICECCO), Abuja, Nigeria, 29 September–1 October 2014; pp. 1–6. [Google Scholar]
  45. Nelli, F. Python Data Analytics: With Pandas, NumPy, and Matplotlib; Apress: New York, NY, USA, 2018; ISBN 978-1-4842-3913-1. [Google Scholar]
  46. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  47. Cury, R.M. Oscillation of Tweet Sentiments in the Election of João Doria Jr. for Mayor. J. Big Data 2019, 6, 42. [Google Scholar] [CrossRef]
  48. Kaushik, R.; Apoorva Chandra, S.; Mallya, D.; Chaitanya, J.N.V.K.; Kamath, S.S. Sociopedia: An Interactive System for Event Detection and Trend Analysis for Twitter Data. In Proceedings of the 3rd International Conference on Advanced Computing, Networking and Informatics, Orissa, India, 23–25 June 2015; pp. 63–70. [Google Scholar]
  49. Xue, J.; Chen, J.; Chen, C.; Zheng, C.; Li, S.; Zhu, T. Public Discourse and Sentiment during the COVID 19 Pandemic: Using Latent Dirichlet Allocation for Topic Modeling on Twitter. PLoS ONE 2020, 15, e0239441. [Google Scholar] [CrossRef]
  50. Petrovic, S.; Osborne, M.; Lavrenko, V. Rt to Win! Predicting Message Propagation in Twitter. In Proceedings of the International AAAI Conference on Web and Social Media, Catalonia, Spain, 17–21 July 2011. [Google Scholar]
  51. Jenders, M.; Kasneci, G.; Naumann, F. Analyzing and Predicting Viral Tweets. In Proceedings of the 22nd International Conference on World Wide Web, Rio de Janeiro, Brazil, 13–14 May 2013; pp. 657–664. [Google Scholar]
Figure 1. The general-level flowchart of the data analysis process in our study. Detailed descriptions of all visualized steps are available throughout the study. (S1): search #1; (S2) search #2.
Figure 1. The general-level flowchart of the data analysis process in our study. Detailed descriptions of all visualized steps are available throughout the study. (S1): search #1; (S2) search #2.
Ijerph 18 04543 g001
Figure 2. S1 data visualization. Day-by-day and hour-by-hour number of tweets legitimately complaining of back pain. Legend: November 2019 data is in blue, November 2020 data is in red. The dotted lines are trend lines where trend was computed as a 6th order polynomial curve. The colors of the curves match the color of the data plots.
Figure 2. S1 data visualization. Day-by-day and hour-by-hour number of tweets legitimately complaining of back pain. Legend: November 2019 data is in blue, November 2020 data is in red. The dotted lines are trend lines where trend was computed as a 6th order polynomial curve. The colors of the curves match the color of the data plots.
Ijerph 18 04543 g002
Figure 3. S2 data visualization. Day-by-day number of tweets legitimately complaining about back pain according to Twitter data localized in the USA. Legend: 2019 data is in blue and 2020 data in red. The dotted lines are trend lines where trend was computed as a 6th order polynomial curve. The colors of the curves match the color of the data plots.
Figure 3. S2 data visualization. Day-by-day number of tweets legitimately complaining about back pain according to Twitter data localized in the USA. Legend: 2019 data is in blue and 2020 data in red. The dotted lines are trend lines where trend was computed as a 6th order polynomial curve. The colors of the curves match the color of the data plots.
Ijerph 18 04543 g003aIjerph 18 04543 g003b
Table 1. Summary of the exploratory analysis.
Table 1. Summary of the exploratory analysis.
Search ParametersNumber of TweetsFrequent Tweet Types
Search phraseExplicitLocalizationXDay19XDay20ComplaintsOther (advertisement, professional discussion, not relevant)Scam
low back painNoNo134183NoYesNo
lower back painNoNo164256YesNoNo
back painNoNo333110,726YesNumerousYes
back painYesNo13035762YesYesYes
back painNoYes5472YesYesYes
Table 2. The number of tweets downloaded in two searches before and after removing tweets with duplicated texts.
Table 2. The number of tweets downloaded in two searches before and after removing tweets with duplicated texts.
Search NumberTime SpanFiltering Duplicated Texts
BeforeAfter
111 November–1 December 201953,23428,598
111 November–1 December 202078,55945,544
21 March–1 December 201915,66315,635
21 March–1 December 202014,63414,497
Table 3. Confusion matrix of the fine-tuned RoBERTa + XGBoost model.
Table 3. Confusion matrix of the fine-tuned RoBERTa + XGBoost model.
GroupOtherComplaints of Back Pain
Other1895128
Complaints of back pain1002877
Table 4. Metrics of the fine-tuned RoBERTa + XGBoost model.
Table 4. Metrics of the fine-tuned RoBERTa + XGBoost model.
MetricValue
Accuracy0.9544
Balanced accuracy0.9516
F1 macro0.9526
F1 micro0.9544
F1 weighted0.9543
MCC0.9052
Precision0.9536
Recall0.9516
Table 5. Tweets legitimately complaining of back pain. The predictions were carried out by the RoBERTa + XGBoost model described in the methods section.
Table 5. Tweets legitimately complaining of back pain. The predictions were carried out by the RoBERTa + XGBoost model described in the methods section.
Filtering Duplicated TextsPredicted as Legitimate Complaining Tweets
Search numberTime spanBeforeAfter% of original tweet numberAfter% of original tweet number% of filtered tweet number
11 November–1 December 201953,23428,59853.7217,67433.261.8
11 November–1 December 202078,55945,54457.9732,53041.4171.43
21 March–1 December 201915,66315,63599.8212,22378.0478.18
21 March–1 December 202014,63414,49799.0611,78580.5381.29
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Fiok, K.; Karwowski, W.; Gutierrez, E.; Saeidi, M.; Aljuaid, A.M.; Davahli, M.R.; Taiar, R.; Marek, T.; Sawyer, B.D. A Study of the Effects of the COVID-19 Pandemic on the Experience of Back Pain Reported on Twitter® in the United States: A Natural Language Processing Approach. Int. J. Environ. Res. Public Health 2021, 18, 4543. https://0-doi-org.brum.beds.ac.uk/10.3390/ijerph18094543

AMA Style

Fiok K, Karwowski W, Gutierrez E, Saeidi M, Aljuaid AM, Davahli MR, Taiar R, Marek T, Sawyer BD. A Study of the Effects of the COVID-19 Pandemic on the Experience of Back Pain Reported on Twitter® in the United States: A Natural Language Processing Approach. International Journal of Environmental Research and Public Health. 2021; 18(9):4543. https://0-doi-org.brum.beds.ac.uk/10.3390/ijerph18094543

Chicago/Turabian Style

Fiok, Krzysztof, Waldemar Karwowski, Edgar Gutierrez, Maham Saeidi, Awad M. Aljuaid, Mohammad Reza Davahli, Redha Taiar, Tadeusz Marek, and Ben D. Sawyer. 2021. "A Study of the Effects of the COVID-19 Pandemic on the Experience of Back Pain Reported on Twitter® in the United States: A Natural Language Processing Approach" International Journal of Environmental Research and Public Health 18, no. 9: 4543. https://0-doi-org.brum.beds.ac.uk/10.3390/ijerph18094543

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop