In brief
A churn model estimates which of an operator's customers are likely to leave within a set horizon, for example within 60 days or before the end of their contract. It uses data about the contract, service usage, payments, network quality and contacts with customer care. The score alone does little: the value appears when the retention team gets a list ranked by customer value and the chance of keeping them, and the effect of its actions is measured against a control group.
What churn is and how to define it
Churn is a customer leaving, but a model needs a definition you can compute from data. Three things have to be settled first:
- the event: contract termination, porting the number to another network, or, for prepaid, no top-up and no activity for a set number of days;
- the horizon: how soon after the prediction date the event must happen for the team to have time to react;
- the prediction date: the day the input data comes from; the model must not see anything that happened later.
Contract end dates are a good moment. The European Electronic Communications Code (Directive 2018/1972, Article 105) limits the initial commitment period in consumer contracts to 24 months. The end of the commitment period is when a customer can switch networks most easily, so many models are run separately for customers a few weeks before that date.
Partial churn counts too: a customer keeps the mobile number but moves home internet to a competitor. If that matters to the business, you need a model at the service level, not just the customer level.
Which data matters
| Source | Example features |
|---|---|
| Contract and offer | days to end of commitment, tariff, monthly fee, tariff change in recent months |
| Billing and payments | late payments, a rising bill, invoice corrections and disputes |
| Service usage | fewer calls and less data traffic, roaming, a new device |
| Network quality | dropped calls, poor coverage where the customer spends time, outages nearby |
| Customer care | number of contacts, unresolved tickets, questions about termination terms |
| Inter-operator events | requests related to number porting |
The strongest signals usually combine several sources, for example a few contacts with customer care after a local outage plus falling usage. That is why most of the project work is joining billing, network and CRM data into one table per customer per day. The quality of that data affects the result more than the choice of algorithm, as we discuss in the article on data quality. Network data usually arrives as a stream, described in the piece on real-time network events.
Models: from rules to machine learning
Start with a baseline: a simple rule (for example contract ending within 60 days and at least two complaints) or a logistic regression. It gives a result the business understands and a yardstick for any more complex model.
On tabular data, gradient boosted tree models work well. When the question is “when will the customer leave” rather than “will they leave”, survival analysis helps, because it models the time to the event.
Two mistakes spoil most first models:
- Data leakage. A feature that only appears when the customer leaves, such as a “termination in progress” status, gives a great test score and zero value in practice.
- A random train and test split. The model has to work on future months, so it is tested on a period later than the training data. The scikit-learn documentation describes a time series split (TimeSeriesSplit) for this.
How to evaluate the model
Only a minority of customers churn, so accuracy is misleading: a model that says “nobody will leave” has high accuracy and zero value. Better measures are:
- precision and recall for the “will leave” class at a threshold that matches the retention team's capacity;
- lift in the top deciles of the list: how many times more churners there are in the first 10% of customers than in the whole base;
- calibration: among customers scored 0.3, do about 30% actually leave. Without calibration you cannot compute the expected value of an action. Calibration methods are described in the scikit-learn documentation.
The model also has to be monitored after deployment. A competitor's new offer or a price change shifts customer behavior, and the model's score drops without any change in the code.
From score to retention action
The list of the highest-risk customers is only the start. The retention team needs answers to three questions:
- How much is this customer worth? Risk multiplied by the customer's margin gives a different order than risk alone.
- Can they be kept? Some customers will leave despite an offer, some would stay without one. Uplift models look for the people an action actually influences.
- What should they be offered? A discount will not help a customer leaving because of poor coverage at home. A network diagnosis and a technician visit work better there.
The effect is measured with a control group: a random share of high-risk customers gets no offer. Without it you cannot tell the effect of your actions from customers who would have stayed anyway. This approach is described in the scenario on predicting churn among contract customers. How model results reach agents in the CRM is covered in the article on CRM, IVR and customer service automation.
Personal data and GDPR
A churn model is profiling within the meaning of the GDPR, so you need a legal basis and information for the customer. Article 21 GDPR gives a person the right to object to processing for direct marketing, including profiling, and after an objection they must be excluded from such activities. Article 22 covers decisions based solely on automated processing that produce legal effects or similarly significantly affect the person. A discount offer usually is not one, but an automatic refusal to renew a contract could be.
In practice it helps to minimize data (no call or SMS content, counters are enough), pseudonymize it in the analytics environment and keep a record of which features the model uses. Data for testing such systems is covered in the article on test data and GDPR.
Questions and answers
How far ahead should you predict customer churn?
Far enough for the team to act, but no further than the data allows. Typically a few weeks to a few months. A short horizon gives a more accurate model but less time to reach the customer. For contract customers the end of the commitment period is a good reference point, for prepaid customers rather a few weeks, because they leave without giving notice.
Which data best predicts telecom churn?
Usually a combination of several sources: time to end of contract, customer care contacts and complaints, changes in service usage and network quality where the customer spends time. A single feature is rarely enough. The ranking of features depends on the market and the offer, so you have to check it on your own data rather than borrow it from someone else's model.
Does a churn model need to be explainable?
For the retention team, yes, because the agent needs to know what to talk to the customer about. A list of the few features that raised a given customer's score the most is usually enough. Explainability also helps catch data leakage: if the top feature is something created at termination, the model needs fixing.
How do you check whether retention actions work?
With a control group. A randomly selected share of high-risk customers gets no offer, and after a set time you compare the churn rate in both groups. The difference is the effect of your actions. Without a control group, a drop in churn might come from seasonality, a price change or the fact that some customers would have stayed anyway.