Recommendation model updating method, recommendation model training method and computing device

By determining the training group to which the data deletion request belongs in the recommendation system, updating the group and training the model again, the problem of low update efficiency of the recommendation model in the existing technology is solved, and efficient data deletion and model update are achieved.

CN115098771BActive Publication Date: 2024-10-25ALIBABA (CHINA) CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202210648557.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-09
Publication Date
2024-10-25
Estimated Expiration
2042-06-09

AI Technical Summary

Technical Problem

When existing recommendation systems process data deletion requests, they need to retrain the model, resulting in huge computational overhead and the lack of efficient recommendation model update solutions.

Method used

By obtaining the data deletion request, determine the training group to which the specific data belongs, delete the specific data and update the group, train the recommendation model again, and use the updated model and other models to make user recommendations.

Benefits of technology

It improves the efficiency of recommended model updates, reduces computational overhead, and ensures the efficiency of data deletion and model updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098771B_ABST
    Figure CN115098771B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a recommendation model updating method, a recommendation model training method and a computing device, wherein the recommendation model updating method includes: obtaining a data deletion request; obtaining multiple recommendation models obtained by training based on multiple training groups; determining a first training group including specific data from multiple training groups according to a data flag; deleting specific data from the first training group to obtain an updated group, and retraining the first recommendation model using the updated group; and recommending objects to users using the retrained first recommendation model and the second recommendation model. When a data deletion request is obtained, only the specific data needs to be deleted from the first training group, and then the corresponding first recommendation model is retrained using the updated group. Objects are recommended to users based on the retrained first recommendation model and other recommendation models, thereby improving the efficiency of updating the recommendation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of artificial intelligence technology, and in particular to a recommendation model updating method and a recommendation model training method. Background Art

[0002] With the rapid development of Internet technology, the whole society has been pushed into the era of "big data". Whether people like it or not, our personal data is being collected and used inadvertently. The networking and transparency of personal data has become an unstoppable trend. Enterprises can obtain a lot of valuable information from it through data mining and machine learning. The recommendation system, in Internet services, relies on learning a large amount of user data and accurately modeling user interests and hobbies to provide personalized services. However, with the recent advancement of some data privacy protection bills, users are given the "right to be deleted", requiring the system to be able to eliminate the data that the data owner requests to be deleted and its impact. In some scenarios, the recommendation system also needs to be able to delete certain sensitive data and the parameters learned from these data.

[0003] Generally speaking, in order to eliminate a part of the data, the most direct method is to retrain the recommendation model using the training set after removing the data to be deleted. However, under large-scale display data, retraining the model requires huge computational overhead. Therefore, an efficient solution for updating the recommendation model is urgently needed. Summary of the invention

[0004] In view of this, the embodiments of this specification provide a recommendation model updating method and a recommendation model training method. One or more embodiments of this specification also relate to a recommendation model updating device, a recommendation model training device, a computing device and a computer-readable storage medium to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a recommendation model updating method is provided, including:

[0006] Obtaining a data deletion request, wherein the data deletion request carries a data flag of specific data;

[0007] Acquire multiple recommendation models, wherein the multiple recommendation models are obtained by training based on multiple training groups, each of the multiple training groups includes a user behavior data set obtained by clustering feature information based on the user behavior data;

[0008] Determine, according to the data flag, a first training group including specific data from a plurality of training groups, wherein the first training group is used to train a first recommendation model among the plurality of recommendation models;

[0009] Deleting specific data from the first training group to obtain an updated group, and using the updated group to train the first recommendation model again;

[0010] The retrained first recommendation model and the second recommendation model are used to recommend objects to users, wherein the second recommendation model is a recommendation model other than the first recommendation model among the multiple recommendation models.

[0011] According to a second aspect of an embodiment of this specification, a recommendation model training method is provided, including:

[0012] Obtaining a training data set, wherein the training data set includes a plurality of user behavior data;

[0013] According to the characteristic information of the plurality of user behavior data, clustering is performed to obtain a plurality of user behavior data sets;

[0014] According to multiple user behavior data sets, the training data set is grouped to obtain multiple training groups;

[0015] For any training group, the corresponding recommendation model is obtained by training the training group.

[0016] According to a third aspect of an embodiment of this specification, a recommendation model updating device is provided, including:

[0017] A first acquisition module is configured to acquire a data deletion request, wherein the data deletion request carries a data mark of specific data;

[0018] A second acquisition module is configured to acquire a plurality of recommendation models, wherein the plurality of recommendation models are obtained by respectively training based on a plurality of training groups, each of the plurality of training groups comprising a user behavior data set obtained by clustering feature information based on the user behavior data;

[0019] A determination module is configured to determine, according to the data flag, a first training group including specific data from a plurality of training groups, wherein the first training group is used to train a first recommendation model among the plurality of recommendation models;

[0020] A data deletion module is configured to delete specific data from the first training group to obtain an updated group, and use the updated group to train the first recommendation model again;

[0021] The recommendation module is configured to use the retrained first recommendation model and the second recommendation model to recommend objects to users, wherein the second recommendation model is a recommendation model other than the first recommendation model among the multiple recommendation models.

[0022] According to a fourth aspect of the embodiments of this specification, a recommendation model training device is provided, including:

[0023] A third acquisition module is configured to acquire a training data set, wherein the training data set includes a plurality of user behavior data;

[0024] A clustering module is configured to cluster multiple user behavior data sets according to feature information of multiple user behavior data;

[0025] A grouping module is configured to group the training data set according to the plurality of user behavior data sets to obtain a plurality of training groups;

[0026] The training module is configured to train any training group to obtain a corresponding recommendation model using the training group.

[0027] According to a fifth aspect of an embodiment of this specification, a computing device is provided, including:

[0028] Memory and processor;

[0029] The memory is used to store computer-executable instructions, and the processor is used to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the above-mentioned recommendation model updating method or recommendation model training method is implemented.

[0030] According to the sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the above-mentioned recommendation model updating method or recommendation model training method is implemented.

[0031] An embodiment of the present specification obtains a data deletion request; obtains multiple recommendation models, wherein the multiple recommendation models are obtained by training based on multiple training groups; determines a first training group including specific data from multiple training groups according to a data flag; deletes specific data from the first training group to obtain an updated group, and retrains the first recommendation model using the updated group; and recommends objects to users using the retrained first recommendation model and the second recommendation model. When a data deletion request is obtained, only the specific data needs to be deleted from the first training group, and then the corresponding first recommendation model is retrained using the updated group, and objects are recommended to users based on the retrained first recommendation model and other recommendation models, thereby improving the efficiency of updating the recommendation model. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1a is a system interaction flow chart of an application recommendation model updating method provided by an embodiment of this specification;

[0033] Figure 1b It is a front-end display schematic diagram of a recommendation model updating method provided by an embodiment of this specification;

[0034] Figure 2 is a flow chart of a recommendation model updating method provided by an embodiment of this specification;

[0035] Figure 3 It is a schematic diagram of a framework of a recommendation model updating method provided by an embodiment of this specification;

[0036] Figure 4 is a flow chart of a recommendation model training method provided by an embodiment of this specification;

[0037] Figure 5 is a structural diagram of a recommendation model updating device provided by an embodiment of this specification;

[0038] Figure 6 It is a structural schematic diagram of a recommendation model training device provided by an embodiment of this specification;

[0039] Figure 7 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0040] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0041] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0042] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0043] First, the terms involved in one or more embodiments of this specification are explained.

[0044] Recommender System: It is an information filtering system that predicts the user's ratings and preferences for items.

[0045] Machine Unlearning: Removing all traces of a specific person or data point from a machine learning system without affecting performance.

[0046] Terminal: An input and output device connected to a computer system, usually located far away from the computer.

[0047] With the rapid development of Internet technology, the whole society has been pushed into the "big data" era. Whether people like it or not, our personal data is being collected and used inadvertently. The networking and transparency of personal data has become an unstoppable trend. Enterprises can obtain a lot of valuable information from it through data mining and machine learning. The recommendation system, in Internet services, relies on learning a large amount of user data and accurately modeling users' interests and hobbies to provide personalized services. However, with the recent advancement of some data privacy protection bills, users are given the "right to be deleted", requiring the system to be able to eliminate data that the data owner requests to be deleted and its impact. In some scenarios, the recommendation system also needs to be able to delete certain sensitive data and the parameters learned from these data. Therefore, a method for updating the recommendation model is very necessary for users.

[0048] In order to solve the above problems, this specification provides a recommendation model updating method and a recommendation model training method. This specification also relates to a recommendation model updating device, a recommendation device, a computing device, and a computer-readable storage medium.

[0049] See also Figure 1a , Figure 1b , Figure 1a A system interaction flow chart of a method for updating an application recommendation model provided by an embodiment of this specification is shown. Figure 1b FIG. 1 is a front-end display diagram of a method for updating a recommendation model provided by an embodiment of the present specification. Figure 1a , Figure 1b As shown, the system includes a client and a cloud server.

[0050] like Figure 1a, the user initiates a "data deletion request" to the cloud server through the client. After receiving the data deletion request, the cloud server determines the training group to which it belongs based on the data deletion request, and then processes the training group according to the data deletion request. Based on the updated group obtained after processing, it trains again to obtain the corresponding recommendation model, and finally recommends objects to users based on the retrained recommendation model and other models. The cloud server then uses the updated recommendation model to send recommendation information to the client, that is, after receiving the data deletion request, the cloud server performs data deletion, model update, and information recommendation operations.

[0051] like Figure 1b It shows a way for a user to initiate a "data deletion request". A pop-up window "Do you want to allow reading of information" appears in the client application. If the user clicks "No", a "data deletion request" will be generated. If the user clicks "Yes", no "data deletion request" will be generated.

[0052] The client is configured to send a data deletion request to the cloud server, wherein the data deletion request carries a data mark of specific data;

[0053] The cloud server is configured to determine, according to the data flag carried in the data deletion request, a training group to which the specific data belongs, wherein the training group is obtained by dividing the training data set, and the training data set includes multiple user behavior data; delete the specific data from the training group to which it belongs to obtain an update group, and use the update group to retrain the first recommendation model; recommend objects to the user based on the retrained first recommendation model and the second recommendation model, wherein the second recommendation model is a recommendation model other than the first recommendation model among the multiple recommendation models;

[0054] In actual applications, the cloud server is further configured to send recommendation information corresponding to the data deletion request to the client.

[0055] By obtaining a data deletion request; obtaining multiple recommendation models obtained by training based on multiple training groups; determining a first training group including specific data from multiple training groups according to data flags; deleting specific data from the first training group to obtain an updated group, and retraining the first recommendation model using the updated group; and recommending objects to users using the retrained first recommendation model and the second recommendation model. When a data deletion request is obtained, only the specific data needs to be deleted from the first training group, and then the corresponding first recommendation model is retrained using the updated group, and objects are recommended to users based on the retrained first recommendation model and other recommendation models, thereby improving the efficiency of updating the recommendation model.

[0056] See also Figure 2 , Figure 2 A flowchart of a recommendation model updating method provided by an embodiment of this specification is shown, which specifically includes the following steps.

[0057] Step 202: extracting user behavior data corresponding to each user from the user behavior log according to the user identifier, wherein the user behavior log records the correspondence between the user identifier and the user behavior data; and constructing a training data set based on the user behavior data.

[0058] In the information recommendation scenario, a recommendation model is used to recommend behavior object information to users. When training the recommendation model, it is first necessary to obtain a training data set, wherein the training data set includes multiple user behavior data.

[0059] Specifically, a training data set refers to a collection of training data related to multiple users, such as a collection of users' basic information, browsing history, search history, etc. Acquiring a training data set means that the recommendation system in a computer predicts user preferences in order to better filter information, thereby acquiring a collection of training data including multiple user behavior data.

[0060] The scheme of the embodiment of this specification is applied, by obtaining a training data set, which includes multiple user behavior data, and then using the obtained training data set to perform training grouping and training the recommendation model, so that the obtained recommendation model has higher accuracy and better effect.

[0061] Specifically, user identification refers to an identification that characterizes a user, such as user ID, user ID card ID, user name, user phone number, etc. User behavior log refers to a series of behavior information generated by a user in the process of using a computer and stored in a log, such as a database in a shopping application, a browsing history in a browser application, etc. User behavior data refers to an observation report of the user's behavior when browsing an electronic device and the environment when the behavior occurs, such as data generated by user 1 searching, data generated by user 2 editing content, etc. The specific selection is based on the actual situation, and the embodiments of this specification do not make any restrictions on this.

[0062] Extracting the user behavior data corresponding to each user from the user behavior log according to the user ID means that the computer extracts the user behavior data corresponding to each user according to the user ID obtained by each user. Further, the method of extracting from the user behavior log is, for example, the computer directly extracts the search records, shopping records, etc. corresponding to the user ID from the shopping application according to the user ID. Constructing a training data set based on user behavior data means constructing a training data set based on all the extracted user behavior data for subsequent training of the recommendation model.

[0063] Exemplarily, based on the ID of user 1, the ID card ID of user 2, the name of user 3, and the phone number of user 4, the record information corresponding to each user ID is extracted from the search records and shopping record logs in the shopping application, and a training data set is constructed based on it.

