Weighted Intersection over Union (wIoU) for Evaluating Image Segmentation
Yeong-Jun Cho
TL;DR
The paper tackles the inadequacy of IoU for semantic segmentation by proposing Weighted IoU ($wIoU$), a boundary-aware evaluation metric generated from a boundary-distance transform. A weight map $\mathbf{W}$, controlled by a single boundary importance factor $α$, emphasizes pixels near object boundaries while preserving interior regions, enabling a continuum between region-only and boundary-focused evaluation. The weighted IoU is defined as $wIoU=\frac{| \mathbf{C} \cap (\mathbf{C}_{gt} \circ \mathbf{W}) |}{| \mathbf{C} \cup (\mathbf{C}_{gt} \circ \mathbf{W}) |}$ and is demonstrated on a 33-scene synthetic dataset, with analyses showing small $α$ recovers IoU behavior and large $α$ aligns with edge-based metrics. The framework is argued to be robust, flexible, and applicable as both an evaluation metric and a potential training loss for semantic segmentation.
Abstract
In recent years, many semantic segmentation methods have been proposed to predict label of pixels in the scene. In general, we measure area prediction errors or boundary prediction errors for comparing methods. However, there is no intuitive evaluation metric that evaluates both aspects. In this work, we propose a new evaluation measure called weighted Intersection over Union (wIoU) for semantic segmentation. First, it builds a weight map generated from a boundary distance map, allowing weighted evaluation for each pixel based on a boundary importance factor. The proposed wIoU can evaluate both contour and region by setting a boundary importance factor. We validated the effectiveness of wIoU on a dataset of 33 scenes and demonstrated its flexibility. Using the proposed metric, we expect more flexible and intuitive evaluation in semantic segmentation field are possible.
