A multi-stage self-training social robot detection method based on a graph neural network

By adopting a multi-stage self-training method based on graph neural networks, the problems of high computational cost of feature engineering and pseudo-label noise in social media robot detection are solved, and efficient and accurate social robot detection is achieved.

CN118747510BActive Publication Date: 2026-11-20BEIJING UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410723273.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2026-11-20
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Existing technologies for detecting social bots in social media suffer from problems such as high computational cost of feature engineering, long learning time, and poor performance. Furthermore, supervised learning methods require label information that is difficult to obtain, and pseudo-label noise in semi-supervised algorithms affects learning performance.

Method used

A multi-stage self-training method based on graph neural networks is adopted. By preprocessing user information, a multi-relationship heterogeneous graph is constructed, and RGCN is used for training. False labels are selected by combining confidence and uncertainty, and false labels are checked by deep clustering. The training is repeated until the model performance no longer changes.

Benefits of technology

In the absence of sufficient labeled data, it effectively detects social bots, improving the model's generalization performance and accuracy, achieving a detection accuracy of 0.9259.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747510B_ABST
    Figure CN118747510B_ABST
Patent Text Reader

Abstract

The application provides a multi-stage self-training social robot detection method based on a graph neural network. First, the basic information of a user on a social media and tweet information published by the user are processed by using a full connection neural network and an LSTM respectively, and bidirectional long short-term memory networks are used to fuse different types of user information as attribute features of the user. In order to process the user attributes and the topological relationship between users, the improved RGCN is trained by using a small amount of labeled data, and the trained RGCN is used to obtain the prediction of unlabeled data, and the uncertainty perception and deep clustering mechanism are combined to give the unlabeled data pseudo labels. Finally, the detection model is further trained by using the expanded labeled data set, and the process is repeated until the model performance no longer changes. The accuracy on the Twibot-20 data set reaches 0.9259, which proves that it is effective in the case of lacking sufficient labeled data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of social engineering, and in particular relates to the detection of social robots using graph neural networks. Background Technology

[0002] Social media has become an indispensable part of people's daily lives, and its popularity continues to rise globally. Thousands of trending topics are discussed daily on social media platforms. Malicious individuals or organizations exploit the widespread reach of social media and the availability of personal information to gain influence by creating fake, automated accounts. These fake accounts, often called social bots, are computer algorithms that generate content and interact with users. These bots spread specific viewpoints, product promotions, or disinformation by mimicking human behavior, publishing information, and interacting with humans, thereby directly or indirectly influencing users' opinions and behaviors. Furthermore, malicious social bots may also obtain personal data from open social platforms, stealing user privacy by infiltrating social networks. This involves posing as humans to build friendly relationships with other users and then acquiring more personal information during interactions, seriously threatening cybersecurity.

[0003] Machine learning can be used to learn the behavioral patterns of social robots, achieving good performance metrics in social robot detection and being easy to implement. The most widely used methods include Support Vector Machines (SVM), Random Forests (RF), Decision Trees (DT), and Naive Bayes (NB). However, most traditional machine learning methods involve feature engineering, which suffers from high computational cost, slow learning time, and poor performance with a large number of features. Therefore, more and more research is beginning to utilize deep learning methods for social robot detection. The most widely used models are different combinations of Long Short-Term Memory (LSTM), Convolutional Neural Networks (CNN), Recurrent Neural Networks (RNN), and Gated Recurrent Units (GRU). Given that social network graphs are non-Euclidean data structures, more and more works are applying graph neural networks to social robot detection tasks. The advantage of doing so is that it can make good use of the structural information of the graph, such as graph convolutional networks (GCN), graph attention networks (GAT), and relational graph convolutional networks (RGCN).

[0004] Most of the methods mentioned above are supervised methods. While supervised learning methods can achieve good performance during detection, they require labeled information during training. Accurately obtaining user tags in social media is difficult. Firstly, the methods for identifying bots on social media are not standardized, making it impossible to assign accurate tags to users. Secondly, manually annotating tags is a time-consuming and laborious task. Semi-supervised algorithms can effectively utilize large amounts of unlabeled data, improving the model's generalization performance. By learning the distribution of data more comprehensively, the model can perform better on unseen data. Some researchers have studied semi-supervised detection methods, which either use active learning methods to expand the labeled dataset or use pseudo-labels to expand the dataset. The resulting labeled data often contains noise, affecting learning performance. To address this problem, a multi-stage self-trained social bot detection algorithm based on graph neural networks is proposed. Summary of the Invention

[0005] This invention provides a multi-stage self-trained social bot detection method based on graph neural networks. First, the invention preprocesses Twitter data by using a fully connected neural network and an LSTM to process basic user information and tweets posted by users on social media, respectively. A bidirectional long short-term memory (Bi-LSTM) network is then used to fuse different types of user information, which are used as user attribute features. To process user attributes and the topological relationships between users, this invention constructs a multi-relationship heterogeneous graph to represent the Twitter network and trains an RGCN using a small amount of labeled data. The trained RGCN is used to obtain predictions for unlabeled data, and pseudo-labels are assigned to the unlabeled data based on confidence levels, network prediction uncertainty, and deep clustering mechanisms. Finally, the detection model is trained again using an expanded labeled dataset, and this process is repeated until the model performance no longer changes. This achieves semi-supervised social bot detection. Experiments show that the method achieves an accuracy of 0.9259 on the Twibot-20 dataset, demonstrating that this invention can effectively detect social bots even with insufficient labeled data. Attached Figure Description

[0006] Figure 1 A multi-stage self-trained social robot detection model based on graph neural networks

[0007] Figure 2 RGCN indicates the update process. Detailed Implementation

[0008] like Figure 1As shown, this invention provides a multi-stage self-trained social robot detection method based on graph neural networks, including: Step 1, data preprocessing, encoding user profiles and tweets; Step 2, training a relationship graph convolutional network and a classifier using a small amount of labeled data; Step 3, selecting pseudo-labels based on confidence level and uncertainty in network prediction; Step 4, checking the obtained pseudo-labels using deep clustering, and adding data with consistent labels obtained in Steps 3 and 4 to the label set, continuing to train the relationship graph convolutional network with the expanded label set. This process is repeated until the model performance no longer changes.

[0009] Step 1: Data preprocessing, encoding user profiles and tweets.

[0010] First, we obtain the Twibot20 dataset, a Twitter social bot detection dataset containing user follow relationships. It includes 229,580 users and 33,716,171 edges, of which 11,826 users are labeled, and 6,589 accounts are marked as bots. From this dataset, we extract account-related numerical features, categorical features, descriptive features, and tweet features.

[0011] Digital characteristics

[0012] For the digital features, we directly used the digital features obtained from the Twitter API. First, we performed z-score normalization on these digital features, and then passed them through a fully connected network to obtain their final representation r. n ∈R D / 4×1 D represents the user's embedding dimension, which is set to 128 here, and R represents the set of real numbers.

[0013]

[0014] Where n represents the user's numerical characteristics, W n b n These are the weight matrix and bias coefficients related to the numerical features, respectively. Their initial values ​​are generally random, and they are automatically updated through backpropagation during model training. For the activation function, Leaky-RELU is used here.

[0015] Classification features

[0016] The acquisition of categorical features is similar to that of numerical features, directly using Boolean features obtained from the Twitter API. First, the categorical features are one-hot encoded, and then passed through a fully connected network to obtain their final representation r. c ∈R D / 4×1 .

[0017]

[0018] Where c represents the user's classification feature, W c b c These are the weight matrix and bias coefficients related to the classification features, respectively. Their initial values ​​are generally random, and they are automatically updated through backpropagation during model training. For the activation function, Leaky-RELU is used here.

