XPENG RoboticsCompany & role details

Confidence-Aware Indoor Semantic Segmentation

Extended DDRNet with a ConfidNet-style head that learns pixel-level true-class confidence and flags unreliable semantic predictions in a single forward pass.

Illustration of a DDRNet segmentation model with a ConfidNet-style true-class confidence head, confidence maps, and examples of low-confidence pixel filtering.
Project summary illustration. Example mIoU values are illustrative, not verified benchmark results.

Tools & Skills

  • Semantic Segmentation
  • DDRNet
  • ConfidNet
  • CNN
  • Confidence Estimation
  • Multi-Task Learning

Problem and contribution

A semantic segmentation model assigns a class to every pixel, including areas where its prediction is unreliable. I extended DDRNet-23slim with a ConfidNet-style fully convolutional confidence head so downstream perception can identify low-confidence regions alongside the semantic map.

The confidence branch shares the segmentation network’s features and predicts a separate score for each pixel in the same forward pass.

What the confidence head learns

During training, the ground-truth label identifies the correct class at each pixel. The segmentation model’s softmax score for that class becomes the true-class probability, or TCP, used as the confidence-learning target.

This differs from simply taking the highest softmax score: a confidently wrong prediction can have a high maximum score but a low score for the true class. The added head learns to approximate TCP from the model’s features and class logits, without requiring ground-truth labels at inference time.

Training and inference workflow

  1. Train the indoor segmentation network with supervised pixel labels.
  2. Load its weights and freeze the existing model parameters while training the confidence head.
  3. Concatenate shared features with segmentation logits and regress the TCP target using Smooth L1 loss.
  4. Return semantic logits and the confidence map together during inference.
  5. Apply a configurable confidence threshold to flag predictions for downstream filtering.

The custom training setup uses 512 × 960 images. Inspection tools compare predicted confidence with the training target and visualize the semantic map before and after filtering. One evaluation configuration uses a threshold of 0.5, assigning lower-confidence predictions to the unknown label.

Outcome and interpretation

The resulting model provides pixel-level reliability estimates without repeated stochastic inference. This supports selective use of segmentation predictions, with a tradeoff between retained coverage and confidence.

The implemented head learns classification confidence. It does not directly estimate a calibrated aleatoric variance or separate aleatoric and epistemic uncertainty. Its output is a regression score, so interpreting thresholds requires validation on the intended data. Filtering results should be assessed together with the fraction of pixels retained.

Project diagram

100%Drag or scroll to explore

Project image

Click outside the image or press Escape to close.