A group recommendation method based on knowledge graph extraction tendency

By combining items and personal knowledge graphs to extract user selection tendencies, it solves the problem of failing to effectively utilize relationships and user attributes in existing group recommendations, achieving higher recommendation accuracy and interpretability, and is suitable for user entities Group recommendations.

CN114913028BActive Publication Date: 2024-10-29EAST CHINA NORMAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210639802.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-08
Publication Date
2024-10-29
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

Existing group recommendation methods fail to effectively capture interactions in relationship paths when using knowledge graphs, do not fully utilize similar attributes between users, and are difficult to clarify that user preferences are affected by item attributes and user attributes, resulting in recommendation accuracy. and lack of interpretability.

Method used

Using a method based on knowledge graph, through the combination of item knowledge graph and personal knowledge graph, user selection tendency is extracted, user intention behind user-item interaction is explored, and user entity is generated by using item-relationship-attribute information and user-user interaction. Group recommendation improves the accuracy and interpretability of recommendations.

Benefits of technology

It improves the accuracy and interpretability of group recommendations, can better understand users' selection factors in the group, improves user portraits, and provides more reasonable recommendation results. The method is simple and highly practical.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114913028B_ABST
    Figure CN114913028B_ABST
Patent Text Reader

Abstract

The present invention discloses a group recommendation method based on knowledge graph to extract user tendency, which is characterized by extracting user selection tendency behind user-item interaction by using item knowledge graph and personal knowledge graph to realize user entity group recommendation. The method not only needs to use item knowledge graph to grasp user preferences and improve user portrait, but also uses personal knowledge graph to extract the influence between users through attribute combination to make recommendations for target groups. Compared with the existing technology, the present invention has improved accuracy and greatly improved the interpretability of recommendation, introduced personal knowledge graph, supplemented the characteristics of other users in the group when users make choices, integrated user information, item information and group interaction, and can better understand which factors affect users when making choices, grasp user preferences, and improve user portraits. The method is simple, effective, and has good application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of recommendation systems, and in particular to a group recommendation method based on knowledge graph extraction tendency. Background Art

[0002] With the rapid development of Internet technology, the problem of data overload can no longer be ignored. How to select content that meets user preferences from a large amount of data is the core goal of the recommendation system. Compared with search engines, recommendation systems grasp users' interests and preferences through personalized calculations, thereby guiding users to discover their own information needs.

[0003] So far, personal recommendation systems have made great progress. Academically, more recommendation systems are also focused on single-user models. But in real life, interactions mainly occur in groups, such as watching movies with family members, team building with colleagues, and planning trips with friends. The equally important group recommendation problem still has a lot of room for development in cutting-edge research. Group recommendation algorithms treat all group members as recommendation audiences and find a set of items that meet the group's preferences by aggregating the preferences of users in the group.

[0004] However, due to the instability of group members, recommendations for such groups will face serious data sparsity problems. It is difficult to directly obtain the group's preferences from the interaction data between the group and the item to achieve the purpose of recommendation. To address this problem, the current method is to use the attention mechanism to locate important factors that affect user decisions, such as user dependence on other users, simulate the user's decision-making process, etc. In addition to using the attention mechanism, group recommendations can also make better recommendations with the help of the knowledge graph by borrowing the strategy of handling cold starts in personal recommendation systems. The attribute information of user nodes and item nodes in the knowledge graph can be used as side information to enrich the portrait of users in the group.

[0005] However, there are still some problems in using knowledge graphs for group recommendations:

[0006] 1) Currently, there are few methods that use knowledge graphs in group recommendations. The existing methods that use knowledge graphs do not make reasonable use of the relationship edges in the knowledge graphs, and are not sufficient to capture the interactions between relationships in the relationship path.

[0007] 2) Currently, most of the methods involving knowledge graphs in group recommendations only use the knowledge graph of products (the items to be recommended), without taking advantage of the similar attributes that may exist between users (the users who are given recommendations).

[0008] 3) Existing methods still cannot fully grasp the specific factors that influence user behavior in a group. It is impossible to clearly know how user preferences in a group are affected by item attributes and user attributes, and the interpretability needs to be improved. Summary of the invention

[0009] The purpose of the present invention is to provide a group recommendation method based on knowledge graph extraction tendency to address the deficiencies of the prior art. The method of extracting user selection tendency is adopted to give top-k recommendations for a group g in the candidate items I, and the item knowledge graph and personal knowledge graph are used to explore the user intention behind the user-item interaction. On the basis of the knowledge graph on the user-item interaction, the information on the item-relationship-attribute side is added, and the commonality of the combination relationship that affects the decision-making of the user group is extracted by combining the item knowledge graph and the personal knowledge graph. As the selection tendency, recommendations are made for the target group. This method not only uses the knowledge graph of the item to grasp the user's preferences and improve the user portrait, but also uses the personal knowledge graph to quantify the influence between users through attribute combination, so as to realize user entity group recommendation, which greatly improves the accuracy and interpretability of group recommendation. The method is simple, has higher accuracy, strong practicality, good effect, and has good application prospects.

[0010] The specific technical solution for achieving the purpose of the present invention is: a group recommendation method based on knowledge graph extraction tendency, which is characterized by extracting the user's selection tendency and giving top-k recommendations among the selected items I for a group g. The method includes the following specific steps.

[0011] Step 1: Graph acquisition and construction and data set division

[0012] Collect knowledge graphs of items and users, find corresponding entities for items and their attributes, and users and their attributes in the user group recommendation system data set, and indirectly merge the personal knowledge graph and the item knowledge graph through the user's group relationship to obtain the initial graph.

[0013] Specifically, the original data will be constructed into a knowledge graph Gragh = (Vertex, Edge), where Vertex refers to all nodes in the graph, and Edge is the edge connecting the nodes. The edges in the knowledge graph Gragh will consist of triples of the form (head, relation, tail). Among them, head∈Vertex, relation∈Edge, tail∈Vertex represent the head entity, relation, and tail entity respectively. Among them, the set of relations relation is R, and the number is N r .

[0014] For the interaction dataset between groups and items, the known group-item interactions are regarded as positive instances O+ , unknown group-item interactions are considered negative instances O - A negative sampling strategy is performed, that is, a group-item positive instance is paired with a negative item that has not interacted before, and finally 80% of the interaction history of each group is randomly selected to form the training set O, which is expressed by the following (p) formula:

[0015] O={(g,i,j)|(g,i)∈O + ,(g,j)∈O -} (p);

[0016] Among them, (g,i,j) is a training example consisting of a group g, an item i with interaction, and an item j without interaction; (g,i) is a positive example consisting of a group g and an item i with interaction; (g,j) is a negative example consisting of a group g and an item j without interaction.

[0017] Step 2: Construction of interaction embedding representation

[0018] Consider the user set as U and the number as N u , the item set is I, the quantity is N i , the attribute set is T, the number of attribute entities is N t . Use a 300-dimensional vector to represent the 0th-order representation of user u 0th-order representation of item i and the 0th-order representation of attribute v Since the interaction between groups and items is highly sparse, we use relatively more historical user-item interaction data to construct a high-dimensional representation of the user. Let C u_i ={(u,i)|u∈U,i∈I} is the interaction graph between users and items, A C and D C C u_i The adjacency matrix and degree matrix of is the user-item Laplacian matrix transformed from the interaction graph, which is used as the embedding representation of the user-item interaction and is calculated by the following formula (a):

[0019]

[0020] C u_u ={(u,u′)|u∈U,u′∈U} is the user-user interaction graph, that is, users who appear in the same group are considered to have interactions with each other. By the same logic as above, the user-user Laplacian matrix can be obtained

[0021] Step 3: Construction of item characteristic tendency and user characteristic tendency

[0022] Use the relationships in the graph to construct the characteristic tendency L of items that users in the group may coexist with i and user characteristic tendency L u , and let L τ For all characteristic tendencies. Taking user characteristic tendencies as an example, each user characteristic tendency is composed of two relationships, so a weight is needed Indicates the importance of each user's characteristic tendency to different relationship combinations.

[0023] Weight Normalize and get the normalized importance α(r u ,L u ), and is expressed by the following formula (d):

[0024]

[0025] Among them, exp represents the exponential function; user characteristic tendency represents It is expressed by the following formula (b):

[0026]

[0027] Where: is the distribution vector of user characteristic tendencies about users; num_f is the number of combinations of user characteristic tendencies existing in the group, and each tendency is represented by a d-dimensional vector; The distribution vector of the user characteristics about the user attributes calculated by the following formula (c):

[0028]

[0029] Among them, α(r u ,L u ) as shown in formula (d).

[0030] User item feature preference expression User characteristics tendencies of the above users similar.

[0031] Step 4: Generation of item knowledge graph-item feature representation and personal knowledge graph-personal feature representation

[0032] Aggregate the attribute relationships in the item knowledge graph and the personal knowledge graph to form the characteristic aggregation of each item and the characteristic aggregation of each user. Since the relationships and attributes in the personal knowledge graph and the item knowledge graph are not directly connected in the graph, for the convenience of distinction, the relationships and attributes are divided into item relationships. i Item attributes i and personal relationships u and personal attributesu Taking the personal knowledge graph as an example, each user may have one or more <user-relationship-attribute> aggregations, so the relationship-attribute pairs connected by users can be aggregated into personal characteristics. For user u, define its first-order relationship r in the personal knowledge graph u Connection properties u G u ={(r u ,t u )|(u,r u ,t u )∈Graph}. Then the relationships are aggregated to generate the first-order representation of the personal characteristics of user u The first-order representation of the personal characteristics It is expressed by the following formula (f):

[0033]

[0034] in, is the user attribute t u The 0th order representation of ; It is a relationship u Representation.

[0035] Iterate using relationship edges to generate a k-order representation of the user's personal characteristics The k-th order representation It is expressed by the following formula (g):

[0036]

[0037] Similarly, the k-order representation of item characteristics It can also be obtained through the above steps.

[0038] Step 5: User representation and item representation generation

[0039] The representation of user user is composed of item-related representation and user-related representation. Let R user_i ={(L i ,i)|(user,i)∈C user_i ,L i ∈L τ} indicates that the user interaction is a first-order item, which is connected by the item characteristic tendency; similarly, R user_u Indicates that the user user interaction is a first-order user, connected by user characteristic tendency, and calculates the first-order representation of user user It is expressed by the following formula (h):

[0040]

[0041] Among them, P(user0 ,i 0 ) and P(user 0 ,u 0 ) are respectively calculated by the following formulas (i) to (j) to represent the user's preference for item characteristics and the user's preference for other users' personal characteristics:

[0042]

[0043]

[0044] In the formula, β(user 0 ,L i ) is the item feature attention score, which is used to distinguish the importance of different item feature tendencies; β(user 0 ,L u ) is the personal characteristic attention score, which is used to distinguish the importance of different personal characteristic tendencies. It is calculated by the following formulas (k) to (l):

[0045]

[0046]

[0047] Using the above method, we can get the k-order representation of the user user by the following formula (m):

[0048]

[0049] The final user represents E user It is formed by adding k-order representations and is expressed by the following (n) formula:

[0050]

[0051] Item Display E i The characteristics of items of order 1, 2, ..., k are added together and expressed by the following formula (o):

[0052]

[0053] Step 6: Group aggregation generation and score prediction

[0054] The importance of different users in the group is distinguished by softmax, and the following group representation E is obtained by aggregation: g :

[0055] E g =∑ u∈g δ(u,g)u (p);

[0056] in, Indicates the importance of user u in the group.

[0057] E by group g The prediction score of the group for the item is obtained by the following formula (q):

[0058]

[0059] Step 7: Loss Optimization and Recommendation Generation

[0060] The training set is trained through steps 2 to 6, and the BPR loss function is used to optimize the parameters to obtain the group recommendation model. The group recommendation model is used to calculate the test set and the prediction score is The highest top-k pairs are recommended to the group, and the loss function is expressed by the following formula (r):

[0061]

[0062] in, is the hyperparameter of the model recommended for the group; λ is the hyperparameter that controls the L2 regularization term; L BPR The BRP loss is expressed by the following formula (s):

[0063]

[0064] Among them, σ is the sigmoid function.

[0065] Compared with the prior art, the present invention has higher accuracy and stronger interpretability, introduces personal knowledge graphs, supplements the user's consideration of the characteristics of other users in the group when making choices, integrates user information, item information and group interaction, can better understand which factors influence the user's choice, better grasp the user's preferences, improve user portraits, and give a more reasonable explanation for the prediction results while improving the accuracy. The method is simple, practical, and effective, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0067] The present invention is further described in detail below through examples in the Yelp2019 dataset.

[0068] Example 1

[0069] See also Figure 1 , the present invention uses the item knowledge graph and the personal knowledge graph to extract the user selection tendency behind the user-item interaction and realizes the user entity group recommendation. The specific steps are as follows:

[0070] Step 1: Group dataset preprocessing

[0071] Since Yelp does not include explicit group information, group preprocessing is required. If a group of users' friends visit the same restaurant or attend the same event, they are considered to be members of a group, and participating in the corresponding activities is considered to be group-event interaction. Here, c9gJKNC3n0EGKyHLOJU-L (hereinafter referred to as user u1), KSULLiJGrjtSsapmpudvTD (hereinafter referred to as user u2), Asp2nP7Sun6k-mvFFa_86 (hereinafter referred to as user u3) in the dataset are regarded as a group g, and the item IDs are 15Debf5s2acebghSqinT35q (hereinafter referred to as item i1), tnhfDv5Il8EaosXZ55WQbo (hereinafter referred to as item i2), 36q49WndiyA6ao1658QSSj26do (hereinafter referred to as item i3), and Wojdnr68c9q069QPqq6go (hereinafter referred to as item i4).

[0072] Step 2: Graph acquisition and construction and data set division

[0073] Freebase is used to build a knowledge graph of structured data, and corresponding entities are found for items and their attributes in the user group recommendation system data, as well as users and their attributes. The personal knowledge graph and the item knowledge graph are indirectly integrated through the user's group relationship to obtain the initial graph. Through processing, it is obtained that user u1 has age group = "children", occupation = "student", number of fans = "95", u2 has age group = "youth", occupation = "teacher", number of fans = "20", u3 has age group = "youth", occupation = "doctor", number of fans = "13" and other attributes. For the item knowledge graph, we have i1 with city = "SanFrancisco", number of comments = "1198", and score = "4.5", i2 with city = "San Francisco", number of comments = "235", and score = "3.1", i3 with city = "Alaska", number of comments = "135", and score = "4.2", and i4 with city = "Augusta", number of comments = "46", and score = "4.5".

[0074] Step 3: Construction of interaction embedding representation

[0075] Use a 300-dimensional vector to represent the 0th-order representation of user u 0th-order representation of item i and the 0th-order representation of attribute v Let C u_i={(u,i)|u∈U,i∈I} is the interaction graph between users and items, A C and D C C u_i The adjacency matrix and degree matrix of The user-item Laplacian matrix converted from the interaction graph is used as the embedding representation of the user-item interaction and is calculated as follows (a):

[0076]

[0077] C u_u ={(u,u′)|u∈U,u′∈U} is the user-user interaction graph, that is, users who appear in the same group are considered to have interactions. By the same logic as above, the user-user Laplacian matrix can be obtained

[0078] Step 4: Construction of item characteristic tendency and user characteristic tendency

[0079] Use the relationships in the graph to construct the characteristic tendency L of items that users in the group may coexist with i and user characteristic tendency L u , and let L τ For all characteristic tendencies. Taking user characteristic tendencies as an example, each user characteristic tendency is composed of two relationships, so a weight is needed Indicates the importance of each user's characteristic tendency to different relationship combinations.

[0080] Weight Normalize and get the normalized importance α(r u ,L u ), and is expressed by the following formula (d):

[0081]

[0082] Where exp represents the exponential function. User characteristic tendency represents It is expressed as the following formula (b):

[0083]

[0084] is the distribution vector of user characteristic tendencies about users, num_f is the number of combinations of user characteristic tendencies existing in the group, and each tendency is represented by a d-dimensional vector. is the distribution vector of user characteristics with respect to user attributes, and is expressed by the following formula (c):

[0085]

[0086] Among them, α(r u ,L u ) as shown in formula (d).

[0087] User item feature preference expression User characteristics tendencies of the above users similar.

[0088] Step 5: Generation of item knowledge graph-item feature representation and personal knowledge graph-personal feature representation

[0089] Aggregate the attribute relationships in the item knowledge graph and the personal knowledge graph to form the characteristic aggregation of each item and the characteristic aggregation of each user. For user u1, define its first-order relationship r in the personal knowledge graph. u Connection properties u G u ={(r u ,t u )|(u,r u ,t u )∈Graph}. Aggregate the relationships to generate the first-order representation of user u’s personal characteristics And it is expressed by the following formula (f):

[0090]

[0091] in, is the user attribute t u The 0th order representation of It is a relationship u Representation.

[0092] Iterate using relationship edges to generate a k-order representation of the user's personal characteristics And it is expressed by the following formula (g):

[0093]

[0094] Similarly, the k-order representation of item characteristics It can also be obtained through the above steps.

[0095] Step 6: User and item representation generation

[0096] The representation of user user is composed of item-related representation and user-related representation. Let R user_i ={(L i ,i)|(user,i)∈C user_i ,L i ∈L τ} indicates that the user interaction is a first-order item, which is connected by the item characteristic tendency. Similarly, R user_uIndicates that the user user interaction is a first-order user, connected by user characteristic tendencies. Calculate the first-order representation of user user And it is expressed by the following formula (h):

[0097]

[0098] Among them, P(user 0 ,i 0 ) and P(user 0 ,u 0 ) respectively represent the user's selection tendency for item characteristics and the user's selection tendency for other users' personal characteristics, and are expressed by the following formulas (i) to (j):

[0099]

[0100]

[0101] Among them, β(user 0 ,L i ) is the item feature attention score, which is used to distinguish the importance of different item feature tendencies. Similarly, β(user 0 ,L u ) is the personal characteristic attention score, which is used to distinguish the importance of different personal characteristic tendencies. It is calculated as shown in the following formulas (k) to (l):

[0102]

[0103]

[0104] Using the above method, we can get the k-order representation of user user The calculation is as follows (m):

[0105]

[0106] The final user representation is formed by adding k-order representations and is expressed by the following (n) formula:

[0107]

[0108] The item representation is the sum of the 1, 2, ..., k-order item feature representations and is expressed by the following formula (o):

[0109]

[0110] Step 7: Group aggregation generation and score prediction

[0111] According to different users in the group, group g represents E gIt is expressed by the following formula (p):

[0112] E g =∑ u∈g δ(u,g)u (p).

[0113] in, Indicates the importance of user u in group g.

[0114] Through the representation of group g, obtain the group's predicted score for the item It is expressed by the following formula (q):

[0115]

[0116] Step 8: Loss Optimization and Recommendation Generation

[0117] The training set is trained through steps 2 to 6, and the BPR loss function is used to optimize the parameters to obtain the group recommendation model. The group recommendation model is used to calculate the test set and the predicted score is The highest top-k pairs are recommended to the group, and the loss function is expressed by the following formula (r):

[0118]

