︎書誌情報
タイトル:Fixing the train-test objective discrepancy: Iterative Image Inpainting for Unsupervised Anomaly Detection
著 者:Hitoshi Nakanishi, Masahiro Suzuki, Yutaka Matuo
掲載号:J-Stage in August Vol.30
︎概要
Autoencoders have emerged as popular methods for unsupervised anomaly detection, but they still have difficulty detecting local anomalies in real-world images due to lack of modeling small details. We have assessed this difficulty from a new perspective: the mismatch of training and testing objectives. Specifically, autoencoders are expected to encode an unseen locally noised image, to reconstruct normal regions completely, and to repair abnormal regions during testing, even though they are merely aimed at minimizing total reconstruction errors during training. To address this issue, we reconstruct a potentially anomalous masked region from encoding a potentially normal unmasked region conditionally with a mask, similarly to an image inpainting, during both training and testing. Because the ideal mask for anomalies is unknown in advance, we iteratively construct an adaptive mask from an earlier anomaly score of the reconstruction error. Our proposed Iterative Image Inpainting for Anomaly Detection (I3AD) updates image inpainting and masking by turns, which engenders the expected objective to maximize the anomaly score during testing. Evaluated by the MVTec Anomaly Detection dataset, our method outperformed baseline reconstruction-based methods in several categories and demonstrated remarkable improvement, especially in high-frequency textures.