Abstract
Sheet metal stamping is widely used for high-volume production, yet it frequently results in defects that compromise component quality. Human inspection, the current standard, is often unreliable and costly at industrial speeds. This paper proposes an automated inspection framework utilizing computer vision and deep learning. A central focus is overcoming the harsh lighting and high reflectivity of metal parts, which typically obscure defect details in standard imaging. By employing High Dynamic Range (HDR) imaging, the framework captures a broader range of radiance, enabling more robust defect detection. Experimental results on 'Nakajima' samples demonstrate that HDR-based models achieve significantly higher accuracy and fewer false positives compared to traditional Low Dynamic Range (LDR) approaches.
Introduction
In high-volume sheet metal stamping, "splits"—through-thickness fractures—are critical defects that render parts unusable. The primary technical challenge for automated computer vision in this field is lighting. Industrial environments feature harsh overhead illumination, and sheet metal is highly reflective. Standard LDR cameras often produce images where defect details are lost in "blown-out" highlights (specular reflections) or deep shadows. If the camera cannot capture the detail, even advanced deep learning models fail to identify the defect. This research addresses this bottleneck by implementing an HDR-based detection pipeline.
Methodology
The proposed framework replaces standard LDR photography with HDR imaging to ensure comprehensive detail capture:
- HDR Capture and Merging: The system utilizes exposure bracketing, taking a sequence of nine images at varying exposure times (from 1/4000s to 1/15s). These exposures are merged using the Debevec algorithm to create a single HDR radiance map.
- Deep Learning Architecture: A YOLOv5 (v3.1) object detector was adapted to handle HDR data. The study evaluated four input representations: Single Optimal Exposure (baseline), 3-Image Sequence (concatenated exposures), Tone-Mapped Images (using Reinhard and Ward algorithms), and Normalized HDR (raw radiance values normalized to a 0-1 range).
- Backbone Modification: To accommodate high-bit-depth or multi-channel data, the initial layers of the YOLOv5 backbone were modified with a
SpaceToDepthfocus layer, ensuring effective feature fusion.
Experimental Setup
The study utilized a custom dataset of 150 "Nakajima" samples—hemispherical shapes used in standard metal forming tests—pressed with an industrial stamping press. The dataset included 104 "splits" and 40 "necks" (localized thinning). A five-fold cross-validation approach was employed to ensure the robustness and generalizability of the results.
Results and Discussion
A key contribution of this work is the mathematical validation of information loss in LDR images. Using Shannon Entropy, the authors demonstrated that information content varies significantly across exposure times, and no single exposure captures the full scene detail required for reliable defect detection.
Notably, the raw Normalized HDR approach outperformed tone-mapped versions. While tone-mapping makes HDR images appear "natural" to human observers, deep learning models perform superiorly when provided with uncompressed radiance data.
Key performance metrics include:
- Accuracy: The HDR-based model achieved a 98.9% mAP50, representing a 7.4% improvement over the best single-exposure LDR model.
- Robustness: In areas of high reflection, the HDR model showed a 20% improvement in recall.
- False Positives: At a confidence threshold of 0.2, the HDR model produced only 6 false positives, compared to 32 for LDR-based methods.
- Inference Speed: Inference time was approximately 6.7ms per image on an NVIDIA RTX 5000, making it suitable for real-time industrial production lines.
Conclusion
HDR imaging significantly enhances the reliability of automated defect detection in reflective manufacturing environments. While current bracketing techniques are too slow for the fastest stamping presses, the emergence of native HDR cameras offers a viable path toward full-speed industrial deployment. Future research will focus on scaling the dataset and optimizing hyperparameters for the specific geometric characteristics of stamping defects.
Summary updated