Abstract:In view of the problems of low accuracy, precision and high computational cost when agricultural drones conduct multi-scale target detection and positioning of pest-infected trees in low-altitude environments, an improved target detection algorithm named DCA-YOLO suitable for low-altitude operations was proposed. Firstly, the DCA dynamic channel attention mechanism was introduced. It worked together with the dual-branch collaborative attention to dynamically adjust the learning weights of features, enhancing the ability to perceive multi-scale features and context information of targets. A small target enhancement detection module was added at layer P2, and the DCA attention mechanism was added to the detection heads at layers P2 and P4, effectively optimizing the detection performance of small and medium-sized targets. The Inner-IoU loss function was introduced to improve the fine recognition ability of easily confused targets in complex environmental backgrounds. To ensure the smooth operation of the model, the lightweight GhostNetv2 was used to optimize the backbone network, reducing the number of model parameters to 2.34×106, with a remarkable lightweight effect. Finally, the improved BiFPN was used to optimize the neck network to further enhance the feature re-learning ability. The experimental results showed that compared with the original model, DCA-YOLO had 5.2 percentage points increase in mAP0.5 on the augmented validation set, 5.6 percentage points increase in detection accuracy, 7.1 percentage points increase in recall rate, and a reduction of 6.7×105 in the number of parameters. The floating-point operations (FLOPs) were reduced by 26.4%, with 16.1% decrease in model weight size. Finally, it maintained an accuracy of 87.6%, a recall rate of 87.4%, and a mean average precision of 93.1%. The dynamic channel attention (DCA) mechanism demonstrated a channel weighting contribution of 0.41±0.07 and negative sample suppression capability of -0.12±0.03. It effectively optimized the defects of false positives and false negatives under the condition of model lightweighting. In conclusion, DCA-YOLO significantly improved the model’s accuracy through the collaborative improvement of multiple modules, and can efficiently meet the application requirements of agricultural drones for real-time high-precision detection of pest-infected trees.