Creating a Customer Lifetime Value Indicator

Objective

After completing this lesson, you will be able to predict customer spending

What is Customer Lifetime Value?

Customer Lifetime Value, the total revenue a company can expect to earn from a single customer account throughout the entire duration of their relationship, is a key performance indicator for any business. This lesson will teach you how to use predictive analytics to effectively anticipate and leverage this metric, abbreviated as CLV. We'll explore the Customer Lifetime Value Model in the AI Workbench, its key features, and how it facilitates identifying valuable customers, understanding CLV Formulas, as well as configuring and running the CLV Model.

What is the Customer Lifetime Value Model?

The Customer Lifetime Value Model is a predictive analytics tool in the AI Workbench. It uses historical customer data to understand patterns and predict the likelihood of a customer, or a group of customers, improving their engagement with your products or services. The model leverages sophisticated algorithms and allows customized CLV formulas to provide actionable insights on key customers who are highly engaged with your brand.

Getting to Know the Customer Lifetime Value Model

The Customer Lifetime Value Model in SAP Customer Data Platform AI Workbench is a powerful tool for predicting customer purchase patterns such as order amounts, frequency, and overall engagement. By analyzing historical customer behavior, the model identifies patterns and calculates the probability that a given customer will improve engagement with your products and services in the future. This insight is crucial for making decisions about marketing spend, customer acquisition strategies, retention efforts, and overall business growth. Think of it as a crystal ball, but instead of vague predictions, it gives you data-driven insights into which customers are likely to engage and why.

Customers shopping with computers, the AI Workbench “crystal ball” finds those who are placing a greater number of orders or spending larger amounts, allowing you to target them to increase your organization’s revenues.

Customer Lifetime Value Model Capabilities

Predict Customer Lifetime Value probabilities at both profile and group levels.

The model can predict Customer Lifetime Value for individual customers (the profile level), allowing for highly personalized interventions. It can also predict Customer Lifetime Value for a collection of customers (the group level), enabling strategic business decision making.

Two charts side-by-side. One showing individual customer CLV Indicators, the other showing CLV Indicators for customer segments.
Use advanced algorithms to train and analyze predictive behaviors.

The Customer Lifetime Value Model utilizes sophisticated machine learning algorithms, for instance Gradient Boosted Trees (GBTs) and Multilayer Perceptron Classifier (MLPC), to identify complex patterns in customer behavior that indicate brand engagement. These algorithms learn from your historical data and continuously improve their accuracy over time.

A simplified representation of a machine learning algorithm processing data and outputting CLV predictions. Consider an image of data flowing into a box labeled “Machine Learning Algorithm” and predictions coming out.
Enable business-specific customizations like CLV Formula and observation/prediction windows.

You can tailor the CLV Model to your specific business needs by defining what constitutes value for your business (e.g., sum amount of the last orders placed in the 90 days, average orders sums in the past year, etc.). You also control the timeframe for the historical data analysis (observation period) and the timeframe for the CLV prediction (prediction period).

A simple calendar graphic highlighting the observation period and the prediction period.

Key Concepts

CLV Formula

This defines the projection that indicates the customer value for your business. It's the trigger that tells the model how much a particular customer is engaged. For example, for an e-commerce business, it could be "Sum of purchases in the last 90 days."

A simple graphic illustrating a CLV Formula, such as many shopping carts with many products with “90 days” next to it.
Prediction Period

This is the timeframe into the future for which the model predicts CLV. For instance, you might want to predict CLV for the next 30, 60, or 90 days.

A calendar graphic highlighting a 30/60/90 day period labeled “Prediction Period”.
Observation Period

This is the timeframe of historical data the model uses to identify CLV patterns. It's the period the algorithm ‘learns’ from. A longer observation period can provide more data for the model to learn from, but it also means older, and thus perhaps less relevant, data might influence predictions.

Historical Data (Observation Period) → CLV Model Algorithm → CLV Prediction (Prediction Period)

CLV Formula

Customer Lifetime Value, the measure of engagement level of the customer with your product and services, is a critical metric for any business. Accurately predicting which customers are likely to improve their engagement allows you to take proactive steps to leverage the momentum and grow your business. The SAP Customer Data Platform AI Workbench helps you achieve this by allowing you to define specific CLV Formulas.

CLV Formulas are user-defined aggregatory projections that constitute the customer "value" in your specific business context. These projections are used by the predictive models in the AI Workbench to identify how valuable a customer is for your business.

Defining CLV Formulas

You can define CLV Formulas using the AI Workbench's flexible editor, choosing from four options:

  1. Visual Editor: A user-friendly GUI interface for building formulas without coding.GUI panel showing the formula being built, with a dropdown listing operators and variables.
  2. Visual Editor and Text: Combines the visual editor with a read-only text view of the formula.GUI panel showing the formula being built, with a dropdown listing operators and variables. The formula's text representation is also displayed as a non-editable field.
  3. Advanced: Visual Editor and Editable Text: Allows you to edit the formula directly as text while also seeing the visual representation.GUI panel showing a formula as both a set of clickable elements and an editable text field.
  4. Advanced: Editable Text: For users comfortable with writing formulas directly as text.GUI panel showing the formula in an editable text field.

