Identity recognition model training method, identity recognition method and electronic equipment
By obtaining users' static attributes and dynamic behavior information, using graph neural networks to extract feature vectors and perform cluster analysis, it solves the problems of low efficiency and high cost of user identification in the existing technology, and achieves more accurate user classification and personality. Professional service recommendations enhance the competitiveness of the freight platform.
Patent Information
- Application Number
- CN202410877770.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
AI Technical Summary
Existing user identity recognition methods have low recognition efficiency, high recognition cost, poor adaptability and generalization, and are difficult to handle complex user data.
By obtaining the user's static attribute information and dynamic behavior information, a transportation behavior structure diagram is generated, the graph neural network model is used to extract dynamic feature vectors and static feature vectors, and the clustering center is combined for unsupervised training of the identity recognition model to achieve accurate user identity. Identify.
It reduces manual intervention and maintenance costs, improves the accuracy of user classification and personalized service recommendations, and enhances the competitiveness and profitability of the freight platform.
Smart Images

Figure CN118735567A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and in particular to a training method for an identity recognition model, an identity recognition method, and an electronic device. Background Art
[0002] Freight platforms are service platforms that connect users and drivers through the Internet. They can improve the efficiency and quality of freight transportation and reduce transportation costs and risks. However, freight platforms also face the challenge of user identification. User identification refers to the classification and identification of users registered on the freight platform to determine their true identity and attributes. Common user types include scalpers, third-party logistics (3PL) and first-hand users. Scalpers are users who obtain the source of goods through intermediaries or resale. They usually charge additional fees to the original users and drivers, affecting the reputation and profits of the platform. 3PL is a professional organization that provides logistics services. They form a cooperative or competitive relationship with the platform, affecting the market share and revenue of the platform. First-hand users are users who directly own the source of goods. They are usually the core users of the platform and play an important role in the stability and development of the platform. Therefore, identifying user identities can help freight platforms to make accurate user portraits and personalized service recommendations, improve user satisfaction and loyalty of freight platforms, and enhance the competitiveness and profitability of freight platforms.
[0003] In related technologies, user identities are usually identified using rule-based methods. Among them, rule-based methods use preset rules to judge and classify user information or behavior. Although simple and easy to implement, they require manual rule formulation and judgment, resulting in low recognition efficiency, high cost of rule update and maintenance, and poor adaptability and generalization. Summary of the invention
[0004] The present application provides an identity recognition model training method, an identity recognition method and an electronic device to solve the problems of low recognition efficiency, high recognition cost, and poor adaptability and generalization of existing user identity recognition methods.
[0005] In a first aspect, the present application provides a method for training an identity recognition model, comprising:
[0006] Obtaining static attribute information and dynamic behavior information corresponding to each of the multiple users; wherein the static attribute information includes the registration information of the user on the freight platform; and the dynamic behavior information includes the transportation behavior related information generated by the user on the freight platform;
[0007] For each of the multiple users, a transportation behavior structure graph of the user is generated based on the dynamic behavior information corresponding to the user; the transportation behavior structure graph includes multiple nodes and multiple edges, each of the nodes is used to indicate a shipping place or a receiving place of a transportation behavior generated by the user, and the edge is used to connect two associated nodes, and the two associated nodes are respectively a shipping place and a receiving place of a transportation behavior generated by the user, and the weight information corresponding to the edge is used to indicate the number of transportation behaviors generated by the user between the two associated nodes;
[0008] The transport behavior structure graph is processed using a graph neural network model to obtain a dynamic feature vector corresponding to the user;
[0009] Determine a comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector; wherein the static feature vector is obtained based on the static attribute information corresponding to the user;
[0010] Based on the cluster center and the multiple comprehensive feature vectors corresponding to the multiple users, an identity recognition model is trained; wherein the identity recognition model is used to predict the identity type of the user registered on the freight platform.
[0011] In one possible design, the dynamic behavior information includes multiple shipping information, and each shipping information includes at least shipping location information, receiving location information and cargo information.
[0012] In a possible design, the transport behavior structure graph is processed using a graph neural network model to obtain a dynamic feature vector corresponding to the user, including:
[0013] For each of the nodes in the transport behavior structure diagram, determine the target shipment information corresponding to the node; wherein the target shipment information is shipment information whose shipping place information among the multiple shipment information is the same as the shipping place or the receiving place indicated by the node; the target shipment information includes one or more of the shipment information;
[0014] For each of the nodes in the transport behavior structure diagram, feature extraction and encoding are performed on the shipping place information, the receiving place information, and the cargo information in the target shipping information to obtain a first feature vector corresponding to the node;
[0015] Using a graph neural network model, a graph convolution operation is performed on the first feature vector corresponding to each of the nodes to obtain a second feature vector corresponding to each of the nodes; wherein the second feature vector corresponding to each of the nodes includes information about the node and information about other nodes associated with the node;
[0016] Aggregating a plurality of second eigenvectors corresponding to the plurality of nodes in the transport behavior structure graph to obtain a third eigenvector;
[0017] Based on the third feature vector, a dynamic feature vector of the user is obtained.
[0018] In a possible design, the dynamic behavior information also includes favorable comment rate information and transaction number information;
[0019] Before obtaining the dynamic feature vector of the user based on the third feature vector, the method further includes:
[0020] Performing feature extraction and encoding processing on the favorable comment rate information to obtain a fourth feature vector;
[0021] Performing feature extraction and encoding processing on the transaction number information to obtain a fifth feature vector;
[0022] The obtaining the dynamic feature vector of the user based on the third feature vector includes:
[0023] A dynamic feature vector of the user is obtained based on the third feature vector, the fourth feature vector and the fifth feature vector.
[0024] In a possible design, before determining the comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector, the method further includes:
[0025] Performing feature extraction and encoding processing on the registration information in the static attribute information to obtain a sixth feature vector corresponding to the registration information;
[0026] Based on the sixth feature vector, a static feature vector corresponding to the static attribute information is obtained.
[0027] In a possible design, the training of the identity recognition model based on the cluster center and the multiple comprehensive feature vectors corresponding to the multiple users includes:
[0028] Clustering the multiple comprehensive feature vectors based on the multiple cluster centers to obtain a clustering result;
[0029] The multiple cluster centers are updated according to the clustering results, and the multiple comprehensive feature vectors are clustered based on the multiple cluster centers, and the clustering is iteratively performed until the clustering convergence condition is met, thereby obtaining multiple target cluster centers and multiple target user groups; wherein the multiple target user groups correspond one to one to the types of the identity types of the users;
[0030] The identity recognition model is trained based on the multiple target cluster centers and the multiple target user groups.
[0031] In a second aspect, the present application provides an identity recognition method, comprising:
[0032] Obtain target static attribute information and target dynamic behavior information corresponding to the target user; wherein the target static attribute information includes the registration information of the target user on the freight platform; the target dynamic behavior information includes information related to the target transportation behavior generated by the target user on the freight platform;
[0033] Based on the target dynamic behavior information corresponding to the target user, a target transportation behavior structure graph of the target user is generated; the target transportation behavior structure graph includes a plurality of target nodes and a plurality of target edges, each of the target nodes is used to indicate a shipping place or a receiving place of a target transportation behavior generated by the target user, the target edge is used to connect two associated target nodes, the two associated target nodes are respectively a shipping place and a receiving place of a target transportation behavior generated by the target user, and the weight information corresponding to the target edge is used to indicate the number of target transportation behaviors generated by the target user between the two associated target nodes;
[0034] The target transportation behavior structure graph is processed using a graph neural network model to obtain a target dynamic feature vector corresponding to the target user;
[0035] Determine a target comprehensive feature vector corresponding to the target user according to the target dynamic feature vector and the target static feature vector; wherein the target static feature vector is obtained based on the target static attribute information corresponding to the target user;
[0036] Processing the target comprehensive feature vector using an identity recognition model to obtain the identity type of the target user;
[0037] Wherein, the identity recognition model is trained using the identity recognition model training method described in any one of claims 1 to 6.
[0038] In a third aspect, the present application provides an electronic device, including: a memory and a processor;
[0039] The memory is configured to store computer program instructions;
[0040] The processor is configured to run the computer program instructions so that the electronic device implements the training method of the identity recognition model as described in any one of the first aspects above, or implements the identity recognition method as described in the second aspect above.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium, including: computer program instructions;
[0042] At least one processor of the electronic device runs the computer program instructions so that the electronic device implements the training method of the identity recognition model as described in any one of the first aspects above, or implements the identity recognition method as described in the second aspect above.
[0043] In a fifth aspect, the present application provides a chip comprising: an interface circuit and a logic circuit, wherein the interface circuit is used to receive signals from other chips outside the chip and transmit them to the logic circuit, or to send signals from the logic circuit to other chips outside the chip, and the logic circuit is used to implement the training method of the identity recognition model as described in any one of the first aspects above, or to implement the identity recognition method as described in the second aspect above.
[0044] The present application provides a training method for an identity recognition model, which uses the static attribute information and dynamic behavior information of multiple users registered on the freight platform as training samples, obtains the static feature vector and dynamic feature vector corresponding to each user based on the static behavior information and dynamic behavior information of each user, and fuses the static feature vector and dynamic feature vector corresponding to each user to obtain the comprehensive feature vector corresponding to each user; finally, cluster analysis and unsupervised training of the identity recognition model are performed based on multiple comprehensive feature vectors corresponding to multiple users to obtain a trained identity recognition model, so as to facilitate the subsequent identification of the identity of the user on the freight platform through the trained identity recognition model. The method of the present application not only reduces manual intervention and maintenance costs, but also can effectively process the complex data generated by users in the process of using the freight platform, overcoming the limitations of traditional rule-based and machine learning methods. The method can provide more accurate user classification and personalized service recommendations for the freight platform, improve user satisfaction and loyalty, and enhance the competitiveness and profitability of the platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a method for training an identity recognition model provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a transport behavior structure diagram provided in an embodiment of the present application;
[0047] Figure 3 A flowchart of an identity recognition method provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of the structure of a training device for an identity recognition model provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of the structure of an identity recognition device provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0052] The directions or positional relationships indicated by terms such as "center", "longitudinal", "lateral", "up", "down", "left", "right", "front", and "back" are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present application.
[0053] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0054] With the rapid development of e-commerce and logistics industries, freight platforms play an increasingly important role in the logistics ecosystem. However, freight platforms also face some challenges and problems in their operations, one of which is the problem of user identity identification. User identity identification refers to the classification and identification of users registered on the freight platform to determine their true identity and attributes. Accurate identification of user identities is crucial to the healthy development of freight platforms, because different types of users will have different impacts on the platform's operations and revenue.
[0055] Existing user identification methods mainly use rule-based methods. Rule-based methods judge and classify user information or behavior based on some artificially set rules or standards, such as screening and marking based on the user's registration location, invoicing information, delivery frequency, etc. The advantage of this type of method is that it is simple and easy to implement, but the disadvantage is that the formulation of rules requires a lot of manual experience and judgment, and the updating and maintenance of rules also requires a lot of manpower and time. In addition, the rules have poor adaptability and generalization, and it is difficult to cope with complex and changeable actual situations.
[0056] In addition, the user identification method can also adopt a machine learning-based method. The machine learning-based method uses some machine learning algorithms to extract features and recognize patterns of user information or behavior, such as using decision trees, support vector machines, neural networks, etc. for classification and prediction. The advantage of this type of method is that it can automatically learn rules and knowledge from data, and has good adaptability and generalization, but the disadvantage is that a large amount of data needs to be manually labeled, and it is difficult to effectively process and represent data with complex network structures, such as user delivery records.
[0057] In summary, whether it is a rule-based method or a machine learning method, human intervention is required and the ability to process complex data is limited, which leads to the problems of low recognition efficiency, high recognition cost, and poor adaptability and generalization of existing user identity recognition methods.
[0058] Based on the problems existing in the prior art, the present application provides a training method for an identity recognition model, which uses the static attribute information and dynamic behavior information of multiple users registered on the freight platform as training samples, obtains the static feature vector and dynamic feature vector corresponding to each user based on the static behavior information and dynamic behavior information of each user, and processes the static feature vector and dynamic feature vector corresponding to each user to obtain the comprehensive feature vector corresponding to each user; finally, cluster analysis and unsupervised training of the identity recognition model are performed based on multiple comprehensive feature vectors corresponding to multiple users to obtain a trained identity recognition model, so as to facilitate the subsequent identification of the identity of the user on the freight platform through the trained identity recognition model. The method of the present application not only reduces manual intervention and maintenance costs, but also can effectively process the complex data generated by users in the process of using the freight platform, overcoming the limitations of traditional rule-based and machine learning methods. The method can provide more accurate user classification and personalized service recommendations for the freight platform, improve user satisfaction and loyalty, and enhance the competitiveness and profitability of the platform.
[0059] Figure 1 A flowchart of a training method for an identity recognition model provided in an embodiment of the present application. Figure 1 As shown, the present application provides a training method for an identity recognition model, the execution subject may be a controller, and the training method for the identity recognition model includes S101 to S105, and S101 to S105 are described in detail below.
[0060] S101. The controller obtains static attribute information and dynamic behavior information corresponding to each of a plurality of users.
[0061] Among them, static attribute information includes the user's registration information on the freight platform.
[0062] It should be noted that static attribute information usually does not change over time, or the static attribute information changes little over time. Static attribute information refers to some basic information provided by the user when registering on the freight platform, and the user can also modify the static attribute information during subsequent use after registration. Static attribute information includes at least the user's registration information on the freight platform, and may also include the invoicing information registered by the user on the freight platform, characteristic information of frequently shipped goods, etc. This embodiment does not specifically limit this.
[0063] In this embodiment, the user's static attribute information reflects the user's region, industry, scale and other attributes, thereby providing useful clues for user identity recognition.
[0064] Among them, dynamic behavior information includes information related to transportation behavior generated by users on the freight platform.
[0065] It should be noted that dynamic behavior information usually changes over time, or the dynamic behavior information changes greatly over time. Dynamic behavior information refers to some data information generated when users carry out shipping activities on the freight platform.
[0066] Specifically, the dynamic behavior information includes at least the user's delivery information, and may also include the user's favorable review rate information, transaction number information, transaction rate information, etc. This embodiment does not make specific limitations on this.
[0067] In this embodiment, the user's dynamic behavior information can reflect the user's shipping behavior and pattern, thereby providing a useful basis for user identity identification.
[0068] In this embodiment, by acquiring the user's static attribute information and dynamic behavior information, various aspects of the user's characteristics can be comprehensively considered, thereby providing a more comprehensive and accurate feature representation for user identity recognition.
[0069] S102: The controller generates a transportation behavior structure diagram of each user among the multiple users based on the dynamic behavior information corresponding to the user.
[0070] Among them, the transportation behavior structure diagram includes multiple nodes and multiple edges, each node is used to indicate the shipping place or receiving place of the transportation behavior generated by the user, and the edge is used to connect two associated nodes, which are respectively the shipping place and receiving place of a transportation behavior generated by the user. The weight information corresponding to the edge is used to indicate the number of transportation behaviors generated by the user between the two associated nodes.
[0071] It should be noted that, for multiple users, the method of generating the user's transportation behavior structure diagram based on the user's dynamic behavior information is the same. The following is an explanation of the method of generating the user's transportation behavior structure diagram based on any user's dynamic behavior information.
[0072] In the user's transportation behavior structure diagram, the nodes represent the cities involved in the user, the edges represent the user's shipping routes, and the weight of the edges represents the number of shipments of the user.
[0073] For user u, user u has m historical shipping records on the freight platform, expressed as: H = {h 1 ,…,h m}. Each of the m historical shipping records contains the shipping place Place of delivery Cargo Contents Cargo weight Information such as
[0074] Based on the m historical shipping records of user u on the freight platform, the shipping behavior network G of user u is constructed. u (N,E), N={n 1 ,…,n k}, each element in N represents the place of shipment or place of receipt involved in the m historical shipment records of user u; E = {e 1 ,…,e k}, each element in E represents the shipping route involved in the m historical shipping records of user u. i to n j , then construct n i to n j The directed edge e uj .
[0075] like Figure 2 As shown in Figure 2, the transportation behavior structure graph is a directed weighted graph, which can be represented by an adjacency matrix A:
[0076]
[0077] Among them A ij represents the number of times user u delivers goods from city i to city j. If the number of times user u delivers goods from city i to city j is α, then A ij =α; otherwise, A ij =0.
[0078] It should be noted that, in addition to indicating the place of shipment or the place of receipt of the transportation behavior generated by the user, each node may also indicate information such as the type and weight of the goods transported by the user, which is not specifically limited in this embodiment.
[0079] For example, a node in the transportation behavior structure diagram indicates that the user's shipping place is Beijing, the transported goods are cabbages, and the weight of the transported goods is 2 tons.
[0080] In this embodiment, by constructing a user's transportation behavior structure diagram, the user's shipping range, frequency, preference and other characteristics can be reflected, thereby providing useful information and basis for user identification.
[0081] S103. The controller processes the transportation behavior structure diagram using the graph neural network model to obtain a dynamic feature vector corresponding to the user.
[0082] Among them, after obtaining the transportation behavior structure graph corresponding to each user, the transportation behavior structure graph is processed using the graph neural network model (Graph Neural Networks, GNN). The method for obtaining the dynamic feature vector corresponding to each user is the same. The following is an explanation of the method of using the graph neural network model to process the transportation behavior structure graph of user u to obtain the dynamic feature vector corresponding to user u.
[0083] First, the features of the nodes in the transportation behavior structure graph of user u are represented by vectors. The construction process is as follows:
[0084] In each of the m historical shipping records of user u, in addition to the shipping place information and the receiving place information, it also includes other attribute information, such as the goods information Vehicle length information wait.
[0085] Use one-hot encoding to extract and encode all the information in each historical shipment record to obtain the feature vector representation of each piece of information, for example wait.
[0086] In each historical shipment record, all the encoded information is used as the feature representation of the shipping location node, that is, Among them, m i Indicates that multiple historical shipment records of user u involve city n i Through feature construction, we can get the feature vector f of each node i , the eigenvector f i The shipping attributes and preferences of nodes can be characterized, thus providing a more detailed and accurate feature representation for user identification.
[0087] In order to extract features from the transportation behavior structure graph of user u, this application performs feature learning based on the idea of graph convolutional network. The specific process is as follows:
[0088] For node i, its feature is expressed as Among them, f i Each item in represents the location code, vehicle length code, cargo code, etc. Perform graph convolution operation on node i to obtain the node of the l+1 layer
[0089]
[0090] Among them, l represents the number of layers, d i represents the degree value of node i, represents the node set of nodes i’s neighbors and itself, and σ is the activation function. Through multi-layer graph convolution operations, the final feature representation h of node i can be obtained.i ,h i It indicates that it contains information about itself and its neighboring nodes.
[0091] Secondly, the feature representation of the transportation behavior structure graph corresponding to each user is calculated. For user u, the corresponding dynamic feature vector is represented as y u ,
[0092] S104: The controller determines a comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector.
[0093] The static feature vector is obtained based on the static attribute information corresponding to the user.
[0094] It should be noted that the controller concatenates the user's dynamic feature vector and static feature vector to obtain the user's comprehensive feature vector.
[0095] S105. The controller trains the identity recognition model based on the cluster center and multiple comprehensive feature vectors corresponding to multiple users.
[0096] Among them, the identity recognition model is used to predict the identity type of users registered on the freight platform.
[0097] It should be noted that the user identity type may include multiple types, which are not specifically limited in this embodiment.
[0098] For example, the user's identity types may include three types, namely, scalper, 3PL, and first-hand user.
[0099] In an embodiment of the present application, the static attribute information and dynamic behavior information of multiple users registered on the freight platform are used as training samples, and the static feature vector and dynamic feature vector corresponding to each user are obtained based on the static behavior information and dynamic behavior information of each user, and the static feature vector corresponding to each user is fused with the dynamic feature vector to obtain the comprehensive feature vector corresponding to each user; finally, cluster analysis and unsupervised training of the identity recognition model are performed based on multiple comprehensive feature vectors corresponding to multiple users to obtain a trained identity recognition model, so as to facilitate the subsequent identification of the identity of the user on the freight platform through the trained identity recognition model. The method of the present application not only reduces manual intervention and maintenance costs, but also can effectively process the complex data generated by users in the process of using the freight platform, overcoming the limitations of traditional rule-based and machine learning methods. The method can provide more accurate user classification and personalized service recommendations for the freight platform, improve user satisfaction and loyalty, and enhance the competitiveness and profitability of the platform.
[0100] In the above embodiment, the controller needs to obtain the dynamic behavior information corresponding to each user. Next, the specific content of the dynamic behavior information corresponding to each user is described in detail.
[0101] In a possible embodiment, the dynamic behavior information includes a plurality of shipment information, and each shipment information includes at least shipment location information, destination information, and goods information.
[0102] It should be noted that the dynamic behavior information includes multiple historical shipping records, each of which corresponds to a shipping information. Each shipping information includes at least shipping place information, receiving place information and goods information, and may also include goods type information, goods name information and goods weight information, etc., which is not specifically limited in this embodiment.
[0103] In the above embodiment, the controller needs to use the graph neural network model to process the transportation behavior structure graph to obtain the dynamic feature vector corresponding to the user. Next, the specific process of the controller using the graph neural network model to process the transportation behavior structure graph to obtain the dynamic feature vector corresponding to the user is described in detail.
[0104] In a possible embodiment, S103, the controller uses a graph neural network model to process the transportation behavior structure diagram to obtain a dynamic feature vector corresponding to the user, which can be achieved through S1031 to S1035 in this embodiment. S1031 to S1035 are described in detail below.
[0105] S1031. The controller determines, for each node in the transportation behavior structure diagram, target delivery information corresponding to the node.
[0106] Among them, the target shipping information is the shipping information in which the shipping place information among multiple shipping information is the same as the shipping place or the receiving place indicated by the node; the target shipping information includes one or more shipping information.
[0107] It should be noted that for each node in the transportation behavior structure diagram, first, the information of the place of shipment or the place of receipt indicated by the node is obtained; secondly, the shipping information whose place of shipment information is the same as the place of shipment or the place of receipt indicated by the node is filtered out from the multiple shipping information included in the transportation behavior structure diagram, as the target shipping information of the node; finally, the filtered target shipping information is stored so as to perform feature extraction and encoding processing on the target shipping information later.
[0108] In this embodiment, by screening the target shipping information that is the same as the shipping place or receiving place indicated by each node, it can be ensured that the transportation information corresponding to each node is highly relevant, so as to provide an accurate data association basis for subsequent steps, making the characteristic information of each node more accurate and targeted.
[0109] S1032. The controller performs feature extraction and encoding processing on the shipping place information, the receiving place information and the cargo information in the target shipping information for each node in the transportation behavior structure diagram, and obtains a first feature vector corresponding to the node.
[0110] Among them, the controller extracts key features such as the shipping location information, the receiving location information and the cargo information from the target shipping information corresponding to each node, and encodes the extracted features to convert the text information, geographic information and numerical information into vector form; finally, the encoded features are combined to form the first feature vector corresponding to each node.
[0111] It should be noted that the extracted features may be encoded using One-Hot Encoding or other encoding methods, which is not specifically limited in this embodiment.
[0112] In this embodiment, by extracting and encoding key data in the target delivery information, the original information is converted into a first feature vector that can be processed by the model, thereby ensuring effective use of the data.
[0113] Through graph convolution operations, the features of each node and its neighboring nodes are combined to fully utilize the structural information in the transportation behavior graph and capture complex behavior patterns.
[0114] S1033. The controller uses the graph neural network model to perform a graph convolution operation on the first feature vector corresponding to each node to obtain a second feature vector corresponding to each node.
[0115] The second feature vector corresponding to each node includes information about the node and information about other nodes associated with the node.
[0116] It should be noted that the first eigenvector corresponding to each node is used as the input of the graph neural network model GNN. The graph neural network model GNN performs a graph convolution operation on each node, aggregates and updates the node’s own features and the features of neighboring nodes; after multiple layers of graph convolution, the second eigenvector corresponding to each node is obtained.
[0117] In this embodiment, the multi-layer structure of the graph convolutional network can aggregate and extract features layer by layer, gradually enhancing the expressive power of the feature vector, making the second feature vector of each node more comprehensive and accurate, and fully utilizing the structural information in the transportation behavior structure graph.
[0118] S1034. The controller aggregates multiple second eigenvectors corresponding to multiple nodes in the transportation behavior structure graph to obtain a third eigenvector.
[0119] The controller aggregates multiple second feature vectors corresponding to multiple nodes in the transport behavior structure diagram, and may adopt average aggregation, maximum aggregation, or weighted aggregation, which is not specifically limited in this embodiment.
[0120] It should be noted that the controller performs an aggregation operation on the second feature vectors of multiple nodes to obtain a comprehensive third feature vector, and the third feature vector can represent the global characteristics of the entire transportation behavior structure graph.
[0121] In this embodiment, by aggregating the second feature vectors of multiple nodes, a global feature vector reflecting the entire transportation behavior structure diagram is generated, namely, the third feature vector, which helps to grasp the user's behavior pattern as a whole and facilitates subsequent user feature analysis.
[0122] S1035. The controller obtains a dynamic feature vector of the user based on the third feature vector.
[0123] Among them, the dynamic feature vector is the comprehensive feature of the user's transportation behavior, reflecting the user's behavior pattern.
[0124] In an embodiment of the present application, by performing feature extraction, graph convolution operations and feature aggregation on the nodes of the user's transportation behavior structure graph, a third feature vector reflecting the entire transportation behavior structure graph is generated, which can effectively capture user behavior patterns and improve the accuracy of user identity recognition.
[0125] In the above embodiment, the controller can obtain the user's dynamic feature vector based on the third feature vector. Next, the specific process of the controller obtaining the user's dynamic feature vector based on the third feature vector and the feature vectors corresponding to the favorable comment rate information and the number of transactions information included in the dynamic behavior information is described in detail.
[0126] In a possible embodiment, the dynamic behavior information also includes favorable comment rate information and transaction number information;
[0127] Before the controller obtains the dynamic feature vector of the user based on the third feature vector in S1035, the training method of the identity recognition model further includes step a1 and step a2, and step a1 and step a2 are described in detail below.
[0128] Step a1: The controller performs feature extraction and encoding processing on the favorable review rate information to obtain a fourth feature vector.
[0129] Among them, the positive review rate information refers to the proportion of positive reviews received by users during transactions or services, and is an important indicator of user reputation and satisfaction. In the context of freight platforms, the positive review rate is the ratio of the number of positive reviews to the total number of reviews, usually expressed as a percentage.
[0130] It should be noted that the controller normalizes the favorable review rate information to make it suitable for the input of the identity recognition model; and then encodes the normalized favorable review rate information into a vector form to obtain the fourth eigenvector corresponding to the favorable review rate information.
[0131] In this embodiment, the user's reputation information is added to help describe the user's behavior characteristics more comprehensively; the use of the favorable review rate information can help identify high-reputation users and low-reputation users, thereby improving the accuracy of the identity recognition model.
[0132] Step a2: The controller performs feature extraction and encoding processing on the transaction number information to obtain a fifth feature vector.
[0133] Among them, the number of completed orders refers to the number of transportation transactions completed by users on the freight platform. The number of completed orders is an important indicator to measure the user's transaction activity and business volume.
[0134] It should be noted that the controller performs standardization processing on the transaction number information and encodes the standardized transaction number information into a vector form, thereby obtaining the fifth eigenvector corresponding to the transaction number information.
[0135] In this embodiment, by quantifying the transaction activity of users and providing the transaction behavior data of users, the number of transaction information can be used to help identify high-activity users and low-activity users, thereby enhancing the recognition model's ability to identify user identities.
[0136] S1035. The controller obtains a dynamic feature vector of the user based on the third feature vector, which specifically includes: the controller obtains a dynamic feature vector of the user based on the third feature vector, the fourth feature vector and the fifth feature vector.
[0137] The controller fuses the third feature vector, the fourth feature vector and the fifth feature vector, and uses the fused vector as the dynamic feature vector of the user.
[0138] It should be noted that the controller may fuse the third eigenvector, the fourth eigenvector and the fifth eigenvector by a simple vector concatenation or weighted fusion method, which is not specifically limited in this embodiment.
[0139] In this embodiment, by integrating the user's transportation behavior, praise rate and number of transactions, a dynamic feature vector of the user is generated, which can more comprehensively and accurately reflect the user's comprehensive behavioral characteristics, effectively improve the performance of the model in user identity recognition, and enhance the recognition accuracy and generalization ability of the identity recognition model.
[0140] In an embodiment of the present application, feature extraction and encoding are performed on the user's praise rate information and transaction number information, and they are fused with the third feature vector. The generated user dynamic feature vector is more comprehensive and accurate, which effectively improves the accuracy and generalization ability of the user identity recognition model, and improves the data utilization efficiency and the system's automated processing level.
[0141] In the above embodiment, the controller needs to determine the comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector. Next, the specific process of the controller obtaining the static feature vector according to the static attribute information is described in detail.
[0142] In a possible embodiment, before the controller determines the comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector in S104, the method further includes step b1 and step b2, which are described in detail below.
[0143] Step b1: The controller performs feature extraction and encoding processing on the registration information in the static attribute information to obtain a sixth feature vector corresponding to the registration information.
[0144] Among them, the controller extracts features of static information such as registration information in the static attribute information, and encodes the extracted features to uniformly convert different types of static information into vector form; finally, all encoded features are combined into a comprehensive vector, namely the sixth feature vector.
[0145] Step b2: The controller obtains a static feature vector corresponding to the static attribute information based on the sixth feature vector.
[0146] After the sixth eigenvector is obtained, the sixth eigenvector is processed by dimension reduction, normalization, etc. to ensure that the dimension and range of the final static eigenvector are suitable for the identity recognition model.
[0147] In an embodiment of the present application, feature extraction and encoding are performed on the user's registration information and other static information to generate a static feature vector; the static feature vector is combined with the dynamic feature vector to provide comprehensive and accurate input data for the user identity recognition model, thereby improving the recognition performance and generalization ability of the model.
[0148] In the above embodiment, the controller needs to train the identity recognition model based on the cluster center and the multiple comprehensive feature vectors corresponding to the multiple users. Next, the specific process of the controller training the identity recognition model based on the cluster center and the multiple comprehensive feature vectors corresponding to the multiple users is described in detail.
[0149] In a possible embodiment, S105, the controller trains the identity recognition model based on the cluster center and multiple comprehensive feature vectors corresponding to multiple users, which can be achieved through S1051 to S1053 in this embodiment. S1051 to S1053 are described in detail below.
[0150] S1051. The controller clusters multiple comprehensive feature vectors based on multiple clustering centers to obtain a clustering result.
[0151] The controller selects cluster centers randomly or uses an algorithm (such as K-means).
[0152] It should be noted that the number of cluster centers may be a preset number, which is not specifically limited in this embodiment.
[0153] For example, the number of cluster centers is 3.
[0154] For each user's comprehensive feature vector, the distance from each user's comprehensive feature vector to each cluster center is calculated; and based on the calculated distance, each user's comprehensive feature vector is assigned to the cluster center closest to it, forming a preliminary clustering result.
[0155] Commonly used distance measurement methods include Euclidean distance, Manhattan distance, etc., which are not specifically limited in this embodiment.
[0156] In this embodiment, users are preliminarily classified by clustering comprehensive feature vectors, providing a basis for further model training; at the same time, the distance measurement method can effectively distinguish the similarities of different feature vectors to ensure the rationality of the clustering results.
[0157] S1052. The controller updates multiple cluster centers according to the clustering results, and returns to execute clustering of multiple comprehensive feature vectors based on the multiple cluster centers, and iterates until the clustering convergence condition is met, thereby obtaining multiple target cluster centers and multiple target user groups.
[0158] Therein, the multiple target user groups correspond one to one with the types of user identity.
[0159] It should be noted that after obtaining the preliminary clustering results, the new position of each cluster center is calculated, and the new position of each cluster center is used as the new cluster center, and the distance calculation and cluster allocation in step S1051 are repeated to update the clustering results until the clustering convergence condition is met.
[0160] The new position of each cluster center can be the mean of all the comprehensive feature vectors in each cluster.
[0161] The clustering convergence condition can be that the position change of the cluster center is less than a certain threshold; or, the clustering result does not change significantly in several consecutive iterations.
[0162] In this embodiment, cluster centers are iteratively updated to continuously optimize the clustering results of users, thereby improving the accuracy and stability of clustering, so as to obtain multiple stable target cluster centers and target user groups.
[0163] S1053: The controller trains the identity recognition model based on multiple target cluster centers and multiple target user groups.
[0164] Among them, the obtained target cluster center and target user grouping are used, the user's comprehensive feature vector and its corresponding cluster label (identity type) are used as training data, and a suitable machine learning model (such as decision tree, support vector machine, deep neural network, etc.) is selected, and model training is performed based on the training data.
[0165] During the identity recognition model training process, the user's comprehensive feature vector is used as input and the cluster label is used as output for supervised learning.
[0166] In this embodiment, clustering results are used as labels for supervised learning, which can improve the training effect and recognition performance of the identity recognition model, so that the trained identity recognition model can accurately identify the user's identity type.
[0167] In the embodiment of the present application, the user's comprehensive feature vector is clustered using the cluster center, the clustering result is iteratively optimized, and the identity recognition model is trained based on the final target cluster center and target user grouping. The training method of the identity recognition model can effectively improve the accuracy of user identity recognition and the generalization ability of the identity recognition model, and provide strong support for user classification and management of the freight platform.
[0168] In the embodiment of the present application, the user information is divided into static attribute information and dynamic behavior information.
[0169] Static attribute information refers to some basic information provided or updated by users on the platform. This information usually does not change or changes little over time, such as the user's registration location, invoicing information, and frequent shipping sources. This information can reflect the user's region, industry, scale and other attributes, thereby providing useful clues for user identification. In order to obtain the user's static feature vector, the present invention uses one-hot encoding to encode the static attribute information and obtain a vector representation of each static information in the static attribute information, such as Then, the vectors corresponding to the static information are concatenated using the concatenation operation to obtain the static feature vector of user u.
[0170] in, They represent the vector representation of the registration place, billing information, etc. In this way, the user's static feature vector can be obtained, which can represent the user's basic information and attributes.
[0171] Dynamic behavior information refers to some data generated when users carry out shipping activities on the platform. These data usually change over time or change greatly, such as the user's shipping record, praise rate, number of transactions, transaction rate, etc. These data can reflect the user's shipping behavior and pattern, thereby providing a useful basis for user identification. In order to obtain the user's dynamic feature vector, this application first fixes a time window (for example, the past 14 days) of data, and calculates the user's dynamic behavior characteristics within the time period based on the time window. The dynamic behavior characteristics include the feature representation y of the transportation behavior structure diagram corresponding to the user's historical shipping record u , as well as vector representation of information such as user praise rate and number of transactions Then use the concatenation operation to concatenate the above vectors to obtain the dynamic feature vector of user u
[0172] Among them, y u The feature representation of the transportation behavior structure graph corresponding to the user's historical shipping records, The vector representations of the user's favorable comment rate, number of transactions, etc. can be obtained in this way, and the user's dynamic feature vector can be used to characterize the user's shipping behavior and pattern.
[0173] Finally, in order to obtain the user's comprehensive feature vector, the user's static feature vector and dynamic feature vector Concatenate and obtain the comprehensive feature vector h of user u u ;
[0174] Comprehensive feature vector h u It can comprehensively characterize the user's static attribute information and dynamic behavior information, thereby providing more comprehensive and accurate feature input for user identity recognition.
[0175] Figure 3 The following is a flow chart of an identity recognition method provided in an embodiment of the present application. Figure 3 As shown, the present application provides an identity identification method, the execution subject may be a controller, and the identity identification method includes S301 to S305, and S301 to S305 are described in detail below.
[0176] S301. Obtain target static attribute information and target dynamic behavior information corresponding to the target user; wherein the target static attribute information includes the registration information of the target user on the freight platform; the target dynamic behavior information includes the target transportation behavior related information generated by the target user on the freight platform.
[0177] S302. Generate a target transportation behavior structure diagram of the target user based on the target dynamic behavior information corresponding to the target user; the target transportation behavior structure diagram includes multiple target nodes and multiple target edges, each target node is used to indicate the shipping place or the receiving place of the target transportation behavior generated by the target user, and the target edge is used to connect two associated target nodes, and the two associated target nodes are respectively the shipping place and the receiving place of a target transportation behavior generated by the target user, and the weight information corresponding to the target edge is used to indicate the number of target transportation behaviors generated by the target user between the two associated target nodes.
[0178] S303. Use the graph neural network model to process the target transportation behavior structure graph to obtain the target dynamic feature vector corresponding to the target user.
[0179] S304. Determine a target comprehensive feature vector corresponding to the target user according to the target dynamic feature vector and the target static feature vector; wherein the target static feature vector is obtained based on target static attribute information corresponding to the target user.
[0180] S305: Use the identity recognition model to process the target comprehensive feature vector to obtain the identity type of the target user.
[0181] The identity recognition model is trained using the above-mentioned identity recognition model training method.
[0182] It should be noted that the identity recognition method provided in this embodiment is similar to the implementation process of the identity recognition model training method provided in the above embodiment, and this embodiment will not describe it in detail.
[0183] Figure 4 A structural diagram of a training device for an identity recognition model provided in an embodiment of the present application. Figure 4 As shown, the training device 400 provided in this embodiment includes a first acquisition module 401 , a first generation module 402 , a first processing module 403 , a first determination module 404 and a training module 405 .
[0184] The first acquisition module 401 is used to obtain static attribute information and dynamic behavior information corresponding to each user among multiple users; wherein the static attribute information includes the user's registration information on the freight platform; and the dynamic behavior information includes the transportation behavior related information generated by the user on the freight platform.
[0185] The first generation module 402 is used to generate a transportation behavior structure diagram of the user for each user among multiple users based on the dynamic behavior information corresponding to the user; the transportation behavior structure diagram includes multiple nodes and multiple edges, each node is used to indicate the shipping place or the receiving place of the transportation behavior generated by the user, and the edge is used to connect two associated nodes, and the two associated nodes are respectively the shipping place and the receiving place of a transportation behavior generated by the user, and the weight information corresponding to the edge is used to indicate the number of transportation behaviors generated by the user between the two associated nodes.
[0186] The first processing module 403 is used to process the transportation behavior structure graph using a graph neural network model to obtain a dynamic feature vector corresponding to the user.
[0187] The first determination module 404 is used to determine the comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector; wherein the static feature vector is obtained based on the static attribute information corresponding to the user.
[0188] The training module 405 is used to train the identity recognition model based on the cluster center and multiple comprehensive feature vectors corresponding to multiple users; wherein the identity recognition model is used to predict the identity type of the user registered on the freight platform.
[0189] In one embodiment, the dynamic behavior information includes a plurality of shipping information, and each shipping information includes at least shipping place information, receiving place information and goods information.
[0190] In one embodiment, the first processing module 403 is specifically used to: for each node in the transportation behavior structure diagram, determine the target shipment information corresponding to the node; wherein the target shipment information is the shipment information in which the place of shipment information in multiple shipment information is the same as the place of shipment or the place of receipt indicated by the node; the target shipment information includes one or more shipment information; for each node in the transportation behavior structure diagram, perform feature extraction and encoding processing on the place of shipment information, the place of receipt information and the cargo information in the target shipment information to obtain a feature vector corresponding to the node; use a graph neural network model to perform a graph convolution operation on the feature vector corresponding to each node to obtain a second feature vector corresponding to each node; wherein the second feature vector corresponding to each node includes the information of the node and information of other nodes associated with the node; aggregate multiple second feature vectors corresponding to multiple nodes in the transportation behavior structure diagram to obtain a third feature vector; based on the third feature vector, obtain the user's dynamic feature vector.
[0191] In one embodiment, the dynamic behavior information also includes favorable review rate information and transaction number information.
[0192] The training device 400 further includes a second processing module and a third processing module.
[0193] The second processing module is used to perform feature extraction and encoding processing on the favorable comment rate information to obtain a fourth feature vector.
[0194] The third processing module is used to perform feature extraction and encoding processing on the transaction number information to obtain a fifth feature vector.
[0195] The first processing module 403 is specifically used to obtain a dynamic feature vector of the user based on the third feature vector, the fourth feature vector and the fifth feature vector.
[0196] In one embodiment, the training device 400 further includes a fourth processing module and a second determining module.
[0197] A fourth processing module, used for performing feature extraction and encoding processing on the registration information in the static attribute information to obtain a sixth feature vector corresponding to the registration information;
[0198] The second determining module is used to obtain a static feature vector corresponding to the static attribute information based on the sixth feature vector.
[0199] In one embodiment, the training module 405 is specifically used to: cluster multiple comprehensive feature vectors based on multiple clustering centers to obtain clustering results; update the multiple clustering centers according to the clustering results, and return to execute clustering of multiple comprehensive feature vectors based on the multiple clustering centers, iteratively execute until the clustering convergence condition is met, and obtain multiple target clustering centers and multiple target user groups; wherein the multiple target user groups correspond one-to-one to the types of user identity types; and train the identity recognition model based on the multiple target clustering centers and the multiple target user groups.
[0200] Figure 5 This is a schematic diagram of the structure of an identity recognition device provided in an embodiment of the present application. Figure 5 As shown, the identity recognition device 500 provided in this embodiment includes a second acquisition module 501 , a second generation module 502 , a fifth processing module 503 , a third determination module 504 and a sixth processing module 505 .
[0201] The second acquisition module 501 is used to acquire the target static attribute information and target dynamic behavior information corresponding to the target user; wherein the target static attribute information includes the registration information of the target user on the freight platform; the target dynamic behavior information includes the target transportation behavior related information generated by the target user on the freight platform;
[0202] The second generation module 502 is used to generate a target transportation behavior structure diagram of the target user based on the target dynamic behavior information corresponding to the target user; the target transportation behavior structure diagram includes multiple target nodes and multiple target edges, each target node is used to indicate the shipping place or the receiving place of the target transportation behavior generated by the target user, and the target edge is used to connect two associated target nodes, and the two associated target nodes are respectively the shipping place and the receiving place of a target transportation behavior generated by the target user, and the weight information corresponding to the target edge is used to indicate the number of target transportation behaviors generated by the target user between the two associated target nodes;
[0203] The fifth processing module 503 is used to process the target transportation behavior structure graph using the graph neural network model to obtain a target dynamic feature vector corresponding to the target user;
[0204] The third determination module 504 is used to determine the target comprehensive feature vector corresponding to the target user according to the target dynamic feature vector and the target static feature vector; wherein the target static feature vector is obtained based on the target static attribute information corresponding to the target user;
[0205] The sixth processing module 505 is used to process the target comprehensive feature vector using the identity recognition model to obtain the identity type of the target user; wherein the identity recognition model is trained using the training device of the above-mentioned identity recognition model.
[0206] Figure 6 This is a structural diagram of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 600 provided in this embodiment includes: a memory 601 and a processor 602 .
[0207] The memory 601 may be an independent physical unit, and may be connected to the processor 602 via a bus 603. The memory 601 and the processor 602 may also be integrated together and implemented by hardware, etc. The memory 601 is used to store program instructions, and the processor 602 calls the program instructions to execute the training method of the above identity recognition model or the operations performed by the controller in the embodiment of the identity recognition method.
[0208] Optionally, when part or all of the methods of the above embodiments are implemented by software, the electronic device 600 may also include only a processor 602. The memory 601 for storing programs is located outside the electronic device 600, and the processor 602 is connected to the memory through circuits / wires for reading and executing the programs stored in the memory. The processor 602 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 602 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0209] The memory 601 may include a volatile memory, such as a random-access memory (RAM); the memory may also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above types of memory.
[0210] Illustratively, the present application provides a chip, comprising: an interface circuit and a logic circuit, wherein the interface circuit is used to receive signals from other chips outside the chip and transmit them to the logic circuit, or to send signals from the logic circuit to other chips outside the chip, and the logic circuit is used to execute the above-mentioned training method of the identity recognition model or the operations performed by the controller in the identity recognition method embodiment.
[0211] Exemplarily, the present application provides a readable storage medium having computer program instructions stored thereon, and the computer program instructions are executed by a processor of an electronic device so that the electronic device executes the above-mentioned training method of the identity recognition model or the operations performed by the controller in the embodiment of the identity recognition method.
[0212] Exemplarily, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the training method of the above identity recognition model or the operations executed by the controller in the embodiment of the identity recognition method.
[0213] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A training method for an identity recognition model, characterized in that: The model training method comprises: Obtaining static attribute information and dynamic behavior information corresponding to each of the multiple users; wherein the static attribute information includes the registration information of the user on the freight platform; and the dynamic behavior information includes the transportation behavior related information generated by the user on the freight platform; For each of the multiple users, a transportation behavior structure graph of the user is generated based on the dynamic behavior information corresponding to the user; the transportation behavior structure graph includes multiple nodes and multiple edges, each of the nodes is used to indicate a shipping place or a receiving place of a transportation behavior generated by the user, and the edge is used to connect two associated nodes, and the two associated nodes are respectively a shipping place and a receiving place of a transportation behavior generated by the user, and the weight information corresponding to the edge is used to indicate the number of transportation behaviors generated by the user between the two associated nodes; The transport behavior structure graph is processed using a graph neural network model to obtain a dynamic feature vector corresponding to the user; Determine a comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector; wherein the static feature vector is obtained based on the static attribute information corresponding to the user; An identity recognition model is trained based on the cluster center and multiple comprehensive feature vectors corresponding to the multiple users; wherein the identity recognition model is used to predict the identity type of the user registered on the freight platform.
2. The method according to claim 1, characterized in that The dynamic behavior information includes a plurality of shipment information, each of which includes at least shipment location information, destination location information and goods information.
3. The method according to claim 2, characterized in that The method of processing the transportation behavior structure graph using a graph neural network model to obtain a dynamic feature vector corresponding to the user includes: For each of the nodes in the transport behavior structure diagram, determine the target shipment information corresponding to the node; wherein the target shipment information is shipment information whose shipping place information among the multiple shipment information is the same as the shipping place or the receiving place indicated by the node; the target shipment information includes one or more of the shipment information; For each of the nodes in the transport behavior structure diagram, feature extraction and encoding are performed on the shipping place information, the receiving place information, and the cargo information in the target shipping information to obtain a first feature vector corresponding to the node; Using a graph neural network model, a graph convolution operation is performed on the first feature vector corresponding to each of the nodes to obtain a second feature vector corresponding to each of the nodes; wherein the second feature vector corresponding to each of the nodes includes information about the node and information about other nodes associated with the node; Aggregating a plurality of second eigenvectors corresponding to the plurality of nodes in the transport behavior structure graph to obtain a third eigenvector; Based on the third feature vector, a dynamic feature vector of the user is obtained.
4. The method according to claim 3, characterized in that The dynamic behavior information also includes favorable comment rate information and transaction number information; Before obtaining the dynamic feature vector of the user based on the third feature vector, the method further includes: Performing feature extraction and encoding processing on the favorable comment rate information to obtain a fourth feature vector; Performing feature extraction and encoding processing on the transaction number information to obtain a fifth feature vector; The obtaining the dynamic feature vector of the user based on the third feature vector includes: A dynamic feature vector of the user is obtained based on the third feature vector, the fourth feature vector and the fifth feature vector.
5. The method according to claim 1, characterized in that Before determining the comprehensive feature vector corresponding to the user according to the dynamic feature vector and the static feature vector, the method further includes: Performing feature extraction and encoding processing on the registration information in the static attribute information to obtain a sixth feature vector corresponding to the registration information; Based on the sixth feature vector, a static feature vector corresponding to the static attribute information is obtained.
6. The method according to claim 1, characterized in that The training of the identity recognition model based on the cluster center and the multiple comprehensive feature vectors corresponding to the multiple users includes: Clustering the multiple comprehensive feature vectors based on the multiple cluster centers to obtain a clustering result; The multiple cluster centers are updated according to the clustering results, and the multiple comprehensive feature vectors are clustered based on the multiple cluster centers, and the clustering is iteratively performed until the clustering convergence condition is met, thereby obtaining multiple target cluster centers and multiple target user groups; wherein the multiple target user groups correspond one to one to the types of the identity types of the users; The identity recognition model is trained based on the multiple target cluster centers and the multiple target user groups.
7. An identity recognition method, characterized in that: The identity recognition method comprises: Obtain target static attribute information and target dynamic behavior information corresponding to the target user; wherein the target static attribute information includes the registration information of the target user on the freight platform; the target dynamic behavior information includes information related to the target transportation behavior generated by the target user on the freight platform; Based on the target dynamic behavior information corresponding to the target user, a target transportation behavior structure graph of the target user is generated; the target transportation behavior structure graph includes a plurality of target nodes and a plurality of target edges, each of the target nodes is used to indicate a shipping place or a receiving place of a target transportation behavior generated by the target user, the target edge is used to connect two associated target nodes, the two associated target nodes are respectively a shipping place and a receiving place of a target transportation behavior generated by the target user, and the weight information corresponding to the target edge is used to indicate the number of target transportation behaviors generated by the target user between the two associated target nodes; The target transportation behavior structure graph is processed using a graph neural network model to obtain a target dynamic feature vector corresponding to the target user; Determine a target comprehensive feature vector corresponding to the target user according to the target dynamic feature vector and the target static feature vector; wherein the target static feature vector is obtained based on the target static attribute information corresponding to the target user; Processing the target comprehensive feature vector using an identity recognition model to obtain the identity type of the target user; Wherein, the identity recognition model is trained using the identity recognition model training method described in any one of claims 1 to 6.
8. An electronic device, characterized in that: include: Memory and processor; The memory is configured to store computer program instructions; The processor is configured to run the computer program instructions so that the electronic device implements the training method of the identity recognition model as described in any one of claims 1 to 6, or implements the identity recognition method as described in claim 7.
9. A computer-readable storage medium, characterized in that: include: Computer program instructions; At least one processor of the electronic device runs the computer program instructions so that the electronic device implements the training method of the identity recognition model as described in any one of claims 1 to 6, or implements the identity recognition method as described in claim 7.
10. A chip, characterized in that: include: An interface circuit and a logic circuit, wherein the interface circuit is used to receive signals from other chips outside the chip and transmit them to the logic circuit, or to send signals from the logic circuit to other chips outside the chip, and the logic circuit is used to implement the training method of the identity recognition model as described in any one of claims 1 to 6, or to implement the identity recognition method as described in claim 7.
