Predict churn

Published December 06, 2021
Selected Clients
carrefour logo

Churn prediction is a business strategy that involves identifying customers who are likely to stop using a product or service in the near future. Churn prediction can help businesses reduce customer churn rates, increase customer loyalty, and improve overall business performance. With the Prediction module you can create predictive models that accurately forecast customer behavior, enabling you to take targeted actions to reduce churn and improve customer satisfaction.

In this use case, we will create a prediction which will help us identify customers likely to churn. As the prediction target we will use an expression with the segmentation of customers who had a transaction and have not visited our page in the last 30 days.

Churn prediction
Churn prediction



In this use case, you will go through the following steps:

  1. Create a segmentation.
  2. Create an expression.
  3. Create a prediction.

Create a segmentation

In this step, we create a group of customers who have made at least one transaction but have not visited the site in the last 30 days. This segmentation will be used in an expression in the next step.

  1. Go to Analytics iconAnalytics > Segmentations > New Segmentation.
  2. Optionally, switch the Show in profile card toggle on.
  3. Enter the name of the segmentation.
  4. From the Performed action dropdown list, select the transaction.charge event.
    Tip: Events may have different labels between workspace, but you can always find them by their action name (in this step, it’s transaction.charge).
  5. Using the date picker in the lower-right corner, set the time range to Relative time range > More > Lifetime.
  6. From the Performed action dropdown list, select the Visited page event.
  7. Change Performed action to Not performed.
  8. Using the date picker in the lower-right corner, set the time range to Relative time range > Custom > Last 30 days.
  9. Save the segmentation.

Create an expression

In this part of the process, create an expression that will serve as the target for the prediction model. The expression will return 1 if a customer belongs to the previously defined segmentation and 0 if they don’t.

  1. Go to Analytics icon Analytics > Expressions > New expression.
  2. Enter the name of the expression.
  3. From the Expressions for dropdown list, select Attribute.
    Predictions work only with attribute expressions.
  4. In the formula creator, click the Select node and from the drop-down list select Function > If.
  5. As the first argument, select the segmentation you created earlier.
  6. As the second argument, select Constant and set its value to 1.
  7. As the third argument, select Constant and set its value to 0.
  8. Save the expression.
The view of the configuration of the expression
Configuration of the expression

Create a prediction

  1. Go to Prediction icon in left menu Predictions > New prediction.
  2. In the upper-right corner, enter a name for the prediction.
  3. In the Prediction type section, click Define.
  4. Select Classification and click Apply

Select the audience

In this section you decide which segment of the customers should be taken into account while making a prediction. For every individual in the segment, Synerise produces a single prediction.

Segmentations can be very complex and the possibilities of building the conditions are practically unlimited. In this example, a simple segmentation will include customers who have a marketing agreement.

  1. In the Audience section, click Define.
    You can use existing segmentations. This example shows how to create a new one.
  2. Click Choose segmentation > Create new.
  3. Enter a segmentation name and click Next step.
  4. Click Choose filter, from the dropdown list, select Attribute> Email agreement.
  5. From the choose operator dropdown list, select Equal (String).
  6. In the text field, enter enabled.
  7. Click Create segmentation.
    Result: The segmentation is saved as the audience of the prediction and also becomes available in the Analytics module for other uses.
  8. Click Apply.
The view of the configuration of the Audience
Audience configuration.

Select prediction target

  1. In the What would you like to predict? section, click Define.
  2. Click Select expression and select the expression created earlier.
  3. Click Apply.

Select inputs

In this section, you set up input features based on which the prediction model will be trained.

It is possible to select feature inputs manually, but we recommend using the automatic selection, as explained below. Our algorithms evaluate feature relevance in context of the prediction target and are, in most cases, more effective than manual selection.

  1. In the Model inputs section, click Define.
  2. Click Add feature > Automatically.
    Result: The list is populated with input features.
  3. Click Apply.

Configure additional settings

The additional settings define how often re-calculations are made and the content of events produced by the prediction.

  1. In the Settings section, click Define.
  2. From the How many days in advance do you want to make a prediction list, select 30 days.
  3. In the Calculation frequency section, select Recurring calculation.
  4. From the How frequently should the model be trained? list, select 30 days.
  5. In the Prediction start section, select Immediately.
  6. In How would you like to display results, select 5-point scale.
    The algorithm detects the importance of a prediction.
  7. In the Define the value of the score name parameter section, enter a user-friendly name for the prediction score.
    The name is shown as the value of the scoreName parameter in the snr.prediction.score event.
  8. Click Apply.
  9. To finish and calculate the prediction, click Save & Calculate.

The prediction results are saved as snr.prediction.score events in customer profiles.

What’s next

You can use the prediction results in your work, for example to Create an automation to reduce churn or Evaluate results of churn prediction.

A more advanced example of using a segmentation created from a churn prediction is described in Promote discounted items to customers at risk of churn.

Check the use case set up on the Synerise Demo workspace

You can check all configurations directly in Synerise Demo workspace:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.



Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker