← All posts

STAYCHARTED BLOG · MANUFACTURING · QUALITY

Defect classification that learns new defects from the people on the line

When operators find a defect type the model doesn't know, they send a photo from their phone. A reviewer approves it, and the next version learns it.

By Manoj Mohandas ·

Why defect models miss things

  • Rare defects are rare in training data. In our food grading benchmark, the Dedicated AI Image Model was right on 93.8% of 240 cashew photos overall but found only 26 of the 40 defective ones (65%); the AI Image Classifier Model found 40%. Overall accuracy hides the misses that matter.
  • New defect types aren't in the training data at all.
  • Lines drift. Lighting, camera position and materials change over months.

The fix for all three is the same: more examples of what the model gets wrong, labeled by people who know.

How the loop works

  1. Train on your graded inspection photos: good parts and each defect type. AMT shows accuracy per category, so you see which defects the model misses.
  2. Operators and inspectors get the app on a shared tablet or their phones. Agency staff use an access code, with May add training examples ticked.
  3. When they see a defect the model got wrong, they photograph it and send it with the right category. For a defect that has no category yet, they choose Not in the list and type a name ("delamination at edge").
  4. A quality engineer reviews in the Review Queue: approve, correct, or reject. A new defect name becomes a new category with one tap.
  5. Retrain, read the new version's report, especially recall on the rare defects, and publish when it's better.

Field contributions require a published model. After retraining, a Builder checks the test report and publishes the version your team will use.

Set the review cutoff for defects

Quality cares more about missed defects than about extra checks. Set the review cutoff so that anything the model isn't sure is "good" goes to a person. AMT's test report shows, at each cutoff, the share of parts a person would check and how many of the model's mistakes are among them.

Guardrails

  • The model sorts; quality decides. Use it to route parts and photos, not to release product on its own.
  • Nothing trains without approval. Operators' examples wait for a quality engineer.
  • A retrain takes at most a quarter of its rows from reviewed items, so a burst of one new defect doesn't swamp the rest.
  • Logged: who sent each example and when.

What it doesn't do

  • Whole-photo categories. It says "scratch" or "good" for the photo; it doesn't outline or measure the defect. Frame one part per photo.
  • Not in-line machine vision. It's for photos people take and for camera images you send through the API, not for millisecond line triggers.
  • The app needs a signal to send.

How to start

  1. Start free with photos of good parts and each defect. Picture models need the Vision add-on on Essentials or Business.
  2. Read recall per defect in the test report; that's your baseline.
  3. Switch operators on with the training examples guide, and review weekly.

Related: AI visual inspection and damage triage and the food grading benchmark.

Common questions

How do I add a new defect type to an inspection model?

Collect photos of it, label them, and retrain. With AMT, operators send those photos from the app under Not in the list with a name; a quality engineer accepts the new category and retrains.

Why does my defect model miss rare defects?

Because it saw few examples of them. Overall accuracy can look high while recall on rare defects is low. Our cashew benchmark found 65% of defects at 93.8% overall accuracy.

Can operators retrain the model?

They send examples; a quality engineer approves them and starts the retrain. Nothing changes the model without that approval.

Is this a replacement for machine vision on the line?

No. It classifies photos people take or images you send, and routes the unsure ones to people.

Sources and further reading

Put it into practice with StayCharted

Start free →

Check plans and allowances · Security and your data