Literature DB >> 35383245

Trend clustering from COVID-19 tweets using graphical lasso-guided iterative principal component analysis.

Ryosuke Harakawa1, Tsutomu Ito2, Masahiro Iwahashi2.   

Abstract

This article presents a method for trend clustering from tweets about coronavirus disease (COVID-19) to help us objectively review the past and make decisions about future countermeasures. We aim to avoid detecting usual trends based on seasonal events while detecting essential trends caused by the influence of COVID-19. To this aim, we regard daily changes in the frequencies of each word in tweets as time series signals and define time series signals with single peaks as target trends. To successfully cluster the target trends, we propose graphical lasso-guided iterative principal component analysis (GLIPCA). GLIPCA enables us to remove trends with indirect correlations generated by other essential trends. Moreover, GLIPCA overcomes the difficulty in the quantitative evaluation of the accuracy of trend clustering. Thus, GLIPCA's parameters are easier to determine than those of other clustering methods. We conducted experiments using Japanese tweets about COVID-19 from March 8, 2020, to May 7, 2020. The results show that GLIPCA successfully distinguished trends before and after the declaration of a state of emergency on April 7, 2020. In addition, the results reveal the international argument about whether the Tokyo 2020 Summer Olympics should be held. The results suggest the tremendous social impact of the words and actions of Japanese celebrities. Furthermore, the results suggest that people's attention moved from worry and fear of an unknown novel pneumonia to the need for medical care and a new lifestyle as well as the scientific characteristics of COVID-19.
© 2022. The Author(s).

Entities:  

Mesh:

Year:  2022        PMID: 35383245      PMCID: PMC8982667          DOI: 10.1038/s41598-022-09651-6

Source DB:  PubMed          Journal:  Sci Rep        ISSN: 2045-2322            Impact factor:   4.379


Introduction

