Effectiveness of Synthetic Defects for Anomaly Detection in Industrial Small Load Carriers
Authors: Vincent Wahyudi, Kuniko Paxton, Amila Akagić, Martin Storath, Dhavalkumar Thakker
Organizations: Technische Hochschule Würzburg-Schweinfurt, Ignaz-Schön-Straße 11, 97421 Schweinfurt - Germany · University of Hull, Cottingham Road, Hull, HU6 7RX - United Kingdom · University of Sarajevo, Obala Kulina bana 7/II, 71000, Sarajevo - Bosnia and Herzegovina · College of Computing and IT, University of Doha for Science and Technology, Al Tarafa, Jelaiah Street Duhail North, Doha - Qatar
Recent industrial anomaly detection methods use procedural noise to generate synthetic training defects. Their effectiveness in real-world settings and the impact of different noise generation methods have not been sufficiently investigated. We evaluate the effectiveness of training using synthetic defects for both supervised and unsupervised methods, the impact of different noise generation methods, and the differences in detection performance between benchmark datasets and a real-world small load carrier (SLC) dataset. Trained on synthetic defects only, a supervised classifier reaches 0.65 AUROC on real SLC defects, while three unsupervised methods using the same kind of noise (Perlin) reach 0.87--0.90. Except for SuperSimpleNet, which fails with the foreground-confined fractal Brownian motion (fBm) recipe, models trained with the custom recipe or with nine other noise types do not differ reliably from those trained with Perlin noise. Finally, results with synthetic defects on benchmark datasets do not carry over to the SLC dataset, possibly because the synthetic defects differ too much from the real ones (a larger angle in feature space). These results call for caution when training models on synthetic defect images.
Figures & tables
Figure 1: How a synthetic defect is made. (a) Our main recipe fg_dtd_matched step by step on one SLC image: an fBm noise field is thresholded into a mask that lies mainly on the SLC (fg) and covers 1–3% of the image, matched to the measured size of real defects. The mask is filled with an altered texture from the Describable Textures Dataset (DTD) [ 12 ] and blended in with opacity 0.1–0.8. (b) The 10 noise kinds tested under the default recipe (mask 5–25% of the image, anywhere, no DTD): mask (top) and resulting image with the mask outlined in red (bottom). (c) Image AUROC on real defects for each noise kind on the 4 SLC classes. The noise kind barely changes SSN. DRAEM varies more, but no noise kind differs reliably from Perlin.
Figure 2: (a) Image AUROC on real test defects for a classifier trained on synthetic defects only vs. on 10% of the real ones; mean ± SE over classes. (b) SLC class 120 in the plane of dreal and dsyn (true angle). (c) Synthetic-vs-real shift angle per class/category; black: group mean ± SE; dashed: real-vs-real angle between two halves of the real defects (noise floor).
Figure 3: (a) Mean of the 4 classes; error bars = standard error over the 4 classes (each class’s AUROC is the mean of 3 runs). Solid: each unsupervised model with its default Perlin noise (the generator built into the method), trained on OK images only, and in grey the classifier trained on DRAEM’s Perlin noise as labels. Hatched: our recipe fg_dtd_matched . Lines: the classifier trained with 5% (dashed) or 10% (solid) of the real training defects. (b) The same per class, default Perlin noise only. Same test images for all.
Automatic visual inspection using machine learning plays a key role in achieving zero-defect policies in industry. Research on anomaly detection is constrained by the availability of datasets that capture complex defect appearances and imperfect imaging conditions, which are typical of production processes. Recent benchmarks indicate that most publicly available datasets are biased towards optimal imaging conditions, leading to an overestimation of their applicability in real-world industrial scenarios. To address this gap, we introduce the Industrial Screen Printing Anomaly Detection Dataset (ISP-AD). It presents challenging small and weakly contrasted surface defects embedded within structured patterns exhibiting high permitted design variability. To the best of our knowledge, it is the largest publicly available industrial dataset to date, including both synthetic and real defects collected directly from the factory floor. Beyond benchmarking recent unsupervised anomaly detection methods, experiments on a mixed supervised training strategy, incorporating both synthesized and real defects, were conducted. Experiments show that even a small amount of injected, weakly labeled real defects improves generalization. Furthermore, starting from training on purely synthetic defects, emerging real defective samples can be efficiently integrated into subsequent scalable training. Overall, our findings indicate that model-free synthetic defects can provide a cold-start baseline, whereas a small number of injected real defects refine the decision boundary for previously unseen defect characteristics. The presented unsupervised and supervised dataset splits are designed to emphasize research on unsupervised, self-supervised, and supervised approaches, enhancing their applicability to industrial settings.
Paul J. Krassnig, Dieter P. Gruber
Polymer Competence Center Leoben GmbH, Leoben, Austria. · Chair of Materials Science and Testing of Polymers, Montanuniversitat Leoben, Leoben, Austria.
Synthetic anomaly generation helps expand industrial anomaly datasets when real defects are scarce or unavailable. Existing approaches lie at two extremes: procedural approaches are fast but struggle to represent complex anomalies, while generative approaches produce diverse defects but require costly per-sample generation. We present FLASH, a framework that decouples defect generation from anomaly synthesis under a ``generate once, synthesize many'' paradigm. Given only normal images, FLASH uses Vision-Language Model (VLM) guidance and an image-generation model to produce a small set of defect images, from which it extracts, validates, and banks reusable defect patches. For synthesis of anomalous images, Object Boundary Suppression (OBS) first identifies the probable foreground object-aware region of the host image, while Multi-Resolution Spectral Pyramid (MRSP) noise generates diverse, size-controllable masks that determine the defect location and spatial extent. It then composes a large and diverse synthetic anomalous image set by localizing the defect region, sampling size-controllable placement masks and seamlessly blending retrieved defects onto new defect-free images without further need for image generation. Experiments on the MVTec AD 2 dataset show that FLASH-generated anomalies nearly close the calibration gap on real defects, reaching 78.1% image-level F1 against an 83.6% real-anomaly upper bound and providing the most consistent calibration transfer across detectors among procedural and generative alternatives. Moreover, FLASH synthesizes anomalies more than 11.95x faster than per-sample generative approaches.
Defect detection systems for industrial condition monitoring can only be relied upon if they are validated, yet defective samples are rare and, for a specific asset, often nonexistent. We present a framework that synthesizes severity-graded defects on real non-defective images without any defect references for the target asset, that can be used for model selection and validation. A defect taxonomy for common failure modes is distilled from literature into prescriptive prompts at varying defect severities. Regions of interest are cropped from in defect-free images and edited with a pre-trained image generation model ("FLUX.2 [klein]"). Color-matching and blending are employed to improve structural coherence with the original image. Generations are filtered out by a scorer and by estimated detection difficulty. Model selection experiments on MVTecAD show image AUROC choice regret over model selection can be nearly halved compared to the best fixed model chosen with access to test data. Experiments show the need for severity-graded anomaly synthesis. A case study investigates the proposed method for in-situ monitoring of Pelton turbine runners in hydropower, where real defect images are rare and expensive to collect. A PatchCorebased anomaly detection model is fit on Pelton turbine images and selected and validated using synthetic images, showing strong detection performance (94 % correct detection at optimal threshold and AUROC 0.97). The model reliably detects moderate and advanced defects, while early-stage defects remain challenging, indicating the synthetic data meaningfully stresses detector sensitivity.
Daniel Pröll, Thomas Kraxner, Tobias Schaefer +1
Digital Factory Vorarlberg GmbH, Dornbirn, Austria · University of Salzburg, Salzburg, Austria · illwerke vkw AG, Bregenz, Austria +1