SSD-Faster Net: A Hybrid Network for Industrial Defect Inspection

Jingyao Wang, Naigong YuarXiv 2022

Abstract

The quality of industrial components is critical to the production of special equipment such as robots. Defect inspection of these components is an efficient way to ensure quality. In this paper, we propose a hybrid network, SSD-Faster Net, for industrial defect inspection of rails, insulators, commutators etc. SSD-Faster Net is a two-stage network, including SSD for quickly locating defective blocks, and an improved Faster R-CNN for defect segmentation. For the former, we propose a novel slice localization mechanism to help SSD scan quickly. The second stage is based on improved Faster R-CNN, using FPN, deformable kernel(DK) to enhance representation ability. It fuses multi-scale information, and self-adapts the receptive field. We also propose a novel loss function and use ROI Align to improve accuracy. Experiments show that our SSD-Faster Net achieves an average accuracy of 84.03%, which is 13.42% higher than the nearest competitor based on Faster R-CNN, 4.14% better than GAN-based methods, more than 10% higher than that of DNN-based detectors. And the computing speed is improved by nearly 7%, which proves its robustness and superior performance.

Introduction

In industrial manufacturing—producing everything from power line insulators to electronic commutators—detecting surface defects is a high-stakes task. Traditional manual inspection is slow and prone to human error, while standard computer vision methods often struggle with scale variance, high computational overhead for high-resolution images, and complex backgrounds.

SSD-Faster Net is a novel two-stage hybrid deep learning architecture designed to solve the "speed vs. precision" trade-off in industrial defect inspection. By combining a streamlined SSD (Single Shot MultiBox Detector) for rapid candidate localization with an enhanced Faster R-CNN for pixel-level segmentation, the model achieves superior accuracy while improving computational speed by approximately 7% over standard baselines.

The SSD-Faster Net Architecture

The proposed system follows a "coarse-to-fine" hybrid approach divided into two distinct stages to optimize both speed and detection quality.

The two-stage architecture of SSD-Faster Net, featuring a slicing mechanism for fast localization followed by an improved Faster R-CNN for precision segmentation.

Stage 1: Fast Localization (The SSD Stage)

Instead of running a heavy segmentation model on the entire image, the system first uses a Slice Localization Mechanism. The input image is divided into patches, and a simplified SSD scans these patches to identify "defective blocks." To maintain high speed, the authors reduced the complexity of the standard SSD, using only three default boxes and three feature map sizes. This stage acts as a filter, discarding "clean" patches and passing only high-probability defect areas to the next stage.

Stage 2: Precision Segmentation (The Improved Faster R-CNN)

The candidate patches are then processed by a heavily modified Faster R-CNN:

  • Feature Pyramid Network (FPN): Fuses multi-scale information to better detect defects of varying sizes.
  • Deformable Convolutional Kernels (DK): These adapt their receptive field to the actual shape of the defect, which is crucial for irregular cracks.
  • ROI Align: Replaces traditional ROI Pooling to eliminate quantization errors, preserving spatial accuracy.
  • Custom Loss Function: A new "patch loss" ($L_{pat}$) calculates the average binary cross-entropy of defects within each patch, improving semantic segmentation.

Experimental Evaluation

The model was evaluated on three diverse industrial datasets representing different materials and defect types.

Examples from the CPLID (insulators) and Kolektor (electronic commutators) datasets used to train and validate the SSD-Faster Net.
  1. CPLID (Chinese Power Line Insulator Dataset): 600 normal and 248 synthetic defective images of power line insulators.
  2. KolektorSDD: 399 images of electronic commutators (52 with visible defects), featuring complex textures.
  3. Severstal: A large-scale steel strip surface defect dataset containing over 12,000 training images.

Key Results

  • Accuracy: SSD-Faster Net achieved an average accuracy of 84.03%.
  • Comparative Performance: It outperformed standard Faster R-CNN by 13.42% and GAN-based methods by 4.14%.
  • Efficiency: The "slicing" strategy resulted in a 7% increase in computing speed compared to processing the full image through a standard detector.
  • Robustness: The model maintained high performance across ceramics, electronics, and steel.

Discussion and Conclusion

The most significant insight of this work is the "Filter Philosophy." By using a computationally "cheap" SSD-based filter first, the model drastically reduces the number of pixels the heavy Faster R-CNN needs to process. Furthermore, the use of Deformable Kernels allows the network to "wrap" its focus around the actual geometry of irregular defects, significantly boosting representation power.

While highly effective, the model's sensitivity in Stage 1 is a point for future improvement; if the SSD misses a defect patch, the second stage cannot recover it. Future work will focus on improving this initial screening and enhancing model interpretability for industrial trust.

Summary updated

BibTeX
@misc{wang2022ssd,
  author = {Jingyao Wang and Naigong Yu},
  title = {{SSD-Faster Net: A Hybrid Network for Industrial Defect Inspection}},
  year = {2022},
  eprint = {2207.00589},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.00589},
}
Figure