基于改进YOLOv12的铝型材工件缺陷检测技术研究
DOI:
CSTR:
作者:
作者单位:

华北理工大学电气工程学院 唐山 063210

作者简介:

通讯作者:

中图分类号:

TN911.73

基金项目:

河北省教育厅科学研究项目(CXY2024013)资助


Research on defect detection technology of aluminum profile workpiece based on improved YOLOv12
Author:
Affiliation:

School of Electrical Engineering, North China University of Science and Technology, Tangshan 063210, China

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对铝型材工件生产中缺陷检测精度低以及小目标缺陷漏检和误检的问题,本文对YOLOv12n模型进行了优化,提出了一种基于YOLO-PCSU的铝型材表面缺陷检测方法。首先,引入PartialConv卷积对YOLOv12模型的A2C2f结构进行改进,设计一种新的结构A2C2f-PConv,减少冗余计算和内存访问的同时加强网络特征提取能力;其次,在特征提取网络引入CoordAttention,在不增加额外计算的基础上提升检测精度;再次,在检测头引入注意力模块SEAM,解决小目标漏检误检问题;最后,通过用U-IoU损失函数替代YOLOv12n模型中的CIoU,加快模型的收敛速度并提高了检测结果的精度。在铝型材工件缺陷数据集中进行实验,检测精度达到90.3%,实验结果相比于原YOLOv12n算法mAP@0.5提升2.3%,参数量降低9%,计算量降低14%。在VOC2012数据集和东北大学热轧带钢表面缺陷数据集上表明改进算法有良好的鲁棒性。

    Abstract:

    To address the issues of low detection accuracy and missed or false detections of small defects in aluminum profile production, this paper proposes an improved YOLOv12n-based method, termed YOLO-PCSU, for surface defect detection. First, a novel A2C2f-PConv structure is designed by integrating PartialConv into the A2C2f module of YOLOv12n, enhancing feature extraction while reducing redundant computation and memory access. Second, CoordAttention is introduced into the backbone to improve detection accuracy without increasing computational cost. Third, the SEAM attention module is added to the detection head to mitigate missed and false detections of small targets. Finally, the U-IoU loss replaces the original CIoU loss to accelerate convergence and enhance prediction precision. Experiments on an aluminum profile defect dataset demonstrate a detection accuracy of 90.3%, with a 2.3% mAP@0.5 improvement over the baseline YOLOv12n, a 9% reduction in parameters, and a 14% reduction in computation. Additional evaluations on the VOC2012 and Northeastern University hot-rolled strip steel surface defect datasets confirm the robustness of the proposed approach.

    参考文献
    相似文献
    引证文献
引用本文

景会成,鲍成明.基于改进YOLOv12的铝型材工件缺陷检测技术研究[J].电子测量技术,2026,49(1):216-225

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2026-02-11
  • 出版日期:
文章二维码

重要通知公告

①《电子测量技术》期刊收款账户变更公告
×
《电子测量技术》
关于防范虚假编辑部邮件的郑重公告