Skip to content

Strange behaviour of anomaly scores of KMeansAD with a basic time series #2136

Answered by baraline
Noskario asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Looking at the KMeansAD code, you can see that point anomaly scores are first computed for each moving window based on the distance to a cluster center and then point anomaly socre on the original time series are obtained by averaging, using a reverse windowing operation, the point anomaly score of all windows.

You would need to inspect the cluster centers to confirm, but what might be happening is that most cluster centers (the method produce 20 clusters by default if you don't change the parameters) will be scattered on the downward slope, creating subsequences with low point anomaly at the start and high at the end (or reversed). Then the averaging performed would also help produce…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by baraline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
anomaly detection Anomaly detection package
2 participants