首页|期刊导航|河北农业大学学报|基于改进YOLOv11n的干红辣椒外观品质分级方法

基于改进YOLOv11n的干红辣椒外观品质分级方法OA

A method for appearance quality grading of dried hot peppers based on improved YOLOv11n

中文摘要英文摘要

干红辣椒外观品质决定市场价格,传统色选机无法识别断裂、带柄等特殊缺陷,设备成本高;中小加工厂急需低成本、可边缘部署的智能分级方案.为此,本文提出了 1种基于改进YOLOv11n的轻量化干红辣椒外观品质检测方法.首先,基于干红辣椒目标尺寸集中的特点,移除冗余的大目标检测头,构建双头架构;其次,将骨干网络和特征融合层中的C3k2模块替换为自主设计的基于部分卷积(PConv)的轻量级Faster_C2模块,并采用差异化通道配置降低计算量;再次,采用动态点采样DySample替代静态插值,增强椒柄、裂纹等微小缺陷的还原能力;最后,引入无参数SimAM注意力,抑制传送带背景干扰而不增加参数量.实验表明,改进模型的mAP@0.5达98.0%,较原模型提升1.2个百分点;模型参数量1.00 MB,浮点计算量3.4 GFLOPs,分别下降61.2%和46.9%.将改进后的模型部署至Orange Pi 5 Plus嵌入式开发板,与自主设计的干红辣椒分级系统联机验证,结果表明,系统分级准确率稳定在95%以上,效率36 kg/h;连续运行10 h,CPU温度低于55℃,帧率58 FPS,满足工业现场对实时、稳定的要求.

The appearance quality of dried hot peppers determines their market value.However,traditional color sorters cannot identify special defects such as broken chili and chili with stems,and the equipment cost is high.Small and medium-sized processing factories urgently need low-cost,edge-deployable intelligent quality grading solutions.To address this,this paper proposed a lightweight method for grading dried hot peppers based on improved YOLOv11n.First,redundant large-object detection heads were removed to construct a dual-head architecture based on the characteristic of concentrated target sizes in chili.Second,the C3k2 modules in the backbone and feature fusion layers were replaced with a self-designed lightweight Faster_C2 module based on partial convolution(PConv),coupled with the adoption of a differentiated channel configuration to reduce computational complexity.Third,dynamic point sampling DySample underwent substitution for static interpolation,enhancing the restoration capability for minute defects such as chili stems and cracks.Finally,the incorporation of the parameter-free SimAM attention mechanism served to suppress background interference from the conveyor belt without increasing the parameter count.Experimental results demonstrated that the improved model achieved an mAP@0.5 of 98.0%,representing a 1.2 percentage point improvement over the original model whose size experienced a reduction to 1.00 MB with the computational complexity decreased to 3.4 GFLOPs,corresponding to reductions of 61.2%and 46.9%,respectively.The improved model was deployed on an Orange Pi 5 Plus embedded board and integrated with a self-developed grading system for validation.The system achieved a stable grading accuracy above 95%for acceptable peppers at a throughput of 36 kg/h,and the CPU temperature maintains below 55 ℃ and the frame rate sustains at 58 FPS during continuous ten hours operation,meeting the requirements for real-time and stable performance in industrial settings.

贾智博;司永胜

河北农业大学信息科学与技术学院/河北省农业大数据重点实验室,河北保定 071001河北农业大学信息科学与技术学院/河北省农业大数据重点实验室,河北保定 071001

信息技术与安全科学

干红辣椒分级YOLOv11轻量化嵌入式部署

dried hot peppersgradingYOLOv11lightweightembedded deployment

《河北农业大学学报》 2026 (2)

120-129,10

河北省重点研发计划项目(22327404D).

10.13320/j.cnki.jauh.2026.0027

评论