中国农业气象 ›› 2025, Vol. 46 ›› Issue (10): 1512-1520.doi: 10.3969/j.issn.1000-6362.2025.10.012

• 农业气象信息技术栏目 • 上一篇    下一篇

基于改进型YOLOv5的马铃薯花朵识别技术

邬桐,朱永宁,武向娟,景博,郭军伟,梁继忠,陈炜,韩一楠,王佳祥   

  1. 1. 宁夏大学信息工程学院,银川 750021;2. 宁夏回族自治区气象台,银川 750002;3. 中国气象局旱区特色农业气象灾害监测预警与风险管理重点实验室,银川 750002; 4. 海军工程大学,武汉 430033
  • 收稿日期:2024-11-11 出版日期:2025-10-20 发布日期:2025-10-16
  • 作者简介:邬桐,E-mail:2188895575@qq.com
  • 基金资助:
    宁夏自然科学基金项目(2023AAC03791);国家自然科学基金项目(62362056)

Potato Flower Recognition Technology Based on Improved YOLOv5 Model

WU Tong , ZHU Yong-ning, WU Xiang-juan, JING Bo , GUO Jun-wei , LIANG Ji-zhong, CHEN Wei, HAN Yi-nan, WANG Jia-xiang   

  1. 1. School of Information Engineering, Ningxia University, Yinchuan 750021, China; 2.Ningxia Meteorological Observatory,Yinchuan 750002; 3.Key Laboratory for Meteorological Disaster Monitoring and Early Warning and Risk Management of Characteristic Agriculture in Arid Regions, China Meteorological Administration, Yinchuan 75002; 4. Naval University of Engineering, Wuhan 430033
  • Received:2024-11-11 Online:2025-10-20 Published:2025-10-16

摘要:

马铃薯农田实景拍摄图像中,花朵在图像中特征信息占比小,当达到开花普遍期和盛花期时花朵不仅细小,且分布密集。目前主流的图像识别模型都容易产生漏检,检测精度不高。为了解决该问题,本研究以20192023年宁夏8套马铃薯农田实景监测系统拍摄的图像作为资料,对YOLOv5进行了改进。借鉴DenseNet的思想,在YOLOv5的基础上加入DenseBlock,提出一种稠密结构CD5256,并引入注意力机制模块,形成YOLOv5CD5256模型,将该模型与YOLOv5LYOLOv8LYOLOv8XYOLOv9CYOLOv9E进行对比。结果表明:YOLOv5CD5256在测试集上的精确率(P)、召回率(R)以及平均精度均值(mAP)分别达到0.830.850.82,比YOLOv5L的各项指标均提升0.20,比YOLOv8LYOLOv8XYOLOv9CYOLOv9E提升0.150.17,在6个模型中表现最佳。在马铃薯开花初期,6个模型都有较好的检测能力,YOLOv5CD5256模型比其他5个模型无明显优势。当马铃薯进入开花普遍期和盛花期,出现大量细小且分布较为密集的花朵时,YOLOv5CD5256模型的平均漏检率比其他模型低0.200.23,表现出明显的优势。说明该模型可应用于马铃薯开花初期、普遍期和盛花期不同时期的花朵检测,尤其对小特征、密集型分布的花朵检测能力明显好于当前的主流模型,可作为马铃薯花朵的识别模型。

关键词: 马铃薯, 花朵识别, YOLOv5, DenseNet, 注意力机制

Abstract:

During the general and full−bloom phases of potatoes, flowers were observed to be particularly small and densely distributed. In real−scene potato farmland images, the features of the flowers occupied minimal pixel regions, leading to frequently missed detections and low accuracy in mainstream recognition models. To address this issue and improve flower recognition accuracy, the YOLOv5CD5−256 model was proposed. Inspired by DenseNet, a CD5−256 dense structure was integrated into YOLOv5 by incorporating DenseBlocks, and attention mechanisms were incorporated to enhance feature extraction. For validation, images captured by eight real−scene monitoring systems in Ningxia potato fields from 2019 to 2023 were used as the dataset. The proposed model was compared with YOLOv5L, YOLOv8L, YOLOv8X, YOLOv9C and YOLOv9E. The results showed that the precision (P), recall (R) and mean average precision (mAP) of YOLOv5CD5−256 on the test set reached 0.83, 0.85 and 0.82, respectively. Each of these indicators was 0.20 higher than those of YOLOv5L and 0.15−0.17 higher than those of other models. It performed the best among the six models. In the early flowering stage of potatoes, all six models had good detection capabilities. When potatoes entered the full−bloom and peak−bloom stages, the average missed− detection rate of the YOLOv5CD5−256 model was 0.20−0.23 lower than that of other models, showing obvious advantages. This indicates that the proposed model can be applied to flower detection in different stages of potatoes, including the early, full−bloom and peak-bloom stages. Notably, its detection ability for small−feature and densely distributed flowers is significantly better than that of current mainstream models, and it can be used as a recognition model for potato flowers.

Key words: Potato, Flower recognition, YOLOv5, Densenet, Attention mechanism