Marketing & Customer Analytics

Chapter 14
AI, Machine Learning, and Marketing Technology

Graduate Program in Business Analytics
Marketing & Customer Analytics   •   Graduate

AI, Machine Learning, and Marketing Technology

Introduction

Marketing technology has evolved from campaign databases and email systems into interconnected platforms capable of predicting customer behaviour, generating content, selecting offers, and executing decisions in milliseconds. Artificial intelligence (AI) is therefore not merely a software feature. It is an organisational capability that combines data, models, technology infrastructure, managerial judgment, and governance.

For marketing analysts, the central question is not whether a sophisticated algorithm can be built. It is whether the algorithm improves a business decision without creating unacceptable commercial, legal, ethical, or customer-experience risks. A model that predicts churn accurately but targets customers with unfair or intrusive interventions may be strategically harmful. Conversely, a moderately accurate model integrated into a reliable decision process may create substantial value.

This chapter examines supervised and unsupervised learning, recommender systems, generative AI, marketing automation, customer data platforms (CDPs), customer relationship management (CRM) systems, real-time decision engines, and machine-learning operations (MLOps). It also addresses validation, explainability, model drift, experimentation, and human oversight.

Learning Objectives

By the end of this chapter, students should be able to:

  1. Distinguish supervised, unsupervised, reinforcement, and generative learning in marketing contexts.
  2. Evaluate classification, regression, clustering, propensity, and recommendation models.
  3. Explain how CDPs, CRM platforms, automation systems, and decision engines work together.
  4. Design a responsible AI-enabled customer decision process.
  5. Apply validation, calibration, uplift, fairness, explainability, and drift-monitoring principles.
  6. Assess MLOps and human-oversight requirements in production marketing systems.

1. A Decision-Centred View of Marketing AI

A marketing AI system can be represented as a chain:

Customer data → analytical representation → model → decision policy → action → response data → evaluation

The model is only one component. A predictive score becomes valuable when it changes an action, such as selecting a retention offer, prioritising a sales lead, recommending a product, or choosing a communication channel.

A useful distinction is between prediction and decision. Prediction estimates an unknown outcome. Decision determines what should be done, usually under constraints such as budget, capacity, privacy, or brand policy. A high probability of churn does not automatically imply that a discount should be offered. The expected value of an intervention depends on its cost, effectiveness, and possible side effects.

For a simple binary action, an organisation may select an intervention when:

pi ΔVi − Ci > 0

Here, pi is the estimated probability that customer i will produce the desired incremental outcome, ΔVi is the value of that outcome, and Ci is the intervention cost. This expression assumes that the estimated probability is relevant to the proposed action and that value and cost are measured on a comparable monetary basis. In practice, incremental response is preferable to ordinary response probability because some customers would act without intervention.

2. Learning Paradigms in Marketing

2.1 Supervised learning

Supervised learning uses labelled observations. Each record contains predictors X and a known outcome Y. The model estimates a function f(X) that predicts Y.

Marketing examples include:

  • predicting whether a customer will churn;
  • estimating customer lifetime value;
  • forecasting demand;
  • classifying fraudulent transactions;
  • predicting the probability of conversion;
  • ranking leads for sales follow-up.

Classification predicts categories, such as churn versus no churn. Regression predicts numerical values, such as next-month revenue. A model should be judged against the decision it supports, not solely by a generic accuracy measure.

For binary classification, the confusion matrix contains true positives, false positives, true negatives, and false negatives. Common measures include:

Accuracy = (TP + TN) ÷ (TP + TN + FP + FN)
Precision = TP ÷ (TP + FP)
Recall = TP ÷ (TP + FN)

TP, TN, FP, and FN denote the four confusion-matrix counts. Accuracy can be misleading when the outcome is rare. Precision is useful when false positive actions are costly; recall is important when missing a valuable or vulnerable customer is costly. Threshold selection should reflect economics and risk rather than default software settings.

For a probabilistic binary model, log loss evaluates the quality of predicted probabilities:

LogLoss = −(1 ÷ n) ∑[yi ln(pi) + (1 − yi)ln(1 − pi)]

where n is the number of observations, yi is the observed outcome, and pi is the predicted probability of outcome 1. Predictions must satisfy 0 < pi < 1. Log loss penalises confident incorrect predictions and is therefore useful when probability quality matters.

2.2 Unsupervised learning

Unsupervised learning identifies structure without a labelled target. Clustering may group customers according to behaviour, value, or needs. Dimensionality-reduction methods can help analysts visualise high-dimensional data, although visual separation does not prove that commercially meaningful segments exist.

K-means clustering, for example, assigns observations to K groups by minimising within-cluster squared distance:

J = ∑k=1K ∑xi ∈ Ck ||xi − μk||²

Here, Ck is cluster k, μk is its centroid, and the distance is usually Euclidean distance. K-means assumes that the selected numerical features and distance measure are meaningful; scaling variables is often necessary. The algorithm does not discover natural customer identities automatically. Analysts must test stability, interpretability, actionability, and possible ethical consequences.

2.3 Reinforcement and sequential learning

In sequential decision settings, an agent selects actions and observes rewards. Marketing examples include choosing the next best message or offer while balancing immediate conversion against long-term customer value. Such systems require careful experimentation because actions affect future data. A policy that maximises short-term clicks may increase fatigue, unsubscribe rates, or brand damage.

2.4 Generative AI

Generative AI produces text, images, code, audio, or structured outputs from learned patterns. Large language models can support campaign ideation, summarisation, conversational service, content adaptation, and analyst assistance. Retrieval-augmented generation can ground responses in approved organisational information rather than relying exclusively on model memory.

Generative AI does not guarantee truth, originality, legality, or strategic suitability. Outputs require controls for hallucination, confidential information leakage, copyright, discriminatory language, prompt injection, brand safety, and disclosure. A generated message should be treated as a draft or decision component subject to validation, not as an unquestionable expert opinion.

3. Recommender Systems

Recommendation systems select or rank products, content, offers, or actions for a customer. Three broad approaches are common:

ApproachMain signalStrengthLimitation
Content-basedSimilarity between item and customer profileExplainable item matchingCan reinforce narrow interests
Collaborative filteringPatterns across users and itemsDiscovers non-obvious relationshipsCold-start and popularity bias
HybridCombination of signalsMore robust coverageGreater complexity and governance needs

A recommendation objective may be clicks, purchases, margin, retention, satisfaction, or a constrained combination. Optimising clicks alone can favour sensational or low-value content. Ranking should account for business value, diversity, novelty, inventory, fairness, and customer preferences.

Offline metrics such as precision@k, recall@k, mean reciprocal rank, and normalized discounted cumulative gain assess ranking quality using historical data. They do not prove causal business impact. Online A/B testing or carefully designed interleaving experiments are necessary to estimate effects on revenue, retention, and customer experience.

The cold-start problem occurs when a new customer or item has little historical information. Contextual features, popularity priors, explicit preferences, and exploration policies can help. However, exploration should be bounded where errors could cause financial, safety, or reputational harm.

4. Marketing Technology Architecture

4.1 CRM platforms

A CRM platform generally manages identified customer relationships, sales activities, service cases, accounts, opportunities, and interaction histories. It supports operational workflows and relationship coordination. CRM data may be incomplete or shaped by employee entry practices, making data-quality controls essential.

4.2 Customer data platforms

A CDP typically ingests event, transaction, web, mobile, service, and consent data; resolves identities; creates customer profiles; and activates audiences in downstream channels. The distinction between a CDP and a CRM is functional rather than absolute, because vendors increasingly combine capabilities. The important analytical questions are whether identities are resolved correctly, whether consent travels with the profile, and whether activation is auditable.

Identity resolution may use deterministic evidence, such as a verified account identifier, and probabilistic evidence, such as device or behavioural similarity. False matches can expose personal information or contaminate model training. A conservative system should preserve uncertainty rather than forcing every record into a single identity.

4.3 Marketing automation

Marketing automation executes predefined or model-informed journeys: triggers, waits, eligibility checks, messages, suppression rules, and measurement. Automation improves scale and consistency but can also scale mistakes. Frequency caps, exclusion logic, contact policies, consent checks, and escalation paths should be designed before launch.

4.4 Real-time decision engines

A real-time decision engine receives a customer context, retrieves eligible actions, scores or ranks them, applies constraints, and returns an action within a defined latency budget. A typical flow is:

  1. receive event or request;
  2. authenticate and resolve the customer or anonymous context;
  3. retrieve recent features and consent status;
  4. generate eligible offers or content;
  5. score candidates;
  6. apply business, legal, frequency, and fairness rules;
  7. log the decision and outcome;
  8. update models or analytical stores later.

Real-time does not mean that every component must update continuously. It means that the decision is made within the service-level requirement. A fast but unreliable engine is not a successful marketing system.

5. Measuring Incremental Marketing Value

Predictive targeting can confuse correlation with causal response. Customers predicted to buy may have purchased anyway. Uplift modelling estimates the difference between an outcome under treatment and an outcome under control:

Uplift(x) = P(Y = 1 | T = 1, X = x) − P(Y = 1 | T = 0, X = x)

Here, T indicates treatment assignment, X = x represents customer characteristics, and Y = 1 is the desired outcome. The two potential outcomes for the same person cannot both be observed directly, so uplift estimation depends on experimental or strong quasi-experimental assumptions.

A randomised holdout group is often the most defensible approach. Analysts should report incremental conversion, incremental revenue, cost, confidence intervals where appropriate, and longer-term effects. A campaign with a high response rate may have zero incremental effect if the control group responds equally.

6. Validation, Explainability, and Drift

6.1 Validation design

Random train-test splits are unsuitable when future observations differ from past observations or when repeated records from one customer appear in both sets. Time-based validation is usually preferable for forecasting and campaign models. Group-based splitting may be needed to prevent customer-level leakage.

Data leakage occurs when training features contain information that would not have been available at decision time. Examples include a cancellation code entered after churn, a post-campaign purchase indicator, or a service resolution status created after the prediction date.

Validation should consider:

  • discrimination: can the model rank outcomes effectively?
  • calibration: do predicted probabilities correspond to observed frequencies?
  • stability: does performance persist across time and segments?
  • business value: does the model improve decisions?
  • fairness: are errors or benefits distributed acceptably?
  • operational reliability: can the system serve predictions consistently?

Calibration can be assessed by comparing predicted probabilities with observed event rates across probability groups. A model predicting 0.70 for a well-calibrated group should experience the event approximately 70% of the time, subject to sampling variation.

6.2 Explainability

Interpretability methods include inherently transparent models, feature importance, partial-dependence analysis, local explanations, counterfactual explanations, and example-based explanations. Each answers a different question. A global feature ranking does not explain an individual decision, and a local approximation does not prove that the underlying model is causal.

Explanations should be accurate, understandable, actionable, and appropriate to the audience. Customers may need a concise reason and a meaningful appeal route; model developers need diagnostic detail; executives need risk and value implications.

6.3 Drift

Drift occurs when data or relationships change. Covariate drift changes the distribution of inputs. Label drift changes the outcome prevalence. Concept drift changes the relationship between inputs and outcomes. For a binary event, a simple population-stability comparison can identify changes in feature distributions, but no single threshold is universally valid. Monitoring must combine statistical signals with business context.

Operational monitoring should track missingness, latency, feature ranges, prediction distributions, calibration, outcome performance, segment differences, and intervention rates. Retraining automatically is not always safe. A model may appear to drift because a tracking system changed, a promotion altered behaviour, or a major external event created a temporary regime.

7. MLOps and Production Governance

MLOps applies software-engineering and operations discipline to the model lifecycle. It includes reproducible data pipelines, versioned code and features, experiment tracking, model registries, automated testing, deployment controls, monitoring, rollback, access management, and incident response.

A production model should have a model card or equivalent record containing purpose, population, target, training data, exclusions, validation design, known limitations, performance by relevant segments, human-oversight requirements, and retirement criteria.

A mature deployment separates development, testing, and production environments. It also records the model version, feature values, policy rules, treatment offered, and outcome whenever lawful and proportionate. Without decision logs, post-launch evaluation and customer complaint investigation become difficult.

8. Ethics, Privacy, and Human Oversight

Marketing AI can create risks involving privacy, discrimination, manipulation, exclusion, security, and loss of autonomy. Consent should be specific, informed, and operationally respected. Data minimisation and purpose limitation reduce unnecessary exposure. Sensitive attributes should not be used casually, but omitting them from analysis does not guarantee fairness: proxy variables can reproduce protected characteristics, and fairness cannot be measured without appropriate information.

Human oversight should be risk-based. A low-risk recommendation for website content may require monitoring and opt-out. A high-impact decision affecting access to financial services, essential products, or employment-related opportunities requires stronger review, explanation, appeal, and documentation.

Human review is not automatically effective. Reviewers need authority, time, training, evidence, and protection from automation bias. Override rates and reasons should be monitored. The organisation should define when a system must stop, escalate, or revert to a safe default.

9. Illustrative Case: Horizon Retail’s Next-Best-Action Programme

Background

