Cross-domain recommendation method and device, electronic equipment and readable storage medium

Through the combination of knowledge transfer and dynamic weight model, the problem of domain offset in cross-domain recommendation is solved, the accuracy and performance of the recommendation system are improved, dynamic knowledge transfer between the source domain and the target domain is realized, and domain offset is reduced. influence of the phenomenon.

CN118568341AActive Publication Date: 2024-08-30SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410624120.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-30
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

Due to the differences in data volume and feature structure between the source domain and the target domain, existing cross-domain recommendation systems lead to negative transfer of knowledge, affecting recommendation performance.

Method used

By obtaining source domain and target domain data information, use the knowledge transfer model to extract the target domain feature vector, migrate the source domain data information to the target domain feature vector, combine the dynamic weight model to calculate the information transfer weight, and use the click-through rate prediction model to calculate the click-through rate Calculate and generate a project recommendation list to reduce domain shift.

Benefits of technology

It improves the accuracy and performance of cross-domain recommendation, enhances the recommendation effect of the target domain, and reduces the negative impact in knowledge transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568341A
    Figure CN118568341A
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, and provides a cross-domain recommendation method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring source domain data information and target domain data information; performing feature extraction on the target domain data information through a knowledge migration model to obtain a target domain feature vector, and migrating the source domain data information knowledge to the target domain feature vector through the knowledge migration model to obtain a migration feature vector corresponding to the target domain data information; calculating an information transfer weight of each piece of source domain sample information based on the migration feature vector through a dynamic weight model to obtain an information transfer weight vector; performing click rate calculation on each item migration feature vector and the target object migration feature vector based on the information transfer weight vector through a click rate prediction model to obtain a predicted click rate of an item corresponding to each item data information; and obtaining an item recommendation list based on each predicted click rate. According to the method, the recommendation effect of cross-domain recommendation is improved through dynamic adjustment of the weight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a cross-domain recommendation method, device, electronic device and readable storage medium. Background Art

[0002] The recommendation system is a typical application of big data in the Internet field. As an effective redundant information filtering tool, it can automatically match users and items, perform personalized calculations on users' interest preferences based on historical data, and efficiently filter out project information that meets users' interests from massive information. However, most research on recommendation systems focuses on traditional single-domain click-through rate prediction. Single-domain recommendations still face the challenges of data sparsity and cold start problems, resulting in the inability of personalized recommendations to meet user needs.

[0003] In existing cross-domain recommendations, the available information of users in different domains is taken into account, and the characteristic information of each unique user is integrated and learned to provide useful information that meets the personalized needs of users. Deep learning technology is used to process large-scale data information aggregated from different domains to achieve knowledge transfer from the source domain to the target domain. However, due to the significant differences in data volume and feature structure between the source domain and the target domain, this may lead to negative transfer of knowledge transfer and have a negative impact on the recommendation performance of the target domain.

[0004] Therefore, a cross-domain recommendation method is urgently needed to reduce the domain shift phenomenon in knowledge transfer. Summary of the invention

[0005] In view of this, embodiments of the present application provide a cross-domain recommendation method, device, electronic device, and readable storage medium to solve the problem of inaccurate cross-domain recommendation caused by domain shift in the prior art.

[0006] A first aspect of an embodiment of the present application provides a cross-domain recommendation method, including:

[0007] Acquire source domain data information and target domain data information, the source domain data information includes multiple source domain sample information, and the target domain data information includes target object data information and multiple project data information;

[0008] The target domain data information is extracted by the knowledge transfer model to obtain the target domain feature vector, and the source domain data information knowledge is transferred to the target domain feature vector by the knowledge transfer model to obtain the migration feature vector corresponding to the target domain data information. The migration feature vector includes the target object migration feature vector and multiple project migration feature vectors;

[0009] The information transfer weight of each source domain sample information is calculated based on the migration feature vector through a dynamic weight model to obtain an information transfer weight vector, which includes all information transfer weights.

[0010] Through the click-through rate prediction model, the click-through rate of each project migration feature vector and the target object migration feature vector is calculated based on the information transfer weight vector to obtain the predicted click-through rate of the project corresponding to each project data information;

[0011] An item recommendation list is obtained based on each predicted click-through rate, and the item recommendation list includes a plurality of items arranged based on the predicted click-through rate.

[0012] A second aspect of an embodiment of the present application provides a cross-domain recommendation device, including:

[0013] An acquisition module is used to acquire source domain data information and target domain data information, wherein the source domain data information includes a plurality of source domain sample information, and the target domain data information includes a target object data information and a plurality of project data information;

[0014] The knowledge transfer module is used to extract the features of the target domain data information through the knowledge transfer model to obtain the target domain feature vector, and to transfer the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain the migration feature vector corresponding to the target domain data information. The migration feature vector includes the target object migration feature vector and multiple project migration feature vectors.

[0015] A weight module is used to calculate the information transfer weight of each source domain sample information based on the migration feature vector through a dynamic weight model to obtain an information transfer weight vector, where the information transfer weight vector includes all information transfer weights;

[0016] The first execution module is used to calculate the click rate of each project migration feature vector and the target object migration feature vector based on the information transfer weight vector through the click rate prediction model to obtain the predicted click rate of the project corresponding to each project data information;

[0017] The second execution module is used to obtain an item recommendation list based on each predicted click-through rate, where the item recommendation list includes multiple items arranged based on the predicted click-through rate.

[0018] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0019] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0020] Compared with the prior art, the embodiments of the present application have the following beneficial effects: by acquiring source domain data information and target domain data information, the target domain data information is feature extracted through a knowledge transfer model, key information in the target domain data information is extracted to obtain a target domain feature vector, and then the source domain data information knowledge is transferred to the target domain feature vector through a knowledge transfer model, and the feature representation of the target domain feature vector is enhanced using the source domain data information to obtain a migration feature vector, and then the information transfer weight of the source domain data information is calculated based on the migration feature vector through a dynamic weight model, and then the click-through rate of each project migration feature vector and the target object migration feature vector is calculated based on the information transfer weight vector through a click-through rate prediction model, so as to realize dynamic and adaptive knowledge transfer between the source domain and the target domain, reduce the domain offset phenomenon of data, and improve the accuracy of the predicted click-through rate of the projects corresponding to the obtained project data information, and finally obtain a project recommendation list based on each predicted click-through rate, thereby improving the accuracy of cross-domain recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0022] Figure 1 is a schematic diagram of an application scenario of an embodiment of the present application;

[0023] Figure 2 It is a flowchart of a cross-domain recommendation method provided in an embodiment of the present application;

[0024] Figure 3 It is a schematic diagram of a process for obtaining a joint loss function provided in an embodiment of the present application;

[0025] Figure 4 is a structural diagram of a cross-domain recommendation device provided in an embodiment of the present application;

[0026] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0028] Figure 1 1 is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a server 104, and a network 105.

[0029] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be hardware or software. When the first terminal device 101, the second terminal device 102, and the third terminal device 103 are hardware, they can be various electronic devices with display screens and supporting communication with the server 104, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers; when the first terminal device 101, the second terminal device 102, and the third terminal device 103 are software, they can be installed in the electronic devices described above. The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be implemented as multiple software or software modules, or as a single software or software module, which is not limited in the embodiment of the present application. Further, various applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as data processing applications, instant messaging tools, social platform software, search applications, shopping applications, etc.

[0030] The server 104 may be a server that provides various services, for example, a background server that receives a request sent by a terminal device that establishes a communication connection with the server, and the background server may receive and analyze the request sent by the terminal device, and generate a processing result. The server 104 may be a single server, or a server cluster composed of several servers, or a cloud computing service center, which is not limited in the present embodiment of the application.

[0031] It should be noted that the server 104 can be hardware or software. When the server 104 is hardware, it can be various electronic devices that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103. When the server 104 is software, it can be multiple software or software modules that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103, or it can be a single software or software module that provides various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103, and the embodiment of the present application does not limit this.

[0032] The network 105 can be a wired network connected by coaxial cable, twisted pair and optical fiber, or it can be a wireless network that can interconnect various communication devices without wiring, such as Bluetooth, Near Field Communication (NFC), infrared, etc., which is not limited in the embodiments of the present application.

[0033] The user can establish a communication connection with the server 104 via the network 105 through the first terminal device 101, the second terminal device 102 and the third terminal device 103 to receive or send information, etc. Specifically, after the user imports the collected source domain data information and target domain data information into the server 104, the server 104 extracts the features of the target domain data information through the knowledge transfer model to obtain the target domain feature vector, and then transfers the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain the migration feature vector corresponding to the target domain data information; through the dynamic weight model, the information transfer weight of each source domain sample information is calculated based on the migration feature vector to obtain the information transfer weight vector; through the click-through rate prediction model, the click-through rate of each project migration feature vector and the target object migration feature vector is calculated based on the information transfer weight vector to obtain the predicted click-through rate of the project corresponding to each project data information; based on each predicted click-through rate, a project recommendation list is obtained.

[0034] It should be noted that the specific types, quantities and combinations of the first terminal device 101, the second terminal device 102 and the third terminal device 103, the server 104 and the network 105 can be adjusted according to the actual needs of the application scenario, and the embodiments of the present application do not limit this.

[0035] Figure 2 It is a flowchart of a cross-domain recommendation method provided in an embodiment of the present application. Figure 2 The cross-domain recommendation method can be Figure 1 The terminal device or server executes. Figure 2 As shown, the cross-domain recommendation method includes:

[0036] S201, obtaining source domain data information and target domain data information, where the source domain data information includes a plurality of source domain sample information, and the target domain data information includes a target object data information and a plurality of project data information;

[0037] S202, extracting features from the target domain data information through the knowledge transfer model to obtain a target domain feature vector, and transferring the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain a transfer feature vector corresponding to the target domain data information, wherein the transfer feature vector includes a target object transfer feature vector and multiple project transfer feature vectors;

[0038] S203, calculating the information transfer weight of each source domain sample information based on the migration feature vector through a dynamic weight model to obtain an information transfer weight vector, where the information transfer weight vector includes all information transfer weights;

[0039] S204, using a click rate prediction model, based on the information transfer weight vector, the click rate of each project migration feature vector and the target object migration feature vector is calculated to obtain the predicted click rate of the project corresponding to each project data information;

[0040] S205 , obtaining an item recommendation list based on each predicted click-through rate, wherein the item recommendation list includes a plurality of items arranged based on the predicted click-through rate.

[0041] The source domain data information and the target domain data information are obtained, and then the target domain data information is extracted through the knowledge transfer model and the source domain data information knowledge is transferred to the target domain feature vector to realize the migration and sharing of cross-domain knowledge. Then, the information transfer weight is calculated through the dynamic weight model, and the click-through rate prediction model is used to calculate the click-through rate of each project migration feature vector and the target object migration vector based on the information transfer weight vector, thereby realizing dynamic adjustment of the information transfer weight when calculating the click-through rate, reducing the negative migration phenomenon of knowledge migration, and making the project recommendation list generated based on the predicted click-through rate more accurate.

[0042] In S201, source domain data information and target domain data information are obtained, where the source domain data information includes a plurality of source domain sample information, and the target domain data information includes target object data information and a plurality of project data information.

[0043] Specifically, the source domain refers to a data information set used for information improvement in the target domain in cross-domain recommendation, representing a specific recommendation scenario, such as movie recommendation, music recommendation, e-commerce product recommendation, etc. Each scenario has its own business logic and user behavior pattern. The source domain data information includes multiple source domain sample information, which refers to various interactive behavior records generated by users in the corresponding recommendation scenarios in the source domain, such as browsing, clicking, collecting, purchasing, and rating, etc., reflecting the user's interest preferences, behavior patterns, consumption habits, and other information in the source domain. The target domain refers to the target domain that needs to be recommended, which contains multiple items to be recommended. The target domain data information includes target object data information and multiple item data information. The target object information refers to a series of attributes and behavior records related to the target object, including user identification, user attributes, and user historical behavior, where the user identification refers to the identification information that records the unique identity of the target object; user attributes describe the basic characteristics of the target object, such as age, gender, occupation, geographic location, consumption level, etc.; user historical behavior refers to the historical behavior of the target object in the target domain, such as clicking, purchasing, rating, collecting, browsing time, search keywords, etc., revealing the target object's interest preferences, consumption habits, and potential needs in the target domain. Project data information refers to the relevant information carried by the recommended project, including but not limited to project identification, project attributes, project content, and project evaluation. The project identification is used to uniquely identify a project, such as a product code, article number, etc.; the project attributes describe the characteristics of the project itself. For example, when the recommended project in the target domain is a product, the project attributes can be the product category, brand, price, color, and size; when the recommended project in the target domain is an article, the project attributes can be the subject, author, and publication time of the article; the project content refers to the specific information of the project; the project evaluation is the user's feedback data such as ratings, comments, likes, and number of collections on the project, which reflects the popularity and reputation of the project among the user group.

[0044] By obtaining source domain data information and target domain data information, data support is provided for target domain project recommendation.

[0045] In S202, feature extraction is performed on the target domain data information through the knowledge transfer model to obtain a target domain feature vector, and the source domain data information knowledge is transferred to the target domain feature vector through the knowledge transfer model to obtain a migration feature vector corresponding to the target domain data information. The migration feature vector includes a target object migration feature vector and multiple project migration feature vectors.

[0046] Specifically, the knowledge transfer model is a representation learning model based on deep neural networks, such as multi-layer perceptrons, convolutional neural networks, recurrent neural networks, etc., which are used to extract feature vectors of target domain data information. The source domain data information knowledge can also be transferred to the target domain feature vector through the knowledge transfer model. Among them, the multi-layer perceptron is a feedforward neural network, which contains at least three layers of nodes: input layer, hidden layer and output layer. The multi-layer perceptron learns the mapping relationship from input data to output data through nonlinear activation functions, which can be used for tasks such as classification and regression. In knowledge transfer, the multi-layer perceptron extracts feature representations of the source domain and the target domain, and then adjusts these features through specific algorithms to facilitate effective prediction or classification in the target domain; convolutional neural network is a deep learning architecture suitable for processing data with grid-like topological structures, such as images and videos. Convolutional neural networks learn the spatial hierarchical features of data by using a series of convolutional layers. Each convolutional layer applies multiple filters to extract local features and introduces nonlinearity through nonlinear activation functions to enhance the expressiveness of the model. Convolutional neural networks can extract useful features from the source domain and transfer these features to the target domain through appropriate strategies, such as adjusting network weights to adapt to new data distributions, or reducing feature differences between source and target domains through domain adaptation techniques. Recurrent neural networks are a deep learning model specifically designed to process sequence data. By introducing recurrent connections in the network, information can be transferred between different time points in the sequence, thereby capturing long-term dependencies in time series data. Recurrent neural networks apply knowledge and patterns learned in one field or task to another related field or task, realizing knowledge transfer from the source domain to the target domain.

[0047] The knowledge transfer model inputs the target domain data information and outputs the migration feature vector. The processing formula used is as follows:

[0048] X s =f r (F s θ r );

[0049] X t =f r (F t θ r );

[0050] Among them, X s represents the target object migration feature vector; X t represents the project migration feature vector; F s Indicates the target object data information; F t Indicates project data information; f r represents the function used by the knowledge transfer model; θ rRepresents the parameters of the knowledge transfer model.

[0051] The knowledge transfer model extracts features of the source domain and the target domain through deep neural networks, such as multi-layer perceptron, convolutional neural network, and recurrent neural network, and transfers the knowledge of the source domain to the target domain through various transfer strategies to improve the generalization ability and performance of cross-domain recommendation tasks in the target domain.

[0052] In S203, the information transfer weight of each source domain sample information is calculated based on the migration feature vector by using a dynamic weight model to obtain an information transfer weight vector, where the information transfer weight vector includes all information transfer weights;

[0053] Specifically, the dynamic weight model is a network model based on the attention mechanism. After receiving the migration feature vector, it calculates the information transfer weight of each source domain sample information in the migration feature vector after knowledge transfer based on the data similarity between the source domain and the target domain. The attention mechanism, as an important component of the neural network, is responsible for solving and quantifying interdependencies. Between the source domain and the target domain, the attention mechanism helps to reveal the commonalities and differences in user behavior patterns, project attributes, or domain-specific factors, quantify the similarity of data between the two domains, and assign a weight to each source domain sample by calculating the attention score, reflecting the potential contribution of the corresponding source domain sample to the prediction ability of the target domain model. The calculation formula of the dynamic weight model is as follows:

[0054] W s =f i (X s ,X t θ i );

[0055] Among them, W s represents the information transfer weight vector; f i represents the function used by the dynamic weight model; X s represents the target object migration feature vector; X t represents the project migration feature vector; θ i Represents the parameters of the knowledge transfer model.

[0056] The dynamic weight model assigns an information transfer weight to each source domain sample information, and the information transfer weights of the source domain samples are aggregated to form an information transfer weight vector. The information transfer weight vector contains the relative importance of all source domain samples in the cross-domain recommendation task, reflecting the specific contribution distribution of source domain knowledge in target domain modeling, so that in the subsequent click-through rate calculation, the attention to the source domain data information is adjusted, and the dynamic adjustment of information transfer in the migration of source domain data knowledge to the target domain is realized, which improves the effect of representation learning and the accuracy of predicted click-through rate.

[0057] In S204, the click rate prediction model is used to calculate the click rate of each item migration feature vector and the target object migration feature vector based on the information transfer weight vector to obtain the predicted click rate of the item corresponding to each item data information.

[0058] Specifically, the click-through rate prediction model uses logistic regression as the basic framework to achieve click-through rate prediction. Logistic regression predicts a probability value through a linear model, and maps the output of the linear model to (0,1) through a logistic function to obtain a probability value, which is used as the predicted click-through rate of the corresponding project migration feature vector. The formula for calculating the click-through rate is as follows:

[0059] Y t =f p ([X s ,X t ],W s θ p );

