Item recommendation method and device

By introducing the idea of ​​time layering into the item recommendation system, the time layer of items is determined based on the user's historical behavior records and item behavior time, which solves the problem of failing to consider changes in user interests in the existing technology and achieves a more accurate Item recommendations improve user experience.

CN113763110BActive Publication Date: 2024-09-20BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110173044.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-08
Publication Date
2024-09-20
Estimated Expiration
2041-02-08

AI Technical Summary

Technical Problem

Existing item-based collaborative filtering algorithms fail to effectively consider the change of user interests over time, resulting in recommending items that users are not interested in, affecting user experience.

Method used

Using the idea of ​​time stratification, by obtaining the target user's historical behavior records and behavior time, the time hierarchy of items is determined, and consistent items to be recommended are obtained based on the item relationship database and recommended to the user.

Benefits of technology

It improves the accuracy of item recommendation, improves user experience, and ensures that recommended items are more in line with the user's current interests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113763110B
    Figure CN113763110B
Patent Text Reader

Abstract

The present invention discloses an item recommendation method and device, and relates to the field of computer technology. A specific implementation of the method includes: according to an item recommendation request, obtaining a target item and a behavior time corresponding to the target item contained in the historical behavior record of a target user; determining the time level corresponding to the target item according to the time difference between the behavior time corresponding to the target item and the current time; based on an item relationship library, obtaining a to-be-recommended item corresponding to the target item according to the target item and the time level corresponding to the target item, so as to recommend the to-be-recommended item to the target user. This implementation adopts the idea of ​​time stratification, and can recommend items of interest to users, improve the accuracy of item recommendations, and enhance user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an item recommendation method and device. Background Art

[0002] As the scale of e-commerce platforms continues to expand, the number and variety of items that can be provided on the platform are growing rapidly. In order to solve the problem of users browsing a large number of irrelevant items under information overload, personalized recommendation systems have emerged to help the platform recommend items of interest to users.

[0003] The existing technology mainly adopts the collaborative filtering algorithm based on items to recommend items of interest to users. The specific implementation is: mining the co-occurrence relationship of items through the user's historical behavior data, thereby calculating the similarity between items; then, based on the similarity between items, recommending to the user a set of items with high similarity corresponding to the items that the user has browsed. Among them, the co-occurrence relationship of items refers to the relationship between the common appearance of items.

[0004] In the process of implementing the present invention, the inventors found that the existing item-based collaborative filtering algorithm did not take into account the problem that user interests change over time, resulting in the recommendation of items similar to an item to the user even if the user browsed the item a long time ago. In other words, items that the user is not interested in will be recommended to the user, affecting the user experience. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides an item recommendation method and device, which adopts the idea of ​​time stratification, can recommend items of interest to users, improve the accuracy of item recommendations, and enhance user experience.

