Abstract:To enhance the ability to distinguish blueberry fruits from the background environment and achieve precise detection of blueberries in complex environments, this paper proposes a blueberry fruit recognition and detection model MBCD-YOLO based on the improved YOLOv11. Firstly, the bitemporal feature aggregation module (BFAM) feature aggregation module and C3k2 convolution fusion are introduced in the network backbone to enable the model to capture the change region information of different blueberry scales in complex environments and improve the model′s sensitivity to change regions. Secondly, the cross-stage partial with position-sensitive attention (C2PSA) attention mechanism is replaced with C2CGA, which integrates the cascaded group attention mechanism cascaded group attention (CGA), to group and calculate the input features separately and then concatenate them, reducing redundant components in the calculation and improving the model′s computational efficiency. Additionally, the detection head is replaced with a DynamicHead detection head with three types of perception attention mechanisms, which jointly enhance the representation ability of the target detection head. Finally, the minimum point distance intersection over union, (MPDIoU) loss function is introduced to address the possible issues of reduced convergence speed and accuracy in the original model. Experiments show that the improved model MBCD-YOLO has increased the average detection accuracy mAP@0.5 and mAP@0.5:0.95 for blueberry fruit recognition in complex environments by 2.1% and 2.7% respectively compared to the original model. The parameter count and model size of the improved model are 2.35×106 and 5.2 MB respectively, which are reduced by 12.3% and 10.3% compared to the original model. The improved model can better capture the detailed information of blueberry fruits in complex environments, improving detection accuracy while achieving more lightweight processing, providing a foundation for subsequent deployment on automated picking robots.