[0064] Clustering refers to the process of dividing multiple user behavior data into multiple user behavior data sets composed of objects with similar characteristic information based on their characteristic information. For example, the above-mentioned user 1 is classified into one category with browsing news 1 and user 2 is classified into one category with browsing news 2, or the above-mentioned user 3 is classified into one category with searching for clothes in time period 1 and user 4 is classified into one category with searching for computers in time period.

[0065] By applying the scheme of the embodiments of this specification, user behavior data corresponding to each user is extracted from the user behavior log according to the user identifier, wherein the user behavior log records the correspondence between the user identifier and the feature information, and a training data set is constructed based on the extracted user behavior data, so that the extracted user behavior data is directly extracted from the user behavior log. The extracted user behavior data will obviously be more comprehensive, and the accuracy of the recommendation model subsequently trained based on the user behavior data will also be higher.

[0066] Step 204: Calculate the distance between each user behavior data according to the feature information of the plurality of user behavior data, wherein the feature information includes a user vector representation and a behavior object vector representation.

[0067] In the recommendation model application scenario, after obtaining the training data set, it is necessary to cluster the multiple user behavior data sets according to the feature information of the multiple user behavior data.

[0068] A training data set is obtained, the training data set is clustered, and a recommendation model is trained to predict user preferences, thereby obtaining a set of training data related to multiple users.

[0069] Specifically, feature information refers to the information generated between the user and the behavior object, which characterizes the characteristics between the user and the behavior object, such as user 1's browsing history, payment history, search history, etc. for product A, user 2's search history, browsing history, etc. for web page B, user 3's editing history, search history, browsing history, etc. for article C, etc.

[0070] Calculating the distance between each user behavior data according to feature information of multiple user behavior data means calculating the distance between the multiple user behavior data respectively using user vector representations and behavior object vector representations of the multiple user behavior data, and then using the respectively calculated user vector distances and behavior object vector distances to obtain the distance between the multiple user behavior data.

[0071] The above-mentioned multiple user behavior data are extracted from the user behavior log according to the user identifier, and then based on the characteristic information of the multiple user behavior data, the distance between each user behavior data is calculated. According to the calculated distance between each user behavior data, a central clustering algorithm is used to cluster the multiple user behavior data, so as to obtain multiple user behavior data sets with characteristic similarity.

[0072] A user behavior data set refers to a set with similar characteristic information obtained by clustering the training data set based on the characteristic information of multiple user behavior data. For example, user 1 and mobile phone 1, user 2 and mobile phone 1 can be regarded as behavior data in the same user behavior data set; or user 1 and computer 1, user 2 and computer 2 browsing or purchasing within a certain period of time can be regarded as behavior data in the same user behavior data set, and so on.

[0073] Specifically, calculating the distance between each user behavior data according to the characteristic information of the plurality of user behavior data comprises the following specific steps:

[0074] Calculate the user vector distance between the first user behavior data and the second user behavior data according to the user vector representation of the first user behavior data and the user vector representation of the second user behavior data,

[0075] Wherein, the first user behavior data and the second user behavior data are any two different user behavior data;

[0076] Calculating a behavior object vector distance between the first user behavior data and the second user behavior data according to the behavior object vector representation of the first user behavior data and the behavior object vector representation of the second user behavior data;

[0077] The distance between the first user behavior data and the second user behavior data is determined according to the user vector distance and the behavior object vector distance.

[0078] Specifically, vector representation means that in the programming process of machine learning and deep learning, in order to increase the running speed of the program, the model expression is usually converted into a vector expression (vectorization), that is, the matrix operation idea is used to improve the running efficiency.

[0079] Exemplarily, the user vector distances of the behavior data of user 1 and user 2, and user 2 and user 3 are calculated based on the user vector representations of the behavior data of user 1 and user 2, and user 2 and user 3; the behavior object vector distances of the behavior data of user 1 and user 2, and user 2 and user 3 are calculated based on the behavior object vector representations of the behavior data of user 1 and user 2, and user 2 and user 3; finally, the distances between the behavior data of user 1 and user 2, and user 2 and user 3 are determined based on the calculated user vector distances and behavior object vector distances.

[0080] By applying the scheme of the embodiments of this specification, the user vector representation and the behavior object vector representation are included in the feature information corresponding to the first user behavior data and the second user behavior data respectively, and then the user vector representation and the behavior object vector representation of the first user behavior data and the second user behavior data are determined, and the user vector distance and the behavior object vector distance between the first user behavior data and the second user behavior data are calculated respectively to determine the distance between the first user behavior data and the second user behavior data. Clustering is performed in such a multi-faceted manner, so that the clustering results are more accurate and stable.

[0081] Step 206: Determine the centers of multiple user behavior data sets; calculate the distances between the current user behavior data and the centers of each user behavior data set.

[0082] In an actual information recommendation scenario, when the recommendation model is trained, a training data set is obtained, and the distance between each user behavior data is calculated based on the characteristic information of the multiple user behavior data contained in the training data set. Then, based on the distance between the multiple user behavior data, a central clustering algorithm is used to cluster the multiple user behavior data to obtain multiple user behavior data sets.

[0083] Specifically, first calculate the average value of the characteristic information of multiple user behavior data in any user behavior data set, and determine the average value as the center of the user behavior data set, that is, the cluster center, and then calculate the distance between any current user behavior data and the center of each user behavior data set, and determine the user behavior data set to which the current user behavior data belongs based on each of the distances, and divide the current user behavior data into the user behavior data set to which it belongs.

[0084] Exemplarily, the centers corresponding to set 1, set 2, and set 3 are determined, and the distances between user behavior data 1 and set centers 1, 2, and 3 are calculated. According to the distances, set 2 is determined as the user behavior data set to which user behavior data 1 belongs, and the user behavior data is divided into set 2. Specifically, the user behavior data set with the closest distance can be determined as the user behavior data set to which it belongs.

[0085] It should be noted that there are many types of clustering algorithms. In one possible implementation, the center clustering algorithm first determines the number of clusters, and then calculates the average value of the characteristic information vector of the user behavior data in the current cluster, and determines the average value as the center of the cluster. Then, for any other unclustered user behavior data, the distance to each cluster center is calculated, and the cluster corresponding to the smallest distance is determined. If the number of user behavior data contained in the cluster does not reach the preset number, the user behavior data is divided into the cluster, and the cluster center is recalculated. In another possible implementation, the edge clustering algorithm first determines the number of clusters, and then determines the edge of each cluster. For any other unclustered user behavior data, the distance to each cluster edge is calculated, and the cluster corresponding to the smallest distance is determined. If the number of user behavior data contained in the cluster does not reach the preset number, the user behavior data is divided into the cluster, and the cluster edge is recalculated. Taking the center clustering algorithm as an example, the specific distance calculation formula is as follows (1).

[0086]

[0087] Above, a i is the vector of any class center; i is the behavior data of the i-th user; y uv is a vector of any user behavior data that has not been clustered; and for a i User vector and behavior object vector; and for y uv Pre-trained user vectors and behavior object vectors; and is the corresponding vector and The j-th dimension element in; and is the corresponding vector and The distance between any unclustered user behavior data and any cluster center can be obtained through formula (1).

[0088] By applying the solution of the embodiment of this specification, the center of multiple user behavior data sets is determined, and the distance between the center of each user behavior data set and the current user behavior data is calculated, and the user behavior data set to which the current user behavior data belongs is determined according to the distance. The user behavior data set to which the current user behavior data belongs is determined from multiple user behavior data sets by calculating the distance, so that the determined clustering result is more accurate and rigorous.

[0089] Step 208: Obtain the number of user behavior data in each user behavior data set; determine the user behavior data set whose distance and the number of user behavior data meet the preset classification conditions as the user behavior data set to which the current user behavior data belongs.

[0090] During the training process of the recommendation model, the training data set is first obtained and clustered to obtain multiple user behavior data sets. Then, the centers of the multiple user behavior data sets are determined, and the distances between any user behavior data and each user behavior data set are calculated. Based on the distances, the user behavior data set to which the current user behavior data belongs is determined.

[0091] By applying the solution of the embodiment of this specification, the center of multiple user behavior data sets is determined, and the distance between the center of each user behavior data set and the current user behavior data is calculated, and the user behavior data set to which the current user behavior data belongs is determined according to the distance. The user behavior data set to which the current user behavior data belongs is determined from multiple user behavior data sets by calculating the distance, so that the determined clustering result is more accurate and rigorous.

[0092] Specifically, the preset classification conditions refer to pre-set conditions that can cluster the current user behavior data into the user behavior data set to which it belongs. For example, it can be constrained by the distance between the user behavior data and the center of the user behavior data set and the number of user behavior data in the user behavior data set to which it belongs.

[0093] Furthermore, the process of determining the user behavior data set to which a user belongs may specifically be: sorting the distances between the current user behavior data and the centers of multiple user behavior data sets from near to far, determining the user behavior data set to which the center with the closest distance belongs, and judging whether the number of user behavior data included in the user behavior data set reaches a preset number; if not, determining that the user behavior data set is the user behavior data set to which it belongs; if so, judging whether the number of user behavior data included in the next user behavior data set reaches a preset number according to the sorting, and so on, to find the user behavior data set to which the current user behavior data belongs.

[0094] Specifically, the preset number refers to the number of user behavior data in a preset user behavior data set. For example, the preset number is 10. Therefore, when the number of user behavior data in the user behavior data set does not reach 10, it can be determined that the number of user behavior data in the user behavior data set does not reach the preset number.

[0095] Exemplarily, the centers of user behavior data sets 1, 2, and 3 are obtained, and the distances between user behavior data 1 and the centers of sets 1, 2, and 3 are calculated respectively. The calculated distances are sorted from near to far, with the distance between user behavior data 1 and the center of set 1 ranking first, the distance between user behavior data 1 and the center of set 3 ranking second, and the distance between user behavior data 1 and the center of set 2 ranking third, wherein the distance to set 1 is determined to be the closest. Further, it is determined whether the number of user behavior data contained in set 1 reaches a preset number. If so, it is determined whether the number of user behavior data contained in set 3, which ranks second in distance, reaches a preset number. If not, it is determined that set 3 is the user behavior data set to which it belongs, and the user behavior data 1 is divided into set 3.

[0096] By applying the solution of the embodiment of this specification, by using the distance and the amount of user behavior data as the conditions for judging whether the preset classification is met, the user behavior data set to which the current user behavior data belongs is determined to be more accurate, further improving the accuracy of classification.

[0097] Step 210: Group the training data set according to the multiple user behavior data sets to obtain multiple training groups.

[0098] Specifically, by determining the distance and the number of user behavior data in the training data set, the multiple users in the training data set are divided into multiple user behavior data sets, and the multiple user behavior data divided in each set are grouped accordingly to obtain multiple training groups.

[0099] By applying the solution of the embodiment of this specification, multiple user behavior data are first divided into sets, and then the training data set is divided into training groups according to the sets, so that the divided training groups are more rigorous, and further, the trained model is more accurate.

[0100] Step 212: Obtain an initial recommendation model; for any training group, use the training group to train the initial recommendation model to obtain a corresponding recommendation model.

[0101] When training the recommendation model, the training data set is first obtained, and then clustered to obtain the U-Shield Acura user behavior data set. The training data set is grouped according to multiple user behavior data sets to obtain multiple training groups, and then for any training group, the training group is used to train the corresponding recommendation model.

[0102] The user behavior data corresponding to each user extracted from the user behavior log is divided into training groups, and training is performed based on each training group to obtain multiple recommendation models, and then behavior objects are recommended based on the multiple recommendation models.

[0103] Specifically, the initial recommendation model refers to any randomly initialized initial recommendation model. Wherein, any randomly initialized initial recommendation model is obtained, and for any divided training group, any initial recommendation model is trained by any divided training group, so as to obtain a recommendation model corresponding to the any training group.

[0104] The initial recommendation model is obtained based on recommending information that meets the user's likes and preferences to the user, so that the initial recommendation model without any parameters is trained according to the user behavior data. Among them, the initial recommendation model is trained using the training group using the traditional neural network model training method to obtain the recommendation model corresponding to the training group.

[0105] Exemplarily, an initial recommendation model is obtained, and for training group 1, the initial recommendation model is trained using the training group 1 to obtain a recommendation model corresponding to the training group 1, wherein the training group 1 can be any training group.

[0106] Apply the solution of the embodiment of this specification to obtain an initial recommendation model; for any training group, use the training group to train the initial recommendation model to obtain the recommendation model corresponding to the training group, so that the recommendation models trained using each training group only have differences in parameters, which is conducive to subsequent model updates.

[0107] It should be noted that by pre-dividing the acquired training data set to obtain multiple training groups, a recommendation model for any training group is obtained by training the training group, and a data deletion request is further obtained, thereby realizing the data mark of specific data carried when processing the data deletion request, which improves the efficiency of subsequent targeted data deletion.

[0108] Step 214: Obtain a data deletion request, wherein the data deletion request carries a data mark of specific data.

[0109] The data deletion request is generated based on the user's need to delete data, and the data deletion request carries a data mark of specific data. Among them, specific data refers to user behavior data that the user requires the Internet information manager or user to delete or prohibit the use of, such as the user's basic information, browsing history, shopping history, etc. The data mark is the attribute feature of the data, the data itself, such as the data label, the data name, the data itself, etc., which is selected according to the actual situation, and the embodiments of this specification do not make any restrictions on this.

