Key takeaway
- Predictive maintenance uses sensor data and machine learning to schedule repairs by condition. See the pipeline, analytics levels and what has changed.
Predictive maintenance is a maintenance strategy that uses sensor data and analytics to estimate the condition of equipment and the remaining useful life of its parts, so that work is scheduled when it is needed instead of on a fixed calendar or after a breakdown. It combines industrial IoT data, a streaming data pipeline and machine learning models.
This guide is for reliability engineers, operations leaders and data teams planning a predictive maintenance programme. It covers how the approach differs from older strategies, the analytics and pipeline behind it, how the technology stack has changed, and how AI agents act on predictions.
How does predictive maintenance differ from reactive and preventive maintenance?
A US Federal Energy Management Program guide, as quoted by Fluke, defines the three strategies in terms of what triggers the work.
| Strategy | Trigger for maintenance | Weakness |
|---|---|---|
| Reactive | Equipment is allowed to run to failure | Failures are unplanned |
| Preventive | Time based or run time schedules | Work may be done when it is not needed, and failures between visits are missed |
| Predictive | The actual condition or health of the machine | Needs sensors, data pipelines and models to be maintained |
The same page lists vibration analysis, infrared thermography and performance trending as common predictive data sources. Predictive maintenance also helps plan spare parts and crews, because likely failures are known ahead of time. It is the practical base for the explainable approach to predictive maintenance that manufacturers increasingly want.
What kinds of analytics does predictive maintenance use?
Three levels of analytics are usually combined.
| Level | Question answered | Examples |
|---|---|---|
| Descriptive | What has the equipment been doing? | Detecting performance degradation early, and comparing performance before and after a maintenance action |
| Predictive | What is likely to fail, and when? | Event based, sensor based and model based failure prediction; remaining useful life estimates |
| Prescriptive | What should we do about it? | A maintenance plan that weighs predicted failures against cost and operating constraints |
For predictive models there are two common formulations. A classification approach predicts whether a failure is likely within a set number of steps. A regression approach estimates remaining useful life, which is the time before the next failure. Anomaly detection is a third option when failures are rare: the model learns normal behaviour from history and scores how far new measurements deviate. A hybrid approach adds physical models that simulate normal and faulty behaviour to the statistical model. Model families used for sensor time series include autoencoders, recurrent networks such as LSTM, and convolutional networks.
What does a predictive maintenance data pipeline look like?
Sensors on assets measure parameters such as temperature, voltage and vibration. The data then flows through five stages.
| Stage | Purpose | Technology examples |
|---|---|---|
| Collect | Gather data from remote assets and many formats | Sensors, meters, supervisory control, Apache NiFi for moving data |
| Stream | Carry events in real time | Event streaming with Apache Kafka |
| Process | Detect critical events as they happen and filter noise | Stream processing such as Spark Structured Streaming |
| Store and learn | Keep history for training and remaining useful life models | Data warehouse or lake, machine learning pipeline |
| Act | Show risk and trigger alerts and work orders | Dashboards, alerting, maintenance systems |
Apache NiFi describes itself as an easy to use, powerful and reliable system to process and distribute data, and Kafka as a distributed event streaming platform. Start with one asset and the data sources that relate to it, not every available signal. Rules from condition monitoring, built from what normal operation looks like, can run on live streams first, and historical and third party data such as reliability logs can then refine them. Replaced parts give wear data that improves the models. For broader analytics context see Cognitive Analytics Tools And Its Applications.
What has changed since older predictive maintenance stacks?
Earlier designs for this workload used Spark Streaming. The Spark documentation now says Spark Streaming is the previous generation of the engine, that it no longer receives updates and is a legacy project, and that Structured Streaming should be used for new streaming applications and pipelines. The Structured Streaming guide describes it as a scalable and fault-tolerant stream processing engine built on the Spark SQL engine.
Standards have also moved. ISO 13381-1:2015, which gave general guidelines on prognostics for condition monitoring, is shown on the ISO website as withdrawn in December 2021. If your programme cites a standard, check its current status on the issuer's page before relying on it.
What are the main challenges?
- Collecting large volumes of real-time data from assets at different locations and in different formats.
- Storing it in a structured way that machine learning can use.
- Selecting and training suitable models for different assets and data sources.
- Building a data pipeline that scales and keeps data quality visible.
- Deciding which assets, failure modes and downtime costs justify the effort first.
How do AI agents change predictive maintenance?
A prediction only creates value when someone acts on it. An AI agent can read a model alert, check the maintenance history and spare parts, draft a work order and schedule a window with production, while a planner approves the step that affects operations. This turns the final stage of the pipeline from a dashboard into a workflow. It also raises requirements: each agent action should carry the evidence behind it and be easy to review.
For sensor, edge and inference workloads, XenonStack offers NexaStack as inference infrastructure. For help with the data science side see our Data Science Services, Data Visualization and Artificial Intelligence Services and Hybrid Cloud Solutions, and for supply chain use cases Generative AI Solutions For Retail And Supply Chain Industry.
What should you do first?
- Choose one critical asset type and estimate what an hour of its downtime costs.
- List the failure modes that matter and the signals that could reveal them.
- Collect data from that asset only, and set a baseline of normal operation.
- Run rule based alerts on a stream, then add a model once you have enough failure history.
- Review each alert with maintenance staff, and feed repair findings back into the model.
A short video overview follows.
To map one maintenance decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
What is predictive maintenance?
It is a maintenance strategy that uses sensor data and analytics to estimate equipment condition and remaining useful life, so work is scheduled when it is needed.
How is predictive maintenance different from preventive maintenance?
Preventive maintenance follows time based or run time schedules, while predictive maintenance bases the need for work on the actual condition or health of the equipment.
What data does predictive maintenance use?
Common sources include vibration analysis, infrared thermography and performance trending, together with sensor readings such as temperature and voltage.
Should new pipelines use Spark Streaming?
The Spark documentation calls Spark Streaming a legacy project with no further updates and recommends Structured Streaming for new streaming applications.
How do AI agents help predictive maintenance?
They can turn a model alert into action by checking history and parts, drafting a work order and scheduling a window, with a person approving steps that affect operations.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE