AI Quality Control for Small Manufacturers: Where to Start

Coding Liquids tutorial cover featuring Sagnik Bhattacharya for AI Quality Control for Small Manufacturers: Where to Start.
Coding Liquids tutorial cover featuring Sagnik Bhattacharya for AI Quality Control for Small Manufacturers: Where to Start.

Start with your defect records, not with cameras. Put scrap, rework, returns and inspection findings into one table, use AI to group the free-text descriptions and rank defects by what they cost, then trace the top two or three to where they begin. Only then decide whether each needs a process fix, a better manual check, or a camera pilot at one station.

Most owners expect AI quality control to mean machine vision spotting defects on the line, and sometimes it does. But a camera only catches problems after they've happened, and only those it can see under consistent light. In a small shop, the biggest quality costs often come from things no camera would catch in time: the wrong drawing revision at the machine, a tool worn past its limit, parts damaged in handling. AI is at least as useful for finding those as for inspecting.

Follow me on Instagram@sagnikteaches

Put a monthly number on poor quality

You need a baseline to judge anything against. For one month, or from the last three months of records, add up four costs:

Connect on LinkedInSagnik Bhattacharya
  • Scrap: material and machine time for parts thrown away.
  • Rework: hours spent fixing parts, multiplied by your labour rate.
  • Returns and complaints: freight, remakes, credits and the time spent handling them.
  • Inspection: hours spent checking parts. Not a failure cost, but it's what automation would save.

For an illustrative 14-person sheet-metal shop making enclosures and brackets, with about $210,000 of monthly sales:

Subscribe on YouTube@codingliquids
CostHow it was worked outPer month
ScrapScrap log plus sheet prices$4,800
Rework96 hours at $45$4,320
Customer returns6 a quarter at about $650 each$1,300
Cost of poor quality$10,420 (about 5% of sales)
Inspection time120 hours at $38$4,560

That 5% is the number every later decision is measured against. If a proposed AI project can't plausibly reduce it, or free up a real share of the inspection hours, it isn't the place to start.

Get the defect records into one table

Most small manufacturers have quality data, but it's scattered: paper check sheets at each station, non-conformance reports (the forms raised when a part fails inspection) in a folder, customer returns in email, rework notes on job travellers. Getting it into one table is the step that makes everything else possible, and it's where AI first earns its keep.

Photograph the paper check sheets and let a chat assistant transcribe them into rows:

Transcribe these inspection check sheets into a table, one row per recorded defect:
date | shift | station | job number | part number | defect as written | quantity |
action (scrap / rework / use as is) | inspector initials
Copy the defect wording exactly. If a field is illegible, write ILLEGIBLE.
Don't correct part numbers; if one looks wrong, add "CHECK" after it.

An illustrative output row: 14 Aug | Night | Press brake 2 | J-2291 | BR-440 | "bend out, 3 deg" | 4 | Rework | CK. On the first batch, the assistant read one job number as J-2201 instead of J-2291 because the 9 had a loop like a 0. The "don't correct" rule stopped it inventing a fix, and the "CHECK" flag appeared on two other rows. Budget 10 minutes per batch of 20 sheets for checking. The general method, including handwriting pitfalls, is in turning handwritten forms into spreadsheet data.

Going forward, a tablet form at each station beats paper, but don't wait for that. Three months of transcribed history is enough to find patterns.

Let AI group the defects and rank them by cost

Free-text defect descriptions are where manual analysis stalls. Inspectors write "scratch", "scuff", "mark on face", "surface damage" and "handling mark" for the same thing. Ask AI to propose a short list of categories, then assign every row to one. As with any counting job, do the counting yourself in the spreadsheet; AI assigns labels, a pivot table adds them up.

The shop's three months produced 412 recorded defects. Grouped and costed (illustrative):

Defect categoryCountShare of countCostShare of cost
Holes in wrong position7117%$12,78048%
Surface scratches13833%$5,52021%
Bend angle out of tolerance5213%$3,64014%
Paint runs287%$1,6806%
Weld spatter399%$9754%
Burrs6416%$9604%
Missing press-in fastener205%$9003%

Counting alone would have pointed at scratches, the most frequent defect. Costing changed the picture: holes in the wrong position scrap a whole part and its laser time, so they were under a fifth of defects but almost half the cost. And the smallest in-house cost, missing fasteners, hid something the table doesn't show: all six customer returns that quarter were parts with a missing fastener. At about $650 a return, those 20 defects cost far more than $900 once they left the building.

One correction was needed. The AI had put "hole oversize" into "Holes in wrong position". They're different faults with different causes (tooling versus programming), so the shop split them. Always read a sample of each category's rows before trusting the labels.

