Skip to main content
QUICK REVIEW

[Paper Review] Real-time Strawberry Detection Based on Improved YOLOv5s Architecture for Robotic Harvesting in open-field environment

Zixuan He, Salik Ram Khana|arXiv (Cornell University)|Aug 8, 2023
Smart Agriculture and AIAgricultural and Biological Sciences6 citations
TL;DR

This study proposes YOLOv5s-Straw, an improved YOLOv5s-based object detection model for real-time strawberry detection in open-field environments. By replacing C3 modules with C2f and integrating SPPF with CSPNet, the model achieves 80.3% mAP, outperforming YOLOv3-tiny, YOLOv5s, YOLOv5s-C2f, and YOLOv8s in accuracy and speed, with inference at 18ms per image and only 8.6M parameters.

ABSTRACT

This study proposed a YOLOv5-based custom object detection model to detect strawberries in an outdoor environment. The original architecture of the YOLOv5s was modified by replacing the C3 module with the C2f module in the backbone network, which provided a better feature gradient flow. Secondly, the Spatial Pyramid Pooling Fast in the final layer of the backbone network of YOLOv5s was combined with Cross Stage Partial Net to improve the generalization ability over the strawberry dataset in this study. The proposed architecture was named YOLOv5s-Straw. The RGB images dataset of the strawberry canopy with three maturity classes (immature, nearly mature, and mature) was collected in open-field environment and augmented through a series of operations including brightness reduction, brightness increase, and noise adding. To verify the superiority of the proposed method for strawberry detection in open-field environment, four competitive detection models (YOLOv3-tiny, YOLOv5s, YOLOv5s-C2f, and YOLOv8s) were trained, and tested under the same computational environment and compared with YOLOv5s-Straw. The results showed that the highest mean average precision of 80.3% was achieved using the proposed architecture whereas the same was achieved with YOLOv3-tiny, YOLOv5s, YOLOv5s-C2f, and YOLOv8s were 73.4%, 77.8%, 79.8%, 79.3%, respectively. Specifically, the average precision of YOLOv5s-Straw was 82.1% in the immature class, 73.5% in the nearly mature class, and 86.6% in the mature class, which were 2.3% and 3.7%, respectively, higher than that of the latest YOLOv8s. The model included 8.6*10^6 network parameters with an inference speed of 18ms per image while the inference speed of YOLOv8s had a slower inference speed of 21.0ms and heavy parameters of 11.1*10^6, which indicates that the proposed model is fast enough for real time strawberry detection and localization for the robotic picking.

Motivation & Objective

  • Address the challenge of accurate, real-time strawberry detection in variable outdoor lighting and complex field conditions.
  • Overcome limitations of traditional image processing methods that require stable lighting and struggle with morphological variations.
  • Improve detection accuracy across three maturity levels (immature, nearly mature, mature) to support robotic harvesting decisions.
  • Develop a lightweight, fast, and robust model suitable for deployment on robotic platforms in open-field agriculture.
  • Enhance feature extraction and gradient flow to improve generalization and detection performance on real-world strawberry canopy images.

Proposed method

  • Replaced the C3 modules in YOLOv5s backbone with C2f modules to improve gradient flow and feature learning.
  • Integrated the Spatial Pyramid Pooling Fast (SPPF) block with Cross Stage Partial Network (CSPNet) to enhance feature map representation and generalization.
  • Collected and augmented an RGB dataset of strawberry canopies under open-field conditions with three maturity classes.
  • Applied data augmentation techniques including brightness reduction, brightness increase, and noise addition to improve robustness.
  • Trained and evaluated the proposed YOLOv5s-Straw model alongside YOLOv3-tiny, YOLOv5s, YOLOv5s-C2f, and YOLOv8s under identical computational conditions.
  • Used mean average precision (mAP) and inference speed as primary evaluation metrics for comparative analysis.

Experimental results

Research questions

  • RQ1Can replacing C3 with C2f modules in YOLOv5s improve detection accuracy for strawberries in open-field conditions?
  • RQ2Does combining SPPF with CSPNet enhance the generalization capability of the YOLOv5s model on a diverse strawberry dataset?
  • RQ3How does the proposed YOLOv5s-Straw model compare in mAP and inference speed to state-of-the-art models like YOLOv8s and YOLOv5s-C2f?
  • RQ4To what extent does the model maintain high accuracy across different maturity levels of strawberries in real-world outdoor environments?
  • RQ5Can the model achieve real-time performance (sub-20ms inference) while maintaining high accuracy and low parameter count for robotic deployment?

Key findings

  • The proposed YOLOv5s-Straw model achieved a mean average precision (mAP) of 80.3%, significantly outperforming YOLOv3-tiny (73.4%), YOLOv5s (77.8%), YOLOv5s-C2f (79.8%), and YOLOv8s (79.3%).
  • The model achieved 82.1% average precision (AP) for the immature class, 73.5% for the nearly mature class, and 86.6% for the mature class.
  • YOLOv5s-Straw outperformed YOLOv8s by 2.3 percentage points in the immature class and 3.7 percentage points in the mature class.
  • The model achieved an inference speed of 18ms per image, making it suitable for real-time robotic applications.
  • With only 8.6 × 10⁶ parameters, YOLOv5s-Straw is lighter and faster than YOLOv8s, which has 11.1 × 10⁶ parameters and 21.0ms inference time.
  • The integration of C2f and SPPF-CSPNet significantly enhanced feature learning and gradient flow, contributing to improved detection accuracy and robustness in complex field conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.