[Paper Review] Revisiting Shadow Detection: A New Benchmark Dataset for Complex World
This paper introduces the CUHK-Shadow dataset, a large-scale benchmark of 10,500 real-world shadow images with dense masks, covering diverse scenes, cast and self-shadows, and a validation split. It proposes FSDNet, a lightweight deep network with a detail enhancement module and direction-aware context aggregation, achieving state-of-the-art performance with only 4M parameters and real-time inference, significantly outperforming prior methods on complex real-world shadow detection.
Shadow detection in general photos is a nontrivial problem, due to the complexity of the real world. Though recent shadow detectors have already achieved remarkable performance on various benchmark data, their performance is still limited for general real-world situations. In this work, we collected shadow images for multiple scenarios and compiled a new dataset of 10,500 shadow images, each with labeled ground-truth mask, for supporting shadow detection in the complex world. Our dataset covers a rich variety of scene categories, with diverse shadow sizes, locations, contrasts, and types. Further, we comprehensively analyze the complexity of the dataset, present a fast shadow detection network with a detail enhancement module to harvest shadow details, and demonstrate the effectiveness of our method to detect shadows in general situations.
Motivation & Objective
- To address the limitations of existing shadow detection benchmarks, which lack diversity in scene types, shadow types (especially self-shadows), and proper validation splits.
- To collect and annotate a large-scale, diverse, and realistic dataset that reflects the complexity of real-world shadow scenarios.
- To develop a fast and accurate deep neural network, FSDNet, capable of detecting shadows in complex, real-world conditions with high fidelity and low computational cost.
- To demonstrate that state-of-the-art models trained on existing datasets fail on the new benchmark, highlighting the need for more robust and generalizable shadow detection methods.
Proposed method
- The authors collected 10,500 real-world images from five diverse sources: cities, buildings, satellite maps, roads, and indoor scenes, each with a pixel-level ground-truth shadow mask.
- The dataset includes both cast shadows on background objects and self-shadows on occluding objects, increasing realism and complexity.
- A validation set was included to support hyperparameter tuning and ablation studies, reducing overfitting risks.
- FSDNet is proposed as a lightweight network with a direction-aware spatial context module to aggregate global context from high-level features.
- A detail enhancement module is designed to recover fine shadow details from low-level features, improving localization accuracy.
- The network is trained end-to-end using a balanced cross-entropy loss and evaluated on the new benchmark to compare with state-of-the-art methods.
Experimental results
Research questions
- RQ1How does the performance of existing state-of-the-art shadow detection models degrade when evaluated on a more complex, real-world benchmark?
- RQ2To what extent do current datasets fail to represent the diversity of real-world shadow scenarios, including scene types, shadow types (cast vs. self), and background complexity?
- RQ3Can a lightweight deep learning model achieve high accuracy and real-time inference on complex real-world shadow detection without relying on heavy architectures?
- RQ4How do domain shifts between different scene categories affect the generalization of shadow detection models?
Key findings
- FSDNet achieves state-of-the-art performance on the new CUHK-Shadow benchmark, outperforming existing methods in both accuracy and inference speed.
- The model achieves a balanced error rate (BER) of 4.8% on the test set, significantly outperforming previous methods that achieved BER <4% on older benchmarks but fail on this new, more complex dataset.
- FSDNet has only 4 million parameters, enabling real-time inference (under 20ms per image), making it suitable for deployment in real-time applications.
- The model's performance degrades substantially when applied to unseen scene categories, indicating significant domain shift and the need for domain-general models.
- The dataset's complexity is quantified: average shadow area proportion is 12.3%, with up to 15 shadows per image, and high contrast variations between shadow and non-shadow regions.
- Applying histogram equalization only on detected shadow regions using the FSDNet mask improves object detection performance on shadowed persons, demonstrating practical utility in vision pipelines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.