Back to Technologies Hub
AI & AnalyticsEstablishedComplexityModerate

AI Defect Detection

Consistency

Computer vision defect detection on fabric and garments.

Overview

Computer-vision inspection uses controlled images and a trained model to flag visual patterns that may be garment or textile defects. It is a decision-support step for quality teams: the model highlights candidates for review, while authorised people confirm the defect, disposition the piece and retain responsibility for the quality decision.

How It Works

  1. Stabilise capture

    Fix the camera position, exposure, background and controlled lighting so changes in illumination or garment presentation are not mistaken for defects.

  2. Run inference

    Capture the defined inspection area and pass the image to the released model, which returns a class, location or score against configured review thresholds.

  3. Confirm and learn

    Route flagged and sampled unflagged pieces to trained operators. Record their confirm, reject or reclassify feedback against the image and production context for analysis and governed model improvement.

Applications

  • Detect holes, stains, slubs, missing yarns or other visible faults during fabric inspection and roll mapping.
  • Check cut panels for shape, print placement or visible damage before bundling.
  • Identify skipped stitches, seam defects, incorrect components or appearance faults at in-line and end-line inspection.
  • Inspect printed or decorated garments for registration, missing elements and surface anomalies.

Implementation Pilot

A practical pilot can start on one stable product family and one inspection point. Define the defect catalogue and acceptance rules, collect representative images across colours, sizes, shifts, fabric lots and normal process variation, then separate training and validation samples. Install controlled lighting and a fixed camera, train operators on the review workflow, and run the model in shadow mode beside the current inspection. Compare both decisions lot by lot before allowing any model flag to affect disposition, and release only when the agreed quality and operational checks are met.

Measurement and Verification

  • Precision: confirmed target defects divided by all pieces the model flagged as that defect; review by defect class and representative production slice.
  • Recall: confirmed target defects found by the model divided by all confirmed target defects in the evaluated sample; include human inspection or an agreed reference method.
  • False-reject rate: acceptable pieces incorrectly routed as rejects divided by all acceptable pieces evaluated; monitor the operator workload and unnecessary handling this creates.
  • Defect escape rate: defective pieces not flagged before the defined inspection gate divided by all defective pieces found through the reference and downstream checks.
  • Recheck these measures after camera, lighting, fabric, style or process changes, and maintain drift monitoring by shift, product family and defect class rather than relying on one aggregate accuracy figure.

Limitations and Controls

  • Model output requires human oversight for confirmation, disposition, escalation and override under the factory quality system.
  • Training and validation samples must represent the colours, materials, defect classes, severities, camera conditions and production variation expected in use, and must remain separately traceable.
  • Use drift monitoring and controlled revalidation when data, equipment, environment or product mix changes; a previously acceptable model can degrade silently.
  • Occlusion, subtle tactile faults, novel defects and inconsistent presentation may remain outside the reliable visual scope. The system cannot guarantee zero defects and does not replace agreed final inspection, testing or buyer acceptance requirements.

Considerations & Risks

  • Rare defects and imbalanced data can hide weak recall; maintain targeted samples and challenge sets for critical fault types.
  • Lighting, vibration, speed, wrinkles and shade changes alter image appearance; control the imaging environment and recalibrate after changes.
  • Excess false alarms slow production and erode trust; tune thresholds by defect severity and preserve a clear review path.
  • A model validated on one fabric or product may not transfer to another; require controlled revalidation before extending scope.

Benefits

  • Consistency
  • Escape prevention

📚 Learning Resources & Further Reading

🌐 Official Websites & Industry Resources

  • National Institute of Standards and Technology
    airc.nist.gov

    Official tools and guidance for testing, evaluation, verification and validation of AI systems.

References

Stay in touch

New chapters, delivered quietly.

A short note when a new story, reflection or milestone is added. No noise, no spam — unsubscribe with a single click.