A social robot detection method and device based on heterogeneous motif features

By constructing a heterogeneous social relationship network and extracting heterogeneous motif structural features, and using the random forest model to detect social robots, we solve the problems of capturing dynamic changes in user relationships and feature extraction in the existing technology, and achieve efficient and accurate social robot identification. Improved scalability and security of detection.

CN118313944BActive Publication Date: 2024-09-20BEIJING NORMAL UNIV AT ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing social robot detection methods have limitations in capturing dynamic changes in user relationships in social networks and extracting effective features, resulting in reduced detection results. In particular, graph theory-based methods require a large amount of computing resources and are difficult to expand.

Method used

By constructing a heterogeneous social relationship network, extracting heterogeneous motif structural features, and using the random forest model to detect social robots, only local structural information can be used to accurately identify social robots, reflect the dynamic evolution of user relationships, and improve the accuracy of detection. and scalability.

Benefits of technology

This method significantly improves the accuracy and efficiency of social robot detection, overcomes the complex data set collection problems of the existing technology, improves the scalability of the algorithm, and makes detection more convenient and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118313944B
    Figure CN118313944B
Patent Text Reader

Abstract

The present invention discloses a social robot detection method and device based on heterogeneous motif features, which belongs to the field of cyberspace security. The method comprises: collecting social network data, constructing a social relationship network by following the relationship between social accounts on the social network, then extracting heterogeneous motif features in the network, and inputting the features as a data set into a model for training and testing, thereby detecting social robots. The present invention only needs to extract local structural information in the user network to accurately identify social robots, and the extracted heterogeneous motif features can effectively reflect the dynamic evolution of user relationships in the social network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cyberspace security, and more specifically to a social robot detection method and device based on heterogeneous motif features. Background Art

[0002] In recent years, with the surge in the number of users of social networking platforms, social networks have become a key channel for people to obtain information. However, in this huge user group, the emergence of social robots has gradually aroused people's vigilance. These accounts are not operated by real people, but are controlled by programs, so they are collectively referred to as social robots by the public. It is worth noting that not all social robots are harmless, and some of them have malicious purposes. They will spread false information, mislead public opinion, and even seek improper benefits. Therefore, the detection of these social robots is particularly important.

[0003] Existing social robot detection methods cover a variety of approaches, including graph-based algorithms, machine learning techniques, and crowdsourcing strategies. Although these methods have their own characteristics, they also have certain limitations. For example, graph-based algorithms are good at discovering closely connected robot groups in social networks, but attackers may let robots simulate human social relationship graphs to evade detection. Machine learning technology can extract characteristics such as the behavior patterns of social robots from massive user behavior data, and then train detection models to improve detection efficiency and accuracy. However, this method is also affected by data quality, the complexity of user behavior, and the dynamic changes of social networks. Crowdsourcing strategies have advantages in data accuracy and reliability, but their implementation in large-scale networks may lead to high costs and privacy issues.

[0004] Among these diverse detection algorithms, extracting effective features is the key to detecting social robots. Effective features need to be able to accurately capture the behavioral patterns of social robots. However, since the behavior and strategies of social robots may continue to evolve, this increases the difficulty of feature engineering.

[0005] At present, graph-based methods can effectively discover closely connected communities or groups in social networks. This feature is particularly critical when identifying social robots, because social robots tend to form specific communities and have a lot of interactions with each other. Although existing graph-based methods have shown certain effectiveness in social robot detection, most methods still need to collect diverse feature data of users, which not only increases the complexity of data collection, but also most of the collected features are often difficult to accurately capture the dynamic evolution of user relationships in social networks. Therefore, when extracting features that can accurately distinguish social robot groups from human groups, it is also necessary to explore their applicability in different social networks to solve the current challenges. For example: Patent 202010044446.X discloses a social robot identification method based on a graph attention network. The method uses the interactive relationships such as forwarding and comments between accounts on social networks to create a complex graph structure, and then classifies the nodes in the graph by constructing a graph attention network, training and testing it, so as to determine whether the account is a social robot. However, graph attention networks usually require a lot of computing resources and training time, which may limit the scalability and practical application of this method. Another example: Patent 202310538132.9 discloses a social robot detection method, device, equipment and storage medium, which obtains social attribute data, tweet attribute data and social behavior data, constructs the node feature vector of the user node and the association relationship between the user node and other user nodes, and then mines the behavioral correlation between different user accounts to identify social robots and social robot groups disguised as real users. However, a key limitation of this method is that it cannot fully capture the dynamic changes of user behavior and relationships in social networks, thereby reducing the effectiveness of social robot detection.

[0006] Therefore, how to provide a social robot detection method and device based on heterogeneous motif features that can solve the above problems is an issue that technical personnel in this field urgently need to solve. Summary of the invention

[0007] In view of this, the present invention provides a social robot detection method and device based on heterogeneous motif features, constructing more representative and adaptive features to cope with the ever-changing behavior patterns of social robots, thereby improving the accuracy and effectiveness of detection.

[0008] In order to achieve the above object, the present invention provides the following technical solutions:

[0009] A social robot detection method based on heterogeneous motif features comprises the following steps:

[0010] S100: Collecting social network data, and classifying and labeling the social network data to obtain real account data and robot account data;

[0011] S200: Building a heterogeneous relationship network based on the real account data and the robot account data;

[0012] S300: defining a heterogeneous motif structure, and performing refinement processing on the heterogeneous motif structure to obtain heterogeneous motif structure features;

[0013] S400: extracting the heterogeneous motif structure features in the heterogeneous relationship network to obtain heterogeneous motif structure feature data;

[0014] S500: constructing a random forest recognition model, inputting the heterogeneous motif structure feature data into the random forest recognition model for training and verification;

[0015] S600: Through the trained random forest recognition model, the heterogeneous motif structure of the node to be identified is used to detect social robots.

[0016] Preferably, the S200 includes:

[0017] Each account in the real account data and the robot account data is regarded as a user node v, and the attention relationship between the user nodes v is converted into a directed edge in the network, and a heterogeneous relationship network is constructed based on the user nodes and the directed edges.

[0018] Preferably, the defined heterogeneous motif structures are closed characteristic heterogeneous motif structures, first-order characteristic heterogeneous motif structures and second-order characteristic heterogeneous motif structures.

[0019] Preferably, the conditions of the closed characteristic heterogeneous motif structure are:

[0020]

[0021] Among them, v test represents the node to be detected, V is the set of nodes in the network, e(v i ,v j )∈E represents node v i Points to node v j , and E is the set of directed edges in the network.

[0022] Preferably, the condition of the first-order characteristic heterogeneous motif structure is:

[0023]

[0024] Preferably, the condition of the second-order characteristic heterogeneous motif structure is:

[0025]

[0026] Preferably, the heterogeneous motif structure is refined to obtain:

[0027]

[0028] Among them, V is the set of nodes in the network, v i (label) represents node v i The label, v j (label) represents node v j A and B represent label information, human represents a real account, and robot represents a robot account.

[0029] Preferably, the S400 includes:

[0030] In the heterogeneous relationship network G(V, E), set V neighbor (a) represents the set of neighbor nodes of node a, and there exists any v i ,v j ∈V neighbor (a), and the number of heterogeneous motif structures in which node a participates can be obtained by the following preset conditions:

[0031]

[0032] Where E is the set of directed edges in the network, v human is the real account node, v a For nodes a, v i For nodes i, v j For node j, e(v a ,v i ) represents node v a Points to node v i The directed edge of .

[0033] Preferably, the S500 includes:

[0034] Use sample data to extract heterogeneous motif structural features, and divide the sample data into training set, validation set and test set;

[0035] Input each heterogeneous motif feature involved in the node in the training set and the node label in the training set into the random forest recognition model, and train the optimal parameters of the model through the training set, thereby generating a random forest recognition model;