[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for recommending an item is provided.

[0007] An item recommendation method according to an embodiment of the present invention comprises: obtaining a target item and a behavior time corresponding to the target item contained in a historical behavior record of a target user according to an item recommendation request; determining a time level corresponding to the target item according to a time difference between the behavior time corresponding to the target item and a current time; obtaining a to-be-recommended item corresponding to the target item based on an item relationship library according to the target item and the time level corresponding to the target item, so as to recommend the to-be-recommended item to the target user; wherein the item relationship library is used to store item co-occurrence relationships, and the item co-occurrence relationships include the number of co-occurrences between items and the time level between items.

[0008] Optionally, the method further includes: obtaining the user's historical behavior record, determining multiple items included in the user's historical behavior record; for each item in the multiple items, generating an item co-occurrence relationship corresponding to the item according to a preset time stratification rule; obtaining an item co-occurrence relationship corresponding to the multiple items based on the item co-occurrence relationship corresponding to the item, and storing the item co-occurrence relationship corresponding to the multiple items in the item relationship library.

[0009] Optionally, generating the item co-occurrence relationship corresponding to the item according to a preset time stratification rule includes: obtaining the co-occurrence item corresponding to the item, wherein the user corresponding to the obtained co-occurrence item is the same as the user corresponding to the item, and the behavior time corresponding to the obtained co-occurrence item is greater than the behavior time corresponding to the item; counting the number of co-occurrences between the item and the obtained co-occurrence item; calculating the time hierarchy between the item and the obtained co-occurrence item according to the preset time stratification rule based on the behavior time corresponding to the item and the behavior time corresponding to the obtained co-occurrence item; generating the item co-occurrence relationship corresponding to the item according to the obtained co-occurrence item, the number of co-occurrences between the item and the obtained co-occurrence item, and the time hierarchy between the item and the obtained co-occurrence item.

[0010] Optionally, the calculating of the time hierarchy between the item and the acquired co-occurring item according to a preset time stratification rule and based on the behavior time corresponding to the item and the behavior time corresponding to the acquired co-occurring item includes: calculating the time difference between the behavior time corresponding to the item and the behavior time corresponding to the acquired co-occurring item; and hierarchically dividing the calculated time difference according to a preset time granularity to obtain the time hierarchy between the item and the acquired co-occurring item.

[0011] Optionally, determining the time level corresponding to the target object based on the time difference between the behavior time corresponding to the target object and the current time includes: hierarchically dividing the time difference between the behavior time corresponding to the target object and the current time according to the preset time granularity to obtain the time level corresponding to the target object.

[0012] Optionally, the method of obtaining the recommended item corresponding to the target item based on the item relationship library according to the target item and the time level corresponding to the target item includes: selecting an item co-occurrence relationship corresponding to the target item from the item relationship library based on the target item and the time level corresponding to the target item as a selection condition, wherein the time level between items corresponding to the selected co-occurrence relationship is the same as the time level corresponding to the target item; obtaining optional items corresponding to the target item according to the selected co-occurrence relationship, and determining the number of co-occurrences between the target item and the optional items; sorting the number of co-occurrences between the target item and the optional items, and selecting the recommended item corresponding to the target item from the optional items according to the sorting result.

[0013] To achieve the above objective, according to another aspect of an embodiment of the present invention, an item recommendation device is provided.

[0014] An item recommendation device according to an embodiment of the present invention comprises: an acquisition module, which is used to acquire a target item and a behavior time corresponding to the target item contained in a historical behavior record of a target user according to an item recommendation request; a determination module, which is used to determine a time level corresponding to the target item according to a time difference between the behavior time corresponding to the target item and a current time; a recommendation module, which is used to acquire a to-be-recommended item corresponding to the target item based on an item relationship library, according to the target item and the time level corresponding to the target item, so as to recommend the to-be-recommended item to the target user; wherein the item relationship library is used to store item co-occurrence relationships, and the item co-occurrence relationships include the number of co-occurrences between items and the time level between items.

[0015] Optionally, the device also includes a storage module, which is used to: obtain the user's historical behavior record, determine the multiple items included in the user's historical behavior record; for each item in the multiple items, generate an item co-occurrence relationship corresponding to the item according to a preset time stratification rule; obtain the item co-occurrence relationship corresponding to the multiple items based on the item co-occurrence relationship corresponding to the item, and store the item co-occurrence relationship corresponding to the multiple items in the item relationship library.

[0016] Optionally, the storage module is further used to: obtain co-occurring items corresponding to the item, wherein the user corresponding to the obtained co-occurring item is the same as the user corresponding to the item, and the behavior time corresponding to the obtained co-occurring item is greater than the behavior time corresponding to the item; count the number of co-occurrences between the item and the obtained co-occurring item; calculate the time hierarchy between the item and the obtained co-occurring item according to the behavior time corresponding to the item and the behavior time corresponding to the obtained co-occurring item according to a preset time stratification rule; generate an item co-occurrence relationship corresponding to the item according to the obtained co-occurring items, the number of co-occurrences between the item and the obtained co-occurring item, and the time hierarchy between the item and the obtained co-occurring item.

[0017] Optionally, the storage module is also used to: calculate the time difference between the behavior time corresponding to the item and the behavior time corresponding to the obtained co-occurring item; and hierarchically divide the calculated time difference according to a preset time granularity to obtain a time hierarchy between the item and the obtained co-occurring item.

[0018] Optionally, the determination module is further used to: hierarchically divide the time difference between the behavior time corresponding to the target object and the current time according to the preset time granularity to obtain the time hierarchy corresponding to the target object.

[0019] Optionally, the recommendation module is further used to: select an item co-occurrence relationship corresponding to the target item from the item relationship library based on the target item and the time level corresponding to the target item as selection conditions, wherein the time level between items corresponding to the selected co-occurrence relationship is the same as the time level corresponding to the target item; obtain optional items corresponding to the target item based on the selected co-occurrence relationship, and determine the number of co-occurrences between the target item and the optional items; sort the number of co-occurrences between the target item and the optional items, and select the item to be recommended corresponding to the target item from the optional items based on the sorting result.

[0020] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0021] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the item recommendation method according to the embodiment of the present invention.

[0022] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0023] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the item recommendation method according to the embodiment of the present invention is implemented.

[0024] An embodiment of the above invention has the following advantages or beneficial effects: it is able to obtain the target item and the behavior time corresponding to the target item according to the item recommendation request, and then calculate the time level corresponding to the target item, and then use the item relationship library to obtain the target item and the time level corresponding to the target item to recommend the target item to the target user. Because the idea of ​​time stratification is adopted, the problem that the prior art does not consider the change of user interests over time is solved, so that items of interest can be recommended to users, the accuracy of item recommendations is improved, and the user experience is enhanced.

[0025] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0027] Figure 1 is a schematic diagram of main steps of an item recommendation method according to an embodiment of the present invention;

[0028] Figure 2 is a schematic diagram of a main process of obtaining a co-occurrence relationship of items according to an embodiment of the present invention;

[0029] Figure 3 is a schematic diagram of a main process of obtaining items to be recommended based on an item relationship library according to an embodiment of the present invention;

[0030] Figure 4 is a schematic diagram of the main process of the item recommendation method according to an embodiment of the present invention;

[0031] Figure 5 is a schematic diagram of main modules of an item recommendation device according to an embodiment of the present invention;

[0032] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0033] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0035] Collaborative filtering algorithm is a well-known and commonly used recommendation algorithm. It discovers user preferences based on the mining of user historical behavior data, and predicts the products that users may like for recommendation. As one of the most widely used recommendation algorithms in the e-commerce field, it simply uses group intelligence to mine the relationships between users, between items, and between users and items to recommend items of interest to users.

[0036] The existing technology mainly adopts the collaborative filtering algorithm based on items to recommend items of interest to users. The main idea is to mine the co-occurrence relationship of items through the user's historical behavior data, so as to calculate the similarity between items; then, based on the similarity between items, recommend a set of items with high similarity corresponding to the items that the user has browsed. For example, user U1 has browsed items A1, A2 and A3, and user U2 has browsed A1, A4 and A3, then A1, A2 and A3 are in a co-occurrence relationship, and A1, A4 and A3 are in a co-occurrence relationship. When calculating the similarity, A1 and A2 appear together once, A1 and A3 appear together twice, and A1 and A4 appear together once. Then, for item A1, the similarity of A3 is higher than the similarity of A2 and A4. Therefore, when user U3 has browsed item A1, item A3, which has a high similarity with item A1, can be recommended to user U3.

[0037] However, in the e-commerce field, user interests change frequently. For example, if a user browsed and bought a mobile phone ten days ago, then recommending mobile phones to the user will not attract the user's attention as much as recommending mobile phone accessories such as mobile phone cases and mobile phone films. Therefore, in the e-commerce field, the existing item-based collaborative filtering algorithm does not consider the problem of user interests changing over time, resulting in the recommendation of similar items to users even if the user browsed an item a long time ago. In other words, it will recommend items that the user is not interested in, affecting the user experience.

[0038] In order to solve the above problem, an embodiment of the present invention provides an item recommendation method. Figure 1 FIG. 1 is a schematic diagram of the main steps of the item recommendation method according to an embodiment of the present invention. Figure 1 As shown, the main steps of the item recommendation method may include steps S101 to S103.

[0039] Step S101: according to the item recommendation request, the target item and the behavior time corresponding to the target item included in the historical behavior record of the target user are obtained.

[0040] An item recommendation request refers to a request to recommend items of interest to a user. Through the item recommendation request, the target user corresponding to the request can be determined, that is, the items of interest to the target user need to be recommended. Then, the historical behavior records of the target user are obtained, such as the browsing records of the target user in the last 30 days, the collection records of the target user in the last 7 days, etc. Next, the historical behavior records of the target user are analyzed to obtain the target items included in the user history records, such as the target user browsed items A1 and A2 in the last 30 days, and collected item A3 in the last 7 days. In addition, the behavior time corresponding to the target item is obtained, that is, the specific time when the target user performs the operation on the target item is obtained, such as the target user browsed item A1 30 days ago, browsed A2 20 days ago, and collected item A3 2 days ago.

[0041] Step S102: Determine the time level corresponding to the target item according to the time difference between the behavior time corresponding to the target item and the current time, wherein the current time refers to the time corresponding to the item recommendation request.

[0042] The existing collaborative filtering algorithm based on items does not consider the problem that user interests change over time, resulting in the recommendation of items that the user is not interested in, which affects the user experience. However, in the item recommendation method of the embodiment of the present invention, the behavior time corresponding to the target item is obtained through step S101, and then in step S102, the time difference between the behavior time corresponding to the target item and the current time is calculated to determine the time level corresponding to the target item. Then, items can be recommended to the target user in combination with the time level corresponding to the target item, considering the problem that user interests change over time, so that the items recommended to the user are the items that the user is interested in, thereby improving the user experience.

[0043] Specifically, the method for determining the time level corresponding to the target item may be: according to the preset time granularity, the time difference between the behavior time corresponding to the target item and the current time is hierarchically divided to obtain the time level corresponding to the target item. The time granularity is the unit for hierarchical division of time. For example, if the preset time granularity is 1 day, it means hierarchical division in units of 1 day. For example, if the preset time granularity is 2 days, it means hierarchical division in units of 2 days. Assuming that the preset time granularity is 1 day and the time difference between the behavior time corresponding to the target item and the current time is 5 days, the time level corresponding to the target item is 5.

[0044] Step S103: Based on the item relationship library, according to the target item and the time level corresponding to the target item, the to-be-recommended item corresponding to the target item is obtained to recommend the to-be-recommended item to the target user.

[0045] Among them, the item relationship library is used to store item co-occurrence relationships, which include the number of co-occurrences between items and the time level between items. The item co-occurrence relationship stored in the item relationship library refers to the co-occurrence relationship between items mined by analyzing the historical behavior records of users. If the same user has browsed or collected two items, then the two items are considered to appear together, that is, there is a co-occurrence relationship between the two items. The number of co-occurrences between items refers to the number of times the items appear together. For example, if users U1, U2 and U3 have all browsed two items, the number of co-occurrences between the two items is 3. If there is a co-occurrence relationship between two items, then the time level between the two items is calculated based on the time difference of the corresponding behaviors of the two items. In summary, the number of co-occurrences between items refers to the number of times the items appear together, and the time level between items can represent the time difference of the corresponding behaviors of the items. It can be seen that the item co-occurrence relationship stored in the item relationship library includes the time level, which solves the problem that the prior art does not consider the change of user interests over time, so that the items recommended to users are the items of interest to the users, thereby improving the user experience.