[0019] Descriptive features

[0020] To capture the semantic information of user descriptions, the pre-trained language model Roberta was first used to encode words, with the specific encoding method as follows:

[0021]

[0022] Where d represents the user description, L represents that a user's representation includes L words, and D d The embedding dimension for the description is set to 768. The description feature encoding is then passed through a fully connected network to obtain its final representation r. d .

[0023]

[0024] Among them, W d b d These are the weight matrix and bias coefficients related to the descriptive features, respectively. Their initial values ​​are generally random, and they are automatically updated through backpropagation during model training. For the activation function, Leaky-RELU is used here.

[0025] Tweet characteristics

[0026] Similar to feature description, the pre-trained language model Roberta was first used to encode the words, and the specific encoding method is as follows:

[0027]

[0028] in For the i-th word of the user's j-th tweet, Let M be the encoded representation of the i-th word in a user's j-th tweet, where M represents a user posting M tweets, and each tweet contains Q. j The number of words. Since user tweets are usually long text sequences, LSTM is used to further process the tweet encoding to address the long-term dependencies and gradient vanishing problems associated with long text sequences. The hidden layer sequence state generated for the j-th tweet is:

[0029]

[0030] The hidden layer representation at each step is generated using LSTM, resulting in the word representation sequence of the j-th tweet:

[0031]

[0032] The representation of each tweet is obtained by averaging the word representations. Finally, the average of all tweet representations is taken to obtain the user tweet representation r. t :

[0033]

[0034] Feature attribute fusion

[0035] Users possess various feature types, such as numbers, binary, and text. Simply concatenating these features fails to capture the heterogeneity of user attribute content and the interactions between different features. Therefore, Bi-LSTM is used to encode heterogeneous user attribute content, enabling the interaction of deep features within heterogeneous content, ultimately resulting in the node embedding X = {x1; ...; x...}. n}, x i ∈R D User v i The attribute representation. X is used as the attribute information of the social network graph, and combined with the graph structure information, it is input into the encoder to provide a comprehensive representation of the social network from both attribute and structural perspectives. User v i The node attributes are represented as follows.

[0036]

[0037] Among them, C v It is the feature type of user v, C v ∈{n,c,d,t},|C v | indicates the number of feature types. Indicates a forward LSTM, This indicates a reverse LSTM. This is the concatenation operator.

[0038] Step 2: Train the graph convolutional network and classifier using a small amount of labeled data.

[0039] A multi-relationship heterogeneous graph was constructed to represent the Twitter social network. Specifically, Twitter users were used as graph nodes, and different types of user relationships were used as edges. Since RGCN can handle both user attributes and different types of edge relationships simultaneously, it was used to process the multi-relationship heterogeneous graph and learn user representations. The RGCN update computation process is as follows: Figure 2 As shown, user v i The update process is shown below:

[0040]

[0041] Where σ represents the ReLU activation function. r∈R={“following”,“follower”}, representing the follow-and-follow relationship between users, respectively. User v i The relation is the set of neighboring nodes of r, C i,r The normalization coefficient has a value of [value missing]. That is, user v i The relation is the number of neighboring nodes of r. Let be a linear transformation function for relation r, responsible for transforming the features of neighboring nodes on the corresponding relation edges. This represents the weight matrix related to message passing, which is automatically updated during training via backpropagation. Here, l represents the number of layers in the RGCN. This represents the user representation of the input layer.

[0042] The aforementioned RGCN uses a message-passing mechanism when learning user representations. This mechanism continuously aggregates and updates the user's representation with its neighboring nodes, leading to an oversmoothing problem. In other words, as the number of layers in the graph neural network increases, the user's representation tends to become consistent, losing the detailed information of the original node features, resulting in a decreased sensitivity of the model to local details in the graph structure. To preserve the original features of the nodes, a linear transformation function is used to extract the original semantic information of the labeled nodes. User v i The original semantic information is represented as follows:

[0043]

[0044] Where σ represents the ReLU activation function. W (l) This represents the weight matrix associated with the linear transformation, which is automatically updated during training via backpropagation. Here, l represents the layer number. i (0) This represents the user representation of the input layer.

[0045] Learning and optimization

[0046] Based on user representation and original semantic information, softmax is used to obtain the user's prediction result:

[0047]

[0048] Among them, W O W K These are the first weight matrix and the second weight matrix, respectively. O ,bK These are the first and second bias coefficients, respectively. The initial values ​​of the weight matrix and bias coefficients are generally randomized and are automatically updated through backpropagation during model training. Let represent the node representation of the Lth layer (output layer) of the RGCN linear transformation, where L is set to 2. The parameters are trained by minimizing the cross-entropy loss (Loss) on all labeled nodes.

[0049]

[0050] Where Y represents the labeled user, y i This represents the user's true label. The second term in the formula preserves the user's original semantic information, which is equivalent to providing corresponding discriminative semantic features from the input nodes. Therefore, it can effectively suppress the phenomenon that node features tend to be consistent as the number of layers increases.

[0051] Step 3: Select pseudo-labels based on confidence level and uncertainty in network prediction.

[0052] To ensure the performance of the social robot detection algorithm under conditions of scarce labeled data, a multi-stage self-training algorithm is adopted to train RGCN multiple times. The multi-stage self-training process first trains RGCN using the original small amount of labeled data. Then, the user nodes predicted by RGCN and their pseudo-labels are added to virtual nodes. The virtual nodes are used to expand the labeled dataset and the relational graph convolutional network is retrained. This process is repeated K times until the labeled dataset converges.

[0053] The key to the above training process lies in the selection of pseudo-labels. There are generally two methods for obtaining pseudo-labels: traditional methods and confidence-based methods. Traditional methods do not select pseudo-labels, while confidence-based methods select unlabeled samples with high confidence to add to the labeled dataset. However, regardless of whether the pseudo-labels assigned to the samples are correct or not, these labels have high confidence. If a large number of unlabeled samples are given incorrect labels and used for training, the training set will contain a large number of noisy samples, severely impacting model performance. Therefore, simply using high confidence as the basis for selecting pseudo-labels is clearly insufficient. Here, a genetic algorithm is used to select a confidence threshold, and based on this, an uncertainty-aware method is used to select pseudo-labels. This method can reduce noise encountered during training, thereby improving the accuracy of pseudo-labels.

[0054] First, pseudo-labels are generated using the user representation obtained from RGCN, as shown in Equation (17).

