6
views
0
recommends
+1 Recommend
2 collections
    0
    shares

      Submit your digital health research with an established publisher
      - celebrating 25 years of open access

      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Sentiment Analysis of Insomnia-Related Tweets via a Combination of Transformers Using Dempster-Shafer Theory: Pre– and Peri–COVID-19 Pandemic Retrospective Study

      research-article

      Read this article at

      ScienceOpenPublisherPMC
      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          Background

          The COVID-19 pandemic has imposed additional stress on population health that may result in a change of sleeping behavior.

          Objective

          In this study, we hypothesized that using natural language processing to explore social media would help with assessing the mental health conditions of people experiencing insomnia after the outbreak of COVID-19.

          Methods

          We designed a retrospective study that used public social media content from Twitter. We categorized insomnia-related tweets based on time, using the following two intervals: the prepandemic (January 1, 2019, to January 1, 2020) and peripandemic (January 1, 2020, to January 1, 2021) intervals. We performed a sentiment analysis by using pretrained transformers in conjunction with Dempster-Shafer theory (DST) to classify the polarity of emotions as positive, negative, and neutral. We validated the proposed pipeline on 300 annotated tweets. Additionally, we performed a temporal analysis to examine the effect of time on Twitter users’ insomnia experiences, using logistic regression.

          Results

          We extracted 305,321 tweets containing the word insomnia (prepandemic tweets: n=139,561; peripandemic tweets: n=165,760). The best combination of pretrained transformers (combined via DST) yielded 84% accuracy. By using this pipeline, we found that the odds of posting negative tweets (odds ratio [OR] 1.39, 95% CI 1.37-1.41; P<.001) were higher in the peripandemic interval compared to those in the prepandemic interval. The likelihood of posting negative tweets after midnight was 21% higher than that before midnight (OR 1.21, 95% CI 1.19-1.23; P<.001). In the prepandemic interval, while the odds of posting negative tweets were 2% higher after midnight compared to those before midnight (OR 1.02, 95% CI 1.00-1.07; P=.008), they were 43% higher (OR 1.43, 95% CI 1.40-1.46; P<.001) in the peripandemic interval.

          Conclusions

          The proposed novel sentiment analysis pipeline, which combines pretrained transformers via DST, is capable of classifying the emotions and sentiments of insomnia-related tweets. Twitter users shared more negative tweets about insomnia in the peripandemic interval than in the prepandemic interval. Future studies using a natural language processing framework could assess tweets about other types of psychological distress, habit changes, weight gain resulting from inactivity, and the effect of viral infection on sleep.

          Related collections

          Most cited references50

          • Record: found
          • Abstract: not found
          • Article: not found

          A Coefficient of Agreement for Nominal Scales

            Bookmark
            • Record: found
            • Abstract: found
            • Article: not found

            Attention Is All You Need

            The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data. 15 pages, 5 figures
              Bookmark
              • Record: found
              • Abstract: found
              • Article: found

              Changes in sleep pattern, sense of time and digital media use during COVID‐19 lockdown in Italy

              Abstract Italy is one of the major COVID‐19 hotspots. To reduce the spread of the infections and the pressure on Italian healthcare systems, since March 10, 2020, Italy has been under a total lockdown, forcing people into home confinement. Here we present data from 1,310 people living in the Italian territory (M age = 23.91 ± 3.60 years, 880 females, 501 workers, 809 university students), who completed an online survey from March 24 to March 28, 2020. In the survey, we asked participants to think about their use of digital media before going to bed, their sleep pattern and their subjective experience of time in the previous week (March 17–23, which was the second week of the lockdown) and up to the first week of February (February 3–10, before any restriction in any Italian area). During the lockdown, people increased the usage of digital media near bedtime, but this change did not affect sleep habits. Nevertheless, during home confinement, sleep timing markedly changed, with people going to bed and waking up later, and spending more time in bed, but, paradoxically, also reporting a lower sleep quality. The increase in sleep difficulties was stronger for people with a higher level of depression, anxiety and stress symptomatology, and associated with the feeling of elongation of time. Considering that the lockdown is likely to continue for weeks, research data are urgently needed to support decision making, to build public awareness and to provide timely and supportive psychosocial interventions.
                Bookmark

                Author and article information

                Contributors
                Journal
                J Med Internet Res
                J Med Internet Res
                JMIR
                Journal of Medical Internet Research
                JMIR Publications (Toronto, Canada )
                1439-4456
                1438-8871
                December 2022
                27 December 2022
                27 December 2022
                : 24
                : 12
                : e41517
                Affiliations
                [1 ] Department of Medicine Baylor College of Medicine Houston, TX United States
                [2 ] Department of Management, Policy, and Community Health University of Texas School of Public Health The University of Texas Health Science Center at Houston Houston, TX United States
                [3 ] School of Biomedical Informatics The University of Texas Health Science Center at Houston Houston, TX United States
                Author notes
                Corresponding Author: Javad Razjouyan javad.razjouyan@ 123456bcm.edu
                Author information
                https://orcid.org/0000-0002-1883-0753
                https://orcid.org/0000-0003-2337-6337
                https://orcid.org/0000-0002-7001-581X
                https://orcid.org/0000-0002-7893-2946
                https://orcid.org/0000-0002-7349-5521
                https://orcid.org/0000-0001-6936-7984
                https://orcid.org/0000-0002-5274-4672
                https://orcid.org/0000-0003-1157-159X
                Article
                v24i12e41517
                10.2196/41517
                9822178
                36417585
                bd3b0eb4-42e7-45a0-81a5-ff668d9b83fe
                ©Arash Maghsoudi, Sara Nowakowski, Ritwick Agrawal, Amir Sharafkhaneh, Mark E Kunik, Aanand D Naik, Hua Xu, Javad Razjouyan. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 27.12.2022.

                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, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.

                History
                : 28 July 2022
                : 27 September 2022
                : 20 October 2022
                : 15 November 2022
                Categories
                Original Paper
                Original Paper

                Medicine
                covid-19,coronavirus,sleep,twitter,natural language processing,sentiment analysis,transformers,dempster-shafer theory,sleeping,social media,pandemic,effect,viral infection

                Comments

                Comment on this article