[0110] It should be noted that there are many ways to obtain a data deletion request. In one possible implementation, the user initiates a data deletion request at a terminal. The terminal refers to an input and output device connected to a computer, which is usually far away from the computer. In another possible implementation, the user may agree with the computer at the beginning of use to set a certain part of the user behavior data as a data marker for specific data. In another possible implementation, the user stores the data at a certain location on the client, and the computer obtains the data deletion request by itself. The specific selection is based on the actual situation, and the embodiments of this specification do not impose any restrictions on this.

[0111] By applying the scheme of the embodiments of the present specification, a data deletion request from a user is obtained, wherein the data deletion request carries a data flag of specific data that the user wants to delete. Subsequently, the required training group can be determined from multiple training groups based on the data flag and the specific data can be deleted. The training group based on which the specific data has been deleted can be trained again to obtain a retrained recommendation model, thereby improving the efficiency of data deletion.

[0112] Step 216: Acquire multiple recommendation models, wherein the multiple recommendation models are obtained by training separately based on multiple training groups, and each of the multiple training groups includes a user behavior data set obtained by clustering feature information based on the user behavior data.

[0113] Specifically, the training group includes a user behavior data set obtained by clustering the user behavior data based on feature information of the user behavior data.

[0114] The multiple user behavior data are clustered according to their feature information to obtain multiple user behavior data sets, multiple training groups are obtained based on the multiple user behavior data sets, and then multiple recommendation models are obtained by performing training based on the multiple training groups respectively.

[0115] Exemplarily, clustering is performed based on the browsing history of user 1, the search history of user 2, the shopping history of user 3, and the search history of user 4, and the browsing history of user 1 and the search history of user 4 are obtained as user behavior record set 1, and the search history of user 2 and the shopping history of user 3 are obtained as user behavior data set 2. Based on set 1 and set 2, training group 1 and training group 2 are obtained, and training is performed based on training group 1 and training group 2 respectively to obtain two corresponding recommendation models.

[0116] It should be noted that there are characteristic similarities between the multiple user behavior data in the user behavior data set.

[0117] The scheme of the embodiments of the present specification is applied, by obtaining multiple recommendation models, wherein the multiple recommendation models are obtained by separately training multiple training groups, each of the multiple training groups includes a set of user behavior data obtained by clustering based on characteristic information of the user behavior data, so that the multiple recommendation models are all trained by training groups obtained by clustering each user behavior data according to the characteristic information of the user behavior data, and the trained recommendation models are more effective and the results are more accurate.

[0118] Step 218: Determine, according to the data flag, a first training group including the specific data from the multiple training groups, wherein the first training group is used to train a first recommendation model among the multiple recommendation models.

[0119] Specifically, the data flag refers to the data flag of specific data, and the specific data is carried in the data deletion request initiated by the user, and is the specific data that the user wants to delete. A first training group including the specific data is determined from the multiple training groups, that is, the training group to which the data flag belongs is searched from the multiple training groups, so that the training group to which the specific data belongs is determined to be the first training group, and the first training group is trained to obtain the first recommendation model.

[0120] It should be noted that the data mark can be directly carried in the data deletion request directly uploaded by the user, or it can be a data mark directly extracted from the data by the system.

[0121] By applying the solution of the embodiments of the present specification, the training group to which the specific data belongs is determined from multiple training groups according to the data flag of the specific data, so that the specific data can be directly deleted from the training group to which it belongs and re-trained, so that the training can be re-trained for only one training group, which greatly simplifies the tedious steps and huge costs of training and improves the efficiency of updating the recommendation model.

[0122] Step 220: Delete the specific data from the first training group to obtain an updated group, and use the updated group to train the first recommendation model again.

[0123] Specifically, deleting the specific data from the first training group refers to deleting the specific data from a set containing a plurality of user behavior data, thereby obtaining an updated training group that does not contain the specific data.

[0124] Deleting specific data from the first training group refers to deleting the specific data from the training group for training the recommendation model, so that when the recommendation model is subsequently trained, the training data and the trained model no longer contain the specific data, but the specific data is still stored in the computer.

[0125] It should be noted that specific data refers to user-related data that users require Internet information managers or users to delete or prohibit using, such as user basic information, browsing history, search history, etc. Data markers are attribute features that characterize data, the data itself, such as data labels, data names, data itself, etc., and are selected according to actual conditions, and the embodiments of this specification do not impose any restrictions on this.

[0126] By applying the solution of the embodiments of the present specification, by deleting specific data from the training group to which the specific data belongs, an updated group is obtained, and the first recommendation model is trained again using the updated group, so that the recommendation model obtained by the retraining only deletes the specific data, and the remaining data are all there, so that the accuracy of the recommendation model obtained by the retraining is still very high, and the subsequent recommendation results will not change significantly. At the same time, the specific data that wants to be deleted belongs to a user behavior data set, and the process of deleting and retraining based on a specific data greatly improves the efficiency of updating the recommendation model.

[0127] Step 222: Use the retrained first recommendation model and the second recommendation model to recommend objects to the user.

[0128] Specifically, the first recommendation model corresponds to the first training group; the second recommendation model corresponds to the training group other than the first training group. The training groups are all obtained based on the training data set, so the first recommendation model and the second recommendation model obtained by retraining can be used to recommend objects to users. The first recommendation model is obtained by retraining based on the training group with specific data deleted, and targeted recommendations are made to users based on the first recommendation model and the second recommendation model obtained by training except the first training group.

[0129] The specific steps include:

[0130] Get user information for a specific user;

[0131] Inputting the user information into the retrained first recommendation model and the second recommendation model respectively to obtain predicted user behavior data output by each recommendation model, wherein the second recommendation model is a recommendation model among the multiple recommendation models except the first recommendation model;

[0132] The predicted user behavior data includes a user vector representation of the specific user and a behavior object vector representation of each predicted behavior object;

[0133] Using the attention mechanism, attention calculation is performed on the user vector representation of the specific user and the behavior object vector representation of each predicted behavior object output by each recommendation model to obtain the association weight between the specific user and each predicted behavior object;

[0134] According to the association weight, a specific behavior object recommended to the specific user is determined.

[0135] Specifically, a specific user refers to a user for whom an object recommendation is required. User information refers to information that can characterize a user, such as the user's identity, the user's account information, the user's behavior data, and the like. The first recommendation model corresponds to the first training group; the second recommendation model corresponds to the training group other than the first training group. The first recommendation model is obtained by retraining the training group with specific data deleted, and targeted recommendations are made to the user based on the first recommendation model and the second recommendation model obtained by training the training group other than the first training group.

[0136] Exemplarily, a first recommendation model obtained by re-training training group 1 after deleting the information about user 1 and the computer purchase, and a second recommendation model obtained by pre-training other training groups except training group 1 obtained by dividing the training data set, are used to make object recommendations for user 1 based on the first recommendation model and the second recommendation model.

[0137] By applying the solution of the embodiments of the present specification, a first recommendation model obtained by re-training the first training group with specific data deleted and a second recommendation model obtained by pre-training based on other training groups except the first training group are used, and objects are recommended to users based on the first recommendation model and the second recommendation model. This greatly improves the efficiency of processing data deletion requests, improves the efficiency of updating the recommendation model, and the accuracy of object recommendations to users remains very high.

[0138] Obtain user information of the user to be recommended, input the user information into the deleted specific data, and retrain the first recommendation model and the original second recommendation model to obtain the predicted user behavior data output by each recommendation model, and integrate the predicted user behavior data to obtain the specific behavior object of the specific user to be recommended.

[0139] The solution of the embodiment of the present specification is applied, by obtaining user information of a specific user, and inputting the user information into the first recommendation model and the second recommendation model after retraining, obtaining the predicted user behavior data output by each recommendation model, and integrating the data to obtain the specific behavior object of the specific user, so that the specific behavior object of the specific user is obtained by inputting the user information of the specific user into the first recommendation model and the second recommendation model after retraining, and the obtained result has high accuracy, which further reflects the high efficiency of model updating and data deletion.

[0140] Specifically, vector representation refers to the process of programming machine learning and deep learning. In order to improve the running speed of the program, the model expression is usually converted into a vector expression (vectorization), that is, the matrix operation idea is used to improve the running efficiency. The association weight refers to the importance of a factor or indicator relative to a certain thing. It is different from the general proportion. It reflects not only the percentage of a factor or indicator, but emphasizes the relative importance of the factor or indicator, tends to contribute or importance, and represents the importance of the association. The specific behavior object refers to the user information associated with a specific user, which is determined according to the association weight.

[0141] It should be noted that the attention mechanism is used to perform attention calculation on the user vector representation of the specific user output by each recommendation model and the behavior object vector representation of each predicted behavior object to obtain the association weight between the specific user and each predicted behavior object. The specific calculation logic is expressed as the following formulas (2)-(5).

[0142]

[0143] Above, P i With Q i are user vector representation and behavior object vector representation respectively; W i is the transformation matrix, which is used to transform P i With Q i Mapped to the same space to get a new user vector representation and behavior object vector representation b i is the bias vector. Formula (2) can be used to obtain a new user vector representation and behavior object vector representation that maps the user vector representation and the behavior object vector representation to the same space.

[0144]

[0145]

[0146]

[0147] Above, α i and β i It is the user vector representation output by each recommendation model during the model aggregation process and behavior object vector representation The weights assigned, where matrix W1, vector b1, vector h1, vector are the parameters in the user self-attention calculation process, matrix W2, vector b2, vector h2, vector is the parameter in the process of calculating the attention of the behavior object; P and Q are the final user vector representation and behavior object vector representation after aggregation respectively; σ is the neural network activation function, and the common ReLU activation function is used here. The final user vector representation and behavior object vector representation after aggregation can be obtained through formulas (3)-(5), where formulas (3) and (4) are the parameters obtained during the calculation process.

[0148] By applying the solution of the embodiment of this specification, the attention mechanism is used to perform attention calculation on the user vector representation of the specific user and the behavior object vector representation of each predicted behavior object contained in the predicted user behavior data output by each recommendation model, and the association weight between the specific user and each predicted behavior object is obtained, and the specific behavior object recommended to the specific user is determined. This makes the final target recommendation object more in line with the expectations of the target user, and improves the efficiency of the user's subsequent use of the recommendation model.

[0149] It should be noted that the recommendation model updating method provided in this specification is applied to the recommendation model updating process in various scenarios, such as shopping scenarios and browsing scenarios. Of course, it can also be applied to other scenarios. This specification does not limit the application scenarios of the recommendation model updating method.

[0150] See also Figure 3 , Figure 3 A schematic diagram of a framework of a recommendation model updating method provided by an embodiment of this specification is shown.

[0151] Figure 3 The “original training data” in step 202 refers to extracting the user behavior data corresponding to each user from the user behavior log according to the user identifier, wherein the user behavior log records the corresponding relationship between the user identifier and the user behavior data; constructing a training data set based on the user behavior data; “balanced data distinction” refers to steps 204 to 218; “deletion” refers to steps 220; S1 to S k Refers to the K user behavior data sets divided according to the original training data; M1 to M k It refers to the corresponding K recommendation models trained according to the K training groups; “attention-based adaptive aggregation” refers to step 222; “prediction” refers to summarizing the attention-based adaptive aggregation results to obtain the final new question recommendation results.

[0152] Figure 4 A flowchart of a recommendation model training method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0153] Step 402: Obtain a training data set, wherein the training data set includes a plurality of user behavior data.

[0154] Step 404: Clustering is performed to obtain multiple user behavior data sets based on the feature information of the multiple user behavior data.

[0155] Step 406: Group the training data set according to the multiple user behavior data sets to obtain multiple training groups.

[0156] Step 408: For any training group, use the training group to train and obtain a corresponding recommendation model.

[0157] Specifically, a training data set refers to a collection of training data related to multiple users, such as a collection of basic information, browsing history, search history, etc. of users. User behavior data refers to the observation report of the behavior of the user's body when browsing an electronic device and the environment when the behavior occurs, such as data generated by user 1 searching, data generated by user 2 editing content, etc. Feature information refers to information generated between a user and a behavior object, which characterizes the characteristics between the user and the behavior object, such as user 1's browsing history, payment history, search history, etc. of commodity A, user 2's search history, browsing history, etc. of web page B, user 3's editing history, search history, browsing history, etc. of article C. A user behavior data set refers to a set with similar feature information obtained by clustering a training data set based on feature information of multiple user behavior data, such as user 1 and mobile phone 1, user 2 and mobile phone 1 can be used as behavior data in the same user behavior data set, or user 1 and computer 1, user 2 and computer 2 browsing or purchasing within a certain period of time can be used as behavior data in the same user behavior data set, etc. The specific selection is made according to the actual situation, and the embodiments of this specification do not make any restrictions on this.

[0158] Acquiring a training data set refers to the collection of training data related to multiple users that is obtained by the recommendation system in the computer in order to better filter information and predict user preferences. Clustering multiple user behavior data refers to clustering based on the similarity of feature information of multiple user behavior data. The recommendation model is trained based on the user behavior data set using the traditional neural network model training method.

[0159] Exemplarily, a set of 5 browsing records and 5 search records of the user is obtained, and clustering is performed based on the feature information of the 5 browsing records and the feature information of the 5 search records of the user to obtain 3 user behavior data sets, and the sets of 5 browsing records and 5 search records of the user are grouped based on the 3 user behavior data sets to obtain 3 training groups, and the 3 training groups are trained separately to obtain 3 corresponding recommendation models.

