Anomaly Detection
Prof. Seungchul Lee
Industrial AI Lab.
Anomaly
2
Causes of Anomalies
3
tail
tail
Anomaly Detection
4
Applications of Anomaly Detection
5
Applications of Anomaly Detection
6
Difficulties with Anomaly Detection
7
Use of Data Labels in Anomaly Detection
8
Output of Anomaly Detection
9
Variants of Anomaly Detection Problem
10
Statistical Anomaly Detection
11
Statistical Anomaly Detection
12
Statistical Anomaly Detection
13
Statistical Anomaly Detection
14
A
B
Statistical Anomaly Detection
15
Deep Learning-based Anomaly Detection
16
Deep Learning-based Anomaly Detection
17
Train
Test
Convolutional Autoencoder (CAE)
18
Training Data
(Normal Data)
Test Data
(Normal Data)
Test Data
(Anomaly Data)
Reconstructed Data
(Normal Data)
Reconstructed Data
(Anomaly Data)
Reconstruction Error
Reconstruction Error
Anomaly Detection Process with CAE
19
Training Data
(Normal)
CAE
Reconstruction Loss
Test Data
(Normal + Anomaly)
CAE
Anomaly Score
Decision Making
Anomaly Score – Reconstruction Error
20
Flatten
Test Data
Reconstructed Data
Reconstructed Error
Anomaly Detection with CAE in TensorFlow
21
CAE Implementation
22
Train and Test Dataset
23
CAE Implementation
24
CAE Implementation
25
Latent Space and Reconstruction Result
26
Reconstruction Error and Threshold
27
Anomaly Detection with GAN
28
AnoGAN: GAN-based Anomaly Detection
29
Generated (Fake)
Real (Normal)
Real
Fake
Generator
Discriminator
Input two images (Real, Fake)
Noise z
AnoGAN: GAN-based Anomaly Detection
30
Randomly generated data
Target data
Loss
Update
AnoGAN: GAN-based Anomaly Detection
31
z update
Normal data
Trained data
Abnormal data
unseen data
anomaly score: 0.027
anomaly score: 0.067
z update
f-AnoGAN: Fast GAN-based Anomaly Detection
32
Generated (Fake)
Real (Normal)
Real
Fake
Generator
Discriminator
Input two images (Real, Fake)
Noise z
f-AnoGAN: Fast GAN-based Anomaly Detection
33
Generator
(fixed)
Noise z
Encoder
Encoded
Loss
Regenerated
f-AnoGAN: GAN-based Anomaly Detection
34
Encoder
Encoder
Generator
Generator
z
z
Normal data
Trained data
Abnormal data
unseen data
Regenerated data
Regenerated data
Anomaly score: 0.183
Anomaly score: 1.053
Anomaly Detection with GAN in TensorFlow
35
Data Description
36
Generator
37
Generator
Discriminator
Real
Fake
Noise z
Generated
Real
Discriminator
38
Generator
Discriminator
Real
Fake
Noise z
Generated
Real
GAN Training and Results
39
Encoder Implementation for f-AnoGAN
40
Generator
Noise z
Regenerated
Real
Encoder
f-AnoGAN Results
41
Anomaly Detection with LSTM
42
Time Series NN based Anomaly Detection
43
LSTM model
Input data
Predicted
ECG data
Anomaly Detection with LSTM in TensorFlow
44
Data Description
45
Test rig setup
Data Description
46
Test rig setup
LSTM Implementation
47
n_output (prediction length)
n_input
(signal length)
Step (# of chunk)
Results
48
Present signal
Real future signal
Predicted signal
Results
49
Abnormal event
above the threshold