Dictionary of Applied Machine Learning: 151 machine-learning terms, each with a definition, a figure, citations and a Python demo · All terms · Demos · Start here
Updated on 2026-11-26
Readiness 100/100
See also regularization ridge regression overfitting empirical risk minimization training set dataset hypothesis space hypothesis data point feature label feature vector feature space hyperparameter validation error
Data augmentation enlarges a training set with synthetic data points obtained from transformations or perturbations of existing ones. Typical examples are rotating or cropping an image and adding small perturbations to the features and labels of a measured data point. If the label does not change under a transformation, training on transformed copies makes the learned hypothesis vary little under it. Sensing devices measure with limited precision, so perturbed copies reflect the uncertainty interval around each recorded value. Data augmentation is a form of regularization, beside model pruning and adding a penalty term to the training error. For linear regression, perturbing the features with zero-mean noise whose covariance matrix is a multiple of the identity is, in expectation over the noise, equivalent to adding the ridge regression penalty term.

dataaug.py, which recomputes what the entry states: the script block by block · open in ColabThree measured days at Krems an der Donau (Austria) are all a forecaster has to learn from. Each day is a data point, characterized by the air temperature at $06{:}00$ (UTC) as its feature $x$, and the temperature at $15{:}00$ (UTC) of the same day as its label $y$ (Fig. 1). The figure also shows a learned hypothesis map $\widehat{h}$, obtained by empirical risk minimization (ERM) using the polynomials of degree two as hypothesis space.
The learned hypothesis achieves zero training error but delivers poor predictions outside the training set, which is overfitting. On a held-out set of $106$ data points obtained from other days of 2024, whose feature lies inside the measured range, its average squared error loss is $335.3$ squared degrees. One reason for the failure of $\widehat{h}$ is that the training set is too small. For almost every training set of sample size $m = 3$ there is one polynomial of degree two passing through its data points.
Data augmentation enlarges a dataset with synthetic data points, obtained by perturbations of the features and labels of the measured ones. Sensing devices have imperfections such as thermal noise, so a reading $x$ is one representative of an uncertainty interval $\mathcal{U}^{(x)}$. Any other value from that interval could have been observed instead.
B-augmentConsidering the weather data from Fig. 1, a temperature reading $x$ carries $\mathcal{U}^{(x)} = [x - 1, x + 1]$. Each measured day $\left( x,y \right)$ is replaced by $400$ copies $\left( x + \varepsilon,y + \varepsilon' \right)$, whose perturbations $\varepsilon$ and $\varepsilon'$ are realizations of random variables (RVs) distributed uniformly on $[-1, 1]$. The augmented training set $\widetilde{\mathcal{D}}$ holds $1200$ data points, none of which required a new temperature measurement. The width of the uncertainty interval used for the perturbation of the features and labels is a hyperparameter. One basic way to determine it is to try a few choices and compare the validation error of the resulting learned hypotheses.
B-routesFig. 1 also shows the polynomial of
degree two $\widehat{h}'$ that ERM learns using
$\widetilde{\mathcal{D}}$ as training set. The hypothesis
$\widehat{h}'$ no longer passes through the three measured
days, but it delivers better predictions outside the training set. Its
training error on them is $4.0$ squared degrees, but its average
squared error loss on the held-out data points falls to $25.7$.
The coefficient of $x^{2}$ drops from
$\widehat{w}_{2} = 1.87$ for $\widehat{h}$ to
$\widehat{w}_{2}' = 0.11$ for $\widehat{h}'$.
pythondemos/dataaug.pypythondemos/dataaug.py Markers and lines: copies in $\widetilde{\dataset}$ with $\feature$ perturbed alone (open squares) and original dataset $\dataset$ (filled circles).pythondemos/dataaug.py
See also: regularization, model pruning, penalty term, ridge regression, overfitting, empirical risk minimization, training set, dataset, hypothesis space, hypothesis, data point, feature, label, feature vector, feature space, uncertainty, hyperparameter, validation error, polynomial regression, learning task.
@misc{dictml_dataaug,
author = {Jung, Alexander},
editor = {Olioumtsevits, Konstantina and Schnoor, Ekkehard},
title = {data augmentation},
howpublished = {Dictionary of Applied Machine Learning (course edition)},
year = {2026},
doi = {10.5281/zenodo.21569296},
note = {ISBN 978-952-64-3013-3, CC BY 4.0, retrieved 2026-11-26},
url = {https://dictionaryofml.org/terms/dataaug.html}
}