Multi-field resource recommendation method and device, equipment and medium

By constructing multi-domain resource category knowledge graphs and graph databases, the problem of information isolation in traditional recommendation methods is solved, multi-domain resource recommendations are realized, and customer retention rates are improved.

CN118733749APending Publication Date: 2024-10-01PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410732427.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Traditional personalized recommendation methods are difficult to transfer and share information between multiple fields, resulting in information isolation, inability to fully utilize user needs, and affecting customer retention rates.

Method used

By building a resource category knowledge graph in each field, user behavior data is obtained, a graph database is constructed, node vectors are determined, and the node vectors are corrected based on the resource category knowledge graph to achieve multi-field resource recommendation.

Benefits of technology

It realizes product recommendation in multiple fields, builds a unified recommendation model, avoids the problem of information isolation, promotes the transmission and sharing of user needs, and improves customer retention rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733749A_ABST
    Figure CN118733749A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-field resource recommendation method and device, a medium and electronic equipment, and the method comprises the steps that a resource category knowledge graph of each field is constructed, the resource category knowledge graph of each field comprises at least one resource category, and each resource category comprises at least one first resource; behavior data of at least one user is obtained, the behavior data comprises the user, second resources and behaviors, and the first resources correspond to the second resources one to one; constructing a graph database by taking the second resource and the user as nodes and behaviors as edges; determining a node vector of the node in the graph database, and correcting the node vector according to the resource category knowledge graph; and recommending resources according to the corrected node vector. According to the method, information of multiple fields is considered at the same time, and the problem that information of different fields cannot be fully utilized in an existing resource recommendation method is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a multi-domain resource recommendation method, device, equipment and medium. Background Art

[0002] Traditional personalized recommendation scenarios are mostly targeted at a single field, such as shopping malls, fund recommendations, insurance recommendations, etc. However, in actual business, providing comprehensive and diversified resource recommendations will involve multiple fields mentioned above. For example, according to the traditional personalized recommendation method, a set of recommendation strategies needs to be built for each field separately. However, this will cause each field to fight on its own, making it difficult to achieve information transmission and information sharing between multiple fields. However, the way in which each field constructs a recommendation strategy separately leads to the relative isolation of information between fields, making it difficult to achieve the above-mentioned information transmission and information cannot be fully utilized; in addition, from a business perspective, the isolation of information leads to the inability to fully perceive user needs, and it is also difficult to achieve user migration and conversion between fields, affecting customer retention. Summary of the invention

[0003] In view of this, the present application provides a multi-field resource recommendation method, device, medium and equipment, which take into account information from multiple fields at the same time to solve the problem that the information between different fields in the existing resource recommendation method cannot be fully utilized.

[0004] In a first aspect of the present application, a multi-domain resource recommendation method is provided, the method comprising:

[0005] Constructing a resource category knowledge graph for each field respectively, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource;

[0006] Acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource in a one-to-one manner;

[0007] Constructing a graph database using the second resource and the user as nodes and the behavior as edges;

[0008] In the graph database, determining a node vector of the node, and modifying the node vector according to the resource category knowledge graph;

[0009] The target recommended resource is determined in the preset resource list according to the modified node vector, and the target recommended resource is recommended.

[0010] In a second aspect of the present application, a multi-domain resource recommendation device is provided, the device comprising:

[0011] A first construction module is used to construct a resource category knowledge graph for each field, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource;

[0012] An acquisition module, configured to acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource in a one-to-one manner;

[0013] A second construction module, configured to construct a graph database using the second resource and the user as nodes and the behavior as edges;

[0014] A correction module, used to determine the node vector of the node in the graph database, and correct the node vector according to the resource category knowledge graph;

[0015] The recommendation module is used to determine a target recommended resource in a preset resource list according to the modified node vector, and recommend the target recommended resource.

[0016] According to a third aspect of the present application, an electronic device is provided, comprising a storage medium, a processor, and instructions or codes stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned multi-domain resource recommendation method when executing the instructions or codes.

[0017] In a fourth aspect of the present application, a storage medium is provided, on which instructions or codes are stored, and when the instructions or codes are executed by a processor, the above-mentioned multi-domain resource recommendation method is implemented.

[0018] The solution implemented by the above-mentioned multi-domain resource recommendation method, device, equipment and medium combines user behavior sequences and resource category knowledge graphs to achieve multi-domain product recommendations and build a unified recommendation model, avoiding the information isolation problem of building recommendation models separately in each field, and also avoiding waste of resources and information. In addition, the above-mentioned solution transmits and shares relevant information about user demand tendencies between multiple fields, which helps users migrate and transform between multiple fields, and plays a positive role in improving customer retention.

[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0021] Figure 1 A schematic diagram of a multi-domain resource recommendation method provided in an embodiment of the present application is shown;

[0022] Figure 2 A schematic diagram of a process flow of another multi-domain resource recommendation method provided in an embodiment of the present application is shown;

[0023] Figure 3 A structural block diagram of a multi-domain resource recommendation device provided in an embodiment of the present application is shown;

[0024] Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

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

[0026] The multi-domain resource recommendation method provided in the embodiment of the present application can be applied to electronic devices that have the ability to run instructions or programs. Among them, the electronic devices can be, but are not limited to, various servers, workstations, personal computers, laptops, etc. Running on different computing devices is only a difference in the execution subject of the scheme. People in this field can foresee that running on different computing devices can produce the same technical effects. The present invention is described in detail below through specific embodiments.

[0027] See also Figure 1 As shown, Figure 1 A flowchart of a multi-domain resource recommendation method provided by an embodiment of the present invention includes the following steps:

[0028] S10: Construct a resource category knowledge graph for each field respectively, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource.

[0029] The method provided by the present invention is used to integrate multi-domain information, and through the migration and transmission of information between different fields, the information is more fully utilized to provide users with comprehensive resource recommendations. For example, the user's click, order, purchase and other behaviors in the shopping mall include the user's income level, consumption habits, population characteristics, etc. If the information can be migrated to other fields, such as insurance and funds (hereinafter referred to as the insurance field and fund field, and the products are all financial products), it can play a guiding role and improve the accuracy of its personalized recommendations.

[0030] Based on this, we first construct a resource category knowledge graph for each field. It is understandable that the resource category knowledge graph for each field may include at least one resource category. For example, the commodity field may include electrical appliance categories, clothing categories, and food categories. Each resource category may include at least one first resource. For example, the electrical appliance category may include household appliances of model A and household appliances of model B, and these two types of household appliances are each a first resource.

[0031] In step S10, a resource category knowledge graph for each field is constructed, including the following steps:

[0032] S11: Determine a resource level in each domain, wherein the resource level in each domain is one or more;

[0033] S12: Determine resource categories under each resource level, wherein each resource level has one or more resource categories;

[0034] S13: respectively determine the target resource level to which each first resource belongs and the target resource category of the first resource, and construct a resource category knowledge graph according to the target resource level and the target resource category.

[0035] In steps S11-S13, each field includes at least one resource level, each resource level includes at least one resource category, and lower-level resource categories belong to higher-level resource categories. For example, the commodity field can be divided into three resource levels. The first-level resource level includes the digital category, the second-level resource level includes the digital-mobile phone category, the third-level resource level includes the digital-mobile phone-Android phone category and the digital-mobile phone-iOS phone category, and the digital-mobile phone-Android phone category belongs to a subcategory under the digital-mobile phone category, and the digital-mobile phone category belongs to a subcategory under the digital category.

[0036] Therefore, when constructing a resource category knowledge graph, resource levels can be divided in each field, and resource categories can be divided in each level from high level to low level, and then each first resource can be filled into the category corresponding to the corresponding level to construct a resource category knowledge graph.

[0037] The resource levels and resource categories can be divided according to actual business needs. For example, taking the personalized resource recommendations in the three fields of commodities, funds, and insurance as an example:

