首页|基于改进YOLOv7的复杂背景农间杂草检测

基于改进YOLOv7的复杂背景农间杂草检测

扫码查看
大田作物智慧种植作为智慧农业的重要发展目标,也是未来农业发展方向.农作物生长周期往往伴随着杂草的不断生长,杂草生命力旺盛,与农作物争夺水分、阳光、生长空间,严重影响农作物的正常生长.目前农间除草方式包括人工除草、机械除草、除草剂除草等,不仅耗时耗力且效率低,残留药物甚至造成土壤肥力下降和环境污染.提出一种改进YOLOv7算法实现复杂背景下的农间杂草检测,具备高效性和精准性,以解决现有目标检测模型对识别杂草准确率低和小目标检测率不高的问题.该方法通过引入轻量级的FasterNet结构,使网络模型拥有较高精确度和速度的同时降低参数量;添加CA注意力机制,在不同坐标轴进行注意力池化,使模型学到更准确的特征;将原始YOLOv7的CIoU损失函数更替为Focal-EIoU损失函数,降低样本不平衡性.实验结果表明,基于改进YOLOv7的复杂背景农间杂草检测,平均精度均值mAP为93.7%,较原YOLOv7模型提高4.2%.
Inter-agricultural weed detection in complex backgrounds based on improved YOLOv7
Intelligent planting of field crops as an important development goal of intelligent agriculture,but also the future direction of agricultural development.The growth cycle of crops is often accompanied by the continuous growth of weeds,which are vigorous and compete with crops for water,sunlight and growth space,seriously affecting the normal growth of crops.The current inter-farm weeding methods include manual weeding,mechanical weeding,her-bicide weeding,etc.,which is not only time-consuming and inefficient,but also residual drugs even cause soil fer-tility decline and environmental pollution.In this paper,we propose an improved YOLOv7 algorithm to achieve inter-farm weed detection in complex backgrounds with high efficiency and accuracy,in order to solve the problems of low accuracy of existing target detection models for identifying weeds and low detection rate of small targets.The method reduces the number of parameters by introducing the lightweight FasterNet structure,which enables the net-work model to have higher accuracy and speed;adds the CA attention mechanism,which pools the attention in differ-ent axes,so that the model learns more accurate features;and replaces the CIoU loss function of the original YOLOv7 with the Focal-EIoU loss function,which reduces the sample imbalance.According to the experimental results,the average accuracy mean mAP of the complex background inter-farm weed detection based on improved YOLOv7 proposed in this paper is 93.7%,which is 4.2%higher than the original YOLOv7 model.

weed detectionYOLOv7data enhancementfeature fusion

刘晨晖、邹红艳、吕鹏、朱瑞林

展开 >

南京林业大学机械电子工程学院,江苏南京 210037

杂草检测 YOLOv7 数据增强 特征融合

2024

林业机械与木工设备
国家林业局哈尔滨林业机械研究所

林业机械与木工设备

影响因子:0.574
ISSN:2095-2953
年,卷(期):2024.52(3)
  • 26