About predictive models

Amperity predictive modeling is based on your brand’s customer profiles and behavioral history to give you insights into customer purchasing behavior. Amperity combs through hundreds of features to yield a state of the art adaptive ensemble model. Amperity layers on a rigorous MLOps infrastructure to continually monitor prediction accuracy and stability.

Available models

The following out-of-the-box models are configurable directly within Amperity by a user who is assigned the DataGrid Operator or DataGrid Administrator policies:

Tip

When building models there is a tradeoff between speed and accuracy.

When optimizing for speed the default models are often accurate enough with the default set of input fields. Your brand can revisit the inputs at a later point in time.

When optimizing for accuracy you should include all possible fields that are relevant for modeling, including required and optional fields in Unified Transactions. This may require using SQL to extend the table to support these additional features.

Review the list of fields that are used by churn propensity, predicted CLV, and product affinity modeling and by event propensity modeling to determine what features may be required for additional model accuracy.

Churn propensity

Every customer has a unique purchase history. Instead of relying on hard-coded RFM analyses, use churn propensity scores to uncover each user’s underlying purchase patterns and make predictions about their likelihood to re-engage with your brand, whether they’re a daily, monthly, or seasonal shopper.

  • Identify customers who are likely to churn

  • Provide better insights about the root causes of customer churn to help you determine what will compel them to stay with right-timed messaging and relevant products

  • Support a churn prevention campaign that contains a series of escalating win-back offers

  • Optimize suppression and spend

By leveraging churn propensity modeling, you can take a proactive approach to customer retention, reduce churn rates, and improve overall customer satisfaction.

Event propensity

Use event propensity modeling to associate individual customers to specific events that, depending on the type of event, are most likely to lead to engagement with your brand. Customers are grouped by audience size and by ranking.

Predicted CLV

Amperity models predicted customer lifetime value (CLV) by fitting observed spend against hundreds of behavioral and demographic inputs in a patented approach, and then predicts for each customer their:

  1. Probability of purchase

  2. Number of orders

  3. Average order value

You can use predicted CLV modeling to build high-value audiences that identify:

  • Which customers have the highest predicted value?

  • Which customers will respond better to special offers and perks?

  • What are the best personalized experiences for your top customers, such as personalized rewards, offers, and content?

  • Which customers have individual price preferences?

Product affinity

Amperity models product affinity for any product taxonomy that contains between 20 and 2000 unique values, such as brand, category, subcategory, color, size, season, and style. Product affinity modeling analyzes:

  • Historical data to identify customers who have purchased a product in the past and are likely to do so again.

  • Lookalike audiences to identify customers who have not purchased a product, but are likely to buy because they are similar to customers who have purchased.

Fields used by all models (except EPM)

The churn, pCLV, and affinity models start with a set of fields from the Merged Customers, Unified Itemized Transactions, and Unified Transactions tables from the database in which the model is built. EPM uses fields from Merged Customers, as well as the custom input tables selected during configuration.

The churn and pCLV models support custom input tables for transactions and transaction items. These tables should have the same field names as Unified Transactions and Unified Itemized Transactions, but can have custom logic, such as filtering or aliasing, depending on the data your brand wants to use to model churn and pCLV.

You may customize predictive models, such as excluding certain types of customers and adding custom features that support your brand’s use cases. Customer exlusions are based off of the Customer Attributes table, and custom features are based off of additional fields that may exist on Unified Itemized Transactions.

You do not need to configure the following fields:

Table

Fields

Merged Customers

Predictive models always use the following fields in the Merged Customers table:

  • Amperity ID

  • Birthdate

  • City

  • Email

  • Gender

  • Given name

  • Phone

  • Postal

  • State

  • Surname

Unified Transactions

Predictive models always use the following fields in the Unified Transactions table:

  • Amperity ID

  • Order datetime

  • Order ID

  • Order quantity

  • Order revenue

The following fields, when they are available in the Unified Transactions table, will also be used:

  • Order cancelled quantity

  • Order cancelled revenue

  • Order discount amount

    If your tenant does not have order-level discount data, define order-level discounts to equal the the sum of item-level discount amounts. This will ensure that predictive modeling will be able to incorporate signals for discount shoppers.

  • Order returned quantity

  • Order returned revenue

  • Purchase brand

  • Purchase channel

  • Store ID

Unified Itemized Transactions

Predictive models always use the following fields in the Unified Itemized Transactions table:

  • Amperity ID

  • Is return

  • Item quantity

  • Item revenue

  • Order datetime

  • Order ID

  • Product ID

Fields used by event propensity

EPM is highly configurable, with the only table used by default being Merged Customers. The model requires that you select two other data assets with event-level data: one containing the target event, and one containing a revenue generating event.

The target event is the event we want to model, e.g. loyalty program signups, credit card signups, repeat bookings. The data asset should have one row per event, and must have a field for the event’s date or timestamp.

A revenue generating event is an event in which a customer spends money with your brand, e.g. a retail transaction or a booking. The data asset should also have one row per event, and must have fields for an event’s date or timestamp and revenue amount. You may also select other fields from the revenue generating event that you think would be helpful for modeling (e.g. purchase or booking channel).

Additionally, you may configure custom events as further inputs to the model. Custom event data assets are also expected to be one row per event.

For revenue generating events and custom events, there are configuration options for the event’s timestamp, and also the event’s realization date. For events, such as bookings, where a customer pays money at one point in time, but then “realizes” or consumes the good or service at another point in time, we strongly recommend supplying both fields to the model.

Extending models

You can build predictive models from the Customer 360 page. Each database that contains the Merged Customers, Unified Itemized Transactions, and Unified Transactions tables may be configured for predictive modeling. You can only activate one churn/pCLV model per database, but you may have any number of product affinity and event propensity models.

Warning

Currently, even if your brand wants to use a custom transactions or transactions item table for churn and pCLV modeling, you must have tables named Merged Customers, Unified Itemized Transactions, and Unified Transactions in your database due to automated back-end validations.

Each predictive model allows for additional fields to be added to support your brand’s use cases. There are two approaches:

  1. Optimize for implementation speed

    If your brand wants to optimize for implementation speed the default fields, along with any required extensions, are accurate enough to start with.

    You can revisit a model that was optimized for implementation speed at a later time, and then make changes to extend them for model accuracy later.

  2. Recommended Optimize for model accuracy

    If your brand wants to optimize for model accuracy you should plan to extend each model as much as possible.

    This includes adding fields and features to the model configuration, and also ensuring that the database tables that contain those fields and features are available within the database in which the model is built.

    Add all possible fields that are relevant for modeling, including all optional fields that are available from the Unified Itemized Transactions table.

    Ensure that the Customer Attributes table contains all possible exceptions that your brand may want to use.

    Ensure that custom features your brand wants to use in predictive models are largely populated (i.e. small percentage of nulls) and reliable (values don’t change much day-to-day).

Build a model

Predictive models are configurable in Amperity:

How-tos

This section describes individual tasks that are related to building predictive models:

Activate a model

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to edit, from the    menu, select Edit.

  4. This opens the page for selected model in edit mode.

  5. Press Activate at top right-hand-side of the model configuration page

  6. Select a courier group. The model will run at the same frequency as the courier group.

Add a model

These are captured in the “Build a model” section for each of the five model-specific pages:

  1. Build a churn propensity model

  2. Build an event propensity model

  3. Build a predicted CLV model

  4. Build a product affinity model

Delete a model

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to delete, from the    menu, select Delete. Confirm by clicking Delete.

Edit a model

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to edit, from the    menu, select Edit.

  4. This opens page for selected model in edit mode.

Pause a model

A paused model will not run as part of a courier group workflow, even if that workflow is scheduled. You may activate a paused workflow without redefining the schedule (if a schedule exists).

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to pause, from the    menu, select Pause. Confirm that you want to pause the model by clicking Pause.

Promote from a sandbox

The following steps are needed to prepare a model for sandbox promotion.

  1. Create a sandbox.

  2. Run the database(s) in which your brand intends to activate models.

  3. Add models.

  4. Start model validations from the lower left-hand-side of the page. When complete, confirm that validation metrics are passing.

  5. Start the training jobs.

  6. When the training jobs are complete, start inference jobs.

  7. When the inference job is complete, re-run the database to populate the predictive data asset.

  8. Activate the model.

  9. Promote the sandbox.

Schedule a model

A model must be associated with a scheduled courier group workflow.

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to schedule, from the    menu, select Schedule workflow. This opens the Model schedule dialog.

  4. The Training job cadence is the frequency at which additional data is made available to the model to improve accuracy. The default is every two weeks.

  5. The Inference job cadence is the frequency at which predictions are generated. The default is daily.

  6. Click Save.

View jobs

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to schedule, from the    menu, select Jobs. This opens the Jobs page.

  4. You can run the full predictive workflow or individual jobs by type.

  5. The results for each job are shown on the right side, including past run dates, run status, and the number of records in the results.

View model configuration

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to schedule, from the    menu, select View. This opens the page for selected model.

View model versions

  1. From the Customer 360 page, open the Databases tab.

  2. Choose a database, and then from the    menu, select Predictive models. This opens the Predictive models page.

  3. In the row with the model you want to schedule, from the    menu, select View. This opens the page for selected model.

  4. A dropdown menu at top of the page lists the current configuration as the default. Earlier configurations are available from the same dropdown.