Real-time SPC with AI — statistical process control that reacts while you can still correct, not once you are already out.

Classical SPC warns you when the chart crosses the limit — and by then the batch is already contaminated. iLEAN Edge + Agents bring statistical process control to real time: live Xbar-R charts, automatic Western Electric rules, continuous CpK/PpK and an alert to the quality manager through their own channel before the drift produces parts outside tolerance. The person signs off.

‹ See all Lean methods

Real-time SPC panel with live Xbar-R control charts, Western Electric alerts and continuous CpK, quality engineer overseeing the line
The problem

SPC used to work with sampling and end-of-shift analysis. Today it is the black belt's bottleneck.

Classical SPC has earned its place in history — it disciplined industrial quality for half a century. But the way it is usually run on the plant floor has problems that operations feel every single day:

  1. Sampling every N parts — between two samples plenty of drifting parts can go out without the chart ever noticing.
  2. Retrospective review — the quality engineer looks at the chart at the end of the shift or the next morning and reconstructs what happened. The warning arrives after the fact.
  3. Manual capture — the operator writes on a sheet or in a spreadsheet; by the time it reaches the statistical package there are timestamps squared up by hand and missing values that get imputed. The black belt spends half the project in SQL and pivot tables.
  4. Western Electric rules living inside the engineer's head — the 8 classic rules are in the manual, but the one who really applies them is the person looking at the chart. If nobody looks, they are not applied.

The classical system (sampling + statistical analysis at end of shift) works — and it falls short the moment the cost of a contaminated batch far exceeds the cost of knowing earlier that it was drifting. Real-time SPC does not reinvent the methodology: it moves it to the moment when correction is still possible.

How it fits the IRIS system

iLEAN does not replace SPC — it turns it into a warm handover for the quality engineer.

Real-time SPC is what the Deming cycle (plan-do-check-act) always asked for: the loop closed at the speed of the line. iLEAN does not invent it — it closes it at a speed and with a consistency no single person could sustain. Connect is the filler that seals the cracks between the MES, the SCADA, the lab spreadsheet and the in-line Edge data.

The quality engineer no longer starts the shift reconstructing what happened. They start it deciding what to do with what the system already has ready. A warm handover for SPC.

The iLEAN pieces applied to real-time SPC:

  • Edge — computer vision and/or in-line sensors, measurement on 100% of the parts, raw data in milliseconds. It works with no network.
  • Connect — captures the complementary variables (SCADA, MES, IoT, the machine's old panel, the lab spreadsheet) and unifies them. Without that capture, real-time SPC is Edge-only statistics — useful but partial.
  • Agents — the brain. They maintain Xbar-R, p, np and U charts as appropriate; apply the 8 Western Electric rules automatically; compute continuous CpK/PpK; filter out system noise; and alert the right manager through their own channel. They also detect sensor drift and flag when the MSA needs repeating.
  • Three safety rings — any proposal that stops the line or adjusts the process goes through human validation. The chart flags it; the person decides and signs off.

See the full IRIS architecture →

Before and after

Sampled SPC with end-of-shift analysis vs. real-time SPC with iLEAN

AspectSampled SPC, offline analysisReal-time SPC with iLEAN
Coverage1 part in every N, periodic100% of the parts, continuous
Drift warningAt end of shift, when the chart is reviewedThe moment a Western Electric rule fires
CpK/PpK calculationAt batch closeContinuous, visible at any moment
Data captureManual or semi-manual, timestamps by handAutomatic (Edge + Connect), consistent timestamps
MSAScheduled, no drift detectionScheduled + drift detected by the agent, alert to repeat
Quality engineer's time50% SQL/pivot tables, 50% judgement10% judgement on clean data, 0% SQL
Impact estimate

Impact estimate for your plant — to be validated against your numbers.

The block below is an estimate to be validated with the actual data from your plant. We put it forward so the committee has an order of magnitude; we refine it during the diagnostic.

  • A line running classical SPC today (sampling + statistical analysis at end of shift), Cpk target around 1.33, scrap in the 1-3% range.
  • Edge + Agents pilot on that line (100% measurement, live charts, automatic WE rules, MES/SCADA integration). First value expected within a few weeks.
  • Indicative payback between 4 and 9 months, depending on how much weight quality carries in your cost and on the line's volume.
  • Reduction in the quality engineer's data-cleaning time of the order of ≥30% (conservative estimate). Additional scrap reduction from earlier reaction.

And the black belt's reasonable doubt

«What if the AI fires alarms that aren't real?» — hallucination is a problem of free generation, not of anchored tasks. Applying a Western Electric rule to an Xbar-R chart is the most anchored task that exists in statistics: there is a formula, there is a data point, there is a binary decision. On this kind of task the best models sit below 1.5% error [1]. And even so, the alert reaches the manager as a suggestion, never as an action on the line. The three safety rings exist precisely for this.

[1] OpenAI paper "Why Language Models Hallucinate", 2025 — on the reliability of AI in anchored tasks.

You may also be interested in: Six Sigma with industrial AI · DMAIC with AI-assisted statistics · Poka-yoke with computer vision

Frequently asked

What people ask about real-time SPC with AI

What is real-time SPC and how does it differ from classical SPC?

Classical SPC works by sampling (every N parts) and the control chart is reviewed at the end of the batch or the shift — the warning that you are out of control arrives late. Real-time SPC with iLEAN works on 100% of the parts: Edge measures in line, the agent keeps the Xbar-R chart live, applies the Western Electric rules automatically (the 8 classic rules + trend rules), computes continuous CpK/PpK and alerts the quality manager through their own channel the moment a rule fires — before the drift produces parts outside tolerance.

How do you validate MSA with automatic data? Doesn't it still have to be done by hand?

The classic Gage R&R is still done by hand — AI does not skip it. What changes is that the agent detects when a sensor's data starts to drift, compares it against the last validated MSA and alerts the quality engineer to repeat the MSA before bad data contaminates the charts and the conclusions. It is jidoka applied to the measurement itself — the system keeps the chain of trust intact.

Does it integrate with the statistical software we already use?

Yes. iLEAN does not replace the statistical package your black belt already handles fluently — it coexists with it. The agent prepares the clean data, runs the first statistical pass (Xbar-R, CpK, regression, capability) and the black belt validates the judgement call in their own tool if the formal report requires it. What disappears is the SQL and data-cleaning bottleneck, not the methodology.

And the Western Electric rules? Are they applied automatically without firing spurious alarms?

The 8 classic rules (one point beyond 3 sigma, 2 of 3 beyond 2 sigma, 4 of 5 beyond 1 sigma, 8 consecutive points on the same side, trends of 6, alternation, and so on) are applied automatically. The trick to not firing spurious alarms is that the agent first filters out system noise (stoppages, shift changes, recalibrations) and only escalates to the manager when there is a real signal. And even then, the manager decides whether to stop the line or not — the system proposes, the person signs off.

What does it cost and how is ROI measured?

A real-time SPC pilot on 1-2 critical lines is typically in the order of magnitude of an Edge + Agents pilot (terminals + integration + licence). ROI is measured on three levers: (1) less scrap and rework thanks to earlier reaction; (2) quality-engineer time freed from SQL and pivot tables; (3) lower audit cost (reports already prepared). Indicative payback of 4 to 9 months, depending on how much weight quality carries in your cost and how many critical lines you have.

Let's talk

Tell us about your case and within 48h we'll send you the estimated ROI of real-time SPC for your plant.

We work on your plant's real data, not ours. Diagnostic with no strings attached.

Request estimated ROI in 48h See Lean Manufacturing