Device-Robust Acoustic Scene Classification via Impulse Response Augmentation

Tobias Morocutti, Florian Schmid, Khaled Koutini, Gerhard WidmerarXiv 2023

TL;DR

This paper introduces Device Impulse Response (DIR) augmentation to solve the "device gap" in Acoustic Scene Classification (ASC). By convolving training audio with the unique sonic signatures of 66 different microphones, the researchers achieved a new state-of-the-art performance on unseen recording devices, especially when combined with existing frequency-mixing techniques.

What Problem Does This Paper Address?

Imagine training an AI to recognize the sound of a "busy street" using only high-end studio microphones. When you deploy that model on a budget smartphone, it might fail because the smartphone’s microphone filters out certain frequencies or adds its own "color" to the sound.

In technical terms, this is a distributional shift. Every microphone has a unique frequency response that acts as a filter on the digitized signal. If a model isn't exposed to this variety during training, it overfits to the characteristics of the training hardware. In the DCASE challenges (a major benchmark for audio AI), this often results in a massive performance drop—up to 15 percentage points—when testing on "unseen" devices not present in the training set.

Methods

The authors propose DIR Augmentation. Instead of just using standard data augmentations like Mixup, they use a dataset of 66 pre-recorded Impulse Responses from a variety of vintage and modern microphones (sourced from the MicIRP project).

  1. Convolution: During training, audio samples from the primary recording device are randomly convolved with one of these 66 DIRs. This process mathematically simulates what the audio would sound like if recorded by that specific microphone.
  2. Hybrid Approach: The authors combine DIR augmentation with Freq-MixStyle (FMS). While DIR simulates physical hardware characteristics, FMS works at the feature level by mixing frequency-wise statistics between different spectrograms in a batch.
  3. Architectures: They tested this across three distinct models:
  4. CP-ResNet: A standard, high-performing CNN for audio.
  5. LC CP-ResNet: A low-complexity version designed for edge devices (<128K parameters).
  6. PaSST: A large, state-of-the-art Audio Spectrogram Transformer pre-trained on AudioSet.
The impulse and frequency response of a Toshiba Type G microphone illustrates the "sonic signature" used for augmentation.

Datasets

The study utilizes two primary benchmarks from the TAU Urban Acoustic Scenes series:

  • TAU20 (Mobile development): Contains 10-second audio clips.
  • TAU22 (Mobile development): Contains 1-second clips, making the classification task significantly harder. Both datasets are highly imbalanced, dominated by a single high-quality recording device (Device A), while testing involves several simulated and real devices that the model never sees during training.

Key Insights and Ideas

  • Complementary Strengths: The most significant finding is that DIR augmentation and Freq-MixStyle are complementary. DIR acts as a "physical" simulation of hardware, while FMS acts as a "statistical" regularizer. Using both together consistently yielded the best results for unseen devices.
  • Short-Clip Robustness: DIR augmentation is particularly effective for short (1-second) audio clips. In these brief windows, the device's frequency signature can easily be mistaken for actual scene content; DIR helps the model learn to ignore these hardware artifacts.
  • Pre-training vs. Augmentation: For the Transformer model (PaSST), which was pre-trained on the massive AudioSet, the baseline was already quite robust. However, DIR augmentation still provided a performance boost on the more challenging 1-second clip dataset (TAU22).
  • The Generalization Trade-off: Improving performance on unseen devices often comes at a slight cost to accuracy on the primary training device (Device A). This suggests a classic bias-variance trade-off where the model gives up some "specialization" to gain "versatility."

Key Results

The combination of DIR + FMS set new performance benchmarks across almost all tested scenarios.

Table I shows that the DIR + FMS combination achieves the highest accuracy on unseen devices across multiple architectures.
  • CP-ResNet (TAU22): The DIR + FMS combo boosted accuracy on unseen devices by 11 percentage points (from 48.28% to 59.30%) compared to the baseline.
  • Low Complexity: Even the tiny LC CP-ResNet saw its unseen device accuracy jump from 43.13% to 49.33% with the hybrid method.
  • Consistency: The hybrid method achieved the lowest DG-Score (Device Generalization Score), indicating the most balanced performance across all types of recording hardware.

Limitations and Future Work

The authors note that the hyperparameter configuration (specifically the probability of applying DIR vs. FMS) is sensitive. Finding the "sweet spot" for these probabilities is crucial; setting them too high can actually degrade performance.

Future work could involve expanding the DIR dataset beyond the 66 vintage microphones to include more modern mobile devices or exploring adaptive augmentation strategies where the model learns which "simulated devices" it struggles with most.

Summary updated

BibTeX
@misc{morocutti2023device,
  author = {Tobias Morocutti and Florian Schmid and Khaled Koutini and Gerhard Widmer},
  title = {{Device-Robust Acoustic Scene Classification via Impulse Response Augmentation}},
  year = {2023},
  eprint = {2305.07499},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.07499},
}
Figure