A business data processing method, device and related equipment
By adjusting the business prediction model to automate the revenue prediction between users and business objects, the problems of insufficient sample data and low recommendation efficiency in the existing technology are solved, and efficient and accurate business revenue prediction and automated decision-making are achieved.
Patent Information
- Application Number
- CN201910080951.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-01-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-01-28
AI Technical Summary
In the existing technology, when predicting user product status changes, insufficient sample data results in low prediction accuracy and low recommendation efficiency, which requires manual decision-making.
By obtaining user information and business objects from the target business sample set, adjusting the initial business prediction model to determine the sample reward business volume, updating the model parameters based on gradient descent rules until the convergence conditions are met, and generating the target business prediction model to automate the relationship between users and business objects. earnings forecast during the period.
It improves the accuracy of business revenue prediction between users and various business objects, reduces manual participation, and improves recommendation efficiency.
Smart Images

Figure CN110163713B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a business data processing method, device and related equipment. Background Art
[0002] When it is necessary to recommend products to users while ensuring product benefits, the prior art is to establish a probability prediction model through the mapping relationship between the user's user information and the status label indicating whether the user's product status has changed. When using the probability prediction model, the user's user information is input, and the probability prediction model outputs the probability of the user's product status changing. Subsequently, the probability output by the probability prediction model and manual decision-making are used to recommend corresponding products to users while ensuring the maximum product benefits.
[0003] However, only by observing the user's product status over a long period of time can we obtain the status label of each user, resulting in a small amount of user information carrying status labels, which in turn leads to too little sample data carrying labels. It is impossible to train a probabilistic prediction model with high prediction accuracy based on a small number of samples. As a result, the products recommended to users in the future cannot meet the conditions for maximizing product revenue. At the same time, in the existing product recommendations, manual decisions on selecting recommended products need to be made based on the probability of changes in product status, resulting in low efficiency in recommending products. Summary of the invention
[0004] The embodiment of the present invention provides a business data processing method, apparatus and related equipment, which can efficiently and accurately predict the business benefits between each user and multiple business objects.
[0005] An embodiment of the present invention provides a method for processing business data, including:
[0006] Acquire target sample user information of a target sample user from a target business sample set, and acquire a target business object having a binding relationship with the target sample user information;
[0007] Acquire a predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is a business object having the largest predicted business volume among multiple business objects;
[0008] Determine the sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume, and adjust the initial business prediction model according to the sample reward business volume, the predicted business object, and the target sample user information;
[0009] When the adjusted initial business prediction model meets the target convergence condition, the adjusted initial business prediction model is determined as the target business prediction model; the target business prediction model is used to predict the target user information of the target user and the target business volume corresponding to the multiple business objects respectively.
[0010] Among them, it also includes:
[0011] Obtain multiple original users, and obtain sample user information and original business objects of each original user;
[0012] Acquire multiple unit time periods, determine the original users corresponding to the original business objects with a valid life cycle in each unit time period as sample users, extract sample user information of the multiple sample users in each unit time period, and generate a target business sample set corresponding to each unit time period according to the extracted sample user information in each unit time period.
[0013] The step of obtaining a predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is a business object having the largest predicted business volume among multiple business objects, including:
[0014] The target sample user information and each business object are respectively combined into sample tuples, and multiple sample tuples are used as initial input parameters; each sample tuple includes the target sample user information and a business object;
[0015] Obtain the initial business prediction model, obtain the predicted business volume corresponding to each initial input parameter based on the initial business prediction model, select the maximum predicted business volume from multiple predicted business volumes, and determine the business object in the initial input parameter corresponding to the maximum predicted business volume as the predicted business object.
[0016] The step of determining the sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume includes:
[0017] Obtaining the unit time period to which the target sample user belongs as the target unit time period;
[0018] Acquire a target business state of the target business object within the target unit time period, and determine a sample output resource according to the target business state;
[0019] Determining a reward parameter corresponding to the target sample user information according to the target business object, the predicted business object and the sample output resource;
[0020] The sum of the reward parameter and the maximum predicted business volume is determined as the sample reward business volume.
[0021] Wherein, determining the reward parameter corresponding to the target sample user information according to the target business object, the predicted business object and the sample output resource includes:
[0022] If the input resources corresponding to the predicted business object are less than or equal to the input resources corresponding to the target business object, and the sample output resources are equal to the output threshold, the reward parameter is determined according to the input resources corresponding to the target business object and the target weight; the target weight is determined according to the effective life span of the target business object;
[0023] If the input resource corresponding to the predicted business object is less than or equal to the input resource corresponding to the target business object, and the sample output resource is less than the output threshold, the sample output resource is used as the reward parameter;
[0024] If the input resources corresponding to the predicted business object are greater than the input resources corresponding to the target business object, the target value is used as the reward parameter.
[0025] The adjusting the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information includes:
[0026] Acquire an initial model function associated with the initial business prediction model;
[0027] Generate a target fitting function according to the target sample user information, the predicted business object and the initial model function; the target fitting function includes model variable parameters and auxiliary input parameters; the auxiliary input parameters include a tuple composed of the target sample user information and the predicted business object;
[0028] Generate a target loss function according to the sample reward business volume and the target fitting function;
[0029] Determine the parameter value of the model variable parameter in the target fitting function based on the gradient descent rule as the target parameter value; the target parameter value refers to the value of the model variable parameter corresponding to the minimum function value of the target loss function;
[0030] The model variable parameters in the initial model function are updated to the target parameter values.
[0031] Among them, it also includes
[0032] Acquire a target user and target user information of the target user, combine the target user information and each business object into a target tuple, and use multiple target tuples as target input parameters; each target tuple includes the target user information and a business object;
[0033] The target business volume corresponding to each target input parameter is obtained based on the target business prediction model, and the business object among the target input parameters having the largest target business volume is determined as the recommended business object.
[0034] Among them, it also includes:
[0035] Acquire multiple sets of model hyperparameters, and select one set of model hyperparameters from the multiple sets of model hyperparameters as the hyperparameters to be determined;
[0036] Extract training users from sample users included in all target business sample sets, divide the training users into multiple user sets, extract one user set from the user sets as a first set, and the remaining user sets as a second set; business objects having a binding relationship with the sample user information of the training users all have a business status within a unit time period with a valid life cycle;
[0037] Generate a sample business prediction model according to the to-be-determined hyperparameter, sample user information of sample users in the second set, and a business object having a binding relationship with the sample user information of sample users in the second set; the sample business prediction model meets the target convergence condition;
[0038] determining a traffic volume error according to the sample traffic prediction model, sample user information of sample users in the first set, and a traffic object having a binding relationship with the sample user information of the sample users in the first set;
[0039] When each user set is determined to be the first set, taking an average value of a plurality of traffic errors as a hyperparameter error of the hyperparameter to be determined;
[0040] Selecting a next set of model hyperparameters from the multiple sets of model hyperparameters as the hyperparameters to be determined;
[0041] When each group of model hyperparameters is determined as the hyperparameters to be determined, the hyperparameters to be determined with the lowest hyperparameter error are used as target hyperparameters; and the target hyperparameters are used to generate the initial business prediction model.
[0042] The determining of the traffic volume error according to the sample traffic prediction model, the sample user information of the sample users in the first set, and the traffic object having a binding relationship with the sample user information of the sample users in the first set includes:
[0043] Based on the sample business prediction model, sample user information of sample users in the first set and training business volumes corresponding to the multiple business objects are obtained, a maximum training business volume is determined as a first business volume from the multiple training business volumes, and a business object corresponding to the maximum training business volume is determined as the first object;
[0044] Determine a business object having a binding relationship with the sample user information of the sample users in the first set as a second object, and determine a second business volume according to input resources corresponding to the second object and a business state of the second object in all unit time periods;
[0045] A first error is determined according to the first object and the second object, a second error is determined according to the first traffic volume and the second traffic volume, and a sum of the first error and the second error is used as the traffic volume error.
[0046] Among them, it also includes:
[0047] When the number of adjustments reaches the number threshold, determining that the adjusted initial business forecast model meets the target convergence condition; or,
[0048] When the difference between the model variable parameters of the adjusted initial business prediction model and the model variable parameters of the initial business prediction model before adjustment is less than the difference threshold, it is determined that the adjusted initial business prediction model meets the target convergence condition.
[0049] Another aspect of the present invention provides a method for processing business data, including:
[0050] Acquire a target user, and acquire target user information of the target user;
[0051] Acquire a target business prediction model, acquire target business volumes corresponding to the target user information and multiple business objects based on the target business prediction model, and determine the business object with the largest target business volume as the recommended business object;
[0052] The target business prediction model is obtained after training the initial business prediction model based on sample user information of multiple sample users, target business objects and sample reward business volumes; the sample reward business volume is generated based on the target business object and the predicted business object and maximum predicted business volume determined based on the initial business prediction model; the predicted business object is the business object with the maximum predicted business volume among the multiple business objects.
[0053] Wherein, obtaining the target business volumes corresponding to the target user information and the plurality of business objects respectively based on the target business prediction model includes:
[0054] Combining the target user information and each business object into a target tuple, and obtaining a target model function corresponding to the target business prediction model;
[0055] According to the target model function and the plurality of target tuples, target traffic volumes respectively corresponding to the traffic objects in each target tuple are generated.
[0056] Another aspect of the present invention provides a service data processing device, including:
[0057] A first acquisition module is used to acquire target sample user information of target sample users from a target business sample set, and acquire a target business object having a binding relationship with the target sample user information;
[0058] A second acquisition module is used to acquire a predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is a business object having the largest predicted business volume among multiple business objects;
[0059] A business volume determination module, used to determine the sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume;
[0060] An adjustment module, used for adjusting the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information;
[0061] The model determination module is used to determine the adjusted initial business prediction model as the target business prediction model when the adjusted initial business prediction model meets the target convergence condition; the target business prediction model is used to predict the target user information of the target user and the target business volume corresponding to the multiple business objects respectively.
[0062] Among them, it also includes:
[0063] An extraction module, used to obtain multiple original users, and obtain sample user information and original business objects of each original user;
[0064] The extraction module is further used to obtain multiple unit time periods, determine the original users corresponding to the original business objects with a valid life cycle in each unit time period as sample users, and extract sample user information of multiple sample users in each unit time period, and generate a target business sample set corresponding to each unit time period according to the extracted sample user information in each unit time period.
[0065] Wherein, the second acquisition module includes:
[0066] A first combining unit is used to combine the target sample user information and each business object into a sample tuple, and use the multiple sample tuples as initial input parameters; each sample tuple includes the target sample user information and a business object;
[0067] The first determination unit is used to obtain the initial business prediction model, obtain the predicted business volume corresponding to each initial input parameter based on the initial business prediction model, select the maximum predicted business volume from multiple predicted business volumes, and determine the business object in the initial input parameter corresponding to the maximum predicted business volume as the predicted business object.
[0068] Wherein, the business volume determination module includes:
[0069] A first acquisition unit, configured to acquire a unit time period to which the target sample user belongs as a target unit time period;
[0070] The first acquisition unit is further configured to acquire a target business state of the target business object within the target unit time period, and determine a sample output resource according to the target business state;
[0071] A reward determination unit, configured to determine a reward parameter corresponding to the target sample user information according to the target business object, the predicted business object and the sample output resource;
[0072] The first acquisition unit is further configured to determine the sum of the reward parameter and the maximum predicted business volume as the sample reward business volume.
[0073] Wherein, the reward determination unit includes:
[0074] A first determination subunit is used to determine the reward parameter according to the input resources corresponding to the target business object and the target weight if the input resources corresponding to the predicted business object are less than or equal to the input resources corresponding to the target business object and the sample output resources are equal to the output threshold; the target weight is determined according to the effective life span of the target business object;
[0075] A second determining subunit is configured to use the sample output resource as the reward parameter if the input resource corresponding to the predicted business object is less than or equal to the input resource corresponding to the target business object and the sample output resource is less than the output threshold;
[0076] The third determining subunit is configured to use a target value as the reward parameter if the input resource corresponding to the predicted business object is greater than the input resource corresponding to the target business object.
[0077] Wherein, the adjustment module includes:
[0078] A second acquisition unit, configured to acquire an initial model function associated with the initial business prediction model;
[0079] A generating unit, configured to generate a target fitting function according to the target sample user information, the predicted business object and the initial model function; the target fitting function includes a model variable parameter and an auxiliary input parameter; the auxiliary input parameter includes a tuple composed of the target sample user information and the predicted business object;
[0080] The generating unit is further used to generate a target loss function according to the sample reward business volume and the target fitting function;
[0081] An updating unit, used to determine the parameter value of the model variable parameter in the target fitting function based on the gradient descent rule as the target parameter value; the target parameter value refers to the value of the model variable parameter corresponding to the minimum function value of the target loss function;
[0082] The updating unit is further used to update the model variable parameters in the initial model function to the target parameter values.
[0083] Among them, it also includes
[0084] A combination module, used to obtain a target user and target user information of the target user, respectively combine the target user information and each business object into a target tuple, and use multiple target tuples as target input parameters; each target tuple includes the target user information and a business object;
[0085] The first object determination module is used to obtain the target business volume corresponding to each target input parameter based on the target business prediction model, and determine the business object in the target input parameter with the largest target business volume as the recommended business object.
[0086] Among them, it also includes:
[0087] A selection module is used to obtain multiple groups of model hyperparameters and select one group of model hyperparameters from the multiple groups of model hyperparameters as the hyperparameters to be determined;
[0088] A division module is used to extract training users from sample users included in all target business sample sets, divide the training users into multiple user sets, extract one user set from the user sets as a first set, and the remaining user sets as a second set; business objects having a binding relationship with the sample user information of the training users all have a business status within a unit time period with a valid life cycle;
[0089] a training module, configured to generate a sample business prediction model according to the hyperparameter to be determined, sample user information of sample users in the second set, and a business object having a binding relationship with the sample user information of sample users in the second set; the sample business prediction model satisfies the target convergence condition;
[0090] A generating module, configured to determine a traffic volume error according to the sample traffic prediction model, sample user information of sample users in the first set, and a traffic object having a binding relationship with the sample user information of the sample users in the first set;
[0091] The training module is further configured to, when each user set is determined to be the first set, use an average value of multiple traffic errors as a hyperparameter error of the hyperparameter to be determined;
[0092] The training module is further used to select a next set of model hyperparameters from the multiple sets of model hyperparameters as the hyperparameters to be determined;
[0093] The training module is also used to, when each group of model hyperparameters is determined as the hyperparameters to be determined, use the hyperparameters to be determined with the lowest hyperparameter error as target hyperparameters; the target hyperparameters are used to generate the initial business prediction model.
[0094] Wherein, the generating module comprises:
[0095] a traffic volume determination unit, configured to obtain, based on the sample traffic prediction model, sample user information of sample users in the first set and training traffic volumes corresponding to the multiple traffic objects respectively, determine a maximum training traffic volume from the multiple training traffic volumes as a first traffic volume, and determine a traffic object corresponding to the maximum training traffic volume as the first object;
[0096] The business volume determination unit is further configured to determine a business object having a binding relationship with the sample user information of the sample users in the first set as a second object, and determine a second business volume according to input resources corresponding to the second object and a business state of the second object in all unit time periods;
[0097] A statistical unit is used to determine a first error according to the first object and the second object, determine a second error according to the first business volume and the second business volume, and use the sum of the first error and the second error as the business volume error.
[0098] Among them, it also includes:
[0099] A condition determination module, used to determine that the adjusted initial business forecast model meets the target convergence condition when the number of adjustments reaches a number threshold; or,
[0100] The condition determination module is also used to determine that the adjusted initial business prediction model meets the target convergence condition when the difference between the model variable parameters of the adjusted initial business prediction model and the model variable parameters of the initial business prediction model before adjustment is less than a difference threshold.
[0101] Another aspect of the present invention provides a service data processing device, including:
[0102] A third acquisition module is used to acquire a target user and acquire target user information of the target user;
[0103] The third acquisition module is also used to obtain the target business prediction model;
[0104] A second object determination module, configured to obtain target business volumes corresponding to the target user information and a plurality of business objects respectively based on the target business prediction model;
[0105] The third acquisition module is further used to determine the business object with the largest target business volume as the recommended business object;
[0106] The target business prediction model is obtained after training the initial business prediction model based on sample user information of multiple sample users, target business objects and sample reward business volumes; the sample reward business volume is generated based on the target business object and the predicted business object and maximum predicted business volume determined based on the initial business prediction model; the predicted business object is the business object with the maximum predicted business volume among the multiple business objects.
[0107] Wherein, the second object determination module includes:
[0108] A second combining unit, used to combine the target user information and each business object into a target tuple, and obtain a target model function corresponding to the target business prediction model;
[0109] The second determining unit is used to generate target business volumes corresponding to the business objects in each target tuple according to the target model function and the multiple target tuples.
[0110] Another aspect of an embodiment of the present invention provides an electronic device, including: a processor and a memory;
[0111] The processor is connected to a memory, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute a method as in one aspect of an embodiment of the present invention.
[0112] Another aspect of an embodiment of the present invention provides an electronic device, including: a processor and a memory;
[0113] The processor is connected to a memory, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute a method as in another aspect of an embodiment of the present invention.
[0114] Another aspect of an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method in one aspect of an embodiment of the present invention is executed.
[0115] Another aspect of an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method in another aspect of the embodiment of the present invention is executed.
[0116] The embodiment of the present invention obtains the target sample user information of the target sample user from the target business sample set, and obtains the target business object having a binding relationship with the target sample user information; obtains the predicted business object corresponding to the target sample user information in the initial business prediction model; determines the sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume, and adjusts the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information; when the adjusted initial business prediction model meets the target convergence condition, the adjusted initial business prediction model is determined as the target business prediction model. As can be seen from the above, the sample data does not need the corresponding state label to continuously adjust the business prediction model, thereby reducing the difficulty of collecting sample data, so as to expand the number of sample data, and the accuracy of the business prediction model in predicting the business benefits between users and various business objects can be improved through a large amount of sample data; at the same time, the trained business prediction model can automatically predict the business benefits between users and various business objects, without the need for manual decision-making, reducing manual participation, and can more efficiently determine the business object that maximizes the business benefits, thereby improving the efficiency of recommending business objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0117] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0118] Figure 1 It is a system architecture diagram of a business data processing provided by an embodiment of the present invention;
[0119] Figure 2a-2b This is a schematic diagram of a scenario of business data processing provided by an embodiment of the present invention;
[0120] Figure 3 It is a flowchart of a business data processing method provided by an embodiment of the present invention;
[0121] Figure 4 is a schematic diagram of constructing a target service sample set provided by an embodiment of the present invention;
[0122] Figure 5 It is a schematic diagram of a process for determining a sample reward business volume provided by an embodiment of the present invention;
[0123] Figure 6 It is a flowchart of another business data processing method provided by an embodiment of the present invention;
[0124] Figure 7 It is a structural schematic diagram of a business data processing device provided by an embodiment of the present invention;
[0125] Figure 8 is a structural schematic diagram of another service data processing device provided by an embodiment of the present invention;
[0126] Fig. 9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0127] Fig.10 It is a schematic diagram of the structure of another electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0128] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0129] See also Figure 1, is a system architecture diagram of a business data processing provided by an embodiment of the present invention. The server 10f establishes a connection with a user terminal cluster through a switch 10e and a communication bus 10d, and the user terminal cluster may include: user terminal 10a, user terminal 10b, ..., user terminal 10c. The database 10g stores user information of multiple users and business objects having a binding relationship with each user information. The server 10f extracts user information of multiple users and corresponding business objects from the database, trains a business prediction model, and the business prediction model is used to predict the business benefits corresponding to the user information and multiple business objects respectively, and stores the trained business prediction model in a local file of the server 10f. When the server 10f receives a benefit calculation request from a user terminal in the terminal cluster, the business benefits corresponding to the user information of the user requested by the benefit request and multiple business objects are calculated based on the trained business prediction model. The server 10f sends the calculated business benefits of the multiple business objects to the corresponding user terminals, and the user terminals use the business object corresponding to the maximum business benefit as the recommended object recommended to the user. Of course, the server 10f may also send the trained business prediction model to each user terminal in the user terminal cluster, and each user terminal calculates the business revenue corresponding to the user information of the local user and various business objects according to the business prediction model.
[0130] Since training the business prediction model requires a large amount of storage space and powerful computing power, the server 10f and the database 10g storing the training data (the training includes the user information and business objects of the user) can adopt a distributed architecture. The above training data can be stored in HDFS (Hadoop Distributed File System) to improve the efficiency of reading the training data; when training the business prediction model, the business prediction model can be divided to obtain multiple business prediction model copies, each of which is initialized with a different value. After a working node randomly samples from the data set, it optimizes a business prediction model copy separately. After an iterative cycle, the parameters of the business prediction model copies on all nodes are converged and averaged to obtain an average business prediction model, and then the average business prediction model is sent to each working node, and the training process is repeated until the average business prediction model converges. This method can improve the accuracy of model training, and the server 10f can be a Yard server.
[0131] The distributed architecture can also be used to train the business prediction model based on data parallelism, that is, to divide all samples into multiple data blocks, and also divide the business prediction model to obtain multiple business prediction model copies. Based on the sampled data in a data block, a business prediction model copy is trained on a node, and the parameters of the business prediction model copies on all nodes are averaged to obtain an average business prediction model, which is then distributed to each working node. Repeat the above process until the average model converges.
[0132] Among them, Figure 1 The devices 10b, 10c, 10d, etc. shown may include mobile phones, tablet computers, laptop computers, PDAs, mobile Internet devices (MIDs), wearable devices (such as smart watches, smart bracelets, etc.), etc.
[0133] See also Figure 2a-2b , is a schematic diagram of a business data processing scenario provided by an embodiment of the present invention. The following embodiment is described by taking the example of recommending insurance products to users to maximize the profits of insurance companies. Figure 2a As shown, multiple sample users are obtained, and user information of each sample user is obtained. The user information may include: user age, user gender, user living area, user occupation, user web browsing data, etc., wherein the attributes in the user information may be represented in numerical form, for example, male or female in gender is represented by a numerical value of 0 or a numerical value of 1. Then, the known business object corresponding to each sample user is obtained. In the application scenario of recommending insurance products, the business object refers to different insurance products, and the known business object refers to the insurance product actually purchased by the user.
[0134] Obtain a neural network model 20a, and initialize the model parameters W1 and W2 in the neural network model 20a, where W1 is the connection weight matrix between the input layer and the hidden layer, and W2 is the connection weight matrix between the hidden layer and the output layer. The following takes the user information of a sample user and the known business object of the sample user to adjust the model parameters W1 and W2 in the neural network model 20a once as an example. The remaining sample data can continuously adjust the model parameters W1 and W2 in the neural network model 20a in the same way until the number of adjustments reaches the number threshold, indicating that the neural network model 20a meets the convergence condition, then the neural network model 20a that meets the convergence condition can be used as a business prediction model. It should be noted that the above uses a neural network model to train to obtain a business prediction model, and other regression models with prediction functions (for example, linear regression models, logistic regression models, ridge regression models, etc.) can also be used for training to obtain a business prediction model.
[0135] Assume that there are three types of business objects (insurance products) for which insurance benefits need to be predicted (insurance product a1, insurance product a2, and insurance product a3), respectively combine user information and three types of business objects into three input vectors X, and input each input vector X into the neural network model 20a. The neural network model 20a can output the insurance benefits corresponding to the business objects in the output vector X. Among the three insurance benefits obtained above, the largest insurance benefit is taken as the maximum predicted business volume, and the business object (insurance product) in the input vector X corresponding to the maximum predicted business volume is taken as the predicted business object. Obtain the accident status of the known business object. Determine the target business volume Y based on the maximum predicted business volume, the predicted business object, the known business object, and the accident status, where the target business volume Y is the target value in the subsequent loss function. The user information and the predicted business object are combined into an input vector A, and substituted into the function expression corresponding to the neural network model 20a. After the substitution, the fitting function about the model parameters W1 and W2 can be obtained: (AW1)W2 (the input vector A in the fitting function is known, and the model parameters W1 and W2 are unknown). According to the current target business volume Y and the above fitting function, the loss function can be determined as: Loss = (Y-(AW1)W2) 2 (In this loss loss, the substitution vector A and the target traffic volume Y are known, and the model parameters W1 and W2 are unknown.) The gradient descent algorithm is used to calculate the values of the model parameters W1 and W2 so that the function value of the current loss function is minimized, that is, the values of the model parameters W1 and W2 are calculated when (AW1)W2 is closest to the target traffic volume Y. In this way, an update of the model parameters W1 and W2 in the neural network model 20a is completed. In order to iteratively update the model parameters in the neural network model 20a, the updated neural network model 20a can be used as a neural network model again, and the model parameters of the neural network model 20a can be continuously updated based on the new neural network model (the model after the model parameters W1 and W2 are updated) using the user information of other sample users and the corresponding known business objects.
[0136] After multiple iterations, the neural network model 20a after the last iteration is determined as the business prediction model 20a. Figure 2bAs shown, when the terminal needs to calculate the insurance benefits corresponding to user 20b and the above three business objects (insurance product a1, insurance product a2 and insurance product a3), the terminal sends the user information 20c associated with user 20b to the server. The server combines the acquired user information 20c with each business object and inputs them into the business prediction model 20a respectively. Based on the model function corresponding to the business prediction model 20a, the insurance benefits corresponding to user information 20c and each business object can be determined. The three determined insurance benefits and the insurance products corresponding to each insurance benefit are combined into a benefit vector 20d: [8.2a1, 6.3a2, 9.3a3], where ai represents an insurance product (business object); "8.2a1" means that if user 20b purchases insurance product a1, the corresponding benefit of the insurance company is 8.2. The server can send the benefit vector 20d directly to the terminal; or the server can send the insurance product a3 corresponding to the maximum insurance benefit to the terminal, and insurance product a3 is the insurance product recommended to the user for purchase.
[0137] Among them, the sample reward business volume is calculated (as mentioned above Figure 2a The target traffic volume Y in the corresponding embodiment), the adjustment model (as mentioned above Figure 2a The specific process of the model parameters W1 and W2 of the neural network model 20a in the corresponding embodiment can be seen below. Figures 3 to 5 The corresponding embodiment.
[0138] For further information, see Figure 3 , is a flow chart of a business data processing method provided by an embodiment of the present invention. Figure 3 As shown, the business data processing method may include:
[0139] Step S101: acquiring target sample user information of a target sample user from a target business sample set, and acquiring a target business object having a binding relationship with the target sample user information.
[0140] Specifically, the terminal (as mentioned above Figure 1 The server 10f in the corresponding embodiment obtains the target service sample set, extracts sample users from the target service sample set as target sample users, and obtains sample user information of the target sample users (referred to as target sample user information) from the target service sample set. The terminal obtains a service object (referred to as a target service object, as described above) that has a binding relationship with the target sample user information from the target service sample set. Figure 2aThe target business object that is bound to the target sample user information refers to the insurance product actually purchased by the target sample user. User information may include: user age, user gender, user living area, user occupation, user web browsing data, etc.
[0141] The target business sample set includes multiple sample users, sample user information corresponding to each sample user, and a business object with a binding relationship. At the same time, each sample user and each sample user information in the target business sample set has a time period identifier, and the time period identifier is used to indicate that within the corresponding time period, the sample user is a valid user and the sample user information is valid user information. Whether it is valid user information is determined by whether the business object bound to the sample user information has a valid life cycle within the corresponding time period.
[0142] For example, taking months as the unit, each month corresponds to a target business sample set. For user B who purchases one-year insurance product A, within the 12 months of this one-year period, since the insurance product A purchased by user B has an effective life cycle (can also be understood as within the validity period), within the 12 months, user B's user information is valid user information, that is, in the 12 target business sample sets, user B and user B's user information exist. For another example, for user D who purchases half-year insurance product C, insurance product C has an effective life cycle of only 6 months, so in the above 12 target business sample sets, only 6 target business sample sets contain user D and user D's user information.
[0143] Optionally, the following describes how to construct a target business sample set. The terminal obtains multiple original users, and obtains user information of multiple original users (referred to as sample user information) and business objects with a binding relationship with each original user (referred to as original business objects), wherein each original business object also carries the specific time information of the effective life cycle of the binding relationship. Taking insurance as an example, the original business object refers to the insurance product actually purchased by the original user, and the time information of the effective life cycle refers to the effective time information of the insurance product actually purchased. For example, the time information of the effective life cycle of a one-year (January-December) insurance product refers to January to December. The terminal obtains multiple preset unit time periods (for example, January is a time period, February is a time period, etc.). For a unit time period, the terminal uses the original user corresponding to the original business object with a valid life cycle in the unit time period as a sample user, and combines the sample user information and the corresponding original business object of the sample user in the unit time period into a target business sample set. For each unit time period, the sample user information and the corresponding original business object in each unit time period can be determined, and then the target business sample set corresponding to each unit time period can be determined. It can be known that the sample user information of the same sample user can exist in multiple target business sample sets, and the number of sample user information of the same sample user existing in the target business sample sets is determined by the time information of the effective life cycle of the original business object of the sample user. It should be noted that among the various insurance products, there are one-time insurance products, that is, only one compensation is paid within the validity period. For one-time insurance, if no compensation is made within the validity period, then the time information of the effective life cycle of the insurance product is determined by the start time and end time of the policy; if compensation is made within the validity period, then the time information of the effective life cycle of the insurance product is determined by the start time and payment time of the policy.
[0144] See also Figure 4 , is a schematic diagram of constructing a target service sample set provided by an embodiment of the present invention. Figure 4As shown, there are 4 original users and corresponding original business objects: Business object A has a binding relationship with user A, and the time information of the effective life cycle of the above business object A is January-March; Business object B has a binding relationship with user B, and the time information of the effective life cycle of business object B is January-February; Business object C has a binding relationship with user C, and the time information of the effective life cycle of business object C is January-March; Business object D has a binding relationship with user D, and the time information of the effective life cycle of business object D is January. If the unit time period is January, February and March. For the target business sample set corresponding to January, the business objects corresponding to the above four users all have a valid life cycle, so the four users and their respective user information and business objects can be combined into a target business sample set 30a; for the target business sample set corresponding to February, the business object D corresponding to user D no longer has a valid life cycle, so users A, B and C and their respective user information and business objects can be combined into a target business sample set 30b; for the target business sample set corresponding to March, the business object D corresponding to user D and the business object B corresponding to user B do not have a valid life cycle, so the remaining users A and C and their respective user information and business objects can be combined into a target business sample set 30c.
[0145] By using multiple unit time periods to determine the target business sample set, we can cover business objects with different validity periods (with different time information of the effective life cycle), so that more data can be used as samples to participate in subsequent model training. At the same time, not only can sample users whose business objects have expired be used as sample data to participate in model training; sample users whose business objects have not expired can also be used as sample data to participate in model training. From the perspective of insurance, data from expired policies can be used to train the model, and data from policies that have not yet expired can also be used to train the model.
[0146] It should also be noted that after multiple target business sample sets are constructed, and each target business sample set is identified by a time period, the terminal can extract the target sample users and the corresponding target sample users and target business objects from the target business sample set in chronological order for training the model. For example, the target business sample set corresponding to January is processed first, and then the target business sample set corresponding to February is processed. According to the chronological order, the model can learn the temporal variation characteristics of the data, thereby making the model more robust. At the same time, for each target business sample set, the terminal can allow all the data to participate in the model training, or randomly sample part of the data to participate in the model training. If the model is trained by randomly sampling part of the data parameters, the overfitting phenomenon of the model can be avoided. This is because the same data can appear in multiple target business sample sets, so the correlation between the data is large. If the random sampling method is adopted, this correlation can be eliminated, thereby avoiding the overfitting of the model.
[0147] Step S102: obtaining a predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is a business object having the largest predicted business volume among multiple business objects.
[0148] Specifically, the terminal obtains a model with a prediction function, which is called an initial service prediction model (such as the above Figure 2a The corresponding embodiment of the neural network model 20a), and initialize the values of the model variable parameters in the initial business prediction model (as described above Figure 2a Corresponding to the model parameters W1 and W2 in the embodiment, the initial business prediction model is used to predict the business volume (business revenue) corresponding to user information and multiple business objects. Models with prediction functions may include: BP (Back Propagation) neural network model, convolutional neural network model, various regression models (for example, linear regression model, logistic regression model), etc. The model functions (called initial model functions) corresponding to different initial business prediction models are different. For example, the initial model function corresponding to the BP neural network model is: H = g*(Wn*...*g(W2*(g(W1*X+b1))+b2)+...+bn), where Wi represents the connection weight matrix between each layer (input layer, hidden layer, output layer) in the bp neural network model, bi represents the offset term of each layer (X can also be called the input parameter of the initial model function, Wi and bi are called model variable parameters of the initial model function), and function g(·) is the activation function in the bp neural network. The activation function can be Sgn step function, Sigmoid function, Tanh function, etc. For another example, the initial model function corresponding to the linear regression model can be: Y = h θ (X) = θT X, where X is the input parameter in the initial model function and θ is the model variable parameter in the initial model function. For the sake of uniformity, the initial model function corresponding to the initial business prediction model can be expressed as: Among them, x represents sample user information, α represents business object, and W represents model variable parameters.
[0149] The terminal obtains multiple business objects (business objects can be represented by α, α i represents the i-th business object), and the target sample user information (the target sample user information can be represented by x i denoted) and each business object α are respectively combined into a tuple (called a sample tuple), that is, each sample tuple contains the target sample user information and a business object. For a sample tuple, the terminal uses the sample tuple as the input parameter (called the initial input parameter) of the initial model function corresponding to the initial business prediction model, and inputs the initial input parameter into the initial business prediction model (it can also be understood as substituting the initial input parameter into the initial model function). Since the initial input parameter contains the target sample user information and a business object, the target sample user information x i and business object α are combined into a vector and input into the initial business prediction model. The terminal can obtain the predicted business volume corresponding to the sample tuple from the initial business prediction model, that is, obtain the predicted business volume corresponding to the business object in the sample tuple. For each sample tuple, it can be used as an initial input parameter and input into the initial business prediction model respectively. The initial business prediction model can obtain the predicted business volume corresponding to each business object. From the obtained multiple predicted business volumes, the terminal determines the largest predicted business volume as the maximum predicted business volume (the maximum predicted business volume can be expressed as The predicted business object (the predicted business object can be expressed as
[0150] Step S103, determining a sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume;
[0151] Specifically, since the target sample user and the target sample user information have a time period identifier, the terminal obtains the target service state of the target service object within the unit time period indicated by the time period identifier of the target sample user. The terminal calculates the target service state, the target service object, and the predicted service object α determined by the initial service prediction model according to the obtained target service state, the target service object, and the predicted service object α i , the reward parameter r can be determined. The determined reward parameter r and the maximum predicted business volume determined by the initial business prediction model are combined The sum of the sample reward business volume y (as mentioned above Figure 2a The target business volume Y in the corresponding embodiment), the sample reward business volume y has a target value attribute, and the target value attribute is used to identify that the sample reward business volume y is the target value (or true value, Target) in the subsequent loss function. It can also be understood that the sample reward business volume y is the maximum predicted business volume output by the model and the currently obtained reward parameter r.
[0152] Still taking insurance as an example, the target business status is used to identify whether the insurance product has been insured within the unit time period to which the target sample user belongs. It can be seen that if the insurance product has been insured, the reward parameter r is a non-positive number (from the perspective of the insurance company, the insurance product has lost money, and in order to unify with the income, the loss is regarded as a negative income); if the insurance product has not been insured, the reward parameter r is a non-negative number. It should be noted that "rejection of insurance" can be regarded as a special insurance product, and the price of this insurance product is positive infinity.
[0153] Step S104: adjusting the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information.
[0154] Specifically, after determining the sample reward business volume y with the target value attribute, the terminal can construct a loss function, which is used to update the values of the model variable parameters in the initial business prediction model. The terminal obtains the initial model function associated with the initial business prediction model The target sample user information x i and predict business object α i Similarly, the target fitting function can be obtained by combining them into a tuple and substituting the combined tuple into the initial model function as an input parameter. Target fitting function Including model variable parameter W and auxiliary input parameter (x i ,α i ), and the above is composed of the target sample user information x i and predict business object α i The combined tuple is the auxiliary input parameter. i ,α i ) is known, and the model variable parameter W is unknown, so the target fitting function is actually an expression of the model variable parameter W. The terminal converts the sample reward business volume y and the target fitting function The square of the difference is used as the target loss function, so the target loss function can be expressed as: Where y represents the sample reward business volume, x i represents the target sample user information, α iRepresents the prediction business object, and W represents the model variable parameter.
[0155] The terminal can use the gradient descent rule to calculate the value of the model variable parameter W in the above target loss function (called the target parameter value) when the function value of the target loss function is minimized; or it can be understood that when the function value of the target fitting function is The value of the model variable parameter W in the target fitting function when it is closest to the sample reward business volume y. The gradient descent rule also obtains the minimized target loss function through step-by-step iterative solution. Gradient descent is to choose the direction with the largest slope change rate, which is the opposite direction of the gradient of the target loss function at this point. After each iteration, the gradient of the target loss function at the current point must be recalculated, and then the opposite direction of the gradient is selected as the direction of gradient descent. With continuous iterations, the gradient continues to decrease and finally decreases to zero. Among them, the learning rate in the gradient descent rule is used to control the distance of each iteration to ensure the speed of convergence and prevent missing the lowest point. The mathematical expression of gradient descent is: Where n represents the learning rate or learning step size, W k Represents the value of the model variable parameter W at the kth iteration.
[0156] Taking the target loss function as an example, L(W) = W 2 , calculate the minimum value of the target loss function by the gradient descent rule, the differential of which is: L'(W) = 2W, initialize W 0 =1 (the first iteration initializes the model variable parameter W=1), the learning rate n is 0.4, and according to the mathematical expression of gradient descent, the three-iteration process based on the gradient descent rule can be obtained as: W 0 =1,W 1 =W 0 -n*L'(W 0 )=1-0.4*2=0.2,W 2 =W 1 -n*L'(W 1 )=0.04,W 3 =0.008. After 3 iterations, the minimum value of the target loss function is basically reached, and W = 0.008.
[0157] Step S105, when the adjusted initial business prediction model meets the target convergence condition, the adjusted initial business prediction model is determined as the target business prediction model; the target business prediction model is used to predict the target user information of the target user and the target business volume corresponding to the multiple business objects respectively.
[0158] Specifically, after the terminal determines the value of the model variable parameter W in the target fitting function (target parameter value), the value of the model variable parameter W in the initial model function is updated to the target parameter value. In this way, an update of the model variable parameter W in the initial model function is completed.
[0159] The terminal continues to determine the initial business prediction model after the model variable parameter W is updated as the initial business prediction model (this is equivalent to initializing the initial business prediction model in the above), extracts the target sample user and the target sample user information from the target business sample set again, and continues to update the model variable parameter W corresponding to the initial business prediction model based on the new initial business prediction model. When the number of adjustments reaches the number threshold, or the model variable parameter W converges, it means that the initial business prediction model updated for the last time meets the target convergence condition. The convergence of the model variable parameter W means that the difference (change) between the values of the model variable parameter W determined by two consecutive adjustments to the initial business prediction model is less than the difference threshold, which can also be understood as the model variable parameter W of the adjusted initial business prediction model. n and the model variable parameter W of the initial business forecast model before adjustment n-1 The difference between them is less than the preset difference threshold.
[0160] The terminal determines the last updated initial business prediction model (that meets the target convergence conditions) as the target business prediction model. It can be seen that, similar to the training process, the target business prediction model can determine the target user information of the target user and the target business volume corresponding to multiple business objects, that is, the target user information and multiple business objects are respectively input into the target business prediction model, and the target business prediction model can output the target business volume corresponding to each business object.
[0161] Optionally, the terminal obtains the user to be predicted, referred to as the target user (as described above Figure 2b The target user information of the target user is obtained (as shown in the above example). Figure 2bThe user information 20c) in the corresponding embodiment is similar to the sample user information. The target user information may include the user's age, the user's gender, the user's living area, the user's occupation, the user's web browsing data, etc. The terminal combines the target user information and a variety of business objects to be predicted into target tuples, each target tuple including the target user information and a business object. The terminal uses each target tuple as an input parameter (referred to as a target input parameter) corresponding to a target business prediction model and inputs it into the target business prediction model, or it can be understood as substituting the target input parameter into the target model function corresponding to the target business prediction model. Based on the target business prediction model, the target business volume corresponding to each target input parameter is predicted. Each target input parameter has a corresponding target business volume. The business object in the target input parameter corresponding to the largest target business volume is determined as the recommended business object (as mentioned above). Figure 2b The insurance product a3) in the embodiment may also determine the maximum target business volume as the recommended business income.
[0162] See also Figure 5 , is a flow chart of determining the sample reward business volume provided by an embodiment of the present invention. Figure 5 As shown, the specific process of determining the sample reward business volume includes the following steps S201-step S204, and steps S201-step S204 are Figure 3 A specific embodiment of step S103 in the corresponding embodiment:
[0163] Step S201: Acquire the unit time period to which the target sample user belongs as the target unit time period.
[0164] Specifically, both the target sample user and the target sample user information have a time period identifier. The terminal obtains the unit time period indicated by the time period identifier to which the target sample user belongs, and uses the obtained unit time period as the target unit time period.
[0165] Step S202: acquiring a target business state of the target business object within the target unit time period, and determining a sample output resource according to the target business state.
[0166] Specifically, the terminal obtains the target business status of the target business object within the target unit time period, and determines the sample output resource based on the obtained target business status. Taking insurance as an example, the target business status is used to identify whether the insurance product (target business object) actually purchased has been insured within the target unit time period. If an accident occurs within the target unit time period, the sample output resource is the amount of compensation paid by the insurance company; if no accident occurs within the target unit time period, the sample output resource is equal to 0. In order to be consistent with business income, the compensation amount can be expressed as a negative number.
[0167] Step S203: determining a reward parameter corresponding to the target sample user information according to the target business object, the predicted business object and the sample output resource.
[0168] Specifically, the sample output resources correspond to the input resources. Taking insurance as an example, the input resources refer to the insurance company's premium income, which is also the fee paid by users when purchasing insurance products.
[0169] If the input resource corresponding to the predicted business object is less than or equal to the input resource corresponding to the target business object, and the sample output resource is equal to the preset output threshold (the output threshold can be equal to 0, that is, no accident), then the terminal multiplies the input resource corresponding to the target business object by the target weight, and the reward parameter r can be obtained (it can be known that the reward parameter r is a positive number at this time). The target weight is determined by the terminal according to the effective life span of the target business object. For example, if the target business sample set is constructed with monthly time periods, and user B purchases a one-year insurance product C, then the effective life span is 12 months, so the target weight is equal to 1 / 12, that is, the reward parameter for each month is equal to 1 / 12 of the premium paid by user B throughout the year. In this way, it can be unified with the unit time period of the target business sample set. The above process can be understood in the insurance scenario as follows: if the price of the insurance product recommended by the initial business prediction model is less than or equal to the price of the insurance product actually purchased by the user, and the insurance product actually purchased by the user has no accident, then the reward parameter r is equal to the premium paid by the user for the insurance product actually purchased by the user multiplied by the target weight.
[0170] If the input resources corresponding to the predicted business object are less than or equal to the input resources corresponding to the target business object, and the sample output resources are less than the preset output threshold (the output threshold can be equal to 0, which means that there is an accident), then the terminal directly determines the sample output resources as the reward parameter r (it can be known that the sample reward business volume r is a negative number at this time). The above process can be understood in the insurance scenario as follows: if the price of the insurance product recommended by the initial business prediction model is less than or equal to the price of the insurance product actually purchased by the user, and the insurance product actually purchased by the user is in danger, then the reward parameter r is equal to the amount of compensation paid by the insurance company (the reward parameter r is equal to the sample output resource).
[0171] If the input resources corresponding to the predicted business object are greater than the input resources corresponding to the target business object, the terminal uses the target value as the reward parameter r, and the target value can be equal to 0. The above process can be understood in the insurance scenario as follows: if the price of the insurance product recommended by the initial business prediction model is greater than the price of the insurance product actually purchased by the user, then the reward parameter is equal to the target value. It should be noted that in the above, "rejection of insurance" is also regarded as an insurance product with an insurance price of positive infinity. Therefore, if the insurance product recommended by the initial business prediction model is "rejection of insurance", then the reward parameter r is equal to the target value.
[0172] Step S204: Determine the sum of the reward parameter and the maximum predicted business volume as the sample reward business volume.
[0173] Specifically, the reward parameter r and the maximum predicted business volume determined by the initial business prediction model are The sum is taken as the sample reward business volume.
[0174] Optionally, regardless of whether the initial business prediction model is a BP neural network model, a convolutional neural network model or various regression models, the terminal needs to set the hyperparameters of the initial business prediction model in advance. The hyperparameters can be set manually based on past experience, but this will result in large differences in the effects of the target business prediction models trained with different hyperparameters.
[0175] In order to improve the generalization ability of the initial business prediction model, the terminal can use cross-validation to determine the hyperparameters of the initial business prediction model in advance. Cross-validation means that under a set of hyperparameters, the terminal divides the sample data into K sets, K-1 sets are used as training sets to train the initial business prediction model under the above hyperparameters, and the remaining set is used as a test set to test the business volume error of the above trained initial business prediction model. When each of the K sets is used as a test set, K errors can be obtained, and the terminal uses the average value of the K errors as the error of the current set of hyperparameters. The above is to obtain the error of a set of hyperparameters. In the same way, the terminal can obtain the errors of multiple sets of different hyperparameters. The set of hyperparameters with the smallest error is used as the hyperparameters of the initial business prediction model. In this way, the model hyperparameters with smaller errors can be determined before training the initial business prediction model.
[0176] The specific process of cross-validation to determine the model hyperparameters of the initial business prediction model is: presetting multiple sets of model hyperparameters of the initial business prediction model, and the hyperparameters may include: learning rate n in gradient descent, number of iterations in gradient descent, number of iterations when the initial business prediction model meets the target convergence condition, etc. Select a set of model hyperparameters from multiple sets of model hyperparameters as the hyperparameters to be determined. For each sample user, the terminal queries whether the business objects with a binding relationship with the sample user have business status within the time period with a valid life cycle. If they all have business status, it means that the sample user is a training user; if they only have part of the business status in part of the time period, it means that the sample user is not a training user. In the insurance scenario, it can be understood that for those sample users whose purchased insurance products have expired (that is, whether the insurance policy has been insured during the validity period is known), they are training users; for those sample users whose purchased insurance products have not expired (that is, whether the insurance policy has been insured during the validity period is unknown, or the insurance policy has not reached the expiration date), they are not training users. This method can be used to determine whether each sample user is a training user. Multiple training users are divided into multiple user sets. One user set is extracted from all user sets as the first set, and the remaining user sets are used as the second set. In other words, only expired policies can participate in cross-validation.
[0177] Similarly, the terminal generates multiple target business sample sets according to the sample users in the second set (the sample users in the second set must be training users) and the sample user information. Under the condition of the hyperparameter to be determined, the initial business prediction model is iteratively trained according to the sample user information in the second set and the business objects having a binding relationship with the sample user information of the sample users in the second set. When the initial business prediction model after multiple iterations meets the target convergence condition, the initial business prediction model of the last iteration is determined as the sample business prediction model (the specific process of training the initial business prediction model to obtain the sample business prediction model that meets the target convergence condition can be parameterized as above Figure 3 Detailed description of steps S101 to S105 in the corresponding embodiment).
[0178] The terminal uses the sample users in the first set for testing. For a sample user in the first set, the sample user information and multiple business objects of the sample user (a sample user in the first set) are used as input parameters and input into the sample business prediction model. The training business volumes corresponding to the sample user information and the multiple business objects are obtained in the sample business prediction model. The largest training business volume is determined as the first business volume, and the business object corresponding to the largest training business volume is used as the first object. Correspondingly, the terminal uses the business object with a binding relationship with the sample user information of the sample user as the second object, and determines the second business volume according to the input resources corresponding to the second object and the business status of the second object in all unit time periods. For example, if user A purchases insurance product B, if there is no accident during the insurance period, then the second business volume is equal to the amount paid by user A for purchasing insurance product B; if there is an accident during the insurance period, then the second business volume is equal to the compensation amount. The first error can be calculated based on the first object and the second object, and the second error can be calculated based on the first business volume and the second business volume. For each sample user in the first set, the corresponding first error and second error can be calculated, and the terminal takes the sum of the first error and the second error of each sample user in the first set as the business volume error.
[0179] According to the above method, the terminal can take each user set as the first set respectively, and then calculate the business volume error corresponding to each first set. The average value of multiple business volume errors is taken as the hyperparameter error of the current hyperparameter to be determined. In this way, the hyperparameter error of a set of model hyperparameters is determined. The terminal continues to select the next set of model hyperparameters from multiple sets of model hyperparameters as the hyperparameters to be determined, and continues to calculate the hyperparameter errors of the hyperparameters to be determined. When each set of model hyperparameters is determined as the hyperparameters to be determined, the hyperparameters to be determined with the lowest hyperparameter error are taken as the target hyperparameters. Subsequently, the initial business prediction model can be trained based on the target hyperparameters, that is, the initial business prediction model is trained among all sample users based on the target hyperparameters (at this time, it is not necessary to select training users from all sample users). By using cross-validation, the rationality of the model hyperparameter values can be guaranteed when the initial business prediction model is subsequently trained.
[0180] The embodiment of the present invention obtains the target sample user information of the target sample user from the target business sample set, and obtains the target business object having a binding relationship with the target sample user information; obtains the predicted business object corresponding to the target sample user information in the initial business prediction model; determines the sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume, and adjusts the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information; when the adjusted initial business prediction model meets the target convergence condition, the adjusted initial business prediction model is determined as the target business prediction model. As can be seen from the above, the sample data does not need the corresponding state label to continuously adjust the business prediction model, thereby reducing the difficulty of collecting sample data, so as to expand the number of sample data, and the accuracy of the business prediction model in predicting the business benefits between users and various business objects can be improved through a large amount of sample data; at the same time, the trained business prediction model can automatically predict the business benefits between users and various business objects, without the need for manual decision-making, reducing manual participation, and can more efficiently determine the business object that maximizes the business benefits, thereby improving the efficiency of recommending business objects.
[0181] See also Figure 6 , is a flow chart of another business data processing method provided by an embodiment of the present invention, such as Figure 6 As shown, the specific process of the business data processing method may include the following steps:
[0182] Step S301, obtaining a target user, and obtaining target user information of the target user.
[0183] Specifically, the server (as mentioned above Figure 1 The server 10f) in the corresponding embodiment obtains the target user to be predicted from the user terminal and obtains the target user information of the target user. Similar to the sample user information, the target user information may include: the user's age, the user's gender, the user's living area, the user's occupation, the user's web browsing data, etc.
[0184] Step S302, obtain a target business prediction model, obtain the target business volumes corresponding to the target user information and multiple business objects based on the target business prediction model, and determine the business object with the largest target business volume as the recommended business object; the target business prediction model is obtained after training an initial business prediction model based on sample user information of multiple sample users, target business objects, and sample reward business volumes; the sample reward business volume is generated based on the target business object and the predicted business object determined based on the initial business prediction model, and the maximum predicted business volume; the predicted business object is the business object with the maximum predicted business volume among the multiple business objects.
[0185] Specifically, the server obtains a target model function corresponding to a trained target business prediction model, and the server obtains a plurality of business objects. The following description will be made using business object 1 as an example. The server combines the target user information and business object 1 into a target tuple. It can be known that a target tuple includes target user information and a business object. The server inputs the target tuple into the target business prediction model as an input parameter of the target model function. It can also be understood that the target user information and business object 1 in the target tuple are combined into a vector and substituted into the target model function to obtain the target business volume 1. The target business volume 1 is used as the target business volume 1 corresponding to the target user information and business object 1 in the target tuple. Then, the remaining business objects can be combined into a target tuple in the same manner, and then the target business volume 1 corresponding to the business object 1 in each target tuple is determined based on the target business prediction model (target business volume 2 can be determined based on business object 2, and target business volume 3 can be determined based on business object 3). The server can use the business object in the target tuple corresponding to the maximum target business volume as a recommended business object (as mentioned above Figure 2b The insurance product a3) in the embodiment, and the maximum target business volume is used as the recommended business income. The server can then send the determined recommended business object to the user terminal.
[0186] Among them, the target business prediction model is determined after multiple iterations of the initial business prediction model. The specific process of each iteration update is as follows: the server inputs the target sample user information and multiple business objects into the initial business prediction model as input parameters of the initial business prediction model, obtains the target sample user information and the predicted business volume corresponding to each business object based on the initial business prediction model, takes the maximum predicted business volume as the maximum predicted business volume, and takes the business object corresponding to the maximum predicted business volume as the predicted business object. The server determines the reward parameter based on the target business object that has a binding relationship with the target sample user information, the target business state of the target business object, and the predicted business object determined by the initial business prediction model, and takes the sum of the reward parameter and the maximum predicted business volume determined by the initial business prediction model as the sample reward business volume.
[0187] The server uses the gradient descent rule to calculate the values of the model variable parameters in the initial business prediction model, so that when the target sample user information and the predicted business object are input into the model, the output of the initial business prediction model and the sample reward business volume are as close as possible. This completes an iterative update of the model variable parameters in the initial business prediction model. The subsequent server iteratively updates again based on the new initial business prediction model until the number of iterative updates of the initial business prediction model reaches the number threshold, or the difference in the model variable parameters before and after the adjustment is less than the difference threshold, indicating that the initial business prediction model at this time meets the target convergence condition, and the initial business prediction model at this time is determined as the target business prediction model.
[0188] The embodiment of the present invention obtains the target sample user information of the target sample user from the target business sample set, and obtains the target business object having a binding relationship with the target sample user information; obtains the predicted business object corresponding to the target sample user information in the initial business prediction model; determines the sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume, and adjusts the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information; when the adjusted initial business prediction model meets the target convergence condition, the adjusted initial business prediction model is determined as the target business prediction model. As can be seen from the above, the sample data does not need the corresponding state label to continuously adjust the business prediction model, thereby reducing the difficulty of collecting sample data, so as to expand the number of sample data, and the accuracy of the business prediction model in predicting the business benefits between users and various business objects can be improved through a large amount of sample data; at the same time, the trained business prediction model can automatically predict the business benefits between users and various business objects, without the need for manual decision-making, reducing manual participation, and can more efficiently determine the business object that maximizes the business benefits, thereby improving the efficiency of recommending business objects.
[0189] For further information, see Figure 7 , is a schematic diagram of the structure of a business data processing device 1 provided in an embodiment of the present invention. Figure 7 As shown, the service data processing device 1 can be applied to the above Figure 3-Figure 5 Corresponding to the terminal in the embodiment, the service data processing device 1 may include: a first acquisition module 11 , a second acquisition module 12 , a service volume determination module 13 , an adjustment module 14 and a model determination module 15 .
[0190] A first acquisition module 11 is used to acquire target sample user information of target sample users from a target business sample set, and acquire a target business object having a binding relationship with the target sample user information;
[0191] The second acquisition module 12 is used to acquire the predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is the business object with the largest predicted business volume among multiple business objects;
[0192] A business volume determination module 13, configured to determine a sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume;
[0193] An adjustment module 14, configured to adjust the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information;
[0194] The model determination module 15 is used to determine the adjusted initial business prediction model as the target business prediction model when the adjusted initial business prediction model meets the target convergence condition; the target business prediction model is used to predict the target user information of the target user and the target business volume corresponding to the multiple business objects respectively.
[0195] The specific functional implementation of the first acquisition module 11, the second acquisition module 12, the business volume determination module 13, the adjustment module 14 and the model determination module 15 can be referred to above. Figure 3 Steps S101 to S105 in the corresponding embodiment are not described in detail here.
[0196] See also Figure 7 The business data processing device 1 may include a first acquisition module 11, a second acquisition module 12, a business volume determination module 13, an adjustment module 14, a model determination module 15, and may also include: an extraction module 16.
[0197] An extraction module 16 is used to obtain multiple original users, and obtain sample user information and original business objects of each original user;
[0198] The extraction module 16 is further used to obtain multiple unit time periods, determine the original users corresponding to the original business objects with a valid life cycle in each unit time period as sample users, and extract sample user information of multiple sample users in each unit time period, and generate a target business sample set corresponding to each unit time period according to the extracted sample user information in each unit time period.
[0199] The specific functional implementation of the extraction module 16 can be found in the above Figure 3 The step S101 in the corresponding embodiment will not be described in detail here.
[0200] See also Figure 7 The second acquisition module 12 may include: a first combination unit 121 and a first determination unit 122.
[0201] The first combining unit 121 is used to combine the target sample user information and each business object into a sample tuple, and use the multiple sample tuples as initial input parameters; each sample tuple includes the target sample user information and a business object;
[0202] The first determination unit 122 is used to obtain the initial business prediction model, obtain the predicted business volume corresponding to each initial input parameter based on the initial business prediction model, select the maximum predicted business volume from multiple predicted business volumes, and determine the business object in the initial input parameter corresponding to the maximum predicted business volume as the predicted business object.
[0203] The specific functional implementation of the first combination unit 121 and the first determination unit 122 can be referred to above. Figure 3 The step S102 in the corresponding embodiment will not be described in detail here.
[0204] See also Figure 7 The business volume determination module 13 may include: a first acquisition unit 131 and a reward determination unit 132.
[0205] A first acquisition unit 131 is used to acquire the unit time period to which the target sample user belongs as a target unit time period;
[0206] The first acquisition unit 131 is further configured to acquire a target service state of the target service object within the target unit time period, and determine a sample output resource according to the target service state;
[0207] A reward determination unit 132, configured to determine a reward parameter corresponding to the target sample user information according to the target business object, the predicted business object and the sample output resource;
[0208] The first acquisition unit 131 is further configured to determine the sum of the reward parameter and the maximum predicted business volume as the sample reward business volume.
[0209] The specific functional implementation of the first acquisition unit 131 and the reward determination unit 132 can be found in the above Figure 5 Steps S201 to S204 in the corresponding embodiment are not described in detail here.
[0210] See also Figure 7 The reward determination unit 132 may include: a first determination subunit 1321 , a second determination subunit 1322 , and a third determination subunit 1323 .
[0211] The first determination subunit 1321 is used to determine the reward parameter according to the input resources corresponding to the target business object and the target weight if the input resources corresponding to the predicted business object are less than or equal to the input resources corresponding to the target business object and the sample output resources are equal to the output threshold; the target weight is determined according to the effective life span of the target business object;
[0212] The second determining subunit 1322 is configured to use the sample output resource as the reward parameter if the input resource corresponding to the predicted business object is less than or equal to the input resource corresponding to the target business object and the sample output resource is less than the output threshold;
[0213] The third determining subunit 1323 is configured to use the target value as the reward parameter if the input resource corresponding to the predicted business object is greater than the input resource corresponding to the target business object.
[0214] The specific functional implementation of the first determining subunit 1321, the second determining subunit 1322, and the third determining subunit 1323 can refer to the above Figure 5 The step S203 in the corresponding embodiment will not be described in detail here.
[0215] See also Figure 7 The adjustment module 14 may include: a second acquisition unit 141, a generation unit 142, and an update unit 143.
[0216] A second acquisition unit 141 is used to acquire an initial model function associated with the initial business prediction model;
[0217] A generating unit 142, configured to generate a target fitting function according to the target sample user information, the predicted business object and the initial model function; the target fitting function includes model variable parameters and auxiliary input parameters; the auxiliary input parameters include a tuple composed of the target sample user information and the predicted business object;
[0218] The generating unit 142 is further configured to generate a target loss function according to the sample reward business volume and the target fitting function;
[0219] An updating unit 143 is used to determine the parameter value of the model variable parameter in the target fitting function based on the gradient descent rule as the target parameter value; the target parameter value refers to the value of the model variable parameter corresponding to the minimum function value of the target loss function;
[0220] The updating unit 143 is further configured to update the model variable parameters in the initial model function to the target parameter values.
[0221] The specific functional implementation of the second acquisition unit 141, the generation unit 142, and the update unit 143 can be found in the above Figure 3 The step S104 in the corresponding embodiment will not be described in detail here.
[0222] See also Figure 7 The business data processing device 1 may include a first acquisition module 11, a second acquisition module 12, a business volume determination module 13, an adjustment module 14, a model determination module 15, an extraction module 16, and may also include: a combination module 17, a first object determination module 18.
[0223] A combination module 17 is used to obtain a target user and target user information of the target user, and to combine the target user information and each business object into a target tuple, and to use multiple target tuples as target input parameters; each target tuple includes the target user information and a business object;
[0224] The first object determination module 18 is used to obtain the target business volume corresponding to each target input parameter based on the target business prediction model, and determine the business object among the target input parameters with the largest target business volume as the recommended business object.
[0225] The specific functional implementation of the combination module 17 and the first object determination module 18 can be found in the above Figure 3 The step S105 in the corresponding embodiment will not be described in detail here.
[0226] See also Figure 7 The business data processing device 1 may include a first acquisition module 11, a second acquisition module 12, a business volume determination module 13, an adjustment module 14, a model determination module 15, an extraction module 16, a combination module 17, a first object determination module 18, and may also include: a selection module 19, a division module 20, a training module 21, and a generation module 22.
[0227] A selection module 19 is used to obtain multiple groups of model hyperparameters and select one group of model hyperparameters from the multiple groups of model hyperparameters as the hyperparameters to be determined;
[0228] The division module 20 is used to extract training users from the sample users included in all target business sample sets, divide the training users into multiple user sets, extract one user set from the user sets as the first set, and the remaining user sets as the second set; the business objects having a binding relationship with the sample user information of the training users all have a business status within a unit time period with a valid life cycle;
[0229] A training module 21 is used to generate a sample business prediction model according to the hyperparameter to be determined, the sample user information of the sample users in the second set, and the business object having a binding relationship with the sample user information of the sample users in the second set; the sample business prediction model meets the target convergence condition;
[0230] A generating module 22, configured to determine a traffic volume error according to the sample traffic prediction model, sample user information of sample users in the first set, and a traffic object having a binding relationship with the sample user information of the sample users in the first set;
[0231] The training module 21 is further configured to, when each user set is determined to be the first set, use an average value of multiple traffic errors as a hyperparameter error of the hyperparameter to be determined;
[0232] The training module 21 is further used to select a next set of model hyperparameters from the multiple sets of model hyperparameters as the hyperparameters to be determined;
[0233] The training module 21 is also used to, when each group of model hyperparameters is determined as the hyperparameters to be determined, use the hyperparameters to be determined with the lowest hyperparameter error as target hyperparameters; the target hyperparameters are used to generate the initial business prediction model.
[0234] The specific functional implementation of the selection module 19, the division module 20, the training module 21, and the generation module 22 can be found in the above Figure 5 The step S204 in the corresponding embodiment will not be described in detail here.
[0235] See also Figure 7 The generating module 22 may include: a business volume determining unit 221 and a statistical unit 222 .
[0236] A business volume determination unit 221 is used to obtain, based on the sample business prediction model, sample user information of sample users in the first set and training business volumes corresponding to the multiple business objects respectively, determine a maximum training business volume from the multiple training business volumes as a first business volume, and determine a business object corresponding to the maximum training business volume as the first object;
[0237] The business volume determination unit 221 is further configured to determine a business object having a binding relationship with the sample user information of the sample users in the first set as a second object, and determine a second business volume according to input resources corresponding to the second object and a business state of the second object in all unit time periods;
[0238] The statistical unit 222 is configured to determine a first error according to the first object and the second object, determine a second error according to the first business volume and the second business volume, and use the sum of the first error and the second error as the business volume error.
[0239] The specific functional implementation of the traffic volume determination unit 221 and the statistical unit 222 can be found in the above Figure 5 The step S204 in the corresponding embodiment will not be described in detail here.
[0240] See also Figure 7 The business data processing device 1 may include a first acquisition module 11, a second acquisition module 12, a business volume determination module 13, an adjustment module 14, a model determination module 15, an extraction module 16, a combination module 17, a first object determination module 18, a selection module 19, a division module 20, a training module 21, and a generation module 22; it may also include: a condition determination module 23.
[0241] The condition determination module 23 is used to determine that the adjusted initial business prediction model meets the target convergence condition when the number of adjustments reaches a number threshold; or,
[0242] The condition determination module 23 is also used to determine that the adjusted initial business prediction model meets the target convergence condition when the difference between the model variable parameters of the adjusted initial business prediction model and the model variable parameters of the initial business prediction model before adjustment is less than a difference threshold.
[0243] The specific function implementation of the condition determination module 23 can be found in the above Figure 3 The step S105 in the corresponding embodiment will not be described in detail here.
[0244] For further information, see Figure 8 , is a schematic diagram of the structure of another service data processing device 2 provided in an embodiment of the present invention. Figure 8 As shown, the service data processing device 2 can be applied to the above Figure 6 Corresponding to the server in the embodiment, the business data processing device 2 may include: a third acquisition module 30 and a second object determination module 31 .
[0245] The third acquisition module 30 is used to acquire a target user and acquire target user information of the target user;
[0246] The third acquisition module 30 is also used to obtain a target business prediction model;
[0247] A second object determination module 31 is used to obtain the target business volume corresponding to the target user information and multiple business objects respectively based on the target business prediction model;
[0248] The third acquisition module 30 is further used to determine the business object with the largest target business volume as the recommended business object;
[0249] The target business prediction model is obtained after training the initial business prediction model based on sample user information of multiple sample users, target business objects and sample reward business volumes; the sample reward business volume is generated based on the target business object and the predicted business object and maximum predicted business volume determined based on the initial business prediction model; the predicted business object is the business object with the maximum predicted business volume among the multiple business objects.
[0250] The specific functional implementation of the third acquisition module 30 and the second object determination module 31 can be found in the above Figure 6 The steps S301 and S302 in the corresponding embodiment will not be described in detail here.
[0251] See also Figure 8 The second object determination module 31 may include: a second combining unit 311 and a second determining unit 312 .
[0252] The second combining unit 311 is used to combine the target user information and each business object into a target tuple, and obtain a target model function corresponding to the target business prediction model;
[0253] The second determining unit 312 is configured to generate target business volumes corresponding to the business objects in each target tuple according to the target model function and the plurality of target tuples.
[0254] The specific functional implementation of the second combining unit 311 and the second determining unit 312 can be referred to above. Figure 6 The step S302 in the corresponding embodiment will not be described in detail here.
[0255] From the above, it can be seen that sample data does not need corresponding status labels to continuously adjust the business prediction model, thereby reducing the difficulty of collecting sample data and expanding the amount of sample data. A large amount of sample data can improve the accuracy of the business prediction model in predicting the business benefits between users and various business objects. At the same time, the trained business prediction model can automatically predict the business benefits between users and various business objects, without the need for manual decision-making and reducing manual participation. It can more efficiently determine the business object that maximizes the business benefit, thereby improving the efficiency of recommending business objects.
[0256] For further information, see Fig. 9 , is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 3-Figure 5 The terminal in the corresponding embodiment may be an electronic device 1000, such as Fig. 9 As shown, the electronic device 1000 may include: a user interface 1002, a processor 1004, an encoder 1006 and a memory 1008. The signal receiver 1016 is used to receive or send data via a cellular interface 1010, a WIFI interface 1012, ..., or an NFC interface 1014. The encoder 1006 encodes the received data into a data format for computer processing. A computer program is stored in the memory 1008, and the processor 1004 is configured to perform the steps in any of the above method embodiments through the computer program. The memory 1008 may include a volatile memory (e.g., a dynamic random access memory DRAM), and may also include a non-volatile memory (e.g., a one-time programmable read-only memory OTPROM). In some instances, the memory 1008 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the electronic device 1000 via a network. The user interface 1002 may include: a receiver 1018 and a display 1020.
[0257] exist Fig. 9 In the electronic device 1000 shown, the processor 1004 may be used to call a computer program stored in the memory 1008 to implement:
[0258] Acquire target sample user information of a target sample user from a target business sample set, and acquire a target business object having a binding relationship with the target sample user information;
[0259] Acquire a predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is a business object having the largest predicted business volume among multiple business objects;
[0260] Determine the sample reward business volume according to the target business object, the predicted business object, and the maximum predicted business volume, and adjust the initial business prediction model according to the sample reward business volume, the predicted business object, and the target sample user information;
[0261] When the adjusted initial business prediction model meets the target convergence condition, the adjusted initial business prediction model is determined as the target business prediction model; the target business prediction model is used to predict the target user information of the target user and the target business volume corresponding to the multiple business objects respectively.
[0262] It should be understood that the electronic device 1000 described in the embodiment of the present invention can execute the above Figures 3 to 5 The description of the business data processing method in the corresponding embodiment can also be performed as described above. Figure 7The description of the business data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.
[0263] In addition, it should be pointed out that: the embodiment of the present invention further provides a computer storage medium, and the computer storage medium stores a computer program executed by the business data processing device 1 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned Figures 3 to 5 The description of the business data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer storage medium embodiment involved in the present invention, please refer to the description of the method embodiment of the present invention.
[0264] For further information, see Fig.10 , is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 6 The server in the corresponding embodiment may be an electronic device 2000, such as Fig.10 As shown, the electronic device 2000 may include: a user interface 2002, a processor 2004, an encoder 2006 and a memory 2008. The signal receiver 2016 is used to receive or send data via a cellular interface 2010, a WIFI interface 2012, ..., or an NFC interface 2014. The encoder 2006 encodes the received data into a data format for computer processing. A computer program is stored in the memory 2008, and the processor 2004 is configured to perform the steps in any of the above method embodiments through the computer program. The memory 2008 may include a volatile memory (e.g., a dynamic random access memory DRAM), and may also include a non-volatile memory (e.g., a one-time programmable read-only memory OTPROM). In some instances, the memory 2008 may further include a memory remotely arranged relative to the processor 2004, and these remote memories may be connected to the electronic device 2000 via a network. The user interface 2002 may include: a receiver 2018 and a display 2020.
[0265] exist Fig. 9 In the electronic device 2000 shown, the processor 2004 can be used to call the computer program stored in the memory 2008 to implement:
[0266] Acquire a target user, and acquire target user information of the target user;
[0267] Acquire a target business prediction model, acquire target business volumes corresponding to the target user information and multiple business objects based on the target business prediction model, and determine the business object with the largest target business volume as the recommended business object;
[0268] The target business prediction model is obtained after training the initial business prediction model based on sample user information of multiple sample users, target business objects and sample reward business volumes; the sample reward business volume is generated based on the target business object and the predicted business object and maximum predicted business volume determined based on the initial business prediction model; the predicted business object is the business object with the maximum predicted business volume among the multiple business objects.
[0269] It should be understood that the electronic device 2000 described in the embodiment of the present invention can execute the above Figure 6 The description of the business data processing method in the corresponding embodiment can also be performed as described above. Figure 8 The description of the business data processing device 2 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0270] In addition, it should be pointed out here that: the embodiment of the present invention further provides a computer storage medium, and the computer storage medium stores a computer program executed by the business data processing device 2 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned Figure 6 The description of the business data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer storage medium embodiment involved in the present invention, please refer to the description of the method embodiment of the present invention.
[0271] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0272] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A business data processing method, characterized in that: include: Acquire target sample user information of a target sample user from a target business sample set, and acquire a target business object having a binding relationship with the target sample user information; Acquire a predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is a business object having the largest predicted business volume among multiple business objects; Obtaining the unit time period to which the target sample user belongs as the target unit time period; Acquire a target business state of the target business object within the target unit time period, and determine a sample output resource according to the target business state; Determine a reward parameter corresponding to the target sample user information according to the target business object, the predicted business object and the sample output resource; the reward parameter is determined based on the size relationship between the input resource corresponding to the predicted business object and the input resource corresponding to the target business object, and the size relationship between the sample output resource and the output threshold; Determine the sum of the reward parameter and the maximum predicted business volume as the sample reward business volume, and adjust the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information; When the adjusted initial business prediction model meets the target convergence condition, the adjusted initial business prediction model is determined as the target business prediction model; the target business prediction model is used to predict the target user information of the target user and the target business volume corresponding to the multiple business objects respectively.
2. The method according to claim 1, characterized in that Also includes: Obtain multiple original users, and obtain sample user information and original business objects of each original user; Acquire multiple unit time periods, determine the original users corresponding to the original business objects with a valid life cycle in each unit time period as sample users, extract sample user information of the multiple sample users in each unit time period, and generate a target business sample set corresponding to each unit time period according to the extracted sample user information in each unit time period.
3. The method according to claim 1, characterized in that The step of obtaining a predicted business object corresponding to the target sample user information in the initial business prediction model; wherein the predicted business object is a business object having the largest predicted business volume among multiple business objects, includes: The target sample user information and each business object are respectively combined into sample tuples, and multiple sample tuples are used as initial input parameters; each sample tuple includes the target sample user information and a business object; Obtain the initial business prediction model, obtain the predicted business volume corresponding to each initial input parameter based on the initial business prediction model, select the maximum predicted business volume from multiple predicted business volumes, and determine the business object in the initial input parameter corresponding to the maximum predicted business volume as the predicted business object.
4. The method according to claim 1, characterized in that: The step of determining a reward parameter corresponding to the target sample user information according to the target business object, the predicted business object, and the sample output resource includes: If the input resources corresponding to the predicted business object are less than or equal to the input resources corresponding to the target business object, and the sample output resources are equal to the output threshold, the reward parameter is determined according to the input resources corresponding to the target business object and the target weight; the target weight is determined according to the effective life span of the target business object; If the input resource corresponding to the predicted business object is less than or equal to the input resource corresponding to the target business object, and the sample output resource is less than the output threshold, the sample output resource is used as the reward parameter; If the input resources corresponding to the predicted business object are greater than the input resources corresponding to the target business object, the target value is used as the reward parameter.
5. The method according to claim 1, characterized in that: The adjusting the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information includes: Acquire an initial model function associated with the initial business prediction model; Generate a target fitting function according to the target sample user information, the predicted business object and the initial model function; the target fitting function includes model variable parameters and auxiliary input parameters; the auxiliary input parameters include a tuple composed of the target sample user information and the predicted business object; Generate a target loss function according to the sample reward business volume and the target fitting function; Determine the parameter value of the model variable parameter in the target fitting function based on the gradient descent rule as the target parameter value; the target parameter value refers to the value of the model variable parameter corresponding to the minimum function value of the target loss function; The model variable parameters in the initial model function are updated to the target parameter values.
6. The method according to claim 1, characterized in that Also includes Acquire a target user and target user information of the target user, combine the target user information and each business object into a target tuple, and use multiple target tuples as target input parameters; each target tuple includes the target user information and a business object; The target business volume corresponding to each target input parameter is obtained based on the target business prediction model, and the business object among the target input parameters having the largest target business volume is determined as the recommended business object.
7. The method according to claim 2, characterized in that Also includes: Acquire multiple sets of model hyperparameters, and select one set of model hyperparameters from the multiple sets of model hyperparameters as the hyperparameters to be determined; Extracting training users from sample users included in all target service sample sets, dividing the training users into multiple user sets, extracting one user set from the user sets as a first set, and the remaining user sets as a second set; The business objects having a binding relationship with the sample user information of the training user all have a business status within a unit time period having a valid life cycle; generating a sample business prediction model according to the to-be-determined hyperparameter, sample user information of sample users in the second set, and a business object having a binding relationship with the sample user information of sample users in the second set; the sample business prediction model satisfies the target convergence condition; determining a traffic volume error according to the sample traffic prediction model, sample user information of sample users in the first set, and a traffic object having a binding relationship with the sample user information of the sample users in the first set; When each user set is determined to be the first set, taking an average value of a plurality of traffic errors as a hyperparameter error of the hyperparameter to be determined; Selecting a next set of model hyperparameters from the multiple sets of model hyperparameters as the hyperparameters to be determined; When each group of model hyperparameters is determined as the hyperparameters to be determined, the hyperparameters to be determined with the lowest hyperparameter error are used as the target hyperparameters; The target hyperparameters are used to generate the initial business prediction model.
8. The method according to claim 7, characterized in that The determining of the traffic volume error according to the sample traffic prediction model, the sample user information of the sample users in the first set, and the traffic object having a binding relationship with the sample user information of the sample users in the first set includes: Based on the sample business prediction model, sample user information of sample users in the first set and training business volumes corresponding to the multiple business objects are obtained, a maximum training business volume is determined as a first business volume from the multiple training business volumes, and a business object corresponding to the maximum training business volume is determined as the first object; Determine a business object having a binding relationship with the sample user information of the sample users in the first set as a second object, and determine a second business volume according to input resources corresponding to the second object and a business state of the second object in all unit time periods; A first error is determined according to the first object and the second object, a second error is determined according to the first traffic volume and the second traffic volume, and a sum of the first error and the second error is used as the traffic volume error.
9. The method according to claim 1, characterized in that: Also includes: When the number of adjustments reaches a number threshold, determining that the adjusted initial business forecast model meets the target convergence condition; or, When the difference between the model variable parameters of the adjusted initial business prediction model and the model variable parameters of the initial business prediction model before adjustment is less than the difference threshold, it is determined that the adjusted initial business prediction model meets the target convergence condition.
10. A business data processing method, characterized in that: include Acquire a target user, and acquire target user information of the target user; Acquire a target business prediction model, acquire target business volumes corresponding to the target user information and multiple business objects based on the target business prediction model, and determine the business object with the largest target business volume as the recommended business object; The target business prediction model is obtained by training an initial business prediction model based on sample user information of multiple sample users, target business objects, and sample reward business volumes; The multiple sample users include a target sample user, and the sample reward business volume refers to the sum of a reward parameter corresponding to the target sample user and a maximum predicted business volume determined by the initial business prediction model, the reward parameter is determined based on the target business object, the predicted business object determined by the initial business prediction model and the sample output resources, and the reward parameter is determined based on the size relationship between the input resources corresponding to the predicted business object and the input resources corresponding to the target business object, and the size relationship between the sample output resources and the output threshold; the predicted business object is the business object with the maximum predicted business volume among the multiple business objects; the sample output resource is determined based on the target business state of the target business object within a target unit time period, and the target unit time period refers to the unit time period to which the target sample user belongs.
11. A business data processing device, characterized in that: include: A first acquisition module is used to acquire target sample user information of target sample users from a target business sample set, and acquire a target business object having a binding relationship with the target sample user information; A second acquisition module is used to acquire a predicted business object corresponding to the target sample user information in the initial business prediction model; the predicted business object is a business object having the largest predicted business volume among multiple business objects; A business volume determination module, used to obtain the unit time period to which the target sample user belongs as the target unit time period, obtain the target business state of the target business object in the target unit time period, determine the sample output resource according to the target business state, and determine the reward parameter corresponding to the target sample user information according to the target business object, the predicted business object and the sample output resource; the reward parameter is determined based on the size relationship between the input resource corresponding to the predicted business object and the input resource corresponding to the target business object, and the size relationship between the sample output resource and the output threshold; The business volume determination module is further used to determine the sum of the reward parameter and the maximum predicted business volume as the sample reward business volume; An adjustment module, used for adjusting the initial business prediction model according to the sample reward business volume, the predicted business object and the target sample user information; The model determination module is used to determine the adjusted initial business prediction model as the target business prediction model when the adjusted initial business prediction model meets the target convergence condition; the target business prediction model is used to predict the target user information of the target user and the target business volume corresponding to the multiple business objects respectively.
12. A business data processing device, characterized in that: include A third acquisition module is used to acquire a target user and acquire target user information of the target user; The third acquisition module is also used to obtain the target business prediction model; A second object determination module, configured to obtain target business volumes corresponding to the target user information and a plurality of business objects respectively based on the target business prediction model; The third acquisition module is further used to determine the business object with the largest target business volume as the recommended business object; The target business prediction model is obtained by training an initial business prediction model based on sample user information of multiple sample users, target business objects, and sample reward business volumes; The multiple sample users include a target sample user, and the sample reward business volume refers to the sum of a reward parameter corresponding to the target sample user and a maximum predicted business volume determined by the initial business prediction model, the reward parameter is determined based on the target business object, the predicted business object determined by the initial business prediction model and the sample output resources, and the reward parameter is determined based on the size relationship between the input resources corresponding to the predicted business object and the input resources corresponding to the target business object, and the size relationship between the sample output resources and the output threshold; the predicted business object is the business object with the maximum predicted business volume among the multiple business objects; the sample output resource is determined based on the target business state of the target business object within a target unit time period, and the target unit time period refers to the unit time period to which the target sample user belongs.
13. An electronic device, characterized in that: include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute the method according to any one of claims 1 to 10.
14. A computer storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 10 is executed.
