Design of lightweight metal surface defect detection technology for YOLOv7-tiny using Anchor-Free algorithm
Yi-Cheng Huang1, Jun-Chang Lin2, Yi-Ze Wu2
1Department of Mechanical Engineering, National Chung Hsing University, Taichung, 402202, Taiwan. ychuang66@dragon.nchu.edu.tw.
Abstract:
Accurate identification of defect morphology and size distribution on metallic surfaces is crucial for manufacturing, particularly in the steel industry where such materials are widely used. This study proposes a novel lightweight architecture based on YOLOv7-tiny to address the challenges of real-time metallic surface defect detection. The original anchor-based detection head is replaced with an anchor-free mechanism to reduce missed detections of defects with extreme aspect ratios, while a logarithmic transformation-based enhancement is introduced to strengthen defect features. The backbone is replaced by the lightweight MobileNetV3-large network to reduce the number of parameters, and an Efficient Multi-Scale Attention (EMA) module is embedded into the bottleneck structure to increase target importance and suppress background interference, especially for small defects. In addition, a bidirectional feature pyramid network with adaptively spatial feature fusion (BAFPN) is integrated as the Head architecture to provide richer semantic information. The improved model was evaluated on the DAGM 2007, NEU-DET, and GC10-DET datasets, which encompass metal surface defects with varying degrees of complexity. The results demonstrate an average increase of 6.24% in mean average precision (mAP) and an inference speed over 90 FPS, confirming both the efficacy and real-time capability of the proposed method.
More Related Videos
06:45Author Spotlight: Characterizing Porous Materials for Aiding the Development of Robust Metal-Organic Frameworks with Adsorption Behavior
Published on: March 8, 2024
09:20A Method to Manipulate Surface Tension of a Liquid Metal via Surface Oxidation and Reduction
Published on: January 26, 2016
Related Concept Videos
The Anchoring-and-Adjustment Heuristic
Anchoring Junctions
Lipids as Anchors
The carboxy-terminal of most of the prenylated proteins, such as Ras proteins, contains...
Bonding in Metals
Metallic Solids
All metallic solids exhibit high thermal and electrical conductivity, metallic luster, and malleability....
Alkali Metals
Table 1: Properties of the alkali metals
