| 注册
首页|期刊导航|农业工程学报|基于改进YOLOv8n的轻量化草坪异质杂草检测算法

基于改进YOLOv8n的轻量化草坪异质杂草检测算法

王会征 刘海藤 李新龙 刘家天 焦乐宁 王国宾 兰玉彬

农业工程学报2025,Vol.41Issue(10):157-165,9.
农业工程学报2025,Vol.41Issue(10):157-165,9.DOI:10.11975/j.issn.1002-6819.202412138

基于改进YOLOv8n的轻量化草坪异质杂草检测算法

Detecting lawn heterogeneous weed using lightweight improved YOLOv8n

王会征 1刘海藤 1李新龙 1刘家天 1焦乐宁 1王国宾 1兰玉彬1

作者信息

  • 1. 山东理工大学农业工程与食品科学学院,淄博 255000||山东理工大学现代农业装备研究院,淄博 255000||山东省大田作物智慧农业技术与智能农机装备重点实验室,淄博 255000
  • 折叠

摘要

Abstract

Green lawns can play a crucial role in the landscape and ecological environments with the rapid urbanization in China.However,there is an ever-increasing demand for the daily maintenance of lawns.Among them,the heterogeneous weeds can often compete with the native grass for nutrients and growing space in lawns,leading to the low overall quality of urban greenery.The aesthetic appeal of the lawn can also be diminished after premature aging.Thereby,the accurate and rapid detection of the weed can be required for deep learning and computer vision.This study aims to improve the efficiency and accuracy of the detection of heterogeneous weeds in natural environments.A lightweight algorithm was also proposed using the original YOLOv8n model.Firstly,the deformable convolutional network v2(DCNv2)was employed to combine with the c2f convolutional layers in the backbone network.The offsets were then introduced to enhance the feature extraction of the improved model.Different regular shapes of the heterogeneous weeds were captured after optimization.Additionally,a modulation mechanism was incorporated to control the contribution of each sampling point to the output.The precision and robustness were then improved to focus more on the target regions,thereby reducing the interference from background noise.Secondly,a bidirectional feature pyramid network(BiFPN)was introduced in the neck network.Multi-scale features were efficiently fused using bidirectional cross-scale connections and weighted feature fusion.The targets were detected at varying scales.Furthermore,the BiFPN significantly reduced the computational overhead,compared with the traditional feature pyramid network(FPN).The redundant connections were also eliminated to incorporate the lightweight weighting mechanisms.The efficiency and generalization of feature fusion were also improved after feature fusion.Lastly,the traditional intersection over union(IoU)loss function was replaced with the inner-IoU(inner intersection over union)loss function.The objective function of the bounding box regression was then optimized to learn the target location information,thereby improving the convergence speed and detection performance.More precise guidance was realized for the improved model.The experimental results show that the improved YOLOv8-LDB model reduced the number of parameters,the computational cost,and the model size by 32.7%,13.6%,and 31.8%,respectively,compared with the original YOLOv8n.While the mean average precision(mAP)increased by 3.2 percentage points.The performance of the improved YOLOv8-LDB model was better than that of the seven commonly used network models(including Faster-RCNN,SSD,YOLOv5s,YOLOv5n,YOLOv7n,YOLOv10n,and YOLOv11n),in terms of the precision,parameter count,computational cost,and model size.The mean average precision was improved by 21.6,9.6,1.6,7.7,2.4,4.1,and 3.3 percentage points,respectively.Additionally,the detection speed increased from 80.4 to 87.1 frames per second.The inference efficiency was also enhanced for the real-time detection of heterogeneous weeds in natural environments.The YOLOv8-LDB algorithm demonstrated superior performance across multiple metrics.Automatic sprayers and weeding robots can be integrated to realize variable-rate precision spraying and targeted weed control.The automation level of lawn management can also be further advanced in the future.The lightweight improved model can be expected to find wide applications in smart city greening and precision agriculture.The findings can also provide technical support to protect the sustainable ecological environment in urban areas.

关键词

轻量化/目标检测/算法/杂草识别/可变形卷积/特征融合

Key words

lightweight/object detection/algorithms/weed recognition/deformable convolution/feature fusion

分类

计算机与自动化

引用本文复制引用

王会征,刘海藤,李新龙,刘家天,焦乐宁,王国宾,兰玉彬..基于改进YOLOv8n的轻量化草坪异质杂草检测算法[J].农业工程学报,2025,41(10):157-165,9.

基金项目

山东省自然科学基金项目(ZR2023MC133) (ZR2023MC133)

宁夏回族自治区重点研发计划项目(2023BCF01051,2024BBF01013) (2023BCF01051,2024BBF01013)

农业工程学报

OA北大核心

1002-6819

访问量3
|
下载量0
段落导航相关论文