Home / Insights / AI and Machine Learning

AI and Machine Learning

Predictive Maintenance with Machine Learning: What Data You Need, Which Sensors to Fit and How to Run a First Pilot

Most predictive maintenance projects do not fail on the model. They fail because the data was never there, the sensors were fitted to the wrong machines, or nobody agreed what a successful pilot would look like. This guide covers those three questions in the order a manufacturer should answer them.

TopicsAI and Machine LearningBusiness Operations and Integration

Key takeaways

  • Predictive maintenance sits at the top of a ladder that starts with reliable work-order records and condition monitoring; skipping the lower rungs is why most pilots produce nothing usable.
  • A model that predicts failures needs examples of failures. With only a handful of events on record, start with anomaly detection on normal behaviour and treat failure prediction as a later phase.
  • Choose the pilot asset by failure cost and predictability, not by which machine is easiest to instrument. McKinsey’s analysis shows how false positives can erase the savings on low-consequence equipment.
  • Three to six months of consistent sensor data, time-aligned with maintenance and production records, is a realistic minimum before a model is worth training; collection should start before the data science does.
  • Judge the pilot on maintenance outcomes (avoided unplanned stops, false alarms per week, lead time before failure) and on operator trust, not on offline model accuracy alone.

Predictive maintenance is one of the few applications of machine learning in manufacturing with an obvious business case: catch a bearing, pump or spindle before it fails, and you avoid an unplanned stop, scrap and overtime. It is also one of the applications where the gap between the pitch and the plant floor is widest. The pattern I see most often is a project that bought sensors and a platform first and discovered a year later that the data could not support the model everyone had been promised.

This article is for CTOs, operations leads and plant managers at small and mid-sized manufacturers who are deciding whether to start a predictive maintenance pilot, and how. It covers what predictive maintenance means against its cheaper cousins, the data a model genuinely needs, the sensors worth fitting first, how to choose and structure a pilot, and the risks that decide whether it pays off. PoliteTech builds production tracking, maintenance management and machine-data tools for manufacturers, and the advice here reflects what we tell clients before they spend money on hardware.

What predictive maintenance is, and what it is not

The term gets used loosely, so separate the strategies before deciding which one you are buying; each needs different data and software.

StrategyTrigger for maintenanceData neededTypical software
ReactiveThe machine failsNone, beyond a work-order record after the eventCMMS or spreadsheet
Preventive (time- or usage-based)Calendar interval or running hoursRun hours, cycle counts, service historyCMMS with schedules
Condition-basedA measured indicator crosses a threshold set by an engineerLive sensor readings, agreed thresholdsMonitoring dashboard with rules and alerts
PredictiveA model estimates that failure is likely within a horizonMonths of sensor history, labelled failure events, maintenance and production contextData pipeline, ML models, alerting integrated with the CMMS

Two points follow. Predictive maintenance sits on top of condition monitoring; you cannot predict from data you are not collecting. And the step from condition-based to predictive is where cost and uncertainty jump, because a model has to learn from past failures, and most plants have far fewer recorded failures than they think.

The three tasks a model can perform

The research literature splits machine learning for maintenance into three tasks, and a widely cited survey of deep learning for predictive maintenance by Serradilla, Zugasti and Zurutuza (arXiv, 2020) organises architectures along exactly these lines:

  • Anomaly detection: learn what normal operation looks like and flag deviations. Needs normal data only; does not need failure examples. Tells you something is wrong, not what or when.
  • Diagnostics or root-cause classification: decide which fault is developing. Needs labelled examples of each fault type.
  • Remaining useful life (RUL) estimation: predict how long until failure. Needs run-to-failure histories, ideally many of them.

The honest starting point for most manufacturers is the first task, because it is the only one their data can support on day one. We covered the broader rules-versus-models question in Anomaly Detection: When Rules Are Enough and When Machine Learning Pays Off; the same logic applies to machines.

