Information propagation prediction method based on prototype-aware dual-channel graph neural network

Through the prototype-aware dual-channel graph neural network, combined with the cascade hypergraph and the dynamic friendship forwarding graph, the problem of difficult modeling of user dynamic preferences and cascade dependencies in the existing technology is solved, and the accuracy and efficiency of information dissemination prediction are achieved. promote.

CN117408298BInactive Publication Date: 2024-08-27CHONGQING UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311366044.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing information dissemination prediction models are difficult to simultaneously capture the dependencies between users' dynamic preferences and cascades, resulting in poor prediction accuracy and efficiency.

Method used

A method based on prototype-aware dual-channel graph neural network is used to learn user and cascade representations respectively through cascade hypergraphs and dynamic friendship forwarding graphs, generate user feature representations and cascade representations, and enhance user representations through prototypes to improve prediction accuracy. sex.

Benefits of technology

Effectively capture the global dependencies between users and cascades, improve the accuracy and efficiency of information dissemination prediction, and provide better visual analysis and interpretability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117408298B
    Figure CN117408298B
Patent Text Reader

Abstract

The present invention specifically relates to an information propagation prediction method based on a prototype-aware dual-channel graph neural network, including: outputting the predicted probability of a user participating in a target cascade forwarding in an information propagation prediction model; the model processing steps include: learning the overall representation of users and cascades through a cascade hypergraph; learning user forwarding preferences of different granularities through a dynamic friendship forwarding graph; obtaining user representations related to the target cascade; obtaining user feature representations related to the target cascade; fusing the hypergraph representation and dynamic representation of the target cascade; selecting the most matching prototype representation from the prototype sequence according to the user representation sequence of the target cascade, and fusing it with the user representation sequence to generate a prototype-enhanced target cascade user representation, and calculating the predicted probability. The present invention can simultaneously model the dependency between user dynamic preferences and cascades, and effectively integrate the learned cascade representation into each user representation through the prototype representation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of Internet big data and machine learning, and in particular to an information propagation prediction method based on a prototype-aware dual-channel graph neural network. Background Art

[0002] Information diffusion prediction is one of the hottest research topics in the field of data mining. As the rise of online social media has made information acquisition convenient and cheap, information diffusion prediction technology is needed to deal with emerging scenarios such as fake news, hot topics and advertisements. The information diffusion process is achieved through cascade propagation between different users in the network. Accurately predicting information diffusion is of great significance to these fields. Therefore, information diffusion prediction plays a key role in rumor detection, media advertising and news.

[0003] Existing technologies usually use feature engineering methods, such as modeling micro-propagation prediction as a binary classification problem, predicting whether a user participates in the dissemination or forwarding of information in a macro way. However, this method is difficult to capture and model scattered user dependencies. There are also methods that use probabilistic statistical generation models to describe the process of a single microblog gaining popularity and capture the triggering effect of each forwarding. However, the propagation mechanism in this method is predefined and does not conform to the propagation rules of the real world unless it is a specific data set. In order to improve the quasi-laterality of the prediction, some end-to-end models based on representation methods have also been proposed, such as using RNN and GNN to jointly model the spatiotemporal characteristics of the cascade, introducing diffusion topology to describe the cascade structure, using loose assumptions and deep learning techniques for cascade modeling, using a structural attention model of sequential neural network information diffusion, using a multi-scale diffusion prediction model, and using a variational autoencoder framework to predict the set of all affected users. These models all learn the relationship between forwarding and social networks at the same time.

[0004] In order to dynamically learn user forwarding preferences, dynamic heterogeneous graph convolutional networks and memory-enhanced sequence hypergraph attention networks are further proposed in the prior art. However, although the above existing models can describe the dynamic diffusion relationship between time and cascades and social homogeneity, there are still two problems: First, the existing models cannot simultaneously obtain the dependency relationship between user dynamic preferences and cascades. They either use dynamic heterogeneous graphs to learn user forwarding preferences or use hypergraphs to learn cascade relationships, but do not model the dependency relationship between user dynamic preferences and cascades at the same time, resulting in poor accuracy in information propagation prediction. Second, the cascade representation learned by the existing model based on the hypergraph neural network is only directly merged with the user representation, which will cause information redundancy, because the representation of a cascade is a forwarding set of a group of users, which leads to poor efficiency in information propagation prediction. Therefore, how to improve the accuracy and efficiency of information propagation prediction is a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is: how to provide an information propagation prediction method based on a prototype-aware dual-channel graph neural network, which can simultaneously model the dependencies between user dynamic preferences and cascades, and capture the user's global dependency on the cascade, and at the same time effectively integrate the learned cascade representation into each user representation through the prototype representation, rather than simply fusing the cascade representation directly with the user representation, thereby improving the accuracy and efficiency of information propagation prediction.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] The information propagation prediction method based on prototype-aware dual-channel graph neural network includes:

[0008] S1: Obtain the target cascade and the constructed dynamic friendship forwarding graph and cascade hypergraph as the information to be predicted;

[0009] S2: Input the information to be predicted into the information propagation prediction model and output the predicted probability of the user participating in the target cascade forwarding;

[0010] The processing steps of the information propagation prediction model are as follows:

[0011] S201: learning the overall representation of users and cascades through cascade hypergraphs to generate user representation sequences and cascade representation sequences;

[0012] S202: learning user forwarding preferences at different granularities through a dynamic friendship forwarding graph and generating a user feature representation sequence;

[0013] S203: acquiring user representations related to the target cascade from the user representation sequence, and generating a hypergraph representation of the target cascade;

[0014] S204: acquiring user feature representations related to the target cascade from the user feature representation sequence, and generating a dynamic representation of the target cascade;

[0015] S205: Fusing the hypergraph representation and the dynamic representation of the target cascade to generate a user representation sequence of the target cascade;

[0016] S206: Generate a prototype sequence according to the cascade representation sequence, and select the best matching prototype representation from the prototype sequence according to the target cascade user representation sequence;

[0017] S207: Fusing the most matching prototype representation of the target cascade with the user representation sequence to generate a prototype-enhanced target cascade user representation;

[0018] S208: Calculate the predicted probability of the user participating in the target cascade forwarding through the prototype-enhanced target cascade user representation;

[0019] S3: Sort the predicted probabilities of all users participating in the target cascade forwarding, and then determine the next target user of the target cascade propagation.

[0020] Preferably, a hypergraph neural network is used to learn the overall dependency between users and cascades according to the cascade hypergraph, and a corresponding user representation sequence and cascade representation sequence are generated;

[0021] 1) Calculate the aggregation of nodes to edges in the cascade hypergraph as the cascade representation, and then stack all the cascade representations to generate a cascade representation sequence

[0022] The formula is described as:

[0023] e m =AGG node (u i |u i ∈c m );

[0024] Where: e m Represents the aggregation of nodes to edges in a cascade hypergraph, i.e., cascade representation; AGG node Represents an aggregation function from node to edge, which is used to aggregate all user information from the current cascade;

[0025] 2) Calculate the aggregation of edges to nodes in the cascaded hypergraph as user representation, and then stack all user representations to generate a user representation sequence

[0026] The formula is described as:

[0027] x i =AGG edge (e m |e m ∈E);

[0028] Where: x i Represents the aggregation of edges to nodes in the cascaded hypergraph, i.e., user representation; AGG edge (.) represents an edge-to-node aggregation function, which is used to aggregate the representations of the same user in different cascades.

[0029] Preferably, for the dynamic friendship forwarding graph G D The subgraph at the current timestamp t Learning subgraphs with multi-layer graph neural networks The representation of each node in is used as the user feature representation at the current timestamp t Then timestamp t and user features are represented as Stored in Md in the form of key-value pairs;

[0030] The formula is described as:

[0031]

[0032] Where: Md represents the storage module; Represents the subgraph The user feature representation learned by the L-th layer graph neural network at the t-th timestamp; t′ corresponds to the maximum timestamp of the interaction occurring in the t-th timestamp interval.

[0033] Preferably, for the target cascade Get the user representations related to the target cascade from the user representation sequence, sort them according to the order of each user representation in the original cascade, and generate a hypergraph representation of the target cascade

[0034] Preferably, for the target cascade Obtain user feature representations related to the target cascade from the user feature representation sequence, and then generate a dynamic representation of the target cascade based on all the obtained user feature representations

[0035] Preferably, the hypergraph representation and the dynamic representation of the target cascade are fused to generate a user representation sequence of the target cascade;

[0036] The formula is described as:

[0037]

[0038]

[0039]

[0040] Where: X c A sequence of user representations representing the target cascade; A hypergraph representation of the target cascade; Dynamic representation of the target cascade; and are two different trainable weights; σ is the activation function; α and β represent the learning weights used to balance the contribution of user representations learned in the cascaded hypergraph and the dynamic friendship forwarding graph, respectively.

[0041] Preferably, the best matching prototype representation is selected by the following steps:

[0042] S2061: Obtain k prototypes according to the cascade representation sequence through a clustering algorithm to form a prototype sequence;

[0043] The formula is described as:

[0044] C p =Clustering(X E );

[0045] Where: represents a prototype sequence consisting of k prototypes; Clustering(.) represents the clustering function; X E Represents a cascade representation sequence;

[0046] S2062: Perform average pooling on the target cascade user representation sequence to obtain the target cascade average user representation;

[0047] The formula is described as:

[0048]

[0049] Where: represents the target cascade average user representation; Mean_Pooling represents the average pooling operation; X c A sequence of user representations representing the target cascade;

[0050] S2063: Calculate the similarity between the target cascade average user representation and each prototype in the prototype sequence to obtain a similarity score for each prototype;

[0051] The formula is described as:

[0052]

[0053] Where: represents the similarity score vector of all prototypes; sim(.) represents the similarity function; represents the target cascade average user representation; Represents the prototype sequence C p The i-th prototype in ;

[0054] S2064: taking the prototype with the largest similarity score as the optimal prototype of the target cascade, and obtaining the most matching prototype representation;

[0055] The formula is described as:

[0056] o=Index Max(score) ;

[0057]

[0058] Where: c p The best matching prototype representation of the target cascade; Index Max(.) Indicates the index value where the maximum value is found in the similarity score vector.

[0059] Preferably, the most matching prototype representation of the target cascade is fused with each user representation in the user representation sequence of the target cascade to obtain a prototype-enhanced user representation Then stack all prototype-enhanced user representations Get the target cascade user representation after prototype enhancement

[0060] The formula is described as:

[0061]

[0062] Where: represents the i-th user representation enhanced by the prototype; represents the i-th user representation in the target cascade user representation sequence; c p Represents the best matching prototype representation of the target cascade.

[0063] Preferably, the predicted probability of a user participating in the target cascade forwarding is generated by the following steps:

[0064] S2081: Input the prototype-enhanced target cascade user representation into a feed-forward neural network to generate a final prediction representation;

[0065] The formula is described as:

[0066] X' z =W2σ(W1X z +b1)+b2;

[0067] Where: X' z represents the final prediction representation; X z The target cascade user representation after the prototype enhancement is represented; and is a trainable parameter; σ is the ReLu nonlinear activation function;

[0068] S2082: Calculate the predicted probability of the user participating in the target cascade forwarding through the final predicted representation;

[0069] The formula is described as:

[0070]

[0071] Where: Indicates the predicted probability of the user participating in the target cascade forwarding; MASK m Used to block users who have been activated before prediction, that is, if user u i Participated in target cascade c in step j m ,but otherwise

[0072] Preferably, when training the information propagation prediction model, the model parameters are optimized by using the following cross entropy loss as the model loss;

[0073]

[0074] Where: L(θ) represents the model loss of the information propagation prediction model; θ represents all the parameters that need to be learned in the model; Represents user u i The predicted probability of participating in the target cascade forwarding; y ji Represents user u i Whether to participate in the target cascade forwarding, if user u i Participated in target cascade c in step j m , then y ji =1, otherwise y ji =0.

[0075] Compared with the prior art, the information propagation prediction method based on prototype-aware dual-channel graph neural network in the present invention has the following beneficial effects:

[0076] The present invention learns the representation of users and cascades and user forwarding preferences of different granularities through cascade hypergraphs and dynamic friendship forwarding graphs, respectively, so that the user dynamic preferences and the dependencies between cascades can be modeled at the same time. Among them, the use of cascade hypergraphs to learn user representations can capture the hierarchical structure and causal relationship between users, and better understand the behavior patterns and roles of users in the information dissemination process. At the same time, the cascade hypergraph takes into account the global structure of information dissemination, rather than just local nodes and edges, which helps us better understand the process and laws of information dissemination and better predict the spread and impact of information. At the same time, through the dynamic friendship forwarding graph, the forwarding behavior and preferences between users can be analyzed. For each node (user), the characteristics and laws of its forwarding behavior can be analyzed, so as to better understand its role and influence in information dissemination. In summary, by learning the representation of users and cascades and user forwarding preferences at different granularities through cascade hypergraphs and dynamic friendship forwarding graphs, we can better understand user behavior and information dissemination laws, effectively consider the dynamic sequence of forwarding and the dynamic representation of cascades, better mine the global dependency of users on cascades, improve the predictive ability and reliability of neural network models, and provide visual analysis and interpretability, thereby improving the comprehensiveness and accuracy of information dissemination predictions.

[0077] The present invention fuses the hypergraph representation and dynamic representation of the target cascade, and assists in finding the prototype representation that best matches the target cascade based on the fused user representation, and then enhances the user representation of the target cascade through the prototype representation, that is, the learned cascade representation is effectively integrated into each user representation through the prototype representation, rather than simply fusing the cascade representation directly with the user representation, thereby further improving the accuracy of information propagation prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to make the purpose, technical solution and advantages of the invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:

[0079] Figure 1 This is the logic block diagram of the information propagation prediction method based on prototype-aware dual-channel graph neural network;

[0080] Figure 2 This is a network structure diagram of the information diffusion prediction model;

[0081] Figure 3 is the effect of cascade length;

[0082] Figure 4 is the influence of the hyperparameter T. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but only represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.

[0084] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In the description of the present invention, it should be noted that the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invention product is usually placed when used, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. In addition, the terms "horizontal", "vertical", etc. do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted. In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0085] The following is a further detailed description through specific implementation methods:

[0086] Example:

[0087] This embodiment discloses an information propagation prediction method based on a prototype-aware dual-channel graph neural network.

[0088] like Figure 1 As shown, the information propagation prediction method based on prototype-aware dual-channel graph neural network includes:

[0089] S1: Obtain the target cascade and the constructed dynamic friendship forwarding graph and cascade hypergraph as the information to be predicted;

[0090] In this embodiment, the dynamic friendship forwarding graph and the cascade hypergraph are both existing concepts in the information propagation prediction task.

[0091] 1) A dynamic friendship forwarding graph is a visual graph that shows the propagation path and influence range of information in social networks. The graph is usually composed of nodes (representing users) and edges (representing the interactive relationship between users). Different colors and shapes are used to distinguish different types of users (such as ordinary users, influential users, etc.) and different types of edges (such as follow, forward, comment, etc.). The dynamic friendship forwarding graph can reflect the propagation dynamics of information in social networks and help us better understand the laws of information propagation and the interactive behavior between users.

[0092] 2) Cascading hypergraph is a data structure used to represent complex network structures. It can describe the hierarchical relationship between multiple nodes and edges. In the task of information propagation prediction, cascading hypergraph can be used to represent the hierarchical structure in the information propagation process, for example, information propagates from one node to another node, then to the next node, and so on. Cascading hypergraph can contain multiple levels, each level consists of multiple nodes and edges, and the relationship between nodes can be represented by edges. Cascading hypergraphs are often used to describe the hierarchical structure and causal relationship in the process of information propagation, which can help us better understand the path and scope of information propagation.

[0093] S2: Input the information to be predicted into the information propagation prediction model (hereinafter also referred to as PDGCN), and output the predicted probability of the user participating in the target cascade forwarding;

[0094] In this embodiment, the user set: U = {u1, u2, ..., u I},|U|=I, the detailed definitions of the key concepts in PDGCN are given as follows:

[0095] 1) Diffusion cascade sequence: is a cascade (tuple) An ordered sequence of Indicates that user u forwarded information m, represents the time of forwarding information m, and t i <t i+1 .

[0096] 2) Dynamic friendship forwarding graph: For the historical diffusion cascade C = {c1, c2, ..., c M},|C|=M, divide it into T subsets based on the timestamp to construct T subgraphs. For each subgraph The friendship relationship and forwarding relationship between users are used to construct edges. That is, when there is a friendship relationship or a forwarding relationship between two users, there is an edge connecting the two users.

[0097] 3) Cascade Hypergraph: For historical diffusion cascades, each cascade is regarded as a hyperedge, and the nodes of each hyperedge are users who participated in the cascade. Therefore, the cascade hypergraph is represented as G H=(U,E), where U is the user level and E represents the hyperedge.

[0098] 3) Task definition: Given a dynamic friendship forwarding graph G D and a cascaded hypergraph G H The model will output a prediction function that infers that user u i In the next step, participate in m Possibility And find the next infected user by sorting the infection probabilities of all candidate users.

[0099] Combination Figure 2 As shown in Figure 2, the processing steps of the information propagation prediction model are as follows:

[0100] S201: learning the overall representation of users and cascades through cascade hypergraphs to generate user representation sequences and cascade representation sequences;

[0101] S202: learning user forwarding preferences at different granularities through a dynamic friendship forwarding graph and generating a user feature representation sequence;

[0102] S203: acquiring user representations related to the target cascade from the user representation sequence, and generating a hypergraph representation of the target cascade;

[0103] S204: acquiring user feature representations related to the target cascade from the user feature representation sequence, and generating a dynamic representation of the target cascade;

[0104] S205: Fusing the hypergraph representation and the dynamic representation of the target cascade to generate a user representation sequence of the target cascade;

[0105] S206: Generate a prototype sequence according to the cascade representation sequence, and select the best matching prototype representation from the prototype sequence according to the target cascade user representation sequence;

[0106] S207: Fusing the most matching prototype representation of the target cascade with the user representation sequence to generate a prototype-enhanced target cascade user representation;

[0107] S208: Calculate the predicted probability of the user participating in the target cascade forwarding through the prototype-enhanced target cascade user representation;

[0108] S3: Sort the predicted probabilities of all users participating in the target cascade forwarding, and then determine the next target user of the target cascade propagation.

[0109] The present invention learns the representation of users and cascades and user forwarding preferences of different granularities through cascade hypergraphs and dynamic friendship forwarding graphs, respectively, so that the user dynamic preferences and the dependencies between cascades can be modeled at the same time. Among them, the use of cascade hypergraphs to learn user representations can capture the hierarchical structure and causal relationship between users, and better understand the behavior patterns and roles of users in the information dissemination process. At the same time, the cascade hypergraph takes into account the global structure of information dissemination, rather than just local nodes and edges, which helps us better understand the process and laws of information dissemination and better predict the spread and impact of information. At the same time, through the dynamic friendship forwarding graph, the forwarding behavior and preferences between users can be analyzed. For each node (user), the characteristics and laws of its forwarding behavior can be analyzed, so as to better understand its role and influence in information dissemination. In summary, by learning the representation of users and cascades and user forwarding preferences at different granularities through cascade hypergraphs and dynamic friendship forwarding graphs, we can better understand user behavior and information dissemination laws, effectively consider the dynamic sequence of forwarding and the dynamic representation of cascades, better mine the global dependency of users on cascades, improve the predictive ability and reliability of neural network models, and provide visual analysis and interpretability, thereby improving the comprehensiveness and accuracy of information dissemination predictions.

[0110] The present invention fuses the hypergraph representation and dynamic representation of the target cascade, and assists in finding the prototype representation that best matches the target cascade based on the fused user representation, and then enhances the user representation of the target cascade through the prototype representation, that is, the learned cascade representation is effectively integrated into each user representation through the prototype representation, rather than simply fusing the cascade representation directly with the user representation, thereby further improving the accuracy of information propagation prediction.

[0111] Experiments on four public datasets show that the model proposed in this invention outperforms the existing baseline model and has the best performance.

[0112] In the specific implementation process, the hypergraph can effectively learn the overall dependency between users and cascades, so we will use the hypergraph neural network (HGCN) to learn the overall dependency between users and cascades and generate the corresponding user representation sequence and cascade representation sequence;

[0113] 1) Calculate the aggregation of nodes to edges in the cascade hypergraph as the cascade representation, and then stack all the cascade representations to generate a cascade representation sequence

[0114] The formula is described as:

[0115] e m =AGG node (u i |u i ∈c m );

[0116] Where: e m Represents the aggregation of nodes to edges in a cascade hypergraph, i.e., cascade representation; AGG node Represents an aggregation function from node to edge, which is used to aggregate all user information from the current cascade;

[0117] 2) Calculate the aggregation of edges to nodes in the cascaded hypergraph as user representation, and then stack all user representations to generate a user representation sequence

[0118] The formula is described as:

[0119] x i =AGG edge (e m |e m ∈E);

[0120] Where: x i Represents the aggregation of edges to nodes in the cascaded hypergraph, i.e., user representation; AGG edge (.) represents an edge-to-node aggregation function, which is used to aggregate the representations of the same user in different cascades.

[0121] In the specific implementation process, for the dynamic friendship forwarding graph G D The subgraph at the current timestamp t Learning subgraphs with multi-layer graph neural networks The representation of each node in is used as the user feature representation at the current timestamp t After learning the representation of user internal nodes at different time intervals, the timestamp t and user feature representation Stored in Md in the form of key-value pairs;

[0122] The formula is described as:

[0123]

[0124] Where: Md represents the storage module; Represents the subgraph In the Lth layer of the graph neural network, i The learned user feature representation in timestamps; t′ corresponds to the maximum timestamp of the interaction that occurred in the t-th timestamp interval; where T is the total number of intervals, and the key-value pairs are stored in chronological order;

[0125] Among them, the rules of layered propagation of multi-layer graph neural network are expressed as:

[0126]

[0127] Where: It is obtained by random initialization of normal distribution, which represents the user feature representation after initialization; and Sub-graphs The degree matrix and adjacency matrix of ; and It means two matrices plus self-loops respectively; is a learnable parameter matrix.

[0128] In the specific implementation, after the above steps, we obtain user representations from different friendship forwarding graphs and cascade hypergraphs at different time intervals. In order to emphasize the representation interaction in the cascade, we further represent the target cascade by looking up the two user representations embedded in the module from the above two tables respectively instead of directly using the last active user.

[0129] 1) For target cascade Ignore the time information in the target cascade, directly obtain the user representations related to the target cascade from the user representation sequence, and sort them according to the order of each user representation in the original cascade. In this search, we ignore the timestamp information and generate a hypergraph representation of the target cascade.

[0130] 2) For target cascade According to the time information, the user feature representation related to the target cascade is obtained from the user feature representation sequence, and then the dynamic representation of the target cascade is generated according to all the obtained user feature representations.

[0131] When obtaining user feature representation from the user feature representation sequence, in order to avoid information leakage, find the most recent timestamp representation of the user participating in the forwarding of cascade information m: user u i In time Participated in the forwarding of cascade information m, compared and the size of the key t′ in Md, if and Then user u i The embedding is represented by user features Obtained from.

[0132] In the specific implementation process, for the two current cascade representations obtained by the search, we use an adaptive gating network to fuse the two representations to obtain the current cascade representation. That is, the hypergraph representation and dynamic representation of the target cascade are fused to generate the user representation sequence of the target cascade;

[0133] The formula is described as:

[0134]

[0135]

[0136]

[0137] Where: X c A sequence of user representations representing the target cascade; A hypergraph representation of the target cascade; Dynamic representation of the target cascade; and are two different trainable weights; σ is the activation function; α and β represent the learning weights used to balance the contribution of user representations learned in the cascaded hypergraph and the dynamic friendship forwarding graph, respectively.

[0138] During the optimization process, based on rich supervisory signals, the model can automatically distinguish the importance of the two representations.

[0139] In the specific implementation, the prototype is used as the centroid of the cluster formed by similar cascade representations, so we first perform a clustering algorithm to find the prototype. The best matching prototype representation is selected by the following steps:

[0140] S2061: Obtain k prototypes according to the cascade representation sequence through a clustering algorithm to form a prototype sequence;

[0141] The formula is described as:

[0142] C p =Clustering(X E );

[0143] Where: represents a prototype sequence consisting of k prototypes; Clustering(.) represents the clustering function; X E Represents a cascade representation sequence;

[0144] S2062: Perform average pooling on the target cascade user representation sequence to obtain the target cascade average user representation;

[0145] The formula is described as:

[0146]

[0147] Where: represents the target cascade average user representation; Mean_Pooling represents the average pooling operation; X c A sequence of user representations representing the target cascade;

[0148] S2063: Calculate the similarity between the target cascade average user representation and each prototype in the prototype sequence to obtain a similarity score for each prototype;

[0149] The formula is described as:

[0150]

[0151] Where: represents the similarity score vector of all prototypes; sim(.) represents the similarity function; represents the target cascade average user representation; Represents the prototype sequence C p The i-th prototype in ;

[0152] S2064: taking the prototype with the largest similarity score as the optimal prototype of the target cascade, and obtaining the most matching prototype representation;

[0153] The formula is described as:

[0154] o=Index Max(score) ;

[0155]

[0156] Where: c p The best matching prototype representation of the target cascade; Index Max(.) Indicates the index value where the maximum value is found in the similarity score vector.

[0157] In the specific implementation process, the most matching prototype representation of the target cascade is fused with each user representation in the user representation sequence of the target cascade to obtain the prototype-enhanced user representation Then stack all prototype-enhanced user representations Get the target cascade user representation after prototype enhancement

[0158] The formula is described as:

[0159]

[0160] Where: represents the i-th user representation enhanced by the prototype; represents the i-th user representation in the target cascade user representation sequence; c p Represents the best matching prototype representation of the target cascade.

[0161] In the specific implementation process, the predicted probability of a user participating in the target cascade forwarding is generated through the following steps:

[0162] S2081: Input the prototype-enhanced target cascade user representation into a feed-forward neural network to generate a final prediction representation;

[0163] The formula is described as:

[0164] X' z =W2σ(W1Xz +b1)+b2;

[0165] Where: X' z represents the final prediction representation; X z The target cascade user representation after the prototype enhancement is represented; and is a trainable parameter; σ is the ReLu nonlinear activation function;

[0166] S2082: Calculate the predicted probability of the user participating in the target cascade forwarding through the final predicted representation;

[0167] The formula is described as:

[0168]

[0169] Where: Indicates the predicted probability of the user participating in the target cascade forwarding; MASK m Used to block users who have been activated before prediction, that is, if user u i Participated in target cascade c in step j m ,but otherwise

[0170] In the specific implementation process, when training the information propagation prediction model, the following cross entropy loss is used as the model loss to optimize the model parameters;

[0171]

[0172] Where: L(θ) represents the model loss of the information propagation prediction model; θ represents all the parameters that need to be learned in the model; Represents user u i The predicted probability of participating in the target cascade forwarding; y ji Represents user u i Whether to participate in the target cascade forwarding, if user u i Participated in target cascade c in step j m , then y ji =1, otherwise y ji =0.

[0173] In order to better illustrate the advantages of the technical solution of the present invention, the following experiments are disclosed in this embodiment.

[0174] 1. Dataset

[0175] To evaluate the effectiveness of our proposed model, we conducted experiments on the following four datasets: two datasets based on social platforms, Twitter and Douban; and two datasets based on question-answering websites, Android and Christianity. The specific parts of these four datasets are shown in Table 1.

[0176] Twitter (from Hodas NO, Lerman K. The simple rules of social contagion) contains tweets sent during three weeks in the fall of 2010 with their corresponding diffusion paths and timestamps, and follows relationships as social links to create a social network.

[0177] Douban (from Zhong E, Fan W, Wang J, et al. Comsoc: adaptive transfer of user behaviors over composite social network) contains two subnetworks. One is an online social network focusing on interpersonal relationships. The other is collaboration in social gatherings, where users do the same thing at the same time, including behaviors in movies, music, and books.

[0178] Android and Christianity (from Sankar A, Zhang X, Krishnan A, et al. Inf-VAE: Avariational autoencoder framework to integrate homophily and influence indiffusion prediction) are collected from various topics on community question-and-answer websites. Social networks are formed by knowledge exchange between users through various interactive channels such as asking questions, answering, commenting, and liking. A cascade corresponds to a series of posts related to the same tag in chronological order.

[0179] Table 1 Dataset statistics

[0180]

[0181] 2. Baseline

[0182] We compare our model with the following information diffusion prediction models:

[0183] Deepdiffuse (from Islam MR, Muthiah S, Adhikari B, et al. Deepdiffuse: Predicting the'who'and'when' in cascades): uses RNN and GNN to jointly model the spatiotemporal characteristics of cascades, while learning the information transmission topology and focusing on the influence of social relationships between users.

[0184] Topo-LSTM (from Wang J, Zheng VW, Liu Z, et al. Topological recurrent neural network for diffusion prediction): introduces diffusion topological data to fully describe the cascade structure, and proposes a topological recurrent neural network for dynamic topological modeling.

[0185] NDM (from Yang C, Sun M, Liu H, et al. Neural diffusion model for microscopic cascade study): proposed a neural diffusion model for general microscopic cascade study. NDM uses loose assumptions and deep learning techniques, including attention mechanisms and convolutional networks, for cascade modeling.

[0186] SNIDSA (from Wang Z, Chen C, Li WA sequential neural information diffusion model with structure attention): discusses the sequential properties of the information diffusion process and the structural characteristics of the user connection graph. A recurrent neural network framework is used to model the sequential information, and an attention mechanism is used to capture the structural dependencies between users.

[0187] FOREST (from Yang C, Tang J, Sun M, et al. Multi-scale Information Diffusion Prediction with Reinforced Recurrent Networks): adopts a multi-scale diffusion prediction model based on reinforcement learning to integrate the macroscopic diffusion size information into the RNN-based microscopic diffusion model.

[0188] Inf-VAE (from Sankar A, Zhang X, Krishnan A, et al. Inf-VAE: A variational autoencoder framework to integrate homophily and influence in diffusion prediction): adopts a variational autoencoder framework to embed homophily and influence by keeping the proximity of social and position encoding temporal latent variables.

[0189] DyHGCN (from Yuan C, Li J, Zhou W, et al. DyHGCN: A dynamic heterogeneous graph convolutional network to learn users' dynamic preferences for information diffusion prediction): proposed a dynamic heterogeneous graph convolutional network to learn the structural features of social graphs and dynamic diffusion graphs.

[0190] MS-HGAT (from Sun L, Rao Y, Zhang X, et al. MS-HGAT: Memory-Enhanced Sequential Hypergraph Attention Network for Information Diffusion Prediction): Use a memory-enhanced sequential hypergraph attention network to dynamically capture user preferences and integrate them with user social graph representations.

[0191] Table 2 Hits@k scores of the model on four datasets (K=10, 50, 100)

[0192]

[0193] Table 3 MAP@k scores of the models on four datasets (K=10, 50, 100)

[0194]

[0195] 3. Implementation details and indicators

[0196] We implemented our model in PyTorch on an NVIDIA RTX 4070Ti GPU. For all datasets, we split the training, validation, and test sets in a ratio of 8:1:1. We used the Adam optimizer to optimize our model with a learning rate of 0.001. The batch size was set to 64, the embedding size was also set to 64, and the number of self-attention heads was set to 8. As for the number of timestamp partitions, after experiments, we finally divided the Twitter and Douban datasets into 8 time blocks; and divided the Android and Christianity datasets into 4 time blocks. For all graph learning in the model, the number of GCN layers is set to 2.

[0197] According to previous studies, this task is regarded as a retrieval task. The candidate set is obtained by predicting the propagation probability of all candidate users, and then sorted according to the predicted probability. Therefore, we have two evaluation indicators, namely the mean average precision on the top k (Map@k) and the top k recommendation score (Hits@k), where the value of k is k = [10, 50, 100]. All experiments are run 5 times under different random states, and the experimental results are based on the average score of the 5 experiments.

[0198] 4. Overall experimental comparison

[0199] We will compare our model with other baselines under the above four datasets, where the best performing results are indicated in bold. In addition, in order to verify statistical significance, this experiment uses a paired t-test to test the significance of the proposed model PDGCN and the previous optimal model MS-HGAT. When the p-value is less than 0.05 or 0.01, the difference is considered to be statistically significant. The "#" and "*" marks indicate that the results of the model of the present invention are significantly better than the baseline model MS-HGAT in the paired t-test (p-value <0.01 and p-value <0.05). The experimental results are shown in Tables 2 and 3.

[0200] The experimental results show that the performance of our proposed model is the best on all four datasets. First, compared with MS-HGAT and DyHGCN, which use various dynamic graphs, our model uses multiple friendship forwarding graphs based on timestamps to learn the representation of users in different links. It not only uses friendship relations to alleviate the sparsity problem of forwarding data, but also learns the dynamic preferences of users and uses prototypes to enhance the representation of the current cascade. This process fully exploits the relationship between cascades and users. Compared with MS-HGAT, the average scores of Hits@100 and MAP@100 are improved by 2.72% and 2.48%, respectively. Then, we compare these methods with those methods that use user social relations but do not use dynamic modeling (SNIDSA, FOREST, If-VAE). These models use the relations between social networks to model users, but only apply to the relations between users in a single cascade. Dynamic experiments show that modeling dynamically capturing user preferences is more conducive to prediction. Compared with these models, the average increase of Hits and MAP indexes of all datasets compared with FOREST is 15.98% and 14.39%, respectively. Finally, compared with DeepDiffuse, Topo-LSTM and NDM, which are based only on forwarding relationships without using friendship relationships, the effect of our model is significantly better than these models, which proves the effectiveness of friendship relationship prediction. Therefore, the above analysis proves that the improvement effect of our model is more obvious compared with the previous models.

[0201] 5. Comparison of Ablation Experiments

[0202] We conducted ablation experiments on our model on Twitter and Android datasets to analyze the impact of different sub-modules on the entire model. Specifically, the following variants are included in the experiment.

[0203] 1) w / o friendship forwarding graph: means we remove the friendship forwarding graph and only use the user representations learned in the cascaded hypergraph as the representation of the cascade.