[0055] p (i) =softmax(z i (15)

[0056]

[0057] Where, p (i) User v i The output probability of the relational graph convolutional network This represents the probability that the user is a robot or a human. τ∈(0,1) is the confidence threshold. This indicates whether a selection is made for the user. This indicates an indicator function; if the condition within the square brackets is true, the function evaluates to 1; if the condition is false, the function evaluates to 0. If... If it is greater than or equal to the specified threshold, then This indicates that the user is added to the tag set, and the added user tag is of class c, where c∈{0,1}.

[0058] An adaptive genetic algorithm is used to evaluate the confidence threshold and find the optimal solution. First, an initial population containing multiple confidence thresholds is generated. For each confidence threshold, the validation accuracy is used as its fitness, and the selection of thresholds for reproduction is determined based on their fitness. Then, a crossover operation is performed on the selected confidence thresholds to generate new ones, and a mutation operation introduces some randomness into the new thresholds. This selection, crossover, and mutation operation is repeated to generate new confidence thresholds and form a new population until the maximum number of iterations is reached (set to 10). Finally, the confidence threshold with the highest fitness is selected from the population generated during the evolutionary process as the optimal solution. Experiments show that a confidence threshold value between 0.77 and 0.83 performs best.

[0059] To reduce noise during training, a subset of pseudo-labels with lower noise is selected. Studies analyzing the relationship between network calibration and model prediction uncertainty have concluded that when pseudo-labels with more certain predictions are selected, the calibration error of that subset of pseudo-labels is significantly reduced. Therefore, a more accurate subset of labels is selected through uncertainty perception, as shown in (18).

[0060]

[0061] in Indicates whether to allow the user to make a selection. This indicates that the user and their pseudo-tag are selected and added to the tag set; otherwise, the user is not selected. p ∈(0,1) is the confidence threshold. κ p ∈(0,1) is an uncertain threshold. After verification, κ pSetting the dropout rate to 4e-8 yields the best results. u(p) represents the uncertainty in predicting p, which is calculated using MC-dropout. Its core idea is to perform multiple forward propagations on the same input; with dropout, different outputs can be obtained. Calculating the average and variance of these outputs yields the model's prediction result and uncertainty. Verification shows that a dropout rate (range 0-1) of 0.3 yields the best results.

[0062] Step 4: Use deep clustering to check for pseudo-labels, and add data with consistent labels obtained in Steps 3 and 4 to the label set. Continue training the relational graph convolutional network using the expanded label set. Repeat this process until the model performance no longer changes.

[0063] To further reduce noise from false labels, a deep clustering self-checking mechanism is introduced to further ensure the accuracy of the selected user labels.

[0064] Deep clustering learns the centroid matrix by minimizing the following formula. (d is x) i The feature dimensions after RGCN (where k is the number of categories, here k is set to 200) and the clustering assignment y for each user. i y i It is a one-hot encoded vector.

[0065]

[0066] The k-means clustering algorithm is used to cluster user embedding vectors into different categories to generate pseudo-labels. Deep clustering alternates between clustering and updating the parameters of RGCN by predicting these pseudo-labels. Here, N represents the number of users, and y... i ∈{0,1} k It is a k-dimensional binary vector (i.e., each element is either 0 or 1), F represents RGCN, x i User v i The initial fusion characteristics.

[0067] To transform categories within clusters into categories within classifications based on embedding distance, an alignment mechanism is introduced to classify users in each cluster to the class closest in the embedding space. For each cluster *s* in the unlabeled data after k-means, the alignment mechanism is calculated as follows:

[0068] c (s) =argmin m ∥v s -μ m ∥ 2 (20)

[0069] Where, argminm μ represents the value of m that minimizes the distance between the cluster centroid and the true centroid of the cluster, i.e., assigning users in cluster s to the m-th cluster. m v represents the centroid of class m in the user marker. s c represents the centroid of cluster s among unlabeled users. (s) This represents the final clustering result. Through an alignment mechanism, users in each cluster are classified into specific categories, and pseudo-labels are constructed for all unlabeled nodes.

[0070] After obtaining pseudo-labels through deep clustering, these pseudo-labels are used to check the accuracy of pseudo-labels selected based on uncertainty perception, thereby obtaining more accurate pseudo-labels.

[0071] By employing a dual selection mechanism—based on confidence-based uncertainty awareness in pseudo-label selection and deep clustering self-checking—noise in the pseudo-labels is minimized, resulting in a more accurate augmented label set. Finally, a relational graph convolutional network is trained using the augmented label set. This process is repeated until the model performance no longer changes.

Claims

1. A multi-stage self-training social robot detection method based on graph neural networks, characterized in that... Includes the following steps: Based on step 1, data preprocessing, user profiles and tweets are encoded. First, obtain the Twibot20 dataset and extract account-related numeric features, categorical features, descriptive features, and tweet features from this dataset; Digital characteristics Regarding the digital features, the obtained digital features are first normalized using z-score, and then passed through a fully connected network to obtain their final representation r. n ∈R D / 4×1 D represents the user's embedding dimension, where the value of D is 128, and R is the set of real numbers; Where n represents the user's numerical characteristics, W n b n These are the weight matrix and bias coefficients related to the numerical features, respectively. Their initial values ​​are randomized and are automatically updated through backpropagation during model training. Leaky-ReLU is used as the activation function. Classification features First, the classification features are one-hot encoded, and then passed through a fully connected network to obtain their final representation r. c ∈R D / 4×1 ; Where c represents the user's classification feature, W c b c These are the weight matrix and bias coefficients related to the classification features, respectively. Their initial values ​​are randomized and are automatically updated through backpropagation during model training. Leaky-ReLU is used as the activation function. Descriptive features The pre-trained language model Roberta was used to encode the words, and the specific encoding method is as follows: Where d represents the user description, L represents that a user's representation includes L words, and D d The embedding dimension for the description is set to 768; then the description feature encoding is passed through a fully connected network to obtain its final representation r. d ; Among them, W d b d These are the weight matrix and bias coefficients related to the descriptive features, respectively. Their initial values ​​are randomized and are automatically updated through backpropagation during model training. For the activation function, Leaky-ReLU is used here; Tweet characteristics The pre-trained language model Roberta was used to encode the words, and the specific encoding method is as follows: in For the i-th word of the user's j-th tweet, Let M be the encoded representation of the i-th word in a user's j-th tweet, where M represents a user posting M tweets, and each tweet contains Q. j The number of words; since user tweets are usually long text sequences, LSTM is used to further process the tweet encoding to solve the long-term dependency and gradient vanishing problems of long text sequences. The hidden layer sequence state generated for the j-th tweet is: The hidden layer representation at each step is generated using LSTM, resulting in the word representation sequence of the j-th tweet: The representation of each tweet is obtained by averaging the word representations. Finally, the average of all tweet representations is taken to obtain the user tweet representation r. t : Feature attribute fusion Bi-LSTM is used to encode heterogeneous user attribute content, enabling interaction of deep features of heterogeneous content, and finally obtaining the node embedding X = {x1; ...; x...} n }, x i ∈R D User v i The attribute representation; X is used as the attribute information of the social network graph, and together with the graph structure information, it is input into the encoder to comprehensively represent the social network from both attribute and structure perspectives; user v i The node attributes are represented as follows; Among them, C v It is the feature type of user v, C v ∈{n,c,d,t},|C v | Indicates the number of feature types; Indicates a forward LSTM, Indicates a reverse LSTM; For concatenation operators; Step 2: Train the graph convolutional network and classifier using a small amount of labeled data. RGCN is used to process multi-relation heterogeneous graphs and learn user representations, user v i The update process is shown below: Where σ represents the ReLU activation function; r∈R={"following","follower"}, representing the follow and follower relationships between users, respectively; User v i The relation is the set of neighboring nodes of r, C i,r The normalization coefficient has a value of [value missing]. That is, user v i The relation is the number of neighboring nodes of r; W r (l) W0 is a linear transformation function for relation r, responsible for transforming the features of neighboring nodes on the corresponding relation edges. (l) This represents the weight matrix related to message passing, which is automatically updated during training via backpropagation; where l represents the number of layers in the RGCN. This represents the user representation of the input layer; User v i The original semantic information is represented as follows: f i (l+1) =σ(W (l) f i (l) ),f i (0) =x i (11) Where σ represents the ReLU activation function; W (l) This represents the weight matrix associated with the linear transformation, which is automatically updated during training via backpropagation; where l represents the layer number; f i (0) This represents the user representation of the input layer; Learning and optimization Based on user representation and original semantic information, softmax is used to obtain the user's prediction result: Among them, W O W K These are the first weight matrix and the second weight matrix, respectively. O ,b K These are the first and second bias coefficients, respectively; the initial values ​​of the weight matrix and bias coefficients are randomized and automatically updated through backpropagation during model training. Let represent the node representation of the Lth layer (output layer) of RGCN, and let L be 2. The parameters are trained by minimizing the cross-entropy loss Loss on all labeled nodes. Where Y represents the labeled user, y i This represents the user's actual tags; Step 3: Select pseudo-labels based on confidence level and uncertainty in network prediction. A multi-stage self-training algorithm is used to train RGCN multiple times. The multi-stage self-training process first trains RGCN using the original small amount of labeled dataset. Then, the user nodes predicted by RGCN and their pseudo-labels are added to the virtual nodes. The virtual nodes are used to expand the labeled dataset and retrain the relational graph convolutional network. This process is repeated K times until the labeled dataset converges. First, pseudo-labels are generated using the user representation obtained from RGCN. The generated pseudo-labels are shown in Equation (17). p (i) =softmax(z i ) (15) Where, p (i) User v i The output probability of the relational graph convolutional network This represents the probability that the user is a robot or a human; τ∈(0,1) is the confidence threshold. Indicates whether a selection is made for the user; This indicates an indicator function; if the condition within the square brackets is true, the function value is 1; if the condition is false, the function value is 0; if... If it is greater than or equal to the specified threshold, then This indicates that the user is added to the tag set, and the added user's tag is of class c, where c∈{0,1}; For the confidence threshold, an adaptive genetic algorithm is used to evaluate the confidence threshold and find the optimal solution. First, an initial population containing multiple confidence thresholds is generated. For each confidence threshold, the validation accuracy is used as the fitness metric for evaluation, and the fitness of each confidence threshold determines which thresholds are selected for reproduction. Then, a crossover operation is performed on the selected confidence thresholds to generate new confidence thresholds, and a mutation operation is used to introduce some randomness into the new confidence thresholds. By repeatedly performing selection, crossover, and mutation operations, new confidence thresholds are generated, forming a new population, until the maximum number of iterations is reached (set to 10). The confidence threshold values ​​range from 0.77 to 0.

