Sub topic 3
Writing Labelling Guidelines for Occlusion, Truncation and Ambiguity
Assume you know basic Python, JSON, image dimensions, and the purpose of supervised model training. This chapter focuses on turning difficult visual cases into consistent annotation decisions.
Why guidelines matter
A labelling guideline is a set of rules that tells annotators what to label, how to draw the label, and what to do when the image is unclear. Without written rules, two trained annotators may produce different labels for the same object. The model then learns disagreement as if it were a real visual pattern.
A useful guideline answers these questions:
- Which objects belong to each class?
- Should partly visible objects receive labels?
- Should a box cover only visible pixels or the hidden extent of an object?
- When is an object too unclear to label?
- How should overlapping objects be separated?
- Which cases receive a special flag, such as
occluded,truncated, orignore?
Separate occlusion from truncation
Occlusion happens when another object or scene element hides part of an object inside the image. For example, one car may hide half of another car.
Truncation happens when the image boundary cuts off part of an object. The object continues outside the captured image.
These conditions can occur together. A pedestrian may be partly hidden by a car and also have their feet cut off by the bottom edge.
| Condition | What hides the object? | Typical annotation rule |
|---|---|---|
| Occlusion | Another object or foreground element | Label the visible object and mark the occlusion |
| Truncation | The image boundary | Label the visible part and mark the truncation |
| Ambiguity | The image does not support a reliable decision | Use an ignore rule or exclude the object |
For object detection, draw the box around the visible pixels unless your model and dataset specification explicitly require an estimated full-object box. For segmentation, trace only the visible region unless hidden boundaries are known from another source.
Set visibility and ignore rules
Choose measurable thresholds instead of vague phrases such as “mostly visible.” For example:
- Label an object when at least 30% of its expected visible area can be identified.
- Mark
occluded: truewhen another object hides a meaningful portion. - Mark
truncated: truewhen the object touches an image edge and appears to continue beyond it. - Use
ignorewhen the object is too small, blurred, or obstructed to assign a class confidently. - Never infer a hidden shape merely to make a box rectangular.
The exact threshold depends on the project. What matters is that every annotator uses the same threshold and sees examples of it.
Resolve ambiguous cases
Ambiguity can concern the class, object boundary, or object identity. A guideline should define a decision order:
- Use visible evidence before context or guesswork.
- Assign the most specific class supported by the image.
- If two classes remain equally plausible, use a documented fallback class or
ignore. - Do not label parts as complete objects unless the taxonomy allows parts.
- Record a reason code for cases sent to review.
For example, if the taxonomy contains sedan and car, label sedan only when the visible evidence supports that distinction. Otherwise use car. If a vehicle is too obscured to distinguish from a van, use the broader class or send it for adjudication.
Make the workflow consistent
Give annotators a fixed sequence:
After annotation, a reviewer should inspect a sample from every annotator, class, and difficult-case category. Reviewers should compare decisions against the guideline, not against personal preference. When disagreement repeats, update the rule and relabel affected data.
Test the guideline before production
Run a pilot with a small shared image set. Have multiple annotators label the same images independently. Measure where they disagree, especially on:
- Small or distant objects
- Objects at image edges
- Heavy overlap
- Reflections and shadows
- Similar classes
- Blurred or low-light images
Add the pilot examples to the guideline. A rule is ready for production when different annotators can apply it without needing an unwritten interpretation.
Exercise
A person is visible from the waist up, another person hides one arm, and the person's head is clear. The feet are not visible because the image ends at the person's waist. What should the annotation record?
Show answer
Label the visible person, draw geometry around the visible region according to the project format, mark the object as occluded if the other person hides a meaningful part, and mark it as truncated only if the image boundary cuts off the person. If the lower body is hidden by another object rather than the image edge, it is occlusion, not truncation.