Trace the costly defects to where they start

A ranked list tells you what to fix; it doesn't tell you why it happens. Here AI helps by cross-referencing defects with everything else you record: machine, shift, operator, material batch, customer, drawing revision, days since tool change.

Here is our defect table for [period], with columns for date, shift, station,
job, part, customer, material batch and drawing revision.
For the category "[defect]", find any column values that appear much more often
among these defects than across all jobs. Show the counts for each finding.
Suggest three possible causes that fit the evidence, and what we'd check to confirm each.
Don't state a cause as fact.

For the wrong-position holes, the answer was striking. Of the 71, 52 came from one customer's jobs, and in 44 of those the drawing revision on the job traveller didn't match the revision in the customer's latest email. Parts were being cut from superseded drawings. The fix was document control: one shared folder holding only current revisions, and a revision check at programming. No camera would have helped, because the parts matched the drawing the operator had; it was the wrong drawing.

For scratches, 60% were recorded on night shift after deburring, when parts were stacked unprotected on steel racks. Felt-lined racks and keeping the protective film on until packing cut them sharply within a month. Again, prevention rather than detection.

Decide: fix the process, improve the check, or add a camera

With causes in hand, sort each important defect into one of three responses:

If the defect…Best responseShop's example
Has a clear upstream cause you can removeFix the processWrong drawing revisions; unprotected racks
Needs measurement or judgementBetter manual check, clearer criteriaBend angles: go/no-go gauge at the press
Is visible, repetitive, high-cost if it escapes, and hard for people to catch every timePilot AI visionMissing press-in fasteners

The missing fastener fits the third row almost perfectly. It's a presence-or-absence check, which is the easiest job for a vision system; the part sits in the same position at the insertion station every time; and a person checking 1,800 parts a week will occasionally miss one, which is exactly what reached customers. Surface scratches on bare metal fit it badly, because reflective surfaces make lighting difficult and scratches vary endlessly. Prevention had already dealt with most of them anyway.

Running a camera pilot on one defect

A pilot tests one defect at one station for four to six weeks. The conditions that make machine vision work are physical before they're digital:

  • Consistent lighting. Shield the station from daylight and use the light the vision supplier recommends. Many failed pilots are really lighting problems.
  • Fixed part position. A simple jig or fixture that holds every part the same way.
  • A defect you can see in a photo. If an experienced inspector can't spot it in a picture, a camera won't either.
  • Examples of bad parts. Keep every rejected part for the pilot, and make deliberately faulty samples where you safely can.

Setup has become much simpler. Keyence says its IV4 vision sensors, which have AI built in, can ensure stable presence detection from a single registered image and recommend the best image settings in one click. Cognex describes its edge-learning tools as trainable from a handful of images, citing as few as five to ten, where traditional deep learning needed hundreds or thousands. Treat those as vendor claims to test on your own parts. Price ranges for sensors, cameras and integration are covered in what AI visual inspection costs a small manufacturer.

Measure two things during the pilot, against your inspector's results on the same parts:

  1. Catch rate: of the known-bad parts, how many did it flag? The shop ran 50 deliberately fastener-less parts through the station, mixed with good ones, and the sensor flagged all 50.
  2. False rejects: of the good parts, how many did it wrongly flag? In week one, about 1.5% of good parts, 27 a week, mostly when a fastener sat slightly proud. Rechecking those by hand took about 15 minutes a week. After adjusting the settings, false rejects fell below 0.5%.

The pass mark was set before the pilot started: catch every seeded fault, keep false rejects under 1%, and add no more than 20 minutes a week of rechecking. It passed, and the next quarter had no fastener returns. The quick sum: returns had been costing about $1,300 a month.

Quality paperwork AI can take on now

While the camera question plays out, language models can take real hours off quality staff this month, with no hardware at all.

Inspection checklists from drawings and specs. Upload a drawing (with customer confidentiality in mind) and ask for an inspection checklist:

From this drawing and specification, list every dimension, tolerance, finish
and note that needs checking at final inspection. For each: feature | nominal |
tolerance | method (calliper, gauge, visual) | sample size (from our rule: [rule]).
Quote tolerances exactly as printed. Mark anything you're unsure of as CHECK.

An illustrative output line: Hole pattern A, 4 x 6.5 mm | position ±2 | calliper | first 5 then 1 in 20. The drawing said ±0.2. The decimal point had been lost reading a faint scan, and a checklist with ±2 would have passed parts ten times out of tolerance. The quality lead checks every tolerance against the drawing before a checklist is used, and that check is not optional.

Non-conformance reports. An operator records a 30-second voice note ("J-2291, four brackets, bend out three degrees, press brake two, tool looked worn") and AI turns it into the shop's standard report format with the job details filled in. The supervisor reviews and adds the disposition.

