ct-tranchau commited on
Commit
c67d81b
·
verified ·
1 Parent(s): bc38151

v4: add README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -3
README.md CHANGED
@@ -28,19 +28,56 @@ The package downloads these weights on first use.
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
  | | accuracy | macro-F1 |
35
  |---|---|---|
36
  | round 1 (no neighbor context) | 0.845 | |
37
- | final | 0.881 (95% CI 0.858 to 0.905) | 0.852 |
 
38
 
39
- Per class F1: root cap 97.7, epidermis 89.8, exodermis 85.6, cortex 93.4,
40
- endodermis 88.8, pericycle 86.5, stele 84.0, xylem 71.4, phloem 69.5.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  Stele, xylem and phloem are the hard classes; most of their confusion is
42
  among themselves.
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  ## Author
45
 
46
  Tran Chau (tnchau@vt.edu)
 
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
+ | `v4/lgbm_geom_s42.joblib`, `v4/lgbm_geom_s1.joblib`, `v4/lgbm_geom_s7.joblib` | 180 MB each | the geometry-only models (shape, position, neighbourhood; no intensity, no embeddings) used for the outer layers; trained on the same sections with the same script |
32
 
33
  ## Performance
34
 
35
  | | accuracy | macro-F1 |
36
  |---|---|---|
37
  | round 1 (no neighbor context) | 0.845 | |
38
+ | final, full-feature model alone | 0.881 (95% CI 0.858 to 0.905) | 0.852 |
39
+ | final, with the geometry model on the outer layers | 0.886 (95% CI 0.864 to 0.909) | 0.858 |
40
 
41
+ Per class F1 (with the geometry model): root cap 97.8, epidermis 89.2,
42
+ exodermis 90.5, cortex 93.6, endodermis 89.8, pericycle 87.0, stele 84.2,
43
+ xylem 71.4, phloem 69.0. The geometry model changes only the outer layers: it
44
+ keeps exodermis recall (0.876) and raises its precision from 0.84 to 0.93,
45
+ and cuts the number of wrongly labelled outer-layer cells by 6 percent. The
46
+ gain is measured on the held-out sections; on the training folds the two
47
+ models score the same. Because the outer layers are then decided from shape,
48
+ position and neighbourhood, they should hold up better than the vascular
49
+ core when the stain or the microscope changes.
50
+
51
+ Before training, 80 of the 51,763 labelled cells (27 sections) whose painted
52
+ class lay in the wrong layer were moved to the layer their position gives.
53
+ These came from reading the annotation bitmaps: a semi-transparent orange
54
+ painted over a bright cell shifts in hue and was read as the neighbouring
55
+ class, which put a few endodermis labels into the outer layers and a few
56
+ exodermis labels against the stele. Without the correction the model
57
+ reproduced those labels, for example endodermis cells in the exodermis layer
58
+ of Solanum pennellii. The correction changes the held-out score by 0.1 point.
59
  Stele, xylem and phloem are the hard classes; most of their confusion is
60
  among themselves.
61
 
62
+ After classification, a smoothing step along the epidermis, exodermis and
63
+ cortex layers replaces a single cell whose neighbours on both sides along the
64
+ layer agree on another type. A tie between the two sides is left alone. It
65
+ removes the isolated wrong cells inside a layer; the numbers above include
66
+ it.
67
+
68
+ Some species have no exodermis (in the training data pea, Vigna mungo and
69
+ Echinochloa crus-galli), and no species has one in the meristem. The package
70
+ judges from the image whether the layer is present, and from the species
71
+ table if a species name is given; when absent, the class is removed. On the
72
+ 126 annotated sections, leaving one species out at a time, 16 of the 20
73
+ sections without exodermis are called absent, 2 uncertain, 2 present; of the
74
+ 106 with exodermis, 104 present, 1 uncertain, 1 absent.
75
+
76
+ Every run writes a report with the share of cells in each confidence tier and
77
+ the accuracy that tier reached on the held-out sections (above 0.99: 0.93;
78
+ 0.9 to 0.99: 0.68; below 0.9: 0.49), the per-class precision and recall, the
79
+ exodermis decision and its reason, and warnings.
80
+
81
  ## Author
82
 
83
  Tran Chau (tnchau@vt.edu)