A rumor detection method and system based on multi-view enhanced graph contrastive learning
By employing a multi-view augmented graph contrastive learning method, an event propagation graph is constructed and multi-view self-supervised target generation is performed. This addresses the problem of insufficient model generalization ability in existing rumor detection methods, achieving accurate and robust detection of social media rumors, especially efficient identification of unknown events and early stages.
Patent Information
- Application Number
- CN202611698572.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
Smart Images

Figure CN123179140A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rumor detection technology, and in particular to a rumor detection method and system based on multi-view enhanced graph contrast learning. Background Technology
[0002] Early rumor detection methods primarily relied on feature extraction from text content, employing traditional machine learning methods such as the bag-of-words model, TF-IDF, and support vector machines, or combining them with deep learning models to model text semantics and achieve rumor identification. With the development of deep learning, researchers gradually discovered significant differences in the propagation patterns of real information and rumors. Therefore, more and more methods began to utilize propagation relationships such as reposts and comments in social networks to construct propagation trees or graphs, and combined them with graph neural networks to model the propagation structure, thereby improving rumor detection performance. CN112732906A discloses an internet rumor detection method based on a propagation graph neural network. This method constructs a propagation graph by obtaining the comment or reply structure of users on web pages, and uses a graph neural network based on gated recurrent units (GRUs) to update the vector representation of nodes, thus achieving rumor identification. It can be seen that while existing rumor detection methods based on text content and propagation structure can achieve a certain degree of rumor identification, they still suffer from problems such as insufficient model generalization ability, the graph augmentation process easily destroying key propagation structures, and insufficient utilization of source post node features, making it difficult to meet the actual needs of detecting unknown events and early-stage rumors in the social media environment. Summary of the Invention
[0003] The purpose of this invention is to provide a rumor detection method and system based on multi-view enhanced graph contrast learning, so as to overcome the above-mentioned technical defects.
[0004] To achieve the above objectives, this invention provides a rumor detection method based on multi-view enhanced graph contrast learning, the method comprising:
[0005] S1: Obtain social media event datasets through social media;
[0006] S2: Construct an event propagation graph using the aforementioned social media event dataset, and combine it with the weight parameter matrix corresponding to the original graph encoding model to predict rumors and obtain the predicted probability of rumors, specifically including:
[0007] The aforementioned social media event dataset is used to construct a graph and generate an event propagation graph;
[0008] Calculate the normalized adjacency matrix corresponding to the event propagation graph;
[0009] Vector aggregation is performed using the text information corresponding to each node in the event propagation graph to generate the initial feature vector corresponding to each node in the event propagation graph.
[0010] An initial feature matrix is constructed based on the initial feature vectors corresponding to n nodes in the event propagation graph;
[0011] Based on the initial feature vector corresponding to the root node of the event propagation graph, the normalized adjacency matrix, and the initial feature matrix, the predicted probability of the rumor is generated by combining the weight parameter matrix corresponding to the original graph encoding model.
[0012] S3: Calculate the cross-entropy loss function value based on the predicted probability of the rumor and the real supervision label;
[0013] S4: Perform enhancement operations on the event propagation graph and calculate the overall unsupervised multi-view contrast loss function value in combination with the original graph encoding model;
[0014] S5: Calculate the global multi-task learning joint loss function value based on the overall unsupervised multi-view contrast loss function value and the cross-entropy loss function value;
[0015] S6: Determine whether the convergence condition is met based on the value of the global multi-task learning joint loss function; if the convergence condition is met, take the original graph coding model with the last updated weight parameters as the optimal graph coding model so that the weight parameter matrix corresponding to the optimal graph coding model can be used for rumor prediction in the future; if the convergence condition is not met, update the weight parameters of the original graph coding model, take the graph coding model with updated weight parameters as the original graph coding model, and return to "S2".
[0016] Optionally, the step of generating the predicted probability of a rumor based on the initial feature vector corresponding to the root node of the event propagation graph, the normalized adjacency matrix, and the initial feature matrix, combined with the weight parameter matrix corresponding to the original graph encoding model, specifically includes:
[0017] The initial feature vector corresponding to the root node of the event propagation graph is enhanced to generate the root node feature vector;
[0018] The initial feature matrix, the weight parameter matrix corresponding to the original graph encoding model, and the normalized adjacency matrix are aggregated to obtain the propagation graph feature matrix;
[0019] Calculate the global graph feature vector based on the propagation graph feature vector corresponding to each node in the propagation graph feature matrix;
[0020] The root node feature vector and the global graph feature vector are concatenated along the feature dimension to calculate the prediction probability of the rumor.
[0021] Optionally, the step of performing enhancement operations on the event propagation graph and calculating the overall unsupervised multi-view contrastive loss function value in conjunction with the original graph encoding model specifically includes:
[0022] Enhancement operations are performed on the event propagation graph to generate two enhanced data views;
[0023] The original graph coding model is perturbed in the parameter domain using a perturbation function to generate a perturbed model;
[0024] The two augmented data views are sequentially injected into the original graph coding model and the perturbation model to generate an overall unsupervised multi-view contrastive loss function value.
[0025] Optionally, the enhancement operation performed on the event propagation graph to generate two enhanced data views specifically includes:
[0026] When performing a node deletion operation, the centrality score of each child node in the event propagation graph is calculated using a graph theory algorithm.
[0027] The probability of each child node being deleted is calculated based on the log-smooth transformation formula and the centrality score corresponding to each child node;
[0028] In the feature masking operation, the graph topology remains unchanged, and the probability of each child node's feature being masked is calculated based on the overall feature masking ratio hyperparameter.
[0029] When performing an edge deletion operation, the deletion probability of each edge is calculated based on the centrality of the nodes at both ends of each edge in the event propagation graph.
[0030] An enhancement operation is performed on the event propagation graph based on the probability of each child node being deleted, the probability of the features corresponding to each child node being masked, and the probability of each connecting edge being deleted, generating two enhanced data views.
[0031] Optionally, the step of sequentially injecting the two enhanced data views into the original graph coding model and the perturbation model to generate an overall unsupervised multi-view contrastive loss function value specifically includes:
[0032] The two enhanced data views are injected into the original graph coding model to generate a first-view graph-level vector and a second-view graph-level vector.
[0033] The two enhanced data views are injected into the perturbation model to generate a third-view lower-graph level vector and a fourth-view lower-graph level vector.
[0034] The first-view, second-view, third-view, and fourth-view image-level vectors are input into the projection head network for nonlinear mapping to obtain the first nonlinear feature vector and the second nonlinear feature vector. The third nonlinear eigenvector and the fourth nonlinear eigenvector;
[0035] Based on the first nonlinear feature vector, the second nonlinear feature vector, the third nonlinear feature vector, and the fourth nonlinear feature vector, a classification combination is performed to obtain a multi-view self-supervised target;
[0036] The contrast loss term corresponding to each combination in the multi-view self-supervised target is calculated using the cosine similarity formula.
[0037] The overall unsupervised multi-view contrastive loss function value is generated based on the contrastive loss terms corresponding to each combination in the multi-view self-supervised objective.
[0038] Optionally, the step of concatenating the root node feature vector with the global graph feature vector along the feature dimension to calculate the prediction probability of the rumor is as follows:
[0039]
[0040] in, For global graph feature vectors, The root node feature vector, For fully connected operation, This represents the predicted probability of a rumor.
[0041] This invention also provides a rumor detection system based on multi-view enhanced graph contrast learning, the system comprising:
[0042] The dataset acquisition module is used to acquire social media event datasets through social media.
[0043] The rumor prediction module is used to construct an event propagation graph using the aforementioned social media event dataset, and combine it with the weight parameter matrix corresponding to the original graph encoding model to predict rumors and obtain the predicted probability of rumors. Specifically, it includes:
[0044] The aforementioned social media event dataset is used to construct a graph and generate an event propagation graph;
[0045] Calculate the normalized adjacency matrix corresponding to the event propagation graph;
[0046] Vector aggregation is performed using the text information corresponding to each node in the event propagation graph to generate the initial feature vector corresponding to each node in the event propagation graph.
[0047] An initial feature matrix is constructed based on the initial feature vectors corresponding to n nodes in the event propagation graph;
[0048] Based on the initial feature vector corresponding to the root node of the event propagation graph, the normalized adjacency matrix, and the initial feature matrix, the predicted probability of the rumor is generated by combining the weight parameter matrix corresponding to the original graph encoding model.
[0049] The first loss function value calculation module is used to calculate the cross-entropy loss function value based on the predicted probability of the rumor and the real supervision label;
[0050] The second loss function value calculation module is used to perform enhancement operations on the event propagation graph and calculate the overall unsupervised multi-view contrast loss function value in combination with the original graph encoding model.
[0051] The third loss function value calculation module is used to calculate the global multi-task learning joint loss function value based on the overall unsupervised multi-view contrast loss function value and the cross-entropy loss function value.
[0052] The judgment calculation module is used to determine whether the convergence condition is met based on the value of the global multi-task learning joint loss function. If the convergence condition is met, the original graph coding model with the last updated weight parameters is taken as the optimal graph coding model so that the weight parameter matrix corresponding to the optimal graph coding model can be used for subsequent rumor prediction. If the convergence condition is not met, the weight parameters of the original graph coding model are updated, and the graph coding model with updated weight parameters is taken as the original graph coding model and returned to the rumor prediction module.
[0053] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described rumor detection method based on multi-view enhanced graph contrast learning.
[0054] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described rumor detection method based on multi-view enhanced graph contrast learning.
[0055] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0056] This invention discloses a rumor detection method and system based on multi-view enhanced graph contrastive learning. First, an event propagation graph is constructed using a social media event dataset. This graph is then combined with the weight parameter matrix corresponding to the original graph encoding model to predict the probability of a rumor. Next, a global multi-task learning joint loss function is calculated based on the overall unsupervised multi-view contrastive loss function and the cross-entropy loss function. Finally, the convergence condition is determined based on the global multi-task learning joint loss function. If the convergence condition is met, the original graph encoding model with the last updated weight parameters is taken as the optimal graph encoding model, allowing subsequent rumor predictions to be performed using the weight parameter matrix corresponding to the optimal graph encoding model. This invention proposes an accurate, robust, and fast-responding social media rumor detection method. While ensuring the integrity of key semantic information in the propagation graph, it improves the generalization ability and early detection performance of the graph encoding model in unknown events, achieving more accurate and efficient automatic identification of social media rumor information. Attached Figure Description
[0057] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0058] Figure 1 This is a flowchart of the rumor detection method based on multi-view enhanced graph contrast learning according to an embodiment of the present invention;
[0059] Figure 2 This is a schematic diagram comparing experimental data from an embodiment of the present invention. Detailed Implementation
[0060] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0061] The purpose of this invention is to provide a rumor detection method and system based on multi-view enhanced graph contrast learning, so as to overcome the above-mentioned technical defects.
[0062] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0063] To overcome the serious shortcomings of traditional social network rumor detection systems, which suffer from limited sample diversity coverage, uncontrollable random augmentation operations that can damage key propagation information, and susceptibility to oversmoothing effects leading to the loss of source post features, resulting in low accuracy and inability to accurately identify rumors in their early stages, this invention proposes a novel rumor detection method and system based on multi-view augmented graph contrastive learning. First, an event propagation graph is constructed for social media events. Then, multiple multi-view self-supervised objectives are built through a combination of data augmentation and model augmentation. In the data augmentation stage, nodes and edges in the propagation graph are controllably augmented based on node centrality to reduce the impact of random perturbations on key propagation nodes and important propagation relationships. In the model augmentation stage, different model views are generated through parameter perturbation to further improve the robustness of the graph representation. Subsequently, the initial feature vector corresponding to the root node is augmented and fused with the global graph feature vector to obtain the predicted probability of a rumor. Finally, based on the predicted probability of a rumor, a classifier is used to output the prediction result of whether the event is a rumor. This method can fully utilize the textual semantics and propagation structure features in the process of social media information dissemination. While ensuring the integrity of key semantic information in the propagation graph, it can improve the model's detection performance for unknown events, small sample scenarios, and the early stages of rumor propagation. It has good applicability and detection accuracy. The specific steps are detailed in the following discussion.
[0064] like Figure 1 As shown, this invention discloses a rumor detection method based on multi-view enhanced graph contrast learning, the method comprising:
[0065] Step S1: Obtain a social media event dataset through social media.
[0066] Step S2: Construct an event propagation graph using the social media event dataset, and combine it with the weight parameter matrix corresponding to the original graph encoding model to predict rumors and obtain the predicted probability of rumors.
[0067] Step S3: Calculate the cross-entropy loss function value based on the predicted probability of the rumor and the real supervision label.
[0068] Step S4: Perform enhancement operations on the event propagation graph and calculate the overall unsupervised multi-view contrast loss function value in combination with the original graph encoding model.
[0069] Step S5: Calculate the global multi-task learning joint loss function value based on the overall unsupervised multi-view contrast loss function value and the cross-entropy loss function value.
[0070] Step S6: Determine whether the convergence condition is met based on the value of the global multi-task learning joint loss function; if the convergence condition is met, take the original graph coding model with the last updated weight parameters as the optimal graph coding model so that the weight parameter matrix corresponding to the optimal graph coding model can be used for rumor prediction in the future; if the convergence condition is not met, update the weight parameters of the original graph coding model, take the graph coding model with updated weight parameters as the original graph coding model, and return to "Step S2".
[0071] The following is a detailed discussion of each step:
[0072] Step S1: Obtain a social media event dataset through social media; specifically, obtain a social media event dataset with true / false classification labels through the API interface of social media, as shown in Table 1; the social media event dataset includes the source post corresponding to each public event and the related interactive posts corresponding to the source post; social media includes, but is not limited to, at least one of Twitter, Facebook, Sina Weibo, WeChat, and Xiaohongshu. The aforementioned related interactive posts include at least one user post that participated in the dissemination, commenting, and secondary forwarding of the source post.
[0073] Table 1 Social Media Event Dataset
[0074]
[0075] Step S2: Construct an event propagation graph using a social media event dataset, and combine it with the weight parameter matrix corresponding to the original graph encoding model to predict rumors and obtain the predicted probability of rumors. Specifically, this includes:
[0076] Step S21: Construct a graph using the social media event dataset to generate an event propagation graph. Specifically, treat each event in the social media event dataset as an independent social cascade tree, with the source post as the root node and related interactive posts as child nodes. Establish directed edges based on the social interaction relationships between posts to generate the event propagation graph. The specific steps include:
[0077] Treat the source post as the root node Treat related interactive posts as child nodes And construct a set of directed edges based on the social connections between posts, using the following formula:
[0078]
[0079]
[0080] in, Let n be a set of nodes, consisting of one root node and m child nodes; n is the total number of nodes. This is a set of directed edges. The aforementioned social relationships include, but are not limited to, "reply," "quote," or "forward."
[0081] Constructing an event propagation graph based on a set of directed edges, the specific formula is as follows:
[0082]
[0083] in, A set of nodes; It is a set of directed edges; This is a diagram illustrating the spread of the event.
[0084] Step S22: Calculate the normalized adjacency matrix corresponding to the event propagation graph. Specific steps include:
[0085] Step S221: Calculate the adjacency matrix corresponding to the event propagation graph. The specific formula is as follows:
[0086]
[0087] in, Adjacency matrix The value of the element in the i-th row and j-th column.
[0088] Step S222: Calculate the adjacency matrix of the added node's self-connection edge based on the adjacency matrix corresponding to the event propagation graph. The specific formula is as follows:
[0089]
[0090] in, This represents the identity matrix, ensuring that when aggregating information about node features in the original graph coding model, not only is the information about the node's neighbors aggregated, but also the information about the node itself.
[0091] Step S223: Based on the adjacency matrix of the added node self-connected edges Calculate the degree matrix of the event propagation graph. The specific formula is as follows:
[0092]
[0093] in, Adjacency matrix The value of the element in the nth row and j+1th column.
[0094] This invention It is a matrix used to normalize the adjacency matrix during subsequent information aggregation, to prevent nodes with excessively high degree values from generating excessively large aggregation values due to having too many neighboring nodes.
[0095] Step S224: Degree matrix based on event propagation graph Adjacency matrix of nodes with self-connected edges Calculate the normalized adjacency matrix The specific formula is as follows:
[0096]
[0097] in, Let be the degree matrix of the event propagation graph. To add self-connected edges to the adjacency matrix of nodes, This is the normalized adjacency matrix.
[0098] Step S23: Perform vector aggregation using the text information corresponding to each node in the event propagation graph to generate the initial feature vector corresponding to each node in the event propagation graph, specifically including:
[0099] Step S231: Perform data cleaning on the text information corresponding to each node in the event propagation graph to obtain the discrete word sequence corresponding to each node. Specifically, for each node... (in, The text information was processed using natural language processing tools to clean the data, removing URL links, special emoticons, and meaningless stop words, resulting in discrete word sequences for each node. t represents the length of the post text.
[0100] Step S232: Use the Word2Vec word embedding tool to transform the discrete word sequence corresponding to each node into a continuous and dense word embedding vector matrix; specifically, use the Word2Vec word embedding tool to transform the discrete word sequence corresponding to each node into a continuous and dense word embedding vector matrix. ,in, This represents the embedding vector of the t-th word corresponding to the i-th node. Representative dimension is Word vectors, The value is 200; the Word2Vec word embedding tool was pre-trained.
[0101] Step S233: Apply an average pooling layer to aggregate the word embedding vector matrices corresponding to each node to obtain the initial feature vectors corresponding to each node in the event propagation graph. The specific formula is as follows:
[0102]
[0103] in, For the event propagation diagram Middle node The corresponding initial feature vector, To find the summation average function, Let represent the embedding vector of the t-th word.
[0104] The above steps apply an average pooling layer to aggregate the word embedding vector matrix to obtain the initial feature vectors corresponding to each node of the event propagation graph. The purpose is to obtain a uniform length feature representation of the event propagation graph.
[0105] Step S24: Construct an initial feature matrix X based on the initial feature vectors corresponding to the n nodes in the event propagation graph.
[0106] Step S25: Based on the initial feature vector, normalized adjacency matrix, and initial feature matrix corresponding to the root node of the event propagation graph, and combined with the weight parameter matrix corresponding to the original graph encoding model, generate the predicted probability of the rumor. Specific steps include:
[0107] Step S251: Enhance the initial feature vector corresponding to the root node of the event propagation graph to generate the root node feature vector. Specifically, enhance the initial feature vector corresponding to the root node of the event propagation graph through a fully connected layer and an activation function to obtain the root node feature vector. This is used for subsequent fusion with graph convolutional features.
[0108] Step S252: Perform feature aggregation on the initial feature matrix, the weight parameter matrix corresponding to the original graph encoding model, and the normalized adjacency matrix to obtain the propagation graph feature matrix. All subsequent hidden layers have a dimension of 64, as shown in the formula:
[0109]
[0110] in, For activation function, The initial characteristic matrix, The weight parameter matrix corresponding to the original graph encoding model. For the normalized adjacency matrix, For the feature matrix of the propagation graph, This is the feature vector of the propagation graph corresponding to the nth node.
[0111] Step S253: Calculate the global graph feature vector based on the propagation graph feature vectors corresponding to each node in the propagation graph feature matrix. The specific formula is as follows:
[0112]
[0113] in, To find the summation average function, These are the feature vectors of the global graph.
[0114] Step S254: After concatenating the root node feature vector with the global graph feature vector along the feature dimension, calculate the prediction probability of the rumor. The specific formula is as follows:
[0115]
[0116] in, For global graph feature vectors, The root node feature vector, For fully connected operation, This represents the predicted probability of a rumor.
[0117] Step S3: Predicting the probability based on rumors and real supervision label The cross-entropy loss function value is calculated using the following formula:
[0118]
[0119] in, This represents the value of the cross-entropy loss function.
[0120] Step S4: Perform enhancement operations on the event propagation graph and calculate the overall unsupervised multi-view contrastive loss function value in conjunction with the original graph encoding model. Specific steps include:
[0121] Step S41: Perform enhancement operations on the event propagation graph to generate two enhanced data views, specifically including:
[0122] Step S411: When performing a node deletion operation, calculate the centrality score of each child node in the event propagation graph using a graph theory algorithm. , .
[0123] Step S412: Based on the logarithmic smoothing transformation formula and the centrality score corresponding to each child node. The probability of each child node being deleted is calculated using the following formula:
[0124]
[0125]
[0126] The superscript 'd' indicates that the current operation is a node deletion operation. For the i-th child node Intermediate transformation parameters corresponding to centrality scores, The i-th child node in the event propagation graph The corresponding centrality score, It is a smoothing term. This is to prevent the logarithmic function from calculating an meaningless minimum smoothing constant. To control the hyperparameter of the overall expected node deletion ratio for the entire image, It is 0.3. To implement node deletion operations based on event propagation graphs The maximum limit value corresponding to the logarithmic values of all node centrality is calculated. For the event propagation diagram The average of the centrality scores of all nodes in the middle. For the i-th child node The probability of being deleted.
[0127] In the entire process of probability allocation and actual elimination operation, the root node, as the absolute source of event information, is the key element of this invention. The corresponding deletion probability is hard-coded and forced to be constant at 0, meaning that the root node does not participate in any node deletion operation, thereby ensuring the integrity of the semantics of the core information source of the event from the underlying logic.
[0128] Step S413: In the feature masking operation, while keeping the graph topology unchanged, calculate the masking probability of each child node's feature based on the overall feature masking ratio hyperparameter. The specific formula is as follows:
[0129]
[0130] The superscript 't' indicates that the current operation is performing a node feature masking operation. For the i-th child node The corresponding feature is masked probability. To perform event propagation graph-based operations in feature masking The maximum limit value corresponding to the logarithmic values of all node centrality is calculated. For the i-th node Centrality score after smoothing transformation For the event propagation diagram The average of the centrality scores of all nodes after smooth transformation. This is the hyperparameter for the overall feature mask ratio. It is 0.3.
[0131] The purpose of this invention in implementing controllable feature masking operations is to simulate information loss or sensor noise in social text. The basic logic is to replace the feature vectors of corresponding nodes with mask vectors consisting of zeros according to a specific probability, without disrupting the adjacency matrix. The features corresponding to all child nodes except the root node are masked with a probability... It follows the same centrality-negative correlation mapping pattern as node deletion. Similarly, the feature mask probability of the root node is set to 0.
[0132] Step S414: When performing the edge deletion operation, based on the event propagation graph... The centrality of the nodes at both ends of each edge is calculated to obtain the probability of deleting each edge. The specific formula is as follows:
[0133]
[0134]
[0135]
[0136] in, Connecting edges Centrality log value, Connecting edges Centrality value, and Connecting edges The centrality scores of the two endpoint nodes u and v For smoothing terms, For the event propagation diagram The maximum limit value corresponding to all edge centrality values calculated in the algorithm. For the event propagation diagram The average value corresponding to all edge centrality values calculated in the mean. For the edge of the event propagation graph The probability of being deleted. To control the hyperparameter of the overall edge deletion ratio, The value is 0.3, where u and v are the two endpoint nodes of an edge in the event propagation graph.
[0137] Step S415: Based on the probability of each child node being deleted, the probability of the corresponding feature of each child node being masked, and the probability of each edge being deleted, perform an enhancement operation on the event propagation graph to generate two enhanced data views, denoted as... and .
[0138] Step S42: Perturb the parameter domain of the original graph coding model using a perturbation function to generate a perturbation model. The perturbation model has the same network structure as the original graph coding model, but the parameter weight matrix changes. The specific formula for the perturbation model is as follows:
[0139]
[0140] in, For the original graph coding model, Let be the perturbation function. For the perturbation model, The weight parameters are for the original graph encoding model. These are the weight parameters for the perturbation model. , All are abbreviations. This is a simplified version of the input diagram.
[0141] The parameter domain perturbations include: weight Gaussian perturbation, L1 norm-based weight pruning, and convolution pruning.
[0142] Weighted Gaussian perturbation: Traverse all trainable hidden layer parameters within the graph encoder model, and for each weight matrix... Generate Gaussian distributed random noise with perfectly matched dimensions, and then superimpose the noise matrix onto the original weights, i.e.:
[0143]
[0144] in, The mean is variance is The noise matrix of the controlled Gaussian distribution. The weight parameters of the graph encoder model, These are the weight parameters for the perturbation model.
[0145] L1 norm-based weight pruning: Traverse all leaf-level modules in the original graph encoding model, evaluate their importance based on the L1 norm of the weight parameters, sort them from low to high importance, and set the weight parameters with the lowest importance to zero to complete weight pruning.
[0146] Convolutional pruning: Traverse the graph convolutional layers of the original graph encoding model, and for each convolutional layer, prune according to the set dropout probability. The algorithm decides whether to skip the computation of this convolutional layer; if it does, it replaces the forward propagation function of the convolutional layer with a simple transfer function and directly returns the input data.
[0147] Step S43: Inject the two augmented data views sequentially into the original graph coding model and the perturbation model to generate the overall unsupervised multi-view contrastive loss function value. Specific steps include:
[0148] Step S431: Inject the two augmented data views into the original graph coding model to generate first-view graph-level vectors and second-view graph-level vectors. The specific formula is as follows:
[0149]
[0150]
[0151] in, For the first enhanced data view, For the second enhanced data view, The vector is a first-person perspective image-level vector. This is a second-view, image-level vector. Original graph coding model The corresponding weight parameters.
[0152] Step S432: Inject the two enhanced data views into the perturbation model to generate third-view lower-level vectors and fourth-view lower-level vectors. The specific formula is as follows:
[0153]
[0154]
[0155] in, For the first enhanced data view, For the second enhanced data view, This is a third-person perspective image-level vector. This is a fourth-person perspective vector. For the perturbation model The corresponding weight parameters.
[0156] Step S433: Convert the first-view lower-level vector Second-view graph-level vectors Third-person perspective graph-level vectors and fourth-person perspective image-level vector The inputs are fed into the projection head network for nonlinear mapping to obtain the first nonlinear feature vector. Second nonlinear eigenvector Third nonlinear eigenvector and the fourth nonlinear eigenvector The projector network consists of two fully connected layers and a ReLU activation function layer. The dimension of each fully connected layer is 64, as shown in Table 2 for the hidden layer.
[0157] Step S434: Based on the first nonlinear eigenvector Second nonlinear eigenvector Third nonlinear eigenvector and the fourth nonlinear eigenvector By classifying and combining these objectives, we can obtain multi-perspective self-supervised objectives; these multi-perspective self-supervised objectives include: and combination, and combination, and combination, and combination; and combination, and The two combinations represent augmented perspectives of data from the same model. and combination, and Combinations, two combinations, are enhanced perspective representations of the same data model.
[0158] Step S435: Calculate the contrastive loss term corresponding to each combination in the multi-view self-supervised target using the cosine similarity formula. The specific formula is as follows:
[0159]
[0160]
[0161] in, For the k-th combination in the multi-view self-supervised objective, the contrastive loss term is... The number of samples in a batch of training data. For the i-th nonlinear eigenvector With the j-th nonlinear eigenvector The cosine similarity is N = 4. correspond and , correspond and , correspond and , correspond and .
[0162] Step S436: Generate the overall unsupervised multi-view contrastive loss function value based on the contrastive loss terms corresponding to each combination in the multi-view self-supervised objective. The specific formula is as follows:
[0163]
[0164] in, The first nonlinear eigenvector With the second nonlinear eigenvector The corresponding comparative loss term for the combination, The third nonlinear eigenvector and the fourth nonlinear eigenvector The corresponding comparative loss term for the combination, The first nonlinear eigenvector With the third nonlinear eigenvector The corresponding comparative loss term for the combination, The second nonlinear eigenvector With the fourth nonlinear eigenvector The corresponding comparative loss term for the combination, The overall unsupervised multi-view comparison loss function value.
[0165] Step S5: Calculate the global multi-task learning joint loss function value based on the overall unsupervised multi-view contrastive loss function value and the cross-entropy loss function value. The specific formula is as follows:
[0166]
[0167] in, To learn the joint loss function value for global multi-task learning, This is the loss balance coefficient. The overall unsupervised multi-view contrastive loss function value, This represents the value of the cross-entropy loss function.
[0168] Step S6: Determine whether the convergence condition is met based on the joint loss function value of global multi-task learning. If the convergence condition is met, the original graph coding model with the last updated weight parameters is taken as the optimal graph coding model, so that the weight parameter matrix corresponding to the optimal graph coding model can be used for subsequent rumor prediction. If the convergence condition is not met, update the weight parameters of the original graph coding model, and take the graph coding model with updated weight parameters as the original graph coding model, and return to "Step S2". The convergence condition mentioned here can be set according to actual needs, and will not be discussed further here.
[0169] The specific steps for rumor prediction using the optimal graph coding model in this invention are basically the same as step S2, except that the weight parameter matrix corresponding to the original graph coding model is changed to the weight parameter matrix corresponding to the optimal graph coding model. The source post to be predicted and related interactive posts are used as inputs, which will not be repeated here. Please refer to the above steps for details.
[0170] During the inference phase, forward inference is performed using the preprocessed source posts and related interaction posts corresponding to the event to be tested, along with the optimal graph coding model. The final detection result is derived based on the output probability. In the following comparative experiments, the original graph coding model is trained using the training parameters in Table 2.
[0171] Table 2 Model Training Parameters
[0172]
[0173] As mentioned above, the rumor datasets of this invention mainly come from Weibo and PHEME. Weibo is the standard dataset for detecting rumors on domestic social media, and PHEME is the standard dataset for detecting rumors on Twitter. In the following discussion of experimental results, the scheme of this invention is referred to as Ours, and the comparison schemes include AD-GSCL and BiGCN. Among them, BiGCN is a rumor detection method based on bidirectional graph convolution. It learns the deep propagation features and wide-range diffusion features of rumors by performing graph convolution on the rumor propagation tree from top to bottom and from bottom to top, respectively, and integrates the source post information to achieve rumor detection. AD-GSCL is a graph contrastive learning rumor detection method for the problems of imbalanced data and scarce labeled data in real-world scenarios. It encodes the propagation tree through GCN and combines supervised and unsupervised graph contrastive learning to learn discriminative rumor propagation representations using labeled and large-scale unlabeled data, thereby completing the rumor classification task.
[0174] After validating the proposed scheme Ours and the comparative schemes AD-GSCL and BiGCN using the aforementioned dataset, the accuracy, average F1 score, precision, recall, and F1 score of the experiment are shown in Tables 3 and 4. The average F1 score is compared to... Figure 2 As shown, compared with the comparative schemes AD-GSCL and BiGCN, the performance of the present invention's scheme Ours is superior in all aspects.
[0175] Table 3 shows the rumor detection performance on the Weibo dataset.
[0176]
[0177] Table 4 shows the rumor detection performance on the PHEME dataset.
[0178]
[0179] The Weibo dataset used in this invention encompasses a wealth of Chinese social media content, containing complex and diverse rumor propagation patterns and linguistic features; while the PHEME dataset contains a large number of English news reports and social media posts. On both datasets with linguistic and cultural differences, the model proposed in this invention demonstrates superior performance compared to baseline models. This illustrates the model's generalization ability and adaptability, showing that the model can effectively address the challenges of rumor detection in different linguistic environments, accurately identifying and detecting both Chinese and English rumors.
[0180] This invention discloses a rumor detection system based on multi-view enhanced graph contrast learning, the system comprising:
[0181] The dataset acquisition module is used to acquire social media event datasets through social media.
[0182] The rumor prediction module is used to construct an event propagation graph using the social media event dataset, and combine it with the weight parameter matrix corresponding to the original graph encoding model to predict rumors and obtain the predicted probability of rumors.
[0183] The first loss function value calculation module is used to calculate the cross-entropy loss function value based on the predicted probability of the rumor and the real supervision label.
[0184] The second loss function value calculation module is used to perform enhancement operations on the event propagation graph and calculate the overall unsupervised multi-view contrast loss function value in combination with the original graph encoding model.
[0185] The third loss function value calculation module is used to calculate the global multi-task learning joint loss function value based on the overall unsupervised multi-view comparison loss function value and the cross-entropy loss function value.
[0186] The judgment calculation module is used to determine whether the convergence condition is met based on the value of the global multi-task learning joint loss function. If the convergence condition is met, the original graph coding model with the last updated weight parameters is taken as the optimal graph coding model so that the weight parameter matrix corresponding to the optimal graph coding model can be used for subsequent rumor prediction. If the convergence condition is not met, the weight parameters of the original graph coding model are updated, and the graph coding model with updated weight parameters is taken as the original graph coding model and returned to the rumor prediction module.
[0187] For details of the steps that are the same as those described above, please refer to the method documentation; they will not be discussed further here.
[0188] This invention proposes a more accurate, robust, and fast-response method for detecting social media rumors. While ensuring the integrity of key semantic information in the propagation graph, it improves the generalization ability and early detection performance of the graph coding model in unknown events, thereby achieving more accurate and efficient automatic identification of social media rumors.
[0189] The present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described rumor detection method based on multi-view enhanced graph contrast learning.
[0190] Embodiments of the present invention may be provided as methods, systems, or computer program products. The present invention may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0191] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0192] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0193] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0194] The present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described rumor detection method based on multi-view augmented graph contrast learning.
[0195] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.
[0196] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A rumor detection method based on multi-view augmented graph contrast learning, characterized in that, The method includes: S1: Obtain social media event datasets through social media; S2: Construct an event propagation graph using the aforementioned social media event dataset, and combine it with the weight parameter matrix corresponding to the original graph encoding model to predict rumors and obtain the predicted probability of rumors, specifically including: The aforementioned social media event dataset is used to construct a graph and generate an event propagation graph; Calculate the normalized adjacency matrix corresponding to the event propagation graph; Vector aggregation is performed using the text information corresponding to each node in the event propagation graph to generate the initial feature vector corresponding to each node in the event propagation graph. An initial feature matrix is constructed based on the initial feature vectors corresponding to n nodes in the event propagation graph; Based on the initial feature vector corresponding to the root node of the event propagation graph, the normalized adjacency matrix, and the initial feature matrix, the predicted probability of the rumor is generated by combining the weight parameter matrix corresponding to the original graph encoding model. S3: Calculate the cross-entropy loss function value based on the predicted probability of the rumor and the real supervision label; S4: Perform enhancement operations on the event propagation graph and calculate the overall unsupervised multi-view contrast loss function value in combination with the original graph encoding model; S5: Calculate the global multi-task learning joint loss function value based on the overall unsupervised multi-view contrast loss function value and the cross-entropy loss function value; S6: Determine whether the convergence condition is met based on the value of the global multi-task learning joint loss function; if the convergence condition is met, take the original graph coding model with the last updated weight parameters as the optimal graph coding model so that the weight parameter matrix corresponding to the optimal graph coding model can be used for rumor prediction in the future; if the convergence condition is not met, update the weight parameters of the original graph coding model, take the graph coding model with updated weight parameters as the original graph coding model, and return to "S2".
2. The rumor detection method based on multi-view enhanced graph contrast learning according to claim 1, characterized in that, The process of generating the predicted probability of a rumor based on the initial feature vector corresponding to the root node of the event propagation graph, the normalized adjacency matrix, and the initial feature matrix, combined with the weight parameter matrix corresponding to the original graph encoding model, specifically includes: The initial feature vector corresponding to the root node of the event propagation graph is enhanced to generate the root node feature vector; The initial feature matrix, the weight parameter matrix corresponding to the original graph encoding model, and the normalized adjacency matrix are aggregated to obtain the propagation graph feature matrix; Calculate the global graph feature vector based on the propagation graph feature vector corresponding to each node in the propagation graph feature matrix; The root node feature vector and the global graph feature vector are concatenated along the feature dimension to calculate the prediction probability of the rumor.
3. The rumor detection method based on multi-view enhanced graph contrast learning according to claim 1, characterized in that, The enhancement operation performed on the event propagation graph, and the calculation of the overall unsupervised multi-view contrastive loss function value in conjunction with the original graph encoding model, specifically includes: Enhancement operations are performed on the event propagation graph to generate two enhanced data views; The original graph coding model is perturbed in the parameter domain using a perturbation function to generate a perturbed model; The two augmented data views are sequentially injected into the original graph coding model and the perturbation model to generate an overall unsupervised multi-view contrastive loss function value.
4. The rumor detection method based on multi-view enhanced graph contrast learning according to claim 3, characterized in that, The enhancement operation performed on the event propagation graph to generate two enhanced data views specifically includes: When performing a node deletion operation, the centrality score of each child node in the event propagation graph is calculated using a graph theory algorithm. The probability of each child node being deleted is calculated based on the log-smooth transformation formula and the centrality score corresponding to each child node; In the feature masking operation, the graph topology remains unchanged, and the probability of each child node's feature being masked is calculated based on the overall feature masking ratio hyperparameter. When performing an edge deletion operation, the deletion probability of each edge is calculated based on the centrality of the nodes at both ends of each edge in the event propagation graph. An enhancement operation is performed on the event propagation graph based on the probability of each child node being deleted, the probability of the features corresponding to each child node being masked, and the probability of each connecting edge being deleted, generating two enhanced data views.
5. The rumor detection method based on multi-view enhanced graph contrast learning according to claim 3, characterized in that, The step of sequentially injecting the two enhanced data views into the original graph encoding model and the perturbation model to generate the overall unsupervised multi-view contrastive loss function value specifically includes: The two enhanced data views are injected into the original graph coding model to generate a first-view graph-level vector and a second-view graph-level vector. The two enhanced data views are injected into the perturbation model to generate a third-view lower-graph level vector and a fourth-view lower-graph level vector. The first-view, second-view, third-view, and fourth-view image-level vectors are input into the projection head network for nonlinear mapping to obtain the first nonlinear feature vector and the second nonlinear feature vector. The third nonlinear eigenvector and the fourth nonlinear eigenvector; Based on the first nonlinear feature vector, the second nonlinear feature vector, the third nonlinear feature vector, and the fourth nonlinear feature vector, a classification combination is performed to obtain a multi-view self-supervised target; The contrast loss term corresponding to each combination in the multi-view self-supervised target is calculated using the cosine similarity formula. The overall unsupervised multi-view contrastive loss function value is generated based on the contrastive loss terms corresponding to each combination in the multi-view self-supervised objective.
6. The rumor detection method based on multi-view enhanced graph contrast learning according to claim 2, characterized in that, The root node feature vector and the global graph feature vector are concatenated along the feature dimension to calculate the prediction probability of the rumor. The specific formula is as follows: in, For global graph feature vectors, The root node feature vector, For fully connected operation, This represents the predicted probability of a rumor.
7. A rumor detection system based on multi-view augmented graph contrast learning, characterized in that, The system includes: The dataset acquisition module is used to acquire social media event datasets through social media. The rumor prediction module is used to construct an event propagation graph using the aforementioned social media event dataset, and combine it with the weight parameter matrix corresponding to the original graph encoding model to predict rumors and obtain the predicted probability of rumors. Specifically, it includes: The aforementioned social media event dataset is used to construct a graph and generate an event propagation graph; Calculate the normalized adjacency matrix corresponding to the event propagation graph; Vector aggregation is performed using the text information corresponding to each node in the event propagation graph to generate the initial feature vector corresponding to each node in the event propagation graph. An initial feature matrix is constructed based on the initial feature vectors corresponding to n nodes in the event propagation graph; Based on the initial feature vector corresponding to the root node of the event propagation graph, the normalized adjacency matrix, and the initial feature matrix, the predicted probability of the rumor is generated by combining the weight parameter matrix corresponding to the original graph encoding model. The first loss function value calculation module is used to calculate the cross-entropy loss function value based on the predicted probability of the rumor and the real supervision label; The second loss function value calculation module is used to perform enhancement operations on the event propagation graph and calculate the overall unsupervised multi-view contrast loss function value in combination with the original graph encoding model. The third loss function value calculation module is used to calculate the global multi-task learning joint loss function value based on the overall unsupervised multi-view contrast loss function value and the cross-entropy loss function value. The judgment calculation module is used to determine whether the convergence condition is met based on the value of the global multi-task learning joint loss function. If the convergence condition is met, the original graph coding model with the last updated weight parameters is taken as the optimal graph coding model so that the weight parameter matrix corresponding to the optimal graph coding model can be used for subsequent rumor prediction. If the convergence condition is not met, the weight parameters of the original graph coding model are updated, and the graph coding model with updated weight parameters is taken as the original graph coding model and returned to the rumor prediction module.
8. A computer-readable storage medium, characterized in that, The device contains a computer program that, when executed by a processor, implements the steps of a rumor detection method based on multi-view augmented graph contrast learning as described in any one of claims 1-6.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the rumor detection method based on multi-view enhanced graph contrast learning as described in any one of claims 1-6.
Citation Information
Patent Citations
Internet rumor detection method based on transmission graph neural network
CN112732906A
