Manufacturing · Playbook 26

I've worked in this sector

Visual quality inspection

Every unit checked at line speed, clear passes sent on, anything doubtful held for a person, and every defect traced to its batch. Inspectors make the calls that matter.

  • Computer vision
  • Predictive ML
  • Human in the loop
  • Event-driven integration
  • OPSS product safety
  • UKCA / CE marking
  • ISO 9001
  • UK GDPR

At a glance

The problem
Inspectors check fast-moving parts by eye, tire through a shift, and defects reach customers
Typical volume
Around 250,000 units a day across 12 lines at three plants
Who's involved
Quality, production, controls and OT engineers, line inspectors, IT and security, data protection, worker representatives
Pilot
10–12 weeks on one line and one defect family, after a 3–4 week discovery
Platforms
AWS, Azure, or a sovereign or on-prem stack, with inference always at the line

An illustrative scenario. The numbers are typical examples, not a client case study. The cloud services and UK rules were checked on 9 November 2026.

The business problem

On most lines, final inspection is a person looking at parts as they pass: scratches, cracks, missing clips, misaligned labels, solder faults, colour mismatches. People are good at spotting the unexpected, but attention fades over a shift, judgement varies between inspectors, and sampling means most units are never looked at closely. Some lines already have rule-based machine vision, which works well for measured features and struggles with variable defects like surface marks.

Escapes are expensive. A defect found by a customer costs far more than one found at the line: returns, a corrective action report, sometimes containment at the customer's site, and a quality score that affects future orders. For products in scope of safety law, a defect that creates a risk can mean corrective action or a recall, and then the first question is which batches are affected.

That question is often hard to answer quickly. Inspection results sit on paper sheets or in a spreadsheet, rework isn't always recorded against the unit, and linking a defect to a material lot, a machine and a time takes a day of digging. A good inspection system has to make that link automatically, not just spot defects.

What AI changes

  • Cameras at key stations photograph every unit under controlled lighting, and a model at the line gives a verdict in milliseconds, with no round trip to the cloud.
  • Clear passes carry on. Clear fails and anything the model isn't sure about are sent to a hold lane by the line's own control logic, and if the model doesn't answer in time, the unit is held too.
  • An inspector sees each held unit with its image, the suspected defect highlighted and similar past cases, and decides: pass, rework or scrap. Every decision is recorded.
  • Every image, verdict and human decision is linked to the unit or batch, the material lot, the line and the time, in the MES and the quality system.
  • When a defect rate rises, a quality agent groups the defects, links them to batches and lots, and drafts a nonconformance report for a quality engineer to review.
  • Inspectors' decisions on held units become new training examples, so the model improves on your own products, under change control.

How success is measured

Agree these, and measure the baseline, before anything is built. Example targets are typical, not promises.

Escapes

Defects found by customers, in parts per million shipped. The measure that matters most.

ExampleDown by half in the first year

False holds

Good units sent to the hold lane. Too many and the hold lane becomes a bottleneck and inspectors stop trusting it.

ExampleUnder 2% of units

Agreement with inspectors

How often the model's verdict matches an inspector's on a blind audit sample, by defect type.

ExampleAbove 95% on clear cases, reviewed weekly

Time to decide held units

How long a held unit waits for a person's decision.

ExampleUnder 10 minutes on a running line

Traceability

Rejected and reworked units with a complete record: image, verdict, decision, batch, lot and time.

ExampleEvery unit

Inspector time on judgement calls

Share of inspectors' time spent on borderline cases and root cause, not routine checking.

ExampleRising, measured quarterly

UK regulation and controls

Cross-sector rules are on the UK regulation map.

  • OPSSGeneral Product Safety Regulations 2005, product-specific safety law, and the Product Regulation and Metrology Act 2025

    The manufacturer stays responsible for placing safe products on the market. AI inspection is one control among several, not a substitute for design safety or testing. Batch traceability matters most here: if a corrective action or recall is needed, you can say quickly which units are affected. The 2025 Act lets government update product rules through secondary legislation, so watch for changes in your product areas.

  • BISTUKCA and CE marking

    CE marking is recognised in Great Britain indefinitely for 21 product regulations, including electrical equipment and machinery, so many manufacturers use one mark for both markets. Either way, the declaration of conformity and the production controls behind it are yours. If the AI changes how you control production, update the quality plan and technical documentation that support the mark.

  • ISOISO 9001 quality management (2026 revision published 16 September 2026)

    The vision system is a monitoring and measuring resource: show it's fit for purpose, keep it under control, and keep records of nonconforming output and what was done with it. Model changes go through the same change control as gauges and test rigs. If you supply automotive customers under IATF 16949, expect them to ask for a measurement system analysis.

  • ICOUK GDPR, monitoring workers guidance and video surveillance guidance

    Cameras pointed at parts often catch hands, faces and badges. Do a DPIA, tell workers before cameras go live, consult their representatives, and crop, mask or angle cameras so people aren't recorded. Don't use inspection images or inspectors' decisions to judge individuals' performance unless that has been assessed and explained separately. Keep images only as long as quality records need them.

  • HSEPUWER 1998 and machinery safety

    Adding cameras, lighting and a divert gate changes the line. Risk-assess the change, keep guards and interlocks intact, and keep the divert logic in the PLC, owned by the controls engineers. The model never touches a safety function or stops the line.

The solution

Showing AWSAzuresovereign / on-prem services. Switch with the toggle; every diagram and table on this page follows it.

Visual quality inspection: reference architecture
  1. 01Shop floor (OT)

    • Line cameras and lighting
    • PLC: trigger and divert-to-hold gate
    • Hold lane and rework station
  2. 02Edge

    • SageMaker AI model on AWS IoT GreengrassAzure Machine Learning model on Arc-enabled Kubernetes (Azure IoT Operations)ONNX Runtime or NVIDIA Triton on Kubernetes at the plantInference at the line
    • AWS IoT Greengrass stream manager to Amazon S3Azure IoT Operations media connector to Blob StorageCeph, or IONOS S3 Object StorageImage buffer and upload
    • MQTT via AWS IoT GreengrassAzure IoT Operations MQTT brokerMQTT broker (e.g. Eclipse Mosquitto)Results to plant systems
  3. 03Intelligence

    • SageMaker AIAzure Machine Learning (AutoML for images)MLflow and Kubeflow on KubernetesModel training
    • CVAT or Label Studio, hosted in your AWS accountAzure Machine Learning data labellingCVAT or Label Studio on KubernetesImage labelling
    • Agent
      Bedrock AgentCoreFoundry Agent ServiceLangGraph on Kubernetes, with open-weight models via vLLMQuality investigation agent
  4. 04Orchestration

    • Step FunctionsLogic Apps / Durable FunctionsTemporal, or n8nHold-to-decision workflow
    • EventBridge + SQSEvent Grid + Service BusApache Kafka or RabbitMQEvents and queues
  5. 05Systems of record

    • MES (unit and batch genealogy)
    • Quality management system (NCRs, CAPA)
    • ERP (lots, stock status, customers)
  6. 06People

    • Person
      Line inspector: pass, rework or scrap
    • Person
      Quality engineer: NCR and containment
    • Person
      Quality manager: model changes and release
  • Cloud or platform service (AWSAzuresovereign / on-prem)
  • AI agent
  • A person decides
  • Your existing systems
  • Outside your organisation

Components, side by side

Visual quality inspection: components on AWS, Azure and a sovereign or on-prem stack
LayerAWSAzureSovereign / on-prem
Cameras, lighting, triggersLighting matters more than the model. Prove you can see the defect in a photo before buying anything else.Industrial cameras and lighting chosen per defectIndustrial cameras and lighting chosen per defectIndustrial cameras and lighting chosen per defect
Inference at the lineVerdicts in tens of milliseconds, with no cloud dependency. Amazon Lookout for Vision (ended 31 October 2025) and AWS Panorama (ended 31 May 2026) are no longer options.Model trained in SageMaker AI, deployed to a GPU edge box by AWS IoT GreengrassModel trained in Azure Machine Learning, run on Arc-enabled Kubernetes with Azure IoT Operations, or Azure IoT Edge 1.6 LTSONNX Runtime or NVIDIA Triton on Kubernetes at the plant
Model trainingAzure Custom Vision retires on 25 September 2028, and Microsoft points new work to Azure Machine Learning. Amazon Rekognition Custom Labels is still offered, but it's a cloud API, so it suits offline checks better than line-speed verdicts.Amazon SageMaker AIAzure Machine Learning (AutoML for images)MLflow and Kubeflow on Kubernetes
Image labellingSageMaker Ground Truth closed to new customers on 30 July 2026. Your inspectors are the labellers: their decisions on held units are the best training data you have.An open-source tool such as CVAT or Label Studio, in your AWS accountAzure Machine Learning data labellingCVAT or Label Studio on Kubernetes
Image and result storeKeep held, rejected and audit-sample images with their record. Most pass images can be kept briefly and then deleted.Amazon S3Blob StorageCeph, or IONOS S3 Object Storage
Quality investigation and draftingThe vision model decides what it sees; the language model only groups, links and drafts. The original Bedrock Agents closed to new customers on 30 July 2026; new builds use AgentCore.Amazon Bedrock, Bedrock AgentCoreMicrosoft Foundry, Foundry Agent ServiceOpen-weight models served with vLLM; an open-source agent framework (e.g. LangGraph) on Kubernetes
Workflow and eventsAWS Step Functions, EventBridge, SQSLogic Apps or Durable Functions, Event Grid, Service BusTemporal or n8n; Apache Kafka or RabbitMQ
Link to MES, QMS and ERPThe MES owns unit and batch genealogy. Inspection results are written there, not kept in a separate AI database.API Gateway, plus your existing integration platformAPI Management, plus your existing integration platformKong or your existing API gateway
Human reviewShow the image, the highlighted area and two or three similar past decisions. Keep it to one tap per decision.On a screen at the hold lane, recording into the MESOn a screen at the hold lane, recording into the MESOn a screen at the hold lane, recording into the MES
Guardrails for the agentBedrock GuardrailsFoundry guardrails (Azure AI Content Safety)Open-source guardrails (e.g. NeMo Guardrails, Llama Guard)
Identity, keys, OT securityThe edge box sits in its own network zone. Only the PLC interface agreed with controls engineers crosses into OT.IAM Identity Center, KMS, device certificates in AWS IoT CoreEntra ID, Key Vault, Azure Device Registry certificatesKeycloak or your existing Active Directory; OpenBao or HashiCorp Vault; an HSM
Monitoring and auditTrack hold rates, agreement with inspectors and image quality per camera, so drift and a dirty lens are spotted early.CloudWatch, CloudTrailAzure Monitor, Log AnalyticsPrometheus, Grafana, OpenTelemetry
UK data residencyImages of your products can be commercially sensitive. Some customers' contracts limit where they can be stored.eu-west-2 (London)UK South / UK WestYour own UK data centre, or a UK or EU provider

On a phone, the table shows the platform you pick. Sovereign / on-prem means open, portable components you can run in your own data centre or with a UK or European provider; IONOS is shown as one example, and others exist. What sovereign cloud means →

Hybrid and on-prem

Many organisations keep core systems and sensitive data on their own servers. This is how the same design works across both.

Stays on-prem

Every live verdict is made at the line, on an edge box in the plant. The PLCs, divert gates, hold lanes and the MES stay on site, and the line runs whether or not the cloud is reachable.

Uses cloud AI

Model training, labelling, the image archive and the quality investigation agent run in AWS or Azure, or on your own GPUs if product images must not leave your estate. New models are pushed back to the edge only after the quality manager approves them.

How they connect

Each plant's edge zone sends results and selected images out over an outbound-only, encrypted connection, over AWS Direct Connect, Azure ExpressRoute or the internet with mutual TLS. Model updates come down through the same managed channel, never by hand.

If the link drops

Inspection carries on at full speed with the current model. Images and results queue locally and upload when the link returns. If the edge box itself fails, every unit goes to hold and the line falls back to manual inspection.

The agents

What each agent may do through its tools, what it may not, and where a person signs off. The limits are enforced by the platform, not the prompt.

Quality investigation agent

May do

  • Watch defect rates by line, station and defect type
  • Group recent defects and link them to batches, material lots, machines and times
  • Look up past NCRs and corrective actions for similar defects
  • Suggest which batches might be affected, with its reasons
  • Draft a nonconformance report in the quality system for a quality engineer

May not do

  • Pass, rework or scrap a unit, or release a held one
  • Place or lift a quality hold on stock
  • Change model thresholds, line settings or anything on the OT network
  • Approve or close an NCR
  • Contact a customer or supplier

