The present application belongs to the field of
Internet of Things, and particularly relates to a multivariate
time series anomaly detection method for an intelligent
Internet of Things system. The multivariate
time series anomaly detection method comprises the following steps: S1, a spatial
encoder using a graph learning policy to model a potential graph relationship between sequences; S2, a temporal
encoder using a multi-head self-attention mechanism and a GAT network to capture a potential
time series representation; S3, on the basis of the potential
time series representation, a reconstruction decoder using a multi-head self-
attention network to reconstruct an input sequence; and, on the basis of the potential
time series representation, a prediction decoder using a multi-head
attention network to achieve multi-step prediction of a future time series; S4, using a random
gradient descent algorithm to reversely update parameters of a hierarchical variational automatic
encoder consisting of the spatial encoder, the temporal encoder, the reconstruction decoder and the prediction decoder, so as to obtain a model that has learned a
normal mode of time series; and S5, using a historical-future combined anomaly scoring mechanism to perform
anomaly detection. The present application has the advantages of solving the two major problems of temporal randomness and spatial randomness in multivariate time series anomaly detection.