Cai Minghui, Deng Hui, Cai Jianwei, Guo Weipeng, Hu Zhipeng, Yu Dongzheng, Zhang Houxi
College of Forestry, Fujian Agriculture and Forestry University, Fuzhou, 350002, Fujian, China.
College of JunCao Science and Ecology, Fujian Agriculture and Forestry University, Fuzhou, 350002, Fujian, China.
Plant Methods. 2025 Mar 24;21(1):42. doi: 10.1186/s13007-025-01353-0.
Accurate and efficient assessment of highland barley (Hordeum vulgare L.) density is crucial for optimizing cultivation and management practices. However, challenges such as overlapping spikes in unmanned aerial vehicle (UAV) images and the computational requirements for high-resolution image analysis hinder real-time detection capabilities. To address these issues, this study proposes an improved lightweight YOLOv5 model for highland barley spike detection. We chose depthwise separable convolution (DSConv) and ghost convolution (GhostConv) for the backbone and neck networks, respectively, to reduce the parameter and computational complexity. In addition, the integration of convolutional block attention module (CBAM) enhances the model's ability to focus on target object in complex backgrounds. The results show that the improved YOLOv5 model has a significant improvement in detection performance. Precision and recall increased by 3.1% to 92.2% and 86.2%, respectively, with an F1 score of 0.892. The reaches 92.7% and 93.5% for highland barley in the growth and maturation stages, respectively, and the overall improved to 93.1%. Compared to the baseline YOLOv5n model, the number of parameters and floating-point operations (FLOPs) were reduced by 70.6% and 75.6%, respectively, enabling lightweight deployment without compromising accuracy. In addition,the proposed model outperformed mainstream object detection algorithms such as Faster R-CNN, Mask R-CNN, RetinaNet, YOLOv7, and YOLOv8, in terms of detection accuracy and computational efficiency. Although this study also suffers from limitations such as insufficient generalization under varying lighting conditions and reliance on rectangular annotations, it provides valuable support and reference for the development of real-time highland barley spike detection systems, which can help to improve agricultural management.
准确高效地评估青稞(Hordeum vulgare L.)密度对于优化种植和管理措施至关重要。然而,诸如无人机(UAV)图像中穗部重叠以及高分辨率图像分析的计算需求等挑战阻碍了实时检测能力。为解决这些问题,本研究提出一种改进的轻量级YOLOv5模型用于青稞穗部检测。我们分别在主干网络和颈部网络中选择深度可分离卷积(DSConv)和幽灵卷积(GhostConv),以降低参数和计算复杂度。此外,卷积块注意力模块(CBAM)的集成增强了模型在复杂背景下聚焦于目标对象的能力。结果表明,改进后的YOLOv5模型在检测性能上有显著提升。精确率和召回率分别提高了3.1%至92.2%和86.2%,F1分数为0.892。青稞在生长和成熟阶段的检测率分别达到92.7%和93.5%,总体检测率提高到93.1%。与基线YOLOv5n模型相比,参数数量和浮点运算(FLOPs)分别减少了70.6%和75.6%,实现了轻量级部署且不影响准确性。此外,所提出的模型在检测准确性和计算效率方面优于Faster R-CNN、Mask R-CNN、RetinaNet、YOLOv7和YOLOv8等主流目标检测算法。尽管本研究也存在诸如在不同光照条件下泛化不足以及依赖矩形标注等局限性,但它为实时青稞穗部检测系统的开发提供了有价值的支持和参考,有助于改善农业管理。