False news detection method based on enhanced prompt learning and graph diffusion strategy
By enhancing hint learning and graph diffusion strategies, combined with user forwarding records and social network structure, the limitations of feature extraction and contextual information processing and insufficient model generalization capabilities in false news detection are solved, achieving more efficient and accurate falsehoods. News detection.
Patent Information
- Application Number
- CN202410738916.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing fake news detection methods have limitations in feature extraction and contextual information processing, insufficient model generalization capabilities, and scarcity of annotated data, resulting in poor detection results.
A method based on enhanced hint learning and graph diffusion strategy is used to fine-tune pseudo-cues through Mask Language Model, build a consistent network of authenticity propagation, and apply high-order neighbor-aware diffusion equations for feature propagation and update, using user forwarding records and social interaction The network structure improves detection accuracy.
It improves the accuracy and stability of false news detection, enhances the ability to capture complex syntactic structures and implicit semantics, solves the problem of scarcity of annotated data, and improves the model's generalization ability and feature propagation efficiency.
Smart Images

Figure CN118643402A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet false news detection, and in particular relates to a false news detection method based on enhanced prompt learning and graph diffusion strategy. Background Art
[0002] With the rapid development of artificial intelligence technology, the field of fake news detection technology has benefited from the rapid development of artificial intelligence technology. It is currently in a stage of rapid development and plays an increasingly important role in social production and life. In addition, the popularity of social media, news websites and various online platforms has greatly increased the speed and influence of fake news. The performance requirements of fake news detection technology are becoming increasingly urgent, and comprehensive and intelligent detection methods will become the trend of future international development.
[0003] Although the current mainstream fake news detection methods have many advantages, they still face some difficulties and challenges in practical applications:
[0004] 1. Limitations of feature extraction and representation: Current mainstream fake news detection methods usually rely on traditional text feature extraction techniques, such as TF-IDF, word embedding, etc. These methods have certain limitations in processing text semantics and contextual information, especially for complex syntactic structures and implicit semantics, which results in limited detection accuracy;
[0005] 2. Lack of contextual information: The spread of fake news is often accompanied by complex contextual information. It is difficult to obtain accurate results by relying solely on the content of a single article. Existing methods are not effective in dealing with cross-document contextual relevance and cannot fully utilize user behavior data and propagation path information to improve detection results.
[0006] 3. Insufficient generalization ability of the model: In actual applications, the forms and contents of fake news vary greatly. Traditional detection models often lack sufficient generalization ability when faced with new and diverse fake news. The model is prone to overfitting to the training data, resulting in unstable detection results in actual applications;
[0007] 4. Scarcity of labeled data: Fake news detection tasks require a large amount of labeled data for model training, but obtaining high-quality labeled data is often difficult and time-consuming. This leads to a significant imbalance in training samples, especially for a small number of categories of fake news, where existing models have poor recognition effects. Summary of the invention
[0008] The purpose of the present invention is to provide a fake news detection method based on enhanced prompt learning and graph diffusion strategy. The method combines the enhanced prompt learning model with the graph diffusion strategy, uses user forwarding records to construct a truth propagation consistency network, and applies a high-order neighbor-aware diffusion equation on this basis to achieve efficient and accurate detection of fake news.
[0009] In order to achieve the above object, the present invention adopts the following technical scheme:
[0010] The present invention discloses a method for detecting fake news based on enhanced prompt learning and graph diffusion strategy, which is aimed at the technical field of fake news detection. The main steps of the method include:
[0011] (1) Preliminary classification of fake news based on enhanced prompt learning: A large number of fake news texts to be detected are taken as input, and preliminary classification is performed through the enhanced prompt learning model trained with a small number of labeled samples. The specific steps include: based on the Mask Language Model (such as BERT), training is performed through pseudo-prompt fine-tuning. The pseudo-prompt fine-tuning technology used is to use a fixed prompt template, such as "This is a [MASK] news: [news content]". During the training process, the news content is inserted into the prompt template, and the BERT model is fine-tuned so that it can make preliminary true and false label predictions for all fake news texts to be detected. Adaptive learning rate and gradient truncation technology are used during the training process to ensure stable convergence of the model.
[0012] (2) Construct a consistency network for the spread of authenticity: Based on user forwarding records, a consistency network for the spread of authenticity is constructed. This network uses a large number of news as nodes and the connections between news that share the same social user as edges to form an undirected graph. The specific steps include: extracting news forwarding data from user forwarding records, using news as nodes and the connections between news forwarded by the same user as edges to form an undirected graph. To ensure the simplicity and efficiency of the graph, only active users and hot news with forwarding frequencies higher than the set threshold are retained, and duplicate graph connections are deleted. Finally, the filtered nodes and edges are integrated into a graph database such as Neo4j for storage and management;
[0013] (3) Final classification of news using graph feature diffusion strategy: On the authenticity propagation consistency network constructed above, the high-order neighbor-aware diffusion equation is applied to diffuse the features of adjacent network news nodes to the current node until the network becomes stable. The specific steps include: initializing the features of the news nodes after preliminary classification, and the node features are expressed as X = {x1, x2, ..., xN}, where xi represents the feature vector of the i-th news node. Through the high-order neighbor-aware diffusion equation, the node features are propagated and updated layer by layer until the network converges.
[0014] In the diffusion process, the initial node features and neighbor features are combined to ensure the stability and accuracy of feature updates through a fidelity term. The diffusion equation is expressed as:
[0015]
[0016] Among them, xi(t) represents the feature of the i-th node at time t, α and β are diffusion coefficients, N(i) represents the set of neighbor nodes of the i-th node, Aij represents the elements in the adjacency matrix, and di represents the degree of the i-th node. The feature update formula is:
[0017]
[0018] Among them, γ and η are update weights, and wij is the weight between node i and node j. The criterion for feature convergence is:
[0019] ||x i (t+1)-x i (t)||<∈
[0020] Among them, ∈ is the convergence threshold. Finally, the final authenticity prediction of the news is made using the diffused features to output more accurate false news detection results. The prediction result is calculated by the following formula:
[0021] y i =softmax(Wx i +b)
[0022] Among them, yi is the predicted label of the i-th news node, and W and b are model parameters.
[0023] Through the above process, the task of detecting fake news based on enhanced prompt learning and graph diffusion strategy is completed.
[0024] Preferably, the method performs step 1 in the flow: a process of preliminary classification of fake news based on enhanced prompt learning, wherein the enhanced prompt learning model is based on the Mask Language Model (such as BERT) and is trained by pseudo-prompt fine-tuning. The specific steps include: taking the news text as input, using the encoder of the BERT model to generate the contextual representation of each word, and predicting the word at the [MASK] position through the probability distribution output by the model.
[0025] Given an input text S = {si}, where i = 1 to N, si represents the i-th word, construct a prompt template containing the [MASK] tag, T = "This is a [MASK] news: " + S. During the training process, the model is optimized by maximizing the probability of the word in the [MASK] position, so that it can recognize and process input in this format. The specific formula is as follows:
[0026]
[0027] Among them, yi represents the true label and pi represents the probability of the i-th word predicted by the BERT model at the [MASK] position.
[0028] Preferably, the method executes step 2 in the flow: the process of constructing an authenticity propagation consistency network, and the construction of the authenticity propagation consistency network specifically includes the following steps:
[0029] 1. Extract news forwarding data from user forwarding records, and use news as nodes to form a preliminary node set. Specifically, extract all news forwarding data from user forwarding records. For each forwarding record, record the user ID and the corresponding news ID to form a preliminary node set and edge set.
[0030] 2. Determine the edges of each node, that is, the connections between news forwarded by the same user, forming an edge set of an undirected graph.
[0031] 3. Filter users based on forwarding frequency, and only keep active users whose forwarding frequency is higher than the set threshold. The specific steps include: counting the number of forwarding times of each user, only keeping active users whose forwarding frequency is higher than the set threshold, keeping these users' forwarding records in the data set, and deleting the forwarding records of other users.
[0032] 4. Filter news according to forwarding frequency, keep hot news, and remove news with forwarding frequency below the set threshold. The specific steps include: counting the number of times each news is forwarded, only keeping hot news with forwarding frequency above the set threshold, keeping the forwarding records of these news in the data set, and deleting the forwarding records of other news.
[0033] 5. Delete duplicate connections in the graph to ensure the simplicity and efficiency of the graph. Specifically, traverse the edge set. If there are multiple edges between a pair of nodes, only one is retained and the other duplicate edges are deleted.
[0034] 6. Integrate the filtered nodes and edges into the Neo4j graph database for storage and management. The database supports efficient storage and retrieval of nodes and edges, facilitating the subsequent application of graph feature diffusion strategies and authenticity detection.
[0035] Preferably, in step 3 of the method execution process: in the process of applying the graph feature diffusion strategy, the graph feature diffusion strategy includes the following steps:
[0036] 1. Feature initialization: Initialize the features of the news nodes after preliminary classification, including embedding the true and false labels output by the enhanced prompt learning model into the node features. Specifically, the node features are represented as X = {x1, x2, ..., xN}, where xi represents the feature vector of the i-th news node.
[0037] 2. Apply the high-order neighbor-aware diffusion equation to propagate the features of each node to its neighbor nodes layer by layer, and calculate the impact of neighbor nodes on the features of the current node. The diffusion equation is expressed as:
[0038]
[0039] Among them, xi(t) represents the characteristics of the i-th node at time t, α and β are diffusion coefficients, N(i) represents the set of neighbor nodes of the i-th node, Aij represents the elements in the adjacency matrix, and di represents the degree of the i-th node.
[0040] 3. Feature update: In the process of propagation at each layer, the initial features of the node and the feature update results from the neighboring nodes are combined to ensure the stability and accuracy of the feature update through a fidelity term. The feature update formula is:
[0041]
[0042] Among them, γ and η are update weights, and wij is the weight between node i and node j.
[0043] 4. Network convergence: Continue to propagate and update node features until the network features converge and the node features no longer change significantly. The criteria for feature convergence are:
[0044] ||x i (t+1)-x i (t)||<∈
[0045] Where ∈ is the convergence threshold. When the change amplitude of all node features is less than the threshold ∈, further feature propagation is stopped.
[0046] 5. Final prediction: Use the diffused features to make a final prediction of the authenticity of the news and output a more accurate false news detection result. The final prediction result is calculated using the following formula:
[0047] y i =softmax(Wx i +b)
[0048] Among them, yi is the predicted label of the i-th news node, and W and b are model parameters.
[0049] Preferably, in step 3 of the method execution process: in the process of applying the graph feature diffusion strategy, the graph feature diffusion strategy includes a high-order neighbor-aware diffusion equation, and its implementation process is as follows:
[0050] 1. The initialization and update of node features depend on the feature differences between the node and its high-order neighbors. Specifically, the initial node features are represented as X = {x1, x2, ..., xN}, where xi represents the feature vector of the i-th news node. The initial value of the node feature is based on the output of the enhanced prompt learning model.
[0051] 2. A dynamic weighting strategy is adopted to assign different weights to the features of neighbor nodes at different levels to ensure the balance of feature propagation. Specifically, at each time step t, the feature update formula of node i is:
[0052]
[0053] Among them, α is the fidelity weight of the initial feature, wij represents the dynamic weight between node i and node j, and di represents the degree of node i.
[0054] 3. During the feature update process, the fidelity term is calculated using the similarity between the node's initial features and its neighbor's features to ensure the accuracy of the feature update. Specifically, the calculation formula for the fidelity term is:
[0055]
[0056] 4. At the end of each propagation layer, check the change amplitude of the node feature. If the change amplitude is less than the preset threshold, it is considered that the feature has converged and further propagation is stopped. Specifically, the convergence judgment criteria are:
[0057] ||x i (t+1)-x i (t)||<∈
[0058] Where ∈ is the convergence threshold. When the change amplitude of all node features is less than the threshold ∈, further feature propagation is stopped.
[0059] The present invention has at least the following beneficial technical effects:
[0060] 1. Comprehensive context information capture: The enhanced prompt learning model is introduced, and the Mask Language Model (such as BERT) is used to train through pseudo-prompt fine-tuning to build a fixed prompt template, thereby improving the ability to capture text context information. Compared with traditional feature extraction methods, it can better handle complex syntactic structures and implicit semantics, and improve the accuracy of fake news detection;
[0061] 2. Efficient use of labeled data: In the process of enhanced prompt learning, the model is trained by combining labeled true and false news with unlabeled news collected from the Internet using adaptive learning rate and gradient truncation technology, which effectively solves the problems of scarce labeled data and unbalanced training samples. The model can generate high-confidence true and false label prediction results based on the input news content, and improve the ability to identify a few categories of false news;
[0062] 3. Enhanced model generalization ability: Construct a consistency network for authenticity propagation and use high-order neighbor-aware diffusion equations for feature propagation and update, so that the model has stronger generalization ability when facing new and diverse false news. The model no longer relies solely on the content of a single article, but makes a comprehensive judgment based on user behavior data and propagation path information, improving the stability of the detection effect;
[0063] 4. Efficient feature update and propagation: By combining the graph diffusion strategy, the dynamic weighting strategy and fidelity term calculation are adopted to ensure the stability and accuracy of the feature update process. Through the high-order neighbor-aware diffusion equation, the node features are propagated to the neighboring nodes layer by layer until the network features converge, which greatly improves the efficiency and effect of feature propagation. The formulated feature update and propagation steps ensure the efficient operation of the model on large-scale data;
[0064] 5. Fusion of global and local information: This paper makes full use of the global and local information of the text by combining the enhanced prompt learning model and the graph diffusion strategy, thus improving the comprehensive performance of fake news detection. When processing massive news data, the model can accurately extract and fuse multi-source information and provide more comprehensive detection results. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 Flowchart of a fake news detection method based on enhanced hint learning and graph diffusion strategy.
[0066] Figure 2 A schematic diagram of an embodiment of a fake news detection method based on enhanced prompt learning and graph diffusion strategy. DETAILED DESCRIPTION
[0067] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. It should be noted that the embodiment described below is only a part of the embodiment of the present invention, rather than an embodiment compatible with all application scenarios. With reference to the embodiments demonstrated by the present invention, all other embodiments obtained by ordinary researchers in this field without any creativity also belong to the scope of protection of the present invention.
[0068] The present invention provides a fake news detection method based on enhanced prompt learning and graph diffusion strategy, comprising the following steps:
[0069] First, refer to the attached Figure 1 As shown in Step 1: Preliminary classification of fake news based on enhanced prompt learning, the implementation process includes the following steps:
[0070] 1. Data preparation: Collect a large number of fake news texts to be detected and extract relevant user forwarding records. User forwarding records are used to subsequently build a truth-and-fake propagation consistency network.
[0071] 2. Enhanced prompt learning model training: First, the Mask Language Model (such as BERT) is used as the basic model, and a small number of labeled samples are used for pseudo-prompt fine-tuning training. The specific steps include: First, build a prompt template, such as "This is a [MASK] news: [news content]", and insert the news content into the template. Subsequently, the model is optimized by maximizing the prediction probability of the word in the [MASK] position. During the training process, adaptive learning rate and gradient truncation techniques are used to prevent overfitting and gradient explosion, and ensure stable convergence of the model. After training, the model can generate preliminary true and false label prediction results based on the input news content.
[0072] 3. With the help of the above-mentioned fine-tuned detection model, preliminarily classify the fake news to be detected and obtain the classification results. Specifically, all the fake news texts to be detected are input into the trained enhanced prompt learning model to generate a preliminary true or false label for each news.
[0073] As a specific implementation case of the present invention, refer to the attached Figure 2 In step 1, we collected a large amount of fake news to be detected and used the BERT-based pre-trained language model as the mask language model task Mask LanguageModel as the backbone network of the prediction model for enhanced prompt learning.
[0074] Among them, BERT (Bidirectional Encoder Representations from Transformers) is a deep learning model that performs well and outstandingly in various linguistic tasks in the field of natural language processing. BERT is a pre-training model proposed by Google AI, designed specifically for natural language processing tasks. It uses a bidirectional Transformer architecture to simultaneously consider the contextual information of a word, thereby better understanding the semantics and contextual relationships of words. BERT's pre-training includes a masked language model (MLM) and next sentence prediction (NSP), which enables the model to learn rich contextual information and sentence-level associations.
[0075] Subsequently, the pseudo-prompt fine-tuning training of the above-mentioned enhanced prompt learning prediction model is performed using a small amount of annotated samples of the collected false news to be detected. Specifically, based on the constructed prompt template: "This is a [MASK] news: [News content]", the "UFO news" is inserted into the prompt template, and the following prompt sentence is obtained: "This is a [MASK] news: A giant UFO was found somewhere, and scientists say that aliens may visit the earth." Then, the enhanced prompt learning prediction model is optimized by maximizing the prediction probability of the word in the [MASK] position. In this way, given any news to be detected, its authenticity can be preliminarily judged. For example, for the "UFO news", the detection model will classify the description of the news as a false label, and it may also be mistakenly classified as a true label. In this embodiment, when the "UFO news" is preliminarily classified, the probability distribution of the initial label is: xUFO(0) = [0.8, 0.2]. Although it can also correctly distinguish the authenticity, this preliminary classification method based on the enhanced prompt learning prediction model has low accuracy and confidence, and needs to be further optimized in subsequent steps.
[0076] For further information, see Attachment Figure 1 As shown in Step 2: Constructing a consistency network for authenticity propagation, the implementation process includes the following:
[0077] 1. Extract user forwarding records: This step is mainly responsible for collecting the elements (nodes and edges) of the consistency network construction, specifically extracting news forwarding data from user forwarding records. The specific steps include: from the social news forwarding context of the fake news to be detected, record the user ID and the corresponding news ID for each forwarding record to form a preliminary node set and edge set.
[0078] 2. Construct an undirected graph: First, use news as nodes and the connections between news forwarded by the same user as edges to form an undirected graph. Second, to ensure the simplicity and efficiency of the graph, only active users and hot news with forwarding frequencies higher than the set threshold are retained, and duplicate graph connections are deleted.
[0079] 3. Data storage: Integrate the filtered nodes and edges into a graph database such as Neo4j for storage and management, which facilitates the subsequent application of graph feature diffusion strategies and authenticity detection.
[0080] As a specific implementation case of the present invention, refer to the attached Figure 2 , for the rumor news "A giant UFO was found in a certain place, and scientists said aliens may visit the earth.", as shown in the schematic diagram, user A, user B, and user C forwarded the "UFO news". For example, user A also forwarded another news: "The weather in a certain place suddenly changed, and the Meteorological Bureau issued an early warning." Then a direct edge connection is formed between "UFO news" and "weather warning news". Then an undirected graph network is constructed, with all the forwarded news of the user group within the forwarding time of the "UFO news" as network nodes, and the connections between the news forwarded by the same user as edges, forming a truth-and-false propagation consistency network based on an undirected graph, retaining active users and hot news with forwarding frequencies higher than the set threshold, and deleting duplicate connections. Finally, the filtered nodes and edges are integrated into the Neo4j graph database for storage and management, as well as for real-time call of subsequent graph feature diffusion strategies.
[0081] For further information, see Attachment Figure 1 As shown in Step 3: Final classification of news using graph feature diffusion strategy, the implementation process is as follows:
[0082] 1. Feature initialization: Initialize the features of the news nodes after preliminary classification, including embedding the true and false labels output by the enhanced prompt learning model into the node features. Specifically, the node features are represented as X = {x1, x2, ..., xN}, where xi represents the feature vector of the i-th news node.
[0083] 2. Apply the high-order neighbor-aware diffusion equation to propagate the features of each node to its neighbor nodes layer by layer, and calculate the impact of neighbor nodes on the features of the current node. The diffusion equation is expressed as:
[0084]
[0085] Among them, xi(t) represents the characteristics of the i-th node at time t, α and β are diffusion coefficients, N(i) represents the set of neighbor nodes of the i-th node, Aij represents the elements in the adjacency matrix, and di represents the degree of the i-th node.
[0086] 3. Feature update: In the process of propagation at each layer, the initial features of the node and the feature update results from the neighboring nodes are combined to ensure the stability and accuracy of the feature update through a fidelity term. The feature update formula is:
[0087]
[0088] Among them, γ and η are update weights, and wij is the weight between node i and node j.
[0089] 4. Network convergence: Continue to propagate and update node features until the network features converge and the node features no longer change significantly. The criteria for feature convergence are:
[0090] ||x i (t+1)-x i (t)||<∈
[0091] Where ∈ is the convergence threshold. When the change amplitude of all node features is less than the threshold ∈, further feature propagation is stopped.
[0092] 1. Final prediction: Use the diffused features to make a final prediction of the authenticity of the news and output a more accurate false news detection result. The final prediction result is calculated using the following formula:
[0093] y i =softmax(Wx i +b)
[0094] Among them, yi is the predicted label of the i-th news node, and W and b are model parameters.
[0095] As a specific implementation case of the present invention, refer to the attached Figure 2 , after applying the graph feature diffusion strategy to update the propagation and node features multiple times (specifically at the tth moment), for the rumor news "A giant UFO was found somewhere, and scientists say aliens may visit the earth.", the initial feature of the corresponding news node "UFO News" is updated from xUFO(0)=[0.8,0.2] to xUFO(t)=[0.95,0.05], indicating that the probability of the "false" label increases to 0.95. Therefore, through network feature diffusion, the final authenticity prediction of the example news can be made and higher accuracy requirements can be met.
[0096] Through the above steps, the fake news detection method based on enhanced prompt learning and graph diffusion strategy is implemented, which can significantly improve the accuracy and robustness of fake news detection.
[0097] It is emphasized again that the above embodiments are only a part of the embodiments of the present invention, and are not embodiments compatible with all application scenarios. With reference to the embodiments demonstrated by the present invention, all other embodiments obtained by ordinary researchers in the field without any creativity also fall within the protection scope of the present invention.
Claims
1. A fake news detection method based on enhanced prompt learning and graph diffusion strategy, characterized in that: The method inputs a fake news text to be detected and a user news forwarding record to construct a truth propagation consistency network, and outputs a truth or falsehood label of the fake news text to be detected, including the following steps: Step 1: Preliminary classification of fake news based on enhanced prompt learning: A large number of fake news texts to be detected are used as input, and an enhanced prompt learning model is trained with a small number of labeled samples, including: training based on the Mask Language Model through pseudo-prompt fine-tuning; during the training process, the news content is inserted into the prompt template, and the model is fine-tuned so that it can make preliminary true and false label predictions for all fake news texts to be detected; Step 2: Construct a consistency network for authenticity propagation: Based on user forwarding records, construct a consistency network for authenticity propagation; this network uses a large number of news as nodes and the connections between news sharing the same social user as edges to form an undirected graph; including: extracting news forwarding data from user forwarding records, using news as nodes and the connections between news forwarded by the same user as edges to form an undirected graph; retaining active users and hot news with forwarding frequencies higher than a set threshold, and deleting duplicate graph connections; finally, using a graph database such as Neo4j to store and manage network data; Step 3. Final classification of news using graph feature diffusion strategy: On the constructed authenticity propagation consistency network, apply the high-order neighbor-aware diffusion equation to diffuse the features of adjacent network news nodes to the current node until the network becomes stable; including: initializing the features of the news nodes after preliminary classification, propagating and updating the node features layer by layer through the high-order neighbor-aware diffusion equation until the network converges; in the diffusion process, combining the initial node features and neighbor features, and ensuring the stability and accuracy of feature updates through a fidelity term; finally integrating, updating and fusing the authenticity features of the nodes, and outputting the final false news authenticity prediction results.
2. According to claim 1, a fake news detection method based on enhanced prompt learning and graph diffusion strategy is characterized in that: In step 1: preliminary classification of fake news based on enhanced prompt learning, the enhanced prompt learning model is based on the Mask Language Model and is trained by pseudo-prompt fine-tuning, including: taking the news text as input, using the encoder of the BERT model to generate the contextual representation of each word, and predicting the word at the [MASK] position through the probability distribution of the model output; given the input text S = {si}i = 1~N, where si represents the i-th word, construct a prompt template containing the [MASK] tag, T = "This is a [MASK] news: " + S [news content]; during the training process, insert the news content into the prompt template, and fine-tune the BERT model, and optimize it by maximizing the probability of the word at the [MASK] position so that it can recognize and process input in this format.
3. According to claim 2, a fake news detection method based on enhanced prompt learning and graph diffusion strategy is characterized in that: In step 1, the news text is used as input, the encoder of the BERT model is used to generate the contextual representation of each word, and the word at the [MASK] position is predicted through the probability distribution output by the model; the model is optimized by maximizing the probability of the correct word at the [MASK] position, thereby improving the accuracy of false news recognition; the specific formula is as follows: Among them, yi represents the true label and pi represents the probability of the i-th word predicted by the BERT model at the [MASK] position.
4. According to claim 3, a fake news detection method based on enhanced prompt learning and graph diffusion strategy is characterized in that: In step one, during the training process, adaptive learning rate and gradient truncation techniques are used to prevent overfitting and gradient explosion and ensure stable convergence of the model. After the training, the model can generate high-confidence true or false label prediction results based on the input news content.
5. According to claim 1, a fake news detection method based on enhanced prompt learning and graph diffusion strategy is characterized in that: In step 2: constructing a consistency network for authenticity propagation, the construction of the consistency network for authenticity propagation includes the following steps: 201) extracting news forwarding data from user forwarding records, taking news as nodes, and forming a preliminary node set; specifically, extracting all news forwarding data from user forwarding records, and for each forwarding record, recording the user ID and the corresponding news ID, and forming a preliminary node set and edges; 202) determining the edge of each node, that is, the connection between the news forwarded by the same user, to form an edge set of an undirected graph; 203) filtering users according to forwarding frequency, and retaining active users whose forwarding frequency is higher than a set threshold, including: counting the number of forwarding times of each user, retaining active users whose forwarding frequency is higher than the set threshold, retaining the forwarding records of these users in the data set, and deleting the forwarding records of other users; 204) filtering the news according to the forwarding frequency, retaining the hot news, and removing the news with a forwarding frequency lower than a set threshold, including: counting the number of times each news is forwarded, retaining the hot news with a forwarding frequency higher than the set threshold, retaining the forwarding records of these news in the data set, and deleting the forwarding records of other news; 205) deleting duplicate connections in the graph, including: traversing the edge set, if there are multiple edges between a pair of nodes, retaining one edge and deleting other duplicate edges; 206) Integrate the filtered nodes and edges into the Neo4j graph database for storage and management.
6. According to claim 1, a fake news detection method based on enhanced prompt learning and graph diffusion strategy is characterized in that: In step 3: during the application of the graph feature diffusion strategy, the graph feature diffusion strategy includes the following steps: 301) Feature initialization: Initialize the features of the news nodes after preliminary classification, including embedding the true and false labels output by the enhanced prompt learning model into the node features; specifically, the node features are represented as X = {x1, x2, ..., xN}, where xi represents the feature vector of the i-th news node; 302) Apply the high-order neighbor-aware diffusion equation to propagate the features of each node to its neighbor nodes layer by layer, and calculate the impact of neighbor nodes on the features of the current node; the diffusion equation is expressed as: Among them, xi(t) represents the characteristics of the i-th node at time t, α and β are diffusion coefficients, N(i) represents the set of neighbor nodes of the i-th node, Aij represents the element di in the adjacency matrix, and represents the degree of the i-th node; 303) Feature update: In the process of propagation at each layer, the initial features of the node and the feature update results from the neighboring nodes are combined to ensure the stability and accuracy of the feature update through a fidelity term; the feature update formula is: Among them, γ and η are update weights, wij is the weight between node i and node j; 304) Network convergence: Continue to propagate and update node features until the network features converge and the node features no longer change significantly; the criterion for feature convergence is: ||x i (t+1)-x i (t)||<∈ Where, ∈ is the convergence threshold; when the change amplitude of all node features is less than the threshold ∈, further feature propagation is stopped; 305) Final prediction: Use the diffused features to make a final prediction of the authenticity of the news and output more accurate fake news detection results.
7. A false news detection method based on enhanced prompt learning and graph diffusion strategy according to claim 6, characterized in that: The prediction results are calculated using the following formula: Among them, yi is the predicted label of the i-th news node, and W and b are model parameters.
8. The method for detecting fake news based on enhanced prompt learning and graph diffusion strategy according to claim 6, characterized in that: The implementation process of the high-order neighbor-aware diffusion equation is as follows: The initialization and update of node features depend on the feature differences between the node and its high-order neighbors; specifically, the initial node features are represented as X = {x1, x2, ..., xN}, where xi represents the feature vector of the i-th news node; the initial value of the node feature is based on the output of the enhanced prompt learning model; A dynamic weighting strategy is adopted to assign different weights to the features of neighbor nodes at different levels to ensure the balance of feature propagation. Specifically, at each time step t, the feature update formula of node i is: Among them, α is the fidelity weight of the initial feature, wij represents the dynamic weight between node i and node j, and di represents the degree of node i; During the feature update process, the fidelity term is calculated using the similarity between the initial feature of the node and the neighbor feature to ensure the accuracy of the feature update; specifically, the calculation formula of the fidelity term is: At each time step t, the fidelity term is used to adjust the weights in the node feature update to ensure the stability and accuracy of the feature update; At the end of each propagation layer, the change amplitude of the node features is checked. If the change amplitude is less than the preset threshold, the features are considered to have converged and further propagation is stopped.
Citation Information
Patent Citations
False news detection method and system based on prompt learning and similar perception fusion
CN116226384A
Label propagation false news detection method based on cross-modal tweet graph
CN116701740A
