Skip to main content
QUICK REVIEW

[Paper Review] Fast Shadow Detection from a Single Image Using a Patched Convolutional Neural Network

Sepideh Hosseinzadeh, Moein Shakeri|arXiv (Cornell University)|Sep 26, 2017
Video Surveillance and Tracking MethodsComputer Science20 references8 citations
TL;DR

This paper proposes a fast, accurate shadow detection method using a patched convolutional neural network (CNN) that leverages super-pixel segmentation and a shadow prior map generated via SVM to reduce computational cost. By training on super-pixel-level features and refining edge pixels with a second CNN pass, the method achieves up to two orders of magnitude faster inference than state-of-the-art deep learning methods while maintaining competitive accuracy on benchmark datasets.

ABSTRACT

In recent years, various shadow detection methods from a single image have been proposed and used in vision systems; however, most of them are not appropriate for the robotic applications due to the expensive time complexity. This paper introduces a fast shadow detection method using a deep learning framework, with a time cost that is appropriate for robotic applications. In our solution, we first obtain a shadow prior map with the help of multi-class support vector machine using statistical features. Then, we use a semantic- aware patch-level Convolutional Neural Network that efficiently trains on shadow examples by combining the original image and the shadow prior map. Experiments on benchmark datasets demonstrate the proposed method significantly decreases the time complexity of shadow detection, by one or two orders of magnitude compared with state-of-the-art methods, without losing accuracy.

Motivation & Objective

  • To address the high time complexity of existing deep learning-based shadow detection methods, which limits their use in real-time robotic applications.
  • To improve computational efficiency without sacrificing detection accuracy by leveraging super-pixel segmentation and a learned shadow prior.
  • To enable real-time shadow detection in robotics by reducing inference time to under 2 seconds per image.
  • To develop a method robust to varying lighting conditions and image quality, without requiring assumptions about illumination or camera models.
  • To demonstrate the method's effectiveness in practical applications such as road detection and aerial imaging.

Proposed method

  • The method begins by segmenting the input image into super-pixels using the mean shift algorithm to reduce spatial complexity.
  • Color and texture features are extracted from each super-pixel and used as input to a trained multi-class SVM to generate a shadow prior map indicating the probability of each region being shadowed.
  • The original RGB image and the shadow prior map are concatenated and fed into a patch-level CNN to predict a shadow probability map at the super-pixel level.
  • Boundary pixels between super-pixels are refined by reapplying the same patch-level CNN to improve localization accuracy.
  • The final shadow probability map is generated through a two-stage prediction: region-based using super-pixel features and edge-based for boundary refinement.
  • The approach avoids per-pixel prediction, significantly reducing computational load while preserving spatial coherence and accuracy.

Experimental results

Research questions

  • RQ1Can a shadow detection method achieve state-of-the-art accuracy while reducing time complexity by one to two orders of magnitude?
  • RQ2How effective is combining super-pixel segmentation with a learned shadow prior map in improving inference speed without degrading performance?
  • RQ3Can a patch-level CNN trained on super-pixel features outperform pixel-level CNNs in shadow detection speed and accuracy?
  • RQ4Does the two-stage prediction (region and edge-based) improve boundary localization in shadow detection compared to single-stage methods?
  • RQ5Can the proposed method be effectively applied to real-world robotic applications such as road detection and aerial imaging?

Key findings

  • The proposed method reduces testing time to 1.87 seconds per image on the SBU dataset, representing a 100x speedup over the next-fastest method (Stacked-CNN).
  • On the combined dataset, the method achieves a testing time of 1.55 seconds per image, significantly faster than both statistical and deep learning baselines.
  • The method maintains competitive accuracy, achieving 91.03% overall accuracy on the combined dataset, outperforming the unary-pairwise method and matching the best-performing SOTA method.
  • The shadow prior map generated via SVM improves the CNN's generalization, allowing faster training and inference with minimal accuracy loss.
  • Qualitative results on St. Lucia, UACampus, and aerial images confirm high-quality probability maps, demonstrating robustness across diverse real-world scenarios.
  • The two-stage refinement process significantly improves edge localization, particularly in complex scenes with ambiguous shadow boundaries.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.