现代制造工程 ›› 2025, Vol. 543 ›› Issue (12): 83-96.doi: 10.16731/j.cnki.1671-3133.2025.12.011

• 仪器仪表/检测/监控 • 上一篇    下一篇

基于结构重参数化和共享卷积的实时工业缺陷检测方法

苏源1, 孙丹枫1, 赵建勇1, 巫宝军2   

  1. 1 杭州电子科技大学工业互联网研究院,杭州 310000;
    2 浙江辉煌三联实业股份有限公司,金华 321000
  • 收稿日期:2025-01-20 出版日期:2025-12-18 发布日期:2026-01-06
  • 通讯作者: 孙丹枫,博士,副教授,硕士研究生导师,主要研究方向为可编程控制技术、工业图像处理和柔性制造等。E-mail:danfeng.sun@hdu.edu.cn
  • 作者简介:苏源,硕士研究生,主要研究方向为工业图像处理与目标检测。赵建勇,博士,副教授,硕士研究生导师,主要研究方向为图像处理、嵌入式系统和智能控制。E-mail:221050042@hdu.edu.cn;wbj516188@qq.com
  • 基金资助:
    *国家自然科学基金资助项目(62303145)

Real-time industrial defect detection method based on structural re-parameterization and shared convolution

SU Yuan1, SUN Danfeng1, ZHAO Jianyong1, WU Baojun2   

  1. 1 Institute of Industrial Internet,Hangzhou Dianzi University,Hangzhou 310000,China;
    2 Jinhua TriLink Huihuang Co.,Ltd.,Jinhua 321000,China
  • Received:2025-01-20 Online:2025-12-18 Published:2026-01-06

摘要: 针对现代工业生产中高效缺陷检测的需求,提出了一种基于结构重参数化和共享卷积的实时工业缺陷检测方法,旨在提高检测精度与推理速度,降低模型复杂度。在特征提取阶段,设计了基于部分通道卷积与结构重参数化的LRD-ELAN模块。通过重参数化模块与可变形卷积的引入,强化特征表达能力,减少冗余计算。在检测头设计中,提出轻量化GS-Head模块,利用Ghost共享卷积降低检测头计算量,结合组归一化提升小批量训练的稳定性。此外,在边界框预测分支中引入轻量级特征缩放层,增强多尺度目标检测能力,并使用inner-MPDIoU损失函数替代传统CIoU损失函数,进一步优化边界框预测性能。试验结果表明,在NEU-DET数据集上,该模型的mAP50较基线模型提升了2.46 %,参数量和计算量分别减少了37.10 %和33.58 %,推理帧率达286.1 FPS,提升了10.82 %,具备良好的实时性。在PKU-Market-PCB数据集的泛化测试中,mAP50较基线模型提升了1.91 %,表现出较强的泛化能力和高效性。该模型在速度、精度与复杂度之间实现了良好平衡,展现出在工业缺陷检测中的应用潜力与优势。

关键词: 实时缺陷检测, 结构重参数化, 共享卷积, 组归一化, 模型轻量化, 损失函数

Abstract: A real-time industrial defect detection method was proposed to address the need for efficient defect detection in modern industrial production. The method was based on structural re-parameterization and shared convolution.It aimed to enhance detection accuracy and inference speed while reducing model complexity. In the feature extraction stage,the LRD-ELAN module was designed using partial channel convolution and structural re-parameterization. Re-parameterization modules and deformable convolution were introduced.These strengthened feature representation and reduced redundant computations. A lightweight GS-Head module was designed for the detection head. Ghost shared convolution was used to reduce computational costs. Group normalization was incorporated to improve stability during small-batch training. A lightweight feature scaling layer was introduced in the bounding box prediction branch to enhance multi-scale object detection capability. The inner-MPDIoU loss function replaced traditional CIoU loss function.This further optimized bounding box prediction performance. Experimental results showed that the proposed model improved mAP50 by 2.46 % over the baseline model on the NEU-DET dataset.Parameter size and computational complexity were reduced by 37.10 % and 33.58 %,respectively. The inference frame rate reached 286.1 FPS,an improvement of 10.82 %,and demonstrated good real-time performance. In generalization tests on the PKU-Market-PCB dataset,the mAP50 was increased by 1.91 %. The model demonstrated strong generalization ability and efficiency. It achieved a good balance between speed,accuracy,and complexity. This highlighted its potential for industrial defect detection.

Key words: real-time defect detection, structural re-parameterization, shared convolution, group normalization, model lightweigh-ting, loss function

中图分类号: 

版权所有 © 《现代制造工程》编辑部 
地址:北京市东城区东四块玉南街28号 邮编:100061 电话:010-67126028 电子信箱:2645173083@qq.com
本系统由北京玛格泰克科技发展有限公司设计开发 技术支持:support@magtech.com.cn