A rumor detection method based on node chain semantic features and knowledge integration

By using co-attention and ESIM models combined with graph neural network methods in social media rumor detection, and integrating node chain semantic features and external knowledge, the problem of not utilizing comment semantic interaction and external knowledge in the existing technology is solved, and the efficiency is improved The accuracy and interpretability of rumor detection, especially the detection ability in the early stage of rumor spread.

CN118377918BActive Publication Date: 2024-09-10CENT SOUTH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410796635.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-10
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Existing social media rumor detection methods fail to effectively utilize the chain semantic interaction and external knowledge between comments and parent nodes as features, resulting in insufficient detection accuracy and interpretability. Insufficient features especially affect the model in the early stages of rumor propagation. performance.

Method used

The co-attention-based recursive node chain semantic feature extraction and integration module is used, combined with key entity extraction and the external knowledge extraction module of the ESIM model, and the conversation tree structure and external knowledge are integrated through the graph neural network to extract propagation features and classify rumors.

Benefits of technology

It improves the accuracy of rumor detection and the interpretability of the model, enhances early rumor detection capabilities, effectively utilizes the communication structure and external knowledge through the integration of chain semantic features and external evidence statements, and improves the credibility and transparency of detection results. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377918B
    Figure CN118377918B
Patent Text Reader

Abstract

The present invention is a rumor detection method based on node chain semantic features and knowledge integration, belonging to the field of natural language processing. The method of the present invention firstly performs text encoding on the source post and its comments to obtain the semantic vector of each post, and adopts the co-attention mechanism to perform feature fusion on the chain semantic interaction between the comments and the parent node; secondly, extracts key entities from the source post, and retrieves relevant documents in Wikipedia according to the key entities, and then extracts the most relevant sentences from the relevant documents as evidence; finally, integrates the evidence sentences into the entire conversation tree, adopts the graph neural network to further extract the propagation features, and finally uses the rumor classifier for classification. The present invention makes full use of the chain semantic interaction between the parent and child nodes, and introduces external knowledge as evidence sentences, which generally improves the performance, interpretability and early detection ability of the rumor detection model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a rumor detection method based on node chain semantic features and knowledge integration. Background Art

[0002] A rumor on social media typically consists of the original text, along with related forwarding and commentary, and some posts also include images. The rumor's spread also incorporates the users involved, their characteristics, and the tree-like structure formed by the rumor's spread. An uninformed reader is likely to judge the authenticity of a post based on the comments on the original post. Within the conversation tree composed of comments, this credibility is propagated level by level, creating a chain of semantic interactions between comments and their parent nodes. In the early stages of rumor propagation, the conversation tree structure is incomplete, and there are fewer features available. This is when external knowledge related to the original post can be incorporated as additional features and evidence to improve model interpretability. However, current social media rumor detection methods do not yet take advantage of these advantages.

[0003] In the early days of the development of automated rumor detection technology, most traditional machine learning methods were used. These traditional machine learning methods require manual feature construction and are subject to data set limitations, making it difficult to play an effective role in the current situation of explosive social media data volume. Today, methods based on traditional machine learning have almost been completely replaced by deep learning. Among them, Rao D et al. [1] conducted research on text features and improved the attention mechanism of the pre-trained language model BERT, shielding the attention between different posts to reduce interference and achieving good results. Bian T et al. [2] focused on the propagation structure, replacing the tree structure with a graph structure, traversing the propagation structure in a top-down and bottom-up manner, and using a graph convolutional network (GCN) to learn propagation features. In terms of the use of external knowledge, most of them remain in the field of false news detection. For example, Yuan J et al. [3] identified conflicts in conversations and used GCN to extract text from online forums to construct a knowledge graph as external knowledge to enhance the identification of interactive knowledge conflict pairs.

[0004] In summary, current rumor detection methods mainly use deep learning methods to model text features, propagation features, etc. However, they still do not recognize the chain semantic interactions between comments and parent nodes, nor do they introduce external knowledge as additional features into the field of rumor detection. There is still room for improvement. Summary of the Invention

[0005] In response to the technical problems existing in the prior art, the present invention provides a rumor detection method based on node chain semantic features and knowledge integration, which mainly includes three modules: a recursive node chain semantic feature extraction and integration module based on co-attention, an external knowledge extraction module based on key entity extraction and the ESIM model, and a graph neural network rumor detection module based on a conversation tree structure and external knowledge. The method includes the following steps:

[0006] Step S1: Co-attention-based recursive node chain semantic feature extraction and integration module: The source post and its comments are encoded to obtain a semantic vector for each post. The co-attention mechanism is used to extract the semantic influence of the comments on the parent node and integrate it into the representation of the parent node. This semantic influence is then propagated upward in a chain and integrated into each node, ultimately affecting the representation of the source post.

[0007] Step S2: External knowledge extraction module based on key entity extraction and ESIM model: extract key entities from the source post described in step S1, search for relevant documents in Wikipedia based on the key entities, and then extract the most relevant sentences from the relevant documents as evidence sentences;

[0008] Step S3: Graph neural network rumor detection module based on conversation tree structure and external knowledge: Integrate the evidence statement described in step S2 into the entire conversation tree, use graph neural network to further extract propagation features, and finally use rumor classifier for classification.

[0009] The step S1 specifically includes the following steps:

[0010] Step S11: For a piece of data in the social media rumor detection dataset ,in, The collection of all post texts in the conversation, arranged in chronological order, where: The text content of the source post. Indicates the Comments, ; is the number of comments in the session, A conversation tree structure consisting of comments and replies;

[0011] Use a text encoder to encode the source post and its comments;

[0012] Arrange the text content of the source post and its comments in chronological order and split them with delimiters:

[0013] ;

[0014] in Indicates the separator between posts. Indicates the end symbol, is the concatenation operator;

[0015] Step S12: Splice the text Perform preliminary encoding, fuse segmentation encoding and position encoding, and obtain the final input encoding vector of the subsequent BERT model:

[0016] ;

[0017] in, Represents word encoding, that is, replacing the words in the sentence with corresponding encodings according to the vocabulary; Represents segmentation code, that is, the code for special symbols used to segment and indicate the end of a sentence; represents the positional encoding, which is an embedding calculated based on the position of the word in the entire text;

[0018] Step S13: Input vector Input into the pre-trained language model BERT;

[0019] Step S14: Set Represents any parent node, express The set of child nodes in the first layer of a node uses co-attention to extract semantic information from these comments and integrate this information into the parent node;

[0020] Step S15: Get a new representation of the parent node that incorporates the semantic features of the comment This new representation updates the representation of the parent node on the next higher level in a chain-like manner according to the tree structure, and ultimately affects the root node of the entire conversation structure, that is, the representation of the source post in social media.

[0021] The step S2 specifically includes the following steps:

[0022] Step S21: First, extract key information from the source post text and retrieve relevant documents. Then, use Wikipedia's public interface to directly obtain a relevant document set in JSON format from Wikipedia. After obtaining the document retrieval results, filter out those documents whose titles do not contain the source post entity, and extract the top few documents as a candidate document set, selecting the top 5 candidate documents.

[0023] Step S22: Using an enhanced sequential reasoning model to determine the relationship between sentences in the source post and candidate documents, extracting key sentences that can serve as evidence from these documents;

[0024] Step S23: For all candidate sentences, sort them in descending order according to the relevant probability, and select the candidate sentences with a relevant probability greater than 50% and ranked in the top 20 as the evidence sentences of the source post.

[0025] The step S3 specifically includes the following steps:

[0026] Step S31: Use BERT to encode the evidence sentence text obtained in the external knowledge extraction module, treat each evidence sentence as a node, directly connect it to the root node representing the source post, and integrate it into the conversation tree;

[0027] Step S32: Use a graph neural network to extract propagation structure features; convert the new session tree constructed in step S31 into an adjacency matrix; input the node features integrated with the chain semantic representation, the node representation of the evidence sentence encoded by BERT, and the adjacency matrix A into the graph neural network GAT to obtain the node representation S that integrates the propagation features;

[0028] Step S33: Aggregate the feature representations of each node using the mean operation to obtain the fusion representation of all propagation nodes, and reduce the dimension of the vector through the full connection function to obtain a numerical form that is convenient for final classification. :

[0029] ;

[0030] in, and is the trainable parameter of the fully connected perceptron;

[0031] Finally, the softmax function is used to obtain the final classification result of rumor prediction:

[0032] ;

[0033] Step S34: Compare the classification results predicted in step S33 with the true classification labels, and use cross entropy loss to optimize the model parameters. Minimize the loss to continuously optimize the model:

[0034] ;

