A social media rumor detection method based on dynamic immune network theory

By combining the dynamic immune network theory with the BERTweet model, the instantaneous change rate of tweets and users is calculated, and the influence vector of the message cascade is obtained. This solves the problem of ignoring potential users and position relationships in the existing technology, and significantly improves the efficiency of social media. Rumor detection accuracy.

CN118395308BActive Publication Date: 2024-10-01INST OF INT RELATIONS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410829961.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-01
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing social media rumor detection methods lack consideration of the modeling of potential users and the potential influence relationships between tweets from different positions, resulting in poor detection results.

Method used

Using a method based on dynamic immune network theory, the tweet representation vector is obtained through the pre-trained model BERTweet, the position probability distribution is calculated, and the influence vector of each position is calculated based on the instantaneous change rate of users and comment tweets, and the message cascade is obtained. Represents the vector and is finally input into the feedforward neural network for rumor detection.

Benefits of technology

Effectively modeling the relationship between potential users and positions in social media improves the accuracy and effectiveness of rumor detection, especially in message cascades with longer propagation chains.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395308B_ABST
    Figure CN118395308B_ABST
Patent Text Reader

Abstract

The invention discloses a social media rumor detection method based on dynamic immune network theory, comprising: inputting a message cascade with a source tweet and several comment tweets to obtain a representation vector of each tweet, and then obtaining a position distribution probability vector of each tweet through the #imgabs0# function; calculating the instantaneous change rate of the number of users of each position and the instantaneous change rate of the number of comment tweets of each position at the time node of each comment tweet release based on the dynamic immune network theory, and calculating the message influence vector of each comment tweet; multiplying the representation vector of each comment tweet by its own message influence value and adding it to the representation vector of the source tweet to obtain the representation vector of the message cascade; using the #imgabs1# function to calculate the message authenticity probability distribution vector, thereby obtaining the rumor detection result. The invention can solve the problems of insufficient consideration of potential users during modeling, ignoring the potential influence relationship between tweets of different positions and users, and realize the effective detection of social media rumors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of natural language processing, and specifically relates to a social media rumor detection method based on dynamic immune network theory, a computer device, a computer-readable storage medium and a computer program product. Background Art

[0002] There are roughly the following basic approaches to social media rumor detection tasks: knowledge-based rumor detection methods, text feature-based rumor detection methods, and propagation feature-based rumor detection methods.

[0003] The task goal of rumor detection is to obtain the authenticity of the source message. The most direct method is to judge its authenticity through the text content of the source message or based on existing knowledge. Knowledge-based rumor detection methods usually use the fact-checking process, which aims to extract knowledge from the message to be verified and compare it with known facts to evaluate the authenticity of the message. Rumor detection methods based on text features can be divided into two methods: those based on general text features and those based on latent text features, which represent the two mainstream methods in the machine learning era and the deep learning era respectively. The former mainly focuses on the statistical information of various levels in the text, such as lexical and syntactic information, while the latter uses deep neural networks to encode the text to obtain latent text features, and then judges the authenticity of the message through a classifier. However, these two methods have certain limitations: first, the existing rumor detection methods based on knowledge bases generally cannot update knowledge in real time, so they cannot judge new knowledge that exists in the source message but does not exist in the knowledge base; second, messages in social media generally have strict restrictions on the number of words in the content, and the feature information obtained by the detection methods based on text features is often inaccurate simply by relying on the text content of a few sentences.

[0004] Therefore, there is another part of the method for detecting the authenticity of the source message from the propagation structure formed in the process of message propagation in social media. For example, as a prior art, CN112199608B discloses a social media rumor detection method based on network information propagation graph modeling, and CN112035669B discloses a social media multimodal rumor detection method based on propagation heterogeneous graph modeling. In the era of machine learning, scholars usually use certain specific indicators to capture the propagation characteristics of messages, such as the total number of nodes in the message cascade, the cascade depth, the cascade width, and the average distance between all pairs of nodes in the cascade. However, due to its strong engineering, it has gradually been replaced by methods based on deep learning. The recursiveness of the RNN network (Recurrent Neural Network) can take into account the time dependency between data when processing ordered data, so that it can learn the propagation structure information implied by the message in the propagation process. In recent years, many methods have been produced to process the propagation structure of message cascades through graph neural network methods, and to mine propagation characteristics using the excellent ability of graph neural networks to process non-Euclidean space data.

