Commodity recommendation method based on active learning and medium
By calculating the quantitative recommendation correlation and estimated variance, it dynamically determines whether the user exits active learning, which solves the problem of insufficient data in the recommendation system when the user cold starts, ensures high-quality recommendations and user satisfaction, and avoids user abandonment in the lengthy process. Systemic risk.
Patent Information
- Application Number
- CN202410834836.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-27
AI Technical Summary
Existing recommendation systems are difficult to generate high-quality recommendations due to the lack of interactive data when users are cold-started. Moreover, the fixed-length list to be rated during the active learning process will affect the user's global satisfaction, causing the user to exit the system or the recommendation results to be inaccurate.
By obtaining the interaction data of new users of the recommendation system, we calculate the quantitative recommendation correlation, use the estimated variance and preference information gain to determine whether the user needs to exit active learning, and dynamically determine the exit timing to ensure sufficient collection of user preference information and high-quality recommendations.
It achieves dynamic adaptive decision-making on the timing of exiting the active learning phase when the user is cold-starting, preventing users from abandoning the system due to a lengthy process, while ensuring the accuracy of recommendation results and user satisfaction.
Smart Images

Figure CN118710364A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of recommendation systems, and in particular, relates to a commodity recommendation method and medium based on active learning. Background Art
[0002] Recommender systems can be used to help users find useful or interesting items from a large number of items. They have been widely used in the information society. In order to generate reliable recommendations, recommendation systems usually require a large amount of user interaction data. When there is less relevant data, the accuracy of the recommendation is restricted. Therefore, when a new user enters the recommendation system, the recommendation algorithm based on collaborative filtering is difficult to generate reliable recommendations because the system has little understanding of the user. This will cause the user cold-start problem, making it difficult for the recommendation system to operate effectively in the initial stage.
[0003] Active learning is a common method in machine learning when the amount of data in the data set is insufficient or the data types are not comprehensive. It is also regarded as a mainstream method to solve the user cold start problem. Compared with content-based recommendations, active learning does not require any user statistical information and can solve the user cold start problem under the condition of fully protecting user privacy. Existing active learning methods require users to provide a fixed number of rating results, and use this as the basis for subsequent recommendations. For example, Chinese invention patent CN106127506B discloses a recommendation method based on active learning to solve the cold start problem of commodities. Users are selected to rate new commodities based on four factors, and the rating model is retrained using the obtained rating data. The retrained rating model is used to predict the rating of unselected users for new commodities, and the commodity is recommended based on the rating. However, in the active learning process, a fixed-length list to be rated will greatly affect the user's global satisfaction. Specifically, a list that is too long will reduce the user's tolerance and the user may quickly exit the system; while a list that is too short will result in insufficient user preferences collected by the system during the active learning stage, thereby affecting the accuracy of subsequent recommendations. Since the interaction between the recommendation system and each user is inconsistent, that is, the exact same list of to-be-rated users may be too long for some users and too short for other users, how to control the timing of different users exiting active learning to ensure that the recommendation system can fully collect user preference information to generate high-quality recommendation results while avoiding users abandoning the recommendation system due to the lengthy active learning phase is a key issue that needs to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a product recommendation method and medium based on active learning, which can ensure that the user's preference information is fully collected and high-quality recommendation results are generated, while also preventing users from abandoning the recommendation system due to the lengthy active learning phase.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] The present invention provides a commodity recommendation method based on active learning, comprising the following steps:
[0007] Obtain the user interaction data generated by new users of the recommendation system during the active learning phase, and make product recommendations based on it;
[0008] Among them, whether a new user of the recommendation system needs to exit active learning is judged based on the quantitative recommendation relevance, and the quantitative recommendation relevance is calculated based on the difference between the current score estimation result and the initial score estimation result, and the initial score estimation result is calculated based on the initial user interaction data of the recommendation system, and the current score estimation result is calculated based on the score of the new user of the recommendation system for the rated item.
[0009] Furthermore, the items to be scored are selected based on the estimated variance as an indicator, and the estimated variance includes entropy, maximum score and minimum score indicators.
[0010] Furthermore, the calculation formula of the estimated variance is as follows:
[0011]
[0012] Among them, VP is the estimated variance, U i is the set of users who have interacted with item i, For user u′ i The scoring result of item i corresponds to entropy, It is the estimated score of item i by a specific user u in round t, corresponding to the maximum score and minimum score indicators.
[0013] Furthermore, the calculation formula for the quantitative recommendation relevance is as follows:
[0014]
[0015] Among them, R is the quantitative recommendation relevance, I is the set of items to be rated, is the initial scoring estimate result, is the current rating estimate, t is the number of recommendation rounds, and u is the user identifier.
[0016] Furthermore, the specific process of judging whether a new user of the recommendation system needs to exit active learning based on the quantitative recommendation relevance is as follows:
[0017] S301, performing curve fitting based on the quantitative recommendation correlation to obtain an upper bound a of the curve;
[0018] S302: Determine whether the following conditions are met: If so, active learning needs to be exited, where R is the quantitative recommendation relevance, t is the number of recommendation rounds, u is the user identifier, and k is the preference information threshold.
[0019] Furthermore, in step S301, curve fitting is performed using an exponential function.
[0020] Furthermore, in step S302, it is also necessary to consider whether the following conditions are met: If so, you need to exit active learning, where V is the preference information gain and g is the preference information gain threshold.
[0021] Furthermore, the calculation formula of the preference information gain V is as follows:
[0022]
[0023] Among them, z is the sliding window size.
[0024] Furthermore, the initial score prediction result and the current score prediction result are calculated by a score prediction algorithm.
[0025] The present invention also provides a computer-readable storage medium on which a computer program is stored, and the program implements the above method when executed by a processor.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] 1. The present invention proposes a product recommendation method based on active learning, which recommends products according to the user interaction data generated by the new user of the recommendation system in the active learning stage. In particular, the process of judging whether the new user of the recommendation system needs to exit the active learning is as follows: first, the initial user interaction data of the recommendation system is obtained, and the initial score estimation result is calculated. Then, the score of the new user of the recommendation system for the items to be scored in the active learning is obtained, and the current score estimation result is calculated. Based on the difference between the current score estimation result and the initial score estimation result, the quantitative recommendation correlation is calculated, and it is judged whether the new user of the recommendation system needs to exit the active learning. The above method can step by step determine the timing for the new user of the recommendation system to exit the active learning stage, while ensuring that sufficient user preference information is collected to generate high-quality recommendation results, and avoiding users from abandoning the system due to the lengthy active learning stage.
[0028] 2. The present invention constructs a new indicator, the estimated variance, to select the items to be scored. The estimated variance integrates the entropy, maximum score and minimum score indicators. Among them, entropy can be used to represent the degree of discreteness between different scores, and the maximum score and minimum score indicators help to understand the score range and extreme values of the project. Therefore, the estimated variance is enough to comprehensively consider the score distribution, uncertainty and difference of the items to be scored, and provide a more comprehensive and accurate evaluation result. The selection method of the items to be scored proposed in the present invention can be combined with a large number of active learning methods and some non-active learning methods to solve the user cold start problem. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A flow chart of a method for determining whether a new user of a recommendation system needs to exit active learning;
[0030] Figure 2 This is a schematic diagram of the active learning dynamic process model.
[0031] Among them, u1 and u2 are new users of the recommendation system, |N(u)| is the number of user ratings, α is the longest number of interaction rounds that can be tolerated in the active learning phase, and β is the threshold of recommendation relevance. Quantified recommendation relevance for user u1 in interaction round n. DETAILED DESCRIPTION
[0032] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0033] Example:
[0034] like Figure 2 As shown in the figure, the user active learning stage in the recommendation system is regarded as a dynamic process, which can be modeled based on the user's global satisfaction (GS). In the model, users are divided into three sets: new user set, success set and failure set. New users continuously accept the items to be rated provided by the selection pool of items to be rated and score them until they meet specific conditions and are removed from the set. If the user's cold start problem is successfully solved through the active learning stage, they will be added to the success set, otherwise they will be added to the failure set.
[0035] User global satisfaction includes recommendation relevance R and user tolerance E. When recommendation relevance and user tolerance are independent of each other, for example, in paper recommendation, the time required for users to obtain information does not affect the relevance of the recommended paper, but affects the overall satisfaction. In this case, the model is:
[0036]
[0037] When recommendation relevance and user tolerance interact with each other, for example, in social network recommendations, excessive user effort may cause the user to lose interest in making friends. This can be modeled as:
[0038]
[0039] Among them, θ1, θ2 and θ3 are weight factors, t is the number of recommendation rounds, u is the user identifier, and W is the user's preference for the rated items. Since the main purpose of the active learning stage is to explore user interests, W usually has a small impact on global satisfaction. Since user tolerance E is data with strong subjective factors, it is difficult for the system to obtain relevant information, but it is negatively correlated with t, so the goal of the active learning stage is set to meet the basic requirements of recommendation relevance, that is, When the value is greater than the threshold set by the system, minimize the user's tolerance That is, minimize the number of ratings that users need to provide.
[0040] This embodiment provides a product recommendation method based on active learning, which recommends products based on user interaction data generated by new users of the recommendation system during the active learning phase, wherein it is determined whether the new user of the recommendation system needs to exit the active learning based on the quantitative recommendation relevance. The process of determining whether the new user of the recommendation system needs to exit the active learning is as follows: Figure 1 As shown, the following steps are included:
[0041] S1. Obtain the initial user interaction data of the recommendation system and calculate the initial score estimation result.
[0042] The initial score prediction result is calculated by the score prediction algorithm, which is based on the historical interaction data of users and items to predict the interaction scores that have not yet occurred. Specifically, the score prediction algorithm adopts the collaborative filtering method to achieve prediction in the following two ways:
[0043] 1. Predict the current user’s rating based on similar users’ rating data;
[0044] 2. Estimating ratings by decomposing the user-item rating matrix.
[0045] S2. Obtain the ratings of the recommended system's new users on the items to be rated, and calculate the current rating estimate.
[0046] This embodiment proposes a new indicator, which selects items to be scored in each round of active learning, namely, variance via prediction (VP). The specific calculation formula is as follows:
[0047]
[0048] Among them, U i is the set of users who have interacted with item i, For user u i ′ is the scoring result of item i, Estimated rating for item i for a specific user u in round t.
[0049] This indicator combines entropy, MaxRating, and MinRating, which are common active learning methods used in recommendation systems. It can select items that are more suitable for the active learning stage from different methods and provide them to users. Specifically, when When it is larger or smaller, it corresponds to the maximum score and minimum score indicators. When it is more discrete, it corresponds to entropy. The above situations can lead to larger estimated variance results, and select items to be scored that meet different indicators.
[0050] Independent of the selection method of the items to be rated, it can be combined with a large number of active learning methods and applied to the user cold start problem. In addition, it can also be combined with some step-by-step methods that can use non-active learning, such as the cold start solution based on the multi-armed bandit.
[0051] S3. Based on the difference between the current score estimation result and the initial score estimation result, the quantitative recommendation correlation is calculated, and based on the quantitative recommendation correlation, it is determined whether the new user of the recommendation system needs to exit active learning. If not, return to step S2; if yes, exit active learning.
[0052] The present invention uses the score estimation accuracy to quantify the recommendation relevance, that is, the higher the system's score accuracy for the user, the same relationship is obtained in the recommendation relevance. More specifically, the root mean square error (RMSE) can be used to measure the score estimation accuracy. However, for cold start users, the system does not have a large amount of user interaction data, and accordingly, it is difficult to calculate the RMSE. Therefore, the data features in the common data sets of the recommendation system are first analyzed.
[0053] For different rating estimation methods, users usually have more accurate rating estimation results when they have more data. However, the specific performance of different users is slightly different. In order to design a mechanism for determining the number of active learning rounds that can be personalized for users, the present invention takes into account that the purpose of the active learning stage is to hope that the system can achieve a rating estimation accuracy similar to that when it has sufficient data after having a certain amount of user data. Therefore, the difference between the rating estimation when users have different amounts of data and the rating estimation when they have more user data, as well as the difference between the rating estimation when they have less data, and the relationship between the two differences are further studied. It was found that the two differences showed completely opposite trends. Therefore, the present invention uses one difference instead of the other. The final idea is to use the user data currently owned by the system for rating estimation, and the difference between the rating estimation calculation when the system has the initial small amount of user data. The result of the difference is used as an indicator to quantify the recommendation relevance, which is used to determine whether the user should currently need to exit the active learning stage. The specific formula for quantifying the recommendation relevance is:
[0054]
[0055] Among them, R is the quantitative recommendation relevance, I is the set of items to be rated, is the initial scoring estimate result, is the current rating estimate, t is the number of recommendation rounds, and u is the user identifier.
[0056] The specific process of judging whether new users of the recommendation system need to exit active learning based on the quantitative recommendation relevance is as follows:
[0057] S301, performing curve fitting based on the quantitative recommendation correlation, and obtaining an upper bound a of the curve by fitting the difference curve through an exponential function;
[0058] S302: Determine whether the following conditions are met: Among them, k is the preference information threshold;
[0059] In addition, it is necessary to determine whether: If yes, then exit active learning, where g is the preference information gain threshold, and the calculation formula of preference information gain V is as follows:
[0060]
[0061]
[0062] Here, z is the size of the sliding window. This requirement is to ensure that the benefit of continuing active learning for the system to collect user preference information is small by calculating the change in the recommendation relevance within the sliding window.
[0063] The pseudo code of the algorithm is as follows:
[0064]
[0065] To prove the effectiveness of the above method, this example sets L min =2, k = 0.9, g = 0.05, L max =10, and the experimental results are shown in Table 1. Before t = 7, user u1 does not meet the conditions for exiting the active learning stage. After t = 7, that is, when the user receives 7 items to be rated provided by active learning and gives a rating, the system determines that sufficient user preference information has been collected, and the user can exit the active learning stage. Accordingly, based on the recommendation algorithm and active learning strategy set by the system and the characteristics of the user, the active learning length should be 7.
[0066] Table 1 Experimental results of the embodiments
[0067]
[0068] Compared with the traditional fixed-length active learning method, the above method can be applied to the user cold start problem to achieve dynamic adaptation to determine the timing of the user's exit from the active learning phase, thereby avoiding the situation where the user abandons the system due to the lengthy active learning phase. This process does not require the user's prior information and adopts a step-by-step approach, which is conducive to the deployment of the recommendation system running online. At the same time, the above method can also ensure that the system has collected sufficient user preference information when generating recommendation results, thereby improving the accuracy of the recommendation results.
[0069] If the above method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0070] The above description of the embodiments is to facilitate the understanding and use of the invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to these embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments, and improvements and modifications made by those skilled in the art based on the disclosure of the present invention without departing from the scope of the present invention should be within the scope of protection of the present invention.
Claims
1. A commodity recommendation method based on active learning, characterized in that: The following steps are involved: Obtain the user interaction data generated by new users of the recommendation system during the active learning phase, and make product recommendations based on it; Among them, whether a new user of the recommendation system needs to exit active learning is judged based on the quantitative recommendation relevance, and the quantitative recommendation relevance is calculated based on the difference between the current score estimation result and the initial score estimation result, and the initial score estimation result is calculated based on the initial user interaction data of the recommendation system, and the current score estimation result is calculated based on the score of the new user of the recommendation system for the rated item.
2. The product recommendation method based on active learning according to claim 1, characterized in that: The items to be scored are selected based on the estimated variance as an indicator, and the estimated variance includes entropy, maximum score and minimum score indicators.
3. The product recommendation method based on active learning according to claim 2, characterized in that: The calculation formula of the estimated variance is as follows: Among them, VP is the estimated variance, U i is the set of users who have interacted with item i, For user u′ i The scoring result of item i corresponds to entropy, It is the estimated score of item i by a specific user u in round t, corresponding to the maximum score and minimum score indicators.
4. The product recommendation method based on active learning according to claim 1, characterized in that: The calculation formula of the quantitative recommendation relevance is as follows: Among them, R is the quantitative recommendation relevance, I is the set of items to be rated, is the initial scoring estimate result, is the current rating estimate, t is the number of recommendation rounds, and u is the user identifier.
5. The product recommendation method based on active learning according to claim 1, characterized in that: The specific process of judging whether a new user of the recommendation system needs to exit active learning based on the quantitative recommendation relevance is as follows: S301, performing curve fitting based on the quantitative recommendation correlation to obtain an upper bound a of the curve; S302: Determine whether the following conditions are met: If so, active learning needs to be exited, where R is the quantitative recommendation relevance, t is the number of recommendation rounds, u is the user identifier, and k is the preference information threshold.
6. The product recommendation method based on active learning according to claim 5, characterized in that: In step S301, curve fitting is performed using an exponential function.
7. The product recommendation method based on active learning according to claim 5, characterized in that: In step S302, it is also necessary to consider whether the following conditions are met: If so, you need to exit active learning, where V is the preference information gain and g is the preference information gain threshold.
8. The product recommendation method based on active learning according to claim 7, characterized in that: The calculation formula of the preference information gain V is as follows: Among them, z is the sliding window size.
9. The product recommendation method based on active learning according to claim 1, characterized in that: The initial score prediction result and the current score prediction result are calculated by a score prediction algorithm.
10. A computer-readable storage 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 9 is implemented.
Citation Information
Cited By
Recommendation method based on enterprise service bus
CN118964697A