[0038] In the commodity field, resource categories at the first-level resource level, resource categories at the second-level resource level, and resource categories at the third-level resource level can be classified level by level to form a resource category knowledge graph with a three-level tree structure;

[0039] In the insurance field, it can be classified according to life insurance, property insurance, accident insurance and other resource categories to form a resource category knowledge graph with a first-level tree structure;

[0040] In the fund field, resources can be classified into stock, bond, index and other resource categories to form a resource category knowledge graph with a primary tree structure.

[0041] The resource category knowledge graph constructed by this embodiment has a common parent node in a certain field, belongs to the same category, has similarities to a certain extent, and contains information. For example, digital-mobile phone-Android phone and digital-mobile phone-iOS phone have a common parent node digital-mobile phone, so they belong to the same category, namely the digital-mobile phone category; between different fields, the information is isolated from each other, that is, there is no intersection in the resource category knowledge graphs of the above three fields of commodities, funds, and insurance.

[0042] S20: Obtaining behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource in one-to-one correspondence.

[0043] In this step, the behavior logs of at least one user in multiple fields are collected, and then the behavior logs are analyzed to obtain the user's behavior data. The behavior data includes the user, the second resource, and the behavior between the user and the second resource. The behavior may include clicks, orders, payments, etc. For example, if user A clicks to browse the second resource B, the behavior data obtained includes user A, the second resource B, and the click-and-browse behavior between the two. In addition, the first resource corresponds to the second resource one-to-one, that is, the resources in the behavior data are the resources in the resource category knowledge graph.

[0044] S30: Construct a graph database using the second resource and the user as nodes and the behavior as edges.

[0045] In this step, a graph database is constructed using behavioral data. It can be understood that a graph database is a database that uses a graph structure for storage and query. The graph structure is composed of nodes and relationships. Each node represents an entity, such as a person, place, thing, category, etc. Each relationship represents the connection between two nodes.

[0046] Specifically, this embodiment uses both the second resource and the user as nodes, that is, the graph database nodes include multiple types, that is, all users and resources in different fields; the behavior between the user and the second resource is used as the edge of the graph database, such as the user's click, purchase, order, etc. for a certain resource. Among them, the edge in the graph database has no direction.

[0047] S40: In the graph database, determine the node vector of the node, and modify the node vector according to the resource category knowledge graph.

[0048] In this step, the graph representation method is used to represent each node on the graph database, that is, a user or a resource, as a vector of fixed length, that is, to determine the node vector. Then the node vector is corrected according to the resource category knowledge graph. The corrected result fully considers the product category information between multiple fields, and realizes information transmission and sharing between different fields.

[0049] Wherein, in step S40, determining the node vector of the node in the graph database includes the following steps:

[0050] S41: traverse each node on the graph database to obtain node sequence data;

[0051] S42: Train the node sequence data using a graph representation method to obtain a node vector of a preset dimension.

[0052] In steps S41-S42, a general graph representation method, such as Node2Vec or DeepWalk algorithm, is used to represent the nodes on the graph database as node vectors of fixed length. Specifically, taking the DeepWalk algorithm as an example, the fixed dimension of the node vector can be pre-set according to actual needs, and the nodes corresponding to each user and the nodes corresponding to the second resource can be conveniently located on the graph database, and the node sequence data can be obtained according to the traversal order of the nodes. Among them, the nodes on the graph database can be traversed in a random walk manner to sample and obtain a number of node sequence data. After obtaining the node sequence data, the Node2Vec algorithm can be used to train the node sequence data to represent all nodes as node vectors of fixed dimension. Among them, optionally, the fixed dimension can be set to 64 bits.

[0053] Among them, in step S40, the node vector is corrected according to the resource category knowledge graph, including the following steps:

[0054] S43: Determine that the second resource corresponding to the first resource under each resource category is the resource to be corrected, and the node vector corresponding to the resource to be corrected is the vector to be corrected;

[0055] S44: Determine that the mean of all the vectors to be corrected is the center vector of the resource category, and move the vectors to be corrected toward the center vector;