The outbreak of coronavirus disease (COVID-19) has seriously affected human health and economic activity around the world. Twitter (https://twitter.com) has become an important source of information[1-3], and various tweets (i.e., short text messages) have been disseminated widely[4-6]. Detecting trends in daily tweets allows us to objectively look back over the past based on data. This helps us make decisions about future countermeasures. From the perspective of computational social science, the analysis of trends in Twitter has been studied. Some literature[7-9] has visualized observations such as news and public sentiment about COVID-19 over time. Karami et al.[10] used the valence aware dictionary and sentiment reasoner[11], which is a sentiment analyzer in natural language processing. They observed monthly changes in the sentiment of tweets regarding COVID-19 vaccines. Yang and Chen[12] investigated the relationship between sentiment and the increase in infections using sentiment analysis for tweets. In contrast to the above studies, the studies[13-17] focused on the topic analysis of tweets. Taneja et al.[13] analyzed activity trends on Twitter and suggested its potential as a vehicle for disseminating scientific information during the pandemic. Caldera et al.[14] forecasted trends in hate speech in Sri Lanka using the Box–Jenkins method[18]. Arpaci et al.[15] detected burst topics from the public attention paid to the COVID-19 epidemic using evolutionary clustering[19]. Karmakar and Das[16] proposed a Bayesian estimation model and showed an upward trend in cyberbullying-related tweets since mid-March 2020. Latent Dirichlet allocation[20], which is a well-known topic modeling technique, was used in the study[21]. The study[21] found hidden topics using tweets and determined trending topics based on the number of tweets for each topic. Furthermore, dynamic topic modeling[17] was proposed for analyzing the COVID-19 Twitter narrative among the United States governors and presidential cabinet members. This method tracked the evolution of sub-topics related to risk, testing, and treatment. Unlike the above related work, this study aims to cluster trends to gain an overview of daily changes in many topics. One of our contributions is to present the novel research task of trend clustering. In the proposed method, we regard daily changes in the frequencies of each word in tweets as time series signals. The proposed method also defines time series signals with single peaks as target trends. This is because we aim to detect not the usual trends based on seasonal events but essential trends caused by the influence of COVID-19. Importantly, we remove trends with indirect correlations because they are generated by other essential trends. Based on this unique idea, we consider our aim to be to find trends with similar waveforms. In this article, we propose graphical lasso-guided iterative principal component analysis (GLIPCA). First, we construct a partial correlation network that connects only trends with direct correlations using the graphical lasso algorithm[22]. This processing enables us to select essential trends that form significant clusters from many trends. Simultaneously, this processing models essential trends using unimodal Gaussian distributions with direct correlations. Thus, in this study, essential trends are defined as time series signals with direct correlations, whose wave forms are similar to unimodal Gaussian distributions. In other words, we can evaluate the applicability of the proposed method. Clustering trends generated from other distributions is out of scope of this work. Second, we formulate trend clustering as the detection of dense nodes in the partial correlation network. Specifically, we improve the hyperlink-induced topic search (HITS) algorithm[23], which is equivalent to principal component analysis (PCA) for a network structure[24]. The proposed method iteratively extracts the first principal component and reconstructs the network so that the corresponding nodes can be removed. This iterative processing including the network reconstruction is novel compared with the HITS algorithm that extracts orthogonal bases from the given network. Thus, unlike other clustering methods, our method does not duplicate members in different clusters, and the number of clusters is automatically determined. These advantages overcome the difficulty of quantitative evaluating the accuracy of trend clustering. Specifically, we can determine the most accurate results by monitoring the modularity[25], i.e., the quality measure of community detection in a complex network. In the subsequent sections, we present the results of experiments using Japanese tweets about COVID-19 from March 8, 2020, to May 7, 2020. The results show that GLIPCA successfully distinguished trends before and after the declaration of a state of emergency on April 7, 2020.

Results

In this experiment, we used a computer with Intel 3.60 GHz CPU and 32 GB RAM. The OS was Ubuntu 18.04 LTS. All programs were implemented by Python 3.6.7. (a) Early trend words and (b) late trend words. In this table, brackets show notations. We show English translations of the original Japanese. Results for IPCA. The first, second, and third trend clusters are denoted by red, blue, and green, respectively. B was set to 6, yielding a Q of 0.156. (a) The obtained trend clusters. The size of each node is determined by the degree to which the corresponding trend belongs to its clusters. (b) Time series signals for each cluster. We show averages of all trends in each cluster. The vertical line indicates the day of the state-of-emergency declaration (April 7, 2020). First trend cluster in Fig. 1a. Words corresponding to each trend are shown. For visualization, only 90 words in descending order of the degree to which each trend belongs to the cluster are shown.
Figure 1

Results for IPCA. The first, second, and third trend clusters are denoted by red, blue, and green, respectively. B was set to 6, yielding a Q of 0.156. (a) The obtained trend clusters. The size of each node is determined by the degree to which the corresponding trend belongs to its clusters. (b) Time series signals for each cluster. We show averages of all trends in each cluster. The vertical line indicates the day of the state-of-emergency declaration (April 7, 2020).

Second trend cluster in Fig. 1a. The words corresponding to each trend are shown. Third trend cluster in Fig. 1a. The words corresponding to each trend are shown.

Data used in this study

A state of emergency was declared by the Japanese government on April 7, 2020. Tension among the public had increased during this period because such a declaration was the first in Japan. We assume that major trends should be divided into trends before and after the state-of-emergency declaration. To verify this assumption, we crawled Japanese tweets from March 8, 2020, to May 7, 2020 (30 days before and after the state-of-emergency declaration). For each day during the above period, we collected important words defined in the news analysis about COVID-19[26] (http://agora.ex.nii.ac.jp/crisis/covid-19/mass-media/word/). Using articles on Yahoo! News (https://news.yahoo.co.jp/), the important words were defined as ones that frequently appeared on the target day but did not frequently appear on other days. From the important words, we collected nouns that only appear on or before (after) April 7, 2020, and refer to them as early (late) trend words. Early trend words and late trend words defined in reference to the study[26] are shown in Table 1.
Table 1

(a) Early trend words and (b) late trend words.

(a)
Joining a company, interest rates, Bakatono (Japanese TV program and its character), the Drifters (Japanese comedian group), Spain,
Italy, Korea, Kazuko Kurosawa (Japanese comedian), Japan, Hitoshi Matsumoto (Japanese comedian), immigration, interest rate cut,
Hanshin Tigers (Japanese baseball team), Morisanchu (Japanese comedian group), Tom Hanks, autograph letter, Lorenzo Sanz,
Inspection, IOC (International Olympic Committee), president, woman, bank of Japan, the dead,
Shintaro Fujinami (baseball player in Hanshin Tigers), novel pneumonia, positive, Katsuya Maiguma (Japanese actor), player,
Sense of smell, graduation, returning to one’s country, mourning, virus, Kozo Tashima (Japanese former soccer player),
Pandemic, Masataka Nashida (Japanese former baseball player), company
(b)
Mask, ATARASHIICHIZU (Japanese music group), home, Sumo wrestler, TV Asahi corporation, video,
Kumiko Shiratori (Japanese comedian), Takehiko Orimo (Japanese former basketball player), remaining at home, entering school, now,
Tamao Akae (Japanese broadcaster), comment, broadcaster, by-election, Remdesivir,
Hirofumi Yoshimura (governor of Osaka prefecture), Miki Sumiyoshi (Japanese broadcaster), Cologne, therapeutic drug,
Hanamaru (alias of a Japanese TV program), Takadagawa (name of a Sumo stable), Kotaro Shiga (Japanese actor), gold’s gym,
Children’s day (May 5th for each year), request, Pachinko (Japanese gambling machine), Mitz Mangrove (Japanese entertainer),
Leaving the hospital, announcement, Gotoku Sakai (Japanese soccer player), life, support, benefit, Jun-ichi Ishida (Japanese actor),
Constitutional amendment, golden weak (Japanese holidays during the last week of April up to the first week of May), end,
Kumiko Okae (Japanese actress), Yuta Tomikawa (Japanese broadcaster), Shinzo Abe (Japanese former prime minister),
Takashi Okamura (Japanese comedian), self-restraint, Yoshio Tateishi (Japanese businessman), crisis, Mainichi Broadcasting System,
Person, long holidays, Atsushi Kataoka (Japanese former baseball player), report station (Japanese TV news program),
Inter-high school competition, restart, donation, crude oil, extension, constitution, business suspension, Baku Owada (Japanese actor)

In this table, brackets show notations. We show English translations of the original Japanese.

We defined the Japanese corresponding to “ (corona OR pneumonia)” as the set of queries. Here, is either an early trend word or late trend word. Note that COVID-19 is commonly called “corona” in Japan. Using Twitter API (https://developer.twitter.com/en/docs/twitter-api), we collected up to 500 tweets for each day and each query from March 8, 2020, to May 7, 2020. Here, we determined the number of 500 because Twitter API can deliver up to 500 tweets per request. As a result, we collected about 7, 736 tweets on average per day and 471, 925 tweets in total during the whole period. As in the study[27], we performed pre-processing for each tweet. Concretely, using a natural language processing tool called Janome (https://mocobeta.github.io/janome/en/), we performed morphological analysis[28] and extracted only the nouns. We then removed stop words as defined in https://www.kaggle.com/lazon282/japanese-stop-words. Moreover, we removed words that consist of only one character because they are likely to be trivial symbols or numbers. Note that Japanese nouns do not change inflection. For example, singular nouns are not distinguished from plural ones. Thus, we did not perform lemmatization[29]. Furthermore, we regarded words with a small document frequency to be irrelevant to COVID-19. Thus, we removed words whose document frequencies were less than of the total number of tweets from the dataset for each day. The number of the remaining words is denoted by M. Subsequently, trend clustering, i.e., an analysis of changes in the daily frequencies of the remaining M words, was performed.

Performance verification

We verify that GLIPCA achieves the following purposes: (i) Does GLIPCA successfully divide major trends into trends before and after the state-of-emergency declaration? (ii) Does GLIPCA model essential trends using unimodal Gaussian distributions with direct correlations? As a reference method, we implemented IPCA, which is GLIPCA without the graphical lasso algorithm[22]. We set the range of B to and determined the value of B that gave the best Q. As described in “Methods”, we regard the frequencies of each word as time series signals and applies a moving average filter to the signals for smoothing. A parameter B is a width of the moving average filter. Moreover, we quantitatively evaluate the clustering results by modularity Q. The modularity is a quality measure, which is generally used for flat community detection in a network. Figures 1, 2, 3 and 4 show results of trend clustering by IPCA. We show an overview of the trend clusters in Fig. 1a. It is difficult to show the trends (words) corresponding to each node while preserving high visibility. Therefore, we separately describe the trends for each cluster in Figs. 2, 3 and 4. Figure 1b shows the time series signals over time for each trend cluster. These figures confirm that IPCA cannot achieve (i). Moreover, we verified whether the obtained trends were generated from unimodal Gaussian distributions. To do this, we used the Shapiro–Wilk test[30] and present the results in Table 2(a). This confirms that IPCA cannot achieve (ii), suggesting that IPCA may detect the usual trends based on seasonal events. Note that it is clear that IPCA includes indirect correlations because it does not have any functions that remove them.
Figure 2

First trend cluster in Fig. 1a. Words corresponding to each trend are shown. For visualization, only 90 words in descending order of the degree to which each trend belongs to the cluster are shown.

Figure 3

Second trend cluster in Fig. 1a. The words corresponding to each trend are shown.

Figure 4

Third trend cluster in Fig. 1a. The words corresponding to each trend are shown.

Table 2

Rates of trends within clusters, which are generated from the unimodal Gaussian distribution.

(a)(b)
Cluster 1Cluster 2Cluster 3Cluster 1Cluster 2
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p\ge 10^{-2}$$\end{document}p10-20.09160.06250.000\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-2}$$\end{document}p10-20.1560.172
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p\ge 10^{-3}$$\end{document}p10-30.1460.1250.000\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-3}$$\end{document}p10-30.3000.333
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-4}$$\end{document}p10-40.1720.1560.000\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-4}$$\end{document}p10-40.3560.448

