Skip to main content

Retrain the Model

This page explains when and how to retrain your AI model on the OV20i system, whether you're using Classification or Segmentation, to keep inspections accurate as parts or production conditions change.

tip

AI performance depends on the relevance of training data. Retrain when parts, conditions, or inspection requirements evolve.


When Should You Retrain?

Retraining ensures the model keeps up with production realities. Apply this guidance to both Classification and Segmentation projects.

Retrain If:

  • You're inspecting a new SKU or part variant
  • Your inspection requirements have changed (e.g., now detecting surface defects or grease)
  • You've changed the fixture, robot, or part presentation
  • Lighting has changed significantly (e.g., reflections, angle, intensity)
  • Accuracy has dropped — more false positives/negatives
  • You need tighter confidence thresholds or more precise results
  • The model shows signs of overfitting or under-generalizing

How to Retrain (for Both Model Types)

  1. Capture new sample images from your current production setup

  2. For Classification: Label images or ROIs with class names

    For Segmentation: Draw pixel-level masks on defects (or good/bad regions)

  3. Choose the appropriate training mode:

    • Classification:
      • Fast – For quick testing or iteration
      • Accurate – For production use
    • Segmentation:
      • Accurate – Only one mode, optimized for precision
  4. Run training inside the Recipe interface

  5. Review model outputs and test live inspections

  6. Deploy the new model when confidence and coverage meet expectations


Model Type Quick Guide

Model TypeBest ForTraining ModesOutput
ClassificationGood/Bad or discrete state decisionsFast, AccurateWhole image or ROI class
SegmentationPixel-level defect or region mappingAccurate onlyLabeled mask (highlighted areas)

Sample Use Cases

ExampleModel Type
Detecting missing boltsClassification
Checking for scratches or dentsSegmentation
Verifying grease presenceClassification or Segmentation (depends on precision needed)
Measuring foam coverageSegmentation

Best Practices for Retraining

  • ✅ Always use fresh production images
  • ✅ Include a mix of pass/fail cases, especially edge cases
  • ✅ Use at least 30–50 images per class (Classification)
  • ✅ Make sure ROI boundaries or masks match the part layout
  • ✅ Use Accurate mode before deployment
  • ❌ Don't train with blurry, low-light, or misaligned images

🔗 See Also