• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:彭来湖,梁铭宇,陈 秀,徐步都.基于单元门控神经网络的瓶盖缺陷检测[J].软件工程,2026,29(10):62-66.【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
基于单元门控神经网络的瓶盖缺陷检测
彭来湖1,梁铭宇1,陈 秀2,徐步都2
(1.浙江理工大学机械工程学院,浙江 杭州 310018;
2.浙江理工大学龙港研究院,浙江 温州 325802)
laihup@zstu.edu.cn; 2817408175@qq.com; 329173315@qq.com; ab55599@qq.com
摘 要: 针对瓶盖工业生产中缺陷检测的精度与效率问题,提出一种新型单元门控神经网络(CGNet)框架。CGNet采用规则网格将输入图像划分为子图像单元(CellBlock),融合位置编码与通道门控机制,对 RGB三通道特征进行并行提取,并利用门控控制单元(GCU)动态选择特征通路,有效减少了计算冗余。在模型训练中,引入基于滑动窗口的标签二次重构策略,由此引发的样本分布不均衡问题通过融合门控损失(GateLoss)与分类损失(LabelLoss)的联合损失函数进行优化。实验结果表明,CGNet的平均精度均值(mAP)达到93.8%,单张图像检测时间为10.5ms,检测精度与速度均优于FasterR-CNN、YOLOv5等主流对比模型,同时在召回率与计算效率方面展现出显著优势。
关键词: 单元门控神经网络  门控损失  图像检测
中图分类号:     文献标识码: 
Bottle Cap Defect Detection Based on Cell Gating Neural Network
PENG Laihu1, LIANG Mingyu1,CHEN Xiu2,XU Budu2
(1.School of Mechanical Engineering, Zhejiang Sci-Tech University, Hangzhou 310018, China;
2.Longgang Research Institute of Zhejiang Sci-Tech University, Wenzhou 325802, China)
laihup@zstu.edu.cn; 2817408175@qq.com; 329173315@qq.com; ab55599@qq.com
Abstract: To address the accuracy and efficiency challenges of defect detection in industrial bottle cap production, a novel Cell Gating Neural Network (CGNet) framework is proposed. CGNet partitions the input image into sub-image cells (Cell Blocks) using a regular grid, integrates positional encoding with a channel gating mechanism to extract RGB channel features in parallel, and employs a Gate Control Unit (GCU) to dynamically select feature pathways, effectively reducing computational redundancy. During training, a sliding-window-based secondary label reconstruction strategy is introduced, and the resulting sample distribution imbalance is mitigated through a joint loss function that combines gating loss (GateLoss) and classification loss (LabelLoss). Experimental results demonstrate that CGNet achieves a mean Average Precision (mAP) of 93.8% with an inference time of 10.5 milliseconds per image,surpassing mainstream models such as Faster R-CNN and YOLOv5 in both detection accuracy and speed, while also exhibiting significant advantages in recall and computational efficiency.
Keywords: Cell Gating Neural Network  GateLoss  image detection


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区创新路195号 邮政编码:110169
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