ScratchSim: A Procedural Synthetic Data Pipeline for Surface Scratch Detection
This study addresses the challenge of surface scratch detection in industrial quality inspection, where performance is often hindered by the scarcity of real annotated data. To overcome this limitation, the authors propose a procedural synthetic data generation pipeline based on BlenderProc, which leverages material modeling, multi-camera configurations, and domain randomization to efficiently produce large-scale scratch images with COCO-format annotations. This approach enables training lightweight detection models—such as YOLOX, YOLOv8, and LW-DETR—without requiring extensive real-world labeled data, thereby facilitating deployment on edge devices. Experimental results demonstrate that fine-tuning models pretrained on synthetic data significantly outperforms training solely on real data across diverse materials. Moreover, when real annotations are extremely limited, a hybrid training strategy effectively recovers detection performance for both convolutional and Transformer-based architectures.