Abstract
Deep learning models for industrial quality inspection often suffer from a lack of annotated training data, particularly for rare manufacturing defects. This paper proposes a pipeline for generating high-quality synthetic training data to bridge the "Sim2Real" gap. By combining photogrammetry, photometric stereo for fine-grained texture capture, and procedural defect generation, the researchers create a robust dataset for engine component inspection. Results indicate that while synthetic data alone is insufficient, its use as an augmentation tool significantly improves model performance and recall.
Introduction
Visual quality inspection in manufacturing has been revolutionized by deep learning, yet these models require massive amounts of annotated data. In high-quality production lines, defects are rare, creating a significant data imbalance. Collecting and labeling sufficient real-world examples of defects like "blow holes" in cast metal is often impractical and expensive. This research explores the generation of synthetic data to provide the necessary volume and variety of training examples automatically.
Methodology
The proposed pipeline focuses on "partial modeling," prioritizing the replication of critical geometric and textural features over perfect photorealism. The goal is to create a graphic simulator capable of generating an infinite variety of labeled, defective parts.
Geometry and Texture Capture
The coarse geometry of the target object (a Volkswagen gear fork) was captured via photogrammetry. To achieve industrial-grade surface detail, the researchers employed photometric stereo. By capturing multiple images under varying lighting angles, they generated high-resolution normal maps that accurately represent surface roughness and markings, which are then used to inform how light bounces off the synthetic surface.
Procedural Defect Generation and Randomization
To simulate "blow holes" (gas bubbles in cast metal), the authors used procedural noise—specifically fractal and turbulent noise—to distort basic geometric shapes into irregular 3D cavities. These were applied to the mesh using displacement maps. To ensure variety and avoid repetitive patterns, textures were randomized using dictionary-based exemplar-based inpainting, preventing the model from overlearning specific surface artifacts.
Domain Adaptation
To mitigate the stylistic differences between simulated and real images, the Alleviating Semantic-level Shift (ASS) technique was employed. This helps the neural network align features across both the simulated (source) and real (target) domains, preventing the model from using simulation-specific artifacts as shortcuts for classification.
Experimental Results
The effectiveness of the synthetic data was evaluated on a real-world test set of 700 images. Performance was measured using mean Average Precision (mAP) at a 0.5 Intersection-over-Union (IoU) threshold.
| Training Data Configuration | mAP @ 0.5 |
|---|---|
| Simulated Only | 0.54 |
| Real Only | 0.72 |
| Real + Simulated | 0.75 |
| Real + Simulated + ASS | 0.76 |
The inclusion of synthetic data notably improved recall (from 0.64 to 0.72), indicating that the model became significantly better at identifying actual defects it might have otherwise missed when trained on real data alone.
Discussion and Conclusion
A key finding was the "Healthy Real" trap: models trained on synthetic defects and real healthy images often learned to distinguish the image source (real vs. sim) rather than the defect itself. This underscores the importance of domain adaptation and careful dataset balancing.
While synthetic data is not yet a standalone replacement for real-world data in industrial settings, it serves as a powerful supplement. It provides the edge-case variations necessary to build robust inspection systems, particularly for defects that are too rare to be captured at scale in a production environment. Future work will focus on increasing photorealism and testing the system's ability to detect entirely "unseen" defect types for which no real-world examples exist.
Summary updated