GM-DETR: Research on a Defect Detection Method Based on Improved DETR
Open Access
Abstract
Defect detection is an indispensable part of the industrial intelligence process. The introduction of the DETR model marked the successful application of a transformer for defect detection, achieving true end-to-end detection. However, due to the complexity of defective backgrounds, low resolutions can lead to a lack of image detail control and slow convergence of the DETR model. To address these issues, we proposed a defect detection method based on an improved DETR model, called the GM-DETR. We optimized the DETR model by integrating GAM global attention with CNN feature extraction and matching features. This optimization process reduces the defect information diffusion and enhances the global feature interaction, improving the neural network’s performance and ability to recognize target defects in complex backgrounds. Next, to filter out unnecessary model parameters, we proposed a layer pruning strategy to optimize the decoding layer, thereby reducing the model’s parameter count. In addition, to address the issue of poor sensitivity of the original loss function to small differences in defect targets, we replaced the L1 loss in the original loss function with MSE loss to accelerate the network’s convergence speed and improve the model’s recognition accuracy. We conducted experiments on a dataset of road pothole defects to further validate the effectiveness of the GM-DETR model. The results demonstrate that the improved model exhibits better performance, with an increase in average precision of 4.9% (mAP@0.5), while reducing the parameter count by 12.9%.Keywords
Funding Information
- Natural Science Foundation of China (62072362, 12101479, 2020ZDLGY07-05, 2021JQ-660, 23CGZHCYH0008)
- Shaanxi Provincial Key Industry Innovation Chain Program (62072362, 12101479, 2020ZDLGY07-05, 2021JQ-660, 23CGZHCYH0008)
- Natural Science Basis Research Plan in Shaanxi Province of China (62072362, 12101479, 2020ZDLGY07-05, 2021JQ-660, 23CGZHCYH0008)
- Xi’an Major Scientific and Technological Achievements Transformation Industrialization Project (62072362, 12101479, 2020ZDLGY07-05, 2021JQ-660, 23CGZHCYH0008)
This publication has 40 references indexed in Scilit:
- Fast vehicle detection algorithm in traffic scene based on improved SSDMeasurement, 2022
- DefectTR: End-to-end defect detection for sewage networks using a transformerConstruction and Building Materials, 2022
- Real-time detection of uneaten feed pellets in underwater images for aquaculture using an improved YOLO-V4 networkComputers and Electronics in Agriculture, 2021
- Automatic defect detection and segmentation of tunnel surface using modified Mask R-CNNMeasurement, 2021
- State of the Art in Defect Detection Based on Machine VisionInternational Journal of Precision Engineering and Manufacturing-Green Technology, 2021
- One stage detector (RetinaNet)-based crack detection for asphalt pavements considering pavement distresses and surface objectsJournal of Civil Structural Health Monitoring, 2020
- End-to-End Object Detection with Transformers2020
- CBAM: Convolutional Block Attention Module2018
- Real-time Detection of Steel Strip Surface Defects Based on Improved YOLO Detection NetworkIFAC-PapersOnLine, 2018
- Evaluation of Defect Detection in Textile Images Using Gabor Wavelet Based Independent Component Analysis and Vector Quantized Principal Component Analysis2013