Hypergraph Computation for Social Media Analysis
local graph
Chapter 9 — Hypergraph Computation for Social Media Analysis
Section titled “Chapter 9 — Hypergraph Computation for Social Media Analysis”Abstract
Section titled “Abstract”Social media, such as Twitter and Weibo, have grown rapidly over the past decade. Large numbers of active social media users produce a voluminous amount of data each day, from which important insights can be drawn. Several applications, such as recommender system and sentiment analysis, have been developed to help study the users’ intention and portrait. One common challenge faced by these social media applications is how to leverage the complex and multi-modal data on social networks and model the higher-order associations hidden in the data. Hypergraph computation has the huge potential to be used in such analysis. In this chapter, we introduce three typical applications of hypergraph computation, i.e., recommender system, sentiment analysis, and emotion recognition, from which hypergraph computation has shown great value on social media analysis.
9.1 Introduction
Section titled “9.1 Introduction”With the fast development of information technologies, social media data have increased rapidly. Social media platforms provide new ways to produce and receive content, especially user-generated content. Users can shop, watch movies, and instantly participate in the propagation, interaction, and sharing of news events on the Internet. Rich behavioral data on social media platforms are generated by great numbers of users every day, which support different downstream applications and provide insights for better understanding of users’ intention and portrait.
A typical social media analysis application is the so-called recommender system [1]. When listening to music, shopping, watching movies on the Internet, or looking for friends on social network services, users are likely to be drowned in an unprecedented amount of information. This is what we call “information overload.” To address this issue, recommender systems have been developed for decades. The main goal of recommender systems is to forecast how users would react to a product by better understanding their preferences based on the user’s historical interaction data, user profile, item attributes, context data, and other information. This could help predict whether the users like an item or not. For example, in the movie recommender system, the user profile may contain user ID, age, gender, income, marital status, and more. The movie (item) attributes’ information may include movie ID, name, genre, director, released time, actors, and more. Interactive data contain the movies which users have seen and even provided comments. The goal of the movie recommender system is to integrate this information to recommend movies that users might like.
Another popular social media analysis application is sentiment analysis [2]. The uses on social media platforms have generated a large amount of opinion data every moment in recent years, which helps to decode and mine users’ attitudes on specific topics. Researchers have begun to look at sentiment analysis of users in social media contexts. In economics, stock price fluctuations can be forecast to some extent by analyzing the sentiment of social media users. In politics, social media posts can reflect public opinions. Users’ sentiments may also affect their behaviors, for example, emotionally charged people are more likely to forward and repost tweets. Therefore, sentiment analysis plays an important role in social media analysis. However, sentiment analysis is challenging due to the multi-modality and complexity of social media data. For example, a tweet may include text, images, videos, and possibly more. Furthermore, there exist complex correlations among posts in various areas, such as the dimensions of time, location, and user preferences. The interaction among these users further increases the challenges in this task.
In addition to the posts on social media, physiological signals can also be used to analyze the emotion of people [3]. Compared with text, facial expressions, and other data, physiological signals are not easy to disguise and can better reflect real emotions of people. Therefore, emotion recognition based on physiological signals plays an important role in many applications such as clinical diagnosis, which also has played a significant role on social media analysis when these data are available. Physiological signals of different modalities contain complementary information representations of human emotions. It is of great significance to discover and utilize the correlations among these representations to improve the accuracy of emotion recognition.
From the above examples, it can be readily seen that one important issue of social media analysis is how to model complex correlations among data and to make use of the complementary information among multi-modal representations to better understand data. Hypergraphs have been widely used in social media computing in recent years because of their usefulness in complex data modeling. In the following, we discuss three applications of hypergraph computation in social media analysis: recommender system, sentiment analysis, and emotion recognition. In the recommender system, we discuss hypergraph-based collaborative filtering [4] and attribute inference. We then present sentiment prediction [5] and social event detection using hypergraph computation [6] for sentiment analysis. In the third section, we introduce two different hypergraph computation methods of emotion recognition using multi-modal physiological signals [7-9]. Part of the work introduced in this chapter has been published in [4-9].
9.2 Recommender System
Section titled “9.2 Recommender System”In recent years, the Internet has become an integral part of people’s daily life—shopping, watching the news, listening to music, etc., on the Internet. However, with the explosion of information, people find it is increasingly difficult to sift through the massive volumes of data on the Internet to access the needed information. For example, when a user wants to watch a movie online and access the movie site, the user is likely to drown in thousands of movies and cannot find the one in mind. This is called the “information overload” issue.
Recommender systems emerge under such circumstances. Recommender systems are a powerful tool for reducing the problem of information overload since they may assist users to find useful information and assist service providers to boost profits. Recommender systems have been used in many online systems, from general platforms including e-commerce, social media, and content sharing to vertical services such as movie, news, and music websites.
The core of the recommender system is to understand the users through their attribute information and historical interactions and then predict whether they would like one item. It is worth noticing that the user-side information, the item-side information, as well as the interaction data, play a vital role in this process. The user-side information, including gender, age, personality, etc., often reflects the users’ preference. For example, male users may be more likely to read military and political news, while female users may prefer fashion and entertainment news. The item-side information, such as the category, text description, image, etc., can characterize the attribute of the item. Such attribute information may suggest potential consumer groups. For instance, health supplements may be bought more often by the elderly, while electronics are more likely to be purchased by younger people. Historical interactions also involve potential users’ preferences, which are suggested by the assumption that “behavioral similar users may have similar preferences on items.” Figure 9.1 shows an example for recommender system based on similar patterns.
We can find from these examples that what recommender systems actually do is to distinguish similar users from different perspectives based on complex, multi-modal given data. Therefore, one key problem is how to model and learn the complex relationship between users and items. Recently, hypergraph computation has attracted much attention and has been applied to recommender systems to help solve this problem. The hypergraph can naturally integrate the user-side information, item-side information, as well as the interaction data, thanks to flexible hyperedges and especially hyperedge groups. Therefore, similar users/items can be connected in different areas. In this section, we discuss two examples of applying hypergraph computation in recommender system, i.e., collaborative filtering and attribute inference.
Fig. 9.1 An example of recommender system based on similar patterns
9.2.1 Collaborative Filtering
Section titled “9.2.1 Collaborative Filtering”In the past decades, collaborative filtering (CF), a crucial, popular recommendation technique, has been extensively used in various recommender systems. The fundamental assumption of CF is that consumers who engage in similar behaviors, for example, reading the same kind of news frequently, are likely to have similar tastes for items, such as games, movies, and commodities. A common CF-based solution goes through the following two steps: first, it uses historical interactions to identify similar users and items; and second, it makes suggestions for users based on the information acquired in the last step.
Since people and things have topological links that the network can describe, graph-based CF approaches have attracted a lot of interest in recent years. Although graph-based CF approaches have been explored for a long time and produced respectable performance, there are still certain restrictions. First, the high-order correlations in the user–item network are modeled and utilized insufficiently. For example, CF methods hope to find a group of behavior-similar users. Such associations between users are group-level (beyond pairwise) and cannot be well-captured by the graph structure since only pairwise correlations can be modeled in a graph. Second, when users and things are represented by a graph in graph-based approaches, there are no fundamental distinctions between them. When an item has many users connected to it, it is a popular item. In contrast, being connected to a variety of items does not necessarily mean that a user is well-liked.
Under these circumstances, more adaptable and appropriate user and item modeling is required. Thanks to its adaptable hyperedges, the hypergraph structure, as opposed to the graph structure, offers a more natural approach for representing such high-order and intricate relationships. In this subsection, we present a dual channel hypergraph collaborative filtering (DHCF) framework [4] to solve the aforementioned problems. In the following, we introduce how to model the user-item interactions and learn the high-order connectivity with dual hypergraphs.
Fig. 9.2 An example of hypergraph modeling for user-item network
(1) Hypergraph Modeling of High-Order Connectivity
Given a user-item network, the high-order connectivity is captured by some self-defined association rules. Based on these rules, several hyperedge groups can be constructed, which can capture higher-order correlations rather than pairwise relationships, e.g., by linking users who behave similarly but without direct connections. For example, we can connect the users who have purchased the same item with a hyperedge, as shown in Fig. 9.2. In addition to the interactions that are apparently visible in the observed data, these rules may also be thought of as a high-order perspective to describe the otherwise raw data. Here we introduce a way to capture the high-order connectivity with hypergraphs for users and items, separately.
User Hypergraph Construction We first define the k-order neighbors for items. If there is a path between item_a and item_b that consists of a series of adjacent vertices and has fewer users than k, then we can say item_a (item_b) is item_b (item_a)‘s k-order reachable neighbor in the user-item network.
We then define the k-order neighbor users for items. If there are direct paths between user_a and item_a and item_a is item_b’s k-order neighbor, then user_a is k-order neighbor for item_b.
The B_u^k(i) symbol represents the set of k-order B_u^k(i) users for item i. A hypergraph can be defined mathematically as a set family where each set indicates a hyperedge. As a result, a hypergraph may be built using the k-order neighbor users set of an object. By using the above definitions, the corresponding hyperedge group may be constructed as follows:
The -order accessible matrix of items is denoted by , which can be written as follows:
where the function determines the power of the matrix in question. The incidence matrix of the user–item network is represented by , where and are the numbers of users and items, respectively. Then, the incidence matrix of the hyperedge group has the following form:
The hypergraph can capture the overall high-order correlations among users by fusing multiple hyperedge groups that are constructed via -order reachable rule. Therefore, the can be written as
where is the concatenation operation, which is an example of hyperedge groups fusion function .
Item Hypergraph Construction Here the high-order connectivity for items is defined in a similar way. The -order accessible matrix of user is defined as
The incidence matrix can be written as
By assuming that we have hyperedge groups, the item’s hypergraph incidence matrices are similarly formulated as follows:
In this way, the high-order connectivity for both users and items is captured with a hypergraph. Figure 9.3 gives one example of the defined high-order connectivity for users [4]. Subsequently, two embedding look-up tables (E_u = [e_u1, …, e_uN] and E_i = [e_i1, …, e_iM]) are constructed to describe both users and items, which, together with the hypergraph structure, are prepared for later learning.
Fig. 9.3 The illustration of high-order connectivity for users
(2) High-Order Information Passing
When mixed high-order correlations have been obtained, the neighboring messages are aggregated using the high-order information passing technique, which can be expressed as
where HyConv(·, ·) can be any hypergraph convolution operation as that specified in HGNN (HGNNConv for short). Through information passing from high-order neighbors, the complex correlations between vertices have been encoded to the aggregated messages of users (M’_u) and items (M’_i), respectively. It should be noted that the high-order neighbor mentioned here is not a fixed concept of the direct interactions in user-item network, but an abstract description that can link the similar users/items in latent behavior-attribute space.
To provide an example of high-order information passing, we present the jump hypergraph convolution (JHyConv) in this part. Inspired by some previous work [10], the JHyConv operator creates the learned representations by concatenating a vertex’s current representation with its aggregated neighborhood representation. The JHyConv is written as
where all symbols follow existing notations consistently.
In contrast to conventional HGNNConv, the jump hypergraph convolution enables the model to take into account both its representation and aggregated high-order representations. The messages and are then used to jointly update and .
(3) Joint Information Updating
Section titled “(3) Joint Information Updating”The goal of the joint information updating is to extract information that is discriminatory for users and items, which is formulated by
where any learnable feed-forward neural network may be used for . Updated embeddings for users and items are termed as and , respectively. Here, a shared fully connected layer is applied.
(4) Overall DHCP Layer
Section titled “(4) Overall DHCP Layer”The two stages of DHCP framework are illustrated in Figs. 9.4 and 9.5, respectively. The high-order information passing and joint information updating constitute an integrated DHCP layer, which, thanks to its powerful hypergraph structure, can directly model and encode the high-order connectivity.
With the specified HyConv and JMU, a DHCP configuration can be formulated as follows:
where is a fully connected layer, is trainable parameters, and is the concatenation operation.
Fig. 9.4 The first stage of the DHCP framework
Fig. 9.5 The second stage of the DHCP framework
The matrix form of the embedding propagation on hypergraph can be written as follows:
where , and , are vertex degree and hyperedge degree matrices of user hypergraph and item hypergraph , respectively. and are the inputs for layer , while and are the outputs for layer .
With the introduced framework, the collaborative signals in the user–item network are modeled and captured, thus achieving better representation.
9.2.2 Attribute Inference
Section titled “9.2.2 Attribute Inference”A CF-based recommender system has the cold-start problem when there is a lack of historical behavior data of users, making it challenging to personalize recommendations to individual users. Making use of user and item attribute data is a potential answer to this issue. The attribute information of users usually includes gender, age, occupation, etc. The attribute information of an item can be the genre of a movie or music, or the classification of an item on an e-commerce website, etc. According to the principle of CF, similar users will choose similar items, and the attribute information can then be used to establish the similarity between users or items. The addition of attribute information can build up the association between users and items in the absence of user historical behaviors, which can well alleviate the cold-start problem. In other words, attribute information can assist in collaborative filtering.
However, attribute information is often insufficient, as many people are reluctant to provide true personal information. Therefore, attribute inference becomes an important task. It is mutually reinforcing with the recommendation task, as high-quality attributes can help better with collaborative filtering, while more accurate user behavior can also help infer attributes of users and items.
In this section, we discuss a framework of multi-task learning that combines the attribute inference task with the recommendation task. The framework first utilizes multi-channel hypergraph CF for representation learning, performs two downstream tasks simultaneously, and lastly optimizes the model by downstream tasks. The pipeline of the framework is presented in Fig. 9.6.
Fig. 9.6 The pipeline of multi-channel hypergraph neural networks for recommendation and attribute inference
(1) Multi-Channel Hypergraph Collaborative Filtering
Multi-Channel Hypergraph Construction In order to model the higher-order interactions and attributes between users and items, two hypergraphs, named Interaction Hypergraph and Attribute Hypergraph, are constructed and denoted as I and A for simplicity.
The structure of I is generated through the interaction between users and items. The implicit interaction matrix is represented as , where and denote user and item numbers, respectively. With the -order reachable rule introduced in the previous subsection, we generate the hyperedges by connecting the user’s and item’s 1-order reachable users and items. The incidence matrix can be expressed as
It is obvious that and .
The structure of A is generated through the attribute information of users and items. The user and item binary attribute matrices are denoted by and , where and denote user and item attribute numbers, respectively.
Attributes represent hyperedges, and vertices with the same attributes are connected by hyperedges. The incidence matrix can be formulated as
Here we can have and .
Multi-Channel Hypergraph Learning When the hypergraph structure has been generated, the multi-channel hypergraph convolution is performed separately. It can be written as
where denotes the vertex embeddings after -layer convolution, and it should be replaced by and for user and item embeddings on channel in our case. To bypass the over-smoothing problem, the results obtained from -layer propagation are averaged as below:
Moreover, to aggregate information from different channels, a channel attention mechanism is leveraged to generate the comprehensive user and item embeddings. It is defined as
where is the trainable parameter, and denotes the embedding dimension. The comprehensive representations can be formulated as
where . The graph convolution is leveraged in order to further exploit the interaction data between users and items. It can be formulated as
where is the number of graph convolution layers.
(2) Recommendation Task and Attribute Inference Task
Section titled “(2) Recommendation Task and Attribute Inference Task”Following up the representation learning through multi-channel hypergraph collaborative filtering, the two downstream tasks can be performed simultaneously.
First, based on the idea of matrix factorization, the user and item interaction can be predicted as
Next, we consider the nature of the relationship between attributes and vertices, and a subtle method of attribute inference is discussed. Also inspired by matrix factorization, the attribute matrix can be regarded as the product of two low-rank matrices. It can be formulated as
where and are the user and item attribute representations. The use of matrix factorization for attribute inference is very reasonable because attributes are influenced by the properties of vertices and the properties of attribute themselves; one cannot be presented without the other. In conclusion, the benefit of processing two distinct tasks concurrently with this method is that it permits information sharing while allowing a high degree of autonomy between the two training activities.
(3) Joint Optimization
Section titled “(3) Joint Optimization”A paired loss called Bayesian Personalized Ranking (BPR) promotes observable behavior predictions to outperform unobserved ones, and it is utilized to optimize the recommendation task. It can be written as
where represents the model parameters and represents the probability that user_i is interested in item_j. The sigmoid function is denoted as . Next, the attribute inference task can be regarded as an attribute categories classification problem. The cross-entropy loss is then leveraged for optimizing the attribute inference task. It can be written as
where is the inference score of user on user attribute , and is the inference score of item on item attribute .
Finally, the sum of the losses from the two tasks is the overall loss. It can be written as
where is the hyperparameter for balancing the two different losses.
Although in this section we only discuss two instances, i.e., collaborative filtering and attribute inference, applications of hypergraph computation in recommender system do not end there. In collaborative filtering, only the historical interaction data are utilized, and the hypergraph is constructed upon the similarity of users/items in behavior space. In attribute inference, the attribute information of users and items is further utilized to solve the cold-start problem. In this case, the hypergraph is constructed based on both behaviors and attributes. In addition to the behavior and attribute data, the context data, such as the time, location, weather, etc., can also be integrated, and hypergraph can also be applied to model the complex correlations among these data. Also, the user-item network sometimes can be multiplex, that is, there may exist various kinds of interactions between users and items, e.g., a user may view, click, and purchase an item. How to adopt the hypergraph to model such multiplex connections also remains to be explored.
9.3 Sentiment Analysis
Section titled “9.3 Sentiment Analysis”The emergence of Twitter and Sina Weibo has given social media users a place to share their thoughts and emotions about particular occurrences. At the same time, this information is rapidly and widely disseminated throughout social networks. Therefore, how to analyze the information in social media becomes an important issue.
First, sentiment dimension, event monitoring, social network analysis, and business advice all have numerous potential applications for microblog sentiment research. By analyzing the sentiment of massive data, we can get the emotional attitude of netizens toward relevant events. Second, real-time multimedia data may travel quickly and widely throughout the social network in terms of the temporal dimension, having a significant impact on society. Therefore, efficient real-time temporal detection can help government organizations with macroeconomic control and marketing management at huge corporations.
There are multi-modal data among Twitter data, including text, images, emojis, videos, etc. The higher-order association between different modalities can be well modeled by hypergraphs to extract sentiment information. In the following subsections, we provide two examples to analyze the sentiment of microblog data in two dimensions using hypergraphs, respectively, [5, 6].
9.3.1 Sentiment Prediction
Section titled “9.3.1 Sentiment Prediction”Predicting multi-modal sentiment of tweets is not an easy task. Most sentiment analysis models focus on textual or visual channels only. However, in human emotional perception, different moods have their own characteristics so that sentiment analysis should be based on multiple perspectives. Even with multi-channel data, it is uncertain whether the emotions of different channels are related. Moreover, there are cases where some channels are missing. To address these problems, a two-layer multi-modal hypergraph learning framework [5] is introduced to create a multi-modal sentiment prediction.
This framework’s objective is to forecast the sentiment of provided multi-modal microblog data (e.g., a Weibo tweet) that include text, visuals, and emoticons. The bag-of-textual-words feature is extracted for textual modality. The visual modality feature is extracted from the -th image. Furthermore, an emoticon dictionary is defined for the emotical modality, which forms the bag-of-emoticon-words feature . A corresponding sentiment score is assigned to , respectively. Consequently, the tweet can be denoted as . Through investigating and simultaneously, the sentiment of can be predicted.
(1) Multi-Modal Hypergraph Learning
Section titled “(1) Multi-Modal Hypergraph Learning”To create the incidence matrix of the hypergraph, the correlation between each tweet and the “centroid” tweets of various modalities is first computed. Each tweet is treated as a vertex and the hyperedges connecting its nearest neighbors in each modality. It is important to note that each vertex can be thought of as a centroid. The incidence matrix can be defined as
where is the correlation between and . is the distance in Euclidean terms between and the centroid vertex of . is the average pairwise distance for the corresponding modality, and the parameter is empirically set to modify the normalization of the tweet relevance. Each hyperedge’s weight starts out at 1.
In multi-modal hypergraph learning (MHG) [5], guided inference is used to perform hypergraph learning. It calculates the relevance scores of tweets with varying attitudes by iteratively updating the relevance score vector and the hyperedge weights . It accomplishes the aforementioned objectives by optimizing the loss functions:
s.t. , where is the learned relevance score, is a regularizer built on the Hypergraph Normalized Laplacian, denotes the empirical loss, and is the regularizer. can be formulated as
where denotes vertex degree and denotes hyperedge degree. Let and be the hypergraph Laplacian. The diagonal matrices of and are represented as and , respectively. The normalized cost function can be expressed as
The two parameters and are optimized iteratively using the following two functions:
s.t. .
As shown above, MHG simulates the sample–sample relation for the purpose of hypergraph construction. The properties of modalities and their relevance to one another, however, are not fully utilized.
(2) Dual-Layer Multi-Modal Hypergraph Learning
Dual-layer multi-modal hypergraph learning is composed of 2 hypergraph layers, for tweet-level hypergraph and for feature-level hypergraph, respectively.
To allow multi-modal features to be adopted more explicitly and to directly construct multi-modal hypergraphs for modal correlation, each hypergraph layer of dual-layer multi-modal hypergraph learning uses relations between vertex and hyperedge to represent sample features or relations between features and samples, rather than relations between samples in MHG.
The sentiment label vector of tweets and the sentiment label vector of multi-modal sentiment words are denoted, respectively, by and in distinct hypergraph layers. Therefore, in two hypergraph layers, and started out originally as vectors representing the relevance scores of tweets and multi-modal features/words, respectively. It is said that can be regarded as the confidence ratings of the sentiment labels , which correspond to in the hypergraph of tweet level. Two hypergraph layers are connected, and the multi-modal relevance of features is transferred to the tweet-level hypergraph in order to help predict tweet sentiment.
The probabilistic incidence matrix of a hypergraph is written as
where denotes either 1 or 2, and the same applies below.
The following loss function can be optimized to represent the learning process:
where and are regularizers based on the normalized Laplacian on hypergraph, and are the empirical losses, and and are the regularizers on the hyperedge weights. In this scenario, empirical loss is represented as and , and and are the regularizers on the hyperedge weights. The normalized Laplacian on hypergraph regularizers and are further described as follows:
The loss function then has the following form in terms of , , , and :
To summarize, we introduced a two-layer multi-modal hypergraph learning framework that models correlations among visual, textual, and emoji modalities while allowing input from missing modalities to achieve document sentiment prediction for multi-modal tweets.
9.3.2 Social Event Detection
Section titled “9.3.2 Social Event Detection”The expanding visual content of microblogs and the inter-connectedness of diverse data have received less attention from existing methods, while social event identification as a crucial social media analysis problem has received much attention in recent years. Figure 9.7 presents an example of real-time social event. In social media platforms, event detection is a difficult issue due to the distinctiveness of social media data for the following reasons. First, it is required to explore a set of posts that are significantly related to one another and discuss a common issue because social media postings are noisy and do not include enough substantial material to provide full information. Second, social media posts can come in a variety of multimedia formats and include information such as images, timestamps, locations, user preferences, and social connections in addition to text. Finally, social posts are real time, and these large scale, real-time data make social events difficult to detect. Hypergraph, due to its natural structural advantages, can establish higher-order correlations between data of different posts, different modalities, and different times, thus enabling real-time event detection. In this subsection, we introduce a hypergraph-based method for real-time social event detection. The overall framework is shown in Fig. 9.8.
Fig. 9.7 An example of a real-time social event. (a) Conversational text. (b) Heterogeneous content. (c) Continuously growing real-time data. Parts of this figure are from [6]
Fig. 9.8 Overall framework of the real-time social event detection. This figure is from [6]
(1) Microblog Clique Generation
Microblog clique (MC), which consists of a collection of closely connected tweets, is constructed as a basic unit rather than a single microblog in order to make up for the lack of information. These microblogs cover the same subject in short time.
A hypergraph is used to describe the relationship between heterogeneous data of various tweets. A set of microblogs is denoted as . The constructed hypergraph , where a vertex represents a microblog and a hyperedge represents a subset of microblogs. The hyperedge weight is denoted as , and its diagonal matrix is formed as . The similarity between two microblogs and is first determined using the following heterogeneous features in order to generate hyperedges.
The cosine similarity function is used for computing textual and visual similarities. The Haversine formula is used for measuring the geographical similarity. The pairwise temporal similarity is calculated by . The timestamps of and are and , while denotes a normalized constant. Measures of the pairwise social similarity are
where is the owner of .
Two hyperedges are created by connecting each microblog with its neighbors as per geographic distance and middle position of location and time information. For each microblog , the top nearest microblogs in terms of textual information and visual content are chosen. Finally, all microblogs of the same user are connected to generate a hyperedge. The incidence matrix, vertex degree, and edge degree of the hypergraph are defined in the same way as above.
Next, MC is generated by dividing microblogs into groups of the same topic through the hypergraph cut approach. Assume and are the results of through the two-way partition, and the hypergraph cut can be described as
The definition of the two-way normalized partition is
where the volume of is denoted by . A real-valued optimization work can be relaxed from the normalized cut issue. By choosing the eigenvectors corresponding to the smallest non-zero eigenvalues of the hypergraph Laplacian, , and the solution can be found. The input tweets are split into two groups, and then a bidirectional normalized partitioning is carried out recursively in each new set until the best partitioning outcome is attained. Based on the representation capacity of the various partitions as achieved by Bayesian Information Criteria (BIC), this best partitioning result is determined. BIC is used to choose the optimal hypergraph partitioning results. For , with as a set of partitions, the BIC score is determined by
where represents the parameter number and the microblog features’ dimension, is the microblogs number, and is the count of corresponding partition of .
Following the division of the provided microblogs into a group of MCs, the MCs offer more sensible information by examining a collection of strongly correlated microblogs rather than individual microblogs, which can express more meaningful and pertinent material in the succeeding event detection technique.
(2) Detection of Social Events in Real Time
Section titled “(2) Detection of Social Events in Real Time”Event Detection by Using MC For MC = and corresponding microblogs , there are two observations as follows. First off, inside a single MC, and microblogs frequently refer to the same event (MC cues). Second, MCs with similar features tend to be associated with the same event (smoothness cues).
If a microblog is integrated into an MC, it is connected to the MC to impose MC cues. In order to enforce smoothness cues, pairwise MCs that are close to one another in feature space are connected. Formally, a bipartite graph is used to express MC and M, and two vertex sets are expressed as and , where , , with and vertices, respectively. The definition of the across-affinity matrix between and is as follows:
where is the distance between two MCs, and and are the two parameters that balance the inner-MC correlation and the between-MC smoothness.
The bipartite graph and the necessary number of partitions are used as the basis for the transfer cut method to partition MCs. First, assume contains only vertices of the MC. is the graph Laplacian of , where , . Assume that are the smallest eigenpairs of . They can be calculated as
where is the corresponding transition probability matrix from to .
Second, are K-spectra clustered and the best is selected by BIC. Assume that is the count of existing events. It is started at 0. Furthermore, suppose that the biggest number for incoming data is not larger than , where the threshold is used to decide the minimum microblog number. Therefore, the bipartite graph is segmented times, and the segmentation result is selected as the event detection result using BIC. Suppose are the detected events in the last process. The key MCs are found by MC selection for each , and the number of each MC is measured in terms of importance. Finally, the top MCs are selected to describe each .
Detection of Incremental Social Events The real-time detection method is defined as follows. Assume that event detection is run at time , with generated MCs, i.e., , detected events , and noisy data. New data arrive continuously from moment , and it can be processed a short time gap . In other words, event detection can be run at every , where equals to 1, 2, . In this instance, is used as an example, and stands for newly arriving microblogs. The two steps that make up event detection are MC generation and event partition.
To generate new MCs for previous time periods, were used as known samples. and are used to construct the incremental microblog hypergraph . However, it is challenging because there is no clear distinction between a microblog collection and a microblog. No more than representative microblogs get to be chosen since only the three most representative tweets for each MC are chosen, depending on the amount of retweets and comments. To create the incremental microblog hypergraph , they are merged with . New MCs () are then created from these data using the hypergraph partition. Based on the representative microblogs, and are combined together. In this way, new MCs () are constructed and utilized for event detection.
For detection in real time, the past events are used as known data in the time period. The corresponding representative MCs in and the generated incremental are used to jointly construct the next graph. The difference is that for the identified events, the distance between MCs is set to 0 as follows:
where . Therefore, according to the BIC, the bipartite graph can be partitioned into existing events and new events.
There are still several challenging problems in hypergraph computation for sentiment analysis tasks that can be continued for more research. First, for the sentiment recognition task, the case of conflicting multi-modal information can be considered. Second, further consideration can be given to the information that may be hidden in broken posts and users for the detection task on real-time social events. These tasks take into account the positive or negative associations among multiple entities, where the hypergraph is suitable for modeling such correlations.
9.4 Emotion Recognition
Section titled “9.4 Emotion Recognition”Emotion recognition has gained wide recognition in neuroscience and psychology research [11], and artificial intelligence offers more reliable and accurate computational models for the identification and study of emotions. It has also been extensively applied in real life [12], especially in human-computer interaction, motor vehicle driving assistance training, emotion classification in movies, and other pertinent similar areas [13].
Emotion recognition has three main goals [14]: first, to enable the understanding, inference, and recognition of human emotions by intelligent systems; second, to make it possible for systems to make human-like expressions of emotion in response to stimuli (e.g., conversational agents or robots); and third, to make it possible for intelligent systems to actually perceive emotions. Over the past three decades, researchers from several disciplines have pursued these three goals in different ways, with the method of recognizing emotions as the central issue of research. Although it has been studied for many years, progress is still being made. The reality is that there are various ways for people to convey their emotions, including language, gestures, facial expressions, and physiological signs [15]. Finding a suitable method to identify and analyze human emotions may be a long-term problem. Human volition determines the first three modalities, and there are substantial individual variances [16]. Because of these, approaches based on these three modalities have limitations in terms of accuracy and reliability. In contrast, physiological signals cannot be readily blocked or concealed and are simultaneously governed by the body’s neurological and hormonal systems. They are also often independent of human will. Therefore, physiological signals rather than visual or auditory cues may offer more accurate information about emotions [17]. A multitude of environmental and psychological elements, including interests and personality, can have an impact on human emotion, which is a highly subjective phenomenon.
Nonetheless, because of the following factors, recognizing emotions through physiological signals is still a work in progress:
-
Existence of the emotional gap and ambiguity in the concept of emotions [18]
-
Potential associations between modality and subject [19]
- Specificity of the stimulus response (SR) and individual response (IR) [20]
- Noise and incomplete data in the data [21]
- Multifactorial influences [22]
In this case, the hypergraph structure allows the establishment of complex correlations that can simultaneously take into account: (a) correlations between EEG, EOG, and EMG signals, which are signals from several modalities; (b) correlations between subjects; and (c) patterns of physiological signal changes in a single subject in response to various stimuli. Two methods are presented for emotion prediction using hypergraph computation, including multi-modal vertex-weighted hypergraph learning (MVHL) [7, 8] and multi-hypergraph neural networks (MHGNN) [9].
(1) Multi-Modal Vertex-Weighted Hypergraph Learning
Hypergraphs have been used to depict the link between physiological data and personality [7]. In this way, MVHL introduces a multi-modal vertex-weighted hypergraph learning method for personalized emotion recognition (PER) that takes into account vertex weights, hyperedge weights, and modal weights. Each vertex in this method is a composite tuple (subject, stimulus). A hypergraph structure is used to develop personality correlations between various subjects and physiological correlations between the corresponding stimuli. Each vertex and hyperedge, as well as the weights of the various hypergraphs, are automatically learned. Hyperedge weights are used to create the optimal representation, while vertex weights are used to describe the impact of various samples and patterns in the learning process. The calculated factors—known as sentiment relevance—are employed for sentiment identification and are learned on a multi-modal vertex-weighted hypergraph. The fact that the vertices are composite with incorporated data from various subjects allows MVHL to identify numerous subjects’ emotions at once.
The framework of this model is shown as follows. First, a composite tuple of vertices (subjects, stimuli) is formed using the subjects and the stimuli used to elicit the subjects’ emotions. Second, multi-modal hyperborders are constructed to form personality associations among different subjects and physiological associations among the corresponding stimuli. Finally, after joint learning of vertex-weighted multi-modal multi-task hypergraphs, PER results can be obtained.
Hypergraph Construction
This model constructs the hypergraph structure by pairwise similarity between different samples. The pairwise similarity of and ‘s personalities is measured by the cosine function:
where ‘s personality vector is denoted by . The centroid is determined by selecting one vertex at a time, and a hyperedge is built to link the centroid to its nearest neighbors in the existing representation space. It should be noted that personified hyperedges are built using both intra- and inter-subject viewpoints. A hyperedge links all the vertices from the same subject together. Additionally, based on personality similarities, the closest K subjects for each subject are chosen, and all of their vertices are connected by creating another hyperedge.
Assume that the constructed hypergraphs are , where and denote the vertex set and hyperedge set, respectively, and is the diagonal hyperedge weight matrix of the m-th hypergraph (m = 1, 2, …, M). The incidence matrix can be computed as
The different weights of the vertices are learned to evaluate their value and contribution to the learning process. It is distinct from the classic hypergraph learning method, which simply views all the vertices equally. Assume is the diagonal matrix of vertex weight. The vertex degree and the hyperedge degree are defined as and . Accordingly, the two diagonal matrices are defined as and .
Multi-Modal Vertex-Weighted Hypergraph Learning The goal is to simultaneously study the correlations among the included physiological signals and the personality relations across various subjects. The framework of the multi-modal vertex-weighted hypergraph learning is presented in Fig. 9.9. Given N subjects and the involved stimuli for , we assume that the c-th emotion category’s compound vertices and associated labels are and , where .
The count of emotion categories is denoted as . The estimated values of all stimuli associated to the specified users of the c-th emotion category, also known as emotion relevance, are given by . , are denoted by
Fig. 9.9 Overall framework of the multi-modal vertex-weighted hypergraph learning. This figure is from [7]
Let , , where the two trade-off parameters are and . The hypergraph structure’s regularizer is defined as follows:
where . Then, can be seen as the fused hypergraph Laplacian with vertex weighting.
(2) Multi-Hypergraph Neural Networks
Multi-hypergraph neural network (MHGNN) uses hypergraph to build complex correlations and identify emotions by physiological signals, which can take into account: (a) correlations between signals of various modalities, i.e., z EEG, EOG, and EMG; (b) relationships between subjects; and (c) patterns of physiological signal changes in a single person in response to various stimuli. This model groups each given subject and stimuli to a complex tuple, respectively. Assuming it is a vertex in the hypergraph, it would generate a hypergraph for each pattern with its corresponding physiological signal, making use of the term hyperedge to express the correlations among the physiological signals in response to various stimuli. The vertices are then categorized within the MHGNN framework in accordance with the intricate relationships in the data. As a result, the categorization of vertices in various hypergraphs can be equated to the recognition of emotions. Different hypergraph neural networks are combined using a fully connected network. The relative relevance of various multi-modal physiological signals is also taken into account of this network when classifying emotions. This framework’s primary benefit is its ability to combine multi-modal data and to represent three intricate relationships of the data. Figure 9.10 shows the pipeline of the MHGNN framework.
Modeling of Multi-Hypergraph
Subject correlation is formulated using a multi-hypergraph structure given a number of features from various physiological inputs. Each modality is represented by a separate hypergraph. The connections between the vertices of the hypergraph are constructed using hyperedges, and each vertex on the hypergraph represents a topic to be learned with a description of its corresponding stimuli. The k-NN method is used to generate hypergraphs, where k is a hyperparameter for assessing the connectivity. The hyperedges are created after all vertices have acted as the centroid. Each vertex gets chosen as a centroid once. We assume that is defined as a training set with modality i’s features X(i) = x1(i),x2(i),…,xn(i), where vector xj(i) is the feature of the j-th training sample from modality i and Sj denotes the j-th training sample. According to the KNN approach, the vertex vp shares the hyperedge with the k nearest vertices above and around it. Hyperedge ep is centered on the vertex vp. The Euclidean distance between the corresponding feature vectors represents the separation between two vertices. The correlation between vertex p and vertex q is represented by the matrix element hp,q. As an exponential representation of Euclidean distance, the correlation can be described as h(p,q) = {exp(-d(xp,i, xq(i))2)/d2), q ∈ up , 0, q ∉ up where d(xp,i, xq(i)) stands for the feature space Euclidean distance between samples p and q. The weight matrix W(i) is set to be an identity matrix in our model because we lack prior knowledge regarding the significance of hyperedges. As a result, the incident matrix H(i) contains all the data for the hypergraph.
Fig. 9.10 The pipeline of multi-hypergraph neural networks
An incidence matrix H(i) is generated for each modality. Finally, m incident matrices can be generated for m modalities.
Multi-Hypergraph Convolutional Networks The creation of subject representation and subsequent emotion classification are crucial steps in emotion recognition. Deep neural networks have made significant progress in the representation of data in the last few years. However, given the intricacy of data correlations, it is still work in progress. In order to represent data and recognize emotions, a multi-hypergraph convolutional network framework that can simultaneously take into account several physiological inputs from different people is developed.
In a hypergraph convolutional network, the spatial convolution is viewed from the perspective of graph spectral theory as a spectral matrix product, and the hypergraph Laplacian is leveraged to convert it from the spatial domain to the spectral domain. can be formulated as , where and are the matrices of hyperedge degree and vertex degree, respectively. In this case, it is possible to formulate a hypergraph convolutional layer for each modality as
where is the learnable parameter of the -th layer in -th hypergraph neural network (HGNN) and is the activation function. When using hypergraph convolution, the parameters for are updated by backpropagating the feature . Hypergraph structure-related parameters, such as , are pre-computed and are not trainable in this procedure. The symbol is used to represent these parameters for simplification, and the hypergraph convolutional layer can be rewritten as
It is important to note that the formulation of graph convolution and hypergraph convolution is similar. The graph convolution is shown as follows:
Hyperedges built from characteristics of several modalities are concatenated in traditional models of single hypergraph neural networks. However, because of their distinct sizes and dimensions, hyperedges have been known of being inconsistent. Additionally, there could be some variations in the perspectives from which various modalities approach the work. Some could be crucial, while others might not be just as important. In a single hypergraph model with identical weights, such discrepancies are not possible to see. However, simply concatenating distinct hyperedges makes it difficult to specifically weight them. A multi-hypergraph neural network structure is introduced to integrate multiple hypergraph structures in order to address the issue.
To calculate intermediate representations for each modality, hypergraph neural network models are built using hypergraphs for modalities. The -layer -th hypergraph neural network may be expressed as follows:
The final output is then generated using the m output of intermediate representations by a fully connected layer. As a fusion layer, the layer dynamically combines the outcomes of hypergraph convolutions and weights them corresponding to their contributions. A softmax layer serves as the classifier. In layers of networks with diverse hypergraph structures, modality characteristics of various sizes and dimensions are learned. Finally, they are weighted automatically and merged into the fusion layer.
W_f and b_f stand for the weights and bias of the fusion layer, respectively. The model can be expressed as follows:
MHGNN(X^(1), X^(2), …, X^(m)) = softmax(W_f W_m [HGNN(H^(1), X^(1)),
HGNN(H^(2), X^(2)), …,
HGNN(H^(m), X^(m))] + b_f), where the matrix of modality weights is denoted by W_m = Diag(W^(1), W^(2), …, W^(m)).
The patterns were discovered to represent a pair of interconnected and mutually reinforcing interdisciplinary concerns by examining the data findings making use of the network structure of the hypergraph. Another intriguing occurrence in the experiments was the variations in each subject’s physiological characteristics. Therefore, what should be considered is: (a) collect data according to the requirements of real application scenarios; (b) pay attention to individual differences; (c) analyze correlations between subjects of training and test samples; and (d) add more information such as action recognition information. Hypergraphs are considered as a good tool to discover biological patterns among them.
9.5 Summary
Section titled “9.5 Summary”In this chapter, to illustrate the paradigm of using hypergraph computation in social media analysis, we overview three applications, i.e., recommender system, sentiment analysis, and emotion recognition. In recommender system, we discuss two specific applications: collaborative filtering and attribute inference. Collaborative filtering only considers the raw user–item network, and hypergraph is used to model the inter- and intra-domain (user or item) correlations in behavior space. Attribute inference further takes the attribute information into consideration in addition to the historical interactions. Besides, context information such as time and location can also be integrated, which is left to explore. In sentiment analysis, sentiment prediction and social event detection are covered. The former task mainly concerns the sentiment conveyed by each multi-modal tweet, while the latter one focuses on exploring a group of postings that are closely connected and cover the same subjects.
Furthermore, recognizing the emotion of people through multi-modal physiological signals is also presented. There are still many social media analysis applications worth exploring with hypergraph computation. For example, heterogeneous correlations widely exist in the social media context. How to utilize the complementary information among these heterogeneous associations with hypergraph computation has become a key issue. Besides, social media data are always dynamic rather than static, and the newcoming data may have different distributions compared with the existing data. Under such circumstances, the static hypergraph computation method cannot be directly applied, and the dynamic hypergraph computation paradigm is deserved to be investigated to solve this complex issue.
References
Section titled “References”-
S. Zhang, L. Yao, A. Sun, Y. Tay, Deep learning based recommender system: a survey and new perspectives. ACM Comput. Surv. 52(1), 1–38 (2019)
-
L. Zhang, S. Wang, B. Liu, Deep learning for sentiment analysis: a survey. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 8(4), 1–25 (2018)
-
L. Shu, J. Xie, M. Yang, Z. Li, Z. Li, D. Liao, X. Xu, X. Yang, A review of emotion recognition using physiological signals. Sensors 18(7), 2074 (2018)
-
S. Ji, Y. Feng, R. Ji, X. Zhao, W. Tang, Y. Gao, Dual channel hypergraph collaborative filtering, in Proceedings of the 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (2020), pp. 2020–2029
-
R. Ji, F. Chen, L. Cao, Y. Gao, Cross-modality microblog sentiment prediction via bi-layer multimodal hypergraph learning. IEEE Trans. Multimedia. 21(4), 1062–1075 (2019)
-
S. Zhao, Y. Gao, G. Ding, T.-S. Chua, Real-time multimedia social event detection in microblog. IEEE Trans. Cybern. 48(11), 3218–3231 (2018)
-
S. Zhao, G. Ding, J. Han, Y. Gao, Personality-aware personalized emotion recognition from physiological signals, in Proceedings of the 27th International Joint Conference on Artificial Intelligence (2018), pp. 1660–1667
-
S. Zhao, A. Gholaminejad, G. Ding, Y. Gao, J. Han, K. Keutzer, Personalized emotion recognition by personality-aware high-order learning of physiological signals. ACM Trans. Multimedia Comput. Commun. Appl. 15(1s), 1–18 (2019)
-
J. Zhu, Y. Wei, Y. Feng, X. Zhao, Y. Gao, Physiological signals-based emotion recognition via high-order correlation learning. ACM Trans. Multimedia Comput. Commun. Appl. 15(3s), 1–18 (2019)
-
W.L. Hamilton, Z. Ying, J. Leskovec, Inductive representation learning on large graphs, in Proceedings of the Advances in Neural Information Processing Systems (2017), pp. 1024–1034
-
E. Cambria, Affective computing and sentiment analysis. IEEE Intell. Syst. 31(2), 102–107 (2016)
-
S. Zhao, X. Zhao, G. Ding, K. Keutzer, EmotionGAN: Unsupervised domain adaptation for learning discrete probability distributions of image emotions, in Proceedings of the 26th ACM International Conference on Multimedia (2018), pp.1319–1327.
-
S. Poria, E. Cambria, R. Bajpai, A. Hussain, A review of affective computing: from unimodal analysis to multimodal fusion. Inf. Fusion. 37, 98–125 (2017)
-
R. Calvo, S. D’Mello, Affect detection: An interdisciplinary review of models, methods, and their applications. IEEE Trans. Affective Comput. 1(1), 18–37 (2010)
-
S. D’mello, J. Kory, A review and meta-analysis of multimodal affect detection systems. ACM Comput. Surv. 47(3), 1–36 (2015)
-
M. Soleymani, S. Asghari-Esfeden, Y. Fu, M. Pantic, Analysis of EEG signals and facial expressions for continuous emotion detection. IEEE Trans. Affect. Comput. 7(1), 17–28 (2016)
-
Y. Shu, S. Wang, Emotion recognition through integrating EEG and peripheral signals, in Proceedings of the 42nd IEEE International Conference on Acoustics, Speech and Signal Processing (2017), pp. 2871–2875
-
S. Zhao, C. Lin, P. Xu, S. Zhao, Y. Guo, R. Krishna, G. Ding, K. Keutzer, CycleEmotion-GAN: Emotional semantic consistency preserved cycleGAN for adapting image emotions, in Proceedings of the AAAI Conference on Artificial Intelligence (2019), pp. 2620–2627
-
M. Soleymani, M. Pantic, T. Pun, Multimodal emotion recognition in response to videos. IEEE Trans. Affect. Comput. 3(2), 211–223 (2012)
-
P. Ekman, R. Levenson, W. Friesen, Autonomic nervous system activity distinguishes among emotions. Science 221(4616), 1208–1210 (1983)
-
R. Subramanian, J. Wache, M.K. Abadi, R.L. Vieriu, S. Winkler, N. Sebe, Ascertain: emotion and personality recognition using commercial sensors. IEEE Trans. Affect. Comput. 7(1), 17–28 (2018)
-
E. Kehoe, J. Toomey, J. Balsters, A. Bokde, Personality modulates the effects of emotional arousal and valence on brain activation. Soc. Cognit. Affect. Neurosci. 7(7), 858–870 (2012)
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
← node-book_hypergraph-computation_chapter-08-large-scale-hypergraph-computation | node-book_hypergraph-computation | node-book_hypergraph-computation_chapter-10-hypergraph-computation-for-medical-and-biological-applications →