Problem
An offline retailer sells to professional (PRO) customers, from construction firms to individual craftsmen. Large accounts have personal managers. Most small and medium customers do not, so the company cannot react when they quietly stop buying, and retention work was done by hand with no effect measurement.
Example from the article: Leroy Merlin PRO customers (sole proprietors and limited liability companies) were scored weekly for churn. Only the call-center channel produced a significant return of customers.
Solution in brief
Label a customer as churned after 365 days without purchases, train a CatBoost classifier tuned for Precision at a high probability threshold, and select target groups by churn probability per channel. Run three A/B tests in parallel (store managers, call center, e-mail) with groups split by recency stratification and validated by A/A simulations. Only the call center won, so only it went to production behind weekly training and scoring with daily delivery to the call-center system.
Questions this case answers
- How to turn a churn-risk score into a retention action whose effect is proven, when contact capacity differs by channel and most at-risk customers are the least recoverable
- How to define churn from purchase gaps when purchase cycles vary widely and there is too little history per customer to segment
- How to find small and medium B2B customers who are about to stop buying when personal managers cover only the largest accounts?
- How to label churn on history when customers buy only once or twice a year?
Tools and methods
- CatBoost classifier — binary churn model with
auto_class_weights: Balancedandselect_thresholdfor a target false positive rate - RFM and recency/lifetime ratios — the strongest features of the model
- A/A simulation (~10,000 splits) — checks that stratified splitting does not produce false differences
- proportions z-test (statsmodels) — Retention_1 and Retention_2 significance, with MDE
- Evidently AI — data drift checks on numeric features
- Kubeflow, Grafana — weekly pipeline and production metrics
Google or a one-time email code. No password.
