Boundary IoU for Image Segmentation
Boundary IoU measures how well a predicted segmentation mask follows the outline of the true mask. It keeps only the pixels of each mask that lie within a distance d of its contour (the mask minus its erosion) and computes intersection over union of these two bands; d is a fixed share of the image diagonal. Because interior pixels are ignored, errors along the edge count much more than in ordinary mask IoU, especially for large objects.
예측한 분할 마스크가 실제 마스크의 윤곽을 얼마나 잘 따라가는지 재는 지표입니다. 각 마스크에서 윤곽으로부터 거리 d 안에 있는 픽셀만 남긴 띠(마스크에서 침식한 마스크를 뺀 부분)를 만들고, 두 띠의 교집합 대 합집합 비율을 계산합니다. 내부 픽셀을 무시하므로 큰 물체일수록 일반 마스크 IoU보다 경계 오류에 민감합니다.
Does my segmentation model get the object outlines right, not just the bulk of the object?
분할 모형이 물체의 덩어리뿐 아니라 윤곽까지 제대로 맞힙니까?
Boundary IoU close to mask IoU means edges are as accurate as the overall overlap; a much lower Boundary IoU means the model captures the object but blurs or shifts its outline. Compare models with the same dilation ratio, since a wider band makes the metric more forgiving.
When to use Boundary IoU for Image Segmentation
- You evaluate segmentation where boundary quality matters (medical images, remote sensing, product cut-outs).
- Mask IoU of large objects looks high but outlines are visibly poor.
When to use something else
- You evaluate a binary classifier on rows rather than pixels: use Classification Performance Report
- You compare two raters' categorical labels: use Cohen's Kappa
Assumptions and requirements
- Pixel rows with integer row and column coordinates
- Binary truth; prediction binary or a probability thresholded at the cut-off
- Unlisted pixels are background in both masks
What the analysis reports
- Boundary IoU, mask IoU and Dice per image
- Means across images
- Band width in pixels
How to report it
Across [value] images the mean Boundary IoU (dilation ratio 0.02) was [value], against a mean mask IoU of [value] and Dice of [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Boundary IoU for Image Segmentation on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns, an outcome variable and score
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.