Full-surface detection of apple fruits using enhanced YOLOv5
Accurate detection of apple surfaces under various orientations in a sorting machine is crucial for applications in precision agriculture, particularly for tasks such as automated quality control. Traditional image processing methods often struggle with complexities introduced by varying fruit orientations. In this study, an enhanced version of the You Only Look Once (YOLOv5) model for full-surface detection of apples is proposed, with a key modification in which the original backbone network is replaced with a more robust architecture. Additionally, the model integrates Convolutional Block Attention Modules (CBAM) for improved feature extraction, which enhances its ability to handle occlusions and complex backgrounds. This innovation optimizes automated sorting and quality control systems, reducing losses and ensuring consistent apple quality. Results show that the enhanced YOLOv5 model performed better than traditional methods, achieving precision rates of 76.80%, 88.40%, 88.20%, and 88.20%, recall rates of 82.30%, 83.20%, 93.10%, and 93.10%, as well as mean average precision (mAP) of 86.00%, 91.70%, 95.00%, and 95.00% respectively for stem up, stem down, sideways, and diagonal orientations. The highest F1-score (90.58) and mAP (95.00) were achieved in the sideways orientation, demonstrating superior performance in this orientation. The model’s enhanced accuracy makes it highly suitable for applications in smart agriculture, particularly in automated apples quality control, where reliable and consistent surface detection is essential.
Authors
- Bo Han (ORCID: https://orcid.org/0000-0001-9501-8702)
- Jiangfan Yu (ORCID: https://orcid.org/0000-0002-8794-6012)
- Liling Yang (ORCID: https://orcid.org/0000-0002-2605-7449)
- Afshin Azizi (ORCID: https://orcid.org/0000-0001-9197-4967)
- Wenwen Kong (ORCID: https://orcid.org/0000-0003-2999-8081)
- Oladimeji Idowu Oladele (ORCID: https://orcid.org/0000-0001-6004-1419)
- Li Xu (ORCID: https://orcid.org/0000-0002-9468-7629)
- Mustafa Mhamed (ORCID: https://orcid.org/0000-0002-3106-669X)
- Muhammad Hilal Kabir (ORCID: https://orcid.org/0000-0001-9704-0065)
- Xiaolong Li (ORCID: https://orcid.org/0000-0002-6647-5565)
- Zhao Zhang (ORCID: https://orcid.org/0000-0003-2516-0660)
- Man Zhang (ORCID: https://orcid.org/0000-0003-2985-3325)
- Simphiwe Mngomezulu
Institutions
- Tarim University (CN)
- Ningxia Academy of Agriculture and Forestry Sciences (CN)
- Xinjiang Academy of Agricultural Sciences (CN)
- Inspur (China) (CN)
- Ministry of Agriculture and Rural Affairs (CN)
- Umkhuseli Innovation and Research Management (ZA)
- China Agricultural University (CN)
- University of KwaZulu-Natal (ZA)
Publication Details
- Journal
- Agricultural Products Processing and Storage
- Published
- 2025-08-18
- DOI
- https://doi.org/10.1007/s44462-025-00020-w
- Citations
- 3
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 5.25