khundman / telemanom

A framework for using LSTMs to detect anomalies in multivariate time series data. Includes spacecraft anomaly data and experiments from the Mars Science Laboratory and SMAP missions.
https://arxiv.org/abs/1802.04431
Other
1.02k stars 248 forks source link

Anomaly occurs early in window only C-2 #65

Open Antsypc opened 2 years ago

Antsypc commented 2 years ago

It seems like if not channel.id == 'C-2', code here, should be if channel.id == 'C-2'. Is this a mistake? Thanks.

khundman commented 2 years ago

No it's not a mistake. Those two lines change the initial values in each stream (of length config.l_s) to the mean of the initial values in the stream to allow a small amount of historical context to be collected prior to attempting to identify anomalies. This is done for all channels except for C-2, which has an anomaly early in its time series. In this instance we don't set early values to the mean so this early anomaly has a chance to be detected.