83. The process of selecting a more accurate subset of labels by sensing uncertainty is shown in (18); in Indicates whether to allow the user to make a selection. This indicates that the user and their pseudo-tag are selected and added to the tag set; otherwise, the user is not selected. p ∈(0,1) is the confidence threshold; κ p ∈(0,1) is the uncertainty threshold, u(p) represents the uncertainty of predicting p, and MC-dropout is used to calculate the uncertainty here; the dropout rate is set to 0.3 for the best results; Step 4: Use deep clustering to check for pseudo-labels, and add data with consistent labels obtained in Steps 3 and 4 to the label set. Continue training the relational graph convolutional network using the expanded label set; repeat this process until the model performance no longer changes. Deep clustering learns the centroid matrix by minimizing the following formula. Clustering assignment y for each user i y i It is a one-hot encoded vector; d is x i The feature dimension after RGCN is k, which is the number of categories, and here k is 200. The k-means clustering algorithm is used to cluster user embedding vectors into different categories to generate pseudo-labels; deep clustering alternates between clustering and updating the parameters of the RGCN by predicting these pseudo-labels; where N represents the number of users, y i ∈{0,1} k It is a k-dimensional binary vector, where each element is either 0 or 1. F represents RGCN, x i User v i The initial fusion features; To transform categories in clusters into categories in classifications based on embedding distance, an alignment mechanism is introduced to classify users in each cluster into the class closest to them in the embedding space; for each cluster s in the unlabeled data after k-means, the alignment mechanism is calculated as follows: c (s) =argmin m ||v s -μ m || 2 (20) Where, argmin m μ represents the value of m that minimizes the distance between the cluster centroid and the true centroid, i.e., assigning users in cluster s to the m-th cluster; m v represents the centroid of class m in the user marker. s c represents the centroid of cluster s among unlabeled users. (s) This represents the final clustering result.

Citation Information

Patent Citations

  • Social robot detection algorithm based on user semantics, attributes and neighborhood information

    CN115309813A

  • Social robot detection system and method based on ternary graph convolutional neural network

    CN116186636A