The invention belongs to the field of
anomaly detection, and particularly relates to an
anomaly detection method and
system based on a self-adversarial variational auto-
encoder, and the method comprises the steps: constructing an
anomaly detection model based on the self-adversarial variational auto-
encoder, training the anomaly detection model, and obtaining a standard anomaly
score set of training data, automatically calculating a threshold value according to a
kernel density estimation method and the standard anomaly
score set, obtaining to-be-detected data from the
online database, preprocessing the to-be-detected data, inputting the preprocessed to-be-detected data into the trained anomaly detection model to obtain a detection
score, comparing the detection score with the threshold value, and outputting a detection result; according to the method, the advantages of an unsupervised anomaly detection method based on a variational auto-
encoder and adversarial training are combined, the limitation of each technology is made up, the anomaly detection accuracy is improved, and the problem that the
false alarm rate or the missing report rate is high due to a fixed threshold value method is effectively relieved by designing an
automatic threshold value selection module.