[0005] However, the above-mentioned methods based on propagation characteristics still have some limitations: First, the existing models and methods lack modeling of potential users in social media. They ignore the users who have read the message but have not commented in the message cascade under the influence of the overall public opinion environment. Second, the potential influence relationship between tweets with different positions and between users is not fully considered. In message cascades with long propagation chains, most existing methods only consider the interaction between directly connected tweets, but do not consider the direct interaction between indirectly connected tweets and the influence of the public opinion environment of the entire message cascade on a certain tweet. Summary of the invention

[0006] The purpose of the present invention is to provide a social media rumor detection method, computer equipment, computer-readable storage medium and computer program product based on dynamic immune network theory, which can solve the problems of insufficient consideration of potential users during modeling, ignoring tweets with different positions and potential influence relationships between users, and realize effective detection of social media rumors.

[0007] One aspect of the present invention provides a social media rumor detection method based on dynamic immune network theory, comprising:

[0008] Step S1: Input a message cascade with a source tweet and multiple comment tweets, use the pre-trained model BERTweet to obtain the representation vector of each tweet, input the representation vector of each tweet into the feedforward neural network, and use The function obtains the stance probability distribution vector of each tweet;

[0009] Step S2, based on the stance probability distribution vector of each tweet, calculate the number of users and the number of comment tweets of each stance in the message cascade at the time node when each comment tweet is released; calculate the instantaneous change rate of the number of users of each stance and the instantaneous change rate of the number of comment tweets of each stance at the time node when each comment tweet is released based on the dynamic immune network theory; perform weighted addition on the instantaneous change rate of the number of users and the instantaneous change rate of the number of comment tweets to obtain the influence vector of each comment tweet of each stance; perform vector dot product operation on the influence vector of each comment tweet of each stance and the respective stance probability distribution vector to obtain the final message influence value of each comment tweet in the message cascade; multiply the representation vector of each comment tweet by the respective final message influence value and add it to the representation vector of the source tweet to obtain the representation vector of the message cascade;

[0010] Step S3, input the calculated message cascade representation vector into the feedforward neural network, using The function calculates the probability distribution vector of the message authenticity, thereby obtaining the rumor detection result.

[0011] Preferably, in step S3, the message authenticity probability distribution vector is calculated as follows:

[0012]

[0013] in, is the message authenticity probability distribution vector, is the representation vector of the message concatenation, is the weight corresponding to the probability distribution of truthfulness, is the bias corresponding to the truth probability distribution,

[0014]

[0015] in, is the representation vector of the source tweet, It is The representation vector of the comment tweets, , is the number of comment tweets in the message cascade, It is The final message influence value of the comment tweets in the message cascade,

[0016]

[0017] It is The influence vector of the comment tweets, It is Comments on tweets with stance The probability distribution vector of , is the number of positions;

[0018]

[0019] It is in The number of comment tweets from different positions at the time when the comment tweets were posted. It is in The number of users holding different positions at the time when the comment tweets were posted. is the instantaneous change rate matrix of the number of comment tweets for each position Middle The vector of rows, is the instantaneous change rate matrix of the number of users in each position Middle The vector of rows, and Assigned to and The coefficient of .

[0020] Preferably, the instantaneous rate of change of the number of comment tweets is calculated as follows:

[0021]

[0022] in, Indicated in The time point of the comment tweets published is The number of tweets with comments, Indicated in The time point of the comment tweet was The instantaneous rate of change of the number of comment tweets, is the number of types of positions in the social media network, , is the first scenario value, which depicts the scenario where two comment tweets lose their reference value due to conflicting opinions. Indicated in The time point when the comment tweets were published was the social media network's position on The sensitive value of the comment tweet, is the second scenario value, which depicts the scenario where the comment tweet dies naturally because no user notices it. The third scenario value describes the scenario where users actively post comments. ( ) is a maturity function. The maturity rate is calculated to indicate the probability that a user who has viewed the message will post a comment. Indicated in The time point of the comment tweet was The number of users.

[0023] Preferably, the following calculation is performed The time point when the comment tweets were published was the social media network's position on Sensitive value of comment tweets :

