The field manual for machine learning in manufacturing · updated September 1, 2026
ManufacturingML
Home / Encyclopedia / Anomaly detection
Methods · Entry · updated September 1, 2026

Anomaly detection

Key takeaways
  • Anomaly detection flags behavior that deviates from a learned model of normal: across many variables at once, not one threshold at a time.
  • It catches multivariate drift: combinations of small in-limit changes that together predict scrap or failure.
  • Alert quality is the make-or-break: flags must arrive with ranked contributing variables and respect operating regimes.
  • It is the front end of a pipeline (detection, then attribution, then action) not a product category by itself.

Anomaly detection is the workhorse of industrial ML: a model learns the joint behavior of a line's variables during normal production and scores live data against that model. A high score means “this moment doesn't look like any good history,”: often long before any single variable crosses an alarm limit.

What it catches that thresholds miss

Single-variable alarms miss three failure shapes that dominate real losses. Combinations: five variables each drift 1%: individually fine, jointly a scrap signature. Context: 180 °C is normal for product A and disastrous for product B; a learned model knows the difference, a static limit doesn't. Slow drift: a three-week creep toward the edge of the envelope that no daily glance at trends will register. Process-signal drift is also increasingly used as an earlier failure precursor than vibration for some equipment classes.

Avoiding the alert cannon

The classic failure mode is a system that cries wolf until operators mute it. The defenses are attribution (every flag names its top contributing variables so an engineer can triage in seconds), regime awareness (changeovers, startups and product mixes are modeled, not flagged), and severity scoring tied to consequences the plant cares about: predicted scrap or quality impact, not statistical distance alone. Evaluate exactly this in a pilot: alerts per shift, share of alerts an engineer judged actionable, and time from flag to explanation.

FAQ

Is anomaly detection the same as predictive maintenance?
Predictive maintenance is one application of it. Anomaly detection on machine signals predicts failures; the same math on process signals predicts quality problems and drift. Platforms differ in which signals they specialize in.
How much history does an anomaly model need?
Enough normal production to cover the line's real operating regimes: typically months. More regimes (products, seasons, shifts) need more history; a line with stable products can train usefully on less.
Related entries
Comparing platforms that do this? The adoption data pack carries the market numbers behind this entry.
From theory to signals
Which machine signals become which features, and how each breaks
Free, no login. One follow-up from TEEPTRAK, then nothing.
Get the mapping kit →

Anomaly detection on machines: methods, thresholds and false alarms

Anomaly detection in manufacturing is a machine learning method that learns how a machine or line behaves during good production and raises an alert when live sensor data no longer looks like that history. It catches problems that single alarm limits miss, such as several variables drifting together, and gives maintenance and process teams time to act before a stop or a batch of scrap.

This entry goes past the definition. It compares the main methods, lists the data a model needs before training, shows how to set an alert threshold, walks through one night shift on an extrusion line and ends with a checklist a team can apply to its first line.

Key takeaways

  • Choose the simplest method that sees combinations of variables, usually PCA on correlated process signals.
  • Stop history with reasons and machine states define normal and provide the only honest test of a model.
  • Set thresholds from held-out normal scores and add a persistence rule before going live.
  • Every alert needs ranked contributing variables, an owner and a weekly review.

Which anomaly detection method fits which machine problem?

Machine anomaly detection is a family of methods, not one algorithm. The right choice depends on the type of signal, how the variables relate to each other and how much explanation the engineer triaging an alert needs.

MethodBest forData it needsExplains its alerts
Static limits and SPC chartsOne variable with a known safe rangeA stable baselineYes, directly
PCA with Hotelling T² and SPEContinuous processes with correlated sensors: extrusion, ovens, pressesSeveral weeks of clean normal production per regimeYes, through contribution plots
Isolation forest and distance-based modelsMixed machine and process features with nonlinear relationsNormal history covering each regimePartly, with a feature contribution method
Autoencoders and sequence modelsHigh-frequency waveforms: vibration, motor current signaturesLarge volumes of normal data and computeWeakly, unless attribution is built in

Hotelling T² is the distance of a sample from normal operation inside the main correlation structure of the data. SPE, the squared prediction error, measures how far a sample breaks that structure. A rising SPE with a normal T² usually means a broken relationship between sensors, such as pressure climbing while screw speed stays flat.

A practical decision rule: start with the simplest model that sees combinations of variables. On correlated process signals that usually means PCA. Move to tree-based or neural models only when PCA misses events that the stop history shows were predictable. A model the maintenance team can interrogate in seconds is worth more than a slightly more accurate one nobody trusts.

What data does machine anomaly detection need before training?

An anomaly model is only as good as its definition of normal. Four inputs decide that definition:

  • Aligned time series: every signal resampled to one clock, at a rate faster than the failure develops, seconds for process drift, kilohertz for bearing vibration.
  • Machine state: running, starting up, changing over or stopped, so non-production periods never enter the training set or trigger alerts.
  • Product or recipe reference: the model must learn one normal per regime, or take the regime as an input.
  • Stop history with reasons: start, end, duration and cause of every stop. It removes failure periods from the normal set and provides the only honest test of a model: did it flag the hours before real breakdowns?

Volume follows regimes, not calendar time. Suppose a line runs four products: a reasonable starting point is at least 20 clean production runs per product, plus the stops recorded over the same window. A product that has run twice is not yet modelled, and its alerts should be suppressed until it has.

