Method and device for generating a model, method and device for generating information

By generating user and object vectors, using the MAB mechanism and machine learning algorithm, we solve the problem of Matthew effect and sparse inactive user behavior data in e-commerce platforms, improve the diversity and user experience of the recommendation system, and enhance the accuracy of model parameters. Confidence.

CN113780607BActive Publication Date: 2024-10-22BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011277576.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-16
Publication Date
2024-10-22
Estimated Expiration
2040-11-16

AI Technical Summary

Technical Problem

The Matthew effect exists in e-commerce platforms, which results in user recommendation content being too single and poor user experience. In addition, the sparse behavioral data of inactive users results in low confidence in model parameters and easy introduction of noise.

Method used

By obtaining user behavior data, generating user vectors and object vectors, aggregating them, using the multi-armed bandit (MAB) mechanism and machine learning algorithm to learn a click-through rate prediction model, aggregating users with similar interests and objects with similar attributes, and improving the confidence of model parameters. Spend.

Benefits of technology

It improves the diversity and user experience of the e-commerce platform recommendation system, enhances the confidence of model parameters, reduces the impact of noise, and makes the recommendation results more accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113780607B_ABST
    Figure CN113780607B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for generating a model, as well as a method and device for generating information. The implementation scheme of the method for generating a model is as follows: obtaining user behavior data of each user within a certain period of time; determining the user vector of each user and the object vector of each object in all user behavior data; aggregating all users and all objects according to all user vectors and all object vectors to generate each user set and each object set; determining the first behavior data set corresponding to each user set and each object set; using the MAB mechanism and machine learning algorithm, taking all behavior data in the first behavior data set as input data, taking the click rate of each user for each object as the expected output, and learning to obtain the parameters of each arm of MAB and the click rate prediction model. This scheme aggregates users and objects, and learns the model based on the aggregated behavior data, so that the confidence of the model parameters is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, specifically to the field of big data technology, and in particular to a method and device for generating a model, and a method and device for generating information. Background Art

[0002] E-commerce systems solve the problem of information overload by integrating personalized recommendation systems, helping users quickly find objects of interest and improving the efficiency of all parties, including users and platforms. The click-through rate prediction model is a very critical part of the personalized recommendation system. With click-through rate as the sorting target, it tends to show users objects or content that the user has browsed in a short period of time, forming a feedback loop with a very serious Matthew effect, recommending users content that is often displayed, and new content or content with different styles has a very low probability of being displayed, resulting in a poor user experience and a shorter time for users to stay on the platform.

[0003] At present, the introduction of the Exploration-Exploitation (EE) mechanism through the multi-armed bandit (MAB) is one of the reliable methods to solve the above-mentioned serious Matthew effect. Exploration means exploration. The system has a certain probability to try options with higher risks but uncertain returns. After making a choice and getting feedback on the returns, the system will tend to continue to try options with lower risks and higher returns. This convergence process is called Exploitation. Although the introduction of the EE mechanism can balance the click-through rate and diversity of the recommendation results, the e-commerce platform has hundreds of millions of users and thousands of third-level categories of objects, and there are a large number of inactive users. When the behavior data of inactive users is very sparse, the confidence of the model parameters will generally be low. Summary of the invention

[0004] The present application provides a method, apparatus, device and storage medium for generating a model, and a method, apparatus, device and storage medium for generating information.

[0005] According to a first aspect of the present application, a method for generating a model is provided, the method comprising: obtaining user behavior data of each user within a certain period of time, wherein the user behavior data represents the browsing behavior of the user for each object within a continuous period of time on a certain platform; analyzing all user behavior data to determine the user vector of each user in all user behavior data and the object vector of each object in all user behavior data; performing a first aggregation on all users according to all user vectors to generate each user set, wherein the first aggregation is used to represent the aggregation of users with similar interests; performing a second aggregation on all objects according to all object vectors to generate each object set, wherein the second aggregation is used to represent the aggregation of objects with similar attributes; performing a second aggregation on all objects according to all object vectors to generate each object set. A user set and all object sets are matched one-to-one, and the first behavior data set corresponding to each user set and each object set is determined, wherein the first behavior data set is used to characterize the set of behavior data of each user in the user set for each object in the corresponding object set; using the MAB mechanism and machine learning algorithm, all behavior data in the first behavior data set are used as input data, and the click rate of each user for each object corresponding to all behavior data in the input first behavior data set is used as the expected output data, and each arm parameter of MAB and a click rate prediction model are learned, wherein the click rate prediction model is used to characterize the probability value of the click behavior of each user in the user set for each object in the corresponding object set evaluated based on all behavior data in the first behavior data set.

[0006] In some embodiments, all user behavior data are analyzed to determine the user vector of each user in all user behavior data and the object vector of each object in all user behavior data, including: segmenting each user behavior data to generate each behavior sequence corresponding to all user behavior data, wherein the behavior sequence includes the object identifier of each object browsed by the user in a continuous time; based on the object identifier of each object in each behavior sequence, using language processing technology to determine the object vector of each object in each behavior sequence; based on the object vector of each object and the behavior sequence of each user corresponding to the object vector of each object, using a pooling method to determine the user vector of each user.

