Shadows provide essential cues for scene understanding, yet detecting them in video sequences remains challenging. While deep learning has advanced static image shadow detection, Video Shadow Detection (VSD) often suffers from temporal inconsistency, leading to "flickering" predictions. This paper introduces a novel approach using temporal feature warping to align and aggregate features across frames, significantly improving detection stability and accuracy.
The Challenge of Temporal Consistency
The primary difficulty in VSD is maintaining consistency between frames. Simple frame-by-frame detection often fails due to motion blur, noise, or lighting changes, causing predicted shadows to jump or disappear. Previous methods attempted to use "co-attention" mechanisms to find commonalities, but these often struggle with spatial misalignment and fail to capture small or fast-moving shadows because they do not explicitly account for pixel motion.
Methodology: Flow-Guided Feature Warping
The proposed architecture utilizes a two-branch network to process a pair of frames (Frame $t$ and Frame $t+k$).
- Backbone: MobileNet V2 serves as an efficient feature extractor.
- Optical Flow Refinement: An unsupervised ARFlow model estimates pixel motion. To adapt this generic flow to the shadow domain, a FlowCNN module refines the output, ensuring the motion estimation is optimized for shadow-heavy environments.
- FGwarp (Flow-Guided Warp): This core module aligns features from one frame with another using the refined optical flow. By warping features at multiple levels (low, mid, and high), the network preserves both sharp boundaries and global semantic context.
- Aggregation: Aligned features are combined, providing the network with temporally coherent information throughout the hierarchy.
Key Results and Performance
The model was evaluated on the ViSha dataset, the only large-scale benchmark for VSD. The results demonstrate a significant leap in performance:
- Quantitative Improvement: The method achieved a Balanced Error Rate (BER) of 12.02, representing a 28% reduction in error compared to the previous state-of-the-art (TVSD, BER 16.76).
- Qualitative Stability: As shown in the comparison below, the warping approach maintains accurate tracking of shadows across frames, even in complex scenarios where other methods lose track of the shadow regions.
The model is particularly effective at reducing false negatives, accurately identifying shadow regions that previous methods often missed due to motion or low contrast.
Conclusion
By prioritizing explicit spatial alignment over implicit attention, this research provides a more robust framework for video-based tasks. While the "dark object" problem (misclassifying dark materials as shadows) remains a challenge for future work, the 28% error reduction marks a substantial advancement in the field of video shadow detection.
Summary updated