基于D-Fine的棒棒糖微缺陷检测算法OA
Micro-defect detection algorithm for lollipops based on D-Fine
针对糖果缺陷检测中,传统模型精度不够、参数量大和推理速度慢等无法满足高速生产线实时质量管控的痛点问题,以D-Fine模型为基础,提出融合三大核心创新模块的LRF-DFine检测算法.在保持D-Fine模型原有结构和基础上,加入RepGhostCSPELAN轻量化模型,进行模型简化、提高推理速度;利用FMFFN中频特征增强模块和SimAM注意力优化模块,抑制背景影响,凸显重点区域.试验结果表明:较D-Fine模型检测综合效果,LRF-DFine模型的检测性能全面优化,精确率和召回率分别提高3.6,3.4个百分点,mAP@0.5提高3.3个百分点,mAP@0.5∶0.95提高2.0个百分点,参数量降低35.3%,运算量降低27.2%,推理速度提高20.0%.研究为食品工业自动化质量管控提供有效技术方案.
To address the challenges in candy defect detection,where traditional models suffer from insufficient accuracy,large parameter counts,and slow inference speeds that fail to meet the real-time quality control requirements of high-speed production lines,an LRF-DFine detection algorithm integrating three core innovative modules is proposed,based on the D-Fine model.While preserving the original structure and foundation of the D-Fine model,the RepGhostCSPELAN lightweight module is incorporated to simplify the model and improve inference speed.The FMFFN mid-frequency feature enhancement module and the SimAM attention optimization module are utilized to suppress background interference and highlight critical regions.Experimental results show that,compared to the overall detection performance of the D-Fine model,the LRF-DFine model achieves comprehensive optimization in detection performance.Precision and recall are improved by 3.6 and 3.4 percentage points,respectively;mAP@0.5 is increased by 3.3 percentage points,and mAP@0.5∶0.95 is increased by 2.0 percentage points.The parameter count is reduced by 35.3%,computational complexity is decreased by 27.2%,and inference speed is increased by 20.0%.This research provides an effective technical solution for automated quality control in the food industry.
仲智阳;李宁冉;朱金超;朱婷婷;倪超
南京林业大学 机械电子工程学院,南京 210037南京林业大学 机械电子工程学院,南京 210037南京林业大学 机械电子工程学院,南京 210037南京林业大学 机械电子工程学院,南京 210037南京林业大学 机械电子工程学院,南京 210037
轻工纺织
糖果微缺陷检测D-Fine模型小目标注意力机制
candymicro-defect detectionD-Fine modelsmall objectsattention mechanism
《包装与食品机械》 2026 (2)
81-90,10
江苏省产学研合作项目(BY20230943)
评论