NiVO / BY TECHNOGISGermany · Indonesia
Inspection

Using F1 to Compare Screening Trade-offs — Stepped terrain

Using F1 to Compare Screening Trade-offs — a worked case for stepped terrain, with explicit data, a sensitivity comparison and an independent evidence check.

Using F1 to Compare Screening Trade-offs — Stepped terrain

The measurement question

Combine precision and recall only after keeping their separate meanings visible. For an illustrative detector with 30 true positives, 10 false positives and 20 false negatives, precision is 0.75, recall 0.60 and F1 approximately 0.667. The harmonic mean penalizes an imbalance between false alarms and missed targets. It is useful for comparing candidate screening settings on the same independent dataset, especially when a single summary is requested. Still retain the underlying counts and consequences: one F1 value does not express how much an omitted condition matters, whether evidence is readable, or whether an asset owner should prioritize follow-up.

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.

Participants reviewing mapping work at a University of Cantabria mapathon
Participants reviewing mapping work at a University of Cantabria mapathon.Source: Emilio Gómez Fernández · CC BY-SA 4.0

Reproduce the numerical check

Illustrative input data: True positive detections (tp) = 36 count; False positive detections (fp) = 30 count; False negative detections (fn) = 24 count.

Calculation: 2 * tp / (2 * tp + fp + fn).

F1 score for the declared positive class = 0.57142857 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 false positive detections (fp) from 30 to 33 count. Re-evaluating the same equation gives f1 score for the declared positive class = 0.55813953 fraction. The arithmetic difference from the baseline is -0.013289037 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

Use F1 as a compact comparison after agreeing the target class and dataset. If the owner assigns different consequences to omissions and false alarms, show those costs separately instead of treating the highest F1 as an automatic operating decision.

F1 excludes true negatives and does not express probability calibration, defect severity or operational risk. Different class averaging rules can yield different summaries. Values from unrelated datasets or asset populations are not directly interchangeable.

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

Recalculate F1 from the published confusion counts and show precision and recall beside it. Confirm that threshold selection did not use the supposedly independent test set, and inspect difficult examples rather than accepting the aggregate alone.

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: f1_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