Action: before any vendor conversation, write down which strategy each critical asset is on today and which task (anomaly, diagnosis, RUL) you actually need. Most disappointing pilots were sold as RUL and could only ever have been anomaly detection.

The data a predictive model genuinely needs

Four kinds of data have to line up in time for a predictive maintenance model to learn anything. Missing any one of them changes what is achievable.

1. Sensor time series

Vibration, temperature, current, pressure, flow, acoustic emission or whatever physically changes as the component degrades. The sensor has to measure something that moves before the failure, at a sampling rate fast enough to capture it. A bearing defect shows up as high-frequency vibration content that a once-a-minute temperature reading will never see until the bearing is already hot.

2. Failure and maintenance history

This is the data most plants lack in usable form. For a supervised model you need to know when each failure occurred, on which asset, which component, and what the failure mode was. Work orders that say “fixed pump” with a date a week after the stop are not labels. Planned replacements are not failures either, but they reset the degradation clock and must be recorded. Check that CMMS asset IDs match the sensor tags; they rarely do without deliberate work.

3. Operating context

Load, speed, product recipe, shift, ambient temperature. A model that does not know a press was running a heavier gauge will flag the resulting vibration as a fault. This context lives in the PLC, SCADA or MES rather than the sensor system, so integration with production records is part of the data plan. Our earlier article on Manufacturing Execution Systems explains where this data normally sits and how to get it out.

4. Asset metadata

Make, model, installation date, rated duty, last overhaul. Static, but it lets you pool data across similar machines when each one has failed only once or twice.

How much history is enough?

There is no universal number; anyone who gives you one without seeing your data is guessing. Two reference points help. Public benchmark datasets used to develop prognostic algorithms, such as those in NASA’s Prognostics Center of Excellence repository, are mostly time series running “from a prior nominal state to a failed state”, often across many units; the well-known turbofan degradation sets contain many simulated run-to-failure trajectories, not one or two. That is what RUL models are developed on, and your plant will not have it. Second, commercial anomaly-detection services for industrial equipment are explicitly designed to learn “normal operating conditions” from historical sensor data, with failure labels treated as optional; AWS’s documentation for its equipment-monitoring service, for example, describes the labelled failure periods as something you add “if available” and recommends consulting a subject matter expert when choosing inputs (AWS documentation). The design choice tells you where the industry has landed: learn normal first, label failures as they come.

As an illustrative scoping rule, not a published statistic: a pilot asset should have three to six months of continuous sensor history covering the full range of normal operation before an anomaly model is trained, and several documented failure or degradation events before anyone attempts to predict failures. If you lack that history, the first phase of the pilot is simply to collect it.

Action: audit the candidate assets: which signals exist, at what rate, for how long, with how many documented failures, and whether asset IDs reconcile across systems. The result decides which task the pilot can honestly target.

Sensors and connectivity: what to fit first

Sensor choice should follow failure modes. For each critical asset, ask the maintenance team what actually fails and what a technician would notice first standing next to it; the sensor is a way of standing there continuously.

Failure modeEarly physical signalSensorSampling need
Rolling-element bearing wearHigh-frequency vibration, later temperature riseTri-axial accelerometer, then surface temperaturekHz-range waveform bursts; features computed at the edge
Motor winding or insulation degradationCurrent imbalance, harmonic contentCurrent transformers on each phaseHundreds of Hz to kHz for signature analysis
Pump cavitation or impeller wearPressure fluctuation, flow drop, vibrationPressure and flow transmitters plus accelerometer1 Hz to tens of Hz
Tool wear on CNC machinesSpindle load, acoustic emission, dimensional driftSpindle power from controller, acoustic sensor, in-process gaugingPer part or per pass

Use the data you already have before buying sensors

