Dataset and segmentation model
There was no labelled dataset of slit-lamp photographs to train on.
- Annotated 700 slit-lamp photographs in QuPath and split them into training and validation sets.
- Scored annotation quality by perimeter and area percentiles to weight high- and low-quality masks.
- Normalised all images to 1024×1024; augmented with flips, 90° rotations and low gaussian noise.
- Trained a U-Net segmentation model and compared ResNet-34 and ResNet-50 encoders.
| metric | ResNet-34 | ResNet-50 |
|---|---|---|
| Dice, inside 100 px | 0.724 | 0.725 |
| Dice, whole image | 0.629 | 0.631 |
| Accuracy, inside 100 px | 0.668 | 0.793 |
| Accuracy, whole image | 0.593 | 0.703 |
| Recall | 0.734 | 0.609 |