[0007] In some embodiments, all users are first aggregated according to all user vectors to generate various user sets, including: according to the mapping point positions corresponding to all user vectors, all users are aggregated using an aggregation method to generate various user sets, wherein the aggregation method is used to characterize the aggregation of all mapping points based on a preset distance.

[0008] In some embodiments, the MAB mechanism and the machine learning algorithm are used to take all the behavior data in the first behavior data set as input data, and the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set is taken as the expected output data, so as to learn and obtain the various arm parameters of the MAB and the click rate prediction model, including: taking all the behavior data in the first behavior data set as input data, and the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set as the expected output data, and learning and obtaining the click rate prediction model; and updating the various arm parameters of the MAB according to all the behavior data in the first behavior data set using the MAB mechanism to obtain the updated various arm parameters of the MAB.

[0009] In some embodiments, the number of user sets and / or the number of object sets is 1024.

[0010] According to a second aspect of the present application, a method for generating information is provided, the method comprising: in response to receiving an information generation request, obtaining user behavior data corresponding to the information generation request, wherein the user behavior data characterizes the user's browsing behavior for each object on a certain platform over a continuous period of time; inputting the obtained user behavior data into a learned click-through rate prediction model to generate a first click-through rate for each object corresponding to the user behavior data, wherein the click-through rate prediction model is learned by the method described in any implementation method of the above-mentioned first aspect.

[0011] In some embodiments, the method further includes: sorting the objects according to their first click rates, selecting a target object, and displaying the target object to the user.

[0012] In some embodiments, the method also includes: inputting the acquired user behavior data into a pre-trained behavior prediction model to generate a second click-through rate for each object corresponding to the user behavior data, wherein the behavior prediction model is trained using a deep neural network model; and determining the score of each object based on the calculation results of the second click-through rate of each object and the first click-through rate of each object.

[0013] In some embodiments, the method further includes: sorting the objects according to their scores, selecting a target object, and displaying the target object to the user.

[0014] According to a third aspect of the present application, a device for generating a model is provided, the device comprising: an acquisition unit, configured to acquire user behavior data of each user within a certain period of time, wherein the user behavior data represents the browsing behavior of the user for each object within a continuous period of time on a certain platform; a vector generation unit, configured to analyze all user behavior data, determine the user vectors of each user in all user behavior data and the object vectors of each object in all user behavior data; an aggregation unit, configured to perform a first aggregation on all users according to all user vectors to generate each user set, wherein the first aggregation is used to represent the aggregation of users with similar interests, and to perform a second aggregation on all objects according to all object vectors to generate each object set, wherein the second aggregation is used to represent the aggregation of objects with similar attributes. A determination unit is configured to make a one-to-one correspondence between all user sets and all object sets, and determine a first behavior data set corresponding to each user set and each object set after the correspondence, wherein the first behavior data set is used to characterize the set of behavior data of each user in the user set for each object in the corresponding object set; a learning unit is configured to utilize the MAB mechanism and a machine learning algorithm, take all behavior data in the first behavior data set as input data, and take the click rate of each user corresponding to all behavior data in the input first behavior data set for each object as expected output data, and learn to obtain each arm parameter of the MAB and a click rate prediction model, wherein the click rate prediction model is used to characterize the probability value of the click behavior of each user in the user set for each object in the corresponding object set evaluated based on all behavior data in the first behavior data set.

[0015] In some embodiments, the vector generation unit includes: a segmentation module, configured to segment each user behavior data to generate each behavior sequence corresponding to all user behavior data, wherein the behavior sequence includes the object identifier of each object browsed by the user in a continuous time; a first determination module, configured to determine the object vector of each object in each behavior sequence based on the object identifier of each object in each behavior sequence by using language processing technology; a second determination module, configured to determine the user vector of each user by using a pooling method based on the object vector of each object and the behavior sequence of each user corresponding to the object vector of each object.

[0016] In some embodiments, the aggregation unit is further configured to aggregate all users using an aggregation method according to the mapping point positions corresponding to all user vectors to generate various user sets, wherein the aggregation method is used to represent the aggregation of all mapping points based on a preset distance.

[0017] In some embodiments, the learning unit includes: a learning module, configured to use a machine learning algorithm, take all the behavior data in the first behavior data set as input data, and take the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set as expected output data, to learn and obtain a click rate prediction model; an update module, configured to update each arm parameter of the MAB according to all the behavior data in the first behavior data set using the MAB mechanism, to obtain updated each arm parameter of the MAB.

[0018] In some embodiments, the number of user sets and / or the number of object sets in the aggregation unit is 1024.

[0019] According to the fourth aspect of the present application, a device for generating information is provided, the device comprising: an acquisition unit, configured to acquire user behavior data corresponding to the information generation request in response to receiving the information generation request, wherein the user behavior data characterizes the user's browsing behavior for each object on a certain platform over a continuous period of time; a first generation unit, configured to input the acquired user behavior data into a learned click-through rate prediction model, and generate a first click-through rate for each object corresponding to the user behavior data, wherein the click-through rate prediction model is learned by the method described in any implementation method of the above first aspect.

[0020] In some embodiments, the device further includes: a first display unit configured to sort the objects according to the first click rates, select the target object, and display the target object to the user.

[0021] In some embodiments, the device also includes: a second generating unit, configured to input the acquired user behavior data into a pre-trained behavior prediction model to generate a second click-through rate for each object corresponding to the user behavior data, wherein the behavior prediction model is trained using a deep neural network model; and a determining unit, configured to determine the score of each object based on the calculation results of the second click-through rate of each object and the first click-through rate of each object.

[0022] In some embodiments, the device further includes: a second display unit configured to select a target object based on the score sorting of each object, and display the target object to the user.

[0023] According to the fifth aspect of the present application, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method as described in any implementation manner in the first aspect or execute a method as described in any implementation manner in the second aspect.

[0024] According to the sixth aspect of the present application, the present application provides a non-transitory computer-readable storage medium storing computer instructions, characterized in that the computer instructions are used to enable a computer to execute a method described in any implementation manner in the first aspect or to execute a method described in any implementation manner in the second aspect.

[0025] According to the technology of the present application, the user behavior data of each user within a certain period of time is obtained, all the user behavior data are analyzed, the user vectors of each user in all the user behavior data and the object vectors of each object in all the user behavior data are determined, all users are first aggregated according to all the user vectors to generate each user set, and all objects are second aggregated according to all the object vectors to generate each object set, all user sets and all object sets are matched one by one, and the first behavior data set corresponding to each user set and each object set is determined, and the MAB mechanism and machine learning algorithm are used to take all the behavior data in the first behavior data set as input data, and the click rate of each user corresponding to all the behavior data in the input first behavior data set for each object is taken as the expected output data, and the parameters of each arm of MAB and the click rate prediction model are learned, and by aggregating users with similar interests and objects with similar attributes, the current e-commerce platform has a large number of inactive users. When the behavior data of inactive users is very sparse, the confidence of the model parameters is not high, and noise is easily introduced into the system. Based on the object vector and the user vector, the users and objects are aggregated, and the model is learned based on the aggregated behavior data, so that the confidence of the model parameters is higher. The object clustering obtained by aggregating the object vector representation has better flexibility and interpretability than the three-level categories manually labeled by the e-commerce platform.

[0026] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0028] Figure 1 is a schematic diagram of a first embodiment of a method for generating a model according to the present application;

[0029] Figure 2 It is a scene graph that can implement the method for generating a model in the embodiment of the present application;

[0030] Figure 3 is a schematic diagram of a second embodiment of a method for generating a model according to the present application;

[0031] Figure 4 is a schematic diagram of an embodiment of a method for generating information according to the present application;

[0032] Figure 5 is a structural schematic diagram of an embodiment of a device for generating a model according to the present application;

[0033] Figure 6 is a structural schematic diagram of an embodiment of a device for generating information according to the present application;

[0034] Figure 7 It is a block diagram of an electronic device used to implement the method for generating a model in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0036] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0037] Figure 1 A schematic diagram 100 of a first embodiment of a method for generating a model according to the present application is shown. The method for generating a model comprises the following steps:

[0038] Step 101, obtaining user behavior data of each user within a certain period of time.

[0039] In this embodiment, the execution subject (such as a server or terminal device) of the method for generating a model can obtain user behavior data of each user within a preset time from other electronic devices or locally through a wired connection or a wireless connection. Among them, the user behavior data represents the browsing behavior of the user for each object within a continuous time on a certain platform. The time can be pre-set according to the speed and efficiency that the device can process. The user behavior data includes user personal information, attribute information of each object browsed by the user, and related information of each object browsed by the user, etc.

[0040] Here, the above-mentioned user's personal information may include: the user's age, gender, occupation, store preference, brand preference, etc. The attribute information of the object may include: the third-level category of the object, that is, the scope of the object (such as the store where the object is located), the name of the object and the applicable population of the object (such as the object's gender label). The relevant information may include: browsing start time, browsing duration and browsing address, etc.

[0041] Step 102: Analyze all user behavior data to determine a user vector of each user in all user behavior data and an object vector of each object in all user behavior data.

[0042] In this embodiment, the execution subject can analyze all user behavior data, and use the object and user vector model to embed the user behavior, that is, to summarize the user behavior into a vector to describe it, and embed the object, that is, to convert the object browsed by the user into a vector to represent it, so as to obtain the user vector of each user in all user behavior data and the object vector of each object in all user behavior data. It should be noted that the above-mentioned execution subject can store pre-trained object and user vector models, which can be a correspondence table pre-formulated by technicians based on a large number of statistical calculations to characterize the user behavior data and object attributes and user interest preferences; it can also be obtained by training using various existing logistic regression models.

[0043] Step 103: Perform a first aggregation on all users according to all user vectors to generate user sets, and perform a second aggregation on all objects according to all object vectors to generate object sets.

[0044] In this embodiment, the execution subject may perform a first aggregation on all users using a k-means clustering algorithm according to all user vectors determined in step 102 to generate multiple user sets, and perform a second aggregation on all objects using a k-means clustering algorithm according to all object vectors determined in step 102 to generate multiple object sets. The first aggregation may be used to represent the aggregation of users with similar interests. The second aggregation may be used to represent the aggregation of objects with similar attributes.

[0045] Step 104 , a one-to-one correspondence is made between all user sets and all object sets, and the first line corresponding to each user set and each object set after the correspondence is determined as a data set.

[0046] In this embodiment, the execution subject can make a one-to-one correspondence between all user sets and all object sets generated in step 103, and then obtain the first behavior data set corresponding to each corresponding user set and object set according to each corresponding user set and each object set. The first behavior data set is used to characterize the set of behavior data of each user in the user set for each object in the corresponding object set. The acquisition method can be obtained by querying the library file or parsing the behavior data of each user obtained in step 101.

[0047] Step 105, using the MAB mechanism and machine learning algorithm, taking all the behavior data in the first behavior data set as input data, and taking the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set as expected output data, to learn and obtain the various arm parameters of MAB and the click rate prediction model.

[0048] In this embodiment, the execution subject can use the MAB mechanism and machine learning algorithm, take all the behavior data in the first behavior data set determined in step 104 as input data, take the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set as the expected output data, and learn to obtain the Arm parameters and click rate prediction model of each arm of MAB. Among them, the arm parameters of MAB are used as model parameters of the click rate prediction model, and the click rate prediction model is used to characterize the probability value of the click behavior of each user in the user set for each object in the corresponding object set based on all the behavior data in the first behavior data set. Arm is the arm of the multi-armed slot machine MAB, which represents the preference distribution of users on a certain third-level category object.

[0049] It should be noted that technicians can set the model structure of the above-mentioned click rate prediction model according to actual needs, and the embodiments of the present disclosure are not limited to this.

[0050] Continue to see Figure 2 , Figure 2 FIG. 1 is a schematic diagram of an application scenario of the method for generating a model according to this embodiment. Figure 2In the application scenario, the method 200 for generating a model in this embodiment runs in an electronic device 201. The electronic device 201 first obtains the user behavior data 202 of each user within a certain period of time, and then analyzes all the user behavior data to determine the user vectors of each user in all the user behavior data and the object vectors 203 of each object in all the user behavior data. Then, the electronic device 201 first aggregates all users according to all the user vectors to generate each user set, and second aggregates all objects according to all the object vectors to generate each object set 204. The electronic device 201 makes a one-to-one correspondence between all user sets and all object sets, and determines the first behavior data set 205 corresponding to each user set and each object set after the correspondence. Finally, the electronic device 201 uses the MAB mechanism and the machine learning algorithm, takes all the behavior data in the first behavior data set as input data, and takes the click rate of each user corresponding to all the behavior data in the input first behavior data set for each object as the expected output data, and learns to obtain the parameters of each arm of the MAB and the click rate prediction model 206. Among them, the first aggregation is used to characterize the aggregation of users with similar interests, the second aggregation is used to characterize the aggregation of objects with similar attributes, and the click-through rate prediction model is used to characterize the probability value of the click behavior of each user in the user set for each object in the corresponding object set based on all behavioral data in the first behavioral data set.

[0051] The method for generating a model provided by the above-mentioned embodiment of the present application adopts the method of obtaining user behavior data of each user within a certain period of time, analyzing all user behavior data, determining the user vector of each user in all user behavior data and the object vector of each object in all user behavior data, performing a first aggregation on all users according to all user vectors to generate various user sets, and performing a second aggregation on all objects according to all object vectors to generate various object sets, making one-to-one correspondence between all user sets and all object sets, determining the first behavior data set corresponding to each corresponding user set and each object set, utilizing the MAB mechanism and machine learning algorithm, taking all behavior data in the first behavior data set as input data, taking the click-through rate of each user corresponding to all behavior data in the input first behavior data set for each object as expected output data, learning to obtain the parameters of each arm of MAB and the click-through rate prediction model, and by aggregating users with similar interests and objects with similar attributes, solving the problem that there are a large number of inactive users on the current e-commerce platform, and when the behavior data of inactive users are very sparse, the confidence of the model parameters will be low, and noise will be easily introduced into the system. Based on object vectors and user vectors, users and objects are aggregated, and the model is learned based on the aggregated behavioral data, making the model parameter confidence higher. The object clustering obtained by aggregation based on object vector representation has better flexibility and interpretability than the three-level categories manually labeled by e-commerce platforms.

[0052] Further references Figure 3 , which shows a schematic diagram 300 of a second embodiment of a method for generating a model. The process of the method comprises the following steps:

[0053] Step 301, obtaining user behavior data of each user within a certain period of time.

[0054] Step 302: Analyze all user behavior data to determine a user vector of each user in all user behavior data and an object vector of each object in all user behavior data.

[0055] In some optional implementations of this embodiment, all user behavior data are analyzed to determine the user vector of each user in all user behavior data and the object vector of each object in all user behavior data, including: according to the timestamp of browsing behavior, each user behavior sequence is segmented according to the standard that the adjacent time interval is greater than thirty minutes, and each behavior sequence corresponding to all user behavior data is generated, wherein the behavior sequence includes the object identifier of each object browsed by the user in a continuous time; based on the object identifier of each object in each behavior sequence, the object vector of each object in each behavior sequence is determined by using language processing technology; based on the object vector of each object and the behavior sequence of each user corresponding to the object vector of each object, the user vector of each user is determined by using a pooling method. A method for obtaining a representation of low-dimensional vectors of objects and users according to a session sequence session is implemented, and the system processing efficiency is further improved by segmenting the session sequence and then using language processing technology.

[0056] To further explain, the process of obtaining a low-dimensional vector representation of an object based on session data can be compared to word2vec in the field of natural language processing (NLP). The session data is used as the corpus, and the vector representation of each object is learned through FastText. Then, based on the object vector representation and the user's most recent session sequence, the user vector representation is obtained through average pooling.

[0057] Step 303: according to the mapping point positions corresponding to all user vectors, all users are aggregated using an aggregation method to generate user sets, and according to the mapping point positions corresponding to all object vectors, all objects are aggregated using an aggregation method to generate object sets.

[0058] In this embodiment, the execution subject may aggregate all users using an aggregation method according to the mapping point positions corresponding to all user vectors determined in step 302 to generate various user sets, and may aggregate all objects using the same aggregation method according to the mapping point positions corresponding to all object vectors determined in step 302 to generate various object sets. The aggregation method is used to represent that all mapping points are aggregated based on a preset distance, and the number of generated user sets and object sets is 1024.

[0059] Here, users are mapped to the same tensor space through low-dimensional vectors, and all objects are also mapped to another tensor space. Each user and object corresponds to a point in the tensor space. We believe that the distance in the tensor space can measure the similarity between users and objects, so users with similar interests tend to gather in the space, and users with large differences in interests tend to disperse in the space. Similarly, objects with similar attributes show a clustering phenomenon in the space, and objects with large differences in attributes are dispersed in the space.

[0060] Step 304: Make a one-to-one correspondence between all user sets and all object sets, and determine that the first line corresponding to each user set and each object set after the correspondence is a data set.

[0061] Step 305, using the MAB mechanism and machine learning algorithm, taking all the behavior data in the first behavior data set as input data, and taking the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set as expected output data, to learn and obtain the various arm parameters of MAB and the click rate prediction model.

[0062] In some optional implementations of the present embodiment, the MAB mechanism and machine learning algorithm are used to take all the behavior data in the first behavior data set as input data, and the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set is taken as the expected output data to learn and obtain the parameters of each arm of the MAB and the click rate prediction model, including: using a machine learning algorithm, taking all the behavior data in the first behavior data set as input data, and the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set is taken as the expected output data to learn and obtain the click rate prediction model; based on all the behavior data in the first behavior data set, the MAB mechanism is used to update the parameters of each arm of the MAB to obtain the updated parameters of each arm of the MAB. The training of the model and the updating of the parameters of each arm of the MAB are processed separately, and different operating cycles can be set for the model training and parameter updating, so that the obtained results are more flexible and more targeted.

[0063] To further explain, the method uses an improved version of the Thompson sampling algorithm to establish a multi-armed slot machine based on the existing technology of "adding a MAB as the second-stage sorting mechanism after the DNN refined ranking model, and using Thompson sampling to implement MAB". The algorithm assumes that the revenue size of each arm of the slot machine obeys the beta distribution. First, we initialize all beta distribution parameters to improve the effect of the initial recommendation and accelerate parameter convergence; secondly, we modify the update formula of the beta distribution parameters and introduce several hyperparameters to more finely control the impact of positive and negative feedback on the model.

[0064] In this embodiment, the specific operations of steps 301, 302, 304, and 305 are the same as Figure 1 The operations of steps 101, 102, 104, and 105 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0065] from Figure 3 It can be seen that Figure 1 Compared with the corresponding embodiments, the schematic diagram 300 of the method for generating a model in this embodiment adopts an aggregation method to aggregate all users according to the mapping point positions corresponding to all user vectors to generate various user sets, and an aggregation method to aggregate all objects according to the mapping point positions corresponding to all object vectors to generate various object sets. The number of generated user sets and object sets is 1024, and clustering is performed based on the distance, which reduces the difficulty of elimination processing using the clustering algorithm, simplifies the clustering process, and uses the pre-set optimal number of user sets and object sets to improve the clustering accuracy, making data clustering more flexible.

