Abstract:Aiming to address the multi-seasonal growth and morphological diversity of mulberry trees, and meet the demands of synchronizing with the silkworm breeding cycle, a dataset encompassing various climatic conditions and mulberry branch morphologies in July 2021, September 2024, and November 2024 was established. An improved YOLO v5-based mulberry branch detection model, YOLO v5-cytp was proposed, and a 3D positioning system was developed by using a depth camera to achieve precise identification. Firstly, the CA attention mechanism was incorporated to enhance the model’s feature extraction capability for the lower parts of mulberry branches. Secondly, the original CIoU loss function in YOLO v5 was replaced with the SIoU loss function to improve training speed and inference accuracy. Finally, the lightweight GhostNet was adopted to reconstruct the backbone network of YOLO v5, ensuring the models performance while reducing its size. The calibration of the depth camera was completed, alignment between RGB images and depth images was achieved, and the target 3D coordinates were obtained through coordinate transformation. Experimental results showed that the YOLO v5-cytp model achieved an average precision of 93.4%, representing a 1.2 percentage points improvement over the original YOLO v5 model. Meanwhile, the memory footprint was reduced from 3.79MB to 3.02MB, with a reduction of 20.31%. The identification rate of the model for mulberry branches reached 91.11%, and the maximum errors in the 3D coordinate positioning of the lower part of the branches (X, Y, Z) were (11.3, 14.1,27.0)mm, respectively, which were within the allowable error range. The research result can simultaneously realize the identification and positioning of mulberry leaf picking from bottom to top and branch pruning operations, providing a reference for the development of intelligent mulberry harvesting and pruning robots.