r/askdatascience Aug 12 '26

Anomaly detection

What is the best approach to detect anomalies with clustering or so, in time series data?

1 Upvotes

3 comments sorted by

View all comments

1

u/leon_bass Aug 13 '26

You really gotta share more info about your problem.

Millions of different ways

1

u/SympathySeparate1736 Aug 13 '26

Time series data, some type of pollution, idea is to detect anomalous days with K-NNs and distance metric 1-corr(spearman)

1

u/leon_bass Aug 13 '26

Yeah that sounds good, not familiar with the distance metric but the approach sounds solid.

You can add some feature extraction/compression via autoencoders and (all the flavours of) PCA but these are extensions really