[0060] Among them, Y t represents the predicted click rate of the corresponding item migration feature vector; f p represents the function used by the click rate prediction model; X s represents the target object migration feature vector; X t represents the project migration feature vector; W s refers to the information transfer weight vector; θ p Represents the parameters of the click-through rate prediction model.

[0061] Through the click-through rate prediction model, the predicted click-through rate of the corresponding item migration feature vector is calculated based on the information transfer weight vector. Since the information transfer weight obtained in the dynamic weight model is added, the dynamic and adaptive knowledge transfer between the source domain and the target domain is realized based on the information transfer weight during the calculation process. At the same time, the negative transfer phenomenon is reduced, the accuracy of the predicted click-through rate calculation is improved, and the performance and effect of cross-domain recommendation are improved.

[0062] In S205 , an item recommendation list is obtained based on each predicted click rate, and the item recommendation list includes a plurality of items arranged based on the predicted click rate.

[0063] Specifically, the predicted click-through rate reflects the target object's attention to each item in the target domain, that is, the target object is more likely to be interested in or demand for items with high predicted click-through rates. Therefore, the item recommendation list obtained based on each predicted click-through rate can be: arrange the items in the target domain in order of predicted click-through rates, and then filter out recommended items by setting a preset threshold of the predicted click-through rate or a preset number of items, and finally form a project recommendation list.

[0064] According to the technical solution provided by the embodiment of the present application, by obtaining source domain data information and target domain data information, the source domain data information is used as a data set to improve the target domain information. In the knowledge transfer model, the target domain data information is subjected to feature extraction to obtain a target domain feature vector, and then the source domain data information knowledge is transferred to the target domain feature vector to obtain a migration feature vector, so that when predicting the click rate of items in the target domain, the source domain data information is combined to enrich the knowledge of the target domain and improve the recommendation effect of the target domain. Then, the information transfer weight of each source domain sample in the source domain is calculated through a dynamic weight model to obtain an information transfer weight vector, thereby realizing dynamic and automatic information transfer from the source domain to the target domain. Adaptive transfer guides the model to effectively extract useful information from the source domain while avoiding or mitigating the negative transfer effect, that is, preventing invalid or harmful knowledge in the source domain from having a negative impact on the target domain prediction. Afterwards, in the click-through rate prediction model, the click-through rate of each project migration feature vector and the target object migration feature vector is calculated based on the information transfer weight. The features are comprehensively processed through the nonlinear function inside the logistic regression model to generate a probability value between 0 and 1, namely the predicted click-through rate, which indicates the probability of the target object clicking on the project. The project recommendation list is obtained based on each predicted click-through rate. The recommendation effect of cross-domain recommendation is improved through the dynamic adjustment of the information transfer weight.

[0065] In some embodiments, after calculating the click rate of each project migration feature vector and the target object migration feature vector based on the information transfer weight vector through the click rate prediction model and obtaining the predicted click rate of the project corresponding to each project data information, the method further includes:

[0066] Obtain domain labels corresponding to the reconstructed network model and target domain data information, reconstruct all migration feature vectors based on the domain labels through the reconstructed network model, and obtain reconstructed feature vectors corresponding to each migration feature vector, wherein the reconstructed feature vectors include a target object reconstructed feature vector corresponding to the target object migration feature vector, and a project reconstructed feature vector corresponding to each project migration feature vector;

[0067] The reconstruction loss function of the reconstructed network model is obtained, and the parameters of the knowledge transfer model, the dynamic weight model, the click rate prediction model and the reconstructed network model are updated based on the reconstructed feature vector and the reconstruction loss function.

[0068] Specifically, the reconstruction network model is a network model based on an autoencoder, which can retain domain-specific features as an auxiliary task. The autoencoder architecture is a typical unsupervised learning method, consisting of an encoder and a decoder. The encoder is responsible for compressing the input data into a low-dimensional latent space, while the decoder restores the original data from the latent space, thereby realizing self-reconstruction of the data. The encoder jointly encodes the input user and project representation vectors and domain labels, compresses them into a low-dimensional latent vector, and then uses the encoded latent vector to restore the reconstructed feature vector. The reconstructed feature vector retains the main features of the original representation. At the same time, due to the integration of domain label information in the encoding process, while maintaining the integrity of the original information, it enhances the discrimination and adaptability of different domain characteristics. Among them, the reconstruction network model reconstructs all migration feature vectors based on domain labels, and the formula for obtaining the reconstructed feature vector corresponding to each migration feature vector is as follows:

[0069] Z s =f e ([X s ,L s ];θ e );

[0070] Z t =f e ([X t ,L t ];θ e );

[0071]

[0072]

[0073] Among them, Z s Represents the target object migration feature vector after encoding; Z t represents the encoded item migration feature vector; f e Represents the encoding function used by the reconstruction network model; L s refers to the domain label corresponding to the target object migration feature vector; L t refers to the domain label corresponding to the project migration feature vector; θ e Represents the parameters used by the encoder of the reconstruction network model; Refers to the reconstructed feature vector of the target object; refers to the item reconstruction feature vector; f d Represents the decoding function used by the reconstruction network model.

[0074] The reconstruction loss function measures the reconstruction error between the migrated feature vector and the reconstructed feature vector. The reconstruction loss function L r The calculation formula is as follows:

[0075]

[0076] According to the technical solution provided in the embodiment of the present application, by obtaining the domain labels corresponding to the reconstructed network model and the target domain data information, all migration feature vectors are reconstructed based on the domain labels through the reconstructed network model, and the reconstructed feature vectors corresponding to each migration feature vector are obtained. The reconstruction loss function of the reconstructed network model is obtained, and the parameters of the knowledge transfer model, the dynamic weight model, the click-through rate prediction model and the reconstructed network model are updated based on the reconstructed feature vector and the reconstruction loss function. This helps to ensure that the model does not lose the ability to recognize key attributes of a specific domain while utilizing data from other domains, improves the accuracy and completeness of representation learning, and thereby improves the accuracy of click-through rate prediction in the target domain.

