Retail Facial Tracking · 01 / 26

Retail Facial Tracking: A Consent-Based Face Recognition Platform

A complete, speculative, privacy-first platform for face recognition in retail in which only shoppers who opt in are ever recognised and everyone else is counted anonymously: deterministic privacy gate, consent register, advisory AI (artificial intelligence) and documentation, with architecture, AI gateway, Databricks, Prisma AIRS, Microsoft Foundry and LangSmith, end to end.

The scenario

Example Retail (fictional) is a grocery chain exploring Face Pass, an optional service in which members who choose to enrol can check out and be greeted by face. It also wants anonymous store analytics, such as counts and queue lengths, to staff stores better. Facial recognition in shops is one of the most contested uses of AI: it handles biometric data, it can be used covertly, it can work worse for some groups of people and it can chill ordinary behaviour. Several regulators have restricted or banned retail uses, and some laws make unconsented collection very expensive. The scenario shows how a retailer could use the technology only on the narrow ground where the shopper has chosen it.

The platform recognises only enrolled members, only in marked opt-in zones, only for the purposes they consented to, and never acts without their confirmation. Everyone else is only counted. There is no watchlist, no emotion inference, no use for pricing and no sale of data. The privacy gate that enforces these rules is deterministic code and is independent of the models. One rule runs through every page: if consent is uncertain, nothing is matched and nothing is kept.

This is a speculative architecture exercise, and facial recognition in shops is contested and regulated. The design here is deliberately restrictive: opt-in only, no identification of anyone who has not enrolled, and no covert use. Nothing here is legal advice or a recommendation to deploy. The retailer, stores, thresholds and figures are invented. Vendor product names are real; code and configuration are sketches that show the shape of an integration. Check endpoints, parameter names and feature availability against each vendor's current documentation before you build, and take advice on the law where you operate.

Architecture

Architecture of the consent-based retail face platform A shopper chooses to enrol, giving explicit consent, passing a liveness check and creating an encrypted face template that is recorded in a consent register. In the store, an edge appliance holds camera frames in memory only. A deterministic privacy gate decides, for every frame, whether any matching may happen at all: only in a zone the shopper opted into, only against templates with active consent. Everyone else is reduced to anonymous counts and the frame is discarded. A match never acts alone: the member confirms at the checkout or kiosk. A template register reconciles templates against consents. Language-model assistance reaches only documentation, such as impact assessments and rights-request drafts, through an AI gateway, and retail systems through a gateway with scopes and audit. CONSENT Member enrolment consent · liveness · template Consent register scope · date · withdrawal Template vault encrypted · per member DETECT AND DECIDE Edge camera frames in memory only Privacy gate consent · zones · discard Matcher opt-in zone only USE Checkout or kiosk member confirms Anonymous counter counts · dwell · no identity Advisors AI, advisory only ASSIST AND RECORD Privacy copilot impact · rights · notes Template register templates · deletions Compliance record consents · audit PLATFORM AI gateway documentation assist only Retail gateway scopes · audit Lakehouse aggregates · evals records template frames state only if allowed propose counts only deterministic service privacy gate or gateway advisory AI shopper choice
Five layers: consent, detect and decide, use, assist and record, and the shared platform. The privacy gate sits between every frame and any matching, with no AI inside it.

The path from camera to matcher is deterministic code on an edge appliance in the store, with its own switch off. AI sits beside it, counting, advising on aggregates and drafting documents. If every model were switched off, the checkout would still work without Face Pass, and no frame would be kept.

One day in a store, with what happens behind it

A day from enrolment to record. The right-hand column is what the platform does.