We investigated whether the p values of the Shapiro–Wilk test for the trends are greater than the thresholds. (a) Results for IPCA. (b) Results for GLIPCA.

Next, we show results of the proposed GLIPCA. We set the range of B to and that of to . As described in “Methods”, GLIPCA uses the graphical lasso algorithm[22] that estimates a sparse matrix with only direct correlations. Here, is a parameter that adjusts the strength of the sparsity. We then determined the B and that gave the best Q. Figures 5, 6 and 7 show the results of trend clustering. When compared with Fig. 1a, Fig. 5a reveals that GLIPCA achieved higher modularity than IPCA. This indicates that the graphical lasso algorithm is useful for extracting discriminative clusters. Specifically, clusters 1 and 2 represent early trends and late trends, respectively. Thus, we confirm that GLIPCA achieved (i). Moreover, Table 2(b) presents the results for the Shapiro-Wilk test. We confirm that GLIPCA achieved (ii) more successfully than IPCA. This indicates that GLIPCA detects not the usual trends based on seasonal events but unique trends caused by the influence of COVID-19. The graphical lasso algorithm assumes that each trend is generated from the unimodal Gaussian distribution. Therefore, trends with waveforms similar to such a distribution are likely to be detected. Note that it is clear that GLIPCA includes only direct correlations because the graphical lasso algorithm is adopted.
Figure 5