[0035] in, To predict the results, is the true label;

[0036] When the loss function When the value of stops decreasing for several consecutive times, the training is stopped and the trained rumor detection classification model is obtained, that is, the rumor classifier;

[0037] Step S35: After optimizing the model parameters in step S34, the rumor to be detected is subjected to steps S11 to S33 of the rumor classifier to obtain a final classification result of the rumor;

[0038] Softmax function calculation When the result is 0, it means it is not a rumor; A result of 1 indicates that it is a rumor.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] (1) Higher rumor detection accuracy:

[0041] Past rumor detection methods have mainly used text-based features and propagation-based features. When utilizing the propagation structure, these past methods often directly use models such as graph neural networks to extract propagation features, but ignore the impact of comment nodes on the semantic features of parent nodes. Generally speaking, a reader who does not know the truth will mostly judge whether the source post is true based on the semantic information in the comments. To this end, the present invention combines source posts and comments into a conversation tree, and gradually propagates the semantic interaction features of comments from the leaf nodes in a chain upward until it reaches the root node representing the source post. In this way, not only is the propagation structure effectively utilized, but the interactive information between parent and child nodes is also extracted, which can effectively improve the accuracy of rumor detection.

[0042] (2) Improved model interpretability:

[0043] Social media rumor texts are often short and contain little information. In this case, the present invention extracts valid information from an external objective knowledge base as evidence statements for rumor detection. On the one hand, these evidence statements can serve as supplementary information for the model, contributing to rumor classification and detection. On the other hand, these evidence statements can serve as interpretable information for the model, allowing users to fully understand the reasons behind the present invention's judgments, thereby improving the model's interpretability.

[0044] (3) Improving the model’s early rumor detection capabilities:

[0045] Conventional fake news detection methods that utilize external knowledge often determine whether the original text is true based on the relationship between external evidence. Here, the present invention also incorporates these evidence statements into the graph formed by the conversation tree as child nodes of the source post. Using evidence statements as direct child nodes of the source post not only allows them to participate in rumor detection along with information such as comments, but also, because they are directly connected to the source post, can further leverage the influence of evidence statements on the source post. This additional information can play an important role in the early stages of rumor emergence when the propagation structure is not rich enough, providing sufficient assistance and further improving the model's early rumor detection capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is the overall flow chart of the rumor detection method based on node chain semantic features and knowledge integration.

[0047] Figure 2 This is the text encoder structure diagram.

[0048] Figure 3 It is a node chain semantic feature fusion graph.

[0049] Figure 4 This is the flow chart of external knowledge extraction based on key entity extraction and ESIM model.

[0050] Figure 5 Flowchart of rumor detection using graph neural network based on conversation tree structure and external knowledge. DETAILED DESCRIPTION

[0051] Existing research on text features simply encodes the source post and comments, failing to consider how comments can influence the semantic features of parent nodes throughout the conversation tree. Furthermore, this interaction can propagate upwards, creating a chain of semantic feature interactions that affect the entire conversation tree. Current research fails to acknowledge this, resulting in an incomplete understanding of semantic features.

[0052] Some existing research on fake news detection has recognized the importance of external knowledge. This approach can be used to determine authenticity based on the relationship between external encyclopedia knowledge and the article being tested, thereby improving model interpretability. However, this feature has not been applied to social media rumor detection, resulting in models with too few features to utilize in the early stages of rumor spread, affecting their early detection capabilities and limiting their interpretability.

[0053] The present invention is a rumor detection method based on node chain semantic features and knowledge integration, which mainly includes three modules: a recursive node chain semantic feature extraction and integration module based on co-attention, an external knowledge extraction module based on key entity extraction and ESIM model, and a graph neural network rumor detection module based on session tree structure and external knowledge. Figure 1 As shown. (Note: Graph Attention Network is a branch of Graph Neural Network)

[0054] In general, this method first performs text encoding on the source post and its comments to obtain a semantic vector for each post. A co-attention mechanism is then used to fuse features of the chained semantic interactions between the comments and their parent nodes. Key entities are then extracted from the source post, and relevant documents are retrieved from Wikipedia based on these key entities. The most relevant sentences from these documents are then extracted as evidence. Finally, the evidence sentences are integrated into the entire conversation tree, and a graph neural network is used to further extract propagation features. Finally, a rumor classifier is used for classification.

[0055] The details are as follows:

[0056] 1. Recursive node chain semantic feature extraction and integration module based on co-attention

[0057] Step 1: For a piece of data in the social media rumor detection dataset , is the collection of all post texts in the session, arranged in order of posting time, where The text content of the source post. Indicates the Comments, is the number of comments in the session, A conversation tree structure consisting of comments and replies. More specifically, ,in is a node set, The set of edges that represent reply comments can be represented by the adjacency matrix First, the source post and its comments must be encoded. The text encoder structure used in this invention is as follows: Figure 2 shown.

[0058] First, arrange the text content of the source post and its comments in chronological order and split them using delimiters:

[0059] ;

[0060] in Indicates the separator between posts. Indicates the end symbol, is the concatenation operator.

[0061] Step 2: Splice the text Perform preliminary encoding, fuse segmentation encoding and position encoding, and obtain the final input encoding vector of the subsequent BERT model:

[0062] ;

[0063] in, Represents token embedding, that is, replacing the words in the sentence with corresponding codes according to the vocabulary; Represents segment embedding, which is the encoding of special symbols used to segment and indicate the end of a sentence; It represents the positional encoding, which is an embedding calculated based on the position of the word in the entire text.

[0064] Step 3: Input vector Input into the pre-trained language model BERT (Bidirectional Encoder Representations from Transformers). In BERT, the text encoding adopts a 12-layer Transformer structure, in which each Transformer uses an attention mechanism for encoding. First, the input vector And the three trained weight matrices 、 、 Multiplying them together, we get the matrices Q (query), K (key), and V (value). The following formula is used to calculate the attention of the entire sentence:

[0065] ;

[0066] in, is the dimension of the hidden state in the encoder, The function is used to finally get a probability value between 0 and 1, and make all probabilities sum to 1. The attention formula gets an attention value between any two words. After that, after the feedforward network and normalization, the result of a layer of Transformer is obtained. The input of the first layer of Transformer is , and then the calculation of each layer is as follows:

[0067] ;

[0068] in is the calculation process of the Transformer module. Finally, according to this formula, the output of the last layer of Transformer is obtained. , which contains the result of encoding each word and symbol through the entire BERT model. The encoding of is used as the final representation vector for each post. The vector of the post is , and finally get the text encoding of the entire conversation :

[0069] ;

[0070] Step 4: Order Represents any parent node, express The set of child nodes in the first layer of a node. Here, we use the co-attention mechanism to extract the semantic information from these comments and integrate this information into the parent node. Specifically, we need to calculate the parent node representation Attention between the parent node and any child node Attention between :

[0071] ;

[0072] in, is a scoring function. Here we choose cosine similarity to measure the similarity between two sentence representations. Then we calculate the contribution of the relevant child node sentence to the parent node representation:

[0073] ;

[0074] Here, the attention of the child node to the parent node is used as the weight, and the weighted sum of the representation of each child node is calculated to obtain the semantic influence of these child nodes on the parent node, that is, the contribution of the relevant child node sentences to the parent node representation. Finally, this effect needs to be incorporated into the representation of the original parent node:

[0075] ;

[0076] Among them, and Spliced ​​together as the input of the fully connected layer, and are the weights and biases of the fully connected layer, It is a nonlinear activation function that increases the nonlinear expression ability of the model.

[0077] Finally, a new representation of the parent node that incorporates the semantic features of the comments is obtained. , this new representation will update the parent node representation of the next higher level in a chain-like manner according to the tree structure. A new representation is obtained by fusing the semantic features of its child node comments , use this representation as the new representation of the node. Afterwards, It will be a child node of the parent node of the next higher level and will be used To calculate the new representation of the parent node in the previous layer. The whole process follows the tree structure, gradually propagating upward from the leaf node chain, and finally affecting the root node of the entire conversation structure, that is, the representation of the source post in social media. This process is as follows Figure 3 shown.

[0078] The entire conversation tree completes the node chain semantic feature extraction and integration through the above steps, and obtains the final semantic representation of each node:

[0079] .

[0080] 2. External knowledge extraction module based on key entity extraction and ESIM model

[0081] The general method of using external knowledge to detect fake news usually has three steps, namely document retrieval, evidence extraction, and statement verification. Here, the present invention will process the acquired evidence as an additional text feature for rumor detection, so the third step of statement verification is not performed here. The present invention adopts an external knowledge extraction method based on key entity extraction and ESIM model, and its process is as follows: Figure 4 shown.

