Data processing method and system, computer system and computer readable storage medium
By generating and optimizing latent factor vectors, the problem of low accuracy of prediction evaluation models in the existing technology is solved, and the effect of personalized recommendations is improved.
Patent Information
- Application Number
- CN201810616843.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-14
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-06-14
AI Technical Summary
The accuracy of the prediction and evaluation model trained in the existing technology is low, resulting in poor personalized recommendation effects.
By inputting the user's evaluation value of the product and the product's evaluation value of the user into the neural network, a hidden factor vector is generated, and the objective function is optimized based on the error of the hidden factor vector to generate a predictive evaluation model.
It improves the evaluation accuracy of the predictive evaluation model and improves the effect of personalized recommendations.
Smart Images

Figure CN110610392B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to a data processing method and system, a computer system, and a computer-readable storage medium. Background Art
[0002] With the rapid development of the Internet, the amount of information has exploded. In order to prevent users from browsing a large amount of irrelevant information and products, personalized recommendations have emerged. Personalized recommendations are to recommend information and products that users are interested in based on their interest characteristics and purchasing behavior. Personalized recommendation systems can be built on the basis of massive data mining to help e-commerce websites provide completely personalized decision support and information services for their customers. Given the user's historical evaluation records or behaviors of products, predicting the user's evaluation value of new products is one of the typical models of personalized recommendation systems.
[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art:
[0004] The accuracy of the prediction evaluation model trained in the related technology is low, resulting in poor personalized recommendation effect. Summary of the invention
[0005] In view of this, the present disclosure provides a data processing method and system, a computer system, and a computer-readable storage medium.
[0006] One aspect of the present disclosure provides a data processing method, including determining a first vector set and a second vector set according to first sample data, wherein the first sample data includes evaluation values of multiple users on different products, each first vector in the first vector set represents the evaluation values of the same user on different products, and each second vector in the second vector set represents the evaluation values of multiple users on the same product; inputting each first vector in the first vector set into a first neural network, outputting a first latent factor vector, wherein each first vector has a corresponding first latent factor vector, and one or more first latent factor vectors constitute a first latent factor vector set; inputting each second vector in the second vector set into a second neural network, outputting a second latent factor vector, wherein each second vector has a corresponding second latent factor vector, and one or more second latent factor vectors constitute a second latent factor vector set; optimizing an objective function according to an error of the first latent factor vector set and an error of the second latent factor vector set; and generating a prediction evaluation model according to the optimized objective function, wherein the prediction evaluation model is used to predict the user's evaluation value of the product.
[0007] According to an embodiment of the present disclosure, the method further includes generating an evaluation matrix based on the first sample data, wherein each element in the evaluation matrix represents a user's evaluation value of a product; decomposing the evaluation matrix into a first matrix and a second matrix, wherein the first matrix includes a plurality of third latent factor vectors, each of which represents a latent factor vector of a corresponding user, and the second matrix includes a plurality of fourth latent factor vectors, each of which represents a latent factor vector of a corresponding product; and optimizing the objective function based on the error of the first latent factor vector set and the error of the second latent factor vector set includes: optimizing the objective function based on a first difference between the first latent factor vector and the third latent factor vector and a second difference between the second latent factor vector and the fourth latent factor vector.
[0008] According to an embodiment of the present disclosure, the method further includes determining a third vector set and a fourth vector set based on second sample data, wherein the second sample data includes user information of multiple users and product information of multiple products, each third vector in the third vector set represents user information of the same user, and each fourth vector in the fourth vector set represents product information of the same product; inputting each first vector in the first vector set into the first neural network, outputting a first latent factor vector includes: inputting the first vector and the corresponding third vector into the first neural network together, and outputting a fifth latent factor vector; inputting each second vector in the second vector set into the second neural network, outputting a second latent factor vector includes: inputting the second vector and the corresponding fourth vector into the second neural network together, and outputting a sixth latent factor vector; and optimizing the objective function based on the error of the first latent factor vector set and the error of the second latent factor vector set includes optimizing the objective function based on a third difference between the fifth latent factor vector and the third latent factor vector and a fourth difference between the sixth latent factor vector and the fourth latent factor vector.
[0009] According to an embodiment of the present disclosure, the method further includes performing noise processing on the first vector and the corresponding third vector before inputting the first vector and the corresponding third vector into the first neural network together; inputting the first vector and the corresponding third vector after the noise processing into the first neural network together; and / or performing noise processing on the second vector and the corresponding fourth vector before inputting the second vector and the corresponding fourth vector into the second neural network together; and inputting the second vector and the corresponding fourth vector after the noise processing into the second neural network together.
[0010] According to an embodiment of the present disclosure, optimizing the objective function according to the third difference between the fifth implicit factor vector and the third implicit factor vector and the fourth difference between the sixth implicit factor vector and the fourth implicit factor vector includes determining optimization parameters in the objective function regarding the third difference and the fourth difference; and optimizing the objective function based on the optimization parameters.
[0011] Another aspect of the present disclosure provides a data processing system, including a first determination module, a first input module, a second input module, an optimization module, and a first generation module. The first determination module is used to determine the first vector set and the second vector set according to the first sample data, wherein the first sample data includes evaluation values of multiple users on different products, each first vector in the first vector set represents the evaluation values of the same user on different products, and each second vector in the second vector set represents the evaluation values of multiple users on the same product; the first input module is used to input each first vector in the first vector set into the first neural network and output the first latent factor vector, wherein each first vector has a corresponding first latent factor vector, and one or more first latent factor vectors constitute the first latent factor vector set; the second input module is used to input each second vector in the second vector set into the second neural network and output the second latent factor vector, wherein each second vector has a corresponding second latent factor vector, and one or more second latent factor vectors constitute the second latent factor vector set; the optimization module is used to optimize the objective function according to the error of the first latent factor vector set and the error of the second latent factor vector set; and the first generation module is used to generate a prediction and evaluation model according to the optimized objective function, wherein the prediction and evaluation model is used to predict the user's evaluation value of the product.
[0012] According to an embodiment of the present disclosure, the system further includes a second generation module and a decomposition module. The second generation module is used to generate an evaluation matrix based on the first sample data, wherein each element in the evaluation matrix represents the user's evaluation value of the product; the decomposition module is used to decompose the evaluation matrix into a first matrix and a second matrix, wherein the first matrix includes a plurality of third latent factor vectors, each of which represents the latent factor vector of the corresponding user, and the second matrix includes a plurality of fourth latent factor vectors, each of which represents the latent factor vector of the corresponding product; and the optimization module is also used to optimize the objective function based on the first difference between the first latent factor vector and the third latent factor vector and the second difference between the second latent factor vector and the fourth latent factor vector.
[0013] According to an embodiment of the present disclosure, the system further includes a second determination module, a third input module and a fourth input module. The second determination module is used to determine a third vector set and a fourth vector set according to second sample data, wherein the second sample data includes user information of multiple users and product information of multiple products, each third vector in the third vector set represents user information of the same user, and each fourth vector in the fourth vector set represents product information of the same product; the third input module is used to input the first vector and the corresponding third vector into the first neural network together, and output a fifth latent factor vector; the fourth input module is used to input the second vector and the corresponding fourth vector into the second neural network together, and output a sixth latent factor vector; and the optimization module is also used to optimize the objective function according to the third difference between the fifth latent factor vector and the third latent factor vector and the fourth difference between the sixth latent factor vector and the fourth latent factor vector.
[0014] According to an embodiment of the present disclosure, the system further includes a first processing module, a fifth input module, and / or a second processing module and a sixth input module. The first processing module is used to perform noise processing on the first vector and the corresponding third vector before inputting them into the first neural network together; the fifth input module is used to input the first vector and the corresponding third vector after the noise processing together into the first neural network; and / or the second processing module is used to perform noise processing on the second vector and the corresponding fourth vector before inputting them into the second neural network together; the sixth input module is used to input the second vector and the corresponding fourth vector after the noise processing together into the second neural network.
[0015] According to an embodiment of the present disclosure, the optimization module includes a determination unit and an optimization unit. The determination unit is used to determine the optimization parameters of the objective function regarding the third difference and the fourth difference; and the optimization unit is used to optimize the objective function based on the optimization parameters.
[0016] Another aspect of the present disclosure provides a computer system, including one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method as described above.
[0017] Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the data processing method as described above.
[0018] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the data processing method as described above when executed.
[0019] According to an embodiment of the present disclosure, a first vector representing the evaluation value of the same user on different products is input into a first neural network to output a first latent factor vector, a second vector representing the evaluation value of multiple users on the same product is input into a second neural network to output a second latent factor vector, an objective function is optimized according to the error of the first latent factor vector set and the error of the second latent factor vector set, and a technical means for generating a predictive evaluation model according to the optimized objective function is provided. Since the objective function is optimized by considering the error of the first latent factor vector set and the error of the second latent factor vector set, the technical problem that modeling is performed directly according to the first latent factor vector set and the second latent factor vector set output by the neural network, resulting in slight error fluctuations of the latent factor vector being learned as normal sample values by the model, affecting the robustness of the predictive evaluation model and the accuracy of learning the latent factor vector in the process of optimizing the objective function, and affecting the accuracy of the predictive evaluation model, thereby improving the evaluation accuracy of the predictive evaluation model and achieving the technical effect of personalized recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0021] Figure 1 An exemplary system architecture to which the data processing method and system according to an embodiment of the present disclosure can be applied is schematically shown;
[0022] Figure 2 A flowchart schematically shows a data processing method according to an embodiment of the present disclosure;
[0023] Figure 3 A flowchart schematically shows a data processing method according to another embodiment of the present disclosure;
[0024] Figure 4 A schematic diagram of matrix decomposition according to an embodiment of the present disclosure is schematically shown;
[0025] Figure 5 A flowchart schematically shows a data processing method according to another embodiment of the present disclosure;
[0026] Figure 6 A flowchart schematically shows a data processing method according to another embodiment of the present disclosure;
[0027] Figure 7A schematic diagram schematically shows a schematic diagram of inputting a first vector after noise processing and a corresponding third vector into a first neural network according to an embodiment of the present disclosure;
[0028] Figure 8 A schematic diagram of an aSDAE model according to an embodiment of the present disclosure is schematically shown;
[0029] Fig. 9 A schematic diagram of generating a prediction evaluation model according to another embodiment of the present disclosure is schematically shown;
[0030] Fig.10 A flowchart of an optimization objective function according to an embodiment of the present disclosure is schematically shown;
[0031] Fig.11 A block diagram schematically shows a data processing system according to an embodiment of the present disclosure;
[0032] Fig.12 A block diagram schematically shows a data processing system according to another embodiment of the present disclosure;
[0033] Fig.13 A block diagram schematically shows a data processing system according to another embodiment of the present disclosure;
[0034] Fig.14 A block diagram schematically shows a data processing system according to another embodiment of the present disclosure;
[0035] Fig.15 A block diagram schematically illustrates an optimization module according to an embodiment of the present disclosure; and
[0036] Fig.16 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0037] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0038] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0039] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0040] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). Those skilled in the art should also understand that any transitional conjunctions and / or phrases that substantially indicate two or more optional items, whether in the specification, claims, or drawings, should be understood to give the possibility of including one of these items, either of these items, or both of these items. For example, the phrase "A or B" should be understood to include the possibilities of "A" or "B", or "A and B".
[0041] An embodiment of the present disclosure provides a data processing method and system, the method comprising determining a first vector set and a second vector set based on first sample data, wherein the first sample data comprises evaluation values of multiple users on different products, each first vector in the first vector set represents the evaluation values of the same user on different products, and each second vector in the second vector set represents the evaluation values of multiple users on the same product; inputting each first vector in the first vector set into a first neural network, outputting a first latent factor vector, wherein each first vector has a corresponding first latent factor vector, and one or more first latent factor vectors constitute a first latent factor vector set; inputting each second vector in the second vector set into a second neural network, outputting a second latent factor vector, wherein each second vector has a corresponding second latent factor vector, and one or more second latent factor vectors constitute a second latent factor vector set; optimizing an objective function based on an error of the first latent factor vector set and an error of the second latent factor vector set; and generating a predictive evaluation model based on the optimized objective function, wherein the predictive evaluation model is used to predict the user's evaluation value of the product.
[0042] Figure 1The exemplary system architecture to which the data processing method and system according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0043] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0044] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).
[0045] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0046] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0047] It should be noted that the data processing method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the data processing system provided in the embodiment of the present disclosure can generally be set in the server 105. The data processing method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Accordingly, the data processing system provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Alternatively, the data processing method provided in the embodiment of the present disclosure can also be executed by the terminal device 101, 102, or 103, or it can also be executed by other terminal devices different from the terminal device 101, 102, or 103. Accordingly, the data processing system provided in the embodiment of the present disclosure can also be set in the terminal device 101, 102, or 103, or it can be set in other terminal devices different from the terminal device 101, 102, or 103.
[0048] For example, the first sample data may be originally stored in any one of the terminal devices 101, 102, or 103 (for example, the terminal device 101, but not limited thereto), or stored in an external storage device and may be imported into the terminal device 101. Then, the terminal device 101 may locally execute the data processing method provided by the embodiment of the present disclosure, or send the first sample data to other terminal devices, servers, or server clusters, and the other terminal devices, servers, or server clusters that receive the first sample data may execute the data processing method provided by the embodiment of the present disclosure.
[0049] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0050] Figure 2 The flowchart of the data processing method according to the embodiment of the present disclosure is schematically shown.
[0051] like Figure 2 As shown, the data processing method includes operations S201 to S205.
[0052] In operation S201, a first vector set and a second vector set are determined based on first sample data, wherein the first sample data includes evaluation values of multiple users on different products, each first vector in the first vector set represents evaluation values of the same user on different products, and each second vector in the second vector set represents evaluation values of multiple users on the same product.
[0053] According to an embodiment of the present disclosure, the first sample data may include m users and n products. Each user may have an evaluation value for different products. For example, the evaluation value may be 1 or 0. The size of the evaluation value may be used to characterize the user's preference for the product. For example, the larger the evaluation value, the more the user likes the corresponding product. An evaluation value of 0 indicates that the user has not traded the corresponding product, indicating that user i has not given a corresponding evaluation value to product j.
[0054] In operation S202, each first vector in the first vector set is input into a first neural network, and a first latent factor vector is output, wherein each first vector has a corresponding first latent factor vector, and one or more first latent factor vectors constitute a first latent factor vector set.
[0055] In operation S203, each second vector in the second vector set is input into the second neural network, and a second latent factor vector is output, wherein each second vector has a corresponding second latent factor vector, and one or more second latent factor vectors constitute a second latent factor vector set.
[0056] According to the embodiments of the present disclosure, the hidden layers included in the first neural network and the second neural network may be the same or different, and other parameters such as the weight coefficient of each layer may be the same or different. By inputting each first vector in the first vector set into the first neural network and each second vector in the second vector set into the second neural network, the implicit factor vector corresponding to each first vector and the implicit factor vector corresponding to each second vector can be obtained.
[0057] In operation S204, an objective function is optimized according to an error of the first implicit factor vector set and an error of the second implicit factor vector set.
[0058] Since using the latent factor vector learned by the neural network directly as the latent factor vector of the prediction evaluation model does not conform to the objective reality and there are certain errors objectively, the present invention optimizes the objective function according to the error of the first latent factor vector set and the error of the second latent factor vector set, that is, considering the error of the first latent factor vector in the first latent factor vector set and the error of the second latent factor vector in the second latent factor vector set to optimize the objective function.
[0059] In operation S205, a prediction evaluation model is generated according to the optimized objective function, wherein the prediction evaluation model is used to predict the user's evaluation value of the product.
[0060] According to an embodiment of the present disclosure, a first vector representing the evaluation value of the same user on different products is input into a first neural network to output a first latent factor vector, a second vector representing the evaluation value of multiple users on the same product is input into a second neural network to output a second latent factor vector, an objective function is optimized according to the error of the first latent factor vector set and the error of the second latent factor vector set, and a technical means for generating a predictive evaluation model according to the optimized objective function is provided. Since the objective function is optimized by considering the error of the first latent factor vector set and the error of the second latent factor vector set, the technical problem that modeling is performed directly according to the first latent factor vector set and the second latent factor vector set output by the neural network, resulting in slight error fluctuations of the latent factor vector being learned as normal sample values by the model, affecting the robustness of the predictive evaluation model and the accuracy of learning the latent factor vector in the process of optimizing the objective function, and affecting the accuracy of the predictive evaluation model, thereby improving the evaluation accuracy of the predictive evaluation model and achieving the technical effect of personalized recommendation.
[0061] Reference below Figures 3 to 10 , combined with specific embodiments Figure 2 The method shown is further explained.
[0062] According to an embodiment of the present disclosure, the data processing method further includes generating an evaluation matrix based on the first sample data, wherein each element in the evaluation matrix represents the user's evaluation value of the product. The evaluation matrix is decomposed into a first matrix and a second matrix, wherein the first matrix includes a plurality of third latent factor vectors, each of which represents the latent factor vector of the corresponding user, and the second matrix includes a plurality of fourth latent factor vectors, each of which represents the latent factor vector of the corresponding product. Optimizing the objective function according to the error of the first latent factor vector set and the error of the second latent factor vector set includes optimizing the objective function according to the first difference between the first latent factor vector and the third latent factor vector and the second difference between the second latent factor vector and the fourth latent factor vector.
[0063] Figure 3 The flowchart schematically shows a data processing method according to another embodiment of the present disclosure.
[0064] like Figure 3 As shown, the data processing method also includes operations S206 to S208.
[0065] In operation S206, an evaluation matrix is generated according to the first sample data, wherein each element in the evaluation matrix represents a user's evaluation value of the product.
[0066] According to an embodiment of the present disclosure, for example, the evaluation matrix Each element R ijrepresents the evaluation value of user i on product j.
[0067] In operation S207, the evaluation matrix is decomposed into a first matrix and a second matrix, wherein the first matrix includes a plurality of third latent factor vectors, each of which represents a latent factor vector corresponding to a user, and the second matrix includes a plurality of fourth latent factor vectors, each of which represents a latent factor vector corresponding to a product.
[0068] In operation S208, an objective function is optimized according to a first difference between the first latent factor vector and the third latent factor vector and a second difference between the second latent factor vector and the fourth latent factor vector.
[0069] According to an embodiment of the present disclosure, through matrix decomposition, the original evaluation matrix R can be decomposed into two low-rank first matrices U and second matrices V, where U is composed of the third latent factor vector of each user, and V is composed of the fourth latent factor vector of each product, R≈UV T . u i represents the latent factor vector of the i-th user; v j Represents the latent factor vector of the j-th product.
[0070] Figure 4 A schematic diagram of matrix decomposition according to an embodiment of the present disclosure is schematically shown.
[0071] like Figure 4 As shown, the approximate evaluation value of user (Uster) i for product (Item) j The hidden factor vector u of the i-th user can be calculated i and the latent factor vector v of the j-th product j The inner product of is obtained, that is, Given a sparse evaluation matrix R, matrix factorization attempts to learn U and V so as to evaluate the unknown values in the evaluation matrix R.
[0072] The objective optimization function of matrix decomposition can be expressed as:
[0073]
[0074] in is the loss function, ||·|| F is the Frobenius norm, and λ is the normalization parameter.
[0075] Through the embodiments of the present disclosure, the first difference between the first latent factor vector output by the first neural network and the third latent factor vector obtained by matrix decomposition is used as an error, and the second difference between the second latent factor vector output by the second neural network and the fourth latent factor vector obtained by matrix decomposition is used as an error, thereby optimizing the objective function. The accuracy of learning the latent factor vector in the process of optimizing the objective function can be improved, and the evaluation accuracy of the prediction evaluation model can be improved.
[0076] According to an embodiment of the present disclosure, the data processing method also includes determining a third vector set and a fourth vector set based on second sample data, wherein the second sample data includes user information of multiple users and product information of multiple products, each third vector in the third vector set represents user information of the same user, and each fourth vector in the fourth vector set represents product information of the same product; inputting each first vector in the first vector set into the first neural network, outputting a first latent factor vector includes inputting the first vector and the corresponding third vector into the first neural network together, and outputting a fifth latent factor vector; inputting each second vector in the second vector set into the second neural network, outputting a second latent factor vector includes inputting the second vector and the corresponding fourth vector into the second neural network together, and outputting a sixth latent factor vector; and optimizing the objective function according to the error of the first latent factor vector set and the error of the second latent factor vector set includes optimizing the objective function according to a third difference between the fifth latent factor vector and the third latent factor vector and a fourth difference between the sixth latent factor vector and the fourth latent factor vector.
[0077] Figure 5 The flowchart schematically shows a data processing method according to another embodiment of the present disclosure.
[0078] like Figure 5 As shown, the data processing method also includes operations S209 to S212.
[0079] In operation S209, a third vector set and a fourth vector set are determined based on the second sample data, wherein the second sample data includes user information of multiple users and product information of multiple products, each third vector in the third vector set represents user information of the same user, and each fourth vector in the fourth vector set represents product information of the same product.
[0080] In operation S210, the first vector and the corresponding third vector are input into the first neural network together, and a fifth latent factor vector is output.
[0081] In operation S211, the second vector and the corresponding fourth vector are input into the second neural network together, and a sixth latent factor vector is output.
[0082] In operation S212, the objective function is optimized according to a third difference between the fifth latent factor vector and the third latent factor vector and a fourth difference between the sixth latent factor vector and the fourth latent factor vector.
[0083] According to an embodiment of the present disclosure, in order to solve the problems of cold start and data sparsity in the recommendation system, additional information, i.e., user information of multiple users and product information of multiple products, can be added in the analysis process. The second sample data can be derived from user or product portraits, such as user census information, user operation data, and product category information. The user information of different users can be as shown in Table 1, and the product information of different products can be as shown in Table 2.
[0084] Table 1 User information (X)
[0085]
[0086] Table 2 Product information (Y)
[0087]
[0088]
[0089] According to an embodiment of the present disclosure, user information of multiple users and product information features of multiple products may be vectorized, such that each third vector in a third vector set represents user information of the same user, and each fourth vector in a fourth vector set represents product information of the same product.
[0090] The ratings of different users for different products can be as shown in Table 3. Assuming the rating level is 1-5, the larger the score, the higher the user's preference for the product. The missing value is represented by 0. Usually, the rating level value in the user-product rating matrix R can be calculated comprehensively through the user's implicit feedback (such as the user's stay time on a certain product page, the number of views, etc.) or explicit feedback (such as the user's evaluation score for a certain product, etc.).
[0091] Table 3 Elements of user-product rating matrix
[0092] User / Product I1 I2 I3 I4~I13 I14 I15 I16 I17 I18 I19 I20 U1 5 1 U2 0 1 2 2 U3 U4 2 U4 4 3 2
[0093] Usually there are many missing values in the user-product rating matrix, that is, the degree of preference of a certain user for a certain product is unknown. The recommendation algorithm aims to discover these unknown values, that is, to accurately discover the user's preference for unknown products and recommend unknown products that the user is interested in to the user, thereby increasing product sales.
[0094] According to an embodiment of the present disclosure, by inputting the first vector and the corresponding third vector into the first neural network together, outputting the fifth latent factor vector, and inputting the second vector and the corresponding fourth vector into the second neural network together, and outputting the sixth latent factor vector, problems such as cold start and data sparsity in the recommendation system can be solved.
[0095] Figure 6 The flowchart schematically shows a data processing method according to another embodiment of the present disclosure.
[0096] like Figure 6 As shown, the data processing method also includes operations S213 to S216.
[0097] In operation S213, before the first vector and the corresponding third vector are input into the first neural network together, the first vector and the corresponding third vector are subjected to noise addition processing.
[0098] In operation S214, the first vector after the noise processing and the corresponding third vector are input into the first neural network. And / or
[0099] In operation S215, before the second vector and the corresponding fourth vector are input into the second neural network together, the second vector and the corresponding fourth vector are subjected to noise addition processing.
[0100] In operation S216, the noise-processed second vector and the corresponding fourth vector are input into the second neural network together.
[0101] According to an embodiment of the present disclosure, given a user-product evaluation matrix Convert R to For each user i∈{1,...,m}, is the evaluation value of user i on all n products, that is, the first vector; convert R into For each product j∈{1,...,n}, is the evaluation value of product j by all m users, that is, the second vector. For S (user) The noise-added representation is: For S (item) The user information is represented by Represents, that is, the third vector, product information is expressed by Represents, that is, the fourth vector, and the corresponding added noise is expressed as and
[0102] Figure 7 The diagram schematically shows a schematic diagram of inputting a first vector after noise processing and a corresponding third vector into a first neural network according to an embodiment of the present disclosure.
[0103] like Figure 7 As shown, the first vector after adding noise processing and the corresponding third vector Input into the first neural network together, the corresponding value can be output and
[0104] According to the embodiments of the present disclosure, the first neural network and the second neural network can adopt the deep model aSDAE, and the error between the feature representation learned by the deep model aSDAE and the implicit factor vector of the collaborative filtering recommendation algorithm based on matrix decomposition, and minimize this error in the process of optimizing the objective function, which can be conducive to more accurate and objective learning of the first matrix U and the second matrix V of users and products, avoid overfitting problems to a certain extent, improve the accuracy of the prediction and evaluation model, and improve the performance of the entire recommendation system.
[0105] According to an embodiment of the present disclosure, the intermediate layer results (i.e., the first Layer) serves as a bridge between the evaluation matrix R and the additional information X and Y of users and products. The first latent factor vector u of user i∈{1,...,m} i , which can be derived from the user's aSDAE model As the input of the [(L+1) / 2”th layer result, the second latent factor vector v of the product j∈{1,...,n} j Can be derived from the product aSDAE model As input Layer results. As input The error of the layer result and As input The error optimization objective function of the layer result.
[0106] Figure 8 A schematic diagram of an aSDAE model according to an embodiment of the present disclosure is schematically shown.
[0107] like Figure 8 As shown, given a sample set S = [s1, ..., s n ], the corresponding additional information is X = [x1, ..., x n ], add noise to S and X to get and Assuming that aSDAE has L layers, for each sample and additional information s and x, the corresponding noise addition is expressed as and After reconstruction, it is represented as and
[0108] User aSDAE model (first neural network) corresponds to Figure 8 The upper dashed box content is used to extract the first latent factor vector, and the product aSDAE model (the second neural network) corresponds to Figure 8 The content of the lower dotted box is used to extract the second latent factor vector. The middle part uses the collaborative filtering method of matrix decomposition to decompose the evaluation matrix R into U and V.
[0109] use
[0110]
[0111] in, For users aSDAE model As input Layer results; The aSDAE model is used for the product As input Layer results.
[0112] (1) For each hidden layer l∈{1,...,L-1} of the aSDAE model, its hidden layer is represented as Where W l and V l is the weight matrix of the lth layer, b l is the bias vector of the lth layer, g(·) is the activation function, and
[0113] (2) For the Lth layer of the output layer, W L and V L is the weight matrix of the Lth layer, and is the bias vector and f(·) is the activation function.
[0114] (3) The first L / 2 layers of the aSDAE model are the encoder, and the last L / 2 layers are the decoder.
[0115] The objective function of the present disclosure according to the error of the first implicit factor vector set and the error optimization of the second implicit factor vector set can be the following formula:
[0116]
[0117] in For users aSDAE model As the input L-th layer result, The aSDAE model is used for the product As the L-th layer result of the input. ijis the indicator matrix, that is, when R ij =0, I ij =0; when R ij ≠0, I ij = 1. α1 and α2 are the trade-off parameters of S and X, and λ is the normalization parameter.
[0118] f reg Add two normalization terms and get:
[0119]
[0120] Where W l , V l and W′ l , V′ l a are the weight parameters of the SDAE model in the l∈{1,...,L}th order for user and product, respectively, and b l and b′ l is the corresponding bias vector.
[0121] According to an embodiment of the present disclosure, a stochastic gradient descent algorithm (SGD) can be used to train the latent factor vector u during model training. i and v j , then its update rule is:
[0122]
[0123]
[0124] in represents the objective function when the variables independent of U and V are fixed, and η is the learning rate of the stochastic gradient descent algorithm. i and v j Derivation The process can be further broken down into:
[0125]
[0126]
[0127] According to the embodiment of the present disclosure, when the model is tested, the implicit factor matrix of the user and the product is obtained according to the learning and The prediction evaluation matrix can be approximately obtained Right now Therefore, for each user, a list of product evaluations ranked can be obtained based on the evaluation matrix.
[0128] According to the embodiments of the present disclosure, the error between the feature representation learned by the aSDAE model and the implicit factor vector of the collaborative filtering recommendation algorithm based on matrix decomposition can be objectively described, and the error can be minimized in the process of optimizing the objective function, which can help to more accurately and objectively learn the implicit factor matrices U and V of users and products, avoid overfitting problems to a certain extent, and improve the prediction evaluation matrix. The accuracy of the recommendation is improved, the robustness of the learning process is enhanced, and the performance of the entire recommendation system is improved.
[0129] Fig. 9 A schematic diagram of generating a prediction evaluation model according to another embodiment of the present disclosure is schematically shown.
[0130] like Fig. 9 As shown, generating a prediction and evaluation model may include the following steps (1) to (4).
[0131] (1) Extract recommendation-related features from the data warehouse, namely, the user-product evaluation matrix R, user-attached information X, and product-attached information Y. The user-product evaluation matrix R is a sparse matrix in which some values are missing. The recommendation system can predict the current user's evaluation value for unknown products based on the evaluation values of other users with similar preferences and interests as the current user.
[0132] (2) The user-product evaluation matrix R, user ancillary information X and product ancillary information Y are used as model inputs. The deep collaborative filtering method based on autoencoder is used to learn the model parameters of the deep learning model (Autoencoder) and the latent factor matrices U and V of users and products. The stochastic gradient descent method is used to obtain the new latent factor matrices U and V.
[0133] (3) The prediction evaluation model is approximately obtained by learning the implicit factor matrices U and V of users and products Right now The approximate evaluation value of the unknown product in the evaluation matrix R can be obtained.
[0134] (4) For each user, based on the prediction evaluation model A list of product ratings (likeability) can be obtained.
[0135] According to an embodiment of the present disclosure, given a user-product evaluation matrix R can be converted to For each user i∈{1,...,m}, is the evaluation value of user i on all n products.
[0136] For example: Convert the user-product evaluation matrix R into the user-perspective rating matrix S(user) , represents the ratings of all 20 products by user 1; Indicates the ratings of all 20 products by user 2... Represents the ratings given by user 5 to all 20 products.
[0137] According to an embodiment of the present disclosure, the user-product evaluation matrix R is converted into For each product j∈{1,...,n}, is the evaluation value of product j by all m users.
[0138] For example: Convert the user-product rating matrix R into the product-perspective rating matrix S (item) . Indicates the ratings given by users 1 to 5 to the first product. Indicates the ratings of user 1 to user 5 on the second product... Indicates the ratings given by users 1 to 5 to the 20th product.
[0139] For S (user) The noise-added representation is: For S (item) The additional information of users and products is represented by and The corresponding noise addition is expressed as and
[0140] Through the embodiments of the present disclosure, some noise is applied to the input vector, which is beneficial to the learning of the neural network, thereby improving the accuracy of the prediction and evaluation model.
[0141] Fig.10 The flowchart of the optimization objective function according to the embodiment of the present disclosure is schematically shown.
[0142] like Fig.10 As shown, optimizing the objective function according to the third difference between the fifth latent factor vector and the third latent factor vector and the fourth difference between the sixth latent factor vector and the fourth latent factor vector includes operations S2121-S2122.
[0143] In operation S2121, optimization parameters regarding the third difference and the fourth difference in the objective function are determined.
[0144] In operation S2122, the objective function is optimized based on the optimization parameters.
[0145] According to an embodiment of the present disclosure, the objective function may be the formula recorded in the above formula (2). When optimizing the objective function, the various parameters in the above formula, such as α1 and α2, the normalization parameter λ, etc., may be determined first, and then optimized. Among them, α1 and α2 may be used as optimization parameters of the third difference and the fourth difference.
[0146] Through the embodiments of the present disclosure, the optimization parameters of the third difference and the fourth difference are determined, which is beneficial to improving the accuracy of learning the implicit factor vector in the process of optimizing the objective function.
[0147] Fig.11 The block diagram schematically shows a data processing system according to an embodiment of the present disclosure.
[0148] like Fig.11 As shown, the data processing system 300 includes a first determination module 301 , a first input module 302 , a second input module 303 , an optimization module 304 and a first generation module 305 .
[0149] The first determination module 301 is used to determine a first vector set and a second vector set based on first sample data, wherein the first sample data includes evaluation values of multiple users on different products, each first vector in the first vector set represents the evaluation values of the same user on different products, and each second vector in the second vector set represents the evaluation values of multiple users on the same product.
[0150] The first input module 302 is used to input each first vector in the first vector set into the first neural network and output a first latent factor vector, wherein each first vector has a corresponding first latent factor vector, and one or more first latent factor vectors constitute a first latent factor vector set.
[0151] The second input module 303 is used to input each second vector in the second vector set into the second neural network, and output a second latent factor vector, wherein each second vector has a corresponding second latent factor vector, and one or more second latent factor vectors constitute a second latent factor vector set.
[0152] The optimization module 304 is used to optimize the objective function according to the error of the first implicit factor vector set and the error of the second implicit factor vector set.
[0153] The first generating module 305 is used to generate a prediction evaluation model according to the optimized objective function, wherein the prediction evaluation model is used to predict the user's evaluation value of the product.
[0154] According to an embodiment of the present disclosure, a first vector representing the evaluation value of the same user on different products is input into a first neural network to output a first latent factor vector, a second vector representing the evaluation value of multiple users on the same product is input into a second neural network to output a second latent factor vector, an objective function is optimized according to the error of the first latent factor vector set and the error of the second latent factor vector set, and a technical means for generating a predictive evaluation model according to the optimized objective function is provided. Since the objective function is optimized by considering the error of the first latent factor vector set and the error of the second latent factor vector set, the technical problem that modeling is performed directly according to the first latent factor vector set and the second latent factor vector set output by the neural network in the related art is at least partially overcome, resulting in that slight error fluctuations of the latent factor vector will be learned as normal sample values by the model, affecting the robustness of the predictive evaluation model and the accuracy of the latent factor vector learning in the process of optimizing the objective function, and affecting the accuracy of the predictive evaluation model is affected. The evaluation accuracy of the predictive evaluation model is thereby improved, and the technical effect of personalized recommendation is achieved.
[0155] Fig.12 A block diagram of a data processing system according to another embodiment of the present disclosure is schematically shown.
[0156] like Fig.12 As shown, the data processing system 300 further includes a second generating module 306 and a decomposing module 307 .
[0157] The second generating module 306 is used to generate an evaluation matrix according to the first sample data, wherein each element in the evaluation matrix represents the user's evaluation value of the product.
[0158] The decomposition module 307 is used to decompose the evaluation matrix into a first matrix and a second matrix, wherein the first matrix includes multiple third latent factor vectors, each of which represents the latent factor vector of the corresponding user, and the second matrix includes multiple fourth latent factor vectors, each of which represents the latent factor vector of the corresponding product.
[0159] The optimization module 304 is further configured to optimize the objective function according to a first difference between the first latent factor vector and the third latent factor vector and a second difference between the second latent factor vector and the fourth latent factor vector.
[0160] Through the embodiments of the present disclosure, the first difference between the first latent factor vector output by the first neural network and the third latent factor vector obtained by matrix decomposition is used as an error, and the second difference between the second latent factor vector output by the second neural network and the fourth latent factor vector obtained by matrix decomposition is used as an error, thereby optimizing the objective function. The accuracy of learning the latent factor vector in the process of optimizing the objective function can be improved, and the evaluation accuracy of the prediction evaluation model can be improved.
[0161] Fig.13 A block diagram of a data processing system according to another embodiment of the present disclosure is schematically shown.
[0162] like Fig.13 As shown, the data processing system 300 further includes a second determination module 308 , a third input module 309 and a fourth input module 310 .
[0163] The second determination module 308 is used to determine a third vector set and a fourth vector set according to the second sample data, wherein the second sample data includes user information of multiple users and product information of multiple products, each third vector in the third vector set represents user information of the same user, and each fourth vector in the fourth vector set represents product information of the same product;
[0164] The third input module 309 is used to input the first vector and the corresponding third vector into the first neural network, and output a fifth latent factor vector;
[0165] The fourth input module 310 is used to input the second vector and the corresponding fourth vector into the second neural network, and output a sixth latent factor vector.
[0166] The optimization module 304 is further configured to optimize the objective function according to a third difference between the fifth latent factor vector and the third latent factor vector and a fourth difference between the sixth latent factor vector and the fourth latent factor vector.
[0167] According to an embodiment of the present disclosure, by inputting the first vector and the corresponding third vector into the first neural network together, outputting the fifth latent factor vector, and inputting the second vector and the corresponding fourth vector into the second neural network together, and outputting the sixth latent factor vector, problems such as cold start and data sparsity in the recommendation system can be solved.
[0168] Fig.14 A block diagram of a data processing system according to another embodiment of the present disclosure is schematically shown.
[0169] like Fig.14 As shown, the data processing system 300 further includes a first processing module 311 , a fifth input module 312 and / or a second processing module 313 , and a sixth input module 314 .
[0170] The first processing module 311 is used to perform noise processing on the first vector and the corresponding third vector before inputting the first vector and the corresponding third vector into the first neural network together.
[0171] The fifth input module 312 is used to input the first vector after the noise processing and the corresponding third vector into the first neural network.
[0172] The second processing module 313 is used to perform noise processing on the second vector and the corresponding fourth vector before inputting the second vector and the corresponding fourth vector together into the second neural network.
[0173] The sixth input module 314 is used to input the second vector after the noise processing and the corresponding fourth vector into the second neural network.
[0174] Through the embodiments of the present disclosure, some noise is applied to the input vector, which is beneficial to the learning of the neural network, thereby improving the accuracy of the prediction and evaluation model.
[0175] Fig.15 The block diagram of the optimization module according to the embodiment of the present disclosure is schematically shown.
[0176] like Fig.15 As shown, the optimization module 304 includes a determination unit 3041 and an optimization unit 3042 .
[0177] The determination unit 3041 is used to determine the optimization parameters of the objective function regarding the third difference and the fourth difference.
[0178] The optimization unit 3042 is used to optimize the objective function based on the optimization parameters.
[0179] Through the embodiments of the present disclosure, the optimization parameters of the third difference and the fourth difference are determined, which is beneficial to improving the accuracy of learning the implicit factor vector in the process of optimizing the objective function.
[0180] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0181] For example, any multiple of the first determination module 301, the first input module 302, the second input module 303, the optimization module 304, the first generation module 305, the second generation module 306, the decomposition module 307, the second determination module 308, the third input module 309, the fourth input module 310, the first processing module 311, the fifth input module 312, the second processing module 313 and the sixth input module 314, the determination unit 3041 and the optimization unit 3042 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first determination module 301, the first input module 302, the second input module 303, the optimization module 304, the first generation module 305, the second generation module 306, the decomposition module 307, the second determination module 308, the third input module 309, the fourth input module 310, the first processing module 311, the fifth input module 312, the second processing module 313 and the sixth input module 314, the determination unit 3041 and the optimization unit 3042 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the first determination module 301, the first input module 302, the second input module 303, the optimization module 304, the first generation module 305, the second generation module 306, the decomposition module 307, the second determination module 308, the third input module 309, the fourth input module 310, the first processing module 311, the fifth input module 312, the second processing module 313 and the sixth input module 314, the determination unit 3041 and the optimization unit 3042 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is executed.
[0182] It should be noted that the data processing system part in the embodiments of the present disclosure corresponds to the data processing method part in the embodiments of the present disclosure. The description of the data processing system part specifically refers to the data processing method part, which will not be repeated here.
[0183] Another aspect of the present disclosure provides a computer system, including one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method as described above.
[0184] Fig.16 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Fig.16 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0185] like Fig.16 As shown, the computer system 500 according to the embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0186] In RAM 503, various programs and data required for the operation of system 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other through bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0187] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0188] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0189] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0190] According to an embodiment of the present disclosure, a computer-readable storage medium may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical cable, radio frequency signal, etc., or any suitable combination of the above.
[0191] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or the RAM 503 described above and / or one or more memories other than the ROM 502 and the RAM 503 .
[0192] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0193] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0194] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A data processing method, comprising: Determine a first vector set and a second vector set according to the first sample data, wherein the first sample data includes evaluation values of multiple users on different products, each first vector in the first vector set represents the evaluation values of the same user on different products, and each second vector in the second vector set represents the evaluation values of multiple users on the same product; Inputting each first vector in the first vector set into a first neural network, and outputting a first latent factor vector, wherein each first vector has a corresponding first latent factor vector, and one or more first latent factor vectors constitute a first latent factor vector set; Inputting each second vector in the second vector set into a second neural network, and outputting a second latent factor vector, wherein each second vector has a corresponding second latent factor vector, and one or more second latent factor vectors constitute a second latent factor vector set; Optimizing an objective function according to an error of the first implicit factor vector set and an error of the second implicit factor vector set; Generate a prediction and evaluation model according to the optimized objective function, wherein the prediction and evaluation model is used to predict the user's evaluation value of the product; Generate an evaluation matrix according to the first sample data, wherein each element in the evaluation matrix represents a user's evaluation value of a product; Decomposing the evaluation matrix into a first matrix and a second matrix, wherein the first matrix includes a plurality of third latent factor vectors, each of which represents a latent factor vector of a corresponding user, and the second matrix includes a plurality of fourth latent factor vectors, each of which represents a latent factor vector of a corresponding product; and Optimizing the objective function according to the error of the first implicit factor vector set and the error of the second implicit factor vector set includes: optimizing the objective function according to a first difference between the first implicit factor vector and the third implicit factor vector and a second difference between the second implicit factor vector and the fourth implicit factor vector.
2. The method according to claim 1, wherein: The method further comprises: Determine a third vector set and a fourth vector set according to the second sample data, wherein the second sample data includes user information of multiple users and product information of multiple products, each third vector in the third vector set represents user information of the same user, and each fourth vector in the fourth vector set represents product information of the same product; Inputting each first vector in the first vector set into the first neural network, and outputting a first latent factor vector comprises: inputting the first vector and the corresponding third vector together into the first neural network, and outputting a fifth latent factor vector; Inputting each second vector in the second vector set into the second neural network, and outputting a second latent factor vector comprises: inputting the second vector and the corresponding fourth vector together into the second neural network, and outputting a sixth latent factor vector; and Optimizing the objective function according to the error of the first implicit factor vector set and the error of the second implicit factor vector set includes: optimizing the objective function according to a third difference between the fifth implicit factor vector and the third implicit factor vector and a fourth difference between the sixth implicit factor vector and the fourth implicit factor vector.
3. The method according to claim 2, wherein: The method further comprises: Before inputting the first vector and the corresponding third vector together into the first neural network, performing noise processing on the first vector and the corresponding third vector; Inputting the first vector after the noise processing and the corresponding third vector into the first neural network together; and / or Before inputting the second vector and the corresponding fourth vector together into the second neural network, performing noise processing on the second vector and the corresponding fourth vector; The second vector after the noise processing and the corresponding fourth vector are input into the second neural network together.
4. The method according to claim 2, wherein: Optimizing the objective function according to a third difference between the fifth implicit factor vector and the third implicit factor vector and a fourth difference between the sixth implicit factor vector and the fourth implicit factor vector comprises: determining an optimization parameter in the objective function with respect to the third difference and the fourth difference; and The objective function is optimized based on the optimization parameters.
5. A data processing system comprising: A first determination module is used to determine a first vector set and a second vector set according to first sample data, wherein the first sample data includes evaluation values of multiple users on different products, each first vector in the first vector set represents the evaluation values of the same user on different products, and each second vector in the second vector set represents the evaluation values of multiple users on the same product; A first input module, used for inputting each first vector in the first vector set into a first neural network, and outputting a first latent factor vector, wherein each first vector has a corresponding first latent factor vector, and one or more first latent factor vectors constitute a first latent factor vector set; A second input module, used for inputting each second vector in the second vector set into a second neural network, and outputting a second latent factor vector, wherein each second vector has a corresponding second latent factor vector, and one or more second latent factor vectors constitute a second latent factor vector set; An optimization module, configured to optimize an objective function according to an error of the first latent factor vector set and an error of the second latent factor vector set; A first generating module is used to generate a prediction evaluation model according to the optimized objective function, wherein the prediction evaluation model is used to predict the user's evaluation value of the product; A second generating module is used to generate an evaluation matrix according to the first sample data, wherein each element in the evaluation matrix represents a user's evaluation value of a product; a decomposition module, configured to decompose the evaluation matrix into a first matrix and a second matrix, wherein the first matrix includes a plurality of third latent factor vectors, each of which represents a latent factor vector corresponding to a user, and the second matrix includes a plurality of fourth latent factor vectors, each of which represents a latent factor vector corresponding to a product; and The optimization module is further configured to optimize the objective function according to a first difference between the first latent factor vector and the third latent factor vector and a second difference between the second latent factor vector and the fourth latent factor vector.
6. The system according to claim 5, wherein: The system further comprises: a second determination module, configured to determine a third vector set and a fourth vector set according to second sample data, wherein the second sample data includes user information of multiple users and product information of multiple products, each third vector in the third vector set represents user information of the same user, and each fourth vector in the fourth vector set represents product information of the same product; A third input module, used for inputting the first vector and the corresponding third vector into the first neural network together, and outputting a fifth latent factor vector; a fourth input module, configured to input the second vector and the corresponding fourth vector into the second neural network, and output a sixth latent factor vector; and The optimization module is further configured to optimize the objective function according to a third difference between the fifth hidden factor vector and the third hidden factor vector and a fourth difference between the sixth hidden factor vector and the fourth hidden factor vector.
7. The system according to claim 6, wherein: The system further comprises: A first processing module, configured to perform noise processing on the first vector and the corresponding third vector before inputting the first vector and the corresponding third vector together into the first neural network; a fifth input module, configured to input the first vector after the noise processing and the corresponding third vector into the first neural network; and / or A second processing module, configured to perform noise processing on the second vector and the corresponding fourth vector before inputting the second vector and the corresponding fourth vector together into the second neural network; The sixth input module is used to input the second vector after the noise processing and the corresponding fourth vector into the second neural network.
8. The system according to claim 6, wherein: The optimization module includes: a determining unit, configured to determine an optimization parameter in the objective function with respect to the third difference and the fourth difference; and An optimization unit is used to optimize the objective function based on the optimization parameters.
9. A computer system comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method according to any one of claims 1 to 4.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the data processing method according to any one of claims 1 to 4.
