Dynamic Threshold for Anomaly Detection
Dynamic Threshold for Anomaly Detection
A R T I C L E I N F O A B S T R A C T
Keywords: This study proposes an ensemble denoising auto-encoder-based dynamic threshold (EDAE-DT) to overcome the
Anomaly detection false alarm issue in anomaly detection. The proposed ensemble denoising auto-encoder can model the normal
Deep learning condition well through a denoising task and an ensemble technique. The dynamic threshold sets a time-varying
Ensemble denoising auto-encoder
threshold that considers the variation of normal data. Performance metrics for anomaly detection are newly
Dynamic threshold
Steam turbine
proposed to quantitatively verify the performance. A new sensitivity is defined from the dynamic threshold to
identify which signal is related to the change that arises due to an anomaly. The diagnostic performance of the
proposed approach is compared using metrics for classification and a confusion matrix. Validation results, which
examined thermal power plant datasets, show that the proposed modeling method outperforms both the auto-
encoder and denoising auto-encoder approaches. Additionally, the proposed method can significantly reduce
the false alarm rate, as compared to conventional methods, while detecting anomalies faster than experts. The
anomaly-related signals are identified successfully through the newly defined sensitivity. Finally, the diagnositc
results demonstrate that the proposed approach is more accurate than conventional methods.
* Corresponding author at: Department of Mechanical and Aerospace Engineering, Seoul National University, Seoul 08826, Republic of Korea.
E-mail address: bdyoun@[Link] (B.D. Youn).
[Link]
Received 14 June 2021; Received in revised form 6 September 2021; Accepted 13 October 2021
Available online 22 October 2021
0957-4174/© 2021 Elsevier Ltd. All rights reserved.
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
was applied to generate domain-invariant features in the fault classifier. threshold is determined inaccurately. If the threshold is determined too
Lv. et al (Lv, Chen, Pan, & Zhou, 2020) proposed a conditional adver sensitively, false alarms can occur frequently; if it is set too conserva
sarial denoising auto-encoder (CADAE), which employed a semantic tively, few alarms might be generated, even when an anomaly occurs. A
attribute and a non-semantic attribute together; those attributes were few prior studies have concentrated on developing an accurate threshold
obtained by prior knowledge and by a convolutional neural network, in the field of deep-learning-based anomaly detection. In early work, an
respectively. An auto-encoder with a residual connection and wide- intuitive threshold, called the N-sigma rule, was defined by using the
kernel at the first convolutional layer was developed by Yang et al. mean and standard deviation of a health index (Nelson, 1984; Shewhart,
(Yang, Karimi, & Sun, 2021). The residual connection relieved the 1931). When the health index was assumed to follow a Gaussian dis
overfitting issue when a model became deeper and a wide-kernel at the tribution, it was considered to be normal when an index existed within 3
first layer reduced the effect of high frequency noise (Zhang, Peng, Li, times the standard deviation from the mean. Chen et al. (2020) proposed
Chen, & Zhang, 2017). Then, the proposed auto-encoder generated a stacked denoising auto-encoder to detect anomalies in a wind turbine.
important features from raw vibration signals. In addition, some studies A health indicator was defined as a Mahalanobis-distance (MD) of the
have examined failure prognosis in an engineered system. Kordestani, residual and the threshold was determined as the point where the upper
Samadi, and Saif (2020) proposed a recursive Bayesian algorithm to tail of the indicator’s cumulative distribution function became the
estimate the RUL of multifunctional spoiler (MFS) systems in an aircraft. confidence level. Zeng, Yang, and Bo (2020) proposed a new method
Three parallel networks were trained to learn the failure parameters; the that combined a sparse Bayesian learning and hypothesis testing. Hy
recursive algorithm was able to model the RUL, considering uncertainty. pothesis testing was done to determine whether or not a sample falls into
An ensemble-based fault detection approach for a gas turbine was a confidence interval.
studied by Mousavi, Moradi, Chaibakhsh, Kordestani, and Saif (2020). When detecting anomalies using a deep learning method, it is crucial
Four Wiener models were used to output a residual and a threshold, to reduce false alarms to prevent a tremendous waste of human and
respectively. Then, several classifiers were combined to identify the material resources (Fujiyama, et al., 2004). Although steam turbines are
condition of the MFS system. Due to the effect of ensemble, the prog mainly operated at a constant speed, local fluctuations can occur even
nostic performance was improved. Although these FDP-related studies when a turbine is working normally. These fluctuations occur for several
showed high performance, label information or signals of high sampling reasons, such as the control of the turbine to meet the electrical power
frequency over 5000 [Hz] were needed to apply the developed needs (López, Flores, & Garcı́a, 2003). Accurately detecting abnormal
algorithms. ities can become challenging, since the change due to an anomaly and
As an alternative, unsupervised learning algorithms can be used if the change caused by local fluctuations in the normal signals can be
labeled fault samples are scarce. Anomaly detection based on unsuper confused. As a result, to avoid false alarms, it is critical to consider
vised learning consists of two major steps: 1) modeling of normal data variations in the normal condition when determining a proper
and 2) setting a threshold that becomes a criterion to judge whether or threshold. However, previous studies have a false alarm issue because
not the target system is operating normally (Chen, Li, Chen, Wang, & they have paid little attention to the consideration of local variations in
Jiang, 2020). The first step is to learn the characteristics of the normal the normal signals. These prior approaches usually set a constant
data using an unsupervised algorithm, like an auto-encoder. By training threshold, rather than considering the local variations (Chen, et al.,
an auto-encoder with a bottleneck layer to reconstruct the input, the 2020; Nelson, 1984; Shewhart, 1931). Though this kind of constant
auto-encoder can learn the essential information of the input signals threshold is simple and intuitive, false alarms can be triggered repeat
(Arranz, et al., 2008; Chen, et al., 2020). If a model is well-trained with edly if this approach is used. Therefore, false alarms should be mini
normal data, the output has little error with normal input data; however, mized adequately to enable accurate anomaly detection.
there will be significant error in the output if the input is abnormal data. To overcome the false alarm issue, an ensemble denoising auto-
Some prior studies related to deep-learning-based anomaly detection for encoder-based dynamic threshold (EDAE-DT) is newly proposed in
turbines have focused on the modeling performance by developing a this work. An unsupervised learning approach is chosen because fault
deep learning model. Arranz et al. (2008) proposed a neural network of data is very hard to obtain from a steam turbine. Fault data is difficult to
a single-layer with a sigmoid function to characterize the normal data of obtain for two reasons; 1) the turbine is monitored closely during
a combined-cycle gas turbine plant. Several models have been trained to operation and 2) the turbine is stopped immediately if a problem occurs,
detect the condition. For example, Dhini, Kusumoputro, and Surjandari no matter how small the problem is. In this work, an ensemble denoising
(2017) developed a multilayer perceptron of a sigmoid function for auto-encoder (EDAE) is trained to model the normal condition of a
anomaly detection of a steam turbine. The objective function was mean steam turbine. A deep neural network is selected as the base model of the
squared error (MSE) and the weights were trained by a back- auto-encoder (AE) because it is most widely used in the field of anomaly
propagation method. Liu et al. (Liu, Lu, Ren, & Wu, 2020) developed detection of engineered systems (Arranz, et al., 2008; Dhini, et al., 2017;
a flowchart for wind turbine anomaly detection by using k-means Lu, et al., 2017; Zhao, et al., 2019). The denoising task can improve the
clustering (Likas, Vlassis, & Verbeek, 2003), t-distributed stochastic reconstruction performance of the AE by learning to remove noise in the
neighborhood estimation (t-SNE) (Van der Maaten & Hinton, 2008), and input (Goodfellow, Bengio, Courville, & Bengio, 2016). The ensemble
a deep neural network. Specifically, k-means clustering and t-SNE were technique can reduce the generalization error by averaging the output of
used to extract meaningful features from wind turbine data. Lu, Wang, several models (Nisbet, Elder, & Miner, 2009). After training the EDAE,
Qin, and Ma (2017) proposed a stacked denoising auto-encoder to the dynamic threshold (DT) calculates a variable threshold according to
consider the noise in the input signals. The auto-encoder was trained the output of the EDAE by computing the upper confidence limit from
with a greedy approach and sparsity was constrained to the hidden the joint distribution of the output and the residual. Given an output of
layers. In other work, a convolutional auto-encoder approach was the EDAE, a threshold value is determined dynamically with respect to
developed by Lee, Jung, Song, and Choo (2020) for anomaly detection of the output. Finally, to give more meaningful information to the opera
a gas turbine. When training the model, computational cost was tors after an anomaly is detected, condition parameters that are sensitive
decreased using the sparse connectivity in the convolutional layer and to the anomaly are identified through a newly defined sensitivity, which
through the reduction of a feature map through use of a max-pooling is calculated by using the maximum values of the residual and the
layer. threshold. Through this enhancement, the operators are able to inves
The second step is to set a threshold and raise alarms by checking tigate the specific parts related to the sensitive parameters, which can
whether or not the health index exceeds a threshold; a residual is usually reduce the maintenance cost. In this research, two datasets from a
used as the health index. Even when an algorithm learns normal data thermal power plant are used to validate the proposed EDAE-DT. Each
well, the performance of the anomaly detection can be poor if the dataset consists of several operating parameters and has a sampling
2
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
frequency of 1 [sample/min]. To confirm the effect of the ensemble and method detects anomalies with significantly fewer false alarms, as
denoising in the modeling process, the proposed EDAE approach is compared with conventional methods, while also detecting anomalies
compared with AE and DAE methods; AE is used in (Dhini, et al., 2017; faster than experts.
Lutz, et al., 2020) and DAE is used in (Chen, et al., 2020; Lu, et al., The rest of this paper is structured as follows. Section 2 presents the
2017). Since the performance of a deep learning algorithm varies ac methodology of deep-learning-based anomaly detection and the concept
cording to its architecture, the modeling performances of AE, DAE, and of an auto-encoder. Section 3 explains the proposed anomaly detection
EDAE are compared with various numbers of hidden layers. Then, the method and explores the concept of sensitivity and quantitative per
anomaly detection performance of EDAE-DT is compared with previous formance metrics. The validation of the proposed idea with power plant
anomaly detection methods; specifically, the N-sigma method (Nelson, datasets is illustrated in Section 4. Finally, Section 5 offers a summary of
1984; Shewhart, 1931) and the MD-based method (Chen et al., 2020). N- the conclusion of this paper.
sigma is chosen for comparison because it is simple and intuitive; MD is
selected since a threshold is determined statistically from a single health 2. Theoretical background
index extracted from multi-variate signals. For quantitative validation,
several metrics are newly defined for evaluation of anomaly detection 2.1. Deep-learning-based anomaly detection
performance. In addition, to validate the performance of the fault
diagnosis, a confusion matrix is used by labeling the detected status as Deep learning has been widely used in anomaly detection of engi
normal or anomaly. The validation results indicate that the proposed neered systems. The general procedure of deep-learning-based anomaly
3
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
detection is illustrated in Fig. 1. It consists of a training step and a testing from either a normal or anomaly condition. Those signals are pre
step. In the training step, multi-variate operating signals of the normal processed using the same methods as in the training step. Then, a re
condition are measured first. Preprocessing is needed because raw sig sidual is calculated using the trained auto-encoder. Finally, the
nals cannot be directly used for a deep learning algorithm. Preprocessing condition of the system is monitored by comparing the residual and the
includes filling in missing values, removing outliers, treating noise, etc. threshold.
Next, the hyper-parameters of an auto-encoder are selected, either
heuristically or by grid search (Montavon, Orr, & Müller, 2012), random
search (Bergstra & Bengio, 2012), or Bayesian optimization (Snoek, 2.2. Concept of an auto-encoder
Larochelle, & Adams, 2012). Critical hyper-parameters, such as the
learning rate, should be chosen carefully to ensure the maximal per An auto-encoder (AE) is an unsupervised learning algorithm that is
formance of an algorithm. Then, by using the preprocessed normal data trained to reconstruct its input. The basic architecture of an AE is
and the chosen hyper-parameters, an auto-encoder is trained by mini illustrated in Fig. 2. Given multi-variate signals, including vibration,
mizing the objective function, such as mean squared error or mean ab temperature, and pressure, they are entered into an encoder and are
solute error. A trained auto-encoder can model the characteristics of a reconstructed in the decoder part; the architectures of both parts are
normal condition. Finally, a threshold is determined using the residual, usually symmetric. The representation of the (l + 1)-th layer becomes as
which is calculated as the L1 norm or L2 norm of the output and true follows:
data. For example, given a confidence level (p), a threshold can be set as ( )
al+1 = f W l al + bl (1)
the value where the cumulative distribution function of a residual be
comes (1 − p) In the testing step, new signals are measured; they can be where f(⋅) is the activation function; al is the output of the l-th layer; W l
4
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
absolute error (MAE). In this study, MAE is used because MAE is more
sensitive to local variations of input data (Willmott & Matsuura, 2005).
The mathematical expression of MAE is as follows:
1 ∑M
L= xi|
|xi − ̂ (2)
M i=1
and bl are the weight and bias between the l-th layer and the (l + 1)-th To detect anomalies of a steam turbine with fewer false alarms, an
layer. To induce the non-linear dimensionality reduction of the input, ensemble denoising auto-encoder-based dynamic threshold (EDAE-DT)
the final layer of the encoder has smaller hidden nodes than those of the is newly proposed. The overall procedure of EDAE-DT is described in
input layer (Gehring, Miao, Metze, & Waibel, 2013). In this way, the Fig. 3. Similar to the conventional anomaly detection procedure, the
encoder extracts the essential information from the input data. Then, a proposed method consists of training and testing steps. In the training
decoder reconstructs the input from the encoded information. The AE is procedure, operating signals of the normal condition are measured from
trained by minimizing the mean squared error (MSE) or the mean the steam turbine. In the preprocessing step, the missing values are filled
Table 1
Defined performance metrics.
Performance type Notation Definition Formulation Unit
√̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
Modeling performance RMSE Root mean squared error 1 ∑T ∑N ( )2 –
yj (ti ) − xj (ti )
TN i=1 j=1
Anomaly detection performance α # of false alarms per hour N(F) times / hour
Ttr + Tval
β # of valid alarms per hour N(V) times / hour
Tte
δ How much faster than experts’ detection Te − V0 days
5
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
6
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
7
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
(a) Signal trend of vibration in the x-direction at bearing #4 (x7) for case A1
(b) Signal trend of pressure of the crossover pipe (x21) for case A2
Fig. 8. Trends of preprocessed anomaly-related parameters.
8
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
Table 4 usually stopped after any anomaly is detected. For dataset A1, training,
Bayesian optimization results of AE, DAE, and EDAE for four different hidden validation, and test data are successively constituted; however, the
layers. configuration is not successive for dataset A2. The number of training
# of hidden layers Hyper-parameters AE DAE EDAE samples is around 170,000 for both datasets. For case A1, the shutdown
3 layers # of latent nodes 11 25 15
began at 13:30:00 on 10/31/11 and the turbine was re-operated at
Learning rate 0.004466 0.010000 0.000674 03:20:00 on 11/10/11. Here, and throughout, the date format is month/
5 layers # of latent nodes 25 18 10 day/year; for instance, 10/31/11 is October 31, 2011. In case A2, the
Learning rate 0.000873 0.001267 0.000120 turbine started to stop at 02:00:00 on 12/19/13; it was restarted at
7 layers # of latent nodes 11 14 9
19:40:00 on 12/19/13 after maintenance. The anomaly cause of A1 is a
Learning rate 0.000744 0.006773 0.000594
9 layers # of latent nodes 2 4 7 high vibration in the x-direction at the 4th turbine bearing, detected by
Learning rate 0.004984 0.001319 0.000120 the operator at 12:20:00 on 10/31/11; the anomaly-related parameter is
also analyzed as vibration in the x-direction at bearing #4 by experts.
The anomaly reason of A2 is leakage at the crossover pipe; this was
than 0. δ is defined as the difference between the detection time of ex discovered by the operator at 20:40:00 on 12/18/13. For A2, among
perts (Te) and the first detection of a valid alarm (V0). It is desirable for δ pressure and temperature of crossover pipe signals, experts determined
to be positive; otherwise, there is no reason to use that anomaly detec that the pressure of the crossover pipe is significantly related to the
tion algorithm. As for the units of the metrics, RMSE has no dimension anomaly; on the other hand, temperature is relatively slow to change
because input signals are normalized and α, β are times per hour; the due to the anomaly. Fig. 8 illustrates preprocessed-signal trends of
unit of δ is days. anomaly-related parameters determined by experts; units are not
expressed since they are normalized. The vertical black-dotted line is the
{ ⃒ }
{ ( ) ( ) } ⃒ 1
F = ti |g yj (ti ) ⩽r yj (ti ) and ti ∈ P where P = ti ⃒⃒{T0 ⩽ti ⩽T1 } ∪ {T2 ⩽ti ⩽T3 }, ti+1 − ti =
fs
{ ⃒ } (9)
{ ( ) ( ) } ⃒ 1
V = ti |g yj (ti ) ⩽r yj (ti ) and ti ∈ Q where Q = ti ⃒⃒T4 ⩽ti ⩽T5 , ti+1 − ti =
fs
anomaly detection time by the experts. For case A1, the variation scale of
the training and validation periods are similar to each other. However,
4. Validation with power plant datasets vibration increased significantly in the test period near 14:00:00 on 10/
30/11. That is, the change due to the anomaly is valid in the test period
The proposed EDAE-DT approach is validated by examining two of A1. The variations of training and validation data for case A2 are also
datasets from a steam turbine of a domestic thermal power plant. EDAE similar. However, the variation in the test period is not valid, as
is compared with AE and DAE, focusing on the modeling performance. compared to case A1; this means that for A2 it will be harder to detect the
Those three models of various architectures are compared to each other. anomaly than it was for A1.
Then, to confirm the anomaly detection performance of EDAE-DT, the N-
sigma method (Nelson, 1984; Shewhart, 1931) and the Mahalanobis-
distance-based method (MD, (J. Chen, et al., 2020)) are compared to 4.2. Comparative anomaly detection studies
the proposed approach. After modeling the normal data with EDAE, the
anomaly detection performances of the three methods – N-sigma, MD, Nelson’s N-sigma method and the Mahalanobis-distance-based
and DT – are validated by employing the metrics in Table 1. Addition method (MD) are chosen as the comparative studies. Both methods set
ally, the diagnostic performances of those methods are compared using a constant threshold; the N-sigma method is intuitive, and MD extracts a
classification metrics and a confusion matrix; a sample is labeled 1 if the single health indicator from multi-variate signals. In the N-sigma
residual exceeds the threshold; otherwise, it is labeled 0. method, mean (μk ) and standard deviation (σ k ) are calculated from the
L1 residual of the k-th parameter. Then, μk +n × σk becomes the
4.1. Descriptions of datasets from the steam turbine threshold, where n is selected by two methods; it can be determined
manually or calculated as the value that satisfies the confidence level
Two datasets were collected from a steam turbine of domestic ther (p). Finally, the metrics shown in Table 1 are calculated for each
mal power plant A. The power capacity of each generator of plant A is parameter and are averaged for all parameters. The MD method is
500 [MW]. Operating signals of the steam turbine were measured by an different from the N-sigma method. The residual of the k-th parameter is
Osisoft PI system. The PI system organizes various signals from the calculated as the difference between the true and predicted output as
entire power plant. 24 parameters related to the steam turbine were follows:
measured for this dataset; the meaning and the unit of each parameter is
rk = yk,true − yk,pred (10)
provided in Table 2 and the sensor locations are illustrated in Fig. 7.
Also, the sampling rate, data configuration, and several types of anom Then, a monitoring indicator at the l-th sample is calculated as
aly information for the two datasets are summarized in Table 3. The follows:
sampling rate is 1 [sample/min] and the number of parameters is 24 for √̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
the two datasets. Since EDAE should be designed to learn the charac tl = (rl − r)T S− 1 (rl − r) (11)
teristics of the normal condition well, the length of the training data is
set as around 4–5 months, to be long enough to allow accurate modeling where r and S are the mean vector and covariance matrix of the residual,
of the normal condition. The validation data is set to a length of 1 week, respectively. After that, the probability distribution function of the in
and the length of test data is around 1 day, including the experts’ dicator t is calculated by kernel density estimation. Finally, the
detection time Te. The test period is inevitably short, since a turbine is threshold is set as a point such that the cumulative distribution function
9
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
Fig. 10. Training loss and validation loss of auto-encoders for dataset A1; (a) AEs; (b) DAEs; (c) EDAEs.
of t becomes (1 − p). When calculating the metrics of anomaly detection ensembled with five DAEs. The confidence level of each threshold
shown in Table 1, the residual is substituted by the indicator t. method is set as 1e-3.
10
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
Fig. 11. RMSE of AE, DAE, and EDAE with respect to four different architectures.
Fig. 12. Averaged anomaly detection metrics of three thresholds; N-sigma, MD, and DT.
and validation losses per epoch of the AEs, DAEs, and EDAEs are orga
Table 5 nized in Fig. 10. The red circles, blue triangles, green squares, and purple
Anomaly detection performance of the top three parameters of A1; sorted by plus-shaped lines represent the results for 3 layers, 5 layers, 7 layers, and
sensitivity s. 9 layers, respectively. For each EDAE, the averaged losses of five DAEs
Condition parameters s α [times/ β [times/ δ are illustrated. The training losses are converged during the training
hour] hour] [days] procedure and the validation loss is usually greater than the training
Vibration in the x-direction 0.921821 0.051934 55.390734 0.9174 loss. The difference between the converged training loss and the vali
at bearing #4 (x7) dation loss decreases in order for AE, DAE, and EDAE, respectively. This
Vibration in the x-direction 0.871573 0.036558 55.192050 0.9139
means that EDAE suffers the least from the overfitting issue.
at bearing #3 (x5)
Vibration in the y-direction 0.839537 0.044075 55.350991 0.9167
RMSE values for trained AE, DAE, and EDAE are summarized in
at bearing #5 (x10) Fig. 11. DAE shows a smaller RMSE value than AE, due to the denoising
task. The RMSE values of EDAE are smaller than those of AE and DAE in
every case. In particular, the RMSE value for an EDAE of 3 layers is the
every case, which means a local optimum has been reached. Table 4 smallest. This means that the EDAE of 3 layers learns the normal con
shows the Bayesian optimization results with respect to the different dition better than other approaches. This is because a light neural
depths of the hidden layers. To make a bottleneck layer, the number of network is enough to model the training data, whose input dimension is
latent nodes is constrained to be less than the number of nodes in the just 24. In case of light data, a neural network with many hidden layers
layer that is before the latent layer. The optimal learning rate decreases may have a severe overfitting problem. Consequently, the anomaly
as a model becomes deeper because a small learning rate has the performance of the 3-layer EDAE is selected for further study.
advantage of optimizing a complex neural network. Using the optimized
critical hyper-parameters, the three algorithms are trained. The training
11
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
alarms (α) shows that DT generates far fewer false alarms than either N-
Table 6 sigma or MD. Specifically, the α value of DT is about 32.92% of that of N-
Averaged diagnostic performance of 10 trials for dataset A1. sigma, which produces the most false alarms. In summary, the results
Metrics Precision Recall Accuracy F1 score show that EDAE-DT can detect an anomaly faster than experts, while
generating the fewest false alarms, as compared to the conventional
N-sigma 0.919 0.992 0.993 0.958
MD 0.003 0.006 0.987 0.004 methods.
DT 0.918 1.000 0.999 0.957 Based on the newly proposed sensitivity in Eq. (8), the top three
anomaly-sensitive parameters were selected; these are presented in
Table 5. As you can see, vibration in the x-direction at bearing #4 (x7) is
4.3.2. Anomaly detection performance
the most sensitive parameter. This coincides with the sensitive param
After training the EDAE of 3 layers using the training data, N-sigma,
eter that is analyzed by the experts. The α value of that parameter is
MD, and DT are obtained. Fig. 12 represents the averaged anomaly
0.0519 times per hour, which means that there is one false alarm every
detection metrics of those thresholds. When seeing the metric β, N-sigma
20 hours, on average. On the other hand, the β value is 55.3907 times
produces 42.2934 valid alarms per hour, while DT generates slightly
per hour, which shows that the most sensitive parameter can generate
fewer valid alarms; the β value of MD is too small, as compared to the
frequent valid alarms.
other two methods. Also, DT generates the first valid alarm faster than
Fig. 13 illustrates the output, residual, and critical function of x7. In
the experts by 0.78 days. While MD triggers the first valid alarm slower
Fig. 13a, the first column shows the results of the training data, the
than experts, N-sigma triggers the alarm earlier than experts by 0.84
second column shows those of validation, and the third column shows
days, which is slightly faster than DT. However, the metric for false
12
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
(a) N-sigma
(b) MD
(c) DT
Fig. 14. Predicted label for x7, as determined by the diagnostic methods; (a) N-sigma; (b) MD; (c) DT.
those of the test period. The blue line is the true data, the yellow line is 4.3.3. Fault diagnosis performance
the output, in the first row of Fig. 13a. In the second row of Fig. 13a, the The diagnostic performances of N-sigma, MD, and DT are compared
blue line is the residual and the yellow plot is the dynamic threshold. using classification metrics – precision, recall, accuracy, and F1 score –
The vertical black-dotted line denotes the time required for detection by and a confusion matrix. The true labels of samples are annotated as bi
experts. Since the residual is the L1 norm of the output and true data, the nary; the samples during training and validation periods are labeled as
residual is not negative. Because a critical function produces a threshold normal, and the ones in test period are labeled as anomaly. The pre
for the EDAE’s output, it is good for training and validation samples to dicted label is obtained for each parameter as follows:
be located under the critical function to mitigate the false alarm issue; {
this can be seen in Fig. 13b. Unlike the training and validation samples, 0 if rni < hin
i
yn = (12)
test samples cross the function; this means that alarms occur during the 1 otherwise
test period. Thus, it is confirmed that DT can effectively reduce false
alarms, while generating valid alarms. where yin is a predicted label, rni denotes a residual and hin is a threshold
of the n-th parameter at time index i. Then, a single label at time index i
13
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
14
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
Fig. 16. Training loss and validation loss of auto-encoders for dataset A2; (a) AEs; (b) DAEs; (c) EDAEs.
variate time-series data that arises due to an anomaly. Finally, δ values rate of the parameter is around 0.052 times per hour, which is quite
of DT and N-sigma are 0.5765; this describes that those methods detect small. The valid alarm rate value is 57.9296 times per hour, which also
an anomaly faster than experts by around 13 hours. In contrast, the δ describes that the parameter is sensitive to the change of input data that
value of MD is negative, which means that MD’s detection is slower than happens due to an anomaly. Although there are temperature-related
experts. In summary, EDAE-DT produces the fewest false alarms, while parameters at the crossover pipe (e.g., the metal temperature of the
triggering valid alarms faster than experts. Thus, DT is superior to the N- crossover pipe), these parameters are not selected as anomaly-sensitive
sigma and MD methods. parameters. The reason for this is that change of temperature is slower
After validating the superior anomaly detection performance of than that of pressure when there is a sudden change in a system. Thus,
EDAE-DT, parameters that are sensitive to the change of input due to the pressure is a better choice for anomaly detection.
anomaly are selected, as outlined in Table 8. Those parameters are Fig. 19 illustrates the output, residual, and critical function of EDAE-
sorted in descending order based on the sensitivity. It turns out that the DT for x21. The legends are the same as those shown in Fig. 13. In the
pressure of the crossover pipe has the largest sensitivity value, which training and validation periods, the output of EDAE is similar to the true
matches the true anomaly cause shown in Table 3. Also, the false alarm data; this indicates that EDAE can model the normal condition
15
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
Fig. 17. RMSE of AE, DAE, and EDAE with respect to four different architectures.
Fig. 18. Averaged anomaly detection metrics of three thresholds; N-sigma, MD, and DT.
16
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
17
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
(a) N-sigma
(b) MD
(c) DT
Fig. 20. Predicted label for x21, as determined by the diagnostic methods; (a) N-sigma; (b) MD; (c) DT.
proposed threshold generates much fewer false alarms, as compared In future research, the proposed method will be validated with other
to conventional methods, and alerts valid alarms faster than experts. power plant data. Also, to broaden the applicability of the proposed
3) A sensitivity is newly defined from DT to find the condition param method, this method will be applied to other systems, like wind turbines.
eters related to an anomaly. As a result, after an anomaly is detected,
sensitive parameters can be identified. It is discovered that the most CRediT authorship contribution statement
sensitive parameter, determined by the proposed sensitivity,
matches with the true abnormal-related parameter. This can be Jin Uk Ko: Conceptualization, Methodology, Formal analysis,
helpful for the operators by localizing an area for inspection. Writing – original draft, Writing – review & editing. Kyumin Na:
4) To quantitatively validate the anomaly detection performance, three Conceptualization, Supervision, Writing – original draft. Joon-Seok Oh:
performance metrics are newly defined. By using those metrics, it is Investigation, Validation, Data curation. Jaedong Kim: Investigation,
possible to quantitatively express the false alarm rate, the valid alarm Validation, Data curation. Byeng D. Youn: Conceptualization, Project
rate, and the difference between the detection times by an anomaly administration, Funding acquisition, Supervision, Writing – review &
detection method and by experts. editing.
18
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
Declaration of Competing Interest Lee, G., Jung, M., Song, M., & Choo, J. (2020). Unsupervised anomaly detection of the
gas turbine operation via convolutional auto-encoder. In IEEE International
Conference on Prognostics and Health Management (ICPHM) (pp. 1–6). IEEE.
The authors declare that they have no known competing financial Likas, A., Vlassis, N., & Verbeek, J. J. (2003). The global k-means clustering algorithm.
interests or personal relationships that could have appeared to influence Pattern Recognition, 36(2), 451–461.
the work reported in this paper. Liu, X., Lu, S., Ren, Y., & Wu, Z. (2020). Wind turbine anomaly detection based on
SCADA data mining. Electronics, 9(5), 751. [Link]
electronics9050751
Acknowledgement López, M. A. A., Flores, C. H., & Garcı́a, E. G. (2003). An intelligent tutoring system for
turbine startup training of electrical power plant operators. Expert Systems with
Applications, 24, 95–101.
This work was supported by the R&D project ‘Intelligent Digital Lu, C., Wang, Z.-Y., Qin, W.-L., & Ma, J. (2017). Fault diagnosis of rotary machinery
Power Plant (IDPP)’ of Korea Electric Power Corporation (KEPCO) (No. components using a stacked denoising autoencoder-based health state identification.
R17GA08). Signal Processing, 130, 377–388.
Lutz, M.-A., Vogt, S., Berkhout, V., Faulstich, S., Dienst, S., Steinmetz, U., … Ortega, A.
(2020). Evaluation of anomaly detection of an autoencoder based on maintenace
Appendix A. Supplementary data information and scada-data. Energies, 13(5), 1063.
Lv, H., Chen, J., Pan, T., & Zhou, Z. (2020). Hybrid attribute conditional adversarial
denoising autoencoder for zero-shot classification of mechanical intelligent fault
Supplementary data to this article can be found online at [Link] diagnosis. Applied Soft Computing, 95, 106577. [Link]
org/10.1016/[Link].2021.116094. asoc.2020.106577
Montavon, G., Orr, G., & Müller, K.-R. (2012). Neural networks: tricks of the trade (Vol.
7700): Springer.
References
Mousavi, M., Moradi, M., Chaibakhsh, A., Kordestani, M., & Saif, M. (2020). Ensemble-
based fault detection and isolation of an industrial Gas turbine. In 2020 IEEE
Arranz, A., Cruz, A., Sanzbobi, M., Ruiz, P., & Coutino, J. (2008). DADICC: Intelligent International Conference on Systems, Man, and Cybernetics (SMC) (pp. 2351–2358).
system for anomaly detection in a combined cycle gas turbine plant. Expert Systems IEEE.
with Applications, 34(4), 2267–2277. Neill, S. P., & Hashemi, M. R. (2018). Fundamentals of ocean renewable energy: Generating
Bergstra, J., & Bengio, Y. (2012). Random search for hyper-parameter optimization. electricity from the sea. Academic Press.
Journal of Machine Learning Research, 13. Nelson, L. S. (1984). The Shewhart control chart—tests for special causes. Journal of
Bloch, H. P., Singh, M., & Singh, M. P. (2008). Steam turbines. McGraw-Hill Professional Quality Technology, 16(4), 237–239.
Publishing. Nisbet, R., Elder, J., & Miner, G. (2009). Handbook of statistical analysis and data mining
Chaibakhsh, A., & Ghaffari, A. (2008). Steam turbine model. Simulation Modelling Practice applications. Academic Press.
and Theory, 16(9), 1145–1162. Qian, Q., Qin, Y., Wang, Y., & Liu, F. (2021). A new deep transfer learning network based
Chen, J., Li, J., Chen, W., Wang, Y., & Jiang, T. (2020). Anomaly detection for wind on convolutional auto-encoder for mechanical fault diagnosis. Measurement, 178,
turbines based on the reconstruction of condition parameters using stacked 109352. [Link]
denoising autoencoders. Renewable Energy, 147, 1469–1480. Que, Z., & Xu, Z. (2019). A data-driven health prognostics approach for steam turbines
Chen, T.-L. (2009). Real-time turbine maintenance system. Expert Systems with based on xgboost and dtw. IEEE Access, 7, 93131–93138.
Applications, 36(4), 8676–8681. Scott, D. W. (2015). Multivariate density estimation: Theory, practice, and visualization.
Dhini, A., Kusumoputro, B., & Surjandari, I. (2017). Neural network based system for John Wiley & Sons.
detecting and diagnosing faults in steam turbine of thermal power plant. In 2017 Shewhart, W. A. (1931). Economic control of quality of manufactured product: Macmillan
IEEE 8th International Conference on Awareness Science and Technology (iCAST) (pp. And Co Ltd, London.
149–154). IEEE. Snoek, J., Larochelle, H., & Adams, R. P. (2012). Practical bayesian optimization of
Friswell, M. I., Penny, J. E., Garvey, S. D., & Lees, A. W. (2010). Dynamics of rotating machine learning algorithms. arXiv preprint arXiv:1206.2944.
machines. Cambridge University Press. Stetco, A., Dinmohammadi, F., Zhao, X., Robu, V., Flynn, D., Barnes, M., … Nenadic, G.
Fujiyama, K., Nagai, S., Akikuni, Y., Fujiwara, T., Furuya, K., Matsumoto, S., … (2019). Machine learning methods for wind turbine condition monitoring: A review.
Kawabata, T. (2004). Risk-based inspection and maintenance systems for steam Renewable Energy, 133, 620–635.
turbines. International Journal of Pressure Vessels and Piping, 81(10-11), 825–835. Van der Maaten, L., & Hinton, G. (2008). Visualizing data using t-SNE. Journal of machine
Gehring, J., Miao, Y., Metze, F., & Waibel, A. (2013). Extracting deep bottleneck features learning research, 9.
using stacked auto-encoders. In IEEE international conference on acoustics, speech and Willmott, C. J., & Matsuura, K. (2005). Advantages of the mean absolute error (MAE)
signal processing (pp. 3377–3381). IEEE. over the root mean square error (RMSE) in assessing average model performance.
Goodfellow, I., Bengio, Y., Courville, A., & Bengio, Y. (2016). Deep learning (Vol. 1). MIT Climate Research, 30, 79–82.
press Cambridge. Yang, D., Karimi, H. R., & Sun, K. (2021). Residual wide-kernel deep convolutional auto-
Guo, S., Liu, P., & Li, Z. (2016). Inequality constrained nonlinear data reconciliation of a encoder for intelligent rotating machinery fault diagnosis with limited samples.
steam turbine power plant for enhanced parameter estimation. Energy, 103, Neural Networks, 141, 133–144.
215–230. Zeng, X. J., Yang, M., & Bo, Y. F. (2020). Gearbox oil temperature anomaly detection for
Kordestani, M., Saif, M., Orchard, M. E., Razavi-Far, R., & Khorasani, K. (2019). Failure wind turbine based on sparse Bayesian probability estimation. International Journal
prognosis and applications—A survey of recent literature. IEEE transactions on of Electrical Power & Energy Systems, 123, 106233. [Link]
reliability. ijepes.2020.106233
Kordestani, M., Samadi, M. F., & Saif, M. (2020). A new hybrid fault prognosis method
for MFS systems based on distributed neural networks and recursive bayesian
algorithm. IEEE Systems Journal, 14(4), 5407–5416.
19
J.U. Ko et al. Expert Systems With Applications 189 (2022) 116094
Zhang, W., Peng, G., Li, C., Chen, Y., & Zhang, Z. (2017). A new deep learning model for Zhao, R., Yan, R., Chen, Z., Mao, K., Wang, P., & Gao, R. X. (2019). Deep learning and its
fault diagnosis with good anti-noise and domain adaptation ability on raw vibration applications to machine health monitoring. Mechanical Systems and Signal Processing,
signals. Sensors, 17(2), 425. [Link] 115, 213–237.
Zhang, Y., Li, X., Gao, L., Chen, W., & Li, P. (2020). Intelligent fault diagnosis of rotating
machinery using a new ensemble deep auto-encoder method. Measurement, 151,
107232. [Link]
20