| 摘 要: 针对瓶盖工业生产中缺陷检测的精度与效率问题,提出一种新型单元门控神经网络(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 |