User type determination method, device, equipment and storage medium

By analyzing user attribute data in multiple time periods and using analytical models to predict user types, we solve the problem of user churn prediction, improve prediction accuracy, help Internet services retain users in a timely manner, and ensure the sustainable development of services.

CN112862527BActive Publication Date: 2024-10-15BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110156085.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-04
Publication Date
2024-10-15
Estimated Expiration
2041-02-04

AI Technical Summary

Technical Problem

It is difficult to effectively predict user loss with existing technology, resulting in the inability to take timely retention measures and affecting the sustainable development of Internet services.

Method used

By determining user attribute data in multiple different time periods, analyze and predict user types, including churn user types and non-churn user types, and use the first and second analysis models to improve prediction accuracy.

Benefits of technology

It achieves accurate prediction of user churn, improves the accuracy of user churn prediction, and can take timely retention measures to reduce user churn and improve the sustainable development capabilities of Internet services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112862527B_ABST
    Figure CN112862527B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a method, device, equipment and storage medium for determining user types. The method includes: determining multiple different time periods before a target moment; obtaining attribute data of users in multiple different time periods; analyzing and processing the attribute data of users in each time period to determine the user type analysis results corresponding to each time period; determining the user type of the user after the target moment based on the user type analysis results corresponding to each time period, and the user type includes the churn user type and the non-churn user type. Therefore, combining the user attribute data of multiple different time periods to perform user type prediction, that is, to perform user churn prediction, improves the accuracy of user churn prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method, apparatus, device, and storage medium for determining a user type. Background Art

[0002] With the development of Internet technology, various Internet services have provided people with a more convenient lifestyle. Among them, the number of users is one of the key factors affecting the development trend of Internet services.

[0003] Maintaining and increasing the number of users depends on attracting new users on the one hand and reducing the loss of existing users on the other. Compared with attracting new users, reducing the loss of existing users is easier and less costly. Currently, the way to reduce the loss of existing users is to recall the lost users through various measures.

[0004] Compared with recalling lost users, predicting potential user loss before the user churns can prevent user loss in advance, which is conducive to reducing the loss of original users. Therefore, a method for predicting user churn is urgently needed. Summary of the invention

[0005] Embodiments of the present disclosure provide a method, apparatus, device and storage medium for determining a user type, so as to solve the problem of how to predict user churn.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for determining a user type, comprising:

[0007] Determine a plurality of different time periods prior to the target time;

[0008] Acquire attribute data of the user in the multiple different time periods;

[0009] Analyze and process the attribute data of users in each of the time periods to determine the user type analysis results corresponding to each of the time periods;

[0010] According to the user type analysis results corresponding to each of the time periods, the user type of the user after the target time is determined, and the user type includes a lost user type and a non-lost user type.

[0011] In a second aspect, an embodiment of the present disclosure provides a method for training a user type analysis model, comprising:

[0012] determining a plurality of sample time periods before a reference time;

[0013] Acquire sample data within the plurality of sample time periods, wherein the sample data within the sample time period includes attribute data and user types of users within the sample time period, wherein the user types include churned user types and non-churned user types;

[0014] The first analysis model and the second analysis model are trained according to the attribute data and user types of the users in the multiple sample time periods, wherein the first analysis model and the second analysis model are used for user type analysis.

[0015] In a third aspect, an embodiment of the present disclosure provides a user type determination device, including:

[0016] A first determining module, used to determine a plurality of different time periods before a target time;

[0017] An acquisition module, used to acquire attribute data of users in the multiple different time periods;

[0018] An analysis module, used to analyze and process the attribute data of users in each of the time periods, and determine the user type analysis results corresponding to each of the time periods;

[0019] The second determination module is used to determine the user type of the user after the target time according to the user type analysis results corresponding to each of the time periods, wherein the user type includes a churned user type and a non-churned user type.

[0020] In a fourth aspect, an embodiment of the present disclosure provides a training device for a user type analysis model, comprising:

[0021] A determination module, used for determining a plurality of sample time periods before a reference time;

[0022] An acquisition module, configured to acquire sample data within the plurality of sample time periods, wherein the sample data within the sample time period includes attribute data and user types of users within the sample time period, wherein the user types include churned user types and non-churned user types;

[0023] A training module is used to train a first analysis model and a second analysis model according to attribute data and user types of users in the multiple sample time periods, wherein the first analysis model and the second analysis model are used for user type analysis.

[0024] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:

[0025] Memory and processor;

[0026] The memory is used to store program instructions;

[0027] The processor is used to call the program instructions in the memory to execute the method as described in the first aspect or the second aspect above.

[0028] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the method described in the first aspect or the second aspect above is implemented.

[0029] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0030] Embodiments of the present disclosure provide a method, apparatus, device and storage medium for determining a user type. In the method, a plurality of different time periods before a target moment are determined, and user type analysis results corresponding to each time period are determined based on attribute data of users in each time period. Based on the user type analysis results corresponding to each time period, the user type of the user after the target moment is determined, wherein the user type includes a churned user type and a non-churned user type, thereby integrating the attribute data of users in a plurality of different time periods before the target moment, realizing prediction of the user type to which the user belongs after the target moment and improving prediction accuracy, thereby improving the accuracy of user churn prediction.

[0031] Various feasible embodiments of the present disclosure and their technical advantages are described in detail below. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0033] Figure 1 This is an example diagram of application scenarios applicable to the embodiments of the present disclosure;

[0034] Figure 2 A flowchart of a method for determining a user type provided by an embodiment of the present disclosure;

[0035] Figure 3 A flowchart of a method for determining a user type provided by another embodiment of the present disclosure;

[0036] Figure 4 A flowchart of a method for training a user type analysis model provided by an embodiment of the present disclosure;

[0037] Figure 5 A schematic diagram of the structure of a user type determination device provided by an embodiment of the present disclosure;

[0038] Figure 6A schematic diagram of the structure of a training device for a user type analysis model provided by an embodiment of the present disclosure;

[0039] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure;

[0040] Figure 8 A block diagram of a user type determination device provided by an embodiment of the present disclosure.

