YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex Scenes

Apple orchards, as an important center of economic activity in forestry special crops, can achieve yield prediction and automated harvesting by detecting and locating apples. Small apples, occlusion, dim lighting at night, blurriness, cluttered backgrounds, and other complex scenes significantly aff...

Full description

Bibliographic Details
Main Authors: Jianping Liu, Chenyang Wang, Jialu Xing
Format: Article
Language:English
Published: MDPI AG 2023-11-01
Series:Forests
Subjects:
Online Access:https://www.mdpi.com/1999-4907/14/12/2304
_version_ 1797381046212231168
author Jianping Liu
Chenyang Wang
Jialu Xing
author_facet Jianping Liu
Chenyang Wang
Jialu Xing
author_sort Jianping Liu
collection DOAJ
description Apple orchards, as an important center of economic activity in forestry special crops, can achieve yield prediction and automated harvesting by detecting and locating apples. Small apples, occlusion, dim lighting at night, blurriness, cluttered backgrounds, and other complex scenes significantly affect the automatic harvesting and yield estimation of apples. To address these issues, this study proposes an apple detection algorithm, “YOLOv5-ACS (Apple in Complex Scenes)”, based on YOLOv5s. Firstly, the space-to-depth-conv module is introduced to avoid information loss, and a squeeze-and-excitation block is added in C3 to learn more important information. Secondly, the context augmentation module is incorporated to enrich the context information of the feature pyramid network. By combining the shallow features of the backbone P2, the low-level features of the object are retained. Finally, the addition of the context aggregation block and CoordConv aggregates the spatial context pixel by pixel, perceives the spatial information of the feature map, and enhances the semantic information and global perceptual ability of the object. We conducted comparative tests in various complex scenarios and validated the robustness of YOLOv5-ACS. The method achieved 98.3% and 74.3% for mAP@0.5 and mAP@0.5:0.95, respectively, demonstrating excellent detection capabilities. This paper creates a complex scene dataset of apples on trees and designs an improved model, which can provide accurate recognition and positioning for automatic harvesting robots to improve production efficiency.
first_indexed 2024-03-08T20:45:39Z
format Article
id doaj.art-5d15a7241dbe468cbe797cd24d847994
institution Directory Open Access Journal
issn 1999-4907
language English
last_indexed 2024-03-08T20:45:39Z
publishDate 2023-11-01
publisher MDPI AG
record_format Article
series Forests
spelling doaj.art-5d15a7241dbe468cbe797cd24d8479942023-12-22T14:09:20ZengMDPI AGForests1999-49072023-11-011412230410.3390/f14122304YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex ScenesJianping Liu0Chenyang Wang1Jialu Xing2College of Computer Science and Engineering, North Minzu University, Yinchuan 750021, ChinaCollege of Computer Science and Engineering, North Minzu University, Yinchuan 750021, ChinaCollege of Computer Science and Engineering, North Minzu University, Yinchuan 750021, ChinaApple orchards, as an important center of economic activity in forestry special crops, can achieve yield prediction and automated harvesting by detecting and locating apples. Small apples, occlusion, dim lighting at night, blurriness, cluttered backgrounds, and other complex scenes significantly affect the automatic harvesting and yield estimation of apples. To address these issues, this study proposes an apple detection algorithm, “YOLOv5-ACS (Apple in Complex Scenes)”, based on YOLOv5s. Firstly, the space-to-depth-conv module is introduced to avoid information loss, and a squeeze-and-excitation block is added in C3 to learn more important information. Secondly, the context augmentation module is incorporated to enrich the context information of the feature pyramid network. By combining the shallow features of the backbone P2, the low-level features of the object are retained. Finally, the addition of the context aggregation block and CoordConv aggregates the spatial context pixel by pixel, perceives the spatial information of the feature map, and enhances the semantic information and global perceptual ability of the object. We conducted comparative tests in various complex scenarios and validated the robustness of YOLOv5-ACS. The method achieved 98.3% and 74.3% for mAP@0.5 and mAP@0.5:0.95, respectively, demonstrating excellent detection capabilities. This paper creates a complex scene dataset of apples on trees and designs an improved model, which can provide accurate recognition and positioning for automatic harvesting robots to improve production efficiency.https://www.mdpi.com/1999-4907/14/12/2304apple treesapple detectionsmart farmingdeep learningcontext aggregationattention mechanisms
spellingShingle Jianping Liu
Chenyang Wang
Jialu Xing
YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex Scenes
Forests
apple trees
apple detection
smart farming
deep learning
context aggregation
attention mechanisms
title YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex Scenes
title_full YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex Scenes
title_fullStr YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex Scenes
title_full_unstemmed YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex Scenes
title_short YOLOv5-ACS: Improved Model for Apple Detection and Positioning in Apple Forests in Complex Scenes
title_sort yolov5 acs improved model for apple detection and positioning in apple forests in complex scenes
topic apple trees
apple detection
smart farming
deep learning
context aggregation
attention mechanisms
url https://www.mdpi.com/1999-4907/14/12/2304
work_keys_str_mv AT jianpingliu yolov5acsimprovedmodelforappledetectionandpositioninginappleforestsincomplexscenes
AT chenyangwang yolov5acsimprovedmodelforappledetectionandpositioninginappleforestsincomplexscenes
AT jialuxing yolov5acsimprovedmodelforappledetectionandpositioninginappleforestsincomplexscenes