Customer loss prediction method and device, electronic equipment, storage medium and product
By building a customer churn prediction model based on the full life cycle and using survival data within the observation time interval to train the model, we solve the problems of low data utilization and the inability to predict customer departures in the existing technology, and achieve dynamic monitoring of customer churn. and the provision of operational strategies to improve customer retention and corporate competitiveness.
Patent Information
- Application Number
- CN202410725889.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-18
AI Technical Summary
Existing customer churn prediction methods cannot maximize the use of data and cannot predict when customers will leave the network. They can only predict the probability of churn within a preset period of time.
Build a customer churn prediction model based on the customer's full life cycle, use the survival data of churn and non-churn within the observation time interval for training, and generate a prediction model, including the probability and churn time of customers within the preset time period, to provide targeted operating strategy.
Realizing dynamic monitoring and prediction of customer churn risks, it can maintain long-term and stable relationships with customers, improve customer retention and stickiness, and bring competitive advantages to enterprises.
Smart Images

Figure CN118798948A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of cloud computing and big data technology, and in particular relates to a customer churn prediction method, device, electronic device, storage medium and product. Background Art
[0002] At present, with the deep integration of new-generation information technology and economic society, market competition is becoming increasingly fierce, product differences are narrowing, and the concept of "customer-centricity" is becoming increasingly prominent.
[0003] As the cost of acquiring new customers is very high and the high customer churn rate has become a common phenomenon, how to predict the churn tendency of each customer based on existing data, identify customers who are prone to churn and carry out targeted operations and maintenance to retain valuable customers has become an important research topic for operator management.
[0004] In the related technology, the prediction of customer churn is usually based on the continuous mining and analysis of the original data, and the customer churn is analyzed and predicted using different algorithms. Most of them are analyzed and predicted by continuous mining and analysis of the original data, and different algorithms are used to analyze and predict customer churn. The most widely used decision tree algorithm has a high classification accuracy, but it also has certain shortcomings. Traditional algorithms such as logistic regression and support vector machines have relatively high requirements for data accuracy. It is necessary to delete the customer data that has not been lost during the observation interval, and only use the customer data that has been lost during the observation interval for analysis and prediction, so that the utilization rate of the data is not maximized. In addition, the above analysis and prediction method can only predict the probability of customer churn within the preset time of the customer, but cannot predict when the customer will leave the network, that is, it cannot predict the time of customer churn after joining the network. Summary of the invention
[0005] The embodiments of the present application provide a customer churn prediction method, device, electronic device, storage medium and product, which can improve the defects of the customer churn prediction method used in the related art.
[0006] In a first aspect, an embodiment of the present application provides a customer churn prediction method, comprising:
[0007] Obtaining a trained customer churn prediction model; wherein the customer churn prediction model is constructed based on the entire life cycle of the customer, and the training data of the customer churn prediction model includes the survival data of customers who churn at the end of the observation time interval and the survival data of customers who do not churn;
[0008] Using the customer churn prediction model to predict the churn of each customer, and obtaining the prediction results of each customer; wherein the prediction results include the probability of the customer not churning within a preset time period and the churn time;
[0009] Provide corresponding operation strategies for each customer based on the forecast results of each customer.
[0010] In some embodiments, before obtaining the trained customer churn prediction model, the method further includes:
[0011] Based on each stage in the life cycle, define the risk function between each stage and the corresponding survival function of each stage;
[0012] According to the risk function and the survival function, the complete likelihood function of the customer churn prediction model is obtained;
[0013] The survival data of customers who have churned at the end of the observation time interval and the survival data of customers who have not churned are input into the customer churn prediction model, and the model parameters in the customer churn prediction model are fitted to obtain a trained customer churn prediction model;
[0014] Based on the trained customer churn prediction model, determine the impact of different feature variables on customer churn risk.
[0015] In some embodiments, the entire life cycle includes an introduction period, a survival period, and a decline period, and the survival period includes multiple sub-stages; based on each stage in the entire life cycle, a risk function between each stage is generated, including:
[0016] Use the logistic model to define the first probability that a customer enters the introduction period if the introduction is successful and the second probability that a customer enters the decline period if the introduction is unsuccessful;
[0017] For the case where the customer import is unsuccessful, a first risk function is generated;
[0018] In the case of successful customer introduction, the second risk function corresponding to the transition from the introduction period or survival period to the decline period, the third risk function from the introduction period to the survival period, and the third risk function corresponding to the transition from the previous sub-stage to the next sub-stage within the survival period are generated.
[0019] In some embodiments, based on each stage in the entire life cycle, a survival function corresponding to each stage is generated, including:
[0020] Generate a first survival function corresponding to the introduction period according to the first baseline risk function and the second baseline risk function; wherein the first baseline risk function is a baseline risk function for customer churn, and the second baseline risk function is a baseline risk function for customer development;
[0021] Generate a second survival function corresponding to the period of unsuccessful import according to the first baseline risk function;
[0022] A third survival function corresponding to each substage in the survival period is generated according to the first baseline risk function and the second baseline risk function.
[0023] In some embodiments, obtaining a complete likelihood function of a customer churn prediction model according to a risk function and a survival function includes:
[0024] The first likelihood contribution is obtained according to the second survival function and the first risk function; the first likelihood contribution is the likelihood contribution of the unsuccessful introduction of the individual;
[0025] The second likelihood contribution is obtained according to the second risk function corresponding to the transition from the introduction period to the decline period and the first survival function; the second likelihood contribution is the likelihood contribution of the successfully introduced individuals who have not experienced the customer development event;
[0026] The third likelihood contribution is obtained according to the third risk function of the transition from the introduction period to the survival period, the third risk function corresponding to the transition from the previous sub-stage to the next sub-stage in the survival period, the second risk function corresponding to the transition from the survival period to the decline period, the first survival function and the third survival function; the third likelihood contribution is the likelihood contribution of the successful introduction individual who has experienced the customer development event;
[0027] A complete likelihood function of the customer churn prediction model is generated based on the first likelihood contribution, the second likelihood contribution, the third likelihood contribution, the first probability, and the second probability.
[0028] In some embodiments, the survival data of customers who have churned and the survival data of customers who have not churned at the end of the observation time interval are input into the customer churn prediction model, and the model parameters in the customer churn prediction model are fitted to obtain a trained customer churn prediction model, including:
[0029] Inputting the survival data of customers who churned at the end of the observation period and the survival data of customers who did not churn into the customer churn prediction model;
[0030] Initialize the model parameters based on the input survival data;
[0031] The final estimated values of the model parameters are obtained by using an iterative optimization algorithm, and the final estimated values of the model parameters are substituted into the customer churn prediction model to obtain a trained customer churn prediction model.
[0032] In some embodiments, the final estimated values of the model parameters are obtained using an iterative optimization algorithm, including:
[0033] The complete likelihood function of the customer churn prediction model is converted into a logarithmic form to obtain a complete logarithmic likelihood function;
[0034] Calculate the expected value of the full log-likelihood function based on the model parameters;
[0035] According to the expected value of the complete log-likelihood function, the maximum likelihood estimate of the model parameters is obtained;
[0036] The maximum likelihood estimate of the model parameters is used as the updated model parameters, and the return step is to calculate the expected value of the complete log-likelihood function according to the model parameters until the model parameters converge or the maximum number of iterations is reached, and the model parameters at the end are used as the final estimate.
[0037] In some embodiments, providing corresponding operation strategies for each customer based on the prediction results of each customer includes:
[0038] Divide all customers into multiple customer groups based on the forecast results for each customer;
[0039] Match the corresponding operation strategy for each customer group.
[0040] In a second aspect, an embodiment of the present application provides a customer churn prediction device, comprising:
[0041] An acquisition module is used to acquire a trained customer churn prediction model; wherein the customer churn prediction model is constructed based on the entire life cycle of the customer, and the training data of the customer churn prediction model includes the survival data of customers who churn at the end of the observation time interval and the survival data of customers who do not churn;
[0042] A prediction module is used to predict the churn of each customer using a customer churn prediction model to obtain prediction results for each customer;
[0043] The strategy module is used to provide corresponding operation strategies for each customer based on the prediction results of each customer.
[0044] In a third aspect, an embodiment of the present application provides an electronic device, a processor, and a memory storing computer program instructions;
[0045] When the processor executes the computer program instructions, the steps of the customer churn prediction method of the first aspect are implemented.
[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the steps of the customer churn prediction method of the first aspect are implemented.
[0047] In a fifth aspect, an embodiment of the present application provides a computer program product, and when the instructions in the computer program product are executed by a processor, the steps of the customer churn prediction method of the first aspect are implemented.
[0048] The customer churn prediction method, device, electronic device, storage medium and product of the embodiment of the present application can train the model by using the survival data of customers who have churned and the survival data of customers who have not churned during the observation time interval after building a customer churn prediction model based on the customer's entire life cycle. The trained model can be used to predict customer churn and obtain customer prediction results. Based on the prediction results, corresponding operation strategies can be provided to customers, and targeted operations and maintenance can be carried out for customers with higher churn risks, so as to maintain long-term and stable relationships with customers, improve customer retention rate and customer stickiness, and bring competitive advantages to the sustainable development of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0050] Figure 1 It is a flowchart of a customer churn prediction method provided by an embodiment of the present application;
[0051] Figure 2 is a flow chart of a customer churn prediction method provided by another embodiment of the present application;
[0052] Figure 3 is a flow chart of a customer churn prediction method provided by another embodiment of the present application;
[0053] Figure 4 It is a structural schematic diagram of a customer churn prediction device provided by an embodiment of the present application;
[0054] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0055] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0056] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0057] At present, with the deep integration of new-generation information technology and economic society, market competition is becoming increasingly fierce, product differences are narrowing, and the concept of "customer-centricity" is becoming increasingly prominent.
[0058] As the cost of acquiring new customers is very high and the high customer churn rate has become a common phenomenon, how to predict the churn tendency of each customer based on existing data, identify customers who are prone to churn and carry out targeted operations and maintenance to retain valuable customers has become an important research topic for operator management.
[0059] In the related technology, the prediction of customer churn is usually based on the continuous mining and analysis of the original data, and the customer churn is analyzed and predicted using different algorithms. Most of them are analyzed and predicted by continuous mining and analysis of the original data, and different algorithms are used to analyze and predict customer churn. The most widely used decision tree algorithm has a high classification accuracy, but it also has certain shortcomings. Traditional algorithms such as logistic regression and support vector machines have relatively high requirements for data accuracy. It is necessary to delete the customer data that has not been lost during the observation interval, and only use the customer data that has been lost during the observation interval for analysis and prediction, so that the utilization rate of the data is not maximized. In addition, the above analysis and prediction method can only predict the probability of customer churn within the preset time of the customer, but cannot predict when the customer will leave the network, that is, it cannot predict the time of customer churn after joining the network.
[0060] In order to solve at least one of the above technical problems, the embodiments of the present application provide a customer churn prediction method, device, electronic device, storage medium and product. The customer churn prediction method provided by the embodiments of the present application is first introduced below.
[0061] Figure 1 A schematic diagram of a customer churn prediction method provided by an embodiment of the present application is shown. The method may include the following steps:
[0062] S110, obtaining a trained customer churn prediction model; wherein the customer churn prediction model is constructed based on the entire life cycle of the customer, and the training data of the customer churn prediction model includes the survival data of customers who churn at the end of the observation time interval and the survival data of customers who do not churn;
[0063] S120, using the customer churn prediction model to predict churn for each customer, and obtaining a prediction result for each customer; wherein the prediction result includes the probability of the customer not churning within a preset time period and the churn time;
[0064] S130, providing corresponding operation strategies for each customer according to the prediction results of each customer.
[0065] Survival analysis is a method of analyzing the outcome of an event and the time it takes to achieve that outcome. The problem of customer churn can be compared to the problem of survival analysis. The duration of a customer's access to the network can be regarded as "survival time" and customer churn can be regarded as a "death event". Survival analysis can be used to study the dynamics of customer churn.
[0066] According to whether a customer churns at the end of a certain observation time interval, customers can be divided into churned customers and non-churned customers, and the survival data of churned customers and non-churned customers can be obtained. The above survival data includes complete data and censored data. Complete data refers to the survival data corresponding to customers whose user churn time can be observed within the observation time interval, that is, the survival data of churned customers; while censored data refers to the survival data corresponding to customers whose user churn time cannot be observed within the observation time interval, that is, the survival data of non-churned customers.
[0067] Since the censored data contains probabilistic information data about customer churn, and the traditional Logistic regression, support vector machine and other algorithms cannot process the censored data, the final prediction analysis results are affected. In the following embodiments, by building a customer churn prediction model based on the customer's entire life cycle, the survival data of customers who have churned and customers who have not churned during the observation time interval are input into the model, and a customer churn prediction model can be trained to analyze the impact of different characteristic variables on customer churn risk, and realize the monitoring and prediction of customer churn dynamics. For example, the customer churn prediction model can predict the probability of a customer surviving for a certain period of time after joining the network and the time when the customer churns after joining the network.
[0068] In this embodiment, after building a customer churn prediction model based on the customer's entire life cycle, the model can be trained using the survival data of customers who have churned during the observation time interval and the survival data of customers who have not churned. The trained model can be used to predict customer churn and obtain customer prediction results. Based on the prediction results, corresponding operation strategies can be provided to customers, and targeted operations and maintenance can be carried out for customers with a higher risk of churn, maintaining long-term and stable relationships with customers, improving customer retention and customer stickiness, and bringing competitive advantages to the sustainable development of the enterprise.
[0069] The specific implementation methods of the above steps are introduced below.
[0070] In S110, after building a customer churn prediction model based on the customer's entire life cycle, the survival data of customers in an observation time interval can be input into the customer churn prediction model as training data to train the model. The above survival data includes the survival data of customers who churn at the end of the observation time interval and the survival data of customers who do not churn.
[0071] After training the customer churn prediction model, a trained customer churn prediction model can be obtained.
[0072] As an optional implementation, the survival data of the above-mentioned customer may include multiple fields, such as an observation time field, a churn attribute field, a basic attribute field, a communication behavior field, other behavior fields, and a service bundling field. The observation time field may include the start time node, the end time node, and the time node when the customer's status changes during the observation time interval; the churn attribute field may use 0 and 1 to indicate that the customer has not churned and the customer has churned, respectively; the basic attribute field may include the customer's number, gender, age and other basic information; the communication behavior field may include the customer's package charges, additional call duration, traffic exceeding the package fee, package shift records, etc.; other behavior fields may include the customer's recent APP traffic preferences (1: music / 2: short video / 3: video); the service bundling field may indicate whether the customer has bundled other services.
[0073] Please refer to Figure 2 In some embodiments, before S110, the following steps may also be included:
[0074] S210, based on each stage in the whole life cycle, defines the risk function between each stage and the survival function corresponding to each stage;
[0075] S220, obtaining a complete likelihood function of a customer churn prediction model according to the risk function and the survival function;
[0076] S230, inputting the survival data of customers who have churned at the end of the observation time interval and the survival data of customers who have not churned into the customer churn prediction model, and fitting the model parameters in the customer churn prediction model to obtain a trained customer churn prediction model.
[0077] In this embodiment, based on each stage in the entire life cycle of a customer joining the network, a risk function for transferring between each stage and a survival function corresponding to each stage can be defined. Based on the risk function and the survival function, a complete likelihood function of the model can be obtained. After the survival data of the customers who have lost and the survival data of the customers who have not lost are input into the model as observation data, the model parameters can be aggregated to implement model training, and a trained customer churn prediction model can be obtained.
[0078] In S210, during the process of model building, the customer's entire life cycle can be divided into multiple stages. Based on the various stages in the entire life cycle, a risk function for the customer to transfer between the various stages and a survival function corresponding to each stage can be defined.
[0079] In some embodiments, the entire life cycle includes an introduction period, a survival period, and a decline period. The survival period includes multiple sub-stages. The above-mentioned generation of risk functions between various stages based on various stages in the entire life cycle may include:
[0080] S310, using a logistic model to define a first probability that a customer enters an introduction period if the introduction is successful and a second probability that the customer enters a decline period if the introduction is unsuccessful;
[0081] S320, generating a first risk function for a case where the customer import fails;
[0082] S330, in case of successful customer introduction, generates a second risk function corresponding to the transition from the introduction period or the survival period to the decline period, a third risk function corresponding to the transition from the introduction period to the survival period, and a third risk function corresponding to the transition from the previous sub-stage to the next sub-stage within the survival period.
[0083] The entire life cycle of a customer includes the introduction period, the survival period, and the decline period, where the survival period can include multiple sub-stages.
[0084] Customers on the entire network can be divided into non-customers, actual customers, and lost customers according to their status. During the introduction period, non-customers can be converted into actual customers through relevant operational measurements. If the introduction is successful, the customer enters the survival period. During the survival period, the customer can go through multiple sub-stages in sequence during the process of development events, such as the three development stages of the incubation period, growth period, and maturity period. After the customer is successfully introduced, due to various reasons, the customer stops using the service or product function, and then enters the decline period and becomes a lost customer.
[0085] It should be noted that any sub-stage in the above-mentioned introduction period and survival period may directly transition to the decline period. This is a multi-state change process. The customer's transition process between different states is as follows: Figure 3 shown.
[0086] In this embodiment, by defining the success probability and failure probability of the customer import process, the risk function corresponding to the failure of customer import and the risk function corresponding to the success of import can be obtained. In the case of successful import, since each period can directly enter the churn state, the risk function of the transition between each period and the risk function of entering the churn state in each period can be obtained respectively.
[0087] In S310, when establishing a customer churn prediction model, a potential indicative variable G may be predefined. i , where G i =0 means the import is unsuccessful, G i =1 indicates successful import. i =1 can be assumed to obey the logistic model:
[0088]
[0089] Among them, x i represents the covariate of individual i;
[0090] That is, the above P(G i =1) is the first probability of successful customer introduction into the introduction period, P(G i =0) is the second probability that the customer introduction fails to enter the decline period. The sum of the first probability and the second probability is 1.
[0091] In S320, when establishing a customer churn prediction model, a fragile term ω can be added to explain the connection between states in different periods. The fragile term ω obeys a gamma distribution with a mean of 1 and a variance of 1 / θ, and its distribution function is:
[0092]
[0093] After establishing the fragile term ω, the Cox model analysis method can be used to evaluate the impact of different variables on the time of customer churn events using risk functions. Given the fragile term ω, the risk functions under different paths are defined as follows:
[0094] In the case where the customer import fails, the customer status changes from status 2 (import failed) to status 4 (decline period), and the corresponding first risk function is:
[0095] λ 24 (t|G i =0,ω i ,x i )=h1(t)exp(β'2x i +logω i );
[0096] Among them, β s (s=1,2,3) is the regression coefficient vector used to describe x i Regarding the impact under different transfer paths, h1(t) is the baseline risk function of customer churn, and h2(t) is the baseline risk function of customer development.
[0097] In S330, correspondingly, for the case where the customer is successfully introduced, the second risk function corresponding to the transition from the introduction period or the survival period to the decline period, the third risk function corresponding to the transition from the introduction period to the survival period, and the third risk function corresponding to the transition from the previous sub-stage to the next sub-stage in the survival period are respectively included, wherein:
[0098] The second risk function from the introduction period (state 1) to the decline period (state 4) is:
[0099] λ 14 (t|G i =1,ω i , x i )=h1(t)exp(β'1x i +logω i );
[0100] The second hazard function for transitioning from the survival period (state 3) to the decline period (state 4) is:
[0101]
[0102] Wherein, j represents the jth sub-stage in the survival period, for example, j=1, 2, 3 may correspond to the cultivation period, the growth period, and the maturity period respectively; t ij is the time when individual i enters the jth sub-stage; The second risk function represents the transition of the j-th sub-stage into the recession period.
[0103] The third hazard function for transitioning from the introduction period (state 1) to the survival period (state 3) is:
[0104]
[0105] The third risk function corresponding to the transition from the previous sub-stage (state 3.j) to the next sub-stage (state 3.j+1) during the survival period is:
[0106]
[0107] In some embodiments, the generation of the survival function corresponding to each stage based on each stage in the entire life cycle may include:
[0108] S410, generating a first survival function corresponding to the lead-in period according to the first baseline risk function and the second baseline risk function; wherein the first baseline risk function is a baseline risk function for customer churn, and the second baseline risk function is a baseline risk function for customer development;
[0109] S420, generating a second survival function corresponding to the period of unsuccessful import according to the first baseline risk function;
[0110] S430: Generate a third survival function corresponding to each sub-stage in the survival period according to the first baseline risk function and the second baseline risk function.
[0111] In this embodiment, based on the baseline risk function of customer churn and the baseline risk function of customer development, the survival function of each period in the whole life cycle can be obtained.
[0112] In S410, according to the first baseline risk function h1(t) and the second baseline risk function h2(t) in the above embodiment, assuming that the transition time between different states is conditionally independent when a vulnerable item is given, a time reset method is adopted, that is, the time is reset to zero when entering a new state, and the interval time tt is used. ij Modeling, where t ij is the time when individual i enters state j. Applying semi-Markov hazard proportional regression to the remaining time before entering the next state can obtain the survival function corresponding to the length of stay in each period of the life cycle, where
[0113] According to the first baseline risk function h1(t) and the second baseline risk function h2(t), the first survival function corresponding to the lead-in period can be obtained as:
[0114]
[0115] It should be noted that since the next stage of the introduction period may be the survival period or may directly turn into the decline period, it is necessary to consider the first baseline risk function h1(t) and the second baseline risk function h2(t).
[0116] In S420, based on the first baseline risk function h1(t), the second survival function corresponding to the unsuccessful import period can be obtained as:
[0117]
[0118] Since the state of unsuccessful import will directly enter the decay period, there is no need to consider the second baseline risk function h2(t).
[0119] In S430, according to the first baseline risk function h1(t) and the second baseline risk function h2(t), the third survival function corresponding to each sub-stage in the survival period can be obtained as follows:
[0120]
[0121] Wherein, j = 1, 2, 3;
[0122] In S220, after defining the above risk function and survival function, a complete likelihood function of the customer churn prediction model can be obtained according to the risk function and the survival function.
[0123] In some embodiments, the above S220 may include:
[0124] S510, obtaining a first likelihood contribution according to the second survival function and the first risk function; the first likelihood contribution is a likelihood contribution of an individual that has not been successfully introduced;
[0125] S520, obtaining a second likelihood contribution according to a second risk function corresponding to the transition from the introduction period to the decline period and the first survival function; the second likelihood contribution is a likelihood contribution of an individual who has successfully introduced but has not experienced a customer development event;
[0126] S530, obtaining a third likelihood contribution according to the third risk function of the transition from the introduction period to the survival period, the third risk function corresponding to the transition from the previous sub-stage to the next sub-stage within the survival period, the second risk function corresponding to the transition from the survival period to the decline period, the first survival function, and the third survival function; the third likelihood contribution is the likelihood contribution of the successful introduction individual who has experienced the customer development event;
[0127] S540 , generating a complete likelihood function of the customer churn prediction model based on the first likelihood contribution, the second likelihood contribution, the third likelihood contribution, the first probability, and the second probability.
[0128] In this embodiment, after defining the survival function and the risk function, the likelihood contributions of individuals under different transition routes can be obtained, such as the likelihood contribution of individuals who have not been successfully introduced, the likelihood contribution of individuals who have successfully introduced and experienced customer development events, and the likelihood contribution of individuals who have successfully introduced and have not experienced customer development events. Based on different relief contributions, a complete likelihood function of the customer churn prediction model can be generated.
[0129] In S510, it is assumed that t i1 <t i2 <t i3 is the time when the i-th individual enters the cultivation period, growth period, and maturity period respectively, t id is the time when the ith individual enters the decline period, C i is the length of the observation time interval, i.e., the censoring time, and is independent of both customer acquisition and customer churn events. Let y id =min(t id ,C i ) represents the observed survival time of individual i, δ id = Ι(y id =t id ) indicates whether the customer churn event is censored, δ id =0 indicates censoring, that is, the customer has not been lost at the end of the observation period; otherwise, it is not censored.
[0130] Assume that n i is the number of times the ith individual experiences a customer development event. The observed survival data are represented by O i ={x i ,y id ,δ id ,t ij ,j=1,…,n i Based on the given latent variables G and ω, the first likelihood contribution can be obtained according to the second survival function and the first risk function:
[0131]
[0132] Among them, the first likelihood contribution L i1 Contribution to the likelihood of unsuccessful import of individuals;
[0133] In S520, similarly, based on the second risk function corresponding to the transition from the lead-in period to the decline period and the first survival function, a second likelihood contribution can be obtained:
[0134]
[0135] Among them, the second likelihood contribution L i2 Contribution to the likelihood of successful introduction of individuals who have not experienced client development events;
[0136] In S530, according to the third risk function of the transition from the lead-in period to the survival period, the third risk functions corresponding to the transition from the previous sub-stage to the next sub-stage in the survival period, the second risk function corresponding to the transition from the survival period to the decline period, the first survival function and the third survival function, the third likelihood contribution can be defined:
[0137]
[0138]
[0139] Among them, the third likelihood contribution L i3 Contribution to the likelihood of successful individuals undergoing client development events;
[0140] In S540, based on the first likelihood contribution, the second likelihood contribution, the third likelihood contribution, the first probability and the second probability, a complete likelihood function of the customer churn prediction model may be generated. The complete likelihood function may be:
[0141]
[0142] In S230, after obtaining the complete likelihood function of the customer churn prediction model, the survival data of customers who churned at the end of the observation time interval and the survival data of customers who did not churn can be input into the customer churn prediction model, and the model parameters in the customer history prediction model can be fitted to implement model training and obtain a trained customer churn prediction model.
[0143] As an optional implementation, the fitting of the above model parameters can be achieved by performing data analysis using R software.
[0144] In some embodiments, the above S230 may include:
[0145] S610, inputting the survival data of customers who have churned and the survival data of customers who have not churned at the end of the observation time interval into a customer churn prediction model;
[0146] S620, initializing model parameters based on the input survival data;
[0147] S630, using an iterative optimization algorithm to obtain final estimated values of the model parameters, and substituting the final estimated values of the model parameters into the customer churn prediction model to obtain a trained customer churn prediction model.
[0148] In this embodiment, after generating the complete likelihood function of the customer churn prediction model, the survival data of customers who have churned can be used as complete data, and the survival data of customers who have not churned can be used as missing data. The complete data and missing data are input into the model, and after initializing the model parameters, the final estimated values of the model parameters are obtained through an iterative optimization algorithm, thereby obtaining a trained customer churn prediction model.
[0149] In S610 , for the customer data within the observation time interval, the survival data of the customers who have churned at the end and the survival data of the customers who have not churned can be input into the customer churn prediction model as observation data.
[0150] In S620, when the model parameters are estimated using the iterative optimization algorithm, each model parameter in the customer churn prediction model may be randomly initialized.
[0151] In S630, after the model parameters are initialized, iterative calculations can be performed using a corresponding iterative optimization algorithm, and final estimated values of the model parameters can be obtained through multiple iterations. After the final estimated values of the model parameters are substituted into the customer churn prediction model, a trained customer churn prediction model can be obtained.
[0152] In some embodiments, the above-mentioned method of obtaining the final estimated value of the model parameter by using the iterative optimization algorithm may include:
[0153] S710, converting the complete likelihood function of the customer churn prediction model into a logarithmic form to obtain a complete logarithmic likelihood function;
[0154] S720, calculating the expected value of the complete log-likelihood function according to the model parameters;
[0155] S730, performing maximization estimation according to the expected value of the complete log-likelihood function to obtain maximum likelihood estimation values of the model parameters;
[0156] S740, taking the maximum likelihood estimate of the model parameter as the updated model parameter, returning to S720, and ending when the model parameter converges or reaches the maximum number of iterations, and taking the model parameter at the end as the final estimate.
[0157] In this embodiment, based on the logarithmic form of the complete likelihood function of the customer churn prediction model, the expected value in logarithmic form can be calculated according to the model parameters. After the expected value is obtained based on the initialized model parameters, the maximum estimation can be performed according to the expected value to obtain the maximum likelihood estimation value of the model parameters, that is, the optimization of the model parameters is achieved. By continuously performing the iterative optimization process, the optimized model parameters can be obtained.
[0158] In S710, before using the iterative optimization algorithm to perform iterative calculations, for the convenience of calculation, the complete likelihood function of the customer churn prediction model may be converted into a logarithmic form to obtain a complete logarithmic likelihood function.
[0159] As an optional implementation manner, the complete likelihood function in the above embodiment can be converted into a logarithmic form to obtain a complete logarithmic likelihood function:
[0160]
[0161]
[0162] In S720, after the complete log-likelihood function is obtained, the expected value of the complete log-likelihood function may be calculated according to the initialized model parameters.
[0163] In S730, a maximization estimation may be performed based on the obtained expected value of the complete log-likelihood function, thereby obtaining a maximum likelihood estimation value of the model parameter.
[0164] In S740, after obtaining the maximum likelihood estimate of the model parameter, it can be used as the updated model parameter, and the operation of calculating the expected value of the complete log-likelihood function according to the model parameter is returned, that is, the updated expected value of the complete log-likelihood function is recalculated by the updated model parameter. After obtaining the updated expected value, the maximum estimation is continued based on the updated expected value to obtain the maximum likelihood estimate of the model parameter.
[0165] By repeating the above iterative process, the iterative process can be terminated when the obtained model parameters converge or the number of iterations reaches the maximum number of iterations. The model parameters at the end can be used as the final estimated value.
[0166] As an optional implementation, the above method of maximizing the expected value of the obtained complete log-likelihood function may be to decompose the complete log-likelihood function into multiple functions, including:
[0167]
[0168] The specific estimation method for each function can be:
[0169] Use logistic regression to update the parameter α;
[0170] Use the Newton Raphson algorithm to maximize it and get an estimate of θ;
[0171] Nonparametric methods.
[0172] It should be noted that the above embodiments only list the implementation method of using the EM algorithm to perform multiple iterative optimization on the model parameters. In addition, other iterative optimization algorithms can also be used to obtain the optimized model parameters, which is not limited here.
[0173] In S240, after the trained customer churn prediction model is obtained, the influence of different characteristic variables on the customer churn risk may be determined based on the trained model parameters.
[0174] Taking the EM algorithm as an example, by fitting the model through the EM algorithm, the estimation results of the model parameters in the model can be output. The estimation results include the estimated values of the model parameters, the standard error estimate (SE) and the p-value of the parameter test.
[0175] The estimated value of the parameter reflects the effect of the corresponding independent variable on the risk function. If the estimated value of the parameter is positive, the corresponding independent variable has the effect of increasing the risk; otherwise, it has the effect of reducing the risk. If the estimated value of the parameter is 0, the corresponding variable has no association with the occurrence of the event.
[0176] The standard error estimate (SE) measures the deviation between each estimated parameter in the model and the true parameter. The smaller the SE, the closer the estimated parameter is to the true value.
[0177] The p-value represents the significance level in the hypothesis test. If the p-value is less than the significance level (0.05), the parameter is considered statistically significant; otherwise, the parameter is considered statistically insignificant. Based on the above results, we can identify the impact of different characteristic variables on customer churn risk.
[0178] In S120, after the final estimated values of the model parameters are obtained, the final estimated values of the model parameters are substituted into the customer churn prediction model to obtain a trained customer churn prediction model.
[0179] By using the customer churn prediction model, customer churn prediction can be performed based on the customer data of each customer to obtain the prediction results for each customer.
[0180] The above prediction results may include the probability that the customer has not been lost within a preset time period. The probability that the customer has not been lost within a preset time period refers to the probability that the customer has not been lost after a certain preset time period has passed since the customer joined the network. For example, if the preset time period is 2 years, then based on the customer data of a certain customer, the probability that the customer will survive for 2 years after joining the network without losing can be determined. By comparing the probability that the customer has not been lost within the preset time period calculated by the model with the preset probability threshold, it can be determined whether the customer will be lost. For example, if the probability that the customer will survive for 2 years after joining the network without losing is 80% calculated by the model, and the preset probability threshold is 60%, it is determined that the customer will not be lost.
[0181] The above prediction result may also include the churn time, which may be the length of time that a user experiences when churn occurs after joining the network. If the churn time of a user is greater than a certain time threshold, it may also be determined that the user will not churn.
[0182] In S130, after obtaining the prediction results for each customer, a corresponding operation strategy can be provided for each customer based on the prediction results, so as to identify customers who are prone to churn and perform targeted operations and maintenance, thereby retaining valuable customers.
[0183] In some embodiments, the above S130 may include:
[0184] S810, dividing all customers into multiple customer groups according to the prediction results of each customer;
[0185] S820, matching a corresponding operation strategy for each customer group.
[0186] In this embodiment, after obtaining the prediction results of the customers, the customers can be divided into multiple customer groups, and a corresponding operation strategy can be matched for each customer group, so as to meet the differentiated needs of customers and prevent customer churn.
[0187] In S810, after the prediction results of each customer are obtained, all customers may be divided into multiple customer groups based on the prediction results.
[0188] In S820, after dividing multiple customer groups, a corresponding operation strategy can be matched for each customer group, so as to meet the differentiated needs of customers and prevent customer loss.
[0189] In the above embodiment, for new network customers, the customers can be classified into existing customer groups according to the prediction results of the customers.
[0190] It should be noted that the customer group division method can be to judge the churn risk of each customer based on the prediction results, and divide the customers with high churn risk into multiple customer groups that need to be effectively operated. Each customer group can be segmented based on the customer's behavioral habits, establish a marketing system with thousands of faces for thousands of people, conduct personalized and meticulous management, match different types of operation plans, meet the differentiated needs of customers, and prevent customer churn.
[0191] It should be noted that the application scenarios described in the above-mentioned embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0192] Based on the same inventive concept, the present application also provides a customer churn prediction device. Figure 4 Provide detailed explanation.
[0193] Figure 4 It is a structural diagram of a customer churn prediction device 400 provided in an embodiment of the present application.
[0194] like Figure 4 As shown, the customer churn prediction device 400 may include:
[0195] An acquisition module 401 is used to acquire a trained customer churn prediction model; wherein the customer churn prediction model is constructed based on the entire life cycle of the customer, and the training data of the customer churn prediction model includes the survival data of customers who have churned at the end of the observation time interval and the survival data of customers who have not churned;
[0196] Prediction module 402, used to predict churn of each customer using the customer churn prediction model to obtain prediction results for each customer;
[0197] The strategy module 403 is used to provide a corresponding operation strategy for each customer according to the prediction result of each customer.
[0198] Figure 5 The hardware structure diagram of the electronic device provided in the embodiment of the present application is shown. The electronic device can be at least one of a computer, a server and a dedicated device for the customer churn prediction method. The electronic device includes a processor 501 and a memory 502 storing computer program instructions.
[0199] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0200] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 502 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 502 may be inside or outside the electronic device. In a particular embodiment, the memory 502 is a non-volatile solid-state memory.
[0201] The memory 502 may include a read-only memory (ROM), a flash memory device, a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory 502 includes a tangible (non-transitory) computer-readable storage medium (e.g., a memory device) of one or more software that may be encoded with computer-executable instructions and that, when executed (e.g., by one or more processors), is operable to perform the operations described with reference to the methods according to the above aspects of the present disclosure.
[0202] The processor 501 implements any one of the customer churn prediction methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .
[0203] In one example, the electronic device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0204] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0205] Bus 510 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0206] The electronic device can be based on customer churn prediction methods to achieve a combination Figures 1 to 4 A customer churn prediction method and apparatus are described.
[0207] In addition, in combination with the customer churn prediction method in the above embodiment, the embodiment of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the customer churn prediction methods in the above embodiment is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as portable disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, etc.
[0208] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0209] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0210] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0211] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0212] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0213] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A customer churn prediction method, characterized in that: include: Obtaining a trained customer churn prediction model; wherein the customer churn prediction model is constructed based on the entire life cycle of the customer, and the training data of the customer churn prediction model includes the survival data of customers who churn at the end of the observation time interval and the survival data of customers who do not churn; Using the customer churn prediction model to predict churn for each customer, and obtaining prediction results for each customer; wherein the prediction results include the probability of a customer not churned within a preset time period and the churn time; Provide corresponding operation strategies for each customer based on the forecast results of each customer.
2. The customer churn prediction method according to claim 1, characterized in that: Before obtaining the trained customer churn prediction model, the method further includes: Based on each stage in the life cycle, define the risk function between each stage and the corresponding survival function of each stage; Obtaining a complete likelihood function of a customer churn prediction model according to the risk function and the survival function; Inputting the survival data of customers who have churned and the survival data of customers who have not churned at the end of the observation time interval into the customer churn prediction model, and fitting the model parameters in the customer churn prediction model to obtain a trained customer churn prediction model; Based on the trained customer churn prediction model, determine the impact of different feature variables on customer churn risk.
3. The customer churn prediction method according to claim 2, characterized in that: The whole life cycle includes an introduction period, a survival period and a decline period, and the survival period includes multiple sub-stages; the risk function between each stage is generated based on each stage in the whole life cycle, including: Use the logistic model to define the first probability that a customer enters the introduction period if the introduction is successful and the second probability that a customer enters the decline period if the introduction is unsuccessful; For the case where the customer import is unsuccessful, a first risk function is generated; In the case of successful customer introduction, the second risk function corresponding to the transition from the introduction period or survival period to the decline period, the third risk function from the introduction period to the survival period, and the third risk function corresponding to the transition from the previous sub-stage to the next sub-stage within the survival period are generated.
4. The customer churn prediction method according to claim 3, characterized in that: Based on each stage in the life cycle, the corresponding survival function is generated, including: Generate a first survival function corresponding to the introduction period according to the first baseline risk function and the second baseline risk function; wherein the first baseline risk function is a baseline risk function for customer churn, and the second baseline risk function is a baseline risk function for customer development; Generate a second survival function corresponding to the period of unsuccessful import according to the first baseline risk function; A third survival function corresponding to each substage in the survival period is generated according to the first baseline risk function and the second baseline risk function.
5. The customer churn prediction method according to claim 4, characterized in that: The method of obtaining a complete likelihood function of a customer churn prediction model according to the risk function and the survival function includes: Obtaining a first likelihood contribution according to the second survival function and the first risk function; the first likelihood contribution is a likelihood contribution of an individual whose introduction is unsuccessful; A second likelihood contribution is obtained according to a second risk function corresponding to the transition from the introduction period to the decline period and the first survival function; the second likelihood contribution is the likelihood contribution of a successfully introduced individual who has not experienced a customer development event; A third likelihood contribution is obtained based on the third risk function of the transition from the introduction period to the survival period, the third risk functions corresponding to the transition from the previous sub-stage to the next sub-stage in the survival period, the second risk function corresponding to the transition from the survival period to the decline period, the first survival function and the third survival function; the third likelihood contribution is the likelihood contribution of the successfully introduced individual who has experienced the customer development event; A complete likelihood function of a customer churn prediction model is generated based on the first likelihood contribution, the second likelihood contribution, the third likelihood contribution, the first probability, and the second probability.
6. The customer churn prediction method according to claim 2, characterized in that: The survival data of customers who have lost customers at the end of the observation time interval and the survival data of customers who have not lost customers are input into the customer churn prediction model, and the model parameters in the customer churn prediction model are fitted to obtain the trained customer churn prediction model, including: Inputting the survival data of customers who churned at the end of the observation period and the survival data of customers who did not churn into the customer churn prediction model; Initialize the model parameters based on the input survival data; The final estimated values of the model parameters are obtained by using an iterative optimization algorithm, and the final estimated values of the model parameters are substituted into the customer churn prediction model to obtain a trained customer churn prediction model.
7. The customer churn prediction method according to claim 6, characterized in that: The method of obtaining the final estimated value of the model parameter by using an iterative optimization algorithm includes: The complete likelihood function of the customer churn prediction model is converted into a logarithmic form to obtain a complete logarithmic likelihood function; Calculate the expected value of the full log-likelihood function based on the model parameters; Performing maximization estimation based on the expected value of the complete log-likelihood function to obtain maximum likelihood estimation values of model parameters; The maximum likelihood estimate of the model parameter is used as the updated model parameter, and the process returns to step: calculating the expected value of the complete log-likelihood function according to the model parameter, until the model parameter converges or reaches the maximum number of iterations, and the model parameter at the end is used as the final estimate.
8. The customer churn prediction method according to claim 1, characterized in that: Providing corresponding operation strategies for each customer according to the prediction results of each customer includes: Divide all customers into multiple customer groups based on the forecast results for each customer; Match the corresponding operation strategy for each customer group.
9. A customer churn prediction device, characterized in that: include: An acquisition module, used to acquire a trained customer churn prediction model; wherein the customer churn prediction model is constructed based on the entire life cycle of the customer, and the training data of the customer churn prediction model includes the survival data of customers who churn at the end of the observation time interval and the survival data of customers who do not churn; A prediction module, used to use the customer churn prediction model to predict churn for each customer and obtain prediction results for each customer; The strategy module is used to provide corresponding operation strategies for each customer based on the prediction results of each customer.
10. An electronic device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the steps of the customer churn prediction method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps of the customer churn prediction method according to any one of claims 1 to 8 are implemented.
12. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor, the steps of the customer churn prediction method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Client loss prediction model establishment method and device, and early warning method and device
CN121414389A
