LSTM_Anomaly_Detector icon indicating copy to clipboard operation
LSTM_Anomaly_Detector copied to clipboard

A try to autoencode an LSTM to do anomaly detection

LSTM Based Anomaly Detection

Hypothetically it should be possible to autoencoder an LSTM in order to build an anomaly detector. This proves that this is possible.

Example

It is shown that a simple sin wave with added amplitudal noise can be detected if trained with a pure unsupervised LSTM autoencoder.

The entire signal as it is presented to the network [sliding window] :

Alt text

The signal approximation (mean) :

Alt text

The MSE output of the LSTM detector:

Alt text

The number of noise samples added (and caught):

Alt text