Loss prediction result acquisition method and device, equipment and storage medium

By calculating the training loss of the user account churn prediction model and adjusting the parameters, it distinguishes whether the user account is retained by compensation or cannot be retained, which solves the problem in the existing technology of being unable to distinguish between user accounts that naturally lose and user accounts that can be retained by compensation, and improves compensation. Reasonability of operations and user account retention rate.

CN118690189APending Publication Date: 2024-09-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310340060.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing churn prediction models cannot effectively distinguish between naturally lost user accounts and compensated retained user accounts, resulting in insufficient rationality of compensation operations.

Method used

By obtaining the first predicted probability, the second predicted probability, and the third predicted probability of the user account, the training loss of the churn prediction model is calculated, and the model parameters are adjusted to obtain a churn prediction model that can distinguish whether the user account can be retained or cannot be retained for compensation. .

Benefits of technology

It improves the rationality of the compensation operation, ensures reasonable compensation for user accounts, and improves the retention rate of user accounts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690189A
    Figure CN118690189A
Patent Text Reader

Abstract

The invention discloses a loss prediction result acquisition method and device, equipment and a storage medium, and relates to the technical field of artificial intelligence. The method comprises the following steps: acquiring a training sample of a user account for an application program; performing loss prediction on the training sample through a loss prediction model to obtain a first prediction probability representing the possibility that the user account is lost in the future and a second prediction probability representing the possibility that the user account is still lost in the future after compensation operation, the third prediction probability represents the possibility that the uncompensated operation of the user account is lost in the future; based on the first prediction probability, the second prediction probability and the third prediction probability, obtaining a training loss of the loss prediction model, the training loss being used for representing a gain brought by the compensation operation; and adjusting parameters of the loss prediction model according to the training loss. According to the embodiment of the invention, the compensation retentable and the compensation non-retentable can be distinguished through the model, so that the providing reasonability of the compensation operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a method, device, equipment and storage medium for obtaining churn prediction results. Background Art

[0002] With the development of artificial intelligence technology, machine learning technology has been widely used in the task of preventing user account loss. User account loss prevention refers to the process of preventing user account loss. If a user account does not complete key behaviors (such as logging in, playing games, etc.) in a product (such as game applications) within a specified time period, it can be judged that the user account has been lost, that is, the product has lost the user corresponding to the user account.

[0003] In the related art, a neural network model is trained with a large amount of sample data to obtain a churn prediction model that can predict the possibility of churn of a user account. The churn prediction model is then used to obtain the churn prediction probability (i.e., churn possibility) corresponding to the target user account. When the churn prediction probability meets the compensation conditions, the target user account is compensated so that the target user account is retained.

[0004] However, some user accounts are naturally lost user accounts, that is, these user accounts will be lost regardless of compensation or not. Therefore, it is not reasonable to compensate user accounts only based on the predicted probability of loss. Summary of the invention

[0005] The embodiment of the present application provides a method, device, equipment and storage medium for obtaining churn prediction results, which can enable the churn prediction model to distinguish between "natural churn user accounts (i.e., compensation cannot be retained)" and "compensation can be retained user accounts", thereby improving the rationality of providing compensation operations. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for obtaining a churn prediction result is provided, the method comprising:

[0007] Acquire a training sample, wherein the training sample includes usage data of a user account for an application, wherein the usage data is used to characterize usage of the application by the user account within a specified period of time;

[0008] Perform churn prediction on the training sample by using a churn prediction model to obtain a first prediction probability, a second prediction probability and a third prediction probability corresponding to the training sample, wherein the first prediction probability is used to characterize the possibility that the user account will churn in the future, the second prediction probability is used to characterize the possibility that the user account will still churn in the future after a compensation operation, and the third prediction probability is used to characterize the possibility that the user account will churn in the future without a compensation operation;

[0009] Based on the first prediction probability, the second prediction probability and the third prediction probability, obtaining a training loss of the churn prediction model, wherein the training loss is used to characterize a gain brought by the compensation operation;

[0010] The parameters of the churn prediction model are adjusted according to the training loss to obtain a trained churn prediction model, and the trained churn prediction model is used to obtain a churn prediction result of the user account, and the churn prediction result is used to indicate whether to provide a compensation operation for the user account.

[0011] According to one aspect of an embodiment of the present application, a method for obtaining a churn prediction result is provided, the method comprising:

[0012] Acquire an input sample, wherein the input sample includes usage data of an online active user account for an application, wherein the usage data is used to characterize usage of the application by the online active user account within a specified period of time;

[0013] performing churn prediction on the online active user account according to the usage data through a churn prediction model to obtain a churn prediction result of the online active user account, wherein the churn prediction result is used to characterize whether the online active user account will be churned in the future and whether the online active user account will be retained after the compensation operation;

[0014] When the churn prediction result satisfies a compensation condition, a compensation operation is provided for the online active user account.

[0015] According to one aspect of an embodiment of the present application, a device for obtaining a churn prediction result is provided, the device comprising:

[0016] A training sample acquisition module, used to acquire training samples, wherein the training samples include usage data of a user account for an application, wherein the usage data is used to characterize usage of the application by the user account within a specified period of time;

[0017] A prediction probability acquisition module, used to perform churn prediction on the training sample through a churn prediction model, and obtain a first prediction probability, a second prediction probability and a third prediction probability corresponding to the training sample, wherein the first prediction probability is used to characterize the possibility that the user account will churn in the future, the second prediction probability is used to characterize the possibility that the user account will still churn in the future after the compensation operation, and the third prediction probability is used to characterize the possibility that the user account will churn in the future without the anti-churn compensation operation;

[0018] A training loss acquisition module, used to obtain the training loss of the churn prediction model based on the first prediction probability, the second prediction probability and the third prediction probability, wherein the training loss is used to characterize the gain brought by the compensation operation;

[0019] A prediction model training module is used to adjust the parameters of the churn prediction model according to the training loss to obtain a trained churn prediction model. The trained churn prediction model is used to obtain the churn prediction result of the user account, and the churn prediction result is used to indicate whether to provide a compensation operation for the user account.

[0020] According to one aspect of an embodiment of the present application, a device for obtaining a churn prediction result is provided, the device comprising:

[0021] An input sample acquisition module, used to acquire an input sample, wherein the input sample includes usage data of an online active user account for an application, wherein the usage data is used to characterize usage of the application by the online active user account within a specified period of time;

[0022] a prediction result acquisition module, configured to perform churn prediction on the online active user account according to the usage data through a churn prediction model, and obtain a churn prediction result of the online active user account, wherein the churn prediction result is used to indicate whether the online active user account will be churned in the future, and whether the online active user account will be retained after the compensation operation;

[0023] The user account compensation module is used to provide a compensation operation for the online active user account when the churn prediction result meets the compensation condition.

[0024] According to one aspect of an embodiment of the present application, a computer device is provided, which includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned method for obtaining the churn prediction result.

[0025] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned method for obtaining the churn prediction result.

[0026] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned method for obtaining a churn prediction result.

