Metrics Reloaded
When the pipeline is configured to use the Metrics Reloaded backend (backend: "metricsreloaded"), segmentation
performance is evaluated using a comprehensive suite of rigorously validated metrics derived from pixel-wise classifications.
Although the Metrics Reloaded backend allows the computation of a wide range of metrics, some are more suitable than others
for segmentation problems. To discover which metrics are most appropriate for a given task, please check
Metrics Reloaded Metric Library out.
References:
Each of the available metrics are documented below, as well as their attribute names needed for the config file.
Supported metrics configuration
To extract these metrics, use the exact Attribute name under the metrics section of your configuration file.
| Metric name (Documentation) | Attribute name (config file) |
|---|---|
| Number of reference pixels | numb_ref |
| Number of predicted pixels | numb_pred |
| True positives | numb_tp |
| False positives | numb_fp |
| False negatives | numb_fn |
| Accuracy | accuracy |
| Balanced Accuracy (BA) | ba |
| Sensitivity (Recall) | sensitivity |
| Specificity | specificity |
| Positive Predictive Value (PPV) | ppv |
| Negative Predictive Value (NPV) | npv |
| Intersection over Union (IoU) | iou |
| F-beta score | fbeta |
| Dice Score Coefficient (DSC) | dsc |
| Matthews Correlation Coefficient (MCC) | mcc |
| Cohen's Kappa | cohens_kappa |
| Weighted Cohen's Kappa | wck |
| Positive Likelihood Ratio + (LR+) | lr+ |
| Net Benefit (NB) | nb |
| Normalised Expected Cost (ECn) | ec |
| Centreline Dice (CL Dice) | cldice |
| Average Symmetric Surface Distance (ASSD) | assd |
| Mean Average Surface Distance (MASD) | masd |
| Hausdorff Distance (HD) | hd |
| Hausdorff Distance Percentile (HD95) | hd_perc |
| Normalized Surface Distance (NSD) | nsd |
| Boundary IoU | boundary_iou |
| Intersection over Reference (IoR) | ior |
| Absolute Volume Difference Ratio (AVDR) | avdr |
Counting metrics
Dice Score Coefficient (DSC)
DSC measures the overlap between two structures. Find more information about DSC.
Interpretation:
Values range from 0 to 1. A value of 1 indicates perfect overlap.
Intersection over Union (IoU)
Also known as Jaccard Index, IoU measures the overlap between two structures. Find more information about IoU.
Interpretation:
Values range from 0 to 1. A value of 1 indicates perfect overlap.
F-Beta Score (Fβ)
The special case of β = 1 is the harmonic mean of PPV and Sensitivity and is a common metric in segmentation problems (here usually referred to as DSC). In segmentation problems, Fβ Score weights the penalization of oversegmentation (FP) and undersegmentation (FN) with the parameter β. Find more information about Fβ.
When \( \beta = 1 \), the metric is equivalent to the Dice coefficient.
Interpretation:
Values range from 0 to 1. A value of 1 indicates perfect overlap.
Centreline Dice (CL Dice)
clDice measures the overlap between two structures, ideally tubular-shaped. The formula is similar to the DSC, but relies on the topology precision and topology sensitivity which are defined based on the skeletons of the structures. Find more information about CL Dice.
Where:
- \(T_{sens}\) is topology sensitivity
- \(T_{prec}\) is topology precision
Interpretation:
Values range from 0 to 1. A value of 1 indicates perfect overlap.
Intersection over Reference (IoR)
IoR measures the overlap between two structures. It is defined as the pixel-level Sensitivity and only considers the FN pixels (not the FPs). Find more information about IoR.
Interpretation:
Values range from 0 to 1. A value of 1 indicates that the reference structure is fully covered by the prediction.
Absolute Volume Difference Ratio (AVDR)
AVDR measures the relative difference between the predicted and reference volumes.
Interpretation:
Lower values indicate better agreement between predicted and reference volumes.
Accuracy
Accuracy measures the ratio of samples that were correctly classified over all predictions made. Find more information about Accuracy.
Interpretation:
Values range from 0 to 1. A value of 1 indicates perfect classification.
Balanced Accuracy (BA)
BA measures the arithmetic mean of Sensitivities for each class, i.e., for each class, it measures the fraction of actual positive samples that were predicted as such. Find more information about BA.
Interpretation:
Values range from 0 to 1. A value of 1 indicates perfect classification.
Sensitivity (Recall)
Sensitivity measures how good a method is in classifying truly positive samples as positive. Find more information about CL Dice.
Interpretation:
Values range from 0 to 1. A value of 1 indicates that all true positive samples were correctly classified.
Specificity
Specificity measures how good a method is in classifying truly negative samples as negative. Find more information about Specificity.
Interpretation:
Values range from 0 to 1. A value of 1 indicates that all negative samples were correctly classified.
Positive Predictive Value (PPV)
Also known as Precision, PPV represents the probability of a positive prediction corresponding to an actual positive sample.
Find more information about PPV.
Interpretation:
Values range from 0 to 1. A value of 1 indicates that all predicted positive samples are correct.
Negative Predictive Value (NPV)
NPV represents the probability of a negative prediction corresponding to an actual negative sample. Find more information about NPV.
Interpretation:
Values range from 0 to 1. A value of 1 indicates that all predicted negative samples are correct.
Matthews Correlation Coefficient (MCC)
MCC measures the correlation between the actual and the predicted class.
Find more information about MCC.
Interpretation:
Values range from −1 to 1.
- 1 indicates perfect prediction
- 0 indicates random prediction
- −1 indicates total disagreement
Cohen's Kappa
Cohen's Kappa measures the agreement between prediction and ground truth while accounting for agreement occurring by chance.
Find more information about Cohen's Kappa.
Interpretation:
Values range from −1 to 1.
- 1 indicates perfect agreement
- 0 indicates agreement equivalent to chance
- negative values indicate worse than chance
Positive Likelihood Ratio (LR+)
LR+ indicates the factor by which a positive prediction occurs more frequently among actual positive samples than among actual negative samples. Find more information about LR+.
Interpretation:
Values range from 0 to ∞. Higher values indicate stronger evidence.
Net Benefit (NB)
NB validates the quality of a model intended to support a specific clinical decision. NB gives the ‘net’ proportion of TPs that results from a prediction. This is equivalent to the proportion of TPs in the absence of FPs. For its calculation, NB considers a task-related risk threshold (= exchange rate between the benefit of TPs and harm of FPs). Find more information about NB.
Where:
- \(N\) is the number of samples
- \(p_t\) is the decision threshold
Interpretation:
Values range from -∞ to 1. Higher values indicate better model performance.
Normalised Expected Cost (ECn)
EC is a generalization of the probability of error (which is, in turn, 1 - Accuracy) for cases in which errors cannot all be considered to have equally severe consequences. It is defined as the expectation of the cost, where the cost incurred on a certain sample depends on the sample's class and the decision made for that sample. In practice, the expectation can be estimated as a simple average of the costs over the evaluation samples. EC describes the weighted sum of error rates. It can be used to measure discrimination and calibration in one score.
Interpretation:
Values range from 0 to ∞. Lower values indicate better model performance.
Distance-based metrics
Average Symmetric Surface Distance (ASSD)
ASSD measures the average distance between the surfaces of two segmentations.
Find more information about ASSD.
Interpretation:
Values range from 0 to ∞. Lower values indicate better agreement between surfaces.
Mean Average Surface Distance (MASD)
MASD measures the mean of the averages over all shortest distances from all sampled points on one boundary to any other point on another boundary. Find more information about MASD.
Interpretation:
Values range from 0 to ∞. Lower values indicate better agreement between surfaces.
Hausdorff Distance (HD)
HD is the largest of all the distances from a point on one boundary to the closest point on the other boundary. Find more information about HD.
Interpretation:
Values range from 0 to ∞. Lower values indicate better agreement between surfaces.
Percentile Hausdorff Distance (xᵗʰ HD)
The xᵗʰ percentile of the Hausdorff Distance (HD) measures the xᵗʰ percentile of all the distances from a point on one boundary to the closest point on the other boundary. A common value is x = 95 (HD95). Find more information about xᵗʰ HD.
Interpretation:
Values range from 0 to ∞. Lower values indicate better agreement between surfaces.
Normalized Surface Distance (NSD)
NSD measures the DSC on boundary pixels with an uncertainty margin. The degree of strictness for what constitutes a correct boundary is represented by the tolerance parameter τ. Only boundary parts within the border regions defined by τ are counted as TP. NSD therefore captures known uncertainties in the reference and allows acceptable deviations from the reference for the predicted boundary. Find more information about NSD.
Where:
- \(\tau\) is a distance tolerance
Interpretation:
Values range from 0 to 1. Higher values indicate better surface agreement.
Boundary IoU
Boundary IoU measures the overlap between the predicted and reference boundaries up to a predefined width d. Find more information about Boundary IoU.
Interpretation:
Values range from 0 to 1. Higher values indicate better surface agreement.