[0041] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0043] For Internet service providers, the number of users is one of the key factors affecting the sustainable development of Internet services. Among the measures to maintain and increase the number of users, reducing the loss of existing users is more targeted than attracting new users, that is, different retention measures or recall measures can be adopted for different existing users, which is less difficult and less costly, and the loss of existing users will also affect the effect of introducing new users. Therefore, reducing the loss of existing users is one of the concerns of Internet service providers.

[0044] Usually, when reducing the loss of existing users, various recall measures are used to recall the lost users, but this method misses the best time to retain the original users and fails to take retention measures in time when the original users tend to churn. Therefore, it is necessary to predict the potential user churn before the original users churn, so as to retain the original users in time when it is predicted that the original users are about to churn.

[0045] Taking the freight service platform as an example, if the loss of existing freight drivers on the platform is serious, it will affect the development of freight services and the entry of new freight drivers on the freight service platform. Compared with attracting new freight drivers, reducing the loss of existing freight drivers is more targeted, less costly and less difficult. Predicting the loss of existing freight drivers can take timely retention measures for the existing freight drivers who are about to leave, effectively reducing the loss of existing freight drivers.

[0046] In order to achieve the prediction of user churn and improve the accuracy of user churn prediction, the embodiment of the present disclosure provides a user type determination method, which determines multiple different time periods before a target moment, integrates the attribute data of users in multiple different time periods, and determines the user type of the user after the target moment, wherein the user type includes the churn user type and the non-churn user type, thereby achieving the prediction of user churn after the target moment and improving the prediction accuracy.

[0047] Figure 1 This is an example diagram of an application scenario applicable to an embodiment of the present disclosure, and the application scenario includes: a service provider server 101 and a service provider terminal 102, and the service provider server 101 stores attribute data of one or more users. The attribute data of the user can be analyzed and processed on the service provider terminal 102 or the service provider server 101 to achieve user churn prediction.

[0048] Optionally, the application scenario also includes a user terminal 103. After determining that the user is about to churn, the service provider server 101 or the service provider terminal 102 may determine retention measures, and send corresponding retention information to the user terminal 103 of the user who is about to churn based on the retention measures, such as coupon collection information, product discount information, task completion incentive information, etc.

[0049] The service provider terminal 102 is, for example, a mobile device (such as a mobile phone, a tablet computer), a computer, a server or other electronic device. Figure 1 Take a computer as an example. User terminal 103 is, for example, a mobile device (such as a mobile phone, a tablet computer, a wearable smart device), a computer, or a vehicle-mounted device that a user carries with him. Figure 1 The mobile phone is taken as an example. The service provider server 101 is, for example, a single server, a server group (such as a distributed server, a centralized server), a cloud server, or any combination thereof. The service provider server 101, the service provider terminal 102, and the user terminal 103 communicate, for example, via a network.

[0050] The following specific embodiments are used to describe in detail the technical solutions of the embodiments of the present disclosure and how the technical solutions of the present disclosure solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0051] Exemplarily, the execution subject of each method embodiment of the present disclosure is Figure 1 The service provider server 101 shown or Figure 1 A service provider terminal 102 is shown.

[0052] Figure 2 FIG. 1 is a flow chart of a method for determining a user type according to an embodiment of the present disclosure. Figure 2 As shown, the method includes:

[0053] S201. Determine a plurality of different time periods before a target time.

[0054] The unit of the target time is, for example, year, quarter, month, week, day, or hour. For example, the target time is next year or next month to predict user churn in next year or next month.

[0055] The units of the multiple different time periods before the target time may also be years, quarters, months, weeks, days or hours. For example, if the target time is January 1 of the year, the multiple time periods before the target time may be one or more years, one or more quarters before January 1 of the year, etc. The number of time periods is, for example, preset to a fixed value, such as 4.

[0056] Specifically, a target time is obtained, and after the target time is obtained, a plurality of different time periods before the target time are determined according to a preset strategy.

[0057] In one example, a target time input by a user (eg, a service provider) may be obtained to predict user churn after the target time specified by the user, thereby improving user experience.

[0058] In another example, the current moment can be obtained, and the target moment can be determined based on the current moment. For example, the current moment can be determined as the target moment; or, a moment whose interval with the current moment is a preset predicted duration can be determined as the target moment, for example, if the predicted duration is 1 day, the moment whose interval with the current moment is 1 day can be determined as the target moment.

[0059] In one example, the preset strategy may be a random strategy, that is, after determining the target time, a plurality of different time periods before the target time are randomly determined.

[0060] For example, when the target time is January 1 of the year, multiple time periods before the target time can be randomly determined: December 20 of the previous year to January 1 of the year is the first time period, November 30 of the previous year to January 1 of the year is the second time period, and so on.

[0061] In another example, the preset strategy may be: multiple time periods of preset duration before the target time are sequentially determined as multiple different time periods. In this case, the duration of each time period is the same, but the start time and end time of each time period are different, and each time period may not overlap with each other, or there may be overlap between every two adjacent time periods.

[0062] For example, when the preset duration is one month and the target time is January 1 of the year: December 1 to December 31, November 1 to November 30, ... and so on of the previous year can be determined as multiple different time periods; or, December 1 to December 31, November 30 to December 30, ... and so on of the previous year can be determined as multiple different time periods.

[0063] S202: Obtain attribute data of users in multiple different time periods.

[0064] Among them, users may include lost users and / or non-lost users. Lost users (also known as retained users) refer to users whose activity level in the Internet service platform or system meets preset conditions. For example, lost users may be users whose time interval between the last online time and the current time is greater than a preset interval threshold, whose time interval between the last order completion time and the current time is greater than a preset interval threshold, and / or whose number of orders completed in the past month is less than a preset number threshold.

[0065] Among them, user attribute data refers to the record data of user behavior in participating in Internet services (such as online behavior, ordering behavior, order completion behavior, and evaluation behavior), and may also include the user's public identity information in Internet services, such as the user's gender and age.

[0066] In one example, the user's attribute data includes one or more of the following: the user's online activity data, the user's business data, the user's activity track data, and the user's preferences. For example, the user's online activity data includes the user's online time and number of online times, the user's business data includes the user's order completion time, order completion volume, and order preferences, and the user's activity track data includes the user's geographical location during the order completion process, the user's product or service browsing track, and the like.

[0067] Taking the example of an Internet service being a freight service and a user being a freight driver, the attribute data of the freight driver may include one or more of the freight driver's online time, online times, freight order completion time, freight order completion volume, and geographic location during the freight order completion process. It may also include the mileage, price, and score of each freight order completed by the freight driver.

[0068] Specifically, for each time period, the attribute data of one or more users in the time period before the start time of the time period is obtained from a database storing the attribute data of the users.

[0069] In one example, after determining multiple different time periods, considering that both non-churned users and churned users before the time period may have user behaviors within the time period, such as going online, placing orders, etc., therefore, in order to achieve churn prediction for batch users, for each time period, the attribute data of all non-churned users before the start time of the time period and / or all churned users within the time period are obtained from the database storing the user's attribute data.

[0070] S203: Analyze and process the attribute data of users in each time period to determine the user type analysis results corresponding to each time period.

[0071] Specifically, the attribute data of users within a period of time can reflect the user's churn trend, or in other words, can reflect the possibility of user churn. For example, if the number of online visits and / or the number of completed orders of users who have not churned decrease significantly over a period of time, it reflects that the possibility of churn of users who have not churned is greater. Therefore, after obtaining the attribute data of users in multiple different time periods, for each time period, the attribute data of the users in the time period can be analyzed and processed to obtain the analysis results of the user types of the users after the target moment, and the analysis results of the user types of one or more users after the target moment can be combined to obtain the user type analysis results corresponding to the time period. Among them, user types include churned user types and non-churned user types.

[0072] In one example, for each time period, the user type analysis result corresponding to the time period includes: based on the analysis and processing of the attribute data of one or more users in the time period, the user type of the one or more users after the target time is determined. For example, after analyzing and processing the attribute data of user a in the first time period, it is determined that the user type of user a after the target time is a lost user type, and after analyzing and processing the attribute information of user a in the second time period, it is determined that the user type of user a after the target time is a non-lost user type.

[0073] In another example, for each time period, the user type analysis result corresponding to the time period includes: analyzing and processing the attribute data of one or more users in one or more time periods, and determining the churn probability of the one or more users after the target time. For example, after analyzing and processing the attribute data of user a in the first time period, it is determined that the churn probability of user a after the target time is 80%, and after analyzing and processing the attribute data of user a in the second time period, it is determined that the churn probability of user a after the target time is 60%.

[0074] As an example, when analyzing and processing the attribute data of users within a time period, the users are scored based on their online activity data, business data and / or activity trajectory data within the time period, and the user type or churn probability of the users after the target time is determined based on the user scores.

[0075] S204: Determine the user type of the user after the target time according to the user type analysis results corresponding to each time period.

[0076] Specifically, after obtaining the user type analysis results corresponding to each time period, multiple analysis results of the user type after the target time can be obtained from the user type analysis results corresponding to each time period, and the user type of the user after the target time can be determined based on the multiple analysis results of the user type after the target time.

[0077] In one example, multiple user types of the user after the target moment are obtained from the user type analysis results corresponding to each time period, and the user type of the user after the target moment is finally determined based on the multiple user types of the user after the target moment. For example, in the user type analysis results corresponding to the first time period, the user type of user a after the target moment is a lost user type, and in the user type analysis results corresponding to the second time period, the user type of user a after the target moment is a non-lost user type, and so on. Multiple user types of the user after the target moment can be obtained in sequence, for example, the user type with the most occurrences can be finally determined as the user type of the user after the target moment. In addition, 0 can be used to represent the non-lost user type and 1 can be used to represent the lost user type. At this time, the final user type of the user after the target moment can be determined by calculating the multiple user types of the user after the target moment (for example, weighted averaging, mean square error, etc.).

[0078] In another example, multiple churn probabilities of the user after the target moment are obtained from the user type analysis results corresponding to each time period. Based on the multiple churn probabilities of the user after the target moment, the final churn probability of the user after the target moment is determined. Based on the final churn probability of the user after the target moment, the user type of the user after the target moment is finally determined.

[0079] In this embodiment, based on the attribute data of users in multiple different time periods before the target moment, the user type analysis results corresponding to each time period are determined, and based on the user type analysis results corresponding to each time period, the user type of the user after the target moment is determined. This not only utilizes the characteristic that the user's attribute data can reflect the user's churn trend to a certain extent, and realizes the prediction of the user's type after the target moment, that is, realizes the prediction of user churn after the target moment, but also utilizes the attribute data of users in multiple different time periods to improve the accuracy of user type prediction, and improves the accuracy of user churn prediction.

[0080] In a possible implementation, the duration of each time period is different, and the target time is the end time of each time period. Therefore, user type analysis is performed based on the attribute data of users in multiple time periods with the target time as the end time and different durations, taking into full consideration that the user type analysis is related to the duration of the time period, the longer the time period, the more stable the analysis effect. Therefore, compared with using a single time period or using time periods of the same duration, performing user type analysis based on the attribute data of users in each time period of different durations can improve the accuracy of user type analysis.

[0081] In one example, a prediction strategy for determining multiple different time periods before a target moment includes: taking the target moment as the end moment, and determining multiple different time periods before the target moment according to multiple different preset durations. The multiple different preset durations include the duration of each time period. When determining multiple different time periods before the target moment, taking the target moment as the end moment of each time period, according to multiple different preset durations, the start moment of each time period is determined forward, and each time period is obtained according to the start moment and the end moment of each time period.

[0082] In another example, a preset strategy for determining multiple different time periods before a target moment includes: taking the target moment as the end moment, and determining multiple different time periods before the target moment according to a preset duration and a preset time interval between every two adjacent time periods. The preset duration includes the duration of the first time period and / or the duration of the last time period. Taking the example that the preset duration includes the duration of the first time period, when determining multiple different time periods before the target moment, the target moment is determined as the end moment of each time period. The start moment of the first time period is determined according to the duration of the first time period to obtain the first time period. The start moment of the second time period is determined according to the start moment of the first time period and the preset time interval between every two adjacent time periods to obtain the second time period. And so on, to obtain each time period.

[0083] For example, the target time is August 22, the duration of the first time period is 38 days, and the preset duration difference between every two adjacent time periods is 7 days. The start time of the first time period is July 15 and the end time is August 22. The start time of the second time period is July 22 and the end time is August 22. The start time of the third time period is July 29 and the end time is August 22. The start time of the fourth time period is August 5 and the end time is August 22, and so on.

