YOLOv5s-FP: A Novel Method for In-Field Pear Detection Using a Transformer Encoder and Multi-Scale Collaboration Perception
Open Access
Abstract
Precise pear detection and recognition is an essential step toward modernizing orchard management. However, due to the ubiquitous occlusion in orchards and various locations of image acquisition, the pears in the acquired images may be quite small and occluded, causing high false detection and object loss rate. In this paper, a multi-scale collaborative perception network YOLOv5s-FP (Fusion and Perception) was proposed for pear detection, which coupled local and global features. Specifically, a pear dataset with a high proportion of small and occluded pears was proposed, comprising 3680 images acquired with cameras mounted on a ground tripod and a UAV platform. The cross-stage partial (CSP) module was optimized to extract global features through a transformer encoder, which was then fused with local features by an attentional feature fusion mechanism. Subsequently, a modified path aggregation network oriented to collaboration perception of multi-scale features was proposed by incorporating a transformer encoder, the optimized CSP, and new skip connections. The quantitative results of utilizing the YOLOv5s-FP for pear detection were compared with other typical object detection networks of the YOLO series, recording the highest average precision of 96.12% with less detection time and computational cost. In qualitative experiments, the proposed network achieved superior visual performance with stronger robustness to the changes in occlusion and illumination conditions, particularly providing the ability to detect pears with different sizes in highly dense, overlapping environments and non-normal illumination areas. Therefore, the proposed YOLOv5s-FP network was practicable for detecting in-field pears in a real-time and accurate way, which could be an advantageous component of the technology for monitoring pear growth status and implementing automated harvesting in unmanned orchards.Keywords
Funding Information
- the Anhui Provincial Key Laboratory of Smart Agricultural Technology and Equipment (APKLSATE2021x004, 2008085MF203, 201904a06020056, 202104a06020012, 2022AH040125)
- the Natural Science Foundation of Anhui Province (APKLSATE2021x004, 2008085MF203, 201904a06020056, 202104a06020012, 2022AH040125)
- the Key Research and Development Plan of Anhui Province (APKLSATE2021x004, 2008085MF203, 201904a06020056, 202104a06020012, 2022AH040125)
- the Natural Science Major Project for Anhui Provincial University (APKLSATE2021x004, 2008085MF203, 201904a06020056, 202104a06020012, 2022AH040125)
This publication has 36 references indexed in Scilit:
- Apple Leaf Diseases Recognition Based on An Improved Convolutional Neural NetworkSensors, 2020
- Agricultural Pest Super-Resolution and Identification With Attention Enhanced Residual and Dense Fusion Generative and Adversarial NetworkIEEE Access, 2020
- Distance-IoU Loss: Faster and Better Learning for Bounding Box RegressionProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Fruit detection in an apple orchard using a mobile terrestrial laser scannerBiosystems Engineering, 2019
- Hyperspectral Image Classification With Deep Feature Fusion NetworkIEEE Transactions on Geoscience and Remote Sensing, 2018
- Densely Connected Convolutional Networks2017
- Mapping almond orchard canopy volume, flowers, fruit and yield using lidar and vision sensorsComputers and Electronics in Agriculture, 2016
- SSD: Single Shot MultiBox Detector2016
- Deep Residual Learning for Image Recognition2016
- ORB: An efficient alternative to SIFT or SURF2011