Research use only

ERM Triage Engine

Epiretinal membrane detection on OCT B-scans that knows when to hand a scan to a specialist. Two lightweight CNNs run Monte Carlo dropout, and the spread of their 30 predictions decides between automatic reporting and referral.

Karthik B, Sai Sathya Krishna A R, Adharsh Ramakrishnan, Dr. Swaminathan A · VIT Chennai

Read the full reportDocumentation on GitHub
Dashboard analysing a scan that the engine refers to a specialist

Held-out test results

95 scans from 36 patients that the models never saw. Brackets are 95% patient-level bootstrap intervals.

AUC1.000
Balanced accuracy0.964
Sensitivity1.000
Specificity0.928
Scans referred12 / 95
Errors caught by referral5 / 5
ModelAUCBalanced accuracySensitivitySpecificityMCC
ResNet-340.9900.964 [0.925, 0.992]1.0000.928 [0.857, 0.978]0.882
MobileNetV3-Large1.0000.957 [0.922, 0.984]1.0000.913 [0.840, 0.970]0.861
MC-dropout ensemble1.0000.964 [0.926, 0.989]1.0000.928 [0.851, 0.978]0.882

The referral threshold was set on a separate validation split. On the test split it referred 12 scans, which included all 5 errors, and the remaining 83 were correct.

How it works

Pipeline diagram
  1. The scan is converted to grayscale, resized to 224 × 224 and normalised between its 1st and 99th intensity percentiles.
  2. ResNet-34 and MobileNetV3-Large each run 15 forward passes with dropout switched on.
  3. The 30 probabilities give a mean (the prediction) and a variance (the uncertainty).
  4. The scan is reported automatically only if the variance is below the calibrated threshold, both models agree, and the probability is outside 0.35 to 0.65.
  5. Grad-CAM shows which parts of the scan drove the ERM score.

Figures

ROC and reliability
ROC curves and calibration
Referral curve
Referral curve and uncertainty against prediction; red points are errors
Confusion matrices
Confusion matrices at threshold 0.5
Grad-CAM
Grad-CAM: attribution sits on the membrane in ERM scans

The app

Confident ERM detection
A confident ERM detection, reported automatically
Model performance tab
Held-out metrics and curves
Methods tab
Method, dataset and limitations
Paper tab
Paper summary inside the app

Limitations

Data: OCTDL, Kulyabin et al., Sci. Data 11, 365 (2024), CC BY 4.0.