[0056] S45: Determine whether the node vector meets the preset convergence condition. If not, return to the step of determining the node vector of each node in the graph database.

[0057] In steps S43-S45, since resources belonging to the same resource category have certain similarities, the node vectors corresponding to the resources under the same resource category also have certain similarities. Based on this, the node vectors are corrected according to the information carried in the resource category knowledge graphs of multiple fields, so that the resource nodes of the same category are more concentrated.

[0058] Specifically, all resource categories in all fields are exhaustively listed, and for each resource category, the second resource corresponding to the first resource is determined to be the resource to be corrected, and its corresponding node vector is the vector to be corrected. For example, all resource categories are exhaustively listed to obtain the following resource category list:

[0059] [Digital (first-level resource category in the commodity field), ... (first-level resource category in other commodity fields),

[0060] Digital-Mobile Phones (Secondary Resource Category in the Commodity Field), ... (Secondary Resource Category in Other Commodity Fields),

[0061] Digital-Mobile Phone-Android Phone (three-level resource category in commodity field),...(three-level resource category in other commodity fields),

[0062] Insurance - Home Property Insurance (Insurance Field Resource Category), ... (Other Insurance Field Resource Categories),

[0063] Fund-Stock Type (Fund Field Resource Category),…(Other Fund Field Resource Category)].

[0064] For each resource category, take the kth resource category as an example, for the first resource in the kth resource category, determine that its corresponding second resource in the graph database is the resource to be corrected, and the node vector of the resource to be corrected is the vector to be corrected. Specifically, for example, if there are n first resources under the kth resource category, which correspond to n second resources, the corresponding vectors to be corrected are [x k,1 ,x k,2 ,…,x k,n ], where x k,i is a node vector of fixed dimension.

[0065] After determining the vector to be corrected corresponding to a resource category, determine the mean of all vectors to be corrected as the central vector of the resource category, and move the vector to be corrected toward the central vector. k,1 ,x k,2 ,…,xk,n ], take its mean x k As the center vector of the resource category, that is, x k This is also a node vector of fixed dimension.

[0066] Each vector to be corrected is moved toward the center vector direction of the resource category using the following formula to correct the vector to be corrected:

[0067] x ′ k,i =x k,i +α(x k -x k,i )

[0068] Among them, x k,i is the vector to be corrected before correction, x ′ k,i is the corrected vector to be corrected, that is, the representation vector of the corrected second resource, and α is the learning rate.

[0069] It is understandable that the learning rate is an important hyperparameter that can be used to control the adjustment speed. During use, the learning rate can be set according to actual business needs and historical experience, and the learning rate can be adjusted at any time during the iterative tuning process. For example, a slightly larger learning rate can be set at the beginning to speed up the decline of the loss function and reduce the convergence time. When the loss function is about to converge, the learning rate value can be reduced to avoid crossing the optimal value due to too large a step of the decline of the loss function.

[0070] This embodiment first builds a graph database based on user behavior data, taking into full account product category information between multiple fields, and then corrects the node vectors corresponding to resource nodes in the graph database according to the resource category graph, enhancing the similarity between node vectors under the same resource category, making the node vector more reasonable and accurate. Through such a solution, resource recommendations in multiple fields are realized, avoiding the waste of resources and information caused by information isolation between different fields.

[0071] Wherein, in step S45, judging whether the node vector meets the preset convergence condition includes the following steps:

[0072] S451: setting a loss function according to each moved vector to be corrected and a node vector corresponding to each user;

[0073] S452: If the most recent preset number of loss functions are lower than a preset loss threshold, it is confirmed that a preset convergence condition is met.

[0074] In steps S451-S452, since in the above correction process, only the node vectors corresponding to the resources are corrected, and the node vectors corresponding to the users are not processed and remain unchanged, therefore, in order to migrate the category graph information of the resources between users, the above-mentioned steps of determining the node vectors and correcting the vectors to be corrected, that is, steps S41-S44, can be iterated until the preset convergence conditions are reached and the training is considered completed.

