This invention relates generally to processing acoustic signals, and more particularly to removing additive noise from acoustic signals such as speech.
Noise
Removing additive noise from acoustic signals, such as speech has a number of applications in telephony, audio voice recording, and electronic voice communication. Noise is pervasive in urban environments, factories, airplanes, vehicles, and the like.
It is particularly difficult to denoise time-varying noise, which more accurately reflects real noise in the environment. Typically, non-stationary noise cancellation cannot be achieved by suppression techniques that use a static noise model. Conventional approaches such as spectral subtraction and Wiener filtering have traditionally used static or slowly-varying noise estimates, and therefore have been restricted to stationary or quasi-stationary noise.
Non-Negative Matrix Factorization
Non-negative matrix factorization (NMF) optimally solves an equation
V≈WH.
The conventional formulation of the NMF is defined as follows. Starting with a non-negative M×N matrix V, the goal is to approximate the matrix V as a product of two non-negative matrices W and H. An error is minimized when the matrix V is reconstructed approximately by the product: WH. This provides a way of decomposing a signal V into a convex combination of non-negative matrices.
When the signal V is a spectrogram and the matrix is a set of spectral shapes, the NMF can separate single-channel mixtures of sounds by associating different columns of the matrix with different sound sources, see U.S. Patent Application 20050222840 “Method and system for separating multiple sound sources from monophonic input with non-negative matrix factor deconvolution,” by Smaragdis et al. on Oct. 6, 2005, incorporated herein by reference.
NMF works well for separating sounds when the spectrograms for different acoustic signals are sufficiently distinct. For example, if one source, such as a flute, generates only harmonic sounds and another source, such as a snare drum, generates only non-harmonic sounds, the spectrogram for one source is distinct from the spectrogram of other source.
Speech
Speech includes harmonic and non-harmonic sounds. The harmonic sounds can have different fundamental frequencies at different times. Speech can have energy across a wide range of frequencies. The spectra of non-stationary noise can be similar to speech. Therefore, in a speech denoising application, where one “source” is speech and the other “source” is additive noise, the overlap between speech and noise models degrades the performance of the denoising.
Therefore, it is desired to adapt non-negative matrix, factorization to the problem of denoising speech with additive non-stationary noise.
The embodiments of the invention provide a method and system for denoising mixed acoustic signals. More particularly, the method denoises speech signals. The denoising uses a constrained non-negative matrix factorization (NMF) in combination with statistical speech and noise models.
Input, to the one-time training 200 comprises a training acoustic signal (VTspeech) 101 and a training noise signal, (VTnoise) 102. The training signals are representative of the type of signals to be denoised, e.g., speech with non-stationary noise. It should be understood, that the method can be adapted to denoise other types of acoustic signals, e.g., music, by changing the training signals accordingly. Output of the training is a denoising model 103. The model can be stored in a memory for later use.
Input to the real-time denoising comprises the model 103 and a mixed signal (Vmix) 104, e.g., speech and non-stationary noise. The output of the denoising is an estimate of the acoustic (speech) portion 105 of the mixed signal.
During the one-time training, non-negative matrix factorization (NMF) 210 is applied independently to the acoustic signal 101 and the noise signal 102 to produce the model 103.
The NMFs 210 independently produces training basis matrices (WT) 211-212 and (HT) weights 213-214 of the training basis matrices for the acoustic and speech signals, respectively. Statistics 221-222, i.e., the mean and covariance are determined for the weights 213-214. The training basis matrices 211-212, means and covariances 221-222 of the training speech and noise signals form the denoising model 103.
During real-time denoising, constrained non-negative matrix factorization (CNMF) according to embodiments of the invention is applied to the mixed signal (Vmix) 104. The CNMF is constrained by the model 103. Specifically, the CNMF assumes that the prior training matrix 211 obtained during training accurately represent a distribution of the acoustic portion of the mixed signal 104. Therefore, during the CNMF, the basis matrix is fixed to be the training basis matrix 211, and weights (Hall) 302 for the fixed training basis matrix 211 are determined optimally according the prior statistics (mean and covariance) 221-222 of the model during the CNMF 310. Then, the output speech signal 105 can be reconstructed by taking the product of the optimal weights 302 and the prior basis matrices 211.
Training
During training 200 as shown in
All the signals, in the form of spectrograms, as described herein are digitized and sampled into frames as known in the art. When we refer to an acoustic signal, we specifically mean a known or identifiable audio signal, e.g., speech or music. Random noise is not considered an identifiable acoustic signal for the purpose of this invention. The mixed signal 104 combines the acoustic signal with noise. The object of the invention is to remove the noise so that just the identifiable acoustic portion 105 remains.
Different objective functions lead to different variants of the NMF. For example, a Kullback-Leibler (KL) divergence between the matrices V and WH, denoted D(V∥WH), works well for acoustic source separation, see Smaragdis et all. Therefore, we prefer to use the KL divergence in the embodiments of our denoising invention. Generalization to other objective functions using the techniques is straight forward, see A. Cichocki, R. Zdunek, and S. Amari, “New algorithms for non-negative matrix factorization in applications to blind source separation,” in IEEE International Conference on Acoustics, Speech, and Signal Processing, 2006, vol. 5, pp. 621-625, incorporated herein by reference.
During training, we apply the NMF 210 separately on the speech spectrogram 101 and the noise spectrogram 102 to produce the respective basis matrices WTspeech 211 and WTnoise 212, and the respective weights HTspeech 213 and HTnoise 214.
We minimize D(VTspeech∥WTspeech HTspeech) and D(VTspeech∥WTspeechHTspeech), respectively. The matrices Wspeech and Wnoise are each of size nf×nb, where nb is the number of basis functions representing each source. The weight matrices Hspeech and Hnoise are of size nb×nst and nb×nnt, respectively, and represent the time-varying activation levels of the training basis matrices.
We determine 220 empirically the mean and covariance statistics of the logarithmic values the weight matrices HTspeech and Htnoise. Specifically, we determine the mean μspeech and covariance Λspeech 221 of the speech weights, and the mean μnoise and covariance Λnoise w222 of the noise weights. Each mean μ is a length nb vector, and each covariance Λ is a nb×nb matrix.
We select this implicitly Gaussian representation for computational convenience. The logarithmic domain yields better results than the linear domain. This is consistent with the fact that a Gaussian representation in the linear domain would allow both positive and negative values which is inconsistent with the non-negative constraint on the matrix H.
We concatenate the two sets of basis matrices 211 and 213 to form a matrix Wall 215 of size nf×2nb. This concatenated set of basis matrices is used to represent a signal containing a mixture of speech and independent noise. We also concatenate the statistics μall=[μspeech; μnoise] and Λall=[Λspeech 0; 0 Λnoise]. The concatenated basis matrices 211 and 213 and the concatenated statistics 221-222 form our denoising model 103.
Denoising
During real-time denoising as shown in
Objective Function
It is our objective to determine the optimal weights Hall 302 which minimizes
where Dreg is the regularized KL divergence objective function, i is an index over frequency, k is an index over time, and α is an adjustable parameter that controls the influence of the likelihood function, L(H), on the overall objective function, Dreg. When α is zero, this Equation 1 equals the KL divergence objective function. For a non-zero α, there is an added penalty proportional to the negative log likelihood under our joint Gaussian model for log H. This term encourages the resulting matrix Hall to be consistent with the statistics 221-223 of the matrices Hspeech and Hnoise as empirically determined during training. Varying α enables us to control the trade-off between fitting the whole (observed mixed speech) versus matching the expected statistics of the “parts” (speech and noise statistics), and achieves a high likelihood under our model.
Following Cichocki et al., the multiplicative update rule for the weight matrix Hall is
where [ ]ε indicates that any values within the brackets less than the small positive constant ε are replaced with ε to prevent violations of the non-negativity constraint and to avoid divisions by zero.
We reconstruct 320 the denoised spectrogram, e.g., clean speech 105 as
{circumflex over (V)}
speech
=W
speech
H
all(1:nb),
using the training basis matrix 211 and the top rows of the matrix Hall.
The method according to the embodiments of the invention can denoise speech in the presence of non-stationary noise. Results indicate superior performance when compared with conventional Wiener filter denoising with static noise models on a range of noise types.
Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.