The invention discloses a time-frequency double-domain isolation
time sequence anomaly detection method based on Mamba-self-attention, which can be applied to the fields of industrial manufacturing,
medical equipment and the like and can detect anomaly by quantifying time-
frequency difference. The method comprises the steps of extracting a multivariable
time sequence sample from
business data, and obtaining multivariable data through reversible instance normalization; the input
time domain representation module is used for independently inputting a Mama network according to a natural
time sequence and an
inversion time sequence, capturing forward and
reverse time features and fusing the forward and
reverse time features into time features; a
frequency domain representation module is input, seasonal variables are extracted, frequency features are extracted in combination with
discrete cosine transform and an attention mechanism, and the frequency features are reconstructed to a
time domain through inverse discrete cosine; the time and frequency characteristics are input into a time-
frequency difference module, and the inconsistency is quantified through Kullback-Leible (KL)
divergence so as to compare and learn a similarity
loss function training model; and generating an anomaly
score and setting a hyper-parameter to judge anomaly. The method is based on a bidirectional Mama and self-attention time-frequency double-domain isolation architecture, mode specificity discrimination features masked by traditional fusion are reserved, the consistency of
normal mode domains is high, the correlation of abnormal performance is collapsed, and the detection accuracy and reliability are improved.