Classic segmentation workflow reproducibility issue for ACTN1,MYH10,SEC61B, & ST6GAL1

Aperta
#44 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@vianamp ci sta già lavorando.

Dal 27/5/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

We are training MegaSeg on the public AICS variance dataset (https://animatedcell-test-data.s3.us-west-2.amazonaws.com/variance/{FOV_ID}.zarr). Channel C=4 of each zarr is the segmentation we use as training/eval GT for 14 structures.

For most structures, when we re-run an aicssegmentation classical workflow on the raw images today, the output matches C=4 to Dice ≥ 0.99. For ACTN1, MYH10, SEC61B, and ST6GAL1, it does not, and the pattern of disagreement is structure-specific in a way that suggests different pipelines or different parameters were used to produce C=4 for these four structures.

What we have confirmed

  1. Our staged GT TIFFs are byte-identical to C=4 of the public zarrs. On 20 sampled images across the 4 structures, Dice = 1.000000, and the nonzero-pixel counts match to the integer. So the GT we trained on is not a custom local mask, it is exactly the public dataset's C=4.
  2. Our re-run pipeline is deterministic. Two independent runs of the classical workflow, six weeks apart, matched bit-identically on 24 sampled images. The single deviation (ST6GAL1) differed by 0.003 Dice, a floating-point sensitivity, not a real change.
  3. So the discrepancy below is not library drift between 2021 and 2026 and not noise in our pipeline. There is a real difference between whatever pipeline produced C=4 for these four structures and the aicssegmentation classical workflow we run today.

What we observe

Dice between the classical workflow output and C=4 of the public zarr, across all images for which we have a measurement (test split = full coverage at N=67 per structure; train+val = sparse sample):

Structure N mean median min max <0.8 0.8–0.99 ≥0.99
ACTN1 121 0.865 0.998 0.618 1.000 49 0 72
MYH10 73 0.962 0.960 0.939 0.987 0 73 0
SEC61B 73 0.949 0.936 0.758 0.998 1 48 24
ST6GAL1 73 0.913 0.886 0.842 0.999 0 53 20
  • ACTN1 is sharply bimodal. 49 images cluster near 0.65, 72 cluster near 1.0, and zero images fall in between. This is the clearest "two pipelines were applied per-image" signature in the dataset.
  • ST6GAL1 shows a weaker version of the same. A high cluster at ~1.0 and a lower mode at ~0.87, but with more spread.
  • MYH10 is uniformly offset. Every measured image is in [0.94, 0.99]. Looks like a single parameter difference (threshold, smoothing,
    morphology), not a different pipeline.
  • SEC61B has the widest spread (0.76–1.00), without a clean bimodal split.

What we'd like from you

For these 4 structures, could you help us pin down what produced C=4 in the public zarrs, by reproducing the masks and provding us the pipeline.

How our team re-ran the workflow (for reference)

Repo: https://github.com/AllenCell/MegaSeg (branch verify-classic-gt, PR #15, Issue #3).

Key files:

  • benchmark/scripts/classic_workflows.py — workflow loader / registry
  • benchmark/scripts/run_classic.py — generic CLI runner
  • benchmark/scripts/verify_classic_gt.py — verification harness
  • docs/2026-02-26-classic-gt-reproducibility-report.md — full report

Workflow functions used per structure (single-channel):

  • ACTN1 → Workflow_actn1 from ms_classic/ms_seg_ACTN1.py
  • MYH10 → Workflow_myh10 from ms_classic/classic_segmentation_MYH10.py
  • SEC61B → Workflow_sec61b from ms_classic/classic_segmentation_SEC61B.py
  • ST6GAL1 → Workflow_st6gal1 from ms_classic/classic_segmentation_ST6GAL1.py

Environment: aicssegmentation 0.5.3, scikit-image 0.25.2, numpy 2.3.5, scipy 1.17.1, Python 3.11.

Attached: megaseg_4struct_for_issue_final.csv

Provides image paths for these 4 structures and the dice scores for existing vs. recreated masks.
megaseg_4struct_for_issue_final.csv

Lingua principale
Python
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AllenCell/MegaSeg

Tutte le issue di AllenCell/MegaSeg

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.