AutoCDAScorer CNN models
These are the 16 convolutional neural networks (CNNs) used by the R package AutoCDAScorer. They score cell death areas (CDAs) in UV agroinfiltration images of Nicotiana benthamiana leaves. Each CDA gets a cell death severity score from 0 (no cell death) to 6 (strong cell death).
Using the models
Use them through AutoCDAScorer, which downloads them, checks each file against a stored MD5 checksum, and prepares the images in the form they expect:
install.packages("pak")
pak::pak("joshuandwilliams/AutoCDAScorer")
AutoCDAScorer::check_and_install_tensorflow() # Python and Keras, once
AutoCDAScorer::download_models() # these 16 files, once
cdas <- AutoCDAScorer::load_images("path/to/cropped/cdas")
AutoCDAScorer::predict_score("ensemble", cdas)
Check AutoCDAScorer's diagnostic plots (diagnostic_pca()) before relying on
the scores. The models are only reliable on CDA images that resemble their
training images.
Model details
- Architecture: each file is a CNN that takes a 64 × 64 × 3 image and returns softmax probabilities for the seven scores, 0 to 6.
- Training: all 16 were trained on geometrically augmented CDA images. They are the configurations whose cross-validation accuracy tied, within one standard error, with the best.
- Format: Keras 3 (
.keras), saved with Keras 3.15.0. Older versions of Keras cannot read them. - In AutoCDAScorer:
"geom_cnn"usesgeom_cnn_6848.kerasalone, the best of the 16 on the held-out ensemble split."ensemble"averages all 16, then averages that with an ordinal regression model on 12 hand-crafted features, which ships inside the R package.
Evaluation
All results are on the same 308 held-out test CDA images, which no model saw during training or selection.
| Exact score | Within one score | |
|---|---|---|
| Human raters, against the consensus score | 68.92% | 92.80% |
"ensemble" | 68.83% | 98.38% |
"geom_cnn" (geom_cnn_6848.keras) | 66.88% | 99.03% |
Training data
UV agroinfiltration images of Nicotiana benthamiana leaves from past Banfield lab projects, with CDAs scored by several raters. Geometric augmentation increased the training split from 3,818 to 11,389 images.
Limitations
The scores are only reliable for images like the training images: UV agroinfiltration images of N. benthamiana, cropped to one CDA. Use AutoCDAScorer's diagnostic plots to check this. Errors fall mostly between adjacent scores, as they do between human raters.
Files
| File | MD5 |
|---|---|
| geom_cnn_2473.keras | bc5b33eaea7aaa9cf6f34f11d103abac |
| geom_cnn_3549.keras | 272ddf518725f7e2d6688d2e2890024d |
| geom_cnn_3553.keras | b511118521bd404d5a8a7ba51a415679 |
| geom_cnn_5658.keras | 9ac42cf46adc82d94c751e82c2ccabf9 |
| geom_cnn_5712.keras | 05b723610fa4369ef31541df4145c57a |
| geom_cnn_5768.keras | d1c51f1092781c08b51b045d9225fd6b |
| geom_cnn_6789.keras | 83bc539cf3aab8134b632c6e87ecb8a4 |
| geom_cnn_6794.keras | e5b14f7c148d6bda57281be667920cab |
| geom_cnn_6829.keras | 0677c1881252c0cd291c51d9fde3fde0 |
| geom_cnn_6843.keras | 92389beb7fca3ff86efe7b078f192579 |
| geom_cnn_6848.keras | 2912cf4a9ac0d04a9ad5fbad4af1986c |
| geom_cnn_7855.keras | 68974e660a7338b53d52aa72e4af434a |
| geom_cnn_7873.keras | d306757ec6d5638207930185f84f5168 |
| geom_cnn_7908.keras | e00127350ac9ea4093bffc9949696350 |
| geom_cnn_7923.keras | 9a4b4f25b67626c435a60b8de33acf9c |
| geom_cnn_7927.keras | 8d85ae5388d92f190dd92fcfe2db48da |
License
MIT, as for AutoCDAScorer.