ct-tranchau commited on
Commit
a07a4d3
·
verified ·
1 Parent(s): e87655a

model card: simplify, single author

Browse files
Files changed (1) hide show
  1. README.md +40 -53
README.md CHANGED
@@ -15,64 +15,51 @@ pipeline_tag: image-classification
15
 
16
  # RootScope: Cross-species Root Cell-Type Classification from Confocal Microscopy Images
17
 
18
- Trained weights for **[RootScope](https://github.com/ct-tranchau/Rootscope)**.
19
- The manuscript model (v4) lives in `v4/`: 915 features, LightGBM per
20
- refinement round, 3 seeds, radial-order prior. The package downloads it on
21
- first use.
 
22
 
23
- ## v4 files
24
 
25
- | File | Size | Role |
26
  |---|---|---|
27
- | `v4/backbone.pt` | 346 MB | DINOv2 ViT-B/14, all 12 blocks fine-tuned on cell crops (`meta.json` beside it records the architecture; keep them together) |
28
- | `v4/lgbm_s42.joblib` | ~170 MB | LightGBM bundle, seed 42: six per-round models, scaler, 915 feature names, class order |
29
- | `v4/lgbm_s1.joblib`, `v4/lgbm_s7.joblib` | ~170 MB each | the other two seeds. Optional: seed 42 alone predicts; all three reproduce the 3-seed average in the manuscript |
30
 
31
- ## v4 performance
32
 
33
- Clean held-out split: 26 sections, 11,043 labelled cells, 17 species (all
34
- present in training), pooled over 3 seeds, 6 refinement rounds.
35
 
36
  | | accuracy | macro-F1 |
37
  |---|---|---|
38
- | round 1 (no neighbor context yet) | 0.845 | — |
39
- | final (after refinement + prior) | **0.881** (95% CI 0.858–0.905) | **0.852** |
40
-
41
- Per class, final model — precision / F1: root cap 96.0 / 97.7 · epidermis
42
- 85.8 / 89.8 · exodermis 83.5 / 85.6 · cortex 97.2 / 93.4 · endodermis
43
- 91.0 / 88.8 · pericycle 91.4 / 86.5 · stele 78.3 / 84.0 · xylem 81.6 / 71.4 ·
44
- phloem 69.9 / 69.5. Stele, xylem and phloem remain the hard classes; most of
45
- their confusion is among themselves.
46
-
47
- On species absent from training, expect roughly 0.70.
48
-
49
- ## How v4 predicts
50
-
51
- 1. Cellpose-SAM segments the TIFF (zero-shot).
52
- 2. 96 morpho-topological features per cell + 768-d embedding from the
53
- fine-tuned backbone.
54
- 3. Round 1: classify with the neighbor / layer context set to "unknown".
55
- 4. Rounds 2–6: from the previous round's predictions, rebuild 51 context
56
- columns — each neighbor direction's class probabilities (36) and agreement
57
- flags (6), and the cell's distance to each cell-type layer the model has
58
- predicted (9) — and classify again with that round's own model.
59
- 5. Average the three seeds' probabilities, apply the radial-order prior, take
60
- the argmax.
61
-
62
- The loop is capped at 6 rounds and does not converge (about 1% of labels are
63
- still changing at the cap); extending it to 10 rounds moves accuracy by less
64
- than 0.1 pp.
65
-
66
- ## Notes
67
-
68
- - Pixel size is read from the TIFF's OME metadata. A wrong scale distorts
69
- every size feature; the package refuses to default to 1.0.
70
- - Input must be a raw confocal image, not a mask.
71
- - `scikit-learn` is pinned to 1.7.2, the version the bundles were saved with.
72
- - All evaluation numbers are on cells whose annotator confidence was ≥ 0.6
73
- (4.1% of labelled test cells were excluded by this filter, concentrated in
74
- cortex, stele and pericycle).
75
-
76
- ## Contact
77
-
78
- tnchau@vt.edu
 
15
 
16
  # RootScope: Cross-species Root Cell-Type Classification from Confocal Microscopy Images
17
 
18
+ Trained weights for [RootScope](https://github.com/ct-tranchau/Rootscope).
19
+ Give RootScope a confocal cross-section TIFF of a root. It segments every cell
20
+ with Cellpose-SAM and labels each one as one of nine cell types: root cap,
21
+ epidermis, exodermis, cortex, endodermis, pericycle, stele, xylem, phloem.
22
+ The package downloads these weights on first use.
23
 
24
+ ## Files
25
 
26
+ | File | Size | What it is |
27
  |---|---|---|
28
+ | `v4/backbone.pt` | 346 MB | DINOv2 ViT-B/14, fine-tuned on cell crops (`meta.json` next to it records the architecture; keep them together) |
29
+ | `v4/lgbm_s42.joblib` | 170 MB | LightGBM, seed 42: one model per refinement round, scaler, feature names, class order |
30
+ | `v4/lgbm_s1.joblib`, `v4/lgbm_s7.joblib` | 170 MB each | the other two seeds; seed 42 alone works, all three reproduce the published result |
31
 
32
+ ## Performance
33
 
34
+ Held-out test set: 26 sections, 11,043 labelled cells, 17 species.
 
35
 
36
  | | accuracy | macro-F1 |
37
  |---|---|---|
38
+ | round 1 (no neighbor context) | 0.845 | |
39
+ | final | 0.881 (95% CI 0.858 to 0.905) | 0.852 |
40
+
41
+ Per class F1: root cap 97.7, epidermis 89.8, exodermis 85.6, cortex 93.4,
42
+ endodermis 88.8, pericycle 86.5, stele 84.0, xylem 71.4, phloem 69.5.
43
+ Stele, xylem and phloem are the hard classes; most of their confusion is
44
+ among themselves. On species not in the training set, expect about 0.70.
45
+
46
+ ## How it works
47
+
48
+ 1. Cellpose-SAM segments the TIFF.
49
+ 2. Each cell gets 96 morpho-topological features and a 768-d embedding from
50
+ the fine-tuned DINOv2 backbone.
51
+ 3. Round 1 classifies each cell with the neighbor and layer context set to
52
+ unknown.
53
+ 4. Rounds 2 to 6 rebuild 51 context columns from the previous round's
54
+ predictions (the neighbors' class probabilities, agreement flags, and the
55
+ distance to each predicted cell-type layer) and classify again with that
56
+ round's own LightGBM model.
57
+ 5. The three seeds are averaged, a radial-order prior is applied, and the most
58
+ likely class is taken.
59
+
60
+ Pixel size is read from the TIFF's OME metadata. The input must be a raw
61
+ confocal image, not a mask.
62
+
63
+ ## Author
64
+
65
+ ct-tranchau (tnchau@vt.edu)