[0036] Preferably, the S600 includes:

[0037] The generated random forest prediction model is tested based on the test set to detect the social robot.

[0038] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a social robot detection method based on heterogeneous motif features are implemented.

[0039] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a social robot detection method and device based on heterogeneous motif features, which processes user data on social networks to construct a heterogeneous social relationship network. Heterogeneous motif features are extracted from the network, and these feature data sets are used to classify them, thereby identifying social robots. This method only needs to extract local structural information in the user network to accurately identify social robots, and the extracted heterogeneous motif features can effectively reflect the dynamic evolution of user relationships in social networks. This not only overcomes the difficulties of complex data set collection faced by existing social robot technology based on graph theory, but also significantly improves the scalability of the algorithm. Therefore, the application of this method in actual systems is more convenient and efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0041] Figure 1 It is a schematic diagram of the process of the social robot detection method of the present invention;

[0042] FIG2( a ) is a schematic diagram of a motif structure of a first-order characteristic provided by the present invention;

[0043] FIG2( b ) is a schematic diagram of the closed-type phantom structure provided by the present invention;

[0044] FIG2( c ) is a schematic diagram of a motif structure of second-order characteristics provided by the present invention;

[0045] Figure 3 Schematic diagram of the model structure refinement process provided by the present invention

[0046] Figure 4 Schematic diagram of the heterogeneous motif extraction process provided by the present invention. DETAILED DESCRIPTION

[0047] 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.

[0048] See also Figure 1 The embodiment of the present invention discloses a social robot detection method based on heterogeneous motif features, which collects social network data, builds a social relationship network by following the attention relationship between social accounts on the social network, then extracts heterogeneous motif features from the network, and inputs the features as a data set into the model for training and testing, thereby detecting social robots.

[0049] Specifically, a social robot detection method based on heterogeneous motif features includes the following steps:

[0050] S100: Collecting social network data: Manually collect the friend list data of some accounts on the social platform and mark whether each account is a real human user or a robot user.

[0051] S200: Constructing a heterogeneous social network. User node v i Followed another user node v j , you can create a line from v i to v j The directed edge e(v i , v j ). In this network, each node is given a label indicating whether it belongs to a human user or a robot user. Therefore, the nodes in the network are divided into two categories, which also makes this network a heterogeneous network.

[0052] S300: Define heterogeneous motif structures. In a directed network, three nodes can construct 13 unique connectivity relationships. Considering the differences in the nodes to be detected, the motif structure can be further divided into three categories: closed characteristics, first-order characteristics, and second-order characteristics. The node labels in the heterogeneous network are then used to further refine these 30 motif structures into 114 heterogeneous motif structures.

[0053] S400: Extracting heterogeneous motif features. The number of 114 heterogeneous motif structures involved in each node to be detected is used as a feature value.

[0054] S500: Input the heterogeneous motif structural feature data into the model for training and testing.

[0055] In a specific embodiment, S100: collecting social network data includes:

[0056] We manually collected the friend list data of some accounts on social platforms over a period of time, and classified these accounts with detailed labels, clearly marking whether each account is a real human user or a robot user.

[0057] In a specific embodiment, S200: constructing a heterogeneous social relationship network includes:

[0058] The constructed social relationship network is a directed unweighted network in the form of G(V, E), where V is the set of nodes in the network, E is the set of edges in the network, and edges are represented by e(v i ,v j )∈E. Each node v∈V in the network has f(v)∈A, which means that the type mapping function of each node is f:V→A. Each edge e∈E has r(e)∈R, which means that the type mapping function of each edge is γ:E→R. When R and A satisfy |A|>1 or |R|>1, that is, the number of edge types or the number of node types is greater than 1, then the network is defined as a heterogeneous network, otherwise it is a homogeneous network. The motif extracted from a homogeneous network is defined as a homogeneous motif, otherwise it is a heterogeneous motif.

