Strabismus

Step 4 of 6

Data Augmentation

Each training photo becomes ten: flipped, brightened, contrast-shifted and greyscale versions.

Try it

One photo, ten versions

Augmentation teaches a model what doesn't matter. A photo taken in dim light, or mirrored, still shows the same misalignment; seeing those variations stops the model from memorising lighting and pose instead of eyes.

Only the 360 training photos were augmented. Validation and test photos stayed exactly as they were.

360

training photos

× 10

versions each

3,600

training images

Our esotropia training photo with your augmentation settings applied
A preview in your browser, within the same ±20% limits the paper used. The real versions below were made with the albumentations library.

Flipping

Horizontal mirroring shows the model eyes and gaze from both sides, so it doesn't learn that a turned eye is always on one particular side.

Original
Original
Flipped
Flipped

Brightness

Brightness shifted by up to 20% either way, so photos taken in dim or bright light don't bias the model.

Brightness, version 1
Brightness, version 1
Brightness, version 2
Brightness, version 2

Contrast adjustment

Contrast shifted by up to 20% either way, so important details stay recognisable in both flat and punchy photos.

Contrast, version 1
Contrast, version 1
Contrast, version 2
Contrast, version 2

Grayscale conversion

Colour removed, so the model relies on the shape and position of the iris rather than on eye or skin colour.

Original
Original
Grayscale
Grayscale

Our photo · Augmented

All ten versions of our photo

These are the actual files the models trained on, generated from our esotropia photo. Every training photo got the same treatment.

Original
Original
Flipped
Flipped
Brightness, version 1
Brightness, version 1
Brightness, version 2
Brightness, version 2
Flipped + brightness
Flipped + brightness
Contrast, version 1
Contrast, version 1
Contrast, version 2
Contrast, version 2
Flipped + contrast
Flipped + contrast
Grayscale
Grayscale
Flipped + grayscale
Flipped + grayscale