[0082] Step 1: First, you need to get the text from the source Extract key information and retrieve relevant documents. Here, the present invention adopts AllenNLP toolkit and named entity recognition technology to extract key entity sets of noun properties from the source post as the primer for searching relevant knowledge.

[0083] After that, we use Wikipedia's public interface to directly obtain the relevant JSON-formatted document set from Wikipedia. After obtaining the document retrieval results, we filter out those documents whose titles do not contain the source post entity and take the first few documents as the candidate document set. The number of candidate documents here can be adjusted. The present invention selects the top 5 ranked documents as candidate documents.

[0084] Step 2: Extract key sentences that can serve as evidence from these documents. This paper uses the Enhanced Sequential Inference Model (ESIM) to determine the relationship between sentences in the source post and candidate documents. The ESIM model consists of three main parts: text encoding, local inference modeling, and inference combination.

[0085] (1) Text encoding

[0086] In the text encoding part, ESIM uses Bidirectional Long Short-Term Memory (BiLSTM) for encoding:

[0087] ;

[0088] ;

[0089] in, Represents a candidate sentence, and then it is necessary to infer whether the sentence is related to the source post. and Respectively represent source posts Length and candidate sentences The length of . Finally, the moment When the BiLSTM model is input The hidden state output obtained . The meanings are similar.

[0090] (2) Inference Modeling

[0091] In the reasoning modeling part, the attention mechanism is used to calculate the similarity between the source post and the candidate sentence:

[0092] ;

[0093] Afterwards, the relative semantic effect of each word in the candidate sentence on the source post is calculated, namely:

[0094] ;

[0095] ;

[0096] Here you get Can be regarded as The weighted sum of , and the influence on the source post is calculated according to the weight, Same thing.

[0097] In order to further enhance the information representation, we also calculated and The difference and inner product between them are used as the features of information enhancement, and finally the local reasoning information of the enhanced source patch is obtained. and enhanced local reasoning information of candidate sentences :

[0098] ;

[0099] ;

[0100] in Represents the inner product operation.

[0101] (3) Reasoning combination

[0102] In the reasoning combination part, BiLSTM is used to process the local reasoning information to obtain the reasoning combination information of the source post and the reasoning combination information of the candidate sentences :

[0103] ;

[0104] ;

[0105] in A feedforward neural network is used to vector Perform dimensionality reduction to reduce the computational complexity of BiLSTM. The model hidden state output at time t.

[0106] Then, ESIM uses average pooling and maximum pooling to convert the obtained states into fixed-length vectors as the input of the final classifier. :

[0107] ;

[0108] ;

[0109] ;

[0110] in, is the result of average pooling of the source post reasoning combination information, The result of maximum pooling of source patch reasoning combination information; The result of average pooling of candidate sentence reasoning combination information, The result of maximum pooling of the combined information for candidate sentence reasoning; It is the result of splicing these vectors as the input of the subsequent classifier.

[0111] Finally, The input is fed into a multi-layer perceptron, and the softmax function is used to obtain the final output, predicting the probability of whether the source post is related to the candidate sentence.

[0112] Step 3: Sort all candidate sentences in descending order by relevance probability. Select the top 20 candidate sentences with a relevance probability exceeding 50% as evidence sentences for the source post. These evidence sentences serve as input for the next module and also as interpretable output for the model. Users can use this evidence to judge the authenticity of the source post, improving the model's interpretability.

[0113] 3. Graph Neural Network Rumor Detection Module Based on Session Tree Structure and External Knowledge

[0114] After fully analyzing the semantic features of source posts, comments, and external knowledge statements, it is necessary to analyze the propagation structure. The present invention uses a graph neural network to extract this feature. The usage process is as follows: Figure 5 shown.

[0115] Step 1: Use BERT to encode the evidence sentence text obtained in the external knowledge extraction module, treat each evidence sentence as a node, directly connect it to the root node representing the source post, and integrate it into the conversation tree, such as Figure 5 As shown in the middle part of , the comment node is added to the graph;

[0116] Step 2: Use graph neural network to extract propagation structure features; convert the new session tree constructed in step S31 into an adjacency matrix; input the node features integrated with chain semantic representation, the node representation of the evidence sentence encoded by BERT, and the adjacency matrix A into the graph neural network GAT to obtain the node representation S that integrates the propagation features, as shown in the following figure: Figure 5 As shown in the figure attention network;

