A computer vision quality control system that works in a demo has already proved the easy part. The camera saw a part, the model found the defect, the box went red. Everyone in the room is satisfied.
Then the line starts.
Three months later the system is either switched off, or it is running with a person re-checking every reject, which means it is doing the work it was bought to remove. The failure is rarely a software failure. It is almost always a system failure that was invisible during the demo, because the demo held constant every variable the line varies.
This is not an argument for better models. It is an account of the six things that decide whether a model means anything on a production line, and the four decisions that separate the systems still running three years later from the ones in a storage room.
The demo and the line are answering different questions
A demo controls one part, one position, one lighting setup, one product variant, one shift, and one operator who wants it to work. A line varies all six, then adds material lots, ambient light through a door somebody propped open, conveyor speed changes, a new supplier, tool wear, and a defect type that did not exist when the training data was collected.
The distance between those two conditions is larger than most buyers expect, and it is measurable. In one published industrial deployment, a model reached a validation F1 of 93.2 percent inspecting printed logos on wooden sticks. On the production line, same model, same task, same people, it fell to 45.7 percent. The cause was a slightly damaged ink dispatcher producing smudged prints, a defect morphology the model had never been shown. The authors documented it rather than quietly retraining.
What the demo holds constant
One part. One position. One lighting setup. One product variant. One shift. One operator.
What the line varies
All six of those, plus material lots, ambient light, conveyor speed, a new supplier, tool wear, and a defect type that did not exist when the data was collected.
That collapse is not an outlier. It is what the gap between a controlled dataset and a running line looks like when somebody measures it honestly and publishes the result. Everything below is a mechanism that produces a number like that.
Failure one: the imaging station decides what is detectable
Every guide says lighting matters. Few explain why it outranks the model, or what that changes about the order of work.
A camera does not see a defect. It sees a difference in reflected light between the defect and its surroundings. If that difference is small relative to sensor noise and ambient variation, the information is not in the image, and no architecture recovers it. Dark scratches on brushed metal disappear under diffuse light and appear instantly at a low angle. A coating hides a dent until the source moves off axis. The defect did not change. The contrast did.
Which means the station is designed before the dataset, not after it. Enclosure against ambient light. A fixed trigger. A fixed working distance. A lighting geometry chosen for the defect family rather than inherited from whatever was standing in the lab.
Skip that and you will spend weeks tuning a model that is being fed images where the answer is absent. Engineers describe the same loop repeatedly: blaming the model, then looking at raw frames, then fixing the light and watching accuracy jump without a single change to the network.
The same logic explains why some materials are harder than others. A machined part with tight tolerances is a friendly problem. Natural wood is not.
Our hardwood flooring deployment had to classify five or more defect types on a material where grain, knots and color vary from board to board, at a manufacturer that is second largest in Europe. That is not hard because the defect is subtle. It is hard because normal looks different on every part, which is exactly the condition that breaks a model trained on one idea of normal.
Failure two: the validation number was measured against itself
The most common way a project fails is quietly, in the experiment design, months before deployment.
Industrial datasets are usually built by sampling frames from production. Consecutive frames from the same part or the same batch are near duplicates. Split them at random into train and test and you are testing the model on images it has effectively already seen. Accuracy looks excellent and means nothing.
It is a known enough problem that benchmark papers now list it as a methodological defect, alongside using the test set for early stopping and reporting the best epoch. Both inflate results in the same direction. A benchmark study from Valeo and Intel makes the point with numbers: models scoring above 99.9 percent on a saturated public dataset degrade significantly on real production data.
The stronger test holds out time. Train on last month, test on this month. Hold out a material lot, a shift, a line, a supplier. Report results per variant and per defect class, because an aggregate hides the class the model never catches.
A random split measures memory. A time separated holdout measures behavior. If the number survives the second test, it is a number you can plan around. If it does not, you found the problem for the price of a script instead of the price of a failed deployment.
Siemens published a paper on exactly this and it is unusually candid for a company that sells industrial AI. Their models met their own business targets on a properly held out test set. On chronological evaluation slices simulating deployment, the slip rate exceeded target from the first slice. In their conclusion, the models would have failed from the first moment in production. They argue the standard evaluation method is not sufficient for the decision it is being used for, which is a sentence worth borrowing.
Failure three: there are almost no defects to learn from
The better your process, the less data you have. This is the structural trap of inspection. A line producing a few hundred thousand parts a month might generate two hundred real defects across six or seven types, and some classes will have fewer than twenty examples. Supervised segmentation has nothing to learn from at that volume.
There are three responses, and every one of them charges a different price.
Anomaly detection
Train on good parts only. It works, and it flags anything unusual, including a smudge on the lens or a legitimate color shift from a new material lot.
Cost: your false reject rate becomes the problem
Synthetic defects
Painted scratches and generated anomalies. They help, unless the synthetic defects look synthetic and the model learns the difference between pasted and real.
Cost: beautiful test scores, missed real crack
Wait and collect
Honest, defensible, and slow. Real defects accumulate at the rate the process produces them, which is by design very low.
Cost: eighteen months the project does not have
The decision that matters here is not which algorithm. It is whether the business needs classification or a gate. If the line only needs reject and review, collapsing seven classes into one binary decision and letting a person sort the type is often the only defensible choice with the data available. Losing the reporting hurts. Pretending twenty examples per class can support seven way classification hurts more, later, in front of a customer.
Failure four: the line does not run at benchmark speed
Latency is where demos and factories part company most visibly. A model that inspects a part in four seconds is impressive in a meeting and useless on a line producing one every 1.8 seconds. An engineer with hundreds of industrial systems behind him described the gap in plain numbers: typical inspection runs in tens to hundreds of milliseconds, and a 25 megapixel image processed in about 900 milliseconds is the slow end of acceptable.
Two things get missed. First, mean latency is the wrong metric. Tail latency decides whether the line keeps pace, which is why serious validation sets percentile gates rather than averages. Second, cold start numbers lie. A system that performs on the first part after boot can throttle after four hours of continuous load, and the thermal behavior of the accelerator is a design constraint, not a footnote.
The architectural answer is unglamorous and effective. Separate capture from inference. Queue frames. Crop to the region of interest before the heavy model sees anything. Then measure the path from sensor to actuator rather than the model in isolation, because that is the only number the line experiences.
Failure five: false rejects are the cost nobody budgets for
This failure gets the least public attention and causes the most daily pain. The category sells detection accuracy. The buyer lives with the line stopping on good parts, and those are different problems with opposite economics.
How well human inspection actually performs is measurable, and the recent evidence is less flattering than the sales deck. A 2022 study at the University of Canterbury put 50 industry practitioners, including 18 full time inspectors, against the same 118 engine blade images. On screen they reached 76.2 percent accuracy, and 63.8 percent through a borescope.
The more interesting number is consistency: inspectors agreed with themselves 82.5 percent of the time, but agreed with each other only 15.4 percent of the time. The comparison is open access.
A 2024 study in the Journal of Vision found the same pattern from a different angle. Across five inspection rounds the false negative rate sat at 42.1 percent, and it did not fall as inspectors gained experience. Small, low contrast targets were found 9 percent of the time, large dark ones more than 90.
Their conclusion is the one worth quoting: experience made inspectors better at recognizing what they were looking for, but it did not stop them overlooking targets they could not perceive. The paper is free to read.
So the baseline is not a stable thing you improve on. It is a variable you cannot control, which is why the argument for machine inspection is sound and why the argument is so often made badly.
The machine version of the same problem has a number, and it is the most useful result in this field.
False reject rate, identical model predictions
57.6 percent when raw model outputs are aggregated directly into a decision.
10.9 percent once a decision layer encodes the plant’s actual acceptance criteria. Recall held at 100 percent across all 104 non conforming parts.
Source: a multi view inspection study where the model predictions were never changed. The gain came entirely from the decision layer.
Read that again. Same model. Same predictions. A five times reduction in false rejects from writing down the acceptance criteria and applying them as rules instead of trusting a confidence score.
That result is the argument of this entire article in one number. The model is the cheap part. The specification, the decision layer, the threshold policy and the review queue are where a system is won or lost.
It also reframes how you measure, because the two metrics that look equally respectable on a slide predict almost opposite things.
| Metric | Correlation with field outcome | What it tells you |
|---|---|---|
| Overall accuracy | 0.38 to 0.42 | How well the model scored on the data you chose to test it on |
| Recall at a fixed false positive rate | 0.85 to 0.88 | How the line will behave at the operating point you can actually tolerate |
If you are choosing a vendor on accuracy, you are choosing on the metric that predicts your outcome least well. The cost also compounds as a part moves downstream, which is why the rule of ten matters: a defect caught at station one costs a fraction of the same defect discovered at final assembly. We wrote the full economics of when computer vision ROI is highest separately, because it deserves its own treatment.
Failure six: the pilot works and the station does not scale
A single station proves the concept. Scaling it exposes everything the pilot was allowed to tolerate.
The first pressure is capacity. A line at 40 percent utilization with rework absorbed downstream looks fine. At 100 percent, the same defect rate produces proportionally more rework and less slack to hide it, and the inspection system that was going to help becomes part of the constraint. Teams discover this the month they go to full production, not the month they signed.
The second is drift. A new material lot arrives with different surface texture. A supplier changes a coating. Tool wear shifts the appearance of every part by a few percent. The model was trained on last quarter’s idea of normal and is now judging this quarter’s, without knowing the difference between unusual and defective.
The third is ownership, and it is the one that kills systems quietly. Pilots are run by the people who care. Production is run by people on shift who did not choose the system, were not trained on its failure modes, and will switch it off the first time it costs them an hour of output.
A system without a named owner, a written threshold policy and a shift start check with known parts has a scheduled death it has not been told about.
What separates the systems that survive
Four decisions, in the order they have to be made.
Station before dataset
Design and freeze the imaging conditions, then collect. Every image in the training set should have travelled through the optics and lighting the model will actually see. Lab images teach a model the lab.
Hold out by time, not at random
Split on the axis that mirrors deployment. Report per variant and per defect class, because a single aggregate number is a hiding place for the class the model never catches.
Specification before model
Write acceptance criteria with the quality team, as rules, before anyone trains anything. Which sizes matter, which marks are cosmetic, which tolerances are contractual. That specification becomes the decision layer, and the decision layer is where most of the false reject reduction lives.
Fail closed, then measure the tail
A missing, late or malformed result rejects the part. Then measure p95 latency, escape rate and false reject rate on production runs the model has never seen. If you cannot state all three, you have tested a model, not validated a system.
None of this is theoretical for us, which is why we write it. Our automotive seating deployment delivered 27 times faster inspection at 99 percent detection accuracy, and we wrote up what that deployment actually took rather than only what it returned. If you want the opposite view, of systems that did survive contact with a factory floor, that is a separate piece: what computer vision looks like when it is running in production.
In our published case studies we report detection accuracy. False reject rate is the number we now ask for first, because it is the one that decides whether a line keeps a system installed after the novelty wears off.
What to ask before you sign
Six questions separate a supplier who has shipped inspection systems from one who has demonstrated them. A vendor who has shipped will answer all six without pausing. A vendor who has only demonstrated will answer the first one and start talking about the model.
| Question | Weak answer | Serious answer |
|---|---|---|
| How was the validation split made? | We held out 20 percent. | By production run and by time, with a per class breakdown. |
| What is the false reject rate at your operating threshold? | Our accuracy is 99 percent. | A figure at a stated recall, measured on runs the model had not seen. |
| What happens when a new material lot arrives? | It retrains automatically. | Threshold recalibration, a shadow period, then revalidation against known parts. |
| What happens if the result is late or missing? | The operator gets a warning. | The part is rejected and the line stops on a heartbeat loss. |
| What is p95 latency at full line rate? | Under a second. | A number in milliseconds, measured over a soak at production speed. |
| Who owns this at three in the morning? | Support is available. | A named person, a written threshold policy, and a shift start check. |
If you want a second opinion on a station before you commit to it, that is what our computer vision consulting work is for. Most of the value arrives before the first image is captured, which is inconvenient for everyone who would rather start training a model.
Get a clear path forward.
Share your challenge and walk away with concrete next steps - whether you're exploring AI, automating a process, or scoping a custom software project.
- Honest assessment of your situation - no sales pitch
- Actionable next steps you can use right away
- AI, automation, and custom software expertise
Frequently Asked Questions