TL;DR
This paper introduces a novel method for detecting unexpected road obstacles in monocular RGB images by "erasing" them through inpainting and then training a discrepancy network to identify the differences. This approach allows for the detection of previously unseen obstacles without requiring them in the training data, making it highly generalizable.
What Problem Does This Paper Address?
Autonomous driving systems rely heavily on computer vision for tasks like lane detection, object recognition, and segmentation. While these systems are adept at handling common scenarios, they struggle with rare, unexpected obstacles that are not present in their training datasets. Traditional methods require exhaustive datasets of annotated obstacles, which is impractical given the sheer diversity and infrequency of such events. This paper tackles the challenge of detecting these "unknown unknowns" in real-time using only a single camera, without prior knowledge of the specific obstacles to be encountered.
Methods
The core of the proposed method is a two-step process:
- Obstacle Erasing via Inpainting: The system first identifies the drivable area of the road, typically using a semantic segmentation network. Within this drivable area, it then applies a sliding-window approach to inpaint image patches. The inpainting process uses a pre-trained, general-purpose inpainter to reconstruct the road texture, effectively "erasing" any obstacles present within those patches. This is crucial because it creates a synthetic "normal" version of the road for comparison.
- Discrepancy Network: A specialized "discrepancy network" is then trained. This network takes both the original image and the inpainted image as input. Its task is to learn to distinguish significant differences (indicating an erased obstacle) from minor imperfections in the inpainting process (e.g., road markings, texture variations). The network outputs a heatmap indicating the likelihood of each pixel belonging to an obstacle.
A key aspect of their approach is the training of the discrepancy network. Instead of using real-world unexpected obstacles, they generate a synthetic training dataset by taking objects (like people, cars, traffic signs) from the Cityscapes dataset and pasting them onto the road in other Cityscapes images. This allows the network to learn what constitutes an "anomaly" without ever seeing the specific types of obstacles it will encounter in real-world testing.
Datasets
- Training: A synthetic dataset generated from the Cityscapes dataset. This involves taking instances of objects from Cityscapes and pasting them onto the road regions of other Cityscapes images.
- Evaluation:
- Lost & Found Dataset: A benchmark dataset for detecting small road hazards.
- RoadObstacles21 Dataset: A newly collected dataset featuring diverse road textures and unusual objects, designed to test generalization.
Key Insights and Ideas
- "Erasing" as a Detection Mechanism: The idea of removing potential anomalies and then looking for the "ghost" of what was removed is a clever way to frame the problem. It shifts the focus from recognizing specific obstacle classes to identifying deviations from a learned "normal" state.
- Generalization through Synthetic Data: Training the discrepancy network on synthetically generated obstacles, rather than relying on a comprehensive dataset of real-world anomalies, is a powerful strategy for achieving generalization to unseen obstacles.
- Drivable Area as a Region of Interest: Restricting the detection to the drivable area is a practical choice for autonomous driving, as only obstacles within this space pose an immediate collision risk. This also simplifies the problem by ignoring irrelevant background elements.
- Inpainting Quality Matters, but Imperfections are Expected: The paper acknowledges that perfect inpainting is impossible. The discrepancy network is specifically designed to handle these imperfections and focus on the truly significant differences.
Key Results
- The proposed method outperforms several state-of-the-art anomaly detection baselines on both the Lost & Found and RoadObstacles21 datasets, particularly in terms of average instance F₁ score.
- On the Lost & Found dataset, the method achieves high Average Precision (AP).
- On the RoadObstacles21 dataset, the method also performs very well, with only two other methods achieving a slightly better AP.
- Qualitative results show the method successfully detecting various unexpected obstacles, including those in challenging weather conditions and at a distance.
- The paper demonstrates that using a semantic segmentation network for the drivable area is sufficient, and even a coarse mask can be used, suggesting potential for more efficient implementations.
Limitations and Future Work
- False Positives on Safe Regions: The method can sometimes flag distinctive but safe road features (e.g., manholes, cracks, leaves) as anomalies. Future work could involve expanding the training set with more such examples or using adaptive inpainting patch sizes.
- Perspective Effects: The current approach does not explicitly account for perspective distortion, which can make distant obstacles appear smaller and potentially harder to detect. The authors suggest incorporating perspective awareness in future work.
- Computational Cost: The sliding-window inpainting process is computationally expensive. While the current implementation is a proof-of-concept, future work could focus on optimizations like using 16-bit precision or parallelizing the inpainting.
- Integration with Drivable Area Detection: The authors plan to couple their obstacle detection more tightly with the drivable area detection module for improved results.
Summary updated