100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Deep Learning & Neural Networks
25 minadvanced

Data augmentation for images

Data augmentation artificially expands a training dataset by applying label-preserving transformations to existing images. A cricket shot image of a cover drive remains a cover drive whether it is flipped horizontally, slightly rotated, or colour-shifted — yet these transformations generate training examples the model has never seen, reducing overfitting and improving generalisation. Without augmentation, a model with 1,000 training images sees each example dozens of times across epochs, eventually memorising pixel values rather than learning the underlying visual concept. With augmentation, each pass through the data applies random transformations so the model effectively sees a different image every epoch, dramatically increasing the effective dataset size. Augmentation is particularly critical for medical imaging (thousands of samples), remote sensing, and sports analytics datasets where large-scale data collection is expensive. Modern augmentation strategies like MixUp, CutMix, and RandAugment go beyond simple geometric transforms to create training examples that force the model to interpolate between classes, building more robust and generalisable representations than traditional augmentation alone.

Analogy🏏Cricket
🏏 Think of it like cricket: The Duckworth-Lewis-Stern (DLS) method, the ICC bowling economy metric, and the net run rate each measure team performance but optimise for completely different things — DLS cares about wickets-in-hand, economy cares about runs-per-over, NRR cares about tournament-wide margins. Using the wrong metric to evaluate a bowler is like using MSE for classification: technically computable but optimising the wrong thing entirely. Just as you would never rank a spinner by batting average, you should never use MSE when your model predicts probabilities. Just as focal DLS adjustments down-weight easy chases and amplify close finishes, focal loss down-weights easy examples and amplifies hard minority-class examples. The choice of scoring metric defines what excellence means — and so does the choice of loss function.
Lesson 16 of 35
0% complete