False news detection method for enhancing heterogeneous graph attention network
By enhancing the heterogeneous graph attention network, using pre-training models and double-layer attention mechanisms, combined with sub-graph neural networks and self-supervised mutual information mechanisms, the problem of metadata being ignored and multi-dimensional information underutilization in fake news detection is solved. , achieving more efficient fake news detection.
Patent Information
- Application Number
- CN202410792169.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-24
AI Technical Summary
Existing fake news detection methods ignore the important value of news metadata when processing plain text data, and are difficult to make full use of multi-dimensional information, resulting in unsatisfactory detection results. Especially in social network environments, traditional methods are difficult to adapt to.
The enhanced heterogeneous graph attention network is used to extract text features through pre-training models, establish heterogeneous graphs, introduce a double-layer attention mechanism and subgraph neural network, combine the attention mechanism and self-supervised mutual information mechanism, and build a hypergraph to achieve better results. Accurate fake news detection.
This method can more comprehensively reflect the complexity of news data, enhance the understanding of news relationships, improve the accuracy of false news detection, and retain more global attribute information through a self-supervised mutual information mechanism to improve detection results.
Smart Images

Figure CN118690273A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing and graph neural network, and specifically to a fake news detection method that enhances heterogeneous graph attention networks. Background Art
[0002] In recent years, the popularity and rapid development of the Internet and social media have brought unprecedented convenience to people's information acquisition. However, with the acceleration of information dissemination, the widespread dissemination of false news has become a social problem that needs to be solved urgently. False news not only misleads the public and causes social panic, but also may affect public decision-making, economic stability, etc., and have far-reaching negative effects. Therefore, how to effectively detect false news has become a hot topic and difficulty in current research.
[0003] Existing fake news detection methods mainly include detection methods based on text features, propagation paths, and sentiment information. However, when processing pure text data, these methods often ignore the important value of news metadata (such as the author, release time, source, etc. of the news), which can provide background information of the news and play an important role in judging the authenticity of the news. In addition, most existing studies focus on the attributes of a single text to construct an overall representation, while ignoring the potential connections between related texts, which can reveal the patterns and laws of news in the process of dissemination.
[0004] In the era of social networks, the massive, dynamic, sparse, multi-dimensional heterogeneous, uncertain, and nonlinear characteristics of data make it difficult for traditional methods to adapt to the information processing needs of the current social network environment. Especially in the field of fake news detection, only considering single-class features or simple feature combinations cannot fully utilize the multi-dimensional information of news, resulting in unsatisfactory detection results.
[0005] Therefore, a fake news detection method based on enhanced heterogeneous graph attention network is invented to overcome the limitations of the existing technology and achieve more accurate and effective fake news detection. Summary of the invention
[0006] In view of the above-mentioned and / or existing problems in the fake news detection method of enhancing heterogeneous graph attention network, the present invention is proposed.
[0007] Therefore, the purpose of the present invention is to provide a fake news detection method for enhancing heterogeneous graph attention network, which can solve the above-mentioned existing problems.
[0008] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:
[0009] The fake news detection method based on enhanced heterogeneous graph attention network includes the following specific steps:
[0010] S1: After preprocessing the text data, the pre-trained model and natural language processing method are used to extract features and analyze relationships of short text data. The semantic richness of short text is significantly enhanced through prompt learning driven by the pre-trained model.
[0011] S2: Based on the relationship between short texts and their attached multi-information, a heterogeneous graph is established to highlight the relationship between texts and their attached multi-information, providing sufficient information for the fake news detection task;
[0012] S3: Introducing a two-layer heterogeneous graph attention network to assign specific weights to heterogeneous nodes and relationships, enabling the model to evaluate the importance of information and achieve refined processing of complex information networks;
[0013] S4: Use subgraph neural networks to deeply mine and reconstruct key information and significant patterns in the graph, and deepen the understanding of the internal connections of the graph structure;
[0014] S5: Combining the attention mechanism with the self-supervised mutual information mechanism, we construct a hypergraph and learn sub-graph-level feature representation to achieve more accurate fake news detection tasks.
[0015] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, the pre-trained model in S1 is BERT, and the pre-trained BERT's powerful ability to understand text is used to extract features from short text data.
[0016] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, wherein: the feature extraction includes topic features and identity features.
[0017] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, the natural language processing method in S1 is the TagMe entity linking tool and the Word2vec model based on the Wikipedia corpus, and the identified entities are mapped to the corresponding entries in Wikipedia through TagMe, and the representation of the entities is learned through Word2vec.
[0018] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, the prompt learning method in S1 utilizes the powerful text prediction ability of the BERT model, through a specific discrete prompt template in the form of: "News text + Here is a piece of news with [mask] information.", where [mask] represents a mask tag, and converts the original text classification task into a text category prediction task, that is, predicting the probability of a specific [mask] position being False and True.
[0019] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, wherein: the method for constructing the heterogeneous graph in S2 is: the graph is represented as where D = d1, ..., d m Represents a set of short text nodes, T = t1,...,t k Represents the set of subject nodes, E=e1,...,e n Represents a set of entity nodes, P = p1,...,p l represents the set of identity nodes, T = t1,...,t l represents the classification set obtained by prompt learning, so V = D∪T∪E∪P∪T, and is the edge set between all nodes, and the adjacency matrix A of the heterogeneous graph G is introduced, and the self-connection matrix I is added on this basis, that is, A′=A+I.
[0020] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, the specific process of S3 is as follows:
[0021] S31: In order to consider the role of different types in the propagation process, a type-level attention mechanism is used to integrate the combined influence of multiple nodes of the same type: a specific node v is selected and its type τ is determined. According to the type information of the node, its type vector is calculated. The formula is as follows:
[0022] h τ =∑ v′ A v ' v′ h v′
[0023] The node v′ is the node of all types τ in the whole graph, and h v′ is the feature vector of node v′, which not only reflects the characteristics of the node itself, but also incorporates the influence of adjacent nodes of the same type as the node;
[0024] S32: Calculate the feature vector h based on the current node v and type vector h τ To calculate the type-level attention score:
[0025]
[0026] in is an attention vector of type τ, || means vector concatenation, and σ(·) represents the activation function;
[0027] S33: The type-level attention weights are obtained by normalizing all types of attention scores using the softmax function:
[0028]
[0029] S34: In order to consider the importance of adjacent nodes of different categories and reduce the weight of noise nodes, assume that a specific node v, whose category is τ and its adjacent nodes of different types v′, whose type is τ′, then combine the node’s feature vector h v and h v′ and the attention weight α of type τ′ τ′ , calculate the node-level attention coefficient, the formula is as follows:
[0030] b vv′ =σ(W T α τ′ [h v ||h v′ ])
[0031] Among them, W T is the attention vector;
[0032] S35: Normalize the node-level attention scores using the softmax function:
[0033]
[0034] S36: Based on the weighted fusion of the two-layer attention weight coefficients, a more accurate node representation is obtained:
[0035]
[0036] Among them, B τ Represents the attention matrix, the element in the vth row and v′ column is β vv′ , represents a specific attention weight.
[0037] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, the specific process of S4 is as follows:
[0038] S41: After sorting all nodes in the graph in descending order according to a certain standard, each node is selected as a central node in turn;
[0039] S42: for the selected central node v, a breadth-first search algorithm is used to extract a subgraph, and each node adjacent to the text node is included in the subgraph;
[0040] S43: In order to ensure that the size and complexity of the subgraphs are within a controllable range, an upper limit value s is set, and the subgraphs in each subgraph set must not exceed this preset value s;
[0041] S44: Introduce an encoder based on graph neural network to integrate the attribute information of the node with the graph structure information, so as to ensure the accuracy and reliability of the node representation. The specific formula is as follows:
[0042] H(g i )=ε(g i )={h j |v j ∈g i}
[0043]
[0044] Where M(·) represents the message generation function, AGG(·) represents the aggregation function, and U(·) represents the state update function;
[0045] S45: Introduce an attention mechanism within the subgraph, which accurately captures the relative importance of nodes by assigning independent weights to different nodes, and generates a higher-dimensional subgraph feature representation. The specific formula is as follows:
[0046]
[0047] in is the attention coefficient, indicating that node v j For the subgraph G i importance, is the weight matrix, is the weight vector, σ(·) is the softmax function;
[0048] S46: Calculate the representation subgraph G i The eigenvector z i , the formula is as follows:
[0049]
[0050] As a preferred solution of the fake news detection method of the enhanced heterogeneous graph attention network described in the present invention, the specific process of S5 is as follows:
[0051] S51: With all text nodes as the center, the nodes adjacent to them together form a super node. When the number of common nodes between two super nodes exceeds the established threshold b com When we create an edge e i,j Connect two super nodes and finally reconstruct the original graph into a hypergraph G′=(V′,E′). The specific formula is as follows:
[0052]
[0053] S52: Node V i′ and V j The attention coefficient α between ′ ij Calculated by the multi-head attention mechanism, the formula for calculating the subgraph feature vector is:
[0054]
[0055] in, is the weight matrix, and M is the number of independent attentions;
[0056] S53: The subgraph embedding is converted into label prediction through the softmax function, and the classification result of the first subgraph to the graph is selected as the final probability distribution of the graph, where the index class with the maximum probability is the predicted graph label;
[0057] S54: Use the READOUT function to aggregate each subgraph vector into a vector of fixed length. The formula is:
[0058]
[0059] S55: Use the Jensen-Shannon mutual information estimator to process the local and global structure pairing in the graph. Introduce the discriminator D, which takes a subgraph / graph representation pair as input and determines whether it comes from the same graph. Maximize the mutual information value of the pairing on a given subgraph or the entire graph representation. The formula is:
[0060] D(z i ′,r)=σ(z i 'W MI r);
[0061] Where W MI is a rating matrix, and σ(·) is the sigmoid function;
[0062] S56: By representing the subgraphs from different large graphs G′ The self-supervised MI objective is defined as a standard binary cross entropy (BCE) loss by pairing it with the representation r from the graph G to generate negative samples:
[0063]
[0064] where n neg represents the number of negative samples, This is equivalent to maximizing the mutual information between z′ and r;
[0065] S57: Replace the classification loss L in the S56 formula Classify and MI loss Combined, we get the loss L of SUGAR-NORL, which is defined as follows:
[0066]
[0067] where β controls the coefficient of the self-supervised MI contribution, λ is the coefficient of the L2 regularization on Θ, and Θ is a set of trainable parameters in the framework.
[0068] Compared with existing technologies:
[0069] 1. The method of the present invention aims at the characteristics of short text false news detection, constructs a heterogeneous graph model that can fully reflect the complexity of news data, and fully considers the characteristics of various news metadata on the basis of integrating multiple types of nodes.
[0070] 2. The method of the present invention introduces a subgraph neural network into the fake news detection task to enhance the model's ability to recognize news relationships, thereby achieving a higher detection accuracy, and mining and analyzing the relationships between highly correlated news.
[0071] 3. In order to enhance the overall grasp of news data by the model, the method of the present invention introduces a self-supervised mutual information mechanism. By maximizing the mutual information between the local graph representation and the global graph representation, the subgraph representation is promoted to retain more global attribute information, thereby achieving a better understanding and analysis ability of the model for the entire news data. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a flow chart of the fake news detection method based on enhanced heterogeneous graph attention network of the present invention;
[0073] Figure 2 This is a diagram of the overall architecture of the model of the fake news detection method based on enhanced heterogeneous graph attention network of the present invention. DETAILED DESCRIPTION
[0074] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0075] The present invention provides a fake news detection method based on enhanced heterogeneous graph attention network, please refer to Figure 1-Figure 2 , including the following specific steps:
[0076] S1: After preprocessing the text data, the pre-trained model and natural language processing method are used to extract features and analyze relationships of short text data. The semantic richness of short text is significantly enhanced through prompt learning driven by the pre-trained model.
[0077] in:
[0078] The pre-trained model is BERT (Bidirectional Encoder Representations from Transformers). The pre-trained BERT has a strong ability to understand texts and is used to extract features from short text data. The feature extraction includes topic features and identity features.
[0079] The natural language processing method is the TagMe entity linking tool and the Word2vec model based on the Wikipedia corpus. TagMe is used to map the identified entities to the corresponding entries in Wikipedia, and Word2vec is used to learn the representation of the entities.
[0080] The prompt learning method uses the powerful text prediction ability of the BERT model. Through a specific discrete prompt template in the form of "news text + Here is a piece of news with [mask] information.", where [mask] represents the mask tag, the original text classification task is converted into a text category prediction task, that is, predicting the probability of a specific [mask] position being False and True.
[0081] S2: Based on the relationship between short texts and their attached multi-information, a heterogeneous graph is established to highlight the relationship between texts and attached multi-information, providing sufficient information for the fake news detection task;
[0082] Among them: The method of constructing a heterogeneous graph is: the graph is represented as where D = d1, ..., d m Represents a set of short text nodes, T = t1,...,t k Represents the set of subject nodes, E=e1,...,e n Represents a set of entity nodes, P = p1,...,p l represents the set of identity nodes, T = t1,...,t l represents the classification set obtained by prompt learning, so V = D∪T∪E∪P∪T, and is the edge set between all nodes, and introduces the adjacency matrix A of the heterogeneous graph G, and adds the self-connection matrix I on this basis, that is, A′=A+I;
[0083] S3: Introducing a two-layer heterogeneous graph attention network to assign specific weights to heterogeneous nodes and relationships, enabling the model to evaluate the importance of information and achieve refined processing of complex information networks;
[0084] Among them: The specific process of S3 is as follows:
[0085] S31: In order to consider the role of different types in the propagation process, a type-level attention mechanism is used to integrate the combined influence of multiple nodes of the same type: a specific node v is selected and its type τ is determined. According to the type information of the node, its type vector is calculated. The formula is as follows:
[0086] h τ =∑ v′ A v ' v′ h v′
[0087] The node v′ is the node of all types τ in the whole graph, and h v′ is the feature vector of node v′, which not only reflects the characteristics of the node itself, but also incorporates the influence of adjacent nodes of the same type as the node;
[0088] S32: Calculate the feature vector h based on the current node v and type vector h τ To calculate the type-level attention score:
[0089]
[0090] in is an attention vector of type τ, || means vector concatenation, and σ(·) represents the activation function;
[0091] S33: The type-level attention weights are obtained by normalizing all types of attention scores using the softmax function:
[0092]
[0093] S34: In order to consider the importance of adjacent nodes of different categories and reduce the weight of noise nodes, assume that a specific node v, whose category is τ and its adjacent nodes of different types v′, whose type is τ′, then combine the node’s feature vector h v and h v′ and the attention weight α of type τ′ τ′ , calculate the node-level attention coefficient, the formula is as follows:
[0094] b vv′ =σ(W T α τ′ [h v ||h v′ ])
[0095] Among them, W T is the attention vector;
[0096] S35: Normalize the node-level attention scores using the softmax function:
[0097]
[0098] S36: Based on the weighted fusion of the two-layer attention weight coefficients, a more accurate node representation is obtained:
[0099]
[0100] Among them, B τ Represents the attention matrix, the element in the vth row and v′ column is β vv′ , represents a specific attention weight;
[0101] S4: Use subgraph neural networks to deeply mine and reconstruct key information and significant patterns in the graph, and deepen the understanding of the internal connections of the graph structure;
[0102] Among them: The specific process of S4 is as follows:
[0103] S41: After sorting all nodes in the graph in descending order according to a certain standard, each node is selected as a central node in turn;
[0104] S42: for the selected central node v, a breadth-first search algorithm is used to extract a subgraph, and each node adjacent to the text node is included in the subgraph;
[0105] S43: In order to ensure that the size and complexity of the subgraphs are within a controllable range, an upper limit value s is set, and the subgraphs in each subgraph set must not exceed this preset value s;
[0106] S44: Introduce an encoder based on graph neural network to integrate the attribute information of the node with the graph structure information, so as to ensure the accuracy and reliability of the node representation. The specific formula is as follows:
[0107] H(g i )=ε(g i )={h j |v j ∈g i}
[0108]
[0109] Where M(·) represents the message generation function, AGG(·) represents the aggregation function, and U(·) represents the state update function;
[0110] S45: Introduce an attention mechanism within the subgraph, which accurately captures the relative importance of nodes by assigning independent weights to different nodes, and generates a higher-dimensional subgraph feature representation. The specific formula is as follows:
[0111]
[0112] in is the attention coefficient, indicating that node v j For the subgraph G i importance, is the weight matrix, is the weight vector, σ(·) is the softmax function;
[0113] S46: Calculate the representation subgraph G i The eigenvector z i , the formula is as follows:
[0114]
[0115] S5: Combining the attention mechanism with the self-supervised mutual information mechanism, we construct a hypergraph and learn subgraph-level feature representations to achieve more accurate fake news detection tasks;
[0116] Among them: The specific process of S5 is as follows:
[0117] S51: With all text nodes as the center, the nodes adjacent to them together form a super node. When the number of common nodes between two super nodes exceeds the established threshold b com When we create an edge e i,j Connect two super nodes and finally reconstruct the original graph into a hypergraph G′=(V′,E′). The specific formula is as follows:
[0118]
[0119] S52: Node V i ′ and V j The attention coefficient α between ′ ij Calculated by the multi-head attention mechanism, the formula for calculating the subgraph feature vector is:
[0120]
[0121] in, is the weight matrix, and M is the number of independent attentions;
[0122] S53: The subgraph embedding is converted into label prediction through the softmax function, and the classification result of the first subgraph to the graph is selected as the final probability distribution of the graph, where the index class with the maximum probability is the predicted graph label;
[0123] S54: Use the READOUT function to aggregate each subgraph vector into a vector of fixed length. The formula is:
[0124]
[0125] S55: Use the Jensen-Shannon mutual information estimator to process the local and global structure pairing in the graph. Introduce the discriminator D, which takes a subgraph / graph representation pair as input and determines whether it comes from the same graph. Maximize the mutual information value of the pairing on a given subgraph or the entire graph representation. The formula is:
[0126] D(z i ′,r)=σ(z i 'W MI r);
[0127] Where W MI is a rating matrix, and σ(·) is the sigmoid function;
[0128] S56: Generate negative samples by pairing subgraph representations Z~ from different large graphs G′ with representation r from graph G, thereby defining the self-supervised MI objective as a standard binary cross entropy (BCE) loss:
[0129]
[0130] Where n neg represents the number of negative samples, This is equivalent to maximizing the mutual information between z′ and r;
[0131] S57: Replace the classification loss L in the S56 formula Classify and MI loss Combined, we get the loss L of SUGAR-NORL, which is defined as follows:
[0132]
[0133] where β controls the coefficient of the self-supervised MI contribution, λ is the coefficient of the L2 regularization on Θ, and Θ is a set of trainable parameters in the framework.
[0134] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. Enhanced fake news detection method based on heterogeneous graph attention network, characterized by: The specific steps are as follows: S1: After preprocessing the text data, the pre-trained model and natural language processing method are used to extract features and analyze relationships of short text data. The semantic richness of short text is significantly enhanced through prompt learning driven by the pre-trained model. S2: Based on the relationship between short texts and their attached multi-information, a heterogeneous graph is established to highlight the relationship between texts and attached multi-information, providing sufficient information for the fake news detection task; S3: Introducing a two-layer heterogeneous graph attention network to assign specific weights to heterogeneous nodes and relationships, enabling the model to evaluate the importance of information and achieve refined processing of complex information networks; S4: Use subgraph neural networks to deeply mine and reconstruct key information and significant patterns in the graph, and deepen the understanding of the internal connections of the graph structure; S5: Combining the attention mechanism with the self-supervised mutual information mechanism, we construct a hypergraph and learn sub-graph-level feature representation to achieve more accurate fake news detection tasks.
2. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 1 is characterized in that: The pre-trained model in S1 is BERT, which uses the powerful text understanding ability of pre-trained BERT to extract features from short text data.
3. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 2 is characterized in that: The feature extraction includes subject features and identity features.
4. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 1 is characterized in that: The natural language processing method in S1 is the TagMe entity linking tool and the Word2vec model based on the Wikipedia corpus. The identified entities are mapped to the corresponding entries in Wikipedia through TagMe, and the representation of the entities is learned through Word2vec.
5. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 1 is characterized in that: The prompt learning method in S1 utilizes the powerful text prediction ability of the BERT model, through a specific discrete prompt template in the form of: "News text + Here is a piece of news with [mask] information.", where [mask] represents a mask tag, to transform the original text classification task into a text category prediction task, that is, predicting the probability of a specific [mask] position being False and True.
6. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 1 is characterized in that: The method for constructing a heterogeneous graph in S2 is: the graph is represented as where D = d1, ..., d m Represents a set of short text nodes, T = t1,...,t k Represents the set of subject nodes, E=e1,...,e n Represents a set of entity nodes, P = p1,...,p l represents the set of identity nodes, T = t1,...,t l represents the classification set obtained by prompt learning, so V = D∪T∪E∪P∪T, and is the edge set between all nodes, and the adjacency matrix A of the heterogeneous graph G is introduced, and the self-connection matrix I is added on this basis, that is, A′=A+I.
7. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 1 is characterized in that: The specific process of S3 is as follows: S31: In order to consider the role of different types in the propagation process, a type-level attention mechanism is used to integrate the combined influence of multiple nodes of the same type: a specific node v is selected and its type τ is determined. According to the type information of the node, its type vector is calculated. The formula is as follows: h τ =∑ v′ A v ′ v′ h v′ The node v′ is the node of all types τ in the whole graph, and h v′ is the feature vector of node v′, which not only reflects the characteristics of the node itself, but also incorporates the influence of adjacent nodes of the same type as the node; S32: Calculate the feature vector h based on the current node v and type vector h τ To calculate the type-level attention score: in is an attention vector of type τ, || means vector concatenation, and σ(·) represents the activation function; S33: The type-level attention weights are obtained by normalizing all types of attention scores using the softmax function: S34: In order to consider the importance of adjacent nodes of different categories and reduce the weight of noise nodes, assume that a specific node v, whose category is τ and its adjacent nodes of different types v′, whose type is τ′, then combine the node’s feature vector h v and h v′ and the attention weight α of type τ′ τ′ , calculate the node-level attention coefficient, the formula is as follows: b vv′ =σ(W T ·a τ′ [h v ||h v′ ]) Among them, W T is the attention vector; S35: Normalize the node-level attention scores using the softmax function: S36: Based on the weighted fusion of the two-layer attention weight coefficients, a more accurate node representation is obtained: Among them, B τ Represents the attention matrix, the element in the vth row and v′ column is β vv′ , represents a specific attention weight.
8. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 1 is characterized in that: The specific process of S4 is as follows: S41: After sorting all nodes in the graph in descending order according to a certain standard, each node is selected as a central node in turn; S42: for the selected central node v, a breadth-first search algorithm is used to extract a subgraph, and each node adjacent to the text node is included in the subgraph; S43: In order to ensure that the size and complexity of the subgraphs are within a controllable range, an upper limit value s is set, and the subgraphs in each subgraph set must not exceed this preset value s; S44: Introduce an encoder based on graph neural network to integrate the attribute information of the node with the graph structure information, so as to ensure the accuracy and reliability of the node representation. The specific formula is as follows: H(g i )=ε(g i )={h j |v j ∈g i } Where M(·) represents the message generation function, AGG(·) represents the aggregation function, and U(·) represents the state update function; S45: Introduce an attention mechanism within the subgraph, which accurately captures the relative importance of nodes by assigning independent weights to different nodes, and generates a higher-dimensional subgraph feature representation. The specific formula is as follows: in is the attention coefficient, indicating that node v j For the subgraph G i importance, is the weight matrix, is the weight vector, σ(·) is the softmax function; S46: Calculate the representation subgraph G i The eigenvector z i , the formula is as follows:
9. The fake news detection method based on enhanced heterogeneous graph attention network according to claim 1 is characterized in that: The specific process of S5 is as follows: S51: With all text nodes as the center, the nodes adjacent to them together form a super node. When the number of common nodes between two super nodes exceeds the established threshold b com When we create an edge e i,j Connect two super nodes and finally reconstruct the original graph into a hypergraph G′=(V′,E′). The specific formula is as follows: S52: Node V i ′ and V j The attention coefficient α between ′ ij Calculated by the multi-head attention mechanism, the formula for calculating the subgraph feature vector is: in, is the weight matrix, and M is the number of independent attentions; S53: The subgraph embedding is converted into label prediction through the softmax function, and the classification result of the first subgraph to the graph is selected as the final probability distribution of the graph, where the index class with the maximum probability is the predicted graph label; S54: Use the READOUT function to aggregate each subgraph vector into a vector of fixed length. The formula is: S55: Use the Jensen-Shannon mutual information estimator to process the local and global structure pairing in the graph. Introduce the discriminator D, which takes a subgraph / graph representation pair as input and determines whether it comes from the same graph. Maximize the mutual information value of the pairing on a given subgraph or the entire graph representation. The formula is: D(z i ′,r)=σ(z i ′W MI r); Where W MI is a rating matrix, and σ(·) is the sigmoid function; S56: By representing the subgraphs from different large graphs G′ The negative samples are generated by pairing with the representation r from the graph G, and the self-supervised MI objective is defined as a standard binary cross entropy (BCE) loss: where n neg represents the number of negative samples, This is equivalent to maximizing the mutual information between z′ and r; S57: Replace the classification loss L in the S56 formula Classify and MI loss Combined, we get the loss L of SUGAR-NORL, which is defined as follows: where β controls the coefficient of the self-supervised MI contribution, λ is the coefficient of the L2 regularization on Θ, and Θ is a set of trainable parameters in the framework.
Citation Information
Cited By
Robust rumor detection method on social media
CN119357830A