Where a person signs offInspectors decide every held unit. A quality engineer decides containment and approves every NCR, and the quality manager approves every model change before it reaches the line. The agent's permissions are enforced by the platform's identity and policy controls, not by instructions in a prompt.

Middleware and integration

The edge box talks to the line through one interface, agreed with the controls engineers: a pass or hold signal per unit, read by the PLC's own logic. The PLC decides what moves where, and a missing or late verdict means hold. Nothing else crosses into OT.

Every verdict becomes an event carrying the unit or batch ID, so the MES, the quality system and the image store all agree. If the MES is down, events queue at the edge and are written in order when it returns, with no duplicates.

Models are versioned and deployed like any other plant software: tested on a held-back set of your own images, approved, rolled out one line at a time, with the previous version ready to roll back.

Process and people

  • Inspectors own the decisions on held units, and those decisions are the record.
  • A blind audit: a sample of passed units is re-inspected by people every shift, so escapes are measured, not assumed.
  • A named owner for each model and its thresholds, normally in quality, with change control and a written validation for each release.
  • A weekly review of false holds and missed defects, by defect type and camera.
  • Worker representatives consulted before cameras go live, with a clear statement of what images are used for and what they're not.
  • Inspectors trained before go-live, including what the camera can't see: hidden faults, smell, feel and sound.

Delivery plan

  1. 3–4 weeks

    Discovery

    Pick one line and one defect family, prove the defect is visible in test photos under controlled lighting, measure today's escape and false-reject rates, and agree the PLC interface.

  2. Gate · must be true to passDefect visible in images, baseline measured, DPIA started, worker representatives briefed, controls engineers signed up.

  3. 10–12 weeks

    Pilot

    Cameras and edge inference on one line in shadow mode: the model gives verdicts, inspectors work as normal, and the two are compared on every unit.

  4. Gate · must be true to passAgreement with inspectors and false-hold rate within agreed limits, model validation signed off by the quality manager.

  5. 4–6 weeks

    Production

    The model drives pass or hold on the pilot line, with inspectors deciding every held unit, monitoring, support and a rollback plan.

  6. Gate · must be true to passHold-lane capacity proven at full speed, traceability complete in the MES, rollback tested.

  7. Ongoing

    Scale

    Add defect families and stations, then lines and plants, reusing the edge pattern and the hold-to-decision flow.

  8. Gate · must be true to passEach new line and defect family passes the same pilot gate.

Roles and RACI

Who is responsible, accountable, consulted and informed, by activity
ActivityOperations directorQuality managerControls / OT engineerSolutions architectI can fill thisTechnical PMI can fill thisEngineersI can fill thisSecurityI can fill thisDPO
Business case and benefitsAccountableResponsibleConsultedConsultedConsultedInformedInformedInformed
Target architecture and edge designInformedConsultedConsultedAccountable and ResponsibleConsultedConsultedConsultedInformed
PLC interface and line changesInformedConsultedAccountable and ResponsibleConsultedConsultedConsultedConsultedInformed
DPIA and worker consultationConsultedConsultedInformedConsultedConsultedInformedConsultedAccountable and Responsible
Build and integration with MES, QMS and ERPInformedConsultedConsultedAccountableResponsibleResponsibleConsultedInformed
Model validation on your own partsInformedAccountableConsultedConsultedConsultedResponsibleInformedInformed
Go-live decisionAccountableResponsibleConsultedConsultedResponsibleInformedConsultedConsulted
Run, monitor and improveInformedAccountableConsultedConsultedConsultedResponsibleConsultedInformed

Business case and benefits

Operations director
A · Accountable
Quality manager
R · Responsible
Controls / OT engineer
C · Consulted
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
I · Informed
Security
I · Informed
DPO
I · Informed

Target architecture and edge design

Operations director
I · Informed
Quality manager
C · Consulted
Controls / OT engineer
C · Consulted
Solutions architect
A/R · Accountable and Responsible
Technical PM
C · Consulted
Engineers
C · Consulted
Security
C · Consulted
DPO
I · Informed

PLC interface and line changes

Operations director
I · Informed
Quality manager
C · Consulted
Controls / OT engineer
A/R · Accountable and Responsible
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
C · Consulted
Security
C · Consulted
DPO
I · Informed

DPIA and worker consultation

Operations director
C · Consulted
Quality manager
C · Consulted
Controls / OT engineer
I · Informed
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
I · Informed
Security
C · Consulted
DPO
A/R · Accountable and Responsible

Build and integration with MES, QMS and ERP

Operations director
I · Informed
Quality manager
C · Consulted
Controls / OT engineer
C · Consulted
Solutions architect
A · Accountable
Technical PM
R · Responsible
Engineers
R · Responsible
Security
C · Consulted
DPO
I · Informed

Model validation on your own parts

Operations director
I · Informed
Quality manager
A · Accountable
Controls / OT engineer
C · Consulted
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
R · Responsible
Security
I · Informed
DPO
I · Informed

Go-live decision

Operations director
A · Accountable
Quality manager
R · Responsible
Controls / OT engineer
C · Consulted
Solutions architect
C · Consulted
Technical PM
R · Responsible
Engineers
I · Informed
Security
C · Consulted
DPO
C · Consulted

Run, monitor and improve

Operations director
I · Informed
Quality manager
A · Accountable
Controls / OT engineer
C · Consulted
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
R · Responsible
Security
C · Consulted
DPO
I · Informed

R ResponsibleA AccountableC ConsultedI Informed· not involved

Where I'd fit

Option A

Lead the architecture

If there's no architect on the programme, I'd own the design end to end: the edge pattern at the line, the interface with your controls engineers, the traceability into your MES and quality system, and the gates. I'd report to your programme board and work closely with your quality manager, who owns the standard the model has to meet.

Option B

Support your architect

If your partner, your machine vision integrator or your own team already has an architect, I'd take on the MES, QMS and ERP integration, the event flow and the quality agent under their lead, and give them a second senior opinion on OT security and on how the model is validated.

Where this goes wrong

  1. Goes wrong

    The demo used perfect parts under perfect light. The line has glare, dust and vibration.

    How the design avoids it

    Prove the defect is visible in photos taken on the real line, at real speed, before choosing a model.

  2. Goes wrong

    Too few examples of rare defects, so the model never learns them.

    How the design avoids it

    Start with defect families you see often, use anomaly detection for the rare ones, and grow the training set from inspectors' decisions.

  3. Goes wrong

    The hold lane overflows and the line has to stop.

    How the design avoids it

    Size the hold lane and inspector cover for the false-hold rate seen in the pilot, and measure it every shift.

  4. Goes wrong

    Results live in a separate AI database, so traceability still means a day of digging.

    How the design avoids it

    Write every verdict and decision to the MES against the unit or batch ID.

  5. Goes wrong

    Workers hear about the cameras from a rumour, and trust is lost.

    How the design avoids it

    DPIA, consultation and a clear statement of purpose before any camera is fitted.

On the horizon

Changes already announced or under way that affect this design. More in the UK horizon scan.

  1. From 10 November 2026
    Azure IoT Edge 1.5 LTS reaches end of support. IoT Edge 1.6 LTS is supported to 14 November 2028.

    If you run vision models on IoT Edge, build on 1.6 LTS or Azure IoT Operations, and plan an upgrade path for every edge box.

  2. 2026–2027
    Secondary legislation under the Product Regulation and Metrology Act 2025, with consultations expected on updating product rules.

    Keep traceability and inspection records in a form that would support a corrective action or recall under whatever rules follow.

  3. By around September 2029
    The transition from ISO 9001:2015 to ISO 9001:2026, expected to run about three years from publication. Accreditation bodies are confirming the final date.

    Plan the vision system's validation records and change control so they carry straight into your transition audit.

  4. 25 September 2028
    Azure Custom Vision retires, and calls to it will fail after that date.

    Don't start new work on it. If an existing line uses it, move the model to Azure Machine Learning as part of this programme.

Questions to ask your partner or vendor

Good answers are specific. Vague answers to any of these are worth following up.

Copy them into your next supplier meeting

  1. Can you show the defect in a photo from our line, under our lighting, before we buy cameras?
  2. What happens to a unit if the model is slow, wrong or offline?
  3. How will you measure escapes and false holds on our parts, not a benchmark?
  4. Where are images stored, for how long, and who can see them?
  5. How is a new model version validated, approved and rolled back, and who owns that after you leave?
  6. What does it cost per line per year, including cameras, edge hardware and retraining?

Planning something like this?

Whether you need someone to lead the design or to support the architect you already have, let's talk it through.

Sam Naseem
Sam NaseemBirmingham, UK · UK & Europe
Available now