[0084] Figure 3 FIG. 1 is a flow chart of a method for determining a user type provided by another embodiment of the present disclosure. Figure 3 As shown, the method includes:

[0085] S301. Determine a plurality of different time periods before a target time.

[0086] S302: Obtain attribute data of users in multiple different time periods.

[0087] The implementation process and technical effects of S301 to S302 may refer to the aforementioned embodiments and will not be described in detail.

[0088] S303: Analyze and process the attribute data of users in each time period by using the first analysis model to obtain the user type analysis results corresponding to each time period.

[0089] The first analysis model is a decision model, such as a random forest model (RF), an extreme gradient boosting model (xgboost), or a light gradient boosting machine (Light GBM). The first analysis model is pre-built and trained to obtain a trained first analysis model.

[0090] Specifically, for each time period, the attribute data of the users in the time period is input into the first analysis model, and the first analysis model analyzes the user types of the users after the target moment, that is, predicts the churn of the users after the target moment, and obtains the analysis results of the user types of the users after the target moment output by the first analysis model. The user type analysis results corresponding to the time period are obtained from the analysis results of the user types of one or more users after the target moment.

[0091] In a possible implementation, before the attribute data of users in a time period is input into the first analysis model, the attribute data of users in the time period is preprocessed and the preprocessed attribute data is input into the first analysis model to improve the user type analysis effect of the first analysis model.

[0092] In one example, during preprocessing, missing value processing is performed on the attribute data of users within a time period. When performing missing value processing, for the attribute data of each user, the missing attributes in the attribute data of the user can be determined (for example, one or more of the online active data, business data, and activity trajectory data are missing, or more detailed data is missing, the number of online times and order preferences of the user are missing), and the missing value processing is performed on the attribute data of the user according to the missing attributes. Among them, for each missing attribute, the missing attribute can be deleted from the attribute data of the user having the missing attribute; or, multiple values ​​of the missing attribute can be obtained from the attribute data of the user having the missing attribute, and the average value is calculated based on the multiple values ​​of the missing attribute obtained, and the attribute data of the user lacking the missing attribute is improved based on the average value of the missing attribute; or, for the first user lacking the missing attribute, a second user similar to the first user can be determined from the second user having the missing attribute, and the attribute data of the first user can be improved based on the missing attribute of the second user similar to the first user.

[0093] In another example, during preprocessing, the attribute data of users in a time period is standardized (also called data normalization). For example, the number of online times and order completion of each user are converted into numbers between 0 and 1. The data standardization process is not described in detail here.

[0094] In another example, during preprocessing, feature selection is performed on the attribute data of users within a time period. Feature selection is performed on the attribute data of each user, and attribute data with a high correlation with user churn can be screened out from the attribute data of the user; or one of two attribute data with a high correlation can be retained, for example, one of the online time, offline time, and online time can be retained.

[0095] In a possible implementation, there are multiple first analysis models, and different time periods correspond to different first analysis models, and the model parameters of the first analysis models corresponding to different time periods are not completely the same. In the process of performing user type analysis using the first analysis model, for each time period, the first analysis model corresponding to the time period is first determined, and the attribute data of users in the time period is analyzed and processed using the first analysis model corresponding to the time period to obtain the user type analysis result corresponding to the time period.

[0096] For example, in multiple different time periods, it is determined that the first time period corresponds to the first first analysis model among the multiple first analysis models, the second time period corresponds to the second first analysis model among the multiple first analysis models, and so on. The attribute data of the user in the first time period can be input into the first analysis model corresponding to the first time period to obtain the user type analysis result corresponding to the first time period, and the attribute data of the user in the second time period can be input into the first analysis model corresponding to the second time period. Therefore, the corresponding first analysis model is used for different time periods to improve the user prediction effect.

[0097] Among them, the model parameters of the first analysis model corresponding to different time periods are not completely the same, including the following situations: the model structure of the first analysis model corresponding to different time periods is the same, but the weight parameters are not completely the same; or, the model structure of the first analysis model corresponding to different time periods is not completely the same.

[0098] Furthermore, considering that the user type analysis effects are different depending on the length of the time period, generally the longer the time period is, the more stable the effect of the user type analysis based on the attribute data of the users in the time period is. Therefore, the first analysis model corresponding to the time period can be determined according to the length of the time period. For example, the first analysis model corresponding to the time period with a longer length adopts a random forest model, which has a better effect, and the first analysis model corresponding to the time period with a shorter length adopts xgboost or LightGBM, which has a better effect.

[0099] The method of determining the first analysis model corresponding to the time period according to the length of the time period includes:

[0100] In one example, the duration thresholds corresponding to each first analysis model can be preset. When determining the first analysis model corresponding to each time period, the time period can be compared with the duration thresholds corresponding to each first analysis model, and the first analysis model corresponding to the duration threshold satisfied by the duration of the time period can be determined as the first analysis model corresponding to the time period, wherein the duration of the time period satisfies the duration threshold, which means that the duration of the time period is equal to the duration threshold, or the difference between the duration of the time period and the duration threshold is less than or equal to the preset threshold. Therefore, a corresponding first analysis model can be provided for the time period according to the duration of the time period to improve the user type analysis effect.

[0101] In another example, the first analysis model corresponding to the time period is obtained by training with sample data within the sample time period, and the duration of the time period is the same as the duration of the sample time period. When training multiple first analysis models, multiple sample time periods are determined, and the first analysis model corresponding to the sample time period is trained based on the sample data of the sample time period. When determining the first analysis model corresponding to the time period, the first analysis model corresponding to the sample time period whose duration is consistent with the duration of the time period is determined as the first analysis model corresponding to the time period.

[0102] S304: Analyze and process the user type analysis results corresponding to each time period using the second analysis model to obtain the user type of the user after the target time.

[0103] The second analysis model is a linear regression model, such as a logistic regression model. The second analysis model can be pre-built and trained to obtain a trained second analysis model.

[0104] Specifically, the user type analysis results corresponding to the time period include analysis results of the user types of one or more users after the target time. Therefore, according to the prediction results corresponding to each time period, multiple analysis results of the user types of the users after the target time can be obtained.

[0105] For example, the user type analysis results corresponding to time period A include analysis results a1 and b1 of the user types of users a and b after the target time respectively, and the user type analysis results corresponding to time period B include analysis results a2 and b2 of the user types of users a and b after the target time respectively. Then, based on the user type analysis results corresponding to time period A and time period B respectively, multiple analysis results a1 and a2 of the user type of user a after the target time and multiple analysis results b1 and b2 of the user type of user b after the target time can be obtained.

[0106] Specifically, after obtaining multiple analysis results of the user type after the target time, the multiple analysis results of the user type after the target time are input into the second analysis model to obtain the final analysis result of the user type after the target time output by the second analysis model.

[0107] In one example, the final analysis result of the user type of the user after the target time output by the second model includes the churn probability of the user after the target time obtained by the final analysis. Further, the user type of the user after the target time can be determined based on the churn probability of the user after the target time obtained by the final analysis. For example, if the churn probability of the user after the target time obtained by the final analysis is greater than a preset probability threshold, the user type of the user after the target time is determined to be a churn user type, otherwise the user type of the user after the target time is determined to be a non-churn user type.

[0108] In one example, the first analysis model and the second analysis model may adopt a Stacking model, wherein the first analysis model is a meta-model (also called a primary learner) in the Stacking model, and the second analysis model is a machine learning model (also called a secondary learner) in the Stacking model that aggregates the outputs of each meta-model to obtain a final output model. The Stacking model is not described in detail here.

[0109] In this embodiment, multiple different time periods before the target moment are determined, and user type analysis is performed on the attribute data of users in each time period through a first analysis model to obtain user type analysis results corresponding to each time period. The user type analysis results corresponding to each time period are processed through a second analysis model to obtain the user type of the user after the target moment, thereby effectively improving the utilization effect of the attribute data of users in each time period, improving the accuracy of user type analysis, and thereby improving the accuracy of user churn prediction.

[0110] To further understand the solutions of the aforementioned embodiments, Figure 4 The flowchart of the training method of the user type analysis model provided by one embodiment of the present disclosure is a flowchart of the training process of the first analysis model and the second analysis model. Figure 4 As shown, the method includes:

[0111] S401: Determine a plurality of sample time periods before a reference time.

[0112] The unit of the reference time is, for example, year, quarter, month, week, day, or hour, and the difference with the target time is that the actual loss of users after the reference time is known, while the actual loss of users after the target time is unknown. Therefore, the first analysis model and the second analysis model can be trained by predicting the user loss after the reference time and combining the actual loss of users after the reference time. The types of the first analysis model and the second analysis model can refer to the description of the aforementioned embodiment and will not be repeated here.

[0113] The number of reference moments may be one or more. When the number of reference moments is 1,

[0114] Specifically, a reference time is obtained, and multiple different sample time periods before the reference time are determined according to the reference time and the preset strategy. The preset strategy can refer to the preset strategy for multiple different time periods before the target time in the above embodiment, which will not be described in detail.

[0115] In one example, a reference time input by a user may be obtained, so that the user may input a reference time according to known circumstances of user churn, thereby improving the rationality of setting the reference time.

[0116] In another example, the current time can be obtained, and the reference time can be determined based on the current time. For example, a time that is one month away from the current time can be determined as the reference time. Therefore, the reference time can be automatically determined based on the current time without the user having to specify the reference time each time.

[0117] In a possible implementation, multiple sample time periods correspond to multiple different time periods in the aforementioned embodiments, and the corresponding sample time periods have the same duration as the time periods. When the target time is the end time of each time period, the reference time is the end time of each sample time period. When the duration of each time period is different, the duration of each sample time period is also different.

[0118] S402: Acquire sample data within a plurality of sample time periods, where the sample data within the sample time period includes attribute data and user types of users within the sample time period.

[0119] The user attribute data may refer to the description of the above embodiment and will not be described in detail. For each sample time period, the user type of the user in the sample time period includes the user type of all users (churned users and non-churned users) before the sample time period after the reference time (which can also be understood as the actual churn result after the reference time, which result is known), and the user type includes the churned user type and the non-churned user type. For example, the user type can be represented by a type label, the type label corresponding to the churned user type is 1, and the user label corresponding to the non-churned user type is 0.

[0120] Specifically, for each sample time period, the attribute data of all users before the sample time period may be obtained from a database storing the attribute data of all users, and the user types of all users before the sample time period after the reference time may also be obtained.

[0121] For example, the reference time is August 22, the first sample time period is from July 15 to August 22, the second sample time period is from July 22 to August 22, the third sample time period is from July 29 to August 22, and the fourth sample time period is from August 5 to August 22. At this time, for the first sample time period, the attribute data of all users before July 15 from July 15 to August 22, and the user types of all users before July 15 after August 22 can be obtained; for the second sample time period, the attribute data of all users before July 22 from July 22 to August 22, and the user types of all users before July 22 after August 22 can be obtained; ..., and so on, which are not described one by one here. Finally, the attribute data and user types of users in each sample time period are obtained.

[0122] S403: Train the first analysis model and the second analysis model according to the attribute data and user types of users in multiple sample time periods.

[0123] Specifically, after obtaining the attribute data and user type of the user in each sample time period, for each sample time period, the attribute data and user type of a single user are taken as a sample. For example, the sample can be expressed as <user attribute data, user type>. According to whether the user type is a lost user type or a non-lost user type, multiple samples can be divided into positive samples and negative samples. For example, a sample whose user type is a lost user type is determined as a positive sample, and a sample whose user type is a non-lost user type is determined as a negative sample. Therefore, multiple positive samples and multiple negative samples in each sample time period are obtained.

[0124] Specifically, after obtaining multiple positive samples and multiple negative samples in each sample time period, the first analysis model and the second analysis model can be supervised trained to obtain the trained first analysis model and the second analysis model. The trained first analysis model and the second analysis model are used to analyze and process the attribute data of users in multiple different time periods to obtain the analysis results of the user type after the target moment.

[0125] Specifically, during the training process, the attribute data of users in the sample can be used as the input of the first analysis model, and the first analysis model can be adjusted according to the output data of the first analysis model and the user type of users in the sample data; the output result of the first analysis model can be used as the input of the second analysis model, and the second analysis model can be adjusted according to the output data of the second analysis model and the user type of users in the sample data.

[0126] In a possible implementation, there are multiple first analysis models, and different sample time periods correspond to different first analysis models. The model parameters of the first analysis models corresponding to different sample time periods are not completely the same, so that different first analysis models can be trained according to the sample data in different sample time periods, thereby improving the training effect of the first analysis model. Among them, the model parameters of the first analysis models corresponding to different sample time periods are not completely the same, which can be referred to the model parameters of the first analysis models corresponding to different time periods in the aforementioned embodiment are not completely the same, and will not be repeated again.

[0127] Furthermore, according to the length of the sample time period, the first analysis model corresponding to the sample time period is determined, thereby fully considering the different prediction effects of user prediction based on sample data of sample time periods of different lengths, and specifically adopting the first analysis model applicable to sample time periods of different lengths to improve the model effect of the trained first analysis model. For details, please refer to the description of determining the first analysis model corresponding to the time period according to the length of the time period in the aforementioned embodiment, which will not be repeated here.

[0128] In one possible implementation, based on the fact that model parameter values ​​of the first analysis model corresponding to different sample time periods are not completely the same, for each sample time period, the first analysis model corresponding to the sample time period is determined, and the first analysis model corresponding to the sample time period is trained based on the attribute data and user type of the users in the sample time period, and the second analysis model is trained based on the output data of the first analysis model corresponding to each sample time period during training and the user type of the users in each sample time period, thereby obtaining the trained first analysis model and the second analysis model.

[0129] Among them, for each first analysis model, the output data of the first analysis model is the user type analysis result corresponding to the sample time period corresponding to the first analysis model, including the analysis results of the user types of multiple users after the reference time in the sample time period. Therefore, the first analysis model can be adjusted according to the analysis results of the user types of each user after the reference time output by the first analysis model and the actual user type of each user after the reference time.

[0130] Among them, according to the output data of multiple first analysis models, that is, according to the user type analysis results corresponding to multiple sample time periods, multiple analysis results of the user type of each user after the reference time can be obtained. The multiple analysis results of the user type of each user after the reference time are input into the second analysis model, that is, the multiple analysis results of the user type of each user after the reference time are integrated through the second analysis model to obtain the final analysis result of the user type of each user after the reference time. Therefore, according to the final analysis result of the user type of each user after the reference time and the actual user type of each user after the reference time, the second analysis model can be adjusted.

[0131] In a possible implementation, in the process of training the first analysis model and the second analysis model, a cross-validation method can be used for training and evaluation, which can not only train the first analysis model and the second analysis model, but also evaluate the model effects of the trained first analysis model and the second analysis model. Furthermore, the cross-validation can be a 5-fold cross-validation.

[0132] Taking 5-fold cross validation as an example, for each sample time period, the positive samples and negative samples of the sample time period are divided into 5 parts, one of the data is selected as the test data, and the remaining four data are used as training data. The first analysis model corresponding to each sample time period and the second analysis model are trained respectively through the training data of each sample time period, and then the first analysis model corresponding to each sample time period and the second analysis model are tested respectively through the evaluation data of each sample time period. After one round of testing and evaluation is completed, for each sample time period, another data (different from the test data on the previous side) is selected from the 5 data as the test data, and the remaining four data are used as training data, and the above operation is repeated to perform the second round of testing and evaluation. According to the above process, 5 rounds of testing and evaluation are performed to complete the training of the first analysis model and the second analysis model.

[0133] In a possible implementation, during the training of the first analysis model and the second analysis model, the model effects of the first analysis model and the second analysis model can be evaluated by evaluation indicators such as receiver operating characteristic curve (ROC curve), area under curve (AUC), precision, and recall. Among them, ROC curve, AUC, precision, and recall are evaluation indicators commonly used to evaluate classifiers, and are used to evaluate the model effects of the first analysis model and the second analysis model in this embodiment.

[0134] In this embodiment, the first analysis model and the second analysis model are trained based on the attribute data and user type of the users in multiple sample time periods before the reference moment to improve the training effect of the first analysis model and the second analysis model, thereby improving the prediction accuracy of user churn prediction through the first analysis model and the second prediction.

[0135] Figure 5 A schematic diagram of the structure of a user type determination device provided by an embodiment of the present disclosure, such as Figure 5 As shown, the device comprises:

[0136] A first determining module 501 is used to determine a plurality of different time periods before a target time;

[0137] An acquisition module 502 is used to acquire attribute data of users in multiple different time periods;

[0138] The analysis module 503 is used to analyze and process the attribute data of users in each time period to determine the user type analysis results corresponding to each time period;

[0139] The second determination module 504 is used to determine the user type of the user after the target time according to the user type analysis results corresponding to each time period, and the user type includes the churned user type and the non-churned user type.

[0140] In a possible implementation, the analysis module 503 is specifically used to: analyze and process the attribute data of the user in each time period through the first analysis model to obtain the user type analysis result corresponding to each time period. The second determination module 504 is specifically used to: analyze and process the user type analysis result corresponding to each time period through the second analysis model to obtain the user type of the user after the target time.

[0141] In one possible implementation, there are multiple first analysis models, and the analysis module 503 is specifically used to: for each time period, determine the first analysis model corresponding to the time period, and the model parameter values ​​of the first analysis models corresponding to different time periods are not exactly the same; through the first analysis model corresponding to the time period, analyze and process the attribute data of the users in the time period to obtain the user type analysis results corresponding to the time period.

[0142] In a possible implementation, for each time period, the first analysis model corresponding to the time period is obtained by training with sample data within the sample time period, and the length of the time period is the same as the length of the sample time period.

[0143] In a possible implementation, the duration of each time period is different, and the target time is the end time of each time period.

[0144] In a possible implementation, the device further includes:

[0145] A training module is used to determine multiple sample time periods before a reference moment; obtain sample data within the multiple sample time periods, the sample data within the sample time periods include attribute data and user types of users within the sample time periods; and train a first analysis model and a second analysis model based on the attribute data and user types of users within the multiple sample time periods.

[0146] In a possible implementation, multiple sample time periods correspond one-to-one to multiple different time periods, the corresponding sample time periods and time periods have the same duration, and the reference time is the end time of each sample time period.

[0147] In a possible implementation, there are multiple first analysis models, and the training module is specifically used for:

[0148] For each sample time period, the first analysis model corresponding to the sample time period is determined, and the model parameter values ​​of the first analysis models corresponding to different sample time periods are not exactly the same; for each sample time period, the first analysis model corresponding to the sample time period is trained according to the attribute data and user type of the users in the sample time period; the second analysis model is trained according to the output data of the first analysis model corresponding to each sample time period during training and the user type of the users in each sample time period.

[0149] In a possible implementation, the user type analysis result is the probability of user churn after the target time.

[0150] In a possible implementation, the first analysis model is a decision model, and the second analysis model is a linear regression model.

[0151] Figure 6 A schematic diagram of a training device for a user type analysis model provided by an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the device comprises:

[0152] A determination module 601 is used to determine a plurality of sample time periods before a reference time;

[0153] An acquisition module 602 is used to acquire sample data within a plurality of sample time periods, wherein the sample data within the sample time period includes attribute data and user types of users within the sample time period, wherein the user types include churned user types and non-churned user types;

[0154] The training module 603 is used to train the first analysis model and the second analysis model according to the attribute data and user types of users in multiple sample time periods, wherein the first analysis model and the second analysis model are used for user type analysis.

[0155] In one possible implementation, there are multiple first analysis models, and the training module 603 is specifically used to: for each sample time period, determine the first analysis model corresponding to the sample time period, and the model parameter values ​​of the first analysis models corresponding to different time periods are not exactly the same; for each sample time period, train the first analysis model corresponding to the sample time period according to the attribute data and user type of the users in the sample time period; train the second analysis model according to the output data of the first analysis model corresponding to each sample time period during training and the user type of the users in each sample time period.

[0156] In a possible implementation, the duration of each sample time period is different, and the reference time is the end time of each sample time period.

[0157] In a possible implementation, the first analysis model is a decision model, and the second analysis model is a linear regression model.

[0158] Figure 5 Provided user type determination means or Figure 6 The provided user type analysis model training device can execute the above-mentioned corresponding method embodiments, and its implementation principles and technical effects are similar, which will not be repeated here.

[0159] Figure 7 FIG. 1 is a schematic diagram of a structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 As shown, the electronic device may include: a processor 701 and a memory 702. The memory 702 is used to store computer-executable instructions, and the processor 701 implements the method of any of the above embodiments when executing the computer program.

[0160] The processor 701 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The memory 702 may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0161] An embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes a method as described in any of the above embodiments.

[0162] An embodiment of the present disclosure further provides a program product, which includes a computer program. The computer program is stored in a storage medium, and at least one processor can read the computer program from the storage medium. When the at least one processor executes the computer program, the steps in the method of any of the above embodiments can be implemented.

[0163] Figure 8 A block diagram of a user type determination device 800 provided in accordance with an embodiment of the present disclosure. For example, the device 800 may be provided as a server. Figure 8 , the apparatus 800 includes a processing component 801, which further includes one or more processors, and a memory resource represented by a memory 802, for storing instructions executable by the processing component 801, such as an application. The application stored in the memory 802 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 801 is configured to execute instructions to perform the method of any of the above embodiments.

[0164] The device 800 may also include a power supply component 803 configured to perform power management of the device 800, a wired or wireless network interface 804 configured to connect the device 800 to a network, and an input / output (I / O) interface 805. The device 800 may operate based on an operating system stored in the memory 802, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0165] In the embodiments of the present disclosure, "at least one" refers to one or more, and "more than one" 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: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0166] It should be understood that the various numerical numbers involved in the embodiments of the present disclosure are only used for the convenience of description and are not used to limit the scope of the embodiments of the present disclosure.

[0167] It is understandable that in the embodiments of the present disclosure, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

[0168] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The embodiments of the present disclosure are intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0169] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for determining a user type, characterized in that: The method comprises: Determine a plurality of different time periods before the target time; obtain attribute data of users in the plurality of different time periods; Analyzing and processing the attribute data of users in each of the time periods through a plurality of first analysis models to determine the user type analysis results corresponding to each of the time periods; including: For each of the time periods, a first analysis model corresponding to the time period is determined, and model parameter values ​​of the first analysis models corresponding to different time periods are not completely the same; the model parameter values ​​are not completely the same means that at least one of the model structure and the weight parameter is not completely the same; wherein the model structure of the first analysis model corresponding to the different time periods is determined based on the length of each of the time periods; Analyzing and processing the attribute data of users in the time period by using the first analysis model corresponding to the time period to obtain a user type analysis result corresponding to the time period; The user type analysis results corresponding to each of the time periods are analyzed and processed by the second analysis model to determine the user type of the user after the target time, wherein the user type includes a lost user type and a non-lost user type.

2. The method according to claim 1, characterized in that For each of the time periods, the first analysis model corresponding to the time period is obtained by training with sample data within the sample time period, and the length of the time period is the same as the length of the sample time period.

3. The method according to claim 1 or claim 2, characterized in that: The duration of each time period is different, and the target time is the end time of each time period.

4. The method according to claim 1, characterized in that The method further comprises: determining a plurality of sample time periods before a reference time; Acquire sample data within the plurality of sample time periods, wherein the sample data within the sample time period includes attribute data and user types of users within the sample time period; The first analysis model and the second analysis model are trained according to the attribute data and user types of users in the multiple sample time periods.

5. The method according to claim 4, characterized in that The multiple sample time periods correspond to the multiple different time periods one by one, the corresponding sample time periods and the time periods have the same duration, and the reference time is the end time of each sample time period.

6. The method according to claim 4 or claim 5, characterized in that: The training of the first analysis model and the second analysis model according to the attribute data and user types of users in the multiple sample time periods includes: For each of the sample time periods, determining a first analysis model corresponding to the sample time period, wherein model parameter values ​​of the first analysis models corresponding to different sample time periods are not completely the same; For each of the sample time periods, training a first analysis model corresponding to the sample time period according to attribute data and user types of users in the sample time period; The second analysis model is trained according to the output data of the first analysis model corresponding to each of the sample time periods during training and the user type of the users in each of the sample time periods.

