| 注册
首页|期刊导航|农业工程学报|基于改进YOLOv7的复杂环境下的葡萄成熟度检测

基于改进YOLOv7的复杂环境下的葡萄成熟度检测

马鹏伟 周杰

农业工程学报2025,Vol.41Issue(3):171-178,8.
农业工程学报2025,Vol.41Issue(3):171-178,8.DOI:10.11975/j.issn.1002-6819.202409037

基于改进YOLOv7的复杂环境下的葡萄成熟度检测

Detecting grape ripeness in complex environments using improved YOLOv7

马鹏伟 1周杰1

作者信息

  • 1. 石河子大学信息科学与技术学院,石河子 832003
  • 折叠

摘要

Abstract

An efficient and accurate detection is often required for the grape maturity during harvesting in precision agriculture.This study aims to propose a lightweight,high-precision,and rapid detection for the grape fruit maturity using an improved YOLOv7 model,referred to as YOLOv7MCA.The YOLOv7 model was modified to introduce the MobileNetV4 as the backbone network of feature extraction.The MobileNetV4 was utilized to reduce the number of parameters.In turn,the computational load was significantly reduced to maintain the high detection accuracy and efficiency.Computational cost and performance of the model were balanced suitable for real-time applications with the limited computational resources.In addition,Convolutional Block Attention Module(CBAM)was incorporated to enhance the feature extraction of the YOLOv7 neck part.CBAM was introduced the attention mechanisms in both the channel and spatial dimensions,in order to focus on the more relevant features while suppressing less important ones.The attention mechanism was significantly improved to select the discriminative features,thereby enhancing the accuracy of grape maturity detection,especially in the complex or cluttered images.Furthermore,Adaptive Spatial Feature Fusion(ASFF)module was introduced into the feature fusion.The head part of the YOLOv7 model was optimized after the adaptive fusion of multi-scale feature maps.As such,the self-adaptive fusion mechanism was effectively detected both small and large objects,suitable for the various targets of different sizes.The precision and efficiency were improved among different types of images.A wider range of object scales was determined in real-world agricultural applications.Experimental results demonstrate that the improved YOLOv7MCA model was achieved in a precision of 95.2%,a recall rate of 87.2%,and a mean average precision of 93.9%on the grape image test set.The average detection time was 52.2 ms,and the memory usage of the improved model was 53.6 MB.The performance of object detection was outperformed the existing models,including Faster R-CNN,SSD,YOLOv5,YOLOv7,YOLOv8n,YOLOv9t,and YOLOv10n.The improved YOLOv7MCA model was reduced the memory usage to maintain the high detection accuracy with the less detection time.The speed and memory efficiency were especially important for the practical deployment on embedded devices with the limited resources.The improved model was suitable for real-time applications,such as automated grape harvesting.The rapid and accurate object detection was realized for the grape harvesting in agricultural applications.The potential of the YOLOv7MCA model was highlighted to enhance the effectiveness and scalability of automation systems in precision agriculture.

关键词

YOLOv7/葡萄/成熟度检测/MobileNetV4/CBAM

Key words

YOLOv7/grape/ripeness detection/MobileNetV4/convolutional blockattention module

分类

农业工程

引用本文复制引用

马鹏伟,周杰..基于改进YOLOv7的复杂环境下的葡萄成熟度检测[J].农业工程学报,2025,41(3):171-178,8.

基金项目

新一代人工智能国家科技重大专项(2022ZD0115803) (2022ZD0115803)

农业工程学报

OA北大核心

1002-6819

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