Federal learning-based goods recommendation system and method

By adopting a federated learning framework in the goods recommendation system, using local data to train the model and upload parameters, combined with meta-learning and attention mechanisms, the problems of new user recommendation and privacy leakage are solved, and efficient and accurate goods recommendation is achieved.

CN118586797APending Publication Date: 2024-09-03WUXI ZHONGDING INTEGRATION TECH CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410632281.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-03

Smart Images

  • Figure CN118586797A
    Figure CN118586797A
Patent Text Reader

Abstract

The invention relates to a federated learning-based cargo recommendation system and method, and relates to the technical field of machine learning. The system is based on a federated learning framework, each storage center is used as a client of the federated learning framework, a central server is used as a server of the federated learning framework, the clients train a cargo recommendation model based on user and cargo interaction data in a local source domain, and model parameters obtained through training are uploaded to the central server; the central server aggregates the model parameters uploaded by different clients, determines cross-domain transferable features from the source domain to the target domain, and issues the aggregated model parameters and cross-domain transferable features to the clients; and the client configures the aggregated model parameters, and performs rating prediction of the cold start user of the target domain by using the cargo recommendation model and the cross-domain transferable features so as to generate a cargo recommendation result for the target domain. By adopting the method, the accuracy and efficiency of goods recommendation can be improved, and the privacy of the user can be effectively protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology, and in particular to a goods recommendation system and method based on federated learning. Background Art

[0002] The recommendation system can improve the cargo retrieval efficiency of the intelligent stacker. Traditional recommendation systems often make recommendations based on a single domain. However, user interests are rarely single and often extend to different application areas. Single-domain recommendation systems are difficult to provide accurate recommendations for new users who have no historical interactions due to the lack of target domain data. The cold start problem is a challenge for recommendation systems. At the same time, because traditional recommendation systems need to upload private data to a central server for training, this will inevitably cause user privacy leaks. Summary of the invention

[0003] Based on this, it is necessary to provide a cargo recommendation system and method based on federated learning to address the above technical problems.

[0004] In a first aspect, the present application provides a goods recommendation system based on federated learning. The system is based on a federated learning framework, wherein each storage center is used as a client of the federated learning framework and the central server is used as a server of the federated learning framework, wherein:

[0005] The client trains a product recommendation model based on the user and product interaction data in the local source domain, and uploads the trained model parameters to the central server;

[0006] The central server aggregates the model parameters uploaded by different clients, determines the cross-domain transferable features from the source domain to the target domain, and sends the aggregated model parameters and cross-domain transferable features to the client;

[0007] The client configures the aggregated model parameters, and uses the product recommendation model and the cross-domain transferable features to perform rating prediction for cold-start users in the target domain to generate product recommendation results for the target domain.

[0008] In one embodiment, the client trains a product recommendation model based on user and product interaction data in a local source domain, including:

[0009] The generalized matrix factorization model with a fully connected layer is used as the product recommendation model.

[0010] The client trains the product recommendation model using the user set, product set and rating matrix in the local source domain.

[0011] In one embodiment, the client is further configured to:

[0012] Find overlapping users and overlapping goods in the source domain and the target domain to obtain overlapping domains;

[0013] Convert overlapping users and overlapping goods into the form of embedding vectors to obtain an overlapping domain embedding set;

[0014] uploading the overlapping domain embedding set as transferable information to a central server;

[0015] The central server is specifically used for:

[0016] The central server determines the cross-domain transferable features from the source domain to the target domain based on the model parameters and transferable information uploaded by different clients, and sends the cross-domain transferable features to the clients.

[0017] In one embodiment, the central server is used to:

[0018] Based on the attention mechanism, the feature similarity between the interaction vectors in the transferable information is calculated in a dot product manner;

[0019] Weighting all features of the interaction vector based on the feature similarity to obtain an attention-weighted interaction vector;

[0020] A personalized preference function for calculating the cross-domain transferable feature is generated based on the attention-weighted interaction vector.

[0021] In one embodiment, the client is used to:

[0022] The predicted rating of the cold start user is obtained by utilizing the product embedding in the target domain and the user embedding obtained based on the cross-domain transferable feature transformation after inner product.

[0023] In one embodiment, the client is further configured to:

