Home » No-Code Machine Learning » Churn Prediction

How to Predict Customer Churn Without Coding

Customer churn prediction uses a classification model trained on your historical customer data to identify which current customers are most likely to cancel. You export a spreadsheet of past customers with their behavior metrics and cancellation status, train a model, and then score your active customers. Once trained, running churn predictions costs zero credits per customer, so you can score your entire customer base daily.

What Data You Need

The foundation of a churn model is a dataset of past customers where you know the outcome: did they cancel or did they stay? Each row represents one customer, and you need columns that describe their behavior before the outcome was known.

Useful features for churn prediction include:

Export this data from your CRM, billing system, or application database. Combine multiple sources into one spreadsheet if needed. See How to Prepare Your Data for Machine Learning for detailed preparation steps.

How to Build the Model

Step 1: Export your customer history.
Pull at least 500 past customers (both churned and retained) with the features listed above. More is better, but 500 well-prepared rows is enough to get started. Make sure both categories are represented, aim for at least 100 churned customers in the dataset.
Step 2: Upload to the Data Aggregator.
Save your data as a CSV file and upload it through the Data Aggregator app. The platform reads your columns and lets you select which one is the target (the "churned" column) and which are the input features.
Step 3: Choose an algorithm and train.
Random forest is the best starting point for churn prediction because it handles mixed data types, captures non-linear relationships, and resists overfitting. Start training and the platform handles the rest. Training time depends on data size but typically takes seconds to minutes.
Step 4: Check accuracy.
After training, review the accuracy metrics. For churn prediction, pay special attention to recall (what percentage of actual churners did the model catch) and precision (when the model says someone will churn, how often is it right). A model that catches 70% of churners with 60% precision is useful, you catch most at-risk customers while accepting some false positives. See How to Test Model Accuracy.
Step 5: Score your active customers.
Export your current active customers with the same columns (minus the "churned" column) and send them through the model. Each customer gets a churn probability score. Sort by score to see who is most at risk. This prediction step costs zero credits per customer.

What to Do With Churn Predictions

A churn prediction on its own does nothing. The value comes from the action you take based on it:

You can automate these actions using workflow automation. Set up a chain command that runs churn predictions nightly, filters for high-risk scores, and triggers appropriate follow-up actions automatically.

Retrain regularly. Customer behavior changes over time. A churn model trained on 2024 data may become less accurate as your product, pricing, or market evolves. Retrain quarterly or whenever you notice prediction accuracy dropping. See How to Retrain Models With New Data.

Example: SaaS Subscription Churn

A SaaS company exports 3,000 customer records from the past two years. Features include monthly active users per account, feature usage breadth (how many distinct features they use), support ticket count, billing plan, account age, and whether the account cancelled. They train a random forest classifier and achieve 75% recall with 65% precision.

They score their 800 active accounts. The model flags 120 as high churn risk. The customer success team contacts the top 30 highest-value flagged accounts. Within a month, they save 12 accounts that were actively considering cancellation, recovering an estimated $144,000 in annual recurring revenue. The entire ML pipeline cost less than $5 in training credits.

Predict which customers are about to leave and take action before they cancel. Train a churn model on your own data today.

Get Started Free