Abstract:Aiming to address the problem of picking point localization caused by slender stem morphology and weak chromatic contrast with the environment, a lightweight segmentation model was proposed based on the improved YOLO v11n architecture, designated as YOLO v11n-MBCa. Firstly, a high-quality dataset was constructed and a lightweight MobileNetV4 network was introduced to replace the original backbone network of YOLO v11n. Simultaneously, a weighted bidirectional feature pyramid network (BiFPN) incorporating a coordinated attention (CA) mechanism was implemented in the feature fusion layer (Neck). Finally, image segmentation was performed and the optimal picking points for grape cluster stems were calculated by using an optimized center of mass algorithm. Experimental results demonstrated that the YOLO v11n-MBCa model achieved significant improvements across multiple performance metrics. Compared with the baseline YOLO v11n model, as well as series-equivalent models, including YOLO v5n, YOLO v8, and Small-YOLO, the proposed model exhibited average accuracy increases of 6.2, 34.8, 9.5, and 17.4 percentage points, respectively. Precision (P) metrics showed improvements of 2.7, 21.0, 3.6, and 12.1 percentage points, respectively. With only 2.22×106, the model demonstrated balanced optimization between high accuracy and low missed detection rates. The detection speed reached 59.59f/s, meeting real-time requirements for automated picking equipment. Additionally, four picking scenarios (non-obstructed, obstructed, multi-target, and long-distance) were evaluated through 127 experimental trials, yielding a 91.3% success rate in picking point calculation. These findings validated the effectiveness of the lightweight architecture design, multi-scale feature fusion strategy, and attention mechanism implementation in complex agricultural environments, particularly for detecting elongated grape cluster stems. A technical foundation for future intelligent harvesting systems was established.