Horizon Retail, a fictional omnichannel retailer, had a CRM containing purchase and service data, a separate web analytics store, and an email automation platform. It sent broad discount campaigns because customer identities and consent preferences were inconsistently connected.

Problem

The company wanted to reduce churn without giving unnecessary discounts. Initial analysis showed that customers predicted as high churn risk often purchased after receiving no offer. Management therefore suspected that a churn-propensity model would create expensive, non-incremental promotions.

Analysis

The analytics team created a customer-level time-based validation design. It excluded post-outcome variables and compared a treatment group receiving a retention offer with a randomly assigned holdout group. It estimated both churn propensity and incremental response. Customers were then divided into four conceptual groups: persuadables, sure things, lost causes, and do-not-disturbs.

Approach and solution

The CDP became the governed profile and consent layer, while the CRM remained the system for service and account activity. A decision engine retrieved eligibility, recent contact frequency, predicted uplift, margin, inventory, and suppression rules. It selected an offer only when estimated incremental value exceeded cost. A small random holdout remained active for ongoing measurement.

The system began with human approval for new offer policies. Analysts monitored calibration, uplift by customer segment, unsubscribe rates, margin, complaint rates, latency, and feature drift. The organisation also established a rollback procedure and required that generated message text use approved product facts and pass brand and legal review.

Outcome

In this illustrative case, Horizon observed that broad discounts produced high response but limited incremental value. Uplift-based targeting reduced unnecessary incentives and improved contribution margin while maintaining a control group for evaluation. The company did not treat the initial result as permanent; it scheduled periodic revalidation because customer behaviour and competitive conditions could change.

Learning points

The case demonstrates that prediction is not the same as persuasion, a CDP is not a substitute for governance, and automation must be connected to experimentation. It also shows why commercial metrics, customer-experience indicators, and technical monitoring should be evaluated together.

10. Contemporary Directions and Best Practices

Current developments include multimodal generative systems, agentic workflow tools, privacy-enhancing computation, synthetic data, causal machine learning, retrieval-augmented generation, and increasingly integrated martech suites. These developments may reduce operational friction, but they do not eliminate the need for data quality, measurement, or accountability.

Best practice is to:

  1. begin with a material customer or business decision;
  2. define the outcome, intervention, constraints, and harm scenarios;
  3. establish lawful data use and identity controls;
  4. use temporal or group-aware validation where appropriate;
  5. compare predictive performance with incremental business impact;
  6. monitor calibration, fairness, drift, latency, and customer experience;
  7. document models, prompts, data sources, versions, and approvals;
  8. provide human escalation and customer redress for consequential decisions;
  9. retain holdouts or other credible evaluation designs;
  10. retire systems that no longer meet performance, safety, or governance standards.

Chapter Summary

AI in marketing is best understood as a decision capability rather than an isolated model. Supervised learning predicts labelled outcomes, unsupervised learning discovers structure, sequential methods optimise actions over time, and generative AI creates or transforms content. Recommender systems require careful objective design because clicks, revenue, margin, satisfaction, and fairness may conflict.

CRM systems coordinate identified relationships, CDPs support profile and audience activation, marketing automation executes journeys, and real-time decision engines select actions under latency and governance constraints. Predictive accuracy alone is insufficient: uplift, experimentation, calibration, explainability, drift monitoring, and operational reliability determine whether a system is useful.

MLOps provides the lifecycle controls required for reproducible and monitored production models. Privacy, fairness, security, transparency, appeal, and human oversight are integral design requirements. Effective marketing AI therefore combines analytics, technology, experimentation, managerial judgment, and responsible governance.

Key Terms

Artificial intelligence: Computational systems that perform tasks associated with human intelligence.

Supervised learning: Learning from observations with known target outcomes.

Unsupervised learning: Learning patterns from data without a labelled target.

Generative AI: AI that produces new text, images, code, audio, or other outputs.

Classification: Prediction of a categorical outcome.

Regression: Prediction of a numerical outcome.

Calibration: Agreement between predicted probabilities and observed frequencies.

Uplift: Difference in expected outcome caused by an intervention.

Recommender system: Technology that ranks or selects items, content, or actions.

Cold-start problem: Difficulty making useful recommendations with little history.

CRM: System for managing customer relationships, accounts, sales, or service activity.

CDP: Platform that unifies customer data and activates governed profiles or audiences.

Marketing automation: Technology that executes rule-based or model-informed customer journeys.

Decision engine: System that selects an action from context, scores, and constraints.

MLOps: Practices for developing, deploying, monitoring, and governing machine-learning systems.

Data leakage: Use of information in training that would not be available at decision time.

Model drift: Change in data distributions or predictive relationships over time.

Explainability: Ability to communicate or investigate how a model produces outputs.

Human oversight: Deliberate human review, intervention, escalation, or accountability.

Holdout group: Observations withheld from treatment to estimate incremental impact.

Review Questions

Short Answer Questions

  1. Why is prediction different from decision-making in marketing AI?
  2. Distinguish a CRM platform from a CDP.
  3. What is the cold-start problem in recommender systems?
  4. Why can accuracy be misleading for rare marketing outcomes?
  5. Define concept drift.

Long Answer Questions

  1. Compare supervised, unsupervised, reinforcement, and generative learning using marketing examples.
  2. Explain how a real-time decision engine can combine model scores with eligibility, consent, and frequency rules.
  3. Discuss why uplift modelling may be more useful than churn propensity for retention campaigns.
  4. Evaluate the role of MLOps in maintaining reliable marketing models.
  5. Discuss ethical and governance requirements for generative AI in customer communications.

Analytical / Application Questions

  1. A retailer’s model predicts that 70% of a segment will purchase after receiving an offer, while its holdout group shows a 68% purchase rate without the offer. What does this imply about predictive targeting and incremental value?
  2. Design a validation and monitoring plan for a next-best-offer model used across web, mobile, email, and call-centre channels.
  3. A recommender increases click-through rate but also increases complaints and reduces repeat visits. Analyse possible causes and propose a revised objective and evaluation design.

Multiple Choice Questions with Answers

Question 1

Which statement best distinguishes prediction from decision-making in marketing AI?

A. Prediction estimates an outcome, whereas decision-making selects an action under constraints.

B. Prediction always requires unsupervised learning, whereas decisions require supervised learning.

C. Prediction is performed by CRM systems, whereas decisions are performed only by CDPs.

D. Prediction concerns past data only, whereas decisions never use data.

Correct Answer: A. Prediction estimates an outcome, whereas decision-making selects an action under constraints.

Question 2

Which metric is most directly concerned with the proportion of selected positive cases that are actually positive?

A. Recall

B. Precision

C. Accuracy

D. Latency

Correct Answer: B. Precision

Question 3

What is the main purpose of a holdout group in a marketing experiment?

A. To increase the model’s training-set size

B. To estimate the outcome without the intervention

C. To guarantee that all customers receive an offer

D. To replace consent management

Correct Answer: B. To estimate the outcome without the intervention

Question 4

Which problem occurs when a training feature contains information created after the prediction time?

A. Cold start

B. Concept drift

C. Data leakage

D. Under-segmentation

Correct Answer: C. Data leakage

Question 5

Which learning approach groups customers without a labelled target variable?

A. Supervised learning

B. Unsupervised learning

C. Transfer pricing

D. Rule-based validation

Correct Answer: B. Unsupervised learning

Question 6

A customer has a 0.70 probability of purchase after treatment and a 0.68 probability without treatment. What is the estimated uplift?

A. 0.02

B. 0.68

C. 0.70

D. 1.38

Correct Answer: A. 0.02

Question 7

Which feature is most characteristic of a recommender-system cold-start problem?

A. Too many observations for model training

B. No or limited history for a new customer or item

C. A model with perfectly calibrated probabilities

D. A system that has no business constraints

Correct Answer: B. No or limited history for a new customer or item

Question 8

Which practice is most closely associated with MLOps?

A. Removing all model documentation

B. Versioning models and monitoring production performance

C. Using only manually entered customer data

D. Optimising every campaign for clicks alone

Correct Answer: B. Versioning models and monitoring production performance

Question 9

Why may a high churn-propensity score be insufficient for selecting a retention offer?

A. It does not necessarily estimate whether the offer causes incremental retention.

B. It proves that the customer will never churn.

C. It can only be calculated for anonymous visitors.

D. It eliminates the need for a control group.

Correct Answer: A. It does not necessarily estimate whether the offer causes incremental retention.

Question 10

Which is an example of concept drift?

A. The distribution of a feature changes while the outcome relationship remains constant.

B. The relationship between customer signals and churn changes over time.

C. A customer record is assigned to the wrong account because of identity resolution.

D. A model is stored in a version-controlled registry.

Correct Answer: B. The relationship between customer signals and churn changes over time.

Marketing & Customer Analytics
Chapter 14 of 15