[0027] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0028] The training loss of the churn prediction model is obtained based on a first prediction probability for characterizing the possibility that the user account will churn in the future, a second prediction probability for characterizing the possibility that the user account will still churn in the future after the compensation operation, and a third prediction probability for characterizing the possibility that the user account will churn in the future without the compensation operation. The churn prediction model is then trained by the training loss, so that the churn prediction model can learn the relationship between usage data and churn through the first prediction probability, and the relationship between the compensation operation and churn through the gain brought by the compensation operation (i.e., the second prediction probability and the third prediction probability). Since the gain brought by the compensation operation is equivalent to maximizing the probability of "compensation retention-compensation non-retention", the churn prediction result of the churn prediction model can be used to predict whether the user is "compensated retention" or "compensated non-retention". Compared with the model in the related art that can only distinguish whether the user is churned or not, the embodiment of the present application can reasonably provide compensation operations for the user account according to the churn prediction results of the user account, thereby improving the rationality of providing compensation operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0031] Figure 2 It is a schematic diagram of the structure of a churn prediction model provided by an embodiment of the present application;

[0032] Figure 3 It is a flowchart of a method for obtaining churn prediction results provided by an embodiment of the present application;

[0033] Figure 4 is a flow chart of a method for obtaining churn prediction results provided by another embodiment of the present application;

[0034] Figure 5 is a schematic diagram of a game match interface provided by an embodiment of the present application;

[0035] Figure 6 It is a schematic diagram of a method for obtaining churn prediction results in a gaming application provided in an embodiment of the present application;

[0036] Figure 7 It is a schematic diagram of the hardware part of the method for obtaining the churn prediction result provided by one embodiment of the present application;

[0037] Figure 8 It is a schematic diagram of the software part of the method for obtaining the churn prediction result provided by one embodiment of the present application;

[0038] Fig. 9 It is a block diagram of a device for obtaining churn prediction results provided by an embodiment of the present application;

[0039] Fig.10 is a block diagram of a device for obtaining churn prediction results provided by another embodiment of the present application;

[0040] Fig.11 It is a block diagram of a computer device provided by one embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0042] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0043] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0044] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0045] The technical solution provided in the embodiment of the present application involves artificial intelligence machine learning technology, which uses machine learning technology to train a churn prediction model based on training samples to obtain a trained churn prediction model. The trained churn prediction model can be used to predict churn for user accounts to determine the possibility of churn of the user account in the future, and the possibility of retention of the user account after providing compensation operations for the user account.

[0046] In the method provided in the embodiment of the present application, the execution subject of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. The computer device may be a terminal device such as a PC (Personal Computer), a tablet computer, a smart phone, a wearable device, an intelligent robot, a vehicle-mounted device, etc.; it may also be a server. Among them, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0047] The technical solution provided by the embodiment of the present application is applicable to any scenario that requires churn prediction or compensation judgment, such as the confirmation scenario of whether to provide compensation operation, the user account churn prevention scenario, the user account churn prediction scenario, the churn prevention analysis scenario, the churn prevention strategy formulation scenario, etc. The technical solution provided by the embodiment of the present application can improve the rationality of providing compensation operation, thereby facilitating the improvement of user account retention rate.

[0048] For an example, see Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment may include a model training device 10 and a model using device 20.

[0049] The model training device 10 can be an electronic device such as a PC, a computer, a tablet computer, a server, an intelligent robot, a vehicle-mounted terminal, or some other electronic device with strong computing power, or a server, which is not limited in the embodiment of the present application. The model training device 10 is used to train the churn prediction model 30. The churn prediction model 30 is used to predict the churn of user accounts to determine the possibility of the user account churn in the future, and the possibility of the user account being retained after compensation for the user account.

[0050] The above-mentioned user account may refer to a user account registered in a target application, such as a game application, a shopping application, a social entertainment application, an audio and video playback application, a browser application, a live broadcast application, etc., which is not limited in the embodiments of the present application. Exemplarily, the above-mentioned game application may refer to applications corresponding to tactical competitive games, third-person shooting games (TPS), first-person shooting games (FPS), multiplayer online tactical competitive games (MOBA) games, multiplayer gunfight survival games, etc., which are not limited in the embodiments of the present application.

[0051] Optionally, user account churn may refer to the user account no longer using the registered target application, for example, the user account has not logged into the target application within a specified time period. User account churn prevention may refer to providing certain compensation operations for the user account, such as increasing the user account's gains to a certain extent, such as game revenue compensation operations, game difficulty adjustment compensation operations, welfare distribution compensation operations, discount adjustment compensation operations, etc. User account retention may refer to the user account continuing to use the registered target application.

[0052] Optionally, a neural network may be used to construct the churn prediction model 30, such as DNN (Deep Neural Network), CNN (Convolutional Neural Network), FCNN (Fully Connected Neural Network), etc., which is not limited in the embodiments of the present application.

[0053] In one example, reference Figure 2 , which is a schematic diagram of the structure of a churn prediction model provided by an embodiment of the present application. Figure 2As shown, the churn prediction model 30 is constructed using DNN, and the churn prediction model 30 may include an input layer 310, a hidden layer 320 and an output layer 330, and the layers are fully connected. Among them, the input layer 310 is used to obtain the input vector (such as word embedding) of the training sample. The hidden layer 320 is used to convert the input vector into a complex function to output the feature representation corresponding to the training sample. There can be multiple hidden layers 320, and the hidden layer can also be called an FC (Full Connection) layer. The output layer 330 is used to predict according to the output of the hidden layer 320 to obtain the prediction probability. There can also be multiple output layers 330, and an activation function is deployed in the output layer 330. In the embodiment of the present application, the churn prediction model 30 has three output layers 330, which are used to predict the possibility that the user account will be lost in the future, the possibility that the user account will still be lost in the future after the compensation operation, and the possibility that the user account will be lost in the future without the compensation operation (i.e., compensating the user account).

[0054] Optionally, the churn prediction model 30 may further include an LR (Logistic Regression) layer, an FM (Factorization Machine) layer, a GRU (Gate Recurrent Unit) layer, etc. ( Figure 2 The LR layer may be used to perform logistic regression on the feature representation to convert the feature representation into a specified range. The FM layer may be used to extract feature combinations by performing latent variable inner product on each feature representation.

[0055] Through the training samples, the model parameters of each layer in the churn prediction model 30 are iteratively optimized to obtain the trained churn prediction model 30. For example, firstly, the word embedding of the training sample is obtained through the input layer 310, and then the word embedding is input into the hidden layer 320, and then the output of the hidden layer 320 is input into the output layer 330, and the output layer 330 outputs the churn prediction result (i.e., the prediction probability), and the training loss of the churn prediction model 30 is calculated based on the churn prediction result and label data corresponding to the training sample, and then the model parameters of each layer in the churn prediction model 30 are iteratively optimized through the training loss, and the trained churn prediction model 30 can be obtained.

[0056] Optionally, an Xgboost (Extreme Gradient Boosting) algorithm may also be used to construct the churn prediction model 30. The Xgboost algorithm is an integrated machine learning algorithm based on a decision tree, which can use a large number of training samples to predict the target variable.

[0057] In the embodiment of the present application, the trained churn prediction model 30 can be obtained by using the Xgboost algorithm through training samples. The trained churn prediction model 30 includes at least one decision tree, each decision tree corresponds to a mapping function (such as a binary classifier), which can map the user account to the corresponding leaf node, and can be used to predict the possibility of the user account churn in the future, and the possibility of the user account being retained after compensation for the user account.

[0058] Exemplarily, assuming that the depth of the decision tree is 6 and the number of iterations is 50, the trained churn prediction model 30 can include 50 decision trees with a depth of 6. Each round of iteration can split a decision tree with a depth of 6. In the first round of iteration, based on the predicted probability value of the training sample in the decision tree and the label data corresponding to the training sample, the training loss is calculated, and then the regularization term is added to the training loss, so that the objective function corresponding to the decision tree can be constructed. With the goal of minimizing the objective function, the parameters of the decision tree are optimized to complete the training of the decision tree. Among them, the regularization term includes the number of leaf nodes of the decision tree and the sum of the squares of the weights of each leaf node. Starting from the second round of iteration, the objective function is updated according to the training loss (i.e., deviation) of the previous round, the increment that the current decision tree can bring (i.e., the predicted probability of the training sample in the current decision tree), and the regularization term, and the iteration is completed in sequence to obtain the trained churn prediction model 30. Optionally, in each iteration, a 10-fold cross validation can also be used to obtain the optimal number of iterations to improve the efficiency of building the decision tree.

[0059] It should be noted that the Xgboost algorithm, DNN, etc. in the embodiments of the present application will have new variants during the iteration of the algorithm. Such variants are unavoidable, but should also fall within the scope of protection of the technical solution provided by the embodiments of the present application. The usage data used in the embodiments of the present application can be added and deleted. If it is only the amount of usage data and the transformation of the newly added usage data, it should also fall within the scope of protection of the technical solution provided by the embodiments of the present application.

[0060] The trained churn prediction model 30 can be deployed in the model using device 20 for use, so as to provide services such as user account churn prediction and user account compensation judgment (i.e., whether to provide compensation operation). The model using device 20 can be a terminal device such as a mobile phone, a computer, a smart TV, a multimedia player, a wearable device, a medical device, an intelligent robot, a vehicle-mounted device, or a server, which is not limited in the embodiments of the present application.

[0061] Exemplarily, the model using device 20 can be used in a compensation judgment scenario. When the churn prediction model 30 is constructed based on DNN, the model using device 20 processes the usage data of the input sample through the churn prediction model 30 to obtain the churn prediction result corresponding to the online active user account, and when the churn prediction result meets the compensation condition, the online active user account is compensated so that the online active user account is retained.

[0062] When the churn prediction model 30 is constructed based on the Xgboost algorithm, the model using device 20 obtains the churn prediction results of the online active user account under 50 decision trees through the churn prediction model 30, and then determines whether to compensate the online active user account based on the 50 churn prediction results.

[0063] Below, the technical solution of the present application will be introduced and explained through a method embodiment.

[0064] Please refer to Figure 3 , which shows a flowchart of a method for obtaining a churn prediction result provided by an embodiment of the present application. The execution subject of each step of the method may be Figure 1 The model training device 10 in the implementation environment of the scheme shown may include the following steps (301-304).

[0065] Step 301 : obtaining a training sample, where the training sample includes usage data of a user account for an application, where the usage data is used to characterize usage of the application by the user account within a specified period of time.

[0066] The training samples in the embodiment of the present application are used to train the above-mentioned churn prediction model, which is the same as that described in the above-mentioned embodiment and will not be described again here. The above-mentioned user account may refer to a user account that has been registered in the above-mentioned target application, and the usage data is the data generated by the user account using the application. The specified time period can be set and adjusted according to actual usage needs, such as from the registration time to the current time, from a specified historical time to the current time, etc.

[0067] For example, using a game application as an example, usage data may include data generated by a user account participating in a game, such as the number of wins in the game, the number of losses in the game, the winning rate in the game, the number of people defeated in the game, etc. Usage data may be sampled from game logs.

[0068] In an embodiment of the present application, user accounts can be divided into: retained user accounts and lost user accounts, and lost user accounts can be divided into: naturally lost user accounts and compensated retainable user accounts, and compensated retainable user accounts refer to user accounts that are about to be lost but can be retained after compensation operations. For example, taking a game application as an example, when a user account is about to be lost, the game experience of the user account can be improved by adjusting the difficulty of the game match corresponding to the user account, so that the user account can be retained, and the user account is a compensated retainable user account. If the user account cannot be retained after the compensation operation, the user account is a naturally lost user account. Optionally, the difficulty of the game match can be reduced by selecting a weaker opponent for the user account, selecting an opponent with equivalent ability for the user account, etc.

[0069] Optionally, the training samples can be based on user accounts, and the usage data corresponding to each user account constitutes a training sample. During the training process of the churn prediction model, a large number of training samples are required to perform multiple rounds of iterative training on the churn prediction model to obtain a trained churn prediction model. Since the process of obtaining the training loss corresponding to each training sample is the same, the embodiment of the present application takes a certain training sample as an example for illustration.

[0070] Optionally, the training samples also include label data corresponding to the user account, and the label data is used to characterize whether the user account has been lost. In one example, it is possible to determine whether the user account has been lost based on the key behaviors of the user account in the application. For example, taking a game application as an example, if a user account logs in to the game on the first day, but does not log in to the game on the second and third days, it can be determined that the user account has been lost, and the label data of the user account is recorded as 1 to indicate that the user account is a lost user account, otherwise the label data of the user account is recorded as 0 to indicate that the user account is a retained user account. For another example, if a user account plays a game on the first day, but does not play a game on the second and third days, it can be determined that the user account has been lost.

[0071] Step 302, perform churn prediction on the training samples through the churn prediction model to obtain the first prediction probability, the second prediction probability and the third prediction probability corresponding to the training samples, the first prediction probability is used to characterize the possibility that the user account will churn in the future, the second prediction probability is used to characterize the possibility that the user account will still churn in the future after the compensation operation, and the third prediction probability is used to characterize the possibility that the user account will churn in the future without the compensation operation.

[0072] Optionally, based on the usage data corresponding to the training samples, the word embeddings corresponding to the training samples are obtained, and then the word embeddings of the training samples are input into the churn prediction model. The word embeddings of the training samples are processed by the churn prediction model to obtain the first prediction probability, the second prediction probability and the third prediction probability corresponding to the training samples.

[0073] For example, refer to Figure 2 , three output layers 330 are deployed in the churn prediction model 30, and the three output layers 330 are used to obtain the first prediction probability, the second prediction probability and the third prediction probability corresponding to the training sample respectively. In some examples, the output layer of the churn prediction model outputs a score, and then the score is processed by logistic regression to obtain the prediction probability, which is recorded as

[0074] Among them, the first predicted probability can be used to characterize the possibility that the above-mentioned user account is a lost user account, the second predicted probability can be used to characterize the possibility that the above-mentioned user account is a naturally lost user account, and the difference between the second predicted probability and the third predicted probability can be used to characterize the gain of the compensatory operation provided for the above-mentioned user account.

[0075] The technical solution provided in the embodiment of the present application is used to provide compensation operations for the user account only when it is predicted that the user account is about to be lost, but can be retained through compensation, so as to improve the rationality of the compensation operation, thereby ensuring the balance of the application. For the same user account, it is impossible for us to see the results when it is compensated and not compensated at the same time. Therefore, the embodiment of the present application adopts the Uplift model (gain model) in causal inference to use the gain of the compensation operation to maximize the predicted probability of "loss can be retained with compensation-loss is not retained with compensation". Among them, the gain of the compensation operation can be represented by the difference between the second predicted probability and the third predicted probability, that is, the difference between the value used to characterize the possibility that the user account will still be lost in the future after the compensation operation, and the value used to characterize the possibility that the user account will be lost in the future without the compensation operation.

[0076] In this way, based on the first prediction probability, the second prediction probability and the third prediction probability, the churn prediction model can simultaneously have the ability to distinguish between "churned user accounts", "compensated retainable user accounts" and "compensated non-retained user accounts", thereby improving the rationality of providing compensation operations based on the churn prediction model.

[0077] Step 303: Based on the first prediction probability, the second prediction probability and the third prediction probability, a training loss of the churn prediction model is obtained, where the training loss is used to characterize the gain brought by the compensation operation.

[0078] Optionally, the training loss of the churn prediction model may include two parts: one for enabling the churn prediction model to learn to predict whether a user account has churned, and the other for enabling the churn prediction model to learn a gain brought by a compensation operation.

[0079] Based on the first prediction probability, a first training loss of the churn prediction model can be obtained, and the first training loss is used to characterize the prediction accuracy of the churn prediction model for churn.

[0080] In one example, the process of obtaining the first training loss may be as follows: obtaining a first logarithm corresponding to the first predicted probability, multiplying the first weight parameter by the first logarithm to obtain a first intermediate parameter, subtracting 1 from the first predicted probability to obtain a first difference, obtaining a second logarithm corresponding to the first difference, multiplying the second weight parameter by the second logarithm to obtain a second intermediate parameter, and summing the first intermediate parameter and the second intermediate parameter to obtain the first training loss.

[0081] Exemplarily, the first training loss can be expressed by the following formula:

[0082] L l =tlog g+(1-t)log(1-g);

[0083] Among them, t is the first weight parameter, 1-t is the second weight parameter, t can be the label data of the training sample, which is a binary variable, such as user account loss is 1, user account retention is 0, and g is the first prediction probability corresponding to the training sample.

[0084] Assuming that one iteration process includes N training samples, the first loss function corresponding to the iteration process can be the mean of the first training losses corresponding to the N training samples, which can be expressed as follows:

[0085]

[0086] A second training loss of the churn prediction model may be obtained based on the second prediction probability and the third prediction probability, and the second training loss is used to characterize a gain brought by the compensation operation.

[0087] In one example, the process of obtaining the second training loss can be as follows: subtract the second predicted probability from the third predicted probability to obtain the first transition probability; obtain the third logarithm corresponding to the first transition probability; multiply the value corresponding to the label data by the third logarithm to obtain the third intermediate parameter; subtract 1 from the first transition probability to obtain the second transition probability; obtain the fourth logarithm corresponding to the second transition probability; subtract 1 from the value corresponding to the label data to obtain the second difference; multiply the second difference by the fourth logarithm to obtain the fourth intermediate parameter; sum the third intermediate parameter and the fourth intermediate parameter to obtain the second training loss.

[0088] Exemplarily, the second training loss can be expressed by the following formula:

[0089] L2=ylog p+(1-y)log(1-p);

[0090] Wherein, y is the label data of the training sample, which is a binary variable, such as y=1 indicates that the user account is compensated, y=0 indicates that the user account is not compensated, and p is the difference between the second prediction probability and the third prediction probability.

[0091] Assuming that one iteration process includes N training samples, the second loss function corresponding to the iteration process can be the mean of the second training losses corresponding to the N training samples, which can be expressed as follows:

[0092]

[0093] In one example, when the churn prediction model is constructed using a deep neural network, the training loss of the churn prediction model can be determined based on the first training loss and the second training loss. For example, in an iteration, the first training loss and the second training loss corresponding to the iteration are subtracted to obtain the training loss of the churn prediction model, which is recorded as L l -L2.

[0094] When the churn prediction model is constructed using the Xgboost algorithm, the churn prediction model includes at least one decision tree, which can be used to obtain a first prediction probability, a second prediction probability, and a third prediction probability corresponding to the training sample.

[0095] A decision tree is constructed in one round of iteration. In the process of constructing each decision tree, the first training loss of the churn prediction model can be obtained based on the first prediction probability corresponding to the decision tree. The first training loss is used to characterize the prediction accuracy of the churn prediction model for churn; the first training loss is determined as the training loss of the churn prediction model. Alternatively, the second training loss of the churn prediction model is obtained based on the second prediction probability and the third prediction probability corresponding to the decision tree. The second training loss is used to characterize the gain brought by the compensation operation; the second training loss is determined as the training loss of the churn prediction model.

[0096] Step 304, adjusting the parameters of the churn prediction model according to the training loss to obtain a trained churn prediction model, which is used to obtain a churn prediction result of the user account, and the churn prediction result is used to indicate whether to provide a compensation operation for the user account.

[0097] Optionally, when the churn prediction model is constructed using a deep neural network, the parameters of the churn prediction model can be iteratively adjusted with the goal of minimizing the training loss to obtain a trained churn prediction model. That is, the first training loss is minimized while the second training loss is maximized, so that the churn prediction model can simultaneously have the ability to distinguish between "churned user accounts", "compensated retainable user accounts" and "compensated non-retainable user accounts", and then the churn prediction results of the user accounts can be obtained based on the trained churn prediction model, and the churn type to which the user account belongs can be determined based on the churn prediction results to determine whether the user account can be retained through compensation operations, thereby improving the rationality of providing compensation operations.

[0098] Optionally, when the churn prediction model is constructed using the Xgboost algorithm, the objective function of the decision tree can be constructed based on the training loss of the churn prediction model; the parameters of the decision tree are iteratively adjusted with the goal of minimizing the objective function to obtain a trained churn prediction model. As the number of iterations increases, the output corresponding to the obtained decision tree is closer to the label data of the training sample.

[0099] Exemplarily, the objective function corresponding to the t-th decision tree can be expressed as follows:

[0100]

[0101] in, represents the first training loss or the second training loss corresponding to the t-1th decision tree, f t (x i ) is the t-th decision tree for x i The predicted probability, Ω(f t ) is the regularization term corresponding to the t-th decision tree (which can represent the complexity of the t-th decision tree), x i is the i-th training sample, y i is the label data corresponding to the i-th training sample, It is the sum of the predicted probabilities of the first t-1 decision trees (such as the first predicted probability, the second predicted probability, or the third predicted probability).

[0102] In summary, the technical solution provided by the embodiment of the present application obtains the training loss of the churn prediction model based on the first prediction probability used to characterize the possibility that the user account will churn in the future, the second prediction probability used to characterize the possibility that the user account will still churn in the future after the compensation operation, and the third prediction probability used to characterize the possibility that the user account will churn in the future without the compensation operation, and then trains the churn prediction model through the training loss, so that the churn prediction model can learn the relationship between usage data and churn through the first prediction probability, and learn the relationship between the compensation operation and churn through the gain brought by the compensation operation (i.e., the second prediction probability and the third prediction probability). Since the gain brought by the compensation operation is equivalent to maximizing the probability of "compensation retention-compensation non-retention", the churn prediction result of the churn prediction model can be used to predict whether the user is "compensated retention" or "compensated non-retention". Compared with the model in the related art that can only distinguish whether the user is churned or not, the embodiment of the present application can reasonably provide compensation operations for the user account according to the churn prediction results of the user account, thereby improving the rationality of providing compensation operations.

[0103] In addition, when the churn prediction model is constructed using a deep neural network, using the first training loss and the second training loss to train the churn prediction model at the same time can improve the prediction accuracy of the churn prediction model and further improve the rationality of providing compensation operations. When the churn prediction model is constructed using the Xgboost algorithm, using the first training loss or the second training loss to train the churn prediction model is conducive to improving the training efficiency of the churn prediction model.

[0104] Please refer to Figure 4 , which shows a flowchart of a method for obtaining a churn prediction result provided by another embodiment of the present application. The execution subject of each step of the method may be Figure 1 The model in the implementation environment of the solution shown uses a device 20, and the method may include the following steps (401-403).

[0105] Step 401 : obtaining an input sample, where the input sample includes usage data of an online active user account for an application, where the usage data is used to characterize usage of the application by the online active user account within a specified period of time.

[0106] The above-mentioned online active user accounts refer to user accounts that have logged into the application within the set period, and are user accounts to be predicted for churn and to be judged for compensation. For example, if a user account logs into a game on the same day, then the user account is an online active user account for the game; if the user account does not log into a game on the same day, then the user account is an inactive user account for the game.

[0107] For online active user accounts, their corresponding usage data can be used as input of the churn prediction model. The sampling method of the online active user accounts' usage data for applications can be the same as the sampling method of the usage data corresponding to the training samples in the above embodiment.

[0108] Step 402, using a churn prediction model to perform churn prediction on online active user accounts according to usage data, and obtaining churn prediction results of online active user accounts, wherein the churn prediction results are used to characterize whether online active user accounts will churn in the future, and whether online active user accounts will be retained after compensation operations.

[0109] Optionally, word embeddings corresponding to online active user accounts are obtained according to usage data corresponding to online active user accounts, and then the word embeddings corresponding to online active user accounts are input into a churn prediction model, so that the word embeddings corresponding to online active user accounts are processed by the churn prediction model to obtain churn prediction results of online active user accounts.

[0110] In one example, when the churn prediction model is constructed using a deep neural network, the churn prediction results of online active user accounts may include a first prediction probability, a second prediction probability, and a third prediction probability. The first prediction probability is used to characterize the possibility that the online active user account will churn in the future, the second prediction probability is used to characterize the possibility that the online active user account will still churn in the future after compensation operations, and the third prediction probability is used to characterize the possibility that the online active user account will churn in the future without compensation operations.

[0111] In another example, when the churn prediction model is constructed using the Xgboost algorithm, the churn prediction results of online active user accounts may include only the first prediction probability, or may include the second prediction probability and the third prediction probability. When the churn prediction model is trained using the second prediction probability and the third prediction probability, the churn prediction results of online active user accounts may include only the first prediction probability; when the churn prediction model is trained using the first prediction probability, the churn prediction results of online active user accounts may include only the second prediction probability and the third prediction probability.

[0112] The churn prediction model includes at least one decision tree, the first prediction probability is the sum of the first sub-prediction probabilities corresponding to the at least one decision tree, the second prediction probability is the sum of the second sub-prediction probabilities corresponding to the at least one decision tree, and the third prediction probability is the sum of the third sub-prediction probabilities corresponding to the at least one decision tree. The first sub-prediction probability refers to the first prediction probability of an online active user account under a certain decision tree, the second sub-prediction probability refers to the second prediction probability of an online active user account under a certain decision tree, and the third sub-prediction probability refers to the third prediction probability of an online active user account under a certain decision tree.

[0113] Step 403: When the prediction result satisfies the compensation condition, a compensation operation is provided for the online active user account.

[0114] Optionally, when the churn prediction model is constructed using a deep neural network, a compensation operation is provided for the online active user account when the first predicted probability is greater than or equal to a first threshold and the difference between the second predicted probability and the third predicted probability is greater than or equal to a second threshold.

[0115] The first threshold and the second threshold can be set and adjusted according to the experience value, which is not limited in the embodiment of the present application. The first predicted probability is greater than or equal to the first threshold to indicate that the online active user account will be lost in the future, and the difference between the second predicted probability and the third predicted probability is greater than or equal to the second threshold to indicate that the gain brought by compensating the user account is greater than or equal to the second threshold, that is, the online active user account will be lost in the future, but the online active user account will be retained after the compensation operation.

[0116] In the case where the churn prediction model is constructed using the Xgboost algorithm, if the churn prediction model is trained using the first prediction probability (i.e., the first training loss mentioned above), a compensation operation is provided for the online active user account when the difference between the second prediction probability and the third prediction probability is greater than or equal to the second threshold. If the churn prediction model is trained using the second prediction probability and the third prediction probability (i.e., the second training loss mentioned above), a compensation operation is provided for the online active user account when the difference between the first prediction probabilities is greater than or equal to the first threshold.

[0117] In some feasible examples, the churn prediction model constructed with a deep neural network can be recorded as the first model, and the churn prediction model constructed with the Xgboost algorithm can be recorded as the second model. The first prediction probability under the first model and the first prediction probability under the second model are weightedly summed to obtain the final first prediction probability. The second prediction probability under the first model and the second prediction probability under the second model are weighted summed to obtain the final second prediction probability. The third prediction probability under the first model and the third prediction probability under the second model are weighted summed to obtain the final third prediction probability. When the final first prediction probability is greater than or equal to the first threshold, and the difference between the final second prediction probability and the final third prediction probability is greater than or equal to the second threshold, the online active user account is compensated.

[0118] In an exemplary embodiment, taking a MOBA game as an example, the technical solution provided by the embodiment of the present application is described, which may include the following contents:

[0119] The usage scenarios of MOBA games mainly include game matches, such as single-player game matches, team game matches, etc. Figure 5 , after user account 501 starts the game, the client will match 4 teammates for the user account 501, and the hostile camp will also be composed of 5 other user accounts, and then the two camps will start the game. In the process of matching teammates and hostile camps for user account 501, the client can adjust the difficulty of the game according to the loss of user account 501. For example, when the client detects that user account 501 is about to be lost and can be retained after compensation, the client compensates the user account 501, such as matching it with teammates with stronger matching capabilities, opponents with equivalent matching capabilities, opponents with slightly weaker matching capabilities, etc., which is not limited in the embodiments of the present application.

[0120] The client can predict the churn of user account 501 according to the above churn prediction model. Figure 6 The overall solution may include an offline process 601 and an online process 602, wherein the offline process 601 is used to train a churn prediction model, and the online process 602 is used to use the trained churn prediction model.

[0121] In the offline process 601, the game data of the user account can be used to construct the training samples of the churn prediction model. For example, the game log is first put into a table, and then the game data corresponding to each user account is extracted from the table, such as the game data corresponding to the last three game games. In this way, there are enough training samples for user accounts with low login stickiness, and the game data can be used to characterize the performance of the user account in the game game. Then, the training samples required for iterative training are sampled from each user account, and finally the churn prediction model is iteratively trained using the technical solution provided in the embodiment of the present application to obtain a trained churn prediction model.

[0122] In the online process 602, for the online active user accounts in the MOBA game, the churn prediction model completed by training is used to predict the churn of the online active user accounts according to the game data corresponding to the online active user accounts, and the churn prediction results corresponding to the online active user accounts are obtained. If the churn prediction results meet the compensation conditions, the online active user accounts are compensated, otherwise the online active user accounts are not compensated. Optionally, the churn prediction results can be included in the game log for case analysis. For example, if the level of a user account is increased abnormally quickly, which affects other people, the churn prediction results can be used to assist in the analysis of the case because the churn prediction results help record the scene.

[0123] Optionally, refer to Figure 7 The hardware part of the MOBA game may include a processor 701, a memory 702, and an input-output device 703. The above-mentioned online process 602 may be implemented in the processor 701, the memory 702 may be used to store game logs, the input-output device 703 is used for service calls of the churn prediction model to export the churn prediction model to the memory 702, and the interface of the input-output device 703 supports external calls.

[0124] Optionally, refer to Figure 8 The software part of MOBA games is mainly divided into two parts: background implementation and algorithm implementation. Background implementation mainly involves network server communication. The background server 801 of MOBA games is the main control, which can call the churn prediction service (i.e., call the churn prediction model) to determine whether it is necessary to intervene in churn. If necessary, call the churn compensation system 802 to compensate the online active user accounts. If not, no compensation will be made to the online active user accounts.

[0125] Optionally, after the online active user account is compensated, it can be determined whether the online active user account is actually retained by observing its subsequent login sequence, winning games, etc. For example, after the online active user account is compensated, if the online active user account has logged into the game within the next three days, it can be determined that the online active user account is retained.

[0126] In summary, the technical solution provided in the embodiment of the present application, through the trained churn prediction model, determines that an online active user account will be lost in the future, and the online active user account will be retained after the compensation operation, and then the online active user account is compensated, which improves the rationality of providing compensation operations, thereby improving user account stickiness and experience, and further preventing user account churn.

[0127] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0128] refer to Fig. 9 , which shows a block diagram of a device for obtaining churn prediction results provided by an embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the computer device introduced above, or it can be set in a computer device. Fig. 9 As shown, the device 900 includes: a training sample acquisition module 901, a prediction probability acquisition module 902, a training loss acquisition module 903 and a prediction model training module 904.

