decision models for fault detection and diagnosis
condition monitoring includes discriminating between faulty and healthy states (fault detection) or, when a fault state is present, determining the source of the fault (fault diagnosis). to design an algorithm for condition monitoring, you use condition indicators extracted from system data to train a decision model that can analyze indicators extracted from test data to determine the current system state. thus, this step in the algorithm-design process is the next step after identifying condition indicators.
(for information about using condition indicators for fault prediction, see .)
some examples of decision models for condition monitoring include:
a threshold value or set of bounds on a condition-indicator value that indicates a fault when the indicator exceeds it
a probability distribution that describes the likelihood that any particular value of the condition indicator is indicative of any particular type of fault
a classifier that compares the current value of the condition indicator to values associated with fault states, and returns the likelihood that one or another fault state is present
in general, when you are testing different models for fault detection or diagnosis, you construct a table of values of one or more condition indicators. the condition indicators are features that you extract from data in an ensemble representing different healthy and faulty operating conditions. (see .) it is useful to partition your data into a subset that you use for training the decision model (the training data) and a disjoint subset that you use for validation (the validation data). compared to training and validation with overlapping data sets, using completely separate training and validation data generally gives you a better sense of how the decision model will perform with new data.
when designing your algorithm, you might test different fault detection and diagnosis models using different condition indicators. thus, this step in the design process is likely iterative with the step of extracting condition indicators, as you try different indicators, different combinations of indicators, and different decision models.
statistics and machine learning toolbox™ and other toolboxes include functionality that you can use to train decision models such as classifiers and regression models. some common approaches are summarized here.
feature selection
feature selection techniques help you reduce large data sets by eliminating features that are irrelevant to the analysis you are trying to perform. in the context of condition monitoring, irrelevant features are those that do not separate healthy from faulty operation or help distinguish between different fault states. in other words, feature selection means identifying those features that are suitable to serve as condition indicators because they change in a detectable, reliable way as system performance degrades. some functions for feature selection include:
— perform principal component analysis, which finds the linear combination of independent data variables that account for the greatest variation in observed values. for instance, suppose that you have ten independent sensor signals for each member of your ensemble from which you extract many features. in that case, principal component analysis can help you determine which features or combination of features are most effective for separating the different healthy and faulty conditions represented in your ensemble. the example wind turbine high-speed bearing prognosis uses this approach to feature selection.
— for a set of candidate features, identify the features that best distinguish between healthy and faulty conditions, by sequentially selecting features until there is no improvement in discrimination.
— perform feature selection for classification using neighborhood component analysis. the example using simulink to generate fault data uses this function to weight a list of extracted condition indicators according to their importance in distinguishing among fault conditions.
for more functions relating to feature selection, see dimensionality reduction and feature extraction.
statistical distribution fitting
when you have a table of condition indicator values and corresponding fault states, you can fit the values to a statistical distribution. comparing validation or test data to the resulting distribution yields the likelihood that the validation or test data corresponds to one or the other fault states. some functions you can use for such fitting include:
— estimate a probability density for sample data.
— generate a histogram from data, and fit it to a normal distribution. the example uses this approach.
— test likelihood that data comes from a normal distribution with specified mean and standard deviation.
for more information about statistical distributions, see probability distributions.
machine learning
there are several ways to apply machine-learning techniques to the problem of fault detection and diagnosis. classification is a type of supervised machine learning in which an algorithm “learns” to classify new observations from examples of labeled data. in the context of fault detection and diagnosis, you can pass condition indicators derived from an ensemble and their corresponding fault labels to an algorithm-fitting function that trains the classifier.
for instance, suppose that you compute a table of condition-indicator values for each member in an ensemble of data that spans different healthy and faulty conditions. you can pass this data to a function that fits a classifier model. this training data trains the classifier model to take a set of condition-indicator values extracted from a new data set, and guess which healthy or faulty condition applies to the data. in practice, you use a portion of your ensemble for training, and reserve a disjoint portion of the ensemble for validating the trained classifier.
statistics and machine learning toolbox includes many functions that you can use to train classifiers. these functions include:
fitcsvm
— train a binary classification model to distinguish between two states, such as the presence or absence of a fault condition. the examples using simulink to generate fault data use this function to train a classifier with a table of feature-based condition indicators. the example also uses this function, with model-based condition indicators computed from statistical properties of the parameters obtained by fitting data to a static model.fitcecoc
— train a classifier to distinguish among multiple states. this function reduces a multiclass classification problem to a set of binary classifiers. the example uses this function.fitctree
— train a multiclass classification model by reducing the problem to a set of binary decision trees.fitclinear
— train a classifier using high-dimensional training data. this function can be useful when you have a large number of condition indicators that you are not able to reduce using functions such as .
other machine-learning techniques include k-means clustering
(kmeans
), which partitions data into mutually exclusive clusters. in this
technique, a new measurement is assigned to a cluster by minimizing the distance from the
data point to the mean location of its assigned cluster. tree bagging is another technique
that aggregates an ensemble of decision trees for classification. the example
uses a treebagger
classifier.
for more general information about machine-learning techniques for classification, see classification.
regression with dynamic models
another approach to fault detection and diagnosis is to use model identification. in this approach, you estimate dynamic models of system operation in healthy and faulty states. then, you analyze which model is more likely to explain the live measurements from the system. this approach is useful when you have some information about your system that can help you select a model type for identification. to use this approach, you:
collect or simulate data from the system operating in a healthy condition and in known faulty, degraded, or end-of-life conditions.
identify a dynamic model representing the behavior in each healthy and fault condition.
use clustering techniques to draw a clear distinction between the conditions.
collect new data from a machine in operation and identify a model of its behavior. you can then determine which of the other models, healthy or faulty, is most likely to explain the observed behavior.
the example uses this approach. functions you can use for identifying dynamic models include:
, ,
you can use functions like to predict the future behavior of the identified model.
control charts
statistical process control (spc) methods are techniques for monitoring and assessing the quality of manufactured goods. spc is used in programs that define, measure, analyze, improve, and control development and production processes. in the context of predictive maintenance, control charts and control rules can help you determine when a condition-indicator value indicates a fault. for instance, suppose you have a condition indicator that indicates a fault if it exceeds a threshold, but also exhibits some normal variation that makes it difficult to identify when the threshold is crossed. you can use control rules to define the threshold condition as occurring when a specified number of sequential measurements exceeds the threshold, rather than just one.
— visualize a control chart.
— define control rules and determine whether they are violated.
— detect small changes in the mean value of data.
for more information about statistical process control, see .
changepoint detection
another way to detect fault conditions is to track the value of a condition indicator over time and detect abrupt changes in the trend behavior. such abrupt changes can be indicative of a fault. some functions you can use for such changepoint detection include:
— find abrupt changes in a signal.
— find peaks in a signal.
, , — find the distance between measurements or sets of measurements, according to different definitions of distance.
— segment data and estimate ar, arx, arma, or armax models for each segment. the example uses this approach.