[0024] Based on the rating prediction of the user and the real rating of the goods, the regularization term on the user side and the regularization term on the goods side, a cross-domain loss function is determined, wherein the regularization term on the user side includes the feature weight of the user, the regularization term on the goods side includes the feature weight of the goods, and the cross-domain loss function is used to indicate the correlation loss between the predicted rating of the user and the real rating of the goods;

[0025] The model parameters of the product recommendation model are trained by minimizing the cross-domain loss function.

[0026] In one embodiment, the client is further configured to:

[0027] Delete the user and product interaction data without comment text in the source and target domains;

[0028] Filter out users whose interaction times are less than a first preset number and goods whose interaction times are less than a second preset number.

[0029] In a second aspect, the present application also provides a method for recommending goods based on federated learning. The system includes a server and a VR device, wherein:

[0030] Establish a federated learning framework, use each storage center as the client of the federated learning framework, and use the central server as the server of the federated learning framework, where:

[0031] The client trains a product recommendation model based on the user and product interaction data in the local source domain, and uploads the trained model parameters to the central server;

[0032] The central server aggregates the model parameters uploaded by different clients, determines the cross-domain transferable features from the source domain to the target domain, and sends the aggregated model parameters and cross-domain transferable features to the client;

[0033] The client configures the aggregated model parameters, and uses the product recommendation model and the cross-domain transferable features to perform rating prediction for cold-start users in the target domain to generate product recommendation results for the target domain.

[0034] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the processing performed by the client and the central server in the first aspect is implemented.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the processing performed by the client and the central server in the first aspect.

[0036] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the processing performed by the client and the central server in the first aspect is implemented.

[0037] The goods recommendation system based on federated learning disclosed in this embodiment is adopted. Firstly, by constructing a federated recommendation system framework, each storage center uses a local data set to train a recommendation model and uploads the model weight to a central server instead of sharing the original data, which can effectively protect user privacy; secondly, a meta-recommendation module is adopted to learn the personalized information of new users, and the interaction data and attention mechanism of the source domain are used to extract transferable features, which helps to solve the recommendation problem of new users (cold start users) when there is a lack of sufficient interaction history data; thirdly, a method combining meta-learning and attention mechanism is used to analyze and learn the interaction data between users and goods in different storage centers, so as to realize the effective transfer of knowledge from the source domain to the target domain, which can improve the accuracy and efficiency of goods recommendation. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 Schematic diagram of the architecture of a goods recommendation system based on federated learning in one embodiment;

[0039] Figure 2 A flowchart of a method for recommending goods based on federated learning in one embodiment;

[0040] Figure 3 A flowchart of a method for recommending goods based on federated learning in one embodiment;

[0041] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] In modern logistics centers, a large number of goods need to be quickly and accurately classified, stored, and retrieved. As a key equipment, the efficiency and accuracy of the intelligent stacker directly affect the operational efficiency of the entire logistics system. Traditional cargo recommendation systems often rely on centralized data processing, which not only increases the risk of privacy leakage, but also may affect the recommendation efficiency due to delays caused by centralized data processing. In order to protect user privacy, a model that does not share data between the source domain and the target domain is required. Federated learning can learn a shared global model from multiple independent clients, but does not require sharing data, which can effectively protect user privacy. However, data in the real world is often heterogeneous, and the data size and sparsity on different clients may not be consistent. Learning a single global model cannot meet the data requirements of the real world. The present invention uses a federated framework combined with meta-learning and attention mechanisms to effectively extract personalized information, and realizes an efficient and accurate federated cargo recommendation algorithm.

[0044] The embodiment of the present application provides a goods recommendation system based on federated learning, which may include multiple storage centers and a central server, such as Figure 1 As shown, the storage center can be used for storage, retrieval, inbound and outbound management of different types of goods. The central server can be connected to each storage center through the network to achieve unified management and monitoring, including functions such as goods inventory, order processing, and transportation scheduling. Each storage center can be equipped with multiple intelligent stackers, whose main function is to stack and pick up goods vertically. These robotic devices can move automatically in the warehouse and take out goods from a designated location and place them at a designated location according to a pre-set program, or take goods out of the warehouse from a designated location.

[0045] In order to address the problems of existing technologies, the cargo recommendation system is based on the federated learning framework, with each storage center as the client of the federated learning framework and the central server as the server of the federated learning framework. In this way, the federated learning framework can be used to implement the federated cargo recommendation of the intelligent stacker. Federated learning is a machine learning method for multiple participants or nodes (storage centers), where each node collaboratively trains a global model without directly sharing data.

[0046] In one embodiment, Figure 2 As shown, the client and the server can jointly perform the goods recommendation process, including the following steps:

[0047] Step 202: The client trains a product recommendation model based on the user and product interaction data in the local source domain, and uploads the trained model parameters to the central server.

[0048] In implementation, the source domain can be a set of goods categories that accurately records every interaction data between users and goods in history. The interaction data between users and goods can be the user's behavior or rating data on goods, which reflects the user's preference or use of goods. In the federated goods recommendation method, these interaction data are used to train the recommendation model to help predict the user's possible reaction or rating to unknown goods. Specifically, the interaction data between users and goods can include purchase records, evaluation scores, browsing history and other forms. These data are integrated in the user-goods interaction matrix and converted into user and goods embedding vectors through matrix decomposition technology for model training and recommendation process.

[0049] Each storage center acts as a client, independent of other clients, and only uses local data to train the model, so that the data of each storage center will not be shared or transmitted to other clients or central servers. During the model training process, each client first uses a recommendation algorithm to build embedding vectors of users and goods based on its local data set. These embedding vectors can effectively capture the potential relationships and features between users and goods. After the training is completed, each client can upload the trained model parameters (usually weights) to the central server.

[0050] Furthermore, when training a product recommendation model, a generalized matrix factorization model with a fully connected layer added can be used as the product recommendation model, and then the client can use the user set, product set and rating matrix in the local source domain to train the product recommendation model.

[0051] When training the product recommendation model, using the generalized matrix factorization model (GMF) as the basis and adding a fully connected layer can effectively improve the expressiveness and flexibility of the model. In traditional matrix factorization, the interaction matrix between users and products is decomposed into two low-dimensional embedding matrices, namely user embedding and product embedding. In GMF, the learning ability of the model can be enhanced through nonlinear functions and multi-layer network structures, that is, the embedding vectors of users and products are directly multiplied to obtain an interaction feature vector, and then the interaction feature vector obtained by GMF is input into one or more fully connected layers, which can further learn and abstract the complex relationship between users and products. The fully connected layer can capture deeper nonlinear relationships through weights and activation functions, such as ReLU or Sigmoid, thereby improving the accuracy and generalization ability of the recommendation system.

[0052] More specifically, the training process of the product recommendation model at the client may include: searching for overlapping users and overlapping products in the source domain and the target domain to obtain overlapping domains; converting the overlapping users and overlapping products into the form of embedding vectors to obtain an overlapping domain embedding set; and uploading the overlapping domain embedding set as transferable information to the central server.

[0053] In the implementation, the client first needs to identify overlapping users and goods between the source domain (a domain with a large amount of user data and behavior data) and the target domain (a new domain with less data and needs to be predicted). These overlapping users and goods constitute an overlapping domain, which reflects the commonality between the two domains and can serve as the basis for knowledge transfer. Next, the client converts the overlapping users and goods into the form of embedded vectors, that is, into the form of numerical vectors through mathematical models (such as matrix decomposition) to capture the key features and relationships of users and goods, and express the original data in a compressed and efficient manner. Finally, the embedded vector is uploaded to the central server as transferable information, transmitted between the source domain and the target domain, and used to improve the recommendation model of the target domain. In this way, even when the target domain lacks sufficient user interaction data, by using the embedded information of similar users and goods in the source domain, the goods in the target domain can be effectively recommended.

[0054] In step 204, the central server aggregates the model parameters uploaded by different clients, determines the cross-domain transferable features from the source domain to the target domain, and sends the aggregated model parameters and cross-domain transferable features to the clients.

[0055] In implementation, in a federated learning environment, after the client uses local data to train the model, the central server can collect the model parameters uploaded by the client and aggregate the model parameters to determine which features can be successfully migrated from the source domain to the target domain, i.e., cross-domain transferable features. Cross-domain transferable features can be considered to have cross-domain applicability and can help understand and predict the behavior and preferences of new users in the target domain, especially new users who do not have enough historical interaction data. Afterwards, the central server sends the aggregated model parameters and cross-domain transferable features to the client.