Results for GLIPCA. The first and second trend clusters are denoted by red and blue, respectively. B and were set to 6 and 0.015, yielding a Q of 0.229. (a) The obtained trend clusters. The size of each node is determined by degree to which the corresponding trend belongs to its clusters. (b) Time series signals for each cluster. We show the averages of all trends in each cluster. The vertical line indicates the day of the state-of-emergency declaration (April 7, 2020).

Figure 6

First trend cluster in Fig. 5a. The words corresponding to each trend are shown.

Figure 7

Second trend cluster in Fig. 5a. The words corresponding to each trend are shown.

Rates of trends within clusters, which are generated from the unimodal Gaussian distribution. We investigated whether the p values of the Shapiro–Wilk test for the trends are greater than the thresholds. (a) Results for IPCA. (b) Results for GLIPCA. Results for GLIPCA. The first and second trend clusters are denoted by red and blue, respectively. B and were set to 6 and 0.015, yielding a Q of 0.229. (a) The obtained trend clusters. The size of each node is determined by degree to which the corresponding trend belongs to its clusters. (b) Time series signals for each cluster. We show the averages of all trends in each cluster. The vertical line indicates the day of the state-of-emergency declaration (April 7, 2020). First trend cluster in Fig. 5a. The words corresponding to each trend are shown. Second trend cluster in Fig. 5a. The words corresponding to each trend are shown.

Discussion

Rates of early trend words and late trend words, as defined by Google Trends, within the clusters. (a) Results for IPCA. (b) Results for GLIPCA. We quantitatively discuss the results for (i) in “Performance verification”. Concretely, we used Google Trends (https://trends.google.co.jp/trends/) to classify each word as an early or a late trend word. Table 3 lists the rates of early and late trend words within the obtained clusters. This table shows that GLIPCA extracts trends that correlate with trends defined by Google Trends, i.e., public opinions. This suggests that GLIPCA enables us to gain an overview of timely news about COVID-19 and would support decision-making based on data. Subsequently, we observe details of cluster 1 (early trends) and cluster 2 (late trends) obtained by GLIPCA.
Table 3

Rates of early trend words and late trend words, as defined by Google Trends, within the clusters.

(a)(b)
Cluster 1Cluster 2Cluster 3Cluster 1Cluster 2
Early trend words0.6000.5630.706Early trend words0.8890.368
Late trend words0.4000.4380.294Late trend words0.1110.632

(a) Results for IPCA. (b) Results for GLIPCA.

First, we discuss cluster 1 obtained by GLIPCA, which is shown in Fig. 6. In cluster 1, the membership degrees of “events”, “Olympics”, and “five rings” are especially high (0.369, 0.247, and 0.242, respectively). The membership degrees are mathematically defined as each element of in (3), and represent degrees of each trend (word) belonging to the clusters. In Japanese, “Olympics” and “five rings” have the same meaning. These words may reflect the international argument about whether the Tokyo 2020 Summer Olympics should be held. Furthermore, we observed the domestic news about the death of Ken Shimura, a famous Japanese comedian who played the character “Bakatono”, on March 30, 2020. A report[31] found that the number of people that refrained from commuting increased after this time (from March 30, 2020, to April 5, 2020). Second, we discuss cluster 2 obtained by GLIPCA, which is shown in Fig. 7. In cluster 2, news related to the state-of-emergency declaration became prominent. Specifically, we observed requests for remaining at home and business suspension by the government. Similar to cluster 1, the infections and/or deaths of Japanese celebrities such as Kumiko Okae, Jun-ichi Ishida, Yuta Tomikawa, Tamao Akae, and Miki Sumiyoshi were observed. This suggests the tremendous social impact of the words and actions of such celebrities. In contrast to cluster 1, in cluster 2, medical and scientific topics about COVID-19 such as the polymerase chain reaction (PCR) test, Remdesivir drug, Avigan drug, and loss of taste and smell were observed. This may be because people’s attention moved from worry and fear about an unknown novel pneumonia to the necessity of medical care and a new lifestyle as well as the scientific characteristics of COVID-19. We explain how to use separation of early and late trends by GLIPCA for real-world applications. This separation allows us to understand dominant words for a certain time period from a flood of information changing day by day. Here, GLIPCA can prevent miscellaneous words generated based on indirect correlations from confusing people. Moreover, membership degrees of each word to early and late trend clusters give us ranking of words by the importance. These advantages help us objectively understand changes of people’s needs, public opinions, and government policies over time. As a result, GLIPCA would give us understanding about surrounding situations and suggestions for future actions on the basis of data.

Comparison between GLIPCA and existing time series clustering method

We discuss the applicability and advantages of GLIPCA by comparing GLIPCA with k-shape[32]. We notice that k-shape is the representative time series clustering method and widely used in latest studies[33-35]. GLIPCA’s strong ability to cluster certain data, i.e., to extract essential trends from miscellaneous tweets, is derived from the graphical lasso algorithm[22]. This can be applied to not only in the proposed GLIPCA but also in other time series clustering algorithms. The contributions of this study include showing the effectiveness of introducing the graphical lasso algorithm into trend clustering about COVID-19. We verify that the performance of k-shape[32] is improved by adopting the graphical lasso algorithm. We applied k-shape to all trends including indirect correlations. In contrast, k-shape with the graphical lasso algorithm was applied to only trends with direct correlations. Such trends were calculated using the graphical lasso algorithm as in GLIPCA. Note that k-shape needs to manually determine the number of clusters. For fair comparison, we set the number of clusters to 2 as in GLIPCA. Similarly, we set B and to 6 and 0.015 as in GLIPCA. Table 4 shows that the graphical lasso algorithm improves the ability of modeling trends using the unimodal Gaussian distributions. Moreover, Fig. 8 and Table 5 indicate that the graphical lasso algorithm improves the ability of separating trends into early and late ones. Comparison with Tables 3 and 5 shows that GLIPCA separates early and late trends more successfully than k-shape with the graphical lasso algorithm. This may be because GLIPCA utilizes not only existence of direct correlations but also their strength, unlike k-shape with the graphical lasso algorithm.
Table 4

Rates of trends within clusters, which are generated from the unimodal Gaussian distribution.

(a)(b)
Cluster 1Cluster 2Cluster 1Cluster 2
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-2}$$\end{document}p10-2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.0569 \pm 0.0179$$\end{document}0.0569±0.0179\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.136 \pm 0.0387$$\end{document}0.136±0.0387\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-2}$$\end{document}p10-2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.195 \pm 0.0308$$\end{document}0.195±0.0308\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.162 \pm 0.0234$$\end{document}0.162±0.0234
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-3}$$\end{document}p10-3\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.0944 \pm 0.0275$$\end{document}0.0944±0.0275\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.249 \pm 0.0685$$\end{document}0.249±0.0685\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-3}$$\end{document}p10-3\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.359 \pm 0.0475$$\end{document}0.359±0.0475\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.313 \pm 0.0441$$\end{document}0.313±0.0441
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-4}$$\end{document}p10-4\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.108 \pm 0.0330$$\end{document}0.108±0.0330\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.315 \pm 0.0891$$\end{document}0.315±0.0891\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$p \ge 10^{-4}$$\end{document}p10-4\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.497 \pm 0.0710$$\end{document}0.497±0.0710\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.367 \pm 0.0683$$\end{document}0.367±0.0683

