Problem
A business wants to keep its customers, because winning a new one usually costs more than retaining an existing one. Churn prediction finds the customers most likely to stop doing business in a given period. The first obstacle is that "churn" has no universal definition: it means a long period of inactivity, but how long depends on the domain and the service feature. The second is that raw activity logs are sparse, skewed and full of outliers, so they need preparation before modeling.
Example from the article: the authors' Microsoft team often meets similar business-customer churn cases and built Customer Retention as a Service (CRaaS), a shared framework for churn features and model building. This part covers only the fundamentals; the framework is in Part 2.
Solution in brief
Label a customer as churned when inactivity or a behavior change passes a threshold (a time window) chosen for the data and the use case. Then prepare the log features, pick a model family and judge it with ROC AUC and the cumulative gain curve.
Questions this case answers
- How to turn inactivity in event logs into a binary churn label with a time window and enough history per customer
- How to evaluate a ranking of customers by risk so that a retention team can decide how many to contact
- How to define churn from customer activity logs so that it can be labeled and predicted?
- How to choose a model family and feature preparation for a churn prediction pipeline?
Tools and methods
- Time-window churn label — churned when inactivity passes a threshold, set per use case
- Feature preparation — encoding, outlier detection and sampling for sparse, skewed, imbalanced logs
- SMOTE and ADASYN — oversampling of the rare churn class
- XGBoost — example of the traditional ML models most churn studies use
- ROC AUC and cumulative gain curve — ranking quality and campaign sizing
Google or a one-time email code. No password.