[0077] In addition, in some embodiments, obtaining a reconstruction loss function of the reconstructed network model, and updating the parameters of the knowledge transfer model, the dynamic weight model, the click rate prediction model, and the reconstructed network model based on the reconstructed feature vector and the reconstruction loss function include:

[0078] Obtain a classification model, and obtain a domain classification label corresponding to each migration feature vector through the classification model;

[0079] Obtain the classification loss function of the classification model, and update the parameters of the knowledge transfer model, dynamic weight model, click-through rate prediction model, reconstruction network model, and classification model based on the domain classification label, classification loss function, reconstruction feature vector, and reconstruction loss function.

[0080] Specifically, the classification model uses an adversarial learning mechanism to evaluate the degree to which the source domain data improves the click-through rate prediction performance of the target domain, and quantifies the impact of the source domain data on the click-through rate prediction ability of the target domain through the adversarial training process. The classification model inputs the migration feature vector and the binary classifier to determine whether the migration feature vector belongs to the source domain or the target domain, which helps to evaluate the actual impact of the source domain data on the target domain recommendation performance after it is migrated to the target domain. By distinguishing the source domain and target domain data, the classification model helps to identify and quantify the source domain information that has information gain or negative migration effects on the target domain recommendation effect. At the same time, the classification model uses the classification loss function of the classification model to adjust the model parameters in the adversarial training process, so that the source domain data can adapt to the data distribution characteristics of the target domain as much as possible after being migrated to the target domain, thereby reducing the recommendation performance degradation caused by domain differences. Among them, the calculation formula of the classification model for the migration feature vector is as follows:

[0081] D s =f a (X s θ a );

[0082] Dt =f a (X t θ a );

[0083] Among them, D s represents the domain classification label corresponding to the target object migration feature vector; D t represents the domain classification label corresponding to the project migration feature vector; f a Represents the function used by the classification model; X s represents the target object migration feature vector; X t represents the project migration feature vector; θ a Represents the parameters of the click-through rate prediction model.

[0084] The formula of the classification loss function La is as follows:

[0085]

[0086] According to the technical solution provided in this embodiment, by obtaining a classification model, each migration feature vector is used as input to distinguish the data of the source domain and the target domain, and then the classification loss function of the classification model is obtained. The knowledge transfer model, dynamic weight model, click-through rate prediction model, reconstruction network model and parameters of the classification model are updated based on the domain classification label, classification loss function, reconstructed feature vector and reconstruction loss function to maximize the domain classification error, so that the knowledge transfer model can focus on learning the feature information shared by the source domain and the target domain, reduce the decrease in click-through rate prediction performance caused by the difference in information when migrating the source domain knowledge to the target domain feature vector, and thus improve the effect of cross-domain recommendation.

[0087] In some embodiments, obtaining a classification loss function of a classification model, and updating parameters of a knowledge transfer model, a dynamic weight model, a click rate prediction model, a reconstruction network model, and a classification model based on the domain classification label, the classification loss function, the reconstruction feature vector, and the reconstruction loss function include:

[0088] Obtaining a true label of the target domain data information, where the true label indicates a true click rate of an item corresponding to each item of the target domain data information;

[0089] Obtain the weight loss function corresponding to the dynamic weight model and the click rate loss function corresponding to the click rate prediction model;

[0090] According to the corresponding preset weights, the weight loss function, click rate loss function, reconstruction loss function and classification loss function are weighted and summed to obtain a joint loss function;

[0091] The joint loss value is obtained based on the domain classification label, the reconstructed feature vector, the true click rate and the joint loss function, and the parameters of the knowledge transfer model, the dynamic weight model, the click rate prediction model, the reconstruction network model and the classification model are updated based on the joint loss value.

[0092] Specifically, the true label indicates the true click rate of the project corresponding to each project data information in the target domain data information. The preset weight is a quantitative reflection of the relative importance of the weight loss function, click rate loss function, reconstruction loss function and classification loss function for the target domain project recommendation, taking into account the optimization requirements of the knowledge transfer model, dynamic weight model, click rate prediction model, reconstruction network model and classification model. The preset weight is set according to the actual situation, and the preset weight is adjusted to flexibly adjust the focus of model optimization to cope with different business needs, data characteristics or model performance bottlenecks. The joint loss function integrates the loss functions together to form a unified optimization goal, realizes multi-task learning, and improves the overall performance of the system. Weight loss function L i And the click rate loss function L pn The loss function formula is as follows:

[0093]

[0094]

[0095] W s Refers to the information transfer weight vector; Y t Represents the predicted click rate of the corresponding item migration feature vector.

[0096] The calculation formula of the joint loss function L is as follows:

[0097] L=L r +λ1L a +λ2L i +λ3L pn ;

[0098] Among them, L r represents the reconstruction loss function; L a represents the reconstruction loss function; L i represents the reconstruction loss function; L pn represents the reconstruction loss function. λ1, λ2, and λ3 are all hyperparameters, indicating the weight distribution of the reconstruction loss function, classification loss function, weight loss function, and click-through rate loss function. λ1 corresponds to the preset weight of the classification loss function in the joint loss function, λ2 corresponds to the preset weight of the weight loss function in the joint loss function, and λ3 corresponds to the preset weight of the click-through rate loss function in the joint loss function.

[0099] According to the technical solution provided by this embodiment, by obtaining the real label of the target domain data information, the loss function is calculated based on the real label to guide the parameter optimization of the model, and then the weight loss function corresponding to the dynamic weight model and the click-through rate loss function corresponding to the click-through rate prediction model are obtained. According to the corresponding preset weights, the weight loss function, the click-through rate loss function, the reconstruction loss function and the classification loss function are weighted and summed to obtain the joint loss function. The joint loss function comprehensively reflects the performance of the entire cross-domain recommendation in knowledge transfer, weight allocation, click-through rate prediction, feature reconstruction, data classification and other aspects. By optimizing the joint loss function, the optimization goals between the models can be coordinated to achieve the overall performance improvement of the system. Finally, the joint loss value is obtained based on the domain classification label, the reconstructed feature vector, the real click-through rate and the joint loss function. The parameters of the knowledge transfer model, the dynamic weight model, the click-through rate prediction model, the reconstruction network model and the classification model are updated based on the joint loss value. The gradient is calculated by back propagation to update the parameters of each model so that the joint loss value is reduced in the next round of iteration and gradually approaches the optimal state. By coordinating the optimization objectives among the models through the joint loss function, the performance of the entire cross-domain recommendation is optimized, thereby more accurately predicting the click-through rate of the target domain and providing more accurate cross-domain recommendation services.

[0100] In some embodiments, before extracting features from the target domain data information through the knowledge transfer model to obtain the target domain feature vector, and transferring the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain the transfer feature vector corresponding to the target domain data information, the method further includes:

[0101] Obtaining the initialization knowledge transfer model and source domain data information corresponding to each of the multiple source domains;

[0102] The initialization knowledge transfer model is preliminarily trained based on all source domain data information to obtain a preliminarily trained knowledge transfer model.

[0103] Specifically, the initialized knowledge transfer model refers to the basic structure set for the knowledge transfer model before starting training. The initialized knowledge transfer model accepts data from multiple source domains to learn common knowledge, and uses data sets from multiple source domains as training sets. These data are used to jointly train the initialized knowledge transfer model. During the training process, the initialized knowledge transfer model learns common patterns and rules from the diversity and commonalities of different source domains, which helps the initialized knowledge transfer model to have better generalization capabilities when facing new target domains.

[0104] According to the technical solution provided in this embodiment, by obtaining the initialization knowledge transfer model and the source domain data information corresponding to each of the multiple source domains, the multiple source domain data information is used as a training set to perform preliminary training on the initialization knowledge transfer, so that the initialization knowledge transfer model after the preliminary training can be a general model for transferring knowledge between different source domains, which lays a foundation for the subsequent rapid adaptation of the knowledge transfer model in the target domain, effectively utilizes the data of multiple source domains, and reduces the training time and resource consumption of the model in the target domain.

[0105] In some embodiments, before extracting features from the target domain data information through the knowledge transfer model to obtain the target domain feature vector, and transferring the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain the transfer feature vector corresponding to the target domain data information, the method further includes:

[0106] Obtain source domain data information corresponding to each of multiple source domains;

[0107] A heterogeneous information network is constructed based on multiple source domain data information and target domain data information, and the heterogeneous information network is determined as a knowledge transfer model.

[0108] Specifically, a heterogeneous information network is a complex network structure that can integrate different types of nodes and multiple types of edges. Nodes can represent different target objects and multiple projects, and edges represent the interaction records between target objects and projects, such as the target object's rating of the project, the social relationship between target objects, and the association between projects. Different types of nodes and edges represent entities in different source domains and target domains and their relationships. In heterogeneous neural networks, the representation learning of nodes is carried out through the graph neural network method. The graph neural network propagates and aggregates node features in heterogeneous neural networks, so that the final representation of each node contains both its own attribute information and the influence of neighboring nodes and network structure. The feature vector of the node can capture the global structural information and local neighbor influence, forming a high-quality representation of the entity, including clues for knowledge transfer from the source domain to the target domain. Since the node representation integrates the knowledge of multiple source domains, the recommendation result can better utilize the source domain information, thereby improving the recommendation quality.

[0109] According to the technical solution provided in this embodiment, by obtaining source domain data information corresponding to each of the multiple source domains; constructing a heterogeneous information network based on the multiple source domain data information and the target domain data information, determining the heterogeneous information network as a knowledge transfer model, and by constructing a heterogeneous information network as a knowledge transfer model, the multiple source domain data information and the target domain data information are uniformly represented, and the graph neural network is used to perform representation learning and knowledge transfer, thereby improving the recommendation performance of cross-domain recommendations.

[0110] In some embodiments, before extracting features from the target domain data information through the knowledge transfer model to obtain the target domain feature vector, and transferring the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain the transfer feature vector corresponding to the target domain data information, the method further includes:

[0111] Obtaining the initialization contrastive learning model and source domain data information corresponding to each of the multiple source domains;

[0112] By initializing the contrastive learning model, multiple source domain data information and target domain data information are constructed into a vector representation space;

[0113] A contrastive loss function is defined based on the vector representation space, and the parameters of the initialized contrastive learning model are updated through the contrastive loss function to complete the initialization training of the contrastive learning model, and the contrastive learning model is determined as a knowledge transfer model.

[0114] Specifically, the vector representation space refers to the model converting entities such as users and projects in the source and target domains and the interactions between them into the form of mathematical vectors, and performing operations and analysis in the high-dimensional space composed of these vectors, which provides a universal and consistent data representation for cross-domain recommendations, allowing data from multiple source domains to be compared and migrated in the same feature space, helping to capture the commonalities and differences between user interests, project attributes, etc. in different domains, and laying the foundation for subsequent knowledge transfer and adaptive learning. The contrastive loss function is used to measure and optimize the similarity or difference between sample pairs in the vector representation space; by forcing the model to learn a universal feature representation that can distinguish between source and target domain data, while retaining the similarity and complementarity between cross-domain data as much as possible.

[0115] According to the technical solution provided in the embodiments of the present application, by obtaining source domain data information corresponding to each of the multiple source domains, constructing a vector representation space based on this information and the target domain data information, defining a contrast loss function, and performing initialization training of the contrast learning model, the knowledge transfer model is finally determined. This can effectively utilize the complementarity and diversity between multiple domains, while avoiding negative transfer and overfitting, thereby improving the recommendation effect of cross-domain recommendations.

[0116] Figure 3 is a schematic diagram of a process for obtaining a joint loss function provided in an embodiment of the present application, such as Figure 3 As shown, including:

