Segment-Level Road Obstacle Detection Using Visual Foundation Model Priors and Likelihood Ratios

Youssef Shoeb, Nazir Nayal, Azarm Nowzad, Fatma Güney, Hanno Gottschalk

TL;DR

This paper introduces a novel approach to road obstacle detection by shifting from pixel-level analysis to segment-level reasoning, leveraging the powerful object priors of visual foundation models like SAM. By modeling the likelihood ratios between free-space and obstacle segments, their method achieves state-of-the-art performance on component-level metrics for obstacle detection without requiring manual threshold tuning.

What Problem Does This Paper Address?

Autonomous vehicles rely heavily on accurate road obstacle detection to navigate safely. Traditional methods often use pixel-level classification, which can lead to fragmented predictions and a high number of false positives, especially when encountering objects not seen during training (out-of-distribution or OoD detection). While some methods try to address this by focusing on object segments, they still struggle to effectively segment OoD objects as a whole. The core challenge is to reliably detect a wide variety of road obstacles, even those not explicitly trained for, in a robust and efficient manner, without the need for painstakingly selecting optimal thresholds for each scenario.

Methods

The authors propose a segment-level approach that leverages visual foundation models, specifically the Segment Anything Model (SAM), to extract segment-level feature representations. Instead of processing individual pixels, their method generates masks for all image segments using SAM and then extracts features from these segments. The key innovation lies in using these segment-level features to learn two distinct probability distributions: one for "free-space" segments and another for "proxy road obstacles."

The core of their detection mechanism is a likelihood ratio test. Given a segment's feature vector, they compute the probability of it belonging to the free-space distribution versus the obstacle distribution. A higher likelihood of belonging to the obstacle distribution indicates the presence of an obstacle. This approach effectively bypasses the need for manual threshold selection, which is a significant practical advantage.

They explore three methods for estimating these distributions:

  • Gaussian Mixture Models (GMMs): A classic probabilistic model that assumes data is generated from a mixture of Gaussian distributions.
  • Normalizing Flows (NF): A more advanced generative model that learns complex distributions by composing invertible transformations.
  • k-Nearest Neighbors (k-NN): A non-parametric method that relies on the distances between feature representations.

Datasets

The paper evaluates their method on two standard benchmarks for road obstacle detection:

  • SMIYC-RoadObstacle: A privately withheld dataset of 327 images.
  • SMIYC-LostAndFound: A filtered and refined version of the original LostAndFound dataset.

These datasets are used for evaluation, and the authors mention using an internal dataset containing labeled road obstacles and free-space segments for training their distribution models.

Key Insights and Ideas

  • Segment-Level Reasoning is Crucial: Moving from pixel-level to segment-level analysis significantly improves robustness and reduces fragmentation in obstacle detection.
  • Visual Foundation Models as Priors: SAM's ability to generate high-quality segment masks provides a strong foundation for extracting meaningful segment-level features, even for unseen objects.
  • Likelihood Ratios Eliminate Threshold Tuning: Using the ratio of probabilities from learned free-space and obstacle distributions provides a principled way to make decisions without needing to set arbitrary thresholds, which is a major practical hurdle.
  • k-NN Outperforms Parametric Models: The non-parametric k-NN approach for distribution estimation yielded the best results, suggesting that flexible, data-driven density estimation is more effective for this task than fixed parametric models like GMMs.

Key Results

The proposed method achieves state-of-the-art performance on component-level metrics (sIoUgt, PPV, and mean F₁) on both the SMIYC-Obstacle and SMIYC-LostAndFound benchmarks. Notably, on the SMIYC-LostAndFound dataset, their method achieved a PPV of 95.9% and an F₁ score of 72.60%, outperforming previous best methods by a significant margin. While pixel-level metrics (AP, FPR95) were less competitive compared to some state-of-the-art pixel segmentation networks, this is attributed to SAM sometimes missing smaller or ambiguous obstacles, which are then incorrectly classified as road by default.

Limitations and Future Work

The authors acknowledge that their approach can still suffer from a relatively high false-negative rate for small objects. This is partly due to the uniform grid of point prompts used by SAM, which might miss small objects located between prompts. They suggest that restricting prompts to regions where the model is uncertain could improve detection. Additionally, the performance of the k-NN method depends on the quality and quantity of reference features. Future work could explore more sophisticated methods for selecting these reference features to potentially enhance inference speed without sacrificing accuracy.

Summary updated

BibTeX
@inproceedings{shoeb2024segment,
  author = {Youssef Shoeb and Nazir Nayal and Azarm Nowzad and Fatma Güney and Hanno Gottschalk},
  title = {{Segment-Level Road Obstacle Detection Using Visual Foundation Model Priors and Likelihood Ratios}},
  booktitle = {VISIGRAPP (2): VISAPP},
  year = {2024},
}
Figure