Fine-grained fake news detection method based on sentiment distribution

By constructing a fake news detection model that includes the feature extraction layer of the pre-trained model and the fusion prediction layer, combined with the emotional wheel model and the self-attention mechanism, the shortcomings of existing methods in emotional feature extraction and potential connection mining are solved, and the false news detection model is improved. Accuracy and robustness of news detection.

CN118410171BActive Publication Date: 2024-08-30JIANGXI NORMAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410832534.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-30
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing fake news detection methods ignore the psychological perspective when extracting emotional features, and do not deeply explore the potential connection between news content and emotional features, resulting in low identification efficiency.

Method used

A fine-grained false news detection method based on emotion distribution is adopted. By constructing a detection model including a feature extraction layer and a fusion prediction layer of a pre-trained model, the self-attention mechanism and emotion are introduced by combining BERT, Bi-GRU, CNN and emotion wheel models. Dictionary, extract global and local text features and emotional features, and perform fusion prediction.

Benefits of technology

It improves the accuracy of emotional features and the robustness and generalization ability of the model, enables more precise distinction and classification of different emotional states, enhances the understanding and interpretation of text emotions, and improves the effect of false news detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410171B
    Figure CN118410171B
Patent Text Reader

Abstract

The present invention discloses a fine-grained false news detection method based on sentiment distribution, comprising the following steps: constructing a news data set and a false news detection model; inputting the news data set into the false news detection model for prediction, and outputting true or false prediction labels of news samples; the false news detection model consists of a feature extraction layer and a fusion prediction layer, wherein the sentiment feature extraction layer in the feature extraction layer consists of a pre-trained sentiment wheel model and a sentiment dictionary model; the present invention can more comprehensively understand the complexity of sentiment in a text by introducing the sentiment wheel model, thereby more accurately capturing and expressing sentiment features, and the sentiment wheel model takes into account the opposition and similarity between sentiments, so that different sentiment states can be more finely distinguished and classified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a fine-grained false news detection method based on sentiment distribution. Background Art

[0002] With the booming development of the Internet, it has brought great convenience to people's daily work, life and study, allowing users to publish, share and obtain information anytime and anywhere. The Internet has become one of the main channels for people to obtain news information, and the popularity of social media has further deepened people's dependence on the latest news. In view of this, more and more scholars are committed to the research work in the field of fake news detection.

[0003] Today, with the explosive growth in the number of Internet users and news, relying solely on traditional manual content review platforms to identify and prevent the spread of fake news is obviously no longer sufficient in the existing environment. There is an urgent need for more efficient and intelligent methods to deal with this increasingly serious problem.

[0004] Although research in this field has made great progress, current methods face two major challenges. Existing methods extract sentiment features from a linguistic perspective, but often ignore the fact that sentiment features should also include a psychological perspective. Sentiment features are particularly important in fake news detection, especially when considering text features. Therefore, in the current extraction of sentiment features, it is not sufficient to only use sentiment dictionaries to extract sentiment features. Secondly, many existing methods do not deeply explore the potential connection between news content and sentiment features. Summary of the invention

[0005] In view of the deficiencies of the prior art, the present invention provides a fine-grained false news detection method based on sentiment distribution, which aims to solve the problems mentioned in the background technology.

[0006] To achieve the above object, the present invention provides the following technical solution: a fine-grained false news detection method based on sentiment distribution, comprising the following steps:

[0007] Step S1: construct a news data set, which includes a Chinese data set and an English data set. Each piece of data in the Chinese data set and the English data set is a news sample;

[0008] Step S2: After performing data preprocessing on the news samples in the news data set, the news content, the comments corresponding to the news content, and the real labels of the news content are obtained;

