# L24 · Search public annotations for real overlaps

## Whole-archive annotation audit · 2026-12-01

**Question.** Can the previously retrieved [Khanom public dataset](https://doi.org/10.5281/zenodo.21295927) provide separate instance outlines at actual crossings, instead of the nonintersecting neighbor pairs used in L18–L20? The available archive contains 21 COCO annotation variants, two genera and repeated train/validation/test variants; the 8.8 GB Menne archive is a different dataset and was not audited here.

Rasterize every pair of annotated polygons belonging to the same image in each local JSON. Count pairs sharing at least one pixel. Deduplicate by filename, dimensions and the exact polygon coordinates of both objects, so repeated copies of identical geometry count once; different annotations of the same specimen count separately. This produced 417 annotated image keys, 295 distinct geometry pairs and four pairs with at least one common raster pixel. Filenames are not guaranteed to uniquely identify a source image across directories and variants, and exact coordinates cannot deduplicate modified or near-identical annotations. Counts are properties of the downloaded annotation files, not prevalence estimates.

**Crucial visual inspection.** Retrieve the four candidate source images by bounded archive reads into `/tmp`, then compare their images with their reference annotations. `Bothy Lake 2_2.jpg` and `Amos Lake 1_6_3.jpg` have 22,939 and 21,024 shared pixels, respectively, but each annotation in these two pairs is a four-corner axis-aligned rectangle. The objects are near each other, but rectangle intersection is not evidence that their valves actually overlap and cannot support instance-mask IoU. Do not use these two pairs as overlap-mask ground truth.

`Pin_SL_011.jpg` and `image003.jpg` have more detailed contours and respectively 1,321 and 45 shared raster pixels. The images show two closely adjacent, distinct-looking elongated structures at each marked pair. At the shared regions, whether these are genuine physical overlaps, annotation boundary uncertainty or rasterization artifacts remains unresolved. These are two review candidates, not validated crossing ground truth. The latter 45 pixels could easily reflect contour/boundary conventions. Overlapping masks themselves also do not establish which specimen lies above another or whether an annotation represents a visible versus amodal extent. Neither label completeness nor independent biological sample identity has been checked. Source images were inspected locally and are not redistributed here because the record's reuse terms need verification.

[View the result and diagram](/results/l24/) · [Download counts and candidate identifiers](/results/l24/overlap-audit.json). Reproduce the audit with `/tmp/diatom-research-venv/bin/python research/l24_overlap_audit.py` after restoring the 21 JSON files to `/tmp/diatom-mask-coco`. The bounded download of four images can be repeated with `research/l24_fetch_overlap_images.py` when network access is allowed; ZIP member CRC is checked. Both temporary inputs may be removed by the system.

**Next.** Obtain expert interpretation of the two contoured image pairs and their annotation semantics; check terms before wider distribution. If suitable, compare candidate generation and separation with reference-independent selection and account for any unlabeled nearby valves. More important, build a local expert-adjudicated set of unambiguous true crossings and partials, with instance counts and visible-versus-amodal conventions. Avoid tuning and testing on the same few public images.
