Cepstrum
A cepstrum (/ˈkɛpstrʌm,
The name "cepstrum" was derived by reversing the first four letters of "spectrum". Operations on cepstra are labelled quefrency analysis (aka quefrency alanysis[1]), liftering, or cepstral analysis.
Contents
Origin and definition[edit]
The power cepstrum was defined in a 1963 paper by Bogert et al.[1] The power cepstrum of a signal is defined as the squared magnitude of the inverse Fourier transform of the logarithm of the squared magnitude of the Fourier transform of a signal:[2]
References to the Bogert paper, in a bibliography, are often edited incorrectly. The terms quefrency, alanysis, cepstrum and saphe were invented by the authors by rearranging some letters in frequency, analysis, spectrum and phase. The new invented terms are defined by analogies to the older terms. Unfortunately, editors unfamiliar with signal processing often change the invented words back to their originals.
- power cepstrum of signal
A short-time cepstrum analysis was proposed by Schroeder and Noll for application to pitch determination of human speech.[3][4][5]
The complex cepstrum was defined by Oppenheim in his development of homomorphic system theory[6][7] and is defined as the inverse Fourier transform of the logarithm (with unwrapped phase) of the Fourier transform of the signal:
- complex cepstrum of signal = IFT(log(FT(the signal)) + j2πm),
where m is the integer required to properly unwrap the angle or imaginary part of the complex log function. It is also sometimes called the spectrum of a spectrum.
The real cepstrum uses the logarithm function defined for real values. The real cepstrum is related to the power by the relationship
- 4(real cepstrum)2 = power cepstrum
and to the complex cepstrum as
- real cepstrum = 0.5 × (complex cepstrum + time reversal of complex cepstrum).
The complex cepstrum uses the complex logarithm function defined for complex values. The phase cepstrum is related to the complex cepstrum as
- phase spectrum = (complex cepstrum − time reversal of complex cepstrum)2.
The complex cepstrum holds information about magnitude and phase of the initial spectrum, allowing the reconstruction of the signal. The real cepstrum uses only the information of the magnitude of the spectrum.
Many texts define the process as FT → abs() → log → IFT, i.e., that the cepstrum is the "inverse Fourier transform of the log-magnitude Fourier spectrum".[8][9] (the difference between squaring or taking the absolute value amounts to an overall factor of 2).
The kepstrum, which stands for "Kolmogorov-equation power-series time response", is similar to the cepstrum and has the same relation to it as expected value has to statistical average, i.e. cepstrum is the empirically measured quantity, while kepstrum is the theoretical quantity. It was in use before the cepstrum.[10][11]
Applications[edit]
The cepstrum can be seen as information about the rate of change in the different spectrum bands. It was originally invented for characterizing the seismic echoes resulting from earthquakes and bomb explosions. It has also been used to determine the fundamental frequency of human speech and to analyze radar signal returns. Cepstrum pitch determination is particularly effective because the effects of the vocal excitation (pitch) and vocal tract (formants) are additive in the logarithm of the power spectrum and thus clearly separate.[5]
The autocepstrum is defined as the cepstrum of the autocorrelation. The autocepstrum is more accurate than the cepstrum in the analysis of data with echoes.
The cepstrum is a representation used in homomorphic signal processing, to convert signals combined by convolution (such as a source and filter) into sums of their cepstra, for linear separation. In particular, the power cepstrum is often used as a feature vector for representing the human voice and musical signals. For these applications, the spectrum is usually first transformed using the mel scale. The result is called the mel-frequency cepstrum or MFC (its coefficients are called mel-frequency cepstral coefficients, or MFCCs). It is used for voice identification, pitch detection and much more. The cepstrum is useful in these applications because the low-frequency periodic excitation from the vocal cords and the formant filtering of the vocal tract, which convolve in the time domain and multiply in the frequency domain, are additive and in different regions in the quefrency domain.
Recently cepstrum based deconvolution was used to remove the effect of the stochastic impulse trains, which originates the sEMG signal, from the power spectrum of sEMG signal itself. In this way, only information on motor unit action potential (MUAP) shape and amplitude were maintained, and then, used to estimate the parameters of a time-domain model of the MUAP itself.[12]
Cepstral concepts[edit]
The independent variable of a cepstral graph is called the quefrency.[13] The quefrency is a measure of time, though not in the sense of a signal in the time domain. For example, if the sampling rate of an audio signal is 44100 Hz and there is a large peak in the cepstrum whose quefrency is 100 samples, the peak indicates the presence of a pitch that is 44100/100 = 441 Hz. This peak occurs in the cepstrum because the harmonics in the spectrum are periodic, and the period corresponds to the pitch. Note that a pure sine wave should not be used to test the cepstrum for its pitch determination from quefrency as a pure sine wave does not contain any harmonics. Rather, a test signal containing harmonics should be used (such as the sum of at least two sines where the second sine is some harmonic (multiple) of the first sine).
Liftering[edit]
Playing further on the anagram theme, a filter that operates on a cepstrum might be called a lifter. A low-pass lifter is similar to a low-pass filter in the frequency domain. It can be implemented by multiplying by a window in the quefrency domain and then converting back to the frequency domain, resulting in a smoother signal.
Convolution[edit]
A very important property of the cepstral domain is that the convolution of two signals can be expressed as the addition of their complex cepstra:
References[edit]
- ^ a b B. P. Bogert, M. J. R. Healy, and J. W. Tukey: "The Quefrency Alanysis [sic] of Time Series for Echoes: Cepstrum, Pseudo Autocovariance, Cross-Cepstrum and Saphe Cracking". Proceedings of the Symposium on Time Series Analysis (M. Rosenblatt, Ed) Chapter 15, 209-243. New York: Wiley, 1963.
- ^ Norton, Michael Peter; Karczub, Denis (November 17, 2003). Fundamentals of Noise and Vibration Analysis for Engineers. Cambridge University Press. ISBN 0-521-49913-5.
- ^ A. Michael Noll and Manfred R. Schroeder, "Short-Time 'Cepstrum' Pitch Detection," (abstract) Journal of the Acoustical Society of America, Vol. 36, No. 5, p. 1030
- ^ A. Michael Noll (1964), “Short-Time Spectrum and Cepstrum Techniques for Vocal-Pitch Detection”, Journal of the Acoustical Society of America, Vol. 36, No. 2, pp. 296–302.
- ^ a b A. Michael Noll (1967), “Cepstrum Pitch Determination”, Journal of the Acoustical Society of America, Vol. 41, No. 2, pp. 293–309.
- ^ A. V. Oppenheim, "Superposition in a class of nonlinear systems" Ph.D. diss., Res. Lab. Electronics, M.I.T. 1965.
- ^ A. V. Oppenheim, R. W. Schafer, "Digital Signal Processing", 1975 (Prentice Hall).
- ^ Curtis Roads (February 27, 1996). The computer music tutorial. MIT Press. ISBN 978-0-262-68082-0.
- ^ John G. Proakis; Dimitris G. Manolakis (2007). Digital signal processing. Pearson Prentice Hall. ISBN 978-0-13-187374-2.
- ^ "Predictive decomposition of time series with applications to seismic exploration", E. A. Robinson MIT report 1954; Geophysics 1967 vol. 32, pp. 418–484; "Use of the kepstrum in signal analysis", M. T. Silvia and E. A. Robinson, Geoexploration, volume 16, issues 1–2, April 1978, pages 55–73.
- ^ "A kepstrum approach to filtering, smoothing and prediction with application to speech enhancement", T. J. Moir and J. F. Barrett, Proc. Royal Society A, vol. 459, 2003, pp. 2957–2976.
- ^ G. Biagetti, P. Crippa, S. Orcioni, and C. Turchetti, “Homomorphic deconvolution for muap estimation from surface emg signals,” IEEE Journal of Biomedical and Health Informatics, vol. 21, no. 2, pp. 328– 338, March 2017.
- ^ Steinbuch, Karl W.; Weber, Wolfgang; Heinemann, Traute, eds. (1974) [1967]. Taschenbuch der Informatik - Band III - Anwendungen und spezielle Systeme der Nachrichtenverarbeitung. Taschenbuch der Nachrichtenverarbeitung (in German). 3 (3 ed.). Berlin, Germany: Springer Verlag. pp. 272–274. ISBN 3-540-06242-4. LCCN 73-80607.
Further reading[edit]
- D. G. Childers, D. P. Skinner, R. C. Kemerait, "The Cepstrum: A Guide to Processing", Proceedings of the IEEE, Vol. 65, No. 10, October 1977, pp. 1428–1443.
- "Speech Signal Analysis"
- "Speech analysis: Cepstral analysis vs. LPC", www.advsolned.com
- "A tutorial on Cepstrum and LPCCs"
- Alan V. Oppenheim and Ronald W. Schafer, "From Frequency to Quefrency: A History of the Cepstrum", IEEE SIGNAL PROCESSING MAGAZINE, Sep. 2004, pp. 95–99