Researchers in Xinjiang, China, have unveiled a new artificial intelligence framework that teaches a segmentation network exactly when and where to trust estimated depth information, dramatically improving how computers distinguish leaves, peppers, and flowers in messy field photographs. The method, called Depth-Routed Selective Attention, or DRSA, is described in an open-access study published in the journal Plant Methods, and it could become a key perception module for precision spraying systems that aim to hit only the plant organs that need treatment.
The problem the team set out to solve is deceptively simple to state but notoriously difficult in practice. Site-specific spraying in chili pepper production requires a machine to separate individual organs—leaves, fruits, and flowers—from handheld images captured in open fields. Under ideal studio lighting, modern convolutional and transformer-based segmentation models handle such tasks well. But real pepper canopies are unforgiving: organs overlap and occlude one another, dust coats leaf surfaces, and the waxy, glossy skin of chili fruits produces specular highlights that scramble the color and texture cues on which RGB-only models depend. When appearance fails, the network’s predictions smear across organ boundaries, and any downstream spraying decision inherits that error.
Depth information offers an obvious escape route. A second camera or a laser scanner can supply geometric structure that survives bad lighting, but RGB-D hardware adds cost, calibration burden, and fragility for handheld field use. The researchers instead turned to monocular depth estimation, using the publicly available pretrained Depth Anything V2 model to infer a depth map from each ordinary phone photograph. This estimated depth acts as an accessible structural prior—no special sensors required. Yet the team recognized a subtlety that most depth-fusion approaches ignore: the reliability of estimated monocular depth is not uniform across an image. It tends to be trustworthy in some regions, particularly near strong geometric boundaries, and questionable elsewhere. Fusing depth indiscriminately can therefore inject noise precisely where the network can least afford it.
DRSA’s central innovation is a single per-pixel routing field that jointly governs where two depth-derived mechanisms contribute. The first mechanism is depth-boundary cross-attention, which lets the network consult geometric cues near organ contours, where they matter most for separating touching leaves and fruits. The second is residual depth fusion, which blends depth features into the RGB representation in the regions the routing field selects. Through one shared decision, DRSA ensures that geometric cues act near organ boundaries while RGB remains the default carrier of information everywhere else. In other words, the network does not have to choose globally between trusting color or trusting depth; it makes that choice locally, pixel by pixel, for every image it sees.
Crucially, the routing field is calibrated online from the network’s own depth-on and depth-suppressed predictions, without requiring any manually annotated trust maps. This design sidesteps what would otherwise be a laborious labeling burden: nobody has to sit down and mark which parts of each depth estimate are reliable. Instead, the model compares its own behavior with and without depth, learns where depth helps, and routes accordingly. The approach reflects a broader principle gaining traction in agricultural AI—estimated cues from foundation models are useful, but only if the system knows their limits and applies them selectively.
To train and evaluate the framework, the team built PepperField-EstDepth, a self-constructed dataset of 3,940 handheld field images of chili pepper canopies, each paired with estimated monocular depth. The images were collected with commodity phone cameras in open field plots in southern Xinjiang, with a field-acquisition team assisting with collection and annotation. On this benchmark, DRSA achieved a mean intersection over union of 90.20 percent and a boundary mIoU of 84.48 percent, outperforming both RGB-only baselines and attention-based RGB-D fusion baselines. Relative to the RGB segmentation reference, the gains amounted to 1.98 and 2.67 percentage points respectively—modest-sounding margins that translate into substantially cleaner organ boundaries in exactly the ambiguous, occluded regions where spraying errors originate.
The authors also stress-tested generalization using group cross-validation, a protocol that holds out entire groups of images to simulate deployment on unseen field conditions. Under this stricter regime, DRSA reached an mIoU of 0.8919 plus or minus 0.0031 and a boundary mIoU of 0.8294 plus or minus 0.0046, indicating that the performance is stable rather than an artifact of particular images. Because the study used only handheld phone photographs and a publicly available pretrained depth checkpoint, with no novel physical materials produced, the pipeline is deliberately reproducible by other laboratories working on similar crops.
For the intended spraying application, the numbers matter most at the organ level. DRSA attained a target recall of 0.9814 and a target precision of 0.9756, meaning that nearly all organs requiring spray are detected and very few non-target organs are wrongly activated. The organ-level off-target activation rate was just 2.44 percent—a figure that speaks directly to reducing chemical waste and collateral deposition on flowers or leaves that should remain untreated. Timing measurements show a segmentation-only latency of 43.0 milliseconds when depth is pre-generated, rising to 219.6 milliseconds for the full RGB-to-mask visual pipeline when online Depth Anything V2-L depth generation is included. Those latencies position DRSA as a pre-spray perception module rather than a real-time closed-loop controller, a distinction the authors make explicitly.
The work was supported by the Joint Foundation of Tarim University and Nanjing Agricultural University, the Bingtuan Science and Technology Program, the Tianshan Talents Cultivation Program of Xinjiang Uygur Autonomous Region, and the Presidential Foundation of Tarim University. The research team, based at Tarim University’s College of Information Engineering and the Key Laboratory of Tarim Oasis Agriculture under the Ministry of Education, with corresponding author Tiecheng Bai, sees DRSA as part of a larger shift toward spray-aware perception in precision agriculture. As foundation models for depth, segmentation, and language continue to mature, the selective-use philosophy embodied in DRSA—borrow a powerful prior, but route it only where it pays—offers a template that could extend well beyond chili peppers to other row crops, orchard systems, and any vision task where sensor estimates are helpful but imperfect.
Subject of Research: Depth-guided selective attention for chili pepper organ segmentation in precision agriculture
Article Title: DRSA: Depth-Routed Selective Attention for chili pepper organ segmentation with selective use of estimated monocular depth
Article References: Zhou, W., Wang, Z., Chi, J., Chen, H., Yan, P., & Bai, T. (2026). DRSA: Depth-Routed Selective Attention for chili pepper organ segmentation with selective use of estimated monocular depth. Plant Methods. https://doi.org/10.1186/s13007-026-01581-y
Image Credits: AI Generated
DOI: 10.1186/s13007-026-01581-y
Keywords: precision agriculture, chili pepper, organ segmentation, monocular depth, Depth Anything V2, selective attention, depth routing, site-specific spraying, computer vision, deep learning, Plant Methods, spray-aware perception
Cite Scienmag News
Alan Morgan. (September 20, 2026). AI Learns Where to Trust Depth for Sharper Chili Pepper Segmentation. Scienmag. https://scienmag.com/ai-learns-where-to-trust-depth-for-sharper-chili-pepper-segmentation/
Alan Morgan. "AI Learns Where to Trust Depth for Sharper Chili Pepper Segmentation." Scienmag, 20 September 2026, https://scienmag.com/ai-learns-where-to-trust-depth-for-sharper-chili-pepper-segmentation/. Accessed 20 September 2026.
Alan Morgan. "AI Learns Where to Trust Depth for Sharper Chili Pepper Segmentation." Scienmag. September 20, 2026. https://scienmag.com/ai-learns-where-to-trust-depth-for-sharper-chili-pepper-segmentation/

