Automated visual inspection is used on pipelines, bridges, wind turbines, production lines and pressure vessels. The models behind it are only as good as their defect labels, and defects are among the hardest things to label consistently: they are small, irregular, often faint, and the line between “defect” and “normal wear” is a matter of judgment. This guide explains how to set up defect annotation so the labels hold up.
Start with a defect taxonomy
List every defect type with a definition and example images: cracks, corrosion, pitting, dents, scratches, coating damage, leaks, missing parts, weld defects. Include “look-alikes” that are not defects, such as stains, shadows, reflections, paint marks and water, because those cause most false labels.
Choose the right geometry
- Bounding boxes are quick and suit “is there a defect, and roughly where”.
- Polylines suit cracks, which are long and thin; a box around a diagonal crack is mostly background.
- Polygons or masks suit corrosion and coating damage, where area matters.
- Image-level tags suit fast triage before detailed labeling.
Our comparison of annotation types explains the trade-offs.
Severity grading
Many inspection programs need more than presence: they need severity, such as minor, moderate or severe, or a grade from an engineering standard. Severity must be defined with measurable cues where possible, for example crack length, area affected or depth indicators, plus reference images for each level. Without that, severity becomes personal opinion.
Handle ambiguity explicitly
Inspection images are often blurry, badly lit or taken at an angle. The guideline should say what to do when an annotator is unsure: label with a low-confidence flag, mark the region as “uncertain”, or escalate. Silent guessing is the main source of inconsistent defect data.
Context and metadata
Useful attributes include the asset or component, the surface material, the location on the asset and the image conditions. These make it possible to analyze where models fail and to balance the dataset across components and conditions.
Quality control
- A second reviewer checks every batch, focusing on missed small defects.
- Look-alikes are audited separately to catch false positives.
- Severity grades are spot-checked against reference images.
- Disagreements go to a domain expert on your side, and the decision is added to the guideline.
DataVision Labs provides industrial inspection and defect annotation with written rules and two-stage QC. Start a pilot with a sample of your inspection images.
Related
Frequently asked questions
How should cracks be annotated?
Usually with polylines that follow the crack, or with thin masks if width matters. Boxes are a poor fit for long, diagonal cracks.
Can you grade defect severity?
Yes, against severity definitions and reference images you provide or that we agree during the pilot.
What about images where a defect is uncertain?
The guideline should define an uncertain label or flag, so ambiguous cases are visible and can be reviewed rather than guessed.