Manuscript Offprint

arXiv:2610.23440

ShadowCast: On-the-Fly Context-Aware Shadow Augmentation for Remote Sensing Image Segmentation

Yechan Kim, Dongho Yoon, Jongmin Joo, JongHyun Park, Moongu Jeon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yechan Kim ID^{ID}, Dongho Yoon, Jongmin Joo, JongHyun Park, and Moongu Jeon ID^{ID}

Abstract—Shadows cast by elevated objects alter the spectral appearance and obscure the boundaries of objects in remote sensing images, thereby degrading semantic segmentation performance. Most existing approaches handle shadows as degradations to be detected and removed, requiring additional costs from dedicated networks and shadow-specific annotations. We propose ShadowCast, which takes the opposite approach: it synthesizes shadows and injects them during training for remote sensing segmentation. It extracts masks of elevated objects, such as buildings and trees, directly from the segmentation labels and estimates an image-specific cast-shadow direction cue by probing the brightness around them. It then projects synthetic shadows along the inferred cast-shadow direction, requiring no learned network and no acquisition metadata. Experiments on three widely used remote sensing benchmarks, Vaihingen, Potsdam, and LoveDA, show that ShadowCast consistently outperforms the baseline across diverse state-of-the-art segmentation architectures. Moreover, it brings additional performance gains when combined with standard augmentation and regularization techniques, indicating that stochastic shadow injection serves as a simple and complementary augmentation strategy for remote sensing segmentation.

Index Terms—Data augmentation, shadow injection, remote sensing image segmentation.

I. INTRODUCTION

REMOTE sensing (RS) image segmentation is fundamental to applications such as urban planning, land-cover mapping, and disaster response. However, its performance is affected by substantial variations in object scale, spectral appearance, spatial context, and imaging conditions. Among these factors, this work focuses on cast shadows generated by elevated objects such as buildings and trees. Their location and extent vary with illumination geometry and scene structure [1], while reduced illumination alters the spectral appearance of the underlying surfaces and can obscure object boundaries [2], [3]. Although the semantic identity of a surface remains unchanged, its illuminated and shadowed regions may exhibit substantially different visual characteristics. Consequently, cast shadows can increase intra-class appearance variation and inter-class spectral confusion, thereby degrading segmentation predictions in shadowed regions.

Most shadow studies for RS image understanding have formulated the problem primarily as shadow detection, removal, or radiometric reconstruction [4], [5], [6], [7], [8], [9], [10], [11], [1], [12]. Although such approaches are intuitive, they commonly rely on multi-stage pipelines involving dedicated shadow detectors and restoration modules, resulting in additional computational and annotation costs. Besides, errors in shadow detection can propagate to subsequent restoration and segmentation stages, while imperfect restoration may alter non-shadow regions or suppress task-relevant spectral and structural cues. A natural alternative is to expose the segmentation model to shadow-induced appearance variations during training. However, generic shadow augmentation, such as RandomShadow and PlasmaShadow [13], darkens randomly generated image regions without considering which scene objects can plausibly cast shadows.

To address this challenge, we propose ShadowCast, a learning-free, context-aware augmentation method that conditions shadow synthesis on information already available in each image-label pair. Here, context-aware refers to conditioning the augmentation on two complementary sources of scene context. First, semantic context from the segmentation labels identifies elevated objects, such as buildings and trees, that can plausibly cast shadows. Second, photometric context from the input image provides an image-specific cast-shadow direction cue through the local brightness distribution around these objects. Using these two cues, ShadowCast projects synthetic shadows from plausible shadow-casting objects along the inferred cast-shadow direction. Because the entire procedure relies only on the input image and its segmentation label, it does not require additional detection/generative network, shadow-specific annotations, and acquisition metadata such as solar azimuth, solar elevation, and sensor geometry.

We evaluate ShadowCast on three widely used RS semantic segmentation benchmarks: ISPRS Vaihingen, Potsdam, and LoveDA, across diverse segmentation architectures. The results consistently demonstrate the effectiveness of context-aware shadow augmentation, with ShadowCast outperforming both standard training and existing shadow augmentations. Moreover, its consistent gains when combined with existing augmentation and regularization strategies show that ShadowCast provides a complementary source of training variation.

References (37)