Customer Churn Prediction
Solution Background and Business Value
Customer churn prediction helps businesses retain users by identifying those at risk of leaving and taking proactive steps to re-engage them. This is particularly useful for subscription-based services, e-commerce platforms, and streaming services.
With Kumo AI, businesses can:
-
Train a churn model tailored to their data and customer behavior.
-
Use the Kumo REST API to export predictions to a CRM system.
-
Send targeted notifications through email, SMS, or push notifications to customers likely to churn.
Kumo’s Predictive Query Language (PQL) supports flexible churn definitions, including:
-
Subscription churn: Predict users likely to cancel within the next 3 months.
-
Inactivity churn: Predict users unlikely to log in within the next 7 days.
-
Purchase churn: Predict users unlikely to make a purchase in the next 30 days.
Data Requirements and Schema
A core set of tables is required; additional tables improve prediction quality.
Core Tables
-
Users Table: stores customer information. Key attributes:
user_id(unique identifier). Optional: signup date, subscription status, location. -
Events Table: tracks user activity such as purchases, logins, and video streams. Key attributes:
user_id(links to a user),timestamp(time of event). Optional: event type (purchase, session start, stream start). -
Items Table: contains details about products or content. Key attributes:
item_id(unique identifier). Optional: product category, price, genre.
Optional Enhancement Tables
-
Merchants Table: Details about merchants in a marketplace.
-
Sessions Table: Session start and end times for users.
-
Clicks Table: User interactions with specific items.
-
Reviews Table: User-generated product reviews.
Entity Relationship Diagram (ERD)
Predictive Queries
Churn is defined as users who become inactive within a given timeframe.
The PQL queries below use X (future window in days) and Y (lookback window in days) as configurable placeholders.
1. Predicting Purchase Churn
Predicts users who will not make a purchase in the next X days, given that they were active in the last Y days.
2. Predicting Streaming/Inactivity Churn
Predicts users who will not stream content in the next X days, given that they had active sessions in the last Y days.
3. Predicting Subscription Churn
Predicts users who will unsubscribe in the next X days, given that they were subscribed in the last Y days.
Building models in Kumo Fine-Tune SDK
1. Initialize the Kumo Fine-Tune SDK
2. Connect data
3. Select tables
4. Define graph schema
5. Train the model
Deployment Strategy
In production, churn prediction models integrate into automated retention strategies:
-
Generate churn scores using Kumo.
-
Filter users by churn risk and store the scores.
-
Export churn scores to a CRM (for example, Salesforce, Marketo, or Braze).
-
Trigger personalized engagement such as emails, push notifications, or discounts.
-
Automate the pipeline using a workflow orchestration tool (for example, Airflow or Dagster).