Data recommendation method, device, electronic device and storage medium

Through the deep learning model, user feature vectors and data parameters are obtained, user preferences are estimated, and data parameters are filtered and updated. This solves the problem that existing technologies cannot meet the personalized needs of users and achieves highly accurate and diverse data recommendations.

CN113742572BActive Publication Date: 2024-09-06HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110886342.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-03
Publication Date
2024-09-06
Estimated Expiration
2041-08-03

AI Technical Summary

Technical Problem

Existing data recommendation methods cannot meet the personalized needs of users, resulting in a lack of diversity in recommendation results, the inability to accurately mine users' potential preferences, and the inability to accurately recommend data that users may be interested in.

Method used

Use a deep learning model to obtain user feature vectors, estimate the user's expected benefits for candidate recommendation data based on user feature vectors and data parameters, screen out target data that meet the set conditions and recommend them to users, and update data parameters based on user feedback information.

Benefits of technology

It realizes the mining of users' personalized needs, improves the accuracy and diversity of data recommendations, maintains user activity, and adjusts data parameters through online learning to improve the accuracy of recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113742572B
    Figure CN113742572B
Patent Text Reader

Abstract

The present disclosure relates to the field of data processing technology, and in particular to a data recommendation method, device, electronic device and storage medium, which are used to solve the problem of being unable to mine the personalized needs of users and being unable to accurately recommend data based on the personalized needs of users. After obtaining the user feature vector, the candidate recommendation data set corresponding to the user is determined, and based on the obtained data parameters and the user feature vector, the corresponding expected benefits are respectively obtained, and then based on the expected benefits, the data recommended to the user is determined, and based on the user's feedback information, the data parameters of the corresponding target data to be recommended are updated. In this way, the user's preference for each candidate recommendation data in the candidate recommendation data set can be estimated based on the user feature vector, which realizes the mining of the user's personalized needs, helps to maintain the user's activity, and adopts an online learning method to improve the accuracy of data recommendation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a data recommendation method, device, electronic device and storage medium. Background Art

[0002] With the development of Internet technology, the scale of various types of data that can be recommended to users is becoming increasingly large. In order to enable the newly released various types of data to be operated by users, it is usually necessary to recommend various types of data to interested users in a targeted manner.

[0003] Under the related technology, when recommending data to users, data similar to the historical data operated on can be recommended to users based on the user's historical operation records on the data, or data corresponding to popular topics can be directly recommended to users. Alternatively, an algorithm such as epsilon-greedy can be used to randomly recommend data to users. Alternatively, based on the user's demographic characteristics and preset label characteristics, the data that the user may be interested in can be estimated and the corresponding recommended data can be determined.

[0004] However, for the existing data recommendation methods, only recommending data that is similar to the historical data of operations or data on hot topic objects will not be able to meet the needs of personalized recommendations for each user, and will greatly affect the diversity of recommendation results. At the same time, it is impossible to explore the user's potential preferences, and therefore it is impossible to accurately recommend data that may be of interest to the user. Summary of the invention

[0005] The embodiments of the present disclosure provide a data recommendation method, device, electronic device and storage medium to solve the problems in the prior art that the personalized needs of users cannot be mined and data cannot be accurately recommended based on the personalized needs of users.

[0006] The specific technical solutions provided by the embodiments of the present disclosure are as follows:

[0007] First, a data recommendation method is proposed, including:

[0008] Obtaining a user feature vector, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model;

[0009] Determine a candidate recommendation data set corresponding to the user, obtain data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, and determine the expected benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector;

[0010] Based on the expected benefits, target data to be recommended that meet set conditions are screened out from the candidate recommendation data and recommended to the user, and feedback information from the user on the target data to be recommended is obtained;

[0011] Based on the feedback information, data parameters of the corresponding target data to be recommended are updated.

[0012] Optionally, determining the expected benefit of the user for each candidate recommendation data based on each obtained data parameter and the user feature vector includes:

[0013] The confidence interval upper bound linUCB algorithm is adopted to determine the initial benefit and upper bound floating benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector, and the expected benefit of the user for the corresponding candidate recommendation data is determined based on each initial benefit and upper bound floating benefit.

[0014] Optionally, the data parameter includes a first data parameter and a second data parameter; and updating the data parameter of the corresponding target data to be recommended based on the feedback information includes:

[0015] Determining an adjustment factor corresponding to the feedback information, determining a data parameter of the target to-be-recommended data corresponding to the feedback information, and updating a first data parameter among the data parameters based on a first dot product result of the adjustment factor and the user feature vector to obtain an updated first data parameter;

[0016] Based on a second dot product result of the user feature vector and the transposed vector of the user feature vector, a second data parameter in the data parameters is updated to obtain an updated second data parameter.

[0017] Optionally, obtaining a user feature vector corresponding to the user includes:

[0018] Acquire historical behavior information of a user within a specified historical time period, and determine a set of interest data of the user based on the historical behavior information;

[0019] Determine each interest data included in the interest data set, and respectively determine a content feature group corresponding to each interest data, and use a trained deep learning model to predict and obtain a corresponding fitting behavior feature vector based on the content feature group of each interest data;

[0020] Obtain the vector elements corresponding to each position in the fitting behavior feature vector corresponding to each of the interest data, and take the result of weighted average of the vector elements at the same position as the new vector element at the corresponding position, and take the vector composed of the new vector elements at each position as the user feature vector of the user.

[0021] Optionally, the content feature group of the interest data includes at least one of the following items or a combination thereof:

[0022] After the text content associated with the interest data is segmented to obtain the segmentation result, the word-to-vector algorithm is used to vectorize the segmentation result to obtain content features in vector form; or,

[0023] When generating the training sample of the deep learning model, the audio content associated with the interest data is encoded, and the obtained first encoding information is used as the content feature of the corresponding interest data; or

[0024] When generating the training samples of the deep learning model, the image frames associated with the interest data are encoded, and the obtained second encoding information is used as the content feature of the corresponding interest data; or

[0025] When generating the training samples of the deep learning model, the objects associated with the interest data are encoded, and the obtained third encoding information is used as the content feature of the corresponding interest data; or

[0026] When generating training samples for the deep learning model, the labels associated with the interest data are encoded, and the obtained fourth encoding information is used as the content feature of the corresponding interest data.

[0027] Optionally, the word-to-vector algorithm is used to vectorize the word segmentation results to obtain content features in vector form, including:

[0028] According to the frequency of occurrence of each word in the word segmentation result, at least one key word is selected from the text content, and a word-to-vector word2vec algorithm is used to obtain each word vector corresponding to the word segmentation result;

[0029] Determine a word vector corresponding to each of the at least one key words, and use an average word vector determined based on the at least one word vector as a content feature in vector form of the interest data.

[0030] Optionally, when generating the training sample of the deep learning model, the audio content associated with the interest data is encoded, and the first encoding information obtained as the content feature of the corresponding interest data includes:

[0031] Obtaining, when generating the training samples of the deep learning model, first coding information obtained by encoding the respective audio contents after sorting the respective audio contents based on the audio contents associated with the respective data and the total number of times the respective audio contents appear in the respective data;

[0032] Determine the target audio content associated with the interest data, obtain first encoding information corresponding to the target audio content, and use the first encoding information as the content feature of the corresponding interest data.

[0033] Optionally, determining the user's interest data set based on the historical behavior information includes:

[0034] Based on the historical behavior information, determine the historical data of the user's operations within the specified historical time period, and add the historical data corresponding to the historical data whose browsing duration exceeds a set threshold as interest data to the interest data set set for the user; and / or,

[0035] Based on the historical behavior data, historical data of the user's operations within the specified time period are determined, and the historical data with the preferred operation behavior is added as interest data to an interest data set set for the user.

[0036] Optionally, the training process of the deep learning model includes:

[0037] Periodically generate a set of training samples for training deep learning models;

[0038] The deep learning model is iteratively trained periodically using the training sample set until the number of times the loss value of the deep learning model is continuously lower than the set value reaches a specified threshold value, wherein the deep learning model is built based on a multi-layer perceptron MLP architecture, and a training sample includes a behavior feature vector and a content feature group of a data. In a training process, the following operations are performed:

[0039] Inputting a content feature group in a training sample as an input sample into the deep learning model to obtain an output result predicted by the deep learning model;

[0040] The mean square error (MSE) loss function is used to calculate the loss value of the deep learning model based on the difference in element values ​​between the output result and the behavior feature vector in the one training sample, and the model parameters of the deep learning model are adjusted based on the loss value.

[0041] Optionally, the periodically generating a training sample set for training a deep learning model includes:

[0042] Obtain the historical behavior information of each user for each data in a preset period;

[0043] Generate a behavior matrix for representing the user's operation on the data according to the historical behavior information of each user on each data, and use a cross least squares ALS algorithm to decompose the behavior feature vector corresponding to each data from the behavior matrix;

[0044] Obtain the content feature groups corresponding to each data, and generate training sample sets of the deep learning model according to the behavior feature vectors and content feature groups corresponding to each data, wherein a training sample in the training sample set includes a content feature group and a behavior feature vector of a data.

[0045] Optionally, inputting a content feature group in a training sample as an input sample into the deep learning model to obtain an output result predicted by the deep learning model includes:

[0046] Inputting a content feature group in a training sample as an input sample into the deep learning model, constructing content feature sub-vectors corresponding to respective content features in the content feature group through the deep learning model, and combining the respective content feature sub-vectors into a content feature vector in a preset order through the deep learning model;

[0047] Through the deep learning model, the content feature vector is mapped into an intermediate feature vector of a specified dimension, and a corresponding fitting behavior feature vector is predicted based on the intermediate feature vector, and the fitting behavior feature vector is used as the output result of the deep learning model, wherein the fitting behavior feature vector has the same vector dimension as the behavior feature vector.

[0048] Optionally, constructing the content feature sub-vector corresponding to each content feature in the content feature group by using the deep learning model includes:

[0049] When it is determined that there are multiple content features of the same content feature type in the content feature group, corresponding content feature sub-vectors of the same type are generated for each content feature of the same content feature type through the deep learning model, wherein the deep learning model can construct content feature sub-vectors of the same type for the corresponding content feature type for the default encoding information set for each type of encoding information;

[0050] Through the deep learning model, an average content feature sub-vector determined according to content feature sub-vectors of the same type is used as a content feature sub-vector of a content feature of a corresponding type.

[0051] In a second aspect, a data recommendation device is proposed, comprising:

[0052] An acquisition unit, configured to acquire a user feature vector, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model;

[0053] a determination unit, configured to determine a candidate recommendation data set corresponding to the user, obtain data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, and determine the expected benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector;

[0054] A screening unit, configured to screen target data to be recommended that meets a set condition from the candidate recommendation data based on the expected benefit, and recommend the target data to be recommended to the user, and obtain feedback information from the user on the target data to be recommended;

[0055] An updating unit is used to update data parameters of the corresponding target data to be recommended based on the feedback information.

[0056] Optionally, when determining the expected benefits of the user for each candidate recommendation data based on each obtained data parameter and the user feature vector, the screening unit is used to:

[0057] The confidence interval upper bound linUCB algorithm is adopted to determine the initial benefit and upper bound floating benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector, and the expected benefit of the user for the corresponding candidate recommendation data is determined based on each initial benefit and upper bound floating benefit.

[0058] Optionally, the data parameter includes a first data parameter and a second data parameter; when updating the data parameter of the corresponding target data to be recommended based on the feedback information, the updating unit is used to:

[0059] Determining an adjustment factor corresponding to the feedback information, determining a data parameter of the target to-be-recommended data corresponding to the feedback information, and updating a first data parameter among the data parameters based on a first dot product result of the adjustment factor and the user feature vector to obtain an updated first data parameter;

[0060] Based on a second dot product result of the user feature vector and the transposed vector of the user feature vector, a second data parameter in the data parameters is updated to obtain an updated second data parameter.

[0061] Optionally, when acquiring the user feature vector corresponding to the user, the acquiring unit is used to:

[0062] Acquire historical behavior information of a user within a specified historical time period, and determine a set of interest data of the user based on the historical behavior information;

[0063] Determine each interest data included in the interest data set, and respectively determine a content feature group corresponding to each interest data, and use a trained deep learning model to predict and obtain a corresponding fitting behavior feature vector based on the content feature group of each interest data;

[0064] Obtain the vector elements corresponding to each position in the fitting behavior feature vector corresponding to each of the interest data, and take the result of weighted average of the vector elements at the same position as the new vector element at the corresponding position, and take the vector composed of the new vector elements at each position as the user feature vector of the user.

[0065] Optionally, when determining the content feature group of the interest data, the acquisition unit performs at least one of the following items or a combination thereof:

[0066] After the text content associated with the interest data is segmented to obtain the segmentation result, the word-to-vector algorithm is used to vectorize the segmentation result to obtain content features in vector form; or,

[0067] When generating the training sample of the deep learning model, the audio content associated with the interest data is encoded, and the obtained first encoding information is used as the content feature of the corresponding interest data; or

[0068] When generating the training samples of the deep learning model, the image frames associated with the interest data are encoded, and the obtained second encoding information is used as the content feature of the corresponding interest data; or

[0069] When generating the training samples of the deep learning model, the objects associated with the interest data are encoded, and the obtained third encoding information is used as the content feature of the corresponding interest data; or

[0070] When generating training samples for the deep learning model, the labels associated with the interest data are encoded, and the obtained fourth encoding information is used as the content feature of the corresponding interest data.

[0071] Optionally, when the word-to-vector algorithm is used to vectorize the word segmentation result to obtain the content feature in vector form, the acquisition unit is used to:

[0072] According to the frequency of occurrence of each word in the word segmentation result, at least one key word is selected from the text content, and a word-to-vector word2vec algorithm is used to obtain each word vector corresponding to the word segmentation result;

[0073] Determine a word vector corresponding to each of the at least one key words, and use an average word vector determined based on the at least one word vector as a content feature in vector form of the interest data.

[0074] Optionally, when the audio content associated with the interest data is encoded when generating the training sample of the deep learning model, and the first encoding information obtained is used as the content feature of the corresponding interest data, the acquisition unit is used to:

[0075] Obtaining, when generating the training samples of the deep learning model, first coding information obtained by encoding the respective audio contents after sorting the respective audio contents based on the audio contents associated with the respective data and the total number of times the respective audio contents appear in the respective data;

[0076] Determine the target audio content associated with the interest data, obtain first encoding information corresponding to the target audio content, and use the first encoding information as the content feature of the corresponding interest data.

[0077] Optionally, when determining the user's interest data set based on the historical behavior information, the acquisition unit is used to:

[0078] Based on the historical behavior information, determine the historical data of the user's operations within the specified historical time period, and add the historical data corresponding to the historical data whose browsing duration exceeds a set threshold as interest data to the interest data set set for the user; and / or,

[0079] Based on the historical behavior data, historical data of the user's operations within the specified time period are determined, and the historical data with the preferred operation behavior is added as interest data to an interest data set set for the user.

[0080] Optionally, the device further includes a training unit, and the training unit performs the following operations during the training process of the deep learning model:

[0081] Periodically generate a set of training samples for training deep learning models;

[0082] The deep learning model is iteratively trained periodically using the training sample set until the number of times the loss value of the deep learning model is continuously lower than the set value reaches a specified threshold value, wherein the deep learning model is built based on a multi-layer perceptron MLP architecture, and a training sample includes a behavior feature vector and a content feature group of a data. In a training process, the following operations are performed:

[0083] Inputting a content feature group in a training sample as an input sample into the deep learning model to obtain an output result predicted by the deep learning model;

[0084] The mean square error (MSE) loss function is used to calculate the loss value of the deep learning model based on the difference in element values ​​between the output result and the behavior feature vector in the one training sample, and the model parameters of the deep learning model are adjusted based on the loss value.

[0085] Optionally, when the training sample set for training the deep learning model is periodically generated, the training unit is used to:

[0086] Obtain the historical behavior information of each user for each data in a preset period;

[0087] Generate a behavior matrix for representing the user's operation on the data according to the historical behavior information of each user on each data, and use a cross least squares ALS algorithm to decompose the behavior feature vector corresponding to each data from the behavior matrix;

[0088] Obtain the content feature groups corresponding to each data, and generate training sample sets of the deep learning model according to the behavior feature vectors and content feature groups corresponding to each data, wherein a training sample in the training sample set includes a content feature group and a behavior feature vector of a data.

[0089] Optionally, when a content feature group in a training sample is input into the deep learning model as an input sample to obtain an output result predicted by the deep learning model, the training unit is used to:

[0090] Inputting a content feature group in a training sample as an input sample into the deep learning model, constructing content feature sub-vectors corresponding to respective content features in the content feature group through the deep learning model, and combining the respective content feature sub-vectors into a content feature vector in a preset order through the deep learning model;

[0091] Through the deep learning model, the content feature vector is mapped into an intermediate feature vector of a specified dimension, and a corresponding fitting behavior feature vector is predicted based on the intermediate feature vector, and the fitting behavior feature vector is used as the output result of the deep learning model, wherein the fitting behavior feature vector has the same vector dimension as the behavior feature vector.

[0092] Optionally, when constructing the content feature sub-vectors corresponding to the respective content features in the content feature group through the deep learning model, the training unit is used to:

[0093] When it is determined that there are multiple content features of the same content feature type in the content feature group, corresponding content feature sub-vectors of the same type are generated for each content feature of the same content feature type through the deep learning model, wherein the deep learning model can construct content feature sub-vectors of the same type for the corresponding content feature type for the default encoding information set for each type of encoding information;

[0094] Through the deep learning model, an average content feature sub-vector determined according to content feature sub-vectors of the same type is used as a content feature sub-vector of a content feature of a corresponding type.

[0095] In a third aspect, an electronic device is proposed, comprising a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor executes the steps of any one of the methods described in the first aspect.

[0096] In a fourth aspect, a computer-readable storage medium is proposed, which includes a program code. When the program code is run on an electronic device, the program code is used to enable the electronic device to execute the steps of any method described in the first aspect.

[0097] The beneficial effects of the present invention are as follows:

[0098] In an embodiment of the present disclosure, a user feature vector is obtained, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model, and then a candidate recommendation data set corresponding to the user is determined, and data parameters corresponding to each candidate recommendation data in the candidate recommendation data set are obtained, and based on the obtained data parameters and the user feature vector, the expected benefit of the user for each candidate recommendation data is determined respectively, and then based on the expected benefit, target data to be recommended that meet set conditions are screened out from the various candidate recommendation data and recommended to the user, and feedback information from the user on the target data to be recommended is obtained, and based on the feedback information, the data parameters of the corresponding target data to be recommended are updated.

[0099] In this way, after the processing device determines the user feature vector based on the user's interest data, it can estimate the user's preference for each candidate recommendation data in the candidate recommendation data set based on the user feature vector, thereby determining the target data to be recommended that the user is potentially interested in in the candidate recommendation data set, thereby mining the user's personalized needs and helping to maintain the user's activity. Furthermore, based on the user's feedback information on the target data to be recommended, the data parameters corresponding to the target data to be recommended can be updated, which is equivalent to adopting an online learning method. According to the user's feedback on the data, the data parameters corresponding to the data can be adjusted in time, so that subsequent recommendations can be processed based on the adjusted data parameters, thereby improving the accuracy of data recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0100] Figure 1a A schematic diagram of the training process of the deep learning model in the embodiment of the present disclosure;

[0101] Figure 1b A schematic diagram of the generation process of training samples in an embodiment of the present disclosure;

[0102] Figure 1c It is a schematic diagram of a behavior matrix in an embodiment of the present disclosure;

[0103] Figure 2a A schematic diagram of a recommended flow of data in an embodiment of the present disclosure;

[0104] Figure 2b A schematic diagram of a process for determining a user feature vector in an embodiment of the present disclosure;

[0105] Figure 3 A schematic diagram of a process for recommending newly released video data in an embodiment of the present disclosure;

[0106] Figure 4 A schematic diagram of the logical structure of a device for recommending data in an embodiment of the present disclosure;

[0107] Figure 5 Schematic diagram of the physical structure of the data recommendation device in the embodiment of the present disclosure. DETAILED DESCRIPTION

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

[0109] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0110] For ease of understanding, the terms involved in the embodiments of the present disclosure are explained below:

[0111] Multimodality: In the embodiments of the present disclosure, each source or form of information is referred to as a modality. For example, the media included in the video data may be voice, video data, text, etc., and any of the above media can be regarded as a modality. In the embodiments of the present disclosure, multimodality refers to information such as text, images, songs, artists, and tags that may be contained in the data.

[0112] Cold start: Since new users or new data often have no past information accumulation in the recommendation system, it is necessary to collect basic data by accumulating a certain amount of exposure and interaction. In the embodiment of the present disclosure, the process of recommending newly released data is called the cold start of data.

[0113] Bandit algorithm: an algorithm proposed to solve the multi-armed bandit problem (MAB), which can choose to maximize the benefits under uncertain benefits. In the embodiment of the present disclosure, the cold start problem of new data is solved with the help of the MAB mechanism. The specific process can be understood as follows: for newly released data entering the recommendation system, it can be recommended to users according to a certain strategy. If the user is interested in the data, then the corresponding benefits can be obtained based on the user's operation on the data, otherwise no benefits will be obtained.

[0114] Embedding: The process of converting features into vector representations through identity (ID) mapping is called embedding. In the disclosed embodiment, it is used to digitize features that cannot be recognized by the processing device and convert them into features in a unified vector space. Based on the similarity between the embeddings of each feature, the similarity between the corresponding features can be measured.

[0115] Mean square error (MSE): It is a common loss function used in machine learning and deep learning. It is the expectation of the square of the error. The formula is: MSE = E((T-θ) 2 ), where T is the predicted value and θ is the target value.

[0116] Multilayer Perceptron (MLP): A forward-structured artificial neural network model that includes an input layer, an output layer, and multiple hidden layers. MLP can achieve high-order cross-features.

[0117] Alternating Least Squares (ALS): is a common matrix decomposition algorithm that can fit the user's preference for items and generate embeddings of users and items.

