Scientific Reports (Nov 2024)

A steel defect detection method based on edge feature extraction via the Sobel operator

  • Yuanyuan Wang,
  • Tongtong Yin,
  • Xiuchuan Chen,
  • Abdullahi Suleiman Hauwa,
  • Boyang Deng,
  • Yemeng Zhu,
  • Shangbing Gao,
  • Haiyan Zang,
  • Hu Zhao

DOI
https://doi.org/10.1038/s41598-024-79205-5
Journal volume & issue
Vol. 14, no. 1
pp. 1 – 21

Abstract

Read online

Abstract Scratches and cracks in steel severely affect its service life and performance. However, owing to the irregular shapes and sizes of steel surface defects, defects within the same class may be different, whereas defects between classes may be similar. Existing methods focus only on spatial information, resulting in low detection accuracy. To alleviate these problems, this paper proposes the ECDY (EIFEM CARAFE DyHead) network to enhance the detection capability of steel defects. We first design a feature extraction module that focuses on the edge information of feature contours. This module uses the Sobel operator to extract the edge information of a feature and fuses it with the overall spatial information so that richer semantic information can be obtained. The module has improved accuracy in the YOLOv5, YOLOv8, and YOLOv10 versions, and uses fewer parameters and calculations. In particular, in YOLOv8x, [email protected] increased by 2.5%, and the number of parameters was reduced by 12.4 M. Second, to retain the detailed information in the feature pyramid, and to better reconstruct features, we choose the content-aware reassembly feature method (CARAFE) as the upsampling method. Finally, the detection head was replaced with a dynamic unified detection head (DyHead) to adapt to different defect sizes and different task requirements. Compared with YOLOv8s, the proposed method improves precision by 1.6%, recall by 4%, and [email protected] by 4%. This value is 4.2% higher than the [email protected] of the current SOTA model RT-DETR-L in the field of object detection and has 23.2 M fewer parameters.

Keywords