Skip to content

Strange anomaly scores of DWT_MLEAD with some basic time series #2126

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

You must be logged in to vote

Hi @Noskario,

Thank you for your patience.

You are right. Your strange anomaly scores are an artifact of the padding to the next power of 2. This plot shows the padded series in row two:

We can see that the last part of the series just occurs once and thus has the highest anomaly score. Unfortunately, DWT-MLEAD does not work well on non-periodic time series or time series with no reoccurring patterns, especially if the time series is very short.

Script to reproduce figure:

import matplotlib.pyplot as plt
import numpy as np
from aeon.anomaly_detection import DWT_MLEAD
from aeon.anomaly_detection._dwt_mlead import _pad_series

N = 100


def main():
    X = np.concatenate(
        (np.full(N

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Noskario
Comment options

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
3 participants