NiVO / BY TECHNOGISGermany · Indonesia
Inspection

Using F1 to Compare Screening Trade-offs — Open rectangular block

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

Using F1 to Compare Screening Trade-offs — Open rectangular block

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 block has clear edges and an accessible perimeter. The initial dataset is deliberately simple so that a discrepancy can be traced to one input rather than hidden by complex geometry. Place the independent reference outside the adjustment set and record whether the reference represents bare ground or the visible surface.

Use a complete boundary walk and a small independently measured patch to test the assumptions. A neat rectangular footprint is not evidence that every part of the block has usable observations.

Laptop used for an OpenStreetMap editing session in JOSM
Laptop used for an OpenStreetMap editing session in JOSM.Source: Alejandro Escamilla · CC0

Reproduce the numerical check

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

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

F1 score for the declared positive class = 0.66666667 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 10 to 11 count. Re-evaluating the same equation gives f1 score for the declared positive class = 0.65934066 fraction. The arithmetic difference from the baseline is -0.0073260073 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.

Retain a boundary mask, a reference-point inventory and a list of excluded areas. The recipient needs to distinguish an observed surface from an interpolation beyond the measured edge.

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