Item recommendation method and system
By pre-training and clustering users, and using the K-Means++ algorithm and local data to train the global item factor matrix, we solve the problems of user privacy and recommendation rate in existing recommendation systems, and achieve fast, privacy-protecting personalized recommendations. .
Patent Information
- Application Number
- CN202111318678.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-11-09
AI Technical Summary
Existing recommendation systems have challenges in protecting user privacy and improving recommendation rates, especially the inability to guarantee user data privacy and the long computation time of the recommendation system.
By pre-training all users, the model weight of each user is obtained, and the K-Means++ algorithm is used for clustering processing. The global item factor matrix is trained using the user's local data in each cluster to obtain the cluster global item factor. Matrix to achieve fast and privacy-preserving item recommendation.
While protecting user privacy, it improves the speed and accuracy of item recommendation, reduces the computing pressure on the federated server, and realizes personalized recommendations.
Smart Images

Figure CN113988207B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine learning technology, and in particular to an item recommendation method and system. Background Art
[0002] In recent years, with the development of mobile Internet and big data technology, it is difficult for users to obtain useful information from massive amounts of data, and it is also difficult to obtain the potential value in these massive amounts of data, making it difficult to reasonably utilize the resources needed by various users. In order to solve the above problems, recommendation system related technologies have emerged. The recommendation method can filter out low-value information for users, thereby saving users' time; for example, the recommendation method can find products that users with specific hobbies like and provide customized recommendations. However, there are still many problems that have not been solved in the existing recommendation system. For example: user data privacy cannot be guaranteed, the recommendation system takes a long time to operate, and there is a problem of APP cold start caused by installing the recommendation system. Summary of the invention
[0003] The purpose of the present invention is to provide an item recommendation method and system, which improves the item recommendation rate while protecting user privacy.
[0004] To achieve the above object, the present invention provides the following solutions:
[0005] An item recommendation method, comprising:
[0006] Pre-training all users to obtain a model weight for each user;
[0007] According to the model weights, all users are clustered using the K-Means++ algorithm to obtain multiple clusters;
[0008] The global item factor initial matrix is trained using the local data of the users in each of the clusters to obtain cluster global item factor matrices of the multiple clusters.
[0009] Optionally, after respectively using the local data of the users in each of the clusters to train the global item factor initial matrix to obtain cluster global item factor matrices of multiple clusters, the method further includes:
[0010] According to the cluster global item factor matrix, items are recommended to users in the corresponding cluster.
[0011] Optionally, pre-training all users to obtain a model weight for each user specifically includes:
[0012] The federated server sends the global item factor initial matrix to all the users;
[0013] The multiple users respectively train the global item factor initial matrix using local data to obtain multiple local models;
[0014] Model weights of a plurality of the local models are determined.
[0015] Optionally, clustering all users using the K-Means++ algorithm according to the model weights to obtain multiple clusters, specifically including:
[0016] According to the model weights of the plurality of users, Calculating the cosine similarity between the plurality of users respectively;
[0017] Constructing a cosine similarity matrix according to the multiple cosine similarities;
[0018] According to the cosine similarity matrix, all the users are clustered using the K-Means++ algorithm to obtain multiple clusters;
[0019] Where S(i,j) represents the cosine similarity between the model weight of user i and the model weight of user j; w i represents the model weight of user i; w j represents the model weight of user j.
[0020] Optionally, the training of the global item factor initial matrix using the local data of the users in each cluster to obtain the cluster global item factor matrices of the multiple clusters specifically includes:
[0021] Determine any cluster as the current cluster;
[0022] A plurality of users in the current cluster respectively obtain the global item factor initial matrix sent by the federal server;
[0023] Inputting the global item factor initial matrix into the matrix completion model to obtain the global item factor completion matrix; the matrix completion model is obtained by training the LFM model using the global item factor historical initial matrix;
[0024] Determine the global item factor completion matrix as the cluster global item factor initial matrix;
[0025] The multiple users in the current cluster respectively use the cluster global item factor initial matrix as the parameter of the local model, and train the local model using the local data of the users;
[0026] Determine an item factor vector for each user in the current cluster according to the parameters of the trained local model;
[0027] The federated server aggregates the item factor vectors corresponding to the multiple users in the current cluster to obtain an aggregated item factor matrix of the current cluster;
[0028] Determine whether the number of iterations reaches a preset number of iterations, and obtain a determination result;
[0029] If the judgment result is no, the aggregated item factor matrix of the current cluster is used as the cluster global item factor initial matrix, and the process returns to the step of "multiple users in the current cluster respectively use the cluster global item factor initial matrix as the parameters of the local model, and train the local model using the local data of the users";
[0030] If the first judgment result is yes, then the aggregate item factor matrix of the current cluster is determined to be the cluster global item factor matrix of the current cluster.
[0031] Optionally, before the multiple users in the current cluster respectively obtain the global item factor initial matrix sent by the federal server, the method further includes:
[0032] Get the global item factor history initial matrix and the global item factor history completion matrix;
[0033] The LFM model is trained with the global item factor history initial matrix as input and the global item factor history completion matrix as output to obtain a matrix completion model.
[0034] An item recommendation system, comprising:
[0035] A pre-training module, used to pre-train all users to obtain a model weight for each user;
[0036] A clustering processing module, used to perform clustering processing on all users using the K-Means++ algorithm according to the model weights to obtain multiple clusters;
[0037] The cluster global item factor matrix determination module is used to train the global item factor initial matrix using the local data of the users in each cluster to obtain the cluster global item factor matrices of multiple clusters.
[0038] Optionally, the system further includes:
[0039] The item recommendation module is used to recommend items to users in the corresponding cluster according to the cluster global item factor matrix.
[0040] Optionally, the cluster global item factor matrix determination module specifically includes:
[0041] a current cluster determination unit, used to determine any cluster as a current cluster;
[0042] A global item factor initial matrix acquisition unit, used to enable multiple users in the current cluster to respectively acquire the global item factor initial matrix sent by the federated server;
[0043] A completion unit, used for inputting the global item factor initial matrix into a matrix completion model to obtain a global item factor completion matrix; the matrix completion model is obtained by training the LFM model using the global item factor historical initial matrix;
[0044] A cluster global item factor initial matrix determining unit, used to determine the global item factor completion matrix as the cluster global item factor initial matrix;
[0045] A local model training unit, configured for each of the multiple users in the current cluster to use the cluster global item factor initial matrix as a parameter of a local model, and to train the local model using the local data of the user;
[0046] an item factor vector determining unit, configured to determine an item factor vector of each user in the current cluster according to the parameters of the trained local model;
[0047] An aggregated item factor matrix determining unit, configured to cause the federated server to aggregate the item factor vectors corresponding to a plurality of users in the current cluster to obtain an aggregated item factor matrix of the current cluster;
[0048] A judgment unit, used to judge whether the number of iterations reaches a preset number of iterations and obtain a judgment result; if the judgment result is no, the cluster global item factor initial matrix updating unit is called; if the judgment result is yes, the cluster global item factor matrix determination unit is called;
[0049] A cluster global item factor initial matrix updating unit, used to use the aggregate item factor matrix of the current cluster as the cluster global item factor initial matrix, and call the local model training unit;
[0050] The cluster global item factor matrix determination unit is used to determine the aggregate item factor matrix of the current cluster as the cluster global item factor matrix of the current cluster.
[0051] Optionally, the cluster global item factor matrix determination module further includes:
[0052] A historical data acquisition unit, used to acquire a global item factor historical initial matrix and a global item factor historical completion matrix;
[0053] The matrix completion model determination unit is used to train the LFM model with the global item factor history initial matrix as input and the global item factor history completion matrix as output to obtain a matrix completion model.
[0054] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0055] The present invention provides an item recommendation method and system, wherein the method includes: pre-training all users to obtain a model weight for each user; clustering all users using a K-Means++ algorithm according to the model weight to obtain multiple clusters; and training a global item factor initial matrix using local data of users in each cluster to obtain cluster global item factor matrices of multiple clusters. The present invention can improve the running rate of the item recommendation algorithm while protecting user privacy by training the global item factor initial matrix using local data of users in each cluster. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0057] Figure 1 This is a flow chart of the item recommendation method in an embodiment of the present invention;
[0058] Figure 2 This is a flowchart of user clustering in an embodiment of the present invention;
[0059] Figure 3 This is a training flow chart in an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The purpose of the present invention is to provide an item recommendation method and system, which improves the item recommendation rate while protecting user privacy.
[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0063] Figure 1 Flow chart of the method for recommending items in an embodiment of the present invention. Figure 1The present invention provides an item recommendation method, comprising:
[0064] Step 101: Pre-train all users to obtain the model weight of each user;
[0065] Step 102: Based on the model weights, all users are clustered using the K-Means++ algorithm to obtain multiple clusters;
[0066] Step 103: Use the local data of users in each cluster to train the global item factor initial matrix to obtain cluster global item factor matrices of multiple clusters.
[0067] After step 103, the method further includes:
[0068] According to the cluster global item factor matrix, recommend items to users in the corresponding cluster.
[0069] Step 101 specifically includes:
[0070] The federated server sends the global item factor initial matrix to all users;
[0071] Multiple users use local data to train the initial matrix of global item factors to obtain multiple local models;
[0072] Determine model weights for multiple local models.
[0073] Step 102 specifically includes:
[0074] According to the model weights of the plurality of users, Calculating the cosine similarity between the plurality of users respectively;
[0075] Constructing a cosine similarity matrix according to the multiple cosine similarities;
[0076] According to the cosine similarity matrix, all the users are clustered using the K-Means++ algorithm to obtain multiple clusters;
[0077] Where S(i,j) represents the cosine similarity between the model weight of user i and the model weight of user j; w i represents the model weight of user i; w j represents the model weight of user j.
[0078] Step 103 specifically includes:
[0079] Determine any cluster as the current cluster;
[0080] Multiple users in the current cluster respectively obtain the initial matrix of global item factors sent by the federated server;
[0081] The global item factor initial matrix is input into the matrix completion model to obtain the global item factor completion matrix; the matrix completion model is obtained by training the LFM model using the global item factor historical initial matrix;
[0082] Determine the global item factor completion matrix as the cluster global item factor initial matrix;
[0083] Multiple users in the current cluster use the initial matrix of the cluster global item factor as the parameters of the local model, and use the local data of the users to train the local model;
[0084] Determine the item factor vector of each user in the current cluster based on the parameters of the trained local model;
[0085] The federated server aggregates the item factor vectors corresponding to multiple users in the current cluster to obtain the aggregated item factor matrix of the current cluster;
[0086] Determine whether the number of iterations reaches a preset number of iterations, and obtain a determination result;
[0087] If the judgment result is no, the aggregated item factor matrix of the current cluster is used as the cluster global item factor initial matrix, and the process returns to the step "multiple users in the current cluster use the cluster global item factor initial matrix as the parameters of the local model, and use the user's local data to train the local model";
[0088] If the first judgment result is yes, then the aggregate item factor matrix of the current cluster is determined to be the cluster global item factor matrix of the current cluster.
[0089] Before multiple users in the current cluster obtain the global item factor initial matrix sent by the federated server, the following steps are also included:
[0090] Get the global item factor history initial matrix and the global item factor history completion matrix;
[0091] The LFM model is trained with the global item factor history initial matrix as input and the global item factor history completion matrix as output to obtain the matrix completion model.
[0092] This application proposes a clustering-based federated learning recommendation method. This method mainly uses the existing latent factor model (LFM) to obtain the latent features of the recommended items and the latent features of the user, and then updates the prediction score matrix based on the federated learning algorithm. Through iterative training, the model converges to make accurate personalized recommendations for each user.
[0093] The purpose of the present invention is to achieve accurate personalized recommendations for each user through the following technical solutions. The specific solution of this method is:
[0094] Step 1: Cluster users.
[0095] In this part, we need to cluster all users and put users with similar characteristics in one cluster, so that more accurate recommendations can be achieved during the recommendation process.
[0096] 1.1 First, each user downloads the global item rating matrix R from the federated learning server. This matrix is the rating of each user on certain items, as shown in Table 1. The "?" indicates that the user has no rating record for a certain item. This matrix can be a model randomly initialized by the server or a pre-trained model.
[0097] After 1.2, each user conducts a local training with the global item rating matrix using local data to obtain the user's local model update weight information. The local model update weight parameters are uploaded to the server.
[0098] 1.3 Finally, the server obtains the local model update weight parameters of each user participating in the training, and uses these local update weight parameters to cluster each user based on the K-Means++ algorithm, so that users with similar characteristics are placed in the same cluster. The number of clusters is determined by the k value in the K-Means++ algorithm. The initial matrix of global item factors is shown in Table 1.
[0099] Table 1 Initial matrix of global item factors
[0100]
[0101]
[0102] In the K-Means++ algorithm, this method uses cosine distance to measure the similarity between each user. The cosine similarity calculation formula is:
[0103] Where S(i, j) represents the cosine similarity between the model weight of user i and the model weight of user j; w i represents the model weight of user i; w j represents the model weight of user j.
[0104] Assume that there are N users who use this recommendation method and are divided into k clusters. After the K-Means++ algorithm, we can get user clusters c1, c2, …, c k , we have N = {c1∪c2∪…∪c kWe have summarized this step, and the flowchart is as follows: Figure 2 as shown.
[0105] Step 2: The user performs LFM.
[0106] The latent semantic model belongs to the machine learning algorithm, which contains latent factors, similar to the hidden layer in the neural network. We only need to train the appropriate latent factors based on the existing local data to optimize the objective function, then the model is available. Through the latent semantic model LFM, a suitable latent factor is trained to link the relationship between the user's hobbies and items. Assuming that R is an item rating matrix of size U×I, LFM is used to find the potential feature matrix P of the user's recommended items and the user hobby matrix Q. These two matrices are obtained through matrix decomposition. And through the federated learning algorithm, a new predicted rating matrix R=P×Q is obtained (this step is Step 3, and the predicted rating matrix is to complete the content of "?" shown in Table 1. The predicted rating of the recommendation system can be regarded as a small game of matrix completion. Matrix completion is the task of the recommendation system, and matrix decomposition is the means to achieve its goal). The expressions and loss functions of matrices P, Q, and R are as follows:
[0107] P=U×K
[0108] Q=I×K
[0109]
[0110]
[0111] in, is the loss function; R UI is the true rating matrix of user U for item I, P UK Q KI is the predicted value, K is the number of implicit factors, λ1||P U || 2 and λ2||Q I || 2 Regularization term introduced to prevent overfitting, λ1 and λ2 are regularization parameters. U is a potential feature matrix with U rows; P U The transposed matrix of I is a user preference matrix with I rows.
[0112] Step 3: Recommend users based on clustering federated learning
[0113] Through Step 2, each user will get the potential feature matrix P of the recommended items and the user preference matrix Q. After that, recommendations will be made based on federated learning. The training process of federated learning is as follows: Figure 3 shown.
[0114] 3.1 In the first communication round, the global item factor matrix obtained by users in each cluster is the same. Users in each cluster download a brand new global item factor matrix from the server, and the matrix representation is shown in Table 1.
[0115] 3.2 Based on Step 2, the users in each cluster obtain the potential feature matrix P of recommended items and the user preference matrix Q.
[0116] 3.3 For each cluster of users, the global item factor matrix is used as the input parameter of the training model, and is trained for E epochs with the local data held by the user to obtain a new local user factor vector, which is then uploaded to the server and waits for the server's aggregation operation.
[0117] 3.4 After the server waits for the users in each cluster to finish uploading, it aggregates the local item factor matrix of each cluster through the federated averaging algorithm (FedAvg) to obtain a new global item factor matrix.
[0118] 3.5 The server continues to send the aggregated global item factor matrix to the clients in each cluster until all communication rounds of training are completed or the overall running time set by the system ends.
[0119] In addition, the present invention further provides an item recommendation system, comprising:
[0120] The pre-training module is used to pre-train all users and obtain the model weight of each user;
[0121] The clustering processing module is used to cluster all users according to the model weights using the K-Means++ algorithm to obtain multiple clusters;
[0122] The cluster global item factor matrix determination module is used to train the global item factor initial matrix using the local data of users in each cluster to obtain the cluster global item factor matrices of multiple clusters.
[0123] The item recommendation system provided by the present invention further includes:
[0124] The item recommendation module is used to recommend items to users in the corresponding cluster based on the cluster global item factor matrix.
[0125] Among them, the cluster global item factor matrix determination module specifically includes:
[0126] a current cluster determining unit, used to determine any cluster as a current cluster;
[0127] A global item factor initial matrix acquisition unit, used to enable multiple users in the current cluster to respectively acquire the global item factor initial matrix sent by the federated server;
[0128] The completion unit is used to input the global item factor initial matrix into the matrix completion model to obtain the global item factor completion matrix; the matrix completion model is obtained by training the LFM model using the global item factor historical initial matrix;
[0129] A cluster global item factor initial matrix determination unit, used to determine the global item factor completion matrix as the cluster global item factor initial matrix;
[0130] A local model training unit is used for multiple users in the current cluster to use the cluster global item factor initial matrix as the parameters of the local model, and train the local model using the user's local data;
[0131] An item factor vector determination unit, used to determine an item factor vector of each user in the current cluster according to the parameters of the trained local model;
[0132] An aggregated item factor matrix determination unit, used to enable the federated server to aggregate item factor vectors corresponding to multiple users in the current cluster to obtain an aggregated item factor matrix of the current cluster;
[0133] A judgment unit, used to judge whether the number of iterations reaches a preset number of iterations and obtain a judgment result; if the judgment result is no, the cluster global item factor initial matrix update unit is called; if the judgment result is yes, the cluster global item factor matrix determination unit is called;
[0134] A cluster global item factor initial matrix update unit, used to use the aggregate item factor matrix of the current cluster as the cluster global item factor initial matrix, and call the local model training unit;
[0135] The cluster global item factor matrix determination unit is used to determine the aggregate item factor matrix of the current cluster as the cluster global item factor matrix of the current cluster.
[0136] In addition, the cluster global item factor matrix determination module also includes:
[0137] A historical data acquisition unit, used to acquire a global item factor historical initial matrix and a global item factor historical completion matrix;
[0138] The matrix completion model determination unit is used to train the LFM model with the global item factor history initial matrix as input and the global item factor history completion matrix as output to obtain the matrix completion model.
[0139] Based on clustering, the present invention places users with the same or similar hobbies in the same cluster, which can improve the accuracy of recommendations for each user. Based on federated learning, training can achieve accurate recommendations for users while ensuring that user privacy is not leaked. Federated learning distributes the learning process of the recommendation model to each user's device, greatly reducing the computing pressure of the federated server.
[0140] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0141] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. An item recommendation method, characterized in that: The method comprises: Pre-training all users to obtain a model weight for each user; Pre-train all users to obtain the model weight of each user, specifically including: The federated server sends the global item factor initial matrix to all the users; The multiple users respectively train the global item factor initial matrix using local data to obtain multiple local models; determining model weights of a plurality of said local models; According to the model weights, all users are clustered using the K-Means++ algorithm to obtain multiple clusters; Using local data of users in each of the clusters, respectively, the global item factor initial matrix is trained to obtain cluster global item factor matrices of multiple clusters; The global item factor initial matrix is trained using the local data of the users in each cluster to obtain cluster global item factor matrices of multiple clusters, specifically including: Determine any cluster as the current cluster; A plurality of users in the current cluster respectively obtain the global item factor initial matrix sent by the federal server; Inputting the global item factor initial matrix into the matrix completion model to obtain the global item factor completion matrix; the matrix completion model is obtained by training the LFM model using the global item factor historical initial matrix; Determine the global item factor completion matrix as the cluster global item factor initial matrix; The multiple users in the current cluster respectively use the cluster global item factor initial matrix as the parameter of the local model, and train the local model using the local data of the users; Determine an item factor vector for each user in the current cluster according to the parameters of the trained local model; The federated server aggregates the item factor vectors corresponding to the multiple users in the current cluster to obtain an aggregated item factor matrix of the current cluster; Determine whether the number of iterations reaches a preset number of iterations, and obtain a determination result; If the judgment result is no, the aggregated item factor matrix of the current cluster is used as the cluster global item factor initial matrix, and the process returns to the step of "multiple users in the current cluster respectively use the cluster global item factor initial matrix as the parameters of the local model, and train the local model using the local data of the users"; If the judgment result is yes, then the aggregate item factor matrix of the current cluster is determined to be the cluster global item factor matrix of the current cluster.
2. The item recommendation method according to claim 1, characterized in that: After the global item factor initial matrix is trained using the local data of the users in each cluster to obtain the cluster global item factor matrices of the multiple clusters, the method further includes: According to the cluster global item factor matrix, items are recommended to users in the corresponding cluster.
3. The item recommendation method according to claim 1, characterized in that: According to the model weights, all users are clustered using the K-Means++ algorithm to obtain multiple clusters, specifically including: According to the model weights of the plurality of users, Calculating the cosine similarity between the plurality of users respectively; Constructing a cosine similarity matrix according to the multiple cosine similarities; According to the cosine similarity matrix, all the users are clustered using the K-Means++ algorithm to obtain multiple clusters; Where S(i,j) represents the cosine similarity between the model weight of user i and the model weight of user j; w i represents the model weight of user i; w j represents the model weight of user j.
4. The item recommendation method according to claim 1, characterized in that: Before the multiple users in the current cluster respectively obtain the global item factor initial matrix sent by the federal server, the method further includes: Get the global item factor history initial matrix and the global item factor history completion matrix; The LFM model is trained with the global item factor history initial matrix as input and the global item factor history completion matrix as output to obtain a matrix completion model.
5. An item recommendation system, characterized in that: The system comprises: A pre-training module is used to pre-train all users to obtain a model weight for each user; the pre-training module is also used for the federal server to send a global item factor initial matrix to all users; multiple users respectively use local data to train the global item factor initial matrix to obtain multiple local models; determine the model weights of multiple local models; A clustering processing module, used to perform clustering processing on all users using the K-Means++ algorithm according to the model weights to obtain multiple clusters; A cluster global item factor matrix determination module is used to train the global item factor initial matrix using the local data of the users in each cluster to obtain cluster global item factor matrices of multiple clusters; The cluster global item factor matrix determination module specifically includes: a current cluster determination unit, used to determine any cluster as a current cluster; A global item factor initial matrix acquisition unit, used to enable multiple users in the current cluster to respectively acquire the global item factor initial matrix sent by the federated server; A completion unit, used for inputting the global item factor initial matrix into a matrix completion model to obtain a global item factor completion matrix; the matrix completion model is obtained by training the LFM model using the global item factor historical initial matrix; A cluster global item factor initial matrix determining unit, used to determine the global item factor completion matrix as the cluster global item factor initial matrix; A local model training unit, configured for each of the multiple users in the current cluster to use the cluster global item factor initial matrix as a parameter of a local model, and to train the local model using the local data of the user; an item factor vector determining unit, configured to determine an item factor vector of each user in the current cluster according to the parameters of the trained local model; An aggregated item factor matrix determining unit, configured to cause the federated server to aggregate the item factor vectors corresponding to a plurality of users in the current cluster to obtain an aggregated item factor matrix of the current cluster; A judgment unit, used to judge whether the number of iterations reaches a preset number of iterations and obtain a judgment result; if the judgment result is no, the cluster global item factor initial matrix updating unit is called; if the judgment result is yes, the cluster global item factor matrix determination unit is called; A cluster global item factor initial matrix updating unit, used to use the aggregate item factor matrix of the current cluster as the cluster global item factor initial matrix, and call the local model training unit; The cluster global item factor matrix determination unit is used to determine the aggregate item factor matrix of the current cluster as the cluster global item factor matrix of the current cluster.
6. The item recommendation system according to claim 5, characterized in that: The system further comprises: The item recommendation module is used to recommend items to users in the corresponding cluster according to the cluster global item factor matrix.
7. The item recommendation system according to claim 5, characterized in that: The cluster global item factor matrix determination module further includes: A historical data acquisition unit, used to acquire a global item factor historical initial matrix and a global item factor historical completion matrix; The matrix completion model determination unit is used to train the LFM model with the global item factor history initial matrix as input and the global item factor history completion matrix as output to obtain a matrix completion model.
