False news detection method based on graph convolutional neural network
By introducing the graph structure optimization module and modal discriminator into the graph convolutional neural network, combined with the cross-modal supervision contrast loss, the existing technology problems of insufficient extraction of news text and image information and large modal differences are solved. Improved accuracy of fake news detection.
Patent Information
- Application Number
- CN202410815593.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Existing fake news detection methods fail to fully extract and analyze the text and image information of news, and fail to effectively reduce the modal difference between image and text information, resulting in low accuracy in fake news detection.
The graph structure optimization module based on graph convolutional neural network is used to optimize the graph structure through graph structure learning network, combined with modal discriminator and cross-modal supervision contrast loss, to reduce modal differences and improve fake news detection accuracy.
The optimized graph neural network can better extract and analyze news information, reduce modal differences, and improve the accuracy of fake news detection.
Smart Images

Figure CN118644867A
Abstract
Description
Technical Field
[0001] The present invention belongs to graph convolutional neural network machine learning technology, and specifically relates to a fake news detection method based on graph convolutional neural network. Background Art
[0002] Fake news detection technology refers to a technical means of using computer technology and data science methods to automatically analyze and judge news content in order to identify reports that fail to truly reflect the true face of objective things and contain false elements. Specifically, fake news refers to "news" reported based on false "news facts" and is "news" without any objective factual roots. Specifically, fake news detection technology combines multiple algorithms and models such as natural language processing, machine learning, and deep learning. Through the analysis and fusion of multimodal information of news text and images, key features are extracted, and based on these features, true and false classification and evaluation are performed through classifiers. However, in practical applications, many fake news detection technology methods fail to fully extract and analyze the text and image information of news, resulting in poor learned representations, which is not conducive to fake news detection tasks. At the same time, many fake news detection technology methods also fail to notice the large modal differences between image and text information, resulting in low accuracy in subsequent fake news detection tasks.
[0003] Graph convolutional neural network is a machine learning technology whose core idea is to generalize the convolution operation to graph data. It transfers information and extracts features by utilizing the adjacency relationship between nodes. Specifically, the graph convolutional neural network uses the feature information of the node's neighboring nodes to update the representation of each node, and then gradually aggregates a wider range of neighboring node information through multi-layer convolution operations. However, in practical applications, graph neural networks are highly sensitive to graph structures. The presence of more noise in the graph structure or incorrect connection relationships in the original graph will make the representation learned by the graph neural network poor, which is not conducive to the subsequent fake news detection task. Existing graph structure optimization methods use attention mechanisms or feature similarity to reweight the original connections of the original graph without changing the connection relationship, so it is impossible to optimize the original graph to the optimal state.
[0004] Therefore, how to reduce the interference of noisy data in the graph structure on the subsequent fake news detection task and reduce the differences between modalities remains a challenging problem. Summary of the invention
[0005] Purpose of the invention: In view of the problem that graph neural networks fail to fully extract and analyze the text and image information of news and fail to notice the large modal differences between image and text information in existing fake news detection methods, the present invention provides a fake news detection method based on graph convolutional neural networks.
[0006] The method of the present invention proposes an efficient graph structure optimization module based on graph convolutional neural network, which can effectively supplement the potential connections of the original graph, remove unreasonable connections, and optimize the weight relationship of the original connection, so that the graph neural network can fully extract and analyze the text and image information of the news. At the same time, in order to alleviate the differences between modalities and learn the invariant representations between different modalities, the present invention also designs a modality discriminator, and enhances the feature discrimination ability through cross-modal supervised contrast loss. Through the modality discriminator, the present invention reduces the modality difference and ultimately improves the accuracy of fake news detection.
[0007] Technical solution: A fake news detection method based on graph convolutional neural network, including the following steps:
[0008] S1. Use the pre-trained model to extract the image modality feature set and the text modality feature set of the news set to be detected;
[0009] S2, using the image modality features and text modality features obtained in S1 as nodes of the initial undirected graph to construct initial undirected graphs of image modality and text modality respectively, and the initial undirected graph is represented by an initial adjacency matrix and node features;
[0010] S3, inputting the initial undirected graph obtained in S2 into the graph structure learning network to optimize the graph structure, and obtaining the optimized graph structure;
[0011] S4, input the optimized graph structure in S3 into a two-layer cross-modal shared weight graph convolutional neural network, and finally obtain cross-modal features;
[0012] S5, input the cross-modal features obtained in S4 into the modality discriminator to learn modality-invariant features to further alleviate the differences between modalities;
[0013] S6. Input the modal-invariant features obtained in S5 into the classifier to obtain the possibility that the news is fake news, so as to judge fake news.
[0014] Furthermore, in S1:
[0015] 1) For the text data in the news collection, a bidirectional encoder representation pre-training model is used to extract its text modality features;
[0016] 2) For detecting image data in news collections, a multimodal contrastive learning pre-training model is used to extract its image modality features.
[0017] Furthermore, the specific operation method of S1 is as follows:
[0018] 1) Assume that the news collection consists of n news items containing text and images, t irepresents the text in the i-th news, v i represents the image in the i-th news, y i The label of the i-th news item is represented by the set of text modalities T = [t1,…,t i ,…,t n ], the set of image modalities is denoted as V = [v1,…,v i ,…,v n ];
[0019] 2) For the i-th news, C represents the type of news label. represents a C-dimensional real vector space; the label matrix Y corresponding to the news set is expressed as: Represents a C×n-dimensional real matrix space;
[0020] 3) For the i-th news, set t i Input to the bidirectional encoder representation pre-training model to extract its text modality feature u i ,in d u Represents the dimension of text modal features; the set U of news text modal features is expressed as:
[0021]
[0022] 4) For the i-th news, set v i Input to the multimodal contrastive learning pre-trained model to extract its image modality features q i ,in d q represents the dimension of the image modal features; the set Q of news image modal features is expressed as:
[0023]
[0024] Furthermore, in S2:
[0025] 1) Construction of the initial undirected graph of the image modality: For each sample feature in the set of image modality features, calculate the cosine similarity between it and any sample feature in the set, connect the nodes whose cosine similarity is greater than a preset threshold, and thus construct the initial undirected graph of the image modality;
[0026] 2) Construction of the initial undirected graph of the text modality: For each sample feature in the set of text modality features, calculate its cosine similarity with any sample feature in the set, connect the nodes whose cosine similarity is greater than a preset threshold, and thus construct the initial undirected graph of the text modality.
[0027] Furthermore, the specific operation method of S2 is as follows:
[0028] Step 1) Denote the feature extractor F as F(X,θ f ), where X∈{U,Q} is used to represent the set U of text modal features or the set Q of image modal features extracted from the news set by the pre-trained model, θ f Represents the parameters to be learned to further extract features;
[0029] Step 2) Calculate the features u of each pair of samples in the U and Q sets respectively i and u j ,q i and q j The cosine similarity between them, where i, j∈[1,n]; nodes whose cosine similarity is greater than the set threshold Connect to get edge Thus, the initial undirected graph δ is constructed X ; Initial undirected graph δ X Expressed as δ X =(Λ X ,Ψ X ), Λ X Represents a node in an undirected graph The collection of X Represents an edge in an undirected graph The initial undirected graph δ X The initial adjacency matrix is represented as A X .
[0030] Furthermore, the specific steps of S3 are as follows:
[0031] 1) Input the initial adjacency matrix and node features obtained in S2 into the two-layer graph convolutional neural network of the graph structure learning network to obtain node embedding;
[0032] In each iteration, A X and X are input into a two-layer graph convolutional neural network to obtain the node feature Z X Represented as Z X =GCN Z (A X ,X), where d z represents the dimension of embedding, and n represents the number of node embeddings;
[0033] 2) Transpose the node embedding matrix, and then multiply the transposed matrix with the node embedding matrix to obtain the similarity matrix S X ;
[0034] 3) For the dense similarity matrix S XK nearest neighbor sparsification is performed, that is, for each node, only the edges formed by the K nodes connected to the node with the highest feature similarity are retained. The final similarity matrix is
[0035] 4) The adjacency matrix obtained after optimization From the initial adjacency matrix A X and the calculated similarity matrix The elements of are summed up to form, that is
[0036] Furthermore, in S4:
[0037] The set of potential feature representations B X It is expressed as: where X∈{U,Q}, where GCN B (·,·) represents a two-layer graph convolutional neural network for learning feature representation, Indicates B X The i-th feature in B U Representing cross-modal feature representation of text modality, B Q Representing cross-modal feature representations for image modalities.
[0038] Furthermore, in S5:
[0039] 1) Modality discriminator;
[0040] The modality discriminator D consists of a single-layer neural network and a normalized exponential function, denoted as D(M; θ d ), where θ d Represents the input parameters, and the input text and image feature set M is expressed as:
[0041]
[0042] Among them, d k Indicates the dimension of the mode, m i Represents the i-th feature in the set M;
[0043] The output of the modality discriminator P θ (m i )=D(m i θ d ) is m i is the probability of a text feature or an image feature; the modal label of the feature is Indicates that Represents the set Y m The modal label of the i-th feature in , Indicates m i Belongs to text mode, Indicates m ibelongs to the image modality; the loss L of the modality discriminator m It is expressed as follows:
[0044]
[0045] in, Represents the distribution (M,Y m ) is a random variable sampled from To calculate the mathematical expectation;
[0046] 2) Introducing cross-modal supervised contrastive loss in the modality discriminator;
[0047] For m i , let P(i) be the number of i The index set of features with the same category, A(i) is the index set of features in M except P(i), and the cross-modal supervision contrast loss L S It is expressed as follows:
[0048]
[0049] Where |P(i)| represents the number of features in the P(i) index set, and τ=0.5.
[0050] Further, in step S6:
[0051] 1) Classifier:
[0052] Classifier It consists of a single-layer neural network and a normalized exponential function, where θ c are learnable parameters, represents the modality-invariant features obtained from S5; the output of the classifier for The probability of being fake news or true news respectively. If the output probability of being fake news is greater than the probability of being true news, then the news is judged to be fake news, otherwise it is true news;
[0053] Classifier loss L c It is expressed as:
[0054]
[0055] in, Represents the distribution A random variable sampled from To calculate the mathematical expectation;
[0056] 2) Parameters θ of the feature extractor f , the parameters θ of the modal discriminator d , the parameters of the classifier θ cOptimize; the details are as follows:
[0057] According to L m , L s , L c , we can get the total loss L total , L total Expressed as: L total =L c +βL s -ηL m , where β and η are balance factors;
[0058] By maximizing the loss modality discriminator loss L m To update the parameter θ d ,θ f ,θ c , thereby alleviating the modality difference between text modality features and image modality features, while adopting a gradient reversal layer before the modality discriminator and using the stochastic gradient descent algorithm to optimize the parameters; the optimization process is expressed as follows:
[0059]
[0060] in, represents the optimized θ f ,θ c ;
[0061]
[0062] in, represents the optimized θ d .
[0063] The present invention also provides a multimodal fake news detection system based on a fake news detection method of a graph convolutional neural network, and the multimodal fake news detection system comprises:
[0064] 1) A modal data preprocessing module, including a multimodal contrastive learning pre-training model for extracting image modal features of the news to be detected and a bidirectional encoder representation pre-training model for extracting text modal features of the news to be detected;
[0065] 2) a graph structure learning network, including an initial undirected graph construction module for constructing initial undirected graphs of image modality and text modality, and a graph structure optimization module for optimizing the graph structure of the obtained initial undirected graph;
[0066] 3) The modality-invariant feature learning module consists of a two-layer graph convolutional neural network with cross-modal shared weights and a modality discriminator. The optimized graph structure is first input into the two-layer graph convolutional neural network with cross-modal shared weights to obtain cross-modal features, and the cross-modal features are input into the modality discriminator to learn the modality-invariant feature representation.
[0067] 4) A fake news detection module, including a classifier, inputs the modality-invariant feature representation into the classifier to obtain the possibility of the news being fake news or true news.
[0068] Beneficial effects:
[0069] 1) The optimized graph adjacency matrix of the present invention supplements the potential connection relationship in the original graph, deletes the unreasonable connections, and optimizes the weight relationship of the original connection, so that the graph neural network can better learn features, which is conducive to improving the accuracy of fake news detection tasks.
[0070] 2) The present invention learns modality-invariant feature representations through a generative adversarial network composed of a modality discriminator and a graph structure learning network, thereby reducing the modality differences between text features and image features, making the learned modality-invariant features have better representation, which is beneficial to the classification and evaluation of fake news by the classifier. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 This is a flowchart of the steps of a fake news detection method based on a graph convolutional neural network in the implementation of the present invention;
[0072] Figure 2 A schematic diagram of a graph structure optimization network for fake news detection based on a graph convolutional neural network in the implementation of the present invention;
[0073] Figure 3 It is a structural schematic diagram of a modal data preprocessing module and a graph structure learning network in the implementation of the present invention;
[0074] Figure 4 It is a structural diagram of a modal discriminator in the implementation of the present invention;
[0075] Figure 5 It is a structural diagram of a classifier composed of a single-layer neural network and a normalized exponential function (Softmax activation function) in the implementation of the present invention. DETAILED DESCRIPTION
[0076] The technical solution of the present invention is described in detail below with reference to the accompanying drawings, but the protection scope of the present invention is not limited to the embodiments.
[0077] like Figure 1 As shown, the present invention provides a fake news detection method based on graph convolutional neural network, comprising the following steps:
[0078] S1. Obtain multimodal data of the news set to be detected: use a pre-trained model to extract an image modal feature set and a text modal feature set of the news set to be detected.
[0079] Specifically: 1) For detecting text data in news collections, the bidirectional encoder representation pre-training model (BERT) is used to extract its text modal features; 2) For detecting image data in news collections, the multimodal contrastive learning pre-training model (CLIP) is used to extract its image modal features.
[0080] The specific operation method of S1 is as follows:
[0081] 1) Assume that the news collection consists of n news items containing text and images, t i represents the text in the i-th news, v i represents the image in the i-th news, y i The label of the i-th news item is represented by the set of text modalities T = [t1,…,t i ,…,t n ], the set of image modalities is denoted as V = [v1,…,v i ,…,v n ].
[0082] 2) For the i-th news, C represents the type of news label. represents a C-dimensional real vector space. The label matrix Y corresponding to the news set is expressed as: Represents a C×n dimensional real matrix space.
[0083] 3) For the i-th news, set t i Input to the bidirectional encoder representation pre-trained model (BERT) to extract its text modality feature u i ,in d u Represents the dimension of text modal features. The set U of news text modal features is expressed as:
[0084] 4) For the i-th news, set v i Input to the multimodal contrastive learning pre-training model (CLIP) to extract its image modality features q i ,in d q Represents the dimension of the image modal features. The set Q of news image modal features is expressed as:
[0085] S2. Use the image modality features and text modality features obtained in S1 as nodes of the initial undirected graph to construct initial undirected graphs of image modality and text modality respectively. The initial undirected graph is represented by an initial adjacency matrix and node features.
[0086] 1) Construction of the initial undirected graph of the image modality: For each sample feature in the set of image modality features, calculate its cosine similarity with any sample feature in the set, connect the nodes whose cosine similarity is greater than a preset threshold, and thus construct the initial undirected graph of the image modality.
[0087] 2) Construction of the initial undirected graph of the text modality: For each sample feature in the set of text modality features, calculate its cosine similarity with any sample feature in the set, connect the nodes whose cosine similarity is greater than a preset threshold, and thus construct the initial undirected graph of the text modality.
[0088] The specific operation method of S2 is as follows:
[0089] Step 1) In the present invention, the feature extractor F is represented as F(X,θ f ), where X∈{U,Q} is used to represent the set U of text modal features or the set Q of image modal features extracted from the news set by the pre-trained model, θ f Represents the parameters to be learned to further extract features.
[0090] Step 2) Calculate the features u of each pair of samples in the U and Q sets respectively i and u j ,q i and q j The cosine similarity between them, where i, j∈[1,n]; nodes whose cosine similarity is greater than the set threshold Connect to get edge Thus, the initial undirected graph δ is constructed X .
[0091] Each sample feature is represented as a node on the initial undirected graph The cosine similarity between the features of each pair of samples is represented as nodes on the initial undirected graph The connection relationship, that is, the edge of the initial undirected graph Among them, x∈{u,q} is used to represent the preprocessed text modality feature u or image modality feature q.
[0092] Initial undirected graph δ X Expressed as δ X =(Λ X ,Ψ X ), Λ X Represents a node in an undirected graph The collection of X Represents an edge in an undirected graph A collection of .
[0093] Initial undirected graph δ X The initial adjacency matrix is represented as AX , A X is a matrix of size n×n, when the node There is an edge between season On the contrary in Represents the initial adjacency matrix A X The element at row i and column j.
[0094] S3. Optimize graph structure: Input the initial undirected graph obtained in S2 into the graph structure learning network to optimize the graph structure and obtain the optimized graph structure.
[0095] Graph neural networks are highly sensitive to graph structures, and the graph structure of the initial undirected graph obtained through S2 may have improper connection relationships, which makes it difficult to obtain a good representation in subsequent graph neural network learning. In order to enable the graph structure learning part to obtain the optimal representation of the graph structure and better serve the subsequent graph representation learning, in S3, the adjacency matrix and node features of the initial undirected graph are input into the graph structure learning network to obtain the similarity matrix, and finally the initial adjacency matrix and the similarity matrix are added to obtain the optimized adjacency matrix. This operation can enable the optimized graph structure to delete unreasonable connections and optimize the weight relationship of the original connection.
[0096] The specific steps of S3 are as follows:
[0097] 1) The initial adjacency matrix and node features obtained in S2 are input into the two-layer graph convolutional neural network of the graph structure learning network to obtain node embedding.
[0098] In order to adjust the connection relationship and connection weight, in each iteration, A X and X are input into a two-layer graph convolutional neural network to obtain the node feature Z X Represented as Z X =GCN Z (A X ,X),(GCN Z (·,·) represents a two-layer graph convolutional neural network used to obtain node features), where d z represents the dimension of embedding and n represents the number of node embeddings.
[0099] 2) In order to measure the similarity between features, the node embedding is first transposed, and then the transposed matrix is multiplied with the node embedding matrix to obtain the similarity matrix.
[0100] The present invention first analyzes the node feature Z X Transpose the matrix to get Again ZX Perform matrix multiplication to obtain an n×n similarity matrix S X , S X Each element of Represents the dot product between the i-th node embedding and the j-th node embedding. Each element in the matrix can be represented as the similarity between the i-th node and the j-th node.
[0101] 3) The dense similarity matrix is sparsely processed by K-nearest neighbor (KNN), that is, for each node, the present invention only retains the edges formed by connecting the K nodes with the highest feature similarity to the node.
[0102] In order to reduce the computational cost and memory usage, the present invention performs a dense similarity matrix S X Specifically, for each node, the present invention only retains the K elements with the highest similarity to the node, and the final similarity matrix is:
[0103] 4) The optimized adjacency matrix is formed by summing the elements of the initial adjacency matrix and the calculated similarity matrix. The optimized adjacency matrix obtained by adding the original adjacency matrix and the similarity matrix is expressed as:
[0104] S4. Obtain cross-modal features: Input the optimized graph structure in S3 into a two-layer graph convolutional neural network with cross-modal shared weights to finally obtain cross-modal features.
[0105] A two-layer graph convolutional neural network is used to learn the cross-modal feature representation of each modality. In order to learn cross-modal features, the weight parameters of the graph convolutional neural network are shared across modalities.
[0106] The set of potential feature representations B X It is expressed as: where X∈{U,Q}, where GCN B (·,·) represents a two-layer graph convolutional neural network for learning feature representation, Indicates B X The i-th feature in B U Representing cross-modal feature representation of text modality, B Q Representing cross-modal feature representations for image modalities.
[0107] S5, obtain modality-invariant features: input the cross-modal features obtained in S4 into the modality discriminator to learn modality-invariant features, further alleviating the differences between modalities;
[0108] Specifically, the graph convolutional neural network in S4 is used as a generator, and the modality discriminator is used as a discriminator to form a generative adversarial network. The modality discriminator is used to alleviate modality differences and is a modality discriminator designed to identify whether the input is from an image or text modality.
[0109] There are large modality differences between text features and image features, which will have a certain impact on fake news detection. Therefore, in this step, the cross-modal features obtained by S4 are input into the modality discriminator to reduce the modality difference. U and B Q is input to the modality discriminator, where B U Representing cross-modal feature representation of text modality, B Q A cross-modal feature representation representing the image modality. The discriminator aims to identify whether the input is from text or image modality. Through a generative adversarial network composed of a two-layer graph convolutional neural network with cross-modal shared weights, a modality-invariant feature representation can be learned.
[0110] 1) Modality Discriminator:
[0111] The modality discriminator D consists of a single-layer neural network and a normalized exponential function (Softmax activation function), denoted as D(M; θ d ), where θ d Represents the input parameters, and the input text and image feature set M is expressed as:
[0112]
[0113] Among them, d k Indicates the dimension of the mode, m i Represents the i-th feature in the set M.
[0114] The output of the modality discriminator P θ (m i )=D(m i θ d ) is m i is the probability of a text feature or an image feature.
[0115] The modal label of the feature is Indicates that Represents the set Y m The modal label of the i-th feature in , Indicates m i Belongs to text mode, Indicates m i Belongs to the image mode.
[0116] Based on cross entropy, the loss L of the modality discriminator is m It is expressed as follows:
[0117]
[0118] in, Represents the distribution (M,Y m ) is a random variable sampled from To calculate the mathematical expectation.
[0119] 2) The present invention introduces cross-modal supervised contrast loss in the modality discriminator;
[0120] In order to enhance the discriminative power of learned features, the present invention designs a cross-modal supervised contrast loss. Under the constraint of this loss, the similarity of features from the same category will be increased, while the similarity of features from different categories will be reduced.
[0121] For m i , let P(i) be the number of i The index set of features with the same category, A(i) is the index set of features in M except P(i), and the cross-modal supervision contrast loss L S It is expressed as follows:
[0122]
[0123] Here, |P(i)| represents the number of features in the P(i) index set, and τ is a parameter that is empirically set to τ=0.5.
[0124] S6, fake news judgment: The modal-invariant features obtained in S5 are input into a classifier to obtain the possibility that the news is fake news, so as to judge fake news.
[0125] After all data samples pass through the modal discriminator trained in S5, stable modal invariant features are obtained and input into the classifier for classification.
[0126] 1) Classifier:
[0127] Classifier It consists of a single-layer neural network and a normalized exponential function (Softmax activation function), where θ c are learnable parameters, represents the modality-invariant features obtained from S5. The output of the classifier for The probability of being fake news or true news respectively. If the output probability of being fake news is greater than the probability of being true news, then the news is judged to be fake news, otherwise it is true news.
[0128] Classifier loss L c It is expressed as:
[0129]
[0130] in, Represents the distribution A random variable sampled from To calculate the mathematical expectation;
[0131] 2) Parameter optimization: Optimize the parameters θ of the feature extractor f , the parameters θ of the modal discriminator d , the parameters of the classifier θ c Optimize
[0132] According to L m , L s , L c , we can get the total loss L total , L total Expressed as: L total =L c +βL s -ηL m , where β and η are balance factors.
[0133] By maximizing the loss modality discriminator loss L m To update the parameter θ d ,θ f ,θ c , thereby alleviating the modal difference between text modal features and image modal features, while a gradient reversal layer is adopted before the modal discriminator, and the stochastic gradient descent algorithm is used to optimize the parameters. Specifically, when the cross-modal feature representation obtained by the two-layer graph convolutional neural network with cross-modal shared weights is passed to the gradient reversal layer, because the gradient reversal layer does not change the data during forward propagation, the feature representation is passed to the modal discriminator at this time to obtain the modal prediction, and then the cross-modal supervision contrast loss and modal discriminator loss are calculated according to the modal label. When the cross-modal supervision contrast loss and modal discriminator loss gradients pass through the gradient reversal layer, their signs are flipped. This means that during the back-propagation process, the cross-modal supervision contrast loss increases and the loss of the modal discriminator decreases, that is, the performance of the modal discriminator is improved, which leads to the parameter θ of the feature extractor. f Update to reduce the cross-modal supervision contrast loss and increase the loss of the modality discriminator, that is, make the features more difficult to be distinguished by the modality discriminator. This adversarial training method encourages the feature extractor to learn modality-invariant features. The optimization process is expressed as follows:
[0134]
[0135] in, represents the optimized θ f ,θ c .
[0136]
[0137] in, represents the optimized θ d .
[0138] Working principle:
[0139] The present invention provides a multimodal fake news detection method based on graph neural network. The whole method can be implemented in six stages. The first stage is the preprocessing of news data, the second stage is the construction of the initial undirected graph of text and image modalities, the third stage is the optimization of the graph structure, the fourth stage is the acquisition of cross-modal features, the fifth stage is the acquisition of modality-invariant features, and the sixth stage is fake news discrimination and parameter optimization. In the preprocessing of news data, the Bidirectional Encoder Representation Pre-training Model (BERT) and the Multimodal Contrastive Learning Pre-training Model (CLIP) are used to extract news data features; in the initial undirected graph construction part, the cosine similarity between the features of each pair of samples is calculated, and the nodes with cosine similarity greater than the preset threshold are connected to construct an undirected graph; in the graph structure optimization part, the optimized graph structure and adjacency matrix are obtained through the graph structure learning network; in the cross-modal feature acquisition part, the cross-modal features are learned through a two-layer graph convolutional neural network with shared weight parameters; in the modality-invariant feature acquisition part, the similarity of features of different categories is adjusted through the modality discriminator and cross-modal supervised contrast loss to obtain the invariant features between text and image modalities; in the fake news discrimination and parameter optimization part, the normalized exponential function (Softmax activation function) is used as the structure of the classifier to optimize the parameters and improve the performance of detecting fake news.
[0140] Based on the multimodal fake news detection method based on graph neural network proposed in the present invention, the present invention also proposes a multimodal fake news detection system, such as Figure 2 As shown, the multimodal fake news detection system includes:
[0141] 1) Modal data preprocessing module;
[0142] For text data, the present invention uses the bidirectional encoder representation pre-training model (BERT) to extract its text modality features; for image data, the present invention uses the multimodal contrastive learning pre-training model (CLIP) to extract its image modality features. The subsequent graph structure learning network and modality-invariant feature learning module are used to further extract features and learn modality-invariant feature representations.
[0143] 2) The graph structure learning network is composed of an initial undirected graph construction module and a graph structure optimization module. The methods of the undirected graph construction module and the graph structure optimization module are as follows:
[0144] The initial undirected graph construction module, for each modality, first calculates the cosine similarity between the features of each sample of the two modalities, and connects the nodes whose cosine similarity is greater than a preset threshold, so as to construct an undirected graph for each modality. The initial undirected graph can be represented by an adjacency matrix and node features.
[0145] Graph structure optimization module. In each iteration, the present invention uses a two-layer graph neural network to extract node features and calculate the similarity matrix of node features, adds the similarity matrix to the original graph adjacency matrix to obtain the optimized adjacency matrix, and performs K-nearest neighbor (KNN) sparseness on the dense similarity matrix when calculating the similarity matrix.
[0146] The structural diagram of the modal data preprocessing module and the graph structure learning network is shown in Figure 3;
[0147] 3) Modality-invariant feature learning module, which consists of a two-layer graph convolutional neural network with cross-modality shared weights and a modality discriminator;
[0148] First, the optimized graph is input into a two-layer graph convolutional neural network with cross-modal shared weights, and finally the cross-modal features are obtained. The feature representation of the shared weights of text and image is input into the modality discriminator, which aims to identify whether the input is from the image or text modality. Through the generative adversarial network composed of the graph structure learning network, the modality-invariant feature representation can be learned. The structure diagram of the modality discriminator is shown in the figure below. Figure 4 shown.
[0149] 4) Fake news detection module, inputs the modal invariant feature representation into the classifier to obtain the probability of the news being fake news or true news. If the output probability of being fake news is greater than the probability of being true news, the news is judged to be fake news, otherwise it is true news. The classifier structure diagram is shown in the figure below: Figure 5 shown.
[0150] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes in form and details may be made without departing from the spirit and scope of the present invention.
Claims
1. A fake news detection method based on graph convolutional neural network, characterized in that: The steps include: S1. Use the pre-trained model to extract the image modality feature set and the text modality feature set of the news set to be detected; S2, using the image modality features and text modality features obtained in S1 as nodes of the initial undirected graph to construct initial undirected graphs of image modality and text modality respectively, and the initial undirected graph is represented by an initial adjacency matrix and node features; S3, inputting the initial undirected graph obtained in S2 into the graph structure learning network to optimize the graph structure, and obtaining the optimized graph structure; S4, input the optimized graph structure in S3 into a two-layer cross-modal shared weight graph convolutional neural network, and finally obtain cross-modal features; S5, input the cross-modal features obtained in S4 into the modality discriminator to learn modality-invariant features to further alleviate the differences between modalities; S6. Input the modal-invariant features obtained in S5 into the classifier to obtain the possibility that the input news is fake news, so as to judge fake news.
2. According to claim 1, a fake news detection method based on graph convolutional neural network is characterized in that: In S1: 1) For the text data in the news collection, a bidirectional encoder representation pre-training model is used to extract its text modality features; 2) For detecting image data in news collections, a multimodal contrastive learning pre-training model is used to extract its image modality features.
3. The fake news detection method based on graph convolutional neural network according to claim 1, characterized in that: The specific operation method of S1 is as follows: 1) Assume that the news collection consists of n news items containing text and images, t i represents the text in the i-th news, v i represents the image in the i-th news, y i The label of the i-th news item is represented by the set of text modalities T = [t1,…,t i ,…,t n ], the set of image modalities is denoted as V = [v1,…,v i ,…,v n ]; 2) For the i-th news, C represents the type of news label. represents a C-dimensional real vector space; the label matrix Y corresponding to the news set is expressed as: Represents a C×n-dimensional real matrix space; 3) For the i-th news, set t i Input to the bidirectional encoder representation pre-training model to extract its text modality feature u i ,in d u Represents the dimension of text modal features; the set U of news text modal features is expressed as: 4) For the i-th news, set v i Input to the multimodal contrastive learning pre-trained model to extract its image modality features q i ,in d q represents the dimension of the image modal features; the set Q of news image modal features is expressed as:
4. The fake news detection method based on graph convolutional neural network according to claim 1, characterized in that: In S2: 1) Construction of the initial undirected graph of the image modality: For each sample feature in the set of image modality features, calculate the cosine similarity between it and any sample feature in the set, connect the nodes whose cosine similarity is greater than a preset threshold, and thus construct the initial undirected graph of the image modality; 2) Construction of the initial undirected graph of the text modality: For each sample feature in the set of text modality features, calculate its cosine similarity with any sample feature in the set, connect the nodes whose cosine similarity is greater than a preset threshold, and thus construct the initial undirected graph of the text modality.
5. The fake news detection method based on graph convolutional neural network according to claim 3 is characterized in that: The specific operation method of S2 is as follows: Step 1) Denote the feature extractor F as F(X,θ f ), where X∈{U,Q} is used to represent the set U of text modal features or the set Q of image modal features extracted from the news set by the pre-trained model, θ f Represents the parameters to be learned to further extract features; Step 2) Calculate the features u of each pair of samples in the U and Q sets respectively i and u j ,q i and q j The cosine similarity between them, where i, j∈[1,n]; nodes whose cosine similarity is greater than the set threshold Connect to get edge Thus, the initial undirected graph δ is constructed X ; Initial undirected graph δ X Expressed as δ X =(Λ X ,Ψ X ), Λ X Represents a node in an undirected graph The collection of X Represents an edge in an undirected graph The initial undirected graph δ X The initial adjacency matrix is represented as A X .
6. The fake news detection method based on graph convolutional neural network according to claim 5, characterized in that: The specific steps of S3 are as follows: 1) Input the initial adjacency matrix and node features obtained in S2 into the two-layer graph convolutional neural network of the graph structure learning network to obtain node embedding; In each iteration, A X and X are input into a two-layer graph convolutional neural network to obtain the node feature Z X Expressed as where d z represents the dimension of embedding, and n represents the number of node embeddings; 2) Transpose the node embedding matrix, and then multiply the transposed matrix with the node embedding matrix to obtain the similarity matrix S X ; 3) For the dense similarity matrix S X K nearest neighbor sparsification is performed, that is, for each node, only the edges formed by the K nodes connected to the node with the highest feature similarity are retained. The final similarity matrix is 4) The adjacency matrix obtained after optimization From the initial adjacency matrix A X and the calculated similarity matrix The elements of are summed up to form, that is 7. The fake news detection method based on graph convolutional neural network according to claim 6, characterized in that: In S4: The set of potential feature representations B X It is expressed as: where X∈{U,Q}, where GCN B (·,·) represents a two-layer graph convolutional neural network for learning feature representation, Indicates B X The i-th feature in B U Representing cross-modal feature representation of text modality, B Q Representing cross-modal feature representations for image modalities.
8. The fake news detection method based on graph convolutional neural network according to claim 7, characterized in that: In S5: 1) Modality discriminator; The modality discriminator D consists of a single-layer neural network and a normalized exponential function, denoted as D(M; θ d ), where θ d Represents the input parameters, and the input text and image feature set M is expressed as: Among them, d k Indicates the dimension of the mode, m i Represents the i-th feature in the set M; The output of the modality discriminator P θ (m i )=D(m i θ d ) is m i is the probability of a text feature or an image feature; the modal label of the feature is Indicates that Represents the set Y m The modal label of the i-th feature in , Indicates m i Belongs to text mode, Indicates m i belongs to the image modality; the loss L of the modality discriminator m It is expressed as follows: in, Represents the distribution (M,Y m ) is a random variable sampled from To calculate the mathematical expectation; 2) Introducing cross-modal supervised contrastive loss in the modality discriminator; For m i , let P(i) be the number of i The index set of features with the same category, A(i) is the index set of features in M except P(i), and the cross-modal supervision contrast loss L S It is expressed as follows: Where |P(i)| represents the number of features in the P(i) index set, and τ=0.
5.
9. The fake news detection method based on graph convolutional neural network according to claim 8, characterized in that: In step S6: 1) Classifier: Classifier It consists of a single-layer neural network and a normalized exponential function, where θ c are learnable parameters, represents the modality-invariant features obtained from S5; the output of the classifier for The probability of being fake news or true news respectively. If the output probability of being fake news is greater than the probability of being true news, then the news is judged to be fake news, otherwise it is true news; Classifier loss L c It is expressed as: in, Represents the distribution A random variable sampled from To calculate the mathematical expectation; 2) Parameters θ of the feature extractor f , the parameters θ of the modal discriminator d , the parameters of the classifier θ c Optimize; the details are as follows: According to L m , L s , L c , we can get the total loss L total , L total Expressed as: L total =L c +βL s -ηL m , where β and η are balance factors; By maximizing the loss modality discriminator loss L m To update the parameter θ d ,θ f ,θ c , thereby alleviating the modality difference between text modality features and image modality features, while adopting a gradient reversal layer before the modality discriminator and using the stochastic gradient descent algorithm to optimize the parameters; the optimization process is expressed as follows: in, represents the optimized θ f ,θ c ; in, represents the optimized θ d .
10. A multimodal fake news detection system based on the method of claim 1, characterized in that: The multimodal fake news detection system comprises: 1) A modal data preprocessing module, including a multimodal contrastive learning pre-training model for extracting image modal features of the news to be detected and a bidirectional encoder representation pre-training model for extracting text modal features of the news to be detected; 2) a graph structure learning network, including an initial undirected graph construction module for constructing initial undirected graphs of image modality and text modality, and a graph structure optimization module for optimizing the graph structure of the obtained initial undirected graph; 3) The modality-invariant feature learning module consists of a two-layer graph convolutional neural network with cross-modal shared weights and a modality discriminator. The optimized graph structure is first input into the two-layer graph convolutional neural network with cross-modal shared weights to obtain cross-modal features, and the cross-modal features are input into the modality discriminator to learn the modality-invariant feature representation. 4) A fake news detection module, including a classifier, inputs the modality-invariant feature representation into the classifier to obtain the likelihood that the input news belongs to fake news or true news.
Citation Information
Patent Citations
Collaborative filtering recommendation method based on enhanced graph learning
CN112905894A
Rumor identification method and device based on multi-modal adversarial comparative learning
CN116403229A
Double-filtering evidence perception false news detection method based on graph neural network
CN117349501A
Fake news detection method and apparatus, device, and storage medium
WO2023159755A1
Cited By
AI generated image detection method based on graph topology learning
CN119048843A
Text mining data query method and system based on cross-modal similarity
CN119311854A
False news detection method and device and terminal equipment
CN121212160A