[0129] The training sample acquisition module 901 is used to acquire training samples, where the training samples include usage data of a user account for an application, where the usage data is used to characterize usage of the application by the user account within a specified period of time.

[0130] The prediction probability acquisition module 902 is used to perform churn prediction on the training sample through the churn prediction model to obtain the first prediction probability, the second prediction probability and the third prediction probability corresponding to the training sample, wherein the first prediction probability is used to characterize the possibility that the user account will be lost in the future, the second prediction probability is used to characterize the possibility that the user account will still be lost in the future after the compensation operation, and the third prediction probability is used to characterize the possibility that the user account will be lost in the future without the anti-churn compensation operation.

[0131] The training loss acquisition module 903 is used to obtain the training loss of the churn prediction model based on the first prediction probability, the second prediction probability and the third prediction probability, and the training loss is used to characterize the gain brought by the compensation operation.

[0132] The prediction model training module 904 is used to adjust the parameters of the churn prediction model according to the training loss to obtain a trained churn prediction model. The trained churn prediction model is used to obtain the churn prediction result of the user account, and the churn prediction result is used to indicate whether to provide compensation operation for the user account.

[0133] In some embodiments, the churn prediction model is constructed using a deep neural network; the training loss acquisition module 903 is used to:

[0134] Based on the first prediction probability, obtaining a first training loss of the churn prediction model, wherein the first training loss is used to characterize the prediction accuracy of the churn prediction model for churn;

