YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detection

The timely and accurate detection of apple flowers is crucial for assessing the growth status of fruit trees, predicting peak blooming dates, and early estimating apple yields. However, challenges such as variable lighting conditions, complex growth environments, occlusion of apple flowers, clustere...

Full description

Saved in:
Bibliographic Details
Main Authors: Dandan Wang, Huaibo Song, Bo Wang
Format: Article
Language:English
Published: Frontiers Media S.A. 2025-03-01
Series:Frontiers in Plant Science
Subjects:
Online Access:https://www.frontiersin.org/articles/10.3389/fpls.2025.1541266/full
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1850069147292008448
author Dandan Wang
Dandan Wang
Huaibo Song
Huaibo Song
Huaibo Song
Bo Wang
author_facet Dandan Wang
Dandan Wang
Huaibo Song
Huaibo Song
Huaibo Song
Bo Wang
author_sort Dandan Wang
collection DOAJ
description The timely and accurate detection of apple flowers is crucial for assessing the growth status of fruit trees, predicting peak blooming dates, and early estimating apple yields. However, challenges such as variable lighting conditions, complex growth environments, occlusion of apple flowers, clustered flowers and significant morphological variations, impede precise detection. To overcome these challenges, an improved YO-AFD method based on YOLOv8 for apple flower detection was proposed. First, to enable adaptive focus on features across different scales, a new attention module, ISAT, which integrated the Inverted Residual Mobile Block (IRMB) with the Spatial and Channel Synergistic Attention (SCSA) module was designed. This module was then incorporated into the C2f module within the network’s neck, forming the C2f-IS module, to enhance the model’s ability to extract critical features and fuse features across scales. Additionally, to balance attention between simple and challenging targets, a regression loss function based on Focaler Intersection over Union (FIoU) was used for loss function calculation. Experimental results showed that the YO-AFD model accurately detected both simple and challenging apple flowers, including small, occluded, and morphologically diverse flowers. The YO-AFD model achieved an F1 score of 88.6%, mAP50 of 94.1%, and mAP50-95 of 55.3%, with a model size of 6.5 MB and an average detection speed of 5.3 ms per image. The proposed YO-AFD method outperforms five comparative models, demonstrating its effectiveness and accuracy in real-time apple flower detection. With its lightweight design and high accuracy, this method offers a promising solution for developing portable apple flower detection systems.
format Article
id doaj-art-5232ece2fa78444fa6dbddcc4105a874
institution DOAJ
issn 1664-462X
language English
publishDate 2025-03-01
publisher Frontiers Media S.A.
record_format Article
series Frontiers in Plant Science
spelling doaj-art-5232ece2fa78444fa6dbddcc4105a8742025-08-20T02:47:51ZengFrontiers Media S.A.Frontiers in Plant Science1664-462X2025-03-011610.3389/fpls.2025.15412661541266YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detectionDandan Wang0Dandan Wang1Huaibo Song2Huaibo Song3Huaibo Song4Bo Wang5College of Communication and Information Engineering, Xi’an University of Science and Technology, Xi’an, ChinaXi’an Key Laboratory of Network Convergence Communication, Xi’an, ChinaCollege of Mechanical and Electronic Engineering, Northwest A&F University, Xianyang, ChinaKey Laboratory of Agricultural Internet of Things, Ministry of Agriculture and Rural Affairs, Xianyang, ChinaShaanxi Key Laboratory of Agricultural Information Perception and Intelligent Services, Xianyang, ChinaSchool of Automation Science and Engineering, Faculty of Electronic and Information Engineering, Xi’an Jiaotong University, Xi’an, ChinaThe timely and accurate detection of apple flowers is crucial for assessing the growth status of fruit trees, predicting peak blooming dates, and early estimating apple yields. However, challenges such as variable lighting conditions, complex growth environments, occlusion of apple flowers, clustered flowers and significant morphological variations, impede precise detection. To overcome these challenges, an improved YO-AFD method based on YOLOv8 for apple flower detection was proposed. First, to enable adaptive focus on features across different scales, a new attention module, ISAT, which integrated the Inverted Residual Mobile Block (IRMB) with the Spatial and Channel Synergistic Attention (SCSA) module was designed. This module was then incorporated into the C2f module within the network’s neck, forming the C2f-IS module, to enhance the model’s ability to extract critical features and fuse features across scales. Additionally, to balance attention between simple and challenging targets, a regression loss function based on Focaler Intersection over Union (FIoU) was used for loss function calculation. Experimental results showed that the YO-AFD model accurately detected both simple and challenging apple flowers, including small, occluded, and morphologically diverse flowers. The YO-AFD model achieved an F1 score of 88.6%, mAP50 of 94.1%, and mAP50-95 of 55.3%, with a model size of 6.5 MB and an average detection speed of 5.3 ms per image. The proposed YO-AFD method outperforms five comparative models, demonstrating its effectiveness and accuracy in real-time apple flower detection. With its lightweight design and high accuracy, this method offers a promising solution for developing portable apple flower detection systems.https://www.frontiersin.org/articles/10.3389/fpls.2025.1541266/fullapple flowerobject detectiondeep learningYO-AFDattention mechanism
spellingShingle Dandan Wang
Dandan Wang
Huaibo Song
Huaibo Song
Huaibo Song
Bo Wang
YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detection
Frontiers in Plant Science
apple flower
object detection
deep learning
YO-AFD
attention mechanism
title YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detection
title_full YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detection
title_fullStr YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detection
title_full_unstemmed YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detection
title_short YO-AFD: an improved YOLOv8-based deep learning approach for rapid and accurate apple flower detection
title_sort yo afd an improved yolov8 based deep learning approach for rapid and accurate apple flower detection
topic apple flower
object detection
deep learning
YO-AFD
attention mechanism
url https://www.frontiersin.org/articles/10.3389/fpls.2025.1541266/full
work_keys_str_mv AT dandanwang yoafdanimprovedyolov8baseddeeplearningapproachforrapidandaccurateappleflowerdetection
AT dandanwang yoafdanimprovedyolov8baseddeeplearningapproachforrapidandaccurateappleflowerdetection
AT huaibosong yoafdanimprovedyolov8baseddeeplearningapproachforrapidandaccurateappleflowerdetection
AT huaibosong yoafdanimprovedyolov8baseddeeplearningapproachforrapidandaccurateappleflowerdetection
AT huaibosong yoafdanimprovedyolov8baseddeeplearningapproachforrapidandaccurateappleflowerdetection
AT bowang yoafdanimprovedyolov8baseddeeplearningapproachforrapidandaccurateappleflowerdetection