{"id":515,"date":"2022-03-25T08:56:15","date_gmt":"2022-03-25T08:56:15","guid":{"rendered":"https:\/\/zephyros.solutions\/?p=515"},"modified":"2022-03-30T19:20:26","modified_gmt":"2022-03-30T19:20:26","slug":"the-strange-case-of-pneumonia-in-2019","status":"publish","type":"post","link":"https:\/\/zephyros.solutions\/it\/the-strange-case-of-pneumonia-in-2019\/","title":{"rendered":"The Strange Case of Pneumonia in 2019"},"content":{"rendered":"<div class=\"wp-block-cover alignfull\" style=\"min-height:303px\"><span aria-hidden=\"true\" class=\"wp-block-cover__gradient-background has-background-dim\"><\/span><img width=\"976\" height=\"549\" class=\"wp-block-cover__image-background wp-image-539\" alt=\"\" src=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/coronavirus.jpg\" data-object-fit=\"cover\" srcset=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/coronavirus.jpg 976w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/coronavirus-300x169.jpg 300w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/coronavirus-768x432.jpg 768w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/coronavirus-16x9.jpg 16w\" sizes=\"(max-width: 976px) 100vw, 976px\" \/><div class=\"wp-block-cover__inner-container\">\n<h2 class=\"has-text-align-center\">PART I<\/h2>\n\n\n\n<p class=\"has-large-font-size\">What Social Media Analysis can tell us about Early Detection of COVID-19, Legionnaires&#8217; Disease and other Anomalies. <\/p>\n<\/div><\/div>\n\n\n\n<p class=\"has-text-align-left\">The analysis of social media data is a very powerful tool for the early detection of key events. Studying specific keywords on Twitter suggests the presence of a strange increase in cases of pneumonia in late 2019, most likely linked with the COVID-19 pandemic (an interesting idea outlined in a <a rel=\"noreferrer noopener\" href=\"https:\/\/www.nature.com\/articles\/s41598-021-81333-1\" target=\"_blank\">Nature paper<\/a> in January 2021).<\/p>\n\n\n\n<p class=\"has-text-align-left\">The analysis focuses on the number of tweets &amp; users mentioning specific keywords during a certain period of time. To showcase the power of our tools we have reproduced and integrated part of that analysis by adding our natural language processing tools.<br>We have focused on two countries: Italy and France, with a total of about 14,000 unique tweets. For those interested in the statistical methods and datasets, we refer to the original paper.<\/p>\n\n\n\n<p class=\"has-text-align-left\">Let&#8217;s first have a look at the (normalized) cumulative number of tweets reported in Italy and France from January 1, 2018 to April 1, 2020. Some steep spikes are seen in early 2020 for both countries, with Italy showing some strange <em>knees<\/em> with sudden increases in the number of tweets during the summers of 2018 and 2019. Nothing like that is seen in France. We will come back on those <em>knees<\/em> later on, but for now let&#8217;s focus on the spike in early 2020. <\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img width=\"640\" height=\"480\" src=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_italy-1.png\" alt=\"\" class=\"wp-image-544 size-full\" srcset=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_italy-1.png 640w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_italy-1-300x225.png 300w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_italy-1-16x12.png 16w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-text-align-left has-large-font-size\">Cumulative Tweets: Italy <\/p>\n\n\n\n<p class=\"has-text-align-left\">The plot shows the cumulative number of tweets reporting the word &#8220;polmonite&#8221; (pneumonia) from January 1, 2018, until April 1, 2020. Two <em>knees <\/em>are seen in summer 2018 and 2019, plus a steep spike in early 2020. <\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img width=\"640\" height=\"480\" src=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_france-2.png\" alt=\"\" class=\"wp-image-545 size-full\" srcset=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_france-2.png 640w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_france-2-300x225.png 300w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/cumulative_tweets_france-2-16x12.png 16w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Cumulative Tweets: France<\/p>\n\n\n\n<p>The plot shows the cumulative number of tweets reporting the word &#8220;pneumonie&#8221; (pneumonia) from January 1, 2018 until April 1, 2020. A steep spike is seen in early 2020 with no other anomaly.<\/p>\n<\/div><\/div>\n\n\n\n<p class=\"has-text-align-left\">To better understand what is happening, we first look at the number of unique users tweeting in Italy and France during the considered timeline. If nothing relevant is happening, we should expect a random fluctuation in the number of users. Also, we should see no specific difference between the number of users in 2018-2019 and 2019-2020. However, we detect a clear difference between the total number of users in early 2020 and those in early 2019. As early as November 2019, France actually shows a significant increase in the number of users mentioning pneumonia. Furthermore, something strange is detected again in Italy during the summers of 2018 and 2019 with two <em>bumps<\/em> (see figures below) that match the <em>knees<\/em> seen in the cumulative number of tweets in the plots above. <\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile\" style=\"grid-template-columns:auto 45%\"><figure class=\"wp-block-media-text__media\"><img width=\"640\" height=\"480\" src=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_italy-3.png\" alt=\"\" class=\"wp-image-527 size-full\" srcset=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_italy-3.png 640w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_italy-3-300x225.png 300w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_italy-3-16x12.png 16w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Unique Twitter Users: Italy<\/p>\n\n\n\n<p>The number of <em>unique<\/em> users using the Italian language and mentioning the keyword &#8220;polmonite&#8221;. The x-axis indicates the month. The red line refers to the period 03-2019 until the end of 02-2020. The black line from 03-2018 until the end of 02-2019. <\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile\" style=\"grid-template-columns:auto 45%\"><figure class=\"wp-block-media-text__media\"><img width=\"640\" height=\"480\" src=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_france-1.png\" alt=\"\" class=\"wp-image-528 size-full\" srcset=\"https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_france-1.png 640w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_france-1-300x225.png 300w, https:\/\/zephyros.solutions\/wp-content\/uploads\/2021\/03\/unique_users_france-1-16x12.png 16w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Unique Twitter Users: France<\/p>\n\n\n\n<p>Number of <em>unique<\/em> users using the French language and mentioning the keyword &#8220;pneumonie&#8221;. The x-axis indicates the month. The red line refers to the period 03-2019 until end of 02-2020. The black line to 03-2018 until end of 02-2019.<\/p>\n<\/div><\/div>\n\n\n\n<p class=\"has-text-align-left\">According to the method outlined in the Nature paper (<em>Lopriete et al.<\/em> 2021), one should be able to detect these anomalies when looking at the p-values of the cumulative distributions of the number of tweets. We have repeated their analysis and the result we obtained is compatible with that reported by the authors. Note that we haven&#8217;t made any changes to their method of analysis until this moment. This analysis has been done only for the purpose of reproducing their results. <\/p>\n\n\n\n<figure class=\"wp-block-embed alignright is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Epidemia polmoniti: cresce ipotesi legionella\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/xVvW9c_Lta4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><figcaption>The news reported in Italy about the <strong>Legionnaires&#8217; disease<\/strong> outbreak in September 2018. <\/figcaption><\/figure>\n\n\n\n<p class=\"has-text-align-left\">So far this seems to qualitatively reproduce the results of the paper. However, we want to go some step further and investigate what happened in Italy during the summers of 2018 and 2019. The first interesting result is that between July and October 2018 there were multiple <strong>Legionnaires&#8217; disease<\/strong> outbreaks in Italy, broadly reported by the press. The first <em>knee<\/em> and <em>bump<\/em> seen on Twitter for Italy, seems to be roughly coincident with the occurrence of those cases. <\/p>\n\n\n\n<p class=\"has-text-align-left\">What about 2019? An inspection of the tweets in August 2019 shows that the second <em>knee<\/em> and <em>bump<\/em> is coincident to the time when Maurizio Sarri, at the time coach of the Italian football team Juventus F.C.<span style=\"text-decoration: underline;\">,<\/span> was reported with a<strong> severe case of pneumonia<\/strong>. The comparison of the cumulative distribution of tweets in the two years considered also shows an anomaly around the end of August 2019, in agreement with the findings. <\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>The analysis of social media data is a very powerful tool for the early detection of key events. Studying specific keywords on Twitter suggests the presence of a strange increase in cases of pneumonia in late 2019, most likely linked with the COVID-19 pandemic (an interesting idea outlined in a Nature paper in January 2021).<a class=\"more-link\" href=\"https:\/\/zephyros.solutions\/it\/the-strange-case-of-pneumonia-in-2019\/\">Continua a leggere <span class=\"screen-reader-text\">&#8220;The Strange Case of Pneumonia in 2019&#8221;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[4,5],"_links":{"self":[{"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/posts\/515"}],"collection":[{"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":13,"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/posts\/515\/revisions\/717"}],"wp:attachment":[{"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zephyros.solutions\/it\/wp-json\/wp\/v2\/tags?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}