[0119] in, is the hyperparameter of the group recommendation model; λ is the hyperparameter that controls the L2 regularization term; L BPR The BRP loss is expressed by the following formula (s):

[0120]

[0121] Among them, σ is the sigmoid function.

[0122] Finally, the trained group recommendation model is used to predict the ratings. In the top-3 recommendations, the recommended ratings of group g for items i1, i2, and i4 are obtained from high to low. The attribute combination of items is more inclined to consider the combination of <city, rating>, and the attribute combination of users is more inclined to consider the combination of <age group, occupation>. The above experimental results show that compared with the baseline method, the present invention has higher accuracy and stronger interpretability, and is suitable for any scenario where users participate in comments.

[0123] The present invention combines the item knowledge graph and the personal knowledge graph to extract the commonality of the combination relationship that affects the decision-making of the user group as the tendency of selection for recommendation. The knowledge graph has additional information on the item-relationship-attribute side based on the user-item interaction. Considering that when users make decisions in a group, they often do not only target one item relationship, and do not only focus on the relationship between items. The present invention uses the item knowledge graph and the personal knowledge graph to explore the user intention behind the user-item interaction and realize the recommendation of user entity groups. This task not only requires the use of the item knowledge graph to grasp the user's preferences and improve the user portrait, but also the use of the personal knowledge graph to quantify the influence between users through attribute combinations, and make recommendations for the target group.

[0124] The above is only a further explanation of the present invention and is not intended to limit this patent. Any equivalent implementation of the present invention should be included in the scope of the claims of this patent.

Claims

