Automotive Performance Metrics · Detection metric
Mean Average PrecisionmAP
Also known as AP, mAP@0.5, mAP@[.5:.95], AP50, AP75, box AP
Mean average precision (mAP) summarises detector accuracy. Average precision (AP) is the area under the precision-recall curve for one class; mAP averages AP over classes and, in COCO-style evaluation, also over several IoU matching thresholds.
Explanation
For each class, detections are ranked by confidence and matched to ground truth at an IoU threshold; precision and recall are computed as the confidence threshold sweeps down, and AP summarises the resulting curve. PASCAL VOC-style mAP uses a single IoU threshold of 0.5. COCO averages AP over ten IoU thresholds from 0.50 to 0.95 in steps of 0.05, which rewards tighter localisation, and also reports AP50, AP75 and AP for small (below 32² pixels), medium and large (above 96² pixels) objects.
Naming is inconsistent: COCO writes 'AP' for the value averaged over categories and says it makes no distinction between AP and mAP. Implementations also differ in how they summarise the curve; scikit-learn computes a non-interpolated weighted sum of precisions, while benchmark toolkits use interpolated variants.
mAP values are only comparable under the same protocol: dataset split, class list, IoU thresholds, interpolation, maximum detections per image, area ranges and handling of ignored regions. Other benchmarks define their own matching; the Waymo Open Motion Dataset, for example, computes mAP for trajectories using its miss-rate criterion instead of IoU.
How it works
For each class: sort detections by score; walk down the list, marking each as a TP if it matches an unmatched ground-truth object at IoU ≥ t and otherwise as an FP; compute cumulative precision and recall; compute AP from the precision-recall curve. Average AP across classes, and across IoU thresholds for COCO-style mAP@[.5:.95].
Automotive applications
- Headline accuracy for 2D and 3D detectors
- Model selection and regression testing
- Comparing FP32, FP16 and INT8 builds
- Instance segmentation (mask AP)
Example
A camera detector reports mAP@0.5 of 0.71 but COCO-style mAP@[.5:.95] of 0.46 on the same validation set. The gap shows that objects are usually found but boxes are often loosely fitted, which matters when distance is estimated from box geometry.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- COCO Detection Evaluation (opens in a new tab)
“We make no distinction between AP and mAP”
- Metrics and scoring: quantifying the quality of predictions (opens in a new tab)
- Large Scale Interactive Motion Forecasting for Autonomous Driving: The Waymo Open Motion Dataset (Ettinger et al., 2021) (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.