Transect NotesAI tools for camera-trap, bird-sound and species-photo work in field ecology

Metadata and Data Cleaning

How to Design a Spot-Check Sample for Auditing Automated Species Labels

By the Transect Notes editors / / 5 min read

Short answer. A useful spot-check sample should represent the range of images and classifications in a wildlife dataset, with additional attention to rare taxa, uncertain labels and difficult photographs. Reviewers should compare machine suggestions with independent human identifications, record the type of error and use the findings to adjust review priorities without treating a small sample as proof of universal accuracy.

Key points

  • Define the population of automated labels before selecting a sample.
  • Combine representative random sampling with targeted checks of difficult categories.
  • Use an independent human identification process and record uncertainty explicitly.
  • Report sample size, selection method and error categories alongside summary results.

Define what the audit is intended to estimate

A spot-check audit is a quality-control procedure for estimating how often automated labels require correction and identifying where errors occur. It is not a substitute for reviewing every photograph, and its findings should be interpreted within the dataset and conditions from which the sample was drawn. A classifier may perform differently across habitats, seasons, camera models and species groups.

Begin by defining the population. This might be all images classified during one survey season, all records assigned to species level, or all photographs submitted by a particular volunteer project. Specify whether the audit concerns animal detection, taxonomic identification or both. These are different tasks and should produce separate error summaries.

  • Define the dataset and time period.
  • Specify the classification level being audited.
  • Separate detection errors from species identification errors.
  • State the intended use of the audit findings.

Build sampling strata around biological and technical variation

A purely random sample can provide a useful overall estimate when every record has a known chance of selection. However, it may contain too few rare species or difficult images to reveal important weaknesses. Stratified sampling addresses this by dividing the dataset into relevant groups before selecting records.

Useful strata include predicted taxonomic group, confidence band, camera location, season and image quality. For example, a dataset containing 10,000 photographs could be divided into broad mammal, bird and empty-image categories, with additional groups for low-confidence classifications. Select records from each group while retaining the information needed to calculate how much each group contributes to the overall dataset.

Keep the random component of selection reproducible. Record the sampling date, random seed if applicable, selection procedure and number of eligible records in each stratum. Targeted additions can then be selected for unusual or conservation-sensitive categories. These additions are valuable for finding errors but should not be mixed uncritically into a representative accuracy estimate.

Choose a sample size that matches the decision

Sample size depends on the precision required, the expected error rate and the available review capacity. A small sample can identify obvious recurring problems, but it will provide a broad and uncertain estimate of overall error. Larger samples are needed when the results will support consequential decisions about publishing records or changing the classification workflow.

For a simple random sample, a common planning approximation for estimating a proportion is n = z squared multiplied by p multiplied by (1 minus p), divided by e squared. Here, p is the expected error proportion, e is the desired margin of error and z is the normal-distribution value associated with the chosen confidence level. When p is unknown, 0.5 is a conservative planning assumption because it produces the largest estimated sample size.

For example, using p = 0.5, a 95 percent confidence level and a margin of error of 10 percentage points gives an initial sample estimate of approximately 96 records. This calculation assumes a sufficiently large population and a simple random sample. Finite population correction, stratification, clustering and non-independent images can change the required number. The estimate is a planning guide, not a guarantee of precision.

Make human identification independent of the machine label

Reviewers should assess the photograph without being influenced by the automated prediction whenever the audit aims to estimate classification accuracy. Hide the machine label during the initial assessment and ask the reviewer to record an identification, identification level and uncertainty status. Reveal the prediction only after the independent assessment has been saved.

Some images cannot support a reliable species-level decision. Record these as unresolved or identifiable only to a broader taxonomic group. Do not force a reviewer to select a species merely to complete the spreadsheet. A second specialist opinion can be useful for disagreements, especially when an identification may affect a sensitive or unusual occurrence record.

The audit should retain the original prediction, independent human assessment, final adjudicated label and reviewer identifiers. This makes it possible to distinguish a classifier error from a disagreement caused by ambiguous evidence or an inconsistent taxonomic reference.

  • Hide machine predictions during initial review.
  • Record the human identification and its taxonomic level.
  • Allow unresolved and partially identifiable outcomes.
  • Refer consequential disagreements for specialist adjudication.

Classify errors instead of reporting one accuracy figure

A single accuracy percentage can conceal the errors that matter most to ecological interpretation. A classifier may correctly distinguish wildlife from empty images while confusing closely related species. It may also identify common animals reliably but miss less frequently photographed taxa. Report detection performance and taxonomic performance separately.

Useful error categories include false detection, missed animal, incorrect species, incorrect taxonomic level, duplicate record and unresolved image. A confusion matrix can show which predicted groups are being confused with which reference groups. Where sufficient records exist, report precision and recall for individual categories as well as an overall measure.

For example, if an audit contains 100 independently reviewable predictions and 12 require a different species label, the observed species-label agreement is 88 percent. If another 8 images are too ambiguous to support a species-level reference, report those separately and explain whether they were excluded from that calculation. The denominator and exclusion rules should always accompany the percentage.

Interpret the results within the dataset's limits

Images from the same camera, location or short recording period may be correlated. A sample containing many nearly identical photographs can therefore overrepresent a particular animal or lighting condition. Consider grouping by deployment or recording event when selecting the sample, and explain any dependence that could affect interpretation.

A spot-check does not establish performance in a new region, a different season or a different camera configuration. Reassess the classification process when the dataset changes substantially, when new taxa appear or when software settings are updated. Keep targeted checks for rare and high-consequence records even if the general sample indicates a low error rate.

The final audit report should state the population, sample design, selection date, sample size, exclusions, reviewer procedure, error categories and uncertainty around estimates. It should also identify which categories need additional review. These details allow another researcher to interpret the result without assuming that a single accuracy figure applies to every photograph.

Turn the audit into a repeatable quality-control cycle

A useful audit produces an operational change. If most errors involve night photographs, increase review priority for low-light images. If confusion is concentrated among similar species, require a higher identification level or specialist review for that group. If empty scenes are repeatedly classified as animals, inspect image preparation and detection settings as well as the classifier itself.

Keep a dated audit record for each sampling round. Preserve the selected record identifiers, original predictions, reference labels, reviewer decisions and summary calculations. When the workflow changes, create a new audit record rather than overwriting the previous one. The next practical step is to define the audit population, generate a reproducible sample and prepare a review sheet before inspecting any machine labels.

Questions readers ask

Should rare species receive a separate audit sample?

Yes, targeted sampling is useful when rare records have high ecological or conservation importance. Keep those records in a separate analytical group unless the sample design supports a valid weighted estimate.

How often should an automated classification system be audited?

Set the interval according to data volume, classification changes and the consequences of errors. Additional audits are appropriate after changes to software, camera deployment conditions or the project's target species.

What is the difference between precision and recall in a species audit?

Precision describes how many records assigned to a category are correct, while recall describes how many reference records belonging to that category were successfully identified. Both are useful because false positives and missed detections have different ecological consequences.

Can two volunteers independently review the same sample?

Independent duplicate review can reveal disagreements between human observers as well as machine errors. Retain both assessments and define how a specialist or adjudicator resolves differences.

Related reading