[0118] Revenue: In the disclosed embodiment, it refers to the weight set for the user's feedback operation on the recommended data after the data is recommended to the user. The feedback operation may be a user's click, like, forward, comment, etc. In other words, after the data is recommended to the user, the revenue that can be obtained by recommending the data to the user is determined based on the user's feedback operation on the data.

[0119] Server: It can be an independent physical server, 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, and big data and artificial intelligence platforms.

[0120] Terminal device: can be a mobile terminal, a fixed terminal or a portable terminal, such as a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communication system device, a personal navigation device, a personal digital assistant, an audio / video data player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. It is also foreseeable that the terminal device can support any type of interface for the user (such as a wearable device), etc.

[0121] The principle and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure.

[0122] Under the related technology, when recommending data to users, in some implementations, it is possible to determine the content that the user has been interested in based on the user's historical operation records on the data, and then recommend similar data to the user. This greatly limits the diversity of data recommended to users. The data recommended to users can only be limited to specified types, and cannot take into account the user's personalized needs and interests that may change at any time. There is no guarantee that the data recommended to users can meet the user's usage needs.

[0123] In some other implementations of the related technology, an existing recommendation algorithm may be used to randomly recommend data with the highest average benefit to users, or data that users may prefer may be determined based only on the user's demographic characteristics, such as age, gender, and other characteristics, as well as the user's associated preference tag characteristics. In this way, based on features that simply characterize user attributes, it is impossible to accurately explore the user's potential preferences, and thus it is impossible to accurately grasp the user's personalized needs, making it impossible to accurately recommend data to users.

[0124] Application Scenario Overview

[0125] The data recommendation method proposed in the present disclosure can be applied to the scenario of recommending various multimedia data. The data recommended in the present disclosure can be text data, such as recommendations of novels, papers, news and other contents. The recommended data can also be audio data, such as recommendations of music and other contents. The recommended contents can also be video data and other contents. In some possible application scenarios of the present disclosure, recommendations can be made for newly released multimedia data to achieve cold start of the newly released multimedia data.

[0126] In the technical solution proposed in the present disclosure, when recommending data to a user, the processing device obtains a user feature vector predicted by a trained deep learning model based on various interest data associated with the user, and then determines the candidate recommendation data set corresponding to the user, and obtains the data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, wherein the data parameters are used to assist in estimating the benefits that can be obtained after the corresponding candidate recommendation data is pushed to the user. Then, based on the obtained data parameters and user feature vectors, the expected benefits of the user for each candidate recommendation data in the candidate recommendation data set are estimated. The processing device then filters out the target data to be recommended to the user from the candidate recommendation data set based on the determined expected benefits, recommends the determined target data to be recommended to the user, and updates the data parameters of the corresponding target data to be recommended based on the user's feedback information on the target data to be recommended.

[0127] Specifically, in the embodiments of the present disclosure, in different application scenarios, the content included in the candidate recommendation data set can be selectively configured. For example, in the scenario of data cold start, the candidate recommendation data set can be generated based on the newly released data, so that in the actual recommendation process, the newly released data can be recommended to the user. In the technical solution proposed in the present disclosure, whether it is newly released data or data with existing operation records, there are corresponding data parameters. For each data, its corresponding data parameters are global, wherein the globality means that the data parameters can be adjusted according to the feedback information of any user, and can maintain the data parameters corresponding to the data in response to the historical behavior information of each user.

[0128] In this way, after the processing device determines the user feature vector based on the user's interest data, it can estimate the user's preference for each candidate recommendation data in the candidate recommendation data set based on the user feature vector, thereby determining the target data to be recommended that the user is potentially interested in in the candidate recommendation data set, thereby mining the user's personalized needs and helping to maintain the user's activity. Furthermore, based on the user's feedback information on the target data to be recommended, the data parameters corresponding to the target data to be recommended can be updated, which is equivalent to adopting an online learning method. According to the user's feedback on the data, the data parameters corresponding to the data can be adjusted in time, so that subsequent recommendations can be processed based on the adjusted data parameters, thereby improving the accuracy of data recommendations.

[0129] Exemplary Methods

[0130] It should be noted that, in the embodiments of the present disclosure, the first processing device for deep learning model training and the second processing device for data recommendation may be the same processing device, or may be different processing devices that can interact with each other. The first processing device and the second processing device may be servers or terminal devices with processing capabilities. The present disclosure does not specifically limit the types of the first processing device and the second processing device. In some possible implementations of the present disclosure, after the first processing device completes the training of the deep learning model, the trained model may be sent to the second processing device for processing. In the following description, only an example of a processing device that implements both deep learning model training and data recommendation is taken to illustrate the data recommendation method proposed in the present disclosure, wherein the processing device may be a server or a terminal device.

[0131] The following is a detailed description of the embodiments of the present disclosure in conjunction with the accompanying drawings:

[0132] The following first describes the training process of the deep learning model in the embodiment of the present disclosure:

[0133] See also Figure 1a As shown, it is a schematic diagram of the training process of the deep learning model in the embodiment of the present disclosure:

[0134] Step 101: The processing device periodically generates a set of training samples for training a deep learning model.

[0135] When the processing device executes step 101, the training sample set may be generated by executing the following steps.

[0136] See also Figure 1b As shown in FIG. 1 , it is a schematic diagram of the generation process of training samples in the embodiment of the present disclosure. Figure 1b For detailed explanation:

[0137] Step 1011: The processing device obtains the historical behavior information of each user for each data at a preset time period.

[0138] In the embodiment of the present disclosure, in order to ensure the effectiveness and accuracy of the deep learning model, the historical behavior information of each user in the global scope for each data in the global scope can be periodically obtained with a preset time period as a cycle, wherein the preset time period can be configured according to actual processing needs, for example, configured to 1 day.

[0139] It should be noted that in the embodiments of the present disclosure, the processing device can selectively obtain all data up to the current time according to actual processing needs, or, taking into account that data far away from the current time has poor reference value, the processing device can selectively obtain all data within a historical time period up to the current time, wherein all data refers to historical behavior information of each user in the global scope for each data in the global scope within the specified time period, each user in the global scope refers to all users who have recorded historical behavior information for the data, and each data in the global scope refers to all published data.

[0140] Step 1012: The processing device generates a behavior matrix for characterizing the user's operation on the data based on the historical behavior information of each user on each data, and uses the ALS algorithm to decompose the behavior feature vector corresponding to each data from the behavior matrix.

[0141] Specifically, after the processing device acquires the historical behavior information, it establishes a behavior matrix representing the operation status of each user on each data, wherein the historical behavior information records the operation of the user on the data.

[0142] In the disclosed embodiment, the processing device may quantify the user's historical behavior information on the data. Specifically, different numerical scores may be configured for different operations of the user on the data, and then the user's score for the data is determined based on the user's historical behavior information on the data. Then, based on the scores of each user for each data, a behavior matrix is ​​generated. At the same time, considering that for a user, there may be data that the user has never operated, the positions in the behavior matrix that do not correspond to the actual historical behavior information may be initialized and assigned values, wherein the assigned initial values ​​are determined according to actual processing needs and are not subject to excessive restrictions herein.

[0143] For example, assuming that the current data is specifically video data, the processing device can quantify the user's historical behavior information for the video data. Specifically, different numerical scores can be configured for different operations of the user on the video data, and then the user's score for the video data can be determined based on the user's historical behavior information for the video data. Then, based on the scores of each user for each video data, a behavior matrix can be generated.

[0144] For example, see Figure 1c As shown in FIG. 1 , which is a schematic diagram of a behavior matrix in an embodiment of the present disclosure, assuming that the numerical score configured for the user's forwarding operation on the video data is 5, the numerical score configured for the user's comment operation on the video data is 3, and the numerical score configured for the user's like operation on the video data is 1. There are m users and n video data in the global scope. According to the historical behavior information of the user on the data, it can be obtained Figure 1c The behavior matrix shown in FIG. 1 is a diagram showing a behavior matrix, where the “*” in the behavior matrix indicates that the user at that position has not generated historical behavior information for the corresponding video data. The position corresponding to the “*” can be initialized and assigned a value, such as Figure 1c The rows in the matrix are assigned a value of 0.

[0145] Furthermore, after the processing device establishes the behavior matrix, the ALS algorithm can be used to decompose the behavior feature vectors corresponding to each data from the behavior matrix.

[0146] Specifically, the processing device can determine the dimension of the behavior feature vector according to actual processing needs, and then use the ALS algorithm to decompose the behavior matrix to obtain the behavior feature vector of the specified dimension corresponding to each data. Among them, since the behavior matrix is ​​constructed based on the user's historical behavior information for the data, it is named the behavior matrix, and the vectors corresponding to the data obtained based on the behavior matrix are called behavior feature vectors.

[0147] For example, assuming that the dimension of the behavior matrix is ​​m*n, m represents the total number of users, n represents the total number of data, and the specified behavior feature vector dimension is z, then the ALS algorithm can be used to split the m*n behavior matrix into m*z and n*z matrices, so that for each data, the corresponding z-dimensional vector can be obtained as the behavior feature vector corresponding to the data.

[0148] In this way, the processing device establishes a behavior matrix based on the historical behavior information of users on the data globally, and then determines the behavior feature vector of the specified dimension for each data. This is equivalent to determining the vector representation of the data based on the feedback of each user on the data after integrating a large amount of user historical behavior information, so that the behavior feature vector generated for the data is more valuable for reference.

[0149] Step 1013: The processing device obtains the content feature groups corresponding to each data, and generates training sample sets of the deep learning model according to the behavior feature vectors and content feature groups corresponding to each data.

[0150] When generating a training sample set, the processing device obtains the content feature group corresponding to each data, and generates a training sample in the training sample set based on the content feature group and behavior feature vector of a data. The process of determining the content feature group corresponding to the data is described below:

[0151] In the embodiment of the present disclosure, considering that the data may be video data, text data, or audio data, when the processing device determines the content feature corresponding to a data, the extracted content feature may be any one or a combination of the following according to the actual processing needs:

[0152] A. After the text content associated with the data is segmented to obtain the segmentation results, the word-to-vector algorithm is used to vectorize the segmentation results to obtain content features in vector form.

[0153] Specifically, after the processing device determines the text content associated with the data, it first performs word segmentation processing on the text content to obtain a word segmentation result for the text content, wherein, depending on the data type, the text content can be any one of the following contents or a combination: an introduction to the data; a title of the data; user comments on the data; subtitles of the data; or the main text of the data.

[0154] For example, in a scenario where video data is recommended to a user, when generating training samples based on the video data, a brief introduction to the video data may be used as text content associated with the video data.

[0155] Furthermore, the processing device can filter out at least one key word from the text content according to the frequency of occurrence of each word in the word segmentation result, and adopt a word to vector (word2vec) algorithm to obtain each word vector corresponding to the word segmentation result, and then determine the word vector corresponding to each of the at least one key word, and use the average word vector determined based on at least one word vector as the content feature of the data in vector form.