[0056] Furthermore, when determining the cross-domain transferable features, the central server can simultaneously use the transferable information and model parameters uploaded by the client to determine the cross-domain transferable features from the source domain to the target domain.

[0057] Specifically, the central server can calculate the feature similarity between the interaction vectors in the transferable information in a dot product manner based on the attention mechanism; weight all features of the interaction vector based on the feature similarity to obtain the attention-weighted interaction vector; and generate a personalized preference function based on the attention-weighted interaction vector for calculating cross-domain transferable features.

[0058] Among them, the personalized preference function is defined by the interaction vector weighted by the attention mechanism, which is mainly used to illustrate that each user assigns different importance to different features based on their own historical interaction data. Specifically, the personalized preference function is a model calculated using the interaction history between users and items, which can predict the user's preference for unknown items. The central server extracts the interaction vector from the transferable information, and uses the dot product to calculate the feature similarity between the interaction vectors, and then determines the attention weights from these similarity scores (i.e., feature similarity) through normalization operations, thereby achieving weighting of the features. The sum of these weighted features forms an attention-weighted interaction vector, which constitutes the core of the personalized preference function. The above process is actually part of personalized modeling, which can create a model for each user that reflects their unique preferences and interests. Based on this, the central server can use the personalized preference function to calculate cross-domain transferable features.

[0059] In step 206, the client configures the aggregated model parameters and uses the product recommendation model and the cross-domain transferable features to perform rating prediction for cold-start users in the target domain to generate product recommendation results for the target domain.

[0060] In implementation, the client can use the product embedding in the target domain and the user embedding obtained based on the cross-domain transferable features to obtain the predicted rating of the cold-start user after the inner product. Specifically, the client can generate an embedding vector for each product in the target domain. This vector is a low-dimensional dense representation of the product, capturing the key attributes and features of the product. The client can also obtain user data from the source domain, transform the user data to adapt to the target domain through cross-domain transferable features, and thus generate a user embedding suitable for the target domain. Once the product embedding and user embedding are obtained, the user's rating of the product can be predicted by calculating the inner product of the two embedding vectors. That is, after configuring the model parameters aggregated by the central server to the product recommendation model, the client can input the obtained inner product value into the product recommendation model to obtain the rating prediction of the cold-start user in the target domain, which is usually further converted into a specific rating, such as a rating of 1 to 5 stars, through an activation function or conversion step (such as adding a bias term or using a nonlinear function adjustment).

[0061] In one embodiment of the present application, Figure 3As shown, the goods recommendation process also includes step 208: based on the user's rating prediction and the real rating of the goods, the regularization term on the user side and the regularization term on the goods side, determine the cross-domain loss function, the regularization term on the user side includes the user's feature weight, the regularization term on the goods side includes the feature weight of the goods, and the cross-domain loss function is used to indicate the correlation loss between the user's predicted rating and the real rating of the goods; step 210: train the model parameters of the goods recommendation model by minimizing the cross-domain loss function.

[0062] Among them, the regularization term on the user side includes the user's feature weights, which are used to control the smoothness and stability of the model when learning user features. The specific form of the regularization term can be L1 regularization, L2 regularization or other forms of regularization; the regularization term on the goods side includes the feature weights of the goods, which are used to control the smoothness and stability of the model when learning the features of the goods. The cross-domain loss is the correlation loss between the user's predicted rating and the real rating of the goods. This loss term helps the model learn how to better associate between different domains, thereby improving the accuracy of the prediction. Specifically, the cross-domain loss can be defined by calculating the difference between the user's predicted rating and the real rating of the goods, and the mean square error (MSE) or other loss functions can be used. The regularization term on the user side, the regularization term on the goods side, and the cross-domain loss are combined to form the total loss function of the model. The goal of the model is to minimize the total loss function by adjusting the parameters to optimize the performance of the model. Finally, the historical data can be used to train the model, and the model parameters can be adjusted through optimization algorithms such as gradient descent to minimize the total loss function. During the training process, the model will consider the feature weights and cross-domain losses of the user side and the goods side at the same time to achieve better recommendation effects.

