NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Intersection over Union for a Vegetation Mask — Partial shadow

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

Intersection over Union for a Vegetation Mask — Partial shadow

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 work surface includes a shadow boundary crossing otherwise similar material. A change in illumination can create an apparent difference that should not automatically be interpreted as a physical change. Tag observations by illumination condition and keep a reference patch visible in both groups where practical.

Recompute the check for lit and shaded observations separately. A pooled value can be numerically reproducible while still hiding a systematic difference between the groups.

Crop-rotation research plots at the JIRCAS site in Niamey
Crop-rotation research plots at the JIRCAS site in Niamey.Source: JIRCAS Library from Tsukuba, Japan · CC BY 2.0

Reproduce the numerical check

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

Calculation: intersection / union.

Vegetation-mask intersection over union = 0.75 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 900 to 990 pixels. Re-evaluating the same equation gives vegetation-mask intersection over union = 0.825 fraction. The arithmetic difference from the baseline is 0.075 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.

Supply the illumination grouping, the acquisition times and representative original observations. Explain whether the comparison is between like conditions or across an unresolved lighting change.

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