NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Intersection over Union for a Vegetation Mask — Stepped terrain

Intersection over Union for a Vegetation Mask — a worked case for stepped terrain, with explicit data, a sensitivity comparison and an independent evidence check.

Intersection over Union for a Vegetation Mask — Stepped terrain

The measurement question

Compare a predicted vegetation mask with an independently annotated reference using area or equal-area pixel counts. Suppose their intersection contains 800 pixels and their union 1000 pixels: intersection over union is 0.80. Unlike overall pixel agreement, this focuses on the positive region and makes boundary differences visible. Overlay disagreements to inspect omitted small plants, included weeds and mixed field-edge pixels. Use several representative conditions rather than only a clean demonstration patch. The metric describes agreement with the chosen reference mask; it does not establish plant species, crop health, or the accuracy of an agricultural treatment recommendation.

This is an educational case with constructed input data. It is not a report of a completed NiVO project, a flight authorization, a product performance guarantee, or evidence that the photographed location was surveyed for this example.

Case conditions and evidence

The example contains an upper terrace and a lower work surface. A single reference elevation can hide a substantial change in sensor-to-surface distance. Keep the two surfaces separate during the first comparison and identify which height reference was actually used for every recorded observation.

Compare an independently checked location on each terrace. Do not use a point on the upper surface to claim that the lower surface has the same error or observation geometry.

Crop field beside an agricultural research campus
Crop field beside an agricultural research campus.Source: Rudi Winter · CC BY-SA 2.0

Reproduce the numerical check

Illustrative input data: Positive pixels shared by prediction and reference (intersection) = 840 pixels; Positive pixels in prediction or reference (union) = 1,080 pixels.

Calculation: intersection / union.

Vegetation-mask intersection over union = 0.77777778 fraction.

The calculation below checks one part of the evidence chain. Keep the stated units and assumptions. The output does not replace field observations, the equipment manual, or an independent assessment of the complete deliverable.

Change one assumption

Increase only positive pixels shared by prediction and reference (intersection) from 840 to 924 pixels. Re-evaluating the same equation gives vegetation-mask intersection over union = 0.85555556 fraction. The arithmetic difference from the baseline is 0.077777778 fraction.

For the comparison, only the explicitly listed input changes. All other quantities stay fixed. This isolates the mathematical response; weather, image texture, viewing geometry and equipment behaviour can change together in a real mission, so do not interpret the comparison as a flight test.

Interpret the result

Inspect the disagreement map before choosing a mask rule. Decide whether its omissions affect canopy statistics or plant counting, and report results by relevant condition when a single score hides failures in sparse or shaded vegetation.

Use aligned masks with the same extent and class definition. Empty-positive cases need a declared convention. Annotation uncertainty, resampling and pixel size influence boundary agreement, so scores across substantially different resolutions require careful interpretation.

Separate an arithmetic result from a verified measurement. A precise number can still be based on an uncertain input. Test the assumption with an independent observation before applying the result to an acceptance decision; retain the original value when the independent check disagrees.

Independent checks and delivery

Have a reviewer annotate held-out image patches using a written rule. Recompute intersection and union independently, inspect rejected boundary pixels, and retain source imagery and annotation versions so the score can be reproduced.

Package the height reference, the terrace boundary and the observed transition zone. State where the surface was not directly observed and where a model filled a gap.

Deliver the original observations, the calculation inputs, their units, the processing settings and an exception log alongside the interpreted output. A reviewer should be able to repeat the arithmetic and identify which observations support the conclusion. Preserve rejected observations with reasons instead of silently removing them.

Technical references

  1. scikit-learn: jaccard_score ↗
  2. NiVO technical workflow and supporting documentation ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team