[0024]

[0025] in, Expressing the position The comments on the tweets are The affinity effect value of the comment tweet, , Indicated in The time point of the comment tweet was The number of tweets with comments,

[0026] Calculation using Hidden Markov Model :

[0027]

[0028] in, and Respectively refer to Comments and tweets The stance of the comment tweets.

[0029] Preferably, the instantaneous rate of change of the number of users is calculated as follows:

[0030]

[0031] in, Indicated in The time point of the comment tweet was The number of users, The fourth scenario value describes the scenario where the user no longer participates in the current discussion. is the fifth scenario value, which describes the scenario where a new user participates in a topic due to the influence of other users. ( ) is a proliferation function. The proliferation rate is calculated to indicate the probability of attracting more people to browse the message. It is the sixth scenario value, which describes the scenario where new users spontaneously participate in the current discussion.

[0032] Preferably, the number of users and the number of comment tweets are calculated as follows:

[0033]

[0034]

[0035] in It means in The vector of the number of tweets holding different positions at the time when the comment tweets were published. It means in The vector of the number of users holding different positions at the time when the comment tweet was published. It means in The vector of the number of tweets holding different positions at the time when the comment tweets were published. It means in The vector of the number of users holding different positions at the time when the comment tweet was published. , Indicates The predicted stance probability distribution vector of the comment tweets, Represents a function that sets the maximum value of a vector to 1 and the rest of the values ​​to 0.

[0036] Preferably, in step S1, the representation vector of each tweet is obtained using the pre-trained model BERTweet:

[0037]

[0038]

[0039] in, is the text content of the source tweet, It is The text content of the comment tweets,

[0040] use The function obtains the stance probability distribution vector of each tweet as:

[0041] ,

[0042] in, is the weight corresponding to the probability distribution of positions, is the bias corresponding to the probability distribution of stances.

[0043] Another aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above method.

[0044] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.

[0045] Another aspect of the present invention provides a computer program product, comprising a computer program, which implements the steps of the above method when executed by a processor.

[0046] The social media rumor detection method based on dynamic immune network theory, computer equipment, computer-readable storage medium and computer program product according to the above aspects of the present invention can solve the problems of insufficient consideration of potential users during modeling, ignoring tweets with different positions and potential influence relationships between users, and realize effective detection of social media rumors. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings used in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work:

[0048] Figure 1 is a flow chart of a social media rumor detection method based on dynamic immune network theory according to an embodiment of the present invention;

[0049] Figure 2 yes Figure 1 Flow chart of step S2 in FIG.

[0050] Figure 3 4 is a structural diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] The embodiment of the present invention provides a social media rumor detection method based on dynamic immune network theory. In the embodiment of the present invention, the inventor of the present invention is inspired by the dynamic immune network theory, and constructs a social immune network model to detect rumors by analogy with the spread of rumors on social media and the immune response of the body when antigens invade the body. The social immune network model of the present invention compares the social media network to an immune network, source tweets to antigens, users to immune cells, and comment tweets to antibodies. The instantaneous change rate of the number of immune cells (users) and antibodies (comment tweets) at the time node (release time) of the comment tweet is used to characterize the message influence of the tweet. In this process, the interaction relationship between users with different positions and between comment tweets is explored, so as to explore the potential influence relationship between them, model the overall public opinion environment of the message cascade, and finally achieve the modeling of the global propagation information and interaction information of the social media network, thereby improving the social media rumor detection effect.

[0053] like Figure 1 As shown, the social media rumor detection method based on dynamic immune network theory of an embodiment of the present invention includes steps S1 to S3.

[0054] In step S1, a message cascade with a source tweet and multiple comment tweets is input, and the representation vector of each tweet is obtained using the pre-trained model. The representation vector of each tweet is input into the feedforward neural network and the representation vector of each tweet is input into the feedforward neural network. The function obtains the stance probability distribution vector of each tweet.

[0055] Specifically, in this step, a message cascade is first input, and the pre-trained model BERTweet is used to encode the tweet text content in sequence according to the tweet release time, and the output of the pre-trained model BERTweet is used as the representation vector of each tweet.

[0056]

[0057]

[0058] One of the message cascades contains a source tweet Comments tweets, is the text content of the source tweet, It is The text content of the comment tweets, , is the representation vector of the source tweet, It is The representation vectors of the comment tweets are then input into a simple feed-forward neural network (FFN) and used The function obtains the probability distribution vector of each position of each tweet:

[0059]

[0060] Based on this, the positions are classified into four possible positions: Null, Amplify, Clarify, and Deny. It's a tweet Position The probability distribution vector of is the weight corresponding to the probability distribution of the stance, is the deviation corresponding to the probability distribution of the stance. During training, the cross entropy function can be used as the loss function for stance classification.

[0061] In step S2, a social immune network model is constructed based on the dynamic immune network theory, and the representation vector of each tweet obtained in step S1 and its position distribution probability vector are input into the social immune network model to obtain the instantaneous change rate of the number of users and the number of tweets at the time node when the comment tweet is published, and then the representation vector of the message cascade is obtained.

[0062] In order to model the potential influence relationship between tweets, so as to obtain the message influence of each tweet, the method of the embodiment of the present invention constructs a social immune network model based on the dynamic immune network theory. According to the dynamic immune network theory, when antigens such as viruses invade an organism, the organism is under the action of the immune system, and various antibody molecules gradually become active under the control of the immune system, and their number and concentration continue to increase. Antibodies inactivate antigenic substances by complexing with antigens, and after achieving the immune effect of the body, the activity level of antibodies also decreases. In fact, the change in the number of antibodies can effectively describe the process of antigen invasion and the trigger point of immune response, which is similar to the overall reaction process of rumors posted on social media networks. On social media, users usually have different reactions after browsing rumor messages, such as questioning, denying, clarifying or agreeing, which may trigger large-scale discussions at certain important nodes, thereby forming a "viral" propagation structure unique to rumor messages that is different from general messages in social media networks. In other words, the change in the number of users or tweets with different positions in a message cascade over time can reveal the authenticity of the source tweet to a certain extent, just as the changes in physiological molecules in the body reveal the toxicity of antigens.

[0063] Therefore, the method of the embodiment of the present invention refers to the dynamic immune network theory, maps the immune network to the social media network, and constructs a social immune network model to model the dynamic changes of users with comments and opinions with various positions in the social media network over time, including the transition probability between different positions and the influence of the tweets themselves. In addition, six basic scenarios are simulated and learned to characterize the changes in the spread of rumors on social media networks, using the following to Indicates the corresponding value.

[0064] Specifically, Figure 2 As shown, step S2 further includes steps S21 to S25.

[0065] In step S21, based on the predicted stance probability distribution of each tweet obtained in step S1, the number of users and tweets of each stance in the message cascade at the time node of each tweet is calculated to obtain the user quantity matrix and the number of tweets matrix , ,in is equal to the number of comment tweets in the message cascade, is the number of positions, calculated as follows:

[0066]

[0067]

[0068] in It means in The vector of the number of tweets holding different positions at the time when the comment tweets were published. It means in The vector of the number of users holding different positions at the time when the comment tweet was published. It means in The vector of the number of tweets holding different positions at the time when the comment tweets were published. It means in The vector of the number of users holding different positions at the time when the comment tweet was published. . Elements in Indicated in The time point of the comment tweets published is The number of tweets with comments, Elements in Indicated in The time point of the comment tweets published is The number of users, . It is The predicted stance probability distribution vector of the comment tweets. Function will set the maximum value of the vector to 1 and the rest to 0.

[0069] In step S22, based on the dynamic immune network theory, the instantaneous change rate of the number of users of each stance and the instantaneous change rate of the number of comment tweets of each stance at the time point when each comment tweet is released are calculated.

[0070] Specifically, at each time point when the comment tweet is published, the social immune network model formula is used to calculate the The time point when the comment tweets were published was the neutral position of the social media network. The instantaneous rate of change of the number of comment tweets The instantaneous rate of change of the number of users , thus obtaining the instantaneous change rate matrix of the comment tweets of the message cascade And the instantaneous change rate matrix of the number of users ,in , .

[0071] First, the social immune network model formula is used to calculate the The time point of the comment tweets published is The instantaneous rate of change of the number of comment tweets :

[0072]

[0073] Indicated in The time point of the comment tweets published is The number of tweets with comments, is the number of comment tweets in the message cascade, is the number of types of positions in the social media network, , is the first scenario value, which describes the scenario where two comment tweets both lose their reference value due to conflicting opinions. The current quarrel makes it difficult for other users to obtain valuable information from them. Indicated in The time point when the comment tweets were published was the social media network's position on The sensitive value of the comment tweet, is the second scenario value, which describes the scenario where the comment tweets die naturally because no other users notice them. That is, some comments gradually lose popularity and influence over time. is the third scenario value, which describes the scenario where users actively post comments (including forwarding), where to These are all trainable parameters. ( ) is a maturity function, and the maturity rate is calculated, that is, the probability that a user who has browsed the message will post a comment, indicating the position is The user's willingness to comment or forward in the current cascade is determined by Function and constant function.

[0074] In this process, the affinity matrix The sensitivity matrix is ​​calculated by the number of comment tweets at each time node and each position , The calculation method is as follows:

[0075]

[0076] in Expressing the position The comments on the tweets are The affinity effect value of the comment tweet, , Indicated in The time point of the comment tweets published is The number of tweets with comments, is the number of types of positions in a social media network.

[0077] Among them, the affinity matrix is an asymmetric matrix ,Depend on constitute, is the number of types of positions in the social media network. The elements in the affinity matrix Expressing the position The tweets of The affinity effect value of tweets describes the potential influence of tweets with different positions on both parties in the message cascade.

[0078] Calculation using Hidden Markov Model , using the stance The trigger position of the tweet is The transition probability of the reply tweet is used to express the position The tweets of The affinity effect value of the tweet, that is, the affinity matrix M is a transition probability matrix.

[0079]

[0080] in and Refers to tweets and tweets Since different social media platforms have different discussion atmospheres, tweets with different positions may have different potential influence relationships on different social media platforms, so each social media platform actually has its own affinity matrix. .

[0081] Then, the social immune network model formula is used to calculate the The time point when the comment tweets were published was the neutral position of the social media network. The instantaneous rate of change of the number of users :

[0082]

[0083] Indicated in The time point of the comment tweets published is The current formula also has three items, which respectively describe three scenarios related to the number of users. It is the fourth scenario value, which describes the scenario where the user no longer participates in the current discussion. is the fifth scenario value, which describes the scenario where a new user participates in a topic due to the influence of other users. ( ) is a proliferation function, which calculates the proliferation rate, that is, the probability of attracting more people to browse the message, indicating the degree to which the current discussion attracts new participants. The sixth scenario value describes the scenario where new users spontaneously participate in the current discussion, that is, the joining of users who have not formed an association relationship with other users in the social media network. to These are all trainable parameters.

[0084] Sensitivity Matrix The matrix elements of Indicates that the current social immune network is in The comments were posted at the time of The sensitivity value of the comment tweet. In the above social immune network formula Item and In the item, Participate in mature functions respectively and the proliferation function The operation is calculated to get The maturity rate and proliferation rate corresponding to the value, that is, the probability that users who have browsed the message will post comments and the probability of attracting more people to browse the message.

[0085] In step S23, the instantaneous change rate of the number of users and the instantaneous change rate of the number of comment tweets are weightedly added to obtain the influence vector of each comment tweet of each standpoint.

[0086] The instantaneous rate of change in the number of users holding a specific stance and the number of comment tweets represents the intensity of change in the discussion environment of the social immunity network at that time, among which users and comment tweets that are believed to be able to strongly change the social media network environment have greater influence. They are the instantaneous change rate matrices of the number of comment tweets And the instantaneous change rate matrix of the number of users Middle A vector of rows, representing the first The time point when the comment tweet was published contains the instantaneous change rate of all positions. Therefore, the model will have coefficients and Assigned to and , and then add the two together to obtain the message influence of each comment tweet containing each implicit position. The message influence vector of the comment tweets The calculation formula is as follows:

[0087]

[0088] In step S24, a vector dot product operation is performed on the influence vector of each comment tweet of each stance and the respective stance probability distribution vector to obtain the final message influence value of each comment tweet in the message cascade.

[0089] Specifically, take the influence vector of each comment tweet and their respective position distribution probability prediction vectors Perform vector dot product operations to obtain the final message influence value of each comment tweet in the entire message cascade , , is the number of comment tweets in the message cascade, symbol A function representing the Hadamard product.