[0075] Among them, the preset convergence condition can be set as: in the process of training node sequence data using the graph representation method, the loss function is continuously lower than the preset loss threshold, and the model is considered to have converged and the training is completed. Specifically, after each execution of the aforementioned steps of determining the node vector and correcting the vector to be corrected, the loss function can be set based on the moved vector to be corrected, that is, the node vector corresponding to the corrected second resource, and the node vector corresponding to the user, and the loss function value at this time is obtained, and it is iterated again to obtain a new loss function value, until the loss function values ​​generated by the most recent preset number of iterations are all lower than the preset loss threshold, then it is considered that the loss function is continuously lower than the preset loss threshold, and it is confirmed that the preset convergence condition is met.

[0076] This embodiment uses the loss function to iterate. After the training is completed, the node vectors corresponding to the users and resources obtained contain both resource category graph information within multiple fields and the tendency information of user behavior towards multi-field resources.

[0077] S50: Determine a target recommended resource in a preset resource list according to the corrected node vector, and recommend the target recommended resource.

[0078] In this step, the modified node vector reflects both the resource category map information in multiple different fields and the user's preference. Therefore, the target recommended resource can be determined in the preset resource list according to the modified node vector to provide resource recommendation service.

[0079] Wherein, in step S50, determining the target recommended resource in the preset resource list according to the corrected node vector includes the following steps:

[0080] S51: Acquire a target user and the target user's most recent behavior, and determine that a second resource corresponding to the most recent behavior is a target resource;

[0081] S52: Calculate the first similarity between the to-be-matched vector of each to-be-matched resource in the preset resource list and the node vector corresponding to the target resource, and determine a preset recommended number of to-be-matched vectors with the highest first similarity as first recommended vectors, and the to-be-matched resource corresponding to the first recommended vector as the target recommended resource.

[0082] In steps S51-S52, the recommended object, i.e., the target user, is obtained, and the target user's behavior record is queried to obtain the target user's most recent behavior and the corresponding target resource. For example, for a target user, if the target user has just clicked or placed an order for a resource, the click or order behavior is the most recent behavior, and the resource is the target resource.

[0083] The node vector corresponding to the target resource is obtained by querying, and the to-be-matched vector corresponding to each to-be-matched resource in the preset resource list is obtained, and the first similarity between the node vector corresponding to the target resource and each to-be-matched vector is calculated respectively. In the preset resource list, several to-be-matched vectors with the highest first similarity are determined as the first recommended vectors, and the corresponding to-be-matched resources are the target recommended resources, and then the target recommended resources are recommended to the target user. Among them, the preset recommendation quantity can be set according to actual business needs.

[0084] Wherein, in step S50, the target recommended resource is determined in the preset resource list according to the modified node vector, and the following steps are also included:

[0085] S53: If the target user does not have a corresponding latest behavior or the behavior time corresponding to the latest behavior is not within the preset time range, the second similarity between each to-be-matched vector and the node vector corresponding to the target user is calculated respectively, and a preset recommended number of to-be-matched vectors with the highest second similarity are determined as second recommended vectors, and the to-be-matched resources corresponding to the second recommended vectors are the target recommended resources.

[0086] In step S53, if the target user has no operation behavior on the second resource, or the target user's most recent behavior is not within the preset time range, the target resource is not considered, and only the target user is analyzed. Specifically, the node vector corresponding to the target user is queried, and the second similarity between each to-be-matched vector and the node vector corresponding to the target user is calculated respectively. Several to-be-matched vectors with the highest second similarity in the preset resource list are determined as the second recommended vectors, and the corresponding to-be-matched resources are the target recommended resources.

[0087] This embodiment takes into account that the target user may not have performed operations such as clicking or placing an order within a preset time range, and therefore provides two different methods for recommending target recommended resources based on the modified node vector, further improving the scope of application of the recommendation method. If the user has a corresponding behavior recently, the target recommended resource is determined based on the user's most recent behavior and its corresponding target resource; if the user has no corresponding behavior recently, only the recommended resource determined by the user is used. Therefore, whether it is a new user or an old user, an active user or a possible lost user, the recommendation method can be used to recommend corresponding resources.

[0088] Figure 2 A flowchart of a multi-domain resource recommendation method provided by another embodiment of the present application is shown, as shown in the figure, including the following steps:

[0089] S001: Determine the resource level in each domain, wherein the resource level in each domain is one or more;

[0090] S002: Determine resource categories under each resource level, wherein each resource level has one or more resource categories;

[0091] S003: respectively determining the target resource level to which each first resource belongs and the target resource category of the first resource, and constructing a resource category knowledge graph according to the target resource level and the target resource category, wherein each resource category includes at least one first resource;

[0092] S004: Acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource in a one-to-one manner;

[0093] S005: construct a graph database using the second resource and the user as nodes and the behavior as edges;

[0094] S006: traverse each node on the graph database to obtain node sequence data;

[0095] S007: Use a graph representation method to train the node sequence data to obtain a node vector of a preset dimension;

[0096] S008: Determine that the second resource corresponding to the first resource under each resource category is the resource to be corrected, and the node vector corresponding to the resource to be corrected is the vector to be corrected;

[0097] S009: Determine that the mean of all vectors to be corrected is the center vector of the resource category, and move the vectors to be corrected toward the center vector;

[0098] S010: setting a loss function according to each moved vector to be corrected and a node vector corresponding to each user;

[0099] S011: Are the most recent preset number of loss functions lower than the preset loss threshold? If yes, jump to step S012; if no, jump to step S006;

[0100] S012: Acquire a target user and the target user's most recent behavior, and determine that a second resource corresponding to the most recent behavior is the target resource;

[0101] S013: Calculate the first similarity between the to-be-matched vector of each to-be-matched resource in the preset resource list and the node vector corresponding to the target resource, and determine a preset recommended number of to-be-matched vectors with the highest first similarity as first recommended vectors, and the to-be-matched resource corresponding to the first recommended vector as the target recommended resource;

[0102] S014: If the target user does not have a corresponding latest behavior or the behavior time corresponding to the latest behavior is not within the preset time range, the second similarity between each to-be-matched vector and the node vector corresponding to the target user is calculated respectively, and a preset recommended number of to-be-matched vectors with the highest second similarity are determined as second recommended vectors, and the to-be-matched resources corresponding to the second recommended vectors are the target recommended resources;

[0103] S015: Recommended target recommended resources.

[0104] Regarding steps S001-S015, their principles and effects are similar to those of the aforementioned embodiment, and reference may be made to the relevant description in the method embodiment. To avoid repetition, they are not described here.

[0105] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0106] It can be seen that compared with the existing multi-domain resource recommendation methods, the above scheme combines user behavior sequences and resource category knowledge graphs to achieve multi-domain product recommendations and build a unified recommendation model, avoiding the information isolation problem of building recommendation models separately in each field, and also avoiding the waste of resources and information. In addition, the above scheme transmits and shares relevant information about user demand tendencies between multiple fields, which helps users migrate and transform between multiple fields, and plays a positive role in improving customer retention.

[0107] In one embodiment, a multi-domain resource recommendation device is provided, and the multi-domain resource recommendation device corresponds one-to-one to the multi-domain resource recommendation method in the above embodiment. Figure 3 As shown, the multi-domain resource recommendation device includes: a first construction module, an acquisition module, a second construction module, a correction module and a recommendation module. The detailed description of each functional module is as follows:

[0108] A first construction module is used to construct a resource category knowledge graph for each field, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource;

[0109] An acquisition module, used to acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource in a one-to-one manner;

[0110] A second construction module is used to construct a graph database using the second resource and the user as nodes and the behavior as edges;

[0111] A correction module is used to determine the node vector of a node in the graph database and correct the node vector according to the resource category knowledge graph;

[0112] The recommendation module is used to determine the target recommended resource in the preset resource list according to the corrected node vector and recommend the target recommended resource.

[0113] In one embodiment, the correction module is used to:

[0114] Traverse each node on the graph database to obtain node sequence data;

