Skip to content
ImagineWorld

Hypergraph Computation for Social Media Analysis

node_idnode-book_hypergraph-computation_chapter-09-hypergraph-computation-for-social-media-analysis
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num9
chapter_titleHypergraph Computation for Social Media Analysis
pillar_membershipC — formal_substrate_hypergraph_types_geometry
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 9 — Hypergraph Computation for Social Media Analysis

Section titled “Chapter 9 — Hypergraph Computation for Social Media Analysis”

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.

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].

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

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:

EBuk={Buk(i)∣i∈I}.(9.1)\mathscr{E}_{B_{u}^{k}}=\{B_{u}^{k}(i)\mid i\in I\}. \tag{9.1}

The kk-order accessible matrix of items is denoted by Aik∈{0,1}M×MA_{i}^{k}\in\{0,1\}^{M\times M}, which can be written as follows:

Aik=Min(1,power(H⊤⋅H,k)),(9.2)A_{i}^{k}=\mathrm{Min}(1,\mathrm{power}(H^{\top}\cdot H,k)), \tag{9.2}

where the function pow(M,k)\mathrm{pow}(M,k) determines the kk power of the matrix MM in question. The incidence matrix of the user–item network is represented by H∈{0,1}N×MH\in\{0,1\}^{N\times M}, where NN and MM are the numbers of users and items, respectively. Then, the incidence matrix of the hyperedge group has the following form:

HBuk=H⋅Aik−1.(9.3)H_{B_{u}^{k}}=H\cdot A_{i}^{k-1}. \tag{9.3}

The hypergraph Gu\mathscr{G}_{u} can capture the overall high-order correlations among users by fusing multiple hyperedge groups that are constructed via kk-order reachable rule. Therefore, the HuH_{u} can be written as

Hu=f(EBuk1,EBuk2,…,EBuka)=HBuk1∣∣HBuk2∣∣…∣∣HBuka⏟a,(9.4)H_{u}=f\big(\mathscr{E}_{B_{u}^{k_{1}}},\mathscr{E}_{B_{u}^{k_{2}}},\ldots,\mathscr{E}_{B_{u}^{k_{a}}}\big)=\underbrace{H_{B_{u}^{k_{1}}}||H_{B_{u}^{k_{2}}}||\ldots||H_{B_{u}^{k_{a}}}}_{a}, \tag{9.4}

where ⋅∣∣⋅\cdot||\cdot is the concatenation operation, which is an example of hyperedge groups fusion function f(⋅)f(\cdot).

Item Hypergraph Construction Here the high-order connectivity for items is defined in a similar way. The kk-order accessible matrix of user Auk∈{0,1}N×NA_{u}^{k}\in\{0,1\}^{N\times N} is defined as

Auk=Min(1,power(H⋅H⊤,k)).(9.5)A_{u}^{k}=\mathrm{Min}(1,\mathrm{power}(H\cdot H^{\top},k)). \tag{9.5}

The incidence matrix HBik∈{0,1}M×NH_{B_{i}^{k}}\in\{0,1\}^{M\times N} can be written as

HBik=H⊤⋅Auk−1.(9.6)H_{B_{i}^{k}}=H^{\top}\cdot A_{u}^{k-1}. \tag{9.6}

By assuming that we have bb hyperedge groups, the item’s hypergraph incidence matrices HiH_{i} are similarly formulated as follows:

Hi=f(EBik1,EBik2,…,EBikb)=HBik1∣∣HBik2∣∣…∣∣HBikb⏟b.(9.7)H_{i}=f\big(\mathscr{E}_{B_{i}^{k_{1}}},\mathscr{E}_{B_{i}^{k_{2}}},\ldots,\mathscr{E}_{B_{i}^{k_{b}}}\big)=\underbrace{H_{B_{i}^{k_{1}}}||H_{B_{i}^{k_{2}}}||\ldots||H_{B_{i}^{k_{b}}}}_{b}. \tag{9.7}

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

{Mu=HyConv(Eu,Hu)Mi=HyConv(Ei,Hi),(9.8)\left\{\begin{array}{l}M_{u}=\mathrm{HyConv}(E_{u},H_{u})\\ M_{i}=\mathrm{HyConv}(E_{i},H_{i})\end{array}\right., \tag{9.8}

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

X(l+1)=σ(Dv−1/2HDe−1H⊤Dv−1/2X(l)Θ(l)+X(l)),(9.9)\mathbf{X}^{(l+1)}=\sigma\left(\mathbf{D}_{v}^{-1/2}\mathbf{H}\mathbf{D}_{e}^{-1}\mathbf{H}^{\top}\mathbf{D}_{v}^{-1/2}\mathbf{X}^{(l)}\Theta^{(l)}+\mathbf{X}^{(l)}\right),\qquad (9.9)

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 MuM_{u} and MiM_{i} are then used to jointly update EuE_{u} and EiE_{i}.

The goal of the joint information updating is to extract information that is discriminatory for users and items, which is formulated by

{Eu′=JMU(Mu,Mi)Ei′=JMU(Mi,Mu),(9.10)\left\{\begin{array}{l}E_{u}^{\prime}=\mathrm{JMU}(M_{u},M_{i})\\ E_{i}^{\prime}=\mathrm{JMU}(M_{i},M_{u})\end{array}\right.,\qquad (9.10)

where any learnable feed-forward neural network may be used for JMU(⋅,⋅)\mathrm{JMU}(\cdot,\cdot). Updated embeddings for users and items are termed as Eu′E_{u}^{\prime} and Ei′E_{i}^{\prime}, respectively. Here, a shared fully connected layer is applied.

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:

{f(…)=⋅∣∣⋅HyConv(⋅,⋅)=JHyConv(⋅,⋅)JMU(⋅,⋅)=MLP1(⋅),(9.11)\left\{\begin{array}{ccc}f(\ldots)=\quad\cdot||\cdot\\\mathrm{HyConv}(\cdot,\cdot)=\mathrm{JHyConv}(\cdot,\cdot)\\\mathrm{JMU}(\cdot,\cdot)=\quad\mathrm{MLP}_{1}(\cdot)\end{array}\right.,\qquad (9.11)

where MLP1(⋅)\mathrm{MLP}_{1}(\cdot) is a fully connected layer, Θ\Theta is trainable parameters, and ⋅∣∣⋅\cdot||\cdot 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:

{Hu=H∣∣(H(H⊤H))Hi=H⊤∣∣(H⊤(HH⊤))}hypergraph setup\left\{\begin{array}{l}\mathbf{H}_{u}=\mathbf{H}||\left(\mathbf{H}(\mathbf{H}^{\top}\mathbf{H})\right) \\\mathbf{H}_{i}=\mathbf{H}^{\top}||\left(\mathbf{H}^{\top}(\mathbf{H}\mathbf{H}^{\top})\right)\end{array}\right\} \text {hypergraph setup} {Mu(l)=Duv−1/2HuDue−1Hu⊤Duv−1/2Eu(l)+Eu(l)Mi(l)=Div−1/2HiDie−1Hi⊤Div−1/2Ei(l)+Ei(l)Eu(l+1)=σ(Mu(l)Θ(l))Ei(l+1)=σ(Mi(l)Θ(l))} Phase 1,(9.12)\left\{\begin{array}{l}\mathbf{M}_{u}^{(l)}=\mathbf{D}_{u_{v}}^{-1/2} \mathbf{H}_{u} \mathbf{D}_{u_{e}}^{-1} \mathbf{H}_{u}^{\top} \mathbf{D}_{u_{v}}^{-1 / 2} \mathbf{E}_{u}^{(l)}+\mathbf{E}_{u}^{(l)}\\\mathbf{M}_{i}^{(l)}=\mathbf{D}_{i_{v}}^{-1 /2} \mathbf{H}_{i} \mathbf{D}_{i_{e}}^{-1} \mathbf{H}_{i}^{\top} \mathbf{D}_{i_{v}}^{-1 /2} \mathbf{E}_{i}^{(l)}+\mathbf{E}_{i}^{(l)}\\\mathbf{E}_{u}^{(l+1)}=\sigma\left(\mathbf{M}_{u}^{(l)} \Theta^{(l)}\right) \\\mathbf{E}_{i}^{(l+1)}=\sigma\left(\mathbf{M}_{i}^{(l)} \Theta^{(l)}\right)\end{array} \right\} \text { Phase } 1, \tag{9.12}

where Duv\mathbf{D}_{u_{v}}, Due\mathbf{D}_{u_{e}} and Div\mathbf{D}_{i_{v}}, Die\mathbf{D}_{i_{e}} are vertex degree and hyperedge degree matrices of user hypergraph Hu\mathbf{H}_{u} and item hypergraph Hi\mathbf{H}_{i}, respectively. Eu(l)\mathbf{E}_{u}^{(l)} and Ei(l)\mathbf{E}_{i}^{(l)} are the inputs for layer ll, while Eu(l+1)\mathbf{E}_{u}^{(l+1)} and Ei(l+1)\mathbf{E}_{i}^{(l+1)} are the outputs for layer ll.

With the introduced framework, the collaborative signals in the user–item network are modeled and captured, thus achieving better representation.

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 R∈Rnu×nv\mathbf{R}\in\mathbb{R}^{n_{u}\times n_{v}}, where nun_{u} and nvn_{v} denote user and item numbers, respectively. With the kk-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

HIu(i,j)={1 useri interactedwithitemj0 otherwise.HIv(i,j)={1 itemi interactedwithuserj0 otherwise.(9.13)\begin{align*}\mathbf{H}_{I}^{u}(i,j)&=\begin{cases}1\text{ user}_{i}\text{ interactedwithitem}_{j}\\0\text{ otherwise}.\end{cases}\\\mathbf{H}_{I}^{v}(i,j)&=\begin{cases}1\text{ item}_{i}\text{ interactedwithuser}_{j}\\0\text{ otherwise}.\end{cases}\end{align*}\qquad (9.13)

It is obvious that HIu=R\mathbf{H}_{I}^{u}=\mathbf{R} and HIv=R⊤\mathbf{H}_{I}^{v}=\mathbf{R}^{\top}.

The structure of A is generated through the attribute information of users and items. The user and item binary attribute matrices are denoted by X∈Rnu×np\mathbf{X}\in\mathbb{R}^{n_{u}\times n_{p}} and Y∈Rnv×nq\mathbf{Y}\in\mathbb{R}^{n_{v}\times n_{q}}, where npn_{p} and nqn_{q} 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

HAu(i,j)={1 useri hasattributej0 otherwise.(9.14)\mathbf{H}_{A}^{u}(i,j)=\begin{cases}1\text{ user}_{i}\text{ hasattribute}_{j}\\0\text{ otherwise.}\end{cases} \tag{9.14} HIv(i,j)={1 itemi hasattributej0 otherwise.\mathbf{H}_{I}^{v}(i,j)=\begin{cases}1\text{ item}_{i}\text{ hasattribute}_{j}\\0\text{ otherwise.}\end{cases}

Here we can have HAu=X\mathbf{H}_{A}^{u}=\mathbf{X} and HIv=Y\mathbf{H}_{I}^{v}=\mathbf{Y}.

Multi-Channel Hypergraph Learning When the hypergraph structure has been generated, the multi-channel hypergraph convolution is performed separately. It can be written as

X(k+1)=σ(Dv−1/2HDe−1H⊤Dv−1/2X(k)),(9.15)\mathbf{X}^{(k+1)}=\sigma\left(\mathbf{D}_{v}^{-1/2}\mathbf{H}\mathbf{D}_{e}^{-1}\mathbf{H}^{\top}\mathbf{D}_{v}^{-1/2}\mathbf{X}^{(k)}\right), \tag{9.15}

where X(k)\mathbf{X}^{(k)} denotes the vertex embeddings after kk-layer convolution, and it should be replaced by Uc(k)\mathbf{U}_{c}^{(k)} and Vc(k)\mathbf{V}_{c}^{(k)} for user and item embeddings on channel c∈{A,I}c\in\{A,I\} in our case. To bypass the over-smoothing problem, the results obtained from KK-layer propagation are averaged as below:

Uc∗=1K+1∑l=0KUc(k),Vc∗=1K+1∑l=0KVc(k).(9.16)\mathbf{U}_{c}^{*}=\frac{1}{K+1}\sum_{l=0}^{K}\mathbf{U}_{c}^{(k)},\mathbf{V}_{c}^{*}=\frac{1}{K+1}\sum_{l=0}^{K}\mathbf{V}_{c}^{(k)}. \tag{9.16}

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

αuc=fa(Uc∗)=exp⁡(au⊤⋅Wac,uUc∗)∑cexp⁡(au⊤⋅Wac,uUc∗),(9.17)\boldsymbol{\alpha}_{u}^{c}=f_{a}(\mathbf{U}_{c}^{*})=\frac{\exp(\mathbf{a}_{u}^{\top}\cdot\mathbf{W}_{a}^{c,u}\mathbf{U}_{c}^{*})}{\sum_{c}\exp(\mathbf{a}_{u}^{\top}\cdot\mathbf{W}_{a}^{c,u}\mathbf{U}_{c}^{*})}, \tag{9.17} αvc=fa(Vc∗)=exp⁡(av⊤⋅Wac,vVc∗)∑cexp⁡(av⊤⋅Wac,vVc∗),(9.18)\boldsymbol{\alpha}_{v}^{c}=f_{a}(\mathbf{V}_{c}^{*})=\frac{\exp(\mathbf{a}_{v}^{\top}\cdot\mathbf{W}_{a}^{c,v}\mathbf{V}_{c}^{*})}{\sum_{c}\exp(\mathbf{a}_{v}^{\top}\cdot\mathbf{W}_{a}^{c,v}\mathbf{V}_{c}^{*})}, \tag{9.18}

where Wa∈Rd×d\mathbf{W}_{a}\in\mathbb{R}^{d\times d} is the trainable parameter, and dd denotes the embedding dimension. The comprehensive representations can be formulated as

U∗=∑cαucUc∗,V∗=∑cαvcVc∗,(9.19)\mathbf{U}^{*}=\sum_{c}\alpha_{u}^{c}\mathbf{U}_{c}^{*},\mathbf{V}^{*}=\sum_{c}\alpha_{v}^{c}\mathbf{V}_{c}^{*}, \tag{9.19}

where c∈{Au,Iu,Av,Iv}c\in\{A_{u},I_{u},A_{v},I_{v}\}. The graph convolution is leveraged in order to further exploit the interaction data between users and items. It can be formulated as

(U∗(j+1)V∗(j+1))=D−1/2(0R⊤)0D−1/2V∗(j)(U∗(j)V∗(j)),(9.20)\binom{U^{*(j+1)}}{V^{*(j+1)}} = D^{-1/2} \binom{0}{R^{\top}} 0 \frac{D^{-1/2}}{V^{*(j)}} \binom{U^{*(j)}}{V^{*(j)}}, \tag{9.20} U^=1J+1∑l=0JU∗(j),V^=1J+1∑l=0JV∗(j),(9.21)\hat{U} = \frac{1}{J + 1} \sum_{l=0}^{J} U^{*(j)}, \hat{V} = \frac{1}{J + 1} \sum_{l=0}^{J} V^{*(j)}, \tag{9.21}

where JJ 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

R^=U^V^⊤.(9.22)\hat{R} = \hat{U}\hat{V}^{\top}. \tag{9.22}

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

X^=U^P⊤,Y^=V^Q⊤,(9.23)\hat{X} = \hat{U}P^{\top}, \hat{Y} = \hat{V}Q^{\top}, \tag{9.23}

where P∈Rnp×dP \in R^{n_{p} \times d} and Q∈Rnq×dQ \in R^{n_{q} \times d} 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.

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

Lr=∑j∈I(i),k∉I(i)−logσ(r^i,j−r^i,k)+λ∥Φr∥22,(9.24)\mathcal{L}_{r} = \sum_{j \in \mathcal{I}(i), k \notin \mathcal{I}(i)} -log\sigma(\hat{r}_{i,j} - \hat{r}_{i,k}) + \lambda \| \Phi_{r} \|_2^2, \tag{9.24}

where Φr\Phi_{r} represents the model parameters and r^i,j=ui⊤vj\hat{r}_{i,j} = u_{i}^{\top}v_{j} represents the probability that user_i is interested in item_j. The sigmoid function is denoted as σ(⋅)\sigma(\cdot). 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

Liu=−1nu∑i∑j=1npxijlog(x^ij),\mathscr{L}_{i}^{u}=-\frac{1}{n_{u}}\sum_{i}\sum_{j=1}^{n_{p}}x_{ij}log(\hat{x}_{ij}), Liv=−1nv∑i∑j=1nqyijlog(y^ij),\mathscr{L}_{i}^{v}=-\frac{1}{n_{v}}\sum_{i}\sum_{j=1}^{n_{q}}y_{ij}log(\hat{y}_{ij}), Li=Liu+Liv,\mathscr{L}_{i}=\mathscr{L}_{i}^{u}+\mathscr{L}_{i}^{v},

where x^i,j=ui⊤pj\hat{x}_{i,j}=u_{i}^{\top}p_{j} is the inference score of user ii on user attribute jj, and y^i,j=vi⊤qj\hat{y}_{i,j}=v_{i}^{\top}q_{j} is the inference score of item ii on item attribute jj.

Finally, the sum of the losses from the two tasks is the overall loss. It can be written as

L=Lr+γ⋅Li,\mathscr{L}=\mathscr{L}_{r}+\gamma\cdot\mathscr{L}_{i},

where γ\gamma 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.

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].

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 Fibotw={wit,…,wmtt}F_{i}^{botw}=\{w_{i}^{t},\ldots,w_{m_{t}}^{t}\} is extracted for textual modality. The visual modality feature Fibovw={wiv,…,wmvv}F_{i}^{bovw}=\{w_{i}^{v},\ldots,w_{m_{v}}^{v}\} is extracted from the ii-th image. Furthermore, an emoticon dictionary is defined for the emotical modality, which forms the bag-of-emoticon-words feature Fiboew={wie,…,wmee}F_{i}^{boew}=\{w_{i}^{e},\ldots,w_{m_{e}}^{e}\}. A corresponding sentiment score skt,skv,skes_{k}^{t},s_{k}^{v},s_{k}^{e} is assigned to wkt,wkv,wkew_{k}^{t},w_{k}^{v},w_{k}^{e}, respectively. Consequently, the tweet xix_{i} can be denoted as {Fibotw,Fibovw,Fiboew}\{F_{i}^{botw},F_{i}^{bovw},F_{i}^{boew}\}. Through investigating Fibotw,FibovwF_{i}^{botw},F_{i}^{bovw} and FiboewF_{i}^{boew} simultaneously, the sentiment of xix_{i} can be predicted.

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 kk 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

H(vi,ej)={s(j,i) ifvi∈ej0 otherwise,(9.27)\mathbf{H}(v_{i},e_{j})=\begin{cases}s(j,i)\text{ if}v_{i}\in e_{j}\\0&\text{ otherwise}\end{cases}, \tag{9.27}

where s(j,i)=exp⁡(−dist(i,j)2σd^2)s(j,i) = \exp(-\frac{dist(i,j)^2}{\sigma\hat{d}^2}) is the correlation between viv_i and eje_j. dist(i,j)dist(i,j) is the distance in Euclidean terms between viv_i and the centroid vertex of eje_j. d^\hat{d} is the average pairwise distance for the corresponding modality, and the parameter σ\sigma 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 f\mathbf{f} and the hyperedge weights W\mathbf{W}. It accomplishes the aforementioned objectives by optimizing the loss functions:

arg⁡min⁡f,W{Ω(f)+λRemp(f)+μ∑i=1newi2},(9.28)\arg\min_{\mathbf{f},\mathbf{W}}\{\Omega(\mathbf{f})+\lambda\mathscr{R}_{emp}(\mathbf{f})+\mu\sum_{i=1}^{n_e}w_i^2\}, \tag{9.28}

s.t. ∑i=1newi=1\sum_{i=1}^{n_e}w_i = 1, where f\mathbf{f} is the learned relevance score, Ω(f)\Omega(\mathbf{f}) is a regularizer built on the Hypergraph Normalized Laplacian, Remp(f)=∥f−y∥2\mathscr{R}_{emp}(\mathbf{f}) = \|f - y\|^2 denotes the empirical loss, and ∑i=1newi2\sum_{i=1}^{n_e}w_i^2 is the regularizer. Ω(f)\Omega(\mathbf{f}) can be formulated as

Ω(f)=12∑u,v∈Ve∈Ew(e)h(u,e)h(v,e)δ(e)×(f(u)d(u)−f(v)d(v))2,(9.29)\Omega(\mathbf{f})=\frac{1}{2}\sum_{u,v\in\mathscr{V}}^{e\in\mathscr{E}}\frac{w(e)h(u,e)h(v,e)}{\delta(e)}\times\left(\frac{\mathbf{f}(u)}{\sqrt{d(u)}}-\frac{\mathbf{f}(v)}{\sqrt{d(v)}}\right)^2, \tag{9.29}

where d(v)=∑e∈EW(e)h(v,e)d(v) = \sum_{e\in\mathscr{E}}\mathbf{W}(e)h(v,e) denotes vertex degree and δ(e)=∑v∈Vh(v,e)\delta(e) = \sum_{v\in\mathscr{V}}h(v,e) denotes hyperedge degree. Let Θ=Dv−1/2HWDe−1H⊤Dv−1/2\Theta = \mathbf{D}_v^{-1/2}\mathbf{H}\mathbf{W}\mathbf{D}_e^{-1}\mathbf{H}^\top\mathbf{D}_v^{-1/2} and Δ=I−Θ\Delta = \mathbf{I} - \Theta be the hypergraph Laplacian. The diagonal matrices of d(v)d(v) and δ(e)\delta(e) are represented as Dv\mathbf{D}_v and De\mathbf{D}_e, respectively. The normalized cost function can be expressed as

Ω(f)=f⊤Δf.(9.30)\Omega(\mathbf{f})=\mathbf{f}^\top\Delta\mathbf{f}. \tag{9.30}

The two parameters W\mathbf{W} and f\mathbf{f} are optimized iteratively using the following two functions:

arg⁡min⁡fΦ(f)=arg⁡min⁡f{f⊤Δf+λ∥f−y∥2},(9.31)\arg\min_{\mathbf{f}}\Phi(\mathbf{f})=\arg\min_{\mathbf{f}}\{\mathbf{f}^\top\Delta\mathbf{f}+\lambda\|f - y\|^2\}, \tag{9.31} arg⁡min⁡WΦ(W)=arg⁡min⁡W{f⊤Δf+μ∑i=1newi2},(9.32)\arg\min_{\mathbf{W}}\Phi(\mathbf{W})=\arg\min_{\mathbf{W}}\{\mathbf{f}^\top\Delta\mathbf{f}+\mu\sum_{i=1}^{n_e}w_i^2\}, \tag{9.32}

s.t. ∑i=1newi=1\sum_{i=1}^{n_e}w_i = 1.

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, G1=(V1,E1,W)\mathcal{G}_{1}=(\mathcal{V}_{1},\mathcal{E}_{1},\mathbf{W}) for tweet-level hypergraph and G2=(V2,E2,M)\mathcal{G}_{2}=(\mathcal{V}_{2},\mathcal{E}_{2},\mathbf{M}) 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 yy and tt in distinct hypergraph layers. Therefore, in two hypergraph layers, f\mathbf{f} and g\mathbf{g} started out originally as vectors representing the relevance scores of tweets and multi-modal features/words, respectively. It is said that M\mathbf{M} can be regarded as the confidence ratings of the sentiment labels y\mathbf{y}, which correspond to f\mathbf{f} 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

H∗(vi,ej)={1 ifvi∈ej0 otherwise,\mathbf{H}_{*}(v_{i},e_{j})=\begin{cases}1\text{ if}v_{i}\in e_{j}\\0\text{ otherwise}\end{cases},

where ∗* denotes either 1 or 2, and the same applies below.

The following loss function can be optimized to represent the learning process:

arg⁡min⁡f,g,W,M{Ω1(f)+λ1Remp1(f)+μ1∑ine1Wi2+Ω2(g)+λ2Remp2(g)+μ2∑ine2Mi2},s.t.{∑i=1ne1Wi=1∑i=1ne2Mi=1,(9.34)\begin{split}\arg\min_{\mathbf{f},\mathbf{g},\mathbf{W},\mathbf{M}}\{\Omega_{1}(\mathbf{f})+\lambda_{1}\mathcal{R}_{emp1}(\mathbf{f})+\mu_{1}\sum_{i}^{n_{e1}}\mathbf{W}_{i}^{2}+\Omega_{2}(\mathbf{g})+\lambda_{2}\mathcal{R}_{emp2}(\mathbf{g})+\mu_{2}\sum_{i}^{n_{e2}}\mathbf{M}_{i}^{2}\},\\ \text{s.t.}\begin{cases}\sum_{i=1}^{n_{e}1}\mathbf{W}_{i}=1\\\sum_{i=1}^{n_{e}2}\mathbf{M}_{i}=1\end{cases},\end{split} \tag{9.34}

where Ω1(f)\Omega_{1}(\mathbf{f}) and Ω2(g)\Omega_{2}(\mathbf{g}) are regularizers based on the normalized Laplacian on hypergraph, Remp1(f)=∥f−y∘M∥2\mathcal{R}_{emp1}(\mathbf{f})=\|\mathbf{f}-\mathbf{y}\circ\mathbf{M}\|^{2} and Remp2(g)=∥g−t∥2\mathcal{R}_{emp2}(\mathbf{g})=\|\mathbf{g}-\mathbf{t}\|^{2} are the empirical losses, and ∑i=1ne1Wi\sum_{i=1}^{n_{e}1}\mathbf{W}_{i} and ∑i=1ne2Mi\sum_{i=1}^{n_{e}2}\mathbf{M}_{i} are the L2L_{2} regularizers on the hyperedge weights. In this scenario, empirical loss is represented as Remp1(f)=∥f−y∘M∥2\mathcal{R}_{emp1}(f)=\|f-y\circ M\|^{2} and Remp2(g)=∥g−t∥2\mathcal{R}_{emp2}(g)=\|g-t\|^{2}, and ∑i=1ne1Wi\sum_{i=1}^{n_{e}1}W_{i} and ∑i=1ne2Mi\sum_{i=1}^{n_{e}2}M_{i} are the L2L_{2} regularizers on the hyperedge weights. The normalized Laplacian on hypergraph regularizers Ω1(f)\Omega_{1}(f) and Ω2(g)\Omega_{2}(g) are further described as follows:

Ω1(f)=f⊤(I−Dv1−1/2H1WDe1−1H1⊤Dv1−1/2)f,Ω2(g)=g⊤(I−Dv2−1/2H2MDe2−1H2⊤Dv2−1/2)g.(9.35)\begin{array}{l}\Omega_{1}(f)=f^{\top}(I-D_{v1}^{-1/2}H_{1}WD_{e1}^{-1}H_{1}^{\top}D_{v1}^{-1/2})f,\\\Omega_{2}(g)=g^{\top}(I-D_{v2}^{-1/2}H_{2}MD_{e2}^{-1}H_{2}^{\top}D_{v2}^{-1/2})g.\end{array} \tag{9.35}

The loss function then has the following form in terms of ff, WW, gg, and MM:

L(f,W,g,M)=Ω1(f)+λ1Remp1(f)+μ1∑ine1Wi2+Ω2(g)+λ2Remp2(g)+μ2∑ine2Mi2+η1(∑i=1ne1Wi−1)+η2(∑i=1ne2Mi−1).(9.36)\begin{array}{l}\mathcal{L}(f,W,g,M)=\Omega_{1}(f)+\lambda_{1}\mathcal{R}_{emp1}(f)+\mu_{1}\sum_{i}^{n_{e}1}W_{i}^{2}\\+\Omega_{2}(g)+\lambda_{2}\mathcal{R}_{emp2}(g)+\mu_{2}\sum_{i}^{n_{e}2}M_{i}^{2}\\+\eta_{1}\left(\sum_{i=1}^{n_{e}1}W_{i}-1\right)+\eta_{2}\left(\sum_{i=1}^{n_{e}2}M_{i}-1\right).\end{array} \tag{9.36}

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.

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 M={m1,m2,…,mn}M=\{m_{1},m_{2},\ldots,m_{n}\}. The constructed hypergraph GH={V,E,W}\mathcal{G}_{H}=\{\mathcal{V},\mathcal{E},\mathbf{W}\}, where a vertex vv represents a microblog and a hyperedge ee represents a subset of microblogs. The hyperedge weight is denoted as w(e)w(e), and its diagonal matrix is formed as W\mathbf{W}. The similarity between two microblogs mim_{i} and mjm_{j} 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 sTI(mi,mj)=1−∣tii,tji∣τs_{TI}(m_i, m_j) = 1 - \frac{|ti_i, tj_i|}{\tau}. The timestamps of mim_i and mjm_j are tiiti_i and tjitj_i, while τ\tau denotes a normalized constant. Measures of the pairwise social similarity are

sS(mi,mj)={1,if ui=uj0.5,if ui and uj are linked through the social platform0,otherwise(9.37)s_S(m_i, m_j) = \begin{cases} 1, & \text{if } u_i = u_j \\ 0.5, & \text{if } u_i \text{ and } u_j \text{ are linked through the social platform} \\ 0, & \text{otherwise} \end{cases} \tag{9.37}

where uiu_i is the owner of mim_i.

Two hyperedges are created by connecting each microblog mim_i with its neighbors as per geographic distance and middle position of location and time information. For each microblog mim_i, the top NN 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 SS and Sˉ\bar{S} are the results of GH\mathcal{G}_H through the two-way partition, and the hypergraph cut can be described as

CutH(S,Sˉ):=∑e∈∂Sw(e)∣e∩S∣∣e∩Sˉ∣d(e),(9.38)\text{Cut}_H(S, \bar{S}):=\sum_{e \in \partial S} w(e)\frac{|e \cap S||e \cap \bar{S}|}{d(e)}, \tag{9.38} ∂S:={e∈E∣e∩S≠∅,e∩Sˉ≠∅}.\partial S:=\{e \in E| e \cap S \neq \emptyset, e \cap \bar{S} \neq \emptyset\}.

The definition of the two-way normalized partition is

NCutH(S,Sˉ):=CutH(S,Sˉ)(1vol(S)+1vol(Sˉ)),(9.39)N\text{Cut}_H(S, \bar{S}):=\text{Cut}_H(S, \bar{S})\left(\frac{1}{\text{vol}(S)}+\frac{1}{\text{vol}(\bar{S})}\right), \tag{9.39}

where the volume of SS is denoted by vol(S)=∑v∈SD(v)\text{vol}(S)=\sum_{v \in S}D(v). 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, Δ=I−Dv−1/2HWDe−1H⊤Dv−1/2\Delta=\mathbf{I}-\mathbf{D}_v^{-1/2}\mathbf{HWD}_e^{-1}\mathbf{H}^\top\mathbf{D}_v^{-1/2}, and the solution can be found. The input tweets MM 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 M={m1,m2,…,mn}M = \{m_1, m_2, \dots, m_n\}, with P={P1,P2,…,Pm}P = \{P_1, P_2, \dots, P_m\} as a set of partitions, the BIC score is determined by

BIC=llh(M)−Np2log⁡n,llh(M)=∑i(12πθ^Np−12θ^2∥d(mi,cmi)∥2+log⁡nin),θ^2=1n−m∑id(mi,cmi)2,\begin{aligned} \text{BIC} &= \text{llh}(M) - \frac{N_p}{2} \log n, \\ \text{llh}(M) &= \sum_{i} \left( \frac{1}{\sqrt{2\pi} \hat{\theta}^{N_p}} - \frac{1}{2\hat{\theta}^2} \left\|d(m_i, c_{m_i})\right\|^2 + \log \frac{n_i}{n} \right), \\ \hat{\theta}^2 &= \frac{1}{n-m} \sum_{i} d(m_i, c_{m_i})^2, \end{aligned}

where NpN_p represents the parameter number and the microblog features’ dimension, nn is the microblogs number, and nin_i is the count of corresponding partition of mim_i.

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 = {MC1,…,MCp}\{MC_1, \dots, MC_p\} and corresponding microblogs M={m1,…,mn}M = \{m_1, \dots, m_n\}, 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 GB={X,Y,B}\mathcal{G}_\mathcal{B} = \{X, Y, B\} is used to express MC and M, and two vertex sets are expressed as XX and YY, where X:=MC∩MX := MC \cap M, Y:=MCY := MC, with ∣X∣=∣MC∣+∣M∣|X| = |MC| + |M| and ∣Y∣=∣MC∣|Y| = |MC| vertices, respectively. The definition of the across-affinity matrix BB between XX and YY is as follows:

Bij={η,if xi∈M,xi∈yj,yj∈MCe−γdij,if xi∈MC,yj∈MC0,otherwise,B_{ij} = \begin{cases} \eta, & \text{if } x_i \in M, x_i \in y_j, y_j \in MC \\ e^{-\gamma d_{ij}}, & \text{if } x_i \in MC, y_j \in MC \\ 0, & \text{otherwise} \end{cases},

where dijd_{ij} is the distance between two MCs, and η\eta and γ\gamma are the two parameters that balance the inner-MC correlation and the between-MC smoothness.

The bipartite graph GB\mathcal{G}_\mathcal{B} and the necessary number of partitions KK are used as the basis for the transfer cut method to partition MCs. First, assume GBY={Y,WY}\mathcal{G}_{\mathcal{BY}} = \{Y, W_Y\} contains only vertices of the MC. LY=DY−WYL_Y = D_Y - W_Y is the graph Laplacian of GBY\mathcal{G}_{\mathcal{BY}}, where DY=diag(B⊤I)D_Y = \text{diag}(B^\top I), WY=B⊤DX−1BW_Y = B^\top D_X^{-1} B. Assume that {λi,vi}1K\{ \lambda_i, v_i \}_{1}^K are the KK smallest eigenpairs of GB\mathcal{G}_{\mathcal{B}}. They can be calculated as

0≤ξi≤1,ξi(2−ξi)=λi,0\leq\xi_{i}\leq 1,\xi_{i}(2-\xi_{i})=\lambda_{i}, ui=11−ξiQvi,fi=(ui⊤,vi⊤)⊤,(9.42)\mathbf{u}_{i}=\frac{1}{1-\xi_{i}}\mathbf{Q}\mathbf{v}_{i},\mathbf{f}_{i}=(\mathbf{u}_{i}^{\top},\mathbf{v}_{i}^{\top})^{\top}, \tag{9.42}

where Q=DX−1B\mathbf{Q}=\mathbf{D}_{\mathbf{X}}^{-1}\mathbf{B} is the corresponding transition probability matrix from XX to YY.

Second, {f1,…,fK}\{\mathbf{f}_{1},\ldots,\mathbf{f}_{K}\} are K-spectra clustered and the best KK is selected by BIC. Assume that K0K_{0} is the count of existing events. It is started at 0. Furthermore, suppose that the biggest number for incoming data is not larger than K0+nnew/tmK_{0}+n_{new}/t_{m}, where the threshold tmt_{m} is used to decide the minimum microblog number. Therefore, the bipartite graph is segmented nnew/tm+1n_{new}/t_{m}+1 times, and the segmentation result is selected as the event detection result using BIC. Suppose {Γ1,…,ΓK}\{\Gamma_{1},\ldots,\Gamma_{K}\} are the detected KK events in the last process. The key MCs are found by MC selection for each Γi\Gamma_{i}, and the number of each MC is measured in terms of importance. Finally, the top nsMCn_{sMC} MCs are selected to describe each Γi\Gamma_{i}.

Detection of Incremental Social Events The real-time detection method is defined as follows. Assume that event detection is run at time t0t_{0}, with generated MCs, i.e., MC={MC1,…,MCp}\mathrm{MC}=\{\mathrm{MC}_{1},\ldots,\mathrm{MC}_{p}\}, detected events {Γ1,…,Γq}\{\Gamma_{1},\ldots,\Gamma_{q}\}, and noisy data. New data arrive continuously from moment t0t_{0}, and it can be processed a short time gap tt. In other words, event detection can be run at every t0+x×tt_{0}+x\times t, where xx equals to 1, 2, …\ldots. In this instance, t0+Δtt_{0}+\Delta_{t} is used as an example, and MnewM_{new} 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, MC∗={MC1∗,MC2∗,…,MCne∗}MC^{*}=\{MC^{*}_{1},MC^{*}_{2},\ldots,MC^{*}_{n_{e}}\} were used as known samples. MC∗MC^{*} and MnewM_{new} are used to construct the incremental microblog hypergraph GHt0+Δt\mathcal{G}_{H}^{t_{0}+\Delta_{t}}. However, it is challenging because there is no clear distinction between a microblog collection and a microblog. No more than 3ne3n_{e} 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 GHt0+Δt\mathcal{G}_{H}^{t_{0}+\Delta_{t}}, they are merged with MnewM_{new}. New MCs (MCnew0\mathrm{MC}_{new0}) are then created from these data using the hypergraph partition. Based on the representative microblogs, MCnew0\mathrm{MC}_{new0} and MC∗\mathrm{MC}^{*} are combined together. In this way, nMCnewn_{\mathrm{MC}_{new}} new MCs (MCnew0\mathrm{MC}_{new0}) are constructed and utilized for event detection.

For detection in real time, the past events Γ={Γ1,…,ΓK}\Gamma=\{\Gamma_{1},\ldots,\Gamma_{K}\}are used as known data in the time period. The corresponding representative MCs in Γ\Gamma and the generated incremental MCnew\mathrm{MC}_{new} 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:

dij={0,ifxi∈Γkandyj∈Γkmin⁡mxk∈ximyl∈yjd(mxk,myl),otherwise,(9.43)d_{ij}=\left\{\begin{array}{c}0,\text{if}x_{i}\in\Gamma_{k}\text{and}y_{j}\in\Gamma_{k}\\\min_{\begin{subarray}{c}mx_{k}\in x_{i}\\my_{l}\in y_{j}\end{subarray}}d(mx_{k},my_{l}),\text{otherwise}\end{array},\right. \tag{9.43}

where k=1,2,…,Kk=1,2,\ldots,K. 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.

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 uiu_i and uju_j‘s personalities is measured by the cosine function:

sPER(ui,uj)=<pi,pj>∥pi∥⋅∥pj∥,(9.44)s_{PER}(u_{i},u_{j})=\frac{<p_{i},p_{j}>}{\|p_{i}\|\cdot\|p_{j}\|}, \tag{9.44}

where uiu_i‘s personality vector is denoted by pip_i. The centroid is determined by selecting one vertex at a time, and a hyperedge is built to link the centroid to its KK 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 Gm=(Vm,Em,Wm)\mathscr{G}_{m}=(\mathscr{V}_{m},\mathscr{E}_{m},\mathbf{W}_{m}), where Vm\mathscr{V}_{m} and Em\mathscr{E}_{m} denote the vertex set and hyperedge set, respectively, and Wm\mathbf{W}_{m} is the diagonal hyperedge weight matrix of the m-th hypergraph (m = 1, 2, …, M). The incidence matrix Hm\mathbf{H}_{m} can be computed as

Hm(v,e)={1,ifv∈e0,ifv∉e.(9.45)\mathbf{H}_{m}(v,e)=\begin{cases}1,\text{if}v\in e\\0,\text{if}v\notin e\end{cases}. \tag{9.45}

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 Um\mathbf{U}_{m} is the diagonal matrix of vertex weight. The vertex degree and the hyperedge degree are defined as dm(v)=∑e∈EmWm(e)Hm(v,e)d_{m}(v)=\sum\limits_{e\in\mathscr{E}_{m}}\mathbf{W}_{m}(e)\mathbf{H}_{m}(v,e) and δ(e)=∑v∈VmUm(e)Hm(v,e)\delta(e)=\sum\limits_{v\in\mathscr{V}_{m}}\mathbf{U}_{m}(e)\mathbf{H}_{m}(v,e). Accordingly, the two diagonal matrices are defined as Dmv(i,i)=dm(vi)\mathbf{D}_{m}^{v}(i,i)=d_{m}(v_{i}) and Dme(i,i)=δm(ei)\mathbf{D}_{m}^{e}(i,i)=\delta_{m}(e_{i}).

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 u1,…,uNu_{1},\ldots,u_{N} and the involved stimuli sij(j=1,…,ni)s_{ij}(j=1,\ldots,n_{i}) for uiu_{i}, we assume that the c-th emotion category’s compound vertices and associated labels are {(u1,s1j)}j=1n1,…,{(uN,sNj)}j=1nN\{(u_{1},s_{1j})\}_{j=1}^{n_{1}},\ldots,\{(u_{N},s_{Nj})\}_{j=1}^{n_{N}} and y1c=[y11c,…,y1n1c]⊤,…,yNc=[yN1c,…,yNnNc]⊤\mathbf{y}_{1c}=[y_{11}^{c},\ldots,y_{1n_{1}}^{c}]^{\top},\ldots,\mathbf{y}_{Nc}=[y_{N1}^{c},\ldots,y_{Nn_{N}}^{c}]^{\top}, where c=1,…,nec=1,\ldots,n_{e}.

The count of emotion categories is denoted as nen_{e}. 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 r1c=[r11c,…,r1n1c]⊤,…,rNc=[rN1c,…,rNnNc]⊤\mathbf{r}_{1c}=[r_{11}^{c},\ldots,r_{1n_{1}}^{c}]^{\top},\ldots,\mathbf{r}_{Nc}=[r_{N1}^{c},\ldots,r_{Nn_{N}}^{c}]^{\top}. yc\mathbf{y}_{c}, rc\mathbf{r}_{c} are denoted by

Fig. 9.9 Overall framework of the multi-modal vertex-weighted hypergraph learning. This figure is from [7]

yc=[y1c⊤,…,yNc⊤]⊤,rc=[r1c⊤,…,rNc⊤]⊤.(9.46)\mathbf{y}_{c}=[\mathbf{y}_{1c}^{\top},\ldots,\mathbf{y}_{Nc}^{\top}]^{\top},\mathbf{r}_{c}=[\mathbf{r}_{1c}^{\top},\ldots,\mathbf{r}_{Nc}^{\top}]^{\top}. \tag{9.46}

Let Y=[y1,…,yc,…,yne]\mathbf{Y}=[\mathbf{y}_{1},\ldots,\mathbf{y}_{c},\ldots,\mathbf{y}_{n_{e}}], R=[r1,…,rc,…,rne]\mathbf{R}=[\mathbf{r}_{1},\ldots,\mathbf{r}_{c},\ldots,\mathbf{r}_{n_{e}}], where the two trade-off parameters are λ\lambda and η\eta. The hypergraph structure’s regularizer is defined as follows:

Ψ(R,W,U,α)=∑c=1nerc⊤∑m=1Mαm(Um−Θm)rc,(9.47)\Psi(\mathbf{R},\mathbf{W},\mathbf{U},\boldsymbol{\alpha})=\sum_{c=1}^{n_{e}}\mathbf{r}_{c}^{\top}\sum_{m=1}^{M}\alpha_{m}(\mathbf{U}_{m}-\Theta_{m})\mathbf{r}_{c}, \tag{9.47}

where Θm=(Dmv)−1/2UmHmWm(Dme)−1Hm⊤Um(Dmv)−1/2\Theta_{m}=(\mathbf{D}_{m}^{v})^{-1/2}\mathbf{U}_{m}\mathbf{H}_{m}\mathbf{W}_{m}(\mathbf{D}_{m}^{e})^{-1}\mathbf{H}_{m}^{\top}\mathbf{U}_{m}(\mathbf{D}_{m}^{v})^{-1/2}. Then, Δ=∑m=1Mαm(Um−Θm)\Delta=\sum_{m=1}^{M}\alpha_{m}(\mathbf{U}_{m}-\Theta_{m}) 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 S=S1,S2,…,SnS=S_{1},S_{2},\ldots,S_{n} 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 Δ\Delta is leveraged to convert it from the spatial domain to the spectral domain. Δ\Delta can be formulated as Δ=I−Dv−1/2HWDe−1H⊤Dv−1/2\Delta=\mathbf{I}-\mathbf{D}_{v}^{-1/2}\mathbf{H}\mathbf{W}\mathbf{D}_{e}^{-1}\mathbf{H}^{\top}\mathbf{D}_{v}^{-1/2}, where De\mathbf{D}_{e} and Dv\mathbf{D}_{v} 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

X(l+1)(i)=σ(Dv(i)−1/2H(i)W(i)De(i)−1H(i)⊤Dv(i)−1/2X(l)(i)Θ(l)(i)),(9.49)\mathbf{X}_{(l+1)}^{(i)}=\sigma\left(\mathbf{D}_{v}^{(i)-1/2}\mathbf{H}^{(i)}\mathbf{W}^{(i)}\mathbf{D}_{e}^{(i)-1}\mathbf{H}^{(i)\top}\mathbf{D}_{v}^{(i)-1/2}\mathbf{X}_{(l)}^{(i)}\boldsymbol{\Theta}_{(l)}^{(i)}\right), \tag{9.49}

where Θ(l)(i)\boldsymbol{\Theta}_{(l)}^{(i)} is the learnable parameter of the ll-th layer in ii-th hypergraph neural network (HGNN) and σ\sigma is the activation function. When using hypergraph convolution, the parameters for Θ(i)\boldsymbol{\Theta}^{(i)} are updated by backpropagating the feature X(i)\mathbf{X}^{(i)}. Hypergraph structure-related parameters, such as Dv(i)−1/2H(i)W(i)De(i)−1H(i)⊤Dv(i)−1/2\mathbf{D}_{v}^{(i)-1/2}\mathbf{H}^{(i)}\mathbf{W}^{(i)}\mathbf{D}_{e}^{(i)-1}\mathbf{H}^{(i)\top}\mathbf{D}_{v}^{(i)-1/2}, are pre-computed and are not trainable in this procedure. The symbol Ah(i)\mathbf{A}_{h}^{(i)} is used to represent these parameters for simplification, and the hypergraph convolutional layer can be rewritten as

X(l+1)(i)=σ(Ah(i)X(l)(i)Θ(l)(i)).(9.50)\mathbf{X}_{(l+1)}^{(i)}=\sigma\left(\mathbf{A}_{h}^{(i)}\mathbf{X}_{(l)}^{(i)}\boldsymbol{\Theta}_{(l)}^{(i)}\right). \tag{9.50}

It is important to note that the formulation of graph convolution and hypergraph convolution is similar. The graph convolution is shown as follows:

X(l+1)(i)=σ(D(i)−1/2A(i)D(i)−1/2X(l)(i)Θ(l)(i)).(9.51)\mathbf{X}_{(l+1)}^{(i)}=\sigma\left(\mathbf{D}^{(i)-1/2}\mathbf{A}^{(i)}\mathbf{D}^{(i)-1/2}\mathbf{X}_{(l)}^{(i)}\boldsymbol{\Theta}_{(l)}^{(i)}\right). \tag{9.51}

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, mm hypergraph neural network models are built using mm hypergraphs for mm modalities. The KK-layer ii-th hypergraph neural network may be expressed as follows:

HGNN(H(i),X(i))=σK(i)(Ah(i)(⋯σ1(i)(Ah(i)X(i)Θ1(i))⋯ )ΘK(i)).(9.52)HGNN(\mathbf{H}^{(i)},\mathbf{X}^{(i)})=\sigma_{K}^{(i)}\left(\mathbf{A}_{h}^{(i)}(\cdots\sigma_{1}^{(i)}(\mathbf{A}_{h}^{(i)}\mathbf{X}^{(i)}\boldsymbol{\Theta}_{1}^{(i)})\cdots)\boldsymbol{\Theta}_{K}^{(i)}\right). \tag{9.52}

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.

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.

  1. 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)

  2. 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)

  3. 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)

  4. 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

  5. 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)

  6. 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)

  7. 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

  8. 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)

  9. 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)

  10. 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

  11. E. Cambria, Affective computing and sentiment analysis. IEEE Intell. Syst. 31(2), 102–107 (2016)

  12. 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.

  13. 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)

  14. 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)

  15. S. D’mello, J. Kory, A review and meta-analysis of multimodal affect detection systems. ACM Comput. Surv. 47(3), 1–36 (2015)

  16. 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)

  17. 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

  18. 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

  19. M. Soleymani, M. Pantic, T. Pun, Multimodal emotion recognition in response to videos. IEEE Trans. Affect. Comput. 3(2), 211–223 (2012)

  20. P. Ekman, R. Levenson, W. Friesen, Autonomic nervous system activity distinguishes among emotions. Science 221(4616), 1208–1210 (1983)

  21. 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)

  22. 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 →