# PlantShade: Predicting Plant Shadows for Lighting-Aware Robotic Agricultural Operation

Robotics.world

> Agricultural robots need to reason about light and shadow in crop canopies, since shading changes with sun angle, supplemental lighting, and plant growth, and directly affects both what cameras see…

**arXiv**: 2609.21059 · accepted · IROS

**Published**: 2026-09-17

**Authors**: Longchao Da, Xiaoou Liu, Xingjian Li, Lirong Xiang, Hua Wei

## In plain words

Agricultural robots need to reason about light and shadow in crop canopies, since shading changes with sun angle, supplemental lighting, and plant growth, and directly affects both what cameras see and how much the plant photosynthesizes.

## AI summary

## Overview

**Research area:** Agricultural robotics and computer vision — specifically generative modeling of plant shadows for lighting-aware robotic operations.

**Technical level:** Advanced. The paper assumes familiarity with diffusion models, ControlNet conditioning, and plant simulation frameworks (Helios, Unreal Engine 5), though the motivation and application sections are accessible to a broader robotics audience.

**Scope:** The paper introduces a 38,500-pair synthetic plant-shade dataset and a ControlNet-conditioned diffusion model that predicts plant shadow maps from a top-down view given a plant image and a textual description of a moving supplemental light's position.

## What This Paper Is About

Agricultural robots need to reason about light and shadow in crop canopies, since shading changes with sun angle, supplemental lighting, and plant growth, and directly affects both what cameras see and how much the plant photosynthesizes. Existing plant-growth simulators either produce low-fidelity, non-photorealistic renders or abstract away 3D structure, while generic shadow-generation models assume rigid objects and static lighting. The authors' goal is to make plant shadows predictable in real time from a fixed camera view, so that robotic systems can plan lighting, generate synthetic training data, and evaluate interventions such as pruning without exhaustive physical trials.

## Key Contributions

1. **A large-scale plant shade dataset.** 38,500 image pairs at 1920×1080 from a Helios–UE5 pipeline, covering four species (tomato, soybean, sugar beet, strawberry), plant ages 7–119 days, and three layout configurations (1×1, 1×3, 3×5), captured from a nadir camera at 1.8 m with a supplemental light orbiting on a circular trajectory (1.25 m radius, 1.8 m height).
2. **A generative shade simulation model.** A ControlNet-conditioned diffusion model built on Stable Diffusion v2.1 that takes a reference plant RGB image, a Canny-edge structural representation, and a text encoding of the light position, and outputs a grayscale shadow map for unseen plants and time steps.
3. **Quantitative and qualitative evaluation across species and layout complexity,** including out-of-domain (OOD) layouts, spanning mIoU, Boundary IoU, LPIPS, and MSE.
4. **A downstream photosynthesis evaluation pipeline.** Predicted shadow maps are converted to canopy-level photosynthetic rate estimates via the non-rectangular hyperbola (NRH) model, enabling in-silico comparison of light placements.

## Main Findings

- **PlantShade outperforms the Stable Diffusion baseline on all four metrics.** On single-plant tomato, mIoU is 0.2636 versus 0.0080, B-IoU 0.3808 versus 0.0176, LPIPS 0.0660 versus 1.0366, and MSE 72.157 versus 92.067. The same direction of improvement holds across soybean, strawberry, sugar beet, and all multi-plant layouts.
- **Performance degrades under distribution shift, for both methods.** OOD settings (e.g., sugar beet in the single-plant column, soybean and strawberry in the 3×5 column) show markedly worse results than in-domain ones — sugar beet single-plant mIoU drops to 0.0314 and LPIPS rises to 0.3713, while 3×5 soybean and strawberry reach mIoU of only 0.0863 and 0.1094.
- **In-domain multi-plant results remain comparatively strong.** For 3×5 layouts, tomato reaches mIoU 0.3283 and sugar beet 0.5530 with MSE of 57.421 and 41.876 respectively.
- **Qualitative inspection shows correct global light direction and structural shadow patterns** across species, growth stages, and layouts, with temporal consistency as canopy density increases.
- **Small plants are the hardest case.** Sparse, fine structures produce indistinct shadow boundaries, and the model sometimes over-generates shadow regions relative to ground truth.
- **Dense 3×5 layouts create shadow-attribution ambiguity,** because inter-leaf occlusion causes overlapping shadows that are hard to assign to individual plants.
- **Shadow-aware light placement raises predicted canopy photosynthesis across all species and layouts.** Soybean shows the largest absolute gain, rising from approximately 14–18 to 22–24 μmol CO2 m−2 s−1; strawberry, with the lowest Pmax (12.0), shows the smallest absolute gain.
- **The Helios and UE5 renderings show similar illumination trends** under a rotating supplemental light, though UE5 produces a more refined shade gradient (Helios's radiation plugin lacks smooth shading, and its visualizer plugin supports only a single light source).

## Methodology in Plain English

The authors first built a data generator by connecting two simulators. Helios, a biophysical plant model with 25 procedural plant species, grows the 3D plant geometry; Unreal Engine 5 renders it photorealistically. The two communicate over ROSbridge and ROSIntegration, with meshes passed as OBJ files and materials as MTL files, and UE5 loads them through DynamicMeshComponent. To keep things fast, leaf and stem subdivision counts are reduced from defaults, and the mesh gets extra preprocessing for smooth shading. The environment runs at about 100 FPS, images are published at 2 FPS, and pairs are saved every 6 seconds so that the image and the supplemental light position stay synchronized.

Shadow ground truth is computed with a post-processing material attached to the scene capture cameras rather than to the plant materials — an inverse luminance measure normalized by the material's diffuse luminance, using sRGB weights (0.213 R, 0.715 G, 0.072 B), plus a subtractive term that boosts contrast in mid-shadow regions. A primary solar source sits at 52.24° elevation, and the supplemental light circles the plant.

For the model, the task is framed as conditional generation: given a fixed base RGB image, a fixed edge map, and a text prompt describing where the light is at time *t*, produce a shadow map at time *t*. The prompt is encoded and injected into the diffusion U-Net through cross-attention; the edge map and base image go through a ControlNet branch whose features are fused into intermediate U-Net layers. Training uses the standard denoising objective. All models train for 50 epochs on Stable Diffusion v2.1; the data is split 80/20 (seed 42) into 24,720 training and 6,180 test samples, with 7,600 pairs held out separately for OOD evaluation and 30,900 used for training and in-domain evaluation. Shadow regions are binarized at a fixed threshold of 40.

For the photosynthesis study, depth maps from the simulator convert pixel counts to real leaf area using the pinhole model with focal length 872.72, shaded fraction is computed as shaded leaf area over total leaf area, and the NRH model is applied with α = 0.05, θ = 0.7, I₀ = 1000 μmol photons m−2 s−1, and β = 0.3, using species-specific Pmax values (tomato 17.5, soybean 32.5, strawberry 12.0, sugar beet 20.0).

## Why This Matters

**Impact on research.** The paper fills a stated gap: no prior work provides both a dedicated image dataset and a generative model for plant-specific shade under controllable lighting. It also contrasts with prior synthetic agricultural shadow data (Huang et al.'s 50,000 images at 512×512 with only a few plant models) by offering 385 plant models across four crop types and growth stages. The sensor-attached shader design also differs from SynavisUE, which attaches material-based shaders to individual plants and requires material switching.

**Real-world applications:**

- **Supplemental lighting optimization** — comparing candidate light placements and trajectories in simulation before physical deployment, reducing trial-and-error and energy waste in controlled environments.
- **Light exposure and microclimate analysis** — spatially resolved shadow sequences informing planting density, row orientation, and sensor or robot platform placement.
- **Robotic shade-aware pruning** — simulating branch removal and assessing resulting self- and mutual-shading to identify pruning decisions that improve canopy light uniformity.
- **Synthetic training data and sim-to-real transfer** — pixel-aligned RGB and shadow pairs for segmentation, detection, and lighting-invariant feature learning, extensible to unseen species or growth stages.

**Industry relevance.** Greenhouse growers, controlled-environment agriculture operators, and agricultural robot developers can use the framework to evaluate lighting strategies and canopy management decisions without costly physical trials, and to train perception models that hold up across illumination conditions.

## Future Directions

- **Improving performance on small and sparse plants,** where shadow boundaries are indistinct and the model tends to over-generate shadow regions relative to ground truth.
- **Disentangling overlapping shadows in dense layouts.** Under 3×5 placements, inter-leaf occlusion makes shadow attribution across neighboring plants ambiguous, which the authors identify as essential for downstream photosynthesis modeling.
- **Closing the out-of-domain gap.** Degradation under unseen layout combinations was observed for both methods, so generalization to novel species and placement configurations remains open.
- **Extending the pipeline to full robotic deployment,** since the current evaluation is in-silico and the photosynthetic gains are presented to demonstrate the feasibility of light-placement evaluation rather than as absolute productivity claims.

## Target Audience

Robotics and computer vision researchers working on agricultural automation, sim-to-real transfer, and lighting-aware perception; controlled-environment agriculture and greenhouse lighting specialists; and plant scientists interested in connecting high-fidelity shade simulation to canopy photosynthesis models. Readers without a background in diffusion models will find the dataset and application sections most immediately useful, while the modeling section requires familiarity with ControlNet and latent diffusion.

## Authors’ abstract

Plant growth and agricultural production form the foundation of a country's sustainable development and directly impact human livelihoods. Recent advances in frontier artificial intelligence have enabled scientific agriculture with strong potential to improve crop productivity. In this paper, we identify the importance and inherent complexity of plant shade simulation, as shading is a critical factor influencing plant growth. To advance this field and promote broader…

[The full abstract on arXiv](https://arxiv.org/abs/2609.21059)

[Read the original paper](https://arxiv.org/abs/2609.21059)

## Related papers

- [FORM: Robot Manipulation through Direct Material Law Identification](https://robotics.world/paper/form-robot-manipulation-through-direct-material-law-identification-2609.38105) 2026-09-29 · cs.RO · Also by Xingjian Li
- [VLA-Scope: Shift-Aware Failure Prediction for Vision-Language-Action Models](https://robotics.world/paper/vla-scope-shift-aware-failure-prediction-for-vision-language-action-2609.21246) 2026-09-18 · cs.RO · Key terms of the title in common
- [Continual Learning for Traversability Prediction with Uncertainty-Aware Adaptation](https://robotics.world/paper/continual-learning-for-traversability-prediction-with-uncertainty-aware-2609.17141) 2026-09-15 · cs.RO · Key terms of the title in common
- [Contact-Aware Incremental Model Predictive Control for an Underactuated Aerial Manipulator](https://robotics.world/paper/contact-aware-incremental-model-predictive-control-for-an-underactuated-2609.11661) 2026-09-10 · cs.RO · Key terms of the title in common
- [Context-Aware Adaptive Pesticide Spraying for Agricultural Robots under Changing Weather and Terrain Using Vision-Language Models](https://robotics.world/paper/context-aware-adaptive-pesticide-spraying-for-agricultural-robots-under-2610.08807) 2026-09-09 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/plantshade-predicting-plant-shadows-for-lighting-aware-robotic-2609.21059
