赣南脐橙未成熟果实与叶片的高精度检测与识别OA
High-precision Detection and Identification of Unripe Fruits and Leaves of Gannan Navel Orange
在赣南脐橙种植早期,精准检测果实与叶片对及时发现病虫害、提升果实品质和产量具有重要意义.然而,未成熟脐橙果皮与叶片颜色相近,实际种植场景复杂,现有算法很难平衡精度与速度问题.为此,本文基于YOLOv8n模型提出CPH-YOLOv8n算法,该算法用含动态注意力机制的上下文注意力拼接模块替换传统Concat模块,有效提升检测精度;针对果皮、叶片颜色相似导致的边界框回归速度慢等问题引入Powerful-IoUv2损失函数,优化回归过程,加速模型收敛;为实现模型轻量化引入小波变换下采样模块,在保证精度的基础上,降低模型参数量与计算复杂度.实验结果表明,改进算法表现出色,在保持mAP0.5为95.3%的高精度时,召回率显著提升,计算量减至7.8 GFLOPs,检测时间缩短至2 ms.与原始算法相比,在精度相当的前提下,召回率提升3.7百分点,计算量降低3.7%,检测速度提升了42.9%.可见CPH-YOLOv8n算法能够在复杂环境下实现果实与叶片高召回率的快速检测,有效平衡了检测精度与速度.
In the early stage of navel orange planting,accurate detection of fruits and leaves is of great significance for timely de-tection of pests and diseases,and improvement of fruit quality and yield.However,the peel and leaf color of immature navel or-anges are similar,and the actual planting scenarios are complex,so it is difficult for existing algorithms to balance accuracy and speed.To this end,based on the YOLOv8n model,the CPH-YOLOv8n algorithm is proposed,which replaces the traditional Concat module with a contextual attention splicing module with dynamic attention mechanism,effectively improving detection ac-curacy.In order to solve the problem of slow bounding box regression caused by the similar color of fruit peel and leaf,the Powerful-IoUv2 loss function is introduced to optimize the regression process and accelerate the convergence of the model.In or-der to realize the lightweight of the model,the wavelet transform downsampling module is introduced to reduce the number of model parameters and the computational complexity on the basis of ensuring the accuracy.Experimental results show that the im-proved algorithm performs well,and when maintaining a high accuracy of 95.3%of mAP0.5,the recall is significantly improved,the computational amount is reduced to 7.8 GFLOPs,and the detection time is reduced to 2 ms.Compared with the original algo-rithm,the recall rate is increased by 3.7 percentage points,the computational amount is reduced by 3.7%,and the detection speed is increased by 42.9%under the premise of comparable accuracy.It can be seen that the CPH-YOLOv8n algorithm can balance the accuracy and speed of fruit and leaf detection in complex environments.
罗会春;杨贞;温海桥;殷志坚
江西科技师范大学信息工程学院,江西 南昌 330038江西科技师范大学信息工程学院,江西 南昌 330038江西科技师范大学信息工程学院,江西 南昌 330038江西科技师范大学信息工程学院,江西 南昌 330038
信息技术与安全科学
赣南脐橙目标检测图像处理YOLOv8n
Gannan navel orangeobject detectionimage processingYOLOv8n
《计算机与现代化》 2026 (7)
52-59,8
国家自然科学基金资助项目(62261026)江西省自然科学基金杰出青年项目(20232ACB212006)
评论