Data Augmentation

More Data Without Collecting More Data

Data augmentation generates additional training examples by applying label-preserving transformations to existing images. A rotated cat is still a cat. These variations teach the model to be robust to real-world differences in pose, lighting, and image quality — without the cost of collecting and labeling new data.

Common Augmentation Types

1

Geometric — Flipping (horizontal/vertical), rotation, random cropping, scaling, perspective warp. Simulates variation in camera angle, object pose, and position.

2

Color / intensity — Brightness, contrast, saturation, hue shift. Simulates different lighting conditions and camera sensor behavior.

3

Noise and blur — Gaussian noise, motion blur, defocus blur. Improves robustness to image quality degradation.

4

Cutout / Random Erasing — Randomly mask a rectangular region to zero. Forces the model to learn from partial views — builds occlusion robustness.

5

Mixup / CutMix — Blend two training images (and their labels) together. Produces significant accuracy gains on large benchmarks. Advanced and widely used in competition settings.

Choose Augmentations Carefully

Not all augmentations are always valid

Horizontal flip: fine for animals, not for text (flipping produces gibberish). Color augmentation: be cautious in medical imaging where color encodes diagnostic information. Rotation: fine for satellite imagery, may not be for tasks where orientation is meaningful. Always validate that augmented images are still semantically correct.

Need Help?

Ask the AI assistant about data augmentation, how to choose appropriate augmentations for a task, or how Mixup and CutMix work.