Short answer: Start with one station, one part family and the two or three defects your customers complain about most. Fix the camera position and lighting first, train a model mostly on images of good parts, and run it alongside your inspectors for a few weeks before it makes any reject decisions on its own. Parts it is unsure about should go to a person, with the image on screen.
The problem
Most small manufacturers still rely on people to catch cosmetic and assembly defects: scratches, dents, missing clips, short shots, wrong labels, poor welds. The inspector looks at hundreds of near-identical parts a shift, and the ones that slip through tend to turn up at the customer.
People who have run quality teams say this plainly. In a January 2025 Hacker News discussion, someone who ran incoming quality control at a medical device factory said that even 100% visual inspection lets roughly one defect in five through, and pointed to Deming and Juran's argument that inspection alone can't guarantee quality. Quality forums have long-running threads with the same story: a customer finds defects, the plant adds a second check, and parts still escape.
The research backs up their experience. A Sandia National Laboratories review of inspection studies going back to the 1950s found that error rates of 20% to 30% are common, that missed defects happen more often than false rejects, that no defect is found by every inspector, and that a given person's detection rate drifts over time. A 2023 paper in Micromachines puts typical manual visual inspection accuracy at around 80% in industry.
The cost shows up in three places:
- Labour. The US median wage for quality control inspectors was $48,570 a year in May 2025, before overheads. Two inspectors on a two-shift line cost close to $100,000 in wages alone.
- Escapes. A defect that reaches the customer brings returns, sorting at their site, chargebacks and sometimes a supplier corrective action request.
- Lost information. A tally sheet that says "12 scratched" tells you very little about which machine, which hour or which batch of material caused them.
Why it keeps happening
Visual inspection is a hard job for people, and most plants set it up in ways that make it harder.
Fatigue and vigilance
Looking for a rare defect in a stream of good parts is exactly the task human attention handles worst. Sandia's study lists inspection procedures that manage vigilance among the main ways to improve accuracy, and the recommended practices it observed include working breaks and searching for one defect at a time.
Vague acceptance criteria
"No visible scratches" means different things to different inspectors, and to the same inspector at 7am and at 4pm. Without limit samples and clear photos of what fails, borderline parts get called both ways.
The usual fix adds cost, not accuracy
When a customer complains, the common response is another inspection step or a re-sort. Each extra pass costs labour, and because the second inspector faces the same conditions, the improvement is smaller than people expect.
Old machine vision was expensive and brittle
Traditional rule-based vision works well for measurements and presence checks, but writing rules for natural variation in cosmetic defects is difficult. Many small plants tried a camera years ago, saw it reject good parts every time the light changed, and switched it off.
How AI solves it
Modern inspection models can learn what a good part looks like from examples, so you no longer need to write a rule for every kind of scratch. The model is only part of the system, though. Here is the workflow we would set up for a first station.
1. Pick the right first check
Go through your scrap logs, customer complaints and corrective action requests. Choose one part family and the few defects that cost you most. A good first candidate is visible on one face of the part, happens often enough to collect examples, and is currently checked by a person at a fixed point on the line.
2. Get a consistent image
This is where most projects succeed or fail. Fix the part position with a simple fixture or a stop on the conveyor, enclose the station or shield it from window light, and choose lighting that makes the defect stand out (low-angle light for scratches and dents, diffuse light for shiny parts). If a person can't see the defect clearly in the photo, a model won't either.
3. Collect images, mostly of good parts
Defects are rare, so start with anomaly detection: a model trained on images of good parts that flags anything that looks different. This is a well-established approach. The widely used MVTec AD research dataset, for example, has training sets made up only of defect-free images, and open-source libraries such as Anomalib (Apache 2.0 licence) collect these algorithms. As real defects turn up, label them so you can later train a model that names the defect type.
4. Run in shadow mode
For the first few weeks, the camera inspects every part but makes no decisions. Inspectors work as normal. Each day, compare the model's calls with the inspectors' calls and review every disagreement. Build a "golden set" of parts that several people have agreed on, because Sandia's finding that no defect is caught by every inspector means a single person's call is not a reliable answer key.
5. Route decisions three ways
Once the results hold up, let the model act on clear cases and hand the rest to people:
- Confident pass: the part carries on.
- Confident fail: a signal to the PLC diverts it to a reject bin.
- Unsure: the part goes to an inspector, who sees the image with the suspect area highlighted and makes the call.
The inspector's job changes from looking at every part to judging the hard ones, which is a much better use of a skilled person.
6. Log everything and retrain
Store every image with its timestamp, machine, shift, material lot and decision. Review the uncertain and overturned calls each week, add them to the training data and retrain on a schedule. This log is often worth as much as the inspection itself, because it shows where defects come from.
Where an LLM fits, and where it doesn't
A large language model or vision-language model is the wrong tool for the pass/fail decision on a moving line. It is slower, harder to make consistent, and its answers can vary for the same image. AWS describes its generative AI route for defect detection as suited to cases that don't need low-latency processing.
Language models are useful around the edges: drafting a non-conformance report from the logged images and data, summarising a week of rejects by machine and shift, or letting a quality manager ask "show me every scratch on part 4410 since Monday" in plain English.
| Task | Best tool |
|---|---|
| Measuring a dimension or hole position | Rule-based machine vision or a gauge |
| Checking a part or label is present | Rule-based vision or a smart camera's built-in tools |
| Spotting varied cosmetic defects (scratches, dents, stains) | Anomaly detection model |
| Naming the defect type for your reports | Supervised classification model, once you have labelled examples |
| Diverting rejects | PLC logic triggered by the model's result |
| Writing reports and answering questions about trends | LLM working from the inspection log |
Costs and timeline
The figures below are our rough planning estimates for a single station, not quotes. Real costs depend on part size, line speed, how many faces need checking and how the result connects to your line.
Assumptions: one station on a two-shift line, about 2,000 parts a shift, one part family, two inspectors currently spending most of their time on this check.
Build a custom station
- Hardware (industrial camera, lens, lighting, enclosure, edge PC): roughly $5,000 to $15,000.
- Pilot build, data collection, shadow-mode testing and line integration: roughly 8 to 12 weeks of work.
- Ongoing: a few hours a month to review uncertain calls and retrain, plus hardware upkeep.
This makes sense when the defects are varied, when you want the inspection data in your own systems, or when you plan to roll the same approach out to more stations.
Buy a smart camera with built-in learning
Several vision vendors now sell smart cameras with simplified learning tools. Cognex, for example, describes its In-Sight 2800 edge learning as needing only a handful of training images and minutes to set up for OK/NG classification and presence checks. Ask your integrator for a quote on your parts; as a rough estimate, expect hardware in a similar range to the custom option, and setup that your integrator or maintenance team can usually handle. This is usually the better choice for simple, well-defined checks.
Cloud platforms carry platform risk
Amazon Lookout for Vision, a cloud service aimed at exactly this problem, closed to new customers in October 2024 and was discontinued on 31 October 2025. Whatever you choose, keep your own copy of every image and label so you can move tools without starting again.
Do nothing
Using the BLS median wage, two inspectors cost about $97,000 a year in wages before overheads (2 × $48,570). If the research is right that manual inspection misses 20% to 30% of defects, you are also paying for escapes you never see in the inspection numbers. An AI station rarely removes the inspector role entirely, but it can free most of that time for harder checks and root-cause work. The payback depends far more on what your escapes cost you than on labour savings, so start by putting a number on your last year of returns and customer complaints.
When not to use AI
- The defect isn't visible on the surface. Internal voids, cracks under coatings and weak welds need other methods such as X-ray or ultrasonic testing.
- You need precise measurement. For dimensions and tolerances, a gauge, a coordinate measuring machine or classic rule-based vision is more accurate and easier to validate.
- Every part is different. A jobbing shop making one-offs can't easily give a model enough examples of "good".
- The cause can be fixed upstream. If most scratches come from one worn conveyor guide, replace the guide.
- The check is simple. A presence check or a barcode read on a smart camera's standard tools will be cheaper and easier to support than a custom model.
- You can't fix the lighting or part position. Without a consistent image, no model will be reliable, and you will spend your time arguing with false rejects.
How to start
- Pull 12 months of scrap logs, customer complaints and corrective action requests, and rank defects by cost.
- Pick one station and one part family.
- Build a set of limit samples and photos that define pass and fail, agreed by your quality lead and your best inspectors.
- Mount a camera with fixed lighting and collect a few weeks of images of good parts, plus every defect you find.
- Run the model in shadow mode and compare it with your inspectors on the same parts.
- Only then connect it to a reject mechanism, with uncertain parts going to a person.
If you want help scoping the first station or deciding between a smart camera and a custom model, our computer vision and NLP service covers inspection pilots from camera setup to line integration. If quoting is also slowing your shop down, see how to speed up RFQ quoting in a job shop using AI. To make your inspection standards and work instructions easier for staff to find, read how to build an AI assistant that answers staff SOP questions.
FAQ
How much does AI visual inspection cost for a small manufacturer?
For a single station, our rough estimate is $5,000 to $15,000 in hardware plus 8 to 12 weeks of pilot work for a custom setup. A smart camera with built-in learning tools can cost less for simple checks. The bigger variable is how much time it takes to get a consistent image of the part.
How many images do you need to train an AI inspection model?
Fewer defect images than most people expect. Anomaly detection models learn from images of good parts, so you can start before you have a defect library. Some smart cameras claim usable results from a handful of images per class, but expect to keep adding examples for weeks as unusual defects appear.
Can AI replace human quality inspectors?
In most small plants the inspector role stays, with a different focus. The model handles the clear passes and fails, and inspectors judge the uncertain parts, keep the acceptance standards up to date and investigate why defects happen. Someone still needs to own the system and review its decisions.
What is the difference between machine vision and AI visual inspection?
Traditional machine vision uses rules written by an engineer, such as "reject if this edge is more than 0.2 mm out". AI inspection learns from example images, which makes it better at varied cosmetic defects. Many good systems use both: rules for measurements and presence, and a model for the defects that are hard to describe.
What replaced Amazon Lookout for Vision?
AWS discontinued Lookout for Vision on 31 October 2025. Its suggested alternatives are partner solutions, building your own model in Amazon SageMaker, or using Amazon Bedrock where low latency isn't needed. Smart cameras with built-in learning and open-source anomaly detection libraries are also options.
Can I use ChatGPT to inspect parts?
You can show a general-purpose AI model a photo and ask if it looks damaged, but it isn't suitable for pass/fail decisions on a production line. It is slower, and its answers are less consistent than a model trained on your own parts. It is more useful for writing reports and summarising inspection data.
Sources
- Judi E. See, Sandia National Laboratories, "Visual Inspection Reliability Study" (SAND2014-2785C, April 2014): https://www.osti.gov/servlets/purl/1142011
- Sundaram and Zeid, "Artificial Intelligence-Based Smart Quality Inspection for Manufacturing", Micromachines (2023): https://pmc.ncbi.nlm.nih.gov/articles/PMC10058274/
- US Bureau of Labor Statistics, Occupational Outlook Handbook, "Quality Control Inspectors": https://www.bls.gov/ooh/production/quality-control-inspectors.htm
- AWS Machine Learning Blog, post on alternatives to Amazon Lookout for Vision (October 2024): https://aws.amazon.com/blogs/machine-learning/exploring-alternatives-and-seamlessly-migrating-data-from-amazon-lookout-for-vision/
- MVTec, "MVTec AD" anomaly detection dataset: https://www.mvtec.com/research-teaching/datasets/mvtec-ad
- Anomalib on GitHub: https://github.com/open-edge-platform/anomalib
- Automation Magazine, "How In-Sight 2800 makes vision automation simple" (June 2022): https://www.automationmagazine.co.uk/how-in-sight-2800-makes-vision-automation-simple/
- Hacker News discussion on 100% inspection (January 2025): https://news.ycombinator.com/item?id=42892298
If you'd like to talk through an inspection problem on your own line, get in touch at https://sintraflow.com/contact.