[0066] See further Figure 4 , which shows a schematic diagram 400 of an embodiment of a method for generating information. The method for generating information comprises the following steps:

[0067] Step 401, in response to receiving an information generation request, obtaining user behavior data corresponding to the information generation request.

[0068] In this embodiment, when the execution subject of the method for generating information receives the information generation request, the user behavior data corresponding to the information generation request can be obtained from other electronic devices or locally through a wired connection or a wireless connection. The user behavior data represents the browsing behavior of the user for each object in a continuous period of time on a certain platform.

[0069] Step 402: input the acquired user behavior data into the learned click rate prediction model to generate a first click rate of each object corresponding to the user behavior data.

[0070] In this embodiment, the execution subject may input the user behavior data acquired in step 401 into the learned click rate prediction model to generate the first click rate of each object corresponding to the user behavior data. The click rate prediction model may be learned by the method for generating a model described in any of the above implementations.

[0071] In some optional implementations of this embodiment, the method further includes: sorting the objects according to their first click rates, selecting a target object, and displaying the target object to the user, which can help users quickly find objects of interest and improve the processing efficiency of users and the platform.

[0072] In some optional implementations of this embodiment, the method further includes: inputting the acquired user behavior data into a pre-trained behavior prediction model to generate a second click rate of each object corresponding to the user behavior data, wherein the behavior prediction model is trained using a deep neural network model; and determining the score of each object based on the calculation results of the second click rate of each object and the first click rate of each object. Using different data sources to predict the click rate of each object and then combining them to give the final score of each object improves the prediction accuracy of each object and makes the prediction more comprehensive.

