axondeepseg / model_seg_unmyelinated_tem

Model for unmyelinated axon segmentation in TEM images, based on nnUNet
MIT License
1 stars 0 forks source link

Upload 5 cross-validation folds #1

Closed hermancollin closed 4 months ago

hermancollin commented 1 year ago

Currently, the packaged model only contains 1 fold (fold_3). I did this to reduce the filesize from 1Gb+ to ~200Mb. However, when I was comparing the single fold predictions with the 5 fold ensembled predictions, I found a pretty big difference. The input image was taken from another group (Stanford), so there is a slight domain shift even though they are TEM images with a similar resolution. I won't post the original image for privacy reasons, but here is the single fold mask (current model release):

366A_slot_A2_8000x_ROI-1_stitched_8bit_eq_resized_roi-0

And this is the ensemble model applied to the same image: 366A_slot_A2_8000x_ROI-1_stitched_8bit_eq_resized_roi-0

The input image is not shown but this second mask is much better than the first one. It still shows undersampling, but it's less severe than with the single fold model. Also, the axon shapes are much more regular. I think that for small datasets, the ensembling in nnUNet works particularly well because it contains information from all training images, and the data was very limited (5 images). With this being said, I think it would be best to package the 5 folds, even though it gives a much bigger model.

hermancollin commented 4 months ago

This was uploaded in February as a release asset.