[0135] Based on the second prediction probability and the third prediction probability, obtaining a second training loss of the churn prediction model, where the second training loss is used to characterize a gain brought by the compensation operation;

[0136] A training loss of the churn prediction model is determined according to the first training loss and the second training loss.

[0137] In some embodiments, the training loss acquisition module 903 is further used to:

[0138] Obtaining a first logarithm corresponding to the first predicted probability;

[0139] Multiplying the first weight parameter by the first logarithm to obtain a first intermediate parameter;

[0140] Subtracting 1 from the first predicted probability to obtain a first difference;

[0141] Obtaining a second logarithm corresponding to the first difference;

[0142] multiplying the second weight parameter by the second logarithm to obtain a second intermediate parameter;

[0143] The first intermediate parameter and the second intermediate parameter are summed to obtain the first training loss.

[0144] In some embodiments, the training sample further includes label data corresponding to the user account, and the label data is used to indicate whether the user account has been lost; the training loss acquisition module 903 is further used to:

[0145] Subtracting the second predicted probability from the third predicted probability to obtain a first transition probability;

[0146] Obtaining a third logarithm corresponding to the first transition probability;

[0147] Multiplying the value corresponding to the label data by the third logarithm to obtain a third intermediate parameter;

[0148] Subtracting 1 from the first transition probability to obtain a second transition probability;