[0063] In one embodiment of the present application, before using the user and goods interaction data to train the model, the client can pre-process the interaction data, specifically, it can delete the user and goods interaction data without comment text in the source domain and the target domain, and filter the users with fewer than a first preset number of interactions and the goods with fewer than a second preset number of interactions. Deleting the user and goods interaction data without comment text in the source domain and the target domain can help ensure that each sample in the data set has enough information for the model to learn. The comment text often contains important clues to user preferences and product characteristics. The interaction data lacking such information may not be representative enough, thereby affecting the learning effect of the model. Filtering users with fewer than a first preset number of interactions and goods with fewer than a second preset number of interactions helps eliminate users and goods with less interaction data, because such data is not enough to build a reliable user preference or product characteristic model. Ensuring that users and goods have enough interactions can improve the quality of the data, so that the trained model can better capture complex patterns and relationships.

[0064] The goods recommendation system based on federated learning disclosed in this embodiment is adopted. First, by constructing a federated recommendation system framework, each storage center uses a local data set to train a recommendation model and uploads the model weight to a central server instead of sharing original data, which can effectively protect user privacy; second, a meta-recommendation module is adopted to learn the personalized information of new users, and transferable features are extracted using the interaction data and attention mechanism of the source domain, which helps to solve the recommendation problem of new users (cold start users) when there is a lack of sufficient interaction history data; third, a method combining meta-learning and attention mechanism is used to analyze and learn the interaction data between users and goods in different storage centers, so as to realize the effective transfer of knowledge from the source domain to the target domain, thereby improving the accuracy and efficiency of the recommendation system.

[0065] The following will provide additional explanations of the solutions of the embodiments of the present application in conjunction with specific formulas:

[0066] In this embodiment, there is a source domain and a target domain, and each domain has a user set U = {u1, u2, ...u M}, and a set of goods T = {t1, t2, ...t N}, and a rating matrix R, where M and N are the number of users and goods, respectively. For ease of distinction, the source domain user set, goods set, and rating matrix are represented as U s , T s , R s ,in represents the user's rating of the goods, and the user set, goods set and rating matrix in the target domain are represented as U t , T t , R t The overlapping users between the two domains are defined as U l =U s ∩U t , there is no shared goods between the two domains, so T s and T t Do not intersect.

[0067] It should be noted that when users and goods are converted into embedding vectors, users and goods The embedding vector is represented as and Where k represents the embedding dimension and d∈{s,t} is the domain label. i The sequential interaction sequence in the source domain can be expressed as Where n represents the number of interactive goods and n <M。U c It is manifested as only s Users who have rated lAs a medium for transferring knowledge from the source domain to the target domain, U c Rating of the target domain.

[0068] In each training, the central server randomly selects certain clients and distributes the representation learning model to them for local training. The clients use their data to train the model locally and upload the model parameters to the central server for update. The central server aggregates the model parameters and updates the global model. In the initialization phase, the central server randomly selects a certain proportion of clients and distributes the model to the clients for training. The data does not leave the local client. The client only trains the model and uploads the model parameters. After that, the local model training phase is completed by using generalized matrix factorization, and the embedding of users and goods is obtained. Taking user u and goods v in the source domain as an example, the user embedding and the goods embedding can be expressed as and Where k represents the dimension of embedding. Similarly, the user embedding and product embedding of the target domain can be expressed as and The user embedding and the item embedding are inner-producted and then fed into the fully connected layer of the generalized matrix factorization to obtain the prediction score. The formula is as follows:

[0069]

[0070] where h T Represents the weight of the fully connected layer. Taking the user end as an example, in the global model aggregation stage, the weights and other parameters on the client need to be uploaded to the central server for aggregation. The central server uses federated averaging as the aggregation algorithm to perform federated aggregation on the parameters. The aggregation process can be expressed by the following formula:

[0071]

[0072] Where W u represents the weight of user u on the server side, U train Represents the set of users participating in this round of training. c represents the user dataset of the local model, D u Represents the data set of user u. The central server distributes the aggregated model weight W to the client models participating in the training in this round, and then conducts the next round of training until the model converges. The training method of the cargo end is similar.

