v4: add README.md
Browse files27 unmodified lines2829303132333435363738394041424344454627 unmodified lines| `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) || `v4/lgbm_s42.joblib` | 170 MB | LightGBM, seed 42: one model per refinement round, scaler, feature names, class order || `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 |## Performance| | accuracy | macro-F1 ||---|---|---|| round 1 (no neighbor context) | 0.845 | || final | 0.881 (95% CI 0.858 to 0.905) | 0.852 |Per class F1: root cap 97.7, epidermis 89.8, exodermis 85.6, cortex 93.4,endodermis 88.8, pericycle 86.5, stele 84.0, xylem 71.4, phloem 69.5.Stele, xylem and phloem are the hard classes; most of their confusion isamong themselves.## AuthorTran Chau (tnchau@vt.edu)27 unmodified lines282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828327 unmodified lines| `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) || `v4/lgbm_s42.joblib` | 170 MB | LightGBM, seed 42: one model per refinement round, scaler, feature names, class order || `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 || `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 |## Performance| | accuracy | macro-F1 ||---|---|---|| round 1 (no neighbor context) | 0.845 | || final, full-feature model alone | 0.881 (95% CI 0.858 to 0.905) | 0.852 || final, with the geometry model on the outer layers | 0.886 (95% CI 0.864 to 0.909) | 0.858 |Per class F1 (with the geometry model): root cap 97.8, epidermis 89.2,exodermis 90.5, cortex 93.6, endodermis 89.8, pericycle 87.0, stele 84.2,xylem 71.4, phloem 69.0. The geometry model changes only the outer layers: itkeeps exodermis recall (0.876) and raises its precision from 0.84 to 0.93,and cuts the number of wrongly labelled outer-layer cells by 6 percent. Thegain is measured on the held-out sections; on the training folds the twomodels score the same. Because the outer layers are then decided from shape,position and neighbourhood, they should hold up better than the vascularcore when the stain or the microscope changes.Before training, 80 of the 51,763 labelled cells (27 sections) whose paintedclass lay in the wrong layer were moved to the layer their position gives.These came from reading the annotation bitmaps: a semi-transparent orangepainted over a bright cell shifts in hue and was read as the neighbouringclass, which put a few endodermis labels into the outer layers and a fewexodermis labels against the stele. Without the correction the modelreproduced those labels, for example endodermis cells in the exodermis layerof Solanum pennellii. The correction changes the held-out score by 0.1 point.Stele, xylem and phloem are the hard classes; most of their confusion isamong themselves.After classification, a smoothing step along the epidermis, exodermis andcortex layers replaces a single cell whose neighbours on both sides along thelayer agree on another type. A tie between the two sides is left alone. Itremoves the isolated wrong cells inside a layer; the numbers above includeit.Some species have no exodermis (in the training data pea, Vigna mungo andEchinochloa crus-galli), and no species has one in the meristem. The packagejudges from the image whether the layer is present, and from the speciestable if a species name is given; when absent, the class is removed. On the126 annotated sections, leaving one species out at a time, 16 of the 20sections without exodermis are called absent, 2 uncertain, 2 present; of the106 with exodermis, 104 present, 1 uncertain, 1 absent.Every run writes a report with the share of cells in each confidence tier andthe accuracy that tier reached on the held-out sections (above 0.99: 0.93;0.9 to 0.99: 0.68; below 0.9: 0.49), the per-class precision and recall, theexodermis decision and its reason, and warnings.## AuthorTran Chau (tnchau@vt.edu)
README.md+40-3