[0156] Specifically, after the processing device performs word segmentation on the text content associated with the data, it can selectively filter out a specified number of words with the highest frequency of occurrence from the words obtained by the word segmentation according to the frequency of occurrence of the words, as key words, and then use the word2vec algorithm to obtain the word vectors corresponding to each key word, and then use the average word vector determined based on each word vector as a content feature of the corresponding interest data.

[0157] For example, suppose that for a video data X, according to the introduction of the video data X, three keywords are obtained through word segmentation, namely keyword 1, keyword 2, and keyword 3. Then, using the word2vec algorithm, the word vector corresponding to keyword 1 is (X11, X21, X31...Xz1), the word vector corresponding to keyword 2 is (X12, X22, X32...Xz2), and the word vector corresponding to keyword 3 is (X13, X23, X33...Xz3). Therefore, after processing, a content feature corresponding to the video data X is obtained as

[0158] B. Encode the audio content associated with each data to obtain first encoding information corresponding to each audio content, and determine the content characteristics of the audio content in the corresponding data according to each first encoding information.

[0159] Specifically, after the processing device determines the audio content included in each data, it can selectively sort the audio content according to the total number of times the audio content appears in the each data, and encode each audio content in the sorted order to obtain the first encoding information corresponding to each audio content, wherein the first encoding information is used to mark the audio content as a form that can be processed by the deep learning model.

[0160] It should be noted that, in the embodiment of the present disclosure, when encoding the audio content, a unified default encoding can be configured for the audio content whose total number of appearances in the various data is lower than the first set threshold; among the audio content whose total number of appearances in the various data is higher than the first set threshold, the audio content with the same total number of appearances can be randomly sorted in order.

[0161] For example, assuming that the value of the first set threshold is 1, the total number of audio contents obtained is 77, and based on the total number of times the audio content appears in the obtained data, it is determined that there are 17 audio contents with a total number of 1, and there are 5 audio contents: audio contents 1-5, whose corresponding total numbers are tied for the highest. Then, the audio contents 1-5 can be sorted in a random sorting manner, and then encoded according to the sorting results, and the 17 audio contents with a corresponding total number of 1 can be uniformly encoded as the default encoding.

[0162] C. Encoding the image frames associated with each data to obtain second encoding information corresponding to each image frame, and determining content features of the image frames in the corresponding data according to each second encoding information.

[0163] Specifically, after the processing device determines the image frames included in each data, it selectively sorts the image frames according to the total number of times the image frames appear in the each data, and encodes each image frame in the sorted order to obtain second encoding information corresponding to each image frame, wherein the second encoding information is used to mark the image frames as a form that can be processed by a deep learning model.

[0164] It should be noted that, in the embodiment of the present disclosure, when encoding image frames, a unified default encoding can be configured for image frames whose total number of appearances in the various data is lower than the second set threshold value; among image frames whose total number of appearances in the various data is higher than the second set threshold value, image frames with the same total number of appearances can be randomly sorted in order.

[0165] For example, assuming that the data is video data, the cover image of the video data can be used as an image frame of the video data, and then sorted and encoded.

[0166] D. Encode the objects associated with each data to obtain the third encoding information corresponding to each object, and determine the content characteristics of the objects in the corresponding data according to each third encoding information.

[0167] Specifically, after the processing device determines the objects included in each data, it selectively sorts each object according to the total number of times the object appears in the data, and encodes each object in the sorted order to obtain third encoding information corresponding to each object, wherein the third encoding information is used to mark the object into a form that can be processed by a deep learning model.

[0168] It should be noted that, in the embodiment of the present disclosure, when encoding objects, a unified default encoding can be configured for objects whose total number of appearances in the various data is lower than the third set threshold; among objects whose total number of appearances in the various data is higher than the third set threshold, objects with the same total number of appearances can be randomly sorted in order.

[0169] For example, assuming that the data is video data, the entertainers associated with the video data can be used as objects of data association.

[0170] E. Encode the tags associated with each data to obtain fourth encoding information corresponding to each tag, and determine the content features of the tags in the corresponding data according to each fourth encoding information.

[0171] Specifically, after the processing device determines the labels included in each data, it selectively sorts each label according to the total number of times the label appears in the each data, and encodes the each label in the sorted order to obtain fourth encoding information corresponding to each label, wherein the fourth encoding information is used to mark the label into a form that can be processed by the deep learning model.

[0172] It should be noted that, in the embodiment of the present disclosure, when encoding the tags, a unified default encoding can be configured for the tags whose total number of appearances in the various data is lower than the fourth set threshold; among the tags whose total number of appearances in the various data is higher than the fourth set threshold, the tags with the same total number of appearances can be randomly sorted in order.

[0173] For example, assuming that the data is video data, the classification label associated with the video data and marked in the operation stage can be used as the label associated with the video data.

[0174] Furthermore, the processing device can generate a content feature group corresponding to the data based on the content features indicated by the above AE according to actual processing needs, and use the content feature group corresponding to one data as an input sample, and use the behavior feature vector corresponding to the one data as an output sample to generate a training sample, and then establish a training sample set based on the generated training samples.

[0175] In this way, when generating training samples, the multimodal features of the data are integrated, which is equivalent to extracting the content features of the data from different angles, providing a basis for accurate recommendation of subsequent data. Moreover, the generated training samples include content feature groups and behavioral feature vectors, which provide a basis for the deep learning model to learn behavioral features based on the content features of the data.

[0176] Step 102: The processing device uses a training sample set to periodically iteratively train the deep learning model until the loss value of the deep learning model is continuously lower than the set value for a number of times that reaches a specified threshold value.

[0177] After the processing device obtains the training sample set, it uses the training samples in the training sample set to iteratively train the deep learning model until the loss value of the deep learning model is continuously lower than the set value and the number of times reaches a specified threshold value, wherein the deep learning model can be built based on a multi-layer perceptron MLP architecture, and a training sample includes a behavioral feature vector and a content feature group of a data.

[0178] It should be noted that in the embodiments of the present disclosure, during a training process, a set number of input samples can be input according to actual processing needs and training can be performed simultaneously. For the sake of ease of description, the following description will only take the training of a deep learning model based on one training sample as an example to illustrate the operations performed during a training process.

[0179] Specifically, during a training process, the processing device performs the following operations:

[0180] S1: The processing device inputs a content feature group in a training sample as an input sample into a deep learning model to obtain an output result predicted by the deep learning model.

[0181] In an embodiment of the present disclosure, when the number of different types of content features in a content feature group of a training sample is only one, the processing device can input the content feature group in a training sample as an input sample into the deep learning model, and construct content feature sub-vectors corresponding to each content feature in the content feature group through the deep learning model, and combine the various content feature sub-vectors into a content feature vector in a preset order through the deep learning model, and then map the content feature vector to an intermediate feature vector of a specified dimension through the deep learning model, and predict the corresponding fitting behavior feature vector based on the intermediate feature vector, and use the fitting behavior feature vector as the output result of the deep learning model, wherein the fitting behavior feature vector has the same vector dimension as the behavior feature vector.

[0182] Specifically, after the processing device inputs the content feature group into the deep learning model to be trained, the deep learning model is used to generate corresponding content feature sub-vectors for each content feature in the content feature group, and then the obtained content feature sub-vectors are spliced ​​to obtain a content feature vector, and then the spliced ​​content feature vector is used as the input of the MLP network. Through the processing of the MLP network, the content feature vector is mapped to an intermediate feature vector of a specified dimension, and then based on the intermediate feature vector, the corresponding fitting behavior feature vector is predicted to achieve the mapping of the content feature vector to the same vector space as the behavior feature vector, wherein the dimensions of the content feature sub-vectors generated for different types of content features may be different.

[0183] It should be noted that when generating content feature sub-vectors for the coded information in the content feature group, in the initial training cycle, the deep learning model is used to generate the corresponding randomly initialized content feature sub-vectors for the coded information through random initialization, and in the subsequent training cycles, the content feature sub-vector adjusted in the previous training cycle can be used as the initial value of the corresponding content feature sub-vector in the next training cycle. In particular, for the content feature sub-vector corresponding to the text content, the generated vector content can be directly used.

[0184] In this way, in a training process, after the content feature group of the data is input into the deep learning model to be trained, the deep learning model can adaptively process the various content features included in the content feature group.

[0185] In particular, in the embodiment of the present disclosure, when the processing device determines that there are multiple content features of the same content feature type in the content feature group, the deep learning model is used to generate corresponding similar content feature sub-vectors for each content feature of the same content feature type, wherein the deep learning model can construct corresponding content feature sub-vectors for the default coding information set corresponding to each type of coding information, and after respectively constructing similar content feature sub-vectors corresponding to the same content feature type, can use the weighted average result between each similar content feature sub-vector of the same content feature type as the content feature sub-vector of the corresponding type of content feature.

[0186] For example, assuming that there are multiple encoding information for characterizing audio content in a content feature group corresponding to a video data, then after the content feature group is input into the deep learning model to be trained, the deep learning model can generate corresponding content feature sub-vectors of the same type for the encoding information corresponding to each audio content, and then, through the deep learning model, the weighted average result of each content feature sub-vector of the same type is used as the content feature sub-vector corresponding to the audio content, wherein the weights used when calculating the weighted average result can be learned, or the weights used can be pre-set, such as all pre-set to 1.

[0187] In this way, when there are multiple similar content features in the content feature group, in order to ensure consistency of processing, the processing device can merge similar content feature sub-vectors corresponding to similar content features, so that for a type of content feature, only one content feature sub-vector of the corresponding dimension is finally generated.

[0188] S2: The processing device uses the MSE loss function to calculate the loss value of the deep learning model based on the difference in element values ​​between the output result and the behavior feature vector in a training sample, and adjusts the model parameters of the deep learning model based on the loss value.

[0189] Specifically, the processing device adopts the MSE loss function to train the deep learning model by minimizing the MSE loss between the output result of the deep learning model and the behavior feature vector, wherein the output result of the deep learning model is recorded as the fitting behavior feature vector.

[0190] On this basis, the processing device repeats the training operations indicated by S1-S2 until the loss function converges. In other words, the processing device determines that the loss value of the deep learning model continues to be lower than the set value for a number of times reaching a specified threshold value, and then it can be determined that the model converges.

[0191] In this way, the processing device can obtain a trained deep learning model, so that through the deep learning model, it can realize the content feature group based on the data and predict the fitting behavior feature vector corresponding to the data, providing a processing basis for the recommendation of newly released data.

[0192] Optionally, after the processing device obtains the deep learning model trained in the current training cycle, it can save the trained deep learning model, and before recommending data to the user, generate a fitting behavior feature vector for each data in the data recommendation pool through the deep learning model, which can be used to directly predict the user's preferences in the future.

[0193] See also Figure 2a As shown, it is a schematic diagram of the recommended flow of data in the embodiment of the present disclosure. Figure 2a, the process of data recommendation based on the trained deep learning model of the processing device is explained:

[0194] Step 201: The processing device obtains a user feature vector.

[0195] Specifically, when executing step 201, the processing device can obtain a user feature vector by executing the following steps, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model, and the deep learning model is used to implement feature mapping, specifically for mapping content features of the data into corresponding fitting behavior feature vectors.

[0196] It should be noted that in some possible embodiments of the present disclosure, deep learning can also be performed directly based on the basic features of the user to generate a user feature vector, wherein the basic features can be the demographic features of the user and the features of the user's operation sequence on the data, etc. In some other possible embodiments of the present disclosure, based on the user's interest data in a specified historical time period, the user feature vector of the user can be obtained according to the fitting behavior feature vector corresponding to the interest data. In the following description, only the determination of the user feature vector based on the user's interest data is used as an example for detailed description.

[0197] See also Figure 2b As shown, it is a schematic diagram of the process of determining the user feature vector in an embodiment of the present disclosure.

[0198] Step 2011: The processing device obtains historical behavior information of the user within a specified historical time period, and determines the interest data set of the user based on the historical behavior information.

[0199] Specifically, the processing device can adopt any one or combination of the following methods to determine the user's interest data set based on the user's historical behavior information within a specified historical time period, wherein the specified historical time period can be configured according to actual usage needs, and the present disclosure does not impose too many restrictions here.

[0200] Method 1: The processing device determines the user's interest data set based on the user's browsing time for historical data.

[0201] Specifically, the processing device determines the historical data of the user's operations within a specified historical time period based on the user's historical behavior information, and adds the historical data corresponding to the browsing time exceeding a set threshold as interest data to the interest data set set for the user, wherein the value of the set threshold is adaptively set according to actual processing needs.

[0202] For example, assuming that the user's interest data set is determined based on the user's historical data within 7 days, and the threshold value is set to 30s, the processing device obtains each historical data of the user's operation within 7 days, and adds the corresponding historical data with a browsing time of more than 30s in each historical data as interest data to the interest data set set for the user.

[0203] Method 2: Determine the user's interest data set based on the user's preference historical behavior information for historical data.

[0204] Specifically, the processing device determines the historical data of the user's operations within a specified time period based on the user's historical behavior data, and adds the historical data of the preferred operation behavior as interest data to an interest data set set for the user, wherein the historical data of the preferred operation behavior includes historical data of any operation of the user such as likes, forwarding, collections, and comments.

[0205] In this way, by analyzing the historical behavior data of users in a specified historical time period, it is possible to effectively grasp the user's interest in data in the specified historical time period, providing a basis for recommending data that may be of interest to the user.

[0206] Step 2012: The processing device determines each interest data included in the interest data set, and respectively determines the content feature group corresponding to each interest data, and uses the trained deep learning model to predict the corresponding fitting behavior feature vector based on the content feature group of each interest data.

[0207] Specifically, after the processing device determines the user's interest data set, for each interest data in the interest data set, the processing device performs the following operations: determines a content feature group corresponding to an interest data, and uses a trained deep learning model to predict a fitting behavior feature vector corresponding to the interest data based on the content feature group of the interest data.

[0208] First, the process of obtaining the content feature group corresponding to the interest data is described below. It can be understood that when the processing device executes the data recommendation process, it uses the trained deep learning model for processing. Therefore, when determining the content feature group corresponding to the interest data, the processing device determines the content feature group corresponding to the interest data based on the training sample set used in the most recent training process of the deep learning model. In different data recommendation scenarios, the content feature group established by the processing device for different types of data may include different content features, so the established content feature group may include at least one or a combination of the following content features:

[0209] A1. After the processing device performs word segmentation processing on the text content associated with the interest data to obtain the word segmentation result, it uses a word-to-vector algorithm to vectorize the word segmentation result to obtain content features in vector form.

[0210] Specifically, when generating content features in vector form according to the text content of the interest data, the process illustrated in item A of step 1013 may be continued, and the word2vec algorithm may be used to generate content features in vector form based on the text content after word segmentation.

[0211] B1. When generating training samples for the deep learning model, the processing device will encode the audio content associated with the interest data, and obtain the first encoded information as the content feature of the corresponding interest data.

[0212] In the disclosed embodiment, the processing device extracts at least one audio content in an interest data, and determines the first encoding information corresponding to each of the at least one audio content according to a training sample used in a training process closest to the current one.

[0213] Specifically, when generating the training samples of the deep learning model, the processing device obtains the target audio content associated with each data and the total number of times each audio content appears in the each data, sorts the each audio content, obtains the first encoding information corresponding to the encoding of each audio content, determines the target audio content associated with the interest data, obtains the first encoding information corresponding to the target audio content, and uses the first encoding information as the content feature of the corresponding interest data.

[0214] In particular, if the current interest data includes audio content X that does not correspond to the first encoding information, the default encoding established for the audio content will be set to the first encoding information corresponding to the audio content X during the process of generating training samples for the deep learning model.

[0215] In this way, the determination of the content feature group of the interest data depends on the training samples of the most recently constructed deep learning model that has completed training. The encoding results when generating the training samples are used to generate the first encoding information corresponding to the audio content of the interest data, thereby ensuring the consistency of the previous and subsequent processing processes. At the same time, considering the training cycle of the deep learning model and the time difference from the data recommendation process, the interest data determined based on the user's historical behavior information may not be included in the most recent training samples of the deep learning model. Therefore, the processability of the interest data is improved by configuring the audio content that is not associated with the first encoding information as the default encoding.

[0216] C1. When generating training samples for the deep learning model, the processing device will encode the image frames associated with the interest data, and obtain the second encoded information as the content feature of the corresponding interest data.

[0217] Specifically, the processing device extracts at least one image frame from an interest data, and determines the second encoding information corresponding to each of the at least one image frame according to a training sample used in a training process closest to the current one.

[0218] In particular, if the current data of interest includes an image frame X that does not correspond to the second encoding information, the default encoding established for the corresponding image frame will be set as the second encoding information corresponding to image frame X during the process of generating training samples for the deep learning model.

[0219] D1. When generating training samples for the deep learning model, the processing device will encode the objects associated with the interest data, and the obtained third encoding information will be used as the content features of the corresponding interest data.

[0220] Specifically, the processing device extracts at least one object in the interest data, and determines the third encoding information corresponding to each of the at least one object based on a training sample used in a training process closest to the current one.

[0221] In particular, if the current interest data includes an object X that does not correspond to the third encoding information, the default encoding established for the corresponding object will be set to the third encoding information corresponding to object X during the process of generating training samples for the deep learning model.

[0222] E1. When generating training samples for a deep learning model, the processing device will encode the labels associated with the interest data, and the obtained fourth encoded information will serve as the content features of the corresponding interest data.

[0223] Specifically, the processing device extracts at least one tag from an interest data, and determines the fourth encoding information corresponding to each of the at least one tag according to a training sample used in a training process closest to the current one.

[0224] In particular, if the current interest data includes a label X that does not correspond to the fourth encoding information, the default encoding established for the corresponding label will be set to the fourth encoding information corresponding to the label X during the process of generating training samples for the deep learning model.

[0225] In this way, based on the content feature determination process shown in steps A1-E1, it can be seen that the processing device completes the construction of the content feature group of the interest data based on the content encoded for each type of content feature when generating the training samples of the deep learning model, and establishes a data form that can be processed using the trained deep learning model, thereby ensuring the effective implementation of the data recommendation process.

[0226] After the processing device constructs the content feature group corresponding to the interest data based on steps A1-E1, it inputs the content feature group constructed corresponding to each interest data into the trained deep learning model respectively, and obtains the fitting behavior feature vector predicted by the deep learning model for each interest data.

[0227] For example, in the actual processing process, for an interest data X, assuming that the interest data is associated with 3 audio contents: audio contents 1-3, and 2 labels: label 1-2, then the content feature group includes {the first encoding information corresponding to audio content 1, the first encoding information corresponding to audio content 2, the first encoding information corresponding to audio content 3, the fourth encoding information corresponding to label 1, and the fourth encoding information corresponding to label 2}.

[0228] It should be noted that in the embodiments of the present disclosure, when generating the fitting behavior feature vector corresponding to the data, after the deep learning model training is completed, the trained deep learning model can be used for each existing data to be recommended in the pool to be recommended, and the corresponding fitting behavior feature vector can be generated based on the content feature group of the data to be recommended, so as to be used in the subsequent data recommendation. Alternatively, the processing device can use the trained deep learning model online to generate the corresponding fitting behavior feature vector for the determined interest data according to the processing needs in the data recommendation process.

[0229] In the disclosed embodiment, when data is recommended for deep learning models obtained through training in different training cycles, the encoding results associated with the same content in the content feature group generated corresponding to the interest data may be different.

[0230] For example, after the first periodic training is completed, the processing device determines the audio content corresponding to ID "1234" based on the training samples generated corresponding to the first periodic training, and the configured first encoding result is "1". Then, after the second periodic training is completed, the processing device determines the first encoding result corresponding to the audio content corresponding to ID "1234" based on the training samples generated corresponding to the second periodic training, which may be "10".

[0231] In this way, when data recommendation is performed based on deep learning models obtained in different training cycles, the content included in the content feature group corresponding to the interest data can be determined based on the training samples generated in the current training cycle, so that the content features included in the interest data can be determined based on the latest determined encoding information, thereby achieving accurate characterization of the interest data.

[0232] Step 2013: The processing device obtains the vector elements corresponding to each position in the fitting behavior feature vector corresponding to each interest data, and takes the result of weighted average of the vector elements at the same position as the new vector element at the corresponding position, and takes the vector composed of the new vector elements at each position as the user feature vector of the user.

[0233] In the disclosed embodiment, after the processing device obtains the fitting behavior feature vectors corresponding to each piece of interest data, it performs weighted averaging on the obtained fitting behavior feature vectors to obtain a user feature vector of the user.

[0234] Specifically, the processing device can obtain the vector elements corresponding to each position in the fitting behavior feature vector corresponding to each interest data, and take the result of weighted averaging of the vector elements at the same position as the new vector element at the corresponding position, and take the vector composed of the new vector elements at each position as the user feature vector of the user, wherein the weights corresponding to each vector element can be set according to actual processing needs.

[0235] For example, assuming that the user's interest data is: interest data 1 and interest data 2, and the fitting behavior feature vectors determined according to the trained deep learning model are: [1, 0, ...1, 0] and [0, 1, ...0, 1] respectively, then the user feature vector can be calculated to be [0.5, 0.5, ..., 0.5, 0.5].

[0236] It should be noted that in some possible implementations of the present disclosure, the processing device may determine the corresponding user feature vector for each user in advance, and store the generated user feature vector in a cache, so that the user feature vector obtained offline in advance can be used for processing when performing subsequent online data recommendation.

[0237] In this way, since the deep learning model is trained based on massive user behavior information and data content feature groups, it is equivalent to integrating massive user behavior information in the training process of the deep learning model, so that the subsequent processing equipment can obtain the user feature vector by aggregating the fitted behavior feature vector corresponding to the user's historical interest data, which can effectively represent the user's preference and improve the accuracy of the subsequent recommendation process.

[0238] Step 202: The processing device determines a candidate recommendation data set corresponding to the user, obtains data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, and determines the expected benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector.

[0239] In the disclosed embodiment, the processing device can determine the candidate recommendation data set corresponding to the user according to actual processing needs, and obtain the data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, wherein the data parameters are used to assist in determining the expected benefits that can be obtained when recommending the candidate recommendation data to the user.