[0090]

[0091] In step S25, the representation vectors of each comment tweet are multiplied by their respective final message influence values, and then added to the representation vector of the source tweet to obtain the vector representation of the message cascade.

[0092]

[0093] in is the representation vector of the source tweet, is the representation vector of the comment tweet, is the representation vector of the message concatenation, is the number of comment tweets in the message cascade.

[0094] In step S3, the calculated cascade representation vector Input into a feedforward neural network and then use The function calculates the probability vector of the authenticity distribution of the message, thereby obtaining the final result of rumor detection.

[0095]

[0096] in, is the message authenticity probability distribution vector, is the concatenated representation vector, is the weight corresponding to the probability distribution of truthfulness, is the bias corresponding to the true probability distribution. In training, the cross entropy function is also used as the loss function.

[0097] A data example is used here to further illustrate the social media rumor detection method of an embodiment of the present invention.

[0098] Raw input data: Data is processed in units of message cascades. When processing each message cascade, data is processed in units of tweets.

[0099] For example, a cascade data includes the following items:

[0100] event: event name; cid: cascade id; mid: current tweet message id; pid: parent node id;

[0101] time: absolute time of release; date: specific time of release; content: text content;

[0102] verify: rumor cascade label (0-false / 1-true / 2-unverified);

[0103] trigger: The current tweet’s stance label (0-null / 1-amplify / 2-deny / 3-clarify).

[0104] In step S1, BERTweet is used to process the raw input data, with the input being tweets, and the output being a 768-dimensional vector. Classify the output results and obtain the probability distribution vector of the stance of each comment tweet.

[0105] In step S2,

[0106] S21: Calculate the user number matrix and tweet number matrix, the matrix size is , is the number of tweets in the current cascade, is the number of possible positions, which is 4. The position value is represented by the trigger in the data, which may be 0-null / 1-amplify / 2-deny / 3-clarify;

[0107] S22: Calculate the instantaneous change rate of the number of users with different positions and the number of comment tweets at the current moment;

[0108] S23: Calculate the influence vector of each comment tweet;

[0109] S24: Perform vector dot product operation on the influence vector of each comment tweet and their respective stance probability distribution vectors to obtain the final message influence value of each comment tweet in the entire message cascade;

[0110] S25: The final message influence value is used as the weight assigned to its own representation vector to obtain the weighted representation vector of each comment tweet in the cascade, and then the message representation vector of the rumor source text is added to the weighted representation vector of each comment tweet in the cascade to obtain the vector representation of the message cascade.

[0111] In step S3, the vector representation of the message cascade is input into the classification model to obtain the prediction result, which may be 0-false / 1-true / 2-unverified. The result is compared with the verified value in the data to calculate the prediction effect.

[0112] The results show that the social media rumor detection method of the above embodiment of the present invention, by cleverly combining with the dynamic immune network theory, better solves the problems of insufficient consideration of potential users during modeling, ignoring tweets with different positions and potential influence relationships between users, and the detection effect in the social media rumor detection task is significantly better than the existing method, and the effect is significant in the early detection of rumors.

[0113] An embodiment of the present invention further provides a computer device, which may be a server, and its internal structure diagram may be as shown in FIG. Figure 3As shown. The computer device includes a processor, a memory and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store operating parameter data of each framework. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps of the political value classification method of the embodiment of the present invention are implemented.

[0114] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0115] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the political value classification method of the embodiment of the present invention are implemented.

[0116] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the political value classification method of the embodiment of the present invention.

[0117] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.

Claims

