Cepstrum


The cepstrum is the result of a mathematical transformation in the field of Fourier Analysis. The concept was introduced 1963 in an article of Bogert, Healy, and Tukey. It serves as a tool to investigate periodic structures within frequency spectra. Such effects are related i.e. to noticeable echos/reflections in the signal or to the occurrence of harmonic frequencies. Mathematically it deals with the problem of deconvolution of signals in the frequency space.
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.
Thus: The name cepstrum was derived by reversing the first four letters of "spectrum". Operations on cepstra are labelled quefrency analysis, liftering, or cepstral analysis.
It may be pronounced in the two ways given, the second having the advantage of avoiding confusion with "kepstrum", which also exists.
The cepstrum is the result of following sequence of mathematical operations:
  1. transformation of a signal from time domain to frequency domain
  2. log of the spectral amplitudes
  3. transformation to quefrency domain, where the final independent variable, the quefrency, has actually a time scale.
The concept of the cepstrum has led to a large number of applications:
The cepstrum is used in many variants. Most important are:
There exist more variants, but they are not explained in detail within this page.

Abbreviations

Following abbreviations are used in the formulas to explain the cepstrum in more detail:
AbbreviationExplanation
Signal, which is a function of time
Cepstrum
Fourier transform: The abbreviation can stand i.e. for a continuous fourier transform, a discrete fourier transform or even a z-transform, as the z-transform is a generalization of the DFT.
Inverse of the fourier transform
Power spectrum
Logarithm of x. The choice of the base b depends on the user. In some articles the base is not specified, others prefer base 10 or e. The choice of the base has not impact on the basic calculation rules, but sometimes base e leads to simplifications.
Absolute value, or magnitude of a complex value, which is calculated from real- and imaginary part using the Pythagorean theorem.
Phase angle of a complex value

Power cepstrum

The "cepstrum" was originally defined as "power cepstrum" by the following relationship:
The power cepstrum has main applications in analysis of sound and vibration signals. It is a complementary tool to spectral analysis.
Sometimes it is also defined as:
Due to this formula, the cepstrum is also sometimes called the spectrum of a spectrum. It can be shown that both formulas are consistent with each other as the frequency spectral distribution remains the same, the only difference being a scaling factor which can be applied afterwards. Some articles prefer the second formula.
Other notations are possible due to the fact, that the log of the power spectrum is equal to the log of the spectrum, if a scaling factor 2 is applied:
and therefore:
Further, it shall be noted, that the final squaring operation in the formula for the power spectrum is sometimes called unnecessary and therefore sometimes omitted.

Complex cepstrum

The complex cepstrum was defined by Oppenheim in his development of homomorphic system theory. The formula is provided also in other literature.
As is complex the log-term can be also written with as a product of magnitude and phase, and subsequently as a sum. Further simplification is obvious, if log is a natural logarithm with base e:
Therefore: The complex cepstrum can be also written as:
The complex cepstrum retains the information about the phase. Thus it is always possible to return from the quefrency domain to the time domain by the inverse operation:
Main application is the modification of the signal in the quefrency domain as an analog operation to filtering in the spectral frequency domain. An example is the suppression of echo effects by suppression of certain quefrencies.

Real cepstrum

The real cepstrum is derived from the complex cepstrum by setting the phase of the spectrum to zero. It has a focus on periodic effects in the amplitudes of the spectrum:
Thus, it is also directy related to the power spectrum, as :

Other definitions related to "cepstrum"

A short-time cepstrum analysis was proposed by Schroeder and Noll for application to pitch determination of human speech.
The phase cepstrum is related to the complex cepstrum as
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.

Applications

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 and vocal tract 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 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. 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 an sEMG signal, from the power spectrum of sEMG signal itself. In this way, only information on motor unit action potential shape and amplitude were maintained, and then, used to estimate the parameters of a time-domain model of the MUAP itself.

Cepstral concepts

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 fundamental frequency 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 fundamental frequency, since harmonics are integer multiples of said fundamental frequency.
Note that a pure sine wave can not be used to test the cepstrum for its pitch determination from quefrency as a pure sine wave does not contain any harmonics and does not lead to quefrency peaks. Rather, a test signal containing harmonics should be used.

Filtering

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 modified signal, i.e. with signal echo being reduced.

Convolution

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: