This invention relates to a method and a device for encoding multiple audio signals, and to a method and a device for decoding a mixture of multiple audio signals with improved separation of the multiple audio signals.
The problem of audio source separation consists in estimating individual sources (e.g. speech, music instruments, noise, etc.) from their mixtures. In the context of audio, mixture means a recording of multiple sources by a single or multiple microphones. Informed source separation (ISS) for audio signals can be viewed as the problem of extracting individual audio sources from a mixture of the sources, given that some information on the sources is available. ISS relates also to compression of audio objects (sources) [6], i.e. encoding a multisource audio, given that a mixture of these sources is known on both the encoding and decoding stages. Both of these problems are interconnected. They are important for a wide range of applications.
Known solutions (e.g. [3], [4], [5]) rely on the assumption that the original sources are available during an encoding stage. Side-information is computed and transmitted along with the mixture, and both are processed in a decoding stage to recover the sources. While several ISS methods are known, in all these approaches the encoding stage is more complex and computationally expensive than the decoding stage. Therefore these approaches are not preferable in cases where the platform performing the encoding cannot handle the computational complexity demanded by the encoder. Finally, the known complex encoders are not usable for online encoding, i.e. progressively encoding the signal as it arrives, which is very important for some applications.
In view of the above, it is highly desirable to have a fully automatic and efficient solution for both the ISS problems. In particular, a solution would be desirable where the encoder requires considerably less processing than the decoder. The present invention provides a simple encoding scheme that shifts most of the processing load from the encoder side to the decoder side. The proposed simple way for generating the side-information enables not only low complexity encoding, but also an efficient recovery at the decoder. Finally, in contrast to some existing efficient methods that need the full signal to be known during encoding (which is called batch encoding), the proposed encoding scheme allows online encoding, i.e. the signal is progressively encoded as it arrives.
The encoder takes random samples from the audio sources with a random pattern. In one embodiment, it is a predefined pseudo-random pattern. The sampled values are quantized by a predefined quantizer and the resulting quantized samples are concatenated and losslessly compressed by an entropy coder to generate the side information. The mixture can also be produced at the encoding side, or it is already available through other ways at the decoding side. The decoder first recovers the quantized samples from the side information, and then estimates probabilistically the most likely sources within the mixture, given the quantized samples and the mixture.
In one embodiment, the present principles relate to a method for encoding multiple audio signals as disclosed in claim 1. In one embodiment, the present principles relate to a method for decoding a mixture of multiple audio signal as disclosed in claim 3.
In one embodiment, the present principles relate to an encoding device that comprises a plurality of separate hardware components, one for each step of the encoding method as described below. In one embodiment, the present principles relate to a decoding device that comprises a plurality of separate hardware components, one for each step of the decoding method as described below. In one embodiment, the present principles relate to a computer readable medium having executable instructions to cause a computer to perform an encoding method comprising steps as described below. In one embodiment, the present principles relate to a computer readable medium having executable instructions to cause a computer to perform a decoding method comprising steps as described below.
In one embodiment, the present principles relate to an encoding device for separating audio sources, comprising at least one hardware component, e.g. hardware processor, and a non-transitory, tangible, computer-readable, storage medium tangibly embodying at least one software component, and when executing on the at least one hardware processor, the software component causes steps of the encoding method as described below. In one embodiment, the present principles relate to an encoding device for separating audio sources, comprising at least one hardware component, e.g. hardware processor, and a non-transitory, tangible, computer-readable, storage medium tangibly embodying at least one software component, and when executing on the at least one hardware processor, the software component causes steps of the decoding method as described below.
Further objects, features and advantages of the present principles will become apparent from a consideration of the following description and the appended claims when taken in connection with the accompanying drawings.
Exemplary embodiments are described with reference to the accompanying drawings, which show in
One technical problem that is considered here within the above-described setting consists in: when having an encoder to generate the side information, design a decoder that can estimate sources {tilde over (s)}1, {tilde over (s)}2, . . . , {tilde over (s)}J that are as close as possible to the original sources s1, s2, . . . , sJ. The decoder should use the side information and the known mixture x in an efficient manner so as to minimize the needed size of the side information for a given quality of the estimated sources. It is assumed that the decoder knows both the mixture and how it is formed using the sources. Therefore the invention comprises two parts: the encoder and the decoder.
a) shows the simplified structure of an exemplary encoder. The encoder is designed to be computationally simple. It takes random samples from the audio sources. In one embodiment, it uses a predefined pseudo-random pattern. In another embodiment, it uses any random pattern. The sampled values are quantized by a (predefined) quantizer, and the resulting quantized samples y1, y2, . . . , yJ are concatenated and losslessly compressed by an entropy coder (e.g. Huffman coder or arithmetic coder) to generate the side information. The mixture is also produced, if not already available at the decoding side.
b) shows, enlarged, exemplary signals within the encoder. A mixture signal x is obtained by overlaying or mixing different source signals s1, s2, . . . , sJ. Each of the source signals s1, s2, . . . , sJ is also random sampled in random sampling units, and the samples are quantized in one or more quantizers (in this embodiment, one quantizer for each signal) to obtain quantized samples y1, y2, . . . , yJ. The quantized samples are encoded to be used as side information. Note that, in other embodiments, the sequence order of sampling and quantizing may be swapped.
Possible implementations of the encoder are very simple. One possible implementation of the decoder operates based on the following two assumptions:
Following these two assumptions, the operation of the decoder can be summarized with the following steps:
P(f,n,j)=E{|S(f,n,j)|2|x,y1,y2, . . . ,yJ,V}
{circumflex over (S)}(f,n,j)=E{S(f,n,j)|x,y1,y2, . . . ,yJ,V}
and convert back into the time domain to recover the estimated sources {tilde over (s)}1, {tilde over (s)}2, . . . , {tilde over (s)}J. More details on this posterior mean computation are provided below.
The following describes some mathematical basics on the above calculations. A tensor is a data structure that can be seen as a higher dimensional matrix. A matrix is 2-dimensional, whereas a tensor can be N-dimensional. In the present case, V is a 3-dimensional tensor (like a cube). It represents the covariance matrix of the jointly Gaussian distribution of the sources.
A matrix can be represented as the sum of few rank-1 matrices, each formed by multiplying two vectors, in the low rank model. In the present case, the tensor is similarly represented as the sum of K rank one tensors, where a rank one tensor is formed by multiplying three vectors, e.g. hi, qi and wi. These vectors are put together to form the matrices H, Q and W. There are K sets of vectors for the K rank one tensors. Essentially, the tensor is represented by K components, and the matrices H, Q and W represent how the components are distributed along different frames, different frequencies of STFT and different sources respectively. Similar to a low rank model in matrices, K is kept small because a small K better defines the characteristics of the data, such as audio data, e.g. music. Hence it is possible to guess unknown characteristics of the signal by using the information that V should be a low rank tensor. This reduces the number of unknowns and defines an interrelation between different parts of the data.
The steps of the above-described iterative algorithm can be described as follows.
First, initialize the matrices H, Q and W and therefore V.
Given V, the probability distribution of the signal is known. And looking at the observed part of the signals (signals are observed only partially), it is possible to estimate the STFT coefficients Ŝ, e.g. by Wiener filtering. This is the posterior mean of the signal. Further, also a posterior covariance of the signal is computed, which will be used below. This step is performed independently for each window of the signal, and it is parallelizable. This is called the expectation step or E-step.
Once the posterior mean and covariance are computed, these are used to compute the posterior power spectra p. This is needed to update the earlier model parameters, ie. H, Q and W. It may be advantageous to repeat this step more than once in order to reach a better estimate (e.g. 2-10 times). This is called the maximization step or M-step.
Once the model parameters H, Q and W are updated, all the steps (from estimating the STFT coefficients Ŝ) can be repeated until some convergence is reached, in an embodiment. After the convergence is reached, in an embodiment the posterior mean of the STFT coefficients Ŝ is converted into the time domain to obtain an audio signal as final result.
One advantage of the invention is that it allows improved recovering of multiple audio source signals from a mixture thereof. This enables efficient storage and transmission of a multisource audio recording without the need for powerful devices. Mobile phones or tablets can easily be used to compress information regarding the multiple sources of an audio track without a heavy battery drain or processor utilization.
A further advantage is that the computational resources for encoding and decoding the sources are more efficiently utilized, since the compressed information on the individual sources are decoded only if they are needed. In some applications, such as music production, the information on the individual sources are always encoded and stored, however it is not always needed and accessed afterwards. Therefore, as opposed to an expensive encoder that performs high complexity processing on every encoded audio stream, a system with a low complexity encoder and a high complexity decoder has the benefit of utilizing the processing power only for those audio streams for which the individual sources are actually needed later.
A third advantage provided by the invention is the adaptability to new and better decoding methods. When a new and improved way of exploiting correlations within the data is discovered, a new method for decoding can be devised (a better method to estimate {tilde over (s)}1, {tilde over (s)}2, . . . , {tilde over (s)}J given x, y1, y2, . . . , yJ), and it is possible to decode the older encoded bitstreams with better quality without the need to re-encode the sources. Whereas in traditional encoding-decoding paradigms, when an improved way of exploiting correlations within the data leads to a new method of encoding, it is necessary to decode and re-encode the sources in order to exploit the advantages of the new approach. Furthermore, the process of re-encoding an already encoded bitstream is known to introduce further errors with respect to the original sources.
A fourth advantage of the invention is the possibility to encode the sources in an online fashion, i.e. the sources are encoded as they arrive to the encoder, and the availability of the entire stream is not necessary for encoding.
A fifth advantage of the invention is that gaps in the separated audio source signals can be repaired, which is known as audio inpainting. Thus, the invention allows joint audio inpainting and source separation, as described in the following.
The approach disclosed herein is inspired by distributed source coding [9] and in particular distributed video coding [10] paradigms, where the goal is also to shift the complexity from the encoder to the decoder. The approach relies on the compressive sensing/sampling principles [11-13], since the sources are projected on a linear subspace spanned by a randomly selected subset of vectors of a basis that is incoherent [13] with a basis where the audio sources are sparse. The disclosed approach can be called compressive sampling-based ISS (CS-ISS). More specifically, it is proposed to encode the sources by a simple random selection of a subset of temporal samples of the sources, followed by a uniform quantization and an entropy encoder. In one embodiment, this is the only side-information transmitted to the decoder.
Note that the advantage of sampling in the time domain is double. First, it is faster than sampling in any transformed domain. Second, the temporal basis is incoherent enough with the short time Fourier transform (STFT) frame where audio signals are sparse and it is even more incoherent with the low rank NTF representation of STFT coefficients. It is shown in compressive sensing theory that the incoherency of the measurement and prior information domains is essential for the recovery of the sources [13].
To recover the sources at the decoder from the quantized source samples and the mixture, it is proposed to use a model-based approach that is in line with model-based compressive sensing [14]. Notably, in one embodiment the Itakura-Saito (IS) nonnegative tensor factorization (NTF) model of source spectrograms is used, as in [4,5]. Thanks to its Gaussian probabilistic formulation [15], this model may be estimated in the maximum-likelihood (ML) sense from the mixture and the transmitted quantized portion of source samples. To estimate the model, a new generalized expectation-maximization (GEM) algorithm [16] based on multiplicative update (MU) rules [15] can be used. Given the estimated model and all other observations, the sources can be estimated by Wiener filtering [17].
The overall structure of the proposed CS-ISS encoder/decoder is depicted in
A first advantage is that the simple encoder in
A second advantage is that performing sampling in time domain (and not in a transformed domain) provides not only a simple sampling scheme, but also the possibility to perform the encoding in an online fashion when needed, which is not always as straight forward for other methods [4,5]. Furthermore, the independent encoding scheme enables the possibility of encoding sources in a distributed manner without compromising the decoding efficiency.
A third advantage is that the encoding step is performed without any assumptions on the decoding step. Therefore it is possible to use other decoders than the one proposed in this embodiment. This provides a significant advantage over classical ISS [2-5] in the sense that, when a better performing decoder is designed, the encoded sources can directly benefit from the improved decoding without the need for re-encoding. This is made possible by the random sampling used in the encoder. The compressive sensing theory shows that a random sampling scheme provides incoherency with a large number of domains, so that it becomes possible to design efficient decoders relying on different prior information on the data.
Let us indicate the support of the random samples with Ω″, such that the source jε1,J is sampled at time indices tεΩ″j⊂1,T. After the entropy decoding stage, the CS-ISS decoder has the subset of quantized samples of the sources y″jt(Ω″j), jε1,J, where the quantized samples are defined as
y″
jt
=s″
jt
+b″
jt (1)
where s″jt indicates the true source signal and b″jt is the quantization noise. Note that herein the time-domain signals are represented by letters with two primes, e.g. x″, while framed and windowed time-domain signals are denoted by letters with one prime, e.g. x′, and complex-valued short-time Fourier transform (STFT) coefficients are denoted by letters with no prime, e.g. x.
The mixture is assumed to be the sum of the original sources such that
x″
t=Σj=1Js″jt,tε1,T,jε1,J (2)
The mixture is assumed to be known at the decoder. Note that the mixture is assumed to be noise free and without quantization herein. However, the disclosed algorithm can as well easily be extended to include noise in the mixture.
In order to compute the STFT coefficients, the mixture and the sources are first converted to a windowed time domain with a window length M and a total of N windows. Resulting coefficients denoted by y′jmn, s′jmn and x′mn represent the quantized sources, the original sources and the mixture in windowed-time domain respectively for j=1, . . . , J, n=1, . . . , N and m=1, . . . , M (only form in appropriate subset Ω′jn in case of quantized source samples). The STFT coefficients of the sources, sjfn, and of the mixture, xfn, are computed by applying the unitary Fourier transform UεF×M (F=M), to each window of the windowed-time domain counterparts. For example, [x1n, . . . , xFn]T=U[x′1n, . . . , x′Mn]T.
The sources are modelled in the STFT domain with a normal distribution (sjfn˜Nc(0, vifn) where the variance tensor V=[vifn]i,f,n has the following low-rank NTF structure [18]:
v
ifn=Σk=1Kqjkwfkhnk,K<max(J,F,N) (3)
The model is parameterized by ⊕={Q, W, H}, with Q=[qjk]ε+J×K, W=[wfk]ε+F×K and H=[hnk]ε+N×K.
According to an embodiment of the present principles, the source signals are recovered with a generalized expectation-maximization algorithm that is briefly described in Algorithm 1. The algorithm estimates the sources and source statistics from the observations using a given model ⊕ via Wiener filtering at the expectation step, and then updates the model using the posterior source statistics at the maximization step. The details on each step of the algorithm are given below.
Since all the underlying distributions are Gaussian and all the relations between the sources and the observations are linear, the sources may be estimated in the minimum mean square error (MMSE) sense via the Wiener filter [17], given the covariance tensor V defined in (3) by the model parameters Q,W,H.
Let the observed data vector for the n-th frame ō′n be defined as ō′n [
Given the corresponding observed data ō′n and the NTF model ⊕, the posterior distribution of each source frame sjn can be written as sjn|ō′n; ⊕˜Nc(ŝjn,
given the definitions
where U(Ω′jn) is the F×|Ω′jn| matrix of columns from U with index in Ω′jn.
Therefore the posterior power spectra {circumflex over (P)}=[{circumflex over (p)}jfn] that will be used to update the NTF model as described below, can be computed as
{circumflex over (p)}
jfn
=
[|s
jfn|2|ō′n;θ]=|ŝjfn|2+{circumflex over (Σ)}s
NTF model parameters can be re-estimated using the multiplicative update (MU) rules minimizing the IS divergence [15] between the 3-valence tensor of estimated source power spectra {tilde over (P)} and the 3-valence tensor of the NTF model approximation V defined as DIS({tilde over (P)}∥V)=Σj,f,ndIS({tilde over (p)}jfn∥vjfn), where
is the IS divergence; and {tilde over (p)}jfn and vjfn are specified by (14) and (3). As a result, Q,W,H can be updated with the MU rules presented in [18]. These MU rules can be repeated several times to improve the model estimate.
Further, in source separation applications using the NTF/NMF model it is often necessary to have some prior information on the individual sources. This information can be some samples from the sources, or knowledge about which source is “inactive” at which instant of time. However, when such information is to be enforced, it has always been the case that the algorithms needed to predefine how many components each source is composed of. This is often enforced by initializing the model parameters Wε+M×K, Hε+N×K, Qε+J×K, so that certain parts of Q and H are set to zero, and each component is assigned to a specific source. In one embodiment, the computation of the model is modified such that, given the total number of components K, each source is assigned automatically to the components rather than manually. This is achieved by enforcing the “silence” of the sources not through STFT domain model parameters, but through time domain samples (with a constrain to have time domain samples of zeros) and by relaxing the initial conditions on the model parameters so that they are automatically adjusted. A further modification to enforce a sparse structure on the source component distribution (defined by Q) is also possible by slightly modifying the multiplicative update equations above. This results in an automatic assignment of sources to components.
Thus, in one embodiment the matrices H and Q are determined automatically when side information IS of the form of silence periods of the sources are present. The side information IS may include the information which source is silent at which time periods. In the presence of such specific information, a classical way to utilize NMF is to initialize H and Q in such a way that predefined ki components are assigned to each source. The improved solution removes the need for such initialization, and learns H and Q so that ki needs not to be known in advance. This is made possible by 1) using time domain samples as input, so that STFT domain manipulation is not mandatory, and 2) constraining the matrix Q to have a sparse structure. This is achieved by modifying the multiplicative update equations for Q, as described above.
In order to assess the performance of the present approach, three sources of a music signal at 16 kHz are encoded and then decoded using the proposed CS-ISS with different levels of quantization (16 bits, 11 bits, 6 bits and 1 bit) and different sampling bitrates per source (0.64, 1.28, 2.56, 5.12 and 10.24 kbps/source). In this example, it is assumed that the random sampling pattern is pre-defined and known during both encoding and decoding. The quantized samples are truncated and compressed using an arithmetic encoder with a zero mean Gaussian distribution assumption. At the decoder side, following the arithmetic decoder, the sources are decoded from the quantized samples using 50 iterations of the GEM algorithm with STFT computed using a half-overlapping sine window of 1024 samples (64 ms) with a Gaussian window function and the number of components fixed at K=18, i.e. 6 components per source. The quality of the reconstructed samples is measured in signal to distortion ratio (SDR) as described in [19]. The resulting encoded bitrates and SDR of decoded signals are presented in Tab.1 along with the percentage of the encoded samples in parentheses. Note that the compressed rates in Tab.1 differ from the corresponding raw bitrates due to the variable performance of the entropy coding stage, which is expected.
3.50/19.47 (2.91)
7.00/24.66 (5.82)
0.27/4.17 (0.67)
0.54/7.62 (1.33)
1.08/12.09 (2.67)
1 bit
The performance of CS-ISS is compared to the classical ISS approach with a more complicated encoder and a simpler decoder presented in [4]. The ISS algorithm is used with NTF model quantization and encoding as in [5], i.e., NTF coefficients are uniformly quantized in logarithmic domain, quantization step sizes of different NTF matrices are computed using equations (31)-(33) from [5] and the indices are encoded using an arithmetic coder based on a two states Gaussian mixture model (GMM) (see
The performance of CS-ISS in Tab.1 and
The disclosed solution usually leads to the fact that a low-rank tensor structure appears in the power spectrogram of the reconstructed signals.
It is to be noted that the use of the verb “comprise” and its conjugations does not exclude the presence of elements or steps other than those stated in a claim.
Furthermore, the use of the article “a” or “an” preceding an element does not exclude the presence of a plurality of such elements. Several “means” may be represented by the same item of hardware. Furthermore, the invention resides in each and every novel feature or combination of features. As used herein, a “digital audio signal” or “audio signal” does not describe a mere mathematical abstraction, but instead denotes information embodied in or carried by a physical medium capable of detection by a machine or apparatus. This term includes recorded or transmitted signals, and should be understood to include conveyance by any form of encoding, including pulse code modulation (PCM), but not limited to PCM.
While there has been shown, described, and pointed out fundamental novel features of the present invention as applied to preferred embodiments thereof, it will be understood that various omissions and substitutions and changes in the apparatus and method described, in the form and details of the devices disclosed, and in their operation, may be made by those skilled in the art without departing from the spirit of the present invention. It is expressly intended that all combinations of those elements that perform substantially the same function in substantially the same way to achieve the same results are within the scope of the invention. Substitutions of elements from one described embodiment to another are also fully intended and contemplated. Each feature disclosed in the description and (where appropriate) the claims and drawings may be provided independently or in any appropriate combination. Features may, where appropriate be implemented in hardware, software, or a combination of the two. Connections may, where applicable, be implemented as wireless connections or wired, not necessarily direct or dedicated, connections.
Number | Date | Country | Kind |
---|---|---|---|
15305536.3 | Apr 2015 | EP | regional |
15306144.5 | Jul 2015 | EP | regional |
15306425.8 | Sep 2015 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2016/055135 | 3/10/2016 | WO | 00 |