The Challenges of Predictive Maintenance – Data & Modelling Constraints
In the previous post, we unveiled the exciting world of Predictive Maintenance, exploring its potential and practical applications. In this follow up, we will dive deeper into the data itself, uncovering some of the intricacies involved, the challenges it presents, and the crucial steps needed to be begin building predictive models effectively.
The Collected Data
Once data has been gathered, the processing begins. Beyond the essential pre-processing and data cleaning, data aggregation plays a key role. Often, we need to reduce the data volume whilst preserving the quality and features. Aggregating the data improves the signal to noise ratio, providing a clearer view of any meaningful patterns and more useful and distinguishable data from the irrelevant and noisy data, and reduces the computational complexity through reducing the overall data volume.
For example, if we consider the telemetry traces of two assets, one with no failures and another with a failure event as shown below. By aggregating over the different time periods, we can see how aggregation:
- Reduces noise
- Retains critical signals
- Lowers the compute required
Figure 1: Visualisation of data aggregation for two assets – one with no failures (left), one with a failure (right).
The challenge then lies in determining the optimal aggregation level. There needs to be a balance that ensures that aggregation doesn’t delay the detection of potential failures, therefore allowing repairs to occur in time. Often this can be determined through domain knowledge of the specific use case.
Class Imbalance and Overlap
When we collect telemetry, we often take for granted that most of the data is normal and not associated with a failure mode for the asset.
This leaves us with a bit of a tricky problem in that we end up with what is called a class imbalance. This means that we have far more normal telemetry than we do for when the asset is in a failure mode, and that is because telemetry for failure events is rare, and in reality, failure data accounts for less than 1% of the data we collect.
This makes it challenging for Artificial Intelligence models to predict when the telemetry is indicating that an asset is close to failure as the models will tend to favour the majority class, i.e. normal data, and generalise to only predicting this as an outcome if we don’t account for this correctly.
Adding to the complexity, we can also find that when we do have failure mode telemetry, this data overlaps and is not too dissimilar to normal mode telemetry, making it difficult for the models to separate out the classes.
The good news is that there are several methods available to try and alleviate these issues which are listed and shown below.
Random Undersampling: Removes data from the majority class, reducing volume and training time but risking loss of critical information.
Random Oversampling: Duplicates minority class data, retaining all information but may cause overfitting, leading to poor generalisation on unseen data.
Synthetic Minority Oversampling Technique (SMOTE): Generates synthetic data for the minority class, balancing the dataset without duplication but increasing class overlap risks.
Tomek Links Undersampling: A Tomek link is defined as two observations that are nearest neighbours of opposing classes. This method aims to remove observations from the majority class that form Tomek links until all nearest neighbour pairs of observations are of the same class to create a separable boundary.
Even though a separable boundary can be defined, the method may struggle to build models suited to unseen real-world data where there will still be a class overlap encountered.
Figure 2: Visualisation of Random Undersampling (Top Left), Random Oversampling (Top Right), SMOTE (Bottom Left) and Tomek Links (Bottom Right)
These methods aim to address class imbalance and overlap issues, but finding the best fit often requires building models that combine them. This increases complexity, time, and computational demands.
Classification vs Regression – Which Approach to Take?
Predictive Maintenance can be modelled two different ways: A classification approach or a regression approach.
Classification:
The classification approach takes the view that this is a binary problem, i.e. either a failure occurs, or it does not within a specified time window.
We aim to answer the question, can a failure be predicted within the next X units of time.
Regression:
The regression approach aims to put a timescale on when failure will occur and is often known as survival analysis. With this approach, we aim to discover an underlying probability distribution that fits the time to failure data, with the understanding that the probability of failure changes with time and that certain scenarios can accelerate or decelerate this.
In this setup, we aim to answer the question, what is the time to failure for the assetBoth approaches have their merits, but its often after understanding your data, that the approach to take will become clear. What we tend to find is that where you can see trends towards failure, the regression approach is more suitable, and when the failures seem random, the classification approach is better off being used.
Summary
Building effective Predictive Maintenance models requires understanding and navigating data challenges which include:
- Aggregating data to balance the clarity and efficiency.
- Addressing class imbalances and overlap to ensure model reliability.
- Deciding between classification and regression approaches based on the data behaviour.
Solving these is essential to be able to deploy robust models. In the next and final instalment of this miniseries on the challenges of Predictive Maintenance, we will look at how to evaluate these models, measure their real world impact, and gaining stakeholder engagement to ensure the successful implementation.