A fake news identification method and system based on artificial intelligence

By introducing technologies such as character-level and sentence-level attention mechanisms, convolutional neural networks, and similarity layer calculations into the fake news identification method, the problems of incomplete news feature extraction and single information source in the existing technology are solved, and more accurate information is achieved. Fake news identification.

CN118395209BActive Publication Date: 2024-09-24东营科技职业学院
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410854233.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-24
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing fake news identification methods suffer from insufficient news feature extraction, lack of comprehensive consideration of text and image data, and poor ability to capture key information in text data. They also have a single source of information, ignore the relevance of news in the same field, and lack overall perspective. Consider this, resulting in low recognition accuracy.

Method used

Character-level and sentence-level attention mechanisms are used to extract global features of text data, combined with convolutional neural networks to extract local features, and a news text-image matching identifier and a news authenticity identifier in the same field are designed, and text and images are calculated through similarity layers The similarity between the graph construction layer updates the node features, and combines the weighted summation of the outputs of the two recognizers to improve recognition accuracy.

Benefits of technology

Effectively capture key information in text data, improve the diversity and recognition of features, consider the similarities and differences of news in the same field, and improve the accuracy and reliability of fake news identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395209B
    Figure CN118395209B
Patent Text Reader

Abstract

The present invention discloses a fake news identification method and system based on artificial intelligence, and the method includes: data collection, data preprocessing, news feature extraction, construction of a fake news identification model and fake news identification. The present invention belongs to the field of news identification technology, and specifically refers to a fake news identification method and system based on artificial intelligence. The scheme adopts multiple attention mechanisms to focus on important features at different levels, comprehensively considers text and image to obtain news features, and constructs a feature set based on news type, news field and combination of different features; designs a news text-image matching identifier and a news authenticity identifier in the same field, designs a similarity layer to calculate the similarity of text and image, completes the matching detection of news text and image, designs a graph construction layer and a convolution layer to update node features, completes the news authenticity detection in the same field, and takes the weighted sum of the outputs of the two identifiers as the fake news identification result, thereby improving the accuracy of fake news identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of news identification, and specifically refers to a fake news identification method and system based on artificial intelligence. Background Art

[0002] The fake news identification method is to use natural language processing and artificial intelligence technology to extract the features of news, classify and judge according to different features, which can effectively identify fake news and improve the authenticity and credibility of news. However, the existing fake news identification methods have problems such as insufficient news feature extraction, lack of comprehensive consideration of text and image data, and poor ability to capture key information in text data; the existing fake news identification methods have problems such as single information source, ignoring the relevance of news in the same field, and lack of global consideration. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a fake news identification method and system based on artificial intelligence. In view of the problems that the existing fake news identification methods have insufficient news feature extraction, lack of comprehensive consideration of text and image data, and poor ability to capture key information in text data, this solution introduces character-level and sentence-level attention mechanisms to focus on important features at different levels to extract global features of text data, introduces local feature attention mechanisms and convolutional neural networks to extract local features of text data, thereby more effectively capturing key information in text data, and extracting global and local features of image data, comprehensively considering text data and image data to obtain news features, which can more comprehensively describe news content, and based on news type, news field, etc. The combination of domains and different features constructs a feature set, making the news features more recognizable and distinguishable; in view of the problems of existing fake news identification methods such as single information source, ignoring the relevance of news in the same field and lack of global consideration, this scheme designs a news text-image matching identifier and a news authenticity identifier in the same field, designs a similarity layer to calculate the similarity between text and image, completes the matching detection of news text data and image data, and helps solve the problem of low recognition accuracy caused by a single information source; designs a graph construction layer and a convolution layer to update node features, completes the authenticity detection of news in the same field, and can better consider the similarities and differences between news; by taking the weighted sum of the outputs of the two identifiers as the fake news identification result, the accuracy and reliability of fake news identification are improved.

[0004] The technical solution adopted by the present invention is as follows: The present invention provides a fake news identification method based on artificial intelligence, the method comprising the following steps:

[0005] Step S1: data collection;

[0006] Step S2: data preprocessing;

[0007] Step S3: news feature extraction;

[0008] Step S4: Building a fake news identification model;

[0009] Step S5: Fake news identification.

[0010] Furthermore, in step S1, the data collection is to collect historical news data, the historical news data includes text data, image data, news fields and news types, the news types include true news and false news, and the news types are used as data labels.

[0011] Further, in step S2, the data preprocessing performs text preprocessing and image preprocessing on the collected text data and image data respectively, specifically comprising the following steps:

[0012] Step S21: text preprocessing, removing noise and stop words from the collected text data; specifying the length of the text as the number of sentences in the text, and specifying the length of the sentence as the number of characters in the sentence, and predetermining the length of the text and the length of the sentence as p and q respectively; if the length of the sentence in the text after removing noise and stop words is less than q, then using an end symbol to fill the end of the sentence so that the length of the sentence is q; if the length of the sentence is greater than q, then truncating the sentence so that the length of the sentence is q; similarly, if the length of the text after removing noise and stop words is less than p, then using an end symbol to fill the end of the text so that the length of the text is p; if the length of the text is greater than p, then truncating the text so that the length of the text is p;

[0013] Step S22: Image preprocessing, performing image enhancement, image segmentation and image denoising on the collected image data.

[0014] Furthermore, in step S3, the news feature extraction extracts features of text data and image data respectively, specifically comprising the following steps:

[0015] Step S31: extracting text data features, extracting global features and local features of the pre-processed text data, including the following steps:

[0016] Step S311: extracting global features of text data, dividing the preprocessed text into character level and sentence level, obtaining sentence level feature vector from character level feature vector, and using different attention mechanisms to focus on important features at different levels, including the following steps:

[0017] Step S3111: Calculate the character-level feature vector, use the Word2Vec model to convert the preprocessed text data into a character-level representation vector, use BiLSTM as a character-level encoder, BiLSTM contains two directional LSTM structures, which are used to capture the contextual information of the character at each position, and obtain the forward hidden layer result of the jth character of the i-th sentence of the text through the character-level encoder. And the backward hidden layer results , combining the forward and backward hidden layer results, we get the feature vector of the jth character of the i-th sentence of the text ; The formula used is as follows:

[0018] ;

[0019] ;

[0020] ;

[0021] In the formula, and They are the forward hidden layer result and the backward hidden layer result of the jth character of the i-th sentence of the text, is the feature vector of the jth character of the i-th sentence of the text, and They are the forward hidden layer function and the backward hidden layer function of BiLSTM, is the representation vector of the jth character of the i-th sentence of the text;

[0022] Step S3112: Calculate the character-level importance weight, and use the character-level attention mechanism to calculate the importance weight of each character's feature vector for constructing the semantics of the current sentence; the formula used is as follows:

[0023] ;

[0024] ;

[0025] In the formula, yes is the hidden representation of , tanh(·) is the activation function, yes The character-level importance weight, W f 、b f and r f are the weight matrix, bias term and query vector of the character-level attention mechanism, respectively, and T is the transposition operation;

[0026] Step S3113: Calculate the sentence-level feature vector, and obtain the sentence-level representation vector based on the character-level feature vector and the character-level importance weight. , using BiLSTM as a word-level encoder, and obtaining the forward hidden layer result of the i-th sentence of the text through the character-level encoder And the backward hidden layer results , combining the forward and backward hidden layer results, we get the feature vector of the i-th sentence of the text ; The formula used is as follows:

[0027] ;

[0028] ;

[0029] ;

[0030] In the formula, and are the forward hidden layer result and backward hidden layer result of the i-th sentence of the text, is the feature vector of the i-th sentence of the text, is the representation vector of the i-th sentence of the text;

[0031] Step S3114: Calculate the sentence-level importance weight, and use the sentence-level attention mechanism to calculate the importance weight of the feature vector of each sentence for constructing the semantics of the current text; the formula used is as follows:

[0032] ;

[0033] ;

[0034] In the formula, yes The hidden representation of yes The sentence-level importance weight, W v 、b v and r v They are the weight matrix, bias term and query vector of the sentence-level attention mechanism respectively;

[0035] Step S3115: Calculate the global features of the text data, and obtain the global features of the text data based on the sentence-level feature vector and the sentence-level importance weight. , and are the feature vectors of the first and pth sentences of the text, respectively. and They are and The sentence-level importance weight of ;

[0036] Step S312: extracting local features of text data, including the following steps:

[0037] Step S3121: Convolution, using a 1D convolutional neural network to extract local features from the character-level feature vector, with the convolution kernel W e ∈D×L, L is the length of the convolution kernel, which is equal to the dimension of the encoder BiLSTM unit output, and D is the height of the convolution kernel, which is applied to different character intervals. Get the local feature map of each sentence ={m1,…,m j ,…,m q-D+1}; The formula used for 1D convolutional neural network is as follows:

[0038] ;

[0039] Where b e is the bias term of the convolution kernel, , and are the intervals from the 1st character to the Dth character, from the jth character to the j+D+1th character, and from the q-D+1th character to the qth character of the i-th sentence of the text, respectively. m1, m j and m q-D+1 They are , and Local feature map of ;

[0040] Step S3122: Calculate the local feature importance weight, and use the local feature attention mechanism to calculate the importance weight of the feature map of each sentence for constructing the semantics of the current text; the formula used is as follows:

[0041] ;

[0042] ;

[0043] In the formula, yes The hidden representation of yes The local feature importance weight, W l 、b l and r l They are the weight matrix, bias term and query vector of the local feature attention mechanism respectively;

[0044] Step S3123: Calculate the local features of the text data, and obtain the local features of the text data based on the feature mapping of each sentence and the local feature importance weight , and are the local feature maps of the first and pth sentences of the text, respectively. and They are and The local feature importance weight of ;

[0045] Step S32: extracting image data features, using the GIST algorithm and the SIFT algorithm to extract the global features k and local features z of the preprocessed image data respectively;

[0046] Step S33: Calculate news features, and concatenate the global features a and local features u of the text data with the global features k and local features z of the image data to obtain news features;

[0047] Step S34: construct a feature set. Construct a first feature set based on news type, global feature a and local feature u of text data and global feature k and local feature z of image data. Construct a second feature set based on news type, news field and news features.

[0048] Further, in step S4, the fake news identification model is constructed, including a news text-image matching identifier and a news authenticity identifier in the same field. The news text-image matching identifier distinguishes the truth of news based on the similarity between text data and image data, and the news authenticity identifier in the same field distinguishes the truth of news based on the similarities and differences of news in the same field. The two are combined to obtain the output of the fake news identification model, which specifically includes the following steps:

[0049] Step S41: designing a news text-image matching identifier, the news text-image matching identifier comprises a first input layer, a similarity layer and a matching output layer; the first input layer receives a first feature set, the similarity layer calculates the total similarity between the text and the image; the matching output layer outputs a matching recognition result; comprising the following steps:

[0050] Step S411: Design a similarity layer. The similarity layer calculates the global similarity, local similarity, and global-local similarity of text and image respectively, and obtains the total similarity by weighted summation. The formula used is as follows:

[0051] ;

[0052] ;

[0053] ;

[0054] ;

[0055] Where S is the total similarity, S1, S2 and S3 are global similarity, local similarity and global-local similarity respectively, β1, β2 and β3 are global similarity weight, local similarity weight and global-local similarity weight respectively, Sim(·) is the cosine similarity function, max(·) is the maximum value function, a and u are the global and local features of text data respectively, k and z are the global and local features of image data respectively;

[0056] Step S412: Match the output layer. The formula used is as follows:

[0057] ;

[0058] In the formula, is the matching recognition result output by the text-image matching recognizer, and Sigmoid (·) is the activation function;

[0059] Step S42: Design a news authenticity identifier in the same field, the news authenticity identifier in the same field includes a second input layer, a graph construction layer, a convolution layer and an authenticity output layer; the second input layer receives a second feature set; the graph construction layer constructs a same-field relationship graph based on news features belonging to the same field; the convolution layer is used to update node features of the same-field relationship graph; the authenticity output layer outputs the authenticity identification result; including the following steps:

[0060] Step S421: Design a graph construction layer, construct a same-domain relationship graph for each field of news, each news as a node, the information in the node is the news feature, the edge between the nodes is defined based on cosine similarity, and a similarity threshold is pre-set. If the cosine similarity of the news features in two nodes is greater than or equal to the similarity threshold, there is an edge between the two nodes; otherwise, there is no edge between the two nodes;

[0061] Step S422: Design a convolutional layer with N convolutional layers. The convolutional layer uses adjacent nodes to update the news features of the node through convolution operations. This information propagation mechanism enables each news node to obtain the features of its adjacent nodes, thereby taking into account the similarities and differences of news in the same field and better distinguishing true and false news. The formula used to update node features is as follows:

[0062] ;

[0063] In the formula, F l+1 and F l are the node feature matrices of the l+1th and lth convolutional layers, G l is the weight matrix of the lth convolutional layer, U is the adjacency matrix, I is the identity matrix, is the adjacency matrix with self-connection added, , yes The degree matrix of , ReLU (·) is the activation function;

[0064] Step S423: authenticity output layer, the formula used is as follows:

[0065] ;

[0066] In the formula, is the authenticity recognition result output by the news authenticity identifier in the same field, F N is the node feature matrix of the Nth convolutional layer, W z and b z They are the weight matrix and bias term of the news authenticity identifier in the same field;

[0067] Step S43: Calculate the output of the fake news recognition model, and take the weighted sum of the outputs of the news text-image matching identifier and the news authenticity identifier in the same field as the final recognition result of the fake news recognition model.

[0068] Furthermore, in step S5, the fake news identification is to collect news data to be identified, and the news data to be identified includes text data, image data and news fields. After data preprocessing and news feature extraction of the news data to be identified, it is input into the fake news identification model, and the news type is obtained based on the output of the model to realize fake news identification.

[0069] The present invention provides a fake news identification system based on artificial intelligence, comprising a data acquisition module, a data preprocessing module, a news feature extraction module, a fake news identification model building module and a fake news identification module;

[0070] The data collection module collects historical news data and sends the data to the data preprocessing module;

[0071] The data preprocessing module performs text preprocessing and image preprocessing on the collected text data and image data respectively, and sends the data to the news feature extraction module;

[0072] The news feature extraction module uses multiple attention mechanisms to focus on important features at different levels, extracts global features and local features of text data, comprehensively considers text data and image data to obtain news features, and constructs a feature set based on news type, news field and a combination of different features, and sends the data to a fake news identification model construction module;

[0073] The fake news identification model module designs a news text-image matching identifier and a news authenticity identifier in the same field, designs a similarity layer to calculate the similarity between text and image, completes the matching detection of news text data and image data, designs a graph construction layer and a convolution layer to update node features, completes the authenticity detection of news in the same field, and takes the weighted sum of the outputs of the two identifiers as the fake news identification result, and sends the data to the fake news identification module;

[0074] The fake news identification module collects news data to be identified, performs data preprocessing and news feature extraction, and then inputs the data into the fake news identification model to implement fake news identification based on the output of the model.

[0075] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0076] (1) In view of the problems that existing fake news identification methods have insufficient news feature extraction, lack of comprehensive consideration of text and image data, and poor ability to capture key information in text data, this scheme introduces character-level and sentence-level attention mechanisms to focus on important features at different levels to extract global features of text data, introduces local feature attention mechanisms and convolutional neural networks to extract local features of text data, thereby more effectively capturing key information in text data and improving the expressiveness of text data features. It also extracts global and local features of image data, comprehensively considers text data and image data to obtain news features, which can more comprehensively describe news content and improve the diversity and richness of features. It also constructs feature sets based on news types, news fields, and combinations of different features, making news features more recognizable and distinguishable.

[0077] (2) In view of the problems of existing fake news identification methods, such as single information source, ignoring the relevance of news in the same field and lack of global consideration, this scheme designs a news text-image matching identifier and a news authenticity identifier in the same field, designs a similarity layer to calculate the similarity between text and image, and completes the matching detection of news text data and image data, which helps to solve the problem of low recognition accuracy caused by a single information source and provides more dimensions and basis for fake news identification; designs a graph construction layer and a convolution layer to update node features and complete the authenticity detection of news in the same field, taking into account the characteristics of news in the same field and being able to better consider the similarities and differences between news; and improves the accuracy and reliability of fake news identification by taking the weighted sum of the outputs of the two identifiers as the fake news identification result. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 A flowchart of a fake news identification method based on artificial intelligence provided by the present invention;

[0079] Figure 2 A schematic diagram of a fake news identification system based on artificial intelligence provided by the present invention;

[0080] Figure 3 is a schematic flow chart of step S3;

[0081] Figure 4 is a schematic flow chart of step S4;

[0082] Figure 5 It is the confusion matrix diagram;

[0083] Figure 6 It is the ROC curve diagram;

[0084] Figure 7 It is the predicted probability distribution diagram.

[0085] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0086] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0087] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0088] Example 1, see Figure 1 The present invention provides a fake news identification method based on artificial intelligence, which comprises the following steps:

[0089] Step S1: data collection, collecting historical news data;

[0090] Step S2: data preprocessing, performing text preprocessing and image preprocessing on the collected text data and image data respectively;

[0091] Step S3: News feature extraction, using multiple attention mechanisms to focus on important features at different levels, extracting global and local features of text data, comprehensively considering text data and image data to obtain news features, and constructing feature sets based on news types, news fields, and combinations of different features;

[0092] Step S4: construct a fake news recognition model, design a news text-image matching recognizer and a news authenticity recognizer in the same field, design a similarity layer to calculate the similarity between text and image, complete the matching detection of news text data and image data, design a graph construction layer and a convolution layer to update node features, complete the authenticity detection of news in the same field, and use the weighted sum of the outputs of the two recognizers as the fake news recognition result;

[0093] Step S5: Fake news identification, collect news data to be identified, perform data preprocessing and news feature extraction, and then input it into the fake news identification model to achieve fake news identification based on the output of the model.

[0094] Example 2, see Figure 1 ,This embodiment is based on the above embodiment. In step S1, the historical news data includes text data, image data, news field and news type. The news type includes true news and false news. The news type is used as a data label.

[0095] Example 3, see Figure 1 This embodiment is based on the above embodiment. In step S2, the data preprocessing performs text preprocessing and image preprocessing on the collected text data and image data respectively, and specifically includes the following steps:

[0096] Step S21: text preprocessing, removing noise and stop words from the collected text data; specifying the length of the text as the number of sentences in the text, and specifying the length of the sentence as the number of characters in the sentence, and predetermining the length of the text and the length of the sentence as p and q respectively; if the length of the sentence in the text after removing noise and stop words is less than q, then using an end symbol to fill the end of the sentence so that the length of the sentence is q; if the length of the sentence is greater than q, then truncating the sentence so that the length of the sentence is q; similarly, if the length of the text after removing noise and stop words is less than p, then using an end symbol to fill the end of the text so that the length of the text is p; if the length of the text is greater than p, then truncating the text so that the length of the text is p;

[0097] Step S22: Image preprocessing, performing image enhancement, image segmentation and image denoising on the collected image data.

[0098] Example 4, see Figure 1 and Figure 3This embodiment is based on the above embodiment. In step S3, news feature extraction extracts features of text data and image data respectively, and specifically includes the following steps:

[0099] Step S31: extracting text data features, extracting global features and local features of the pre-processed text data, including the following steps:

[0100] Step S311: extracting global features of text data, dividing the preprocessed text into character level and sentence level, obtaining sentence level feature vector from character level feature vector, and using different attention mechanisms to focus on important features at different levels, including the following steps:

[0101] Step S3111: Calculate the character-level feature vector, use the Word2Vec model to convert the preprocessed text data into a character-level representation vector, use BiLSTM as a character-level encoder, BiLSTM contains two directional LSTM structures, which are used to capture the contextual information of the character at each position, and obtain the forward hidden layer result of the jth character of the i-th sentence of the text through the character-level encoder. And the backward hidden layer results , combining the forward and backward hidden layer results, we get the feature vector of the jth character of the i-th sentence of the text ; The formula used is as follows:

[0102] ;

[0103] ;

[0104] ;

[0105] In the formula, and They are the forward hidden layer result and the backward hidden layer result of the jth character of the i-th sentence of the text, is the feature vector of the jth character of the i-th sentence of the text, and They are the forward hidden layer function and the backward hidden layer function of BiLSTM, is the representation vector of the jth character of the i-th sentence of the text;

[0106] Step S3112: Calculate the character-level importance weight, and use the character-level attention mechanism to calculate the importance weight of each character's feature vector for constructing the semantics of the current sentence; the formula used is as follows:

[0107] ;

[0108] ;

[0109] In the formula, yes is the hidden representation of , tanh(·) is the activation function, yes The character-level importance weight, W f 、b f and r f are the weight matrix, bias term and query vector of the character-level attention mechanism, respectively, and T is the transposition operation;