[0204] 2) w / o cascaded hypergraph user representation: We remove the user representation in the cascaded hypergraph and only use the user representation learned in the friendship forwarding graph as the cascaded representation.

[0205] 3) w / o prototype fusion: means we remove the cascaded representation learned by the cascaded hypergraph, i.e., prototype-aware user search is not used.

[0206] from Figure 3The results show that the model is compared with various deformation models and obtains the best results, proving the rationality of the model design. In particular, when the friendship forwarding graph is removed, the performance of the model decreases significantly, which shows that this module plays a very important role. This is because our friendship forwarding graph not only contains the forwarding relationship, but also fills the forwarding relationship network with friendship relationships, so it can effectively

[0207] Learning forwarding preferences and alleviating data sparsity. After removing the hypergraph user representation, the model performance will drop significantly. This is because our hypergraph will learn the user representation by combining the relationship between cascades, which can effectively learn the user's participation relationship in all cascades. Finally, after removing the prototype fusion module, the performance of the model also drops to a certain extent. This is because for the cascade representation learned by the hypergraph, we use the prototype to aggregate the features of similar cascades to enhance the representation of the current cascade to be predicted.

[0208] Table 4 Ablation experiment

[0209]

[0210] 6. The influence of training set ratio and cascade length

[0211] In prediction, a good diffusion prediction model should have good performance under various scales of training data and should also have effective prediction under different lengths of cascades. Therefore, we conducted comparative experiments on Twitter and Android datasets with different training ratios and cascade lengths to further prove the effectiveness and advancement of the model. Figure 4 It can be seen that under different numbers of training sets, the performance of our model is higher than the baseline, which proves that our model has the best performance under a small number of training sets. This is because our model further fills the forwarding relationship with friendship relationships to alleviate the problem of data sparsity. In addition, the longer the cascade length, the more conducive it is to predict the cascade. Our model also achieves the best performance under different maximum cascade lengths because our model can effectively capture the dependency between the user and the entire cascade at the same time. Therefore, this experiment further illustrates the importance of the comparative learning module and the dynamic heterogeneous module.

[0212] 7. Impact of the number of timestamp partitions

[0213] In our DGCN, we split the friendship forwarding graph into T subgraphs according to the diffusion timeline, so the size of T may affect the performance of our model. When T is large, the friendship forwarding graph is divided into many blocks, and the model can learn more fine-grained changes in the forwarding dynamic graph. Through experiments, we can see that: (1) Learning the dynamic characteristics of the friendship forwarding graph is helpful for information diffusion prediction, because for the Twitter dataset, before T = 6, the performance will be significantly improved when T increases; and for the Android dataset, before T = 5, the performance is also better as T increases. (2) When T is too large, the performance improvement of both datasets is very limited. Therefore, based on the experimental results, we finally set T = 8 on the Twitter dataset and T = 4 on the Android dataset.

[0214] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.

Claims

1. The information propagation prediction method based on prototype-aware dual-channel graph neural network is characterized by: include: S1: Obtain the target cascade and the constructed dynamic friendship forwarding graph and cascade hypergraph as the information to be predicted; The dynamic friendship forwarding graph is a visual graph that is used to show the propagation path and influence range of information in social networks, reflecting the propagation dynamics of information in social networks. It consists of nodes and edges. Nodes represent users, and edges represent the interactive relationships between users. Cascade hypergraph is a data structure used to represent complex network structures. It is used to describe the hierarchical structure and causal relationship in the process of information dissemination. It contains multiple levels, each of which consists of multiple nodes and edges. The relationship between nodes is represented by edges. S2: Input the information to be predicted into the information propagation prediction model and output the predicted probability of the user participating in the target cascade forwarding; The processing steps of the information propagation prediction model are as follows: S201: learning the overall representation of users and cascades through cascade hypergraphs to generate user representation sequences and cascade representation sequences; S202: learning user forwarding preferences at different granularities through a dynamic friendship forwarding graph and generating a user feature representation sequence; S203: acquiring user representations related to the target cascade from the user representation sequence, and generating a hypergraph representation of the target cascade; S204: acquiring user feature representations related to the target cascade from the user feature representation sequence, and generating a dynamic representation of the target cascade; S205: Fusing the hypergraph representation and the dynamic representation of the target cascade to generate a user representation sequence of the target cascade; S206: Generate a prototype sequence according to the cascade representation sequence, and select the best matching prototype representation from the prototype sequence according to the target cascade user representation sequence; S207: Fusing the most matching prototype representation of the target cascade with the user representation sequence to generate a prototype-enhanced target cascade user representation; S208: Calculate the predicted probability of the user participating in the target cascade forwarding through the prototype-enhanced target cascade user representation; S3: Sort the predicted probabilities of all users participating in the target cascade forwarding, and then determine the next target user of the target cascade propagation.

2. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 1, characterized in that: In step S201, a hypergraph neural network is used to learn the overall dependency between users and cascades according to the cascade hypergraph, and a corresponding user representation sequence and cascade representation sequence are generated; 1) Calculate the aggregation of nodes to edges in the cascade hypergraph as the cascade representation, and then stack all the cascade representations to generate a cascade representation sequence The formula is described as: yes m =AGG node (in i |in i ∈c m ); Where: e m Represents the aggregation of nodes to edges in a cascade hypergraph, i.e., cascade representation; AGG node Represents an aggregation function from node to edge, which is used to aggregate all user information from the current cascade; 2) Calculate the aggregation of edges to nodes in the cascaded hypergraph as user representation, and then stack all user representations to generate a user representation sequence The formula is described as: x i =AGG edge (And m |and m ∈E); Where: x i Represents the aggregation of edges to nodes in the cascaded hypergraph, i.e., user representation; AGG edge (.) represents an edge-to-node aggregation function, which is used to aggregate the representations of the same user in different cascades.

3. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 2, characterized in that: In step S202, for the dynamic friendship forwarding graph G D The subgraph at the current timestamp t Learning subgraphs with multi-layer graph neural networks The representation of each node in is used as the user feature representation at the current timestamp t Then timestamp t and user features are represented as Stored in Md in the form of key-value pairs; The formula is described as: Where: Md represents the storage module; Represents the subgraph The user feature representation learned by the L-th layer graph neural network at the t-th timestamp; t′ corresponds to the maximum timestamp of the interaction occurring in the t-th timestamp interval.

4. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 1, characterized in that: In step S203, for the target cascade Ignore the time information in the target cascade, directly obtain the user representations related to the target cascade from the user representation sequence, and sort them according to the order of each user representation in the original cascade to generate a hypergraph representation of the target cascade 5. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 1, characterized in that: In step S204, for the target cascade According to the time information, the user feature representation related to the target cascade is obtained from the user feature representation sequence, and then the dynamic representation of the target cascade is generated according to all the obtained user feature representations.

6. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 5, characterized in that: In step S205, the hypergraph representation and the dynamic representation of the target cascade are fused to generate a user representation sequence of the target cascade; The formula is described as: Where: X c A sequence of user representations representing the target cascade; A hypergraph representation of the target cascade; Dynamic representation of the target cascade; and are two different trainable weights; σ is the activation function; α and β represent the learning weights used to balance the contribution of user representations learned in the cascaded hypergraph and the dynamic friendship forwarding graph, respectively.

7. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 1, characterized in that: In step S206, the best matching prototype representation is selected through the following steps: S2061: Obtain k prototypes according to the cascade representation sequence through a clustering algorithm to form a prototype sequence; The formula is described as: C p =Clustering(X E ); Where: represents a prototype sequence consisting of k prototypes; Clustering(.) represents the clustering function; X E Represents a cascade representation sequence; S2062: Perform average pooling on the target cascade user representation sequence to obtain the target cascade average user representation; The formula is described as: Where: represents the target cascade average user representation; Mean_Pooling represents the average pooling operation; X c A sequence of user representations representing the target cascade; S2063: Calculate the similarity between the target cascade average user representation and each prototype in the prototype sequence to obtain a similarity score for each prototype; The formula is described as: Where: represents the similarity score vector of all prototypes; sim(.) represents the similarity function; represents the target cascade average user representation; Represents the prototype sequence C p The i-th prototype in ; S2064: taking the prototype with the largest similarity score as the optimal prototype of the target cascade, and obtaining the most matching prototype representation; The formula is described as: o=Index Max(score) ; Where: c p The best matching prototype representation of the target cascade; Index Max(.) Indicates the index value where the maximum value is found in the similarity score vector.

8. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 1, characterized in that: In step S207, the most matching prototype representation of the target cascade is fused with each user representation in the user representation sequence of the target cascade to obtain a prototype-enhanced user representation. Then stack all prototype-enhanced user representations Get the target cascade user representation after prototype enhancement The formula is described as: Where: represents the i-th user representation enhanced by the prototype; represents the i-th user representation in the target cascade user representation sequence; c p Represents the best matching prototype representation of the target cascade.

9. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 1, characterized in that: In step S208, the predicted probability of the user participating in the target cascade forwarding is generated through the following steps: S2081: Input the prototype-enhanced target cascade user representation into a feed-forward neural network to generate a final prediction representation; The formula is described as: X' z =W2σ(W1X z +b1)+b2; Where: X' z represents the final prediction representation; X z The target cascade user representation after the prototype enhancement is represented; and is a trainable parameter; σ is the ReLu nonlinear activation function; S2082: Calculate the predicted probability of the user participating in the target cascade forwarding through the final predicted representation; The formula is described as: Where: Indicates the predicted probability of the user participating in the target cascade forwarding; MASK m Used to block users who have been activated before prediction, that is, if user u i Participated in target cascade c in step j m ,but otherwise 10. The information propagation prediction method based on prototype-aware dual-channel graph neural network according to claim 1, characterized in that: When training the information propagation prediction model, the model parameters are optimized by using the following cross entropy loss as the model loss; Where: L(θ) represents the model loss of the information propagation prediction model; θ represents all the parameters that need to be learned in the model; Represents user u i The predicted probability of participating in the target cascade forwarding; y ji Represents user u i Whether to participate in the target cascade forwarding, if user u i Participated in target cascade c in step j m , then y ji =1, otherwise y ji =0.