Deep Conditional Representation Learning for Drum Sample Retrieval by Vocalisation

Alejandro Delgado, Charalampos Saitis, Emmanouil Benetos, Mark B. SandlerarXiv 2022

Abstract

Imitating musical instruments with the human voice is an efficient way of communicating ideas between music producers, from sketching melody lines to clarifying desired sonorities. For this reason, there is an increasing interest in building applications that allow artists to efficiently pick target samples from big sound libraries just by imitating them vocally. In this study, we investigated the potential of conditional autoencoder models to learn informative features for Drum Sample Retrieval by Vocalisation (DSRV). We assessed the usefulness of their embeddings using four evaluation metrics, two of them relative to their acoustic properties and two of them relative to their perceptual properties via human listeners' similarity ratings. Results suggest that models conditioned on both sound-type labels (drum vs imitation) and drum-type labels (kick vs snare vs closed hi-hat vs opened hi-hat) learn the most informative embeddings for DSRV. We finally looked into individual differences in vocal imitation style via the Mantel test and found salient differences among participants, highlighting the importance of user information when designing DSRV systems.

Introduction

Searching through massive drum sample libraries is a tedious bottleneck for music producers. This research explores using Deep Conditional Autoencoders to enable "Query by Vocal Imitation" (DSRV), allowing users to find the perfect kick or snare simply by beatboxing. The technical challenge lies in the acoustic disparity between a human vocalization (e.g., "boom") and a recorded kick drum. This field, known as Query by Vocal Imitation (QVI), requires representation learning—creating a shared mathematical space (embeddings) where an imitation and its target sound sit close together, despite surface-level differences.

Methodology

The authors utilized Convolutional Autoencoders (CAE) to compress audio into a small "latent space" used for retrieval. The key innovation is Model Conditioning, where three types of labels were tested during training:

  1. Sound-type Labels (SL): Distinguishing between a real drum and a vocal imitation.
  2. Drum-type Labels (DL): Distinguishing between kick, snare, closed hi-hat, and open hi-hat.
  3. Sound and Drum-type Labels (SDL): A combination of both (e.g., "vocal snare" vs. "real snare").

The study utilized a diverse training set of ~18,000 samples, including real drums (Misc, BFD3) and vocal percussion (AVP, BS1, LVT, BTX). Evaluation was performed using the VIPS dataset, containing 30 drum sounds and 252 vocal imitations from 14 participants.

Key Insights and Individual Differences

Conditioning proved essential; models that utilized high-level category information (SDL) performed significantly better by ignoring vocal timbre "noise" and focusing on core "drum-ness." Analysis via Mantel tests revealed that humans are particularly effective at imitating amplitude envelopes and spectral centroids.

Furthermore, the study highlighted significant individual differences in vocal imitation styles. As shown in the p-value distributions, participants varied in how they approached imitation, suggesting that future DSRV systems may require personalization to account for specific vocal quirks.

Mean p-values for heuristic and CAE-SDL sets, illustrating individual differences in imitation style across participants.

Results

The CAE-SDL model, conditioned on both sound and drum type, was the superior performer across most metrics. It achieved a Mean Reciprocal Rank (MRR) of 41.7% and a perceptual accuracy of 54.4%, nearly matching hand-crafted heuristic features while providing a better statistical fit (lower AIC scores).

Performance comparison of baseline and proposed conditional autoencoder models across MRR, MSS, Accuracy, and AIC metrics.

Conclusion

While conditional autoencoders significantly improve drum sample retrieval, limitations remain in the variety of drum classes and reconstruction quality. Future work will focus on expanding the system to handle more complex percussion and integrating these embeddings into metric learning systems to further bridge the gap between human imitation and professional samples.

Summary updated

BibTeX
@misc{delgado2022deep,
  author = {Alejandro Delgado and Charalampos Saitis and Emmanouil Benetos and Mark B. Sandler},
  title = {{Deep Conditional Representation Learning for Drum Sample Retrieval by Vocalisation}},
  year = {2022},
  eprint = {2204.04651},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.04651},
}
Figure