Abstract:Aiming to address the problems of target texture loss and multi-scale feature confusion caused by the deep coupling of strong backlight, dense fruit distribution, and branch occlusion in natural orchard environments, a citrus detection model named DPAA-YOLO v8 for complex backlight scenarios was proposed.Based on YOLO v8n, a dual-path fusion cross stage partial (DPFCSP) module was designed in the backbone network.By employing a dual-branch parallel processing strategy to capture context dependencies and local details respectively, the module significantly enhanced the texture feature extraction capability in backlit dark areas and overexposed regions.Secondly, a dynamic adaptive attention (DAA) mechanism was introduced into the neck network.This mechanism dynamically adjusted convolution kernel weights and receptive field sizes by perceiving the semantic context of input features, effectively focusing on foreground fruits and suppressing high-frequency background noise caused by backlight.Finally, the Wise-IoU (WIoU) loss function was adopted to optimize the bounding box regression strategy, resolving the target localization drift caused by halo effects and shadow interference.Experimental results showed that the mean average precision (mAP@0.5) of the DPAA-YOLO v8 model reached 96.8%, an improvement of 3.0 percentage points over the original YOLO v8n.The detection precision for small targets (APs) and large targets (APl) reached 57.2% and 90.9%, respectively, representing improvements of 7.8 percentage points and 5.9 percentage points compared with that of the original YOLO v8n.Field robot integration tests indicated that the system's positioning success rate in strong backlight environments was 92.5%, with an average inference time of 29.2 ms.The proposed method significantly improved detection robustness under complex lighting conditions while ensuring lightweight and real-time performance, providing reliable technical support for automated citrus harvesting.