{
  "schema_version": 1,
  "title": "DishFlow retrospective public-dataset benchmark",
  "evaluation_date": "2026-10-08",
  "summary": {
    "engine": "dishflow-cv-0.2",
    "evaluated_images": 356,
    "mae": 57.35112359550562,
    "median_absolute_error": 35.0,
    "bias": -19.6938202247191,
    "mape_nonzero_truth_pct": 187.94453587933143,
    "within_5_count_fraction": 0.03932584269662921,
    "within_10_percent_fraction_nonzero": 0.10393258426966293,
    "status_counts": {
      "review": 293,
      "review_dense": 27,
      "review_quality": 35,
      "review_empty": 1
    },
    "dish_detection_counts": {
      "hough": 334,
      "center_fallback": 22
    },
    "by_density": {
      "1-30": {
        "n": 91,
        "mae": 43.40659340659341,
        "bias": 43.40659340659341,
        "review_flag_fraction": 0.18681318681318682
      },
      "31-100": {
        "n": 80,
        "mae": 29.625,
        "bias": 21.7,
        "review_flag_fraction": 0.0625
      },
      "101-300": {
        "n": 130,
        "mae": 38.19230769230769,
        "bias": -27.423076923076923,
        "review_flag_fraction": 0.1076923076923077
      },
      ">300": {
        "n": 55,
        "mae": 166.03636363636363,
        "bias": -166.03636363636363,
        "review_flag_fraction": 0.4909090909090909
      }
    },
    "failed_images": 13,
    "requested_images": 369,
    "source": {
      "dataset": "Annotated dataset for deep-learning-based bacterial colony detection",
      "doi": "10.6084/m9.figshare.22022540.v3",
      "license": "CC BY 4.0",
      "evaluation_only": true
    },
    "limitations": [
      "Metrics evaluate object-count proposals against annotation counts; they do not establish species identification or viability.",
      "No thresholds or detector parameters should be tuned on the final held-out benchmark subset.",
      "Dense/confluent plates should be reported separately because under-counting can coexist with a useful review flag."
    ],
    "protocol": "App-equivalent: unchanged normalise_photo(original bytes), then unchanged analyse_dish(normalized bytes) with colonies/round_dish defaults. No input is silently resized beyond the production normalizer's own rules.",
    "failure_rate_pct": 3.5230352303523036,
    "failure_reasons": {
      "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG.": 13
    },
    "by_density_with_attempts": {
      "1-30": {
        "attempted": 91,
        "rejected": 0,
        "n": 91,
        "mae": 43.40659340659341,
        "bias": 43.40659340659341,
        "review_flag_fraction": 0.18681318681318682
      },
      "31-100": {
        "attempted": 87,
        "rejected": 7,
        "n": 80,
        "mae": 29.625,
        "bias": 21.7,
        "review_flag_fraction": 0.0625
      },
      "101-300": {
        "attempted": 130,
        "rejected": 0,
        "n": 130,
        "mae": 38.19230769230769,
        "bias": -27.423076923076923,
        "review_flag_fraction": 0.1076923076923077
      },
      ">300": {
        "attempted": 61,
        "rejected": 6,
        "n": 55,
        "mae": 166.03636363636363,
        "bias": -166.03636363636363,
        "review_flag_fraction": 0.4909090909090909
      }
    },
    "elevated_status_fraction": 0.1769662921348315,
    "all_reference_annotation_count": 56865,
    "downloaded_source_files": 370,
    "downloaded_bytes": 618497651,
    "all_source_files_match_publisher_md5": true,
    "source_image_dimension_mismatch_count_after_exif_orientation": 0,
    "raw_dimension_differences_explained_by_exif": 54,
    "normalization_attempts_logged": 369,
    "source_provenance": {
      "python": "3.12.14 (main, Aug 25 2026, 14:00:49) [Clang 22.1.3 ]",
      "platform": "Linux-6.18.44-x86_64-with-glibc2.39",
      "package_versions": {
        "numpy": "2.3.5",
        "opencv-python-headless": "4.14.0.94",
        "Pillow": "12.3.0",
        "zxing-cpp": "3.1.1"
      },
      "snapshot_paths_sha256": {
        "benchmarks/petri_real_benchmark.py": "8fbb3522c93e828ff3436e93986a4d69779ae4b81a9604d82b96e78d137914bb",
        "benchmarks/README.md": "3493de3faf72f930c7cde982d6ad9b7ca7de226bc080c75a53b89e3c2cc1e24f",
        "assaypilot/__init__.py": "2deda457ff3ac44751d937697cdda1a90c69112d46b371de6c8161f16c65fc3c",
        "assaypilot/dishflow_core.py": "ba2f91740d1bb04ef502b35980cbf10d90c7eff378d3087a867fe0e36d2786bc",
        "assaypilot/identity_core.py": "3da6a03f4b646e24cfb60530da82acd90fe1b0b3bca111189aa79043087e40c1",
        "assaypilot/photo_core.py": "9651c5177580313a6348710c8af8d927b1abb4ff31843490759c2b27f09d3151"
      },
      "source_status": "",
      "sample_selection": "Lowest numeric COCO image id; selected before evaluating results",
      "protocol": "Primary: exact normalise_photo(raw) followed by analyse_dish(normalized), default colonies/round_dish. Supplementary direct-input run preserved separately. Original runner count/metric formulas remain unchanged.",
      "local_review_snapshot_commit": "dbb1301825fb7066f8282b2841835cbaaa0185cf",
      "remote_upstream_commit": "3d39b0a347e6ed9fb72c0928d21ae0228f312cbd",
      "commit_provenance_note": "Root agent supplied remote upstream commit. Local snapshot was created from fetched review content; source SHA-256 hashes, not local commit alone, identify evaluated files."
    },
    "app_sample": {
      "image_id": 1,
      "file_name": "sp01_img01.jpg",
      "reference_count": 4,
      "predicted_count": 69,
      "selection_rule": "lowest numeric COCO image id; chosen before evaluation"
    }
  },
  "source": {
    "url": "https://doi.org/10.6084/m9.figshare.22022540.v3",
    "title": "Annotated dataset for deep-learning-based bacterial colony detection",
    "creators": [
      "Norbert Solymosi",
      "Sára Nagy"
    ],
    "year": 2023,
    "version": 3,
    "doi": "10.6084/m9.figshare.22022540.v3",
    "license": "CC BY 4.0",
    "license_url": "https://creativecommons.org/licenses/by/4.0/",
    "citation": "Solymosi, Norbert; Nagy, Sára (2023). Annotated dataset for deep-learning-based bacterial colony detection. figshare. Dataset. https://doi.org/10.6084/m9.figshare.22022540.v3",
    "official_metadata_url": "https://api.figshare.com/v2/articles/22022540/versions/3",
    "associated_paper_url": "https://doi.org/10.1038/s41597-023-02404-8",
    "modifications": "AssayPilot applied the frozen app image-normalization path and derived count comparisons and normalization metadata from the original photographs and annotations. No raw photographs are redistributed in this package."
  },
  "protocol_note": "Original JPGs passed through the unchanged app normalizer and detector (colonies/round_dish defaults), with the original benchmark count formulas. All 369 images were attempted; 356 were evaluated and 13 rejected by the 16-megapixel input limit. Accuracy metrics use the 356 evaluated images. No detector or normalizer tuning was performed during this run. Dataset: Norbert Solymosi and Sára Nagy (2023), Annotated dataset for deep-learning-based bacterial colony detection, Figshare v3, https://doi.org/10.6084/m9.figshare.22022540.v3, CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). AssayPilot derived count comparisons and normalization metadata. This retrospective count-only evaluation does not establish detection precision, accuracy in another laboratory, FL performance, or time saved. No blank-plate controls were included. Every proposed count needs human review.",
  "limitations": [
    "This is a retrospective count comparison on one public dataset, not prospective independent laboratory validation.",
    "MAE 57.35 objects and 10.39% of evaluated images within 10% of reference do not support a general counting-accuracy claim.",
    "All count metrics use 356 evaluated images. All 369 originals remain in the attempt denominator; 13 were rejected by the existing 16-megapixel input limit.",
    "Count agreement does not measure detection precision, recall, IoU, mAP, species identification, or viability.",
    "There are no zero-count controls, so empty-dish false positives are unmeasured.",
    "Small reference counts can inflate percentage error; inspect absolute errors, signed bias, and density strata.",
    "Review statuses and image-quality scores are not calibrated probabilities of count correctness.",
    "No detector or normalizer parameters were trained or tuned during this evaluation; this statement does not establish that the dataset was never used in earlier development.",
    "This test does not measure human correction burden or time saved, and does not evaluate federated learning or cross-laboratory generalization.",
    "All source annotations were counted unchanged, including three zero-height boxes. All 54 raw dimension reversals are explained by EXIF orientation, with zero unexplained mismatches."
  ],
  "failures": [
    {
      "image_id": 254,
      "file_name": "sp21_img10.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 255,
      "file_name": "sp21_img11.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 256,
      "file_name": "sp21_img12.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 261,
      "file_name": "sp21_img18.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 262,
      "file_name": "sp21_img19.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 265,
      "file_name": "sp21_img23.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 266,
      "file_name": "sp21_img24.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 278,
      "file_name": "sp21_img36.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 279,
      "file_name": "sp21_img37.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 280,
      "file_name": "sp21_img38.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 281,
      "file_name": "sp21_img39.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 283,
      "file_name": "sp21_img41.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    },
    {
      "image_id": 284,
      "file_name": "sp21_img42.jpg",
      "error": "ValueError: The image cannot be safely decoded. Export a smaller JPEG or PNG."
    }
  ],
  "attempts": {
    "requested_images": 369,
    "evaluated_images": 356,
    "rejected_images": 13,
    "rejection_rate_pct": 3.5230352303523036,
    "accuracy_denominator": "Successfully evaluated images only (356); rejected inputs remain in the total attempt denominator (369).",
    "by_density": {
      "1-30": {
        "attempted": 91,
        "rejected": 0,
        "n": 91,
        "mae": 43.40659340659341,
        "bias": 43.40659340659341,
        "review_flag_fraction": 0.18681318681318682
      },
      "31-100": {
        "attempted": 87,
        "rejected": 7,
        "n": 80,
        "mae": 29.625,
        "bias": 21.7,
        "review_flag_fraction": 0.0625
      },
      "101-300": {
        "attempted": 130,
        "rejected": 0,
        "n": 130,
        "mae": 38.19230769230769,
        "bias": -27.423076923076923,
        "review_flag_fraction": 0.1076923076923077
      },
      ">300": {
        "attempted": 61,
        "rejected": 6,
        "n": 55,
        "mae": 166.03636363636363,
        "bias": -166.03636363636363,
        "review_flag_fraction": 0.4909090909090909
      }
    }
  },
  "provenance": {
    "frozen_source": {
      "python": "3.12.14 (main, Aug 25 2026, 14:00:49) [Clang 22.1.3 ]",
      "platform": "Linux-6.18.44-x86_64-with-glibc2.39",
      "package_versions": {
        "numpy": "2.3.5",
        "opencv-python-headless": "4.14.0.94",
        "Pillow": "12.3.0",
        "zxing-cpp": "3.1.1"
      },
      "snapshot_paths_sha256": {
        "benchmarks/petri_real_benchmark.py": "8fbb3522c93e828ff3436e93986a4d69779ae4b81a9604d82b96e78d137914bb",
        "benchmarks/README.md": "3493de3faf72f930c7cde982d6ad9b7ca7de226bc080c75a53b89e3c2cc1e24f",
        "assaypilot/__init__.py": "2deda457ff3ac44751d937697cdda1a90c69112d46b371de6c8161f16c65fc3c",
        "assaypilot/dishflow_core.py": "ba2f91740d1bb04ef502b35980cbf10d90c7eff378d3087a867fe0e36d2786bc",
        "assaypilot/identity_core.py": "3da6a03f4b646e24cfb60530da82acd90fe1b0b3bca111189aa79043087e40c1",
        "assaypilot/photo_core.py": "9651c5177580313a6348710c8af8d927b1abb4ff31843490759c2b27f09d3151"
      },
      "source_status": "",
      "sample_selection": "Lowest numeric COCO image id; selected before evaluating results",
      "protocol": "Primary: exact normalise_photo(raw) followed by analyse_dish(normalized), default colonies/round_dish. Supplementary direct-input run preserved separately. Original runner count/metric formulas remain unchanged.",
      "local_review_snapshot_commit": "dbb1301825fb7066f8282b2841835cbaaa0185cf",
      "remote_upstream_commit": "3d39b0a347e6ed9fb72c0928d21ae0228f312cbd",
      "commit_provenance_note": "Root agent supplied remote upstream commit. Local snapshot was created from fetched review content; source SHA-256 hashes, not local commit alone, identify evaluated files."
    },
    "execution_started_utc": "2026-10-08T01:13:45.797523+00:00",
    "execution_completed_utc": "2026-10-08T01:21:40.207382+00:00",
    "historical_adapter": "provenance/executed_adapter.py",
    "portable_replay_entrypoint": "benchmarks/petri_app_benchmark.py",
    "original_report_preserved_as": "provenance/executed_report.json",
    "path_note": "Historical absolute paths are retained in the original execution/source manifests. Official download URLs, file hashes, and the portable replay instructions identify the inputs without requiring those scratch paths."
  },
  "supporting_files": {
    "provenance/annotation_integrity.json": {
      "sha256": "e49bf786de87682c48a5c9a4522098d7ccf9b1b5c92d845d08e7599a23b9950c",
      "bytes": 1752
    },
    "provenance/executed_adapter.py": {
      "sha256": "065b81d851a4c09fe743cd105e6a0edc77d4ddc266a5ed6dbfb62af14039417a",
      "bytes": 1371
    },
    "provenance/executed_report.json": {
      "sha256": "15b81b53a10780aac82e9bf24fd1d1c0e18be5ba1dbc76b3dbe39e5fe30a1fb6",
      "bytes": 5173
    },
    "provenance/executed_shards.py": {
      "sha256": "9657911d2c8fdd5f30c3b17b2aec62c8a5a9463a5e3d6785efde38b8f937465a",
      "bytes": 6727
    },
    "provenance/executed_summary.json": {
      "sha256": "85e4d7bd22f19ffaa56f55b6c9cca9c359e4608b388f9d7df808a7c3fe468da9",
      "bytes": 1970
    },
    "provenance/execution.json": {
      "sha256": "be61712efb74f61bb150d14869acc5001e8aa4e92d6aa9722ebc2f8445c33c81",
      "bytes": 17353
    },
    "provenance/figshare_metadata_v3.json": {
      "sha256": "5347b290a98bd1078f755d02350655a872bfa8bef891012a3a58412cbb166c5a",
      "bytes": 132540
    },
    "provenance/frozen_source.json": {
      "sha256": "7249353103b9a1da7b1b8768947a591bc0215c28d730259b3a9e19d528aa34bb",
      "bytes": 1606
    },
    "provenance/image_dimensions.json": {
      "sha256": "f20da079c25c8ed320f2bb9eb726729dc0864f7f4cf7db374ca8846184c91210",
      "bytes": 108058
    },
    "provenance/source_manifest.json": {
      "sha256": "1c564e56b5ed33d3f2f5de5d7f2feb2e0c08d7b9f14e07979831a9b2b1ee8875",
      "bytes": 159087
    },
    "real_petri_failures.json": {
      "sha256": "a5026cd8c0f335dcbdecdf2a88af8956f2fde6c418d9344aca1ba3a953acc328",
      "bytes": 2056
    },
    "real_petri_normalization.json": {
      "sha256": "1231dff28734097745cccee1d8652d3afec4411d1cd053927eacffc8e9fe5524",
      "bytes": 234281
    },
    "real_petri_per_image.csv": {
      "sha256": "bccb0e8ca6d0af2b29905b1a6fdd704ada552eac8e6e93c68233ac8c3249a483",
      "bytes": 30002
    },
    "provenance/package_verification.json": {
      "sha256": "91f8f1a2e2bd5c20277ea4e1fc51039a9d921f268261b35b72ee60103e475fc6",
      "bytes": 1138
    }
  }
}
