Recommendation method and electronic equipment
By generating and adjusting interest vectors, combining interest diversification models and interactive object sequences, and distinguishing the sources of user interests, the bias problem of existing recommendation systems when user behavior is small is solved, and the accuracy and personalization capabilities of recommendations are improved.
Patent Information
- Application Number
- CN202410993382.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-10
AI Technical Summary
Existing recommendation systems fail to fully differentiate between popularity and personalized interests when processing user behavior, resulting in possible large deviations in recommendations when user behavior is low.
By generating the first interest vector and the second interest vector, using the interest diversification model to adjust the parameters until the loss function value is less than or equal to the preset threshold, the user-side, product-side and behavior-side vectors are generated, and the recommended objects are determined based on the interaction object sequence, distinguishing Herd interests and personalized interests alleviate the bias when user interaction sequences are short.
It improves the accuracy of recommendations, distinguishes the sources of user interests, alleviates the bias when user interaction sequences are short, and enhances the personalized capabilities of the recommendation system.
Smart Images

Figure CN118628209A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to a recommendation method, device, electronic device, medium, and program product. Background Art
[0002] With the rapid development of artificial intelligence and computer technology, various recommendation methods emerge in an endless stream, and the recommendation services brought by the recommendation system have basically penetrated into every aspect of our lives. The recommendation system can be used to predict users' preferences for items and recommend items to users based on the prediction results.
[0003] In related technologies, user behavior is often used to build an adaptive graph and make recommendations based on user behavior. However, this method does not fully consider whether the user behavior comes from the interest brought by popularity or the interest brought by the user's personalization. In addition, when the user behavior is small, the recommendation may have a large deviation problem. Summary of the invention
[0004] In view of this, the present disclosure provides a recommendation method, device, electronic device, medium and program product.
[0005] One aspect of the present disclosure provides a recommendation method, including: in response to a user's current behavior, determining an interaction sequence of the user, the interaction sequence including a behavior sequence and an interaction object sequence corresponding to the behavior sequence, the behavior sequence including at least the current behavior; generating a first interest vector according to the interaction sequence, the first interest vector including at least one of a first user-side vector, a first product-side vector, and a first behavior-side vector; generating a second interest vector according to the first interest vector, the second interest vector including at least one of a second user-side vector, a second product-side vector, and a second behavior-side vector, wherein the similarity between any vectors in the second interest vector is less than the similarity between corresponding vectors in the first interest vector; and determining at least one recommendation object according to the second interest vector and the interaction object sequence.
[0006] According to an embodiment of the present disclosure, a second interest vector is generated based on a first interest vector, including: adjusting parameters of an interest diversification model according to the first interest vector until a value of a loss function of the interest diversification model is less than or equal to a preset threshold; generating a second interest vector based on the first interest vector and the interest diversification model after adjusting parameters; wherein the value of the loss function represents the degree of difference between the output vector of the model and the first interest vector and the degree of similarity between the output vectors of the model.
[0007] According to an embodiment of the present disclosure, the first user-side vector includes a herd interest vector and a personalized interest vector. The first interest vector is generated according to the interaction sequence, including: obtaining the popularity score of each interactive object in the interactive object sequence; generating a herd interest vector according to each interactive object and its corresponding popularity score; generating a personalized score corresponding to each interactive object sequence according to the popularity score, wherein the personalized score and the popularity score are negatively correlated; generating a personalized interest vector according to each object sequence and its corresponding personalized score.
[0008] According to an embodiment of the present disclosure, the first product side vector includes a label interest vector and a decision interest vector. The first interest vector is generated according to the interaction sequence, including: obtaining the category, label, attribute, price and product name corresponding to each interactive object in the interactive object sequence; generating a corresponding category sequence, label sequence, attribute sequence, price sequence and product sequence according to the category, label, attribute, price and product name; generating a corresponding category vector, label vector, attribute vector, price vector and product vector according to the category sequence, label sequence, attribute sequence, price sequence and product sequence; generating a label interest vector according to the category vector, label vector and product vector; generating a decision interest vector according to the attribute vector, price vector and product vector.
[0009] According to an embodiment of the present disclosure, corresponding category vectors, label vectors, attribute vectors, price vectors and product vectors are generated, including: determining the number of elements of each of the category sequence, label sequence, attribute sequence, price sequence and product sequence; when the number is greater than a preset threshold, generating the corresponding category vector, and / or label vector, and / or attribute vector, and / or price vector, and / or product vector based on a gated recurrent unit algorithm; when the number is less than or equal to a preset threshold, generating the corresponding category vector, and / or label vector, and / or attribute vector, and / or price vector, and / or product vector based on a graph neural network algorithm.
[0010] According to an embodiment of the present disclosure, the first behavior side vector includes a behavior explicit interest vector and a behavior implicit interest vector. According to the interaction sequence, the first interest vector is generated, including: determining at least one associated user of the user; obtaining an associated interaction sequence of the associated user; generating a behavior explicit interest vector according to the associated interaction sequence and the interaction sequence; generating a user vector corresponding to the user according to the interaction sequence; generating multiple prediction vectors according to the prediction model and the user vector, the prediction vector representing the predicted value represented by the vector corresponding to the interactive object of interest to the user in the interactive object sequence; generating a behavior implicit interest vector according to the multiple prediction vectors.
[0011] According to an embodiment of the present disclosure, generating a behavior-explicit interest vector includes: generating an N×M behavior matrix corresponding to each behavior based on an associated interaction sequence and an interaction sequence, wherein the rows of the behavior matrix represent users, the columns of the behavior matrix represent objects, N is the total number of users, M is the number of objects in the associated interaction sequence and the interaction sequence, and when the value of the i-th row and j-th column in the behavior matrix is 1, it represents that the i-th user has had a corresponding historical interaction with the j-th object, wherein N and M are positive integers, 0<i≤N, 0<j≤M; generating a behavior-explicit interest based on the behavior matrix and the vector representation of each interaction object.
[0012] According to an embodiment of the present disclosure, determining an interaction sequence of a user includes: in response to a current behavior of the user, determining multiple behaviors of the user before the current behavior and objects corresponding to the behaviors; generating an interaction sequence according to the current behavior, the current object corresponding to the current behavior, multiple behaviors before the current behavior, and objects corresponding to the behaviors.
[0013] According to an embodiment of the present disclosure, at least one recommended object is determined based on the second interest vector and the interactive object sequence, including: determining a candidate object sequence based on the interactive object sequence; obtaining a vector representation corresponding to each candidate object in the candidate object sequence; calculating the similarity between the second interest vector and the vector representation corresponding to each candidate object as a recommendation score for each candidate object; and selecting a preset number of candidate objects as recommended objects in descending order of the recommendation scores.
[0014] According to an embodiment of the present disclosure, determining a candidate object sequence includes: determining at least one associated object corresponding to the user, a first association relationship between the associated object and the interactive object, and / or a second association relationship between the associated object and the user; generating a candidate object sequence based on the associated object.
[0015] Another aspect of the present disclosure provides a recommendation device, including: a first determination module, used to determine the user's interaction sequence in response to the user's current behavior, the interaction sequence including a behavior sequence and an interaction object sequence corresponding to the behavior sequence, and the behavior sequence at least includes the current behavior; a first generation module, used to generate a first interest vector according to the interaction sequence, the first interest vector including at least one of a first user-side vector, a first product-side vector, and a first behavior-side vector; a second generation module, used to generate a second interest vector according to the first interest vector, the second interest vector including at least one of a second user-side vector, a second product-side vector, and a second behavior-side vector, wherein the similarity between any vectors in the second interest vector is less than the similarity between corresponding vectors in the first interest vector; a second determination module, used to determine at least one recommendation object according to the second interest vector and the interaction object sequence.
[0016] Another aspect of the present disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0017] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0018] Another aspect of the present disclosure provides a computer program product, which includes computer executable instructions, and when the instructions are executed, are used to implement the method as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0020] Figure 1 An exemplary scenario architecture to which the recommendation method can be applied according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 2 A flowchart of a recommendation method according to an embodiment of the present disclosure is schematically shown;
[0022] Figure 3 A hierarchical diagram of a recommendation system according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 4 Schematically shows a flow chart of generating a second interest vector according to an embodiment of the present disclosure;
[0024] Figure 5 A flowchart of generating a first user side vector according to an example of the present disclosure is schematically shown;
[0025] Figure 6 A block diagram of generating a first user side vector according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 7 A flowchart of generating a first commodity side vector according to an example of the present disclosure is schematically shown;
[0027] Figure 8 A block diagram of generating a first commodity side vector according to an embodiment of the present disclosure is schematically shown;
[0028] Fig. 9 Schematically shows a flow chart of generating a first behavior side vector according to an example of the present disclosure;
[0029] Fig.10Schematically shows a flow chart of generating a behavior-explicit interest vector according to an example of the present disclosure;
[0030] Fig.11 A block diagram of generating a behavior explicit interest vector according to an example of the present disclosure is schematically shown;
[0031] Fig.12 A block diagram for generating a behavior implicit interest vector according to an embodiment of the present disclosure is schematically shown;
[0032] Fig.13 A flowchart for determining a user's interaction sequence according to an embodiment of the present disclosure is schematically shown;
[0033] Fig.14 A flowchart for determining a recommended object according to an embodiment of the present disclosure is schematically shown;
[0034] Fig.15 Schematically shows a flowchart of determining a candidate object sequence according to an embodiment of the present disclosure;
[0035] Fig.16 A block diagram schematically shows a recommendation device according to an embodiment of the present disclosure; and
[0036] Fig.17 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0037] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0038] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0039] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0040] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0041] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the data involved (for example, including but not limited to user personal information) are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security, and national security.
[0042] In the embodiments of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0043] An embodiment of the present disclosure provides a recommendation method, comprising: determining an interaction sequence of the user in response to a current behavior of the user, the interaction sequence comprising a behavior sequence and an interaction object sequence corresponding to the behavior sequence, the behavior sequence comprising at least the current behavior; generating a first interest vector according to the interaction sequence, the first interest vector comprising at least one of a first user-side vector, a first product-side vector, and a first behavior-side vector; generating a second interest vector according to the first interest vector, the second interest vector comprising at least one of a second user-side vector, a second product-side vector, and a second behavior-side vector, wherein the similarity between any vectors in the second interest vector is less than the similarity between corresponding vectors in the first vector; and determining at least one recommendation object according to the second interest vector and the interaction object sequence.
[0044] Figure 1 The following schematically shows an exemplary scenario architecture to which the recommendation method can be applied according to an embodiment of the present disclosure. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0045] like Figure 1As shown, the scenario architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0046] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software.
[0047] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting application use and web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0048] The server 105 may be a server that provides various services, such as a background management server that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze user data, generate corresponding recommendation results, and feed back the recommendation results to the terminal devices.
[0049] It should be noted that the recommendation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the recommendation system provided in the embodiment of the present disclosure can generally be set in the server 105. The recommendation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the recommendation system provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Alternatively, the recommendation method provided in the embodiment of the present disclosure can also be executed by the first terminal device 101, the second terminal device 102 or the third terminal device 103, or by other terminal devices that are different from the first terminal device 101, the second terminal device 102 or the third terminal device 103. Accordingly, the recommendation system provided by the embodiment of the present disclosure may also be arranged in the first terminal device 101 , the second terminal device 102 or the third terminal device 103 , or in other terminal devices different from the first terminal device 101 , the second terminal device 102 or the third terminal device 103 .
[0050] For example, the data to be processed may be originally stored in any one of the first terminal device 101, the second terminal device 102 or the third terminal device 103 (for example, the first terminal device 101, but not limited thereto), or stored in an external storage device and may be imported into the first terminal device 101. Then, the first terminal device 101 may locally execute the recommendation method provided in the embodiment of the present disclosure, or send the data to be processed to other terminal devices, servers, or server clusters, and the other terminal devices, servers, or server clusters that receive the data to be processed may execute the recommendation method provided in the embodiment of the present disclosure.
[0051] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0052] Figure 2 The flowchart of the recommendation method according to the embodiment of the present disclosure is schematically shown.
[0053] like Figure 2 As shown, the recommendation method may include operations S210 to S240.
[0054] In operation S210, in response to a current behavior of a user, an interaction sequence of the user is determined, the interaction sequence including a behavior sequence and an interaction object sequence corresponding to the behavior sequence, and the behavior sequence includes at least the current behavior.
[0055] Specifically, when the recommendation method of the embodiment of the present disclosure is applied to product recommendation, the user's current behavior may include any one of the behaviors of clicking, commenting, liking, sharing, adding to cart, purchasing, and collecting. It should be noted that since the specific manifestations of the behaviors of commenting, liking, sharing, adding to cart, purchasing, and collecting in actual operations may also be clicks, the "click" included in the aforementioned behaviors may only represent "browsing after clicking" without any other operations. It should be noted that the above behaviors are only examples, and those skilled in the art can add, delete, and select appropriate behaviors as response objects according to actual conditions.
[0056] In response to the user's current behavior, the recommendation method provided by the embodiment of the present disclosure is executed, so that the system can update the recommended content for the user in real time according to the user's current behavior. For example, after the user clicks on a computer product, after the user returns to the homepage, the recommended products displayed on the homepage can be obtained according to the recommendation method provided by the embodiment of the present disclosure. For example, after the user purchases a product, the content of "products you may be interested in" displayed on the purchase completion page can be obtained according to the recommendation method provided by the embodiment of the present disclosure.
[0057] The user's interaction sequence includes a behavior sequence and an interaction object sequence corresponding to the behavior sequence. The behavior in the behavior sequence corresponds to the interaction object in the interaction object sequence one by one. The behavior sequence includes at least the current behavior. The behavior may include any one of the behaviors such as click, comment, like, share, add to cart, purchase, favorite, etc. The interaction objects in the interaction object sequence may be repeated. For example, the interaction object sequence is: {i1, i2, i3, i3, i3, i4, i5, i3, i6}, and the corresponding behavior sequence is: {c, c, ac, co, s, c, c, b, c}, where i1~i6 represent different objects. In the behavior sequence, c represents click, ac represents add to cart, co represents favorite, s represents share, and b represents purchase; accordingly, this interaction sequence represents that the user clicked on object i1, clicked on object i2, added to cart, favorited object i3, shared object i3, clicked on object i4, clicked on object i5, purchased object i3, and clicked on object i6. The current behavior of the user is one of the above behaviors. Generally, the current behavior of the user is taken as the last item of the sequence, that is, the current behavior of the user may be clicking on the object i6.
[0058] In operation S220, a first interest vector is generated according to the interaction sequence, and the first interest vector includes at least one of a first user-side vector, a first product-side vector, and a first behavior-side vector. The first user-side vector represents the user's interest in each object in the interaction sequence. The higher the user's interest in a certain object, the higher the similarity between the first user-side vector and the vector representation of the object. The first product-side vector represents the user's interest in a specific content of the object, such as tags, categories, prices, attributes, etc. The higher the user's interest in objects of a certain category, the higher the similarity between the first product-side vector and the vector representation of objects of that category. The first behavior-side vector represents the vector of the user's behavior for the user's interaction with the product. This includes the user's behavior information such as clicks, purchases, evaluations, and collections of objects. The first behavior-side vector helps capture the user's preference for specific products and their behavior patterns.
[0059] In operation S230, a second interest vector is generated based on the first interest vector, the second interest vector includes at least one of a second user-side vector, a second product-side vector, and a second behavior-side vector, wherein the similarity between any vectors in the second interest vector is less than the similarity between corresponding vectors in the first vector. The second interest vector is generated correspondingly based on the first interest vector, the first user-side vector corresponds to the second user-side vector, the first product-side vector corresponds to the second product-side vector, and the first behavior-side vector corresponds to the second behavior-side vector. The similarity between any vectors in the second interest vector is less than the similarity between corresponding vectors in the first interest vector. For example, when the first interest vector includes the first user-side vector and the first product-side vector, the correspondingly generated second interest vector should include the second user-side vector and the second product-side vector, and the similarity between the second user-side vector and the second product-side vector is less than the similarity between the first user-side vector and the first product-side vector.
[0060] In operation S240, at least one recommended object is determined according to the second interest vector and the interactive object sequence. Specifically, a candidate object sequence can be determined according to the interactive object sequence, and at least one recommended object can be determined from the candidate objects by performing calculations based on the second interest vector and the vector representation of the candidate products.
[0061] Figure 3 The diagram schematically shows a hierarchical diagram of a recommendation system according to an embodiment of the present disclosure.
[0062] like Figure 3 As shown, the recommendation system may include a data layer 310 , a coding layer 320 , an interest layer 330 , an interest diversity layer 340 , and an aggregation layer 350 .
[0063] The data layer 310 is used to obtain user data, pre-process the user data such as data cleaning, error data troubleshooting, data format adjustment, etc., and obtain a behavior sequence and an interaction object sequence to form an interaction sequence. Figure 3 As shown, the final interaction sequence obtained can, for example, be an interaction object sequence of: {i1, i2, i3, i3, i3, i4, i5, i3, i6} and a corresponding behavior sequence of: {c, c, ac, co, s, c, c, b, c}.
[0064] The encoding layer 320 is used to further encode the interaction sequence obtained by the data layer 310, such as generating vector representations h1~h6 corresponding to the interaction objects, and constructing the corresponding matrix M of the behavior and the product. c 、M ac 、M co 、M b Etc., generate the commodity heat score vector P corresponding to each behavior c , P ac , P co , P b The product popularity score is obtained based on the global popularity of the object. The higher the product popularity score, the more popular the product is among all user groups.
[0065] The interest layer 330 is used to generate a corresponding first interest vector according to the data obtained by the coding layer, for example, to generate a first user side vector, and / or a first product side vector, and / or a first behavior side vector.
[0066] The interest diversity layer 340 is used to perform diversification processing on the first interest vector to obtain a corresponding second interest vector, for example, to generate a second user side vector, and / or a second product side vector, and / or a second behavior side vector.
[0067] The aggregation layer 350 is used to perform calculations based on the second interest vectors and the candidate objects to determine the recommended object from the candidate objects. Specifically, the obtained multiple second interest vectors can be aggregated and then vector calculations can be performed with the candidate objects to determine the recommended object, or each second interest vector can be calculated with the candidate objects separately and the calculation results can be aggregated to obtain the recommended object.
[0068] Figure 4 The flowchart of generating the second interest vector according to an embodiment of the present disclosure is schematically shown.
[0069] like Figure 4 As shown, based on the foregoing embodiment, operation S230 may include operations S410 to S420.
[0070] In operation S410, the parameters of the interest diversification model are adjusted according to the first interest vector until the value of the loss function of the interest diversification model is less than or equal to a preset threshold, wherein the value of the loss function represents the degree of difference between the output vector of the model and the first interest vector and the degree of similarity between the output vectors of the model.
[0071] According to an embodiment of the present disclosure, the interest diversity layer 340 may be an interest diversity model, which is used to perform the aforementioned operation S230. The input of the interest diversity model is the first interest vector, and the output is the second interest vector. The loss function of the interest diversity model may be:
[0072]
[0073] Among them, L CE is the cross entropy loss, N is the number of the first interest vector or the second interest vector, y i is the true label of the i-th vector, usually y i is 0 or 1, and pi is the probability that the model predicts that the i-th sample is a positive class. D is the cosine similarity calculation, e ti is the i-th vector in the t-th first interest vector, e tj is the j-th vector in the t-th first interest vector, K is the total number of vectors contained in the first interest vector, T represents transposition, and ︱︱·︱︱ represents the modulus of the calculated vector.
[0074] The value of the loss function is calculated in this way, and the parameters of the interest diversification model are continuously adjusted until the value of the loss function is less than or equal to the preset threshold.
[0075] In operation S420, a second interest vector is generated according to the first interest vector and the interest diversification model after adjusting parameters.
[0076] The cross entropy loss characterizes the difference between the output second interest vector and the first interest vector, so as to ensure that the difference between the output second interest vector and the first interest vector is not too large to cause recommendation errors, and the cosine similarity calculation characterizes the similarity of each vector in the first interest vector. When the value of the loss function is guaranteed to be less than or equal to the preset threshold, it means that the difference between the output second interest vector and the first interest vector is small, and the smaller the similarity of each vector in the output second interest vector, it not only ensures that the difference between the output second interest vector and the first interest vector is not too large to cause recommendation errors, but also differentiates the similar parts in the first interest vector in specific details, so that the obtained interest vector is more diverse.
[0077] Figure 5 A flowchart of generating a first user-side vector according to an example of the present disclosure is schematically shown.
[0078] According to an embodiment of the present disclosure, the first interest vector may include a first user-side vector, and the first user-side vector may include a herd interest vector and a personalized interest vector. Figure 6 A block diagram for generating a first user-side vector according to an embodiment of the present disclosure is schematically shown.
[0079] like Figure 5 As shown, based on any of the foregoing embodiments, operation S220 may include operations S510 to S540.
[0080] In operation S510, the popularity score of each interactive object in the interactive object sequence is obtained. The popularity score of the interactive object is obtained based on the popularity of the object in the global world. The higher the popularity score of a product, the more popular the product is among all user groups. The popularity score can be obtained from a database, for example. The method of obtaining the popularity score is not the focus of this disclosure and will not be described in detail here. Figure 6 As shown, the heat score conf of object 1 is 0.7, the heat score of object 2 is 0.3, and the heat score of object 3 is 0.1, which means that object 1 is a more popular and hot object among the existing objects, while the popularity of objects 2 and 3 decreases in turn.
[0081] In operation S520, a herd interest vector is generated according to each interactive object and its corresponding heat score.
[0082] Specifically, Figure 6 As shown in Figure 2, a heat sequence is formed according to the heat scores corresponding to each interactive object, and the heat sequence is converted into a vector to obtain a heat vector Conf. w , the heat vector Conf w Perform vector calculation, such as vector multiplication, on the overall product vector I formed by the vector representation of each product in the interaction sequence to obtain the herd interest vector U conf .
[0083] In operation S530, a personalized score corresponding to each interactive object sequence is generated based on the popularity score, and the personalized score is negatively correlated with the popularity score. For some objects, users perform various actions such as clicking, and the motivation for their actions may be because the object is popular and the public is interested in it, rather than the content that the user is really interested in. Here, it is necessary to further consider how to recommend content that the user is interested in but the public may not be interested in. Therefore, a personalized score is set here, and the personalized score is negatively correlated with the popularity score. The higher the popularity of an object among the public, the lower the degree of personalization of the object is considered. Figure 6As shown, the calculation method of the personalized score int and the heat score for a certain object is: int=1-conf. For example, the personalized score of object 1 is 0.3, the personalized score of object 2 is 0.7, and the personalized score of object 3 is 0.9. It should be noted that the above-mentioned calculation method of personalized score is only an example, and those skilled in the art can choose a suitable calculation method according to actual conditions, such as linear decreasing function, exponential decreasing function, logarithmic decreasing function, inverse function, etc. for calculation, and the present disclosure does not limit this.
[0084] In operation S540, a personalized interest vector is generated according to each object sequence and the personalized score corresponding to each object sequence. Figure 6 As shown, according to the personalized scores corresponding to each interactive object, a personalized score sequence is formed, and the personalized score sequence is vectorized to obtain a personalized vector Int w , the personalized vector Int w Perform vector calculation, such as vector multiplication, on the overall product vector I formed by the vector representation of each product in the interaction sequence to obtain the personalized interest vector U Int .
[0085] Figure 7 The flowchart of generating the first commodity side vector according to an example of the present disclosure is schematically shown.
[0086] According to an embodiment of the present disclosure, the first interest vector may include a first product side vector, and the first product side vector may include a tag interest vector and a decision interest vector. Figure 7 As shown, based on any of the foregoing embodiments, operation S220 may include operations S710 to S750.
[0087] In operation S710, the category, label, attribute, price and product name corresponding to each interactive object in the interactive object sequence are obtained. The category indicates the upper-level belonging of the interactive object. For example, if object 1 is a high-performance laptop, its belonging category can be "electronic products", and if object 2 is a backpack, its belonging category can be "daily necessities". The label can be a non-inherent attribute of the interactive object, for example, "Celebrity 1 endorses the product", "Imported product", etc. In some cases, the object does not have a label, so the corresponding content of the object does not exist in the label sequence. Attributes are subordinate attributes of the interactive object itself, such as size, color, size, weight, material, etc. The product name is represented here as a unique identifier of the object in the system. The identifier is one-to-one with the object. An identifier only represents a specific object, rather than a textual representation of the object. For example, it can be a number, a string, a product description vector, etc.
[0088] In operation S720, a corresponding category sequence, label sequence, attribute sequence, price sequence, and product sequence are generated according to the category, label, attribute, price, and product name.
[0089] In operation S730, corresponding category vectors, label vectors, attribute vectors, price vectors, and product vectors are generated according to the category sequence, label sequence, attribute sequence, price sequence, and product sequence. In some embodiments, after the corresponding category vectors, label vectors, attribute vectors, price vectors, and product vectors are generated, the corresponding Figure 4 The interest diversification method described in the embodiment performs further interest diversification operations on the category vector, label vector, attribute vector, price vector and product vector. The operation steps are similar to Figure 4 The embodiments are similar to those in the embodiment and will not be described in detail here.
[0090] In operation S740, a tag interest vector is generated according to the category vector, the tag vector and the product vector. The tag interest vector can represent the user's interest in a certain object collection to a certain extent. The object collection can be a category collection such as "electronic products" or a tag collection such as "products endorsed by celebrity 1".
[0091] In operation S750, a decision interest vector is generated according to the attribute vector, the price vector and the product vector. The decision interest vector can represent the user's interest in a certain inherent content of the object to a certain extent, such as interest in products priced between 2000 and 3000, and interest in white products.
[0092] Figure 8 A block diagram for generating a first commodity side vector according to an embodiment of the present disclosure is schematically shown.
[0093] According to the embodiment of the present disclosure, Figure 8 As shown, the interactive objects include object 1, object 2, and object 3. The specific commodity information of objects 1 to 3 is obtained to form a category sequence, a label sequence, an attribute sequence, a price sequence, and a commodity sequence.
[0094] According to an embodiment of the present disclosure, the conversion from sequence to vector may be performed using a gated recurrent unit (GRU) algorithm or a global graph convolutional network (GGCN) algorithm.
[0095] Specifically, determine the number of elements in the category sequence, label sequence, attribute sequence, price sequence and product sequence; when the number is greater than a preset threshold, generate the corresponding category vector, and / or label vector, and / or attribute vector, and / or price vector, and / or product vector based on the gated recurrent unit algorithm; when the number is less than or equal to the preset threshold, generate the corresponding category vector, and / or label vector, and / or attribute vector, and / or price vector, and / or product vector based on the graph neural network algorithm.
[0096] That is, for sequences with a small number of elements, GRU is used to convert sequences to vectors, and for sequences with a large number of elements, GGCN is used to convert sequences to vectors to avoid the problem of vector smoothing in sequence conversion when the number of elements is small.
[0097] After obtaining the category vector, label vector, attribute vector, price vector and product vector, the category vector, label vector and product vector are aggregated to obtain the label interest vector U label , aggregate the attribute vector, price vector and product vector into a decision interest vector U decsion .
[0098] Fig. 9 A flowchart of generating a first behavior side vector according to an example of the present disclosure is schematically shown.
[0099] According to an embodiment of the present disclosure, the first interest vector may include a first behavior side vector, and the first behavior side vector may include a behavior explicit interest vector and a behavior implicit interest vector, such as Fig. 9 As shown, based on any of the foregoing embodiments, operation S220 may include operations S910 to S960.
[0100] In operation S910, at least one associated user of the user is determined. The associated users of the user can be obtained, for example, based on a knowledge graph or a user portrait. The associated users can be, for example, users who have the same interests and hobbies as the current user, users who are in the same age group as the current user, relatives of the user, or users who have the same interaction object as the current user. There is a specific associated relationship between the associated users and the current operating user, or they have the same characteristics.
[0101] In operation S920, an associated interaction sequence of an associated user is obtained. Specifically, multiple interaction behaviors and interaction objects of the associated user that are temporally distant from the current operation behavior of the current user may be obtained to form an associated interaction sequence.
[0102] In operation S930, a behavior explicit interest vector is generated according to the associated interaction sequence and the interaction sequence. The behavior explicit interest vector represents the user's explicit interest in the object, that is, only the dimension of the object name is considered, and other dimensions of the object such as category, attribute, etc. are not considered.
[0103] In operation S940, a user vector corresponding to the user is generated according to the interaction sequence. Specifically, a sequence to vector conversion can be performed according to the interaction object sequence in the interaction sequence to generate a user vector corresponding to the user. The historical objects interacted by the user can also be divided into intervals to obtain multiple interaction object sequences. For example, the objects can be divided according to time intervals. The interaction objects of the user in the last four weeks are used as the basis. The interaction objects interacted with each week form an interaction object sequence and are converted into corresponding multiple user vectors.
[0104] In operation S950, a plurality of prediction vectors are generated according to the prediction model and the user vector, and the prediction vectors represent the interactive objects that the user is interested in in the interactive object sequence. The prediction model may include a plurality of attention models, each of which represents a different dimension, such as an object that the user likes, an object that the user may currently need, etc. The prediction vector represents the user's prediction of the object that the user may be interested in in the interactive object sequence.
[0105] In operation S960, a behavior implicit interest vector is generated according to the multiple prediction vectors. Specifically, the multiple prediction vectors may be aggregated by, for example, vector addition, vector multiplication, etc., to obtain the behavior implicit interest vector.
[0106] To facilitate the understanding of those skilled in the art, an abstract explanation of behavioral explicit interest and behavioral implicit interest is given here. Behavioral explicit interest can be roughly understood as the prediction of the user's object of interest through the object with which the user has interacted. For example, the user clicked on four objects i1~i4, of which i1 was clicked 5 times and the other objects were only clicked once. Then the similarity between the obtained behavioral explicit interest and object i1 will be greater than the similarity between the behavioral explicit interest and other objects. Behavioral implicit interest represents the user's prediction of the content that the user is really interested in among the clicked i1~i4. For example, i1~i3 are only objects that the user browses casually, and i4 is the object that the user is actually interested in. Then the similarity between the behavioral implicit interest obtained by the attention module and the vector representation of object i4 will be greater than the similarity between the behavioral implicit interest and other objects.
[0107] Fig.10 The flowchart for generating a behavior-explicit interest vector according to an example of the present disclosure is schematically shown. Fig.11 A block diagram for generating a behavior-explicit interest vector according to an example of the present disclosure is schematically shown.
[0108] like Fig.10 As shown, operation S930 may include operations S1010 to S1020.
[0109] In operation S1010, an N×M behavior matrix corresponding to each behavior is generated according to the associated interaction sequence and the interaction sequence, wherein the rows of the behavior matrix represent users, the columns of the behavior matrix represent objects, N is the total number of users, M is the number of objects in the associated interaction sequence and the interaction sequence, and when the value of the i-th row and j-th column in the behavior matrix is 1, it represents that the i-th user has had a corresponding historical interaction with the j-th object, wherein N and M are positive integers, 0<i≤N, 0<j≤M.
[0110] like Fig.11 As shown, for example, user U1 is the current user, and users U2 and U3 are associated users. User U1 clicked on objects i1, i2, and i3, purchased object i1, and added object i2 to the purchase list; user U2 clicked on objects i1 and i2, purchased object i2, and added object i1 to the collection list; user U3 clicked on objects i2 and i3, and purchased object i3. In this way, we can obtain the "user-object" relationship graph P1 for click interaction, the "user-object" relationship graph P2 for purchase interaction, the "user-object" relationship graph P3 for purchase interaction, and the "user-object" relationship graph P4 for collection interaction. Based on P1~P4, we can construct the click behavior matrix A c 、Purchasing behavior matrix A b 、Add-to-cart behavior matrix A ac , collection behavior matrix A co , with A c For example, the first row represents U1, the second row represents U2, and the third row represents U3. The first column represents i1, the second column represents i2, and the third column represents i3. The values in the first row are 1, 1, 1, indicating that user U1 clicked i1~i3. The values in the second row are 1, 1, 0, indicating that user U2 clicked i1 and i2. The values in the third row are 0, 1, 1, indicating that user U3 clicked i2 and i3. The rest of the matrix A b , A ac , A co The principle is similar, so I won’t go into details here.
[0111] In operation S1020, a behavior explicit interest is generated according to the behavior matrix and the vector representation of each interactive object. Fig.11 As shown, each behavior matrix can be weighted multiplied with the vector representation of the corresponding interactive object and then added to obtain the behavior display interest U display. The specific formula can be:
[0112]
[0113] Among them, R is the number of types of interactive behaviors, β ris the weight corresponding to the rth interaction behavior, A r is the behavior matrix corresponding to the rth interaction behavior, H r It is the overall vector representation of the interaction object corresponding to the rth interaction behavior.
[0114] Fig.12 A block diagram for generating a behavior implicit interest vector according to an embodiment of the present disclosure is schematically shown.
[0115] like Fig.12 As shown in the figure, h1~hn are multiple user vectors, h1~hn are vector predicted by k attention modules (attention1~attentionk), and k predicted vectors e1'~ek' are obtained. In some embodiments, Figure 4 The interest diversification method described in the embodiment performs further interest diversification operations on the prediction vectors e1~ek to obtain diversified vectors e1~ek. The operation steps are similar to Figure 4 The embodiment in is similar to that in which the description is omitted here. The obtained prediction vector is weighted summed according to the following formula to obtain the latent interest vector U latent:
[0116]
[0117] Among them, k is the number of prediction vectors, e i is the i-th prediction vector, w i is the weight corresponding to the i-th prediction vector.
[0118] According to the embodiment of the present disclosure, in the recommendation method provided by the embodiment of the present disclosure, the three common sides (user side, product side, behavior side) in the traditional recommendation method are further subdivided, and the interests on the user side are divided into conformity interests and personalized interests; the product side interest tag interests and decision-making interests; the behavior side interests are divided into behavior explicit interests and behavior implicit interests. On the one hand, it distinguishes whether the user's interest comes from the interest brought by popularity or the interest brought by personalization, thereby improving the accuracy of the recommendation; on the other hand, using product side label information or content information can alleviate the interest deviation caused by the short user interaction sequence, that is, when the user is a new user.
[0119] Fig.13 The flowchart for determining the user's interaction sequence according to an embodiment of the present disclosure is schematically shown.
[0120] like Fig.13 As shown, based on any of the foregoing embodiments, operation S210 may include operations S1310 to S1320.
[0121] In operation S1310, in response to a current behavior of a user, a plurality of behaviors of the user before the current behavior and objects corresponding to the behaviors are determined.
[0122] In operation S1320, an interaction sequence is generated according to a current behavior, a current object corresponding to the current behavior, a plurality of behaviors before the current behavior, and objects corresponding to the behaviors.
[0123] Specifically, multiple behaviors of the user that are sequential in time before the current behavior and the objects corresponding to the behaviors can be selected to form an interaction sequence. Time periods can also be divided and multiple behaviors and objects corresponding to the behaviors that are the same as the current time period can be selected to form an interaction sequence.
[0124] The specific method of selecting behaviors and interactive objects in a temporally continuous manner is, for example, if the user currently clicks on object i1, then the time point of clicking i1 is used as the reference time point, and the behaviors and interactive objects performed by the user within 1 hour before the time point are selected to form an interactive sequence. The specific method of selecting behaviors and interactive objects in a time-divided manner is, for example, if the user clicks on object i1 at 20:15 p.m., then the interactions and interactive objects performed by the user from 20:00 to 21:00 every night in a week can be selected to form an interactive sequence.
[0125] Fig.14 The flowchart of determining a recommendation object according to an embodiment of the present disclosure is schematically shown.
[0126] like Fig.14 As shown, based on any of the foregoing embodiments, operation S240 may include operations S1410 to S1440.
[0127] In operation S1410, a candidate object sequence is determined according to the interactive object sequence. The candidate objects may be any objects having the same attributes, the same tags, the same price range, etc. as the interactive objects.
[0128] In operation S1420, a vector representation corresponding to each candidate object in the candidate object sequence is obtained.
[0129] In operation S1430, the similarity between the second interest vector and the vector representation corresponding to each candidate object is calculated as the recommendation score of each candidate object. Specifically, for example, the cosine similarity between the second interest vector and the vector corresponding to each candidate object can be calculated as the recommendation score of each candidate object. In some embodiments, the second interest vector can be aggregated first, for example, the second user-side vector, the second product-side vector, and the second behavior-side vector can be aggregated into one vector, and then the cosine similarity between the vector and the vector representation of the candidate product can be calculated as the recommendation score; for example, the cosine similarity between the second user-side vector, the second product-side vector, and the second behavior-side vector can be calculated with the candidate product respectively, and then the results can be added as the recommendation score.
[0130] In operation S1440, a preset number of candidate objects are selected as recommended objects in descending order of recommendation scores.
[0131] Fig.15 The flowchart of determining a candidate object sequence according to an embodiment of the present disclosure is schematically shown.
[0132] like Fig.15 As shown, based on any of the foregoing embodiments, operation S1410 may include operations S1510 to S1520.
[0133] In operation S1510, at least one associated object corresponding to the user is determined, and there is a first association relationship and / or a second association relationship between the associated object and the interactive object. For example, the first association relationship may be that the objects have the same label, are in the same price range, have the same attributes, and belong to the same category; wherein the second association relationship may be that the object belongs to the type of object that the user likes as recorded in the user portrait, the origin of the object is the same as the location recorded in the user portrait, the price of the object is in the price range preferred by the user as recorded in the user portrait, the user who likes the object and the current user belong to the same type of user, etc.
[0134] Specifically, the associated object can be determined by the first association relationship. For example, there is object 1 in the interactive object sequence. Object 1 is a computer. The computer is pink, the CPU is an 8-core processor, and has a label "suitable for playing games". Then, multiple objects with silver color (such as pink tea cups, pink dolls, etc.), and / or multiple computers with 8-core processors, and / or multiple objects suitable for playing games (such as e-sports mice, e-sports chairs, etc.) can be selected as candidate objects.
[0135] Specifically, the associated object determined by the second association relationship can be, for example, a user's user portrait has a label "I like the two-dimensional world". In this case, multiple objects related to the two-dimensional world (such as figures, posters, etc.) can be selected as associated objects, and there is an association relationship of "belonging to the type that the user likes" between the associated objects and the user. Correspondingly, the second association relationship can also be, for example, the origin of the object is the same as the location of the user, the price of the object is in the price range preferred by the user, the user who likes the object and the current user belong to the same type of user, etc.
[0136] The difference between the first association relationship and the second association relationship is that the first association relationship starts from the perspective of each interactive object interacted by the user and searches for candidate commodities associated with the interactive object, while the second association relationship starts from the perspective of the user and searches for candidate commodities associated with the user.
[0137] In operation S1520 , a candidate object sequence is generated according to the associated objects.
[0138] Specifically, the selection of associated objects and the selection of candidate objects from associated objects can be determined by methods such as knowledge graphs. Taking knowledge graphs as an example, triples such as (user, relationship, user), (user, relationship, object) (object, relationship, object) can be constructed based on user portraits and product portraits. A knowledge graph is formed through each triple. The nodes in the graph are users or objects, and the edges in the graph are relationships. According to the knowledge graph, multiple target nodes that are close to the current user node and the interactive object node are determined, and candidate objects are determined based on the target nodes. For example, if the node distance to the current user is close to object node 1~object node n, user node 1~user node n, then the objects directly associated with user nodes 1~n and the objects corresponding to object nodes 1~n can be used as candidate objects. The above method of selecting candidate objects through knowledge graphs is only an example. Those skilled in the art can choose other methods of using knowledge graphs to determine candidate objects, or they can determine candidate objects through non-knowledge graphs, such as through similarity matching between user portraits and products. This disclosure does not limit this.
[0139] According to an embodiment of the present disclosure, the recommendation method provided by the present disclosure can be applied to cross-application / device recommendation. For example, the interaction sequence obtained in operation S210 can be derived from multiple applications. For example, the user clicks on objects i1 and i2 in application 1, and clicks on object i3 in application 2. Then, the interaction behaviors of application 1 and application 2 can be integrated to obtain the interaction sequence {i1, i2, i3}{c, c, c}, where c represents click. Based on the same principle, after the user clicks on objects i1 and i2 in application 1 on electronic device 1 and clicks on object i3 in application 2, the user purchases object i4 in application 3 of electronic device 2. The interaction sequence {i1, i2, i3, i4}{c, c, c, b} can also be obtained, where c represents click and b represents purchase. Based on the same principle, the user's candidate products in operation S240 can also be determined across applications and / or devices.
[0140] It should be noted that when the recommendation method is applied to cross-application / device recommendations, the method can be executed in a server or in an electronic device where multiple applications are installed, and the server and / or electronic device needs to obtain the permissions of the corresponding application to obtain the data of the application and / or electronic device to further determine the interaction sequence and candidate objects. When the recommendation method is executed in an electronic device where the application is installed and applied to cross-device recommendations, the electronic device where the application is installed needs to be able to communicate with other electronic devices to obtain data from other electronic devices.
[0141] Fig.16 The block diagram of a recommendation device according to an embodiment of the present disclosure is schematically shown.
[0142] like Fig.16 As shown, the recommendation device 1600 includes a first determination module 1610 , a first generation module 1620 , a second generation module 1630 , and a second determination module 1640 .
[0143] The first determination module 1610 is used to determine the user's interaction sequence in response to the user's current behavior, the interaction sequence including the behavior sequence and the interaction object sequence corresponding to the behavior sequence, and the behavior sequence at least includes the current behavior. In some embodiments, the first determination module 1610 can be used to perform operation S210 in the above method.
[0144] The first generating module 1620 is used to generate a first interest vector according to the interaction sequence, wherein the first interest vector includes at least one of a first user side vector, a first product side vector, and a first behavior side vector. In some embodiments, the first generating module 1620 can be used to perform operation S220 in the aforementioned method.
[0145] The second generating module 1630 is used to generate a second interest vector according to the first interest vector, wherein the second interest vector includes at least one of a second user side vector, a second product side vector, and a second behavior side vector, wherein the similarity between any vectors in the second interest vector is less than the similarity between corresponding vectors in the first interest vector. In some embodiments, the second generating module 1630 can be used to perform operation S230 in the aforementioned method.
[0146] The second determination module 1640 is configured to determine at least one recommended object according to the second interest vector and the interactive object sequence. In some embodiments, the second determination module 1640 may be configured to perform operation S240 in the aforementioned method.
[0147] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0148] For example, any of the first determination module 1610, the first generation module 1620, the second generation module 1630, and the second determination module 1640 can be combined in one module / unit / sub-unit for implementation, or any of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first determination module 1610, the first generation module 1620, the second generation module 1630, and the second determination module 1640 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the first determination module 1610 , the first generation module 1620 , the second generation module 1630 , and the second determination module 1640 may be at least partially implemented as a computer program module, which may perform a corresponding function when executed.
[0149] It should be noted that the data processing system part in the embodiments of the present disclosure corresponds to the data processing method part in the embodiments of the present disclosure. The description of the data processing system part specifically refers to the data processing method part, which will not be repeated here.
[0150] Fig.17 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Fig.17 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0151] like Fig.17 As shown, the electronic device 1700 according to an embodiment of the present disclosure includes a processor 1701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1702 or a program loaded from a storage part 1708 to a random access memory (RAM) 1703. The processor 1701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1701 may also include an onboard memory for caching purposes. The processor 1701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0152] In RAM 1703, various programs and data required for the operation of electronic device 1700 are stored. Processor 1701, ROM 1702 and RAM 1703 are connected to each other through bus 1704. Processor 1701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1702 and / or RAM 1703. It should be noted that the program can also be stored in one or more memories other than ROM 1702 and RAM 1703. Processor 1701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0153] According to an embodiment of the present disclosure, the electronic device 1700 may further include an input / output (I / O) interface 1705, which is also connected to the bus 1704. The electronic device 1700 may further include one or more of the following components connected to the input / output (I / O) interface 1705: an input portion 1706 including a keyboard, a mouse, etc.; an output portion 1707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1708 including a hard disk, etc.; and a communication portion 1709 including a network interface card such as a LAN card, a modem, etc. The communication portion 1709 performs communication processing via a network such as the Internet. A drive 1710 is also connected to the input / output (I / O) interface 1705 as needed. A removable medium 1711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1710 as needed, so that a computer program read therefrom is installed into the storage portion 1708 as needed.
[0154] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1709, and / or installed from the removable medium 1711. When the computer program is executed by the processor 1701, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0155] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0156] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0157] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1702 and / or the RAM 1703 described above and / or one or more memories other than the ROM 1702 and the RAM 1703 .
[0158] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the recommended method provided by the embodiment of the present disclosure.
[0159] When the computer program is executed by the processor 1701, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0160] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1709, and / or installed from a removable medium 1711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0161] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0162] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0163] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A recommendation method, comprising: In response to a current behavior of the user, determining an interaction sequence of the user, the interaction sequence comprising a behavior sequence and an interaction object sequence corresponding to the behavior sequence, the behavior sequence at least including the current behavior; Generate a first interest vector according to the interaction sequence, wherein the first interest vector includes at least one of a first user side vector, a first product side vector, and a first behavior side vector; Generate a second interest vector according to the first interest vector, the second interest vector including at least one of a second user side vector, a second product side vector, and a second behavior side vector, wherein the similarity between any vectors in the second interest vector is less than the similarity between corresponding vectors in the first vector; At least one recommended object is determined according to the second interest vector and the interactive object sequence.
2. The method according to claim 1, wherein generating a second interest vector according to the first interest vector comprises: Adjusting parameters of the interest diversification model according to the first interest vector until a value of a loss function of the interest diversification model is less than or equal to a preset threshold; generating the second interest vector according to the first interest vector and the interest diversification model after adjusting parameters; The value of the loss function represents the degree of difference between the output vector of the model and the first interest vector and the degree of similarity between the output vectors of the model.
3. According to the method of claim 1, the first user-side vector comprises a herd interest vector and a personalized interest vector, and the generating the first interest vector according to the interaction sequence comprises: Obtaining a heat score of each interactive object in the interactive object sequence; Generate a herd interest vector according to each of the interactive objects and the corresponding heat scores; Generating, according to the popularity score, a personalized score corresponding to each of the interaction object sequences, wherein the personalized score is negatively correlated with the popularity score; A personalized interest vector is generated according to each of the object sequences and the corresponding personalized scores.
4. According to the method of claim 1, the first product side vector includes a tag interest vector and a decision interest vector, and the generating the first interest vector according to the interaction sequence includes: Obtaining the category, label, attribute, price and product name corresponding to each interactive object in the interactive object sequence; Generate a corresponding category sequence, label sequence, attribute sequence, price sequence and product sequence according to the category, the label, the attribute, the price and the product name; Generate corresponding category vectors, label vectors, attribute vectors, price vectors, and product vectors according to the category sequence, the label sequence, the attribute sequence, the price sequence, and the product sequence; Generate the label interest vector according to the category vector, the label vector and the product vector; The decision interest vector is generated according to the attribute vector, the price vector and the product vector.
5. According to the method of claim 4, the generating of the corresponding category vector, label vector, attribute vector, price vector and product vector comprises: Determine the number of elements in each of the category sequence, the label sequence, the attribute sequence, the price sequence, and the product sequence; When the number is greater than a preset threshold, generating a corresponding category vector, and / or a label vector, and / or an attribute vector, and / or a price vector, and / or a product vector based on a gated recurrent unit algorithm; When the number is less than or equal to a preset threshold, a corresponding category vector, and / or label vector, and / or attribute vector, and / or price vector, and / or product vector are generated based on a graph neural network algorithm.
6. The method according to claim 1, wherein the first behavior side vector comprises a behavior explicit interest vector and a behavior implicit interest vector, and wherein generating the first interest vector according to the interaction sequence comprises: determining at least one associated user of the user; Acquire an associated interaction sequence of the associated user; generating the behavior explicit interest vector according to the associated interaction sequence and the interaction sequence; Generating a user vector corresponding to the user according to the interaction sequence; Generate a plurality of prediction vectors according to the prediction model and the user vector, wherein the prediction vector represents the prediction value represented by the vector corresponding to the interactive object of interest to the user in the interactive object sequence; The behavior implicit interest vector is generated according to the multiple prediction vectors.
7. The method according to claim 1, wherein determining the user interaction sequence comprises: In response to a current behavior of a user, determining a plurality of behaviors of the user before the current behavior and objects corresponding to the behaviors; The interaction sequence is generated according to the current behavior, the current object corresponding to the current behavior, multiple behaviors before the current behavior, and the objects corresponding to the behaviors.
8. The method according to claim 1, wherein determining at least one recommended object according to the second interest vector and the interactive object sequence comprises: Determining a candidate object sequence according to the interactive object sequence; Obtaining a vector representation corresponding to each candidate object in the candidate object sequence; Calculating the similarity between the second interest vector and the vector representation corresponding to each of the candidate objects as a recommendation score for each of the candidate objects; A preset number of the candidate objects are selected as recommended objects in descending order of the recommendation scores.
9. The method according to claim 8, wherein determining the candidate object sequence comprises: At least one associated object corresponding to the user is determined, a first associated relationship exists between the associated object and the interactive object, and / or a second associated relationship exists between the associated object and the user.
10. An electronic device, comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.
