The present invention relates to a system and method for speech communication and speech recognition. It further relates to signal processing methods which can be implemented in the system.
The present applicant's PCT application PCT/SG99/00119, the disclosure of which is incorporated herein by reference in its entirety, proposes a method of processing signals in which signals received from an array of sensors are subject to a first adaptive filter arranged to enhance a target signal, followed by a second adaptive filter arranged to suppress unwanted signals. The output of the second filter is converted into the frequency domain, and further digital processing is performed in that domain.
The present invention seeks to further enhance the system by incorporating a third adaptive filter in the system and uses a novel method for performing improved signal processing of audio signals that are suitable for speech communication and speech recognition.
An embodiment of the invention will now be described by way of example with reference to the accompanying drawings in which:
a) illustrates a wave front arriving from 40 degree off-boresight direction;
b) represents a time delay estimator using an adaptive filter;
c) shows the impulse response of the filter indicates a wave front from the boresight direction;
An embodiment of signal processing apparatus 5 is shown in
It will be appreciated that the splitting of the processor 40 into five different modules 42, 44, 46, 48 and 50 is essentially notional and is mainly to assist understanding of the operation of the processor. The processor 40 would in reality be embodied as a single multi-function digital processor performing the functions described under control of a program with suitable memory and other peripherals. Furthermore, the operation of the speech recognition engine 52 could also be incorporated into the operation of the digital signal processor 40.
A flowchart illustrating the operation of the processors is shown in
Referring to
Next, the step 410 is performed where direction of arrival of received signals at the microphone array 10a-d is determined and the presence of target signal is also tested for. Furthermore, in the same step 410, the received signals are processed by the Signal Adaptive Spatial Filter where an identified target signal is further enhanced.
Following which step 420 is carried out where the signal from the Signal Adaptive Spatial Filter is rechecked and filter coefficients reconfirmed.
In step 425, non-target signals, interference signals and noise signals are tested for and transformed into the frequency domain. In the same step, signals other than non-target signals, interference signals and noise signals are also transformed into the frequency domain.
The transformed signals then undergo step 430 where processing is performed by the Adaptive Interference and Noise Filter and the signals wrapped into Bark Scale.
After which step 440 is carried out where unvoice signals are detected and recovered and Adaptive Noise suppression is performed. In the same step, high frequency recovery by Adaptive Signal Fusion is also performed. The resulting signal is reconstructed in the time domain by an inverse wavelet transform.
Referring to
The processor 42 then removes any DC from the new samples and pre-emphasizes or whitens the samples at step 502.
Following this, the total non-linear energy of a signal sample Er1 and the average power of the same signal sample Pr1 are calculated at step 504. The samples from the reference channel 10a are used for this purpose although any other channel could be used. The samples are then transformed to 2 sub-bands through a Discrete Wavelet Transform at step 505. These 2 sub-bands may then be used later in step 440 for high frequency recovery.
From step 504, the system follows a short initialization period at step 506 in which the first 20 blocks of N/2 samples of a signal after start-up are used to estimate the environment noise energy and power level Ntge and Nae respectively. Then, the samples are also used to estimate a Bark Scale system noise Bn at step 515. During this short period, an assumption is made that no target signals are present. Bn is then moved to point F to be used for updating By.
At step 508, it is determined if the signal energy Er1 is greater than the noise threshold, Ttge1 and the signal power Pr1 is greater than the noise threshold, Tae. If not, a new set of environment noise, Ntge, Nae and Bn will be estimated.
During abrupt change of environment noise of present of target signal, signal energy Er1 and the signal power Pr1 might be greater than their respective noise threshold. To differentiate between these two conditions, a further test is carried out at step 509. If the signal is from C′ (interference signal) and the energy ration Rsd is below 0.35 or the probability of speech present PB_Speech is below 0.25, these mean there is no target signal present in the signal and it is either interference of environment noise. Hence, the signal will move to step 515 where the system noise Bn is updated. Else, the signal passes to step 510.
At step 510 the signal to noise power ratio Prsd and the environment noise energy level are used to estimate the dynamic noise power level, NPrsd. This dynamic noise power level will track the system SNR level closely and in turn used for updating TRsd and TPrsd. This close tracking of system SNR level will enable the system to detect target signal accurately during low SNR condition as show in
Next, the updated noise energy level Ntge is used to estimate the 2 noise energy thresholds, Ttge1 and Ttge2. The updated noise power level Nae is used to estimate the noise power threshold, Tae at stage 512.
After this initialization period, Ntge, Nae and Bn are updated when the update condition are fulfilled. As a result, the noise level threshold, Ttge1 and Ttge2 will be updated based on the previous Ntge, Nae and Bn. This case Ttge1 and Ttge2 will follow the environment noise level closely. This is illustrated in
The apparatus only wishes to process candidate target signals that impinge on the array 10 from a known direction normal to the array, hereinafter referred to as the boresight direction, or from a limited angular departure there from, in this embodiment plus or minus 15 degrees. Therefore, the next stage is to check for any signal arriving from this direction.
Referring to
If at step 518, the estimated energy Er1 in the reference channel 10a is found not to exceed the second threshold Ttge2, the target signal is considered not to be present and the method passes to step 530 for Non-Adaptive Filtering via steps 522-526 in which a counter CL is incremented at step 522. At step 524, CL is checked against a threshold TCL. If the threshold is reached, block leaky is performed on the filter coefficient Wtd at step 526 and counter CL is also reset in the same step 526. This block leaky step improves the adaptation speed of the filter coefficient Wtd to the direction of fast changing target sources and environment. At step 524, if the threshold is not reached, the method passes to step 530.
At step 518, if the estimated energy Er1 is larger than threshold Ttge2, counter CL is reset at step 519 and the signal will go through further verification at step 520 where four conditions are used to determine if the candidate target signal is an actual target signal. Firstly, the cross correlation coefficient Cx must exceed a predetermined threshold Tc. Secondly, the size of the delay coefficient Td must be less than a value θ indicating that the signal has impinged on the array within a predetermined angular range. Thirdly the filter coefficient peak ratio Pk must be more than a predetermined threshold TPk1 and fourthly the dynamic noise power level, NPrsd must be more that 0.5. If any one of these conditions is not met, the signal is not regarded as a target signal and the method passes to step 530 (non-target signal filtering). If all the conditions are met, the confirmed target signal undergoes step 528 where Adaptive Filtering (target signal filtering) by the Signal Adaptive Spatial Filter 44 takes place.
The Adaptive Spatial Filter 44 is instructed to perform adaptive filtering at step 528 and 532, in which the filter coefficients Wsu are adapted to provide a “target signal plus noise” signal in the reference channel and “noise only” signals in the remaining channels using the Least Mean Square (LMS) algorithm. The filter 44 output channel equivalent to the reference channel is for convenience referred to as the Sum Channel and the filter 44 output from the other channels, Difference Channels. The signal so processed will be, for convenience, referred to as A′.
If the signal is considered to be a noise or interference signal, the method passes to step 530 in which the signals are passed through filter 44 without the filter coefficients being adapted, to form the Sum and Difference channel signals. The signals so processed will be referred to for convenience as B′.
The effect of the filter 44 is to enhance the signal if this is identified as a target signal but not otherwise.
Referring to
If the signal from step 528 is not A′, the method passes from step 534 to step 548 where an energy ratio Rsd and power ratio Prsd between the Sum Channel and the Difference Channels are estimated by processor 42. Following this, the adaptive noise power threshold TPrsd, noise energy threshold TRsd and the maximum dynamic noise power threshold TPrsd
Referring to
Where any one of the six conditions are met, it is to be taken that target signals may well be present and the method then passes to step 556a.
Where all six conditions are not met, target signals are considered not present and the method passes to step 553 where a feedback factor, Fb is calculated before passes to step 554a. This feedback factor is implemented to adjust the amount of feedback based on noise level to obtain a balance among convergent rate, system stability and performance at adaptive interference and noise filter 46.
Before passed to step 556 or 554, these signals are collected for the new N/2 samples and the last N/2 samples from the previous block and a Hanning Window Hn is applied to the collected samples as shown in
At step 554-558, the frequency domain signals Scf, D1f, D2f, and D3f are processed by the Adaptive Interference and Noise Filter 46 using a novel frequency domain Least Mean Square (FLMS) algorithm, the purpose of which is to reduce the unwanted signals. The filter 46, at step 554 is instructed to perform adaptive filtering on the non-target signals with the intention of adapting the filter coefficients to reducing the unwanted signal in the Sum channel to some small error value Ef at step 558. This computed Ef is also fed back to step 554 to calculate the adaptation rate of weight updating μ of each frequency beam. This will effectively prevent signal cancellation cause by wrong updating of filter coefficients. The signals so processed will be referred to for convenience as C′.
In the alternative, at step 556, the target signals are fed to the filter 46 but this time, no adaptive filtering takes place, so the Sum and Difference signals pass through the filter.
The output signals from processor 46 are thus the Sum channel signal Scf, error output signal Ef at step 558 and filtered Difference signal Si.
Referring to
At step 564, a modified spectrum is calculated for the transformed signals to provide “pseudo” spectrum values Ps and Pi. Ps and Pi are then warped into the same Bark Frequency Scale to provide Bark Frequency scaled values Bs and Bi at step 566. With these two values, a probability of speech present, PB_Speech is calculated at step 567.
Referring to
A weighted combination By of Bn (through path E) and Bi is then made at step 570 and this is combined with Bs to compute the Bark Scale non-linear gain Gb at step 572.
Gb is then unwrapped to the normal frequency domain to provide a gain value G at step 574 and this is then used at step 576 to compute an output spectrum Sout using the signal spectrum Sf from step 562. This gain-adjusted spectrum suppresses the interference signals, the ambient noise and system noise.
An inverse FFT is then performed on the spectrum Sout at step 578 and the time domain signal is then reconstructed from the overlapping signals using the overlap add procedure at step 580. This time domain signal if subject to further high frequency recovery at step 581 where the signal are transform to two sub-bands at wavelet domain and multiplex with a reference signal. This multiplex signal is then reconstructed to time domain output signal, Ŝt by an inverse wavelet transform using the 2 sub-bands from the Discrete Wavelet Transform at step 505.
The method at this stage had essentially completed the noise suppression of the signals received earlier from the microphone array 10a-d. The resulting recovered Ŝt signal may be used readily for voice communication free from noise and interference in a variety of communication system and devices.
However, for this Ŝt signal to be further used for Speech Recognition purposes, further processing is required to assist the Speech Recognition Engine 52 from triggering when non-speech signals are received.
The Ŝt signal is further sent to the Speech Signal Pre-Processor 50 where an additional step 450 is performed for the pre-processing of the speech signal.
Referring to
Value of continuous interference threshold parameter PTH, Pci and the status of Pi are computed at step 582. If the signal current being processed contained the desired speech signal, program flows through the sequential steps 584, 586, 588, 590 or 584,586, 588 depending on the value of counter Cnter which is verified at step 588. Both of these sequences will not result in any modification to the signal Ŝt. Program flows through sequential steps 584, 592, 596 otherwise. The use of counter Cntout and Cnter has been a strategy adopted to protect the ending segment of desired speech signal. During this ending segment of speech, which is of small magnitude, parameters Pci and Pi tend to be unreliable. This situation is especially true under loud interferences from the sides of the array. The counter Cnter is used to count the number of consecutive buffers which return false for the status of the Boolean expression Pci<PTH OR Pi=1 at step 584, a condition that is encountered in the presence of a desired speech segment. When Cnter reaches a pre-specified value, which is equal to 20 in this embodiment, it indicates that the algorithm is potentially processing a desired speech signal segment currently, the algorithm then sets the counter Cntout equal to a fixed value which correspond to the number of buffers to be output in the first instance when status of the Boolean expression Pci<PTH OR Pi=1 returns true.
At step 592, if the counter Cntout is greater than 0, condition indicating that the current buffer is likely to be the ending segment of a desired speech signal, Ŝt will bypass the whitening filter at step 596 and proceeds to step 594 that decrements counter Cntout by 1 and as well as resetting counter Cnter to 0. Again, this program sequence does not result in any modification to the signal Ŝt.
Program flows to step 596 if the counter Cntout is less than or equal 0 at step 592, this flow sequence, which only occur when the current buffer contains neither the desired speech signal nor the ending segment, results in the whitening of the signal Ŝt by the whitening filter and produce a clean output signal S′.
Besides providing the Speech Recognition Engine 52 with a processed signal S′, the system also provides a set of useful information indicated as I on
Major steps in the above described flowchart will now be described in more detail.
The processor 42 estimates the energy output from a reference channel. In the four channel example described, channel 10a is used as the reference channel.
N/2 samples of the digitized signal are buffered into a shift register to form a signal vector of the following form:
Where J=N/2. The size of the vector depends on the resolution requirement. In the preferred embodiment, J=128 samples.
The nonlinear energy of the vector is then estimated using the following equation:
This Noise Level Estimation function is able to distinguish between speech target signal and environment noise signal. In this case the environment noise level can be track more closely and this means than the user can use the embodiment in all environments, especially noisy environments (car, supermarket, etc).
During system initialization, this Noise Level Ntge and Nae are first established and the noise level threshold, Ttge1 and Tae are then updated. Ntge and Nae will continue to be updated when there is no target speech signal and the noise signal power Er1 and Pr1 is less than the noise level threshold, Ttge1 and Tae respectively.
A Bark Spectrum of the system noise and environment noise is also similarly computed and is denoted as Bn.
The noise level Ntge, Nae and Bn are updated as follows:
If the signal energy of the reference signal is less than threshold, Ttge1 and the average power of the reference signal is less than threshold, Tae or during the first 20 cycles of system initialization then, if the signal energy of the reference signal is less than the noise level Ntge,
α1=0.98
Else
α1=0.9
Ntge=α1*Ntge+(1−α1)*Er1
Nae=α1*Nae+(1−α1)*Pr1
Bn=α1*Bn+(1−α1)*Bs
Where Er1 is the signal energy of the reference signal and Pr1 is the average power of the reference signal.
Once the noise energy, Ntge and Nae are obtained, the three noise threshold are established as follows:
Ttge1=β1*Ntge
Ttge2=β2*Ntge
Tae=β3*Nae
In this embodiment, β1=1.175, β2=1.425 and β3=1.3 have been found to give good results.
If there is an abrupt change in environment noise, the signal energy of the reference signal might be higher than threshold, Ttge1 and causes the Bn not updated. To overcome this, a condition is checked to make sure the estimated noise spectrum Bn is updated during this condition and whenever there is no target signal present. The updating condition is as follows:
If C′ and Rsd<0.35 or PB_Speech<0.25 then,
α1=0.98
Bn=α1*Bn+(1−α1)*Bs
This dynamic noise power level, NPrsd is estimated based on the signal power ratio Prsd and the environment noise level. It will then be used to update the dynamic noise power threshold, for this case TRsd, TPrsd
During noisy environment or low SNR condition, the signal power ratio, Prsd will decrease to a lower level. In this case the dynamic noise power level, NPrsd will follow the signal power ratio to that lower level. The dynamic noise power threshold, TPrsd will also be set at a lower threshold. This will ensure any low SNR target signal to be detected because the signal power ratio, Prsd of such target signal will also be lower. This is illustrated in
This dynamic noise power level, NPrsd is updated base on the following conditions: If the reference channel signal energy is less than Ttge1 and Ttge2 and power ratio is greater than 0.55 for 15 consecutive processing blocks,
NPrsd=α1*NPrsd+(1−α1)*β1
Else if the reference channel signal energy is greater than Ttge1 and power ratio is less than 0.6 for 25 consecutive processing blocks,
NPrsd=α2*NPrsd+(1−α2)*TPrsd
In this embodiment, α1=0.7, α2=0.85 and β1=1.2 have been found to give good results.
Time delay estimation of performed using a tapped delay line time delay estimator included in the processor 42 which is shown in
Wtd(k+1)=Wtd(k)+2μtdS10d(k)e(k) B.1
where βtd is a user selected convergence factor 0<βtd≦2, ∥ ∥ denoted the norm of a vector, k is a time index, Lo is the filter length.
The impulse response of the tapped delay line filter 620 at the end of the adaptation is shown in
The normalized cross correlation between the reference channel 10a and the most distant channel 10d is calculated as follows:
Samples of the signals from the reference channel 10a and channel 10d are buffered into shift registers X and Y where X is of length J samples and Y is of length K samples, where J>K, to form two independent vectors Xr and Yr:
A time delay between the signals is assumed, and to capture this Difference, J is made greater than K. The Difference is selected based on angle of interest. The normalized cross-correlation is then calculated as follows:
Where T represents the transpose of the vector and ∥ ∥ represent the norm of the vector and l is the correlation lag. l is selected to span the delay of interest. For a sampling frequency of 16 kHz and spacing between sensors 10a, 10d of 18 cm, the lag l is selected to be five samples for an angle of interest of 15°.
The threshold Tc is determined empirically. Tc=0.65 is used in this embodiment.
The impulse response of the tapped delay line filter with filter coefficients Wtd at the end of the adaptation with the presence of both signal and interference sources is shown in
With the presence of both signal and interference sources, there will be more than one peak at the tapped delay line filter coefficient. The Pk ratio is calculated as follows:
Δ is calculated base on the threshold θ at step 530. In this embodiment, with θ equal to ±15°, Δ is equivalent to 2. A low Pk ratio indicates the present of strong interference signals over the target signal and a high Pk ratio shows high target signal to interference ratio.
Note that the value of B is obtained by scanning the maximum peak point at the two boundaries instead of taking the maximum point. This is to prevent a wrong estimation of Pk ratio when the center peak is broad and the high edge at the boundary B′ being misinterpreted as the value of B as shown in
In the time delay estimation LMS algorithm, a modified leaky form is used. This is simply implemented by:
Wtd=αWtd (where α=forgetting_factor˜=0.98)
This leaky form has the property of adapting faster to the direction of fast changing sources and environment.
The objective is to adopt the filter coefficients of filter 44 in such a way so as to enhanced the target signal and output it in the Sum Channel and at the same time eliminate the target signal from the coupled signals and output them into the Difference Channels.
The adaptive filter elements in filter 44 acts as linear spatial prediction filters that predict the signal in the reference channel whenever the target signal is present. The filter stops adapting when the signal is deemed to be absent.
The filter coefficients are updated whenever the conditions of steps are met, namely:
As illustrated in
The filter elements 712,4,6 adapt in parallel using the normalized LMS algorithm given by Equations E.1 . . . E.8 below, the output of the Sum Channel being given by equation E.1 and the output from each Difference Channel being given by equation E.6:
Where m is 0,1,2 . . . M−1, the number of channels, in this case 0 . . . 3 and T denotes the transpose of a vector.
Where Xm(k) and Wsum(k) are column vectors of dimension (Lsu×1).
The weight Xm(k) is updated using the normalized LMS algorithm as follows:
{circumflex over (∂)}cm(k)=
Wsum(k+1)=Wsum(k)+2μsumXm(k){circumflex over (∂)}cm(k) E.7
and where βsu is a user selected convergence factor 0<βsu≦2, ∥ ∥ denoted the norm of a vector and k is a time index.
In the events of wrong updating of Spatial Filter, the coefficients of the filter could adapt to the wrong direction or sources. To reduce the effect, a set of ‘best coefficients’ is kept and copied to the beam-former coefficients when it is detected to be pointing to a wrong direction, after an update.
Two mechanisms are used for these:
A set of ‘best weight’ includes all of the three filter coefficients (Wsu1−Wsu3). They are saved based on the following conditions:
When there is an update on filter coefficients Wsu, the calculated Pk2 ratio is compared with the previous stored BPk, if it is above the BPk, this new set of filter coefficients shall become the new set of ‘best weight’ and current Pk2 ratio is saved as the new BPk with a forgetting factor as follows:
BPk=Pk2*α
In this embodiment the forgetting factor α is selected as 0.95 to prevent BPk saturated and filter coefficient restore mechanism being locked.
A second mechanism is used to decide when the filter coefficients should be restored with the saved set of ‘best weights’. This is done when filter coefficients are updated and the calculated Pk2 ratio is below BPk and threshold TPk. In this embodiment, the value of TPk is equal to 0.65.
This is performed as follows:
J=N/2, the number of samples, in this embodiment 256.
Where ESUM is the sum channel energy and EDIF is the difference channel energy.
The energy ratio between the Sum Channel and Difference Channel (Rsd) must not exceed a dynamic threshold Trsd.
This is performed as follows:
J=N/2, the number of samples, in this embodiment 128.
Where PSUM is the sum channel power and PDIF is the difference channel power.
The power ratio between the Sum Channel and Difference Channel must not exceed a dynamic threshold, TPrsd.
This dynamic noise energy threshold, TRsd is estimated based on the dynamic noise power level, NPrsd. In this case TRsd will track closely with NPrsd.
This dynamic noise energy threshold, TRsd is updated base on the following conditions:
If the dynamic noise power is more than 0.8,
TRsd=α1*NPrsd
Else
TRsd=α2*NPrsd
In this embodiment, α1=1.7 and α2=1.1 have been found to give good results. The maximum value of TRsd is set at 1.2 and the minimum value is set at 0.5.
This maximum dynamic noise power threshold, TPrsd
This maximum dynamic noise power threshold, TPrsd
If the dynamic noise power is more than 0.8,
TPrsd
Else
If the reference channel signal energy is more than 1000
TPrsd—max=α1*NPrsd
Else
TPrsd
In this embodiment, α1=1.23 and α2=1.45 have been found to give good results.
This dynamic noise power threshold, TPrsd will track closely to the dynamic noise power level, NPrsd and is updated base on the following conditions:
If the reference channel signal energy is more than 700 and power ratio is less than 0.45 for 64 consecutive processing blocks,
TPrsd=α1*TPrsd+(1−α1)*Prsd
Else if the reference channel signal energy is less that 700, then
TPrsd=α2*TPrsd+(1−α2)*TPrsd
In this embodiment, α1=0.7 and α2=0.98 have been found to give good results. The maximum value of TPrsd is set at TPrsd
Wrong updating or uncontrolled adaptation of interference filter coefficient during noisy and the presence of target signal can lead to signal cancellation and drastic performance degradation. On the other hand, an error feedback loop in filter coefficient updating will provide a more stable but slower convergent rate LMS. A feedback factor is implemented to adjust the amount of feedback based on noise level to obtain a balance among convergent rate, system stability and performance. This feedback factor is calculated as follows:
Fb=1−sfun(TPr sd,0,1.5)
where sfun is a non-linear S-shape transfer function as shown in
In order to implement the well known overlap add block-processing technique, outputs from the Sum and Difference Channels of the filter 44 are buffered into a memory as illustrated in
A Hanning Window is then applied to the N samples buffered signals as illustrated in
Where (Hn) is a Hanning Window of dimension N, N being the dimension of the buffer. The “dot” denotes point-by-point multiplication of the vectors. t is a time index and m is 1,2 . . . M−1, the number of difference channels, in this case 1,2,3.
The resultant vectors [Sh] and [Dmh] are transformed into the frequency domain using Fast Fourier Transform algorithm as illustrated in equation H.6, H.7 and H.8 below:
Scf=FFT(Sh) (H.6)
Dmf=FFT(Dmh) (H.7)
As illustrate at
A modify block frequency domain Least Mean Square algorithm (FLMS) is used in this filter. This block frequency domain adaptive filter has faster convergent rate and less computational load as compared with time domain sliding window LMS algorithm use in PCT/SG99/00119. This frequency domain filter coefficients Wmf is adapt as follows:
D
mf(k)=diag{[Dm,1(k), . . . ,Dm,N(k)]r} (I.3)
Wmf(k)=[Wm,1(k), . . . Wm,N(k)]r (I.4)
Wmf(k+1)=Wmf(k)+2μm(k)D*mf(k)Ef1(k) (I.5)
μm(k)=βuqdiag{Pm,1−1(k), . . . ,Pm,N−1(k)} (I.6)
Pm,n(k)=Fb∥Ef,n(k)∥2+∥Dm,n(k)∥2 (I.7)
and where βuq is a user select factor 0<βuq≦2. m is 1,2 . . . M−1, the number of difference channels, in this case 1,2 and 3 and n is 1, . . . N, the block processing size. The ‘*’ denotes complex conjugate.
When target signal is presence and the Interference filter is updated wrongly, the error signal in equation I.1 will be very large. Hence, by including power of error signal ∥Ef∥2 into weight updating μ calculation (equation I.6) of each frequency beam, the value of μ will become very small whenever there is a wrong updating of Interference filter occur. This form an error feedback loop which help to prevent a wrong updating of weight coefficients of Interference filter and hence reduce the effect of signal cancellation. Fb is the feedback factor determines the amount of feedback based on signal and noise level.
The output Ef from equation I.1 is almost interference and noise free in an ideal situation. However, in a realistic situation, this cannot be achieved. This will cause signal cancellation that degrades the target signal quality or noise or interference will feed through and this will lead to degradation of the output signal to noise and interference ratio. The signal cancellation problem is reduced in the described embodiment by use of the Adaptive Spatial Filter 44 which reduces the target signal leakage into the Difference Channel. However, in cases where the signal to noise and interference is very high, some target signal may still leak into these channels.
To further reduce the target signal cancellation problem and unwanted signal feed through to the output, the output signals from processor 46 are fed into the Adaptive NonLinear Interference and Noise Suppression Processor 48 as described below.
The frequency domain filter output (Si), error output signal (Ef) and the Sum Channel output signal (Scf) are combined as a weighted average as follows:
Sf=GN*Scf+GE*Ef
If=G*Si
The weights G, GN and GE are adaptively changing based on signal to noise and interference ratio to produce a best combination that optimize the signal quality and interference cancellation.
During quiet or low noise environment if a speech target signal is detected, GE will decrease and GN increase thus Sf will receive more speech target signals from the Signal Adaptive Spatial Filter (Filter 44). In this case the filtered signal and the non-filtered signal will be closely matched. For noisy environment when a speech target signal is detected, GE will increase and GN decrease, now Sf will receive more speech target signals from the Adaptive Interference Filter (Filter 46). Now the speech signal will be highly coupled with noise and this need to be filtered out. G will determine the amount of noise input signal.
Gnew is chosen based on the lower and upper limit of the s-function on the Energy Ratio, Rsd. Depending of the update condition of the Signal Adaptive Spatial Filter and the Adaptive Interference Filter, the value of G, GN and GE are calculated and stored separately for each update condition. These stored values are used in the next cycle of computation. This will ensure a steady state value even if the update condition changes frequently.
This three Signal to Noise Ratio Gain G, GN and GE are updated base on the following conditions:
If the Signal Adaptive Spatial Filter is updated,
G1=α1*G1+(1−α1)*Gnew
GE1=α1*GE1+(1−α1)*G1
GN1=α1*GN1+(1−α1)*(1−G1)
G=G1
GE=GE1
GN=GN1
Else if the Adaptive Interference Filter is updated,
G2=α1*G1+(1−α1)*Gnew
GE2=α1*GE2+(1−α1)*G2
GN2=α1*GN2+(1−α1)*(1−G2)
G=G2
GE=GE2
GN=GN2
Else then,
G3=α1*G3+(1−α1)*Gnew
GE3=α1*GE3+(1−α1)*G3
GN3=α1*GN3+(1−α1)*(1−G3)
G=G3
GE=GE3
GN=GN3
In this embodiment, α1=0.9 has been found to give good results.
A modified spectrum is then calculated, which is illustrated in Equations H.9 and H.10:
Ps=|Re(Sf)|+|Im(Sf)|+F(Sf)*rs (H.9)
Pi=|Re(If)|+|Im(If)|+F(If)*ri (H.10)
Where “Re” and “Im” refer to taking the absolute values of the real and imaginary parts, rs and ri are scalars and F(Sf) and F(If) denotes a function of Sf and If respectively.
One preferred function F using a power function is shown below in equation H.11 and H.12 where “Conj” denotes the complex conjugate:
Ps=|Re(Sf)|+|Im(Sf)|+(Sf*conj(Sf))*rs (H.11)
Pi=|Re(If)|+|Im(If)|+(If*conj(If))*ri (H.12)
A second preferred function F using a multiplication function is shown below in equations H.13 and H.14:
Ps=|Re(Sf)|+|Im(Sf)|+|Re(Sf)|*|Im(Sf)|*rs (H.13)
Pi=|Re(If)|+|Im(If)|+|Re(If)|*|Im(If)|*ri (H.14)
The values of the scalars (rs and ri) control the tradeoff between unwanted signal suppression and signal distortion and may be determined empirically. (rs and ri) are calculated as 1/(2vs) and 1/(2vi) where vs and vi are scalars. In this embodiment, vs=vi is chosen as 8 giving rs=ri=1/256. As vs and vi reduce, the amount of suppression will increase.
The Spectra (Ps) and (Pi) are warped into (Nb) critical bands using the Bark Frequency Scale [See Lawrence Rabiner and Bing Hwang Juang, Fundamental of Speech Recognition, Prentice Hall 1993]. The number of Bark critical bands depends on the sampling frequency used. For a sampling of 16 kHz, there will be Nb=22 critical bands. The warped Bark Spectrum of (Ps) and (Pi) are denoted as (Bs) and (Bi).
This probability of speech present is to give a good indication of whether target signal present at the input even the environment is very noisy and the SNR below 0 dB. It is calculated as follows:
where, n=1 to Nb and α is used to adjust the rate of adaptation of the probability, in this embodiment α=0.2 give a good result. A high PB_Speech that closer to one indicate a high probability of target signal present at the input. Whereas, a low PB_Speech indicates the probability of target signal present at the input is low.
This is used to detect voice or unvoiced signal from the Bark critical bands of sum signal and hence reduce the effect of signal cancellation on the unvoiced signal. It is performed as follows:
where k is the voice band upper cutoff
where l is the unvoiced band lower cutoff
If Unvoice_Ratio>Unvoice_Th
Bs(n)=Bs(n)×A
where l≦n≦Nb
In this embodiment, the value of voice band upper cutoff k, unvoiced band lower cutoff l, unvoiced threshold Unvoice_Th and amplification factor A is equal to 16, 18, 10 and 8 respectively.
A Bark Spectrum of the system noise and environment noise is similarly computed and is denoted as (Bn). Bn is first established during system initialization as Bn=Bs and continues to be updated when no target signal is detected by the system i.e. any silence period. Bn is updated as follows:
If the signal energy of the reference signal Er1 is less than threshold, Ttge1 and the average power of the reference signal is less than threshold, Tae or during the first 20 cycles of system initialization then,
If the signal energy of the reference signal is less than the noise level Ntge,
α=0.98
Else
α=0.9
Bn=α*Bn+(1−α)*Bs
Using (Bs, Bi and Bn) a non-linear technique is used to estimate a gain (Gb) as follows:
First the unwanted signal Bark Spectrum is combined with the system noise Bark Spectrum by using as appropriate weighting function as illustrate in Equation J.1.
By=Ω1Bi+Ω2Bn (J.1)
Ω1 and Ω2 are weights whose can be chosen empirically so as to maximize unwanted signals and noise suppression with minimized signal distortion. In this embodiment, Ω1=1.0 and Ω2=0.25.
Follow that a post signal to noise ratio is calculated using Equation J.2 and J.3 below:
The division in equation J.2 means element-by-element division and not vector division. Rpo and Rpp are column vectors of dimension (Nb×1), Nb being the dimension of the Bark Scale Critical Frequency Band and INb×1 is a column unity vector of dimension (Nb×1) as shown below:
If any of the rpp elements of Rpp are less than zero, they are set equal to zero.
Using the Decision Direct Approach [see Y. Ephraim and D. Malah: Speech Enhancement Using Optimal Non-Linear Spectrum Amplitude Estimation; Proc. IEEE International Conference Acoustics Speech and Signal Processing (Boston) 1983, pp 1118-1121.], the a-priori signal to noise ratio Rpr is calculated as follows:
Bo/By (J.7)
The division in Equation J.7 means element-by-element division. Bo is a column vector of dimension (Nb×1) and denotes the output signal Bark Scale Bark Spectrum from the previous block Bo=Gb×Bs (See Equation J.15) (Bo initially is zero). Rpr is also a column vector of dimension (Nb×1). The value of βi is given in Table 1 below:
The value i is set equal to 1 on the onset of a signal and βi value is therefore equal to 0.01625. Then the i value will count from 1 to 5 on each new block of N/2 samples processed and stay at 5 until the signal is off. The i will start from 1 again at the next signal onset and the βi is taken accordingly.
Instead of βi being constant, in this embodiment βi is made variable based on PB_Speech and starts at a small value at the onset of the signal to prevent suppression of the target signal and increases, preferably exponentially, to smooth Rpr.
From this, Rrr is calculated as follows:
The division in Equation J.8 is again element-by-element. Rrr is a column vector of dimension (Nb×1).
From this, Lx is calculated:
Lx=Rrr·Rpo (J.9)
The value Lx of is limited to Pi (≈3.14). The multiplication is Equation J.9 means element-by-element multiplication. Lx is a column vector of dimension (Nb×1) as shown below:
A vector Ly of dimension (Nb×1) is then defined as:
Where nb=1,2 . . . Nb. Then Ly is given as:
E(nb) is truncated to the desired accuracy. Ly can be obtained using a look-up table approach to reduce computational load.
Finally, the Gain Gb is calculated as follows:
Gb=Rrr·Ly (J.14)
The “dot” again implies element-by-element multiplication. Gb is a column vector of dimension (Nb×1) as shown:
As Gb is still in the Bark Frequency Scale, it is then unwrapped back to the normal linear frequency scale of N dimensions. The unwrapped Gb is denoted as G.
The output spectrum with unwanted signal suppression is given as:
The “·” again implies element-by-element multiplication.
The recovered time domain signal is given by:
IFFT denotes an Inverse Fast Fourier Transform, with only the Real part of the inverse transform being taken.
The time domain signal is obtained by overlap add with the previous block of output signal:
This time domain signal is then multiplex with a reference channel signal in wavelet domain to recover any high frequency component that loss through out the processing.
A one level wavelet transform is performed on both the reference signal and the time domain output signal as follows:
[ZwL ZwH]=DWT(Xy)
[ZdL ZdH]=DWT(St)
where L=1:N/4, H=N/4+1:N/2 and DWT denote discrete wavelet transform.
Then the high frequency recovery is perform on the wavelet domain as follows:
If the signals are A′ signals from step 528
ZsH=GE*ZwH+GN*ZdH
else
ZsH=GN*ZwH+GE*ZdH
The final time domain output signal is then obtained by performing an inverse wavelet transform on the multiplex sub-bands as follows:
{circumflex over (S)}t=IDWT[ZdL ZsH]
Although the interference and noise signals have been suppressed to a great deal by the Adaptive NonLinear Interference and Noise Suppression Processor, residual interference signals of small magnitude do exist at the output Ŝt. When this output is used to drive a speaker and be listened by a person, these residual interference signals were barely audible or intelligible and were thus ignored by the listener. However, when this output is fed to a speech recognition engine, the residual interference signals cause false triggering of the Speech Recognition Engine.
In order to reduce the frequency of false triggering, the Speech Signal Pre-processor was introduced to further process the output signal from the Adaptive Interference and Noise Cancellation and Suppression Processor.
Should Pci be lower than dynamic continuous interference threshold PTH, which is determined empirically, or the logic value of Pi is ‘1’ and together with the condition that the value of Cntout is less than 0, the input signal will be processed by the whitening filter. Otherwise, the input signal will simply bypass the whitening filter. In the whitening filter implementation, the Normalized Least Mean Square algorithm (NLMS) is used to adaptively adjust the coefficients of the tapped delay line filter.
The rationale for having two parameters has been that the Pi parameter is useful in situation where the interference from the side of the sensors is intermittent while Pci is useful in situation where the interference is continuous. The use of counter Cntout has been a strategy adopted to protect the ending segment of desired speech signal. During this ending segment of speech, which is of small magnitude, parameters Pci. and Pi tend to be unreliable. This situation is especially true under loud interferences from the sides of the sensors. A counter Cnter is used to count the number of consecutive buffers which return false for the status of the Boolean expression Pci<PTH OR Pi=1. When Cnter reached a pre-specified value, which is equal to 20 in this embodiment, it signify that the algorithm is currently processing a desired speech segment, the algorithm then set the counter Cntout equal to a fixed value which correspond to the number of buffers to be output in the first instance when status of the Boolean expression Pci<PTH OR Pi=1 return true.
For the dynamic continuous interference threshold PTH, it is selected base on the following conditions:
Setting χ1=0.05 and χ2=0.143 have been able to produce good results.
The logic value of intermittent interference status parameter Pi is determined through the following conditions,
where abs( ) is taking the absolute value of its operand. In this embodiment, δ1=2, δ2=1.0 and δ3=0.5 have been found to give good results.
In order to obtain a robust parameter to be used under varying interference scenarios, a number of parameters have been combined to create a new parameter. In this case, the suppression parameter is derived based on the weighted sum of three parameters given by the following equation:
Pci=ε1*PS{circumflex over (∂)}+ε2*Pwtpk+ε3*Pmicxcorr
Computation of signal to error ratio PS{circumflex over (∂)}, normalized filter coefficient peak ratio Pwtpk and transformed normalized crossed correlation estimation Pmicxcorr will follow in the next few sections. In this embodiment, ε1=0.55, ε2=0.35 and ε3=0.1 have been found to give good results.
PS{circumflex over (∂)} is computed by mapping the ratio of Spow/{circumflex over (∂)}c3
Lu=9.1*TPrsd−3.37
In addition, the range of variation is also limited to be in the range of between 1.0 and 3.0.
The parameter Pwtpk is derived from the product of two parameters, namely Pwt and Ppk. Pwt is computed by applying the s-function to the ratio of A/∥Wtd∥. Where A is defined as the maximum value of tapped delay line filter coefficients Wtd within the index range of
where L0 is the filter length and Δ is calculated base on the threshold θ, with θ equal to ±15° in this embodiment, Δ is equivalent to 2. And ∥Wtd∥ is the norm of the coefficients of the tapped delay line filter. Ppk is obtained by applying the s-function to the Pk parameter.
In this embodiment, the lower and upper limits used in the s-function for the computation of Pwt are 0.2 and 1.0 respectively. As for Ppk, the lower and upper limits used in the s-function are 0.05 and 0.55 respectively.
The parameter Pmicxcorr is derived from the normalized cross correlation estimation Cx, which is the cross correlation between the reference channel 10a and the most distant channel 10d. Pmicxcorr is computed by mapping Cx to a value of between 0 and 1 through the s-function. In this embodiment, the upper limit of the s-function is set to 1 and the lower limit is set to 0 for this particular computation.
The whitening of output time sequence Ŝt is achieved through a one step forward prediction error filter. The objective of whitening is to reduce instances of false triggering to the Speech Recognition Engine cause by the residual interference signal.
Denoting the Lsux1 observation vector as,
as the tap coefficients of the forward prediction error filter. The weight vector Wwh(k) is updated using the normalized LMS algorithm as follows:
Predicted value of X(k),
{circumflex over (X)}(k)=(Wwh(k))TXwh(k)
Forward prediction error,
Swh(k)=X(k)−{circumflex over (X)}(k)
Adaptation step size,
Tap-weight adaptation,
Wwh(k+1)=Wwh(k)+2μwhXwh(k)Swh(k)
where T denotes the transpose of a vector, ∥ ∥ denotes the norm of a vector and βwh is a user selected convergence factor 0<βsu≦2, and k is a time index. The adaptation step size μwh(k) is slightly varied from that of the conventional normalized LMS algorithm. An error term Swh2(k) is included in this case to provide better control of the rate of adaptation as well. The value of σ is in the range of 0 to 1. In this embodiment, σ is equal to 0.1.
The embodiment described is not to be construed as limitative. For example, there can be any number of channels from two upwards. Furthermore, as will be apparent to one skilled in the art, many steps of the method employed are essentially discrete and may be employed independently of the other steps or in combination with some but not all of the other steps. For example, the adaptive filtering and the frequency domain processing may be performed independently of each other and the frequency domain processing steps such as the use of the modified spectrum, warping into the Bark scale and use of the scaling factor βi can be viewed as a series of independent tools which need not all be used together.
Use of first, second etc. in the claims should only be construed as a means of identification of the integers of the claims, not of process step order. Any novel feature or combination of features disclosed is to be taken as forming an independent invention whether or not specifically claimed in the appendant claims of this application as initially filed.
Number | Name | Date | Kind |
---|---|---|---|
20020198704 | Rajan et al. | Dec 2002 | A1 |
Number | Date | Country |
---|---|---|
WO03036614 | May 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20060015331 A1 | Jan 2006 | US |