← All posts

Predictive maintenance with machine learning, step by step

Predictive maintenance machine learning for mid-sized manufacturers: the data you need, model types in plain words, rollout and what to expect.

Predictive maintenance with machine learning, step by step

In predictive maintenance with machine learning, models learn from a machine's past behaviour to warn you before it fails. For a mid-sized manufacturer, that means fixing the right machine this week instead of reacting to a breakdown on the line. You need usage or sensor data, a record of past failures, and a team ready to act on the warning. This post covers the data, the model types in plain words, how to roll it out, and what to expect.

What is predictive maintenance, and how is it different from preventive?

Preventive maintenance runs on a calendar or a counter: service every machine every 500 hours, whether it needs it or not. It's simple and safe, but it spends effort on healthy machines and still misses failures that come early.

Predictive maintenance uses data to estimate which machines are likely to fail soon, so effort goes where the risk is. It doesn't replace routine servicing. It adds a priority list on top.

Reactive maintenance, fixing things when they break, is the third option. For critical machines it's usually the most expensive, because one failure can stop several production lines at once.

What data do you need?

Three kinds, joined by machine and time:

  1. Usage and condition data. Run hours, cycles, speed, load, temperature, vibration, pressure. Sensors help, but many plants start with what the machine controller or production system already logs.
  2. Maintenance and failure records. Every breakdown, repair and service, with a date, the machine, and ideally the failure type and the part replaced. This is the label the model learns from, and it's often the weakest data in the plant.
  3. Context. Shift patterns, product being made, ambient conditions, machine age. Efficiency measures such as OEE (availability, performance and quality) are useful too.

How much history? Enough to contain a fair number of failures for each machine type you want to predict. If a machine has failed twice in five years, a model has little to learn from. Mixed fleets add work: older machines often log less, or in different formats, so the data needs cleaning and aligning before any modelling.

Which machine learning models are used?

In plain words, there are three common approaches:

  • Classification: will it fail soon? The model looks at recent readings and says "likely to fail in the next N days" or not. You can also ask it which type of failure is most likely.
  • Time series forecasting: where is this reading heading? The model projects a measure such as vibration or run time forward and flags when it's heading out of its normal range. Methods such as Prophet or gradient-boosted trees like XGBoost are common choices.
  • Anomaly detection: is this behaviour unusual? Useful when you have few recorded failures. The model learns what normal looks like and flags anything that doesn't fit.

No single model wins everywhere. It's normal to try several, compare them on data they haven't seen, and keep the ones that work for each machine group.

One trade-off matters more than accuracy figures: false alarms against missed failures. Too many false alarms and the team stops trusting the list. Too few alerts and failures slip through. Tune the threshold with the maintenance team, not for them.

How do you roll it out?

  1. Pick the critical machines. Start where a failure costs most: bottlenecks and machines shared by several lines.
  2. Fix the data first. Extract and clean the history, and agree how failures are recorded from now on.
  3. Build and test models on past data, then run them alongside current practice for a few weeks.
  4. Deliver the output where people work. A weekly list of at-risk machines, with the reason for each flag, beats a dashboard nobody opens.
  5. Monitor and retrain. Machines get replaced and production changes, so accuracy drifts. Check it against what actually happened.

An example: Buff

Original Buff produces in Igualada, Spain. Unplanned failures were causing downtime, and because products share machines, one failure could delay several lines. The plant mixed machines from the 1990s with modern ones, so the data was inconsistent.

We extracted three years of usage, environmental, failure and OEE data. We built five models: two time series models (XGBoost and Prophet) and three classification models for failure types. The GEMBA method helped rank the most critical machines, so predictions focus on them. Results sit in a Qlik Sense app that explains why a machine was flagged, and each week the maintenance team gets a report of the machines most likely to fail in the coming days. The full story is in the Buff case study.

What should you expect?

A priority list, not a crystal ball. Expect the first months to go on data quality and on building the team's trust in the alerts. The gain comes from planned repairs replacing emergency ones, and from attention moving to the machines that matter.

If you have machines and maintenance logs and want to know whether a model would help, our approach explains how we scope it, and you can book a call.

Let’s build

the one view your business runs on.

Book a 30-min call
(Reykjavík --:--:-- GMT)
Predictive maintenance with machine learning, step by step