MD.ai

Model Performance

Evaluate a classification model against your annotations

For classification models, MD.ai compares model outputs with your annotations and plots the results: predictions, ROC and precision-recall curves, and a confusion matrix.

A model counts as a classification model when it has at least two label classes, and all its labels are global. Performance is measured against annotations made with the model's own labels, so annotate with the labels mapped to the model.

Model performance

Open model performance

  • For a model: expand the model card and click Show Model Performance, or click View Model Performance at the top of the Models panel and choose the model.
  • For one inference task: open the task's Details and click View Performance.

Settings

SettingDescription
Model VersionThe version to evaluate. Defaults to the active version.
DatasetOne or more datasets, or All Datasets (default).
Model Label ClassThe class to evaluate as positive.
ThresholdThe probability at or above which an output counts as positive, for the confusion matrix. Default 0.5; Reset Threshold restores it. You can also click a point on the ROC or precision-recall curve to use its threshold.
ViewShow the plots in a grid, or one at a time.
Export as ImageDownload the plots as a PNG.
Model performance settings

Plots

PlotShows
PredictionsEach exam, series or image as a point, by its predicted probability
ROCThe ROC curve and its AUC
Precision-RecallThe precision-recall curve and its AUC
Metrics SummaryTrue and false positives and negatives at the threshold, and the items left out of the evaluation

Curves are computed at 11 thresholds (0, 0.1, … 1), so AUCs are approximate.

Performance plots

Investigate errors

Hover over a point in the Predictions plot to see the item, its annotation, its probability and whether it's a true or false positive or negative. Click the dataset or the item to open it in the workspace.

Go to an item from the plot

Performance calculations

Each exam, series or image, at the scope of the selected label, is compared as follows.

Items left out. These items are counted under Ignored in the Metrics Summary instead of being evaluated:

  • No Annotation: the model produced an output, but nobody annotated the item.
  • No Output: the item is annotated, but the model produced no output.
  • No Annotation & Output: neither.

Outputs without a probability are also left out.

No Annotation

Several outputs for one item. If the same version ran more than once on an item, one of its outputs is used.

Several annotations for one item.

  • For single-output models, which return at most one output per item, one annotation is chosen: the one with the most credit. If credit is tied, any one of them may be used, so use reviews to settle conflicts.
  • For multi-output models, which can return several outputs per item, every annotation counts, once per label. For example, a model with outputs Any, Intraventricular hemorrhage and Subarachnoid hemorrhage, on an image annotated Any and Intraventricular hemorrhage, scores: Any true positive, Intraventricular hemorrhage true positive, Subarachnoid hemorrhage false positive.
Multi-output model

Annotation credit

Credit comes from reviews: each thumbs up adds 1, and each thumbs down subtracts 1. Use reviews to settle conflicting annotations: in the example below, Chest has more thumbs up than the more recent Abdomen, so Chest is used.

Annotation credit

On this page