Complaint analysis. Customer complaints and returns emails, grouped by cause each quarter, often reveal patterns faster than internal records; spotting patterns in complaints, returns and defects covers the method.

Supplier quality. Incoming material problems (sheet out of flatness, wrong coating) belong in the same defect table, tagged by supplier and batch. Tracking them alongside prices and lead times is covered in AI supplier management.

How the starting point changes in other workshops

The method holds across small manufacturers, but the first target differs:

  • A small food producer: the highest-stakes check is often the label, where the wrong allergen label on a product is a recall, not a return. Camera checks that read the label and compare it with the product on the line are a common first vision project, and AI can also compare label text against the recipe specification before labels are printed. Keep a person accountable for release.
  • A joinery workshop: natural timber varies in grain, colour and knots, so vision systems flag good parts as faulty far more often. Better first steps are photo records of every finished piece before dispatch and AI-drafted inspection criteria agreed with customers.
  • A plastic injection moulder: short shots and flash usually follow changes in machine pressure, temperature or cycle time. The first AI project is often alerting on machine data drifting outside its normal range, which catches the problem before the parts are made.

If you're still deciding whether quality is the right first AI project at all, where a small manufacturer should start with AI weighs it against quoting, scheduling and admin.

Four ways first AI quality projects go wrong

Buying the camera first. A shop buys a vision system because a trade-show demo was impressive, then looks for a defect to point it at. The defect it picks is rarely the one costing the most, and the project gets judged a failure when scrap doesn't fall. The defect table above is the protection: the camera goes where the cost is.

Training on good parts only. It's easy to collect hundreds of good parts and hard to collect bad ones, because you've been throwing them away. A system trained mostly on good parts learns what normal looks like but hasn't seen the faults you care about. Start a "reject shelf" the day you decide to pilot, and label every part on it with the defect.

Letting AI sign things off. AI can draft a certificate of conformity or an inspection report, but it can't confirm the parts conform. In one made-up but realistic case, a shop found a drafted certificate listing a heat-treatment batch number copied from the previous job's paperwork. A named person checks and signs every certificate against the actual records, every time.

Forgetting the environment changes. A vision station that worked in winter starts false-rejecting in summer when the sun comes through a roof light at 3pm. Or a new coating supplier's parts are slightly glossier. Note any change to lighting, materials, fixtures or part design, and rerun the seeded-fault test after each one rather than waiting for the monthly check.

Checking that quality is actually improving

Track a handful of numbers monthly against the baseline you set at the start:

  • Cost of poor quality as a share of sales: the shop's went from about 5% towards 3% over two quarters, mostly from the drawing-revision fix.
  • First-pass yield: the share of parts that pass inspection first time without rework.
  • Customer returns, counted as parts returned per million shipped if your volumes are high enough.
  • For any vision system: catch rate on a monthly sample of seeded faulty parts, and false-reject rate.

Run the seeded-fault test monthly even after a vision system is trusted. Lighting changes, a new part variant or a knocked camera can lower the catch rate without anyone noticing, and the first sign otherwise is a customer return. Five deliberately faulty parts through the station once a month takes minutes and tells you the system is still doing its job.

Quality control questions from small manufacturers

How many defect images does an AI vision system need?

Fewer than it used to. Some vision sensors can be set up for simple presence checks from a single registered image, and Cognex describes its edge-learning tools as trainable from a handful of images. Subtle or variable defects need far more examples of bad parts, and those are often the hard part to collect in a small shop.

Can AI replace our final inspector?

Rarely, and it shouldn't be the aim. A camera can take over one repetitive, visible check so the inspector's time goes on measurements, first-article checks and judgement calls. Keep a person responsible for release decisions, and keep sampling the camera's passes to make sure nothing is slipping through.

Is it safe to upload drawings and specs to a chat assistant?

Check your customers' confidentiality terms first, because many drawings are supplied under them. Use a business plan that doesn't train on your content by default, or remove title blocks and customer names. For defence, medical or other regulated work, ask the customer before any drawing goes into an outside tool.

Does AI help with quality certifications and audits?

It can speed up the paperwork: drafting procedures from how you actually work, turning audit findings into action lists, and keeping non-conformance records consistent. It doesn't make you compliant. The procedures still have to match what happens on the floor, and an auditor will check exactly that.

Further reads

Sources: Keyence IV4 series product page; Cognex resources on edge learning and deep learning (as shown in search results from cognex.com).

Want to know where AI would catch your defects?

On a 1:1 call we'll look at your defect and returns records, find the problems that cost the most, and decide which need a process fix, a better check or a camera pilot.

Book a 1:1 call with me