We investigated whether the p values of the Shapiro–Wilk test for the trends are greater than the thresholds. The number of clusters and B were set to 2 and 6 as in the proposed GLIPCA. We performed experiments 10 times with different initialization values and show the average and standard deviation. (a) Results for k-shape[32]. (b) Results for k-shape[32] with the graphical lasso algorithm[22]. was set to 0.015 as in GLIPCA.

Figure 8

Time series signals for each cluster. The first and second trend clusters are denoted by red and blue, respectively. We show the averages of all trends in each cluster. The vertical line indicates the day of the state-of-emergency declaration (April 7, 2020). Although Tables 4 and 5 show the average and standard deviation over 10 trials, these figures show results for one trial. (a) Results for k-shape[32]. (b) Results for k-shape[32] with the graphical lasso algorithm[22].

Table 5

Rates of early trend words and late trend words, as defined by Google Trends, within the clusters.

(a)(b)
Cluster 1Cluster 2Cluster 1Cluster 2
Early trend words \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.628 \pm 0.0807$$\end{document}0.628±0.0807 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.551 \pm 0.120$$\end{document}0.551±0.120 Early trend words \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.448 \pm 0.0878$$\end{document}0.448±0.0878 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.760 \pm 0.0525$$\end{document}0.760±0.0525
Late trend words \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.372 \pm 0.0807$$\end{document}0.372±0.0807 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.449 \pm 0.120$$\end{document}0.449±0.120 Late trend words \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.552 \pm 0.0878$$\end{document}0.552±0.0878 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0.240 \pm 0.0525$$\end{document}0.240±0.0525

Experimental conditions are the same as in Table 4. (a) Results for k-shape[32]. (b) Results for k-shape[32] with the graphical lasso algorithm[22].

