The invention provides a reconstruction-based video
anomaly detection method and
system, a medium and equipment, and the method comprises the steps: carrying out the preprocessing of a to-be-detected
video sequence, and obtaining an original image; inputting the original image into the trained reconstruction model to obtain a final reconstruction image, and judging whether the to-be-detected
video sequence is abnormal or not according to a
reconstruction error; the reconstruction model comprises an improved variational auto-
encoder and a reconstruction supplement module, and the improved variational auto-
encoder adds an FSQ quantization layer and jump connection between an
encoder and a decoder and is used for discretizing data and capturing context features to obtain a preliminary reconstruction frame; the reconstruction supplement module is used for extracting abnormal features to construct an offset graph; and combining the preliminary reconstruction frame and the offset graph into a final reconstruction frame. The offset graph of the original video frame is calculated to supplement
anomaly detection, so that the anomaly feature expression is enhanced; and a
pattern search regularization method is introduced into the idempotent generative network, so that the problem of pattern collapse in the
generative model is relieved, and the stability of the model is ensured.