[0160] The solution of the embodiment of this specification is applied, by obtaining a training data set, wherein the training data set includes multiple user behavior data, clustering multiple user behavior data sets according to the feature information of the multiple user behavior data, and grouping the training data set to obtain multiple training groups, and for any training group, using the training group to train to obtain a corresponding recommendation model. The recommendation model obtained by training is based on the training group obtained by dividing the training data set, and the recommendation model has better effect and higher accuracy.

[0161] Corresponding to the above-mentioned recommendation model updating method embodiment, this specification also provides a recommendation model updating device embodiment, Figure 5 FIG. 1 is a schematic diagram showing a structure of a recommendation model updating device provided by an embodiment of the present specification. Figure 5 As shown, the device comprises:

[0162] A first acquisition module 502 is configured to acquire a data deletion request, wherein the data deletion request carries a data flag of specific data;

[0163] A second acquisition module 504 is configured to acquire a plurality of recommendation models, wherein the plurality of recommendation models are obtained by respectively training based on a plurality of training groups, each of the plurality of training groups comprising a user behavior data set obtained by clustering feature information based on the user behavior data;

[0164] A determination module 506 is configured to determine, according to the data flag, a first training group including the specific data from the multiple training groups, wherein the first training group is used to train a first recommendation model among the multiple recommendation models;

[0165] The data deletion module 508 is configured to delete the specific data from the first training group to obtain an updated group, and use the updated group to train the first recommendation model again.

[0166] The recommendation module 510 is configured to use the retrained first recommendation model and the second recommendation model to recommend objects to users, wherein the second recommendation model is a recommendation model other than the first recommendation model among the multiple recommendation models.

[0167] Optionally, the device further comprises:

[0168] The training grouping module is configured to obtain a training data set, wherein the training data set includes multiple user behavior data; cluster the multiple user behavior data sets according to feature information of the multiple user behavior data; group the training data set according to the multiple user behavior data sets to obtain multiple training groups; and for any training group, use the training group to train a corresponding recommendation model.

[0169] Optionally, the training group division module is further configured to extract user behavior data corresponding to each user from the user behavior log according to the user identifier, wherein the user behavior log records the correspondence between the user identifier and the user behavior data; and construct a training data set based on the user behavior data.

[0170] Optionally, the training grouping module is further configured to calculate the distance between each user behavior data based on the feature information of the multiple user behavior data; and cluster the multiple user behavior data using a central clustering method based on the distance between the multiple user behavior data to obtain multiple user behavior data sets.

[0171] Optionally, the training group division module is further configured to calculate the user vector distance between the first user behavior data and the second user behavior data based on the user vector representation of the first user behavior data and the user vector representation of the second user behavior data, wherein the first user behavior data and the second user behavior data are any two different user behavior data; calculate the behavior object vector distance between the first user behavior data and the second user behavior data based on the behavior object vector representation of the first user behavior data and the behavior object vector representation of the second user behavior data; determine the distance between the first user behavior data and the second user behavior data based on the user vector distance and the behavior object vector distance.

[0172] Optionally, the training grouping module is further configured to determine the centers of multiple user behavior data sets; calculate the distance between the current user behavior data and the center of each user behavior data set; and determine the user behavior data set to which the current user behavior data belongs based on each of the distances.

[0173] Optionally, the training grouping module is further configured to obtain the number of user behavior data in each user behavior data set; and determine the user behavior data set to which the current user behavior data belongs based on each of the distances, including: determining a user behavior data set whose distance and the number of user behavior data meet preset classification conditions as the user behavior data set to which the current user behavior data belongs.

[0174] Optionally, the training group division module is further configured to obtain an initial recommendation model; for any training group, the initial recommendation model is trained using the training group to obtain a corresponding recommendation model.

[0175] The recommendation model 510 is further configured to obtain user information of a specific user; input the user information into the first recommendation model and the second recommendation model after retraining respectively to obtain the predicted user behavior data output by each recommendation model; integrate the predicted user behavior data output by each recommendation model to obtain a specific behavior object recommended to the specific user.

[0176] The recommendation model 510 is further configured to integrate the predicted user behavior data output by the recommendation models to obtain a specific behavior object recommended to the specific user, including: using an attention mechanism to perform attention calculation on the user vector representation of the specific user output by the recommendation models and the behavior object vector representation of each predicted behavior object to obtain an association weight between the specific user and each predicted behavior object; and determining the specific behavior object recommended to the specific user based on the association weight.

[0177] The scheme of the embodiment of the present specification is applied, by obtaining a data deletion request; obtaining multiple recommendation models, wherein the multiple recommendation models are obtained by training based on multiple training groups; determining a first training group including specific data from multiple training groups according to data flags; deleting specific data from the first training group to obtain an updated group, and retraining the first recommendation model using the updated group; and making object recommendations for users using the retrained first recommendation model and the second recommendation model. When a data deletion request is obtained, only the specific data needs to be deleted from the first training group, and then the corresponding first recommendation model is retrained using the updated group, and objects are recommended for users based on the retrained first recommendation model and other recommendation models, thereby improving the efficiency of updating the recommendation model.

[0178] The above is a schematic scheme of a recommendation model updating device of this embodiment. It should be noted that the technical scheme of the recommendation model updating device and the technical scheme of the recommendation model updating method described above are of the same concept, and the details not described in detail in the technical scheme of the recommendation model updating device can be found in the description of the technical scheme of the recommendation model updating method described above.

[0179] Corresponding to the above-mentioned recommendation model training method embodiment, this specification also provides a recommendation model training device embodiment, Figure 6 FIG. 1 is a schematic diagram showing the structure of a recommendation model training device provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:

[0180] A third acquisition module 602 is configured to acquire a training data set, wherein the training data set includes a plurality of user behavior data;

[0181] A clustering module 604 is configured to cluster the plurality of user behavior data sets according to the feature information of the plurality of user behavior data;

[0182] A grouping module 606 is configured to group the training data set according to the multiple user behavior data sets to obtain multiple training groups;

[0183] The training module 608 is configured to train any training group to obtain a corresponding recommendation model using the training group.

[0184] The solution of the embodiment of this specification is applied, by obtaining a training data set, wherein the training data set includes multiple user behavior data, clustering multiple user behavior data sets according to the feature information of the multiple user behavior data, and grouping the training data set to obtain multiple training groups, and for any training group, using the training group to train to obtain a corresponding recommendation model. The recommendation model obtained by training is based on the training group obtained by dividing the training data set, and the recommendation model has better effect and higher accuracy.

[0185] The above is a schematic scheme of a recommendation model training device of this embodiment. It should be noted that the technical scheme of the recommendation model training device and the technical scheme of the recommendation model training method mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the recommendation model training device can be referred to the description of the technical scheme of the recommendation model training method mentioned above.

[0186] Figure 7 The block diagram of a computing device provided by an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.

[0187] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world microwave interconnection access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0188] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0189] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 700 may also be a mobile or stationary server.

[0190] The processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned recommendation model updating method:

[0191] Obtaining a data deletion request, wherein the data deletion request carries a data flag of specific data;

[0192] Acquire multiple recommendation models, wherein the multiple recommendation models are obtained by training based on multiple training groups, each of the multiple training groups includes a user behavior data set obtained by clustering feature information based on the user behavior data;

[0193] Determine, according to the data flag, a first training group including the specific data from the multiple training groups, wherein the first training group is used to train a first recommendation model among the multiple recommendation models;

[0194] Deleting the specific data from the first training group to obtain an updated group, and using the updated group to train the first recommendation model again;

[0195] The first recommendation model and the second recommendation model after retraining are used to recommend objects to users, wherein the second recommendation model is a recommendation model other than the first recommendation model among the multiple recommendation models. When a data deletion request is obtained, it is only necessary to retrain the corresponding recommendation model, and then, based on the retrained recommendation model and other recommendation models, object recommendations can be made to users, further improving the efficiency of data deletion.

[0196] On the other hand, the processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned recommendation model training method:

[0197] Acquire a training data set, wherein the training data set includes a plurality of user behavior data;

[0198] Clustering to obtain multiple user behavior data sets according to the feature information of the multiple user behavior data;

[0199] According to the multiple user behavior data sets, the training data set is grouped to obtain multiple training groups;

[0200] For any training group, the corresponding recommendation model is obtained by training the training group, so that the target user can quickly obtain the recommended information of interest to him / her, thus improving the user experience.

[0201] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned recommendation model update method and recommendation model training method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned recommendation model update method and recommendation model training method.

[0202] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned recommendation model updating method and recommendation model training method.

[0203] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the recommendation model updating method and the recommendation model training method mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the recommendation model updating method and the recommendation model training method mentioned above.

[0204] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned recommendation model updating method and recommendation model training method.

[0205] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the recommendation model updating method and the recommendation model training method mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be referred to the description of the technical scheme of the recommendation model updating method and the recommendation model training method mentioned above.

[0206] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0207] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0208] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0209] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0210] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A recommendation model updating method, comprising: Obtaining a data deletion request, wherein the data deletion request carries a data flag of specific data; Acquire multiple recommendation models, wherein the multiple recommendation models are obtained by training based on multiple training groups, each of the multiple training groups includes a user behavior data set obtained by clustering feature information based on the user behavior data; Determine, according to the data flag, a first training group including the specific data from the multiple training groups, wherein the first training group is used to train a first recommendation model among the multiple recommendation models; Deleting the specific data from the first training group to obtain an updated group, and using the updated group to train the first recommendation model again; Obtain user information of a specific user; input the user information into the retrained first recommendation model and the second recommendation model respectively, to obtain predicted user behavior data output by each recommendation model, wherein the second recommendation model is a recommendation model other than the first recommendation model among the multiple recommendation models, and the predicted user behavior data includes a user vector representation of the specific user and a behavior object vector representation of each predicted behavior object; By using the attention mechanism, attention calculation is performed on the user vector representation of the specific user output by each recommendation model and the behavior object vector representation of each predicted behavior object to obtain the association weight between the specific user and each predicted behavior object; based on the association weight, the specific behavior object recommended to the specific user is determined.

2. The method according to claim 1, before obtaining the data deletion request, further comprising: Acquire a training data set, wherein the training data set includes a plurality of user behavior data; Clustering to obtain multiple user behavior data sets according to the feature information of the multiple user behavior data; According to the multiple user behavior data sets, the training data set is grouped to obtain multiple training groups; For any training group, the corresponding recommendation model is obtained by training the training group.

3. The method according to claim 2, wherein obtaining the training data set comprises: Extracting user behavior data corresponding to each user from the user behavior log according to the user identifier, wherein the user behavior log records the corresponding relationship between the user identifier and the user behavior data; Based on the user behavior data, a training data set is constructed.

4. The method according to claim 2 or 3, wherein clustering the characteristic information of the plurality of user behavior data to obtain a plurality of user behavior data sets comprises: Calculating the distance between each user behavior data according to the characteristic information of the plurality of user behavior data; According to the distances between the user behavior data, a center clustering method is used to cluster the multiple user behavior data to obtain multiple user behavior data sets.

5. The method according to claim 4, wherein the feature information includes a user vector representation and a behavior object vector representation; The calculating the distance between each user behavior data according to the feature information of the plurality of user behavior data comprises: Calculating a user vector distance between the first user behavior data and the second user behavior data according to a user vector representation of the first user behavior data and a user vector representation of the second user behavior data, wherein the first user behavior data and the second user behavior data are any two different user behavior data; Calculating a behavior object vector distance between the first user behavior data and the second user behavior data according to the behavior object vector representation of the first user behavior data and the behavior object vector representation of the second user behavior data; The distance between the first user behavior data and the second user behavior data is determined according to the user vector distance and the behavior object vector distance.

6. The method according to claim 4, wherein the plurality of user behavior data are clustered using a center clustering method according to the distances between the plurality of user behavior data to obtain a plurality of user behavior data sets, comprising: Determine the center of multiple user behavior data sets; Calculate the distance between the current user behavior data and the center of each user behavior data set; According to each of the distances, the user behavior data set to which the current user behavior data belongs is determined.

7. The method according to claim 6, before determining the user behavior data set to which the current user behavior data belongs according to each of the distances, further comprising: Obtain the number of user behavior data in each user behavior data set; The step of determining, based on each of the distances, a user behavior data set to which the current user behavior data belongs includes: A user behavior data set whose distance and the number of user behavior data meet the preset classification conditions is determined as the user behavior data set to which the current user behavior data belongs.

8. The method according to claim 2, wherein for any training group, using the training group to train a corresponding recommendation model comprises: Obtain an initial recommendation model; For any training group, the initial recommendation model is trained using the training group to obtain a corresponding recommendation model.

9. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the recommendation model updating method described in any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the recommendation model updating method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Cooperative type deep network model method for pedestrian detection

    CN106650806A

  • DGA domain name detection model construction method, device, server and storage medium

    CN109688110A

  • A parallel accelerated training method and system for a support vector machine

    CN109815992A

  • Data model training method and device, electronic equipment and readable medium

    CN110866605A

  • Training method and device of user conversion prediction model, storage medium and electronic equipment

    CN111767982A