Spectrogram Augmenter

Configure and create a spectrogram data augmentation. You can also store it in a datastore for machine learning with automated batching.
27 Downloads
Updated 16 Sep 2024

View License

Configure and create a spectrogram data augmentation. You can also store it in a datastore for machine learning with automated batching. This implements two classes:
  • spectogramDataAugmenter: configure the augmentation for the spectograms. Similar to imageDataAugmenter for images.
  • augmentedSpectrogramDatastore: transform batches to augment spectrogram data. Similar to augmentedImageDatastore for images.
The techniques implented are:
  • Time warp
  • Frequency masking
  • Time masking
  • Salt and pepper noise
  • White noise
  • Time shift
The first three filters are from "SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognition" by Google Brain and its authors Daniel S. Park, William Chan, Yu Zhang, Chung-Cheng Chiu, Barret Zoph, Ekin D. Cubuk & Quoc V. Le.
This work is published under the CC BY-NC-SA 4.0 DEED license.

Cite As

Wouter Jansen (2026). Spectrogram Augmenter (https://www.mathworks.com/matlabcentral/fileexchange/172765-spectrogram-augmenter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with R2024a and later releases
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0