Skip to content
Conference

An improved YOLOv5 approach for real-time steel surface defect detection using attention mechanism and lightweight architecture

Sep 2026 · International Conference on Testing Technology and Automation Engineering · Vol 14383, pp. 143830H - 143830H-5 · 0 citations · 7 references
Engineering

TL;DR

The YOLOv5s-CBAM model introduces the Convolutional Block Attention Module (CBAM), effectively suppressing background noise and significantly enhancing the feature response of weak defects, and the improved lightweight model uses the Ghost module to reconstruct the backbone.

Abstract

Steel surface defect detection has important practical significance in industrial production. High-precision detection ensures product quality, while extreme real-time performance matches the pace of high-speed assembly lines. Existing models struggle with complex background textures and real-time edge deployment. Deployed on embedded platforms, the standard YOLOv5s faces bottlenecks in parameter count and computational burden, and is highly prone to missed detections of tiny defects under complex metal backgrounds. This paper proposes an improved YOLOv5s solution integrating an attention mechanism and a lightweight architecture. The YOLOv5s-CBAM model introduces the Convolutional Block Attention Module (CBAM), effectively suppressing background noise and significantly enhancing the feature response of weak defects. The YOLOv5s-Ghost model uses the Ghost module to reconstruct the backbone, replacing redundant feature map generation with extremely low linear computational cost to greatly reduce parameter count and FLOPs. To address the slow regression convergence of extreme aspect ratio defects like scratches, we replace the CIoU loss with SIoU, introducing joint geometric penalty constraints of angle, distance, and shape. Extensive experiments on the NEU-DET dataset show the improved lightweight model achieves an mAP@0.5 of 0.7010. The inference frame rate rises to 103.1 FPS. This effectively balances detection accuracy and edge-side computational cost, providing a reliable real-time visual inspection solution for high-speed industrial production lines.

View source

Similar papers

Conference Oct 2026

An improved RT-DETR for steel surface defect detection

Reliable identification of steel surface defects plays an important role in industrial inspection, while practical detection remains difficult because of diverse defect appearances, unclear boundaries, weak contrast, and complex background patterns. To address these issues, this paper proposes an improved detection mod...

Yong-Chuan Wang · 0 citations
Sep 2026

Machine vision-based surface defect testing of industrial materials using a lightweight multiscale attention fusion network

A method named global attention mechanism for deeply separable YOLO (simply denoted as GMD-YOLO) network that integrates global context and local information in a multi-scale attention fusion module to improve the recognition of small defects, and an enhanced depth separable convolution to reduce computational cost.

Fu-Min Wang, Jia-Hao Jiang, Kuan Zhang et al. · 0 citations
Open access 2026

A Lightweight Detection System for Aluminum Ingot Surface Defects

Online inspection of surface defects (e.g., flash and slag inclusion) in aluminum ingot casting lines is crucial for ensuring product quality and production efficiency. However, this task faces multiple industrial challenges, including scarce real-world data, small defect scales, and high efficiency requirements. To ad...

Guang-Xu Liu, Batu Nasheng, Wei Zheng et al. · 0 citations
Open access 2026

CSS-YOLO: A Steel Surface Defect Detection Algorithm Based on an Improved YOLO11n

To address the issues of missed detections and insufficient localization accuracy caused by background noise interference, significant scale variations, and irregular geometric shapes of steel surface defects in real industrial scenarios, this paper proposes CSS-YOLO, an improved steel surface defect detection model ba...

Rui Deng, Zhi-Yong Hu, Yong-Jie Guo et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.