1. A social media rumor detection method based on dynamic immune network theory, characterized in that: include: Step S1: Input a message cascade with a source tweet and multiple comment tweets, use the pre-trained model BERTweet to obtain the representation vector of each tweet, input the representation vector of each tweet into the feedforward neural network, and use The function obtains the stance probability distribution vector of each tweet; Step S2, based on the stance probability distribution vector of each tweet, calculate the number of users and the number of comment tweets of each stance in the message cascade at the time node when each comment tweet is released; calculate the instantaneous change rate of the number of users of each stance and the instantaneous change rate of the number of comment tweets of each stance at the time node when each comment tweet is released based on the dynamic immune network theory; perform weighted addition on the instantaneous change rate of the number of users and the instantaneous change rate of the number of comment tweets to obtain the influence vector of each comment tweet of each stance; perform vector dot product operation on the influence vector of each comment tweet of each stance and the respective stance probability distribution vector to obtain the final message influence value of each comment tweet in the message cascade; Multiply the representation vector of each comment tweet by its final message influence value and add it to the representation vector of the source tweet to get the representation vector of the message concatenation; Step S3, input the calculated message cascade representation vector into the feedforward neural network, using The function calculates the probability distribution vector of the message authenticity, thereby obtaining the rumor detection result. The instantaneous rate of change of the number of comment tweets is calculated as follows: in, Indicated in The time point of the comment tweets published is The number of tweets with comments, Indicated in The time point of the comment tweets published is The instantaneous rate of change of the number of comment tweets, is the number of types of positions in the social media network, , is the first scenario value, which depicts the scenario where two comment tweets lose their reference value due to conflicting opinions. Indicated in The time point when the comment tweets were published was the social media network's position on The sensitive value of the comment tweet, is the second scenario value, which depicts the scenario where the comment tweet dies naturally because no user notices it. The third scenario value describes the scenario where users actively post comments. ( ) is a maturity function. The maturity rate is calculated to indicate the probability that a user who has viewed the message will post a comment. Indicated in The time point of the comment tweets published is The number of users; The instantaneous rate of change of the number of users is calculated as follows: in, Indicated in The time point of the comment tweets published is The number of users, Indicated in The time point of the comment tweets published is The instantaneous rate of change of the number of users, The fourth scenario value describes the scenario where the user no longer participates in the current discussion. is the fifth scenario value, which describes the scenario where a new user participates in a topic due to the influence of other users. ( ) is a proliferation function. The proliferation rate is calculated to indicate the probability of attracting more people to browse the message. It is the sixth scenario value, which describes the scenario where new users spontaneously participate in the current discussion.

2. The method according to claim 1, characterized in that In step S3, the message authenticity probability distribution vector is calculated as follows: in, is the message authenticity probability distribution vector, is the representation vector of the message concatenation, is the weight corresponding to the probability distribution of truthfulness, is the bias corresponding to the truth probability distribution, in, is the representation vector of the source tweet, It is The representation vector of the comment tweets, , is the number of comment tweets in the message cascade, It is The final message influence value of the comment tweets in the message cascade, It is The influence vector of the comment tweets, It is Comments on tweets with stance The probability distribution vector of , is the number of positions; It is in The number of comment tweets from different positions at the time when the comment tweets were posted. It is in The number of users holding different positions at the time when the comment tweets were posted. is the instantaneous change rate matrix of the number of comment tweets for each position Middle The vector of rows, is the instantaneous change rate matrix of the number of users in each position Middle The vector of rows, and Assigned to and The coefficient of .

3. The method according to claim 2, characterized in that The following calculation is The time point when the comment tweets were published was the social media network's position on Sensitive value of comment tweets : in, Expressing the position The comments on the tweets are The affinity effect value of the comment tweet, , Indicated in The time point of the comment tweets published is The number of tweets with comments, Calculation using Hidden Markov Model : in, and Respectively refer to Comments and tweets The stance of the comment tweets.

4. The method according to claim 3, characterized in that The number of users and number of tweets commented on are calculated as follows: in It means in The vector of the number of tweets holding different positions at the time when the comment tweets were published. It means in The vector of the number of users holding different positions at the time when the comment tweet was published. It means in The vector of the number of tweets holding different positions at the time when the comment tweets were published. It means in The vector of the number of users holding different positions at the time when the comment tweet was published. , Indicates The predicted stance probability distribution vector of the comment tweets, Represents a function that sets the maximum value of a vector to 1 and the rest of the values ​​to 0.

5. The method according to claim 4, characterized in that In step S1, the pre-trained model BERTweet is used to obtain the representation vector of each tweet: in, is the text content of the source tweet, It is The text content of the comment tweets, use The function obtains the stance probability distribution vector of each tweet as: , in, is the weight corresponding to the probability distribution of positions, is the bias corresponding to the probability distribution of stances.

6. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.