StepWhat happensBehind the scenes
EnrolA shopper chooses Face Pass in the app, reads a plain-language notice, gives separate consent for checkout and for personalised greetings, passes a liveness check and a template is created.The consent is recorded with its scope and date. The template is encrypted and linked only to the consent.
Pass byAnother shopper, who never enrolled, walks through the store. The edge camera sees them for a moment.The privacy gate allows no matching. The frame stays in memory, adds one to a count, and is discarded within 100 ms.
RecogniseThe enrolled member steps up to the Face Pass checkout lane, which is a marked opt-in zone.The gate sees an active consent for checkout in this zone and allows matching against enrolled templates only.
ConfirmThe matcher proposes a member. The kiosk asks them to confirm with a tap on their phone before anything is charged.A match is a proposal. Payment needs the member's confirmation. No AI component can supply it.
AnalyseThe analytics advisor reads anonymous counts and dwell time and suggests staffing for Saturday afternoon.Advice uses aggregates only. It cannot identify anyone and cannot change a store setting.
WithdrawThe member withdraws consent in the app.The template is deleted from the vault and all caches within 24 hours, and the register reconciles.
RecordThe copilot drafts the monthly privacy report for the privacy officer, who edits, signs and files it.Language-model assistance is limited to documentation. Filing is a signed act.

The parts, and where each is covered

Consent and enrolment

Explicit, separate, withdrawable consent, a liveness check and an encrypted template tied to the consent.

Privacy gate

A deterministic gate that allows matching only for consenting members in opt-in zones and discards every other frame.

Recognition and confirmation

A matcher that proposes a member, who must confirm before any action is taken.

Anonymous analytics

Counts, dwell times and queue lengths with no identity, face crop or template.

Platform

The AI gateway for language-model assistance, a retail gateway, the lakehouse for aggregates, security scanning and observability.

Assurance

Threat model, evaluation plan, governance and runbooks that make it safe to run.

Design and delivery documents

The documents a privacy officer, a regulator, a security review and a store operations team would ask for, each written for this platform.

Requirements and targets

These are the requirements the design was built against. The targets are planning figures for this demo, not measured results.

AreaRequirementIllustrative target
Opt-in onlyOnly enrolled members with an active consent are ever matched0 matches against anyone else; verified by test
DiscardFrames of non-enrolled shoppers are never stored or sentDiscarded within 100 ms; zero crops written to disk
ConfirmationA match never acts alone; the member confirms100% of Face Pass actions carry a confirmation
WithdrawalWithdrawing consent deletes the template everywhereWithin 24 hours; register reconciles to zero orphans
IndependenceA failure of any AI component cannot weaken the privacy gateVerified by fault injection in every release
AccuracyLow false matches for membersFalse match rate under 1 in 100,000 at the operating point
FairnessError rates hold across skin tones, ages and sexesDifferential within the agreed tolerance
No profilingNo emotion inference, no watchlists, no pricing useEnforced by policy and by missing tools; audited
SecurityTemplates encrypted; cameras and edge devices hardenedPer-member keys; no unscanned model traffic
AuditEvery consent, match and deletion traceableComplete record kept per retention rules

Suggested reading order

  1. Business user stories

    Start with who the platform serves and what each of them needs.

  2. ADRs (Architecture Decision Records)

    Read the decisions that set the shape of the platform, starting with the privacy ones.

  3. Sequence diagrams

    Follow the key flows step by step across the components.

  4. Diagram gallery

    See the most pertinent diagrams from every page in one place.

  5. Design documents

    Data model, tool contracts, integration map and non-functional requirements.

  6. AI gateway

    See how developers reach language models, for documentation only, through one governed front door.

  7. Databricks

    See where aggregates, models, serving and evaluation live.

  8. Prisma AIRS

    See how documents and tool calls are scanned.

  9. Foundry

    See the privacy copilot on Microsoft's agent platform.

  10. LangSmith

    See the documentation workflow on LangGraph with tracing and evaluation.

  11. Telemetry

    See how software and device behaviour is traced and measured, without faces.

  12. Assurance

    Threat model, evaluation plan and governance: how it is shown to be safe and fair.

  13. Delivery

    Cost model, rollout, agile plan and runbooks for building and running it.

Build this for your business

This example is speculative and not a recommendation to deploy, but the same pattern, consent first, a deterministic privacy gate, a governed gateway, runtime security, advisory-only AI and measured fairness, fits any service that handles sensitive personal data. We can scope a pilot on your own systems.

Book a discovery call