[0117] The source domain data information and the target domain data information are obtained, and the source domain data information and the target domain data information are input into the knowledge transfer model. The migration feature vector is obtained through feature extraction and knowledge transfer. The migration feature vector includes multiple project migration feature vectors and target object migration feature vectors. Then, the migration feature vector is input into the dynamic weight model to obtain the information transfer weight vector of the corresponding source domain sample; the migration feature vector and the information transfer weight vector are input into the click-through rate prediction model to obtain the predicted click-through rate of the corresponding project migration feature vector; the migration feature vector is input into the classification model to obtain the target domain classification label of the corresponding migration feature vector; the domain label is obtained, and the migration feature vector and the domain label are input into the reconstruction network model to obtain the reconstructed feature vector, and then the classification loss function of the corresponding classification model, the weight loss function of the corresponding dynamic weight model, the click-through rate loss function of the corresponding click-through rate prediction model and the reconstruction loss function of the corresponding reconstruction network model are obtained. According to the corresponding preset weights, the weight loss function, the click-through rate loss function, the reconstruction loss function and the classification loss function are weighted and summed to obtain the joint loss function.

[0118] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0119] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0120] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0121] Figure 4 Schematic diagram of a cross-domain recommendation device provided in an embodiment of the present application. Figure 4 As shown, the cross-domain recommendation device includes:

[0122] An acquisition module 401 is used to acquire source domain data information and target domain data information, wherein the source domain data information includes a plurality of source domain sample information, and the target domain data information includes a target object data information and a plurality of project data information;

[0123] The knowledge transfer module 402 is used to extract the features of the target domain data information through the knowledge transfer model to obtain the target domain feature vector, and transfer the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain the transfer feature vector corresponding to the target domain data information, wherein the transfer feature vector includes the target object transfer feature vector and multiple project transfer feature vectors;

[0124] A weight module 403 is used to calculate the information transfer weight of each source domain sample information based on the migration feature vector through a dynamic weight model to obtain an information transfer weight vector, where the information transfer weight vector includes all information transfer weights;

[0125] The first execution module 404 is used to calculate the click rate of each project migration feature vector and the target object migration feature vector based on the information transfer weight vector through the click rate prediction model to obtain the predicted click rate of the project corresponding to each project data information;

[0126] The second execution module 405 is used to obtain an item recommendation list based on each predicted click-through rate, where the item recommendation list includes multiple items arranged based on the predicted click-through rate.

[0127] In some embodiments, the first execution model also includes a reconstruction optimization module, which is specifically used to obtain domain labels corresponding to the reconstructed network model and the target domain data information, reconstruct all migration feature vectors based on the domain labels through the reconstructed network model, and obtain the reconstructed feature vectors corresponding to each migration feature vector, the reconstructed feature vector includes the target object reconstruction feature vector corresponding to the target object migration feature vector, and the project reconstruction feature vector corresponding to each project migration feature vector; obtain the reconstruction loss function of the reconstructed network model, and update the parameters of the knowledge transfer model, the dynamic weight model, the click-through rate prediction model and the reconstruction network model based on the reconstruction feature vector and the reconstruction loss function.

[0128] In some embodiments, the reconstruction optimization module also includes a classification optimization module, which is specifically used to obtain a classification model, obtain the domain classification label corresponding to each migration feature vector through the classification model; obtain the classification loss function of the classification model, and update the knowledge transfer model, dynamic weight model, click-through rate prediction model, reconstruction network model and classification model parameters based on the domain classification label, classification loss function, reconstruction feature vector and reconstruction loss function.

[0129] In some embodiments, the classification optimization module also includes a joint optimization module, which is specifically used to obtain the real label of the target domain data information, the real label indicates the real click-through rate of the project corresponding to each project data information in the target domain data information; obtain the weight loss function corresponding to the dynamic weight model and the click-through rate loss function corresponding to the click-through rate prediction model; according to the corresponding preset weights, the weight loss function, the click-through rate loss function, the reconstruction loss function and the classification loss function are weighted and summed to obtain the joint loss function; based on the domain classification label, the reconstructed feature vector, the real click-through rate and the joint loss function, the joint loss value is obtained, and the parameters of the knowledge transfer model, the dynamic weight model, the click-through rate prediction model, the reconstruction network model and the classification model are updated based on the joint loss value.

[0130] In some embodiments, the knowledge transfer module also includes a meta-training module before it, and the meta-training module is specifically used to obtain the initialized knowledge transfer model and source domain data information corresponding to each of the multiple source domains; the initialized knowledge transfer model is preliminarily trained based on all the source domain data information to obtain a knowledge transfer model after preliminary training.

[0131] In some embodiments, the knowledge transfer module also includes a graph neural training module, which is specifically used to obtain source domain data information corresponding to multiple source domains; construct a heterogeneous information network based on multiple source domain data information and target domain data information, and determine the heterogeneous information network as a knowledge transfer model.

[0132] In some embodiments, the knowledge transfer module also includes a comparative training module before, and the comparative training module is specifically used to obtain the initialization comparative learning model and the source domain data information corresponding to each of the multiple source domains; construct a vector representation space for the multiple source domain data information and the target domain data information through the initialization comparative learning model; define a comparative loss function based on the vector representation space, update the parameters of the initialized comparative learning model through the comparative loss function, complete the initialization training of the comparative learning model, and determine the comparative learning model as a knowledge transfer model.

[0133] Figure 5 Schematic diagram of an electronic device 5 provided in an embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0134] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 The electronic device 5 is merely an example and does not limit the electronic device 5 , and may include more or less components than those shown in the figure, or different components.

[0135] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0136] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device.

[0137] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0138] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., a computer-readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0139] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A cross-domain recommendation method, characterized in that: include: Acquire source domain data information and target domain data information, wherein the source domain data information includes a plurality of source domain sample information, and the target domain data information includes a target object data information and a plurality of project data information; Extracting features of the target domain data information through a knowledge transfer model to obtain a target domain feature vector, transferring the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain a migration feature vector corresponding to the target domain data information, wherein the migration feature vector includes a target object migration feature vector and multiple project migration feature vectors; By using a dynamic weight model, the information transfer weight of each source domain sample information is calculated based on the migration feature vector to obtain an information transfer weight vector, wherein the information transfer weight vector includes all the information transfer weights; By using a click rate prediction model, the click rate of each of the project migration feature vectors and the target object migration feature vector is calculated based on the information transfer weight vector to obtain a predicted click rate of the project corresponding to each of the project data information; An item recommendation list is obtained based on each of the predicted click-through rates, and the item recommendation list includes a plurality of the items arranged based on the predicted click-through rates.

2. The cross-domain recommendation method according to claim 1, characterized in that: After calculating the click rate of each of the item migration feature vectors and the target object migration feature vector based on the information transfer weight vector by using the click rate prediction model to obtain the predicted click rate of the item corresponding to each of the item data information, the method further includes: Obtaining a domain label corresponding to a reconstruction network model and the target domain data information, reconstructing all the migration feature vectors based on the domain label through the reconstruction network model, and obtaining a reconstructed feature vector corresponding to each migration feature vector, wherein the reconstructed feature vector includes a target object reconstructed feature vector corresponding to the target object migration feature vector, and a project reconstructed feature vector corresponding to each project migration feature vector; A reconstruction loss function of the reconstructed network model is obtained, and parameters of the knowledge transfer model, the dynamic weight model, the click rate prediction model, and the reconstructed network model are updated based on the reconstructed feature vector and the reconstruction loss function.

3. The cross-domain recommendation method according to claim 2, characterized in that: The step of obtaining a reconstruction loss function of the reconstructed network model and updating the parameters of the knowledge transfer model, the dynamic weight model, the click rate prediction model, and the reconstructed network model based on the reconstructed feature vector and the reconstruction loss function includes: Acquire a classification model, and acquire a domain classification label corresponding to each of the migration feature vectors through the classification model; The classification loss function of the classification model is obtained, and the parameters of the knowledge transfer model, the dynamic weight model, the click rate prediction model, the reconstruction network model and the classification model are updated based on the domain classification label, the classification loss function, the reconstruction feature vector and the reconstruction loss function.

4. The cross-domain recommendation method according to claim 3, characterized in that: The obtaining of the classification loss function of the classification model, and updating the knowledge transfer model, the dynamic weight model, the click rate prediction model, the reconstruction network model, and the parameters of the classification model based on the domain classification label, the classification loss function, the reconstruction feature vector, and the reconstruction loss function, comprises: Acquire a real label of the target domain data information, where the real label indicates a real click rate of an item corresponding to each item data information in the target domain data information; Obtaining a weight loss function corresponding to the dynamic weight model and a click rate loss function corresponding to the click rate prediction model; According to corresponding preset weights, performing weighted summation on the weight loss function, the click rate loss function, the reconstruction loss function and the classification loss function to obtain a joint loss function; A joint loss value is obtained based on the domain classification label, the reconstructed feature vector, the true click rate and the joint loss function, and the parameters of the knowledge transfer model, the dynamic weight model, the click rate prediction model, the reconstruction network model and the classification model are updated based on the joint loss value.

5. The cross-domain recommendation method according to claim 1, characterized in that: Before extracting features from the target domain data information by using the knowledge transfer model to obtain a target domain feature vector, and transferring the source domain data information knowledge to the target domain feature vector by using the knowledge transfer model to obtain a transfer feature vector corresponding to the target domain data information, the method further includes: Acquire an initialization knowledge transfer model and source domain data information corresponding to each of the plurality of source domains; The initialized knowledge transfer model is preliminarily trained based on all the source domain data information to obtain a preliminarily trained knowledge transfer model.

6. The cross-domain recommendation method according to claim 1, characterized in that: Before extracting features from the target domain data information by using the knowledge transfer model to obtain a target domain feature vector, and transferring the source domain data information knowledge to the target domain feature vector by using the knowledge transfer model to obtain a transfer feature vector corresponding to the target domain data information, the method further includes: Acquire the source domain data information corresponding to each of the multiple source domains; A heterogeneous information network is constructed based on the plurality of source domain data information and the target domain data information, and the heterogeneous information network is determined as a knowledge transfer model.

7. The cross-domain recommendation method according to claim 1, characterized in that: Before extracting features from the target domain data information by using the knowledge transfer model to obtain a target domain feature vector, and transferring the source domain data information knowledge to the target domain feature vector by using the knowledge transfer model to obtain a transfer feature vector corresponding to the target domain data information, the method further includes: Obtaining an initialization contrastive learning model and source domain data information corresponding to each of the plurality of source domains; Constructing a vector representation space of the plurality of source domain data information and the target domain data information through the initialization contrastive learning model; A contrast loss function is defined based on the vector representation space, parameters of the initialized contrastive learning model are updated by the contrastive loss function, initialization training of the contrastive learning model is completed, and the contrastive learning model is determined as a knowledge transfer model.

8. A cross-domain recommendation device, characterized in that: include: An acquisition module, used to acquire source domain data information and target domain data information, wherein the source domain data information includes a plurality of source domain sample information, and the target domain data information includes a target object data information and a plurality of project data information; A knowledge transfer module is used to extract features of the target domain data information through a knowledge transfer model to obtain a target domain feature vector, and to transfer the source domain data information knowledge to the target domain feature vector through the knowledge transfer model to obtain a transfer feature vector corresponding to the target domain data information, wherein the transfer feature vector includes a target object transfer feature vector and multiple project transfer feature vectors; A weight module, configured to calculate the information transfer weight of each source domain sample information based on the migration feature vector through a dynamic weight model to obtain an information transfer weight vector, wherein the information transfer weight vector includes all the information transfer weights; A first execution module is used to calculate the click rate of each of the project migration feature vectors and the target object migration feature vector based on the information transfer weight vector through a click rate prediction model to obtain a predicted click rate of the project corresponding to each of the project data information; The second execution module is used to obtain an item recommendation list based on each of the predicted click-through rates, wherein the item recommendation list includes a plurality of the items arranged based on the predicted click-through rates.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Cross-domain recommendation method and system, storage medium and device

    CN113435984A

  • Information cocoon house-oriented cross-domain recommendation method

    CN115525819A

  • Double-target cross-domain recommendation method and system based on knowledge graph and multi-head attention

    CN115760279A

  • Scalable cross domain recommendation system

    EP2860672A2

  • Cross-domain recommendation via contrastive learning of user behaviors in attentive sequence models

    US20240161165A1