Skip to content

Results and deployment

Evaluation metrics

What accuracy, precision, recall, F1, mAP and the other scores in Studio actually mean.

On this page

The idea in one minute

A metric is a number that says how good a model is. Different tasks need different metrics, so Studio shows each model only the metrics that fit it.

ModelMain metrics in Studio
Motion classificationAccuracy per window and per recording, confusion matrix
Motion regressionMAE (mean absolute error)
Audio classificationAccuracy, confusion matrix
Audio anomaly detectionAnomaly score compared with a threshold
NanoVisionPrecision, recall and F1 on grid cells
Vision Pro, EdgeDetect LitemAP@50 and other COCO detection scores
FaceRec-EdgePrecision, recall, F1 and a confusion matrix

Accuracy

The share of predictions that were right. 90 correct out of 100 is 90 % accuracy. Easy to read, but it can mislead when labels are unbalanced.

Precision, recall and F1

Imagine a model that looks for helmets.

  • Precision: of everything the model called a helmet, how much really was one?
  • Recall: of all the real helmets, how many did the model find?
  • F1: one number that balances precision and recall.

Confusion matrix

A table with the real labels on one side and the predicted labels on the other. The diagonal counts the correct answers; everything else shows which labels get mixed up.

Real ↓ / Predicted →waveshakeidle
wave1820
shake1190
idle0020

Here wave is sometimes mistaken for shake. Recording more varied waves would help.

Per window and per recording (Motion)

A Motion recording is cut into many windows. Studio reports:

  • Per window: how many windows got the right label.
  • Per recording: each recording gets the label most of its windows voted for, then those are counted.

IoU and mAP (box detection)

IoU (intersection over union) measures how well a predicted box overlaps the real box: 1 means a perfect match, 0 means no overlap. mAP@50 counts a detection as correct when its IoU is at least 0.5, then averages the precision over all labels.

Cell metrics (NanoVision)

NanoVision marks object centres on a grid, not boxes, so IoU and mAP don't apply. Studio checks each grid cell instead and reports precision, recall and F1 on those cells.

MAE (regression)

Mean absolute error is the average distance between the predicted and real numbers. Lower is better. An MAE of 0.5 when predicting speed in km/h means predictions are off by half a km/h on average.

Anomaly score (Audio anomaly detection)

The model gives each sound a score. A score above the threshold means "unusual". Raising the threshold gives fewer false alarms but may miss real problems.

Where you use this in PetalEdge