[0149] Obtaining a fourth logarithm corresponding to the second transition probability;

[0150] Subtracting 1 from the value corresponding to the tag data to obtain a second difference;

[0151] multiplying the second difference by the fourth logarithm to obtain a fourth intermediate parameter;

[0152] The third intermediate parameter and the fourth intermediate parameter are summed to obtain the second training loss.

[0153] In some embodiments, the prediction model training module 904 is used to iteratively adjust the parameters of the churn prediction model with the goal of minimizing the training loss to obtain the trained churn prediction model.

[0154] In some embodiments, the churn prediction model includes at least one decision tree, and the decision tree is used to obtain the first prediction probability, the second prediction probability and the third prediction probability corresponding to the training sample; the training loss acquisition module 903 is also used to:

[0155] Based on the first prediction probability, obtaining a first training loss of the churn prediction model, wherein the first training loss is used to characterize the prediction accuracy of the churn prediction model for churn; determining the first training loss as the training loss of the churn prediction model;

[0156] Alternatively, based on the second prediction probability and the third prediction probability, a second training loss of the churn prediction model is obtained, and the second training loss is used to characterize the gain brought by the compensation operation; and the second training loss is determined as the training loss of the churn prediction model.

[0157] In some embodiments, the prediction model training module 904 is used to:

[0158] Constructing an objective function of a decision tree based on the training loss of the churn prediction model;

[0159] With the goal of minimizing the objective function, the parameters of the decision tree are iteratively adjusted to obtain the trained churn prediction model.

[0160] In summary, the technical solution provided by the embodiment of the present application obtains the training loss of the churn prediction model based on the first prediction probability used to characterize the possibility that the user account will churn in the future, the second prediction probability used to characterize the possibility that the user account will still churn in the future after the compensation operation, and the third prediction probability used to characterize the possibility that the user account will churn in the future without the compensation operation, and then trains the churn prediction model through the training loss, so that the churn prediction model can learn the relationship between usage data and churn through the first prediction probability, and learn the relationship between the compensation operation and churn through the gain brought by the compensation operation (i.e., the second prediction probability and the third prediction probability). Since the gain brought by the compensation operation is equivalent to maximizing the probability of "compensation retention-compensation non-retention", the churn prediction result of the churn prediction model can be used to predict whether the user is "compensated retention" or "compensated non-retention". Compared with the model in the related art that can only distinguish whether the user is churned or not, the embodiment of the present application can reasonably provide compensation operations for the user account according to the churn prediction results of the user account, thereby improving the rationality of providing compensation operations.

[0161] refer to Fig.10 , which shows a block diagram of a device for obtaining churn prediction results provided by another embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the computer device introduced above, or it can be set in a computer device. Fig.10 As shown, the device 1000 includes: an input sample acquisition module 1001, a prediction result acquisition module 1002 and a user account compensation module 1003.

[0162] The input sample acquisition module 1001 is used to acquire input samples, where the input samples include usage data of an online active user account for an application, where the usage data is used to characterize usage of the application by the online active user account within a specified period of time.

[0163] The prediction result acquisition module 1002 is used to perform churn prediction on the online active user account according to the usage data through a churn prediction model to obtain a churn prediction result of the online active user account, wherein the churn prediction result is used to characterize whether the online active user account will be churned in the future and whether the online active user account will be retained after the compensation operation.

[0164] The user account compensation module 1003 is used to provide a compensation operation for the online active user account when the churn prediction result meets the compensation condition.

[0165] In some embodiments, the churn prediction result includes a first prediction probability, a second prediction probability and a third prediction probability, the first prediction probability is used to characterize the possibility that the online active user account will churn in the future, the second prediction probability is used to characterize the possibility that the online active user account will still churn in the future after a compensation operation, and the third prediction probability is used to characterize the possibility that the online active user account will churn in the future without a compensation operation.

[0166] In some embodiments, the churn prediction model is constructed using a deep neural network; the user account compensation module 1003 is used to provide a compensation operation for the online active user account when the first prediction probability is greater than or equal to a first threshold and the difference between the second prediction probability and the third prediction probability is greater than or equal to a second threshold.

[0167] In some embodiments, the churn prediction model includes at least one decision tree; the first prediction probability is the sum of first sub-prediction probabilities corresponding to the at least one decision tree, the second prediction probability is the sum of second sub-prediction probabilities corresponding to the at least one decision tree, and the third prediction probability is the sum of third sub-prediction probabilities corresponding to the at least one decision tree; the user account compensation module 1003 is used to provide compensation operation for the online active user account when the difference between the second prediction probability and the third prediction probability is greater than or equal to a second threshold.

[0168] In summary, the technical solution provided in the embodiment of the present application, through the trained churn prediction model, determines that an online active user account will be lost in the future, and the online active user account will be retained after the compensation operation, and then the online active user account is compensated, which improves the rationality of providing compensation operations, thereby improving user account stickiness and experience, and further preventing user account churn.

[0169] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0170] Please refer to Fig.11 , which shows a block diagram of a computer device provided by an embodiment of the present application. The computer device can be any electronic device with data calculation, processing and storage functions, and the computer device can be implemented as Figure 1The model training device 10 and the model using device 20 in the implementation environment of the illustrated solution are specifically:

[0171] The computer device 1100 includes a central processing unit (such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit) and an FPGA (Field Programmable Gate Array)) 1101, a system memory 1104 including a RAM (Random-Access Memory) 1102 and a ROM (Read-Only Memory) 1103, and a system bus 1105 connecting the system memory 1104 and the central processing unit 1101. The computer device 1100 also includes a basic input / output system (Input Output System, I / O system) 1106 for helping various devices in the server to transmit information, and a large-capacity storage device 1107 for storing an operating system 1113, application programs 1114 and other program modules 1115.

[0172] The basic input / output system 1106 includes a display 1108 for displaying information and an input device 1109 such as a mouse and a keyboard for user inputting information. The display 1108 and the input device 1109 are connected to the central processing unit 1101 through an input / output controller 1110 connected to the system bus 1105. The basic input / output system 1106 may also include an input / output controller 1110 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1110 also provides output to a display screen, a printer, or other types of output devices.

[0173] The mass storage device 1107 is connected to the central processing unit 1101 via a mass storage controller (not shown) connected to the system bus 1105. The mass storage device 1107 and its associated computer readable medium provide non-volatile storage for the computer device 1100. That is, the mass storage device 1107 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.

[0174] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 1104 and mass storage device 1107 can be collectively referred to as memory.

[0175] According to an embodiment of the present application, the computer device 1100 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1100 can be connected to the network 1112 through the network interface unit 1111 connected to the system bus 1105, or the network interface unit 1111 can be used to connect to other types of networks or remote computer systems (not shown).

[0176] The memory also includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the above-mentioned method for obtaining the churn prediction result.

[0177] In some embodiments, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the method for obtaining the churn prediction result described above is implemented.

[0178] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0179] In some embodiments, a computer program product is further provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned method for obtaining the churn prediction result.

[0180] It should be noted that, before collecting the relevant data of the user and during the process of collecting the relevant data of the user, the embodiment of the present application can display a prompt interface, a pop-up window or output a voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that the relevant data is currently being collected, so that the present application only starts to execute the relevant steps of obtaining the relevant data of the user after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining the relevant data of the user are terminated, that is, the relevant data of the user is not obtained. In other words, all user data collected by this application are processed strictly in accordance with the requirements of the laws and regulations of relevant countries, and the informed consent or separate consent of the subject of personal information is obtained with the consent and authorization of the user. The subsequent data use and processing behavior is carried out within the scope of authorization of laws and regulations and the subject of personal information, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the user accounts, training samples, usage data, etc. involved in this application are all obtained with full authorization.

[0181] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0182] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for obtaining churn prediction results, characterized in that: The method comprises: Acquire a training sample, wherein the training sample includes usage data of a user account for an application, wherein the usage data is used to characterize usage of the application by the user account within a specified period of time; Perform churn prediction on the training sample by using a churn prediction model to obtain a first prediction probability, a second prediction probability and a third prediction probability corresponding to the training sample, wherein the first prediction probability is used to characterize the possibility that the user account will churn in the future, the second prediction probability is used to characterize the possibility that the user account will still churn in the future after a compensation operation, and the third prediction probability is used to characterize the possibility that the user account will churn in the future without a compensation operation; Based on the first prediction probability, the second prediction probability and the third prediction probability, obtaining a training loss of the churn prediction model, wherein the training loss is used to characterize a gain brought by the compensation operation; The parameters of the churn prediction model are adjusted according to the training loss to obtain a trained churn prediction model, and the trained churn prediction model is used to obtain a churn prediction result of the user account, and the churn prediction result is used to indicate whether to provide a compensation operation for the user account.

2. The method according to claim 1, characterized in that The churn prediction model is constructed using a deep neural network; The obtaining the training loss of the churn prediction model based on the first prediction probability, the second prediction probability, and the third prediction probability includes: Based on the first prediction probability, obtaining a first training loss of the churn prediction model, wherein the first training loss is used to characterize the prediction accuracy of the churn prediction model for churn; Based on the second prediction probability and the third prediction probability, obtaining a second training loss of the churn prediction model, where the second training loss is used to characterize a gain brought by the compensation operation; A training loss of the churn prediction model is determined according to the first training loss and the second training loss.

3. The method according to claim 2, characterized in that The obtaining, based on the first prediction probability, a first training loss of the churn prediction model includes: Obtaining a first logarithm corresponding to the first predicted probability; Multiplying the first weight parameter by the first logarithm to obtain a first intermediate parameter; Subtracting 1 from the first predicted probability to obtain a first difference; Obtaining a second logarithm corresponding to the first difference; multiplying the second weight parameter by the second logarithm to obtain a second intermediate parameter; The first intermediate parameter and the second intermediate parameter are summed to obtain the first training loss.

4. The method according to claim 2, characterized in that: The training sample also includes label data corresponding to the user account, and the label data is used to indicate whether the user account has been lost; The obtaining, based on the second prediction probability and the third prediction probability, a second training loss of the churn prediction model includes: Subtracting the second predicted probability from the third predicted probability to obtain a first transition probability; Obtaining a third logarithm corresponding to the first transition probability; Multiplying the value corresponding to the label data by the third logarithm to obtain a third intermediate parameter; Subtracting 1 from the first transition probability to obtain a second transition probability; Obtaining a fourth logarithm corresponding to the second transition probability; Subtracting 1 from the value corresponding to the tag data to obtain a second difference; multiplying the second difference by the fourth logarithm to obtain a fourth intermediate parameter; The third intermediate parameter and the fourth intermediate parameter are summed to obtain the second training loss.

5. The method according to claim 2, characterized in that: The step of adjusting the parameters of the churn prediction model according to the training loss to obtain a trained churn prediction model includes: With the goal of minimizing the training loss, the parameters of the churn prediction model are iteratively adjusted to obtain the trained churn prediction model.

6. The method according to claim 1, characterized in that The churn prediction model includes at least one decision tree, and the decision tree is used to obtain a first prediction probability, a second prediction probability, and a third prediction probability corresponding to the training sample; The obtaining the training loss of the churn prediction model based on the first prediction probability, the second prediction probability, and the third prediction probability includes: Based on the first prediction probability, obtaining a first training loss of the churn prediction model, wherein the first training loss is used to characterize the prediction accuracy of the churn prediction model for churn; determining the first training loss as the training loss of the churn prediction model; or, Based on the second prediction probability and the third prediction probability, a second training loss of the churn prediction model is obtained, and the second training loss is used to characterize the gain brought by the compensation operation; and the second training loss is determined as the training loss of the churn prediction model.

7. The method according to claim 6, characterized in that The step of adjusting the parameters of the churn prediction model according to the training loss to obtain a trained churn prediction model includes: Constructing an objective function of a decision tree based on the training loss of the churn prediction model; With the goal of minimizing the objective function, the parameters of the decision tree are iteratively adjusted to obtain the trained churn prediction model.

8. A method for obtaining churn prediction results, characterized in that: The method comprises: Acquire an input sample, wherein the input sample includes usage data of an online active user account for an application, wherein the usage data is used to characterize usage of the application by the online active user account within a specified period of time; performing churn prediction on the online active user account according to the usage data through a churn prediction model to obtain a churn prediction result of the online active user account, wherein the churn prediction result is used to characterize whether the online active user account will be churned in the future and whether the online active user account will be retained after the compensation operation; When the churn prediction result satisfies a compensation condition, a compensation operation is provided for the online active user account.

9. The method according to claim 8, characterized in that The churn prediction result includes a first prediction probability, a second prediction probability and a third prediction probability. The first prediction probability is used to characterize the possibility that the online active user account will churn in the future. The second prediction probability is used to characterize the possibility that the online active user account will still churn in the future after the compensation operation. The third prediction probability is used to characterize the possibility that the online active user account will churn in the future without the compensation operation.

10. The method according to claim 9, characterized in that The churn prediction model is constructed using a deep neural network; The providing a compensation operation for the online active user account when the prediction result meets the compensation condition includes: When the first predicted probability is greater than or equal to a first threshold, and a difference between the second predicted probability and the third predicted probability is greater than or equal to a second threshold, a compensation operation is provided for the online active user account.

11. The method according to claim 9, characterized in that The churn prediction model includes at least one decision tree; the first prediction probability is the sum of first sub-prediction probabilities corresponding to the at least one decision tree, the second prediction probability is the sum of second sub-prediction probabilities corresponding to the at least one decision tree, and the third prediction probability is the sum of third sub-prediction probabilities corresponding to the at least one decision tree; The providing a compensation operation for the online active user account when the prediction result meets the compensation condition includes: In a case where a difference between the second predicted probability and the third predicted probability is greater than or equal to a second threshold, a compensatory operation is provided for the online active user account.

12. A device for obtaining churn prediction results, characterized in that: The device comprises: A training sample acquisition module, used to acquire training samples, wherein the training samples include usage data of a user account for an application, wherein the usage data is used to characterize usage of the application by the user account within a specified period of time; A prediction probability acquisition module, used to perform churn prediction on the training sample through a churn prediction model, and obtain a first prediction probability, a second prediction probability and a third prediction probability corresponding to the training sample, wherein the first prediction probability is used to characterize the possibility that the user account will churn in the future, the second prediction probability is used to characterize the possibility that the user account will still churn in the future after the compensation operation, and the third prediction probability is used to characterize the possibility that the user account will churn in the future without the anti-churn compensation operation; A training loss acquisition module, used to obtain the training loss of the churn prediction model based on the first prediction probability, the second prediction probability and the third prediction probability, wherein the training loss is used to characterize the gain brought by the compensation operation; A prediction model training module is used to adjust the parameters of the churn prediction model according to the training loss to obtain a trained churn prediction model. The trained churn prediction model is used to obtain the churn prediction result of the user account, and the churn prediction result is used to indicate whether to provide a compensation operation for the user account.

13. A device for obtaining churn prediction results, characterized in that: The device comprises: An input sample acquisition module, used to acquire an input sample, wherein the input sample includes usage data of an online active user account for an application, wherein the usage data is used to characterize usage of the application by the online active user account within a specified period of time; a prediction result acquisition module, configured to perform churn prediction on the online active user account according to the usage data through a churn prediction model, and obtain a churn prediction result of the online active user account, wherein the churn prediction result is used to characterize whether the online active user account will be churned in the future, and whether the online active user account will be retained after the compensation operation; The user account compensation module is used to provide a compensation operation for the online active user account when the churn prediction result meets the compensation condition.

14. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method for obtaining the churn prediction result as described in any one of claims 1 to 7, or to implement the method for obtaining the churn prediction result as described in any one of claims 8 to 11.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the method for obtaining a churn prediction result as described in any one of claims 1 to 7, or to implement the method for obtaining a churn prediction result as described in any one of claims 8 to 11.

16. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. The processor reads and executes the computer program from the computer-readable storage medium to implement the method for obtaining the churn prediction results as described in any one of claims 1 to 7, or the method for obtaining the churn prediction results as described in any one of claims 8 to 11.

Citation Information

Cited By

  • Intervention measure acquisition method for high-loss-risk customers and related equipment

    CN119693053A