Noisy Label Recovery for Shadow Detection in Unfamiliar Domains

Tomas F. Yago Vicente, Minh Hoai, Dimitris SamarasCVPR 2016

Abstract

Shadow detection models often struggle with domain adaptation due to the high cost of precise annotation. This paper presents a framework that utilizes "lazy" human annotations—quick strokes that generate noisy masks—and a mathematical recovery method based on Least Squares Support Vector Machines (LSSVM) to refine these labels. Our approach demonstrates that domain-relevant noisy data, when properly recovered, can outperform precisely labeled data from mismatched domains, offering a scalable path for deploying shadow detection in diverse environments.

Introduction

Shadow detection is a fundamental computer vision task, yet existing models frequently fail when transitioning between environments, such as from urban streets to snowy forests. This "domain gap" is primarily a data bottleneck. Traditional shadow annotation is a painstaking process requiring precise polylines around complex shapes, resulting in small, non-diverse datasets like UCF or UIUC.

To address this, we propose shifting the focus from label precision to domain relevance. By allowing for "lazy" annotations and employing a mathematical framework to clean the resulting noise, we can rapidly generate training data for unfamiliar domains.

Methodology

Lazy Annotation

Instead of tracing exact contours, users provide quick feedback by drawing white strokes on shadows and red strokes on non-shadow regions. A semi-automatic segmentation algorithm (geodesic convexity) converts these strokes into a binary mask. While this method is significantly faster—allowing for roughly three images per minute—it is inherently "noisy," often missing small shadows or mislabeling background pixels.

The lazy annotation process: original image (left), user strokes and initial segmentation (middle), and the resulting noisy binary mask (right).

Noisy Label Recovery

The core technical contribution is a recovery framework using a Least Squares Support Vector Machine (LSSVM). The LSSVM is chosen for its closed-form solution, where the "leave-one-out" (LOO) error is a linear function of the training labels.

We formulate label recovery as a quadratic programming problem, treating the training labels as unknowns. The objective is to find a new set of labels that minimizes the total LOO error, effectively making the dataset more self-consistent. This process identifies and corrects "dirty negatives" (missed shadows) and "dirty positives" (misidentified light areas) by identifying which label flips would most improve the classifier's boundary.

Refinement of shadow boundaries through the label recovery algorithm, highlighting the correction of initial noisy segments.

Key Insights

  • Domain Relevance > Label Precision: A model trained on "lazy," noisy data from the target domain consistently outperforms a model trained on "perfect" data from a different domain.
  • Asymmetry of Noise: In shadow detection, missing a shadow (dirty negative) is more damaging than mislabeling light as shadow. Because shadows often occupy a small portion of the image, these errors have a disproportionate impact on the classifier's decision boundary.
  • Self-Consistency: By minimizing LOO error, the algorithm essentially "hallucinates" the missing annotations that the human skipped, creating a more robust training set.

Results and Discussion

We evaluated our method on the standard UCF and UIUC benchmarks, as well as a new, more diverse SBU Dataset containing 210 images of snow, beaches, and parks.

  • Performance Boost: On the SBU dataset, a model trained on the UCF dataset achieved 68.8% Average Precision (AP). Using "lazy" labels from the SBU domain increased this to 77.5%, and applying the Label Recovery algorithm pushed it to 80.1% AP.
  • Closing the Gap: On the UIUC dataset, our recovered labels achieved 87.2% AP, nearly matching the 88.5% AP of original, painstakingly hand-annotated labels.
  • Robustness: The method remained effective even when up to 30% of positive labels or 50% of negative labels were noisy.

Conclusion

By lowering the barrier to entry for data annotation, this framework enables shadow detection models to adapt quickly to new environments. While the method relies on initial strokes being somewhat representative, it proves that mathematical refinement can effectively substitute for manual precision, bridging the domain gap in computer vision tasks.

Summary updated

BibTeX
@inproceedings{vicente2016noisy,
  author = {Tomas F. Yago Vicente and Minh Hoai and Dimitris Samaras},
  title = {{Noisy Label Recovery for Shadow Detection in Unfamiliar Domains}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  doi = {10.1109/cvpr.2016.411},
}
Figure