[0117] Step 3: Aggregate the feature representations of each node using the mean operation to obtain the fusion representation of all propagation nodes, and reduce the dimension of the vector through the full connection function to obtain a numerical form that is convenient for final classification. :

[0118] ;

[0119] in, and is the trainable parameter of the fully connected perceptron;

[0120] Finally, the softmax function is used to obtain the final classification result of rumor prediction:

[0121] ;

[0122] Step 4: Compare the classification results predicted in step S33 with the true classification labels, and use cross entropy loss to optimize the model parameters. Minimize the loss to continuously optimize the model:

[0123] ;

[0124] in, To predict the results, is the true label;

[0125] When the loss function When the value of stops decreasing for several consecutive times, the training is stopped and the trained rumor detection classification model is obtained, that is, the rumor classifier;

[0126] Step 5: After optimizing the model parameters in step S34, the rumor to be detected is subjected to steps S11 to S33 of the rumor classifier to obtain the final classification result of the rumor;

[0127] Softmax function calculation When the result is 0, it means “not a rumor”; The result of 1 means "it is a rumor".

[0128] Comparative Verification Example

[0129] To verify the present invention, the Twitter15 dataset was classified using RvNN, BiGCN, STANKER, MFAN, and the present invention. RvNN is the method in Reference 4; BiGCN is the method in Reference 2; STANKER is the method in Reference 1; and MFAN is the method in Reference 5. The experimental results are shown in Table 1.

[0130] Table 1

[0131]

[0132] The experimental results show that the method of the present invention can achieve the highest accuracy and F1 value.

[0133] The method described in the present invention can also be applied to a computer-readable medium, which stores computer program instructions. When the computer program instructions are executed by a processor, the rumor detection method based on node chain semantic features and knowledge integration as described in the present invention is implemented.

[0134] In summary, the rumor detection method based on node chain semantic features and knowledge integration provided by the present invention has the following technical features:

[0135] (1) In addition to utilizing the textual information of the source post and comments, the present invention also notes that the stance information in the comments will have a semantic impact on the credibility of the parent node. This impact will also propagate upward in a chain, ultimately affecting the source post. The present invention uses co-attention to extract this semantic interaction feature, extracting the semantic impact of all comments on the parent node and incorporating it into the representation of the parent node. In addition, the present invention also propagates this semantic impact upward in a chain, ultimately affecting the representation of the source post.

[0136] (2) This paper utilizes the ESIM model to extract relevant documents from encyclopedia documents, determine whether each sentence is relevant to the source post, and extract several sentences that are most relevant to the source post as evidence sentences to verify whether the source post is true. These evidence sentences will participate in the subsequent rumor detection as additional node features. At the same time, these evidence sentences can be used as interpretable outputs of the model, improving the model's interpretability.

[0137] (3) After obtaining the semantically enhanced comment nodes and related evidence statements, the present invention recombines these nodes into the same graph and uses a graph attention network to further enhance the graph node representation, making full use of the information of the graph structure. This can effectively address the problem of limited available information in the early stages of rumor emergence.

[0138] The references involved in the present invention are as follows:

[0139] [1] Rao D, Miao X, Jiang Z, et al. STANKER: Stacking Network based on Level-grained Attention-masked BERT for Rumor Detection on Social Media[C] / / Proceedings of the 2021 Conference on Empirical Methods in Natural LanguageProcessing. Online and Punta Cana, Dominican Republic: Association for Computational Linguistics, 2021: 3347-3363.

[0140] [2] Bian T, Xiao

[0141] [3] Yuan J, Wei Z, Zhao D, et al. Leveraging Argumentation KnowledgeGraph for Interactive Argument Pair Identification[C] / / Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021. Online:Association for Computational Linguistics, 2021: 2310-2319.

[0142] [4] Ma J, Gao W, Wong K F. Rumor detection on twitter with tree-structured recursive neural networks[C]. Association for ComputationalLinguistics, 2018.

[0143] [5] Zheng J, Zhang X, Guo S, et al. MFAN: Multi-modal Feature-enhanced Attention Networks for Rumor Detection[C] / / IJCAI. 2022: 2413-2419.