[0115] The node sequence data is trained using the graph representation method to obtain a node vector of a preset dimension.

[0116] In one embodiment, the correction module is used to:

[0117] Determine that the second resource corresponding to the first resource under each resource category is the resource to be corrected, and the node vector corresponding to the resource to be corrected is the vector to be corrected;

[0118] Determine the mean of all vectors to be corrected as the center vector of the resource category, and move the vectors to be corrected toward the center vector;

[0119] It is determined whether the node vector meets the preset convergence condition. If not, the process returns to the step of determining the node vector of each node in the graph database.

[0120] In one embodiment, the correction module is used to:

[0121] According to each vector to be corrected after the move and the node vector corresponding to each user, a loss function is set;

[0122] If the most recent preset number of loss functions are lower than the preset loss threshold, it is confirmed that the preset convergence condition is met.

[0123] In one embodiment, the recommendation module is used to:

[0124] Obtaining a target user and the target user's most recent behavior, and determining that a second resource corresponding to the most recent behavior is the target resource;

[0125] The first similarity between the to-be-matched vector of each to-be-matched resource in the preset resource list and the node vector corresponding to the target resource is calculated respectively, and a preset recommended number of to-be-matched vectors with the highest first similarity are determined as first recommended vectors, and the to-be-matched resource corresponding to the first recommended vector is determined as the target recommended resource.

[0126] In one embodiment, the recommendation module is used to:

[0127] If the target user does not have a corresponding latest behavior or the behavior time corresponding to the latest behavior is not within the preset time range, the second similarity between each to-be-matched vector and the node vector corresponding to the target user is calculated respectively, and a preset recommended number of to-be-matched vectors with the highest second similarities are determined as second recommended vectors, and the to-be-matched resources corresponding to the second recommended vectors are the target recommended resources.

[0128] In one embodiment, the first building block is used to:

[0129] Determine the resource level in each domain, wherein the resource level in each domain is one or more;

[0130] Determine the resource category under each resource level, wherein each resource level has one or more resource categories;

[0131] The target resource level to which each first resource belongs and the target resource category of the first resource are determined respectively, and a resource category knowledge graph is constructed according to the target resource level and the target resource category.

[0132] In one embodiment, an electronic device is provided. The electronic device may be a mobile device such as a mobile phone, a tablet, a vehicle-mounted mobile terminal, or other device with program execution capability. The internal structure diagram of the electronic device may be as shown below: Figure 4 As shown. The electronic device includes a processor, a memory and a network module. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, instructions or codes. The internal memory provides an environment for the operation of the operating system and instructions or codes in the non-volatile storage medium. When the instructions or codes are executed by the processor, the functions or steps of the above-mentioned multi-field resource recommendation method are implemented. The network module of the electronic device may include a network interface and / or a wireless network module, and the electronic device may communicate with other devices or service platforms through the network module. In addition, the electronic device may also include a display screen and an input device, etc.

[0133] In one embodiment, an electronic device is provided, including a memory, a processor, and instructions or codes stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the instructions or codes:

[0134] Constructing a resource category knowledge graph for each field respectively, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource;

[0135] Acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource one by one;

[0136] Build a graph database using the second resource and users as nodes and behaviors as edges;

[0137] In the graph database, determine the node vector of the node and modify the node vector according to the resource category knowledge graph;

[0138] The target recommended resource is determined in the preset resource list according to the corrected node vector, and the target recommended resource is recommended.

[0139] In one embodiment, a storage medium is provided, on which instructions or codes are stored, and when the instructions or codes are executed by a processor, the following steps are implemented:

[0140] Constructing a resource category knowledge graph for each field respectively, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource;

[0141] Acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource one by one;

[0142] Build a graph database using the second resource and users as nodes and behaviors as edges;

[0143] In the graph database, determine the node vector of the node and modify the node vector according to the resource category knowledge graph;

[0144] The target recommended resource is determined in the preset resource list according to the corrected node vector, and the target recommended resource is recommended.

