| Literature DB >> 35619764 |
Baizhan Xia1, Hao Luo1, Shiguang Shi1.
Abstract
Defect recognition plays an important part of panel inspection, and most of the current manual inspection methods are used, but the recognition efficiency and recognition accuracy are low. The Fast-Convolutional Neural Network (Faster R-CNN) algorithm is improved, and a surface defect detection algorithm based on the improved Faster R-CNN is proposed. Firstly, the algorithm improves the bilateral filtering algorithm to smooth the image texture background. Subsequently, a feature pyramid network with a shape-variable convolutional ResNet50 network can be applied to acquire defect semantic feature maps to improve the network's ability to express the features of multiscale defects while solving the difficulty problem of many types of defects and variable shapes. To obtain more accurate defect localization information, the algorithm in this paper uses the Region of Interest Align (ROI Align) algorithm instead of the crude Region of Interest Pooling (ROI Pooling) algorithm. Then, an improved attention region recommendation network is used to improve the focus of the model on plate defects and suppress the features of complex background. Finally, a K-means algorithm is added to cluster the defect data to derive anchor frames that are better adapted to the plate defects. In this paper, a dataset containing 3216 images of surface defects of plate metal is made by acquiring surface defect images from the production site of the plate metal factory, which mainly include various defect types. This dataset is used to train and test the algorithm model of this paper, and the results of detection accuracy and detection speed are compared with those of other algorithms, which prove that the algorithm of this paper can achieve real-time detection of plate defects with high detection accuracy.Entities:
Year: 2022 PMID: 35619764 PMCID: PMC9129952 DOI: 10.1155/2022/3248722
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1Different plates.
Figure 2Part of the surface texture of the veneer panel schematic.
Comparison of SSIM indicators with improved bilateral filtering algorithm.
| Number of test images | Average SSIM value | Improvement (%) | |
|---|---|---|---|
| Bilateral filtering | Improved bilateral filtering | ||
| 200 | 0.8031 | 0.8862 | 10.35 |
Figure 3Improved Faster R-CNN based surface defect detection algorithm for plates.
Figure 4Block diagram of PA-FPN.
Figure 5Residual block after introducing deformable convolution.
Figure 6Regional recommendation network detection model with fused attention CBAM.
Figure 7ROI Align principle.
Number of partially defective images.
| Defect type | Training set | Test set | ||
|---|---|---|---|---|
| Number of targets/image/images | Number of targets/image number of images | |||
| Rough shavings | 816 | 432 | 206 | 128 |
| Watermark | 776 | 526 | 201 | 146 |
| Sand marks | 803 | 569 | 293 | 132 |
| Sundries | 796 | 567 | 196 | 125 |
| Gum spot | 626 | 461 | 243 | 130 |
Scratch defect detection results.
| Defective texture background | Number of samples | Number of successful detections | Number of misses | Wrong number of checks | Positive inspection rate (%) |
|---|---|---|---|---|---|
| Same as the training set | 100 | 98 | — | 1 | 98.50 |
| Unlike the training set | 40 | 36 | 3 | 1 | 91.60 |
| Total | 140 | 134 | 4 | 2 | 96.51 |
Figure 8Performance of plate image detection based on Faster-RCNN algorithm.
Effect of the number of deformable convolution layers on model performance.
| Ablation experiments | Different strategies | Accuracy (%) | Recall rate (%) | Training time (h) | Average detection (s) |
|---|---|---|---|---|---|
| Number of deformable convolutional layers | 3, 4, 5 | 92.16 | 85.38 | 22 | 0.61 |
| 4, 5 | 96.64 | 89.23 | 18 | 0.52 | |
| 5 (√) | 98.43 | 92.86 | 16 | 0.40 |
Figure 9Detection results for multiple defects.
Comparison of the model proposed in this paper with other algorithms.
| Algorithm | Accuracy (%) | Recall rate (%) | Training time (h) | Average inspection time/image (s) |
|---|---|---|---|---|
| Classification network + attention U-Net | 85.27 | 83.36 | 6 | 0.32 |
| Mask R-CNN | 94.55 | 89.23 | 11 | 0.35 |
| Cascade R-CNN | 92.16 | 86.70 | 18 | 0.52 |
| CBNet | 94.50 | 89.58 | 19 | 0.57 |
| DetectoRs | 95.28 | 90.84 | 16 | 0.43 |
| EfficientDet | 89.74 | 85.41 | 8 | 0.23 |
| YOLOv4 | 87.67 | 84.35 | 5 | 0.11 |
| The model proposed in this paper | 98.43 | 92.86 | 16 | 0.4 |