Time Series Anomaly Detection¶
Perform time series anomaly detection in Amazon SageMaker
SageMaker Algorithm |
CPU Training |
GPU Training |
Multi-GPU Training |
Incremental Training |
---|---|---|---|---|
LSTM-AD SageMaker Algorithm¶
The LSTM-AD SageMaker Algorithm performs time series anomaly detection with the Long Short-Term Memory Network for Anomaly Detection (LSTM-AD). The LSTM-AD model predicts the future values of the time series with a stacked LSTM network. After that it fits a Gaussian distribution to the prediction errors obtained on normal data. The Gaussian likelihood of the prediction errors is then used as a normality score. The lower the Gaussian likelihood at a given a time step, the more likely the time step is to be an anomaly. The algorithm can be used for both univariate and multivariate time series. For additional information, see the algorithm's AWS Marketplace listing page and GitHub repository.
LSTM-AE SageMaker Algorithm¶
The LSTM-AE SageMaker Algorithm performs time series anomaly detection with the Long Short Term Memory Networks based Encoder-Decoder scheme for Anomaly Detection (LSTM-AE). The LSTM-AE model reconstructs the observed values of the time series with an LSTM autoencoder. After that it fits a Gaussian distribution to the reconstruction errors obtained on normal data. The squared Mahalanobis distance between the reconstruction errors and the fitted Gaussian distribution is then used as an anomaly score. The larger the squared Mahalanobis distance at a given a time step, the more likely the time step is to be an anomaly. The algorithm can be used for both univariate and multivariate time series. For additional information, see the algorithm's AWS Marketplace listing page and GitHub repository.