AI and the Future of Marketing
Marketing Machine Learning
Marketing machine learning uses patterns learned from data to support decisions about customers. You might estimate who will cancel, forecast a customer's spending, or group customers with similar purchasing patterns. The central question is whether the model produces useful information at the moment a decision must be made. A technically impressive model can still fail if its target, data, or recommended action does not match that decision.
Match the model to the decision
Start by specifying the customer population, the decision time, the outcome, and the period over which you will observe that outcome. Predicting cancellation within a defined future period is more actionable than vaguely predicting whether a customer is “at risk.”
Supervised learning learns a relationship between input features and a known target outcome from historical examples. Features are the information available to the model, such as purchase frequency. The target is what it learns to predict, such as later cancellation.
Task | Marketing application | What the output means |
|---|---|---|
Classification | Predict whether a customer will cancel | A predicted category or probability |
Regression | Predict a customer's future spending | An estimated numerical amount |
Clustering | Group customers by purchase patterns | Similarity-based groups without supplied outcome labels |
Clustering is an unsupervised task. Its groups require interpretation: a cluster does not automatically represent a profitable or reachable audience. Likewise, a cancellation probability describes predicted behavior under the conditions represented in the data; it does not explain why a customer will cancel.
Evaluate without future information
Data leakage occurs when model development uses information that would not legitimately be available when making the prediction. For example, a cancellation-processing status can reveal the outcome even if the data file contains it alongside earlier customer records.
Build features as they existed at the decision time. Then allow enough time for the target outcome to be observed. For a model intended to predict future customer behavior, evaluating on later observations can better reflect deployment than randomly mixing records from different periods. Keep the final test data separate from model selection and tuning.
Compare performance with a simple baseline. Overall accuracy can be misleading when the outcome is uncommon: predicting the majority outcome may look successful while missing the customers you need to identify. For classification, precision describes how many flagged customers actually have the target outcome; recall describes how many customers with that outcome are flagged. Choose evaluation measures and decision thresholds around the consequences of false alarms and missed cases.
Put predictions into use
A model score becomes useful through a decision rule, such as which customers receive a service call. The appropriate rule depends on contact capacity, intervention cost, customer preferences, and the consequences of errors. A higher score does not automatically justify a more intensive intervention.
Where feasible, use randomized comparisons to evaluate whether a proposed intervention improves the relevant outcome. Include its costs and effects on customers when judging usefulness. A predictive test evaluates forecasts; an intervention test evaluates an action.
After deployment, track predictive errors and business outcomes. Changes in products, customer behavior, or data collection can reduce performance. Examine relevant customer groups because an acceptable average can hide uneven errors. Use customer data for a justified purpose, restrict access, and provide human review where decisions have substantial consequences. Retraining should follow investigation and evaluation, rather than automatically replacing a model whenever performance changes.
What to remember
- Define the decision time, target, and outcome period before choosing a model.
- Match classification, regression, or clustering to the information you need.
- Evaluate using information genuinely available at prediction time.
- Separate predictive performance from evidence that an intervention works.
- Monitor outcomes, errors, and customer consequences after deployment.
Example: Building a coffee-subscription retention model
A coffee-subscription company wants to score active subscribers each Monday and predict cancellation within the following 21 days. Staff could then offer selected subscribers a delivery-schedule adjustment. Historical records include purchase and delivery information, dated cancellation outcomes, and records of previous service offers. Some customers previously received offers under a manager's discretionary policy.
The analyst proposes four features: subscriber tenure on the scoring date, delivery complaints recorded before scoring, orders completed before scoring, and a cancellation-confirmation email recorded during the following 21 days.
a) Define the prediction task and explain which learning approach fits it.
The unit being scored is an active subscriber on a particular Monday. The decision time is that Monday, and the target is whether the subscriber cancels during the next 21 days.
Construct a historical example using subscriber information available on the scoring Monday. Assign the cancellation label only after the full 21-day period has passed. A cancellation within that period is a ________ outcome; no cancellation during the completed period is a ________ outcome.
This is supervised classification because historical examples contain a known binary outcome. The model can estimate the probability of cancellation within the specified period. Because historical service offers may have influenced outcomes, interpret its predictions in the context of the historical operating policy rather than as untreated cancellation risks.
b) Decide which proposed features are legitimate and describe a suitable evaluation plan.
Subscriber tenure, earlier delivery complaints, and earlier completed orders are potentially legitimate predictors because they are known on the ________. Verify their timestamps and reconstruct their values as they existed then.
The later cancellation-confirmation email is not legitimate. It occurs during the outcome period and can directly reveal that cancellation happened. Including it would create data leakage.
Use earlier historical periods for model fitting and development. Reserve a later period, with complete 21-day outcomes, for final evaluation. Keep that final period out of tuning. Account for the fact that weekly examples from the same subscriber are related when interpreting evaluation uncertainty.
Compare with a simple ________ and examine precision and recall at a contact-list size the staff can handle. Interpret performance as evidence about predicting future cancellations under the represented conditions, rather than evidence that a service offer prevents them.
c) Explain how the company should decide whether to use delivery-schedule offers for high-risk subscribers.
A high predicted cancellation probability does not establish that a schedule adjustment will prevent cancellation. Some customers may cancel for reasons the offer cannot address, while others may respond positively.
Where feasible, identify eligible high-risk subscribers and randomly assign them to receive the offer or continue under the current service policy. Define the follow-up period and outcome consistently before starting. Compare cancellation outcomes according to assigned treatment, including customers who decline the offer.
Also assess staff costs and customer consequences. Historical comparisons between offered and unoffered customers are not sufficient on their own because the manager's discretionary selection may reflect differences in customer risk or responsiveness.
The final decision should combine valid predictive performance with evidence that the offer policy improves outcomes at an acceptable cost. If adopted, continue monitoring prediction errors and the effects of the service policy.
An analytics team at an online retailer is planning several machine learning projects for its marketing department. Match each term the team uses to the description that fits it in a marketing setting.
Fitting a model to past customer records whose outcome is already known, so the outcome can be predicted for new customers
Customer records kept out of training and used only to estimate performance on unseen cases
The outcome a model is trained to predict, such as whether a customer cancels within 30 days
A fall in prediction quality after deployment because customers or the data-generating process have changed
Grouping customers by similarity in their behaviour when no outcome has been recorded for them
An input variable, such as days since last purchase, that a model uses when making a prediction
Target variable
Clustering
Feature
Supervised learning
Model drift
Holdout set
A fitness app scores customers on the first day of each month to predict cancellation during that month. In its historical training table, each row includes the number of workouts completed during the previous month, membership tenure on the scoring date, and total workouts completed during the month being predicted. A model using all three features performs unusually well. Which revision most directly addresses the timing problem?