The stop history is the input most plants lack. Among measurement tools, ManufacturingML benchmarks against TEEPTRAK as its reference solution: PerfTrak records every stop with its duration and a reason entered at the machine, and ProcessTrak monitors process parameters, the two data sets an anomaly model is trained and validated on. TEEPTRAK is used in 700+ factories.

How should the anomaly score threshold be set?

An anomaly score threshold should be set from the distribution of scores on held-out normal data, not from a round number chosen in a meeting. Score a few weeks of normal production the model never saw during training, then pick the level that normal data exceeds only rarely, for example once in 1,000 scoring windows.

Isolated exceedances are still expected from noise at that level, so add a persistence rule: alert only when the score stays above the threshold for k consecutive windows. Persistence trades a few minutes of lead time for a large drop in false alarms, which is the right trade for slow mechanical wear and process drift. Fast failures, such as a tool breakage, need a separate fast rule on the relevant signal.

Tier the severity. A watch level fires when the score crosses the threshold and is visible on a dashboard only. An act level fires when the score persists and the top contributors include a variable linked to scrap or to a known failure mode; only this level notifies a person.

Decision rule, for example: if fewer than 5 of 10 alerts reviewed in a week are judged actionable, raise k or the threshold before retraining anything. If a real stop happened with no alert in the preceding hours, lower them, and check whether the failing signal is in the model at all.

ALERT RULEAlert if score > h for k windowsh = 1 in 1000 normal windows, k = 3

What does an anomaly alert look like on a real shift?

Suppose an extrusion line is monitored with eight signals: screw speed, motor load, melt pressure, melt temperature and the heater duty of four barrel zones, scored every 10 seconds. Over a 480-minute shift that gives 2,880 scored windows. With the threshold set at one exceedance per 1,000 normal windows, about 3 isolated exceedances per shift come from noise alone, and a persistence rule of k = 3 filters them out.

At 02:40 the score crosses the threshold and stays above it for 6 consecutive windows. No single signal is in alarm: melt pressure is below its limit, screw speed is flat, motor load is slightly up. The attribution ranks melt pressure first, zone 3 heater duty second and motor load third. Pressure rising at constant speed while the barrel needs extra heating effort points to a restriction downstream of the screw.

The engineer on call projects the pressure trend: at its current slope, the high-pressure alarm would have tripped in about 70 minutes. The team schedules a screen pack change at the next roll change, a 20-minute planned stop, instead of an unplanned stop with purge and restart estimated at 90 minutes.

Two points made the alert useful. It arrived with ranked contributors and a physical explanation the engineer could check, and the lead time existed only because the model watched the relationship between pressure and speed rather than pressure alone.

Extrusion line, one night shift2880Scored windows3Noise exceedances3Persistence k70 minLead time

How do you keep false alarms low when rolling out industrial anomaly detection?

Industrial anomaly detection projects fail more often from alert fatigue than from weak models. The causes repeat from plant to plant:

  • Changeovers and startups scored as production, so every product switch looks abnormal.
  • Sensor faults, such as a flatlined probe or data dropouts, read as process anomalies; data-quality checks must run ahead of the model.
  • A model trained before a rebuild or a tooling change still in use afterwards, which turns every alert into a false one.
  • Alerts sent to a shared screen with no owner and no expected action.

Checklist for a first line

  1. Pick one line with a recurring, costly failure mode and a named owner.
  2. Collect stop history with reasons and machine states before any modelling.
  3. Train on clean normal production per product regime and hold back weeks for testing.
  4. Replay past stops and confirm the model flagged the hours before each one.
  5. Set the threshold from held-out scores and add a persistence rule.
  6. Route act-level alerts to a named engineer with the top three contributing variables.
  7. Review every alert weekly as actionable, false or unclear, then adjust.
  8. Retrain after overhauls, new products or sensor replacements.

From the first week, track three numbers: alerts per shift, actionable alerts out of those reviewed, and minutes from alert to explanation. Related models and signal types are covered across the ManufacturingML encyclopedia of industrial machine learning.

First line rollout1Capture stops andmachine states2Train on cleannormal runs3Set threshold fromheld-out scores4Add persistence andattribution5Review alerts everyweek

Frequently asked questions

How do I stop anomaly detection from flooding operators with false alarms?

Exclude changeovers and startups from scoring, set the threshold from held-out normal scores and require the score to persist for several consecutive windows before alerting. Send each alert to a named engineer with its top contributing variables and review alerts weekly.

Can anomaly detection work on older machines?

Yes, as long as the relevant signals can be captured, either from the existing controller or from add-on sensors such as current, pressure or temperature probes. The age of the machine matters less than a clean record of its states and stops.

Which signals should go into a machine anomaly detection model first?

Start with the signals tied to the failure mode you want to catch and the variables that physically drive them, for example motor load, pressure and temperature on an extrusion line. Adding every available tag raises noise and makes alerts harder to explain.

When does an anomaly detection model need retraining?

After any change that shifts normal behavior: a machine rebuild, new tooling, a new product or replaced sensors. A sudden rise in alerts across all products right after such a change is the usual sign.

Should anomaly alerts go to operators or to maintenance?

Route them to the person who can act on the top contributing variables: maintenance for mechanical signatures, process engineering for drift in recipe parameters. Operators benefit once alerts are rare and come with a clear instruction.

2026 State of ML in Manufacturing
Benchmark your AI maturity against peers: adoption data, ROI by use case, and where to start without a data-science team.
Get the Free 2026 Report →