ct-tranchau commited on
Commit
756f3b3
·
verified ·
1 Parent(s): b178b8f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md CHANGED
@@ -1,3 +1,87 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ tags:
4
+ - biology
5
+ - plant-biology
6
+ - microscopy
7
+ - image-segmentation
8
+ - cell-type-classification
9
+ - cellpose
10
+ - dinov2
11
+ library_name: rootscope
12
+ pipeline_tag: image-classification
13
  ---
14
+
15
+ # RootScope: Cross-species Root Cell-Type Classification from Confocal Microscopy Images
16
+
17
+ Trained model weights for **[RootScope](https://github.com/ct-tranchau/Rootscope)**.
18
+
19
+ RootScope takes a raw confocal root-tip cross-section TIFF, segments every cell
20
+ with **Cellpose-SAM**, describes each cell with hand-crafted morpho-topological
21
+ features plus fine-tuned **DINOv2** embeddings, and classifies it into one of
22
+ nine anatomical cell types using an iterative tree-based ensemble.
23
+
24
+ ## Install
25
+
26
+ ```bash
27
+ git clone https://github.com/ct-tranchau/Rootscope.git
28
+ cd Rootscope
29
+ conda env create -f environment.yml
30
+ conda activate rootscope
31
+ pip install .
32
+ ```
33
+
34
+ ## Run
35
+
36
+ ```bash
37
+ rootscope --tif my_image.tif --out results/
38
+ ```
39
+
40
+ `results/` gets a per-cell CSV and a labeled overlay PNG, per model plus the
41
+ ensemble.
42
+
43
+ Or from Python:
44
+
45
+ ```python
46
+ from rootscope import predict_tif
47
+ df = predict_tif("my_image.tif", out_dir="results/")
48
+ ```
49
+
50
+ ## Cell types
51
+
52
+ `root_cap` · `epidermis` · `exodermis` · `cortex` · `endodermis` · `pericycle` ·
53
+ `stele` · `xylem` · `phloem`
54
+
55
+ ## Files
56
+
57
+ | File | Size |
58
+ |------|------|
59
+ | `model_RandomForest.joblib` | 349 MB |
60
+ | `backbone.pt` (fine-tuned DINOv2) | 88 MB |
61
+ | `model_LightGBM.joblib` | 29 MB |
62
+ | `model_XGBoost.joblib` | 14 MB |
63
+ | scalers, feature columns, label encoder | small |
64
+
65
+ ## Performance
66
+
67
+ Held-out test accuracy, 480 features, 9 classes:
68
+
69
+ | Model | Test |
70
+ |-------|------|
71
+ | LightGBM | **0.965** |
72
+ | XGBoost | 0.959 |
73
+ | RandomForest | 0.937 |
74
+
75
+ Inference: ~1.5–3 min per image on a single GPU.
76
+
77
+ ## Notes
78
+
79
+ - Set `--um-per-px` to your image's real scale — it is not auto-detected, and
80
+ the default of 1.0 distorts every size feature.
81
+ - Input must be a raw image, not a segmentation mask.
82
+ - CPU works but is far slower (~15–30 min per image).
83
+ - `scikit-learn` is pinned to 1.7.2, the version these models were saved with.
84
+
85
+ ## Contact
86
+
87
+ tnchau@vt.edu