[0110] Step S3113: Calculate the sentence-level feature vector, and obtain the sentence-level representation vector based on the character-level feature vector and the character-level importance weight. , using BiLSTM as a word-level encoder, and obtaining the forward hidden layer result of the i-th sentence of the text through the character-level encoder And the backward hidden layer results , combining the forward and backward hidden layer results, we get the feature vector of the i-th sentence of the text ; The formula used is as follows:

[0111] ;

[0112] ;

[0113] ;

[0114] In the formula, and are the forward hidden layer result and backward hidden layer result of the i-th sentence of the text, is the feature vector of the i-th sentence of the text, is the representation vector of the i-th sentence of the text;

[0115] Step S3114: Calculate the sentence-level importance weight, and use the sentence-level attention mechanism to calculate the importance weight of the feature vector of each sentence for constructing the semantics of the current text; the formula used is as follows:

[0116] ;

[0117] ;

[0118] In the formula, yes The hidden representation of yes The sentence-level importance weight, W v 、b v and r v They are the weight matrix, bias term and query vector of the sentence-level attention mechanism respectively;

[0119] Step S3115: Calculate the global features of the text data, and obtain the global features of the text data based on the sentence-level feature vector and the sentence-level importance weight. , and are the feature vectors of the first and pth sentences of the text, respectively. and They are and The sentence-level importance weight of ;

[0120] Step S312: extracting local features of text data, including the following steps:

[0121] Step S3121: Convolution, using a 1D convolutional neural network to extract local features from the character-level feature vector, with the convolution kernel W e ∈D×L, L is the length of the convolution kernel, which is equal to the dimension of the encoder BiLSTM unit output, and D is the height of the convolution kernel, which is applied to different character intervals. Get the local feature map of each sentence ={m1,…,m j ,…,m q-D+1}; The formula used for 1D convolutional neural network is as follows:

[0122] ;

[0123] Where b e is the bias term of the convolution kernel, , and are the intervals from the 1st character to the Dth character, from the jth character to the j+D+1th character, and from the q-D+1th character to the qth character of the i-th sentence of the text, respectively. m1, m j and m q-D+1 They are , and Local feature map of ;

[0124] Step S3122: Calculate the local feature importance weight, and use the local feature attention mechanism to calculate the importance weight of the feature map of each sentence for constructing the semantics of the current text; the formula used is as follows:

[0125] ;

[0126] ;

[0127] In the formula, yes The hidden representation of yes The local feature importance weight, W l 、b l and r l They are the weight matrix, bias term and query vector of the local feature attention mechanism respectively;

[0128] Step S3123: Calculate the local features of the text data, and obtain the local features of the text data based on the feature mapping of each sentence and the local feature importance weight , and are the local feature maps of the first and pth sentences of the text, respectively. and They are and The local feature importance weight of ;

[0129] Step S32: extracting image data features, using the GIST algorithm and the SIFT algorithm to extract the global features k and local features z of the preprocessed image data respectively;

[0130] Step S33: Calculate news features, and concatenate the global features a and local features u of the text data with the global features k and local features z of the image data to obtain news features;

[0131] Step S34: construct a feature set. Construct a first feature set based on news type, global feature a and local feature u of text data and global feature k and local feature z of image data. Construct a second feature set based on news type, news field and news features.

[0132] By performing the above operations, in view of the problems that the existing fake news identification methods have insufficient news feature extraction, lack of comprehensive consideration of text and image data, and poor ability to capture key information in text data, this scheme introduces character-level and sentence-level attention mechanisms to focus on important features at different levels to extract global features of text data, introduces local feature attention mechanisms and convolutional neural networks to extract local features of text data, thereby more effectively capturing key information in text data, improving the expressiveness of text data features, and extracting global and local features of image data. The news features are obtained by comprehensively considering text data and image data, which can more comprehensively describe the news content and improve the diversity and richness of features. Feature sets are constructed based on news types, news fields, and combinations of different features, making news features more recognizable and distinguishable.

[0133] Example 5, see Figure 1 and Figure 4This embodiment is based on the above embodiment. In step S4, a fake news recognition model is constructed, including a news text-image matching identifier and a news authenticity identifier in the same field. The news text-image matching identifier distinguishes the authenticity of news based on the similarity between text data and image data. The news authenticity identifier in the same field distinguishes the authenticity of news based on the similarities and differences of news in the same field. The two are combined to obtain the output of the fake news recognition model. Specifically, the following steps are included:

[0134] Step S41: designing a news text-image matching identifier, the news text-image matching identifier comprises a first input layer, a similarity layer and a matching output layer; the first input layer receives a first feature set, the similarity layer calculates the total similarity between the text and the image; the matching output layer outputs a matching recognition result; comprising the following steps:

[0135] Step S411: Design a similarity layer. The similarity layer calculates the global similarity, local similarity, and global-local similarity of text and image respectively, and obtains the total similarity by weighted summation. The formula used is as follows:

[0136] ;

[0137] ;

[0138] ;

[0139] ;

[0140] Where S is the total similarity, S1, S2 and S3 are global similarity, local similarity and global-local similarity respectively, β1, β2 and β3 are global similarity weight, local similarity weight and global-local similarity weight respectively, Sim(·) is the cosine similarity function, max(·) is the maximum value function, a and u are the global and local features of text data respectively, k and z are the global and local features of image data respectively;

[0141] Step S412: Match the output layer. The formula used is as follows:

[0142] ;