1. A group recommendation method based on knowledge graph to extract user selection tendency, characterized by Utilize item knowledge graph and personal knowledge graph to extract user selection tendency behind user-item interaction and implement user entity group recommendation, which includes the following steps: Step 1: Graph acquisition and construction and data set division Collect the knowledge graph of items and users, find corresponding entities for items and their attributes, and users and their attributes in the user group recommendation system dataset, and obtain the initial graph. For the interaction dataset between groups and items, randomly select 80% of the interaction history of each group to form the training set. Step 2: Construction of interaction embedding representation The Laplacian matrices of the interaction matrices between users and items and between users are used as interaction representations; a 300-dimensional vector is used to represent the 0th-order representation of user u 0th-order representation of item i and the 0th-order representation of attribute v Let C u_i ={(u,i)|u∈U,i∈I} is the interaction graph between users and items, A C and D C C u_i The adjacency matrix and degree matrix of Transform the interaction graph into the user-item Laplacian matrix L ui , as the embedding representation of user-item interaction, the user-item Laplacian matrix L ui Calculated by the following formula (a): Similarly, the interaction diagram between users C u_i ={(u,i)|u∈U,i∈I} is transformed into the user-user Laplacian matrix as an embedded representation of user-user interactions; Step 3: Construction of item characteristic tendency and user characteristic tendency Using the importance matrix related to the tendency, we construct the item characteristic tendency and user characteristic tendency of the group users, so that each tendency can represent the combination of two relations; using the relationship attribute edge in the knowledge graph, we generate the user's item characteristic tendency representation and user characteristics tendency expression The distribution vector of the user characteristics tendency is expressed as Calculated by the following formula (b): Where: is the distribution vector of user characteristic tendency about users, num_f is the number of combinations of user characteristic tendency existing in the group, and each tendency is represented by a d-dimensional vector; The distribution vector of the user characteristics about the user attribute relationship calculated by the following formula (c) Where: α(r u ,L u ) is the weight calculated by the following formula (d): Among them, exp is the exponential function; The importance of each user's characteristic tendency to different relationship combinations; Step 4: Generation of item knowledge graph-item feature representation and personal knowledge graph-personal feature representation Aggregate the attributes and relationships in the item knowledge graph and the personal knowledge graph to form the characteristic aggregation of each item and the characteristic aggregation of each user. The attribute and relationship aggregation is to aggregate the relationship-attribute pairs connecting users, that is, in the personal knowledge graph, the relationship r u Connection properties u G u ={(r u ,t u )|(u,r u ,t u )∈Graph}, and then aggregate the relationships to generate the following (e) first-order representation of the personal characteristics of user u Where: For the relationship u ' is the user attribute t u The 0th order representation of the attribute t u Through the relationship edge r u’ With other attributes t u’ Connected, that is, Through the above method, we can get the attribute t u The first-order representation of The attribute t u The first-order representation of Calculated by the following formula (f): Similarly, we can get t u The 2, 3, ..., k-order representation of the user's personal characteristics is generated by iteratively using the relationship edge as follows (g): Step 5: User representation and item representation generation Let R user_i ={(L i ,i)|(user,i)∈C user_i } indicates that the user interaction is a first-order item, and is connected by the item characteristic tendency; R user_u Indicates that user user interacts with a first-order user and is connected by user characteristic tendency; the first-order representation of the user user is calculated by the following formula (h): Among them, P(user 0 ,i 0 ) and P(user 0 ,u 0 ) are respectively calculated by the following formulas (i) to (j) to represent the user's preference for item characteristics and the user's preference for other users' personal characteristics: In the formula, β(user 0 ,L i ) is the item feature attention score, which is used to distinguish the importance of different item feature tendencies; β(user 0 ,L u ) is the personal characteristic attention score, which is used to distinguish the importance of different personal characteristic tendencies. It is calculated by the following formulas (k) to (l): Similarly, using the above method, we can get the following (m) k-order representation of user user: Represent the k-th order of user user Add them together to get the user representation E user , which is expressed by the following formula (n): The k-order item characteristics of user user Add them together to get the item representation E i , which is expressed by the following formula (o): Step 6: Group aggregation generation and score prediction The importance of different users in the group is distinguished by softmax, and the following group representation E is obtained by aggregation: g : E g =∑ u∈g δ(u,g)u (p); in, Indicates the importance of user u in the group; E by group g The prediction score of the group for the item is obtained by the following formula (q): Step 7: Loss Optimization and Recommendation Generation The training set is trained through steps 2 to 6, and the BPR loss function is used to optimize the parameters to obtain the group recommendation model. The group recommendation model is used to calculate the test set and the prediction score is The highest top-k pairs are recommended to the group, and the loss function is expressed by the following formula (r): in, is the hyperparameter of the model recommended for the group; λ is the hyperparameter that controls the L2 regularization term; L BPR The BRP loss is expressed by the following formula (s): Among them, σ is the sigmoid function.

2. The group recommendation method based on knowledge graph extraction of user selection tendency according to claim 1 is characterized in that The acquisition and construction of the graph and the division of the data set are to construct the original data into a knowledge graph Gragh = (Vertex, Edge), where Vertex refers to all the nodes in the graph, Edge is the edge connecting the nodes, and the edge in the knowledge graph Gragh is composed of a triple of head, relation and tail, where head∈Vertex; relation∈Edge; tail∈ Vertex represents the head entity, relation, and tail entity respectively; the set of relations is R and the number is N. r .

3. The group recommendation method based on knowledge graph extraction of user selection tendency according to claim 1 is characterized in that The interaction dataset between groups and items considers known group-item interactions as positive instances. + , unknown group-item interactions are considered negative instances O - A negative sampling strategy is performed, that is, a group-item positive instance is paired with a negative item that has not interacted before, and finally 80% of the interaction history of each group is randomly selected to form a training set O represented by the following (p) formula: O={(g,i,j)|(g,i)∈O + ,(g,j)∈O - } (p); Among them, (g,i,j) is a training example consisting of a group g, an item i with interaction, and an item j without interaction; (g,i) is a positive example consisting of a group g and an item i with interaction; (g,j) is a negative example consisting of a group g and an item j without interaction.

Citation Information

Patent Citations

  • News pushing method based on interactive graph neural network

    CN110619081A

  • Knowledge graph-based user group recommendation system and method

    CN112364257A