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 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 Administrator policy:

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 are 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 has 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 has 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.

The following fields are automatically included in all predictive models:

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 sum of item-level discount amounts. This will ensure that predictive modeling is 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

Event propensity models are highly configurable. The only table used by default is Merged Customers; every other input is an event table that you select during model setup. Unlike churn propensity, predicted CLV, and product affinity, event propensity does not require the Unified Transactions or Unified Itemized Transactions tables.

Each model predicts a single target event, such as a loyalty signup, a credit card signup, or a repeat booking. The target event table must have one row per event occurrence and must contain an amperity_id field and a date (or datetime) field.

Each model predicts the target event for one of two prediction audiences:

  • Repeat event: the likelihood that a customer who has already performed the event will perform it again (for example, repeat bookings).

  • One-time event: the likelihood that a customer who has never performed the event will perform it for the first time (for example, loyalty signups).

Input events provide the behavioral signal that the model learns from. Each input event table must have one row per event occurrence, must contain an amperity_id field and a date (or datetime) field, and must represent a single type of event. Use one table per event type. At least one input event is required for one-time-event models and is recommended for repeat-event models. Input events that include revenue data (for example, transactions or bookings) are especially valuable, and adding more input events generally improves predictions.

For each input event you may also configure:

  • A revenue field: a numeric field that captures the revenue generated by the event.

  • A realization date: for events where revenue is generated at one point in time but realized at another–such as a hotel booking (generation) versus the hotel stay (realization)–the date on which the revenue is realized. Supply both the event date and the realization date to the model.

  • Properties: string fields that the model uses as categorical features (for example, brand, channel, or tier). Properties are optional, but can improve accuracy when they capture meaningful behavioral variation.

Extending models

You can build predictive models from the Customer 360 page. Each database that has the Merged Customers, Unified Itemized Transactions, and Unified Transactions tables may be configured for predictive modeling. You may have any number of pCLV, product affinity, and event propensity models.

Warning

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. Do one of the following:

  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 has all possible exceptions that your brand may want to use.

    Ensure that custom features your brand wants to use in predictive models are populated, have a small percentage of NULL values, and have reliable values that do not change much day-to-day)

Build a model

Predictive models are configurable in Amperity:

How-tos

Individual tasks for building predictive models:

Activate a model

  1. From the Customer 360 page, select the Predictive models tab. This opens the Predictive models page.

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

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

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

  5. Select a courier group. The model runs 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

Delete a model

  1. From the Customer 360 page, select the Predictive models tab. This opens the Predictive models page.

  2. 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, select the Predictive models tab. This opens the Predictive models page.

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

  3. 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, select the Predictive models tab. This opens the Predictive models page.

  2. 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 databases 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, select the Predictive models tab. This opens the Predictive models page.

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

  3. 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.

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

  5. Click Save.

View jobs

  1. From the Customer 360 page, select the Predictive models tab. This opens the Predictive models page.

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

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

  4. 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, select the Predictive models tab. This opens the Predictive models page.

  2. 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, select the Predictive models tab. This opens the Predictive models page.

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

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