Modern PLCs, drives and CNC controllers already expose motor current, spindle load, cycle times, alarms and temperatures. Getting that data out through OPC UA, the industrial interoperability standard maintained by the OPC Foundation, is often cheaper and more informative than bolting on new sensors, and it carries operating context for free. Retrofit sensors with an edge gateway are the fallback for older or closed controllers.

Transport and storage

From the gateway, data typically moves over MQTT, the OASIS publish/subscribe protocol designed, in the specification’s words, to be “light weight, open, simple” for constrained machine-to-machine and IoT environments (MQTT 5.0, OASIS Standard, March 2019). The specification’s three quality-of-service levels matter in practice: “at most once” is fine for a temperature reading every second; “at least once” is what you want for alarm events and computed features you cannot afford to lose. On the server side, a time-series database keyed by asset and tag, with the maintenance and production records joined on a common asset ID and a common clock, is the foundation everything else stands on.

Raw vibration waveforms at several kilohertz are expensive to ship and store, so compute features (RMS, peak, kurtosis, band energies) at the edge and send those, keeping raw bursts only on anomaly; the trade-offs mirror those for cloud, edge and on-device computer vision.

Action: for each pilot asset, list failure modes, the earliest signal of each, the sensor or controller tag that captures it, and the sampling rate. Price the gateway and connectivity before the sensors; that is where the surprises are.

Choosing the pilot asset: cost of failure versus predictability

The pilot asset is the most consequential decision in the programme, and it is often made for the wrong reason: the friendliest controller, or a vendor’s reference case. The right test is economic.

McKinsey’s 2021 analysis of analytics-based maintenance strategies makes the case bluntly: predictive maintenance pays off where breakdowns carry very high cost or safety risk and where failures are “highly predictable and well understood”, and it is “often the false positives that make predictive maintenance less viable” elsewhere (McKinsey, 2021). Their worked example describes a model that caught roughly a quarter of breakdowns with 85 percent accuracy, yet a false-positive rate of around 10 percent generated so many unnecessary interventions that it wiped out the savings. The lesson is not that the model was bad; it is that the asset was not worth predicting.

A simple scoring matrix

CriterionQuestion to askGood pilot candidate
Cost of unplanned failureLost production, scrap, overtime, safety exposure per eventHigh; a stop idles a line or risks people
Failure frequencyHow often does this asset class fail across the plant?Often enough to have history, not so often that preventive replacement is obviously cheaper
Physical predictabilityIs there a known degradation path that a sensor can see?Yes; bearings, pumps, compressors, motors
Cost of a false alarmWhat does an unnecessary inspection cost?Low; inspection does not require a line stop
Fleet sizeHow many near-identical units exist?Several; pooled data compensates for rare failures

Score each candidate and pick one asset class with several identical units rather than one machine; pooling is the only way a small plant accumulates enough degradation examples.

When the right answer is not predictive at all

If the scoring shows high failure cost but low predictability, condition-based monitoring with engineer-set thresholds delivers most of the value at a fraction of the cost. If it shows low failure cost, stay on preventive maintenance. A good software partner will tell you this; a sensor vendor may not.

Action: score your top ten assets with the matrix in a one-hour session with maintenance, production and finance, and record why the others were rejected so the decision survives staff changes.

Structuring the pilot: a phased plan with exit criteria

Structure the pilot so each phase can end the programme without embarrassment.

  1. Phase 0, two to four weeks: data audit and success definition. Confirm which signals exist, reconcile asset IDs, agree the metrics (below) and the decision rule. Output: a one-page pilot charter.
  2. Phase 1, four to eight weeks: instrument and connect. Fit sensors or configure controller tags, stand up the gateway, broker and time-series store, and start recording maintenance events against the same asset IDs.
  3. Phase 2, three to six months: collect and monitor with rules. While history accumulates, run engineer-set thresholds and simple statistical baselines. Maintenance logs every inspection and failure in structured form; this is the labelling exercise in disguise.
  4. Phase 3, six to ten weeks: model and shadow-run. Train an anomaly model on normal data, validate on known events using time-ordered splits (random splits leak future information), then run it in shadow mode alongside the rules.
  5. Phase 4, decision. Continue to a second asset class, stay on condition-based rules, or stop; all three are legitimate if the charter was clear.

Metrics that reflect maintenance reality

  • Lead time: how far before each confirmed event did the first alert fire? Hours of warning is useless if parts take a week to arrive.
  • False alarms per asset per week: the number the maintenance planner will actually judge you on. Agree a ceiling in the charter.
  • Missed events: failures with no prior alert.
  • Actioned alerts: the share of alerts that led to an inspection and a finding. This measures trust as much as accuracy.
  • Avoided unplanned downtime: estimated from events caught and the plant’s cost of a stop.

Who needs to be involved

A pilot needs a maintenance lead who owns labelling, a controls engineer who can get data out of the PLCs safely, a software team for pipeline, models and integration, and a sponsor who has agreed the exit criteria. NIST’s prognostics and health management work for smart manufacturing identifies “a lack of rigorous measurement methods to enable efficient and effective data collection” and inconsistent standards as core barriers to applying PHM broadly (NIST PHM4SM project); in a small plant, the controls engineer and the maintenance lead are the people who close that gap, and the pilot fails without them.

For example, a 150-person plastics moulding plant might pilot on six identical hydraulic injection moulding machines, pulling pump pressure, oil temperature and cycle time from the controllers over OPC UA and adding one accelerometer per hydraulic pump. Phase 2 alone might reveal that two machines run hotter after a particular mould change: a process finding rather than a prediction, and still worth the pilot.

Action: write the pilot charter before buying anything: asset class, signals, metrics, ceiling on false alarms, duration of each phase and the three possible decisions at the end.

Risks, costs and the mistakes that sink pilots

Most of the cost in a first pilot is not the machine learning. Expect it to spread across sensors and gateways, controls and network work to extract data safely, the pipeline and storage, modelling, and CMMS integration; your controls landscape decides the split.

Risks to plan for

  • Operational technology security. Connecting PLCs to a gateway that talks to the internet widens the attack surface. Use read-only controller access, segment the network, send data outbound only, and review security in Phase 1, not after an incident.
  • Concept drift. A model of “normal” trained on winter data, one product mix or pre-overhaul behaviour will alert constantly when conditions change. Retraining and monitoring the model itself is ongoing work; our guide to MLOps for small teams covers how to do this without a platform team.
  • Label quality decay. If structured logging lapses once the pilot’s novelty fades, the next model cannot be trained. Build it into the CMMS workflow, not a spreadsheet.
  • Alert fatigue. One false alarm a day per machine and the planner stops reading. Prefer fewer, confident alerts with context over sensitivity.
  • Vendor lock-in on data. Make sure raw and feature data land in storage you control, in an open format, whatever platform does the modelling. Your data history is the asset that outlives any platform.

The mistakes I see most often are buying a platform before the data audit, promising remaining-useful-life predictions when the data only supports anomaly detection, and stopping data collection when the pilot ends, which throws away the one thing the pilot definitely produced.

Action: add an operational technology security review, a model-monitoring plan and a data-ownership clause to the pilot charter, and make structured failure logging a permanent CMMS requirement regardless of the pilot outcome.

Readiness checklist before you start

If more than two items are unchecked, spend the first phase fixing them rather than modelling.

  • Critical assets are ranked by cost of unplanned failure, agreed by maintenance, production and finance.
  • The pilot asset class’s main failure modes and earliest physical signals are documented.
  • Existing controller data has been inventoried and a read-only extraction route agreed with the controls engineer.
  • Asset identifiers reconcile across sensors, CMMS and production systems, or there is a mapping table.
  • Maintenance events are logged with asset, component, failure mode, start and end time, and a distinction between failure and planned replacement.
  • A time-series store you control is in place, with the retention policy agreed.
  • The pilot charter states the task (anomaly detection, diagnosis or RUL), the metrics, the false-alarm ceiling, phase durations and the three possible end decisions.
  • A maintenance planner has agreed how alerts reach them (ideally as CMMS work orders) and how they feed back on usefulness.
  • A model-monitoring owner is named for after the pilot, and an OT security review is scheduled for the connectivity phase.

