Automotive Performance Metrics · Detection metric
Precision
Also known as positive predictive value, PPV
Precision is the fraction of a model's positive outputs that are correct: precision = TP / (TP + FP). For a detector it answers 'of the objects reported, how many were real?' and penalises false alarms.
Explanation
True positives (TP) are outputs that match a ground-truth item and false positives (FP) are outputs that do not. For classification, matching is by label. For detection, a predicted box counts as a TP only if it matches a not-yet-matched ground-truth object of the same class at or above an IoU threshold; duplicate detections of one object count as FPs.
Precision depends on the decision threshold: raising the confidence threshold usually increases precision and lowers recall. A single precision value is therefore meaningful only with its threshold, matching criterion, class and dataset. Precision-recall curves and average precision summarise behaviour across thresholds.
Precision ignores missed objects (false negatives), so it must be read together with recall. In ADAS, low precision appears as false warnings or unwanted braking; low recall appears as missed hazards. Values are only comparable when computed with the same matching protocol, thresholds and dataset.
How it works
Threshold the model's outputs, match each output to ground truth using the task's rule (label equality, IoU at or above a threshold, or distance within a threshold), count TP and FP, and compute TP / (TP + FP). scikit-learn's precision_score implements this for classification; detection toolkits apply IoU-based matching first and then count.
Automotive applications
- Assessing detector false-alarm rates
- Tuning confidence thresholds
- Evaluating sign and lane recognition
- Classifier evaluation
Example
At a 0.5 confidence threshold, a pedestrian detector outputs 1,000 boxes on a test set; 920 match a ground-truth pedestrian at IoU ≥ 0.5 and 80 do not. Precision is 920 / 1,000 = 0.92 for that threshold and matching rule.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- Metrics and scoring: quantifying the quality of predictions (opens in a new tab)
- COCO Detection Evaluation (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.