A social robot detection method based on dynamic graph neural network
By combining cross-modal feature alignment, liquid neural networks, and multi-agent deep reinforcement learning, the problems of insufficient utilization of multimodal information and dynamic camouflage strategies in social robot detection are solved, achieving more efficient social robot detection results.
Patent Information
- Application Number
- CN202611420265.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing social robot detection methods struggle to effectively utilize multimodal information, lack the ability to proactively model dynamic camouflage strategies for robot behavior, and are deficient in cross-modal feature fusion and behavior modeling, resulting in poor detection performance.
We employ the BEiT3 multimodal pre-trained model and the AlignMamba mechanism for cross-modal feature alignment, combine liquid neural networks (LNN) to model the continuous-time dynamic characteristics of user behavior, and optimize the adversarial strategy on the defense side through multi-agent deep reinforcement learning (MADRL). We then construct a dynamic graph neural network for social robot detection.
It achieves efficient semantic alignment of multimodal features, accurately captures dynamic changes in user behavior, enhances the detection capability of social bots, and improves detection accuracy and adversarial robustness.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This invention belongs to the fields of social network security, artificial intelligence and graph neural network technology, specifically involving a social robot detection method based on dynamic graph neural networks, which is applicable to the fields of identifying fake accounts on social media platforms, analyzing online public opinion and supervising internet content security. Background Technology
[0002] As the user base and interaction complexity of social networking platforms continue to grow, the detection of social bots has become a serious challenge. These bots provide services, perform tasks, and interact with people in social environments. Their sophisticated disguise methods make traditional detection strategies ineffective, posing a potential threat to the trust system of online platforms.
[0003] In recent years, social bot detection methods have been mainly divided into three categories based on their research focus: feature-based supervised learning, graph analysis based on network structure, and behavior-based honeypot methods. Feature-based supervised learning (such as the Botometer system) detects bots by training classifiers such as decision trees, random forests, and support vector machines based on users' content features and temporal behaviors. Graph analysis methods based on network structure (such as BotRGCN and RGT) abstract users and interactions on social platforms into a graph of nodes and edges, and use graph neural networks to mine and identify features. Behavior-based methods deploy fake accounts to lure and capture suspicious bots.
[0004] However, contemporary social robots have transcended the framework of simple language imitation and emotional mimicry. Their behavioral patterns exhibit a deep fusion of strategic camouflage and human-like characteristics, and existing detection methods still have the following shortcomings:
[0005] 1. The Multimodal Problem of Social Robots. Social networks contain diverse information modalities such as images and text, exhibiting significant differences in semantic expression. Direct fusion of these modalities can easily lead to semantic misalignment, affecting the accurate capture of robot features. Existing research methods such as BotRGCN and RGT primarily rely on graph structure features or text features, failing to effectively utilize multimodal information such as images.
[0006] 2. The highly human-like behavior of social robots and the dynamic evolution of their camouflage strategies. The text generated by robots closely resembles real people in terms of language style, semantic coherence, and emotional expression, and the robots' behavioral patterns exhibit continuous updates and diversification. Existing static analysis methods based on fixed time windows cannot capture the temporal evolution of camouflage strategies. Furthermore, existing research (such as Socialbots on Fire, WWW 2022) indicates that social robots strategically adjust their behavior to evade detection in actual operation, but existing detection methods lack the ability to proactively model adversarial robot behavior.
[0007] 3. Existing detection methods often employ simple splicing or attention weighting for cross-modal feature fusion, lacking a mechanism to achieve semantic alignment between modalities at the optimal transmission level, resulting in insufficient utilization of multimodal information. In terms of behavior modeling, existing methods mostly use discrete time series models such as LSTM or GRU, which are difficult to accurately characterize the continuous dynamic features of user behavior under non-uniform sampling conditions. In terms of adversarial defense, existing methods mostly design classifiers from a passive detection perspective, lacking the ability to proactively model the dynamic evolution of robot camouflage strategies. Summary of the Invention
[0008] To address the aforementioned technical problems, this invention provides a social robot detection method based on dynamic graph neural networks, comprising the following steps:
[0009] S1. Obtain multi-source heterogeneous data of social network users, including user cross-modal behavior data (text, images), user attribute information, user time-series behavior sequences, and social network structure information;
[0010] S2. Construct a cross-modal feature alignment and fusion enhancement module. Use the BEiT3 multimodal pre-trained model to tokenize the image and text features respectively. Achieve token-level correspondence between image tokens and text tokens through local optimal transmission alignment in the AlignMamba mechanism (based on the Sinkhorn algorithm to solve the regularized optimal transmission plan). Achieve global alignment of feature distribution through maximum mean difference loss and generate multimodal fusion feature vectors in a unified semantic space.
[0011] S3. Construct an abnormal behavior detection and multi-agent collaborative adversarial module. Use a liquid neural network (LNN) to model the continuous time dynamic characteristics of user temporal behavior sequences through a first-order differential equation system. Use an autoencoder structure to calculate and reconstruct errors to identify abnormal behavior rhythms and generate anomaly scores. On this basis, introduce a multi-agent deep reinforcement learning (MADRL) framework. Use local graph structure features and anomaly scores as the state space and detection intervention measures as the action space. Use an Actor-Critic architecture to collaboratively optimize adversarial strategies from the defense side and generate strategy decision features.
[0012] S4. Construct a multi-granularity dynamic camouflage detection module, use graph neural network to aggregate neighbor node information, introduce multi-head self-attention mechanism to dynamically weight neighbor contributions, combine temporal self-attention to fuse multi-time step node representations, output spatiotemporal node features and predict camouflage probability.
[0013] S5 integrates multimodal feature vectors, spatiotemporal node features, and policy decision features, trains the model using a binary cross-entropy loss function, and outputs social robot detection results.
[0014] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0015] 1. This invention achieves local token-level alignment and global distribution alignment of cross-modal features through an innovative combination of BEiT3 and AlignMamba mechanisms. Compared with existing detection methods that only use text or simple multimodal concatenation, this invention reduces the semantic gap between images and text at two granularities: optimal transmission theory and distribution matching, effectively solving the problem of multimodal semantic confusion in social robots. Specifically, token-level local alignment is achieved by solving the regularized optimal transmission plan using the Sinkhorn algorithm, and global distribution alignment is achieved by using the maximum mean difference in the regenerating kernel Hilbert space. By reducing the semantic gap between images and text at both local and global granularities, the semantic consistency of multimodal fused feature vectors is significantly improved.
[0016] 2. This invention is the first to introduce Liquid Neural Networks (LNNs) into the field of social robot behavior modeling. It utilizes the continuous-time modeling capabilities of LNNs to capture the non-uniform sampling features and dynamic changes in user behavior sequences. Combined with autoencoder reconstruction errors, it identifies abnormal behavioral rhythms. Compared to traditional discrete-time series models such as LSTM / GRU, LNNs can more accurately characterize the microscopic differences between the rhythms of robot and human user behavior, effectively solving the problem of the difficulty in recognizing highly anthropomorphic social robot behavior. Specifically, the Liquid Neural Network models the continuous-time dynamic changes of the hidden state through first-order ordinary differential equations, enabling it to handle non-uniformly sampled behavior sequences. Compared to discrete-time series models, it captures the microscopic differences in behavioral rhythms more accurately, and the combination with the autoencoder reconstruction error mechanism achieves quantitative measurement of abnormal behavioral rhythms.
[0017] 3. This invention shifts multi-agent deep reinforcement learning from the attack-side perspective (existing research such as Socialbots onFire and RoBCtrl simulates detection avoidance behavior from the robot's perspective) to the defense-side perspective. By cooperating multiple agents to optimize detection intervention strategies, it achieves forward-looking adversarial modeling of the dynamic evolution of robot camouflage strategies, effectively compensating for the shortcomings of existing detection methods in adversarial adaptability. Specifically, by cooperating multiple agents to optimize detection intervention strategies, a collaborative paradigm of centralized training and decentralized execution is adopted, enabling the detection system to proactively adapt to the dynamic evolution of robot camouflage strategies, exhibiting stronger adversarial robustness compared to passive classifiers.
[0018] 4. This invention employs a systematic fusion framework of multimodal alignment, behavioral modeling, adversarial optimization, and graph structure learning. The modules are clearly coupled functionally (multimodal features → LNN augmentation input → anomaly score → MADRL state space → initial representation of graph nodes → camouflage probability), forming a closed-loop technology from multimodal perception to policy decision-making and structural analysis. This provides more comprehensive detection capabilities compared to methods using a single technical path. Specifically, the multimodal feature vector serves as the augmentation input to the liquid neural network, the anomaly score serves as the state space component of multi-agent reinforcement learning, and the policy decision features, multimodal features, and anomaly score together serve as the initial representation of dynamic graph nodes. The data flow between modules forms a complete closed-loop technology, providing more comprehensive detection capabilities compared to methods using a single technical path independently. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the overall process of a social robot detection method based on dynamic graph neural networks according to the present invention;
[0020] Figure 2 Enhanced sub-maps for cross-modal feature alignment and fusion;
[0021] Figure 3 The image is divided into sections for abnormal behavior detection and multi-granularity camouflage detection. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] like Figure 1 As shown, this invention provides a social robot detection method based on dynamic graph neural networks, specifically including the following steps:
[0024] S1. Data Acquisition and Preprocessing: Acquire text, images, user attributes, behavioral sequences, and social relationship data from social network users; preprocess multi-source heterogeneous data; and construct dynamic graph sequences according to timestamps. Specifically, this includes:
[0025] S11: Collect user data from the Twitter social platform, including text content, image content, user time-series behavior sequences (time series of actions such as posting, retweeting, liking, and commenting), and social relationship network topology (following / following relationships).
[0026] S12: Clean the raw data, remove blank text, duplicate user IDs, and zombie accounts with no interactive behavior, and unify the time-series behavior timestamp format to Unix timestamp;
[0027] S13: Label users to distinguish between machine users and human users, and build a labeled dataset.
[0028] S2, Achieving cross-modal feature alignment and fusion enhancement, such as... Figure 2 As shown, it specifically includes:
[0029] S21: Image and text feature encoding processing. The BEiT3 model is used to divide the image into a 4×4 pixel grid and convert it into discrete visual tokens. The text is segmented into word-level tokens to generate a text token sequence. The token sequence is randomly masked and then fed into the Multiway Transformer encoder for training. The visual tokens are processed by a visual expert feedforward network and the text tokens are processed by a language expert feedforward network.
[0030] S22: Local alignment is achieved through the AlignMamba mechanism. Specifically, based on optimal transmission theory, an image token set is defined. and text token set Cost matrix between ,in Euclidean distance; introduce an entropy regularization term. The Sinkhorn algorithm is used to iterate 50 times to find the regularized optimal transmission plan. ,in The regularization coefficient is used; Weighted mapping of text tokens to image token space Achieve token-level local feature alignment;
[0031] S23: Global alignment is achieved using the maximum mean difference. In the reproducing kernel Hilbert space (RKHS), this is achieved through a Gaussian kernel function. Calculate the empirical mean embedding of the image feature distribution p(v) and the text feature distribution q(t), and minimize The loss causes the feature distributions of the two modes to tend to be consistent;
[0032] S24: Weighted fusion of aligned image and text features generates a multimodal feature vector. ,in and These are aligned image and text features. These are learnable fusion weights.
[0033] S3, Abnormal Behavior Detection and Multi-Agent Cooperative Adversarial Systems, such as Figure 3As shown, it specifically includes:
[0034] S31: The multimodal feature vector generated in step S2... With user time sequence behavior sequence By splicing the data together, an enhanced input can be formed. ,in For users in time Behavioral feature vectors (including statistics such as posting frequency, interaction type distribution, and active time period distribution);
[0035] S32: Using a liquid neural network (LNN) to model the dynamic changes of the hidden state of user behavior through a system of first-order ordinary differential equations:
[0036]
[0037] in, Let x(t) be the hidden state vector, x(t) be the augmentation input, and τ = 0.5 be the learnable liquid time constant (controlling the state decay rate). , Let be the weight matrix, and b be the bias term. This differential equation is numerically integrated using an ODE solver.
[0038] S33: Train the LNN using an autoencoder structure. In the encoder part, the final hidden state of the LNN from the behavior sequence is mapped to a fixed-length latent variable through linear projection. The decoder part uses latent variables. Using the initial state, a reconstructed sequence is generated autoregressively through another LNN. By minimizing the reconstruction error Optimize model parameters. Calculate the reconstruction error for each user u. As an anomaly score, the detection threshold is set based on the distribution of anomaly scores among human users on the validation set. (e.g., taking the 95th percentile of human user anomaly scores), Users are marked as candidates for abnormal behavior;
[0039] S34: Introduces a multi-agent deep reinforcement learning framework to collaboratively optimize social robot detection strategies from the defense side. Specific settings are as follows:
[0040] (a) Agent Configuration: K=4 homogeneous agents are configured, each responsible for optimizing detection strategies in different sub-regions of the social network. Each agent i maintains an independent Actor network. and Critic Network ;
[0041] (b) State space: The state observed by agent i at time step t ,in This represents the local neighborhood structure features of the current user node encoded by GNN (K = 2nd order neighbor aggregation vector, dimension 128). The abnormal score calculated in step S33 The user behavior statistical feature vector includes the number of posts in the past 7 days, the entropy of interaction type, the variance of active time period, etc., with a dimension of 32, and the total state dimension is 161.
[0042] (c) Action Space: Discrete action set A = {0: marked as normal (maintain monitoring), 1: marked as low suspicion (increase monitoring frequency), 2: marked as moderate suspicion (trigger content review), 3: marked as high suspicion (send verification request), 4: marked as confirmed bot (restrict account functions)};
[0043] (d) Reward function: Joint reward ,in Based on the test results (true positive +1, false positive -0.5, missed detection -2), Based on the efficiency of the intervention (unnecessary verification requests -0.1), Based on policy consistency among agents (neighboring agents' label divergence is -0.3), weight coefficients =1.0, =0.3, =0.2;
[0044] (e) Policy optimization: The Actor network optimizes through policy gradients. Update, including the advantage function ; The Critic network minimizes the temporal difference error Update, discount factor =0.95. In each training round, each agent independently samples the trajectory and shares the value estimate with the central Critic, realizing a collaborative paradigm of centralized training and decentralized execution.
[0045] In one implementation, both the Actor network and the Critic network adopt a three-layer fully connected network structure with a hidden layer dimension of 128 and the ReLU function as the activation function.
[0046] S4. The implementation of the multi-granularity dynamic camouflage detection module specifically includes:
[0047] S41: Align the multimodal features generated in step S2 The abnormal scores generated in step S3 The initial node representation is constructed by concatenating the social network structure information (adjacency matrix A). ,in For node degree, Local clustering coefficients;
[0048] S42: Construct a dynamic graph sequence {G1, G2, ..., G_T}, dividing the social network into T time steps with a time window length of Δ=7 days, with each time step corresponding to a graph snapshot. ;
[0049] S43: Use a graph neural network to aggregate neighbor node information and update the l-th layer (l=0,1,2): ,in It is the mean aggregation function. It is the ReLU activation function;
[0050] S44: Introduce a multi-head self-attention mechanism (preferably 8 heads) to calculate the attention weights between node v and its neighbor u: The final node represents:
[0051] ;
[0052] It should be noted that the number of layers in the graph neural network and the number of heads in the multi-head self-attention mechanism can be adjusted according to the size of the dataset and the complexity of the model. In one implementation, the number of layers is 3, and the number of heads in the multi-head self-attention mechanism is 8.
[0053] S45: Introducing a temporal self-attention mechanism to fuse the representations of nodes at each time step: Temporal attention weights ;
[0054] S46: Spatiotemporal Node Representation A three-layer multilayer perceptron (MLP) classifier is used to output the camouflage probability. ,in This is the sigmoid function.
[0055] S5. The model training process specifically includes:
[0056] S51: Randomly divide the dataset into training, validation and test sets in a ratio of 7:1:2 to ensure that the ratio of robots to human users is consistent in each set (stratified sampling).
[0057] S52: Employs the AdamW optimizer with a weight decay factor of 0.01. Uses a differential learning rate strategy: the parameter learning rate for the BEiT3 pre-training module is 2 × 10⁻⁻⁶. 4 (Fine-tuning only the last two layers), the learning rate for the AlignMamba alignment module and LNN module is 1×10⁻³, the learning rate for the graph neural network module is 2×10⁻³, and the learning rate for the MLP classifier is 2×10⁻³; the learning rate for the Actor network in the MADRL module is 5×10⁻³.4 The Critic network has a learning rate of 1×10⁻³. The learning rate is decayed to 10% of the initial value using a cosine annealing strategy.
[0058] It should be noted that the learning rates for each module mentioned above are specific values used in this embodiment. In practical applications, the learning rates for each module can be adjusted according to the dataset size and task requirements. For example, the initial learning rate for the BEiT3 pre-training module can be set to 1×10⁻⁻⁻⁶. 4 ~5×10⁻ 4 The learning rate for the AlignMamba alignment module and the liquid neural network can be set to 5×10⁻ 4 The learning rate of the multi-agent reinforcement learning module can be set to 1×10⁻³, which is approximately 2×10⁻³. 4 ~5×10⁻ 4 The learning rate for the graph neural network and classifier parameters can be set to 1×10⁻³~5×10⁻³.
[0059] S53: Training the model using the binary cross-entropy loss function: ,in For nodes The true label, The probability of camouflage predicted by the model;
[0060] S54: After the model training is complete, output the spoofing probability for the input user data. Set the decision threshold θ = 0.5, when If the value is greater than or equal to θ, the user is considered a social bot; otherwise, the user is considered a human user.
[0061] In a specific embodiment, two public benchmark datasets, TwiBot-20 and TwiBot-22, were used for verification experiments. Both datasets contain user text, images, attribute information, behavioral sequences, and social relationship graphs.
[0062] Experimental results show that the present invention achieves good detection performance across multiple evaluation metrics. On the TwiBot-20 dataset, the present invention achieves an accuracy of 88.45%, a precision of 87.95%, a recall of 88.65%, and an F1 score of 88.28%. On the TwiBot-22 dataset, the present invention achieves an accuracy of 86.20%, a precision of 86.25%, a recall of 85.95%, and an F1 score of 86.05%. Compared with the representative baseline method selected in the experiments of this invention, the present invention improves the F1 score of the best-performing HGATN-MMRD on the TwiBot-20 and TwiBot-22 datasets by 1.83 percentage points and 1.70 percentage points, respectively.
[0063] Ablation experiments further validated the effectiveness of each key module. On the TwiBot-20 dataset, removing the cross-modal feature alignment and fusion enhancement module reduced the F1 score from 88.28% to 86.62%, a performance decrease of 1.66 percentage points; removing the abnormal behavior detection and multi-agent cooperative adversarial module reduced the F1 score to 86.95%, a decrease of 1.33 percentage points; removing the spatiotemporal attention mechanism reduced the F1 score to 87.35%, a decrease of 0.93 percentage points; and degenerating dynamic graph modeling into static graph modeling reduced the F1 score to 85.10%, a decrease of 3.18 percentage points.
[0064] On the TwiBot-22 dataset, removing the cross-modal feature alignment and fusion enhancement module reduced the F1 score from 86.05% to 82.94%, a decrease of 3.11 percentage points; removing the abnormal behavior detection and multi-agent cooperative adversarial module reduced the F1 score to 84.72%, a decrease of 1.33 percentage points; removing the spatiotemporal attention mechanism reduced the F1 score to 85.05%, a decrease of 1.00 percentage point; and degrading dynamic graph modeling to a static graph reduced the F1 score to 84.72%, a decrease of 1.33 percentage points. These results indicate that cross-modal alignment, abnormal behavior modeling, spatiotemporal attention, and dynamic graph modeling all have positive effects on the detection performance of social robots.
[0065] Furthermore, after replacing the BEiT3+AlignMamba cross-modal alignment module with CLIP, the F1 scores on the TwiBot-20 and TwiBot-22 datasets were 87.68% and 85.45%, respectively; after replacing the spatiotemporal multi-head self-attention dynamic GNN module with GAT, the F1 scores were 87.92% and 85.65%, respectively, both lower than the 88.28% and 86.05% of the complete model of this invention, further verifying the effectiveness of the cross-modal alignment method and the dynamic graph spatiotemporal modeling method adopted.
[0066] It should be noted that, in one optional embodiment, the model employs a differential learning rate strategy and a controlled variable method for hyperparameter optimization, sets the number of training epochs to 30, and introduces an early stopping mechanism (training stops if the validation set loss does not decrease for 5 consecutive epochs). The batch size is set to 8, the maximum length of the text sequence is limited to 128 tokens, and the image resolution is uniformly adjusted to 224×224 pixels.
[0067] Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to parameters such as the number of model layers, feature dimensions, number of attention heads, and time window length in these embodiments without departing from the principles and spirit of the present invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for detecting social robots based on dynamic graph neural networks, characterized in that, Includes the following steps: S1. Obtain text, images, user attributes, behavior sequences, and social relationship data of social network users, preprocess the multi-source heterogeneous data, and construct a dynamic graph sequence according to timestamps; S2. Perform cross-modal feature alignment and fusion enhancement operations: The BEiT3 multimodal pre-trained model is used to tokenize the image and text features respectively. The correspondence between image tokens and text tokens is calculated through the local optimal transmission alignment in the AlignMamba mechanism. The feature distribution is aligned by combining the global maximum mean difference loss to generate a multimodal fusion feature vector in a unified semantic space. S3. Execution of Abnormal Behavior Detection and Multi-Agent Cooperative Adversarial Operation: A liquid neural network is used to model the continuous time dynamic changes of the user's temporal behavior sequence through a first-order differential equation system. Combined with an autoencoder structure, abnormal behavior rhythm is identified by minimizing the reconstruction error, and an abnormality score is generated. On this basis, a multi-agent deep reinforcement learning framework is introduced. The local network graph structure features and abnormal scores are used as the state space, and the detection intervention measures are used as the action space. The adversarial strategy is optimized through an Actor-Critic architecture to generate strategy decision features. S4. Perform multi-granularity dynamic camouflage detection operation: Based on the multimodal feature vector generated in step S2, the anomaly score generated in step S3, and the social network structure information, construct the initial representation of the node. For each time step snapshot of the dynamic graph sequence, use a graph neural network to aggregate the neighbor node information, introduce a multi-head self-attention mechanism to dynamically weight the neighbor contribution, combine temporal self-attention to fuse the node representation of each time step, output the spatiotemporal node features, and predict the camouflage probability through a multilayer perceptron classifier. S5. Integrate the multimodal feature vector, the spatiotemporal node features, and the policy decision features, train the model using the binary cross-entropy loss function, complete the social robot detection, and output the detection results.
2. The social robot detection method based on dynamic graph neural networks according to claim 1, characterized in that, The implementation of the cross-modal feature alignment and fusion enhancement module specifically includes: (a) The BEiT3 model is used to tokenize the image features and text features. The image is divided into pixel grids and converted into discrete visual tokens. The text is segmented into sub-words to generate text token sequences. The token sequences are randomly masked and then fed into the Multiway Transformer encoder for training. (b) Based on optimal transmission theory, a cost matrix is defined between the image token set and the text token set, where the elements of the cost matrix are the Euclidean distances between the image tokens and the text tokens; the regularized optimal transmission plan is solved by the Sinkhorn algorithm to obtain the soft correspondence matrix between the image tokens and the text tokens; the text tokens are weighted and mapped to the image token space using the soft correspondence matrix to achieve local token-level feature alignment. (c) Global alignment is achieved by using maximum mean difference. By calculating the empirical mean embedding of image feature distribution and text feature distribution in the regenerating kernel Hilbert space, the feature distribution of the two modalities is minimized to make them consistent. (d) The aligned image features and text features are weighted and fused to generate a multimodal feature vector.
3. The social robot detection method based on dynamic graph neural networks according to claim 1, characterized in that, The implementation of the abnormal behavior detection and multi-agent cooperative adversarial module includes: (a) Concatenate the multimodal feature vector with the user behavior sequence to form an enhanced input; (b) A liquid neural network is used to model the continuous-time dynamic changes of the hidden state of user behavior through a first-order ordinary differential equation system; (c) A liquid neural network is trained using an autoencoder structure. The encoder maps the behavior sequence to a fixed-length latent variable, and the decoder reconstructs the original behavior sequence based on the latent variable. The model parameters are optimized by minimizing the reconstruction error. The reconstruction error of each user is calculated as an anomaly score, and the anomaly detection threshold is determined by the validation set. (d) Introducing a multi-agent deep reinforcement learning framework, specifically including: setting a state space for each agent, enabling it to comprehensively acquire the local neighborhood graph structure features of the current user node, the anomaly score calculated in the aforementioned steps, and the statistical features of the user's historical behavior; setting an action space, enabling each agent to select appropriate detection intervention measures based on the current state, including marking the user as suspicious, adjusting the content visibility weight, triggering a verification request, and maintaining a normal monitoring level; designing a joint reward mechanism, taking detection accuracy, false alarm control effect, and the degree of policy coordination among multiple agents as the basis for policy optimization, and integrating various rewards through corresponding weights; and using an Actor-Critic architecture for policy optimization, enabling each agent to select appropriate detection intervention measures based on the current state, and improving the multi-agent collaborative detection capability through continuous interaction and policy updates, thereby obtaining policy decision features for social robot detection.
4. The social robot detection method based on dynamic graph neural networks according to claim 1, characterized in that, The implementation of the multi-granularity dynamic camouflage detection module includes: (a) The multimodal feature vector generated in step S2 is concatenated with the anomaly score and social network structure information generated in step S3 to form the initial node representation; (b) Construct a dynamic graph sequence by dividing the social network into multiple consecutive time steps according to time windows, with each time step corresponding to a graph snapshot; (c) Use a graph neural network to aggregate the neighbor information of each node at the current time step to update the node representation; (d) Introduce a multi-head self-attention mechanism to calculate the attention weights between a node and its neighbors, and obtain the fused node representation by splicing the multi-head outputs; (e) Introduce a temporal self-attention mechanism to perform temporal fusion on the node representations at each time step to obtain a spatiotemporal node representation containing information on the evolution of the camouflage strategy; (f) Based on the spatiotemporal node representation, a multilayer perceptron classifier is used to output the probability that the user is a disguised social robot.
5. The social robot detection method based on dynamic graph neural networks according to claim 1, characterized in that, In step S5, the model is trained using the binary cross-entropy loss function. After the model is trained, the spoofing probability output by the model is compared with a preset decision threshold. When the spoofing probability is greater than or equal to the decision threshold, the user is determined to be a social robot; otherwise, the user is determined to be a human user.
6. The social robot detection method based on dynamic graph neural networks according to claim 1, characterized in that, The model training employs a differential learning rate strategy, where modules using the BEiT3 multimodal pre-trained model are fine-tuned with a lower learning rate, while other modules besides the BEiT3 multimodal pre-trained model are trained with a higher learning rate. The training process uses cosine annealing learning rate decay and an early stopping mechanism.
7. The social robot detection method based on dynamic graph neural networks according to claim 2, characterized in that, The BEiT3 model performs tokenization encoding on image features by dividing the input image into a fixed-size pixel grid, and converting each grid into a visual token through a discrete variational autoencoder. It also performs tokenization encoding on text features by using a word-level segmenter to segment the text into word units and mapping them to token IDs, randomly masking the token sequence, and then feeding it into a Multiway Transformer encoder. The visual tokens are processed through a visual expert feedforward network, and the text tokens are processed through a language expert feedforward network.
8. The social robot detection method based on dynamic graph neural networks according to claim 3, characterized in that, In the autoencoder structure of the liquid neural network, the encoder part maps the final hidden state of the liquid neural network of the behavior sequence to a fixed-length latent variable through linear projection. The decoder part uses the latent variable as the initial state and generates a reconstructed sequence autoregressively through another liquid neural network. An anomaly detection threshold is set by the distribution of human user anomaly scores, and users whose reconstruction error exceeds the threshold are judged as candidates for behavioral anomalies.
9. The social robot detection method based on dynamic graph neural networks according to claim 3, characterized in that, The multi-agent deep reinforcement learning framework adopts a collaborative paradigm of centralized training and decentralized execution for policy optimization: during the training phase, each agent independently samples the interaction trajectory and shares the value estimate of each agent with the central Critic network to achieve globally collaborative policy learning; during the application phase, each agent independently executes the detection and intervention strategy based on its own Actor network.
10. A social robot detection system based on dynamic graph neural networks, characterized in that, include: The data acquisition and preprocessing module is used to acquire text, images, user attributes, behavioral sequences, and social relationship data of social network users, preprocess multi-source heterogeneous data, and construct dynamic graph sequences according to timestamps; The cross-modal feature alignment and fusion enhancement module, whose input is connected to the output of the data acquisition and preprocessing module, is used to tokenize and encode image and text features respectively using the BEiT3 multimodal pre-trained model. It calculates the correspondence between image tokens and text tokens through the local optimal transmission alignment in the AlignMamba mechanism, and combines the global maximum mean difference loss to achieve feature distribution alignment, generating a multimodal fusion feature vector in a unified semantic space. The abnormal behavior detection and multi-agent collaborative adversarial module has its input connected to the output of the cross-modal feature alignment and fusion enhancement module and the behavior sequence output of the data acquisition and preprocessing module, respectively. It is used to model the continuous time dynamic changes of the user's temporal behavior sequence through a first-order differential equation system using a liquid neural network, and to identify abnormal behavior rhythms by minimizing reconstruction errors using an autoencoder structure, generating an anomaly score. A multi-agent deep reinforcement learning framework is introduced, with local network graph structure features and anomaly scores as the state space and detection intervention measures as the action space. The adversarial strategy is collaboratively optimized through an Actor-Critic architecture to generate strategy decision features. The multi-granularity dynamic camouflage detection module has its inputs connected to the outputs of the cross-modal feature alignment and fusion enhancement module, the anomaly score output of the abnormal behavior detection and multi-agent collaborative adversarial module, and the social relationship data output of the data acquisition and preprocessing module. It is used to construct initial node representations based on the multi-modal fusion feature vectors, the anomaly scores, and social network structure information. For each time step snapshot of the dynamic graph sequence, it uses a graph neural network to aggregate neighbor node information, introduces a multi-head self-attention mechanism to dynamically weight neighbor contributions, combines temporal self-attention to fuse the node representations of each time step, outputs spatiotemporal node features, and predicts the camouflage probability using a multilayer perceptron classifier. The detection output module is used to fuse the multimodal fusion feature vector, the spatiotemporal node features, and the policy decision features, train the model through the binary cross-entropy loss function, complete the social robot detection, and output the detection results.