[0046] For ease of understanding, the existing collaborative filtering algorithm based on items and the item recommendation method of the embodiment of the present invention are described in detail through the following examples. Assume that items are recommended to users based on item A1 (i.e., the target item is A1), and item A1 has a co-occurrence relationship with items A2, A3, A4, A5, and A6. (i) If the existing collaborative filtering algorithm based on items is used for item recommendation, since item A1 has a co-occurrence relationship with items A2, A3, A4, A5, and A6, items A2, A3, A4, A5, and A6 will be recommended to the user. (ii) If the item recommendation method of the embodiment of the present invention is used for item recommendation, although item A1 has a co-occurrence relationship with items A2, A3, A4, A5, and A6, it can be obtained that items A2 and A3 were browsed on the 10th day after browsing item A1, and items A4, A5, and A6 were browsed on the 3rd day after browsing item A1. And, when recommending items to users based on item A1, it will be considered when the user browsed item A1. If the user browsed item A1 three days ago, then items A4, A5 and A6 will be recommended to the user, but items A2 and A3 will not be recommended to the user. Obviously, the item recommendation method of the embodiment of the present invention takes into account the problem of user interest changes caused by time factors, and can recommend items that the user is more interested in.

[0047] The item recommendation method of the embodiment of the present invention can obtain the target item and the behavior time corresponding to the target item according to the item recommendation request, and then calculate the time level corresponding to the target item. Then, with the help of the item relationship library, the target item and the time level corresponding to the target item can be used to obtain the to-be-recommended item corresponding to the target item, so as to recommend the to-be-recommended item to the target user. Because the idea of ​​time stratification is adopted, the problem that the prior art does not consider the change of user interests over time is solved, so that items of interest can be recommended to users, the accuracy of item recommendations is improved, and the user experience is enhanced.

[0048] The item co-occurrence relationship stored in the item relationship library of the embodiment of the present invention includes a time layer, so based on the item relationship library, the recommended item corresponding to the target item can be obtained according to the target item and the time layer corresponding to the target item, so the item co-occurrence relationship stored in the item relationship library plays an important role. Next, the item co-occurrence relationship of the embodiment of the present invention is described in detail. Figure 2 FIG. 1 is a schematic diagram of the main process of obtaining the co-occurrence relationship of items according to an embodiment of the present invention. Figure 2 As shown, the main process of obtaining the item co-occurrence relationship may include steps S201 to S203.

[0049] Step S201: Obtain the user's historical behavior record and determine the multiple items included in the user's historical behavior record.

[0050] Among them, the user's historical behavior record can be the user's historical browsing record, historical collection record, etc. on a certain e-commerce platform. However, it should be noted that if the user's historical browsing record is analyzed to obtain the item co-occurrence relationship, then the browsed items in the user's historical browsing record are determined; and the historical behavior record of the target user in step S101 refers to the target user's historical browsing record, the target item refers to the target user's browsed items, and the obtained recommended items are items that the target user may browse. Similarly, if the user's historical collection record is analyzed to obtain the item co-occurrence relationship, then the collected items in the user's historical collection record are determined; and the historical behavior record of the target user in step S101 refers to the target user's historical collection record, the target item refers to the target user's collected items, and the obtained recommended items are items that the target user may collect. For example, the historical browsing records of users U1, U2 and U3 on a certain platform are obtained, and the analysis shows that these three users have browsed items A1 to A8. Of course, the historical browsing records or historical collection records of multiple (can be but not limited to 3) users or other historical behavior records of users can be obtained according to specific needs.

[0051] Step S202: For each of the multiple items, generate an item co-occurrence relationship corresponding to the item according to a preset time stratification rule. That is, after obtaining multiple items included in the historical behavior record, analyze each item to obtain an item co-occurrence relationship corresponding to each item. For ease of description, assume that item A1 is an item in the user's historical behavior record, and take generating an item co-occurrence relationship corresponding to item A1 as an example for explanation.

[0052] As an embodiment of the present invention, generating the item co-occurrence relationship corresponding to item A1 according to the preset time layering rule may include:

[0053] (i) Obtaining the co-occurring items corresponding to item A1. The user corresponding to the obtained co-occurring items is the same as the user corresponding to item A1, and the behavior time corresponding to the obtained co-occurring items is greater than the behavior time corresponding to item A1.

[0054] As explained above, if the same user has browsed, collected, or clicked on two items, that is, the same user has browsed these two items, or the same user has collected these two items, or the same user has clicked on these two items, etc., then it can be considered that the two items have co-appeared. Therefore, in the process of obtaining the co-occurring items corresponding to item A1, if the historical behavior record of user U1 contains item A1, then the co-occurring items corresponding to item A1 can be selected from other items in the historical behavior record of user U1. In addition, consider the item recommendation method, which recommends items to users based on the user's historical behavior record. For example, if a user browsed an item 3 days ago, then based on the browsed item, the user is recommended items that he may browse. Obviously, the browsing time of the browsed item is less than the browsing time of the recommended item. Therefore, it can be limited that the behavior time corresponding to the obtained co-occurring items is greater than the behavior time corresponding to item A1.

[0055] For example, the historical behavior record of user U1 contains items A1 to A4, and the time sequence of user U1's specific actions on the items is: A3, A1, A2, A4; the historical behavior record of user U2 contains items A1, A2, A4, A7 and A8, and the time sequence of user U2's specific actions on the items is: A8, A7, A1, A2, A4; the historical behavior record of user U3 contains items A1, A2, A5 to A7, and the time sequence of user U3's specific actions on the items is: A1, A2, A5, A6, A7. Then it can be obtained that the co-occurring items corresponding to item A1 are A2, A4, A5, A6, A7.

[0056] (ii) Count the number of co-occurrences between item A1 and the acquired co-occurrence items, that is, count the number of times item A1 co-occurs with the acquired co-occurrence items. For example, for user U1, items A1 and A2 co-occur once, and items A1 and A4 co-occur once; for user U2, items A1 and A2 co-occur once, and items A1 and A4 co-occur once; for user U3, items A1 and A2 co-occur once, items A1 and A5 co-occur once, items A1 and A6 co-occur once, and items A1 and A7 co-occur once. In summary, A1 and A2 co-occur 3 times, items A1 and A4 co-occur 2 times, items A1 and A5 co-occur once, items A1 and A6 co-occur once, and items A1 and A7 co-occur once.

[0057] (iii) According to the preset time stratification rule, based on the behavior time corresponding to item A1 and the behavior time corresponding to the obtained co-occurring items, the time hierarchy between item A1 and the obtained co-occurring items is calculated.

[0058] Specifically, the time difference between the behavior time corresponding to item A1 and the behavior time corresponding to the obtained co-occurring items is calculated; then, according to the preset time granularity, the calculated time difference is hierarchically divided to obtain the time hierarchy between item A1 and the obtained co-occurring items. For example, user U1 browsed item A1 20 days ago and item A4 18 days ago; the time difference between user U1 browsing items A1 and A4 is calculated to be 2 days; taking the preset time granularity of 1 day as an example, the time difference of 2 days is hierarchically divided to obtain that for user U1, the time hierarchy between items A1 and A4 is 2. And, user U2 browsed item A1 10 days ago and item A4 5 days ago; the time difference between user U2 browsing items A1 and A4 is calculated to be 5 days; taking the preset time granularity of 1 day as an example, the time difference of 5 days is hierarchically divided to obtain that for user U2, the time hierarchy between items A1 and A4 is 5. Therefore, the number of co-occurrences between item A1 and its corresponding co-occurring item A4 is 2, one of which corresponds to a time level of 2, and the other corresponds to a time level of 5. Similarly, the time levels between A1 and other co-occurring items A2, A5, A6, and A7 are obtained respectively.

[0059] (iv) Generate an item co-occurrence relationship corresponding to item A1 based on the acquired co-occurrence items, the number of co-occurrences between item A1 and the acquired co-occurrence items, and the time level between the item and the acquired co-occurrence items. The item co-occurrence relationship corresponding to the item can be set as S->S1:T1:k1,S2:T2:k2,...,Si:Ti:ki, where S represents the item, Si represents the i-th co-occurrence item corresponding to the item, Ti represents the time level between the item and the i-th co-occurrence item corresponding to the item, and ki represents the number of co-occurrences between the item and the i-th co-occurrence item corresponding to the item. In addition, since the item recommendation method is queried based on the time level corresponding to the target item, the item co-occurrence relationship corresponding to the item can be set as S-Tm->S1:k1,S2:k2,S3:k3, that is, the time levels between item S and the co-occurrence items S1, S2 and S3 corresponding to S are all the same. In other words, co-occurrence items with the same time level are put together, so that the time level can be directly used for query, thereby improving the item recommendation rate.

[0060] Step S203: obtaining the item co-occurrence relationships corresponding to the multiple items according to the item co-occurrence relationships corresponding to the items, and storing the item co-occurrence relationships corresponding to the multiple items in an item relationship library.

[0061] For multiple items included in the user's historical behavior record, the item co-occurrence relationship corresponding to each item can be obtained according to the above (i) to (iv), that is, the item co-occurrence relationship corresponding to multiple items is obtained. Then, the obtained item co-occurrence relationship corresponding to the multiple items is stored in the item relationship library. In addition, in the embodiment of the present invention, the item co-occurrence relationship can also be updated regularly.

[0062] Since the item co-occurrence relationship stored in the item relationship library includes a time hierarchy, in step S103, based on the item relationship library, the to-be-recommended item corresponding to the target item can be obtained according to the target item and the time hierarchy corresponding to the target item, and then the to-be-recommended item can be recommended to the target user. Figure 3 FIG. 1 is a schematic diagram of the main process of obtaining items to be recommended based on the item relationship library according to an embodiment of the present invention. Figure 3 As shown, the main process of obtaining items to be recommended based on the item relationship library may include:

[0063] Step S301, selecting an item co-occurrence relationship corresponding to the target item from an item relationship library based on the target item and the time level corresponding to the target item as selection conditions;

[0064] Step S302, obtaining optional items corresponding to the target item according to the selected co-occurrence relationship, and determining the number of co-occurrences between the target item and the optional items;

[0065] Step S303, sorting the co-occurrence times between the target item and the optional items, and selecting the recommended item corresponding to the target item from the optional items according to the sorting result.

[0066] The item relationship library of the embodiment of the present invention stores item co-occurrence relationships, that is, stores the item co-occurrence relationships between each item and the co-occurrence item corresponding to the item; and the item co-occurrence relationships may include: the number of co-occurrences between items and the time hierarchy between items. The number of co-occurrences between items refers to the number of times an item and the co-occurrence item corresponding to the item co-appear, and the time hierarchy between items refers to the time hierarchy between an item and the co-occurrence item corresponding to the item.

[0067] Obviously, the item relationship library stores the item co-occurrence relationship corresponding to the target item, so the item co-occurrence relationship corresponding to the target item can be selected from the item relationship library based on the target item and the time level corresponding to the target item, wherein the time level between the items corresponding to the selected co-occurrence relationship is the same as the time level corresponding to the target item. For example, if the selected co-occurrence relationship is N, the target item is A1, the time level between the target item A1 and the co-occurrence items corresponding to A1 in N is Ta, and the time level corresponding to the target item A1 obtained according to the item recommendation request is Tb, then Ta is the same as Tb.

[0068] Through the selected co-occurrence relationship, the co-occurrence items corresponding to the target item can be obtained, that is, the optional items corresponding to the target item can be obtained, and the number of optional items is one or more. In addition, through the selected co-occurrence relationship, the number of times the target item and the optional items appear together can be obtained, that is, the number of times the target item and each optional item appear together can be obtained. Then, the number of times the target item and the optional items appear together can be sorted, and according to the sorting result, the recommended items corresponding to the target item can be selected from the optional items. For example, the optional items corresponding to the target item A1 are A2, A4, and A7, and the number of times A1 and A2 appear together is 30, the number of times A1 and A4 appear together is 25, and the number of times A1 and A7 appear together is 15. If only one item is recommended, A4 can be recommended.

[0069] In addition, considering that the number of target items is one or more, the optional items corresponding to each target item can be obtained, and then the number of times all target items and optional items appear together is sorted to obtain the items to be recommended.

[0070] Figure 4 FIG. 1 is a schematic diagram of the main process of the item recommendation method according to an embodiment of the present invention. Figure 4 As shown, the main process of the item recommendation method can include:

[0071] Step S401, according to the item recommendation request, obtaining the target item and the behavior time corresponding to the target item contained in the historical behavior record of the target user;

[0072] Step S402, hierarchically dividing the time difference between the behavior time corresponding to the target item and the current time according to a preset time granularity to obtain a time hierarchy corresponding to the target item;

[0073] Step S403, taking the target item and the time level corresponding to the target item as selection conditions, selecting the item co-occurrence relationship corresponding to the target item from the item relationship library, wherein the time level between the items corresponding to the selected co-occurrence relationship is the same as the time level corresponding to the target item;

[0074] Step S404, obtaining optional items corresponding to the target item according to the selected co-occurrence relationship, and determining the number of co-occurrences between the target item and the optional items;

[0075] Step S405 , sorting the co-occurrence times between the target item and the optional items, and selecting the to-be-recommended item corresponding to the target item from the optional items according to the sorting result.

[0076] The item relationship library is used to store item co-occurrence relationships, which include the number of co-occurrences between items and the time level between items. The item co-occurrence relationships in the item relationship library have been described in detail in steps S201 to S203 above, and will not be described again here.

[0077] The item recommendation method of the embodiment of the present invention can obtain the target item and the behavior time corresponding to the target item according to the item recommendation request, and then calculate the time level corresponding to the target item. Then, with the help of the item relationship library, the target item and the time level corresponding to the target item can be used to obtain the to-be-recommended item corresponding to the target item, so as to recommend the to-be-recommended item to the target user. Because the idea of ​​time stratification is adopted, the problem that the prior art does not consider the change of user interests over time is solved, so that items of interest can be recommended to users, the accuracy of item recommendations is improved, and the user experience is enhanced.

[0078] Figure 5 Schematic diagram of the main modules of the item recommendation device according to an embodiment of the present invention. Figure 5 As shown, the main modules of the item recommendation device 500 may include: an acquisition module 501 , a determination module 502 and a recommendation module 503 .

[0079] The acquisition module 501 can be used to: obtain the target item and the behavior time corresponding to the target item contained in the historical behavior record of the target user according to the item recommendation request; the determination module 502 can be used to: determine the time level corresponding to the target item according to the time difference between the behavior time corresponding to the target item and the current time; the recommendation module 503 can be used to: obtain the to-be-recommended item corresponding to the target item based on the item relationship library according to the target item and the time level corresponding to the target item, so as to recommend the to-be-recommended item to the target user. The item relationship library is used to store the co-occurrence relationship of items, and the co-occurrence relationship of items includes the number of co-occurrences between items and the time level between items.

[0080] from Figure 5 It can be seen that the item recommendation device 500 may further include a storage module 504. The storage module 504 may be used to: obtain the user's historical behavior record, determine the multiple items included in the user's historical behavior record; for each of the multiple items, generate an item co-occurrence relationship corresponding to the item according to a preset time stratification rule; obtain an item co-occurrence relationship corresponding to multiple items according to the item co-occurrence relationship corresponding to the item, and store the item co-occurrence relationship corresponding to the multiple items in an item relationship library.

[0081] As an embodiment of the present invention, the storage module 504 can also be used to: obtain co-occurring items corresponding to the items, wherein the user corresponding to the obtained co-occurring items is the same as the user corresponding to the items, and the behavior time corresponding to the obtained co-occurring items is greater than the behavior time corresponding to the items; count the number of co-occurrences between the items and the obtained co-occurring items; calculate the time hierarchy between the items and the obtained co-occurring items according to the behavior time corresponding to the items and the behavior time corresponding to the obtained co-occurring items according to a preset time stratification rule; generate an item co-occurrence relationship corresponding to the items according to the obtained co-occurring items, the number of co-occurrences between the items and the obtained co-occurring items, and the time hierarchy between the items and the obtained co-occurring items.

[0082] As an embodiment of the present invention, the storage module 504 can also be used to: calculate the time difference between the behavior time corresponding to the item and the behavior time corresponding to the obtained co-occurring item; hierarchically divide the calculated time difference according to a preset time granularity to obtain the time hierarchy between the item and the obtained co-occurring item.

[0083] As an embodiment of the present invention, the determination module 502 may also be used to: hierarchically divide the time difference between the behavior time corresponding to the target item and the current time according to a preset time granularity to obtain the time hierarchy corresponding to the target item.

[0084] As an embodiment of the present invention, the recommendation module 503 can also be used to: select an item co-occurrence relationship corresponding to the target item from the item relationship library based on the target item and the time level corresponding to the target item as selection conditions, wherein the time level between the items corresponding to the selected co-occurrence relationship is the same as the time level corresponding to the target item; obtain optional items corresponding to the target item based on the selected co-occurrence relationship, and determine the number of co-occurrences between the target item and the optional items; sort the number of co-occurrences between the target item and the optional items, and select the item to be recommended corresponding to the target item from the optional items based on the sorting result.

[0085] The item recommendation device of the embodiment of the present invention can obtain the target item and the behavior time corresponding to the target item according to the item recommendation request, and then calculate the time level corresponding to the target item. Then, with the help of the item relationship library, the target item and the time level corresponding to the target item can be used to obtain the to-be-recommended item corresponding to the target item, so as to recommend the to-be-recommended item to the target user. Because the idea of ​​time stratification is adopted, the problem that the prior art does not consider the change of user interests over time is solved, so that items of interest can be recommended to users, the accuracy of item recommendations is improved, and the user experience is enhanced.

[0086] Figure 6 An exemplary system architecture 600 is shown to which the item recommendation method or item recommendation apparatus according to the embodiment of the present invention can be applied.

[0087] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0088] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603. The terminal devices 601, 602, 603 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, etc.

[0089] The server 605 may be a server that provides various services, such as a backend management server that provides support (for example only) when a user makes an item recommendation using the terminal devices 601, 602, and 603. The backend management server may analyze and process the received item recommendation request and other data, and feed back the items to be recommended to the terminal device.

[0090] It should be noted that the item recommendation method provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the item pushing device is generally disposed in the server 605 .

[0091] It should be understood that Figure 6 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.

[0092] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal 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 invention.

[0093] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0094] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0095] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes 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 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0096] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order 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 flow chart, and the combination of the boxes in the block diagram or flow chart 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.

[0098] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, they may be described as: a processor including an acquisition module, a determination module, and a recommendation module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the acquisition module may also be described as "a module that acquires the target items and the behavior time corresponding to the target items contained in the historical behavior records of the target user according to the item recommendation request."

[0099] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: according to the item recommendation request, obtaining the target item and the behavior time corresponding to the target item contained in the historical behavior record of the target user; according to the time difference between the behavior time corresponding to the target item and the current time, determining the time level corresponding to the target item; based on the item relationship library, according to the target item and the time level corresponding to the target item, obtaining the to-be-recommended item corresponding to the target item, so as to recommend the to-be-recommended item to the target user; wherein the item relationship library is used to store the co-occurrence relationship of items, and the co-occurrence relationship of items includes the number of co-occurrences between items and the time level between items.

[0100] According to the technical solution of the embodiment of the present invention, the target item and the behavior time corresponding to the target item can be obtained according to the item recommendation request, and then the time layer corresponding to the target item can be calculated. Then, with the help of the item relationship library, the target item and the time layer corresponding to the target item can be used to obtain the to-be-recommended item corresponding to the target item, so as to recommend the to-be-recommended item to the target user. Because the idea of ​​time stratification is adopted, the problem that the prior art does not consider the change of user interests over time is solved, so that items of interest can be recommended to users, the accuracy of item recommendations is improved, and the user experience is enhanced.

[0101] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An item recommendation method, characterized in that: include: According to the item recommendation request, the target item and the behavior time corresponding to the target item included in the historical behavior record of the target user are obtained; wherein the historical behavior record is one or more of the historical browsing record and the historical collection record; Determining the time level corresponding to the target object according to the time difference between the behavior time corresponding to the target object and the current time; Based on the item relationship library, according to the target item and the time level corresponding to the target item, obtaining the to-be-recommended item corresponding to the target item, so as to recommend the to-be-recommended item to the target user, including: taking the target item and the time level corresponding to the target item as selection conditions, selecting the item co-occurrence relationship corresponding to the target item from the item relationship library, obtaining the optional item corresponding to the target item according to the selected co-occurrence relationship, and determining the number of co-occurrences between the target item and the optional item; sorting the number of co-occurrences between the target item and the optional item, and selecting the to-be-recommended item corresponding to the target item from the optional items according to the sorting result; Among them, the item relationship library is used to store item co-occurrence relationships, and the item co-occurrence relationships include the number of co-occurrences between items and the time levels between items. The time levels between items represent the time differences of behaviors corresponding to the items, and the number of time levels is equal to the number of co-occurrences; the time levels between items corresponding to the selected co-occurrence relationship are the same as the time levels corresponding to the target item.

2. The method according to claim 1, characterized in that The method further comprises: Acquire a user's historical behavior record, and determine a plurality of items included in the user's historical behavior record; For each of the multiple items, generating an item co-occurrence relationship corresponding to the item according to a preset time stratification rule; According to the item co-occurrence relationship corresponding to the item, the item co-occurrence relationship corresponding to the multiple items is obtained, and the item co-occurrence relationship corresponding to the multiple items is stored in the item relationship library.

3. The method according to claim 2, characterized in that Generating the item co-occurrence relationship corresponding to the item according to the preset time layering rule includes: Acquire a co-occurring item corresponding to the item, wherein the user corresponding to the acquired co-occurring item is the same as the user corresponding to the item, and the behavior time corresponding to the acquired co-occurring item is greater than the behavior time corresponding to the item; Counting the number of co-occurrences between the item and the obtained co-occurrence items; According to a preset time stratification rule, the time stratification between the object and the obtained co-occurring object is calculated according to the behavior time corresponding to the object and the behavior time corresponding to the obtained co-occurring object; An item co-occurrence relationship corresponding to the item is generated according to the acquired co-occurrence items, the number of co-occurrences between the item and the acquired co-occurrence items, and the time hierarchy between the item and the acquired co-occurrence items.

4. The method according to claim 3, characterized in that The calculating the time hierarchy between the item and the obtained co-occurring item according to the preset time stratification rule and the behavior time corresponding to the item and the behavior time corresponding to the obtained co-occurring item includes: Calculating the time difference between the behavior time corresponding to the item and the behavior time corresponding to the obtained co-occurring item; The calculated time difference is hierarchically divided according to a preset time granularity to obtain a time hierarchy between the item and the acquired co-occurring item.

5. The method according to claim 4, characterized in that The determining the time level corresponding to the target object according to the time difference between the behavior time corresponding to the target object and the current time includes: According to the preset time granularity, the time difference between the behavior time corresponding to the target object and the current time is hierarchically divided to obtain the time hierarchy corresponding to the target object.

6. An item recommendation device, characterized in that: include: An acquisition module is used to acquire, according to an item recommendation request, a target item and a behavior time corresponding to the target item contained in a historical behavior record of a target user; wherein the historical behavior record is one or more of a historical browsing record and a historical collection record; A determination module, used to determine the time level corresponding to the target object according to the time difference between the behavior time corresponding to the target object and the current time; The recommendation module is used to obtain the to-be-recommended items corresponding to the target item based on the item relationship library and the time level corresponding to the target item, so as to recommend the to-be-recommended items to the target user, including: selecting the item co-occurrence relationship corresponding to the target item from the item relationship library based on the target item and the time level corresponding to the target item as a selection condition, obtaining the optional items corresponding to the target item based on the selected co-occurrence relationship, and determining the number of co-occurrences between the target item and the optional items; sorting the number of co-occurrences between the target item and the optional items, and selecting the to-be-recommended items corresponding to the target item from the optional items based on the sorting result; wherein, The item relationship library is used to store item co-occurrence relationships, and the item co-occurrence relationships include the number of co-occurrences between items and the time levels between items. The time levels between items represent the time differences of behaviors corresponding to the items, and the number of time levels is equal to the number of co-occurrences. The time levels between items corresponding to the selected co-occurrence relationship are the same as the time levels corresponding to the target item.

7. The device according to claim 6, characterized in that Also included is a storage module for: Acquire a user's historical behavior record, and determine a plurality of items included in the user's historical behavior record; For each of the multiple items, generating an item co-occurrence relationship corresponding to the item according to a preset time stratification rule; According to the item co-occurrence relationship corresponding to the item, the item co-occurrence relationship corresponding to the multiple items is obtained, and the item co-occurrence relationship corresponding to the multiple items is stored in the item relationship library.

8. An electronic device, characterized in that: include: one or more processors; a storage device 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 5.

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