Resource recommendation method, device, electronic device and storage medium
By adjusting and integrating resource recommendation parameters in multi-source scenarios, combined with the depth gate integration sub-model, the problem of low resource recommendation accuracy in multi-source scenarios is solved, and more accurate user interest mining and recommendation effects are achieved.
Patent Information
- Application Number
- CN202010625624.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-01
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-07-01
AI Technical Summary
In a multi-source scenario, the accuracy of resource recommendation in the existing technology is low, mainly due to insufficient feature learning caused by ignoring the difference in interest between sources and inconsistent data distribution.
Through the preset operation of multimedia resources based on the target account, the recommendation parameters of the target type and the type to be recommended are determined, the filtering parameters are adjusted to consider the user's behavior under different types of display pages, and the depth gate integration sub-model is used to estimate multi-source targets. Value integration, adaptive to user behavior changes.
The accuracy of resource recommendation is improved, the user's behavior on different types of display pages is fully considered, the filtering parameters obtained are more precise, and the recommendation results are more accurate.
Smart Images

Figure CN113886674B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a resource recommendation method, device, electronic device and storage medium. Background Art
[0002] Short videos are becoming more and more popular in people's daily lives. There are mainly two product forms (two sources) in the short video field, one is a single-column up and down sliding form, and the other is a double-column clicking form.
[0003] In response to the multi-source product forms of single-column and double-column products that appear simultaneously in the short video field, when performing video recommendations in related technologies, one method is to use independent data for recommendation predictions, ignoring the differences in interests between sources and causing loss of user interest; another method is to consider the combination of multiple sources, share a set of data streams, and extract common features for recommendation predictions. Due to the inconsistency of data distribution between different sources, mixing multiple data together will lead to insufficient feature learning.
[0004] In summary, the recommendation methods in related technologies in multi-source scenarios result in low accuracy of resource recommendations. Summary of the invention
[0005] The present disclosure provides a resource recommendation method, device, electronic device and storage medium to at least solve the problem of low accuracy of resource recommendation in multi-source scenarios in the related art. The technical solution of the present disclosure is as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, a resource recommendation method is provided, comprising:
[0007] Determine, based on preset operations of the target account on multimedia resources in a display page of the target type and a display page of the type to be recommended, a first recommendation parameter of the target type and a second recommendation parameter of the type to be recommended, wherein the target type is selected from all types according to a degree of association with the target account, and the type to be recommended is a type of display page that needs to be recommended to the target account;
[0008] According to the first recommendation parameter and the second recommendation parameter, adjusting the first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource and the second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the type to be recommended, to obtain target screening parameters;
[0009] The multimedia resources recommended to the target account are screened out based on the target screening parameters, and a display page of the to-be-recommended type including the screened multimedia resources is generated.
[0010] Optionally, the first screening parameter is obtained according to the following method:
[0011] Extracting multimedia public information of the target account according to the behavior information of the target account on multimedia resources in different types of display pages and the attribute information of the multimedia resources;
[0012] Based on the multimedia public information, a first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource is obtained.
[0013] Optionally, the second screening parameter is obtained according to the following method:
[0014] Extracting multimedia-specific information of the target account according to the behavior information of the target account on the multimedia resources in the display page of the type to be recommended and the attribute information of the multimedia resources;
[0015] Based on the multimedia public information and the multimedia specific information, a second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the to-be-recommended type is obtained.
[0016] Optionally, determining the first recommendation parameter of the target type and the second recommendation parameter of the type to be recommended based on preset operations of the target account on the multimedia resources in the display page of the target type and the display page of the type to be recommended includes:
[0017] Converting the number of times the target account performs the preset operation on the multimedia resources in each type of display page within a preset time period into an embedded feature vector;
[0018] Performing matrix operations and normalization processing on the embedded feature vector to obtain a target feature vector;
[0019] Based on the target feature vector, a first recommended parameter of the target type and a second recommended parameter of the type to be recommended are obtained, wherein each element in the target feature vector represents a recommended parameter of each type.
[0020] Optionally, the step of adjusting, according to the first recommendation parameter and the second recommendation parameter, a first screening parameter corresponding to when the target account performs a preset operation on a multimedia resource, and a second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on a display page of the type to be recommended, to obtain the target screening parameter includes:
[0021] The product of the first screening parameter and the first recommended parameter, and the sum of the product of the second screening parameter and the second recommended parameter are used as the target screening parameter.
[0022] Optionally, the acquiring, based on the multimedia public information, a first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource includes:
[0023] Feature extraction is performed on the multimedia public information based on a first recommendation sub-model in a trained recommendation model to obtain the first screening parameter.
[0024] Optionally, the acquiring, based on the multimedia public information and the multimedia specific information, a second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the to-be-recommended type includes:
[0025] Feature extraction is performed on the multimedia common information and the multimedia specific information based on the second recommendation sub-model in the trained recommendation model to obtain the second screening parameter.
[0026] Optionally, determining the first recommendation parameter of the target type and the second recommendation parameter of the type to be recommended based on the preset operation of the target account on the display page of the type to be recommended and the multimedia resources in the display page of the target type includes:
[0027] Based on the deep gate integration sub-model in the trained recommendation model, feature extraction is performed on the number of times the target account performs the preset operation on the recommended multimedia resources in each type of display page within a preset time period to obtain the first recommendation parameter and the second recommendation parameter.
[0028] Optionally, the step of adjusting, according to the first recommendation parameter and the second recommendation parameter, a first screening parameter corresponding to when the target account performs a preset operation on a multimedia resource, and a second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on a display page of the type to be recommended, to obtain the target screening parameter includes:
[0029] Based on the output layer in the trained recommendation model, the first screening parameter and the second screening parameter are weighted according to the first recommendation parameter and the second recommendation parameter to obtain the target screening parameter.
[0030] Optionally, the trained recommendation model is obtained by training in the following manner:
[0031] The model parameters in the initial recommendation model are adjusted for multiple rounds, wherein the model parameters in the initial recommendation model are preset, and each round of adjustment performs the following process:
[0032] According to the first estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource, the first recommendation sub-model in the initial recommendation model predicts the first recommendation sub-model, adjusting the first recommendation sub-model; and
[0033] adjusting the second recommendation sub-model according to a second estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource on the display page of the to-be-recommended type, obtained by prediction by the second recommendation sub-model in the initial recommendation model;
[0034] Adjust the deep gate integrated sub-model according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integrated sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter.
[0035] Optionally, adjusting the deep gate integrated sub-model according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integrated sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter, comprises:
[0036] The estimated parameters obtained by weighting the first estimated recommendation parameters and the second estimated recommendation parameters are compared with the actual screening parameters determined based on the behavior information of the sample accounts on the sample multimedia resources in the display page of the type to be recommended, and the model parameters in the deep gate integrated sub-model are adjusted based on the comparison results.
[0037] According to a second aspect of an embodiment of the present disclosure, a resource recommendation device is provided, including:
[0038] a determination unit configured to perform preset operations based on the target account on multimedia resources in the display page of the target type and the display page of the type to be recommended, and determine a first recommendation parameter of the target type and a second recommendation parameter of the type to be recommended, wherein the target type is selected from all types according to the degree of association with the target account, and the type to be recommended is the type of the display page that needs to be recommended to the target account;
[0039] The integration unit is configured to adjust the first screening parameter corresponding to the target account performing the preset operation on the multimedia resource and the second screening parameter corresponding to the target account performing the preset operation on the multimedia resource on the display page of the type to be recommended according to the first recommendation parameter and the second recommendation parameter, so as to obtain the target screening parameter;
[0040] The recommendation unit is configured to perform filtering of multimedia resources recommended to the target account based on the target filtering parameters, and generate a display page of the to-be-recommended type containing the filtered multimedia resources.
[0041] Optionally, the device further comprises:
[0042] An estimation unit is configured to extract multimedia public information of the target account according to the behavior information of the target account on multimedia resources in different types of display pages and the attribute information of the multimedia resources;
[0043] Based on the multimedia public information, a first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource is obtained.
[0044] Optionally, the estimation unit is further used for:
[0045] Extracting multimedia-specific information of the target account according to the behavior information of the target account on the multimedia resources in the display page of the type to be recommended and the attribute information of the multimedia resources;
[0046] Based on the multimedia public information and the multimedia specific information, a second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the to-be-recommended type is obtained.
[0047] Optionally, the determining unit is configured to execute:
[0048] Converting the number of times the target account performs the preset operation on the multimedia resources in each type of display page within a preset time period into an embedded feature vector;
[0049] Performing matrix operations and normalization processing on the embedded feature vector to obtain a target feature vector;
[0050] Based on the target feature vector, a first recommended parameter of the target type and a second recommended parameter of the type to be recommended are obtained, wherein each element in the target feature vector represents a recommended parameter of each type.
[0051] Optionally, the integrated unit is specifically configured to perform:
[0052] The product of the first screening parameter and the first recommended parameter, and the sum of the product of the second screening parameter and the second recommended parameter are used as the target screening parameter.
[0053] Optionally, the estimation unit is specifically configured to execute:
[0054] Feature extraction is performed on the multimedia public information based on a first recommendation sub-model in a trained recommendation model to obtain the first screening parameter.
[0055] Optionally, the estimation unit is specifically configured to execute:
[0056] Feature extraction is performed on the multimedia common information and the multimedia specific information based on the second recommendation sub-model in the trained recommendation model to obtain the second screening parameter.
[0057] Optionally, the integrated unit is specifically configured to perform:
[0058] Based on the deep gate integration sub-model in the trained recommendation model, feature extraction is performed on the number of times the target account performs the preset operation on the recommended multimedia resources in each type of display page within a preset time period to obtain the first recommendation parameter and the second recommendation parameter.
[0059] Optionally, based on the output layer in the trained recommendation model, the first screening parameter and the second screening parameter are weighted according to the first recommendation parameter and the second recommendation parameter to obtain the target screening parameter.
[0060] Optionally, the device further comprises:
[0061] The training unit is configured to perform multiple rounds of adjustments on the model parameters in the initial recommendation model, wherein the model parameters in the initial recommendation model are preset, and each round of adjustments performs the following process:
[0062] According to the first estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource, the first recommendation sub-model in the initial recommendation model predicts the first recommendation sub-model, adjusting the first recommendation sub-model; and
[0063] adjusting the second recommendation sub-model according to a second estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource on the display page of the to-be-recommended type, obtained by prediction by the second recommendation sub-model in the initial recommendation model;
[0064] Adjust the deep gate integrated sub-model according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integrated sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter.
[0065] Optionally, the training unit is specifically configured to execute:
[0066] The estimated parameters obtained by weighting the first estimated recommendation parameters and the second estimated recommendation parameters are compared with the actual screening parameters determined based on the behavior information of the sample accounts on the sample multimedia resources in the display page of the type to be recommended, and the model parameters in the deep gate integrated sub-model are adjusted based on the comparison results.
[0067] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0068] processor;
[0069] a memory for storing instructions executable by the processor;
[0070] The processor is configured to execute the instructions to implement the resource recommendation method described in any one of the first aspects of the embodiments of the present disclosure.
[0071] According to a fourth aspect of an embodiment of the present disclosure, a non-volatile readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource recommendation method described in any one of the first aspect of the embodiments of the present disclosure.
[0072] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the above-mentioned first aspect of the embodiment of the present disclosure and any method that may be involved in the first aspect.
[0073] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0074] Because in the embodiment of the present disclosure, when recommending resources in a multi-source scenario, based on the preset operations performed by the target account on multimedia resources in different types of display pages, the recommendation parameters corresponding to different types are analyzed, which can adapt to the changes in user behavior between different types and effectively solve the problem of user loss of interest. In addition, when estimating the target screening parameters of multimedia resources, the first screening parameters corresponding to the estimated target account performing the preset operation on the multimedia resources and the second screening parameters corresponding to the target account performing the preset operation on the multimedia resources on the display page of the type to be recommended are adjusted based on the recommendation parameters, fully considering the user's behavior under different types of display pages, and the obtained target screening parameters are more accurate, so the recommendation results obtained based on the target screening parameters are more accurate.
[0075] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0077] Figure 1 is a flow chart showing an application scenario according to an exemplary embodiment;
[0078] Figure 2 is a flow chart of a resource recommendation method according to an exemplary embodiment;
[0079] Figure 3 is a schematic diagram of a display page according to an exemplary embodiment;
[0080] Figure 4 is a schematic diagram of another display page according to an exemplary embodiment;
[0081] Figure 5 is a schematic diagram of a recommendation model according to an exemplary embodiment;
[0082] Figure 6 is a flow chart of a complete method for resource recommendation according to an exemplary embodiment;
[0083] Figure 7 is a flowchart of a training method for a recommendation model according to an exemplary embodiment;
[0084] Figure 8 is a block diagram of a resource recommendation device according to an exemplary embodiment;
[0085] Fig. 9 is a block diagram of an electronic device according to an exemplary embodiment;
[0086] Fig.10 The figure is a schematic diagram showing the composition structure of a terminal device according to an exemplary embodiment. DETAILED DESCRIPTION
[0087] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0088] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0089] The following are explanations of some of the terms that appear in the text:
[0090] And / or: describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0091] Electronic devices: can be mobile phones, computers, digital broadcast terminals, messaging devices, game consoles, tablet devices, medical devices, fitness equipment, personal digital assistants, etc.
[0092] Multimedia public information: refers to the information obtained by extracting features based on the user's behavior information on multimedia resources in different types of display pages and the attribute information of multimedia resources. It not only represents the behavior of users and videos in the primary source form, but also represents the behavior in the secondary source form. Specifically, it can be divided into the public feature information of the target account, the public attribute information of multimedia resources, and the public combined feature information between multimedia resources and the target account.
[0093] Multimedia-specific information: refers to the information obtained by extracting features based on the user's behavior information on multimedia resources in the display page of the recommended type and the attribute information of multimedia resources. It represents the behavior of users and videos in the source form and is a supplement to multimedia public information. Specifically, it can also be divided into the unique feature information of the target account, the unique attribute information of multimedia resources, and the unique combination feature information between multimedia resources and target accounts.
[0094] Deep learning: The concept of deep learning originates from the study of artificial neural networks. A multi-layer perceptron with multiple hidden layers is a deep learning structure. Deep learning discovers the distributed feature representation of data by combining low-level features to form more abstract high-level representation attribute categories or features. Deep learning is a new field in machine learning research. Its motivation is to establish and simulate neural networks for analytical learning in the human brain. It imitates the mechanism of the human brain to interpret data, such as images, sounds, and texts. Like machine learning methods, deep machine learning methods are also divided into supervised learning and unsupervised learning. The learning models established under different learning frameworks are very different.
[0095] MLP (Multilayer Perceptron): also called artificial neural network (ANN). In addition to the input and output layers, it can have multiple hidden layers in the middle. The simplest MLP contains only one hidden layer, that is, a three-layer structure. The layers of the multilayer perceptron are fully connected. The bottom layer of the multilayer perceptron is the input layer, the middle layer is the hidden layer, and the last layer is the output layer. Input layer: For example, if the input is an n-dimensional vector, there are n neurons. The hidden layer and the input layer are fully connected. Assuming that the input layer is represented by vector X, the output of the hidden layer is f(W1X+b1), W1 is the weight (also called the connection coefficient), b1 is the bias, and the function f can be the commonly used sigmoid function or tanh function; the hidden layer to the output layer can be regarded as a multi-category logistic regression, that is, softmax regression, so the output of the output layer is softmax(W2X1+b2), and X1 represents the output of the hidden layer f(W1X+b1).
[0096] Softmax function: Softmax is used in the multi-classification process. It maps the outputs of multiple neurons to the interval (0, 1), which can be understood as probability, thereby performing multi-classification.
[0097] Redis: It is an open source log-type, Key-Value database (storage system) written in ANSI C language, supporting the network, memory-based and persistent, and provides APIs in multiple languages. Similar to Memcached, it supports relatively more value types for storage, including string, list, set, and zset. These data types support push / pop, add / remove, intersection, union, difference, and richer operations, and these operations are atomic. On this basis, redis supports various different sorting methods. Like memcached, in order to ensure efficiency, data is cached in memory. The difference is that redis will periodically write updated data to disk or write modification operations to additional record files, and on this basis, master-slave synchronization is implemented.
[0098] Kafka: is an open source stream processing platform, a high-throughput distributed publish-subscribe messaging system that can handle all action stream data on consumer-scale websites. This action (web browsing, search and other user actions) is a key factor in many social functions on the modern network. This data is usually solved by processing logs and log aggregation due to throughput requirements. For log data and offline analysis systems like Hadoop, but with the constraints of real-time processing, this is a viable solution. Kafka aims to unify online and offline message processing through Hadoop's parallel loading mechanism, and also to provide real-time messages through clusters.
[0099] Model parameters: usually include two parts: network parameters and feature embedding. Network parameters refer to the parameters in the neural network, such as W (weight), b (bias), etc. Embedding is used to convert positive integers (indexes) into dense vectors of fixed size, which refers to the parameters involved in the Embedding layer in the neural network.
[0100] The following is a brief introduction to the design concept of the embodiment of the present disclosure:
[0101] With the continuous development of hardware and the continuous improvement of computing power, deep learning technology has not only shined in the fields of audio and video, natural language processing, etc., but has also made phased progress in recommendation fields such as advertising recommendation and video recommendation. Since the wide&deep model was proposed, new model structures have been proposed and applied in the industry. At present, deep learning has been widely used in major recommendation systems.
[0102] The recommendation system is generally divided into four stages, including the recall stage, the rough sorting stage, the fine sorting stage, and the re-sorting stage. The present disclosure mainly optimizes the fine sorting stage. In the related art, the corresponding recommendation models are different for different product forms, but in fact, for the same product, although the product forms are different, the data of the corresponding recommendation model is isomorphic. Taking short video applications as an example, there are two main product forms (sources) in the short video field, one is a single-column up and down sliding form, and the other is a double-column click form. Some applications combine the two forms to produce multiple Tab (label) pages, with a single-column form on a certain Tab page and a double-column form on another Tab page. In addition, due to the cultivation of early user behavior, there is often a main page and a secondary page, that is, the user spends more time on a certain page than on another page. There are even multiple pages of different forms. Generally speaking, the user spends the most time on the main page, and other pages with relatively low consumption time can be called secondary pages.
[0103] For the situation where multiple sources appear at the same time, in the relevant technology, recommendation models can be roughly divided into two categories. The first category models different sources separately, builds independent data streams and recommendation models for each source, designs features and network structures for each source, and uses independent data for model training and online prediction. The second category considers the combination of multiple sources, shares a set of data streams, extracts common features, shares a set of network structures, mixes the two types of data together for training, does not distinguish the data source, or adds a page type feature to distinguish the data source.
[0104] However, the above two recommendation methods will face the following major problems:
[0105] 1. Feature Embedding and network parameters are not learned well. Due to the inconsistency of data distribution between different sources, mixing multiple data together for training will lead to insufficient learning of network parameters, which indirectly leads to insufficient learning of feature Embedding. If the sources are trained independently, the independent model corresponding to each source will lose part of the training data, resulting in insufficient learning of feature Embedding. Although the distribution of this part of training data is a bit inconsistent, it is still an important resource that can be used.
[0106] 2. There are problems of loss of user interests and differences in interests between sources. If the models between sources are independent, users who have just switched to the secondary source will lose their behavior information in the primary source. The interests of users between sources should be similar. If the sources are mixed together for training, the model cannot distinguish the source where the user is. Although the interests of users between sources are similar, they are also different and should be distinguished.
[0107] In view of this, the embodiments of the present disclosure provide a resource recommendation method, device, electronic device and storage medium in a multi-source homogeneous data scenario. The embodiments of the present disclosure also propose a recommendation model that uses a master source to assist in training a slave source. The network structure of the recommendation model is newly proposed in the embodiments of the present disclosure. By making the network structure independent and adding slave source-specific features in addition to the common feature sharing training, it is possible to fully utilize all data while retaining the source's own behavioral characteristics, so that the feature embedding learning is sufficient, the network parameters are also fully applicable to the data distribution of a specific source, and the estimated value conforms to the data distribution of the corresponding source.
[0108] In addition, in order to solve the problem of user interest loss when switching to a new slave source, the disclosed embodiment integrates the estimated values of multi-source targets through a deep gate integration sub-model. The integrated parameters are learned by the model itself and can adapt to the changes in user behavior between different sources. In addition, through the sharing of underlying network parameters, the predicted target of the slave source can use the user's behavioral characteristics in the main source as input features, which can effectively solve the problem of user interest loss when switching to a new source. In addition, the disclosed embodiment establishes two different networks for the main source and the slave source separately, and has the ability to distinguish the differences in user interests between sources.
[0109] The application scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems. In the description of the present disclosure, unless otherwise specified, the meaning of "multiple" is the same.
[0110] The following is a brief introduction to the application scenarios of the embodiments of the present disclosure:
[0111] See also Figure 1 As shown, it is a schematic diagram of an application scenario of an embodiment of the present disclosure. The application scenario diagram includes two terminal devices 110 and a server 130. The terminal device 110 can log in to the display page 120 of the multimedia resource. The terminal device 110 and the server 130 can communicate with each other through a communication network. Each terminal device corresponds to a user, Figure 1 In the example, user A and user B each correspond to one terminal device 110, but the number of terminal devices is not limited. In some cases, the terminal devices may communicate with each other through the server 130, and direct communication may be established between the terminal devices. The direct communication between the terminal devices may be called point-to-point communication. In this case, some interaction processes between the terminal devices may not require the transfer of the server 130.
[0112] Among them, each terminal device may be installed with the short video client provided in the embodiment of the present disclosure. The client involved in the embodiment of the present disclosure may be a pre-installed client, or a client embedded in an application (such as a mini program), or a web version of the client, without limiting the specific type of the client.
[0113] It should be noted that the resource recommendation method in the embodiment of the present disclosure can be executed by the server 130, and accordingly, the resource recommendation device is generally arranged in the server 130. Optionally, the resource recommendation method provided in the embodiment of the present disclosure can also be executed by the terminal device 110, and accordingly, the resource recommendation device is generally arranged in the terminal device 110. In addition, it should be noted that the resource recommendation method provided in the embodiment of the present disclosure can also be jointly executed by the server 130 and the terminal device 110, for example, the step of "filtering out multimedia resources recommended to the target account based on the target filtering parameters, and generating a display page of the type to be recommended containing the filtered multimedia resources" can be executed by the terminal device 110, and the remaining steps can be executed by the server 130. The present disclosure does not limit this.
[0114] In an optional implementation, the communication network is a wired network or a wireless network. The terminal 110 and the server 130 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present disclosure.
[0115] In the embodiment of the present disclosure, the terminal device 110 is an electronic device used by the user, which can be a personal computer, mobile phone, tablet computer, notebook, e-book reader, etc., which has certain computing power and runs instant messaging software and websites or social software and websites. Each terminal device 110 is connected to the server 130 through a wireless network. The server 130 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected through wired or wireless communication, and the present disclosure is not limited here.
[0116] Figure 2 is a flow chart of a resource recommendation method according to an exemplary embodiment. Figure 2 As shown, the following steps are included.
[0117] In step S21, based on the preset operations of the target account on the multimedia resources in the display page of the target type and the display page of the to-be-recommended type, a first recommendation parameter of the target type and a second recommendation parameter of the to-be-recommended type are determined, wherein the target type is selected from all types according to the degree of association with the target account, and the to-be-recommended type is the type of the display page that needs to be recommended to the target account;
[0118] Among them, multimedia resources refer to digitally transmitted resources, such as short videos, live broadcasts, etc., and the following mainly uses short videos as an example for illustration. Preset operations refer to certain operations performed by users on multimedia resources, such as click, like, follow, effective play, etc., where effective play means that the user plays a multimedia resource for more than a certain time.
[0119] In the embodiments of the present disclosure, the preset operation corresponds to the predicted target. For example, if the preset operation is click, the predicted target is click rate. At this time, the first screening parameter, the second screening parameter, and the target screening parameter in the embodiments of the present disclosure all refer to click rate; when the preset operation is effective playback, the first screening parameter, the second screening parameter, and the target screening parameter all refer to effective playback rate, etc. Among them, the first screening parameter refers to the probability value of the user performing the preset operation on the multimedia resource estimated based on the user's behavior in the application (without distinguishing the page type), the second screening parameter refers to the probability value of the user performing the preset operation on the multimedia resource estimated based on the user's behavior on the display page of the type to be recommended, and the target screening parameter is the probability value obtained by integrating the first screening parameter and the second screening parameter.
[0120] The following mainly uses the preset operation as an example for effective playback.
[0121] If we take short videos as an example of multimedia resources, in some common short video applications, there are mainly two product forms (sources), one is a single-column up-and-down sliding form, and the other is a double-column click form. These two product forms correspond to two types of display pages, such as Figure 3 and Figure 4 shown.
[0122] in, Figure 3 This is a schematic diagram of a single-column up-and-down sliding display page listed in an embodiment of the present disclosure. In this type of display page, users are more likely to accept the system's recommendation results, and the operation is relatively simple. Users can scroll up and down to view different short videos. Figure 4 This is a schematic diagram of a double-column click-style display page listed in an embodiment of the present disclosure. In this type of display page, users have more choices and can click on their favorite videos based on the cover.
[0123] In the embodiments of the present disclosure, the target type refers to a page type selected from all types based on the degree of association with the target account. In general, the page type with a higher user consumption time can be used as the target type. The longer the user consumption time, the higher the degree of association between the type and the user. The to-be-recommended type is the type of display page that needs to be recommended to the target account. Taking the multi-source product form scenario in which single columns and double columns appear simultaneously in the short video field as an example, in the embodiments of the present disclosure, the user with a longer consumption time is called the main source, and the user with a relatively shorter consumption time is called the secondary source. Therefore, the target type is the main source form, and the to-be-recommended type refers to any secondary source form that needs to be recommended to the user.
[0124] In step S22, according to the first recommendation parameter and the second recommendation parameter, the first screening parameter corresponding to the target account performing the preset operation on the multimedia resource and the second screening parameter corresponding to the target account performing the preset operation on the multimedia resource on the display page of the type to be recommended are adjusted to obtain the target screening parameter;
[0125] In step S23, multimedia resources recommended to the target account are screened out based on the target screening parameters, and a display page of the to-be-recommended type containing the screened multimedia resources is generated.
[0126] Specifically, there are many ways to filter multimedia resources that can be recommended to a target account based on target filtering parameters, such as sorting each multimedia resource according to the size of the target filtering parameter corresponding to each multimedia resource, and taking the first N multimedia resources with the highest target filtering parameters among M multimedia resources as the filtered multimedia resources and recommending them to the target account, where M and N are both positive integers, and M is greater than N. Alternatively, taking multimedia resources with target filtering parameters greater than a preset recommendation threshold as filtered multimedia resources, and multimedia resources with target filtering parameters less than the preset recommendation threshold are no longer recommended to the target account, and so on.
[0127] If the type to be recommended is in a double-column click format, it can be further sorted according to the size of the target filtering parameters corresponding to each filtered multimedia resource, determine the display position of each filtered multimedia resource in the display page of the double-column click format, and generate a display page of the type to be recommended containing the filtered multimedia resources based on the determined display position. For example, the larger the target filtering parameter, the closer the display position in the display page.
[0128] If the type to be recommended is in a single-column up-and-down sliding form, the selected multimedia resources can be further sorted according to the size of the target filtering parameters corresponding to each selected multimedia resource to determine the display order of each selected multimedia resource, and a display page of the type to be recommended containing the selected multimedia resources is generated based on the determined display order. For example, the larger the target filtering parameter, the higher the display order.
[0129] In the above implementation, based on the preset operations performed by the target account on multimedia resources in different types of display pages, the recommendation parameters corresponding to different types are analyzed, which can adapt to the changes in user behavior between different types and effectively solve the problem of user loss of interest. In addition, when estimating the target screening parameters of multimedia resources, the first screening parameters corresponding to the estimated target account performing the preset operation on the multimedia resources and the second screening parameters corresponding to the target account performing the preset operation on the multimedia resources on the display page of the type to be recommended are adjusted based on the recommendation parameters, fully considering the user's behavior under different types of display pages, and the target screening parameters obtained are more accurate, so the recommendation results obtained based on the target screening parameters are more accurate.
[0130] For the convenience of introduction, the following examples of the present disclosure are introduced in two forms (two sources) of scenarios. It should be noted that although the following examples focus on two-source scenarios, multi-source scenarios can also be adapted. The resource recommendation method in the present disclosure example is a joint training method based on deep gate integration proposed for the source.
[0131] In an optional implementation, the first screening parameter is obtained according to the following method:
[0132] The multimedia public information of the target account is extracted based on the target account's behavior information on multimedia resources in different types of display pages and the attribute information of the multimedia resources; based on the multimedia public information, the first screening parameter corresponding to the target account performing a preset operation on the multimedia resources is obtained.
[0133] Specifically, when extracting the multimedia public information of the target account, user features, video features, and combined features may be considered. The multimedia public information includes but is not limited to the following parts:
[0134] The public characteristic information of the target account, the public attribute information of the multimedia resources, and the public combination characteristic information between the target account and the multimedia resources.
[0135] Among them, the public characteristic information of the target account includes: UserId, the user's recent effective playback history video ID characteristics, offline mined user interest characteristics, user basic attribute characteristics such as gender and age, the IP (Internet Protocol, the interconnection protocol between networks) of this request, time characteristics, etc., the user's city and other characteristics.
[0136] Among them, UserId refers to the Id (Identity) of the target account; the ID of the historical video that the user has effectively played recently is determined without distinguishing the type of display page. That is to say, as long as the user has effectively played a historical video A recently, no matter whether the historical video is presented to the user through a display page of the target type or a display page of the to-be-recommended type, it is a historical video that the user has effectively played recently. Accordingly, the ID feature of the historical video that the user has effectively played recently includes the ID of the historical video A.
[0137] Offline mined user interest features refer to the user's interest preferences obtained based on the analysis of the user's historical video viewing behavior over a period of time. For example, the user's preferred video type is game-type, and the user prefers to watch videos after 9 pm, etc.
[0138] The common attribute information of multimedia resources includes: PhotoId, video Tag, video count feature, video EmpiricalXtr feature, etc.
[0139] Specifically, PhotoId refers to the ID of the video; Video Tag refers to the label of the video, such as games, education, comedy, news, etc.; the video count feature refers to the number of times the user effectively plays the video, regardless of the type of display page, and refers to the sum of the number of times the user effectively plays the video in each type, that is, the number of times the user effectively plays the video in the entire APP (Application); The video EmpiricalXtr feature refers to the effective playback rate of the video played by the user, that is, the playback rate of the video effectively played by the user in the entire APP.
[0140] When the preset operation is like, the video count feature refers to the number of times the user likes the video; when the preset operation is click, the video count feature refers to the number of times the user clicks the video, etc. Similarly, the video EmpiricalXtr feature is similar.
[0141] In the disclosed embodiment, the common combined feature information between the multimedia resource and the target account includes: the user's recent performance in watching the candidate video tags, UserId combined candidate video tags, negative feedback features based on tags, etc.
[0142] Among them, the candidate video refers to the multimedia resource of the target screening parameter to be predicted this time. The performance of users watching candidate video tags recently refers to the performance of users watching videos of the same type as the candidate video recently; UserId combined candidate video tags refers to the features obtained by combining UserId with candidate video tags; Tag-based negative feedback features refer to the negative feedback features when users watch videos of the same type as the candidate video recently, which can be obtained based on the analysis of user historical behavior.
[0143] The above-listed features are all introduced in detail by taking the multimedia resource as a short video. When the multimedia resource is not a short video, the same principle applies. Specifically, the features can be divided into the target account side, the multimedia resource side, and the combination of the target account and the multimedia resource. The same applies to the multimedia-specific information described below.
[0144] In the above implementation, based on the main source data and the multimedia public information obtained from the secondary source data, not only the characteristics of the user and the video in the main source form but also the characteristics in the secondary source form are represented, thereby ensuring the integrity of the data.
[0145] In an optional implementation, the second screening parameter is obtained according to the following method:
[0146] Based on the target account's behavior information on the multimedia resources in the display page of the recommended type and the attribute information of the multimedia resources, the multimedia-specific information of the target account is extracted; based on the multimedia public information and the multimedia-specific information, the second filtering parameter corresponding to the target account performing a preset operation on the multimedia resources on the display page of the recommended type is obtained.
[0147] Similar to multimedia public information, multimedia specific information can also be divided into the following three parts:
[0148] Unique feature information of the target account, unique attribute information of the multimedia resource, and unique combined feature information between the target account and the multimedia resource.
[0149] Among them, the unique characteristic information of the target account may also include: UserId, the user's recent effective playback history video ID characteristics, offline mined user interest characteristics, user basic attribute characteristics such as gender and age, the IP of this request, time characteristics, etc., the user's city and other characteristics.
[0150] Compared with the public feature information of the target account, the user's recent effective playback history video ID feature refers to the ID of the historical video that the user has recently effectively played on the display page of the to-be-recommended type. For example, if the to-be-recommended type is a double-column click form, and the user has recently effectively played history video B on the display page of the double-column click form, the user's recent effective playback history video ID feature includes the ID of history video B. Similarly, other features are similar in principle and are extracted based on the user's behavior information on multimedia resources on the display page of the recommendation type and the attribute information of multimedia resources.
[0151] It should be noted that, in the embodiments of the present disclosure, the representation characteristics of these features generally include two parts, one is the feature domain, namely, field, and the other is the feature value.
[0152] Taking userId as an example, the characteristic values of userId, user age and other characteristics in the unique characteristic information of the target account and the public characteristic information are the same, but the characteristic domains are different. For example, when the user age is 20, 20 is the characteristic value and age is the characteristic domain. In this case, you only need to set the characteristic domains in the public characteristic information and the unique characteristic information differently. For example, the characteristic domain in the public characteristic information is: age 1, and the characteristic domain in the unique characteristic information is: age 2. Other characteristics can also be expressed in a similar way.
[0153] Similarly, the unique attribute information of multimedia resources may also include: PhotoId, video Tag, video count feature, video EmpiricalXtr feature, etc. However, the data used to extract these features is different from that used to extract the common attribute information of multimedia resources.
[0154] Among them, PhotoId refers to the ID of the video; Video Tag refers to the label of the video, such as game, education, comedy, news, etc.; the video count feature refers to the number of times the user effectively plays the video on the display page of the type to be recommended; the video EmpiricalXtr feature refers to the effective playback rate of the video played by the user. Similarly, this feature refers to the playback rate of the video effectively played by the user on the display page of the type to be recommended.
[0155] In the disclosed embodiment, the unique combination feature information between the target account and the multimedia resource includes: the user's recent performance in watching the candidate video tags, UserId combined candidate video tags, negative feedback features based on tags, etc.
[0156] Among them, the candidate video refers to the multimedia resource of the target screening parameter to be predicted this time. The performance of users watching candidate video tags recently refers to the performance of users watching videos of the same type as the candidate video in the display page of the type to be recommended recently; UserId combined candidate video tags, that is, the features obtained by combining UserId and candidate video tags; Tag-based negative feedback features refer to the negative feedback features when users watch videos of the same type as the candidate video in the display page of the type to be recommended recently, which can be obtained based on the analysis of user historical behavior.
[0157] It should be noted that among the multimedia public information and multimedia specific information listed in the embodiments of the present disclosure, there may be some features with the same characteristic values. In this case, these features can be distinguished through different characteristic domains in the above-mentioned manner. The specific distinction method can be referred to the above-mentioned embodiments, which will not be repeated here.
[0158] In the above implementation, by making the network structure independent and adding source-specific features in addition to the common feature sharing training, it is possible to fully utilize all data while retaining the source's own behavioral characteristics, so that the feature embedding learning is sufficient, the network parameters are fully applicable to the data distribution of a specific source, and the estimated value conforms to the data distribution of the corresponding source.
[0159] In the embodiment of the present disclosure, when implementing step S21, an optional implementation is:
[0160] The number of times the target account performs preset operations on multimedia resources in each type of display page within a preset time is converted into an embedded feature vector, that is, an Embedding feature vector; after matrix operations and normalization processing are performed on the embedded feature vector, a target feature vector is obtained; based on the target feature vector, the first recommended parameter of the target type and the second recommended parameter of the type to be recommended are obtained, wherein each element in the target feature vector represents a recommended parameter of each type.
[0161] Taking the two-source scenario as an example, assuming that there are two types of display pages, at this time, the number of times 1 that the user performs preset operations on the multimedia resources in the display page of the target type within the preset time, and the number of times 2 that the user performs preset operations on the multimedia resources in the display page of the recommended type can be counted, and the number of behaviors 1 and 2 are represented as a 2-dimensional Embedding feature vector. Furthermore, after a small number of MLPs are performed on the vector to perform matrix operations, it is normalized by Softmax to obtain a target feature vector [w1, w2] representing the recommended parameters. The target feature vector contains two elements, w1 represents the first recommended parameter of the target type, and w2 represents the second recommended parameter of the type to be recommended.
[0162] In a multi-source scenario with more than two sources, assume that there are three types of display pages, namely, type A display page, type B display page, and type C display page. At this time, the number of behaviors 1, 2, and 3 of the user performing preset operations on the multimedia resources in the display pages of type A, type B, and type C can be counted within the preset time, where type A is the target type and type B is the type to be recommended. At this time, the number of behaviors 1, 2, and 3 are represented as a 3-dimensional Embedding feature vector. Further, after the vector is subjected to a small amount of MLP matrix operation and normalized by Softmax, a target feature vector [w1, w2, w3] representing the recommended parameters is obtained. The target feature vector contains three elements in total, w1 represents the recommended parameter of the target type (type A), that is, the first recommended parameter, w2 represents the second recommended parameter of the type to be recommended (type B), and w3 represents the recommended parameter of type C.
[0163] In the embodiment of the present disclosure, when implementing step S22, an optional implementation is:
[0164] The product of the first screening parameter and the first recommended parameter, and the sum of the product of the second screening parameter and the second recommended parameter are used as the target screening parameter.
[0165] Assuming that the first screening parameter is represented by evr_h, the second screening parameter is represented by evr_s, and the target screening parameter is represented by evr_sf, then evr_sf = evr_h*w1+evr_s*w2. Among them, evr (EffectiveViewRate) refers to the effective viewing rate.
[0166] In the above method, in order to solve the problem of user interest loss when switching to a new source, the embodiment of the present disclosure integrates the estimated values of multi-source targets, and the integrated target screening parameters are self-learned through the number of times the user performs preset operations, and can adapt to changes in user behavior between different sources.
[0167] Optionally, the resource recommendation methods listed above can be implemented based on the recommendation model, such as Figure 5 , which is a schematic diagram of the structure of a recommendation model in an embodiment of the present disclosure, wherein the recommendation model specifically includes three sub-models, namely: a first recommendation sub-model, a second recommendation sub-model and a deep gate integration sub-model. Among them, the first recommendation sub-model is a main source network, the second recommendation sub-model is a slave source network, and the deep gate integration sub-model is a deep neural gating network.
[0168] Among them, when obtaining the first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource based on the multimedia public information, it is mainly obtained based on the first recommendation sub-model. The specific process is: inputting the multimedia public information of the target account into the first recommendation sub-model in the trained recommendation model, and performing feature extraction on the multimedia public information based on the first recommendation sub-model in the trained recommendation model to obtain the first screening parameter.
[0169] Specifically, the first recommendation sub-model is a multi-layer MLP network. When feature extraction is performed based on the first recommendation sub-model, the specific process is as follows:
[0170] like Figure 5As shown, the first recommendation sub-model in the disclosed embodiment only uses the data of the main source for auxiliary training, and the input feature is multimedia public information, which includes three parts: UserFeature, PhotoFeature and CombinFeature. This part of the feature can be called CommonFeature. CommonFeature outputs the predicted target value evr_h after passing through a multi-layer MLP network. Specifically, after the multimedia public information passes through the embedding layer, a feature vector is obtained (the embedding layer is not shown in the figure); after the feature vector passes through the multi-layer MLP for multiple matrix operations, the first target feature vector is obtained; LR (Logistic Regression) is performed on the first target feature vector to obtain the first screening parameter evr_h corresponding to the target account performing the preset operation on the multimedia resource.
[0171] Among them, when the feature vector obtained after the embedding layer is subjected to multiple matrix operations, the essence is to multiply this vector and a matrix to obtain the next vector. After multiple multiplications, the first target feature vector can be obtained. The matrix here corresponds to the multi-layer MLP network.
[0172] Wherein, when obtaining the second screening parameter corresponding to when the target account performs a preset operation on the multimedia resource on the display page of the to-be-recommended type based on the multimedia public information and the multimedia specific information, it is mainly obtained based on the second recommendation sub-model, and the specific process is as follows:
[0173] The multimedia common information and the multimedia specific information are input into the second recommendation sub-model in the trained recommendation model, and features of the multimedia common information and the multimedia specific information are extracted based on the second recommendation sub-model in the trained recommendation model to obtain a second screening parameter.
[0174] Similarly, the second recommendation sub-model is also a multi-layer MLP network. When feature extraction is performed based on the second recommendation sub-model, the specific process is as follows:
[0175] like Figure 5As shown, the second recommendation sub-model is trained with slave source data, and the input features include features of its own slave sources in addition to features corresponding to the main source, that is, multimedia-specific information. The multimedia-specific information also includes three parts: UserFeature2, PhotoFeature2 and CombinFeature2, and this part of the features is called SpecFeature. In the disclosed embodiment, CommonFeature and SpecFeature output evr_s after passing through multiple layers of MLP. Specifically, first, after passing through the embedding layer, the multimedia-specific information and the multimedia public information are converted into a feature vector; the feature vector is subjected to multiple matrix operations to obtain a second target feature vector; the second target feature vector is subjected to LR to obtain the second screening parameter evr_s corresponding to the target account when performing a preset operation on the multimedia resource in the display page of the recommended type.
[0176] Optionally, when obtaining the first recommendation parameter and the second recommendation parameter, they are mainly obtained based on the deep gate integration sub-model in the trained recommendation model. Based on the deep gate integration sub-model, the number of times the target account performs preset operations on the recommended multimedia resources in each type of display page within a preset time is feature extracted to obtain the first recommendation parameter and the second recommendation parameter; the deep gate integration sub-model here can be a small number of MLPs, such as Figure 5 As shown in the figure, the middle part is the deep gate ensemble sub-model. The input includes EnsembleFeature, which refers to the number of times the target account performs preset operations on the recommended multimedia resources in each type of display page within a preset time, that is, the ratio of the number of user behaviors in the main source and the secondary source. After a small amount of MLP, Softmax obtains the first recommendation parameter w1 and the second recommendation parameter w2. After obtaining w1 and w2 based on the deep gate ensemble sub-model, we can use Figure 5 The output layer in the recommendation model shown in the figure performs weighted processing on the first screening parameter evr_h and the second screening parameter evr_s according to the first recommendation parameter w1 and the second recommendation parameter w2 to obtain the target screening parameter evr_sf, where w1 and w2 actually represent weights.
[0177] In the training process of the recommendation model, it is actually necessary to perform multiple rounds of adjustments on the model parameters in the initial recommendation model, where the model parameters in the initial recommendation model are pre-set, and each round of adjustment performs the following process:
[0178] Adjust the first recommendation sub-model based on the first estimated screening parameter corresponding to the sample account performing a preset operation on the sample multimedia resource predicted by the first recommendation sub-model in the initial recommendation model; and adjust the second recommendation sub-model based on the second estimated screening parameter corresponding to the sample account performing a preset operation on the sample multimedia resource on the display page of the to-be-recommended type predicted by the second recommendation sub-model in the initial recommendation model; adjust the deep gate integration sub-model based on the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type, as well as the first estimated screening parameter and the second estimated screening parameter predicted by the deep gate integration sub-model in the initial recommendation model.
[0179] That is to say, in each round of adjustment, the three sub-models need to be adjusted separately, and the adjustment processes of the first recommendation sub-model and the second recommendation sub-model are independent of each other. Figure 5 The dotted line in indicates that only forward propagation is performed but no backpropagation. Therefore, evr_h and evr_s learn independently, and the Loss (loss function) corresponding to evr_sf is only responsible for learning the integration of the prediction results between sources, which is the weighted process.
[0180] In the disclosed embodiment, the first recommendation sub-model and the second recommendation sub-model are updated independently. Specifically, when adjusting the first recommendation sub-model, the first estimated screening parameter is mainly compared with the first real screening parameter determined according to the behavior information of the sample account for the sample multimedia resources in the display page of different types, and the model parameters in the first recommendation sub-model in the initial recommendation model are adjusted based on the comparison result; when adjusting the second recommendation sub-model, it is similar, the second estimated screening parameter is compared with the second real screening parameter determined according to the behavior information of the sample account for the sample multimedia resources in the display page of the type to be recommended, and the model parameters in the second recommendation sub-model in the initial recommendation model are adjusted based on the comparison result.
[0181] The first real screening parameter or the second screening parameter can be represented by 0 or 1. If the sample account effectively plays the sample multimedia resource (regardless of the type of display page), the first real screening parameter is 1, otherwise, the first real screening parameter is 0. If the sample account effectively plays the sample multimedia resource in the display page of the recommended type, the second real screening parameter is 1, otherwise it is 0.
[0182] The first estimated screening parameter output by the first recommendation sub-model (similar to the usage process of the recommendation models listed above, and can also be represented by evr_h) and the second estimated screening parameter output by the second recommendation sub-model (similar to the usage process of the recommendation models listed above, and can also be represented by evr_s) are both screening parameters between 0 and 1.
[0183] During the training process, the multimedia public information input to the first recommendation sub-model is extracted based on the behavior information of the sample accounts on the sample multimedia resources in the display pages of different types, and the attribute information of the sample multimedia resources. The multimedia specific information input to the second recommendation sub-model is also extracted based on the behavior information of the sample accounts on the display pages of the recommended types, and the attribute information of the sample multimedia resources. The specific extraction method is the same as the above-listed process of extracting the multimedia resource public information and multimedia resource specific information of the target account, and will not be repeated here.
[0184] Optionally, when adjusting the deep gate integration sub-model according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integration sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter, the specific process is as follows:
[0185] The estimated parameters obtained by weighting the first estimated screening parameters and the second estimated screening parameters based on the first estimated recommendation parameters and the second estimated recommendation parameters are compared with the actual screening parameters determined according to the behavioral information of the sample accounts on the sample multimedia resources in the display page of the recommendation type, and the model parameters in the deep gate integration sub-model are adjusted based on the comparison results.
[0186] It should be noted that when the estimated parameter is obtained by weighting the first estimated recommendation parameter and the second estimated recommendation parameter, the specific method is to use the product of the first estimated recommendation parameter and the first estimated screening parameter, and the sum of the product of the second estimated recommendation parameter and the second estimated screening parameter as the estimated recommendation parameter obtained by the final prediction, which indicates the probability that the sample account will effectively play the sample multimedia resource when the sample multimedia resource is recommended to the sample account in the display page of the recommended type. Among them, when determining the real screening parameter based on the behavior information of the sample account on the sample multimedia resource in the display page of the recommended type, if the sample account effectively plays the sample multimedia resource in the display page of the recommended type, the real screening parameter is 1, otherwise, the real screening parameter is 0.
[0187] In the above embodiment, the main source is used to assist in training the recommendation model of the slave source. By making the network structure independent and adding the slave source-specific features in addition to the common feature sharing training, it is possible to fully utilize all data while retaining the source's own behavioral characteristics, so that the feature embedding learning is sufficient, the network parameters are also fully applicable to the data distribution of a specific source, and the estimated screening parameters are consistent with the data distribution of the corresponding source.
[0188] In addition, the estimated values of multi-source targets are integrated through the deep gate integration sub-model. The integrated parameters are learned by the model itself and can adapt to the changes in user behavior between different sources. For users who have just switched to the secondary source form, the deep gate integration sub-model can ensure that w1 accounts for more than w2. As the user's behavior in the secondary source form increases, w1 will decrease and w2 will increase, thereby achieving seamless connection of user interests and well realizing the migration of user interests between multiple sources.
[0189] In the disclosed embodiment, the recommendation model can be continuously updated in real time, and can also stop updating after the number of updates reaches an upper limit. In the real-time training process of the recommendation model, the Kafka training log is received in real time, the features are extracted in real time, the recommendation model is trained in real time based on the PS training tool, and the full model is synchronized online regularly. Specifically, the synchronization part of the recommendation model includes two parts, one part is the network parameters, and the other part is the feature Embedding. Among them, the feature Embedding occupies most of the model, and the network parameters are much smaller than the feature Embedding. Therefore, the synchronization strategies of the two are also different. For network parameters, the full amount can be synchronized every few minutes, and for feature Embedding, the full amount needs to be synchronized every few hours. Among them, synchronizing the full amount once is just to update all the parameters in the recommendation model.
[0190] In the disclosed embodiment, after the recommendation model is synchronized online, the recommendation model can be estimated online. Specifically, the online estimation service receives the model data and estimates the recommendation service request online. Since the feature embedding may be very large, the online estimation service can be split into two services, one for storing feature embeddings and searching for embeddings, and the other for inferring the network structure. In the disclosed embodiment, splitting the online estimation service can also improve machine utilization and service performance.
[0191] In addition, it should be noted that Figure 5 What is listed is only a schematic diagram of the structure of an optional recommendation model provided in the embodiment of the present disclosure. In a multi-source scenario, a recommendation sub-model and a deep gate integration sub-model can actually be added. Figure 5The first recommendation sub-model and the second recommendation sub-model in the same structure, the model parameters are different, for example, in the three-source scenario, there are three types of display pages, at this time, a third recommendation sub-model and a deep gate integration sub-model can be added. At this time, the two deep gate integration sub-models in the recommendation model have the same structure, and the output is the recommendation parameters corresponding to the three types, assuming that they are w1, w2 and w3. Among them, the first recommendation sub-model (main source network) predicts the first screening parameter evr_h corresponding to the target account performing a preset operation on the multimedia resource, the second recommendation sub-model (from source 1 network) predicts the second screening parameter evr_s1 corresponding to the target account performing a preset operation on the multimedia resource in the display page of the first type to be recommended; the third recommendation sub-model (from source 2 network) predicts the third screening parameter evr_s2 of the target account performing a preset operation on the multimedia resource in the display page of the second type to be recommended.
[0192] At this time, the recommendation model can output two target screening parameters, evr_sf1 and evr_sf2. Among them, evr_sf1 = evr_h*w1 + evr_s1*w2, which indicates the target screening parameter corresponding to the display of the multimedia resource through the first type of display page to be recommended; evr_sf2 = evr_h*w1 + evr_s2*w3, which indicates the target screening parameter corresponding to the display of the multimedia resource through the second type of display page to be recommended.
[0193] It should be noted that the structure of the recommendation model listed in the embodiment of the present disclosure is only an example. Figure 5 In addition to the structure shown, the sub-model in the recommendation model can also be other DNN (Deep Neural Networks) models, which are not specifically limited here.
[0194] Combine the following Figure 6 , the overall process of recommendation model training in the embodiment of the present disclosure is introduced in detail. The overall process can be divided into the following parts, including: splicing of training logs, selection and extraction of features, and real-time model training.
[0195] See also Figure 6 As shown, it is a flow chart of a training method of a recommendation model according to an exemplary embodiment, which specifically includes the following steps:
[0196] 1. The concatenation of training logs, including S61 and S62:
[0197] S61: After receiving the request from the client, the server returns a set of corresponding sample multimedia resources (such as recommended videos) and records the information of the request in Redis;
[0198] S62: receiving the behavior information reported by the client when the sample account generates corresponding behaviors, splicing the Labels, and generating a recommendation result log with the Labels;
[0199] In the disclosed embodiment, after receiving the request from the client, the server will return a set of corresponding recommended videos. At the same time, the server will also record the information of the request in Redis. The recorded information includes the unique identification ID (LLSID) of this request, user information UserInfo, recommended video sequence information, i.e. RecoPhotoList, and context information ContextInfo of this request. The unique identification ID is used as the Key of Redis, and UserInfo, RecoPhotoList, and ContextInfo are used as the Value of Redis. After receiving the result returned by the recommendation service, the client will consume the recommended video and generate the corresponding behavior Label. For example, positive feedback behaviors include clicks, playback time, likes, attention, forwarding, etc., and negative feedback behaviors include Hate (dislike), short broadcast, reporting, etc. When the user generates the corresponding behavior, the client reports the user behavior to the server, and the server splices the Label, i.e., searches for the recommendation return result with the same LLSID from Redis, and labels each recommended video with the corresponding Label. After splicing the Label, the server obtains the recommendation result log with the Label and enters it into Kafka for consumption by the downstream training model.
[0200] 2. Feature selection and extraction, including S63:
[0201] S63: extracting multimedia public information and multimedia private information of the sample account based on the recommendation result log with the Label;
[0202] Among them, the multimedia public information and multimedia private information of the sample account can be considered from the perspective of user characteristics, video characteristics and combination characteristics. Specifically, the multimedia public information of the sample account includes: the public characteristic information of the sample account, the public attribute information of the sample multimedia resources, and the public combination characteristic information between the sample account and the sample multimedia resources; the multimedia specific information of the sample account includes: the specific characteristic information of the sample account, the specific attribute information of the sample multimedia resources, and the specific combination characteristic information between the sample account and the sample multimedia resources.
[0203] 3. Model real-time training part, including S64~S611:
[0204] S64: Inputting the multimedia public information and multimedia private information of the sample account into the initial recommendation model, and obtaining a first estimated screening parameter corresponding to when the sample account performs a preset operation on the sample multimedia resource, which is predicted by the first recommendation sub-model;
[0205] S65: adjusting the first recommendation sub-model according to the first estimated screening parameter corresponding to the sample account performing the preset operation on the sample multimedia resource, which is predicted by the first recommendation sub-model in the initial recommendation model;
[0206] S66: Obtaining a second estimated screening parameter predicted by the second recommendation sub-model, corresponding to when the sample account performs a preset operation on the sample multimedia resource on the display page of the to-be-recommended type;
[0207] S67: adjusting the second recommendation sub-model according to the second estimated screening parameter corresponding to when the sample account performs a preset operation on the sample multimedia resource on the display page of the to-be-recommended type, which is predicted by the second recommendation sub-model in the initial recommendation model;
[0208] S68: Obtaining the estimated recommendation parameters of the to-be-recommended type and the target type predicted by the deep gate integration sub-model;
[0209] S69: adjusting the deep gate integration sub-model according to the estimated recommendation parameters of the to-be-recommended type and the target type predicted by the deep gate integration sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter;
[0210] S610: Determine whether the number of adjustment times reaches the upper limit, if yes, execute step S611; otherwise, return to step S64;
[0211] S611: Obtain a trained recommendation model, synchronize the trained recommendation model online, and perform online estimation on a request for a recommendation service.
[0212] Among them, the model training process can adopt a batch training method, and a small batch of sample data is used to update the model each time.
[0213] Figure 7 The following is a flow chart of a complete method for resource recommendation according to an exemplary embodiment, which specifically includes the following steps:
[0214] S71: extracting multimedia public information of the target account according to the behavior information of the target account on multimedia resources in different types of display pages and attribute information of the multimedia resources;
[0215] S72: extracting multimedia-specific information of the target account based on the target account's behavior information on multimedia resources in the display page of the recommended type and attribute information of the multimedia resources;
[0216] S73: Based on the multimedia public information, obtaining a first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource;
[0217] S74: Based on the multimedia public information and the multimedia specific information, obtaining a second screening parameter corresponding to when the target account performs a preset operation on the multimedia resource on the display page of the to-be-recommended type;
[0218] S75: Determine a first recommendation parameter of the target type and a second recommendation parameter of the type to be recommended based on preset operations of the target account on the multimedia resources in the display page of the target type and the display page of the type to be recommended;
[0219] S76: Based on the first recommendation parameter and the second recommendation parameter, adjust the first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource, and the second screening parameter corresponding to when the target account performs a preset operation on the multimedia resource on the display page of the to-be-recommended type, to obtain a target screening parameter;
[0220] S77: Filter out multimedia resources recommended to the target account based on the target filtering parameters, and generate a display page of the to-be-recommended type including the filtered multimedia resources.
[0221] Based on the same inventive concept, the embodiment of the present disclosure also provides a resource recommendation device. Figure 8 As shown, Figure 8 FIG. 8 is a block diagram of a resource recommendation device 800 according to an exemplary embodiment. Figure 8 , the device includes a determination unit 801, an integration unit 802 and a recommendation unit 803.
[0222] The determining unit 801 is configured to perform preset operations based on the target account on the multimedia resources in the display page of the target type and the display page of the type to be recommended, and determine a first recommendation parameter of the target type and a second recommendation parameter of the type to be recommended, wherein the target type is selected from all types according to the degree of association with the target account, and the type to be recommended is the type of the display page that needs to be recommended to the target account;
[0223] The integration unit 802 is configured to adjust the first screening parameter corresponding to the target account performing the preset operation on the multimedia resource and the second screening parameter corresponding to the target account performing the preset operation on the multimedia resource on the display page of the to-be-recommended type based on the first recommendation parameter and the second recommendation parameter to obtain the target screening parameter;
[0224] The recommendation unit 803 is configured to perform filtering of multimedia resources recommended to the target account based on the target filtering parameters, and generate a display page of the to-be-recommended type containing the filtered multimedia resources.
[0225] Optionally, the device further comprises:
[0226] The estimation unit 804 is configured to execute, based on the first recommendation parameter and the second recommendation parameter, the integration unit 802 to adjust the first screening parameter corresponding to the target account performing the preset operation on the multimedia resource and the second screening parameter corresponding to the target account performing the preset operation on the multimedia resource on the display page of the to-be-recommended type, and before obtaining the target screening parameter, extract the multimedia public information of the target account according to the behavior information of the target account on the multimedia resources in the display pages of different types and the attribute information of the multimedia resources;
[0227] Based on the multimedia public information, a first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource is obtained.
[0228] Optionally, the estimation unit 804 is further configured to:
[0229] The integration unit 802 adjusts the first screening parameter corresponding to the target account performing the preset operation on the multimedia resource and the second screening parameter corresponding to the target account performing the preset operation on the multimedia resource on the display page of the to-be-recommended type based on the first recommendation parameter and the second recommendation parameter, and extracts the multimedia-specific information of the target account based on the behavior information of the target account on the multimedia resource on the display page of the to-be-recommended type and the attribute information of the multimedia resource before acquiring the target screening parameter;
[0230] Based on the multimedia public information and the multimedia specific information, a second screening parameter corresponding to when the target account performs a preset operation on the multimedia resource on the display page of the to-be-recommended type is obtained.
[0231] Optionally, the determining unit 801 is configured to execute:
[0232] The number of times the target account performs preset operations on multimedia resources in each type of display page within a preset time period is converted into an embedding feature vector;
[0233] Perform matrix operations and normalization on the embedded feature vector to obtain the target feature vector;
[0234] Based on the target feature vector, a first recommended parameter of the target type and a second recommended parameter of the type to be recommended are obtained, wherein each element in the target feature vector represents a recommended parameter of each type.
[0235] Optionally, the integration unit 802 is specifically configured to execute:
[0236] The product of the first screening parameter and the first recommended parameter, and the sum of the product of the second screening parameter and the second recommended parameter are used as the target screening parameter.
[0237] Optionally, the estimation unit 804 is specifically configured to execute:
[0238] Feature extraction is performed on the multimedia public information based on the first recommendation sub-model in the trained recommendation model to obtain a first screening parameter.
[0239] Optionally, the estimation unit 804 is specifically configured to execute:
[0240] Based on the second recommendation sub-model in the trained recommendation model, feature extraction is performed on the multimedia common information and the multimedia specific information to obtain a second screening parameter.
[0241] Optionally, the integration unit 802 is specifically configured to execute:
[0242] Based on the deep gate integration sub-model in the trained recommendation model, feature extraction is performed on the number of times the target account performs preset operations on the recommended multimedia resources in each type of display page within a preset time to obtain recommendation parameters.
[0243] Optionally, the integration unit 802 is specifically configured to execute:
[0244] Based on the output layer in the trained recommendation model, the first screening parameter and the second screening parameter are weighted according to the first recommendation parameter and the second recommendation parameter to obtain the target screening parameter.
[0245] Optionally, the device further comprises:
[0246] The training unit 805 is configured to perform multiple rounds of adjustments on the model parameters in the initial recommendation model, wherein the model parameters in the initial recommendation model are preset, and each round of adjustments performs the following process:
[0247] Adjusting the first recommendation sub-model according to the first estimated screening parameter corresponding to when the sample account performs a preset operation on the sample multimedia resource, which is predicted by the first recommendation sub-model in the initial recommendation model; and
[0248] Adjusting the second recommendation sub-model according to the second estimated screening parameter corresponding to when the sample account performs a preset operation on the sample multimedia resource on the display page of the to-be-recommended type, obtained by prediction by the second recommendation sub-model in the initial recommendation model;
[0249] The deep gate integration sub-model is adjusted according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integration sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter.
[0250] Optionally, the training unit 805 is specifically configured to execute:
[0251] The estimated parameters obtained by weighting the first estimated screening parameters and the second estimated screening parameters based on the first estimated recommendation parameters and the second estimated recommendation parameters are compared with the actual screening parameters determined according to the behavioral information of the sample accounts on the sample multimedia resources in the display page of the recommendation type, and the model parameters in the deep gate integration sub-model are adjusted based on the comparison results.
[0252] Regarding the device in the above embodiment, the specific manner in which each unit executes the request has been described in detail in the embodiment of the method, and will not be elaborated here.
[0253] Fig. 9 is a block diagram of an electronic device 900 according to an exemplary embodiment, the device comprising:
[0254] Processor 901;
[0255] A memory 902 for storing instructions executable by the processor 901;
[0256] The processor 901 is configured to execute instructions to implement the resource recommendation method in the embodiment of the present disclosure.
[0257] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 902 including instructions, and the instructions can be executed by a processor 901 of an electronic device 900 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0258] In an exemplary embodiment, a terminal device is also provided, wherein the structure is as follows: Fig.10 As shown, the embodiment of the present disclosure provides a terminal device 210 for resource recommendation, including: a radio frequency (RF) circuit 1010, a power supply 1020, a processor 1030, a memory 1040, an input unit 1050, a display unit 1060, a camera 1070, a communication interface 1080, and a wireless fidelity (Wi-Fi) module 1090 and other components. Those skilled in the art can understand that Fig.10 The structure of the terminal shown in the figure does not constitute a limitation on the terminal. The terminal provided by the embodiment of the present disclosure may include more or fewer components than those shown in the figure, or combine certain components, or arrange the components differently.
[0259] Combine the following Fig.10 The components of the terminal device 210 are described in detail:
[0260] The RF circuit 1010 can be used for receiving and sending data during communication or calls. In particular, after receiving downlink data from the base station, the RF circuit 1010 sends it to the processor 1030 for processing; in addition, the uplink data to be sent is sent to the base station. Generally, the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
[0261] In addition, the RF circuit 1010 can also communicate with the network and other terminals through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0262] Wi-Fi technology is a short-range wireless transmission technology. The terminal device 210 can connect to an access point (AP) through the Wi-Fi module 1090 to access the data network. The Wi-Fi module 1090 can be used for receiving and sending data during the communication process.
[0263] The terminal device 210 can be physically connected to other terminals through the communication interface 1080. Optionally, the communication interface 1080 is connected to the communication interface of the other terminal through a cable to achieve data transmission between the terminal device 210 and the other terminal.
[0264] Since in the embodiment of the present disclosure, the terminal device 210 can implement communication services and send information to other contacts, the terminal device 210 needs to have a data transmission function, that is, the terminal device 210 needs to include a communication module. Fig.10 Communication modules such as RF circuit 1010, Wi-Fi module 1090, and communication interface 1080 are shown, but it is understandable that at least one of the above components or other communication modules (such as Bluetooth module) for implementing communication exist in the terminal device 210 to perform data transmission.
[0265] For example, when the terminal device 210 is a mobile phone, the terminal device 210 may include an RF circuit 1010 and may also include a Wi-Fi module 1090; when the terminal device 210 is a computer, the terminal device 210 may include a communication interface 1080 and may also include a Wi-Fi module 1090; when the terminal device 210 is a tablet computer, the terminal device 210 may include a Wi-Fi module.
[0266] The memory 1040 can be used to store software programs and modules. The processor 1030 executes various functional applications and data processing of the terminal device 210 by running the software programs and modules stored in the memory 1040, and when the processor 1030 executes the program code in the memory 1040, the embodiments of the present disclosure can be implemented. Figure 3 part or all of the process.
[0267] Optionally, the memory 1040 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, various application programs (such as communication applications), and a face recognition module, etc.; the data storage area may store data created according to the use of the terminal (such as various pictures, video files, and other multimedia files, and face information templates), etc.
[0268] In addition, the memory 1040 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0269] The input unit 1050 may be used to receive numeric or character information input by an object, and to generate key signal input related to object setting and function control of the terminal device 210 .
[0270] Optionally, the input unit 1050 may include a touch panel 1051 and other input terminals 1052 .
[0271] Among them, the touch panel 1051, also known as a touch screen, can collect the touch operation of the object on or near it (such as the operation of the object using any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 1051 or near the touch panel 1051), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1051 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the object, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into contact coordinates, and then sends it to the processor 1030, and can receive and execute commands sent by the processor 1030. In addition, the touch panel 1051 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
[0272] Optionally, other input terminals 1052 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0273] The display unit 1060 may be used to display information input by or provided to an object and various menus of the terminal device 210. The display unit 1060 is a display system of the terminal device 210, and is used to present an interface and realize human-computer interaction.
[0274] The display unit 1060 may include a display panel 1061. Optionally, the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0275] Furthermore, the touch panel 1051 may cover the display panel 1061. When the touch panel 1051 detects a touch operation on or near it, it is transmitted to the processor 1030 to determine the type of touch event. Subsequently, the processor 1030 provides corresponding visual output on the display panel 1061 according to the type of touch event.
[0276] Although in Fig.10 In the embodiment, the touch panel 1051 and the display panel 1061 are used as two independent components to implement the input and output functions of the terminal device 210, but in some embodiments, the touch panel 1051 and the display panel 1061 can be integrated to implement the input and output functions of the terminal device 210.
[0277] The processor 1030 is the control center of the terminal device 210. It connects various components using various interfaces and lines, and executes various functions and processes data of the terminal device 210 by running or executing software programs and / or modules stored in the memory 1040 and calling data stored in the memory 1040, thereby realizing various terminal-based services.
[0278] Optionally, the processor 1030 may include one or more processing units. Optionally, the processor 1030 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, an object interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1030.
[0279] The camera 1070 is used to realize the shooting function of the terminal device 210, and to take pictures or videos. The camera 1070 can also be used to realize the scanning function of the terminal device 210, and to scan the scanning object (QR code / bar code).
[0280] The terminal device 210 also includes a power supply 1020 (such as a battery) for supplying power to various components. Optionally, the power supply 1020 can be logically connected to the processor 1030 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0281] It should be noted that the processor 1030 of the embodiment of the present disclosure may execute Fig. 9 The memory 1040 stores the contents of the memory 902 .
[0282] The embodiments of the present disclosure also provide a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the resource recommendation methods described above or any method that may be involved in any one of the resource recommendation methods described above.
[0283] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims above.
[0284] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A resource recommendation method, characterized in that: include: Determine, based on preset operations of the target account on multimedia resources in a display page of the target type and a display page of the type to be recommended, a first recommendation parameter of the target type and a second recommendation parameter of the type to be recommended, wherein the target type is selected from all types according to a degree of association with the target account, and the type to be recommended is a type of display page that needs to be recommended to the target account; According to the first recommendation parameter and the second recommendation parameter, adjusting the first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource and the second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the type to be recommended, to obtain target screening parameters; Filtering multimedia resources recommended to the target account based on the target screening parameters, and generating a display page of the to-be-recommended type including the filtered multimedia resources; The first screening parameter is obtained in the following manner: extracting the multimedia public information of the target account according to the behavior information of the target account on the multimedia resources in different types of display pages and the attribute information of the multimedia resources; based on the multimedia public information, obtaining the first screening parameter corresponding to the target account performing a preset operation on the multimedia resources; Furthermore, the second filtering parameter is obtained in the following manner: based on the behavior information of the target account on the multimedia resources in the display page of the type to be recommended, and the attribute information of the multimedia resources, the multimedia-specific information of the target account is extracted; based on the multimedia public information and the multimedia-specific information, the second filtering parameter corresponding to when the target account performs the preset operation on the multimedia resources on the display page of the type to be recommended is obtained.
2. The method according to claim 1, characterized in that The determining, based on the preset operation of the target account on the multimedia resources in the display page of the target type and the display page of the type to be recommended, the first recommendation parameter of the target type and the second recommendation parameter of the type to be recommended includes: Converting the number of times the target account performs the preset operation on the multimedia resources in each type of display page within a preset time period into an embedded feature vector; Performing matrix operations and normalization processing on the embedded feature vector to obtain a target feature vector; Based on the target feature vector, a first recommended parameter of the target type and a second recommended parameter of the type to be recommended are obtained, wherein each element in the target feature vector represents a recommended parameter of each type.
3. The method according to claim 1, characterized in that The step of adjusting, according to the first recommendation parameter and the second recommendation parameter, the first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource and the second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the to-be-recommended type in advance to obtain the target screening parameter includes: The product of the first screening parameter and the first recommended parameter, and the sum of the product of the second screening parameter and the second recommended parameter are used as the target screening parameter.
4. The method according to claim 1, characterized in that The acquiring, based on the multimedia public information, a first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource includes: Feature extraction is performed on the multimedia public information based on a first recommendation sub-model in a trained recommendation model to obtain the first screening parameter.
5. The method according to claim 4, characterized in that The acquiring, based on the multimedia public information and the multimedia specific information, a second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the to-be-recommended type includes: Feature extraction is performed on the multimedia common information and the multimedia specific information based on the second recommendation sub-model in the trained recommendation model to obtain the second screening parameter.
6. The method according to claim 5, characterized in that The determining, based on the preset operation of the target account on the display page of the to-be-recommended type and the multimedia resource in the display page of the target type, the first recommendation parameter of the target type and the second recommendation parameter of the to-be-recommended type comprises: Based on the deep gate integration sub-model in the trained recommendation model, feature extraction is performed on the number of times the target account performs the preset operation on the recommended multimedia resources in each type of display page within a preset time period to obtain the first recommendation parameter and the second recommendation parameter.
7. The method according to claim 6, characterized in that The step of adjusting, according to the first recommendation parameter and the second recommendation parameter, the first screening parameter corresponding to when the target account performs a preset operation on the multimedia resource and the second screening parameter corresponding to when the target account performs the preset operation on the multimedia resource on the display page of the to-be-recommended type in advance to obtain the target screening parameter includes: Based on the output layer in the trained recommendation model, the first screening parameter and the second screening parameter are weighted according to the first recommendation parameter and the second recommendation parameter to obtain the target screening parameter.
8. The method according to any one of claims 4 to 7, characterized in that: The trained recommendation model is obtained by training in the following manner: The model parameters in the initial recommendation model are adjusted for multiple rounds, wherein the model parameters in the initial recommendation model are preset, and each round of adjustment performs the following process: According to the first estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource, the first recommendation sub-model in the initial recommendation model predicts, adjusting the first recommendation sub-model; as well as adjusting the second recommendation sub-model according to a second estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource on the display page of the to-be-recommended type, obtained by prediction by the second recommendation sub-model in the initial recommendation model; Adjust the deep gate integrated sub-model according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integrated sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter.
9. The method according to claim 8, characterized in that The step of adjusting the deep gate integrated sub-model according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integrated sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter, comprises: The estimated parameters obtained by weighting the first estimated recommendation parameters and the second estimated recommendation parameters are compared with the actual screening parameters determined based on the behavior information of the sample accounts on the sample multimedia resources in the display page of the type to be recommended, and the model parameters in the deep gate integrated sub-model are adjusted based on the comparison results.
10. A resource recommendation device, characterized in that: include: a determination unit configured to perform preset operations based on the target account on multimedia resources in the display page of the target type and the display page of the type to be recommended, and determine a first recommendation parameter of the target type and a second recommendation parameter of the type to be recommended, wherein the target type is selected from all types according to the degree of association with the target account, and the type to be recommended is the type of the display page that needs to be recommended to the target account; The integration unit is configured to adjust the first screening parameter corresponding to the target account performing the preset operation on the multimedia resource and the second screening parameter corresponding to the target account performing the preset operation on the multimedia resource on the display page of the type to be recommended according to the first recommendation parameter and the second recommendation parameter, so as to obtain the target screening parameter; a recommendation unit configured to perform filtering of multimedia resources recommended to the target account based on the target filtering parameters, and generate a display page of the to-be-recommended type including the filtered multimedia resources; The first screening parameter is obtained by the estimation unit in the following manner: extracting the multimedia public information of the target account according to the behavior information of the target account on the multimedia resources in different types of display pages and the attribute information of the multimedia resources; based on the multimedia public information, obtaining the first screening parameter corresponding to the target account performing a preset operation on the multimedia resources; Furthermore, the second filtering parameter is obtained by the estimation unit in the following manner: based on the behavior information of the target account on the multimedia resources in the display page of the type to be recommended, and the attribute information of the multimedia resources, the multimedia-specific information of the target account is extracted; based on the multimedia public information and the multimedia-specific information, the second filtering parameter corresponding to the target account when performing the preset operation on the multimedia resources on the display page of the type to be recommended is obtained.
11. The device according to claim 10, characterized in that The determining unit is configured to perform: Converting the number of times the target account performs the preset operation on the multimedia resources in each type of display page within a preset time period into an embedded feature vector; Performing matrix operations and normalization processing on the embedded feature vector to obtain a target feature vector; Based on the target feature vector, a first recommended parameter of the target type and a second recommended parameter of the type to be recommended are obtained, wherein each element in the target feature vector represents a recommended parameter of each type.
12. The device according to claim 10, characterized in that The integrated unit is specifically configured to perform: The product of the first screening parameter and the first recommended parameter, and the sum of the product of the second screening parameter and the second recommended parameter are used as the target screening parameter.
13. The device according to claim 10, characterized in that The estimation unit is specifically configured to perform: Feature extraction is performed on the multimedia public information based on a first recommendation sub-model in a trained recommendation model to obtain the first screening parameter.
14. The device according to claim 13, characterized in that The estimation unit is specifically configured to perform: Feature extraction is performed on the multimedia common information and the multimedia specific information based on the second recommendation sub-model in the trained recommendation model to obtain the second screening parameter.
15. The device according to claim 14, characterized in that The integrated unit is specifically configured to perform: Based on the deep gate integration sub-model in the trained recommendation model, feature extraction is performed on the number of times the target account performs the preset operation on the recommended multimedia resources in each type of display page within a preset time period to obtain the first recommendation parameter and the second recommendation parameter.
16. The device according to claim 15, characterized in that The integrated unit is specifically configured to perform: Based on the output layer in the trained recommendation model, the first screening parameter and the second screening parameter are weighted according to the first recommendation parameter and the second recommendation parameter to obtain the target screening parameter.
17. The device according to any one of claims 13 to 16, characterized in that: The device also includes: The training unit is configured to perform multiple rounds of adjustments on the model parameters in the initial recommendation model, wherein the model parameters in the initial recommendation model are preset, and each round of adjustments performs the following process: According to the first estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource, the first recommendation sub-model in the initial recommendation model predicts the first recommendation sub-model, adjusting the first recommendation sub-model; and adjusting the second recommendation sub-model according to a second estimated screening parameter corresponding to when the sample account performs the preset operation on the sample multimedia resource on the display page of the to-be-recommended type, obtained by prediction by the second recommendation sub-model in the initial recommendation model; Adjust the deep gate integrated sub-model according to the first estimated recommendation parameter of the target type and the second estimated recommendation parameter of the to-be-recommended type predicted by the deep gate integrated sub-model in the initial recommendation model, as well as the first estimated screening parameter and the second estimated screening parameter.
18. The device according to claim 17, characterized in that The training unit is specifically configured to perform: The estimated parameters obtained by weighting the first estimated recommendation parameters and the second estimated recommendation parameters are compared with the actual screening parameters determined based on the behavior information of the sample accounts on the sample multimedia resources in the display page of the type to be recommended, and the model parameters in the deep gate integrated sub-model are adjusted based on the comparison results.
19. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the resource recommendation method according to any one of claims 1 to 9.
20. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource recommendation method according to any one of claims 1 to 9.
21. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the resource recommendation method according to any one of claims 1 to 9 is implemented.
