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.




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




- 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

- 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

- 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.