Blog / Manufacturing
How AI spots product defects on a production line
By Leena Gopinath, DeeAutomation · 7 June 2026 · 3 min read
The short answer
AI quality inspection uses a fixed camera to photograph each part and compares it with what a good part should look like, flagging scratches, dents or missing features for a person to check. It works best on consistent products under controlled lighting, and it is wise to start with one defect type.
The basic set-up: camera, light and a reference
Most visual inspection systems start with the same ingredients: a fixed camera, consistent lighting and a way to present the part in the same position every time. The lighting matters more than most people expect, because shadows and reflections can look like defects.
The software then compares each new image against a reference, either a picture of a known good part or a model of what good looks like, and scores how far it differs.
Simple comparison versus trained models
There are two broad approaches, and the right one depends on your product.
- Reference comparison: the system compares each part against a golden sample and flags differences. It is quick to set up and suits rigid, consistent parts, but can over-flag natural variation such as wood grain or cast surfaces.
- Trained models: the system learns from labelled examples of good and defective parts. It copes better with variation and subtle defects, but needs a decent set of example images, including real faults, which can take time to collect.
What it can and can’t catch
Visual AI is good at surface problems you can see: scratches, dents, missing components, wrong colour, misaligned labels. It is consistent, does not tire and checks every item rather than a sample.
It cannot see what the camera cannot. Internal voids, weak welds under the surface, wrong material grades and dimensions needing precise measurement usually need other sensors or tests. It also needs examples of the defects you care about, and rare faults are hard to learn. Treat it as an extra pair of eyes, not a replacement for your quality process.
What happens when a defect is flagged
Detection is only useful if something happens next. Typical options are a light or alert on the line, diverting the part to a reject bin, logging an image and time stamp, or pausing the line after repeated faults.
Keeping an operator in the loop is sensible early on. They can confirm or overturn each call, and those decisions become feedback that improves the system and tells you whether the threshold is set sensibly.
Starting small
- Choose one product and one defect type that costs you most in rework or complaints.
- Collect images of good and faulty parts from your own line.
- Run the system alongside your current checks without acting on its results.
- Compare its calls with your inspectors and tune the threshold.
- Only then connect it to rejection or alerts, and expand to more products.
Frequently asked questions
Do I need to replace my existing line equipment?
Usually not. Many systems add a camera and lighting at an existing point on the line. Space, speed and how parts are presented matter, so we would assess your line before recommending anything.
How many sample images are needed?
It depends on the approach and how varied your product is. Reference comparison needs very few, while trained models need more examples, especially of real defects. Results vary, so a small trial is the honest way to find out.
Will it replace my quality inspectors?
Generally it supports them by checking every item consistently and freeing people for judgement calls. Humans remain responsible for borderline cases, root-cause work and the wider quality system.
Want to talk it through?
Tell us what is slowing your business down. You will get a straight answer on whether automation or AI is the right fix, and what a sensible first step looks like.
Try the live inspection demoRelated guides
This article is general information, not legal, financial or tax advice. Check current official guidance for your situation.