Guided topic detection method based on feature representation
By using feature representation methods in social networks, combined with Node2vec and graph convolutional neural networks, we solve the high-dimensional and sparse problems of guided topic detection in social networks, achieve efficient and accurate detection results, and help purify the network environment. .
Patent Information
- Application Number
- CN202410776090.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The rapid spread and widespread influence of guided topics in social networks are difficult to control, and existing technologies are difficult to detect efficiently and accurately, especially due to the high dimensionality of the topic feature space, data sparsity, and the challenges of quantifying emotional tendencies.
It adopts a guided topic detection method based on feature representation, obtains topic data for preprocessing, uses the Node2vec algorithm to represent user comment relationships, combines graph convolutional neural networks and evolutionary game theory to calculate user emotional influence, and integrates user characteristics and topic characteristics. Generate guided topic detection results.
It improves the accuracy and efficiency of guided topic detection, reduces feature dimensions, and improves the accuracy of model output through GAN data enhancement, helping to purify the network environment and maintain social stability.
Smart Images

Figure CN118797472A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of social network analysis, and in particular relates to a guided topic detection method based on feature representation. Background Art
[0002] The Internet has broken the traditional geographical restrictions, allowing people to easily communicate and interact with people around the world. Social media platforms such as Facebook, Twitter, Instagram, etc. have become important channels for people to share their lives, opinions and experiences. People share information with others through social networks, but sometimes they do not strictly review the authenticity of the information, which provides a breeding ground for the spread of guiding topics.
[0003] Social networks have the characteristics of real-time information dissemination, which allows leading topics to be quickly spread to a large number of users, resulting in the spread of leading topics faster than traditional media. Social networks can also achieve global information dissemination, allowing leading topics to quickly spread to various regions and groups, with a wide range of influence. The spread of information on social networks is often accompanied by the amplification of social influence. Even if the publisher of a leading topic is not authoritative, its influence can be quickly expanded through social networks, making it easier for leading topics to be widely accepted. Once a leading topic spreads on a social network, its influence is often difficult to control and eliminate. Even if there is evidence that it is false information, some people will continue to believe and spread it. The characteristics of leading topics on social networks, such as fast dissemination, wide dissemination, amplified social influence, and difficulty in controlling and eliminating, make it more and more harmful to society, individuals and public interests.
[0004] Faced with huge social networks, manual control of public opinion often faces many challenges and limitations. First, the amount of information on social networks is huge, covering information of various types and topics, which cannot be screened and analyzed in a timely and effective manner. Secondly, manual monitoring of public opinion requires a lot of manpower and material resources, which is costly and inefficient, and it is difficult to meet the demand for the speed of information dissemination. In addition, there may be problems such as subjectivity and misjudgment, which affects the accuracy and credibility of public opinion monitoring results. Therefore, it is urgent to establish a model that can automatically detect leading topics in social networks efficiently and accurately. However, detecting leading topics in social networks also faces the following challenges:
[0005] 1. High dimensionality and complexity of topic feature space. The multiple complex high-dimensional feature spaces such as users, messages, networks, and relationships in the topic propagation space make it difficult to simplify and effectively express features, thus affecting the accuracy of prediction.
[0006] 2. Sparsity of effective data for guiding topics. Although there is a large amount of data in real datasets, the proportion of effective data is small. When conducting big data research on guiding topic detection, the lack of sufficient cross-adversarial data will make the process of guiding topic detection difficult.
[0007] 3. How to quantify the sentiment of user comments. Leading topics are often driven by emotions, such as using emotional manipulation to spread leading topics. Therefore, how to accurately quantify the sentiment of user comments is a key issue in detecting leading topics. Summary of the invention
[0008] In view of the shortcomings of the prior art, the present invention proposes a guided topic detection method based on feature representation, which comprises: obtaining topic data and preprocessing the topic data, inputting the preprocessed topic data into a trained guided topic detection model, and obtaining a guided topic detection result;
[0009] The process of processing topic data by the trained guided topic detection model includes:
[0010] S1: Obtain the user comment relationship network from the topic data, use the Node2vec algorithm to vectorize the user comment relationship, and obtain the structural feature matrix of the user comment relationship network;
[0011] S2: Obtain user comment content and topic content from topic data; convert user comment content and topic content into vector representation to obtain user content feature vector and topic feature vector.
[0012] S3: Calculate the user's topic domain awareness based on the user content feature vector and the topic feature vector;
[0013] S4: Based on the topic data, the evolutionary game theory is used to calculate the emotional influence of supportive and opposing messages on users;
[0014] S5: Integrate the user's topic domain awareness and the emotional influence of supporting and opposing messages on the user to obtain the user feature matrix;
[0015] S6: Use graph convolutional neural network to process user feature matrix and structural feature matrix to obtain guided topic detection results.
[0016] Preferably, the process of using the Node2vec algorithm to vectorize the user comment relationship includes:
[0017] Calculate the node transfer probability, walk the user comment relationship network according to the node transfer probability, obtain the node walk sequence, represent the node walk sequence by vector, and obtain the structural feature matrix; the formula for calculating the node transfer probability is:
[0018]
[0019] Among them, P(u j |u t ) represents the transition probability from the current node to the next node, α p,q (u j ,u t ) represents the wandering paranoid term, W(u j ,u t ) represents the closeness between the current node and the next node, z represents the normalization factor, u j represents the current node, u t represents the next node, E represents the node set, InteractNum(u j ,u t ) represents the number of interactions between the current node and the next node, InteractNum(u j ) represents the total number of interactions between the current node and the entire network users, InteractNum(u t ) represents the total number of interactions between the next node and the entire network users.
[0020] Preferably, the formula for calculating the user's topic domain awareness is:
[0021]
[0022] Among them, Awareness (n i ) represents user n i The degree of awareness of the topic area, F(n i ) represents user n i The content feature vector of F(topic) represents the content feature vector of user n. i Topic feature vector.
[0023] Preferably, the process of using evolutionary game theory to calculate the emotional interaction influence of support messages and opposition messages on users includes:
[0024] S41: Calculate user attributes, user activity, topic popularity and user influence based on topic data;
[0025] S42: Calculate user internal factors based on user attributes and user activity, and calculate user external factors based on topic popularity and user influence;
[0026] S43: Based on the internal and external factors of users, the emotional influence function is constructed using the multivariate linear regression algorithm;
[0027] S44: Calculate the benefits of supporting emotions and opposing emotions based on the emotional influence function;
[0028] S45: Calculate the emotional influence of the support message and the opposition message on the user according to the benefits of the support emotion and the opposition emotion.
[0029] Furthermore, the formula for calculating user attributes, user activity, topic popularity and user influence is:
[0030] UserAttribute(n i )=[age(n i ), friends(n i ), fans(n i )]
[0031] UserAct(n i )=β×ownNum(n i )+relayNum(n i )
[0032]
[0033] Among them, UserAttribute(n i ) represents user n i The attribute value of age(n i ) represents user n i Age, friends(n i ) represents user n i Number of friends, fans(n i ) represents user n i Number of fans, UserAct(n i ) represents user n i activity, β represents the coefficient, ownNum(n i ) represents user n i The number of original microblogs, relayNum(n i ) represents user n i Number of forwarded microblogs, UserInfluence(n i ) represents user n i The influence of W i Indicates user n i The weight of the historical reputation score, follow(n i ) represents user n i Pop(t) represents the number of followers of a topic at time t, retNum(t) represents the number of reposts and comments of the topic at time t, retNum(t-1) represents the number of reposts and comments of the topic at time t-1, w represents the length of the time slice, and n represents the time when the topic is published.
[0034] Furthermore, the formula for calculating user internal factors and user external factors is:
[0035] Infactor(n i )=UserAttribute(n i )×UserAct(n i )
[0036] Outfactor(n i )=Pop(t)×UserInfluence(n i )
[0037] Among them, Infactor(n i ) represents user n i Internal factors, UserAttribute(n i ) represents user n i The attribute value of UserAct(n i ) represents user n i Activity, Outfactor(n i ) represents user n i External factors, Pop(t) represents the popularity of the topic at time t, UserInfluence(n i ) represents user n i influence.
[0038] Preferably, the formula for calculating the emotional influence of support messages and opposition messages on users is:
[0039]
[0040] Among them, MutInfluence positive (n i ) indicates support message to user n i MutInfluence negative (n i ) indicates opposition to the message to user n i Emotional impact, profit positive (n i ) represents user n i Support emotional benefits, profit negative (n i ) represents user n i of opposing emotional gains.
[0041] Preferably, the graph convolutional neural network processes the user feature matrix and the structural feature matrix as follows:
[0042] P(n,r|topic)=softmax(gcn_model(Matrix user (topic)+Matrix network (topic)))
[0043] Among them, P(n,r|topic) represents the category probability of the model output, gcn_model represents the graph convolutional neural network, Matrix user (topic) represents the user feature matrix, Matrix network (topic) represents the structural feature matrix.
[0044] Preferably, during the training of the guided topic detection model, a GAN adversarial mechanism is used to perform data enhancement on the user content feature vector and the topic feature vector.
[0045] The beneficial effects of the present invention are as follows: the present invention proposes the idea of integrating topic features and user features, and has achieved good results in the field of guided topic detection. At the same time, by representing the user comment content and the comment relationship network with low-rank vectorized features, the feature dimension of the sample data is reduced and the training cost is reduced; realistic synthetic data can be generated through GAN (generative adversarial network), thereby expanding the original data set, increasing the diversity and quantity of data, and improving the accuracy of the model output results; at the same time, the effectiveness of the present invention helps to purify the network environment and contribute to maintaining social stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a data processing flow chart of the guided topic detection model in the present invention;
[0047] Figure 2 It is a schematic diagram of the Node2vec algorithm of the present invention;
[0048] Figure 3 This is a schematic diagram of the GAN adversarial generation network in the present invention;
[0049] Figure 4 A schematic diagram of the mechanism for quantifying the emotional interaction effect in the present invention;
[0050] Figure 5 Schematic diagram of the GCN graph convolutional neural network of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] The present invention proposes a guided topic detection method based on feature representation, such as Figure 1 As shown, the method includes the following contents:
[0053] The topic data is obtained and preprocessed, and the preprocessed topic data is input into the trained guided topic detection model to obtain the guided topic detection result.
[0054] To obtain topic data, specifically: all comments on leading topics and non-leading topics throughout their life cycle and the basic information and historical behavior information of commenting users can be obtained from public data websites. The basic information of commenting users requires the number of fans, number of friends, age, etc. of the user; the user's historical behavior information includes the user's historical reputation and the text information posted by the user in the past month.
[0055] Topic data: The raw data usually contains a considerable amount of invalid data. By simply cleaning the data, we can delete abnormal or invalid data and reduce the complexity of subsequent calculations.
[0056] The process of processing topic data by the trained guided topic detection model includes:
[0057] S1: Obtain the user comment relationship network from the topic data, use the Node2vec algorithm to vectorize the user comment relationship, and obtain the structural feature matrix of the user comment relationship network.
[0058] There are two strategies in the Node2vec algorithm to define the probability transfer matrix. BFS (Breadth First Search) prioritizes exploring nodes closer to the starting node. The generated node sequence is more focused on the local structure, but may ignore the global information. DFS (Depth First Search) prioritizes exploring nodes farther from the starting node. The generated node sequence may contain more global information, but may ignore the local structure. Figure 2 As shown in the figure, in order to balance local structure and global information, a flexible hybrid sampling strategy is proposed by introducing two parameters p and q to smoothly interpolate between breadth-first search (BFS) and depth-first search (DFS). Under this hybrid strategy, Node2vec can balance local and global information when generating node sequences, thereby better capturing the characteristics of nodes in the network.
[0059] Specifically, the node transfer probability formula of the Node2vec hybrid strategy is as follows:
[0060]
[0061] Among them, u t represents the current node, u j represents the next node, z is the normalization factor to ensure that the sum of transition probabilities is 1, W(u j ,u t ) represents u t Node and u j The edge weight coefficient between nodes, E represents the node set, α p,q (u j ,u t ) represents the walk bias term.
[0062] W(u j ,u t ) reflects the intimacy between two nodes. User intimacy behaviors are manifested in various behaviors such as following, forwarding, replying, and mentioning between users. Generally speaking, the more frequent the interaction between users, the higher the user intimacy. The calculation formula is:
[0063]
[0064] Among them, P(u j |u t ) represents the transition probability from the current node to the next node, W(u j ,u t ) represents the intimacy between the current node and the next node, InteractNum(u j ,u t ) represents the number of interactions between the current node and the next node, InteractNum(u j ) represents the total number of interactions between the current node and the entire network users, InteractNum(u t ) represents the total number of interactions between the next node and the entire network users.
[0065] Walking bias term α p,q (u j ,u t ) is expressed as:
[0066]
[0067] in, Indicates the distance from the current node to the next node, p controls the possibility of backtracking to the previous node. If p is large, the possibility of backtracking is small, and the walk is more inclined to explore new nodes. q controls the probability of moving from the current node to other nodes. If q is greater than 1, it is more inclined to perform breadth-first search (BFS), that is, to give priority to visiting neighboring nodes. If q is less than 1, it is more inclined to perform depth-first search (DFS), that is, to give priority to visiting nodes far away from the current node. Preferably, p and q are set to 1 at the same time to capture local and global structural information in a balanced manner.
[0068] At the same time, the goal of random walk is to learn the vector representation of nodes by maximizing the log probability of sampling node neighbors. The objective function is as follows:
[0069]
[0070] Where U is the set of nodes, f(u) represents the feature mapping function of node u, and N S (u) The set of neighboring nodes of node U obtained by the random walk strategy S, P(N S (u)|f(u)) represents the probability of the neighboring nodes of node u appearing. The formula is as follows:
[0071]
[0072] The random walk method using the above hybrid strategy transforms the user relationship network into a user node sequence, that is, the user comment relationship network is walked according to the objective function and the node transition probability to obtain a node walk sequence; based on the node sequence, the Skip-gram model is used to learn the node vector representation, and the output representation is the structural feature matrix:
[0073] Matrix network (topic)=[u1,u2,u3,...,u k ]
[0074] Among them, Matrix network (topic) represents the structural feature vector of the user comment relationship network, u k Represents the vector representation of the k-th user node.
[0075] S2: Obtain user comment content and topic content from topic data; convert user comment content and topic content into vector representation to obtain user content feature vector and topic feature vector.
[0076] The Doc2vec algorithm is used to present the features of user comment content and topic content as low-dimensional dense vectors. First, each word in the text has its own importance. Therefore, each paragraph is segmented and some invalid words are filtered. The weight of each candidate keyword is calculated for each keyword after segmentation using TF-IDF word frequency statistics, and the candidate keywords are arranged in descending order by weight. Then, according to the thresholds given by different users, each user selects the top k important keywords, and for topic content, the k most frequently appearing important keywords are selected. Finally, these keywords are mapped to the vector space through the representation learning algorithm Doc2Vec to obtain the user content feature vector and topic feature vector.
[0077] During the training process, the present invention uses the GAN adversarial mechanism to perform data enhancement on the user content feature vector and the topic feature vector to generate high-quality homomorphic sample data; Figure 3 As shown, specifically:
[0078] The main idea of data augmentation is to add noise or other transformations to existing data, that is, to generate some valid data to compensate for the data set. Considering that GAN has outstanding performance in image data augmentation, GAN is introduced to alleviate the sparsity of guided topics in actual data. Using the GAN adversarial mechanism, the potential relationship between guided topics and non-guided topics in the data is deeply explored, and high-quality homomorphic data is generated on this basis. GAN consists of a generator and a discriminator. The purpose of the generator is to generate fake samples similar to real data samples, so that it is impossible to distinguish between the generated fake samples and real data samples. The goal of the discriminator is to distinguish between real data samples and fake samples generated by the generator. Through adversarial training between the generator and the discriminator, the generative adversarial network can learn the ability to generate realistic data samples while improving the accuracy of the discriminator. The generator loss function is as follows:
[0079] E z~p(z) [logD(G(z))]
[0080] Among them, z is a random vector sampled from the noise distribution p(z), G(z) is a fake sample generated by the generator, D is the discriminator, and D(G(z)) represents the probability that the discriminator will identify the generated fake sample as real. The goal of the generator is to minimize this loss, that is, to deceive the discriminator by generating fake samples so that it will identify the fake samples as real.
[0081] The discriminator loss function is as follows:
[0082]
[0083] Where x is from the real data distribution p data(x), D(x) is the probability that the discriminator will classify the real sample as real. The goal of the discriminator is to maximize this loss, that is, to correctly classify the real sample as real and correctly classify the generated fake sample as fake.
[0084] The optimization objective function of the model is as follows:
[0085]
[0086] Among them, θ G and θ D are the parameters of the generator and the discriminator respectively. The optimization goal of the generator is to minimize the loss of the discriminator, that is, the generator hopes that the generated fake samples can deceive the discriminator as much as possible, so that it can discriminate the fake samples as real.
[0087] Ultimately, the generator can generate fake samples that are similar to real data samples, while the discriminator can accurately distinguish between real data and generated fake data. This interactive and iterative training process can continuously improve the quality of data samples generated by the generative adversarial network and eventually reach a realistic level.
[0088] S3: Calculate the user's topic domain awareness based on the user content feature vector and the topic feature vector.
[0089] The user content feature vector and topic feature vector represent the feature vectors of user interests and cognitive fields; the cosine similarity measurement is used to calculate the user's topic field cognition, and the formula is:
[0090]
[0091] Among them, Awareness (n i ) represents user n i The degree of awareness of the topic area, F(n i ) represents user n i The content feature vector of , F(topic) represents the topic feature vector.
[0092] S4: Based on the topic data, evolutionary game theory is used to calculate the emotional influence of supportive and opposing messages on users.
[0093] Emotional interaction describes the degree to which a user's emotional state affects the emotional state of other users in his or her social network, and the degree to which other users' emotional states affect the emotional state of this user. Leading topics usually trigger specific emotional responses from users. By quantifying emotional interaction, we can understand the emotional state of the affected group. Traditional topic detection methods usually only rely on the characteristics of text content, while sentiment analysis can provide additional information to more accurately detect leading topics. The present invention uses evolutionary game theory to quantify emotional interaction, such as Figure 4 As shown, specifically:
[0094] S41: Calculate user attributes, user activity, topic popularity and user influence based on topic data.
[0095] User basic attributes UserAttribute (n i ) includes the number of fans of the user fans (n i ), the number of friends of the user friends (n i )、user age(n i ), these attributes reflect the user's social density in the social network and the degree of influence of the topic, which has a certain influence on whether the topic is a leading topic. Therefore, the user attributes are defined as:
[0096] UserAttribute(n i )=[age(n i ), friends(n i ), fans(n i )]
[0097] Among them, fans(n i ) represents the number of fans of the user, friends(n i ) represents the number of friends of the user, age(n i ) indicates the user's age.
[0098] UserAct(n i ) means that users are more likely to be exposed to various information, including more information on guiding topics. Therefore, when detecting guiding topics, the comments of users with high activity are relatively more critical. Therefore, user activity is defined as:
[0099] UserAct(n i )=β×ownNum(n i )+relayNum(n i )
[0100] Among them, ownNum(n i ) represents the number of original microblogs created by the user, relayNum(n i ) represents the number of microblogs forwarded by the user. Users who frequently forward microblogs are more likely to be exposed to rumors than users who frequently create original microblogs. Therefore, the present invention uses the coefficient β∈[0,1] to weaken the impact of user originality on user activity.
[0101] Leading topics tend to have higher popularity than ordinary topics, so the topic popularity Pop(t) is defined as:
[0102]
[0103] Where t and n represent the current time and the time when the topic was published, respectively. retNum(t) and retNum(t-1) represent the number of reposts and comments on the topic at time t and time t-1, respectively. If the time effect is not considered, retNum(t)-retNum(t-1) represents the popularity of the topic at the current time. However, since the popularity of a topic will gradually decrease over time after reaching its peak, the half-life function is introduced. This simulates the process of topic popularity decreasing after reaching a peak, where w represents the length of the time slice.
[0104] User Influence i ) Users with high influence tend to have a wider social network and more followers. The information they publish may spread faster and have a greater influence on the attitudes and behaviors of other users. Therefore, the present invention defines the influence of a user based on the number of fans, the number of followers, and the historical credit score of the user:
[0105]
[0106] Among them, UserInfluence(n i ) represents user n i The influence of W i ∈[0,1] represents the weight of the user's historical reputation score. The higher the user's reputation, the closer it is to 1. i ) represents user n i Number of fans, follow(n i ) represents user n i Number of followers.
[0107] If the user holds a supportive sentiment influence, that is, the comments he publishes tend to support sentiment, then UserInfluence(n i ) can be expressed as UserInfluence positive (n i ), if the user holds an opposing emotional influence, then UserInfluence(n i ) can be expressed as UserInfluence negative (n i ).
[0108] S42: Calculate user internal factors based on user attributes and user activity, and calculate user external factors based on topic popularity and user influence.
[0109] The user's emotional tendency is affected by internal and external factors; the user's internal factor Infactor (ni ) consists of: UserAttribute(n i ) and user activity UserAct(n i ), as shown below:
[0110] Infactor(n i )=UserAttribute(n i )×UserAct(n i )
[0111] User external factors Outfactor (n i ) consists of: topic popularity Pop(t) and user influence UserInfluence(n i ), as shown below:
[0112]
[0113] Where k represents user n i The number of users who hold supportive emotional influence among their friends, q′ represents user n i The number of users who hold opposing emotional influence among their friends, UserInfluence positive (i) represents user n i UserInfluence is the user influence of the i-th user among the users who hold supportive emotional influence in the number of friends. negative (j) represents user n i The user influence of the i-th user among the users who hold opposing sentiment influence in the number of friends.
[0114] S43: Based on the internal and external factors of users, the emotional influence function is constructed using the multivariate linear regression algorithm.
[0115] The influence function is as follows:
[0116] Emotion positive (n i )=σ1+σ2×Infactor(n i )+σ3×Outfactor positive (n i )
[0117] Emotion negative (n i )=σ1+σ2×Infactor(n i )+σ3×Outfactor negative (n i )
[0118] Among them, Emotion positive (n i ) indicates support for the emotional influence function, Emotion negative (n i ) represents the opposing sentiment influence function; σ1, σ2, σ3 are the first, second, and third partial regression coefficients of the multivariate linear regression algorithm obtained after training, Outfactor positive (n i ) represents the external factors of users who hold supportive emotions, Outfactor negative (n i ) represents external factors of users holding opposing sentiments.
[0119] S44: Calculate the benefits of supporting emotions and opposing emotions based on the emotional influence function.
[0120] Evolutionary game theory is used to quantify the emotional interaction between users. According to game theory, two game strategies are defined: "support emotion" and "oppose emotion". The profit functions of the above two strategies are respectively expressed by Profit positvie (n i ) and Profit negative (n i ). The two profit functions are shown as follows:
[0121] profit positvie (n i )σ=P1×Emotion positive (n i )
[0122] profit negative (n i )=P2×Emotion negative (n i )
[0123] Among them, profit positive (n i ) represents user n i Support emotional benefits, profit negative (n i ) represents user n i The opposing sentiment gain; P1 and P2 are the ratios of supporting sentiment and opposing sentiment in all comments, and P1+P2=1.
[0124] S45: Calculate the emotional influence of the support message and the opposition message on the user according to the benefits of the support emotion and the opposition emotion.
[0125] Using evolutionary game theory to measure the emotional interaction between users:
[0126]
[0127] MutInfluence positive (n i ) and MutInfluence negative (n i ) represent the effects of support messages and opposition messages on user n after the game. i emotional impact.
[0128] S5: Integrate the user's topic domain awareness and the emotional influence of supporting and opposing messages on the user to obtain the user feature matrix.
[0129] Preferably, the user's topic domain awareness, the emotional influence of supporting messages on users, and the emotional influence of opposing messages on users are combined to obtain the user feature matrix Matrix user (topic).
[0130] S6: Use graph convolutional neural network to process user feature matrix and structural feature matrix to obtain guided topic detection results.
[0131] like Figure 5 As shown in the figure, the graph convolutional neural network convolves the structural feature matrix and the user feature matrix, and then uses the softmax function to convert the output of GCN into probability values of two categories, expressed as:
[0132] P(n,r|topic)=softmax(gcn_model(Matrix user (topic)+Matrix network (topic)))
[0133] Among them, P(n,r|topic) represents the probability of non-guided and guided topics output by softmax, n represents non-guided topics, r represents guided topics, and topic represents topics; Matrix user (topic) represents the user feature matrix, Matrix network (topic) represents the structural feature matrix, and gcn_model represents the graph convolutional neural network.
[0134] The category corresponding to the maximum probability value of the two categories is taken as the prediction result, which is expressed as:
[0135]
[0136] Among them, P(n|topic) and P(r|topic) represent the probabilities of a topic being a non-leading topic and a leading topic respectively. When Y=1, it means that the current topic is judged to be a non-leading topic, and when Y=0, it means that the current topic is judged to be a leading topic.
[0137] Topic data is obtained and preprocessed, and the preprocessed topic data is input into a trained guided topic detection model to obtain guided topic detection results. Through the guided topic detection results, relevant departments can promote or suppress guided topics in a targeted manner as needed to purify the network environment.
[0138] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A guided topic detection method based on feature representation, characterized in that: include: Acquire topic data and preprocess it, input the preprocessed topic data into the trained guided topic detection model to obtain guided topic detection results; The process of processing topic data by the trained guided topic detection model includes: S1: Obtain the user comment relationship network from the topic data, use the Node2vec algorithm to vectorize the user comment relationship, and obtain the structural feature matrix of the user comment relationship network; S2: Obtain user comment content and topic content from topic data; convert user comment content and topic content into vector representation to obtain user content feature vector and topic feature vector. S3: Calculate the user's topic domain awareness based on the user content feature vector and the topic feature vector; S4: Based on the topic data, the evolutionary game theory is used to calculate the emotional influence of supportive and opposing messages on users; S5: Integrate the user's topic domain awareness and the emotional influence of supporting and opposing messages on the user to obtain the user feature matrix; S6: Use graph convolutional neural network to process user feature matrix and structural feature matrix to obtain guided topic detection results.
2. According to the feature representation-based guided topic detection method of claim 1, it is characterized in that: The process of using the Node2vec algorithm to vectorize the user comment relationship includes: Calculate the node transfer probability, walk the user comment relationship network according to the node transfer probability, obtain the node walk sequence, represent the node walk sequence by vector, and obtain the structural feature matrix; the formula for calculating the node transfer probability is: Among them, P(u j |u t ) represents the transition probability from the current node to the next node, α p,q (u j ,u t ) represents the wandering paranoid term, W(u j ,u t ) represents the closeness between the current node and the next node, z represents the normalization factor, u j represents the current node, u t represents the next node, E represents the node set, InteractNum(u j ,u t ) represents the number of interactions between the current node and the next node, InteractNum(u j ) represents the total number of interactions between the current node and the entire network users, InteractNum(u t ) represents the total number of interactions between the next node and the entire network users.
3. The method for guiding topic detection based on feature representation according to claim 1, characterized in that: The formula for calculating user topic domain awareness is: Among them, Awareness (n i ) represents user n i The degree of awareness of the topic area, F(n i ) represents user n i The content feature vector of F(topic) represents the content feature vector of user n. i Topic feature vector.
4. The method for guiding topic detection based on feature representation according to claim 1, characterized in that: The process of using evolutionary game theory to calculate the emotional interaction between supportive and opposing messages on users includes: S41: Calculate user attributes, user activity, topic popularity and user influence based on topic data; S42: Calculate user internal factors based on user attributes and user activity, and calculate user external factors based on topic popularity and user influence; S43: Based on the internal and external factors of users, the emotional influence function is constructed using the multivariate linear regression algorithm; S44: Calculate the benefits of supporting emotions and opposing emotions based on the emotional influence function; S45: Calculate the emotional influence of the support message and the opposition message on the user according to the benefits of the support emotion and the opposition emotion.
5. A method for guiding topic detection based on feature representation according to claim 4, characterized in that: The formula for calculating user attributes, user activity, topic popularity, and user influence is: UserAttribute(n i )=[age(n i ),friends(n i ),fans(n i )] UserAct(n i )=β×ownNum(n i )+relayNum(n i ) Among them, UserAttribute(n i ) represents user n i The attribute value of age(n i ) represents user n i Age, friends(n i ) represents user n i Number of friends, fans(n i ) represents user n i Number of fans, UserAct(n i ) represents user n i activity, β represents the coefficient, ownNum(n i ) represents user n i The number of original microblogs, relayNum(n i ) represents user n i Number of forwarded microblogs, UserInfluence(n i ) represents user n i The influence of W i Indicates user n i The weight of the historical reputation score, follow(n i ) represents user n i Pop(t) represents the number of followers of a topic at time t, retNum(t) represents the number of reposts and comments of the topic at time t, retNum(t-1) represents the number of reposts and comments of the topic at time t-1, w represents the length of the time slice, and n represents the time when the topic is published.
6. A method for guiding topic detection based on feature representation according to claim 4, characterized in that: The formula for calculating user internal factors and user external factors is: Infactor(n i )=UserAttribute(n i )×UserAct(n i ) Outfactor(n i )=Pop(t)×UserInfluence(n i ) Among them, Infactor(n i ) represents user n i Internal factors, UserAttribute(n i ) represents user n i The attribute value of UserAct(n i ) represents user n i Activity, Outfactor(n i ) represents user n i External factors, Pop(t) represents the popularity of the topic at time t, UserInfluence(n i ) represents user n i influence.
7. The method for guiding topic detection based on feature representation according to claim 4, characterized in that: The formula for calculating the emotional influence of supportive and opposing messages on users is: Among them, MutInfluence positive (n i ) indicates support message to user n i MutInfluence negative (n i ) indicates opposition to the message to user n i Emotional influence, profit positive (n i ) represents user n i Support emotional benefits, profit negative (n i ) represents user n i of opposing emotional gains.
8. The method for guiding topic detection based on feature representation according to claim 1, characterized in that: The graph convolutional neural network processes the user feature matrix and the structural feature matrix as follows: P(n,r|topic)=softmax(gcn_model(Matrix user (topic)+Matrix network (topic))) Among them, P(n,r|topic) represents the category probability of the model output, gcn_model represents the graph convolutional neural network, Matrix user (topic) represents the user feature matrix, Matrix network (topic) represents the structural feature matrix.
9. The method for guiding topic detection based on feature representation according to claim 1, characterized in that: During the training process of the guided topic detection model, the GAN adversarial mechanism is used to perform data enhancement on the user content feature vector and topic feature vector.
Citation Information
Patent Citations
A text and user representation learning-based text field detection method
CN112949318A
Cross-domain rumor propagation prediction method based on transfer learning
CN115511181A
Rumor detection method based on topic imaging
CN115661696A
Rumor detection method fusing viewpoint divergence degree and emotional game
CN116881842A
Cited By
Early guide type topic detection method based on emotion accumulation and dynamic graph representation
CN119357745A
Social platform guide topic key node tracing method
CN119577509A
A social platform guide topic key node tracing method
CN119577509B
