Abstract
Automated Optical Inspection (AOI) technology is crucial for industrial defect detection but struggles with shadows and surface reflectivity, resulting in false positives and missed detections, especially on non-planar parts. To address these issues, a novel defect detection technique based on deep learning and photometric stereo vision was proposed, along with the creation of the Metal Surface Defect Dataset (MSDD). The proposed Stroboscopic Illuminant Image Acquisition (SIIA) method uses a specially arranged illuminant setup and a Taylor Series Channel Mixer (TSCM) to blend multi-angle illumination images into pseudo-color images. This approach enables end-to-end defect detection using universal object detectors. The method involves mapping color space transformations to spatial domain transformations and utilizing hue randomization for data augmentation. Four object detection methods (FCOS, YOLOv5, YOLOv8, and RT-DETR) were validated on the MSDD, achieving an mAP of 86.1%, surpassing traditional methods. The MSDD includes 138,585 single-channel images and 9,239 mixed images, covering eight defect types. This dataset is essential for automated visual inspection of metal surfaces and is freely accessible for research purposes.
Introduction
Automated Optical Inspection (AOI) is the backbone of modern manufacturing, yet it faces a significant challenge when dealing with complex metal parts. Standard 2D imaging is cost-effective but often fails to distinguish between harmless surface stains and critical structural defects like deep scratches, as both can appear as simple dark pixels. Conversely, 3D imaging techniques like laser scanning provide the necessary depth information but are typically too slow and expensive for high-speed production lines.
This "Goldilocks" problem is most acute for complex structured parts—components with curves, holes, and non-planar surfaces where light bounces unpredictably. To bridge this gap, researchers have developed a novel approach that combines the speed of 2D capture with the geometric insights of photometric stereo vision.
Methodology
The proposed pipeline transforms multi-angle lighting data into a format that standard deep learning models can easily interpret. The process involves several key innovations:
- Stroboscopic Illuminant Image Acquisition (SIIA): A specialized ring of lights flashes sequentially, capturing multiple images of a part from different angles in under a second (0.96s).
- Taylor Series Channel Mixer (TSCM): Instead of simply stacking images, the researchers used a 4th-order Taylor series expansion (inspired by Kolmogorov-Arnold Networks) to blend multi-angle shots into a single RGB "pseudo-color" image. In these images, color variations represent surface normals and geometry rather than just reflected light.
- Phase-Invariant Feature Module (PIFM): The team realized that shifting the "hue" of their pseudo-color images is mathematically equivalent to physically rotating the light sources. This allowed for massive data augmentation, making the model robust against variations in the physical lighting setup.
- VQ-VAE Optimization: A Vector Quantized Variational Autoencoder was used to optimize the channel mixer, ensuring the resulting pseudo-color images retained maximum structural information with minimal loss.
The Metal Surface Defect Dataset (MSDD)
A major contribution of this work is the release of the Metal Surface Defect Dataset (MSDD). Unlike existing benchmarks like NEU-DET or GC10-DET, which focus on flat surfaces, MSDD is specifically designed for complex 3D geometries.
The dataset includes 138,585 single-channel images and 9,239 mixed pseudo-color images. It features 9,332 annotated instances across eight distinct defect types: Inclusion, Cut marks, Stamp collapse, Mould scuffing, Dent, Pockmarks, Parting line crack, and Misrun.
Key Results and Discussion
The approach was validated using four state-of-the-art object detectors: FCOS, YOLOv5, YOLOv8, and RT-DETR.
- Performance: YOLOv8-l achieved the highest accuracy with an mAP of 86.1%.
- Ablation Success: The inclusion of TSCM and PIFM resulted in an increase of up to 18.7% in average precision for specific defects compared to static image mixing.
- Geometric Clarity: The system successfully distinguished between shadows caused by physical protrusions and actual surface inclusions—a task where traditional 2D systems almost always fail.
Conclusion and Future Work
By encoding 3D surface geometry into 2D pseudo-color images, this method allows "off-the-shelf" object detectors to achieve high-accuracy results on complex parts. While the system currently struggles with highly specular (mirror-like) surfaces, future work will aim to refine the SIIA method for reflective materials and expand testing to non-metallic surfaces like wood and leather.
Summary updated