CITATION — REFERENCE ENTRY

PYIN: A fundamental frequency estimator using probabilistic threshold distributions — 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)

Revision 13808b10-2ca2-41db-9865-7dc5e9f5b440 · 11/26/2026, 6:29:06 PM UTC
Key
mauch2014-pyin
Authors
Mauch, Matthias; Dixon, Simon
Issued
2014-5
Type
paper-conference
Container
2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)
Pages
659-663
Raw CSL JSON
{
  "DOI": "10.1109/ICASSP.2014.6853678",
  "URL": "https://webspace.eecs.qmul.ac.uk/s.e.dixon/pub/2014/MauchDixon-PYIN-ICASSP2014.pdf",
  "note": "Quotes are from the authors' copy hosted by Queen Mary University of London; locators are the proceedings pages (659 to 663).",
  "page": "659-663",
  "type": "paper-conference",
  "title": "PYIN: A fundamental frequency estimator using probabilistic threshold distributions",
  "author": [
    {
      "given": "Matthias",
      "family": "Mauch"
    },
    {
      "given": "Simon",
      "family": "Dixon"
    }
  ],
  "issued": {
    "date-parts": [
      [
        2014,
        5
      ]
    ]
  },
  "container-title": "2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)"
}

Claims

  1. pYIN (probabilistic YIN) modifies YIN, which outputs one estimate per frame so that later smoothing cannot fall back on alternatives. pYIN outputs several pitch candidates with probabilities, derived from a prior distribution over YIN's threshold, and uses them as observations in a hidden Markov model decoded with the Viterbi algorithm.
    "We propose the Probabilistic YIN (PYIN) algorithm, a modification of the well-known YIN algorithm for fundamental frequency (F0) estimation. ... One shortcoming of YIN is that such post-processing cannot fall back on alternative interpretations of the signal because the method outputs precisely one estimate per frame. To address this problem we modify YIN to output multiple pitch candidates with associated probabilities (PYIN Stage 1). These probabilities arise naturally from a prior distribution on the YIN threshold parameter. We use these probabilities as observations in a hidden Markov model, which is Viterbi-decoded to produce an improved pitch track (PYIN Stage 2)."
    Locator: page: 659 · Quote language: en
  2. The probability mass not assigned to any candidate can be read as the probability that the frame is unvoiced. In many cases some YIN threshold gives the correct pitch even when the usual one does not. Ordinary YIN's estimate is always among pYIN's candidates, and the candidate set always had higher pitch recall than any single YIN setting.
    "The remaining probability mass can be interpreted as the probability that the frame is unvoiced. ... The conventional Yin estimate is among the candidates, i.e. PYIN covers at least as many true fundamental frequencies as the original YIN. This last point is the main motivation for our method. In the original YIN algorithm, once an estimate is erroneous, the true value cannot be recovered. Our modification is based on ... the observation that in many cases there exists an unknown threshold for which YIN will output the correct pitch ... PYIN's set of candidates always has a higher pitch recall than any YIN parametrisation."
    Locator: page: 660-661 · Quote language: en
  3. pYIN's hidden Markov model divides 55 Hz to just under 880 Hz into 480 pitch bins of 10 cents, each with a voiced and an unvoiced state; transitions favour smooth pitch tracks and few voicing changes, and a pitch can move at most 25 bins (2.5 semitones) per frame.
    "We divide the pitch space into M = 480 bins ranging over four octaves from 55Hz (A1) to just under 880Hz (A5) in steps of 10 cents (0.1 semitones). ... We use this idea but develop a more realistic HMM with one voiced (v = 1) and one unvoiced (v = 0) state per pitch ... Transition probabilities in this model have two main purposes: to favour natural (smooth) pitch tracks over discontinuous ones, and to favour few changes between unvoiced and voiced states. ... a pitch jump can be at most 25 'bins', which corresponds to 2.5 semitones per frame."
    Locator: page: 661 · Quote language: en
  4. Estimating F0 from monophonic voice recordings is a prerequisite for comprehensive analysis of intonation in speech and singing.
    "The estimation of the fundamental frequency (F0) from monophonic human voice signals is a prerequisite to comprehensive analysis of intonation in speech [1] and singing [2]."
    Locator: page: 659 · Quote language: en
  5. YIN with smoothing but a single threshold had the best precision because it marked fewer frames voiced; pYIN gave the best trade-off of precision and recall by F-score.
    "Note that the YIN+S methods have the best precision, by virtue of recognising fewer frames as voiced. The optimum tradeoff between precision and recall as measured by the F score ... is obtained by using the proposed PYIN algorithm with a Beta parameter distribution"
    Locator: page: 662 · Quote language: en
  6. pYIN adds little computation to YIN, and its authors released it as an open-source C++ library for Vamp hosts.
    "The additional computational complexity of PYIN over YIN is low. We make the method freely available online ... as an open source C++ library for Vamp hosts."
    Locator: page: 659 · Quote language: en
  7. pYIN's median recall (0.977 to 0.984 across its three threshold distributions, counting a frame correct within one semitone) came close to the 0.98 bound of its candidate set, against medians below 0.951 for plain YIN; it had octave error rates of 0.5% to 1.7% and voicing detection recall of 92.5% to 95.0%.
    "We follow [10] and accept a frame as correctly tracked if the estimate is within one semitone of the true frequency. ... The PYIN median recall values (0.977, 0.982, 0.984) approach much more closely the upper bound given by the number of correct pitches covered by the full candidate set (0.98) than any of the conventional YIN methods (medians all below 0.951). ... The PYIN methods also provide excellent robustness against octave errors (0.5%, 0.9% and 1.7%, respectively) and very good voicing detection recall (92.5%, 94.1% and 95.0%) and specificity (91.9%, 90.6% and 88.9%)."
    Locator: page: 661-662 · Quote language: en
  8. Because pYIN is parametrised by a distribution of thresholds, it is more robust to the choice of distribution than YIN is to its choice of threshold.
    "Since PYIN is parametrised by a distribution of YIN thresholds, the algorithm is more robust to choice of distribution than YIN is to its choice of threshold."
    Locator: page: 662 · Quote language: en
  9. On a recording of a female singer, YIN made many octave errors in the last notes of 'Happy Birthday', perhaps because of her breathy timbre, while pYIN tracked them correctly.
    "The recording was sung by a female singer for a study on singing intonation [14]. While the first two notes (up to 59 seconds) are tracked almost perfectly by both pitch trackers, many octave errors occur in the YIN pitch track. This may have been caused by the unusual breathy timbre of the singer. PYIN is robust to these errors and extracts the correct pitch track."
    Locator: page: 662 · Quote language: en
  10. pYIN was evaluated on singing synthesised from the F0 tracks of the 100 popular-music songs of the RWC Music Database, in original form and with five kinds of degradation, over 30 hours in all; frames were 2048 samples (46.4 ms) with a 256-sample (5.8 ms) step.
    "We synthesised singing from the F0 pitch tracks available with the RWC Music Database [12] ... The tracks cover the 100 full-length songs of the popular music subsection of the database. In order to simulate a more realistic situation without such clean data, we degraded the audio using five presets of the Audio Degradation Toolbox (ADT [13]) in addition to the original wav files. The complete data comprises in excess of 30 hours of audio. ... All methods are run in a Vamp plugin implementation with a step size of 256 (5.8ms) and a frame size of 2048 (46.4ms)."
    Locator: page: 661 · Quote language: en
  11. Instead of a single threshold (usually 0.1 or 0.15), pYIN uses a distribution over 100 thresholds from 0.01 to 1; the experiments used Beta distributions with means 0.1, 0.15 and 0.2.
    "This is done by picking the smallest period τ for which d′ has a local minimum and d′(τ) < s for a fixed threshold s (usually s = 0.1 or s = 0.15). ... we propose to abandon the use of a single absolute threshold and instead use a prior parameter distribution ... We use thresholds ranging from 0.01 to unity in steps of 0.01, i.e. N = 100. The distributions used in our experiments are Beta distributions with means 0.1, 0.15, 0.2"
    Locator: page: 660 · Quote language: en
  12. YIN gained popularity beyond speech processing, especially in the analysis of singing, where a comparative study found it state of the art and particularly good at fine pitch.
    "has gained popularity beyond the speech processing community, especially in the analysis of singing [8, 9]. Babacan et al. [10] provide an overview of the performance of F0 trackers on singing, in which YIN is shown to be state of the art, and particularly good at fine pitch recognition."
    Locator: page: 659 · Quote language: en
Available in