Skip to content

Scientific validation workflow - #15

Merged
KneeKin-crtl merged 4 commits into
collagen-baselinefrom
scientific-validation-workflow
Nov 19, 2026
Merged

KneeKin-crtl merged 4 commits into
collagen-baselinefrom
scientific-validation-workflow

Conversation

@KneeKin-crtl

Copy link
Copy Markdown
Owner

Add independent fiber references and grouped scientific validation

Summary

The current green/red review colors describe operational approval, not independently verified biological identity or measurement accuracy. This adds a scientific reference workflow so detection, boundaries, measurability and dimensional errors can be assessed separately, while preserving the existing geometry and default detector.

  • Add four human reference categories, independent boundary/missed-object tracing on original pixels, immutable prediction links, versioned JSON import/export and SQLite backup/history. Reference edits do not alter operational acceptance or measurements; copied prediction masks are explicitly excluded from independent boundary truth.
  • Record calibration and magnification per original, with specimen/acquisition identities and transitive group splits. Missing groups block scientific scores; previously developed groups cannot become a blind final test. Partial annotations never turn unknown predictions into false positives.
  • Add deterministic instance matching, confusion matrices, detection/measurability metrics, absolute/relative measurement errors, bias/MAE/median error and Bland–Altman plots. CLI reports preserve source/code/annotation/profile provenance, coordinates, IDs, label TIFFs and CSVs.
  • Preserve original Otsu/manual/local segmentation; add opt-in illumination subtraction and hysteresis as experimental conventional candidates. Keep the existing manual outline repair and numerical measurement definitions.
  • Require verified, separate specimen/acquisition groups for the existing experimental object-classifier promotion workflow. Exclude final-test labels from fitting/promotion, retain previous models and support provenance-checked frozen-checkpoint comparisons. No new real-data model or neural segmenter was trained.

Validation

  • 217 tests passed on Python 3.12 and 3.15.2, with no skips when optional reporting dependencies are installed.
  • Dependency checks and source desktop smoke tests passed on both versions.
  • Existing review and new independent-reference browser workflows passed, including 250 ms simulated network latency, exact/zoomed selection, persistence and unchanged operational measurements. Research Lab responsive UI check passed.
  • Default segmentation masks were pixel-identical to frozen commit 442328e on all 15 inspected original JPEGs.
  • A three-original exploratory report compares unchanged baseline and optional background correction. Candidate counts changed in both directions; precision, recall, IoU and measurement accuracy remain Unavailable without independent ground truth and group metadata. ML is Not evaluated.
  • Native Windows packaged smoke/browser checks and optional plotting compatibility run in CI; check their final status before merging.

Scientific scope and next data

This does not establish real-image accuracy or prove that the experimental settings improve measurements. Required next inputs: independent exhaustive/partial reference masks with explicit scope and categories, verified specimen/acquisition links, per-original calibration/bar spans, explicitly paired ImageJ lengths/mean diameters and agreed measurement tolerances. Only the reported Sample 3 calibration is confirmed; equal scale-bar text does not establish equal calibration across magnifications.

Private microscopy data and generated reports remain outside the repository. The older oversized Fiber Count archive was not inspectable, and no claim is made about its contents.

See docs/scientific-validation-audit.md, docs/scientific-validation-baseline.md and docs/scientific-validation.md for the audit, limitations, annotation workflow and PowerShell validation/training/inference instructions.

Branch and review

Branch: scientific-validation-workflow → collagen-baseline.

Open the pull-request comparison.

GitHub denied automatic pull-request creation through its API. The branch is pushed; paste this description when creating the pull request. Native CI results are still being checked.

@KneeKin-crtl
KneeKin-crtl merged commit 8df5850 into collagen-baseline Nov 19, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant