Journal of System Simulation ›› 2025, Vol. 37 ›› Issue (8): 2124-2138.doi: 10.16182/j.issn1004731x.joss.24-0260

• Papers • Previous Articles    

Detection of Small Apple Targets Based on Improved YOLOv5 in Natural Environments

Liu Zilong, Zhang Lei   

  1. School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093, China
  • Received:2024-03-19 Revised:2024-04-08 Online:2025-08-20 Published:2025-08-26
  • Contact: Zhang Lei

Abstract:

The distribution of apples usually features occlusion and small and dense targets. To address these issues, a target detection algorithm was proposed based on an improved YOLOv5 model. Specifically, this paper added the coordinate attention (CA) mechanism, receptive field block (RFB), and adaptively spatial feature fusion (ASFF) modules to the YOLOv5, enhancing the ability to detect small targets. Additionally, the proposed algorithm replaced the CIoU in YOLOv5 with SIoU to improve the target detection box's prediction accuracy. Finally, some normal convolutions were replaced with depthwise separable convolutions (DSC), effectively reducing the calculation burden. Experiment results show that the comprehensive performance of the improved YOLOv5 is better than the original YOLOv5 and other algorithms. Moreover, its mAP value is improved by 9.6% in comparison with the original YOLOv5.

Key words: intelligent agriculture, coordinate attention mechanism, receptive field block, adaptively spatial feature fusion, small target detection, YOLOv5

CLC Number: