Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

This chapter has introduced the usual methods of segmentation, but there are many more! No method is the best because the result depends, among other things, on the image itself. Consequently, it is interesting to have an objective evaluation of the segmentation quality. To do that, different criteria can be used, defined below. In addition to the image to be segmented, we also need the expected result, which we call “ground truth” (French: vérité terrain).

Imagine that the ground truth and the segmentation are the images in Figure 1, in the case of a binary segmentation.

Ground truth f^* (left) and segmentation f (right).

Figure 1:Ground truth f∗f^* (left) and segmentation ff (right).

Each image has two areas: the segmented object (shown in white) and the background (in black). So, we can define four types of zones (cf. Figure 2):

Definition of true positive (TP), false positive (FP), true negative (VN) and false negative (FN).

Figure 2:Definition of true positive (TP), false positive (FP), true negative (VN) and false negative (FN).

From these four quantities, several criteria can be defined, below are the most usual ones. The variables f∗f^* and ff are the ground truth and the segmentation and are considered as sets from which one can compute their cardinality (denoted ∣⋅∣|\cdot|).

Sensibility (sensibilité) or Recall
TPTP+FN\frac{\text{TP}}{\text{TP}+\text{FN}}
Specificity (spécificité)
TNTN+FP\frac{\text{TN}}{\text{TN}+\text{FP}}
Precision (précision)
TPTP+FP\frac{\text{TP}}{\text{TP}+\text{FP}}
Dice coefficient (coefficient de Dice) or F1 score
2 TP2 TP+FP+FN=2∣f∩f∗∣∣f∣+∣f∗∣\frac{2\,\text{TP}}{2\,\text{TP}+\text{FP}+\text{FN}} = \frac{2|f \cap f^*|}{|f| + |f^*|}
Jaccard coefficient (coefficient de Jaccard)
TPTP+FP+FN=∣f∩f∗∣∣f∪f∗∣\frac{\text{TP}}{\text{TP}+\text{FP}+\text{FN}} = \frac{|f \cap f^*|}{|f \cup f^*|}
Accuracy (exactitude)
TP+TNTP+FP+TN+FN\frac{\text{TP}+\text{TN}}{\text{TP}+\text{FP}+\text{TN}+\text{FN}}