Machine Learning for Industrial Anomaly Detection

Supervised, unsupervised, and semi-supervised models compared, where each pays off first on the plant floor, and the infrastructure gaps teams usually underestimate before rollout.

AI12 Nov 20266 min read
Industrial technician's gloved hand reaching toward a vibration sensor on a factory motor, with a glowing data-particle overlay suggesting anomaly detection
TL;DR

Unsupervised models are the default for industrial anomaly detection because labeled failure data is rare; semi-supervised (one-class) models are usually the practical starting point since they train only on the abundant "normal" data. Supervised models work well only when a plant already has a meaningful log of labeled failures. The harder part isn't picking a model — it's fixing fragmented sensor data and legacy SCADA/MES integration before training even starts.

Most plants already run threshold alarms on their SCADA or HMI screens, and most plants already know they aren't enough. A fixed threshold either fires constantly as load, speed, and ambient temperature shift through a normal shift, or it stays silent through a slow drift that would have told a trained technician something was wrong weeks before the failure. Neither failure mode is rare — it's the default behavior of a rule that can't see context.

That gap is exactly where a team that builds custom anomaly-detection models trained on your own plant's sensor data earns its keep: instead of a generic threshold, the model learns what normal actually looks like for a specific line, across the load and seasonal swings a one-size-fits-all rule can't account for.

This guide compares the three ML approaches to anomaly detection, where each pays off first on a production floor, the infrastructure gaps teams typically underestimate before they start, and a simple frame for deciding whether to build a model in-house or buy a managed platform.

Why Threshold Alarms Miss the Anomalies That Matter

A static threshold alarm compares one reading against one fixed limit, and that's exactly why it misses so much. It has no idea that a vibration spike is normal during startup, that a compressor's energy draw should rise on a hot afternoon, or that two sensors drifting together — temperature up, pressure down — means something a single-sensor rule will never catch.

Equipment behavior isn't static: load, speed, ambient conditions, and the equipment's own age all shift what "normal" looks like over time. A rule built for day-one conditions becomes either a nuisance or a blind spot within a few months.

The result on most floors is one of two failure patterns: alert fatigue, where operators start ignoring an alarm that fires too often to be useful, or a missed anomaly, where a real deviation never crosses the fixed line until it's already a failure. Machine learning models address this by learning the relationships between variables and how they normally move together, rather than checking a single number against a single limit.

Three Machine Learning Approaches to Anomaly Detection

Nearly every industrial anomaly detection system falls into one of three categories, and the right choice depends almost entirely on what kind of historical data the plant actually has.

Supervised Models: When You Have Labeled Failures

Supervised models train on historical data where failures are already labeled: this sensor reading pattern preceded a bearing failure, that one preceded a quality reject. When enough labeled examples exist, supervised models can be the most accurate option, because they learn the specific signature of a known failure mode rather than inferring it indirectly. The catch is availability. Most plants simply haven't logged enough labeled failure events to train one reliably, and manually labeling historical data after the fact is slow and error-prone.

Unsupervised Models: When You Don't

Unsupervised models — clustering methods, autoencoders, isolation forests — train only on the plant's normal operating data and flag anything that doesn't fit the learned pattern. No failure labels are required, which is why this is the default approach for most industrial cases: normal operating data is abundant, labeled failure data almost never is. The tradeoff is that an unsupervised model doesn't know why something is anomalous, only that it diverges from normal, so flagged events still need a human or a downstream system to interpret.

Semi-Supervised / One-Class Models: The Practical Middle Ground

Semi-supervised, or one-class, models sit between the two: they train exclusively on normal data (which there's plenty of) but are structured specifically to draw a tight boundary around it, rather than just clustering it generically. For most real industrial rollouts, this is the practical starting point. It doesn't demand labeled failures, but it's purpose-built for the anomaly-detection task rather than borrowed from general-purpose clustering.

Where It Pays Off First: High-Value Use Cases

A handful of use cases consistently deliver the fastest return once a model is trained and tuned:

What Teams Underestimate Before They Start

The model is rarely the hardest part of an anomaly-detection rollout. The infrastructure around it usually is:

Build Custom or Buy a Managed Platform?

The decision usually comes down to three practical questions:

Frequently Asked Questions

What's the difference between supervised and unsupervised anomaly detection?
Supervised anomaly detection trains on historical data where failures are already labeled, so the model learns what a known-bad pattern looks like. Unsupervised anomaly detection trains only on normal operating data and flags anything that deviates from it, which is why it's the more common starting point in manufacturing, where labeled failure data is scarce.
How much historical data do you need before training a model?
For unsupervised and semi-supervised approaches, what matters most is capturing enough normal operating cycles to cover seasonal and load variation — often several weeks to a few months of continuous sensor data, rather than a fixed number of records. Supervised models need something harder to get: a meaningful number of labeled failure events, which most plants simply haven't logged at scale.
Why do anomaly detection models produce false positives, and how do you reduce them?
False positives usually come from a model trained on too narrow a slice of normal behavior — a different product run, a seasonal load change, or a maintenance cycle it never saw during training gets flagged as anomalous. Reducing them means retraining on a wider window of normal data, tuning the sensitivity threshold, and routing low-confidence alerts to a review step instead of an automatic alarm.
Can anomaly detection models run at the edge, or do they need the cloud?
Many unsupervised and semi-supervised models are lightweight enough to run inference at the edge, close to the sensor, which cuts the latency between a reading and an alert. Training usually still happens centrally, where there's enough compute and historical data in one place, and the trained model is then pushed back out to the edge node — the same tradeoff covered in our edge computing in manufacturing guide.
How does anomaly detection fit with existing SCADA/MES alarm systems?
Anomaly detection doesn't replace SCADA/MES alarms — it sits upstream of them, catching subtler deviations that a fixed threshold would miss. The practical integration point is routing the model's flagged events into the same alarm or work-order system operators already use, instead of standing up a separate dashboard nobody checks.
Close-up of an industrial motor bearing with overlaid data visualization dots representing sensor readings

None of this works without clean, joined sensor data flowing from the floor into wherever the model actually trains — which is the same architecture question covered in our IIoT architecture guide, one layer below the model itself.

← Back to Blog Editorial Team · Smart Machines & Factories