In
Fourier analysis
In mathematics, Fourier analysis () is the study of the way general functions may be represented or approximated by sums of simpler trigonometric functions. Fourier analysis grew from the study of Fourier series, and is named after Joseph Fo ...
, the cepstrum (; plural ''cepstra'', adjective ''cepstral'') is the result of computing the
inverse Fourier transform
In mathematics, the Fourier inversion theorem says that for many types of functions it is possible to recover a function from its Fourier transform. Intuitively it may be viewed as the statement that if we know all frequency#Frequency_of_waves, fr ...
(IFT) of the
logarithm
In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
of the estimated
signal spectrum. The method is a tool for investigating periodic structures in
frequency
Frequency is the number of occurrences of a repeating event per unit of time. Frequency is an important parameter used in science and engineering to specify the rate of oscillatory and vibratory phenomena, such as mechanical vibrations, audio ...
spectra. The ''power cepstrum'' has applications in the analysis of
human speech.
The term ''cepstrum'' was derived by reversing the first four letters of ''spectrum''. Operations on cepstra are labelled ''quefrency analysis'' (or ''quefrency alanysis
[B. P. Bogert, M. J. R. Healy, and J. W. Tukey, ''The Quefrency 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.]''), ''liftering'', or ''cepstral analysis''. It may be pronounced in the two ways given, the second having the advantage of avoiding confusion with ''kepstrum''.
Origin
The concept of the cepstrum was introduced in 1963 by B. P. Bogert, M. J. Healy, and
J. W. Tukey.
It serves as a tool to investigate periodic structures in frequency spectra.
Such effects are related to noticeable echos or
reflections in the signal, or to the occurrence of harmonic frequencies (
partials,
overtones
An overtone is any resonant frequency above the fundamental frequency of a sound. (An overtone may or may not be a harmonic) In other words, overtones are all pitches higher than the lowest pitch within an individual sound; the fundamental i ...
). Mathematically it deals with the problem of
deconvolution
In mathematics, deconvolution is the inverse of convolution. Both operations are used in signal processing and image processing. For example, it may be possible to recover the original signal after a filter (convolution) by using a deconvolution ...
of signals in the frequency space.
[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.
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 the letters in frequency, analysis, spectrum, and phase. The invented terms are defined in analogy to the older terms.
General definition
The cepstrum is the result of following sequence of mathematical operations:
*transformation of a
signal
A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology.
In ...
from the
time domain
In mathematics and signal processing, the time domain is a representation of how a signal, function, or data set varies with time. It is used for the analysis of mathematical functions, physical signals or time series of economic or environmental ...
to the
frequency domain
In mathematics, physics, electronics, control systems engineering, and statistics, the frequency domain refers to the analysis of mathematical functions or signals with respect to frequency (and possibly phase), rather than time, as in time ser ...
*computation of the logarithm of the spectral amplitude
*transformation to frequency domain, where the final independent variable, the quefrency, has a time scale.
Types
The cepstrum is used in many variants. Most important are:
* power cepstrum: The logarithm is taken from the "power spectrum"
* complex cepstrum: The logarithm is taken from the spectrum, which is calculated via Fourier analysis
The following abbreviations are used in the formulas to explain the cepstrum:
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:
:
:
which provides a relationship to the ''real cepstrum'' (see below).
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.
The real cepstrum is directly related to the power cepstrum:
:
It is derived from the complex cepstrum (defined below) by discarding the phase information (contained in the
imaginary part
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the form ...
of the
complex logarithm
In mathematics, a complex logarithm is a generalization of the natural logarithm to nonzero complex numbers. The term refers to one of the following, which are strongly related:
* A complex logarithm of a nonzero complex number z, defined to be ...
).
It has a focus on periodic effects in the amplitudes of the spectrum:
:
Complex cepstrum
The complex cepstrum was defined by Oppenheim in his development of homomorphic system theory.
[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).] 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
The natural logarithm of a number is its logarithm to the base of a logarithm, base of the e (mathematical constant), mathematical constant , which is an Irrational number, irrational and Transcendental number, transcendental number approxima ...
with base ''e'':
:
:
Therefore: The complex cepstrum can be also written as:
[R.B. Randall:]
"A history of cepstrum analysis and its application to mechanical problems"
(PDF) in: Mechanical Systems and Signal Processing, Volume 97, December 2017 (Elsevier).
:
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:
:
where ''b'' is the base of the used logarithm.
Main application is the modification of the signal in the quefrency domain (liftering) as an analog operation to filtering in the spectral frequency domain.
An example is the suppression of echo effects by suppression of certain quefrencies.
The phase cepstrum (after
phase spectrum) is related to the complex cepstrum as
: phase spectrum = (complex cepstrum − time reversal of complex cepstrum)
2.
Related concepts
The
independent variable
A variable is considered dependent if it depends on (or is hypothesized to depend on) an independent variable. Dependent variables are studied under the supposition or demand that they depend, by some law or rule (e.g., by a mathematical function ...
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
In mathematics and signal processing, the time domain is a representation of how a signal, function, or data set varies with time. It is used for the analysis of mathematical functions, physical signals or time series of economic or environmental ...
. 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 the fundamental frequency.
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.
The autocepstrum is defined as the cepstrum of the
autocorrelation
Autocorrelation, sometimes known as serial correlation in the discrete time case, measures the correlation of a signal with a delayed copy of itself. Essentially, it quantifies the similarity between observations of a random variable at differe ...
. The autocepstrum is more accurate than the cepstrum in the analysis of data with echoes.
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
A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filt ...
in the
frequency domain
In mathematics, physics, electronics, control systems engineering, and statistics, the frequency domain refers to the analysis of mathematical functions or signals with respect to frequency (and possibly phase), rather than time, as in time ser ...
. 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.
Interpretation
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
earthquake
An earthquakealso called a quake, tremor, or tembloris the shaking of the Earth's surface resulting from a sudden release of energy in the lithosphere that creates seismic waves. Earthquakes can range in intensity, from those so weak they ...
s and
bomb
A bomb is an explosive weapon that uses the exothermic reaction of an explosive material to provide an extremely sudden and violent release of energy. Detonations inflict damage principally through ground- and atmosphere-transmitted mechan ...
explosions. It has also been used to determine the fundamental frequency of human speech and to analyze
radar
Radar is a system that uses radio waves to determine the distance ('' ranging''), direction ( azimuth and elevation angles), and radial velocity of objects relative to the site. It is a radiodetermination method used to detect and track ...
signal returns. Cepstrum pitch determination is particularly effective because the effects of the vocal excitation (pitch) and
vocal tract
The vocal tract is the cavity in human bodies and in animals where the sound produced at the sound source (larynx in mammals; syrinx in birds) is filtered.
In birds, it consists of the trachea, the syrinx, the oral cavity, the upper part of t ...
(formants) are additive in the logarithm of the power spectrum and thus clearly separate.
[
The cepstrum is a representation used in homomorphic signal processing, to convert signals combined by ]convolution
In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions f and g that produces a third function f*g, as the integral of the product of the two ...
(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 mel scale (after the word ''melody'')
is a perceptual scale of pitches judged by listeners to be equal in distance from one another. The reference point between this scale and normal frequency measurement is defined by assigning a percept ...
. 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 cord
In humans, the vocal cords, also known as vocal folds, are folds of throat tissues that are key in creating sounds through vocalization. The length of the vocal cords affects the pitch of voice, similar to a violin string. Open when breathing a ...
s and the formant
In speech science and phonetics, a formant is the broad spectral maximum that results from an acoustic resonance of the human vocal tract. In acoustics, a formant is usually defined as a broad peak, or local maximum, in the spectrum. For harmo ...
filtering of the vocal tract
The vocal tract is the cavity in human bodies and in animals where the sound produced at the sound source (larynx in mammals; syrinx in birds) is filtered.
In birds, it consists of the trachea, the syrinx, the oral cavity, the upper part of t ...
, which convolve in the time domain
In mathematics and signal processing, the time domain is a representation of how a signal, function, or data set varies with time. It is used for the analysis of mathematical functions, physical signals or time series of economic or environmental ...
and multiply in the frequency domain
In mathematics, physics, electronics, control systems engineering, and statistics, the frequency domain refers to the analysis of mathematical functions or signals with respect to frequency (and possibly phase), rather than time, as in time ser ...
, are additive and in different regions in the quefrency domain.
Note that a pure sine wave
A sine wave, sinusoidal wave, or sinusoid (symbol: ∿) is a periodic function, periodic wave whose waveform (shape) is the trigonometric function, trigonometric sine, sine function. In mechanics, as a linear motion over time, this is ''simple ...
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 (such as the sum of at least two sines where the second sine is some harmonic (multiple) of the first sine, or better, a signal with a square or triangle waveform, as such signals provide many overtones in the spectrum.).
An important property of the cepstral domain is that the convolution
In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions f and g that produces a third function f*g, as the integral of the product of the two ...
of two signals can be expressed as the addition of their complex cepstra:
:
Applications
The concept of the cepstrum has led to numerous applications:
* dealing with reflection inference (radar, sonar applications, earth seismology)
* estimation of speaker fundamental frequency (pitch)
* speech analysis and recognition
* medical applications in analysis of electroencephalogram (EEG) and brain waves
* machine vibration analysis based on harmonic patterns (gearbox faults, turbine blade failures, ...)[R.B. Randall: Cepstrum Analysis and Gearbox Fault Diagnosis, Brüel&Kjaer Application Notes 233-80, Edition 2](_blank)
(PDF)
Recently, cepstrum-based deconvolution was used on surface electromyography signals, to remove the effect of the stochastic impulse train, which originates an sEMG signal, from the power spectrum of the sEMG signal itself. In this way, only information about the motor unit action potential (MUAP) shape and amplitude was maintained, which was then used to estimate the parameters of a time-domain model of the MUAP itself.[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.]
A short-time cepstrum analysis was proposed by Schroeder and Noll in the 1960s for application to pitch determination of human speech.[
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.]
References
Further reading
*
* {{cite journal , last1=Oppenheim , first1=A.V. , last2=Schafer , first2=R.W. , title=Dsp history - From frequency to quefrency: a history of the cepstrum , journal=IEEE Signal Processing Magazine , publisher=Institute of Electrical and Electronics Engineers (IEEE) , volume=21 , issue=5 , year=2004 , issn=1053-5888 , doi=10.1109/msp.2004.1328092 , pages=95–106, bibcode=2004ISPM...21...95O , s2cid=1162306
*
Speech Signal Analysis
*
, www.advsolned.com
*
A tutorial on Cepstrum and LPCCs
Frequency-domain analysis
Signal processing