CITATION — REFERENCE ENTRY
SPICE: Self-Supervised Pitch Estimation — IEEE/ACM Transactions on Audio, Speech, and Language Processing
- Key
- gfeller2020-spice
- Authors
- Gfeller, Beat; Frank, Christian; Roblek, Dominik; Sharifi, Matt; Tagliasacchi, Marco; Velimirović, Mihajlo
- Issued
- 2020
- Type
- article-journal
- Container
- IEEE/ACM Transactions on Audio, Speech, and Language Processing
- Volume
- 28
- Pages
- 1118-1128
Raw CSL JSON
{
"DOI": "10.1109/TASLP.2020.2982285",
"URL": "https://arxiv.org/abs/1910.11664",
"note": "Quotes are from the accepted version on arXiv (1910.11664v2, 4 September 2020); locators are its sections and tables.",
"page": "1118-1128",
"type": "article-journal",
"title": "SPICE: Self-Supervised Pitch Estimation",
"author": [
{
"given": "Beat",
"family": "Gfeller"
},
{
"given": "Christian",
"family": "Frank"
},
{
"given": "Dominik",
"family": "Roblek"
},
{
"given": "Matt",
"family": "Sharifi"
},
{
"given": "Marco",
"family": "Tagliasacchi"
},
{
"given": "Mihajlo",
"family": "Velimirović"
}
],
"issued": {
"date-parts": [
[
2020
]
]
},
"volume": "28",
"container-title": "IEEE/ACM Transactions on Audio, Speech, and Language Processing"
}
Claims
-
To turn relative pitch into absolute pitch, SPICE is calibrated with a small synthetic dataset, so it never needs manually labelled data.
"In order to translate relative pitch to absolute pitch, we apply a simple calibration step, which can be done using a small synthetically generated dataset. Therefore, the model is able to produce absolute pitch without having access to any manually labelled dataset."
-
Instead of a hand-set threshold for voicing, SPICE adds a small layer that outputs a second value trained to match its own pitch error, used as a confidence and for voicing detection.
"Instead of relying on handcrafted thresholding mechanisms, we augment the model in such a way that it can learn the level of confidence of the pitch estimation. Namely, we add a simple fully connected layer that receives as input the penultimate layer of the encoder and produces a second scalar value which is trained to match the pitch estimation error."
-
SPICE takes constant-Q transform frames as input because a pitch shift there is a simple translation along the log-frequency axis, which is not true of the mel spectrogram; the mapping can mislead on contrived signals such as a Shepard tone.
"pitch shifting can be conveniently expressed as a simple translation along the log-spaced frequency axis induced by the CQT. ... we acknowledge the fact that for some specific audio signals the analysis in the CQT domain might lead to erroneous pitch estimates. For example, if the input signal is a Shepard tone and the amount of pitch shift is equal to +11 semitones, the human ear would perceive a pitch interval of -1 semitone. ... Note that this key property of mapping pitch-shift to a simple translation does not hold in general for other audio frontends, e.g., for the widely used mel spectrogram."
-
SPICE was evaluated on MIR-1k (1000 tracks of Chinese pop singing) and MDB-stem-synth, and trained on SingingVoices, an in-house set of 88 tracks (185 minutes) of pop singing.
"The MIR-1k [17] dataset contains 1000 audio tracks with people singing Chinese pop songs. ... The MDB-stem-synth dataset [13] includes re-synthesized monophonic music played with a variety of musical instruments. ... we also collected in-house the SingingVoices dataset, which contains 88 audio tracks of people singing a variety of pop songs, for a total of 185 minutes."
-
SPICE's errors against CREPE and SWIPE came mostly from instruments whose energy lies above the fifth harmonic, a timbre very different from the singing it was trained on.
"We also performed a thorough error analysis, trying to understand in which cases CREPE and SWIPE outperform SPICE. We discovered that most of these errors occur in the presence of a harmonic signal, in which most of the energy is concentrated above the fifth-order harmonics, i.e., in the case of musical instruments characterized by a spectral timbre considerably different from the one of singing voice."
-
SPICE is self-supervised. Since people find relative pitch easier than absolute pitch, its encoder is fed two versions of the same signal, one pitch-shifted by a random but known amount, and trained so that the difference between its two scalar outputs is proportional to the shift; it thus learns relative pitch without labels.
"Specifically, we rely on self-supervision, i.e., we define an auxiliary task (also known as a pretext task) which can be learned in a completely unsupervised way. To devise this task, we started from the observation that for humans, including professional musicians, it is typically much easier to estimate relative pitch, related to the frequency interval between two notes, than absolute pitch, related to the actual fundamental frequency [15]. ... we feed two versions of the same signal to the encoder, one being a pitch shifted version of the other by a random but known amount. Then, we devise a loss function that forces the difference between the scalar embeddings to be proportional to the known difference in pitch. Upon convergence, the model is able to estimate relative pitch, solely relying on self-supervision."
-
Trained on MIR-1k with backing tracks mixed in, SPICE kept 81.6% raw pitch accuracy with backing at 0 dB signal-to-noise ratio, against 80.8% for full CREPE and 27.2% for SWIPE.
"To handle background music, we repeated training on MIR-1k, but this time applying data augmentation by mixing in backing tracks with a SNR uniformly sampled from [-5dB, 25dB]. ... SWIPE - - 86.6% 84.3% 69.5% 27.2% ... CREPE full 22.2M many 90.1% 90.4% 89.7% 80.8% ... SPICE 2.38M MIR-1k + augm. 91.4% ± 0.1% 91.2% ± 0.1% 90.0% ± 0.1% 81.6% ± 0.6%"
-
SPICE was developed at Google Research and released as a TensorFlow Hub module.
"All authors are with Google Research. ... The SPICE model is publicly available as a Tensorflow Hub module"
-
Trained without labels on SingingVoices, SPICE (2.38 million parameters) reached raw pitch accuracy of 90.6% on MIR-1k, against 90.1% to 90.7% for CREPE and 86.6% for SWIPE; on MDB-stem-synth it reached 89.1%, against 92.7% to 93.1% for CREPE and 90.7% for SWIPE. A 180,000-parameter version reached 90.4% and 87.9%.
"SWIPE - - 86.6% - 90.7% ... CREPE tiny 487k many 90.7% 88.9% 93.1% ... CREPE full 22.2M many 90.1% 84.6% 92.7% ... SPICE 2.38M SingingVoices 90.6% ± 0.1% 86.8% 89.1% ± 0.4% ... SPICE 180k SingingVoices 90.4% ± 0.1% 90.5% 87.9% ± 0.9%"
-
Before CREPE, machine learning had not beaten hand-crafted pitch estimators because annotated data at the needed time and frequency resolution was lacking; CREPE reached state-of-the-art results using a dataset made by resynthesizing monophonic tracks to a known fundamental frequency.
"Until recently, machine learning methods had not been able to outperform hand-crafted signal processing pipelines targeting pitch estimation. This was due to the lack of annotated data, which is particularly tedious and difficult to obtain at the temporal and frequency resolution required to train fully supervised models. To overcome these limitations, a synthetically generated dataset was proposed in [13], obtained by re-synthesizing monophonic music tracks while setting the fundamental frequency to the target ground truth. Using this training data, the CREPE algorithm [14] was able to achieve state-of-the-art results"
Available in