Data augmentation explained
Data augmentation is a statistical technique which allows maximum likelihood estimation from incomplete data.[1] [2] Data augmentation has important applications in Bayesian analysis,[3] and the technique is widely used in machine learning to reduce overfitting when training machine learning models,[4] achieved by training models on several slightly-modified copies of existing data.
Synthetic Minority Over-sampling Technique (SMOTE) is a method used to address imbalanced datasets in machine learning. In such datasets, the number of samples in different classes varies significantly, leading to biased model performance. For example, in a medical diagnosis dataset with 90 samples representing healthy individuals and only 10 samples representing individuals with a particular disease, traditional algorithms may struggle to accurately classify the minority class. SMOTE rebalances the dataset by generating synthetic samples for the minority class. For instance, if there are 100 samples in the majority class and 10 in the minority class, SMOTE can create synthetic samples by randomly selecting a minority class sample and its nearest neighbors, then generating new samples along the line segments joining these neighbors. This process helps increase the representation of the minority class, improving model performance.[5]
Data augmentation for image classification
When convolutional neural networks grew larger in mid-1990s, there was a lack of data to use, especially considering that some part of the overall dataset should be spared for later testing. It was proposed to perturb existing data with affine transformations to create new examples with the same labels,[6] which were complemented by so-called elastic distortions in 2003,[7] and the technique was widely used as of 2010s.[8] Data augmentation can enhance CNN performance and acts as a countermeasure against CNN profiling attacks.[9]
Data augmentation has become fundamental in image classification, enriching training dataset diversity to improve model generalization and performance. The evolution of this practice has introduced a broad spectrum of techniques, including geometric transformations, color space adjustments, and noise injection.[10]
Geometric Transformations
Geometric transformations alter the spatial properties of images to simulate different perspectives, orientations, and scales. Common techniques include:
- Rotation: Rotating images by a specified degree to help models recognize objects at various angles.
- Flipping: Reflecting images horizontally or vertically to introduce variability in orientation.
- Cropping: Removing sections of the image to focus on particular features or simulate closer views.
- Translation: Shifting images in different directions to teach models positional invariance.
Color Space Transformations
Color space transformations modify the color properties of images, addressing variations in lighting, color saturation, and contrast. Techniques include:
- Brightness Adjustment: Varying the image's brightness to simulate different lighting conditions.
- Contrast Adjustment: Changing the contrast to help models recognize objects under various clarity levels.
- Saturation Adjustment: Altering saturation to prepare models for images with diverse color intensities.
- Color Jittering: Randomly adjusting brightness, contrast, saturation, and hue to introduce color variability.
Noise Injection
Injecting noise into images simulates real-world imperfections, teaching models to ignore irrelevant variations. Techniques involve:
- Gaussian Noise: Adding Gaussian noise mimics sensor noise or graininess.
- Salt and Pepper Noise: Introducing black or white pixels at random simulates sensor dust or dead pixels.
Data augmentation for signal processing
Residual or block bootstrap can be used for time series augmentation.
Biological signals
Synthetic data augmentation is of paramount importance for machine learning classification, particularly for biological data, which tend to be high dimensional and scarce. The applications of robotic control and augmentation in disabled and able-bodied subjects still rely mainly on subject-specific analyses. Data scarcity is notable in signal processing problems such as for Parkinson's Disease Electromyography signals, which are difficult to source - Zanini, et al. noted that it is possible to use a generative adversarial network (in particular, a DCGAN) to perform style transfer in order to generate synthetic electromyographic signals that corresponded to those exhibited by sufferers of Parkinson's Disease.[11]
The approaches are also important in electroencephalography (brainwaves). Wang, et al. explored the idea of using deep convolutional neural networks for EEG-Based Emotion Recognition, results show that emotion recognition was improved when data augmentation was used.[12]
A common approach is to generate synthetic signals by re-arranging components of real data. Lotte[13] proposed a method of "Artificial Trial Generation Based on Analogy" where three data examples
provide examples and an artificial
is formed which is to
what
is to
. A transformation is applied to
to make it more similar to
, the same transformation is then applied to
which generates
. This approach was shown to improve performance of a Linear Discriminant Analysis classifier on three different datasets.
Current research shows great impact can be derived from relatively simple techniques. For example, Freer[14] observed that introducing noise into gathered data to form additional data points improved the learning ability of several models which otherwise performed relatively poorly. Tsinganos et al.[15] studied the approaches of magnitude warping, wavelet decomposition, and synthetic surface EMG models (generative approaches) for hand gesture recognition, finding classification performance increases of up to +16% when augmented data was introduced during training. More recently, data augmentation studies have begun to focus on the field of deep learning, more specifically on the ability of generative models to create artificial data which is then introduced during the classification model training process. In 2018, Luo et al.[16] observed that useful EEG signal data could be generated by Conditional Wasserstein Generative Adversarial Networks (GANs) which was then introduced to the training set in a classical train-test learning framework. The authors found classification performance was improved when such techniques were introduced.
Mechanical signals
The prediction of mechanical signals based on data augmentation brings a new generation of technological innovations, such as new energy dispatch, 5G communication field, and robotics control engineering.[17] In 2022, Yang et al.[17] integrate constraints, optimization and control into a deep network framework based on data augmentation and data pruning with spatio-temporal data correlation, and improve the interpretability, safety and controllability of deep learning in real industrial projects through explicit mathematical programming equations and analytical solutions.
See also
Notes and References
- Dempster . A.P. . Laird . N.M. . Rubin . D.B. . Maximum Likelihood from Incomplete Data Via the EM Algorithm . Journal of the Royal Statistical Society. Series B (Methodological) . 1977 . 39 . 1 . 1–22 . 10.1111/j.2517-6161.1977.tb01600.x .
- Rubin . Donald . Comment: The Calculation of Posterior Distributions by Data Augmentation . Journal of the American Statistical Association . 1987 . 82 . 398 . 10.2307/2289460 . 2289460 .
- Book: Jackman, Simon . Bayesian Analysis for the Social Sciences . 2009 . John Wiley & Sons . 978-0-470-01154-6 . 236.
- Shorten . Connor . Khoshgoftaar . Taghi M. . A survey on Image Data Augmentation for Deep Learning . Mathematics and Computers in Simulation . springer . 6 . 2019 . 10.1186/s40537-019-0197-0 . 60 . free .
- Wang . Shujuan . Dai . Yuntao . Shen . Jihong . Xuan . Jingxue . 2021-12-15 . Research on expansion and classification of imbalanced data based on SMOTE algorithm . Scientific Reports . en . 11 . 1 . 24039 . 10.1038/s41598-021-03430-5 . 34912009 . 2045-2322. 8674253 . 2021NatSR..1124039W .
- Book: Yann Lecun . et. al. . Learning algorithms for classification: A comparison on handwritten digit recognition . nyuscholars.nyu.edu . 14 May 2023 . Conference paper . 1995. 261–276 . World Scientific .
- Book: 4659176 . 10.1109/ICDAR.2003.1227801 . Best practices for convolutional neural networks applied to visual document analysis . Seventh International Conference on Document Analysis and Recognition, 2003. Proceedings. . 2003 . Simard . P.Y. . Steinkraus . D. . Platt . J.C. . 1 . 958–963 . 0-7695-1960-1 .
- Improving neural networks by preventing co-adaptation of feature detectors . 1207.0580 . Hinton . Geoffrey E. . Srivastava . Nitish . Krizhevsky . Alex . Sutskever . Ilya . Salakhutdinov . Ruslan R. . cs.NE . 2012.
- Book: Cagli . Eleonora . Dumas . Cécile . Prouff . Emmanuel . Cryptographic Hardware and Embedded Systems – CHES 2017 . Convolutional Neural Networks with Data Augmentation Against Jitter-Based Countermeasures: Profiling Attacks Without Pre-processing . 2017 . Fischer . Wieland . Homma . Naofumi . https://zenodo.org/record/1404232 . Lecture Notes in Computer Science . 10529 . en . Cham . Springer International Publishing . 45–68 . 10.1007/978-3-319-66787-4_3 . 978-3-319-66787-4. 54088207 .
- Shorten . Connor . Khoshgoftaar . Taghi M. . 2019-07-06 . A survey on Image Data Augmentation for Deep Learning . Journal of Big Data . 6 . 1 . 60 . 10.1186/s40537-019-0197-0 . free . 2196-1115.
- Anicet Zanini. Rafael. Luna Colombini. Esther. Parkinson's Disease EMG Data Augmentation and Simulation with DCGANs and Style Transfer. Sensors. 20. 9. 2020. 2605. 1424-8220. 10.3390/s20092605. 32375217. 7248755. 2020Senso..20.2605A . free.
- Book: Wang. Fang. Zhong. Sheng-hua. Peng. Jianfeng. Jiang. Jianmin. Liu. Yan. MultiMedia Modeling . Data Augmentation for EEG-Based Emotion Recognition with Deep Convolutional Neural Networks. Lecture Notes in Computer Science. 10705. 2018. 82–93. 0302-9743. 10.1007/978-3-319-73600-6_8. 978-3-319-73599-3.
- Lotte. Fabien. Signal Processing Approaches to Minimize or Suppress Calibration Time in Oscillatory Activity-Based Brain–Computer Interfaces. Proceedings of the IEEE. 103. 6. 2015. 871–890. 0018-9219. 10.1109/JPROC.2015.2404941. 22472204.
- Freer. Daniel. Yang. Guang-Zhong. Data augmentation for self-paced motor imagery classification with C-LSTM. Journal of Neural Engineering. 17. 1. 2020. 016041. 1741-2552. 10.1088/1741-2552/ab57c0. 31726440. 2020JNEng..17a6041F. 10044/1/75376. 208034533 . free.
- Tsinganos. Panagiotis. Cornelis. Bruno. Cornelis. Jan. Jansen. Bart. Skodras. Athanassios. Data Augmentation of Surface Electromyography for Hand Gesture Recognition. Sensors. 20. 17. 2020. 4892. 1424-8220. 10.3390/s20174892. 32872508. 7506981. 2020Senso..20.4892T . free.
- Book: Luo. Yun. Lu. Bao-Liang. 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC). EEG Data Augmentation for Emotion Recognition Using a Conditional Wasserstein GAN. 2018. 2018. 2535–2538. 10.1109/EMBC.2018.8512865. 30440924. 978-1-5386-3646-6. 53105445.
- Yang. Yang. Wind speed forecasting with correlation network pruning and augmentation: A two-phase deep learning method. Renewable Energy. 198. 1. 2022. 267–282. 0960-1481. 10.1016/j.renene.2022.07.125. 2306.01986 . 251511199 .