[0240] It should be noted that when the recommendation method proposed in the present disclosure is applied to an application scenario of cold start of new data, the processing device can generate a candidate recommendation data set based on the newly released data.

[0241] In the process of actually determining the expected benefit that can be obtained by recommending the candidate recommendation data to the user, the processing device can adopt the confidence interval upper bound (lin Upper Confidence Bound, linUCB) algorithm to determine the initial benefit and upper floating benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector, and determine the expected benefit of the user for the corresponding candidate recommendation data based on each initial benefit and upper floating benefit.

[0242] In specific implementation, after determining the user login page or refresh page, the processing device can determine the user feature vector by obtaining the user's historical behavior information, and obtain the data parameters set for the candidate recommendation data. Alternatively, when the user feature vectors corresponding to each user are pre-stored, the processing device can obtain the user feature vector and the data parameters of the candidate recommendation data from the cache online, wherein the data parameters specifically refer to the bandit parameters set corresponding to the candidate recommendation data.

[0243] When determining the expected return, the obtained user feature vector is recorded as x, and x is represented as a d-dimensional real number vector, recorded as, x∈R d . And the acquired data parameters are recorded as A, b, where A∈R d×d , the data parameter A can be expressed as a d×d dimensional matrix, b∈R d×1 , b can be expressed as a d-dimensional column vector. In particular, when the candidate recommendation data is recommended for the first time, the data parameter A is initialized to a unit matrix and recorded as A=I d , initialize the data parameter b to a d-dimensional column vector, and the values ​​in the d-dimensional column vector are all 0, denoted as b=0 d×1.

[0244] Specifically, the processing device can determine the expected benefit of a candidate recommendation data by the following formula:

[0245]

[0246] Among them, (A -1 b) T x represents the initial benefit of a candidate to be recommended data; represents the upper bound floating benefit of the candidate data to be recommended; x is the user feature vector; A and b are data parameters; α represents the exploration factor, and the specific value can be configured according to actual business needs. When α is larger, it tends to explore newly released data, and when α is smaller, it tends to recommend data that has currently achieved good benefits.

[0247] It should be noted that the data parameters of a data are global, and the data parameters can be adjusted according to user feedback, so that when determining the expected benefits of the same data for the same or different users at different times, the data parameters used may be different.

[0248] In this way, with the help of the configured data parameters, it is possible to effectively estimate the benefits that can be obtained when recommending each candidate recommendation data to the user. At the same time, considering that the benefits obtained reflect the user's interest in the recommended data, by calculating the expected benefits, it is possible to provide a reference basis for the recommendation of newly released data, so that data that meets personalized needs can be recommended to users.

[0249] Step 203: The processing device selects target data to be recommended that meets the set conditions from various candidate recommendation data based on the expected benefits, and recommends them to the user, and obtains feedback information from the user on the target data to be recommended.

[0250] Specifically, after the processing device determines the expected benefits of each candidate recommended data through the calculation method of step 202, it can arrange the obtained expected benefits in order from large to small, and then screen out the target recommended data that meets the set conditions and recommend them to the user, where the preset condition may be the top N data with the highest expected benefits, and N is an integer set according to actual needs, such as N is set to 1.

[0251] Furthermore, after the processing device screens out the target data to be recommended to the user from various candidate recommendation data, it obtains feedback information from the user on the recommended target data to be recommended, wherein the feedback information indicates the user's historical behavior information on the target data to be recommended, and the historical behavior information records the user's operations such as likes, favorites, and forwarding on the target data to be recommended.

[0252] In this way, the processing device recommends to the user the N candidate recommendation data that are most likely to obtain the maximum benefit, which is equivalent to recommending to the user the N candidate recommendation data that are estimated to be most likely to meet the user's personalized needs, so that the candidate recommendation data recommended to the user can meet the user's usage needs as much as possible, ensuring the efficiency of data recommendation. At the same time, based on the user feature vector, the user's preference for each candidate recommendation data in the candidate recommendation data set is estimated, and the target data to be recommended that the user is potentially interested in is determined in the candidate recommendation data set, thereby realizing the mining of user personalized needs and helping to maintain user activity.

[0253] Step 204: The processing device updates the data parameters of the corresponding target data to be recommended based on the feedback information.

[0254] In the disclosed embodiment, after the processing device determines the user's feedback information on the recommended target data to be recommended, it determines the adjustment factor corresponding to the feedback information, and determines the data parameters of the target data to be recommended corresponding to the feedback information, and based on the first dot product result of the adjustment factor and the user feature vector, updates the first data parameter in the data parameters to obtain the updated first data parameter, and then based on the second dot product result of the user feature vector and the transposed vector of the user feature vector, updates the second data parameter in the data parameters to obtain the updated second data parameter.

[0255] In specific implementation, the processing device collects user feedback information in real time, and generates a corresponding adjustment factor r based on the user's feedback information, wherein the adjustment factor can be expressed as a reward value based on the user's different operation behaviors on the data. Based on the adjustment factor, the user's preference for the data can be distinguished.

[0256] In the disclosed embodiment, different adjustment factors can be set in advance according to different operation behaviors of users on the recommended data. For example, corresponding to the user's browsing behavior on the data, the adjustment factor value is set to r=1, corresponding to the user's liking behavior on the data, the adjustment factor value is set to r=5, and so on.

[0257] Furthermore, based on the obtained adjustment factor r, the processing device may update the data parameters of the corresponding data. In specific implementation, the following formula may be used to update the data parameters:

[0258] A new =A old +xx T ; b new =b old +rx

[0259] Among them, A newIndicates the updated data parameters A, A old represents the data parameter A before updating, x represents the user feature vector of the user, b new Indicates the updated data parameter b, b old represents the data parameter b before updating, and r represents the adjustment factor determined according to the user's historical behavior information on the data.

[0260] Furthermore, after the processing device determines updated data parameters of a piece of data, it can update the updated data parameters into the cache so as to be used in the next recommendation.

[0261] In this way, by setting different adjustment factors corresponding to the user's different historical behavior information for the data, the user's preference for the data can be accurately characterized. At the same time, the online learning method is adopted, which can timely adjust the data parameters corresponding to the data according to the user's feedback on the data, so that in the subsequent recommendations, suitable data can be recommended to the user more accurately, thereby improving the accuracy of data recommendation.

[0262] See also Figure 3 As shown, it is a schematic diagram of the process of recommending newly released video data in the embodiment of the present disclosure. Figure 3 , in the scenario of recommending newly released video data to users, the data recommendation process is schematically explained.

[0263] When recommending newly released video data to users and realizing the cold start of new video data, the processing device can establish a user behavior matrix for video data based on the massive user behaviors in the specified historical time period, and then use the ALS algorithm to decompose the behavior matrix to obtain the behavior feature vector of a set dimension corresponding to each video data, where the massive user behaviors refer to the historical behavior information of each user for each data.

[0264] Furthermore, the processing device can selectively obtain the historical behavior information of each user's video data within 7 days or 14 days from the current time to generate a training sample set for the deep learning model, and generate a corresponding training sample for each video data, wherein a training sample includes a content feature group of a video data and a behavior feature vector corresponding to the video data, and the content features included in the video data may be labels, images, and texts, etc. Then, based on the generated training sample set, the deep learning model is trained to obtain a trained deep learning model, and then, based on the trained deep learning model, multiple video data of interest to the user are aggregated, specifically, the fitting behavior feature vector corresponding to the video data of interest to the user is determined based on the trained deep learning model, and the obtained fitting behavior feature vectors are weighted averaged to obtain the user features represented in the form of user feature vectors.

[0265] The processing device uses a bandit algorithm to estimate the user's expected benefit for each video data based on the user's user characteristics, a pre-set exploration factor weight (i.e., the exploration factor in the formula of step 202 above), and the video bandit parameters corresponding to each cached video data, and determines the video data recommended to the user based on the expected benefit, and presents the video data recommended to the user on an operational page of the user end. In the actual recommendation process, the processing device can display the determined recommended video data together with videos recommended by other methods on the operational page of the user end.

[0266] The processing device receives user feedback on the recommended video data, determines a corresponding adjustment factor according to the user feedback, updates a corresponding video bandit parameter based on the adjustment factor, and stores the updated video bandit parameter in a cache.

[0267] In this way, the processing device can maximize the user's interest in new video data based on the historical behavior data of each user, the content characteristics of the video data, and the algorithm for determining the expected benefits, greatly adapt to the user's personalized needs, and at the same time, improve the efficiency of video data recommendation.

[0268] Based on the same inventive concept, refer to Figure 4 As shown, it is a schematic diagram of the logical structure of the data recommendation device in the embodiment of the present disclosure, including: an acquisition unit 401, a determination unit 402, a screening unit 403, an updating unit 404, and a training unit 405, wherein:

[0269] An acquisition unit 401 is used to acquire a user feature vector, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model;

[0270] The determining unit 402 is used to determine a candidate recommendation data set corresponding to the user, obtain data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, and determine the expected benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector;

[0271] A screening unit 403 is used to screen target data to be recommended that meets a set condition from the candidate recommendation data based on the expected benefit and recommend the target data to be recommended to the user, and obtain feedback information from the user on the target data to be recommended;

[0272] The updating unit 404 is configured to update data parameters of the corresponding target data to be recommended based on the feedback information.

[0273] Optionally, when determining the expected benefits of the user for each candidate recommendation data based on each obtained data parameter and the user feature vector, the screening unit 403 is used to:

[0274] The confidence interval upper bound linUCB algorithm is adopted to determine the initial benefit and upper bound floating benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector, and the expected benefit of the user for the corresponding candidate recommendation data is determined based on each initial benefit and upper bound floating benefit.

[0275] Optionally, the data parameters include a first data parameter and a second data parameter; when updating the data parameters of the corresponding target data to be recommended based on the feedback information, the updating unit 404 is used to:

[0276] Determining an adjustment factor corresponding to the feedback information, determining a data parameter of the target to-be-recommended data corresponding to the feedback information, and updating a first data parameter among the data parameters based on a first dot product result of the adjustment factor and the user feature vector to obtain an updated first data parameter;

[0277] Based on a second dot product result of the user feature vector and the transposed vector of the user feature vector, a second data parameter in the data parameters is updated to obtain an updated second data parameter.

[0278] Optionally, when acquiring the user feature vector corresponding to the user, the acquiring unit 401 is used to:

[0279] Acquire historical behavior information of a user within a specified historical time period, and determine a set of interest data of the user based on the historical behavior information;

[0280] Determine each interest data included in the interest data set, and respectively determine a content feature group corresponding to each interest data, and use a trained deep learning model to predict and obtain a corresponding fitting behavior feature vector based on the content feature group of each interest data;

[0281] Obtain the vector elements corresponding to each position in the fitting behavior feature vector corresponding to each of the interest data, and take the result of weighted average of the vector elements at the same position as the new vector element at the corresponding position, and take the vector composed of the new vector elements at each position as the user feature vector of the user.

[0282] Optionally, when determining the content feature group of the interest data, the acquisition unit 401 performs at least one of the following items or a combination thereof:

[0283] After the text content associated with the interest data is segmented to obtain the segmentation result, the word-to-vector algorithm is used to vectorize the segmentation result to obtain content features in vector form; or,

[0284] When generating the training sample of the deep learning model, the audio content associated with the interest data is encoded, and the obtained first encoding information is used as the content feature of the corresponding interest data; or

[0285] When generating the training samples of the deep learning model, the image frames associated with the interest data are encoded, and the obtained second encoding information is used as the content feature of the corresponding interest data; or

[0286] When generating the training samples of the deep learning model, the objects associated with the interest data are encoded, and the obtained third encoding information is used as the content feature of the corresponding interest data; or

[0287] When generating training samples for the deep learning model, the labels associated with the interest data are encoded, and the obtained fourth encoding information is used as the content feature of the corresponding interest data.

[0288] Optionally, when the word-to-vector algorithm is used to vectorize the word segmentation result to obtain the content feature in vector form, the acquisition unit 401 is used to:

[0289] According to the frequency of occurrence of each word in the word segmentation result, at least one key word is selected from the text content, and a word-to-vector word2vec algorithm is used to obtain each word vector corresponding to the word segmentation result;

[0290] Determine a word vector corresponding to each of the at least one key words, and use an average word vector determined based on the at least one word vector as a content feature in vector form of the interest data.

[0291] Optionally, when the audio content associated with the interest data is encoded when generating the training sample of the deep learning model, and the first encoding information obtained is used as the content feature of the corresponding interest data, the acquisition unit 401 is used to:

[0292] Obtaining, when generating the training samples of the deep learning model, first coding information obtained by encoding the respective audio contents after sorting the respective audio contents based on the audio contents associated with the respective data and the total number of times the respective audio contents appear in the respective data;

[0293] Determine the target audio content associated with the interest data, obtain first encoding information corresponding to the target audio content, and use the first encoding information as the content feature of the corresponding interest data.

[0294] Optionally, when determining the user's interest data set based on the historical behavior information, the acquiring unit 401 is used to:

[0295] Based on the historical behavior information, determine the historical data of the user's operations within the specified historical time period, and add the historical data corresponding to the historical data whose browsing duration exceeds a set threshold as interest data to the interest data set set for the user; and / or,

[0296] Based on the historical behavior data, historical data of the user's operations within the specified time period are determined, and the historical data with the preferred operation behavior is added as interest data to an interest data set set for the user.

[0297] Optionally, the device further includes a training unit 405, and the training unit 405 performs the following operations during the training process of the deep learning model:

[0298] Periodically generate a set of training samples for training deep learning models;

[0299] The deep learning model is iteratively trained periodically using the training sample set until the number of times the loss value of the deep learning model is continuously lower than the set value reaches a specified threshold value, wherein the deep learning model is built based on a multi-layer perceptron MLP architecture, and a training sample includes a behavior feature vector and a content feature group of a data. In a training process, the following operations are performed:

[0300] Inputting a content feature group in a training sample as an input sample into the deep learning model to obtain an output result predicted by the deep learning model;

[0301] The mean square error (MSE) loss function is used to calculate the loss value of the deep learning model based on the difference in element values ​​between the output result and the behavior feature vector in the one training sample, and the model parameters of the deep learning model are adjusted based on the loss value.

[0302] Optionally, when the training sample set for training the deep learning model is periodically generated, the training unit 405 is used to:

[0303] Obtain the historical behavior information of each user for each data in a preset period;

[0304] Generate a behavior matrix for representing the user's operation on the data according to the historical behavior information of each user on each data, and use a cross least squares ALS algorithm to decompose the behavior feature vector corresponding to each data from the behavior matrix;

[0305] Obtain the content feature groups corresponding to each data, and generate training sample sets of the deep learning model according to the behavior feature vectors and content feature groups corresponding to each data, wherein a training sample in the training sample set includes a content feature group and a behavior feature vector of a data.

[0306] Optionally, when a content feature group in a training sample is input into the deep learning model as an input sample to obtain an output result predicted by the deep learning model, the training unit 405 is used to:

[0307] Inputting a content feature group in a training sample as an input sample into the deep learning model, constructing content feature sub-vectors corresponding to respective content features in the content feature group through the deep learning model, and combining the respective content feature sub-vectors into a content feature vector in a preset order through the deep learning model;

[0308] Through the deep learning model, the content feature vector is mapped into an intermediate feature vector of a specified dimension, and a corresponding fitting behavior feature vector is predicted based on the intermediate feature vector, and the fitting behavior feature vector is used as the output result of the deep learning model, wherein the fitting behavior feature vector has the same vector dimension as the behavior feature vector.

[0309] Optionally, when constructing the content feature sub-vectors corresponding to the respective content features in the content feature group through the deep learning model, the training unit is used to:

[0310] When it is determined that there are multiple content features of the same content feature type in the content feature group, corresponding content feature sub-vectors of the same type are generated for each content feature of the same content feature type through the deep learning model, wherein the deep learning model can construct content feature sub-vectors of the same type for the corresponding content feature type for the default encoding information set for each type of encoding information;

[0311] Through the deep learning model, an average content feature sub-vector determined according to content feature sub-vectors of the same type is used as a content feature sub-vector of a content feature of a corresponding type.

[0312] See also Figure 5As shown, it is a schematic diagram of the physical structure of the data recommendation device in the embodiment of the present disclosure. Based on the same inventive concept, it can include a memory 501 and a processor 502.

[0313] The memory 501 is used to store computer programs executed by the processor 502. The memory 501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc. The processor 502 may be a central processing unit (CPU) or a digital processing unit, etc. The specific connection medium between the above-mentioned memory 501 and the processor 502 is not limited in the embodiments of the present application. The embodiments of the present application are Figure 5 In the embodiment, the memory 501 and the processor 502 are connected via a bus 503. The bus 503 is connected to the processor 502 via a bus 503. Figure 5 The connections between other components are shown in bold lines, and are not intended to be limiting. Bus 503 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0314] The memory 501 may be a volatile memory, such as a random-access memory (RAM); the memory 501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 601 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 501 may be a combination of the above memories.

[0315] The processor 502 is used to execute the following when calling the computer program stored in the memory 501: Figure 2a The examples shown in the figure provide a recommended approach to the data.

[0316] Based on the same inventive concept, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for recommending data in any of the above method embodiments is implemented.

[0317] To summarize, in the disclosed embodiments, a user feature vector is obtained, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model, and then a candidate recommendation data set corresponding to the user is determined, and data parameters corresponding to each candidate recommendation data in the candidate recommendation data set are obtained, and based on the obtained data parameters and the user feature vector, the expected benefit of the user for each candidate recommendation data is determined respectively, and then based on the expected benefit, the target data to be recommended that meets the set conditions is screened out from the various candidate recommendation data and recommended to the user, and feedback information from the user on the target data to be recommended is obtained, and based on the feedback information, the data parameters of the corresponding target data to be recommended are updated.

[0318] In this way, after the processing device determines the user feature vector based on the user's interest data, it can estimate the user's preference for each candidate recommendation data in the candidate recommendation data set based on the user feature vector, thereby determining the target data to be recommended that the user is potentially interested in in the candidate recommendation data set, thereby mining the user's personalized needs and helping to maintain the user's activity. Furthermore, based on the user's feedback information on the target data to be recommended, the data parameters corresponding to the target data to be recommended can be updated, which is equivalent to adopting an online learning method. According to the user's feedback on the data, the data parameters corresponding to the data can be adjusted in time, so that subsequent recommendations can be processed based on the adjusted data parameters, thereby improving the accuracy of data recommendations.

[0319] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0320] The present invention is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0321] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0322] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0323] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0324] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A data recommendation method, characterized in that: include: Obtaining a user feature vector, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model; Determine a candidate recommendation data set corresponding to the user, obtain data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, and determine the expected benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector; Based on the expected benefits, target data to be recommended that meet set conditions are screened out from the candidate recommendation data and recommended to the user, and feedback information from the user on the target data to be recommended is obtained; Based on the feedback information, update the data parameters of the corresponding target data to be recommended; Wherein, updating the data parameters of the corresponding target data to be recommended based on the feedback information includes: determining an adjustment factor corresponding to the feedback information, and determining the data parameters of the target data to be recommended corresponding to the feedback information, wherein the data parameters of the target data to be recommended corresponding to the feedback information include a first data parameter and a second data parameter; updating the first data parameter based on a first dot product result of the adjustment factor and the user feature vector to obtain an updated first data parameter; and updating the second data parameter based on a second dot product result of the user feature vector and the transposed vector of the user feature vector to obtain an updated second data parameter.

2. The method according to claim 1, characterized in that The step of determining the expected benefit of the user for each candidate recommendation data based on each obtained data parameter and the user feature vector comprises: The confidence interval upper bound linUCB algorithm is adopted to determine the initial benefit and upper bound floating benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector, and the expected benefit of the user for the corresponding candidate recommendation data is determined based on each initial benefit and upper bound floating benefit.

3. The method according to claim 1, characterized in that The obtaining of the user feature vector comprises: Acquire historical behavior information of a user within a specified historical time period, and determine a set of interest data of the user based on the historical behavior information; Determine each interest data included in the interest data set, and respectively determine a content feature group corresponding to each interest data, and use a trained deep learning model to predict and obtain a corresponding fitting behavior feature vector based on the content feature group of each interest data; Obtain the vector elements corresponding to each position in the fitting behavior feature vector corresponding to each of the interest data, and take the result of weighted average of the vector elements at the same position as the new vector element at the corresponding position, and take the vector composed of the new vector elements at each position as the user feature vector of the user.

4. The method according to claim 3, characterized in that The content feature group of interest data includes at least one or a combination of the following: After the text content associated with the interest data is segmented to obtain the segmentation result, the word-to-vector algorithm is used to vectorize the segmentation result to obtain content features in vector form; or, When generating the training sample of the deep learning model, the audio content associated with the interest data is encoded, and the obtained first encoding information is used as the content feature of the corresponding interest data; or When generating the training samples of the deep learning model, the image frames associated with the interest data are encoded, and the obtained second encoding information is used as the content feature of the corresponding interest data; or When generating the training samples of the deep learning model, the objects associated with the interest data are encoded, and the obtained third encoding information is used as the content feature of the corresponding interest data; or When generating training samples for the deep learning model, the labels associated with the interest data are encoded, and the obtained fourth encoding information is used as the content feature of the corresponding interest data.

5. The method according to claim 4, characterized in that The word-to-vector algorithm is used to vectorize the word segmentation results to obtain content features in vector form, including: According to the frequency of occurrence of each word in the word segmentation result, at least one key word is selected from the text content, and a word-to-vector word2vec algorithm is used to obtain each word vector corresponding to the word segmentation result; Determine a word vector corresponding to each of the at least one key words, and use an average word vector determined based on the at least one word vector as a content feature in vector form of the interest data.

6. The method according to claim 4, characterized in that When generating the training sample of the deep learning model, the audio content associated with the interest data is encoded, and the first encoding information obtained as the content feature of the corresponding interest data includes: Obtaining, when generating the training samples of the deep learning model, first coding information obtained by encoding the respective audio contents after sorting the respective audio contents based on the audio contents associated with the respective data and the total number of times the respective audio contents appear in the respective data; Determine the target audio content associated with the interest data, obtain first encoding information corresponding to the target audio content, and use the first encoding information as the content feature of the corresponding interest data.

7. The method according to any one of claims 3 to 6, characterized in that: The determining the user's interest data set based on the historical behavior information includes: Based on the historical behavior information, determine the historical data of the user's operations within the specified historical time period, and add the historical data corresponding to the historical data whose browsing duration exceeds a set threshold as interest data to the interest data set set for the user; and / or, Based on the historical behavior information, historical data of the user's operations within the specified historical time period is determined, and the historical data with the preferred operation behavior is added as interest data to an interest data set set for the user.

8. The method according to any one of claims 1 to 6, characterized in that: The training process of the deep learning model includes: Periodically generate a set of training samples for training deep learning models; The deep learning model is iteratively trained periodically using the training sample set until the number of times the loss value of the deep learning model is continuously lower than the set value reaches a specified threshold value, wherein the deep learning model is built based on a multi-layer perceptron MLP architecture, and a training sample includes a behavior feature vector and a content feature group of a data. In a training process, the following operations are performed: Inputting a content feature group in a training sample as an input sample into the deep learning model to obtain an output result predicted by the deep learning model; The mean square error (MSE) loss function is used to calculate the loss value of the deep learning model based on the difference in element values ​​between the output result and the behavior feature vector in the one training sample, and the model parameters of the deep learning model are adjusted based on the loss value.

9. The method according to claim 8, characterized in that The periodically generating a training sample set for training a deep learning model includes: Obtain the historical behavior information of each user for each data in a preset period; Generate a behavior matrix for representing the user's operation on the data according to the historical behavior information of each user on each data, and use a cross least squares ALS algorithm to decompose the behavior feature vector corresponding to each data from the behavior matrix; Obtain the content feature groups corresponding to each data, and generate training sample sets of the deep learning model according to the behavior feature vectors and content feature groups corresponding to each data, wherein a training sample in the training sample set includes a content feature group and a behavior feature vector of a data.

10. The method according to claim 8, characterized in that The step of inputting a content feature group in a training sample as an input sample into the deep learning model to obtain an output result predicted by the deep learning model includes: Inputting a content feature group in a training sample as an input sample into the deep learning model, constructing content feature sub-vectors corresponding to respective content features in the content feature group through the deep learning model, and combining the respective content feature sub-vectors into a content feature vector in a preset order through the deep learning model; Through the deep learning model, the content feature vector is mapped into an intermediate feature vector of a specified dimension, and a corresponding fitting behavior feature vector is predicted based on the intermediate feature vector, and the fitting behavior feature vector is used as the output result of the deep learning model, wherein the fitting behavior feature vector has the same vector dimension as the behavior feature vector.

11. The method according to claim 10, characterized in that The step of constructing a content feature sub-vector corresponding to each content feature in the content feature group by using the deep learning model includes: When it is determined that there are multiple content features of the same content feature type in the content feature group, corresponding content feature sub-vectors of the same type are generated for each content feature of the same content feature type through the deep learning model, wherein the deep learning model can construct content feature sub-vectors of the same type for the corresponding content feature type for the default encoding information set for each type of encoding information; Through the deep learning model, an average content feature sub-vector determined according to content feature sub-vectors of the same type is used as a content feature sub-vector of a content feature of a corresponding type.

12. A data recommendation device, characterized in that: include: An acquisition unit, configured to acquire a user feature vector, wherein the user feature vector is predicted based on various interest data associated with the user using a trained deep learning model; a determination unit, configured to determine a candidate recommendation data set corresponding to the user, obtain data parameters corresponding to each candidate recommendation data in the candidate recommendation data set, and determine the expected benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector; A screening unit, configured to screen target data to be recommended that meets a set condition from the candidate recommendation data based on the expected benefit, and recommend the target data to be recommended to the user, and obtain feedback information from the user on the target data to be recommended; An updating unit, configured to update data parameters of corresponding target data to be recommended based on the feedback information; Wherein, when updating the data parameters of the corresponding target data to be recommended based on the feedback information, the updating unit is used to: determine the adjustment factor corresponding to the feedback information, and determine the data parameters of the target data to be recommended corresponding to the feedback information, wherein the data parameters of the target data to be recommended corresponding to the feedback information include a first data parameter and a second data parameter; based on the first dot product result of the adjustment factor and the user feature vector, the first data parameter is updated to obtain an updated first data parameter; based on the second dot product result of the user feature vector and the transposed vector of the user feature vector, the second data parameter is updated to obtain an updated second data parameter.

13. The device according to claim 12, characterized in that When determining the expected benefits of the user for each candidate recommendation data based on each obtained data parameter and the user feature vector, the screening unit is used to: The confidence interval upper bound linUCB algorithm is adopted to determine the initial benefit and upper bound floating benefit of the user for each candidate recommendation data based on the obtained data parameters and the user feature vector, and the expected benefit of the user for the corresponding candidate recommendation data is determined based on each initial benefit and upper bound floating benefit.

14. The device according to claim 12, characterized in that When acquiring the user feature vector, the acquiring unit is used to: Acquire historical behavior information of a user within a specified historical time period, and determine a set of interest data of the user based on the historical behavior information; Determine each interest data included in the interest data set, and respectively determine a content feature group corresponding to each interest data, and use a trained deep learning model to predict and obtain a corresponding fitting behavior feature vector based on the content feature group of each interest data; Obtain the vector elements corresponding to each position in the fitting behavior feature vector corresponding to each of the interest data, and take the result of weighted average of the vector elements at the same position as the new vector element at the corresponding position, and take the vector composed of the new vector elements at each position as the user feature vector of the user.

15. The device according to claim 14, characterized in that When determining the content feature group of the interest data, the acquisition unit performs at least one of the following items or a combination thereof: After the text content associated with the interest data is segmented to obtain the segmentation result, the word-to-vector algorithm is used to vectorize the segmentation result to obtain content features in vector form; or, When generating the training sample of the deep learning model, the audio content associated with the interest data is encoded, and the obtained first encoding information is used as the content feature of the corresponding interest data; or When generating the training samples of the deep learning model, the image frames associated with the interest data are encoded, and the obtained second encoding information is used as the content feature of the corresponding interest data; or When generating the training samples of the deep learning model, the objects associated with the interest data are encoded, and the obtained third encoding information is used as the content feature of the corresponding interest data; or When generating training samples for the deep learning model, the labels associated with the interest data are encoded, and the obtained fourth encoding information is used as the content feature of the corresponding interest data.

16. The device according to claim 15, characterized in that When the word-to-vector algorithm is used to vectorize the word segmentation result to obtain the content feature in vector form, the acquisition unit is used to: According to the frequency of occurrence of each word in the word segmentation result, at least one key word is selected from the text content, and a word-to-vector word2vec algorithm is used to obtain each word vector corresponding to the word segmentation result; Determine a word vector corresponding to each of the at least one key words, and use an average word vector determined based on the at least one word vector as a content feature in vector form of the interest data.

17. The device according to claim 16, characterized in that When the audio content associated with the interest data is encoded when generating the training sample of the deep learning model, and the first encoding information obtained is used as the content feature of the corresponding interest data, the acquisition unit is used to: Obtaining, when generating the training samples of the deep learning model, first coding information obtained by encoding the respective audio contents after sorting the respective audio contents based on the audio contents associated with the respective data and the total number of times the respective audio contents appear in the respective data; Determine the target audio content associated with the interest data, obtain first encoding information corresponding to the target audio content, and use the first encoding information as the content feature of the corresponding interest data.

18. The device according to any one of claims 14 to 17, characterized in that When determining the user's interest data set based on the historical behavior information, the acquisition unit is used to: Based on the historical behavior information, determine the historical data of the user's operations within the specified historical time period, and add the historical data corresponding to the historical data whose browsing time exceeds a set threshold as interest data to the interest data set set for the user; and / or, Based on the historical behavior information, historical data of the user's operations within the specified historical time period is determined, and the historical data with the preferred operation behavior is added as interest data to an interest data set set for the user.

19. The device according to any one of claims 12 to 17, characterized in that: The device further includes a training unit, which performs the following operations during the training process of the deep learning model: Periodically generate a set of training samples for training deep learning models; The deep learning model is iteratively trained periodically using the training sample set until the number of times the loss value of the deep learning model is continuously lower than the set value reaches a specified threshold value, wherein the deep learning model is built based on a multi-layer perceptron MLP architecture, and a training sample includes a behavior feature vector and a content feature group of a data. In a training process, the following operations are performed: Inputting a content feature group in a training sample as an input sample into the deep learning model to obtain an output result predicted by the deep learning model; The mean square error (MSE) loss function is used to calculate the loss value of the deep learning model based on the difference in element values ​​between the output result and the behavior feature vector in the one training sample, and the model parameters of the deep learning model are adjusted based on the loss value.

20. The device according to claim 19, characterized in that When periodically generating a training sample set for training a deep learning model, the training unit is used to: Obtain the historical behavior information of each user for each data in a preset period; Generate a behavior matrix for representing the user's operation on the data according to the historical behavior information of each user on each data, and use a cross least squares ALS algorithm to decompose the behavior feature vector corresponding to each data from the behavior matrix; Obtain the content feature groups corresponding to each data, and generate training sample sets of the deep learning model according to the behavior feature vectors and content feature groups corresponding to each data, wherein a training sample in the training sample set includes a content feature group and a behavior feature vector of a data.

21. The device according to claim 19, characterized in that When a content feature group in a training sample is input as an input sample into the deep learning model to obtain an output result predicted by the deep learning model, the training unit is used to: Inputting a content feature group in a training sample as an input sample into the deep learning model, constructing content feature sub-vectors corresponding to respective content features in the content feature group through the deep learning model, and combining the respective content feature sub-vectors into a content feature vector in a preset order through the deep learning model; Through the deep learning model, the content feature vector is mapped into an intermediate feature vector of a specified dimension, and a corresponding fitting behavior feature vector is predicted based on the intermediate feature vector, and the fitting behavior feature vector is used as the output result of the deep learning model, wherein the fitting behavior feature vector has the same vector dimension as the behavior feature vector.

22. The device according to claim 21, characterized in that When constructing the content feature sub-vectors corresponding to the respective content features in the content feature group through the deep learning model, the training unit is used to: When it is determined that there are multiple content features of the same content feature type in the content feature group, corresponding content feature sub-vectors of the same type are generated for each content feature of the same content feature type through the deep learning model, wherein the deep learning model can construct content feature sub-vectors of the same type for the corresponding content feature type for the default encoding information set for each type of encoding information; Through the deep learning model, an average content feature sub-vector determined according to content feature sub-vectors of the same type is used as a content feature sub-vector of a content feature of a corresponding type.

23. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor executes the steps of any one of the methods described in claims 1 to 11.

24. A computer-readable storage medium, characterized in that: It includes program code, and when the program code is run on an electronic device, the program code is used to enable the electronic device to execute the steps of any method described in claims 1 to 11.