[0059] Specifically, the heterogeneous network rules constructed in this step are: based on the social network data collected in S100, each account is abstracted as a node v in the graph, and the following relationship between user nodes is converted into an edge in the network. Specifically, if the user node v i Followed another user node v j , you can create a line from v i to v j The directed edge e(v i ,v j ). In this way, all users collected in step 1 are converted into nodes of the network, and corresponding directed edges are formed according to the attention relationship between them. Finally, a complete social relationship network is constructed, which accurately reflects the attention and attention relationship between users. In addition, each node is given a corresponding label to clearly identify whether it belongs to a human user (human) or a robot user (robot). Since the labels of nodes in the network are divided into two categories, the number of node types in the constructed network is greater than one, so the social relationship network constructed in this step is a heterogeneous network.

[0060] In a specific embodiment, S300: defining a heterogeneous motif structure includes:

[0061] A motif refers to a subgraph structure that appears frequently in a network and is an important network topology. Motifs can be used to study the interaction patterns between nodes in a topological structure, which helps to understand the local structure and function of a complex network. In this method, this embodiment focuses on extracting motif structure features from a constructed heterogeneous social network, so the acquired motif structure exhibits the characteristics of a heterogeneous motif structure. The core task of this step is to determine the various types of heterogeneous motif structures as features to be extracted in subsequent feature engineering.

[0062] The motif is usually composed of a few nodes connected to each other. In a directed graph, these three nodes can construct 13 unique connectivity relationships. Considering the differences in the nodes to be detected, the motif structure can be further divided into three categories: closed characteristics, first-order characteristics, and second-order characteristics.

[0063] The closed property of the motif structure is defined as: there is a three-node network structure G(V, E),

[0064]

[0065] Among them, v test represents the node to be detected, V is the set of nodes in the network, e(v i ,v j )∈E represents node v i Points to node v j , and E is the set of directed edges in the network. If the network structure satisfies the above four conditions, it is called a motif structure with closed characteristics.

[0066] The first-order characteristics of the motif structure are defined as: there is a three-node network structure G(V, E),

[0067]

[0068] If the network structure meets the above three conditions, it is called a motif structure with first-order characteristics.

[0069] The second-order characteristics of the motif structure are defined as: there is a three-node network structure G(V, E),

[0070]

[0071] If the network structure meets the above three conditions, it is called a motif structure with second-order characteristics.

[0072] Specifically, considering the differences of the nodes to be detected and the characteristics of the motif structure, these 13 motif relationships can be finely divided into 30 different motif structures, such as Figure 2(a)-Figure 2(c) shown.

[0073] Since each node in a heterogeneous network has its corresponding label, each of the 30 constructed motif structures will be further refined into multiple specific motif structures due to the different labels of other nodes except the node to be detected. In order to make a more accurate subdivision of each motif structure, this embodiment uses the following formula for refinement: If there is a motif structure network G(V, E), let,

[0074]

[0075] Among them, V is the set of nodes in the network, v i (label) represents node v i The label, v j (label) represents node v j A and B represent label information, human represents a real account, and robot represents a robot account.

[0076] The values ​​of A and B mainly depend on v i and v j The specific label value in the heterogeneous network is determined. According to the above formula, the motif structure can be refined to obtain 114 heterogeneous motif structures. The refinement process is as follows: Figure 3 shown.

[0077] Specifically, the definition of heterogeneous motif structure: motifs are usually composed of a few nodes connected to each other. In a directed graph, three nodes can construct 13 unique connectivity relationships. According to the differences in the nodes to be tested, this method further divides the motif structure into three categories: closed characteristics, first-order characteristics, and second-order characteristics, thereby constructing 30 motif structures. Further refine these 30 motif structures using node labels in heterogeneous networks to obtain 114 heterogeneous motif structures.

[0078] In a specific embodiment, S400: extracting heterogeneous motif features includes:

[0079] The number of heterogeneous motif structures involved in each detection node is taken as the eigenvalue, which is represented by Motif(n), where Motifn(i) represents v i The number of heterogeneous motifs participating in the nth type, the counting method of the heterogeneous point motifs participating in a node is obtained by brute force enumeration and performing a structural match every time it is scanned. a The first method of extracting the number of heterogeneous motif structures involved is as follows: there is a network G(V, E), v a ∈V,V neighbor (a) indicates v a The set of neighbor nodes of v i ,v j ∈Vneighbor (a), if satisfied,

[0080]

[0081] Then the value of Motif1(a) is increased by 1.

[0082] Where E is the set of directed edges in the network, v human is a human node, v a For nodes a, v i For nodes i, v j For node j, e(v a ,v i ) represents node v a Points to node v i The directed edge of .

[0083] The calculation methods of other features are similar. Figure 4 This is explained in Figure 4 For example, in the social network a The heterogeneous motif feature Motif1(a) is 1. a The operation of the other 113 extraction methods for the number of heterogeneous motif structures not mentioned above is similar to the above extraction method. The key lies in accurately matching the set conditions with the unique structures of various heterogeneous motifs.

[0084] In the heterogeneous network formed by S200, 114 heterogeneous motif structural features defined and constructed in S300 are extracted, which can be expressed as:

[0085] A i,n =motif n (i);

[0086] Where A is an M×N matrix, which is used to represent the number of all heterogeneous motif structures corresponding to all user nodes, M is the number of user nodes, and N is the number of heterogeneous motif structure types. If the number of the nth heterogeneous motif structure corresponding to user node i is 0, it is expressed as:

[0087] A i,n =0;

[0088] In a specific embodiment, S500: inputting the heterogeneous motif structure feature data into a random forest model for training and testing, including:

[0089] The sample data is used to extract the structural features of heterogeneous motifs to form a feature data set, and the data set is divided into a training set, a validation set, and a test set, where the ratio of the training set to the validation set is 9:1. The feature data in the training set and the node labels in the training set are input into the random forest model, and the optimal parameters of the model are trained through the validation set. The test set is used to judge the accuracy of the generated random forest prediction model. Finally, based on the prediction results of the model, it is possible to accurately determine which users are social robots.

[0090] Specifically, this embodiment uses the number of various heterogeneous motif structures that each detection node participates in as a characteristic value. For counting a certain heterogeneous motif structure that a certain node participates in, a fine scanning method is adopted, that is, each time the network structure between the node and its neighboring nodes is scanned, a structure matching is performed, so as to accurately obtain the number of motif structures it participates in.

[0091] More specifically, the present invention extracts heterogeneous motif features from the constructed heterogeneous social relationship network, and inputs the features into the random forest model to detect social robots. The motif can not only cover the local features in the network, but also provide clues for understanding the overall structural evolution of the network. Through network analysis through motifs, a finer granularity can be obtained, so as to grasp the structure and dynamics of the network more accurately. And the heterogeneous motifs extracted from the heterogeneous network can also more comprehensively reflect the social relations in the heterogeneous network. This solves the problem that the existing graph-based social robot recognition technology fails to extract features that can capture the dynamic changes of user behaviors and relationships in social networks. In addition, the selection and extraction process of motif features is usually closely related to specific tasks and data sets, so it can be optimized and adjusted according to different application scenarios. This flexibility enables the algorithm to adapt well to different data and tasks, thereby improving its scalability.

[0092] In the heterogeneous social network constructed based on data of the present invention, the extracted heterogeneous motif features can accurately capture the local information in the network structure. This information fully reflects the interaction and relationship between nodes, so that the behavior patterns of social robots and human users can be more accurately identified, thereby improving the accuracy of social robot detection. And because of the flexibility and versatility of the motif features, when this method is migrated to other social platform data, it can also detect robot users in the network excellently. And because of the improvement in the accuracy of social robot recognition, malicious robots can be more effectively prevented from attacking social network platforms, spreading false information or committing fraudulent acts, thereby improving the security of social networks.