[0009] Step S3: construct a fake news detection model, which consists of a feature extraction layer and a fusion prediction layer; the feature extraction layer consists of a text word embedding extraction module, a text feature extraction module and a sentiment feature extraction module, and the fusion prediction layer consists of a fusion module and a prediction module; the text word embedding extraction module consists of a pre-trained BERT model, the text feature extraction module consists of a pre-trained Bi-GRU model and a pre-trained CNN model, and the sentiment feature extraction module consists of a pre-trained sentiment wheel model and a pre-trained sentiment dictionary model; the fusion module consists of a Concat function and a self-attention mechanism, and the prediction module consists of a multi-layer perceptron and a classification function Sigmoid;

[0010] Step S4: Input the news content into the pre-trained BERT model to obtain the word vector representation of the news content, and obtain the news word embedding according to the word vector representation of the news content;

[0011] Step S5: Input the obtained news word embedding into the pre-trained Bi-GRU model and the pre-trained CNN model respectively to extract the global text feature B of the news content t And the local text feature C t ;

[0012] Step S6: input the news content and the comments corresponding to the news content into the sentiment feature extraction module, and extract the sentiment features of the news content and the comments corresponding to the news content based on the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model, and fuse the extracted sentiment features of the news content and the comments corresponding to the news content to obtain a complete sentiment feature;

[0013] Step S7: extract the global text features B t and local text features C t Combined with the complete sentiment feature to obtain the global text sentiment feature and local text sentiment features ;

[0014] Step S8: Global text sentiment features and local text sentiment features The weighted new features are obtained through the self-attention mechanism, and the weighted new features are passed through the multi-layer perceptron to obtain the final feature vector. The final feature vector is input into the classification function Sigmoid to output the true or false prediction label of the news sample.

[0015] Furthermore, the specific process of step S2 is as follows:

[0016] Delete news samples that lack text descriptions, have too long text descriptions, have too few comments, or have too long comments. Each news sample after deletion includes text feature data and comment feature data. Let the news sample after deletion be represented by C={c,v,y}, where c represents the news content, v represents the comments corresponding to the news content, and y represents the true label of the news content.

[0017] Furthermore, the specific process of step S4 is as follows:

[0018] The news content is input into the pre-trained BERT model to obtain news word embedding. For the news content of news samples in the Chinese data set, the pre-trained chenese-bert-wwm-ext model in the pre-trained BERT model is used; for the news content of news samples in the English data set, the pre-trained bert-base-uncased model in the pre-trained BERT model is used.

[0019] Furthermore, the specific process of obtaining the global text features of each news content is as follows:

[0020] Use the pre-trained Bi-GRU model to get each news word embedding s i The forward hidden state and backward hidden state of are shown in formula (1); then, the self-attention mechanism is introduced, as shown in formula (2), to learn the importance of each word and obtain a weighted word-level feature representation, as shown in formula (3); finally, the weighted word-level feature representations are combined to obtain the vector representation v of the entire sentence i , as shown in formula (4), based on v i Get the global text feature B of each news content t =[v 1 ,v 2 ,...,v i ];

[0021] (1);

[0022] (2);

[0023] (3);

[0024] (4);

[0025] In the formula, Represents the hidden state of the t-th word vector in sentence i after processing, i.e. h t i =[ h ⃗ t i , h ⃖ t i ] ; Represents the forward hidden state of the t-th word vector in sentence i; Represents the backward hidden state of the t-th word vector in sentence i; Represents the tth word vector in sentence i; Represents the forward hidden state of the t-1th word vector in sentence i; Indicates that the Bi-GRU model processes the forward information of the input sequence; Indicates that the Bi-GRU model processes the backward information of the input sequence; Represents the final global feature vector of sentence i; Indicates the word length of sentence i; represents the feature representation of the tth word in sentence i; W w and b w All represent trainable parameters; represents the transpose of the parameter matrix; represents the kth word in sentence i; represents the feature representation of the kth word in sentence i; Represents the attention weight of the tth word vector in sentence i.

[0026] Furthermore, the specific process of obtaining the local text features of each news content is as follows:

[0027] In the pre-trained CNN model, the convolution operation is used to extract the local features of the news content. First, the convolution operation is performed on each sentence of the news content, as shown in formula (5). Then, the most significant feature H extracted by each convolution kernel in the sentence is obtained through the maximum pooling operation. i , as shown in formula (6); use the filter to H i Filter and weight to get the final text feature u of the sentence i , based on u i Get the local text features C of each news content t =[u 1 ,u 2 ,...,u i ];

[0028] (5);

[0029] (6);

[0030] Where W∈R n*d is a learnable parameter matrix; R represents the real number domain; d represents the word embedding dimension; b is the bias term; ReLU is the activation function; h i The feature vector representing sentence i; xt:t+λ-1 Represents a word vector; where t:t+λ-1 Represents the features of word vectors extracted at different scales, and λ takes values ​​of 1.2.3.5.10.

[0031] Further, the specific process of step S6 is: the news content and the comments corresponding to the news content are respectively input into the sentiment feature extraction module, and when extracting, the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model are used to extract the sentiments of the publisher and the commentator according to the correlation and opposition between the extracted sentiments, and the sentiment words in the sentence are found through the pre-trained sentiment dictionary model, and each sentiment word has an associated sentiment label;

[0032] Specifically, the comments corresponding to the news content are set to v=[t1,t2,...,t i ], through each comment t i The true emotion label y i Generate discrete Gaussian distribution , is the emotion label for each sentiment word Generate discrete Gaussian distribution On this basis, and Superposition, to obtain the comprehensive emotional distribution;

[0033] (7);

[0034] (8);

[0035] In the formula, Indicates that a Gaussian distribution is generated based on the original emotion label, i.e., the real emotion label of the sentence and the emotion label of the emotion word; Denotes the normalization factor such that ; represents the emotion wheel distance between emotion a and the real emotion α; It represents the final sentiment distribution obtained by using the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model; Represents sentence t i The number of sentiment words; Represents sentence t i The kth sentiment word w i,k The number of emotion labels; t represents the number; and Indicates the preset parameters;

[0036] The obtained comprehensive sentiment distribution Used to extract the sentiment of reviewers and the publisher's emotions , the commentator's emotions and the publisher's emotions Fusion to obtain complete emotional features ;

[0037] (9).

[0038] Furthermore, the specific process of step S7 is as follows:

[0039] The global text features of the news content will be obtained Emotional characteristics Use the concat function to concatenate and obtain the global text sentiment features ; The local text features of the news content Emotional characteristics Use the concat function to concatenate and obtain local text sentiment features , expressed as:

[0040] (10);

[0041] (11).

[0042] Furthermore, the specific process of step S8 is as follows:

[0043] Will and The final feature O is obtained through the self-attention mechanism and is input into the classifier module; the true or false prediction labels of the news samples are output; specifically: the sigmoid activation function is used to obtain the predicted labels of the news samples, and the cross entropy loss function makes the predicted results, i.e. the true or false prediction labels, close to the real labels;

[0044] (12);

[0045] (13);

[0046] In the formula, Represents the classifier prediction label; represents a fully connected layer; Represents the calculation result of the cross entropy loss function; Represents the true label of the sample; and Represent the weight matrix and bias matrix respectively.

[0047] Furthermore, the specific process of step S1 is: obtaining commonly used and publicly available Chinese and English data sets for fake news detection, wherein the Chinese data set uses the Weibo16 data set and the Weibo20 data set, and the English data set uses the Politifact data set; each piece of data in the Weibo16 data set, the Weibo20 data set, and the Politifact data set is a news sample.

[0048] Compared with the existing technology, the present invention has the following beneficial effects:

[0049] (1) By introducing the emotion wheel model, the present invention can more comprehensively understand the complexity of emotions in the text, thereby more accurately capturing and expressing emotional features. The emotion wheel model takes into account the opposition and similarity between emotions, making it possible to more finely distinguish and classify different emotional states. In addition, the structured characteristics of the emotion wheel model can also help to better understand and explain the evolution and transformation process of emotions in the text. At the same time, compared with simply relying on the linguistic model emotion dictionary, the introduction of the emotion wheel model can also increase the robustness and generalization ability of the model; the emotion wheel model provides a more comprehensive and multi-dimensional way to represent emotional features, allowing the model to better adapt and process texts in different fields or contexts.

[0050] (2) The present invention proposes a text and sentiment fusion network to better fuse the sentiment features and text features extracted from the data, rather than simply using local text features or global text features for splicing and pooling operations, so that the extracted data features are more comprehensive and have better performance in training effects.

[0051] (3) The present invention addresses the problem that different news have different emphases on local and global features by adding a self-attention mechanism, so that the model can better deal with the problem of inconsistent emphasis on data features that need to be detected. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 This is a framework diagram of the fake news detection model of the present invention. DETAILED DESCRIPTION

[0053] like Figure 1 As shown, the present invention provides a technical solution: a fine-grained false news detection method based on sentiment distribution, comprising the following steps:

[0054] Step S1: construct a news data set, where each piece of data in the news data set is a news sample;

[0055] Specifically, commonly used and publicly available Chinese and English datasets for fake news detection are obtained. The Chinese dataset uses the Weibo16 dataset and the Weibo20 dataset, and the English dataset uses the Politifact dataset. Each piece of data in the Weibo16 dataset, the Weibo20 dataset, and the Politifact dataset is a news sample.

[0056] Step S2: After performing data preprocessing on the news samples in the data set, the news content, the comments corresponding to the news content, and the real labels of the news content are obtained;

[0057] Specifically, since the model in the present invention only requires news content and comments, the news samples in the data set are processed to retain only the news content, comments and real news labels in the news samples;

[0058] Delete news samples that lack text descriptions, have too long text descriptions, have too few comments, or have too long comments. Each news sample after deletion includes text feature data and comment feature data. Let the news sample after deletion be represented by C={c,v,y}, where c represents the news content, v represents the comments corresponding to the news content, and y represents the true label of the news content.

[0059] Use the sklearn library in Python to randomly divide the Chinese data set and the English news data set into training set, validation set and test set according to the 3:1:1 rule. Use the validation set to fine-tune the trained fake news detection model, and use the test set to verify the fine-tuned fake news detection model.

[0060] Step S3: construct a fake news detection model, which consists of a feature extraction layer and a fusion prediction layer; the feature extraction layer consists of a text word embedding extraction module, a text feature extraction module and a sentiment feature extraction module, and the fusion prediction layer consists of a fusion module and a prediction module; the text word embedding extraction module consists of a pre-trained BERT model, the text feature extraction module consists of a pre-trained Bi-GRU model and a pre-trained CNN model, and the sentiment feature extraction module consists of a pre-trained sentiment wheel model and a pre-trained sentiment dictionary model; the fusion module consists of a Concat function and a self-attention mechanism, and the prediction module consists of a multi-layer perceptron and a classification function Sigmoid;

[0061] Step S4: Input the news content into the pre-trained BERT model to obtain the word vector representation of the news content, and obtain the news word embedding according to the word vector representation of the news content;

[0062] Specifically, the news content is input into the pre-trained BERT model to obtain news word embedding; for the news content of the news samples in the Chinese data set, the pre-trained chenese-bert-wwm-ext model in the pre-trained BERT model is used; for the news content of the news samples in the English data set, the pre-trained bert-base-uncased model in the pre-trained BERT model is used.

[0063] Step S5: input the obtained news word embedding into the pre-trained Bi-GRU model and the pre-trained CNN model respectively to extract the global text features and local text features of the news content;

