[Paper Review] Synthetic training data generation for deep learning based quality inspection
This paper proposes a generic simulation pipeline for generating high-quality, photorealistic synthetic images of defective and healthy metallic parts using 3D modeling, texture scanning, and domain randomization. It demonstrates that deep learning models trained solely on simulated data achieve a mAP of 0.54 on real test data, and combining simulated and real data boosts performance to mAP 0.75, outperforming real-data-only training.
Deep learning is now the gold standard in computer vision-based quality inspection systems. In order to detect defects, supervised learning is often utilized, but necessitates a large amount of annotated images, which can be costly: collecting, cleaning, and annotating the data is tedious and limits the speed at which a system can be deployed as everything the system must detect needs to be observed first. This can impede the inspection of rare defects, since very few samples can be collected by the manufacturer. In this work, we focus on simulations to solve this issue. We first present a generic simulation pipeline to render images of defective or healthy (non defective) parts. As metallic parts can be highly textured with small defects like holes, we design a texture scanning and generation method. We assess the quality of the generated images by training deep learning networks and by testing them on real data from a manufacturer. We demonstrate that we can achieve encouraging results on real defect detection using purely simulated data. Additionally, we are able to improve global performances by concatenating simulated and real data, showing that simulations can complement real images to boost performances. Lastly, using domain adaptation techniques helps improving slightly our final results.
Motivation & Objective
- Address the scarcity of real annotated defect data in industrial visual inspection, especially for rare defects.
- Overcome the high cost and effort of collecting and annotating real training data for deep learning.
- Develop a scalable, generic simulation pipeline to generate diverse, photorealistic synthetic images of defective and healthy parts.
- Evaluate whether simulated data alone or combined with real data can achieve industrial-grade performance in defect detection.
- Assess the effectiveness of domain adaptation techniques in bridging the sim-to-real domain gap for quality inspection.
Proposed method
- Use photogrammetry to reconstruct a 3D model of a physical part (e.g., Volkswagen gear fork) from real images.
- Apply photometric stereo to capture high-resolution, fine-grained texture maps of the part’s surface.
- Implement parametric defect modeling to generate realistic defects (e.g., holes, cracks) with controlled variations in shape, size, and position.
- Render synthetic images using a 3D rendering engine with randomized lighting, camera angles, and background conditions to enhance domain randomization.
- Apply domain adaptation techniques such as DANN, Wasserstein DANN, CORAL, and ASS to align features between simulated and real data distributions.
- Train YOLO-based object detection models on various combinations of simulated and real data, using mAP and precision/recall as evaluation metrics.
Experimental results
Research questions
- RQ1Can deep learning models achieve acceptable performance on real-world defect detection when trained exclusively on synthetic data?
- RQ2Can the addition of real healthy images to a simulated defective dataset improve model generalization, or does it induce domain shift and overfitting?
- RQ3Does combining simulated and real training data lead to better performance than using real data alone in industrial defect inspection?
- RQ4To what extent do domain adaptation techniques improve the generalization of models trained on simulated data when tested on real data?
- RQ5Can the proposed simulation pipeline serve as a scalable, reusable framework for industrial quality inspection across diverse parts and defect types?
Key findings
- A model trained exclusively on simulated data achieved a mean Average Precision (mAP) of 0.54 on a real test set, demonstrating that synthetic data alone can enable meaningful defect detection.
- Combining simulated and real training data improved mAP to 0.75, surpassing the 0.72 mAP achieved by models trained on real data alone.
- Adding real healthy images to a simulated defective dataset led to severe overfitting, with mAP dropping to 0.38 and recall falling to 0.10, indicating domain confusion due to distribution mismatch.
- Among tested domain adaptation techniques, only the Supervised Domain Adaptation (ASS) method yielded a marginal improvement, increasing mAP by 0.01 points on the real+simulated setup.
- The limited gains from domain adaptation suggest that improving photorealism and domain randomization in the simulation pipeline may be more effective than complex adaptation methods.
- The results confirm that simulation-based data generation is a viable and complementary approach to real data, especially for rare defect types.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.