[0143] In the formula, is the matching recognition result output by the text-image matching recognizer, and Sigmoid (·) is the activation function;

[0144] Step S42: Design a news authenticity identifier in the same field, the news authenticity identifier in the same field includes a second input layer, a graph construction layer, a convolution layer and an authenticity output layer; the second input layer receives a second feature set; the graph construction layer constructs a same-field relationship graph based on news features belonging to the same field; the convolution layer is used to update node features of the same-field relationship graph; the authenticity output layer outputs the authenticity identification result; including the following steps:

[0145] Step S421: Design a graph construction layer, construct a same-domain relationship graph for each field of news, each news as a node, the information in the node is the news feature, the edge between the nodes is defined based on cosine similarity, and a similarity threshold is pre-set. If the cosine similarity of the news features in two nodes is greater than or equal to the similarity threshold, there is an edge between the two nodes; otherwise, there is no edge between the two nodes;

[0146] Step S422: Design a convolutional layer with N convolutional layers. The convolutional layer uses adjacent nodes to update the news features of the node through convolution operations. This information propagation mechanism enables each news node to obtain the features of its adjacent nodes, thereby taking into account the similarities and differences of news in the same field and better distinguishing true and false news. The formula used to update node features is as follows:

[0147] ;

[0148] In the formula, F l+1 and F l are the node feature matrices of the l+1th and lth convolutional layers, G l is the weight matrix of the lth convolutional layer, U is the adjacency matrix, I is the identity matrix, is the adjacency matrix with self-connection added, , yes The degree matrix of , ReLU (·) is the activation function;

[0149] Step S423: authenticity output layer, the formula used is as follows:

[0150] ;

[0151] In the formula, is the authenticity recognition result output by the news authenticity identifier in the same field, F N is the node feature matrix of the Nth convolutional layer, W z and b z They are the weight matrix and bias term of the news authenticity identifier in the same field;

[0152] Step S43: Calculate the output of the fake news recognition model, and take the weighted sum of the outputs of the news text-image matching identifier and the news authenticity identifier in the same field as the final recognition result of the fake news recognition model.

[0153] By performing the above operations, in view of the problems of existing fake news identification methods such as single information source, ignoring the relevance of news in the same field and lack of global consideration, this scheme designs a news text-image matching identifier and a news authenticity identifier in the same field, designs a similarity layer to calculate the similarity between text and image, completes the matching detection of news text data and image data, helps to solve the problem of low recognition accuracy caused by a single information source, and provides more dimensions and basis for fake news identification; designs a graph construction layer and a convolution layer to update node features, completes the authenticity detection of news in the same field, takes into account the characteristics of news in the same field, and can better consider the similarities and differences between news; and uses the weighted sum of the outputs of the two identifiers as the fake news identification result to improve the accuracy and reliability of fake news identification.

[0154] Example 6, see Figure 1 This embodiment is based on the above embodiment. In step S5, fake news identification is to collect news data to be identified. The news data to be identified includes text data, image data and news fields. After data preprocessing and news feature extraction of the news data to be identified, it is input into the fake news identification model. The news type is obtained based on the output of the model to realize fake news identification.

[0155] Embodiment 7, see Figure 2 , this embodiment is based on the above embodiment. The present invention provides a fake news identification system based on artificial intelligence, including a data acquisition module, a data preprocessing module, a news feature extraction module, a fake news identification model building module and a fake news identification module;

[0156] The data collection module collects historical news data and sends the data to the data preprocessing module;

[0157] The data preprocessing module performs text preprocessing and image preprocessing on the collected text data and image data respectively, and sends the data to the news feature extraction module;

[0158] The news feature extraction module uses multiple attention mechanisms to focus on important features at different levels, extracts global features and local features of text data, comprehensively considers text data and image data to obtain news features, and constructs a feature set based on news type, news field and a combination of different features, and sends the data to a fake news identification model construction module;

[0159] The fake news identification model module designs a news text-image matching identifier and a news authenticity identifier in the same field, designs a similarity layer to calculate the similarity between text and image, completes the matching detection of news text data and image data, designs a graph construction layer and a convolution layer to update node features, completes the authenticity detection of news in the same field, and takes the weighted sum of the outputs of the two identifiers as the fake news identification result, and sends the data to the fake news identification module;

[0160] The fake news identification module collects news data to be identified, performs data preprocessing and news feature extraction, and then inputs the data into the fake news identification model to implement fake news identification based on the output of the model.

[0161] Embodiment 8, see Figure 5 , Figure 6 and Figure 7 This embodiment is based on the above embodiment. Figure 5 In the figure, rows represent true categories and columns represent predicted categories. The confusion matrix shows the performance of the model in classifying true news and false news, where 0 represents false news and 1 represents true news. Figure 6 In the figure, the ROC curve is drawn with the false positive rate as the horizontal axis and the true positive rate as the vertical axis. The area under the curve reflects the overall performance of the model. Figure 6 The area under the curve in is 0.51; Figure 7 In the figure, a distribution histogram of the predicted scores is plotted with the range of predicted scores as the horizontal axis and the number of samples in each predicted score interval as the vertical axis. The unit of the horizontal axis is points and the unit of the vertical axis is pieces. The kernel density estimation curve is superimposed to show the distribution of the model's predicted scores for news authenticity.

[0162] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0163] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.