[0144] The above-described embodiments merely represent implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. A rumor detection method based on node chain semantic features and knowledge integration, characterized in that: The following steps are involved: Step S1: Recursive node chain semantic feature extraction and integration module based on co-attention: Text encoding is performed on the source post and its comments to obtain the semantic vector of each post. The co-attention mechanism is used to extract the semantic influence of the comment on the parent node and integrate it into the representation of the parent node. This semantic influence is then propagated upward in a chain and integrated into each node, ultimately affecting the representation of the source post. Step S2: External knowledge extraction module based on key entity extraction and ESIM model: extract key entities from the source post in step S1, search for relevant documents in Wikipedia based on the key entities, and then extract the most relevant sentences from the relevant documents as evidence sentences; Step S3: Graph neural network rumor detection module based on conversation tree structure and external knowledge: Integrate the evidence statement described in step S2 into the entire conversation tree, use graph neural network to further extract propagation features, and finally use rumor classifier for classification; The step S1 specifically includes the following steps: Step S11: For a piece of data in the social media rumor detection dataset ,in It is the collection of all post texts in the session, arranged in the order of publishing time, where: The text content of the source post; is the number of comments in this session; The conversation tree structure consisting of comments and replies; Use a text encoder to encode the source post and its comments; Arrange the text content of the source post and its comments in chronological order and split them with delimiters: ; in, Indicates the separator between posts. Indicates the end symbol. is the concatenation operator; Step S12: Splice the text Perform preliminary encoding, fuse segmentation encoding and position encoding, and obtain the final input encoding vector of the subsequent BERT model: ; in, Represents word encoding, that is, replace the words in the sentence with corresponding codes according to the vocabulary; Represents segmentation code, that is, the code for special symbols used to segment and indicate the end of a sentence; It stands for position encoding, which is an embedding calculated based on the position of the word in the entire text; Step S13: Input the encoding vector Input into the pre-trained language model BERT; Step S14: Represents any parent node, express The set of child nodes in the first layer of a node uses co-attention to extract semantic information from these comments and integrate this information into the parent node; Step S15: Get a new representation of the parent node that incorporates the semantic features of the comment ,This new representation updates the representation of the parent node in the next higher level in a chain-like manner according to the tree structure, and finally affects the root node of the entire conversation structure, that is, the representation of the source post in social media; The step S2 specifically includes the following steps: Step S21: First, the text from the source post Extract key information and retrieve relevant documents; then, use Wikipedia's public interface to directly obtain relevant JSON-formatted document sets from Wikipedia; after obtaining the document retrieval results, filter out those documents whose titles do not contain source post entities, and take the top 5 ranked documents as candidate documents; Step S22: using an enhanced sequential reasoning model to determine the relationship between sentences in the source post and the candidate documents, and extracting key candidate sentences that can serve as evidence from these documents; Step S23: sort all candidate sentences in descending order according to the relevant probability, and select the candidate sentences with relevant probability exceeding 50% and ranked in the top 20 as the evidence sentences of the source post; Step S3 specifically includes the following steps: Step S31: BERT is used to encode the evidence sentence text obtained in the external knowledge extraction module, and each evidence sentence is taken as a node, directly connected to the root node representing the source post, and integrated into the conversation tree; Step S32: Use graph neural network to extract propagation structure features; convert the new session tree formed in step S31 into an adjacency matrix; combine the node features integrated with chain semantic representation and the node representation of the evidence sentence encoded by BERT with the adjacency matrix Input them into the graph neural network GAT together to obtain the node representation that incorporates the propagation characteristics ; Step S33: Aggregate the feature representations of each node using the mean operation to obtain the fusion representation of all propagation nodes, and reduce the dimension of the vector through the full connection function to obtain a numerical form that is convenient for final classification. : ; in, and are the trainable parameters of the fully connected perceptron; Finally, the softmax function is used to obtain the final classification result of rumor prediction: ; Step S34: Compare the classification result predicted in step S33 with the true classification label, use cross entropy loss to optimize the model parameters, and minimize the loss to continuously optimize the model: ; in, To predict the results, is the true label; When the loss function When the value of does not decrease for several consecutive times, the training is stopped to obtain a trained rumor detection classification model, i.e., a rumor classifier. Step S35: After optimizing the model parameters in step S34, the rumor to be detected is subjected to steps S11 to S33 of the rumor classifier to obtain a final classification result of the rumor; The softmax function calculates When the result is 0, it means: it is not a rumor; The result of 1 means: it is a rumor.