Dice Coefficient for Image Segmentation
The Dice coefficient measures how well a predicted segmentation mask overlaps the ground-truth mask: twice the number of shared pixels divided by the total number of pixels in the two masks. It ranges from 0 (no overlap) to 1 (identical masks) and is reported together with the intersection over union, which is a monotone transform of it.
다이스 계수는 예측한 분할 마스크가 정답 마스크와 얼마나 겹치는지를 나타내며, 공유 화소 수의 두 배를 두 마스크의 화소 수 합으로 나눈 값입니다. 0이면 겹침이 없고 1이면 두 마스크가 같으며, 다이스 계수의 단조 변환인 IoU를 함께 보고합니다.
How closely do the predicted segmentation masks match the reference masks, per class and across images?
예측한 분할 마스크가 기준 마스크와 클래스별로, 그리고 영상 전체에 걸쳐 얼마나 잘 맞을까요?
For every image and class the method computes Dice, IoU, sensitivity and precision. It summarises the pooled Dice per class and the mean Dice over images with a t interval and a bootstrap interval, and shows how scores vary between images. Classes absent from both masks of an image count as perfect or are left out, as you choose.
When to use Dice Coefficient for Image Segmentation
- You evaluate a segmentation model against annotated masks.
- Foreground regions are small, so pixel accuracy would be misleading.
- You need a per-class and per-image breakdown with an interval.
When to use something else
- Boundary accuracy matters more than area overlap; a boundary-based overlap score is then more informative
- You compare two raters' category labels for whole cases: use Cohen's Kappa
- The prediction is a probability rather than a label: use ROC Curve and AUC
Assumptions and requirements
- Each row pairs the truth and predicted label of the same pixel
- Images are independent units for the interval
- A rule is chosen for classes absent from both masks
What the analysis reports
- Dice and IoU per image and class
- Pooled and mean Dice per class with intervals
- Sensitivity and precision
- Histogram of per-image Dice
How to report it
Across [value] images the mean Dice coefficient was [value] (95% bootstrap CI [[value], [value]]) and the mean IoU [value].
Related methods
- Cohen's Kappa
- ROC Curve and AUC
- Ensemble Diversity Measures
- Explained Variance Score
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and scikit-learn.
독립 계산. SciPy·scikit-learn 대조 참조 시험 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 Dice Coefficient for Image Segmentation on Quorant
- Data you need
- a table (CSV or Excel) with 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.