The invention discloses a
time series anomaly detection method based on combination of hierarchical adaptive attention and Mamba. According to the method, a multi-
granularity token routing strategy is provided, the strategy dynamically allocates computing resources in a time context, adaptively concentrates
processing capacity on an information segment, and keeps wider
perception at the same time, so that attention computing can be dynamically focused on different time scales and
modes according to the complexity of input data; according to the method, the Mama is improved, so that parameters of the Mama can be dynamically adjusted according to characteristics of an input sequence, the long-distance dependency relationship is effectively simulated, and meanwhile, the modeling capability of a nonlinear time mode is enhanced. The abnormal
score calculation process comprises three stages:
reconstruction error calculation, error normalization and hierarchical
score fusion. Different from a traditional method using a fixed threshold, the self-adaptive threshold
selection strategy constructed by the method considers time context and
data set features, the efficiency and precision of
anomaly detection are improved, and effective support is provided for development of
time sequence anomaly detection.