Multi-modal false news detection method based on factual knowledge fusion
By introducing knowledge graphs and graph neural networks into fake news detection, and combining text and image features, the problem of existing methods ignoring external knowledge is solved, and the accuracy and stability of fake news detection are significantly improved.
Patent Information
- Application Number
- CN202410781350.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
AI Technical Summary
Existing false news detection methods ignore external knowledge, resulting in poor detection results. Especially in multi-modal false news with pictures and texts, it is difficult to identify factual errors.
Using a method based on graph neural networks, we obtain news text and picture information, use external knowledge in the knowledge graph to encode and interact, screen key knowledge features, and combine text and picture features for cross-modal fusion to improve the accuracy of false news detection. accuracy.
Through the fusion of external knowledge, the accuracy of false news detection and model stability are improved, and the ability to identify multi-modal false news is enhanced.
Smart Images

Figure CN118606789A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of false news detection, and in particular to a multimodal false news detection method based on factual knowledge fusion. Background Art
[0002] With the rapid development of social media, it has become the main platform for people to obtain information in their daily lives, but the rapid spread of information has also made it an ideal platform for fake news. With the emergence of data in modalities such as pictures in social media, more and more multimodal fake news with pictures and texts have appeared. Because of its distortion and fabrication of facts, it will have an indelible negative impact on society and individuals. Therefore, it is very necessary to detect multimodal fake news on social media.
[0003] In the early days, manually designed feature extraction methods were usually used to detect multimodal fake news, which was used to learn some features in the news. However, such methods relied on the prior knowledge of experts and had poor detection effects. However, with the emergence of deep learning, various methods have greatly improved the detection effect.
[0004] At present, mainstream detection methods focus on coordinating text feature representation and image feature representation, combining text semantic features, image tampering features, and the similarity between text features and image features to detect fake news. However, although these methods can effectively utilize the characteristics of the news itself, they ignore the external knowledge that people usually use to judge the truth of news. External knowledge contains a lot of information that can help people identify common factual errors that are difficult to understand through the news itself. Summary of the invention
[0005] To solve the above problems, the present invention provides a multimodal fake news detection method based on factual knowledge fusion, which uses graph neural network as a framework to enable text information, image information and external knowledge information to fully interact, extract external knowledge information that supports fake news identification, and classify the authenticity of multimodal news, thereby improving the accuracy of fake news identification.
[0006] The present invention provides a multimodal false news detection method based on factual knowledge fusion, and the specific technical solution is as follows:
[0007] S1: Obtain news data, extract news text and pictures, annotate them for authenticity, and build a data set;
[0008] S2: Based on the text, extract relevant factual information in the knowledge graph as external knowledge;
[0009] S3: Encode the text, pictures and external knowledge;
[0010] S4: Establish a graph structure for knowledge interaction, assign attention weights to the edges in the graph structure composed of text and entities according to the graph attention mechanism, and perform feature aggregation based on the graph structure;
[0011] S5: Screen key nodes of graph features after feature aggregation to select key knowledge features;
[0012] S6: Assign attention weights to key nodes and fuse text features and knowledge features based on the knowledge-aware attention mechanism;
[0013] S7: Based on the cross-modal attention mechanism, text features and image features are cross-modally fused;
[0014] S8: Classify through the text vector of fused knowledge, and then classify through the image-text fusion features to complete model training, and finally detect fake news through the trained model.
[0015] Furthermore, in step S2, the external knowledge is obtained in the following specific process:
[0016] The text is divided into sentences and words, and named entity recognition is performed to obtain entities in the text;
[0017] Find out whether the entity exists in the knowledge graph, and extract the entity sequence that constitutes the corresponding news data from the entities in the knowledge graph;
[0018] Based on the corresponding attributes of each entity in the knowledge graph and the relationship between the entity and the attribute, the attribute sequence and relationship sequence of the corresponding news data are obtained.
[0019] Furthermore, in step S3, the text is encoded as follows:
[0020] Obtain a fixed-length word sequence as input into the BERT model to obtain the encoded text; measure the importance of each word based on the word attention mechanism to obtain the vector representation of the text; perform weighted average on the score of each word vector to obtain the vector representation of the entire text.
[0021] Further, in step S3, the image is encoded by a mask autoencoder;
[0022] The BERT model is used to semantically encode entities, relations, and attributes.
[0023] Furthermore, in step S4, the specific process of allocating weights for feature fusion is as follows:
[0024] Construct a news entity graph and connect the entity graph with text data as a graph structure for knowledge interaction;
[0025] Calculate graph attention weights based on the adjacency relationship between entities, the characteristics of entity attributes, and the characteristics of relationships;
[0026] According to the attention score and the adjacency matrix, the node features are weighted and summed.
[0027] Furthermore, in step S5, the specific process of key knowledge feature screening is as follows:
[0028] The importance of node features is calculated according to the attention mechanism, the most critical nodes are selected through the sorting pooling layer, the output of the last layer of the graph attention network is sorted, and k key nodes are selected as the final knowledge representation.
[0029] Furthermore, in step S6, the attention weight allocation is expressed as follows:
[0030] Q=W Q atS w
[0031] K=W K att k G w
[0032] V=W V att k G w
[0033]
[0034] Among them, q represents the knowledge feature, W Q , W K and W V represents the parameter matrix, α K represents the attention weight distribution of knowledge features, Q represents the query vector, K represents the key vector, V represents the value vector, and attS w represents the text vector representation after word attention, d k Represents the vector dimension.
[0035] Furthermore, in step S7, the original text features and image features are fused based on the cross-modal attention mechanism, as shown below:
[0036] α c =σ((S w ||I w )W)W c
[0037]
[0038] Among them, α crepresents the cross-modal attention weight, and represents the learnable parameters, attC w Represents the features after cross-modal fusion.
[0039] Furthermore, the text vectors that integrate knowledge are classified and the model is trained, which is specifically expressed as follows:
[0040] y SG =softmax(W SG attSG+b SG )
[0041] L SG =ylog(y SG )+(1-y)log(1-y SG )
[0042] Among them, y SG represents the classification result of the text feature vector through knowledge fusion, y represents the real label, attSG is the fusion vector after the news text feature and the knowledge graph feature are spliced, and W SG represents the learnable parameter matrix, b SG represents the learnable parameter vector.
[0043] Furthermore, the fusion vector of text features, knowledge graph features, and cross-modal features is used for classification and training of the model, which is specifically expressed as follows:
[0044] y final =softmax(W final (attSG||attC)+b final )
[0045] L final =ylog(y final )+(1-y)log(1-y final )
[0046] Among them, y final Represents the classification result after fusion of multi-view features.
[0047] The beneficial effects of the present invention are as follows:
[0048] The present invention uses entities, relationships and attributes in the knowledge graph as external knowledge, and utilizes the graph attention mechanism and sorting pooling to screen out key external knowledge that is useful for fake news detection. At the same time, it uses the attention mechanism of news and key knowledge features to determine the importance of external knowledge and integrate it into the text features. Then, the visual features are obtained through the text-image attention mechanism. Through the joint training model, the stability of the model training is guaranteed, and the accuracy of multimodal fake news detection is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic flow chart of the method of the present invention.
[0050] Figure 2 It is a schematic diagram of the overall framework of the fake news detection model of the present invention. DETAILED DESCRIPTION
[0051] The following description clearly and completely describes the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In the description of the embodiments of the present invention, it should be noted that the indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship in which the invention product is usually placed when in use, or the orientation or positional relationship commonly understood by those skilled in the art, or the orientation or positional relationship in which the invention product is usually placed when in use, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first" and "second" are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0053] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0054] Example 1
[0055] Embodiment 1 of the present invention discloses a multimodal false news detection method based on factual knowledge fusion, such as Figure 1 and Figure 2 As shown, the specific process is as follows:
[0056] S1: Obtain news data from public social media, extract text S and pictures I from the news, annotate their authenticity labels y as samples, and construct a dataset;
[0057] S2: Based on the news text, extract relevant factual information in the knowledge graph as external knowledge;
[0058] The specific process is as follows:
[0059] The text data is divided into sentences and words, and named entity recognition is performed to obtain entities in the text data; specifically, the HanLP tool can be used to divide the text data into sentences and words;
[0060] Find out whether the entity exists in the knowledge graph, and extract the entity sequence E={e1,e2,…,e n};
[0061] Based on the corresponding attributes of each entity in the knowledge graph and the relationship between entities and attributes, the attribute sequence V of the corresponding news data is obtained. 11 ,v 12 ,…,v 1m ,v 21 ,…,v nm} and the relation sequence R = {r 11 ,r 12 ,…,r 1m ,r 21 ,…,r nm}.
[0062] S3: Encode the text data, image data and external knowledge;
[0063] In order to obtain the vector representation of news text, the BERT pre-trained model is used as the core module of text encoding to encode text data. The BERT model can capture the semantics of news and encode a fixed-length word sequence S = {s1, s2, …, s n} Input into the BERT model to get the encoded text sequence w represents the dimension corresponding to the word vector;
[0064] Since the importance of each word vector is usually different, in order to obtain the overall semantics of a text, the word attention mechanism is used to measure the importance of each word to obtain the vector representation of the text:
[0065]
[0066] in, is the attention score of the text sequence, and Learnable parameters, Used to map text vectors into the hidden layer, Used to obtain the attention score of each word, and σ represents the activation function.
[0067] Then, the scores of each word vector are weighted averaged to obtain the vector representation of the entire text. The process is expressed as:
[0068]
[0069] Among them, attS w is the text vector representation after word attention, i represents the element number of the encoded text sequence, n represents the total number of elements in the encoded text sequence, α i It is the vector representation corresponding to the i-th encoded text.
[0070] For image encoding, the image is encoded by the mask autoencoder, and the image feature is recorded as I w ;
[0071] The BERT model is used to semantically encode entities, relations, and attributes to obtain entity semantic encoding. Relational Encoding and attribute encoding
[0072] S4: Establish a graph structure for knowledge interaction, assign attention weights to the edges in the graph structure composed of text data and entities according to the graph attention mechanism, and perform feature aggregation based on the graph structure;
[0073] The specific process is as follows:
[0074] Construct a news entity graph. At the same time, in order to allow knowledge and news to interact to a certain extent and learn useful information from knowledge to judge the truth of news, connect the entity graph with text data as a graph structure for knowledge interaction. The graph is regarded as an isomorphic graph and does not distinguish the categories between nodes.
[0075] According to the adjacency relationship between entities, the characteristics of entity attributes and the characteristics of relationships, the graph attention weight is calculated, which is expressed as follows:
[0076]
[0077] Among them, α i,j represents the attention score between node i and node j, The vector representation of the node, x k Represents the vector representation of other neighbor nodes, is the feature vector representation of the edge, is a learnable weight, || represents the operation of connecting vectors, represents the learnable parameters, w' represents the vector dimension, and LeakyReLU is the activation function;
[0078] After calculating with all neighbor nodes, perform softmax operation.
[0079] According to the attention score and the adjacency matrix, the node features are weighted and summed, as shown below:
[0080]
[0081] Among them, x i ′ is the updated node feature vector, α i,i express.
[0082] S5: Screen key nodes of graph features after feature aggregation to select key knowledge features;
[0083] According to the importance of node features calculated by the attention mechanism, the most critical nodes are selected through the sorting pooling layer, the output of the last layer of the graph attention network is sorted, and k key nodes are selected as the final knowledge representation, denoted as att k G w .
[0084] S6: Assign attention weights to key nodes and fuse text features and knowledge features based on the knowledge-aware attention mechanism;
[0085] In order to measure the relative importance of external knowledge, the importance of different knowledge features is measured by news text features. The attention mechanism is introduced. By calculating the semantic similarity between news text and knowledge graph, knowledge features are assigned different weights. The process is expressed as follows:
[0086] Q=W Q atS w
[0087] K=W K att k G w
[0088] V=W V att k G w
[0089]
[0090] Among them, q represents the knowledge feature, W Q , W K and W V represents the parameter matrix, α K represents the attention weight distribution of knowledge features, Q represents the query vector, K represents the key vector, V represents the value vector, and attS w represents the text vector representation after word attention, d k Represents the vector dimension.
[0091] Then, the news text features are integrated with the key knowledge features, and the news text features and knowledge graph features are spliced together:
[0092] attSG=attS w ||att k G w
[0093] S7: Based on the cross-modal attention mechanism, text features and image features are cross-modally fused;
[0094] Using the original text features and image features, they are fused based on the cross-modal attention mechanism, as shown below:
[0095] α c =σ((S w ||I w )W)W c
[0096]
[0097] Among them, α c represents the cross-modal attention weight, and represents the learnable parameters, attC w Represents the features after cross-modal fusion.
[0098] S8: Classify through the text vector of fused knowledge, and then classify through the image-text fusion features to complete model training, and finally detect fake news through the trained model.
[0099] Specifically, the fusion vector of text features and knowledge features is used for detection. After the vector is input into the fully connected layer, softmax is used to predict the distribution of news tags, and the loss is calculated by cross entropy.
[0100] y SG =softmax(W SG attSG+b SG )
[0101] L SG =ylog(y SG )+(1-y)log(1-y SG )
[0102] Among them, y SG represents the classification result of the text feature vector through knowledge fusion, y represents the real label, attSG is the fusion vector after the news text feature and the knowledge graph feature are spliced, and W SG represents the learnable parameter matrix, b SG represents the learnable parameter vector;
[0103] The fusion vector of text features, knowledge graph features, and cross-modal features is used for detection. After the vector is input into the fully connected layer, softmax is used to predict the distribution of news tags, and the loss is calculated by cross entropy.
[0104] y final =softmax(W final (attSG||attC)+b final )
[0105] L final =ylog(y final )+(1-y)log(1-y final )
[0106] Among them, y final Represents the classification result after fusion of multi-view features.
[0107] The present invention is not limited to the above-mentioned specific embodiments, but extends to any new features or any new combination disclosed in this specification, as well as any new method or process steps or any new combination disclosed.
Claims
1. A multimodal fake news detection method based on factual knowledge fusion, characterized in that: include: S1: Obtain news data, extract news text and pictures, annotate them for authenticity, and build a data set; S2: Based on the text, extract relevant factual information in the knowledge graph as external knowledge; S3: Encode the text, pictures and external knowledge; S4: Establish a graph structure for knowledge interaction, assign attention weights to the edges in the graph structure composed of text and entities according to the graph attention mechanism, and perform feature aggregation based on the graph structure; S5: Screen key nodes of graph features after feature aggregation to select key knowledge features; S6: Assign attention weights to key nodes and fuse text features and knowledge features based on the knowledge-aware attention mechanism; S7: Based on the cross-modal attention mechanism, text features and image features are cross-modally fused; S8: Classify through the text vector of fused knowledge, then classify through the image-text fusion features, complete model training, and finally detect fake news through the trained model.
2. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: In step S2, the external knowledge is obtained, and the specific process is as follows: The text is divided into sentences and words, and named entity recognition is performed to obtain entities in the text; Find out whether the entity exists in the knowledge graph, and extract the entity sequence that constitutes the corresponding news data from the entities in the knowledge graph; Based on the corresponding attributes of each entity in the knowledge graph and the relationship between the entity and the attribute, the attribute sequence and relationship sequence of the corresponding news data are obtained.
3. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: In step S3, the text is encoded as follows: Obtain a fixed-length word sequence as input into the BERT model to obtain the encoded text; measure the importance of each word based on the word attention mechanism to obtain the vector representation of the text; perform weighted average on the score of each word vector to obtain the vector representation of the entire text.
4. The multimodal false news detection method based on factual knowledge fusion according to claim 3 is characterized in that: In step S3, the image is encoded by a mask autoencoder; The BERT model is used to semantically encode entities, relations, and attributes.
5. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: In step S4, the specific process of assigning weights for feature fusion is as follows: Construct a news entity graph and connect the entity graph with the text as a graph structure for knowledge interaction; Calculate graph attention weights based on the adjacency relationship between entities, the characteristics of entity attributes, and the characteristics of relationships; According to the attention score and the adjacency matrix, the node features are weighted and summed.
6. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: In step S5, the specific process of key knowledge feature screening is as follows: The importance of node features is calculated according to the attention mechanism, the most critical nodes are selected through the sorting pooling layer, the output of the last layer of the graph attention network is sorted, and k key nodes are selected as the final knowledge representation.
7. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: In step S6, the attention weight distribution is expressed as follows: Q=W Q attS w K=W K to k G w V=W V to k G w Among them, q represents the knowledge feature, W Q , W K and W V represents the parameter matrix, α K represents the attention weight distribution of knowledge features, Q represents the query vector, K represents the key vector, V represents the value vector, and attS w represents the text vector representation after word attention, d k Represents the vector dimension.
8. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: In step S7, the original text features and image features are fused based on the cross-modal attention mechanism, as shown below: a c =σ((S w ||I w )W)W c Among them, α c represents the cross-modal attention weight, and represents the learnable parameters, attC w Represents the features after cross-modal fusion.
9. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: The text vectors that integrate knowledge are classified and the model is trained. The specific representation is as follows: y SG =softmax(W SG attSG+b SG ) L SG =ylog(y SG )+(1-y)log(1-y SG ) Among them, y SG represents the classification result of the text feature vector through knowledge fusion, y represents the real label, attSG is the fusion vector after the news text feature and the knowledge graph feature are spliced, and W SG represents the learnable parameter matrix, b SG represents the learnable parameter vector.
10. The multimodal false news detection method based on factual knowledge fusion according to claim 1 is characterized in that: The classification and training model are performed through the fusion vector of text features, knowledge graph features, and cross-modal features. The specific representation is as follows: y final =softmax(W final (attSG||attC)+b final ) L final =ylog(y final )+(1-y)log(1-y final ) Among them, y final Represents the classification result after fusion of multi-view features.
Citation Information
Cited By
Event false information detection method and device based on prior knowledge guidance
CN119622569A
False news detection method and system based on time interval and knowledge fusion
CN119691149A
Intelligent evidence credibility evaluation method and system based on neural network
CN119903841A
False news identification method and system fusing cross-platform behavior and credible subgraph
CN122615158A
A method and system for identifying fake news that integrates cross-platform behavior and trusted subgraphs
CN122615158B
