VisionProof Labs Book a free call

A closer look at model failure

A pilot benchmark: four models, 160 public circuit-board images, 33 pages. Every client report follows the same structure.

Report cover: PCB Defect Detection, anomaly detection vs zero-shot vs frontier AI
Cover
Executive summary page with the verdict table
Executive summary
Results page with intervals and ROC and precision-recall curves
Results with intervals
Failure gallery page showing missed and wrongly flagged boards
Failure gallery

A self-initiated pilot on public data. Not paid client work, not a production-line validation, and not proof that any model is reliable in general. The findings apply to these images, models, settings and thresholds.

Setup

The four board designs in the test set (VisA, CC BY 4.0).
Data
160 images from the public VisA dataset (Zou et al., 2022, CC BY 4.0): four PCB designs, 80 labelled defective and 80 labelled good. Lab photographs, not a production line.
Models
PatchCore (anomaly detection, trained only on good boards) · OWLv2 and Florence-2-large (open-source, zero-shot, prompted with text) · Claude (frontier vision-language model, via API).
Thresholds
PatchCore, OWLv2 and Florence-2-large set on 40 separate validation boards. Claude's threshold (0.5) fixed in advance.
Pass rule
Find at least 95% of defective boards and flag no more than 10% of good boards. No model met it. This rule was set after Claude's results had been seen, so the verdict is exploratory, not a pre-registered acceptance test. Under a looser 90% / 15% rule, Claude would pass; the report shows the verdict under each. In client work the pass rule is agreed in writing before scoring.
Intervals
95% Wilson intervals for rates; stratified bootstrap for AUROC.
Labels
The dataset's own. Where the models disagree with a label, the report says so rather than assuming the label is right.

Inside the report

Cost of errors page: expected cost per 10,000 parts for each model as the price of a miss changes
Cost of errors: expected cost per 10,000 parts. From our public PCB benchmark.
Executive summary
The verdict against the pass rule, the key numbers and the limits, on one page.
Scope and pass rule
What the model must decide and how the verdict changes under other rules.
Data and models
Images, splits, sources, licences, and what each model was allowed to see.
Results with intervals
Defects found, good boards flagged, precision and AUROC, each with counts and a 95% interval.
Calibration and repeatability
Does a model's score mean what it says? Same answer twice?
Error analysis
By defect type, board design and measured image condition; whether the model pointed at the actual defect.
Findings
Observed, inferred and not tested, each with an action and how to verify it.
Cost of errors
Expected cost per 10,000 parts as the price of a miss changes.
Recommendations and limits
Next steps and what the results don't establish.
Failure catalogue and handover pack
Every miss and false alarm with a written reading, plus a notebook that re-computes the numbers.

A finding worth examining

Board 045: both transducer mesh covers missing, boxed in amber
Board 045. Claude: "No defect", score 0.07. PatchCore flagged it. Amber: the defect as labelled in the dataset.
Finding
Nearly identical AUROC scores can hide very different behaviour at the threshold.
Evidence
PatchCore and Claude ranked boards almost equally well (AUROC 0.946 and 0.949). At their evaluated thresholds, PatchCore found all 80 defective boards but flagged 39 of 80 defect-free boards; Claude flagged 9 defect-free boards and missed 7 defective ones, 4 of them with missing components.
What it means
There's no single best model in these figures. The right choice depends on what a missed defect and a false alarm each cost, and on the intended operating environment.
Limit
Four lab-photographed board designs from a public dataset. These results don't show how either model would perform on a production line.
Next step
Test the candidates, and their combination, on a fresh sample from the target line, with the method and pass rule fixed before evaluation.

Find out before you ship.

Tell us what the model decides and what a mistake costs you. In 20 minutes we'll tell you whether an evaluation can answer your question.

Book a free callOr send a short description

No need to send confidential images in your first message.