The application belongs to the field of industrial
visual inspection, and particularly relates to an industrial
anomaly detection method and
system based on pseudo-anomaly feature
space optimization. First, an anomaly-driven denoising
diffusion probability model AD-DDPM is constructed, and Berlin
noise disturbance is introduced in the reverse denoising process to synthesize pseudo-anomaly samples with real physical textures. Second, a "normal-anomaly-
mask" triplet is constructed using the synthesized information, and a multi-scale
feature selection module MSFS is used to select a feature subset with high discriminability. Then, a center-guided contrast learning mechanism is introduced, a global normal class center is set in the feature space, normal samples are gathered to the center, and pseudo-anomaly samples are pushed away from the center to optimize the
decision boundary. Finally, the reconstruction residual containing the most anomaly information is selected to generate an anomaly
score, and the precise positioning of defects is realized. The application effectively eliminates the dependence of the model on real anomaly data, and significantly improves the detection accuracy of small defects and the robustness of the model in a complex background.