Efficient Uncertainty Estimation for Semantic Segmentation in Videos

Po-Yu Huang, Wan Ting Hsu, Chun-Yueh Chiu, Ting-Fan Wu, Min SunECCV 2018

Abstract

Uncertainty estimation is vital for safety-critical AI, but standard methods like Monte Carlo (MC) Dropout are too slow for real-time video applications. This paper introduces Region-based Temporal Aggregation (RTA), a method that leverages the temporal continuity of video to simulate uncertainty sampling. By aggregating predictions across frames using optical flow and a reconstruction error-based weighting mechanism, RTA achieves up to a 31x speedup over traditional methods while maintaining comparable accuracy and uncertainty quality.

Introduction

Deep learning models are often "overconfident" even when they are wrong. In fields like autonomous driving or medical diagnosis, knowing when a model is uncertain is just as important as the prediction itself. The current gold standard for uncertainty is Monte Carlo (MC) Dropout, which requires running the same image through a model $N$ times (e.g., 50 times) with different neurons randomly "dropped out." The variance between these outputs indicates model uncertainty. However, performing 50 forward passes per frame makes real-time video processing impossible. This research aims to bridge this gap by providing reliable uncertainty estimates at 30 frames per second.

Methods

The proposed approach exploits the high redundancy between consecutive video frames through two main techniques:

Temporal Aggregation (TA)

Instead of processing one frame multiple times, the authors process consecutive frames once each. Because objects move between frames, optical flow is used to warp the prediction from the previous frame ($t-1$) to the current frame ($t$). A moving average of these warped predictions is then calculated. In this framework, time effectively replaces the stochastic passes of traditional MC Dropout.

Region-based Temporal Aggregation (RTA)

Optical flow can fail during fast motion or occlusions. RTA improves upon TA by calculating a reconstruction error ($E$), defined as the difference between the actual current frame and the warped previous frame.

The RTA workflow uses optical flow and temporal aggregation to estimate uncertainty across video frames.

As shown in the workflow, the model uses a weighting factor $\alpha$ to balance the current output with the aggregated past predictions. If the reconstruction error is low, the flow is reliable, and the model aggregates more information from the past. If the error is high, the model "resets," relying more heavily on the current frame's single prediction to avoid propagating errors.

The multiplying factor $\alpha$ is determined by the reconstruction error $E$ to gate the temporal aggregation.

Experimental Setup

The researchers evaluated their approach on the CamVid dataset, a road scene segmentation benchmark consisting of four 30Hz videos. Frames were labeled into 11 classes (e.g., sky, building, car, pedestrian) and resized to 360x480 pixels for the experiments.

Key Results

  • Efficiency: RTA provides a dramatic speedup, especially on heavy "backbone" models. For the Tiramisu backbone, RTA achieved an inference time of 0.37s per frame, compared to 11.72s for MC Dropout ($N=50$), representing a 31x speedup.
  • Accuracy: The performance trade-off is minimal. On CamVid, RTA resulted in less than a 2% drop in mean Intersection over Union (mIoU) compared to the standard MC Dropout method.
  • Uncertainty Quality: Using a "Pixel-level Precision-Recall" metric, the authors demonstrated that RTA's uncertainty maps are comparable to MC Dropout. On frame-level metrics, RTA even outperformed MC Dropout in some configurations, making it highly effective for active learning.

Conclusion

While RTA offers significant efficiency gains, it remains dependent on the quality of the underlying optical flow model. Future work may address this by extending the method to instance-level uncertainty, which is often more actionable for robotics. Additionally, the sensitivity of hyperparameters like the error threshold $\lambda$ suggests a need for automated tuning in diverse environments.

Summary updated

BibTeX
@inproceedings{huang2018efficient,
  author = {Po-Yu Huang and Wan Ting Hsu and Chun-Yueh Chiu and Ting-Fan Wu and Min Sun},
  title = {{Efficient Uncertainty Estimation for Semantic Segmentation in Videos}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01246-5\_32},
}
Figure