CITATION — REFERENCE ENTRY

YIN, a fundamental frequency estimator for speech and music — The Journal of the Acoustical Society of America

Revision e96ebb23-c979-47a9-8b9a-a40ae71d8701 · 11/26/2026, 6:29:05 PM UTC
Key
decheveigne2002-yin
Authors
de Cheveigné, Alain; Kawahara, Hideki
Issued
2002-4
Type
article-journal
Container
The Journal of the Acoustical Society of America
Volume
111
Issue
4
Pages
1917-1930
Raw CSL JSON
{
  "DOI": "10.1121/1.1458024",
  "URL": "https://doi.org/10.1121/1.1458024",
  "note": "Quotes were checked against a copy of the published article hosted at IMT (cagnazzo.wp.imt.fr); locators are the journal's page numbers.",
  "page": "1917-1930",
  "type": "article-journal",
  "issue": "4",
  "title": "YIN, a fundamental frequency estimator for speech and music",
  "author": [
    {
      "given": "Alain",
      "family": "de Cheveigné"
    },
    {
      "given": "Hideki",
      "family": "Kawahara"
    }
  ],
  "issued": {
    "date-parts": [
      [
        2002,
        4
      ]
    ]
  },
  "volume": "111",
  "container-title": "The Journal of the Acoustical Society of America"
}

Claims

  1. YIN estimates the fundamental frequency of speech or musical sounds; it starts from the autocorrelation method and adds modifications that together prevent errors. Its error rates were about three times lower than the best competing methods on speech recorded with a laryngograph, and it has no upper limit on its frequency search range.
    "An algorithm is presented for the estimation of the fundamental frequency (F0) of speech or musical sounds. It is based on the well-known autocorrelation method with a number of modifications that combine to prevent errors. The algorithm has several desirable features. Error rates are about three times lower than the best competing methods, as evaluated over a database of speech recorded together with a laryngograph signal. There is no upper limit on the frequency search range, so the algorithm is suited for high-pitched voices and music."
    Locator: page: 1917 · Quote language: en
  2. The autocorrelation method picks the highest non-zero-lag peak of the autocorrelation function within a range of lags; set the lower limit too close to zero and it may pick the zero-lag peak, set the upper limit too high and it may pick a peak at a multiple of the period.
    "In response to a periodic signal, the ACF shows peaks at multiples of the period. The "autocorrelation method" chooses the highest non-zero-lag peak by exhaustive search within a range of lags (horizontal arrows in Fig. 1). Obviously if the lower limit is too close to zero, the algorithm may erroneously choose the zero-lag peak. Conversely, if the higher limit is large enough, it may erroneously choose a higher-order peak."
    Locator: page: 1918 · Quote language: en
  3. F0 estimation is used in speech prosody and tonal-language analysis, in musical applications such as automatic score transcription and real-time interactive systems, in other signal processing methods, and as metadata for multimedia indexing; imperfect reliability has limited these applications.
    "Speech F0 variations contribute to prosody, and in tonal languages they help distinguish lexical categories. ... Several musical applications need F0 estimation, such as automatic score transcription or real-time interactive systems, but here again the imperfect reliability of available methods is an obstacle. F0 is a useful ingredient for a variety of signal processing methods ... Finally, a fairly recent application of F0 is as metadata for multimedia content indexing."
    Locator: page: 1917 · Quote language: en
  4. The third step divides each value of the difference function by its average over shorter lags; the result starts at 1, stays high at short lags and dips below 1 only where the difference falls below average, which reduces too-high errors and removes the need for an upper frequency limit.
    "This new function is obtained by dividing each value of the old by its average over shorter-lag values. It differs from d(τ) in that it starts at 1 rather than 0, tends to remain large at low lags, and drops below 1 only where d(τ) falls below average [Fig. 3(b)]. Replacing d by d′ reduces "too high" errors, as reflected by an error rate of 1.69% (instead of 1.95%). A second benefit is to do away with the upper frequency limit of the search range, no longer needed to avoid the zero-lag dip."
    Locator: page: 1920 · Quote language: en
  5. The evaluation used five databases with 1.9 hours of speech from 48 speakers (24 male, 24 female) of Japanese, English and French, each recorded with a laryngograph.
    "The five databases comprised a total of 1.9 h of speech, of which 48% were labeled as regularly voiced. They were produced by 48 speakers (24 male, 24 female) of Japanese (30), English (14), and French (4). Each included a laryngograph waveform recorded together with the speech."
    Locator: page: 1927 · Quote language: en
  6. YIN's second step replaces the autocorrelation with a difference function, the squared difference between the signal and a delayed copy, which is zero at the period and its multiples; this alone cut the illustrative error rate from 10.0% to 1.95%.
    "Conversely, an unknown period may be found by forming the difference function ... and searching for the values of τ for which the function is zero. There is an infinite set of such values, all multiples of the period. ... Indeed, the error rate fell to 1.95% for the difference function from 10.0% for unbiased autocorrelation (Table I)."
    Locator: page: 1919 · Quote language: en
  7. Estimates more than 20% from the laryngograph-derived value counted as gross errors. YIN had the lowest error rates on every database, about a third of the best competing method's on average; about 99% of its estimates were within 20%, 94% within 5% and about 60% within 1%.
    "When evaluating the candidate methods, values that differed by more than 20% from laryngograph-derived estimates were counted as "gross errors." ... YIN performs best of all methods over all the databases. Averaged over databases, error rates are smaller by a factor of about 3 with respect to the best competing method. Error rates depend on the tolerance level used to decide whether an estimate is correct or not. For YIN about 99% of estimates are accurate within 20%, 94% within 5%, and about 60% within 1%."
    Locator: page: 1921 · Quote language: en
  8. Because the threshold step can stop as soon as an acceptable candidate is found, YIN's latency can be reduced to the longest expected period plus the period found. The value of the normalized difference at the chosen period serves as a confidence measure; the MPEG-7 standard uses it so that F0 series down-sampled for multimedia indexing keep reliable rather than unreliable estimates.
    "Real-time applications such as interactive music tracking require low latency. ... step 4 allows calculations started at τ=0 to terminate as soon as an acceptable candidate is found, rather than to proceed over the full search range, so latency can be reduced to Tmax+T. ... The value d′(T) may be used as a confidence indicator (large values indicate that the F0 estimate is likely to be unreliable) ... Another application is in multimedia indexing, in which an F0 time series may have to be down-sampled to save space. The confidence measure allows down-sampling to be based on correct rather than incorrect estimates. This scheme is implemented in the MPEG7 standard"
    Locator: page: 1923 · Quote language: en
  9. YIN had been evaluated on music only informally; the authors expected its open search range and its independence from continuity constraints to help with music's wide range and fast F0 changes, and noted the lack of a well-labelled music database.
    "YIN has been only informally evaluated on music, but there are reasons to expect that it is appropriate for that task. Difficulties specific to music are the wide range and fast changes in F0. YIN's open-ended search range and the fact that it performs well without continuity constraints put it at an advantage over other algorithms. ... Evaluation on music is complicated by the wide range of instruments and styles to be tested and the lack of a well-labeled and representative database."
    Locator: page: 1927 · Quote language: en
  10. The name YIN, from yin and yang, alludes to the interplay between autocorrelation and cancellation in the method.
    "The name YIN (from "yin" and "yang" of oriental philosophy) alludes to the interplay between autocorrelation and cancellation that it involves."
    Locator: page: 1918 · Quote language: en
  11. YIN as published leaves out post-processing such as median smoothing or dynamic programming, and leaves out voicing detection, to keep its evaluation clear; the authors suggested its aperiodicity measure as a basis for voicing detection.
    "We avoided familiar postprocessing schemes such as median smoothing (Rabiner and Schafer, 1978) or dynamic programming (Ney, 1982; Hess, 1983), as including them complicates evaluation and credit assignment. Nothing prevents applying them to further improve the robustness of the method. ... The issue of voicing detection was also avoided, again because it greatly complicates evaluation and credit assignment. The aperiodicity measure d′τ seems a good basis for voicing detection"
    Locator: page: 1927 · Quote language: en
  12. Unlike other methods, YIN needs no upper limit on its search range, though it tends to fail above a quarter of the sampling rate; the authors expected this to suit musical applications with very high F0.
    "In contrast to other methods, YIN needs no upper limit (it tends, however, to fail for F0's beyond one quarter of the sampling rate). This should make it useful for musical applications in which F0 can become very high."
    Locator: page: 1921 · Quote language: en
  13. The fifth step fits a parabola to each local minimum and its neighbours, giving a period estimate finer than one sample; this is cheaper than upsampling the signal.
    "A solution to this problem is parabolic interpolation. Each local minimum of d′(τ) and its immediate neighbors is fit by a parabola, and the ordinate of the interpolated minimum is used in the dip-selection process. The abscissa of the selected minimum then serves as a period estimate. ... Interpolation of d′(τ) or d(τ) is computationally cheaper than upsampling the signal"
    Locator: page: 1920 · Quote language: en
  14. Pitch usually depends on fundamental frequency, with exceptions; over a wide range the two correspond one to one, so F0 estimation methods are often called pitch detection algorithms (PDA), following Hess (1983).
    "The subjective pitch of a sound usually depends on its fundamental frequency, but there are exceptions. ... However, over a wide range pitch and period are in a one-to-one relation, to the degree that the word "pitch" is often used in the place of F0, and F0 estimation methods are often referred to as "pitch detection algorithms," or PDA (Hess, 1983)."
    Locator: page: 1917 · Quote language: en
  15. The fundamental frequency of a periodic signal is the inverse of its period, the smallest positive time shift that leaves the signal unchanged; real speech and music depart from strict periodicity.
    "The fundamental frequency (F0) of a periodic signal is the inverse of its period, which may be defined as the smallest positive member of the infinite set of time shifts that leave the signal invariant. This definition applies strictly only to a perfectly periodic signal ... Interesting signals such as speech or music depart from periodicity in several ways, and the art of fundamental frequency estimation is to deal with them in a useful and consistent way."
    Locator: page: 1917 · Quote language: en
  16. The authors judged the cumulative mean normalization (step 3) probably the key to YIN's success, since it lets too-high and too-low errors be addressed independently.
    "The key to the success of YIN is probably step 3 that allows it to escape from the bias paradigm, so that the two types of error can be addressed independently."
    Locator: page: 1926 · Quote language: en
  17. The sixth step searches the neighbourhood of each analysis point for a better local estimate and then re-estimates within a restricted range, lowering the illustrative error rate from 0.77% to 0.5%; it bases its choice on quality rather than continuity.
    "Step 6 takes advantage of this fact, by "shopping" around the vicinity of each analysis point for a better estimate. ... Using Tmax=25 ms and a final search range of ±20% of the initial estimate, step 6 reduced the error rate to 0.5% (from 0.77%). Step 6 is reminiscent of median smoothing or dynamic programming techniques (Hess, 1983), but differs in that it takes into account a relatively short interval and bases its choice on quality rather than mere continuity."
    Locator: page: 1921 · Quote language: en
  18. A dip at a multiple of the period can be deeper than the dip at the period itself, causing a subharmonic (so-called octave) error; YIN's fourth step takes the smallest lag whose dip falls below an absolute threshold, or the global minimum if none does. With a threshold of 0.1 the illustrative error rate fell from 1.69% to 0.78%.
    "It easily happens that one of the higher-order dips of the difference function [Fig. 3(b)] is deeper than the period dip. If it falls within the search range, the result is a subharmonic error, sometimes called "octave error" (improperly because not necessarily in a power of 2 ratio with the correct value). ... The solution we propose is to set an absolute threshold and choose the smallest value of τ that gives a minimum of d′ deeper than that threshold. If none is found, the global minimum is chosen instead. With a threshold of 0.1, the error rate drops to 0.78% (from 1.69%)"
    Locator: page: 1920 · Quote language: en
  19. Autocorrelation for periodicity analysis goes back to Licklider (1951); steps 3 and 4 had earlier been applied to the average magnitude difference function by de Cheveigné, and parabolic interpolation was standard. New in YIN were step 6, the combination of steps, the analysis of why it works and the formal evaluation.
    "Autocorrelation was proposed for periodicity analysis by Licklider (1951) ... Steps 3 and 4 were applied to AMDF by de Cheveigné (1990) and de Cheveigné (1996), respectively. Step 5 (parabolic interpolation) is a standard technique ... New are step 6, the idea of combining steps as described, the analysis of why it all works, and most importantly the formal evaluation."
    Locator: page: 1927 · Quote language: en
Available in