A cepstrum (//) is the result of taking the Inverse Fourier transform (IFT) of the logarithm of the estimated spectrum of a signal. It may be pronounced in the two ways given, the second having the advantage of avoiding confusion with 'kepstrum' which also exists (see below). There is a complex cepstrum, a real cepstrum, a power cepstrum, and phase cepstrum. The power cepstrum in particular finds applications in the analysis of human speech.
The name "cepstrum" was derived by reversing the first four letters of "spectrum". Operations on cepstra are labelled quefrency analysis, liftering, or cepstral analysis.
Origin and definition
The power cepstrum was defined in a 1963 paper by Bogert et al. 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.
- power cepstrum of signal
The complex cepstrum was defined by Oppenheim in his development of homomorphic system theory and is defined as the Inverse Fourier transform of the logarithm (with unwrapped phase) of the Fourier transform of the signal. This is sometimes called the spectrum of a spectrum.
- 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)
The real cepstrum uses the logarithm function defined for real values. The real cepstrum is related to the power via the relationship (4 * real cepstrum)^2 = power cepstrum, and is related 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.
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.
The cepstrum can be seen as information about 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.
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 (such as a source and filter) combined by convolution 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.
The independent variable of a cepstral graph is called the quefrency. 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).
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 when converted back to the frequency domain, resulting in a smoother signal.
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:
- B. P. Bogert, M. J. R. Healy, and J. W. Tukey: "The Quefrency Alanysis 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. 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. dissertation), Res. Lab. Electronics, Massachusetts Institute of Technology, Cambridge, MA, 1965.
- 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.
- "Use of the kepstrum in signal analysis", M.T.Silvia and W.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
- 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"