Using CLV Formula Templates

The AI Workbench provides pre-built CLV Formula templates to get you started quickly. These templates cover common CLV scenarios, such as customer order frequency and amounts, and other high engagement patterns.

Dialog showing available templates, including Sum Amount for Last 60 days, Sum Amount Without Tax for Last 90 days, and Average Amount for Last 90 Days.
Example: "Sum Amount for Last 90 Days" Template

This template defines a CLV Formula projecting the sum of all orders amounts for the last 90 days. It looks like this:

sum(Activities.Orders.Amount , inLast(90 day))

Formula displayed as editable text. The formula sums the Amounts of Activity Orders over the previous 90 days.

You can use this template as is or customize it by modifying the number of days. For instance, changing '90' to 60 would constrict CLV to only include orders in the last 60 days.

Formula displayed as editable text. The formula sums the Amounts of Activity Orders over the previous 60 days.

This understanding of the CLV Model and its key components will allow you to effectively use the AI Workbench to predict and address how valuable some customers are. In the next section, we'll dive into the practical steps involved in configuring and running a CLV Model.

Quick Start with CLV Predictive Indicator

There is a simpler and straightforward way to create a new CLV Predictive Indicator and run the CLV model: instead of using the AI Workbench, you can do so in the main CDP Console.

Let’s quickly create a new CLV Predictive Indicator using the main SAP Customer Data Platform Console.

Step-by-Step Procedure

  1. Go to CustomersIndicators from the left-hand side navigation menu.Menu over the Workbench main page, with the Indicators entry highlighted.
  2. Click Create New Indicator.Indicators page showing Profile and Orders indicators. The button at the top right, labelled Create New Indicator, is highlighted.
  3. Choose Customer Lifetime Value under Predictive Indicators on the Create New Indicator popup and choose Create.Dialog titled Create New Indicator. On the left side, a list of available indicators is shown, and Customer Lifetime Value is highlighted. At the right of the dialog, we can see a button labelled Create.
  4. Choose the prediction time frame, segments, processing purposes, the activity representing the order information, and its attribute representing order amount.Window showing model settings for a Customer Lifetime Value Indicator. The settings include the indicator time rame, the segments the model will use, the processing purpose, the activity for Orders, and the field for order amount.

    This is a simplified view of the full CLV model settings. Settings are covered in the next section, which explains how to fine tune the model run in the AI Workbench.

    Once you choose Save, the new indicator will be activated and calculated. You will be able to see the new indicator values on customer profiles or groups when the calculation is completed.

    Part of the Indicators page showing two Profile predictive indicators, clv_2mo and clv_3mo.

Configuring a CLV Model Run

If you need more flexibility when running CLV models, the AI Workbench can provide you with both extra basic settings and extra advanced configurations.

