Process control

Detecting machine anomalies with data: what makes the difference

Illustration: a vibrating gear and a chart of its signal with an anomalous peak highlighted.

Machines generate more and more data: vibrations, temperatures, energy consumption, pressures, cycle times or machine vision images. Turning that data into useful alerts about anomalous behaviour is possible, but it takes more than connecting sensors and waiting for alarms to appear. In this article we review what makes the difference between a system that helps and one that ends up being ignored.

First define what you want to detect

Detecting anomalies is too broad a goal to start with. Before analysing any data, it is worth specifying what kind of behaviour you want to identify and why. Anticipating the gradual wear of a component is not the same as detecting an occasional jam, a drift in part quality or a loss of calibration in a measurement system.

Each of these goals determines which variables are relevant, how often they need to be recorded and how much advance warning it is realistic to expect. A useful question to make it concrete is: if the system alerted you tomorrow, what would you do with that alert? If the answer is not clear, the goal probably is not clear either.

For example, in a machine vision inspection system the challenge is not usually to detect anything strange, but to identify when the system itself starts behaving differently from usual, before this turns into wrong quality decisions. Framing it this way lets you focus the analysis on the right variables.

Operating conditions matter

The same machine can behave very differently depending on what it is doing. Line speed, the format or product being made, the load, the ambient temperature or the phase of the cycle change the normal values of many variables. If they are not taken into account, any change in conditions will look like an anomaly, and a real anomaly can be hidden behind a change in conditions.

That is why it is important to record, along with the machine variables, the context variables that describe how it is operating: which product is being made, at what speed and in what state the machine is (start-up, production, cleaning or stoppage). With that information you can compare each moment with equivalent situations, or build separate references for very different operating regimes.

A common mistake is to mix start-up, stoppage or cleaning periods with periods of normal production in the analysis. These transient states have their own behaviour and should be treated separately or excluded.

Build a representative reference

Most approaches to anomaly detection are based on the same idea: learn what normal behaviour looks like and flag whatever departs from it. The quality of that reference largely determines the quality of the system.

A good reference should meet several conditions:

  • Cover the normal variability: different products, shifts, times of year and usual operating conditions.
  • Exclude known anomalous episodes, such as breakdowns, interventions or periods with quality defects.
  • Be consistent with the current state of the machine, especially if relevant components have been modified or replaced.
  • Be validated with the maintenance and production team, who know the history of the machine better than the data itself.

In addition, as in any process, the variables of a machine are related to each other. A motor’s consumption depends on the load; a bearing’s temperature, on the speed. Multivariate techniques make use of these relationships: a change in the consistency between variables is usually an earlier signal than a single variable going out of range.

Signal versus noise

Machine data is noisy by nature. There are one-off peaks, sensors that fail, communication interruptions and variations that mean nothing. A system that reacts to every fluctuation generates so many alerts that it ends up losing credibility.

Telling signal from noise requires work on several fronts. First, data quality: detecting frozen values, impossible jumps or misaligned records before analysing them. Second, persistence: anomalous behaviour that lasts over time or repeats is, in general, more relevant than an isolated value. And finally, consistency: if several related variables point in the same direction, the signal is more credible than if only one of them moves.

It also helps if each alert comes with information that allows it to be interpreted, such as which variables are contributing most to the anomaly and how they have evolved in the previous hours. An interpretable alert gets reviewed; an opaque one gets ignored.

Validate before you intervene

Before using an anomaly detection system to make decisions, you should check that it works. The most direct way is to apply it to historical data: if there were documented breakdowns, adjustments or quality episodes in the past, would the system have flagged them? How far in advance? How many alerts would it have generated in periods when nothing happened?

This retrospective validation has its limits, because there are usually few recorded episodes and they are not always well documented. That is why it is advisable to complement it with a parallel trial period, in which the system runs and its alerts are reviewed, but they do not yet trigger interventions. This period is used to adjust the sensitivity, track down the source of false alarms and, above all, earn the team’s trust.

How it fits with maintenance

Data-based anomaly detection does not replace preventive maintenance or the experience of the technical team; it complements them. Its role is to warn that something has changed, so that the people who know the machine can decide whether to intervene, when and how. It is the same logic with which we approach process improvement: data and the team’s knowledge working together.

To make it fit into day-to-day work, it helps to agree from the start who receives the alerts, how they are reviewed and how the findings of each review are recorded. That record is very valuable: over time it lets you link signal patterns to specific causes and improve the detection system itself.

What to do first

If you want to start detecting anomalies in your machinery with data, a sensible starting point is this:

  • Choose a critical machine or piece of equipment whose failures or drifts have a clear cost.
  • Specify what you want to detect and what you would do with each alert.
  • Review what data you record, including context variables, and check its quality.
  • Gather the incident history so you can validate the approach against the past.

With that foundation you will know whether the available data can anticipate what you are interested in and what else would need to be measured before taking the next step.

How can we help you?

Leave us your phone number or email address. We will get in touch to learn about your challenge and assess together how we can help you, with no commitment.

One of the two is enough. Choose how you would prefer us to contact you.

Would you like to tell us anything else? (optional)

When you submit, your email app will open with the message ready for you to review and send.