Strabismus

Step 5 · Classification

ResNet50

A residual network whose skip connections let a very deep model train stably.

ImageNet weights, last 75 layers unfrozen

From the paper

What we built

ResNet-50 was initialised from pretrained weights with the last 75 layers unfrozen for domain-specific feature learning, adding Conv2D, Global Average Pooling, Dropout and Layer Normalization, fully connected ReLU layers, and a softmax output.

  • Transfer learning
  • Residual connections
  • Layer normalization
  • Dropout
  • AdamW
  1. Eye photo in
  2. ResNet50 residual baseImageNet
  3. Conv 3×3, 512 filters → batch norm
  4. Global average pool
  5. Dense 1024 → dropout
  6. Dense 512 → layer norm
  7. Dense 256 → dropout
  8. Softmax, 5 classes
  9. EsotropiaExotropiaHypertropiaHypotropiaNormal

Published results

How ResNet50 did on the 81 test photos

Accuracy
74.00%
Precision
79.00%
Recall
73.00%
F1 score
74.00%
Confusion matrix for ResNet50. Rows are the true class, columns the predicted class; each cell is the share of that true class's test photos.
Predicted class →
True ↓EsotropiaExotropiaHypertropiaHypotropiaNormal
Esotropia0.930.000.000.000.07
Exotropia0.240.590.120.000.06
Hypertropia0.000.060.880.060.00
Hypotropia0.000.250.120.620.00
Normal0.000.180.060.060.71
01 — share of each true class; the diagonal is correct predictions

Each row is a true class; the numbers show where its test photos ended up. The diagonal is the share classified correctly.

It was strongest on esotropia (93% correct) and weakest on exotropia (59% correct).