Predictive maintenance is worth doing on the right assets with the right data, and a disappointment everywhere else. The plants that get value from it built reliable data collection first, picked the pilot on economics, and accepted condition-based monitoring as a good answer when the data said so.

Frequently asked questions

How much historical data do we need before training a predictive maintenance model?

It depends on the task. An anomaly-detection model needs enough normal-operation history to cover the full range of products, loads and ambient conditions; as an illustrative scoping rule we look for three to six months of consistent data. Predicting failures or remaining useful life also needs several documented failure events on the same asset class, which most plants only accumulate by pooling identical machines over time.

Can we do predictive maintenance without fitting new sensors?

Often, yes, at least for a first phase. Modern PLCs, drives and CNC controllers already expose motor current, spindle load, temperatures, cycle times and alarms, usually over OPC UA. Extracting it is often cheaper and more informative than new sensors. Retrofit vibration or current sensors are added where a failure mode needs a signal the controller lacks.

Which machines make the best first pilot?

Assets where an unplanned failure is expensive or unsafe, the failure mode has a known physical signature (bearings, pumps, compressors, motors), an unnecessary inspection is cheap, and several near-identical units exist so data can be pooled. Avoid choosing by which machine is easiest to connect.

Should we use a cloud predictive maintenance service or build our own models?

For a first pilot, a managed anomaly-detection service or a well-understood open-source approach can both work; the deciding factors are where your data can legally and practically live, how much operating context you need the model to use, and whether you keep ownership of raw and feature data in an open format. Either way, the pipeline, labelling discipline and CMMS integration are yours to build and take most of the effort.

How do we know if the pilot has worked?

Agree the metrics up front: lead time before confirmed events, false alarms per asset per week against an agreed ceiling, missed events, the share of alerts that maintenance actioned and found something, and an estimate of avoided downtime. Judge the model in shadow mode against the engineer-set rules it is meant to improve on, not on offline accuracy from random data splits.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. McKinsey & Company: Establishing the right analytics-based maintenance strategy (July 2021) — accessed 10 November 2026. When predictive maintenance pays off versus condition-based maintenance, and the worked example of false positives wiping out savings.
  2. Serradilla, Zugasti, Zurutuza: Deep learning models for predictive maintenance: a survey, comparison, challenges and prospect (arXiv, October 2020) — accessed 10 November 2026. The split of predictive maintenance into anomaly detection, root-cause analysis and remaining useful life estimation.
  3. NASA Ames Prognostics Center of Excellence: Data Set Repository — accessed 10 November 2026. What run-to-failure benchmark data looks like (many trajectories from nominal to failed state) and why plant data rarely resembles it.
  4. AWS Documentation: What is Amazon Lookout for Equipment? — accessed 10 November 2026. Industry practice of learning normal operating conditions from historical sensor data, with failure labels optional, and the recommendation to involve subject matter experts.
  5. OASIS: MQTT Version 5.0, OASIS Standard (March 2019) — accessed 10 November 2026. MQTT’s design goals for constrained machine-to-machine environments and its three quality-of-service levels.
  6. NIST: Prognostics and Health Management for Reliable Operations in Smart Manufacturing (PHM4SM) project — accessed 10 November 2026. Measurement, modelling and standards gaps that make PHM hard to apply in manufacturing.

Not sure whether your machine data can support a predictive maintenance pilot?

We start with a data audit of your controllers, sensors and maintenance records, and tell you honestly whether anomaly detection, condition-based rules or failure prediction is the right first step.