Note that GLIPCA also has advantages over other time series clustering methods. Specifically, because our method results in an eigenvalue problem, the solution is uniquely determined. On the contrary, as we can see the standard deviation in Tables 4 and 5, other methods such as k-shape[32] yield different results per trial because of initialization dependency. Our method also automatically determines the number of clusters. On the other hand, k-shape needs manual setting of the number of clusters. Although we could determine the number of clusters according to GLIPCA in this experiment, it is difficult to automatically determine the best number in general. These advantages of GLIPCA make parameter settings easy to determine, resulting in high reproducibility. Furthermore, it increases the interpretability or objectivity of trend clustering results for people’s decision-making. Rates of trends within clusters, which are generated from the unimodal Gaussian distribution. We investigated whether the p values of the Shapiro–Wilk test for the trends are greater than the thresholds. The number of clusters and B were set to 2 and 6 as in the proposed GLIPCA. We performed experiments 10 times with different initialization values and show the average and standard deviation. (a) Results for k-shape[32]. (b) Results for k-shape[32] with the graphical lasso algorithm[22]. was set to 0.015 as in GLIPCA. Time series signals for each cluster. The first and second trend clusters are denoted by red and blue, respectively. We show the averages of all trends in each cluster. The vertical line indicates the day of the state-of-emergency declaration (April 7, 2020). Although Tables 4 and 5 show the average and standard deviation over 10 trials, these figures show results for one trial. (a) Results for k-shape[32]. (b) Results for k-shape[32] with the graphical lasso algorithm[22]. Rates of early trend words and late trend words, as defined by Google Trends, within the clusters. Experimental conditions are the same as in Table 4. (a) Results for k-shape[32]. (b) Results for k-shape[32] with the graphical lasso algorithm[22]. We observe the frequencies of M words for N days. (a) The frequencies of the ith word for N days are denoted by . (b) For the jth day, the frequencies of M words are denoted by .

Methods

The proposed method for trend clustering using GLIPCA is explained. For each of the extracted M words (details are described in “Data used in this study”), we calculate a feature vector . This feature vector aligns the daily frequencies of each word. Concretely, the jth element of represents the frequency of the ith word on the jth day. Note that the ranges of the word frequencies depend on each day. To normalize the ranges, we used the empirical distribution function[36] on . In this way, we regard the frequencies of each word included in the daily tweets as time series signals. Moreover, we apply a moving average filter with a width of B to for smoothing. Hereafter, we represent the observation as (see Fig. 9).
Figure 9

We observe the frequencies of M words for N days. (a) The frequencies of the ith word for N days are denoted by . (b) For the jth day, the frequencies of M words are denoted by .

Construction of the partial correlation network

The proposed method models essential trends as unimodal Gaussian distributions with direct correlations. To quantify the types of correlations between trends, we use the graphical lasso algorithm[22]. This algorithm enables the construction of a partial correlation network that connects only the words with direct correlations. Specifically, the graphical lasso algorithm performs a sparse estimation of the precision matrix of using the sample covariance matrix as follows: For optimization, we use a block coordinate descent method[37]. The estimated precision matrix is a sparse matrix with only direct correlations. The partial correlation matrix can be obtained aswhere denotes the (i, j)-th element of . The partial correlation matrix can be considered as a network whose nodes are trends (words). Edges are undirected and have weights that are equivalent to the strengths of the direct correlations. Therefore, we refer to as a partial correlation network hereafter. We also consider trend clustering as community detection in the partial correlation network. In the graphical lasso algorithm in GLIPCA, we assume that is generated from a multivariate Gaussian distribution. Therefore, it is assumed that each follows a unimodal Gaussian distribution. Under this assumption, pairs with similar waveforms are connected by edges. In other words, we model the target trends as ones generated by unimodal Gaussian distributions and remove those trends that follow other distributions from the subsequent processing.

Trend clustering via GLIPCA

When using our method for decision-making to fight COVID-19, the clustering results should be stable and interpretable. To this aim, we adopt the HITS algorithm[23] as the base of the proposed method. The HITS algorithm is a representative community detection method. In fact, it is equivalent to PCA for a network structure[24]. Because its solution is uniquely determined, this algorithm is suitable for our aim. Specifically, the HITS algorithm calculates the eigenvectors of . The ith eigenvector corresponds to the ith community in the partial correlation network. More specifically, the jth element of the ith eigenvector represents the degree to which the jth trend (word) belongs to the ith community (cluster) in the network. Here, we derive GLIPCA, i.e., the improved variant of the HITS algorithm. The HITS algorithm extracts orthogonal bases but generates duplicated members of different clusters. This makes it difficult for us to interpret the meaning of each cluster. To overcome this difficulty, GLIPCA first extracts dense nodes corresponding to the first principal component. Concretely, we calculate the that satisfieswhere is the first principal component and is the corresponding eigenvector. Here, represents the membership degree of the ith trend (word) to the cluster corresponding to the first eigenvetcor. We can obtain the trend clustering result as the set of wordsHere, Th is a threshold to determine the cluster members and was set to 0 in “Results”. If |C| denotes the number of elements in the set) is less than , this indicates that meaningful clusters are no longer obtained. In “Results”, was set to 10. If , we do not perform the subsequent processing. If , GLIPCA reconstructs the partial correlation network so that the extracted nodes can be removed. Concretely, we update network as follows:where is the (i, j)-th element of  corresponding to the extracted nodes. Then, we obtain the subsequent cluster (set of trends) by performing (3) and (4). We note that the updated network does not include the words obtained as the previous cluster. By iteratively performing these procedures, we can obtain unduplicated clusters, unlike the original HITS algorithm (PCA). It is difficult to quantitatively evaluate the accuracy of trend clustering results. However, the fact that GLIPCA generates clusters without duplicated members can overcome this difficulty. Because GLIPCA is formulated as flat community detection in a network, a quality measure called modularity[25] can be used. The modularity Q is defined aswhereHere, is 1 if the nodes corresponding to and belong to the same cluster, and 0 otherwise. Moreover, is 1 if an edge between nodes corresponding to and in the partial correlation network exists, and 0 otherwise. The use of Q enables us to determine the best parameters of and B. By searching for the values of and B that yield the highest Q, trend clusters are uniquely determined.

IPCA algorithm

Finally, we explain IPCA, i.e., a reference method used in “Results”. IPCA is GLIPCA without the graphical lasso algorithm[22], as described in “Performance verification”. Specifically, IPCA calculates the k-nearest neighbor network[38] for trends . Concretely, for each trend , we select k trends from in descending order of cosine similarities to construct an unweighted network. We set k to 3 as in the study[27]. Note that the calculated network includes indirect correlations. Moreover, IPCA applies procedures shown in “Trend clustering via GLIPCA” to the calculated network for trend clustering. On the contrary, GLIPCA applies the same procedures to the partial correlation network with only direct correlations, as described above.
  7 in total

1.  Sparse inverse covariance estimation with the graphical lasso.

Authors:  Jerome Friedman; Trevor Hastie; Robert Tibshirani
Journal:  Biostatistics       Date:  2007-12-12       Impact factor: 5.899

2.  An "Infodemic": Leveraging High-Volume Twitter Data to Understand Early Public Sentiment for the Coronavirus Disease 2019 Outbreak.

Authors:  Richard J Medford; Sameh N Saleh; Andrew Sumarsono; Trish M Perl; Christoph U Lehmann
Journal:  Open Forum Infect Dis       Date:  2020-06-30       Impact factor: 3.835

3.  Social Media and Research Publication Activity During Early Stages of the COVID-19 Pandemic: Longitudinal Trend Analysis.

Authors:  Sonia L Taneja; Monica Passi; Sumona Bhattacharya; Samuel A Schueler; Sandeep Gurram; Christopher Koh
Journal:  J Med Internet Res       Date:  2021-06-17       Impact factor: 5.428

4.  k-Shape clustering for extracting macro-patterns in intracranial pressure signals.

Authors:  Isabel Martinez-Tejada; Casper Schwartz Riedel; Marianne Juhler; Morten Andresen; Jens E Wilhjelm
Journal:  Fluids Barriers CNS       Date:  2022-02-05

5.  The COVID-19 social media infodemic.

Authors:  Matteo Cinelli; Walter Quattrociocchi; Alessandro Galeazzi; Carlo Michele Valensise; Emanuele Brugnoli; Ana Lucia Schmidt; Paola Zola; Fabiana Zollo; Antonio Scala
Journal:  Sci Rep       Date:  2020-10-06       Impact factor: 4.379

6.  An exploratory study of COVID-19 misinformation on Twitter.

Authors:  Gautam Kishore Shahi; Anne Dirkson; Tim A Majchrzak
Journal:  Online Soc Netw Media       Date:  2021-02-19
  7 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.