A Lightweight RT-DETR Model for Metal Surface Defect Detection Using Multi-Scale Network and Additive Attention Mechanism

IF 2.4 3区 材料科学 Q2 MATERIALS SCIENCE, CHARACTERIZATION & TESTING
Zongchen Hao, Bo Liu, Binrui Xu
{"title":"A Lightweight RT-DETR Model for Metal Surface Defect Detection Using Multi-Scale Network and Additive Attention Mechanism","authors":"Zongchen Hao,&nbsp;Bo Liu,&nbsp;Binrui Xu","doi":"10.1007/s10921-025-01251-4","DOIUrl":null,"url":null,"abstract":"<div><p>In the industrial production of metals, surface defect detection is crucial for ensuring product quality and optimizing production line efficiency. Although deep learning algorithms are effective for detecting metal surface defects, their complexity can often slow down the detection process. To achieve a balance between detection accuracy and efficiency, this study proposes an enhanced and lightweight Real-Time Detection Transformer (RT-DETR) network and incorporates a multi-scale residual feature extraction (MSRFE) module, termed as MSRFE-RTDETR. The MSRFE module is specifically designed to manage varying defect shapes while reducing the parameter count. To further enhance detection accuracy, a context feature information fusion (CFIF) module is introduced, which integrates deep and shallow features to prevent information loss. Additionally, an efficient encoder based on additive attention (EEAA) is employed to overcome the limitations of matrix multiplication inherent in traditional multi-head attention mechanisms, thereby increasing the model's detection speed. Compared to the baseline model, the proposed algorithm improves the average precision on the public NEU-DET dataset by 2.4%, increases detection speed by 39.69 FPS, and enhances all lightweight metrics. Its generalization is validated on GC10-DET and ASSDD datasets, demonstrating superior performance.</p></div>","PeriodicalId":655,"journal":{"name":"Journal of Nondestructive Evaluation","volume":"44 3","pages":""},"PeriodicalIF":2.4000,"publicationDate":"2025-08-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Nondestructive Evaluation","FirstCategoryId":"88","ListUrlMain":"https://link.springer.com/article/10.1007/s10921-025-01251-4","RegionNum":3,"RegionCategory":"材料科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MATERIALS SCIENCE, CHARACTERIZATION & TESTING","Score":null,"Total":0}
引用次数: 0

Abstract

In the industrial production of metals, surface defect detection is crucial for ensuring product quality and optimizing production line efficiency. Although deep learning algorithms are effective for detecting metal surface defects, their complexity can often slow down the detection process. To achieve a balance between detection accuracy and efficiency, this study proposes an enhanced and lightweight Real-Time Detection Transformer (RT-DETR) network and incorporates a multi-scale residual feature extraction (MSRFE) module, termed as MSRFE-RTDETR. The MSRFE module is specifically designed to manage varying defect shapes while reducing the parameter count. To further enhance detection accuracy, a context feature information fusion (CFIF) module is introduced, which integrates deep and shallow features to prevent information loss. Additionally, an efficient encoder based on additive attention (EEAA) is employed to overcome the limitations of matrix multiplication inherent in traditional multi-head attention mechanisms, thereby increasing the model's detection speed. Compared to the baseline model, the proposed algorithm improves the average precision on the public NEU-DET dataset by 2.4%, increases detection speed by 39.69 FPS, and enhances all lightweight metrics. Its generalization is validated on GC10-DET and ASSDD datasets, demonstrating superior performance.

基于多尺度网络和加性注意机制的金属表面缺陷检测轻量化RT-DETR模型
在金属工业生产中,表面缺陷检测对于保证产品质量和优化生产线效率至关重要。虽然深度学习算法对于检测金属表面缺陷是有效的,但其复杂性往往会减慢检测过程。为了实现检测精度和效率之间的平衡,本研究提出了一种增强的轻量级实时检测变压器(RT-DETR)网络,并结合了多尺度残余特征提取(MSRFE)模块,称为MSRFE- rtdetr。MSRFE模块专门设计用于管理不同的缺陷形状,同时减少参数计数。为了进一步提高检测精度,引入了上下文特征信息融合(CFIF)模块,将深层特征和浅层特征融合在一起,防止信息丢失。此外,采用基于加性注意(EEAA)的高效编码器,克服了传统多头注意机制固有的矩阵乘法的局限性,提高了模型的检测速度。与基线模型相比,该算法在公共nue - det数据集上的平均精度提高了2.4%,检测速度提高了39.69 FPS,并且所有轻量级指标都得到了增强。在GC10-DET和ASSDD数据集上对其泛化进行了验证,证明了其优越的性能。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Nondestructive Evaluation
Journal of Nondestructive Evaluation 工程技术-材料科学:表征与测试
CiteScore
4.90
自引率
7.10%
发文量
67
审稿时长
9 months
期刊介绍: Journal of Nondestructive Evaluation provides a forum for the broad range of scientific and engineering activities involved in developing a quantitative nondestructive evaluation (NDE) capability. This interdisciplinary journal publishes papers on the development of new equipment, analyses, and approaches to nondestructive measurements.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信