[0073] In some optional implementations of this embodiment, the method further includes: selecting a target object according to the score sorting of each object, and displaying the target object to the user. This can help the user quickly and accurately find the object of interest, thereby improving the processing efficiency of the user and the platform.

[0074] It should be noted that the above-mentioned use of models to predict information is a well-known technology that is currently widely studied and applied, and will not be elaborated here.

[0075] from Figure 4 It can be seen that Figure 1 Compared with the corresponding embodiment, the schematic diagram 400 of the method for generating information in this embodiment highlights the step of using the learned click rate prediction model to generate the click rate of each user object. Therefore, the solution described in this embodiment can improve the accuracy and timeliness of generating the click rate of each user object.

[0076] Further references Figure 5 , as a response to the above Figure 1 to Figure 3 The present application provides an embodiment of a device for generating a model, and the device embodiment is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0077] like Figure 5As shown, the device 500 for generating a model in this embodiment includes: an acquisition unit 501, a vector generation unit 502, an aggregation unit 503, a determination unit 504 and a learning unit 505, wherein the acquisition unit is configured to acquire user behavior data of each user within a certain period of time, wherein the user behavior data represents the browsing behavior of the user for each object on a certain platform for a continuous period of time; the vector generation unit is configured to analyze all user behavior data, determine the user vectors of each user in all user behavior data and the object vectors of each object in all user behavior data; the aggregation unit is configured to perform a first aggregation on all users according to all user vectors to generate each user set, wherein the first aggregation is used to represent the aggregation of users with similar interests, and perform a second aggregation on all objects according to all object vectors to generate each object set, wherein the second aggregation The invention is suitable for characterizing the aggregation of objects with similar attributes; the determination unit is configured to make a one-to-one correspondence between all user sets and all object sets, and determine the first behavior data set corresponding to each corresponding user set and each object set, wherein the first behavior data set is used to characterize the set of behavior data of each user in the user set for each object in the corresponding object set; the learning unit is configured to use the MAB mechanism and the machine learning algorithm, take all the behavior data in the first behavior data set as input data, and take the click rate of each user corresponding to all the behavior data in the input first behavior data set for each object as the expected output data, and learn to obtain the various arm parameters of MAB and the click rate prediction model, wherein the click rate prediction model is used to characterize the probability value of the click behavior of each user in the user set for each object in the corresponding object set evaluated based on all the behavior data in the first behavior data set.

[0078] In this embodiment, the specific processing of the acquisition unit 501, the vector generation unit 502, the aggregation unit 503, the determination unit 504 and the learning unit 505 of the device 500 for generating a model and the technical effects thereof can be referred to respectively. Figure 1 The relevant descriptions of steps 101 to 105 in the corresponding embodiment are not repeated here.

[0079] In some optional implementations of the present embodiment, the vector generation unit includes: a segmentation module, configured to segment each user behavior data to generate each behavior sequence corresponding to all user behavior data, wherein the behavior sequence includes the object identifier of each object browsed by the user in a continuous time; a first determination module, configured to determine the object vector of each object in each behavior sequence by using language processing technology based on the object identifier of each object in each behavior sequence; and a second determination module, configured to determine the user vector of each user by using a pooling method based on the object vector of each object and the behavior sequence of each user corresponding to the object vector of each object.

[0080] In some optional implementations of this embodiment, the aggregation unit is further configured to aggregate all users using an aggregation method according to the mapping point positions corresponding to all user vectors to generate various user sets, wherein the aggregation method is used to characterize the aggregation of all mapping points based on a preset distance.

[0081] In some optional implementations of the present embodiment, the learning unit includes: a learning module, configured to use a machine learning algorithm, take all the behavior data in the first behavior data set as input data, and take the click rate of each user for each object corresponding to all the behavior data in the input first behavior data set as expected output data, to learn and obtain a click rate prediction model; an update module, configured to update each arm parameter of the MAB using the MAB mechanism according to all the behavior data in the first behavior data set, and obtain updated each arm parameter of the MAB.

[0082] In some optional implementations of this embodiment, the number of user sets and / or the number of object sets in the aggregation unit is 1024.

[0083] Further references Figure 6 , as a response to the above Figure 4 The present application provides an embodiment of a device for generating information. Figure 4 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0084] like Figure 6 As shown, the device 600 for generating information in this embodiment includes: an acquisition unit 601 and a first generation unit 602, wherein the acquisition unit is configured to acquire user behavior data corresponding to the information generation request in response to receiving the information generation request, wherein the user behavior data characterizes the user's browsing behavior for each object on a certain platform for a continuous time; the first generation unit is configured to input the acquired user behavior data into the learned click-through rate prediction model, and generate a first click-through rate for each object corresponding to the user behavior data, wherein the click-through rate prediction model is learned by the method described in any implementation method of the second aspect above.

