Main Content

Detect and Diagnose Faults

Train classifiers or regression models for condition monitoring

To design an algorithm for detecting and diagnosing faults, you use condition indicators extracted from system data to train a decision model that can analyze test data to determine the current system state.

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.

For an overview of the types of models you can use, see Decision Models for Fault Detection and Diagnosis


expand all

pcaPrincipal component analysis of raw data
pcaresResiduals from principal component analysis
sequentialfsSequential feature selection using custom criterion
fscncaFeature selection using neighborhood component analysis for classification
tsnet-Distributed Stochastic Neighbor Embedding
ksdensityKernel smoothing function estimate for univariate and bivariate data
histfitHistogram with a distribution fit
coxphfitCox proportional hazards regression
fitcsvmTrain support vector machine (SVM) classifier for one-class and binary classification
fitcecocFit multiclass models for support vector machines or other classifiers
fitcknnFit k-nearest neighbor classifier
fitclinearFit binary linear classifier to high-dimensional data
fitcnbTrain multiclass naive Bayes model
fitctreeFit binary decision tree for multiclass classification
fitckernelFit binary Gaussian kernel classifier using random feature expansion
kmeansk-means clustering
mleMaximum likelihood estimates
TreeBaggerEnsemble of bagged decision trees
nlarxEstimate parameters of nonlinear ARX model
ssestEstimate state-space model using time-domain or frequency-domain data
arxEstimate parameters of ARX, ARIX, AR, or ARI model
armaxEstimate parameters of ARMAX, ARIMAX, ARMA, or ARIMA model using time-domain data
arEstimate parameters when identifying AR model or ARI model for scalar time series
forecastForecast identified model output
translatecovTranslate parameter covariance across model transformation operations
controlchartShewhart control charts
controlrulesWestern Electric and Nelson control rules
cusumDetect small changes in mean using cumulative sum
findchangeptsFind abrupt changes in signal
findpeaksFind local maxima
pdistPairwise distance between pairs of observations
pdist2Pairwise distance between two sets of observations
mahalMahalanobis distance to reference samples
segmentSegment data and estimate models for each segment
meanDifferenceModelIdentify most degraded cell in serially connected lithium-ion battery pack


Decision Models

Fault Diagnosis Using Model-Based Approach

Fault Detection Using System Identification

Multiclass Fault Detection

Fault Detection and Diagnosis Using Artificial Intelligence