Aggregation page recommendation method and device, equipment and storage medium
By using the trained graph model and generating node representations based on historical access behaviors, the problem of inaccurate aggregate page recommendations in the aggregate page recommendation system is solved, accurate matching of user needs is achieved, and the accuracy of recommendations is improved.
Patent Information
- Application Number
- CN202410606764.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-15
AI Technical Summary
The existing aggregate page recommendation system lacks full exploration of the characteristics of aggregate page materials, resulting in low accuracy of recommended aggregate pages and inability to accurately match user needs.
Use the trained graph model to generate behavioral correlation based on historical access behavior through node representation, query the representation of the user's operation items and candidate aggregation pages to be recommended, and determine the recommended aggregation page based on similarity conditions to improve the accuracy of recommendations.
Through the graph model, the accurate recommendation aggregation page for recommended users is realized, which improves the accuracy of the aggregation page recommendation and enhances the matching with user needs.
Smart Images

Figure CN118551104A
Abstract
Description
Technical Field
[0001] The present application relates to the field of information retrieval technology, and in particular to a method, device, equipment and storage medium for recommending aggregated pages. Background Art
[0002] In the related art, the aggregation page recommendation system usually analyzes the user's existing operation behavior to obtain the similarity between products, and then recommends aggregation pages to users based on the similarity between products. The aggregation pages contain similar items to the items that the user has liked. However, this method of recommending aggregation pages lacks sufficient mining of the characteristics of aggregation page materials, which results in the inability to accurately match aggregation pages with user needs, making the accuracy of the recommended aggregation pages low.
[0003] Application Contents
[0004] The present application provides a method, device, equipment and medium for recommending an aggregated page to at least solve the existing problems.
[0005] The technical solution of this application is as follows:
[0006] An embodiment of the present application provides a method for recommending an aggregation page, comprising: obtaining a trained graph model; wherein the graph model comprises a plurality of nodes, each of the nodes corresponding to an item or an item aggregation page, and being used to indicate a representation of the corresponding item or item aggregation page; the representation is generated by the behavioral correlation of the item or the item aggregation page in historical access behaviors, and the behavioral correlation is used to indicate that the item or the item aggregation page has a co-occurrence relationship in the historical access behaviors; querying the nodes in the graph model according to the operated items of the user to be recommended to obtain a first representation of the operated items; querying the nodes in the graph model according to the candidate item aggregation page to obtain a second representation of each of the candidate item aggregation pages; and determining to send the candidate item aggregation page as a recommended aggregation page to a device associated with the user to be recommended when the similarity between the first representation and the second representation meets a first set condition.
[0007] Optionally, querying the nodes in the graph model based on multiple candidate item aggregation pages to obtain the second representation of each of the candidate item aggregation pages includes: querying the nodes of the corresponding item aggregation page in the graph model for any candidate item aggregation page; if there is no node corresponding to the candidate item aggregation page in the nodes of the corresponding item aggregation page, querying the nodes of the corresponding item in the graph model based on the target items contained in the candidate item aggregation page to obtain the representation of each of the target items; and aggregating the representations of each of the target items using the aggregation function of the graph model to obtain the second representation.
[0008] Optionally, there are multiple target items belonging to at least two categories; the aggregation function of the graphical model is used to aggregate the representations of the target items to obtain the second representation, including: for each category, according to the target items contained in the category, the aggregation function of the graphical model is used to aggregate the representations of the target items under the corresponding category to obtain the second representation under the corresponding category.
[0009] Optionally, determining whether to send the candidate item aggregation page as a recommended aggregation page to the device associated with the user to be recommended based on the similarity between the first representation and the second representation includes: when the similarity between the second representation under any category of the candidate item aggregation page and the first representation meets a first set condition, sending the candidate item aggregation page as the recommended aggregation page to the device associated with the user to be recommended.
[0010] Optionally, before obtaining the trained graph model, it also includes: obtaining the initial representation of each node in the graph model; taking any node in the graph model as the current node, and selecting the k-th order neighboring nodes of the current node from the graph model, where k is a positive integer with a fixed value; using an aggregation function to aggregate the initial representations of the k-th order neighboring nodes and the initial representation of the current node to serve as the updated representation of the current node; taking at least one neighboring node of the current node in the graph model as a positive sample node, and taking at least one node other than the neighboring node in the graph model as a negative sample node, and determining a loss function for indicating the difference between the first representation similarity and the second representation similarity based on the first representation similarity between the updated representation of the current node and the positive sample node, and based on the second representation similarity between the updated representation of the current node and the negative sample node; based on the loss function, adjusting the representation of each of the nodes in the graph model, and adjusting the parameters of the aggregation function.
[0011] Optionally, the acquiring of the initial representation of each node in the graph model includes: randomly configuring the initial representation of each node in the graph model; or using the representation of each node determined by the last parameter adjustment as the initial representation.
[0012] Optionally, before obtaining the initial representation of each node in the graph model, it also includes: determining the items and item aggregation pages with operation behaviors based on historical access behaviors; configuring the nodes corresponding to the items or the item aggregation pages; for any two nodes, determining whether there is a co-occurrence relationship between the two nodes based on whether the operation behaviors of the items or the item aggregation pages corresponding to the two nodes meet the second set condition; connecting the two nodes with the co-occurrence relationship to obtain the graph model.
[0013] Optionally, the second set condition includes that the operation behaviors belong to the same user and the operation time interval is not greater than a threshold.
[0014] Optionally, after determining whether the two nodes have a co-occurrence relationship based on whether the items corresponding to the two nodes or the operation behaviors of the item aggregation page meet the second set condition, the method also includes: counting the co-occurrence frequency for the two nodes with a co-occurrence relationship; determining the weight of the edge between the two nodes based on the co-occurrence frequency; wherein the weight is used to represent the nodes connected by the aggregation function aggregation.
[0015] The embodiment of the present application provides a method for recommending an aggregate page, which obtains a trained graph model; wherein the graph model includes a plurality of nodes, each node corresponds to an item or an item aggregate page, and is used to indicate the representation of the corresponding item or item aggregate page; the representation is generated based on the behavioral correlation of the item or item aggregate page in the historical access behavior, and the behavioral correlation is used to indicate that the item or item aggregate page has a co-occurrence relationship in the historical access behavior; according to the operated items of the user to be recommended, the nodes in the graph model are queried to obtain the first representation of the operated items; according to the candidate item aggregate page, the nodes in the graph model are queried to obtain the second representation of each candidate item aggregate page; when the similarity between the first representation and the second representation meets the first set condition, the candidate item aggregate page is determined to be sent as a recommended aggregate page to the device associated with the user to be recommended. Thus, the purpose of recommending aggregate pages to the recommended user is achieved based on the graph model, and the accuracy of the recommendation of aggregate pages is improved.
[0016] The embodiment of the present application also provides a recommendation device for an aggregation page, comprising: a first acquisition module, used to acquire a trained graph model; wherein the graph model includes a plurality of nodes, each of which corresponds to an item or an item aggregation page, and is used to indicate a representation of the corresponding item or item aggregation page; the representation is generated by the behavioral correlation of the item or the item aggregation page in the historical access behavior, and the behavioral correlation is used to indicate that the item or the item aggregation page has a co-occurrence relationship in the historical access behavior; a first representation module, used to query the nodes in the graph model according to the operated items of the user to be recommended, so as to obtain a first representation of the operated items; a second representation module, used to query the nodes in the graph model according to the candidate item aggregation page, so as to obtain a second representation of each candidate item aggregation page; a recommendation module, used to determine to send the candidate item aggregation page as a recommended aggregation page to the device associated with the user to be recommended when the similarity between the first representation and the second representation meets a first set condition.
[0017] An embodiment of the present application also provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement each step in the method as described above.
[0018] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above method when executed by a processor.
[0019] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0020] When recommending an aggregation page to a user to be recommended, a trained graph model is obtained; wherein the graph model includes a plurality of nodes, each node corresponds to an item or an item aggregation page, and is used to indicate a representation of the corresponding item or item aggregation page; the representation is generated based on the behavioral correlation of the item or item aggregation page in the historical access behavior, and the behavioral correlation is used to indicate that the item or item aggregation page has a co-occurrence relationship in the historical access behavior; according to the operated items of the user to be recommended, the nodes in the graph model are queried to obtain a first representation of the operated items; according to the candidate item aggregation page, the nodes in the graph model are queried to obtain a second representation of each candidate item aggregation page; when the similarity between the first representation and the second representation meets the first set condition, the candidate item aggregation page is determined to be sent as a recommended aggregation page to the device associated with the user to be recommended. Thus, based on the user's operation behavior, the aggregation page is accurately recommended to the user, thereby improving the accuracy of the recommendation of the aggregation page.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0023] Figure 1 A schematic diagram of a recommended method for an aggregation page provided in an embodiment of the present application Figure 1 ;
[0024] Figure 2 A schematic diagram of a recommended method for an aggregation page provided in an embodiment of the present application Figure 2 ;
[0025] Figure 3 A schematic diagram of a recommended method for an aggregation page provided in an embodiment of the present application Figure 3 ;
[0026] Figure 4A schematic diagram of the structure of a device for recommending aggregated pages provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of the structure of another device for recommending aggregated pages provided in an embodiment of the present application;
[0028] Figure 6 A schematic structural diagram of an electronic device provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0029] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0030] The following describes the recommended method, device and electronic device for the aggregation page of the embodiment of the present application with reference to the accompanying drawings.
[0031] Figure 1 A schematic diagram of a recommended method for an aggregation page provided in an embodiment of the present application Figure 1 .
[0032] like Figure 1 As shown, the recommended method for the aggregation page includes the following steps:
[0033] Step 101, obtain a trained graph model; wherein the graph model includes a plurality of nodes, each node corresponds to an item or an item aggregation page, and is used to indicate a representation of the corresponding item or item aggregation page, wherein the representation is generated based on the behavioral correlation of the item or item aggregation page in the historical access behavior, and the behavioral correlation is used to indicate that the item or item aggregation page has a co-occurrence relationship in the historical access behavior.
[0034] It should be noted that the method for recommending aggregated pages can be performed by an aggregated page recommendation device, wherein the aggregated page recommendation device can be implemented by software and / or hardware. The aggregated page recommendation device can be an electronic device, or can be configured in an electronic device to perform aggregated page recommendation.
[0035] The electronic device may be any device with computing capability, for example, a terminal device or a server.
[0036] The terminal device includes but is not limited to any of the following: mobile phone, personal desktop computer, laptop computer, tablet computer.
[0037] In some examples, a graph model is formed based on items or item aggregation pages and co-occurrence relationships of corresponding items or item aggregation pages in historical access behaviors.
[0038] Among them, it can be understood that the item aggregation page contains various corresponding items.
[0039] Step 102: query the nodes in the graph model according to the operated items of the user to be recommended, so as to obtain a first representation of the operated items.
[0040] In some examples, according to the operated items of the user to be recommended, the nodes corresponding to the operated items are queried in the trained graph model, and based on the nodes corresponding to the operated items, a first representation of the operated items is obtained.
[0041] Step 103: query the nodes in the graph model according to the plurality of candidate item aggregation pages to obtain a second representation of each candidate item aggregation page.
[0042] It is understandable that, based on the operation behavior of the user to be recommended, multiple item aggregation pages can be selected from the material library to obtain multiple candidate item aggregation pages recommended for the user to be recommended.
[0043] It can be understood that in this example, the operation behavior may include but is not limited to the operation behavior of the user to be recommended and the browsing behavior of the user to be recommended.
[0044] Among them, it can be understood that the material library is used to store various items and item aggregation pages.
[0045] In some examples, for any candidate item aggregation page, the node of the corresponding item aggregation page in the graph model is queried. If the node of the corresponding item aggregation page does not contain the node of the corresponding candidate item aggregation page, then the node of the corresponding item in the graph model is queried based on the target items contained in the candidate item aggregation page to obtain a representation of each target item, and the aggregation function of the graph model is used to aggregate the representation of each target item to obtain a second representation.
[0046] Correspondingly, if there is a node corresponding to the candidate item aggregation page in the node corresponding to the item aggregation page in the graph model, the second representation of the candidate item aggregation page is obtained according to the node corresponding to the candidate item aggregation page in the graph model.
[0047] It can be understood that the graph model in this example has been trained, and the trained graph model includes multiple nodes corresponding to item aggregation pages and multiple nodes corresponding to items.
[0048] It can be understood that the nodes corresponding to the items in the query graph model are used to obtain the nodes corresponding to each target item, and the representation of each target item is obtained based on the nodes corresponding to each target item.
[0049] In some embodiments, there are usually multiple target items contained in the candidate item aggregation page, and the categories of the multiple target items may be different, that is, the target items are divided into multiple types and belong to two categories.
[0050] When the target items belong to at least two categories, in order to accurately obtain the second representation of the candidate item aggregation page, the aggregation function of the graph model is used to aggregate the representations of the target items to obtain the second representation. One possible implementation method is: for each category, according to the target items contained in the category, the aggregation function of the graph model is used to aggregate the representations of the target items under the corresponding category to obtain the second representation under the corresponding category.
[0051] In this example, according to the multiple categories to which the target items contained in the candidate item aggregation page belong, for each category, the aggregation function of the graph model is used to aggregate the representations of each target item under the corresponding category to obtain the second representation under the corresponding category of the candidate item aggregation page.
[0052] Step 104 , when the similarity between the first representation and the second representation meets the first set condition, determine to send the candidate item aggregation page as a recommended aggregation page to a device associated with the to-be-recommended user.
[0053] In this embodiment, when the target items of the candidate item aggregation page belong to at least two categories, it can be determined that the similarity between the second representation under any category of the candidate item aggregation page and the first representation meets the first set condition. When the similarity between the second representation under any category of the candidate item aggregation page and the first representation meets the first set condition, the candidate item aggregation page is sent as a recommended aggregation page to the device associated with the user to be recommended.
[0054] It is understandable that the first setting condition is set by the staff according to actual needs. For example, the first setting condition may be that the similarity is greater than a preset similarity threshold.
[0055] The embodiment of the present application provides a method for recommending an aggregated page. In the process of recommending an aggregated page to a user to be recommended, a trained graph model is obtained; wherein the graph model includes multiple nodes, each node corresponds to an item or an item aggregated page, and is used to indicate the representation of the corresponding item or item aggregated page; the representation is generated based on the behavioral correlation of the item or item aggregated page in the historical access behavior, and the behavioral correlation is used to indicate that the item or item aggregated page has a co-occurrence relationship in the historical access behavior; according to the operated items of the user to be recommended, the nodes in the graph model are queried to obtain the first representation of the operated items; according to multiple candidate item aggregated pages, the nodes in the graph model are queried to obtain the second representation of each candidate item aggregated page; when the similarity between the first representation and the second representation meets the first set condition, the candidate item aggregated page is determined to be sent as a recommended aggregated page to the device associated with the user to be recommended. Thus, the purpose of accurately recommending aggregated pages to the user to be recommended is achieved based on the graph model, and the accuracy of the recommendation of aggregated pages is improved.
[0056] Based on the above embodiments, in order to clearly understand how to train the graph model, Figure 2 The method of this embodiment is further described illustratively.
[0057] Figure 2 A schematic diagram of a recommended method for an aggregation page provided in an embodiment of the present application Figure 2 .
[0058] like Figure 2 As shown, the method may include the following steps:
[0059] Step 201, obtaining the initial representation of each node in the graph model.
[0060] In this example, after the graph model is formed, each node in the graph model is randomly initialized to obtain an initial representation of the random configuration of each node in the graph model.
[0061] Step 202: Take any node in the graph model as the current node, and select the k-th order neighboring node of the current node from the graph model, where k is a positive integer with a fixed value.
[0062] It is understandable that k is determined by the staff according to actual needs and will not be elaborated here.
[0063] In this example, based on historical access behavior, the nodes that have connecting edges with the current node are determined according to whether there is a co-occurrence relationship between the current node and any node in the graph model except the current node, and the neighboring nodes of the current node are obtained according to the nodes that have connecting edges with the current node.
[0064] Step 203: Aggregate the initial representations of the k-order neighboring nodes and the initial representation of the current node using an aggregation function to obtain an updated representation of the current node.
[0065] For example, the aggregation function faggre may be used to aggregate the initial representations of the k-th order neighboring nodes and the initial representation of the current node.
[0066] For example, the initial representation of each node in the graph model is<e1,e2,…,eK> , where ei is the representation of the i-th node, K is the total number of nodes in the graph model, and i is a positive integer greater than 1. Randomly select the k-th nearest neighbor node of the current node vi<v1,v2,…,vk> , where k is a fixed positive integer, and the aggregation function faggre is selected to aggregate the initial representations of the current node and the k-th order neighboring nodes to obtain the updated representation of the current node, that is: e i =f aggre (e1,e2,…,eK),K∈N(i).
[0067] It should be noted that the specific value of k can be determined according to actual needs and is not limited here.
[0068] Step 204, taking at least one neighboring node of the current node in the graph model as a positive sample node, taking at least one node other than the neighboring node in the graph model as a negative sample node, and determining a loss function for indicating the difference between the first representation similarity and the second representation similarity based on a first representation similarity between an updated representation of the current node and the positive sample node, and based on a second representation similarity between an updated representation of the current node and the negative sample node.
[0069] As an implementation manner of an embodiment, an inner product calculation method may be used to calculate the similarity between the updated representation of the current node and the positive sample node to obtain the first representation similarity between the updated representation of the current node and the positive sample node.
[0070] As an implementation manner of an embodiment, an inner product calculation method may be used to calculate the similarity between the updated representation of the current node and the negative sample node to obtain a second representation similarity between the updated representation of the current node and the negative sample node.
[0071] For example, v is the k-order neighbor node of the current node u, that is, the positive sample node, σ is the sigmoid function, and v n is a randomly sampled negative sample node, Q is the total number of negative sample nodes, e represents the representation of the node, then the loss function
[0072] Step 205: Based on the loss function, adjust the representation of each node in the graph model and adjust the parameters of the aggregation function.
[0073] In this example, the representation of each node in the graph model is adjusted based on the determined loss function, and the parameters of the aggregation function are adjusted to complete the training of the graph model. As a result, the distance between any two nodes in a neighbor relationship in the graph model is closer to the distance between the randomly sampled negative sample nodes, thereby improving the accuracy of the graph model in recommending aggregated pages to users.
[0074] Based on the above embodiments, in order to clearly understand how to form a graph model based on the co-occurrence relationship between items or item aggregation pages and the corresponding items or item aggregation pages in historical access behaviors, the following is combined with Figure 3 The method of this embodiment is further described illustratively.
[0075] Figure 3 A schematic diagram of a recommended method for an aggregation page provided in an embodiment of the present application Figure 3 .
[0076] like Figure 3 As shown, the method may include the following steps:
[0077] Step 301, based on historical access behaviors, determine items and item aggregation pages with operation behaviors.
[0078] In this example, historical operation behavior data is collected based on historical access behavior, and items and item aggregation pages with operation behavior are determined based on the historical operation behavior data.
[0079] It is understandable that the historical access behavior can be directly obtained by the execution subject, which is not limited here.
[0080] In this example, after determining that the historical operation behavior data contains items with operation behavior and item aggregation page information, a possible implementation method for processing the historical operation behavior data is: obtaining attribute information and time information related to the items with operation behavior, and obtaining the item aggregation page with operation behavior and the items it contains.
[0081] It can be understood that the time information includes the time when the operation behavior occurs.
[0082] It can be understood that after the historical operation behavior data is processed, the processed data can be stored in a set material library, which will not be described in detail here.
[0083] Step 302, configure the node corresponding to the item or item aggregation page.
[0084] Step 303: for any two nodes, determine whether there is a co-occurrence relationship between the two nodes according to whether the operation behaviors of the items or item aggregation pages corresponding to the two nodes meet the second set condition.
[0085] It can be understood that the co-occurrence relationship is used to represent the behavioral correlation of items or item aggregation pages in historical access behaviors, that is, there is a behavioral correlation between the operation behaviors of two nodes.
[0086] For example, determining whether there is a behavioral correlation between the operation behaviors of two nodes can also be determined by setting other conditions. It is assumed that the other conditions may include that the operation behaviors do not belong to the same user, and the purpose of the operation behaviors corresponds to the same item or item aggregation page.
[0087] It can be understood that the second setting condition includes that the operation behaviors belong to the same user and the operation time interval is not greater than a threshold.
[0088] The threshold is set by the staff according to actual needs and will not be elaborated here.
[0089] In this example, after determining whether the two nodes have a co-occurrence relationship based on whether the operation behaviors of the items or item aggregation pages corresponding to the two nodes meet the second set condition, it also includes: counting the co-occurrence frequency of the two nodes that have a co-occurrence relationship; determining the weight of the edge between the two nodes based on the co-occurrence frequency; wherein the weight is used to represent the nodes connected by the aggregation function aggregation.
[0090] It can be understood that by calculating the co-occurrence frequency, the weight of the edge between two nodes can be determined.
[0091] For example, all items operated by the user, item aggregation pages, and the time when the operation behavior occurred are extracted from the historical operation behavior data to form a sequence, that is, U = {(v1, t1), (v2, t2), ..., (vk, tk)}, where v is the node corresponding to the configured item or item aggregation page, t is the time when the operation behavior occurred, and k is the total number of nodes corresponding to the configured item or item aggregation page. According to the co-occurrence relationship between the nodes constructed in the sequence S = (P, N), where P is a pair set containing two nodes, that is, (vi, vj), these two nodes form a pair that needs to meet two conditions, that is, 1) vi, vj have an adjacent relationship in the operation behavior of the same user; 2) the operation time interval between the two nodes does not exceed 15 minutes, that is, tj-ti < 15min. N represents the frequency information of each pair in the P set, N = ((Vi, Vj), K), where K represents the co-occurrence frequency of each pair in the P set.
[0092] It should be noted that the second setting condition represents two conditions that need to be met for the two nodes to form a pair in the above example, and 15 minutes in the above example can be represented as a threshold.
[0093] Step 304: connect two nodes with a co-occurrence relationship to obtain a graph model.
[0094] For example, the graph model G = (V, E, W) is constructed based on the information of whether there is a co-occurrence relationship between nodes, where V represents the nodes in the graph model, that is, the collection of items and item aggregation pages. E represents whether there is a connecting edge between nodes, where whether there is a connecting edge between nodes indicates whether there is a co-occurrence relationship between the corresponding nodes. If there is a connecting edge between the corresponding nodes, it means that there is a co-occurrence relationship between the corresponding nodes. If there is no connecting edge between the corresponding nodes, it means that there is no co-occurrence relationship between the corresponding nodes. Wherein, W represents the weight between the edges.
[0095] In this example, in order to prevent some nodes and connecting edges with high co-occurrence frequencies in the graph model from being frequently trained, resulting in insufficient training of nodes with low co-occurrence frequencies, exponential smoothing can be performed on the weights between the connecting edges.
[0096] In some embodiments of the present application, in order to accumulate sufficient data for graph model training, newly input items or item aggregation page information with operation behaviors can also be input into the graph model for training as quickly as possible, including: obtaining the representation of the newly input items or item aggregation pages, training the representation of the newly input items or item aggregation pages based on the representation of each node in the graph model, and using an aggregation function, thereby achieving better recommendation results.
[0097] In order to implement the above embodiment, the present application also proposes a recommendation device for aggregated pages.
[0098] Figure 4 A schematic diagram of the structure of a recommendation device for an aggregated page provided in an embodiment of the present application.
[0099] like Figure 4 As shown, the recommendation device 400 for aggregated pages includes a first acquisition module 401, a first characterization module 402, a second characterization module 403 and a recommendation module 404:
[0100] The first acquisition module 401 is used to acquire a trained graph model; wherein the graph model includes a plurality of nodes, each node corresponds to an item or an item aggregation page, and is used to indicate a representation of the corresponding item or item aggregation page; the representation is generated based on the behavioral correlation of the item or item aggregation page in the historical access behavior, and the behavioral correlation is used to indicate that the item or item aggregation page has a co-occurrence relationship in the historical access behavior;
[0101] A first representation module 402 is used to query the nodes in the graph model according to the operated items of the user to be recommended, so as to obtain a first representation of the operated items;
[0102] The second representation module 403 is used to query the nodes in the graph model according to the candidate item aggregation page to obtain the second representation of each candidate item aggregation page;
[0103] The recommendation module 404 is configured to determine, when the similarity between the first representation and the second representation meets a first set condition, to send the candidate item aggregation page as a recommended aggregation page to a device associated with the to-be-recommended user.
[0104] In one embodiment, the second characterization module 403 includes:
[0105] A query unit 4031 is used to query a node of a corresponding item aggregation page in the graph model for any candidate item aggregation page;
[0106] The representation unit 4032 is used to query the nodes of the corresponding items in the graph model according to the target items contained in the candidate item aggregation page if there is no node corresponding to the candidate item aggregation page in the node corresponding to the item aggregation page, so as to obtain the representation of each target item;
[0107] The aggregation unit 4033 is used to aggregate the representations of the target items using the aggregation function of the graph model to obtain a second representation.
[0108] In one embodiment, there are multiple target items belonging to at least two categories, and the aggregation unit 4033 is specifically used to:
[0109] For each category, according to the target items contained in the category, the aggregation function of the graph model is used to aggregate the representations of the target items under the corresponding category to obtain the second representation under the corresponding category.
[0110] In one embodiment, according to the similarity between the first representation and the second representation, determining whether to send the candidate item aggregation page as a recommended aggregation page to a device associated with the to-be-recommended user, the recommendation module 404 is specifically configured to:
[0111] When the similarity between the second representation and the first representation under any category of the candidate item aggregation page meets the first set condition, the candidate item aggregation page is sent as a recommended aggregation page to the device associated with the user to be recommended.
[0112] Based on the above embodiment, the present application embodiment also provides another possible implementation of the recommendation device for the aggregation page. Figure 5A schematic diagram of the structure of another aggregation page recommendation device provided in an embodiment of the present application. Based on the previous embodiment, the aggregation page recommendation device 500 further includes: a second acquisition module 505, a selection module 506, an update representation module 507, a loss function module 508 and an adjustment module 509.
[0113] A second acquisition module 505 is used to acquire an initial representation of each node in the graph model;
[0114] A selection module 506 is used to select any node in the graph model as the current node and select a k-order neighboring node of the current node from the graph model, where k is a fixed positive integer;
[0115] An updating representation module 507 is used to aggregate the initial representations of the k-order neighboring nodes and the initial representation of the current node using an aggregation function to serve as an updated representation of the current node;
[0116] A loss function module 508, configured to use at least one neighboring node of the current node in the graph model as a positive sample node, use at least one node other than the neighboring node in the graph model as a negative sample node, and determine a loss function indicating a difference between the first representation similarity and the second representation similarity based on a first representation similarity between an updated representation of the current node and the positive sample node, and based on a second representation similarity between an updated representation of the current node and the negative sample node;
[0117] The adjustment module 509 is used to adjust the representation of each node in the graph model based on the loss function, and to adjust the parameters of the aggregation function.
[0118] In one embodiment, the initial representation of each node in the graph model is obtained, and the second obtaining module 505 is specifically used to:
[0119] An initial representation of each node in a randomly configured graph model; or,
[0120] The representation of each node determined by the last parameter adjustment is used as the initial representation.
[0121] In one embodiment, before obtaining the initial representation of each node in the graph model, the aggregate page recommendation device 500 further includes a first determination module 510, a configuration module 511, a second determination module 512 and a graph model module 513:
[0122] A first determination module 510 is used to determine items and item aggregation pages with operation behaviors according to historical access behaviors;
[0123] Configuration module 511, used to configure nodes corresponding to items or item aggregation pages;
[0124] The second determination module 512 is used to determine, for any two nodes, whether there is a co-occurrence relationship between the two nodes according to whether the operation behaviors of the items or item aggregation pages corresponding to the two nodes meet the second set condition;
[0125] The graph model module 513 is used to connect two nodes with a co-occurrence relationship to obtain a graph model.
[0126] In one embodiment, after determining whether the two nodes have a co-occurrence relationship based on whether the operation behaviors of the items or item aggregation pages corresponding to the two nodes meet the second set condition, the second determination module 512 is specifically used to:
[0127] For two nodes with a co-occurrence relationship, count the co-occurrence frequency;
[0128] The weight of the edge between two nodes is determined based on the co-occurrence frequency, wherein the weight is used to represent the nodes connected by the aggregation function.
[0129] It should be noted that the above explanations of the embodiment of the method for recommending aggregated pages are also applicable to the apparatus for recommending aggregated pages of this embodiment, and will not be described in detail here.
[0130] The embodiment of the present application provides a recommendation device for an aggregation page, which obtains a trained graph model; wherein the graph model includes a plurality of nodes, each node corresponds to an item or an item aggregation page, and is used to indicate the representation of the corresponding item or item aggregation page; the representation is generated by the behavioral correlation of the item or item aggregation page in the historical access behavior, and the behavioral correlation is used to indicate that the item or item aggregation page has a co-occurrence relationship in the historical access behavior; according to the operated items of the user to be recommended, the nodes in the graph model are queried to obtain the first representation of the operated items; according to the candidate item aggregation page, the nodes in the graph model are queried to obtain the second representation of each candidate item aggregation page; when the similarity between the first representation and the second representation meets the first set condition, the candidate item aggregation page is determined to be sent as a recommended aggregation page to the device associated with the user to be recommended. Thus, based on the graph model, the purpose of recommending the aggregation page to the recommended user is achieved, the accuracy of the recommendation of the aggregation page is improved, and the user's use effect is enriched.
[0131] Figure 6 The following is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Figure 6 As shown, the electronic device includes: a memory 61 and a processor 62. In addition, the electronic device also includes a power supply component 63 and a communication component 64.
[0132] The memory 61 is used to store computer programs and can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application program or method operating on the electronic device.
[0133] Memory 61 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0134] The communication component 64 is used for data transmission with other devices.
[0135] The processor 62 can execute computer instructions stored in the memory 61 .
[0136] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer-readable storage medium stores the computer program and the computer program is executed by one or more processors, the one or more processors execute Figure 1 Each step in the method embodiment.
[0137] Accordingly, the embodiment of the present application also provides a computer program product, the computer program product includes a computer program / instruction, and the computer program / instruction is executed by a processor. Figure 1 Each step in the method embodiment.
[0138] Above Figure 6 The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0139] Above Figure 6 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.
[0140] The electronic device also includes a display screen.
[0141] The display screen includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0142] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods and systems. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt a computer-usable storage medium (including but not limited to a disk storage, a CD-ROM, an optical storage, etc.) containing a computer-usable program code in one or more computer-usable storage media.
[0143] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0144] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0145] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0146] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0147] The above 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 these embodiments herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. A method for recommending aggregated pages, characterized in that: The following steps are involved: Obtain a trained graph model; wherein the graph model includes a plurality of nodes, each of the nodes corresponds to an item or an item aggregation page, and is used to indicate a representation of the corresponding item or item aggregation page; the representation is generated based on the behavioral correlation of the item or the item aggregation page in historical access behaviors, and the behavioral correlation is used to indicate that the item or the item aggregation page has a co-occurrence relationship in the historical access behaviors; According to the operated items of the user to be recommended, query the nodes in the graph model to obtain a first representation of the operated items; According to the plurality of candidate item aggregation pages, querying the nodes in the graph model to obtain a second representation of each of the candidate item aggregation pages; When the similarity between the first representation and the second representation meets the first set condition, it is determined to send the candidate item aggregation page as a recommended aggregation page to the device associated with the to-be-recommended user.
2. The method according to claim 1, characterized in that The querying of nodes in the graph model according to the plurality of candidate item aggregation pages to obtain a second representation of each of the candidate item aggregation pages includes: For any candidate item aggregation page, query the node of the corresponding item aggregation page in the graph model; If there is no node corresponding to the candidate item aggregation page in the node of the corresponding item aggregation page, query the node of the corresponding item in the graph model according to the target item contained in the candidate item aggregation page to obtain the representation of each of the target items; The representations of the target items are aggregated using the aggregation function of the graphical model to obtain the second representation.
3. The method according to claim 2, characterized in that There are multiple target items belonging to at least two categories; the aggregation function of the graph model is used to aggregate the representations of the target items to obtain the second representation, including: For each category, respectively according to the target items contained in the category, the aggregation function of the graphical model is used to aggregate the representations of the target items under the corresponding category to obtain the second representation under the corresponding category.
4. The method according to claim 3, characterized in that The step of determining to send the candidate item aggregate page as a recommended aggregate page to a device associated with the to-be-recommended user when the similarity between the first representation and the second representation meets a first set condition includes: When the similarity between the second representation under any category of the candidate item aggregation page and the first representation meets the first set condition, the candidate item aggregation page is sent as the recommended aggregation page to the device associated with the to-be-recommended user.
5. The method according to any one of claims 1 to 4, characterized in that: Before obtaining the trained graph model, the method further includes: Obtain the initial representation of each node in the graph model; Taking any node in the graph model as the current node, selecting the k-th order neighboring node of the current node from the graph model, where k is a positive integer with a fixed value; Aggregating the initial representations of the k-order neighboring nodes and the initial representation of the current node using an aggregation function to serve as an updated representation of the current node; Taking at least one neighboring node of the current node in the graph model as a positive sample node, taking at least one node other than the neighboring node in the graph model as a negative sample node, and determining a loss function for indicating the difference between the first representation similarity and the second representation similarity according to a first representation similarity between an updated representation of the current node and the positive sample node, and according to a second representation similarity between the updated representation of the current node and the negative sample node; Based on the loss function, the representation of each node in the graph model is adjusted, and the parameters of the aggregation function are adjusted.
6. The method according to claim 5, characterized in that The obtaining of the initial representation of each node in the graph model includes: Randomly configure the initial representation of each node in the graph model; or, The representation of each node determined by the last parameter adjustment is used as the initial representation.
7. The method according to claim 5, characterized in that Before obtaining the initial representation of each node in the graph model, the method further includes: According to the historical access behavior, determine the items and item aggregation pages where the operation behavior has occurred; Configure the node corresponding to the item or the item aggregation page; For any two nodes, determining whether the two nodes have a co-occurrence relationship according to whether the items corresponding to the two nodes or the operation behaviors of the item aggregation page meet the second set condition; Two nodes having the co-occurrence relationship are connected to obtain the graph model.
8. The method according to claim 7, characterized in that The second setting condition includes that the operation behaviors belong to the same user and the operation time interval is not greater than a threshold.
9. The method according to claim 7, characterized in that: After determining whether the two nodes have a co-occurrence relationship based on whether the items corresponding to the two nodes or the operation behaviors of the item aggregation page meet the second set condition, the method further includes: For two nodes with a co-occurrence relationship, count the co-occurrence frequency; The weight of the edge between the two nodes is determined according to the co-occurrence frequency; wherein the weight is used to represent the nodes connected by the aggregation function aggregation.
10. A device for recommending aggregated pages, characterized in that: include: A first acquisition module is used to acquire a trained graph model; wherein the graph model includes a plurality of nodes, each of which corresponds to an item or an item aggregation page, and is used to indicate a representation of the corresponding item or item aggregation page; the representation is generated based on the behavioral correlation of the item or the item aggregation page in the historical access behavior, and the behavioral correlation is used to indicate that the item or the item aggregation page has a co-occurrence relationship in the historical access behavior; A first representation module, configured to query nodes in the graph model according to the operated items of the user to be recommended, so as to obtain a first representation of the operated items; A second representation module, configured to query the nodes in the graph model according to the plurality of candidate item aggregation pages, so as to obtain a second representation of each of the candidate item aggregation pages; The recommendation module is used to determine, when the similarity between the first representation and the second representation meets a first set condition, to send the candidate item aggregation page as a recommended aggregation page to a device associated with the to-be-recommended user.
11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement each step in the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Binding recommendation method based on multi-channel hypergraph neural network
CN113177159A
Multimedia information recommendation method and device, electronic equipment and storage medium
CN113742566A
Article recommendation method and device, computing equipment and storage medium
CN117909553A
Composition for Targeting Medullary Thyroid Cancer
KR1020200087714A
Efficient computation of top-k aggregation over graph and network data
US20110213801A1