[0085] In this embodiment, the specific processing of the acquisition unit 601 and the first generation unit 602 of the device 600 for generating information and the technical effects thereof can be referred to in Figure 4 The relevant descriptions of step 401 to step 402 in the corresponding embodiment are not repeated here.

[0086] In some optional implementations of this embodiment, the device further includes: a first display unit configured to sort the objects according to the first click rates, select the target object, and display the target object to the user.

[0087] In some optional implementations of this embodiment, the device also includes: a second generation unit, configured to input the acquired user behavior data into a pre-trained behavior prediction model to generate a second click-through rate for each object corresponding to the user behavior data, wherein the behavior prediction model is trained using a deep neural network model; a determination unit, configured to determine the score of each object based on the calculation results of the second click-through rate of each object and the first click-through rate of each object.

[0088] In some optional implementations of this embodiment, the device further includes: a second display unit configured to select a target object according to the score sorting of each object, and display the target object to the user.

[0089] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0090] like Figure 7 , is a block diagram of an electronic device for generating a model according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0091] like Figure 7 As shown, the electronic device includes: one or more processors 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7A processor 701 is taken as an example.

[0092] The memory 702 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to perform the method for generating a model provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method for generating a model provided in the present application.

[0093] The memory 702 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for generating a model in the embodiment of the present application (for example, the attached Figure 5 The processor 701 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 702, that is, implements the method for generating a model in the above method embodiment.

[0094] The memory 702 may 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; the data storage area may store data created according to the use of the electronic device for generating the model, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 702 may optionally include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the electronic device for generating the model via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0095] The electronic device for the method of generating a model may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0096] The input device 703 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device used to generate the model, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 704 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0097] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0100] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0101] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0102] According to the technical solution of the embodiment of the present application, the user behavior data of each user within a certain period of time is obtained, all the user behavior data are analyzed, the user vectors of each user in all the user behavior data and the object vectors of each object in all the user behavior data are determined, all users are first aggregated according to all the user vectors to generate each user set, and all objects are second aggregated according to all the object vectors to generate each object set, all user sets and all object sets are matched one by one, and the first behavior data set corresponding to each user set and each object set is determined, and the MAB mechanism and machine learning algorithm are used, all the behavior data in the first behavior data set are used as input data, and the click rate of each user corresponding to all the behavior data in the input first behavior data set for each object is used as the expected output data, and the parameters of each arm of MAB and the click rate prediction model are learned, and by aggregating users with similar interests and objects with similar attributes, the current e-commerce platform has a large number of inactive users. When the behavior data of inactive users is very sparse, the confidence of the model parameters is not high, and noise is easily introduced into the system. Based on the object vector and the user vector, the user and the object are aggregated, and the model is learned based on the aggregated behavior data, so that the confidence of the model parameters is higher. The object clustering obtained by aggregating the object vector representation has better flexibility and interpretability than the three-level categories manually labeled by the e-commerce platform.

[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0104] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for generating a model, the method comprising: Obtaining user behavior data of each user within a certain period of time, wherein the user behavior data represents the browsing behavior of the user for each object on a certain platform within a continuous period of time; Analyze all of the user behavior data to determine a user vector for each user in all of the user behavior data and an object vector for each object in all of the user behavior data; According to all the user vectors, all users are first aggregated to generate various user sets, wherein the first aggregation is used to represent the aggregation of users with similar interests; according to all the object vectors, all objects are second aggregated to generate various object sets, wherein the second aggregation is used to represent the aggregation of objects with similar attributes; Make a one-to-one correspondence between all the user sets and all the object sets, and determine a first behavior data set corresponding to each of the user sets and each of the object sets, wherein the first behavior data set is used to represent a set of behavior data of each user in the user set for each object in the corresponding object set; Using the MAB mechanism and the machine learning algorithm, taking all the behavior data in the first behavior data set as input data, taking the click rate of each user for each object corresponding to all the behavior data in the first behavior data set as expected output data, learning to obtain each arm parameter of the MAB and a click rate prediction model, wherein the click rate prediction model is used to characterize the probability value of the click behavior of each user in the user set for each object in the corresponding object set evaluated based on all the behavior data in the first behavior data set; The step of analyzing all the user behavior data to determine the user vector of each user in all the user behavior data and the object vector of each object in all the user behavior data includes: Segmenting each of the user behavior data to generate behavior sequences corresponding to all of the user behavior data, wherein the behavior sequences include object identifiers of various objects browsed by the user within a continuous period of time; Based on the object identifier of each object in each of the behavior sequences, determine the object vector of each object in each of the behavior sequences using language processing technology; Based on the object vector of each object and the behavior sequence of each user corresponding to the object vector of each object, a user vector of each user is determined by using a pooling method.

2. The method according to claim 1, wherein: The first aggregation of all users according to all the user vectors to generate various user sets includes: According to the mapping point positions corresponding to all the user vectors, all the users are aggregated using an aggregation method to generate various user sets, wherein the aggregation method is used to represent the aggregation of all the mapping points based on a preset distance.

3. The method according to claim 1, wherein: The method utilizes the MAB mechanism and the machine learning algorithm, takes all the behavior data in the first behavior data set as input data, takes the click rate of each user for each object corresponding to all the behavior data in the first behavior data set as expected output data, and learns to obtain the parameters of each arm of the MAB and the click rate prediction model, including: Using a machine learning algorithm, taking all the behavior data in the first behavior data set as input data, and taking the click rate of each user for each object corresponding to all the behavior data in the first behavior data set as expected output data, to learn and obtain a click rate prediction model; According to all the behavior data in the first behavior data set, the MAB mechanism is used to update the parameters of each arm of the MAB to obtain updated parameters of each arm of the MAB.

4. The method according to claim 1, wherein: The number of the user sets and / or the number of the object sets is 1024.

5. A method for generating information, the method comprising: In response to receiving the information generation request, obtaining user behavior data corresponding to the information generation request; The acquired user behavior data is input into a learned click rate prediction model to generate a first click rate of each object corresponding to the user behavior data, wherein the click rate prediction model is learned by a method as described in any one of claims 1-4.

6. The method according to claim 5, further comprising: According to the first click rate ranking of each object, a target object is selected and displayed to the user.

7. The method according to claim 5, further comprising: Inputting the acquired user behavior data into a pre-trained behavior prediction model to generate a second click rate of each object corresponding to the user behavior data, wherein the behavior prediction model is trained using a deep neural network model; The score of each object is determined according to the calculation result of the second click rate of each object and the first click rate of each object.

8. The method according to claim 7, further comprising: According to the score ranking of the objects, a target object is selected and displayed to the user.

9. A device for generating a model, the device comprising: An acquisition unit is configured to acquire user behavior data of each user within a certain period of time, wherein the user behavior data represents the browsing behavior of the user for each object within a continuous period of time on a certain platform; a vector generating unit configured to analyze all the user behavior data to determine a user vector of each user in all the user behavior data and an object vector of each object in all the user behavior data; an aggregation unit configured to perform a first aggregation on all users according to all the user vectors to generate respective user sets, wherein the first aggregation is used to represent the aggregation of users with similar interests, and to perform a second aggregation on all objects according to all the object vectors to generate respective object sets, wherein the second aggregation is used to represent the aggregation of objects with similar attributes; a determining unit configured to make a one-to-one correspondence between all the user sets and all the object sets, and determine a first behavior data set corresponding to each of the corresponding user sets and each of the object sets, wherein the first behavior data set is used to represent a set of behavior data of each user in the user set for each object in the corresponding object set; A learning unit is configured to use the MAB mechanism and the machine learning algorithm, take all the behavior data in the first behavior data set as input data, take the click rate of each user for each object corresponding to all the behavior data in the first behavior data set as expected output data, and learn to obtain each arm parameter of the MAB and a click rate prediction model, wherein the click rate prediction model is used to characterize the probability value of the click behavior of each user in the user set for each object in the corresponding object set evaluated based on all the behavior data in the first behavior data set; Wherein, the vector generation unit comprises: A segmentation module is configured to segment each of the user behavior data to generate each behavior sequence corresponding to all the user behavior data, wherein the behavior sequence includes the object identifier of each object browsed by the user in a continuous time; A first determination module is configured to determine the object vector of each object in each of the behavior sequences by using language processing technology based on the object identifier of each object in each of the behavior sequences; The second determination module is configured to determine the user vector of each user by using a pooling method based on the object vector of each object and the behavior sequence of each user corresponding to the object vector of each object.

10. The device according to claim 9, wherein: The aggregation unit is further configured to aggregate all users using an aggregation method according to the mapping point positions corresponding to all the user vectors to generate each user set, wherein the aggregation method is used to represent the aggregation of all the mapping points based on a preset distance.

11. The device according to claim 9, wherein: The learning unit includes: A learning module is configured to use a machine learning algorithm to take all the behavior data in the first behavior data set as input data and the click rate of each user for each object corresponding to all the behavior data in the first behavior data set as expected output data to learn and obtain a click rate prediction model; The updating module is configured to update the parameters of each arm of the MAB by using the MAB mechanism according to all the behavior data in the first behavior data set, so as to obtain the updated parameters of each arm of the MAB.

12. The device according to claim 9, wherein: The number of the user sets and / or the number of the object sets in the aggregation unit is 1024.

13. A device for generating information, the device comprising: an acquisition unit, configured to, in response to receiving the information generation request, acquire user behavior data corresponding to the information generation request, wherein the user behavior data represents the browsing behavior of the user for each object in a continuous time on a certain platform; The first generating unit is configured to input the acquired user behavior data into a learned click rate prediction model to generate a first click rate for each object corresponding to the user behavior data, wherein the click rate prediction model is learned by a method as described in one of claims 1-4.

14. The device according to claim 13, further comprising: The first display unit is configured to sort the objects according to their first click rates, select a target object, and display the target object to the user.

15. The device according to claim 13, further comprising: a second generating unit, configured to input the acquired user behavior data into a pre-trained behavior prediction model to generate a second click rate of each object corresponding to the user behavior data, wherein the behavior prediction model is trained using a deep neural network model; The determination unit is configured to determine the score of each object according to the calculation result of the second click rate of each object and the first click rate of each object.

16. The device according to claim 15, further comprising: The second display unit is configured to select a target object according to the score ranking of the objects, and display the target object to the user.

17. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 4 or the method of any one of claims 5 to 8.

18. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method of any one of claims 1 to 4 or the method of any one of claims 5 to 8.