[0073] In this embodiment, the central server needs to learn the personalized preference function of the user, and first needs to obtain the personalized transferable preferences of the user from the interacting users. Because cold-start users have no interaction items in the target domain, it is necessary to use the interaction items in the source domain to learn transferable features that facilitate knowledge transfer. The idea of ​​the attention mechanism is used. First, the attention weight is calculated. For each feature pair, their similarity is calculated in the form of a dot product. Then, for each feature, its similarity with all other features is normalized by Softmax to obtain the attention weight of the feature to other features. Next, the interaction vector is calculated, and the sum of all features is weighted using the attention weight to obtain the attention-weighted interaction vector. This is done because for the target domain, irrelevant goods contribute little to learning the personalized preference function of the user, so the attention score in the goods embedding is learned through the attention network. The attention network can be expressed by the formula as follows:

[0074]

[0075] Among them i,j is the attention score, and o′ i,j =g(q v ,θ),o′ l represents the unnormalized attention score, For all candidates The exponential values ​​of the unnormalized attention scores in are summed. And o′ i,j =g(q v , θ), the attention score after Softmax[] normalization can help find useful interactive goods for cold start users. g(·) represents the attention network, θ represents the parameters of the attention network, and the feedforward network is used to represent the attention network. Different goods contribute differently to learning personalized transferable preferences. By performing weighted summation and using the attention mechanism on the goods embedding, the personalized preference transferable embedding of users can be expressed by the formula as follows:

[0076]

[0077] in Represents user u i Personalized transferable embedding, o i,j is the attention score of the product, and the attention score is used as the evaluation factor for product embedding The importance of personalized preference function in predicting personalized preference function. The personalized transferable features are then used as input to the meta-network to learn personalized preference function.

[0078] In this embodiment, a meta-network is used to learn the user's personalized transferable preferences, and the user's personalized preference transferable embedding is used as input. The meta-network can be expressed by the following formula:

[0079]

[0080] Where f() is the meta-network and φ is the parameter of the meta-network. The meta-network is represented by a feedforward network, and the personalized preference function is expressed by the formula as follows:

[0081]

[0082] in The user personalized preference vector generated by the meta-network, is the parameter of the personalized preference function. The linear layer is used as the personalized preference function. The personalized preference function is responsible for generating different user embeddings for different users. The user embedding after the cold start user personalized conversion is expressed by the formula as follows:

[0083]

[0084] in Embedding for cold-start users after personalized conversion, Represents user u i Embeddings in the source domain.

[0085] It should be noted that after the local embedding module and the meta-recommendation module, the cold start user is predicted based on the user embedding after the personalized conversion of the cold start user and the product embedding in the target domain, and then the inner product is performed. The formula is as follows:

[0086]

[0087] in is the user embedding after the cold start user personalization conversion, is the item embedding in the target domain. Recommendations are made to cold-start users by predicting their ratings in the target domain.

[0088] In this embodiment, in order to allow the client to train the model on the source domain, the loss function is defined as follows:

[0089]

[0090] Where D train represents the number of interactions between users and goods in the source domain, λ u represents the regularization term on the user side, λ v represents the regularization term on the item side, Represents the actual rating value of user u. Back propagation and stochastic gradient descent are used to effectively train the federated learning of decentralized data. When determining cross-domain transferable features, oriented mapping is used to minimize the distance, and the loss function is defined as follows:

[0091]

[0092] in represents the user embedding after the cold start user personalization conversion, Represents the user embedding in the target domain. Minimizing the distance oriented to the mapping will make the user embedding after the cold start user personalization transformation closer to the user embedding in the target domain.

[0093] The following will experiment with the product recommendation process provided by the example of this application. Among them, three major categories in the public data set Amazon data set are used as three fields, namely Movies and TV, Books, and CDs and Vinyl for experimentation. 30% of users are randomly selected as cold start users. The model does not know their interactions in the target domain, but is used to verify and test the model. The remaining 70% of users are used to train the model. In order to simulate overlapping users of different proportions, the model is tested by randomly selecting overlapping users in the training set and setting the proportion η to η∈{5%, 10%, 20%, 50%, 60%}. The specific parameters are set as follows: the embedding dimension of users and goods is 32, the batch size is 128, and the Adan learning rate is 0.01.

[0094] After training based on the above parameters, the comparison between the recommendation effect and the recommendation effect in the related technology is shown in Table 1, where the performance evaluation index includes the mean square error MSE.

[0095] Table 1:

[0096]

[0097] Algorithms in related technologies include:

[0098] (1) CMF: A transfer learning method that uses other relational data related to the predicted relation to improve the prediction performance when doing relational learning tasks.

[0099] (2) EMCDR: A framework for cross-domain recommendation and mapping that uses a multi-layer perceptron to capture the nonlinear mapping function across domains and then uses entities with sufficient data to learn the mapping function to improve robustness.

[0100] (3) CDLFM: A cross-domain latent feature mapping model that considers the similarity relationship between users in their rating behaviors, proposes matrix decomposition based on user similarity, and proposes three similarity metrics. A domain-based gradient boosting tree method is used for cross-domain knowledge transfer.

[0101] (4) DFM: A deep fusion model based on comments and content, which preserves more semantic information by extending the stacked denoising autoencoder and then uses a multi-layer perceptron to transfer user latent factors between the two domains.

[0102] (5) ANR: An end-to-end aspect-based model that performs aspect-based representation learning on users and items through an attention-based component to model the aspect process behind how users evaluate items.

[0103] According to the results in Table 1, the recommended method proposed in this application has achieved better results in the MSE indicators of the three cross-domain scenarios compared with the benchmark algorithm. Compared with the best performing model in the benchmark model, the MSE indicators have been improved by 4.50%, 3.53% and 3.71% respectively.

[0104] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0105] Based on the same inventive concept, the embodiment of the present application also provides a method for recommending goods based on federated learning, the method comprising:

[0106] Establish a federated learning framework, use each storage center as the client of the federated learning framework, and use the central server as the server of the federated learning framework, where:

[0107] The client trains a product recommendation model based on the user and product interaction data in the local source domain, and uploads the trained model parameters to the central server;

[0108] The central server aggregates the model parameters uploaded by different clients, determines the cross-domain transferable features from the source domain to the target domain, and sends the aggregated model parameters and cross-domain transferable features to the client;

[0109] The client configures the aggregated model parameters, and uses the product recommendation model and the cross-domain transferable features to perform rating prediction for cold-start users in the target domain to generate product recommendation results for the target domain.

[0110] In one embodiment, the client trains a product recommendation model based on user and product interaction data in a local source domain, including:

[0111] The generalized matrix factorization model with a fully connected layer is used as the product recommendation model.

[0112] The client trains the product recommendation model using the user set, product set and rating matrix in the local source domain.

[0113] In one embodiment, the method further comprises:

[0114] The client searches for overlapping users and overlapping goods in the source domain and the target domain to obtain overlapping domains;

[0115] The client converts overlapping users and overlapping goods into the form of embedding vectors to obtain an overlapping domain embedding set;

[0116] The client uploads the overlapping domain embedding set as transferable information to the central server;

[0117] The central server determines the cross-domain transferable features from the source domain to the target domain based on the model parameters and transferable information uploaded by different clients, and sends the cross-domain transferable features to the clients.

[0118] In one embodiment, the method further comprises:

[0119] The central server calculates the feature similarity between the interaction vectors in the transferable information in a dot product manner based on an attention mechanism;

[0120] The central server weights all features of the interaction vector based on the feature similarity to obtain an attention-weighted interaction vector;

[0121] The central server generates a personalized preference function for calculating the cross-domain transferable features based on the attention-weighted interaction vector.

[0122] In one embodiment, the client configures the aggregated model parameters and uses the product recommendation model and the cross-domain transferable features to perform rating prediction for cold-start users in the target domain, including:

[0123] The predicted rating of the cold start user is obtained by utilizing the product embedding in the target domain and the user embedding obtained based on the cross-domain transferable feature transformation after inner product.

[0124] In one embodiment, the method further comprises:

[0125] The client determines a cross-domain loss function based on the user's rating prediction and the real rating of the goods, the regularization term on the user side and the regularization term on the goods side, wherein the regularization term on the user side includes the user's feature weight, the regularization term on the goods side includes the feature weight of the goods, and the cross-domain loss function is used to indicate the correlation loss between the user's predicted rating and the real rating of the goods;

[0126] The client trains the model parameters of the product recommendation model by minimizing the cross-domain loss function.

[0127] In one embodiment, the method further comprises:

[0128] The client deletes the user and product interaction data without comment text in the source and target domains;

[0129] The client filters users whose interaction times are less than a first preset number and goods whose interaction times are less than a second preset number.

[0130] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0131] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange data between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for recommending goods based on federated learning is implemented.

[0132] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0133] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the processing of the client or central server in the above-mentioned embodiments is implemented.

[0134] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processing of the client or central server in the above embodiments is implemented.

[0135] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the processing of the client or central server in the above-mentioned embodiments.

[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The processor involved in each embodiment provided in this application can be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but is not limited thereto.

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0138] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A goods recommendation system based on federated learning, characterized in that: The system is based on a federated learning framework, with each storage center as a client of the federated learning framework and the central server as a server of the federated learning framework, wherein: The client trains a product recommendation model based on the user and product interaction data in the local source domain, and uploads the trained model parameters to the central server; The central server aggregates the model parameters uploaded by different clients, determines the cross-domain transferable features from the source domain to the target domain, and sends the aggregated model parameters and cross-domain transferable features to the client; The client configures the aggregated model parameters, and uses the product recommendation model and the cross-domain transferable features to perform rating prediction for cold-start users in the target domain to generate product recommendation results for the target domain.

2. The goods recommendation system according to claim 1, characterized in that: The client trains a product recommendation model based on user and product interaction data in a local source domain, including: The generalized matrix factorization model with a fully connected layer is used as the product recommendation model. The client trains the product recommendation model using the user set, product set and rating matrix in the local source domain.

3. The goods recommendation system according to claim 2, characterized in that: The client is also used to: Find overlapping users and overlapping goods in the source domain and the target domain to obtain overlapping domains; Convert overlapping users and overlapping goods into the form of embedding vectors to obtain an overlapping domain embedding set; uploading the overlapping domain embedding set as transferable information to a central server; The central server is specifically used for: The central server determines the cross-domain transferable features from the source domain to the target domain based on the model parameters and transferable information uploaded by different clients, and sends the cross-domain transferable features to the clients.

4. The goods recommendation system according to claim 3, characterized in that: The central server is used to: Based on the attention mechanism, the feature similarity between the interaction vectors in the transferable information is calculated in a dot product manner; Weighting all features of the interaction vector based on the feature similarity to obtain an attention-weighted interaction vector; A personalized preference function for calculating the cross-domain transferable feature is generated based on the attention-weighted interaction vector.

5. The goods recommendation system according to claim 1, characterized in that: The client is used to: The predicted rating of the cold start user is obtained by utilizing the product embedding in the target domain and the user embedding obtained based on the cross-domain transferable feature transformation after inner product.

6. The goods recommendation system according to claim 1, characterized in that: The client is also used to: Based on the rating prediction of the user and the real rating of the goods, the regularization term on the user side and the regularization term on the goods side, a cross-domain loss function is determined, wherein the regularization term on the user side includes the feature weight of the user, the regularization term on the goods side includes the feature weight of the goods, and the cross-domain loss function is used to indicate the correlation loss between the predicted rating of the user and the real rating of the goods; The model parameters of the product recommendation model are trained by minimizing the cross-domain loss function.

7. The goods recommendation system according to claim 1, characterized in that: The client is also used to: Delete the user and product interaction data without comment text in the source and target domains; Filter out users whose interaction times are less than a first preset number and goods whose interaction times are less than a second preset number.

8. A cargo recommendation method for an intelligent stacker based on federated learning, characterized in that: The method comprises: Establish a federated learning framework, use each storage center as the client of the federated learning framework, and use the central server as the server of the federated learning framework, where: The client trains a product recommendation model based on the user and product interaction data in the local source domain, and uploads the trained model parameters to the central server; The central server aggregates the model parameters uploaded by different clients, determines the cross-domain transferable features from the source domain to the target domain, and sends the aggregated model parameters and cross-domain transferable features to the client; The client configures the aggregated model parameters, and uses the product recommendation model and the cross-domain transferable features to perform rating prediction for cold-start users in the target domain to generate product recommendation results for the target domain.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processing performed by the client or the central server in any one of the methods of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the processing performed by the client or the central server in any one of the methods of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Construction method of adaptive learning model

    CN119918623A

  • Federal social recommendation method and device based on adaptive diffusion denoising

    CN121278188A

  • Distributed cross-border storage network inventory management method and system based on federated learning

    CN121616198A