Teacher Encoder-Student Decoder Denoising Guided Segmentation Network for Anomaly Detection
Shixuan Song, Hao Chen, Shu Hu, Xin Wang, Jinrong Hu, Xi Wu
TL;DR
This work tackles unsupervised anomaly detection and localization by introducing PFADSeg, a three‑path framework that blends a pre‑trained teacher encoder with an enhanced denoising student decoder and a self‑supervised segmentation network. A key innovation is the PCAR module, which performs parallel multi‑scale feature extraction and attention recalibration to improve regional anomaly localization, combined with an AFF‑based fusion and an RCM for refined context. The training proceeds in two stages using synthetic, pseudo‑anomalous inputs to align student features to the teacher and then fuse their outputs for segmentation, with a loss that combines $L_{focal}$ and $L_{l1}$ to emphasize rare anomalous pixels. On MVTec AD, PFADSeg delivers image‑level AUC of $98.9\%$, pixel‑level AP of $76.4\%$, and competitive instance‑level detection, outperforming several contemporary methods and demonstrating robust segmentation across object and texture categories.
Abstract
Visual anomaly detection is a highly challenging task, often categorized as a one-class classification and segmentation problem. Recent studies have demonstrated that the student-teacher (S-T) framework effectively addresses this challenge. However, most S-T frameworks rely solely on pre-trained teacher networks to guide student networks in learning multi-scale similar features, overlooking the potential of the student networks to enhance learning through multi-scale feature fusion. In this study, we propose a novel model named PFADSeg, which integrates a pre-trained teacher network, a denoising student network with multi-scale feature fusion, and a guided anomaly segmentation network into a unified framework. By adopting a unique teacher-encoder and student-decoder denoising mode, the model improves the student network's ability to learn from teacher network features. Furthermore, an adaptive feature fusion mechanism is introduced to train a self-supervised segmentation network that synthesizes anomaly masks autonomously, significantly increasing detection performance. Rigorous evaluations on the widely-used MVTec AD dataset demonstrate that PFADSeg exhibits excellent performance, achieving an image-level AUC of 98.9%, a pixel-level mean precision of 76.4%, and an instance-level mean precision of 78.7%.