7. The method according to claim 1 or claim 2, characterized in that: The user type analysis result is the probability of the user churn after the target time.

8. The method according to claim 1 or claim 2, characterized in that: The first analysis model is a decision model, and the second analysis model is a linear regression model.

9. A method for training a user type analysis model, characterized in that: The method comprises: determining a plurality of sample time periods before a reference time; Acquire sample data within the plurality of sample time periods, wherein the sample data within the sample time period includes attribute data and user types of users within the sample time period, wherein the user types include churned user types and non-churned user types; According to the attribute data and user types of users in the multiple sample time periods, a first analysis model and a second analysis model are trained, wherein the first analysis model is multiple and the first analysis model is used to analyze and process the attribute data of users in each time period to determine the user type analysis result corresponding to each time period; including: For each of the sample time periods, a first analysis model corresponding to the sample time period is determined, and model parameter values ​​of the first analysis models corresponding to different time periods are not completely the same; the model parameter values ​​are not completely the same means that at least one of the model structure and the weight parameter is not completely the same; wherein the model structure of the first analysis model corresponding to the different time periods is determined based on the duration of each of the time periods; For each of the sample time periods, training a first analysis model corresponding to the sample time period according to attribute data and user types of users in the sample time period; Training the second analysis model according to the output data of the first analysis model in training corresponding to each of the sample time periods and the user type of the user in each of the sample time periods; The second analysis model is used to analyze and process the user type analysis results corresponding to each of the time periods to determine the user type of the user after the target time.

10. The method according to claim 9, characterized in that The durations of the sample time periods are different, and the reference time is the end time of the sample time periods.

11. The method according to claim 9 or claim 10, characterized in that: The first analysis model is a decision model, and the second analysis model is a linear regression model.

12. A user type determination device, characterized in that: The device comprises: A first determining module, used to determine a plurality of different time periods before a target time; An acquisition module, used to acquire attribute data of users in the multiple different time periods; The analysis module is used to analyze and process the attribute data of users in each of the time periods through a plurality of first analysis models to determine the user type analysis results corresponding to each of the time periods; including: For each of the time periods, a first analysis model corresponding to the time period is determined, and model parameter values ​​of the first analysis models corresponding to different time periods are not completely the same; the model parameter values ​​are not completely the same means that at least one of the model structure and the weight parameter is not completely the same; wherein the model structure of the first analysis model corresponding to the different time periods is determined based on the length of each of the time periods; Analyzing and processing the attribute data of users in the time period by using the first analysis model corresponding to the time period to obtain a user type analysis result corresponding to the time period; The second determination module is used to analyze and process the user type analysis results corresponding to each of the time periods through a second analysis model to determine the user type of the user after the target time, wherein the user type includes a lost user type and a non-lost user type.

13. The device according to claim 12, characterized in that For each of the time periods, the first analysis model corresponding to the time period is obtained by training with sample data within the sample time period, and the length of the time period is the same as the length of the sample time period.

14. The device according to claim 12 or claim 13, characterized in that The duration of each time period is different, and the target time is the end time of each time period.

15. The device according to claim 12, characterized in that The device further comprises a training module, wherein the training module is used to: determining a plurality of sample time periods before a reference time; Acquire sample data within the plurality of sample time periods, wherein the sample data within the sample time period includes attribute data and user types of users within the sample time period; The first analysis model and the second analysis model are trained according to the attribute data and user types of users in the multiple sample time periods.

16. The device according to claim 15, characterized in that The multiple sample time periods correspond to the multiple different time periods one by one, the corresponding sample time periods and the time periods have the same duration, and the reference time is the end time of each sample time period.

17. The device according to claim 15 or claim 16, characterized in that The first analysis model is multiple, and the training module is specifically used for: For each of the sample time periods, determining a first analysis model corresponding to the sample time period, wherein model parameter values ​​of the first analysis models corresponding to different sample time periods are not completely the same; For each of the sample time periods, training a first analysis model corresponding to the sample time period according to attribute data and user types of users in the sample time period; The second analysis model is trained according to the output data of the first analysis model corresponding to each of the sample time periods during training and the user type of the users in each of the sample time periods.

18. The device according to claim 12 or claim 13, characterized in that The user type analysis result is the probability of the user churn after the target time.

19. The device according to claim 12 or claim 13, characterized in that The first analysis model is a decision model, and the second analysis model is a linear regression model.

20. A training device for a user type analysis model, characterized in that: The device comprises: A determination module, used for determining a plurality of sample time periods before a reference time; An acquisition module, configured to acquire sample data within the plurality of sample time periods, wherein the sample data within the sample time period includes attribute data and user types of users within the sample time period, wherein the user types include churned user types and non-churned user types; A training module, used to train a first analysis model and a second analysis model according to the attribute data and user types of users in the multiple sample time periods, wherein the first analysis model is multiple, and the first analysis model is used to analyze and process the attribute data of users in each time period to determine the user type analysis results corresponding to each time period; including: For each of the sample time periods, a first analysis model corresponding to the sample time period is determined, and model parameter values ​​of the first analysis models corresponding to different time periods are not completely the same; the model parameter values ​​are not completely the same means that at least one of the model structure and the weight parameter is not completely the same; wherein the model structure of the first analysis model corresponding to the different time periods is determined based on the duration of each of the time periods; For each of the sample time periods, training a first analysis model corresponding to the sample time period according to attribute data and user types of users in the sample time period; Training the second analysis model according to the output data of the first analysis model in training corresponding to each of the sample time periods and the user type of the user in each of the sample time periods; The second analysis model is used to analyze and process the user type analysis results corresponding to each of the time periods to determine the user type of the user after the target time.

21. The device according to claim 20, characterized in that The durations of the sample time periods are different, and the reference time is the end time of the sample time periods.

22. The device according to claim 20, characterized in that The first analysis model is a decision model, and the second analysis model is a linear regression model.

23. An electronic device, characterized in that: include: Memory and processor; The memory is used to store program instructions; The processor is configured to call the program instructions in the memory to execute the method according to any one of claims 1 to 11.

24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program; when the computer program is executed, the method according to any one of claims 1 to 11 is implemented.