model card: simplify, single author
Browse files
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
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
-
##
|
| 24 |
|
| 25 |
-
| File | Size |
|
| 26 |
|---|---|---|
|
| 27 |
-
| `v4/backbone.pt` | 346 MB | DINOv2 ViT-B/14,
|
| 28 |
-
| `v4/lgbm_s42.joblib` |
|
| 29 |
-
| `v4/lgbm_s1.joblib`, `v4/lgbm_s7.joblib` |
|
| 30 |
|
| 31 |
-
##
|
| 32 |
|
| 33 |
-
|
| 34 |
-
present in training), pooled over 3 seeds, 6 refinement rounds.
|
| 35 |
|
| 36 |
| | accuracy | macro-F1 |
|
| 37 |
|---|---|---|
|
| 38 |
-
| round 1 (no neighbor context
|
| 39 |
-
| final
|
| 40 |
-
|
| 41 |
-
Per class
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|