Towards unsupervised open world semantic segmentation

Svenja Uhlemeyer, Matthias Rottmann, Hanno Gottschalk

Abstract

For the semantic segmentation of images, state-of-the-art deep neural networks (DNNs) achieve high segmentation accuracy if the task is restricted to a closed set of classes. However, in real-world environments, DNNs frequently encounter unknown objects that do not belong to their training set. This paper introduces a modular framework for Unsupervised Open World Semantic Segmentation, enabling models to identify unknown objects, group them by visual similarity, and learn them as new categories—all without human-provided labels. By combining anomaly detection with unsupervised clustering and incremental learning, the framework allows a model to expand its vocabulary "on the fly" while maintaining performance on previously learned tasks.

Introduction: The Closed-World Limitation

Standard deep learning models for semantic segmentation operate under a "closed world" assumption. They are trained on a fixed set of classes (e.g., road, car, tree) and, when faced with novel objects like a boat trailer or an e-scooter, they typically force-map those pixels to one of the known categories. In safety-critical applications like autonomous driving, this behavior is dangerous. A robust model requires the ability to recognize when it is encountering something unfamiliar and then learn that new category incrementally without requiring expensive, manual re-annotation of entire datasets.

The Open-World Segmentation Pipeline

The proposed framework moves beyond closed-world constraints through a four-step pipeline:

  1. Anomaly Segmentation: Instead of relying solely on softmax uncertainty, the model uses a "meta-regressor" to estimate the quality of its own predictions. If the predicted quality (Intersection over Union, or IoU) for a specific segment is low, it is flagged as a "suspicious object."
  2. Clustering: These suspicious image patches are processed by a pre-trained feature extractor (DenseNet201). The resulting high-dimensional features are compressed using t-SNE and grouped using the DBSCAN algorithm to identify clusters of visually similar unknown objects.
  3. Pseudo-labeling: Pixels belonging to these discovered clusters are assigned "pseudo-labels" (e.g., "Novel Class 1"), creating a synthetic ground truth for the unknown objects.
  4. Incremental Learning: The model is re-trained using a combined loss function. It employs Knowledge Distillation to prevent the forgetting of old classes and Rehearsal (re-playing a small subset of old data) to integrate the new pseudo-labeled class into its semantic space.
Visualizing the novelty detection pipeline: The system identifies suspicious objects by estimating prediction quality (red areas) against known ground truth annotations.

Experimental Setup

The researchers evaluated the framework using two major autonomous driving datasets:

  • Cityscapes: Used for initial training and experiments treating "human," "bus," or multiple categories as novel classes.
  • A2D2 (Audi Autonomous Driving Dataset): Used to test the model's ability to handle "domain shift," such as training on urban Cityscapes data and then learning "guardrails" in highway scenes.

Key Results and Insights

The system demonstrated that pseudo-labels, while noisy, are sufficient for learning. In Cityscapes experiments, the model achieved an IoU of 39.80% for "human" and 44.73% for "bus" without any human labels. When learning "human" and "car" simultaneously, it achieved an impressive 81.27% IoU for the car class, suggesting that some categories are naturally easier to learn unsupervised than others.

Comparison of segmentation results before (left) and after (right) unsupervised incremental learning of the 'bus' class.

Crucially, the performance on original "known" classes remained stable, dropping by less than 1% in most cases. This proves the effectiveness of the distillation and rehearsal strategies in mitigating catastrophic forgetting. Even under domain shift (Cityscapes to A2D2), the model successfully learned the "guardrail" class with a 20.90% IoU entirely unsupervised.

Limitations and Future Work

While promising, the framework has limitations. The purity of clusters is vital; if the unsupervised clustering groups disparate objects (e.g., a mailbox and a person), the model learns a nonsensical class. Furthermore, the system relies on the initial model being accurate enough to flag anomalies correctly. Future research will focus on improving clustering robustness and utilizing temporal consistency in video data as an additional learning signal to refine the unsupervised update process.

Summary updated

BibTeX
@inproceedings{uhlemeyer2022towards,
  author = {Svenja Uhlemeyer and Matthias Rottmann and Hanno Gottschalk},
  title = {{Towards unsupervised open world semantic segmentation}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=ssDlMuSEtgm},
}
Figure