Triple-Cooperative Video Shadow Detection

Zhihao Chen, Liang Wan, Lei Zhu, Jia Shen, Huazhu Fu, Wennan Liu, Jing Qin

Abstract

Video Shadow Detection (VSD) is a critical yet challenging task in computer vision, primarily hindered by the lack of large-scale datasets and the difficulty of distinguishing shadows from dark objects. This paper presents ViSha, the first comprehensive dataset for VSD, and TVSD-Net, a novel triple-cooperative network designed to leverage temporal consistency and contrastive learning. By training on paired intra-video frames and an inter-video distractor, TVSD-Net achieves state-of-the-art performance, significantly reducing shadow-object confusion in dynamic scenes.

Introduction

Shadow detection is fundamental for various downstream tasks like object tracking and scene understanding. While static image shadow detection has matured, Video Shadow Detection (VSD) has lagged behind. The primary obstacles are two-fold: the absence of high-quality, pixel-level annotated video datasets and the inherent ambiguity between shadows and dark-colored objects. In dynamic video sequences, fluctuating lighting and camera motion exacerbate these issues, requiring models that can effectively utilize temporal information to ensure shadows "behave" consistently over time.

The ViSha Dataset

To address the data scarcity, the authors introduced ViSha (Video Shadow dataset). It comprises 120 high-quality videos with 11,685 frames, totaling 390 seconds of footage. The dataset is highly diverse, covering 60 object categories—including humans, vehicles, and animals—across indoor and outdoor environments under varying lighting conditions. Crucially, every frame is manually annotated with pixel-accurate binary masks, providing the first robust benchmark for future VSD research.

Triple-Cooperative Network (TVSD-Net)

The proposed TVSD-Net architecture employs a "triple-cooperative" strategy to enhance shadow discrimination. Unlike traditional models that process single frames or simple sequences, TVSD-Net utilizes three parallel branches to learn universal shadow properties.

The architecture of TVSD-Net featuring the Dual Gated Co-attention (DGC) and Triple-cooperative (T) modules.

The network takes two neighboring frames from the same video ($I_{a1}, I_{a2}$) and one "distractor" frame from a completely different video ($I_b$). It consists of two main innovative components:

  1. Dual Gated Co-attention (DGC) Module: This module manages intra-video features. It identifies coherent shadow features between $I_{a1}$ and $I_{a2}$ while using a gating mechanism to filter out noise caused by occlusions or sudden camera movements.
  2. Triple-cooperative (T) Module: This component handles inter-video relationships. By applying an auxiliary similarity loss, it encourages the model to learn that features within the same video should be similar, while those from the distractor video should be distinct. This contrastive approach helps the model internalize the semantic essence of shadows regardless of specific background textures.

The system utilizes a ResNeXt-101 backbone combined with Atrous Spatial Pyramid Pooling (ASPP) to capture multi-scale contextual information.

Experimental Results

TVSD-Net was evaluated against 12 state-of-the-art models across related domains, including image shadow detection and video saliency. Quantitatively, it established new benchmarks on the ViSha dataset, achieving a Mean Absolute Error (MAE) of 0.033 and a Balance Error Rate (BER) of 17.70. This represents a significant 17.5% improvement in MAE over the previous leading video model, COSNet.

Qualitative comparison of TVSD-Net against other state-of-the-art methods, highlighting its ability to distinguish shadows from dark objects.

Qualitatively, TVSD-Net demonstrates a superior ability to separate shadows from dark objects (the "dark object" confusion). As shown in Figure 6, while competing models often struggle with dark items—lumping shadows and dark objects into a single mask—TVSD-Net maintains clear boundaries and high temporal consistency, even for complex "soft shadows" with blurry edges.

Conclusion

The introduction of the ViSha dataset and the TVSD-Net architecture marks a significant advancement in Video Shadow Detection. By leveraging triple-cooperative learning and temporal gating, the model effectively addresses the long-standing challenge of shadow-object ambiguity. Future work will likely focus on improving the handling of extremely complex dynamic lighting scenarios and optimizing the computational efficiency of multi-branch architectures for real-time applications.

Summary updated

BibTeX
@inproceedings{chen2021triple,
  author = {Zhihao Chen and Liang Wan and Lei Zhu and Jia Shen and Huazhu Fu and Wennan Liu and Jing Qin},
  title = {{Triple-Cooperative Video Shadow Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00274},
}
Figure