[0164] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A fake news identification method based on artificial intelligence, Features: The method comprises the following steps: Step S1: data collection; Step S2: data preprocessing; Step S3: News feature extraction, using multiple attention mechanisms to focus on important features at different levels, extracting global and local features of text data, comprehensively considering text data and image data to obtain news features, and constructing feature sets based on news types, news fields, and combinations of different features; Step S4: construct a fake news recognition model, design a news text-image matching recognizer and a news authenticity recognizer in the same field, design a similarity layer to calculate the similarity between text and image, complete the matching detection of news text data and image data, design a graph construction layer and a convolution layer to update node features, complete the authenticity detection of news in the same field, and use the weighted sum of the outputs of the two recognizers as the fake news recognition result; Step S5: fake news identification; In step S3, the news feature extraction extracts features of text data and image data respectively, specifically including the following steps: Step S31: extracting text data features, extracting global features and local features of the pre-processed text data, including the following steps: Step S311: extracting global features of text data, dividing the preprocessed text into character level and sentence level, obtaining sentence level feature vector from character level feature vector, and using different attention mechanisms to focus on important features at different levels; Step S312: extracting local features of text data, including the following steps: Step S3121: Convolution, using a 1D convolutional neural network to extract local features from the character-level feature vector, with the convolution kernel W e ∈D×L, L is the length of the convolution kernel, which is equal to the dimension of the encoder BiLSTM unit output, and D is the height of the convolution kernel, which is applied to different character intervals. Get the local feature map of each sentence ={m 1 ,…,m j ,…,m q-D+1 }; The formula used for 1D convolutional neural network is as follows: ; Where b e is the bias term of the convolution kernel, , and are the intervals from the 1st character to the Dth character, the jth character to the j+D+1th character, and the q-D+1th character to the qth character of the i-th sentence of the text, respectively. m 1 、m j and m q-D+1 They are , and Local feature map of ; Step S3122: Calculate the local feature importance weight, and use the local feature attention mechanism to calculate the importance weight of the feature map of each sentence for constructing the semantics of the current text; the formula used is as follows: ; ; In the formula, yes The hidden representation of yes The local feature importance weight, W l , b l and r l They are the weight matrix, bias term and query vector of the local feature attention mechanism respectively; Step S3123: Calculate the local features of the text data, and obtain the local features of the text data based on the feature mapping of each sentence and the local feature importance weight , and are the local feature maps of the first and pth sentences of the text, respectively. and They are and The local feature importance weight of ; Step S32: extracting image data features, using the GIST algorithm and the SIFT algorithm to extract the global features k and local features z of the preprocessed image data respectively; Step S33: Calculate news features, and concatenate the global features a and local features u of the text data with the global features k and local features z of the image data to obtain news features; Step S34: constructing a feature set, constructing a first feature set based on news type, global feature a and local feature u of text data and global feature k and local feature z of image data, and constructing a second feature set based on news type, news field and news features; In step S311, the text data global feature extraction specifically includes the following steps: Step S3111: Calculate the character-level feature vector, use the Word2Vec model to convert the preprocessed text data into a character-level representation vector, use BiLSTM as a character-level encoder, BiLSTM contains two directional LSTM structures, which are used to capture the contextual information of the character at each position, and obtain the forward hidden layer result of the jth character of the i-th sentence of the text through the character-level encoder. And the backward hidden layer results , combining the forward and backward hidden layer results, we get the feature vector of the jth character of the i-th sentence of the text ; Step S3112: Calculate the character-level importance weight, and use the character-level attention mechanism to calculate the importance weight of each character's feature vector for constructing the semantics of the current sentence; the formula used is as follows: ; ; In the formula, yes is the hidden representation of , tanh(·) is the activation function, yes The character-level importance weight, W f 、b f and r f are the weight matrix, bias term and query vector of the character-level attention mechanism, respectively, and T is the transposition operation; Step S3113: Calculate the sentence-level feature vector, and obtain the sentence-level representation vector based on the character-level feature vector and the character-level importance weight. , using BiLSTM as a word-level encoder, and obtaining the forward hidden layer result of the i-th sentence of the text through the character-level encoder And the backward hidden layer results , combining the forward and backward hidden layer results, we get the feature vector of the i-th sentence of the text ; Step S3114: Calculate the sentence-level importance weight, and use the sentence-level attention mechanism to calculate the importance weight of the feature vector of each sentence for constructing the semantics of the current text; the formula used is as follows: ; ; In the formula, yes The hidden representation of yes The sentence-level importance weight, W v , b v and r v They are the weight matrix, bias term and query vector of the sentence-level attention mechanism respectively; Step S3115: Calculate the global features of the text data, and obtain the global features of the text data based on the sentence-level feature vector and the sentence-level importance weight. , and are the feature vectors of the first and pth sentences of the text, respectively. and They are and The sentence-level importance weight of ; In step S4, the construction of the fake news identification model specifically includes the following steps: Step S41: designing a news text-image matching identifier, the news text-image matching identifier comprises a first input layer, a similarity layer and a matching output layer; the first input layer receives a first feature set, the similarity layer calculates the total similarity between the text and the image; the matching output layer outputs a matching recognition result; comprising the following steps: Step S411: Design a similarity layer. The similarity layer calculates the global similarity, local similarity, and global-local similarity of text and image respectively, and performs weighted summation to obtain the total similarity. The formula used is as follows: ; ; ; ; In the formula, S is the total similarity, S 1 , S 2 and S 3 are global similarity, local similarity and global-local similarity, β 1 , β 2 and β 3 are the global similarity weight, local similarity weight and global-local similarity weight, Sim(·) is the cosine similarity function, max(·) is the maximum value function, a and u are the global and local features of text data, k and z are the global and local features of image data, respectively; Step S412: Match the output layer. The formula used is as follows: ; In the formula, is the matching recognition result output by the text-image matching recognizer, and Sigmoid (·) is the activation function; Step S42: designing a news authenticity identifier in the same field, the news authenticity identifier in the same field comprising a second input layer, a graph construction layer, a convolution layer and an authenticity output layer; the second input layer receives a second feature set; the graph construction layer constructs a same-field relationship graph based on news features belonging to the same field; the convolution layer is used to update node features of the same-field relationship graph; the authenticity output layer outputs an authenticity identification result; Step S43: Calculate the output of the fake news recognition model, and take the weighted sum of the outputs of the news text-image matching recognizer and the news authenticity recognizer in the same field as the final recognition result of the fake news recognition model; In step S42, the design of the news authenticity identifier in the same field specifically includes the following steps: Step S421: Design a graph construction layer, construct a same-domain relationship graph for each field of news, each news as a node, the information in the node is the news feature, the edge between the nodes is defined based on cosine similarity, and a similarity threshold is pre-set. If the cosine similarity of the news features in two nodes is greater than or equal to the similarity threshold, there is an edge between the two nodes; otherwise, there is no edge between the two nodes; Step S422: Design a convolution layer, the number of which is N. The convolution layer uses adjacent nodes to update the news features of the node through a convolution operation. The formula used to update the node features is as follows: ; In the formula, F l+1 and F l are the node feature matrices of the l+1th and lth convolutional layers, G l is the weight matrix of the lth convolutional layer, U is the adjacency matrix, I is the identity matrix, is the adjacency matrix with self-connection added, , yes The degree matrix of , ReLU (·) is the activation function; Step S423: authenticity output layer, the formula used is as follows: ; In the formula, is the authenticity recognition result output by the news authenticity identifier in the same field, F N is the node feature matrix of the Nth convolutional layer, W z and b z They are the weight matrix and bias term of the news authenticity identifier in the same field.

2. According to the artificial intelligence-based fake news identification method of claim 1, Features: In step S2, the data preprocessing performs text preprocessing and image preprocessing on the collected text data and image data respectively, and specifically includes the following steps: Step S21: text preprocessing, removing noise and stop words from the collected text data; specifying the length of the text as the number of sentences in the text, and specifying the length of the sentence as the number of characters in the sentence, and predetermining the length of the text and the length of the sentence as p and q respectively; if the length of the sentence in the text after removing noise and stop words is less than q, then using an end symbol to fill the end of the sentence so that the length of the sentence is q; if the length of the sentence is greater than q, then truncating the sentence so that the length of the sentence is q; similarly, if the length of the text after removing noise and stop words is less than p, then using an end symbol to fill the end of the text so that the length of the text is p; if the length of the text is greater than p, then truncating the text so that the length of the text is p; Step S22: Image preprocessing, performing image enhancement, image segmentation and image denoising on the collected image data.

3. According to the artificial intelligence-based fake news identification method of claim 1, Features: In step S1, the data collection is to collect historical news data, which includes text data, image data, news fields and news types. News types include true news and false news, and news types are used as data labels.

4. The artificial intelligence-based fake news identification method according to claim 1, Features: In step S5, the fake news identification is to collect news data to be identified, which includes text data, image data and news fields. After data preprocessing and news feature extraction, the news data to be identified is input into the fake news identification model, and the news type is obtained based on the output of the model to realize fake news identification.

5. A fake news identification system based on artificial intelligence, used to implement a fake news identification method based on artificial intelligence as described in any one of claims 1 to 4, Features: It includes data collection module, data preprocessing module, news feature extraction module, fake news identification model building module and fake news identification module; The data collection module collects historical news data and sends the data to the data preprocessing module; The data preprocessing module performs text preprocessing and image preprocessing on the collected text data and image data respectively, and sends the data to the news feature extraction module; The news feature extraction module uses multiple attention mechanisms to focus on important features at different levels, extracts global features and local features of text data, comprehensively considers text data and image data to obtain news features, and constructs a feature set based on news type, news field and a combination of different features, and sends the data to a fake news identification model construction module; The fake news identification model module designs a news text-image matching identifier and a news authenticity identifier in the same field, designs a similarity layer to calculate the similarity between text and image, completes the matching detection of news text data and image data, designs a graph construction layer and a convolution layer to update node features, completes the authenticity detection of news in the same field, and takes the weighted sum of the outputs of the two identifiers as the fake news identification result, and sends the data to the fake news identification module; The fake news identification module collects news data to be identified, performs data preprocessing and news feature extraction, and then inputs the data into the fake news identification model to implement fake news identification based on the output of the model.

Citation Information

Patent Citations

  • Cross-modal news event classification method and system based on graph neural network

    CN112241481A

  • False news detection method and device thereof, computer equipment and storage medium

    CN113177110A

  • Named entity identification method and device, electronic equipment and storage medium

    CN113761923A

  • Rumor detection method and system based on multi-modal interaction

    CN114548274A

  • False news detection method based on multiple modes and transformer

    CN116561305A