基于改进RT-DETR的锻件表面缺陷检测算法OA
Surface Defect Detection Algorithm for Forgings Based on RT-DETR
锻件表面缺陷危害大,检测效率低,针对目前锻件表面缺陷检测存在的问题,提出了一种基于改进RT-DETR的算法.在湖北三环锻造有限公司车辆转向节生产车间采集磁粉检测图像作为数据集;提出轻量级跨阶段热传导模块,将模拟热扩散过程引入频域建模机制,实现全局感知并抑制高频噪声;引入上下文感知特征金字塔模块,通过动态通道对齐和空间注意力引导实现多尺度特征融合,增强语义一致性和目标的上下文融合;引用一种动态位置偏置模块增强对跨尺度特征的提取能力.在锻件表面裂纹数据集的实验结果表明,模型精度达到87.9%,参数量和计算量分别减少20.7%和9.3%,优于其他主流算法.在NEU-DET数据集上,改进后的RT-DETR模型在mAP上相较基准模型提升1.2个百分点,证明算法具有泛化性.综上,该算法精度提高,模型复杂度降低,适用于实际生产环境部署与应用.
The forging surface defects are harmful with low detection efficiency.To address the existing problems of forg-ing surface defects detection,this paper proposes an algorithm based on improved RT-DETR.First,it collects magnetic particle inspection images as datasets in the vehicle steering knuckle manufacturing workshop of Hubei Sanhuan Forging Co.Then,a lightweight cross-stage heat conduction module is proposed,which introduces a simulated heat diffusion pro-cess into the frequency-domain modeling mechanism to achieve global perception and suppress high-frequency noise;meanwhile,it introduces context guide feature pyramid network to realize multi-scale feature fusion through dynamic channel alignment and spatial attention guidance,thereby enhancing semantic consistency and contextual integration of targets;finally,it uses dynamic position bias(DPB)module to enhance the extracting ability of cross-scale features.The experimental results on the forging surface crack dataset show that the mAP value reaches 87.9%,and the parameters and FLOPs are reduced by 20.7%and 9.3%,which is better than other mainstream algorithms.On the NEU-DET dataset,the improved RT-DETR model improves 1.2 percentage points in mAP compared to the benchmark model,which proves that the algorithm is generalizable.In conclusion,the algorithm has improved accuracy and reduced model complexity,it is suitable for deployment and application in real manufacturing situations.
张国文;张上;张岳;李琼;张军
三峡大学 湖北省建筑质量检测装备工程技术研究中心,湖北 宜昌 443002三峡大学 湖北省建筑质量检测装备工程技术研究中心,湖北 宜昌 443002三峡大学 湖北省建筑质量检测装备工程技术研究中心,湖北 宜昌 443002三峡大学 计算机与信息学院,湖北 宜昌 443002三峡大学 计算机与信息学院,湖北 宜昌 443002
信息技术与安全科学
实时检测转换器(RT-DETR)缺陷检测特征提取锻件动态位置偏置模块
real-time detection transformer(RT-DETR)defect detectionfeature extractionforgingsdynamic positional bias module
《计算机工程与应用》 2026 (1)
112-123,12
湖北省数字经济试点示范建设专项(2312-420625-04-02-996363)湖北省国家级大学生创新创业训练计划(S202311075047)国家级大学生创新创业训练计划(202111075012,202011075013).
评论