Information
-
Patent Application
-
20030009332
-
Publication Number
20030009332
-
Date Filed
July 01, 200222 years ago
-
Date Published
January 09, 200321 years ago
-
CPC
-
US Classifications
-
International Classifications
Abstract
The invention relates to an apparatus and method of signal coding. An analysis-by-synthesis algorithm for sinusoidal modelling is used. An input signal to be modelled is divided in time to produce a plurality of frames. Functions from a dictionary are selected to form an approximation of the section of the input signal contained in each frame, with the selection carried out based on a psychoacoustic norm. In an embodiment of the method, the function dictionary is made up of complex exponentials and these are selected iteratively to make up the section of the input signal contained in each frame. The psychoacoustic norm adapts after each iteration according to the changing masking threshold of the residual signal to be modelled in the next step.
Description
[0001] The present invention relates to an apparatus for and a method of signal coding, in particular, but not exclusively to a method and apparatus for coding audio signals.
[0002] Sinusoidal modelling is a well-known method of signal coding. An input signal to be coded is divided into a number of frames, with the sinusoidal modelling technique being applied to each frame. Sinusoidal modelling of each frame involves finding a set of sinusoidal signals parameterised by amplitude, frequency, phase and damping coefficients to represent the portion of the input signal contained in that frame.
[0003] Sinusoidal modelling may involve picking spectral peaks in the input signal. Alternatively, analysis-by-synthesis techniques may be used. Typically, analysis-by-synthesis techniques comprise iteratively identifying and removing the sinusoidal signal of the greatest energy contained in the input frame. Algorithms for performing analysis-by-synthesis can produce an accurate representation of the input signal if sufficient sinusoidal components are identified.
[0004] A limitation of analysis-by-synthesis as described above is that the sinusoidal component having the greatest energy may not be the most perceptually significant. In situations where the aim of performing sinusoidal modelling is to reduce the amount of information needed to represent an input signal, modelling the input signal according to the energy of spectral components may be less efficient than modelling the input signal according to the perceptual significance of the spectral components. One known technique that takes the psychoacoustics of the human hearing system into account is weighted matching pursuits. In general, matching pursuit algorithms approximate an input signal by a finite expansion of elements chosen from a redundant dictionary. Using the weighted matching pursuits method, the dictionary elements are scaled according to a perceptual weighting.
[0005] To better explain the weighted matching pursuit method, a general matching pursuit algorithm will be described. The general matching pursuits algorithm chooses functions from a complete dictionary of unit norm elements in a Hilbert space H. If the dictionary contains elements gγ and is given by D=(gγ)γεΓ then H is the closed linear span of the dictionary elements. An input signal of x εH is projected onto the dictionary elements gγ and the element that best matches the input signal x is subtracted from the input signal x to form a residual signal. This process repeats with the residual from the previous step taken as the new input signal. Denoting the residual after m−1 iterations as Rm−1x and the dictionary element that best matches Rm−1x as gγm, the residual at the iteration m is decomposed according to
R
m−1
x=<R
m−1
x,g
γm
>g
γm
+R
m
x
(1)
[0006] where gγmε D is such that
|<Rm−1x,gγm>|=supγεΓ|<Rm−1x,gγ>| (2)
[0007] The orthogonality of Rmx and gγm implies
∥Rm−1x∥2=|<Rm−1x,gγm>|2+∥Rmx∥2
[0008] This algorithm becomes the weighted matching pursuit when the dictionary elements gγ are scaled to account for human auditory perception.
[0009] Due to the bias introduced by the weighting of the dictionary elements, the weighted matching pursuit algorithm may not choose the correct dictionary element when the signal to be modelled consists of one of the dictionary elements. In addition, the weighted matching pursuit algorithm may have difficulty discriminating between side lobe peaks introduced by windowing an input signal to divide it into a number of frames and the actual components of the signal to be modelled.
[0010] It is an aim of the preferred embodiments of the present invention to provide a method of e.g. sinusoidal modelling based on analysis-by-synthesis that offers improvements in the selection of dictionary elements when approximating sections of a signal contained in a frame of limited length. To this end, the invention provides a method of signal coding, a coding apparatus and a transmitting apparatus as defined in the independent claims. Advantageous embodiments are defined in the dependent claims.
[0011] A first aspect of the invention provides
[0012] (a) defined by receiving an input signal;
[0013] (b) dividing the input signal in time to produce a plurality of frames each containing a section of the input signal; and
[0014] (c) selecting functions from a function dictionary to form an approximation of the signal in each frame;
[0015] wherein the selection process of step (c) is carried out on the basis of a norm which is based on a combination, such as a product, of a weighting function expressed as a function of frequency and a product of a window function defining each frame in the plurality of frames and the section of the input signal to be modelled, the product of the window function and the section of the input signal to be modelled being expressed as a function of frequency. This norm may be defined by
∥Rx∥={square root}{square root over (∫)}{overscore (a)}(ƒ)|({overscore (wRx)})(ƒ)|2dƒ (3),
[0016] in which Rx represents a section of the input signal to be modelled, {overscore (a)}(ƒ) represents the Fourier transform of a weighting function expressed as a function of frequency and ({overscore (wRx)})(ƒ) represents the Fourier transform of the product of a window function defining each frame in the plurality of frames, w, and Rx, expressed as a function of frequency.
[0017] Preferably, the norm incorporates knowledge of the psychoacoustics of human hearing to aid the selection process of step (c).
[0018] Preferably, the knowledge of the psychoacoustics of human hearing is incorporated into the norm through the function {overscore (a)}(ƒ). Preferably, {overscore (a)}(ƒ) is based on the masking threshold of the human auditory system. Preferably, {overscore (a)}(ƒ) is the inverse of the masking threshold.
[0019] Preferably, the selection process of step (c) is carried out in a plurality of substeps, in each substep a single function from a function dictionary being identified.
[0020] Preferably, the function identified at the first substep is subtracted from the input signal in the frame to form a residual signal and at each subsequent substep a function is identified and subtracted from the residual signal to form a further residual signal.
[0021] Preferably, the sum of the functions identified at each substep forms an approximation of the signal in each frame.
[0022] Preferably, the norm adapts at each substep of the selection process of step (c).
[0023] Preferably, a new norm is induced at each substep of the selection process of step (c) based on a current residual signal. Preferably, as the residual signal changes at each substep, {overscore (a)}(ƒ) is updated to take into account the masking characteristics of the residual signal. Preferably, {overscore (a)}(ƒ) is updated by calculation according to known models of the masking threshold, for example the models defined in the MPEG layer 3 standard. In alternative embodiments, the function {overscore (a)}(ƒ) may be held constant to remove the computational load imposed by re-evaluating the masking characteristics of the residual at each iteration. Suitably, the function {overscore (a)}(ƒ) may be held constant based on the masking threshold of the input signal to ensure convergence. The masking threshold of the input signal is preferably also calculated according to a known model such as the models defined in the MPEG layer 3 standard.
[0024] Preferably, the function {overscore (a)}(ƒ) is based on the masking threshold of the human auditory system and is the inverse of the masking threshold for the section of an input signal in a frame being coded and is calculated using a known model of the masking threshold.
[0025] Preferably, the norm is induced according to the inner product
<x,y>=∫01{overscore (a)}(ƒ)({overscore (wx)})(ƒ)({overscore (wy)})*(ƒ)dƒ (4)
[0026] Preferably, denoting the residual at iteration m as Rmx and the weighting function from the previous iteration {overscore (a)}m−1 the function identified from the function dictionary minimises ∥Rmx∥{overscore (a)}m−1, where ∥•∥{overscore (a)}m−1 represents the norm calculated using {overscore (a)}m−1.
[0027] Preferably, the convergence of the method of audio coding is guaranteed by the validity of the theorem that for all m>0 there exists a λ>0 such that ∥Rmx∥{overscore (a)}m≦2−λm∥x∥{overscore (a)}0 where x represents an initial section of the input signal to be modelled.
[0028] Preferably, the convergence of the method of audio coding is guaranteed by the increase or invariance in each frame of the masking threshold at each substep, such that {overscore (a)}m(ƒ)≦{overscore (a)}m−1(ƒ) over the entire frequency range ƒε[0,1).
[0029] The window function may be a Hanning window. The window function may be a Hamming window. The window function may be a rectangular window. The window function may be any suitable window.
[0030] The invention includes a coding apparatus working in accordance with the method.
[0031] For a better understanding of the present invention, and to describe how it may be put into effect, preferred embodiments of the invention will now be described, by way of example only and with the aid of the following drawings, of which
[0032]
FIG. 1 shows an embodiment of a coding apparatus working in accordance with the teachings of the present invention, and
[0033]
FIG. 2 shows a transmitting apparatus according to an embodiment of the invention.
[0034] In each of the following embodiments, there is described a particular step in an audio coding process, namely the step of selecting functions from a function dictionary to form an approximation of the signal in each frame. This selection step is the critical third step (c) in the audio coding methods described which also include the initial steps of: (a) receiving an input signal; and (b) dividing the input signal in time to produce a plurality of frames each containing a section of the input signal.
[0035] The steps (a) and (b) referred to above are common to many signal coding methods and will be well understood by the man skilled in the art without further information.
[0036] In each of the embodiments of the invention described below, the selection step (c) comprises selecting functions from a function dictionary to form an approximation of the signal in each frame, the selection process being carried out on the basis of a norm defined by
∥Rx∥={square root}{square root over (∫)}01{overscore (a)}(ƒ)|({overscore (wRx)})(ƒ)|2dƒ (3),
[0037] in which Rx represents a section of the input signal to be modelled, {overscore (a)}(ƒ) represents the Fourier transform of a weighting function expressed as a function of frequency and ({overscore (wRx)})(ƒ) represents the Fourier transform of the product of a window function defining each frame in the plurality of frames, w, and Rx, expressed as a function of frequency.
[0038] A first embodiment of the invention will now be described. In this embodiment the dictionary elements comprise complex exponentials such that D=(gγ)γεΓ1
[0039] for γε[0,1).
[0040] To find the best matching dictionary element at iteration m, the inner product of Rm−1x and each of the dictionary elements is evaluated. In this embodiment, the evaluation of the inner products (Rm−1x,gγ) is given by
2
[0041] The function {overscore (a)}(ƒ) incorporates knowledge of the psychoacoustics of human hearing in that it comprises the inverse of the masking threshold of the human auditory system, as modelled using a known model based on the residual signal from the previous iteration. At the first iteration, the masking threshold is modelled based on the input signal.
[0042] The best matching dictionary element is then evaluated according to the well known and previously disclosed Equation (2) and the residual evaluated according to Equation (1)
[0043] The use of a structured dictionary such as that described for this embodiment of the invention can considerably reduce the computational complexity of evaluating the inner products <Rm−1x,gγ). In the case of the dictionary of complex exponentials as described in this embodiment of the invention, Equation (5) can be calculated using the Fourier transform:
3
[0044] Hence, to compute (Rm−1x,gγ) for all γ the Fourier transform of wRm−1x is calculated and the result multiplied by {overscore (a)}. The inverse Fourier transform of the product is then calculated, the result multiplied by w* and then Fourier transformed. In this way the result of Equation (6) can be computed using three Fourier transform operations.
[0045] Once the best matching dictionary element at this iteration has been chosen, it is subtracted from the residual signal, with the result of the subtraction forming the signal to be modelled at the next iteration. In this way an approximation comprising the sum of the dictionary elements identified at each iteration can be built up.
[0046] By taking the sum of each complex exponential function with its complex conjugate a real valued sinusoid can be produced. In this way the real input signal can be estimated. This technique requires a pair of dictionary elements (gγ*,gγ) to be found at each iteration. In order to reconstruct the real sinusoidal signal, the inner product <gγ*,gγ> must also be found. These inner products do not have an efficient implementation in terms of Fourier transforms, but because the value of <gγ*,gγ>≈0 for γ away from 0 or ½ it is possible to avoid calculating the inner products for most of the range of γ values. For this reason the complexity of estimating the best matching set <gγ*,gγ> is of the same order of magnitude as for finding the best matching exponential function gγ.
[0047] A second embodiment is based upon the first embodiment described above, but differs from it in that N is very large. In this case, {overscore (w)}(ƒ) tends to a Dirac delta function and the equation
4
[0048] reduces to
5
[0049] Hence, the matching pursuits algorithm chooses gγεD such that
6
[0050] In this embodiment, the result obtained at each iteration gives the maximum absolute difference between the logarithmic spectrum of the residual signal and the logarithmic masking threshold.
[0051] If {overscore (a)}m−1 is the reciprocal of the masking threshold at iteration m this procedure selects the complex exponential located where the absolute difference between the residual signal spectrum and the masking threshold is largest. Evaluating the inner products required to identify the desired dictionary element at each iteration according to Equation (2) can become computationally intensive for the first and second embodiments when a large number of dictionary elements exist.
[0052] A third embodiment of the invention shares steps of the methods of the first and second invention in relation to receiving and dividing an input signal. Similarly, a function identified from the function dictionary is used to produce a residual to be modelled at the next iteration, however in a third embodiment, the function {overscore (a)}(ƒ) does not adapt according to the masking characteristics of the residual at each iteration but is held independent of the iteration number. It is known for any general inner product that Equation (1) can be reduced to
<Rmx,gγ>=<Rm−1x,gγ>−<Rm−1x,gγm><gγm,gγ> (9).
[0053] Thus, if {overscore (a)}(ƒ) is held constant independent of iteration number, using the definition of the norm of the present invention as induced by the inner product of Equation (4) the only extra computations required at each iteration are to evaluate the inner products <gγm,gγ). The value of these inner products, namely the inner products of each dictionary element with all dictionary elements, can be computed beforehand and stored in memory. If the function {overscore (a)}(ƒ) is held equal to unity over all frequencies, the method reduces to the known matching pursuit algorithm. However, {overscore (a)}(ƒ) may take any general form. A particularly advantageous arrangement is to hold {overscore (a)}(ƒ) equal to the inverse of the masking threshold of the complete input signal. This arrangement converges according to the inequality above and has advantages in terms of ease of computation.
[0054] Referring now to FIG. 1, there is shown in schematic form an embodiment of a coding apparatus working in accordance with the teachings of the present invention.
[0055] In FIG. 1, there is shown a signal coder 10 receiving an audio signal Ain at its' input and processing it in accordance with any of the methods described herein, prior to outputting code C. The coder 10 estimates sinusoid parameters by use of a matching pursuit algorithm, wherein psycho-acoustic properties of e.g. a human auditory system are taken into account by defining a psycho-acoustic adaptive norm on a signal space.
[0056] The embodiments described above provide methods for signal coding particularly suitable for use in relation to speech or other audio signals. The methods according to embodiments of the present invention incorporate knowledge of the psychoacoustics of the human auditory system (such that the function {overscore (a)}(ƒ) is the inverse of the masking threshold of the human auditory system) and provide advantages over other known methods when the signal to be coded is of limited duration without a significant increase in computational complexity.
[0057]
FIG. 2 shows a transmitting apparatus 1 according to an embodiment of the invention, which transmitting apparatus comprises a coding apparatus 10 as shown in FIG. 1. The transmitting apparatus 1 further comprises a source 11 for obtaining the input signal Ain. which is e.g. an audio signal. The source 11 may e.g. be a microphone, or a receiving unit/antenna. The input signal Ain is furnished to the coding apparatus 10, which codes the input signal to obtain the coded signal C. The code C is furnished to an output unit 12 which adapts the code C in as far as necessary for transmitting. The output unit 12 may be a multiplexer, modulator, etc. An output signal [C] based on the code C is transmitted. The output signal [C] may be transmitted to a remote receiver, but also to a local receiver or on a storage medium.
[0058] Although the embodiments of the invention have been described in relation to audio coding, it will be apparent to the skilled person that the method of the invention can be utilized in full or in part in other signal coding applications.
[0059] It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word ‘comprising’ does not exclude the presence of other elements or steps than those listed in a claim. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a device claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Claims
- 1. A method of signal coding, the method comprising the steps of:
(a) receiving an input signal; (b) dividing the input signal in time to produce a plurality of frames each containing a section of the input signal; and (c) selecting functions from a function dictionary to form an approximation of the signal in each frame; wherein the selection process of step (c) is carried out on the basis of a norm which is based on a combination, such as a product, of a weighting function expressed as a function of frequency and a product of a window function defining each frame in the plurality of frames and the section of the input signal to be modelled, the product of the window function and the section of the input signal to be modelled being expressed as a function of frequency.
- 2. A method of signal coding according to claim 1, wherein the norm is defined by
- 3. The method of signal coding according to claim 1 or 2, wherein the weighting function incorporates knowledge of the psychoacoustics of human hearing to aid the selection process of step (c).
- 4. The method of signal coding according to claim 3, wherein the knowledge of the psychoacoustics of human hearing is incorporated into the norm through the function {overscore (a)}(ƒ).
- 5. The method of signal coding according to claim 4, wherein {overscore (a)}(ƒ) is based on the masking threshold of the human auditory system and is the inverse of the masking threshold.
- 6. The method of signal coding according to claim 5, wherein {overscore (a)}(ƒ) is computed using a known model of the masking threshold.
- 7. The method of signal coding according to any of the claims 1 to 6, wherein the selection process of step (c) is carried out in a plurality of substeps, in each substep a single function from a function dictionary being identified.
- 8. The method of signal coding according to claim 7, wherein the function identified at the first substep is subtracted from the input signal in the frame to form a residual signal and at each subsequent substep a function is identified and subtracted from the residual signal to form a further residual signal, with the sum of the functions identified at each substep forming an approximation of the signal in each frame.
- 9. The method of signal coding according to any preceding claim, where the norm adapts at each substep of the selection process of step (c).
- 10. The method of signal coding according to claim 9, wherein a new norm is induced at each substep of the selection process of step (c) based on a current residual signal, with {overscore (a)}(ƒ) also updated to take into account the masking characteristics of the residual signal.
- 11. The method of signal coding according to claim 1 or 2, wherein the weighting function is held independent of iteration number.
- 12. The method of signal coding according to claim 11, wherein the function {overscore (a)}(ƒ) is based on the masking threshold of the human auditory system, is the inverse of the masking threshold for the section of an input signal in a frame being coded and is calculated using a known model of the masking threshold.
- 13. The method of any preceding claim, wherein the norm is induced according to the inner product:
- 14. The method of audio coding according to claim 13, wherein denoting the residual at iteration m as Rmx and the weighting function from the previous iteration {overscore (a)}m−1 the function identified from the function dictionary minimises ∥Rmx∥{overscore (a)}m−1, with ∥•∥{overscore (a)}m−1representing the norm calculated using {overscore (a)}m−1.
- 15. The method of signal coding according to claim 14, wherein the convergence of the method of audio coding is guaranteed by the validity of the theorem that for all m >0 there exists a λ>0 such that ∥Rmx∥{overscore (a)}m≦2−λm∥x∥{overscore (a)}0, where x represents an initial section of the input signal to be modelled.
- 16. The method of signal coding according to claim 13, wherein the convergence of the method of audio coding is guaranteed by the increase or invariance in each frame of the masking threshold at each substep, such that {overscore (a)}m(ƒ)≦{overscore (a)}m−1(ƒ) over the entire frequency range ƒε[0,1).
- 17. The method of signal coding according to any preceding claim, wherein the window function is any one of a Hanning window, a Hamming window, a rectangular window or another suitable window.
- 18. Coding apparatus (10) operating in accordance with the method of any of the preceding claims.
- 19. A transmitting apparatus (1) comprising;
a source (11) for providing an input signal; a coding apparatus (10) according to claim 18 for coding the input signal to obtain a coded signal, and an output unit for outputting the coded signal.
Priority Claims (2)
Number |
Date |
Country |
Kind |
00203856.0 |
Nov 2000 |
EP |
|
01201685.3 |
May 2001 |
EP |
|
PCT Information
Filing Document |
Filing Date |
Country |
Kind |
PCT/EP01/12721 |
10/31/2001 |
WO |
|