The invention discloses a self-supervision
anomaly detection method based on
mask self-encoding, and relates to the technical field of
anomaly detection, and the method comprises the steps of S1, data preprocessing, S2,
mask self-
encoder design, S3,
mask strategy, S4, self-supervision training, S5,
anomaly detection, S6, evaluation and optimization, and S7, deployment and application. By introducing a
dynamic feature importance mask strategy, the model can dynamically adjust the mask probability according to the importance
score of the feature, so as to pay more attention to the incidence relation between key features, specifically, the importance
score of each feature is calculated through a
mutual information method or a gradient saliency method, and then the mask probability is dynamically generated; according to the method, the model can preferentially learn features which contribute more to anomaly detection in the training process, excessive attention to unimportant features is avoided, the model can capture internal rules of data more efficiently, and the accuracy of
feature extraction and the learning efficiency of the model are improved.