What is an independent observation?
In a camera-based system, a thousand consecutive frames of the same animal do not equal a thousand different animals. In document processing, a hundred variants of one template do not represent a hundred independent workflows. The sampling unit determines which inferences are defensible.
If observations cluster by day, customer, camera or site, evaluation must respect that structure. Randomly distributing individual rows can leak shared conditions between training and test sets and overstate generalisation.
A global average can hide the important error
Imagine a classifier reporting 95% accuracy. If 95% of examples belong to one dominant class, a model that always predicts that class reaches the same score while detecting none of the rare critical events.
Inspect precision, recall, false positives, false negatives and subgroup performance. For regression, mean absolute error alone is rarely enough: look at bias, tails, error distribution and uncertainty, especially at relevant operational thresholds.
What changes after deployment?
A new camera angle, lighting, animal genetics, customer group or document format can change the input distribution. A previous test result does not guarantee performance in the new setting.
Identify the variables worth monitoring and establish tests for operational changes. Separate model error, measurement error and data-collection error: they require different interventions.
Threshold selection is a business decision
If a false alarm costs a few minutes of checking, the acceptable threshold differs from a situation where a missed event causes major financial or welfare consequences. There is no context-free “good accuracy”.
Document the use case, acceptable error, decision threshold and the handling of uncertain or escalated cases before model evaluation. Redefining success after seeing the score is an avoidable methodological trap.
A defensible evaluation protocol
- Define the decision unit and target population.
- Split train and test data across real collection groups.
- Predefine metrics, thresholds and exception handling.
- Study error distributions, tail behaviour and subgroups.
- Retest at deployment and after material changes.
State clearly what the evidence supports and what it does not. That boundary is a core part of technical credibility.
Sources and further reading
These are public references, not tools certified or endorsed by Agroadvisor.