Step-by-Step Procedure

  1. Access the AI Workbench

    First, choose AI Workbench from the top Entity dropdown. After that, from the AI Workbench side panel, choose the Manage Models icon.

    The AI Workbench, showing Churn Information.
  2. Choose the CLV Model Type.

    Select Customer Lifetime Value (Profile) to predict CLV at the profile level, or

    Select Customer Lifetime Value (Group) to predict CLV for customer groups.

    Page showing an overview of the Customer Lifetime Value for Profiles, and information about its latest run.
  3. Define the Model Details
    • Predictive indicator name: Give the CLV model a name that reflects its purpose (for instance, "VIP Customers Prediction").
    • Provide a Description (optional).
    Page showing the settings tab of the Customer Lifetime Value (Profile).

    The name is considered to be the name of the predictive indicator, hence the field name. Once you complete the model run, a new predictive indicator will be created in the CDP, although it’s not activated by default.

    Indicators page in the CDP showing two Profile Indicators, one active, the other inactive.
  4. Segment and Group Selection (optional)

    Choose the target population or a subset of your analytics data by selecting a segment. For example, a segment could be a set of profiles or groups from a particular city, e.g., "Customers from New York".

    For group-based predictions, specify the relevant group type (for instance, product category or subscription type).

  5. Set Processing Purposes (optional)

    Ensure data processing permissions are configured under Processing Purposes.

    Page shoeing model parameters. The Processing purpose, set to Tos, is highlighted.

    If you don't choose a processing purpose, the model will run on all profiles or groups and their orders, i.e., no matter whether or which processing purposes are granted.

  6. Adjust CLV Formula

    Define a new CLV Formula or choose one from the Templates(for instance, "Sum Amount for Last 90 Days").

    Page fragment showing the CLV Formula: sum(Activities.Orders.Amount, InLast (90 day)).

    The CLV Formula will be used to determine how valuable a profile or group is. You can use built-in templates or create a custom CLV Formula in the editor.

  7. Customize Prediction Parameters.
    1. Set Prediction period (for instance, 6 months).

      The window of time for which the model produces the dependent variables or predictions.

    2. Define the Observation period (for instance, 12 months prior)

      The period of time that determines the independent variables of the model.

    3. Configure High/Low percentile thresholds for high/low value categorization.Page fragment showing the model parameters Segment, Processing purposes, CLV Formula (, Prediction period, Observation Period and high/low percentiles (80/20).

      Profiles or groups that are predicted to have a high value at or above/below this probability will be labeled high/low value, respectively.

  8. Advanced Settings (Optional).

    Activate a specific algorithm, and configure Evaluation metric (e.g., RMSE), Split ratio, and cross validation options.

    Advanced section of the settings page highlighting the Algorithm (Random Forest) and showing all its configuration options.

    The advanced section is a powerful tool for data scientists. It allows you to fine-tune your model by selecting different algorithms and evaluation metrics. However, this section is optional and disabled by default. If you don't need to use it, simply move on to run the configured CLV model.

    If you want to explore the advanced section, just toggle it on. Once it's open, you can further customize the algorithm you've chosen.

Running the CLV Model

Here are the steps to run a CLV Model:

  1. Start the Run:

    After inputting all configurations, click the Run button at the bottom right of the Settings screen.

    CLV page showing the Settings tab. At the bottom, we see a button labelled Run.
  2. Monitor Progress:

    Navigate to the Runs Tab to view real-time status updates and completed results.

    Runs tab of the CLV (Profile) page showing three runs, one of them with status Running, another with Status Warning, and the third with status Completed. The last two runs are also marked as Published.

    The Status will go through Queued, Running, and Completed or Failed.

  3. Interpret Results:

    Analyze outputs such as high-value profiles/groups based on the defined thresholds.

    Runs tab of the CLV (Profile) page showing that each row has a drop-down menu where actions such as Run, Report, Log, and Scheduling are possible.

    Once the model run is Completed, click the Actions dropdown menu on the corresponding entry.

    You can view the log information of the Completed or Failed model run by choosing Log from the Actions dropdown menu.

    Logs page.

    You can view the report information of the Completed model run by choosing Report from the Actions dropdown menu.

    The Reports page showing details of the run, including total and average CLV, high and low value CLV profiles, and the Average CLV of both of these.

    You can see the Average, Sum, and Customer Lifetime Value Profiles. Each pie chart is divided into High, Medium,and Low CLV distribution groups. These numbers are calculated based on the CLV (high / medium / low) percentage configurations on the Settings screen.

  4. Publish the predictive indicator:

    If the model run completes successfully without errors in the log information, and the report looks good, you can Publish the model run result as a predictive indicator.

    Runs tab of the CLV (Profile) page, highlighting the Publish option of a run's drop-down menu.

    Like the model run Status, the Publish process will also go through the statuses Queued, Running, and Published or Failed.

    Runs tab of the CLV (Profile) page highlighting the Schedule Prediction option of a run's dropdown menu.

    After the result or predictive indicator is Published, you can still manually trigger the same model run (the Run Prediction action), or schedule the same model run (the Schedule Prediction action) to be triggered periodically. Alternatively, you can Copy the previous run configurations as a template to start a fresh new model run configuration.

    Now we can go to the Indicators screens to find and activate the new predictive indicator.

    Indicators page showing the dropdown at the right of each indicator, the first choice of which is 'Activate'.

    Once the predictive indicator is activated, the associated CLV Model run will be automatically scheduled. You can modify the schedule by choosing Edit Scheduled Prediction from the Actions dropdown menu.

    Runs tab of the CLV (Profile) page highlighting the dropdown menu option Edit Scheduled Prediction.
  5. Check the predictive indicator values:

    Now that the new predictive indicator is activated, you can go to the customer profiles or groups to see the predicted values.

    Page showing the customer Robert Dennis, with a CLV value of 606 over the next two months.

Configuring, Executing, and Publishing a CLV Model – Video

The following video demonstrates the process of configuring, executing, and publishing a CLV Model, and then using its results to find valuable customers.

Practical Test

It's time to put your knowledge on how to run a Customer Lifetime Value indicator to the test. The following practical test invites you to carry out the steps necessary to create a CLV predictive indicator, using a simulated CDP Workbench. Only the controls needed for each step of the test are active. Good luck!

Practical Test: Creating a CLV Indicator

Summary

In this lesson, we delved into the CLV Model using the SAP Customer Data Platform's AI Workbench. We learned how this powerful tool uses historical customer data to predict future valuable customer probabilities at both individual and group levels. We explored key concepts such as the Observation Period, used to analyze past behavior, and the Prediction Period, which forecasts future CLV score. You also learned how to define specific CLV Formulas tailored to your business, leveraging the flexibility of the AI Workbench editor and pre-built templates. Finally, we looked at how to configure and run the CLV Model in the AI Workbench.