Sub topic 15
Governance, Bias and Avoiding Over-Personalisation
This chapter covers the controls that keep a personalisation programme safe once it runs in production. It assumes you have read the earlier chapters on consent, clustering, predictive segments, generative content and segment operations. You should be comfortable with Python and with the idea of a segment feeding a content template.
Why governance is a separate topic
Segments and decision rules change what each person sees. A badly built segment can treat groups unfairly. A well-built one can still feel intrusive. Governance is the set of owners, checks and records that catch both problems before customers do.
Three risks recur in practice:
- Bias: a segment or model produces systematically worse outcomes for a group of people.
- Over-personalisation: a message is accurate but feels invasive, repetitive or manipulative.
- Uncontrolled change: a segment, template or model is altered with no review and no record.
The chapter treats each in turn and ends with a checklist you can adapt.
Where bias enters the pipeline
Bias rarely comes from one bad decision. It enters at several points, and each point needs its own check.
| Stage | How bias enters | Example |
|---|---|---|
| Data collection | Some groups are under-recorded | Customers who decline tracking have thin histories, so they look "inactive" |
| Features | A feature stands in for a protected trait | Postcode acts as a proxy for ethnicity or income |
| Labels | The target reflects past unequal treatment | A "high value" label learned from a period when some groups got fewer offers |
| Model or clustering | Scaling or distance favours the majority pattern | A small group is merged into a large cluster and loses its own treatment |
| Decisioning | Offers differ in value across groups | One segment always receives the smaller discount |
| Feedback loop | Past exposure shapes future data | A bandit stops showing an offer to a group, so it never learns the group might respond |
A protected trait is a characteristic that law or policy says you must not use to treat people unfairly, such as age, sex, disability or ethnicity. The exact list depends on your jurisdiction, so confirm it with your legal team.
Removing the protected column from the data is not enough. Other columns often carry the same signal. This is called proxy leakage, and the only reliable way to find it is to measure outcomes by group.
Measuring fairness in segments
You cannot check fairness without group information, and you may not be allowed to use that information for targeting. These two facts are compatible. Many teams keep sensitive attributes in a separate, access-controlled table used only for audits. The audit joins that table to segment assignments. The targeting system never sees it.
Start with simple rate comparisons. For each group, compute how often it lands in each segment, or how often it receives a given offer. Then compare each group's rate with the best-treated group's rate.
import pandas as pd
assignments = pd.DataFrame({
"customer_id": range(1, 13),
"segment": ["premium", "premium", "premium", "premium", "standard", "standard",
"standard", "standard", "standard", "standard", "premium", "standard"],
"age_band": ["18-34", "18-34", "18-34", "35-54", "55+", "55+",
"55+", "55+", "35-54", "18-34", "18-34", "55+"],
})
rates = (
assignments.assign(is_premium=assignments["segment"].eq("premium"))
.groupby("age_band")["is_premium"]
.mean()
)
ratio = rates / rates.max()
report = pd.DataFrame({"premium_rate": rates.round(2), "ratio_to_best": ratio.round(2)})
report["flag"] = report["ratio_to_best"] < 0.8
print(report)The ratio_to_best column divides each group's rate by the highest rate. A common screening rule, borrowed from employment law in the United States, flags ratios below 0.8. Treat it as a prompt to investigate, not a verdict. A flag can have a legitimate explanation, such as a real difference in purchase history. An unflagged result does not prove fairness.
With small groups the rates are noisy. In the example above each age band has only a few customers, so the numbers are illustrative. In a real audit, report group sizes next to every rate and avoid drawing conclusions from groups of a few dozen people.
Beyond assignment rates
Assignment rates show who gets a segment. They do not show whether the treatment helps. Also compare:
- Offer value: the average discount or benefit each group receives.
- Model error: for predictive segments, the false positive and false negative rates by group. A churn model that misses churners in one group means that group gets no retention effort.
- Outcomes: conversion, complaint and unsubscribe rates by group, measured against a holdout as described in the measurement chapter.
Common errors in fairness work
- Auditing once. Segments drift, so a fair launch can become unfair after a few months. Rerun the audit on every refresh.
- Checking only one attribute. A model can look fair by age and by region separately, and still be unfair for older customers in one region. Check at least the main combinations that have enough people.
- Treating the threshold as a pass mark. The 0.8 rule is a screen. Record why you accepted or fixed each flag.
- Ignoring missing group data. If the sensitive attribute is blank for many customers, the audit covers only those who supplied it, and they may differ from the rest.
Over-personalisation
Over-personalisation happens when the system uses data correctly but the result still harms the relationship. It has three common forms.
- Creepiness: the message reveals that you inferred something the customer never shared, such as a health condition or a life event.
- Narrowing: the customer only sees what they already liked, so they never discover anything new, and the bandit's estimates stop improving.
- Fatigue: the customer gets too many messages, or the same one too often.
Customers judge a message by what they expect you to know. Data they gave you directly, such as a purchase, feels fair to use. Inferences feel invasive when they are sensitive or surprising.
Sensitive inference rules
Write a list of topics that segments and content must never target, even if the data would allow it. Typical entries are health, pregnancy, financial distress, religion, sexuality and bereavement. Then enforce the list in code, not only in a policy document.
Frequency caps and cooling-off
A frequency cap limits how many messages a person gets in a period. A cooling-off rule blocks the same content for a set time after it was shown. The function below applies both before a message is sent.
from datetime import datetime, timedelta
def may_send(history, content_id, now, max_per_week=3, cooloff_days=7):
"""history is a list of (sent_at, content_id) tuples for one customer."""
week_ago = now - timedelta(days=7)
recent = [h for h in history if h[0] >= week_ago]
if len(recent) >= max_per_week:
return False, "frequency cap reached"
cooloff_start = now - timedelta(days=cooloff_days)
if any(cid == content_id and sent >= cooloff_start for sent, cid in history):
return False, "same content seen recently"
return True, "ok"
now = datetime(2026, 11, 26, 18, 0)
history = [
(datetime(2026, 11, 25, 9, 0), "winback_basket"),
(datetime(2026, 11, 22, 9, 0), "new_arrivals"),
]
print(may_send(history, "winback_basket", now))
print(may_send(history, "loyalty_points", now))The first call returns (False, 'same content seen recently'). The second returns (True, 'ok'). Put this check in the delivery layer so that every channel and every campaign passes through it. A cap implemented separately in each campaign is easy to bypass by accident.
Keeping exploration on
An adaptive selector such as epsilon-greedy needs some random exploration. If you set epsilon to zero, the system stops learning and the customer's profile hardens. Keep a small exploration share, and exclude sensitive categories from the explore pool.
The governance structure
Technical checks work only when someone owns them. A lightweight structure is enough for most teams.
- Segment owner: a named person who approves each segment's definition and purpose.
- Model owner: responsible for the data, training and monitoring of predictive segments.
- Privacy and legal reviewer: signs off on new data uses and sensitive-topic rules.
- Review forum: a regular meeting where changes, audit results and complaints are discussed.
Each segment should have a record, sometimes called a segment card, with its purpose, inputs, owner, consent basis, audit results and review date.
from dataclasses import dataclass, field
from datetime import date
@dataclass
class SegmentCard:
name: str
purpose: str
owner: str
inputs: list[str]
consent_basis: str
last_audit: date
audit_notes: str = ""
excluded_topics: list[str] = field(default_factory=list)
def is_overdue(self, today: date, max_age_days: int = 90) -> bool:
return (today - self.last_audit).days > max_age_days
card = SegmentCard(
name="lapsed_high_value",
purpose="Win-back emails for customers inactive for 60+ days",
owner="retention-lead",
inputs=["recency_days", "frequency", "monetary"],
consent_basis="marketing email opt-in",
last_audit=date(2026, 7, 1),
)
print(card.is_overdue(date(2026, 11, 26)))This prints True, because the last audit was more than 90 days earlier. A scheduled job can run this check across all segment cards and open a task for every overdue one.
Change control
Treat segment definitions, templates and decision rules like code. Keep them in version control, require review before release, and keep a log of which version served which customers. Without that log you cannot explain a complaint or reverse a bad change.
The diagram below shows how the controls fit around one release.
Handling complaints and opt-outs
Give customers a way to see and change what drives their experience. At minimum, honour opt-outs immediately, and make sure an opt-out removes the person from every segment, not only the one that triggered the request. Track complaints by segment. A segment with a high complaint or unsubscribe rate relative to its holdout is a warning sign even when its click rate looks good.
A kill switch is a control that turns off a segment, template or model quickly without a deployment. Test it before you need it.
A practical checklist
- Every segment has an owner, a purpose and a consent basis on record.
- Sensitive topics are blocked in code.
- A fairness audit runs on each refresh, with group sizes shown.
- Frequency caps and cooling-off apply in one shared delivery layer.
- Bandits keep some exploration and exclude sensitive content.
- Changes are versioned and reviewed, and there is a kill switch.
- Complaints and unsubscribes are tracked by segment against a holdout.
Exercise
A churn model flags 30% of customers aged 18-34 for a retention offer but only 12% of customers aged 55+. Using the 0.8 screening rule, does this need investigation, and what two further checks would you run before changing the model?
Show answer
The ratio is 12 / 30 = 0.4, which is below 0.8, so it needs investigation. First, compare error rates by age group, especially false negatives, to see whether the model misses churners among older customers. Second, check whether the difference reflects real churn rates, by comparing actual churn in each group against a holdout, and check for proxy features such as tenure or channel that stand in for age. Record the findings either way.
Exercise
Your delivery team says each campaign already applies its own frequency cap, so no shared check is needed. Give one reason this is risky and describe the fix.
Show answer
A customer can be in several campaigns at once, and separate caps do not see each other, so the customer can receive far more messages than any single cap allows. Move the cap and cooling-off check into one delivery layer that reads a shared send history for the customer across all campaigns and channels.