Triple-cooperative Video Shadow Detection

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

Introduction

Shadow detection is a fundamental task in computer vision, yet while static image shadow detection has advanced significantly, Video Shadow Detection (VSD) has remained underdeveloped. The primary challenges in VSD include motion blur, varying lighting conditions, and the difficulty of distinguishing shadows from dark-colored objects in motion. This paper addresses these issues by introducing ViSha, the first large-scale video shadow dataset, and TVSD-Net, a novel triple-cooperative network designed to leverage both temporal and semantic cues.

The ViSha Dataset

A major bottleneck for VSD research has been the lack of high-quality, annotated data. The authors contribute the ViSha (Video Shadow) dataset to fill this gap. It consists of 120 video sequences with 11,685 frames, all featuring pixel-level manual annotations. The dataset is highly diverse, covering 60 object categories across seven main classes (Human, Plant, Vehicle, Animal, Artifact, Building, and Others) and includes various environmental conditions such as indoor/outdoor scenes and day/night lighting.

TVSD-Net: Triple-Cooperative Architecture

The proposed Triple-cooperative Video Shadow Detection network (TVSD-Net) utilizes a unique training strategy. Unlike standard models that process single frames or pairs, TVSD-Net takes three inputs: two neighboring frames from the same video ($I_{a1}, I_{a2}$) and one random "stranger" frame from a different video ($I_b$).

Overview of the TVSD-Net architecture, highlighting the triple-input stream and the interaction between the DGC and T modules.

Core Modules

  1. Dual Gated Co-attention (DGC) Module: This component manages intra-video correlations. By using a co-attention mechanism with spatial and channel gates, it filters noise and occlusions between neighboring frames, ensuring the model focuses on coherent temporal features.
  2. Triple-cooperative (T) Module: This module handles inter-video relationships. It employs an auxiliary similarity loss to ensure that features from the same video are mathematically similar while remaining distinct from those of different videos. This "stranger frame" strategy helps the model learn a more robust semantic understanding of what constitutes a shadow across different contexts.

Key Results

TVSD-Net was evaluated against 12 state-of-the-art models, including image shadow detectors and video object segmentation (VOS) models. Quantitatively, TVSD-Net achieved a Mean Absolute Error (MAE) of 0.033 and a Balance Error Rate (BER) of 17.70, significantly outperforming existing methods like MTMT and COSNet.

Visual comparison of TVSD-Net against other state-of-the-art methods, showcasing its robustness against dark objects and complex backgrounds.

Qualitative results demonstrate that TVSD-Net is particularly effective at distinguishing between shadows and dark objects (e.g., a black car or bottle), a common failure point for models that rely solely on intensity or object boundaries. The model is also efficient, processing frames at approximately 0.06s per image.

Conclusion

By providing the first large-scale VSD dataset and a network that cooperatively learns from temporal and semantic relationships, this work sets a new benchmark for video shadow detection. Future work may explore semi-supervised learning to further leverage unlabeled data and improve performance on challenging "soft" shadows and extreme low-light conditions.

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