Machine Vision & Industrial Inspection AI calculator
AI Inspection Precision Recall Calculator
Check alarm quality alongside defect capture before approving an inspection threshold. Enter confirmed true positives, actual defects, false-positive alarms and your recall requirement from one labeled audit.
What this calculator does
- Measure precision, recall and F1 from independently verified inspection decisions.
Formula used
- Precision (%) = true positives ÷ (true positives + false positives) × 100
- Recall (%) = true positives ÷ actual defects × 100
- Missed defects = actual defects − true positives
- F1 (%) = 2 × true positives ÷ (true positives + actual defects + false positives) × 100
- Recall gap (points) = required recall − observed recall
Inputs explained
- True Positive Defects: Confirmed defective samples correctly flagged by the inspection system.
- Actual Defects in Sample: All independently confirmed defective samples, including missed defects.
- Required Detection Recall: Minimum observed recall specified in your acceptance plan.
- False Positive Alarms: Good samples incorrectly flagged as defective in the same audit.
How to use the result
- Best suited to comparing inspection decision thresholds, reviewing false rejects beside detection.
- Precision depends on defect prevalence in the audited population. These observed scores do not include confidence bounds. F1 weights precision and recall equally, regardless of escape costs.
Common questions
- Why is precision different from recall? Precision divides genuine defect alarms by all alarms. Recall divides genuine defect alarms by all actual defects, including misses.
- What is a false positive here? A false positive is a good sample incorrectly flagged as defective. A missed defective sample is a false negative, also called an escape.
- Why can a metric be blank? Precision needs at least one alarm; recall needs at least one actual defect. F1 needs at least one true positive, false positive or missed defect.
- Does a high F1 score prove acceptance? No. F1 combines observed precision and recall with equal weight. Your quality plan may require separate recall, false-reject and statistical evidence.
Last reviewed 2026-10-23.