[0064] Specifically, in the pre-trained Bi-GRU model, the long-term dependencies and bidirectional semantic dependencies in the news content can be captured; although each word in the news content contains contextual information and the entire sentence information, the importance of each word in the sentence is different. The specific process of obtaining the global text features of the news content is:

[0065] First, use the pre-trained Bi-GRU model to obtain the embedding s of each news word i The forward hidden state and backward hidden state of are as shown in formula (1); these hidden states capture the semantic information of the word in the sentence and take into account the contextual relationship of the word; then, the self-attention mechanism is introduced, as shown in formula (2), to learn the importance of each word. Through the self-attention mechanism, the weight of each word in the sentence can be dynamically adjusted to better capture the semantic relationship between words, and a weighted word-level feature representation is obtained, as shown in formula (3); finally, the weighted word-level feature representations are combined to obtain the vector representation V of the entire sentence i As shown in formula (4), this sentence vector contains the global text feature of the sentence, which is obtained by weighting the importance of each word and can better reflect the semantic information of the sentence. Through this series of operations, the global text feature B of each news content is obtained. t =[v 1 ,v 2 ,...,v i ], where V i Represents the text features of the i-th sentence in the news content, where i is the number of sentences contained in each news content;

[0066] In the CNN model, convolution operation is used to extract local text features of news content. In order to capture feature information at different scales, a multi-scale convolutional neural network (CNN model) with a dimension of five is selected, where the dimensions are 1, 2, 3, 5, and 10. The specific operations are as follows:

[0067] First, a convolution operation is performed on each sentence in the news content, which means that each sentence is convolved with a convolution kernel to obtain local feature information, as shown in formula (5); then, the most significant feature H extracted by each convolution kernel in the sentence is obtained through a maximum pooling operation. i , as shown in formula (6); the maximum pooling operation can help retain the most important features detected by each convolution kernel; after obtaining the most significant feature H extracted by each convolution kernel i Afterwards, a filter is used to further extract these features; the function of this filter is to i Filter and weight to obtain the final text feature u of the sentence i Through this series of operations, the local text features C of the news content are obtained t =[u 1 ,u 2 ,...,u i ], where u i Represents the text feature of the Nth sentence in the news content, i is the number of sentences contained in each news content;

[0068] (1);

[0069] (2);

[0070] (3);

[0071] (4);

[0072] (5);

[0073] (6);

[0074] In the formula, Represents the hidden state of the t-th word vector in sentence i after processing, i.e. h t i =[ h ⃗ t i , h ⃖ t i ] ; Represents the forward hidden state of the t-th word vector in sentence i; Represents the forward hidden state of the t-1th word vector in sentence i; Indicates that the Bi-GRU model processes the forward information of the input sequence; Indicates that the Bi-GRU model processes the backward information of the input sequence; Represents the backward hidden state of the t-th word vector in sentence i; Represents the tth word vector in sentence i; Represents the final global feature vector of sentence i; Indicates the word length of sentence i; represents the feature representation of the tth word in sentence i; W w and b w All represent trainable parameters; represents the transpose of the parameter matrix; represents the kth word in sentence i; represents the feature representation of the kth word in sentence i; represents the attention weight of the t-th word vector in sentence i; W∈R n*d is a learnable parameter matrix; R represents the real number domain; d represents the word embedding dimension; b is the bias term; ReLU is the activation function; h i The feature vector representing sentence i; x t:t+λ-1 Represents a word vector, where t:t+λ-1 Represents the features of word vectors extracted at different scales, and λ takes values ​​of 1.2.3.5.10.

[0075] Step S6: input the news content and the comments corresponding to the news content into the sentiment feature extraction module, and extract the sentiment features of the news content and the comment data based on the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model, and fuse the extracted sentiment features of the news content and the comments corresponding to the news content to obtain a complete sentiment feature;

[0076] Specifically, the news content and the comments corresponding to the news content are respectively input into the sentiment feature extraction module. During the extraction, the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model are used to extract the sentiments of the publisher and the commentator according to the correlation and opposition between the extracted sentiments. The sentiment words in the sentence are found through the pre-trained sentiment dictionary model, and each sentiment word has an associated sentiment label.

[0077] The principle of the emotion wheel model is to divide emotions into eight basic types: joy, sadness, anger, fear, trust, disgust, surprise and expectation; these basic types of emotions are arranged on a circular wheel with adjacent (similarity) and relative (opposition) relationships with each other.

[0078] Set the comments corresponding to the news content to v=[t1,t2,...,t i ], through each comment t i The true emotion label y i Generate discrete Gaussian distribution , is the emotion label for each sentiment word Generate discrete Gaussian distribution On this basis, and Superposition, to obtain the comprehensive emotional distribution;

[0079] (7);

[0080] (8);

[0081] In the formula, Indicates that a Gaussian distribution is generated based on the original emotion label, i.e., the real emotion label of the sentence and the emotion label of the emotion word; Denotes the normalization factor such that ; represents the emotion wheel distance between emotion a and the real emotion α; It represents the final sentiment distribution obtained by using the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model; Represents sentence t i The number of sentiment words; Represents sentence t i The kth sentiment word w i,k The number of emotion labels; t represents the number; and Indicates the preset parameters;

[0082] The obtained comprehensive sentiment distribution Used to extract the sentiment of reviewers and the publisher's emotions , the commentator's emotions and the publisher's emotions Fusion to obtain complete emotional features ;

[0083] (9);

[0084] Step S7: respectively concatenate the extracted global text features and local text features with the complete sentiment features to obtain the global text sentiment features and local text sentiment features ;

[0085] Specifically, the global text features of the news content are obtained Emotional characteristics Use the concat function to concatenate and obtain the global text sentiment features ; The local text features of the news content Emotional characteristics Use the concat function to concatenate and obtain local text sentiment features , expressed as:

[0086] (10);

[0087] (11);

[0088] Step S8: Convert the tensor and tensors After the attention weighting, the weighted new features are obtained. The weighted new features are passed through the fully connected layer to obtain the final feature vector. The final feature vector is input into the classifier module to output the true or false prediction label of the news sample.

[0089] Specifically, and The final feature O is obtained through the self-attention mechanism and is input into the classifier module; the true or false prediction labels of the news samples are output; the sigmoid activation function is used to obtain the true or false prediction labels of the news samples, and the cross entropy loss function makes the predicted results, i.e. the true or false prediction labels, close to the real labels;

[0090] (12);

[0091] (13);

[0092] In the formula, Represents the classifier prediction label; represents a fully connected layer; Represents the calculation result of the cross entropy loss function; Represents the true label of the sample; and Represent the weight matrix and bias matrix respectively.

[0093] Ablation experiments;

[0094] The modules of the present invention are placed in different data sets for experiments, as shown in Table 1:

[0095] Table 1 Experimental results of the impact of each module

[0096]

[0097] In the table, politfact is the politfact dataset (English), Weibo16 is the Weibo16 dataset (Chinese), Weibo20 is the Weibo20 dataset, -B indicates a model that only uses the Bi-GRU model to extract news text features and sentiment features; -C indicates a model that only uses the CNN model to extract news text features and sentiment features; -D indicates a model that extracts sentiment features based on a sentiment dictionary; -F indicates that the fake news detection model of the present invention does not use an attention mechanism; -A indicates the fake news detection model of the present invention.

[0098] According to the ablation experiment comparison in Table 1, it can be seen that the trained fake news detection model of the present invention is more excellent in fake news detection tasks and sentiment feature extraction and fusion.