[0093] An embodiment of the present invention discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a social robot detection method based on heterogeneous motif features are implemented.

[0094] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0095] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A social robot detection method based on heterogeneous motif features, characterized in that: The following steps are involved: S100: Collecting social network data, and classifying and labeling the social network data to obtain real account data and robot account data; S200: Building a heterogeneous relationship network based on the real account data and the robot account data; S300: defining a heterogeneous motif structure, and performing refinement processing on the heterogeneous motif structure to obtain heterogeneous motif structure features; S400: extracting the heterogeneous motif structure features in the heterogeneous relationship network to obtain heterogeneous motif structure feature data; S500: constructing a random forest recognition model, inputting the heterogeneous motif structure feature data into the random forest recognition model for training and verification; S600: Through the trained random forest recognition model, the heterogeneous motif structure features of the nodes to be identified are used to detect social robots.

2. A social robot detection method based on heterogeneous motif features according to claim 1, characterized in that: The S200 includes: Each account in the real account data and robot account data is regarded as a user node v, and the attention relationship between the user node v and other nodes is regarded as a directed edge in the network. A heterogeneous relationship network is constructed based on all nodes and all directed edges.

3. A social robot detection method based on heterogeneous motif features according to claim 1, characterized in that: The defined heterogeneous motif structures are closed characteristic heterogeneous motif structures, first-order characteristic heterogeneous motif structures and second-order characteristic heterogeneous motif structures.

4. A social robot detection method based on heterogeneous motif features according to claim 3, characterized in that: The conditions of the closed characteristic heterogeneous motif structure are: Among them, v test represents the node to be detected, V is the set of nodes in the network, e(v i ,v j )∈E represents node v i Points to node v j , E is the set of directed edges in the network; if the network structure meets the above four conditions, it is a motif structure with closed characteristics.

5. A social robot detection method based on heterogeneous motif features according to claim 3, characterized in that: The conditions of the first-order characteristic heterogeneous motif structure are: Among them, v test represents the node to be detected, V is the set of nodes in the network, e(v i ,v j )∈E represents node v i Points to node v j , E is the set of directed edges in the network; if the network structure meets the above three conditions, it is a motif structure with first-order characteristics.

6. A social robot detection method based on heterogeneous motif features according to claim 3, characterized in that: The conditions of the second-order characteristic heterogeneous motif structure are: Among them, v test represents the node to be detected, V is the set of nodes in the network, e(v i ,v j )∈E represents node v i Points to node v j , E is the set of directed edges in the network; if the network structure meets the above three conditions, it is a motif structure with second-order characteristics.

7. A social robot detection method based on heterogeneous motif features according to claim 1, characterized in that: The heterogeneous motif structure is refined to obtain: Among them, v test represents the node to be detected, V is the set of nodes in the network, v i (label) represents node v i The label, v j (label) represents node v j A and B represent label information, human represents a real account, and robot represents a robot account.

8. The social robot detection method based on heterogeneous motif features according to claim 1 is characterized in that: The heterogeneous motif structural feature data obtained in S400 includes: In the heterogeneous relationship network G(V, E), set V neighbor (a) represents the set of neighbor nodes of node a, and there exists any v i ,v j ∈V neighbor (a), and the number of heterogeneous motif structures involved in node a is obtained through the following preset conditions. The preset conditions are: Where E is the set of directed edges in the network, v human is the real account node, v a For nodes a, v i For nodes i, v j For node j, e(v a ,v i ) represents node v a Points to node v i The directed edge of .

9. A social robot detection method based on heterogeneous motif features according to claim 1, characterized in that: The S500 includes: Use sample data to extract heterogeneous motif structural features, and divide the sample data into training set, validation set and test set; Each heterogeneous motif feature involved in the nodes in the training set and the node labels in the training set are input into the random forest recognition model, and the optimal parameters of the model are trained through the training set to generate a random forest recognition model.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the social robot detection method based on heterogeneous motif features as described in any one of claims 1 to 9 are implemented.