Agricultural engineers have developed an automated visual localization framework designed to identify shared candidate picking points on mango main peduncles, achieving a 91.00 percent overall localization success rate across evaluated orchard samples. Published in Smart Agricultural Technology by researchers Tianyu Li, Shichao Wen, Jintao Li, Wenbin Shi, and Hongwei Li, the investigation introduces an architecture that couples an improved YOLOv8n-seg instance segmentation network with a density-reachability path determination strategy. Rather than treating each individual fruit as an isolated target that demands separate detection, kinematic alignment, and cutting maneuvers, the system identifies the structural convergence of multiple peduncles attached to a common stem. By determining a single candidate cutting point in two-dimensional image space for entire fruit clusters, the approach establishes an algorithmic foundation for one-cut harvesting in multi-fruit configurations while retaining high operational reliability for solitary fruits.
Mango represents the second most widely cultivated tropical fruit across the globe, maintaining significant economic prominence due to its nutritional composition, including essential vitamins, polyphenols, and carotenoids located throughout the pulp, peel, and kernel tissues. Mechanizing the detachment process requires sophisticated visual perception systems capable of bridging the gap between optical sensors and robotic end effectors. In natural orchard canopies, however, automated localization encounters severe physical interference, such as fluctuating solar illumination, dense foliage occlusion, mutual fruit overlap, and complex vegetative backgrounds. Furthermore, mango peduncles exhibit slender morphological profiles with low pixel proportions, typically falling into the category of small target objects where the median ratio of bounding-box area to overall image area spans just 0.08 percent to 0.58 percent, causing conventional image processing and standard object detection frameworks to lose crucial boundary definitions.
To develop and evaluate a vision model capable of resolving fine peduncle structures, the research team constructed an experimental image dataset featuring five commercially prominent mango cultivars: Sijimi, Guiqi, Tainong, Aomang, and Jinhuang. Field imaging was executed across two major cultivation regions in Guangxi Zhuang Autonomous Region, China, specifically at the Guangxi Subtropical Agricultural Science New City in Fusui County, Chongzuo, and orchard plots within Tianyang District, Baise. Overcast and sunny conditions were recorded during June, July, and November 2025 using commercial smartphones, including the Honor 20 Pro, iQOO 11, iPhone 15 Pro, and Huawei Mate 50, capturing resolutions ranging from 3000 by 4000 pixels to 4284 by 5712 pixels. The resulting 1200 raw orchard images were systematically partitioned using a mutually exclusive 8:1:1 split, allocating 960 images to training and 120 images each to validation and testing. To prevent data leakage, spatial augmentations involving translation, rotation, and brightness adjustments via OpenCV were confined strictly to the training partition, expanding it to 2880 images while maintaining the validation and test subsets in an unaugmented, raw state. Pixel-level boundaries for peduncles and mango fruits were manually established using Labelme annotation software, treating all remaining canopy elements as background.
The deep learning pipeline adopts YOLOv8n-seg as its foundational architecture, modifying its backbone and neck networks to counter spatial degradation caused by downsampling slender targets. In standard convolutional backbones, repeated downsampling via strided convolutions progressively reduces feature map dimensions, frequently eradicating the fine-grained edge and texture signals essential for resolving narrow peduncle stalks. To resolve this structural attenuation, the authors replaced the original Conv modules in the YOLOv8n-seg backbone with Space-to-Depth Convolution (SPDConv) units. SPDConv implements a Space-to-Depth transformation that reorganizes local spatial pixels into the channel dimension according to a predefined stride, completely preserving sampled feature values prior to executing non-strided convolution with a stride of one for channel compression. This architectural alteration enables the model to preserve intricate boundary details and spatial continuity across slender peduncle regions without discarding crucial positional coordinates during feature extraction.
Complementary structural modifications were introduced into the neck of the network to strengthen multi-scale feature interactions and cross-level information exchange. The standard path aggregation network was augmented with Scale Sequence Feature Fusion (SSFF), a Triple Feature Encoder (TFE), and a Channel and Position Attention Mechanism (CPAM). The SSFF module aligns feature representations across different hierarchical network depths through channel scaling and upsampling, concatenating the aligned feature maps and employing three-dimensional convolutions to model cross-scale relationships across targets displaying variable aspect ratios. Concurrently, the TFE module ingests small, medium, and large feature maps in parallel, utilizing multi-branch feature encoding across disparate receptive fields to merge fine-grained shallow spatial cues with deep semantic context. Downstream of these fusion layers, CPAM dynamically generates attention weights across channel and spatial dimensions, selectively boosting relevant peduncle activations while suppressing noisy background responses from surrounding foliage and orchard branches.
All network training procedures were executed within an environment running Windows 10, Python 3.8.20, and PyTorch 1.8.1 with CUDA 10.1, utilizing an NVIDIA GeForce GTX 1650 graphics processing unit featuring 4 gigabytes of VRAM and an Intel Core i7-10750H central processing unit clocked at 2.6 gigahertz. Hyperparameters were established across 100 training epochs with an input resolution of 640 by 640 pixels, a batch size of 16, an initial learning rate of 0.01, a final learning rate of 0.0001, weight decay of 0.0005, a momentum coefficient of 0.937, and 3 warmup epochs. Validation segmentation loss exhibited steady convergence, reaching its minimum value of 0.72131 at epoch 97 without overfitting. Sequential ablation experiments documented the progressive impact of each module: baseline YOLOv8n-seg achieved a bounding-box mean average precision at an intersection-over-union of 0.5 (Box mAP@0.5) of 88.05 percent, a mask mAP@0.5 of 89.25 percent, and computational complexity of 12.48 GFLOPs. Introducing SPDConv elevated Box mAP@0.5 to 89.60 percent and Mask mAP@0.5 to 90.77 percent at 14.58 GFLOPs, while subsequent addition of TFE further increased these metrics to 90.00 percent and 91.10 percent at 14.63 GFLOPs. Adding SSFF slightly lowered metrics to 89.93 percent and 90.53 percent due to representational redundancy in cascaded neck pathways, but the final integration of CPAM established top performance at 90.22 percent Box mAP@0.5 and 91.18 percent Mask mAP@0.5 with a manageable footprint of 14.85 GFLOPs, representing an overall computational expansion of 19.0 percent.
To confirm that performance gains were statistically robust rather than artifacts of stochastic weight initialization, the baseline and fully modified networks were retrained across four independent random seeds: 42, 123, 2026, and 3407. Paired-samples t-tests confirmed statistically significant enhancements across all segmentation metrics. Mask precision advanced from 84.03 plus or minus 0.17 percent to 86.52 plus or minus 0.46 percent (p less than 0.01), mask recall increased from 85.45 plus or minus 0.13 percent to 86.26 plus or minus 0.43 percent (p less than 0.01), mask mAP@0.5 climbed from 89.25 plus or minus 0.06 percent to 91.18 plus or minus 0.18 percent (p less than 0.05), and mask mAP across the strict 0.5 to 0.95 threshold range increased from 70.20 plus or minus 0.08 percent to 72.68 plus or minus 0.34 percent (p less than 0.001). Benchmark comparisons against competing lightweight instance segmentation models under identical hardware conditions demonstrated that the improved YOLOv8n-seg model achieved an inference processing throughput of 76.51 frames per second with a model parameter size of 7.06 megabytes. While models like YOLOv12n-seg achieved higher inference speeds at 96.98 frames per second and Mask R-CNN achieved higher strict mask mAP at 74.10 percent, Mask R-CNN required an impractical 169.50 megabytes of storage and ran at only 17.80 frames per second, underscoring the improved network’s balanced trade-off between edge efficiency and segmentation accuracy.
Following pixel-level mask extraction, the localized candidate picking points are determined through a dedicated density-reachability geometric strategy operating upon extracted peduncle centerlines. The binary peduncle mask is first skeletonized using the Zhang-Suen thinning algorithm to generate a single-pixel-wide topological centerline, which is subsequently modeled as an undirected connected graph containing skeleton pixels and neighboring connectivity edges. The skeleton pixel exhibiting the minimum y-coordinate in image space is designated as the primary reference endpoint. A breadth-first search traversal extracts connected skeleton paths connecting each branch endpoint back to the reference coordinate. To quantify spatial path overlap, image coordinates are discretized into uniform spatial grid cells with a fixed side length of 5 pixels. When multiple skeleton branches converge and mutually traverse an identical subset of grid cells, those paths are classified as density-reachable, and their intersecting grid collection defines the shared main peduncle region. Candidate picking points are calculated by taking the coordinate-wise median across the geometric centers of these shared grid cells, effectively suppressing local skeletal noise and anomalous pixel outliers.
The practical efficacy of the localization strategy was evaluated on an external testing cohort comprising 200 distinct fruit configurations sampled from 215 orchard images not included in training, validation, or model tuning. These samples encompassed 355 individual mango fruits, divided equally into 100 single-fruit configurations and 100 multi-fruit cluster structures sharing a common stem. Successful localization was defined by whether the predicted coordinate fell within the predefined ground-truth peduncle boundary. The algorithm achieved successful localization in 92 of the 100 single-fruit configurations, yielding a 92.00 percent success rate with a 95 percent confidence interval of 85.00 percent to 95.89 percent via the Wilson score method. Among multi-fruit clusters, 90 of 100 samples were successfully resolved, corresponding to a 90.00 percent success rate with a 95 percent confidence interval of 82.56 percent to 94.48 percent. Across all 200 samples, 182 cases were correctly localized, establishing an aggregate success rate of 91.00 percent with an overall 95 percent confidence interval of 86.22 percent to 94.23 percent, verifying the model’s capacity to identify viable harvesting points across distinct canopy arrangements.
Environmental robustness was further evaluated across 355 target fruits exposed to distinct lighting regimes, encompassing 141 front-lit targets under direct sunlight, 84 back-lit targets under direct sunlight, and 130 targets under overcast conditions. Under sunny front-light illumination, the system localized 123 targets successfully, yielding an 87.23 percent success rate and a mean normalized radial localization error (MNRLE) of 0.08 relative to ground-truth peduncle centerlines. Under sunny back-lit conditions, 75 targets were localized successfully, producing an 89.29 percent success rate and an MNRLE of 0.14. Under cloudy diffuse lighting, 119 targets were resolved, attaining a 91.54 percent success rate and an MNRLE of 0.11. Across all illumination environments, 317 of 355 target fruits achieved successful localization, resulting in an aggregate success rate of 89.30 percent. Although point estimates fluctuated across lighting conditions, overlapping 95 percent confidence intervals indicated that performance remained statistically stable despite high natural variations in solar angle, canopy shadowing, and backlighting glare.
Quantitative error analysis revealed that failure to generate valid candidate picking points occurred in 18 of the 200 evaluated test samples, representing an overall failure rate of 9.00 percent. The researchers classified these failures into three distinct failure modes: incomplete segmentation, segmentation errors, and complete segmentation failures. Incomplete segmentation emerged as the dominant failure mechanism, accounting for 9 cases, which constituted 50.00 percent of all failed outcomes and 4.50 percent of the total sample population; in these instances, severe leaf and branch occlusions fragmented the predicted peduncle mask, disrupting skeleton connectivity and preventing path convergence. Segmentation errors accounted for 7 cases, representing 38.89 percent of failures and 3.50 percent of total samples, occurring when adjacent non-fruiting twigs, petioles, or neighboring canopy branches were erroneously fused with target peduncle masks. Complete segmentation failures occurred in 2 cases, representing 11.11 percent of failures and 1.00 percent of the total cohort, wherein motion blur or excessive optical noise precluded the network from predicting any valid fruit or peduncle mask.
The authors outline several critical technical boundaries and future engineering requirements necessary before this visual perception methodology can be integrated into physical harvesting machinery. The present validation was conducted strictly in two-dimensional image space using high-resolution mobile smartphone sensors without incorporating three-dimensional spatial coordinates, stereo depth cameras, manipulator kinematics, or robotic end-effector gripping constraints. In practical field deployments, image degradation stemming from platform vibrations, low-cost optical lenses, and motion blur could degrade peduncle segmentation quality. Additionally, the experimental dataset was confined to five mango cultivars cultivated in Guangxi, China; extending the methodology to other clustered crops such as longan, litchi, or tomato will require structural recalibration, particularly for highly hierarchical crops like grapes where skeleton-path screening parameters require tailored tuning. Finally, implementing a cluster-level harvesting approach in commercial orchards will necessitate downstream postharvest engineering, including cushioned net-collection systems and secondary singulation mechanisms to safely separate clustered fruits without causing physical bruising or rind abrasions.
Subject of Research: Automated visual localization of candidate picking points for mango clusters using deep learning and peduncle skeleton analysis
Article Title: A candidate picking point identification method for mango main peduncle regions based on improved YOLOv8n-seg and a density reachability based determination strategy
Article References: Li, T., Wen, S., Li, J., Shi, W., & Li, H. (2026). A candidate picking point identification method for mango main peduncle regions based on improved YOLOv8n-seg and a density reachability based determination strategy. Smart Agricultural Technology, 15, Article 102736. https://doi.org/10.1016/j.atech.2026.102736
Image Credits: AI Generated
DOI: 10.1016/j.atech.2026.102736
Keywords: mango harvesting, YOLOv8n-seg, instance segmentation, peduncle detection, density reachability, skeleton analysis, precision agriculture, agricultural robotics, SPDConv, computer vision, Zhang-Suen algorithm, cluster harvesting, feature fusion, orchard automation, radial localization error, Guangxi agriculture
Cite Scienmag News
Alan Morgan. (November 23, 2026). Computer Vision System Identifies Shared Cutting Points for Clustered Mango Harvesting. Scienmag. https://scienmag.com/computer-vision-system-identifies-shared-cutting-points-for-clustered-mango-harvesting/
Alan Morgan. "Computer Vision System Identifies Shared Cutting Points for Clustered Mango Harvesting." Scienmag, 23 November 2026, https://scienmag.com/computer-vision-system-identifies-shared-cutting-points-for-clustered-mango-harvesting/. Accessed 23 November 2026.
Alan Morgan. "Computer Vision System Identifies Shared Cutting Points for Clustered Mango Harvesting." Scienmag. November 23, 2026. https://scienmag.com/computer-vision-system-identifies-shared-cutting-points-for-clustered-mango-harvesting/