[0099] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A fine-grained false news detection method based on sentiment distribution, characterized in that: The steps include: Step S1: construct a news data set, which includes a Chinese data set and an English data set. Each piece of data in the Chinese data set and the English data set is a news sample; Step S2: After performing data preprocessing on the news samples in the news data set, the news content, the comments corresponding to the news content, and the real labels of the news content are obtained; Step S3: construct a fake news detection model, which consists of a feature extraction layer and a fusion prediction layer; the feature extraction layer consists of a text word embedding extraction module, a text feature extraction module and a sentiment feature extraction module, and the fusion prediction layer consists of a fusion module and a prediction module; the text word embedding extraction module consists of a pre-trained BERT model, the text feature extraction module consists of a pre-trained Bi-GRU model and a pre-trained CNN model, and the sentiment feature extraction module consists of a pre-trained sentiment wheel model and a pre-trained sentiment dictionary model; the fusion module consists of a Concat function and a self-attention mechanism, and the prediction module consists of a multi-layer perceptron and a classification function Sigmoid; Step S4: Input the news content into the pre-trained BERT model to obtain the word vector representation of the news content, and obtain the news word embedding according to the word vector representation of the news content; Step S5: Input the obtained news word embedding into the pre-trained Bi-GRU model and the pre-trained CNN model respectively to extract the global text feature B of the news content t And the local text feature C t ; Step S6: input the news content and the comments corresponding to the news content into the sentiment feature extraction module, and extract the sentiment features of the news content and the comments corresponding to the news content based on the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model, and fuse the extracted sentiment features of the news content and the comments corresponding to the news content to obtain a complete sentiment feature; Step S7: extract the global text features B t and local text features C t Combined with the complete sentiment feature to obtain the global text sentiment feature and local text sentiment features ; Step S8: Global text sentiment features and local text sentiment features The weighted new features are obtained through the self-attention mechanism, and the weighted new features are passed through the multi-layer perceptron to obtain the final feature vector. The final feature vector is input into the classification function Sigmoid to output the true or false prediction label of the news sample; The specific process of step S6 is as follows: the news content and the comments corresponding to the news content are respectively input into the sentiment feature extraction module. During the extraction, the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model are used to extract the sentiments of the publisher and the commentator according to the correlation and opposition between the extracted sentiments. The sentiment words in the sentence are found through the pre-trained sentiment dictionary model, and each sentiment word has an associated sentiment label; Specifically, the comments corresponding to the news content are set to v=[t1,t2,...,t i ], through each comment t i The true emotion label y i Generate discrete Gaussian distribution , is the emotion label for each sentiment word Generate discrete Gaussian distribution On this basis, and Superposition, to obtain the comprehensive emotional distribution; ; ; In the formula, Indicates that a Gaussian distribution is generated based on the original emotion label, i.e., the real emotion label of the sentence and the emotion label of the emotion word; Denotes the normalization factor such that ; represents the emotion wheel distance between emotion a and the real emotion α; It represents the final sentiment distribution obtained by using the pre-trained sentiment wheel model and the pre-trained sentiment dictionary model; Represents sentence t i The number of sentiment words; Indicates t i The kth sentiment word w i,k The number of emotion labels; t represents the number; and Indicates the preset parameters; The obtained comprehensive sentiment distribution Used to extract the sentiment of reviewers and the publisher's emotions , the commentator's emotions and the publisher's emotions Fusion to obtain complete emotional features ; 。 2. The fine-grained false news detection method based on sentiment distribution according to claim 1 is characterized in that: The specific process of step S2 is: Delete news samples that lack text descriptions, have too long text descriptions, have too few comments, or have too long comments. Each news sample after deletion includes text feature data and comment feature data. Let the news sample after deletion be represented by C={c,v,y}, where c represents the news content, v represents the comments corresponding to the news content, and y represents the true label of the news content.

3. The fine-grained false news detection method based on sentiment distribution according to claim 2 is characterized in that: The specific process of step S4 is: The news content is input into the pre-trained BERT model to obtain news word embedding. For the news content of news samples in the Chinese data set, the pre-trained chenese-bert-wwm-ext model in the pre-trained BERT model is used; for the news content of news samples in the English data set, the pre-trained bert-base-uncased model in the pre-trained BERT model is used.

4. The fine-grained false news detection method based on sentiment distribution according to claim 3 is characterized by: The specific process of obtaining the global text features of each news content is as follows: Use the pre-trained Bi-GRU model to get each news word embedding s i The forward hidden state and backward hidden state of the sentence are obtained by introducing the self-attention mechanism to learn the importance of each word and obtain a weighted word-level feature representation. Finally, the weighted word-level feature representations are combined to obtain the vector representation v of the entire sentence. i , based on v i Get the global text feature B of each news content t =[v 1 ,v 2 ,...,v i ]; ; ; ; ; In the formula, Represents the hidden state of the t-th word vector in sentence i after processing, i.e. ; Represents the forward hidden state of the t-th word vector in sentence i; Represents the backward hidden state of the t-th word vector in sentence i; Represents the tth word vector in sentence i; Represents the forward hidden state of the t-1th word vector in sentence i; Indicates that the Bi-GRU model processes the forward information of the input sequence; Indicates that the Bi-GRU model processes the backward information of the input sequence; Represents the final global feature vector of sentence i; Indicates the word length of sentence i; Represents the feature representation of the tth word in sentence i; W w and b w All represent trainable parameters; represents the transpose of the parameter matrix; represents the kth word in sentence i; represents the feature representation of the kth word in sentence i; Represents the attention weight of the tth word vector in sentence i.

5. The fine-grained false news detection method based on sentiment distribution according to claim 4 is characterized in that: The specific process of obtaining the local text features of each news content is as follows: In the pre-trained CNN model, the convolution operation is used to extract the local features of the news content. First, the convolution operation is performed on each sentence of the news content, and then the most significant feature H extracted by each convolution kernel in the sentence is obtained through the maximum pooling operation. i ; Use filter to H i Filter and weight to get the final text feature u of the sentence i , based on u i Get the local text features C of each news content t =[u 1 ,u 2 ,...,u i ]; ; ; Where W∈R n*d is a learnable parameter matrix; R represents the real number domain; d represents the word embedding dimension; b is the bias term; ReLU is the activation function; h i The feature vector representing sentence i; x t:t+λ-1 Represents a word vector, where t:t+λ-1 Represents the features of word vectors extracted at different scales.

6. The fine-grained false news detection method based on sentiment distribution according to claim 5 is characterized in that: The specific process of step S7 is: The global text features of the news content will be obtained Emotional characteristics Use the concat function to concatenate and obtain the global text sentiment features ; The local text features of the news content Emotional characteristics Use the concat function to concatenate and obtain local text sentiment features , expressed as: ; 。 7. The fine-grained false news detection method based on sentiment distribution according to claim 6 is characterized in that: The specific process of step S8 is: Will and The final feature O is obtained through the self-attention mechanism and is input into the classifier module; the true or false prediction labels of the news samples are output; specifically: the sigmoid activation function is used to obtain the predicted labels of the news samples, and the cross entropy loss function makes the predicted results, i.e. the true or false prediction labels, close to the real labels; ; ; In the formula, Represents the classifier prediction label; represents a fully connected layer; Represents the calculation result of the cross entropy loss function; Represents the true label of the sample; and represent the weight matrix and bias matrix respectively.

8. The fine-grained false news detection method based on sentiment distribution according to claim 1 is characterized in that: The specific process of step S1 is: obtaining commonly used and publicly available Chinese and English data sets for fake news detection, wherein the Chinese data set uses the Weibo16 data set and the Weibo20 data set, and the English data set uses the Politifact data set; each piece of data in the Weibo16 data set, the Weibo20 data set, and the Politifact data set is a news sample.

Citation Information

Patent Citations

  • Mongolian reverse reconstruction emotion distribution learning method based on semantic rules

    CN115146024A

  • False news detection method based on pre-training model fusion

    CN116049396A