[0145] It should be noted that the functions or steps that can be implemented by the above-mentioned storage medium or electronic device can refer to the relevant description in the aforementioned method embodiment. In order to avoid repetition, they will not be described one by one here.

[0146] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through instructions or codes, and the instructions or codes can be stored in a non-volatile readable storage medium. When the instructions or codes are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0147] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0148] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the units or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the units in the system in the implementation scenario can be distributed in the system of the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more systems different from the present implementation scenario. The units of the above-mentioned implementation scenario can be combined into one unit, or can be further split into multiple sub-units.

[0149] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A multi-domain resource recommendation method, characterized in that: The method comprises: Constructing a resource category knowledge graph for each field respectively, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource; Acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource in a one-to-one manner; Constructing a graph database using the second resource and the user as nodes and the behavior as edges; In the graph database, determining a node vector of the node, and modifying the node vector according to the resource category knowledge graph; The resource is recommended according to the modified node vector.

2. The method according to claim 1, characterized in that Determining the node vector of the node in the graph database includes: Sampling in a random walk manner on the graph database to obtain node sequence data; The node sequence data is trained using a graph representation method to obtain the node vector of a preset dimension.

3. The method according to claim 2, characterized in that The modifying the node vector according to the resource category knowledge graph includes: Determine that the second resource corresponding to the first resource under each resource category is a resource to be corrected, and the node vector corresponding to the resource to be corrected is a vector to be corrected; Determine that the mean value of all the vectors to be corrected is the center vector of the resource category, and move the vectors to be corrected toward the center vector; Determine whether the node vector satisfies a preset convergence condition. If not, return to the step of determining the node vector of each node in the graph database.

4. The method according to claim 3, characterized in that The determining whether the node vector satisfies a preset convergence condition includes: Setting a loss function according to each of the moved vectors to be corrected and the node vector corresponding to each of the users; If the most recent preset number of loss functions are lower than a preset loss threshold, it is confirmed that the preset convergence condition is met.

5. The method according to claim 1, characterized in that The recommending the resource according to the modified node vector includes: Acquire a target user and a most recent behavior of the target user, and determine that a second resource corresponding to the most recent behavior is a target resource; The first similarities between the to-be-matched vector of each to-be-matched resource in the resource list and the node vector corresponding to the target resource are calculated respectively, and a preset recommended number of to-be-matched vectors with the highest first similarities are determined as first recommended vectors, and the to-be-matched resources corresponding to the first recommended vectors are the to-be-matched resources.

6. The method according to claim 5, characterized in that The recommending the resource according to the modified node vector further includes: If the target user does not have the corresponding most recent behavior or the behavior time corresponding to the most recent behavior is not within the preset time range, the second similarity between each of the vectors to be matched and the node vector corresponding to the target user is calculated respectively, and a preset recommended number of vectors to be matched with the highest second similarities are determined as second recommended vectors, and the resources to be matched corresponding to the second recommended vectors are the resources to be matched.

7. The method according to claim 1, characterized in that The resource category knowledge graphs for each field are constructed separately, including: Determine a resource level in each of the domains, wherein the resource level in each of the domains is one or more; Determine the resource category under each resource level, wherein each resource level has one or more resource categories; The target resource level to which each of the first resources belongs and the target resource category described by the first resources are determined respectively, and the resource category knowledge graph is constructed according to the target resource level and the target resource category.

8. A multi-domain resource recommendation device, characterized in that: The device comprises: A first construction module is used to construct a resource category knowledge graph for each field, wherein the resource category knowledge graph for each field includes at least one resource category, and each resource category includes at least one first resource; An acquisition module, configured to acquire behavior data of at least one user, wherein the behavior data includes a user, a second resource, and a behavior, and the first resource corresponds to the second resource in a one-to-one manner; A second construction module, configured to construct a graph database using the second resource and the user as nodes and the behavior as edges; A correction module, used to determine the node vector of the node in the graph database, and correct the node vector according to the resource category knowledge graph; A recommendation module is used to recommend the resource according to the modified node vector.

9. A storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.