Professional Documents
Culture Documents
Development of Two-Input Adaptive Noise Canceller For Wideband and Narrowband Noise Signals
Development of Two-Input Adaptive Noise Canceller For Wideband and Narrowband Noise Signals
DOI 10.1007/s10772-017-9443-z
Abstract In this paper, the development of the single- environments. Intense background noise, however, often
stage two-input adaptive noise canceller that proposed by corrupts speech and degrades the performance of many
Widrow et al. is investigated. It is shown that the use of communication systems. Thus a large variety of noise
multi-stage cancellers instead of a single stage improves reduction techniques have been proposed for reducing
the performance of the conventional two-input adaptive background noise in noisy environment, see (Narendra and
noise canceller in a real life high-noise environment. In Han 2012; Moir and Harris 2012; Niedźwiecki and Meller
such environment, the background noise may contain both 2012; Roshahliza 2017; Jayakumar et al. 2016) and refer-
the wideband and narrowband (sinusoidal) noise compo- ences therein. The recent noise reduction techniques prefer
nents. In this contribution, the wideband noise and sinu- multi-microphone systems (Bitzer et al. 2001; Moham-
soidal noise signals can be significantly suppressed using med 2009; Touazi and Debyeche 2017), over single-
a new multi-stage adaptive noise cancellation scheme microphone systems (Boll 1979; Sasaoka et al. 2005) due
based on adaptive line enhancer (ALE) and Least Mean to the obvious advantages provided by the former over the
Square (LMS) filter. The proposed scheme is comprised later. A multi-microphone system can be considered as a
of two stages. The first stage uses ALE filters, which are directional microphone with a zero response (null) in the
used to cancel the sinusoidal noise from the primary and noise direction. However, the microphone array involves
reference input signals, whereas the wideband noise is can- increased cost in the form of more microphones, D/A con-
celled using LMS adaptive filter in the second stage. The verters, memory, signal processing power, etc. On the other
good performance of the proposed scheme has been veri- hand, spectral subtraction method (Boll 1979) is known to
fied via real-time implementation on the Texas Instruments use single-microphone system. However, in the spectral
TMS320C6713DSK. subtraction method, the musical tones arise from residual
noise and it requires the speech/non-speech section detector
Keywords Adaptive noise canceller · Adaptive line under the noisy environments.
enhancer · Wideband noise · Narrowband noise The widely used adaptive noise canceller (Widrow et al.
1975) consists a single stage with two microphones namely,
the primary microphone which is placed close to the signal
1 Introduction source to pick up the desired signal and the reference micro-
phone which is placed close to the noise source to sense
The widespread use of cellular phones has significantly only the noise. Also it employs an adaptive filter with the
increased the use of communication devices in high-noise LMS algorithm to cancel the noise component embedded in
the primary signal. The adaptive filter has the task of mod-
eling the impulse response path between noise source and
* Jafar Ramadhan Mohammed primary microphone. In real-time environment, the back-
jafarram@yahoo.com
ground noise typically comes from various sources such as
1
College of Electronic Engineering, Ninevah University, ventilating fan, audio equipment, engines etc. Therefore, the
Mosul 41001, Iraq background noise maybe consists of wideband noise as well
13
Vol.:(0123456789)
Int J Speech Technol
as the sinusoidal noise. A block diagram of the conventional which combines both feedforward and feedback ANC tech-
ANC scheme is illustrated in Fig. 1, where H1(z) represents niques. The adaptive feedforward controller is based on a dig-
the transfer function between the wideband noise source and ital system, while the feedback system is based on an analog
the primary microphone, and H 2(z) represents the transfer system.
function between the sinusoidal noise and the primary micro- On the other hand, the adaptive line enhancer (ALE) tech-
phone. The conventional ANC scheme has two inputs: the nique has been successfully applied to a wide range of appli-
primary input x(n) = s(n) + 𝜂0 (n) + 𝜁0 (n) and the reference cations such as speech coding and denoising periodic signals
input v1 (n) = 𝜂1 (n) + 𝜁1 (n). The reference input contains from white noise (Levin et al. 2011). By combining the ALE
sinusoidal noise 𝜂1 (n) and wideband noise 𝜁1 (n) while the and conventional ANC scheme in an effective manner, the
primary input consists of speech s(n) plus sinusoidal noise purpose of cancellation of both the wideband and sinusoidal
𝜂0 (n) and wideband noise 𝜁0 (n). The objective of the adap- noise is accomplished. The idea is to first introduce an adap-
tive filter W(z) is to use the reference inputs 𝜁1 (n) + 𝜂1 (n) tive line enhancer to remove the sinusoids from the primary
to estimate the noise signals 𝜁o (n) + 𝜂o (n). The filter output and reference signals to let the conventional ANC do what it
y(n), which is an estimate of noises 𝜁o (n) + 𝜂o (n), is then sub- is good at, and then place a conventional ANC scheme cas-
tracted from the primary microphone signal, producing the cade to the ALE to cancel the wideband noise. To the best
desired speech signal plus reduced noises. Xiao and Wang of my knowledge, the proposed ANC scheme has almost not
(2011) showed that the conventional ANC system may per- been investigated and discussed so far. The proposed scheme
form very poorly if its primary and reference noise signals uses two stages of adaptive filters where the first stage consist
contain both wideband and narrowband components simul- of two ALE filters placed in parallel to estimate and cancel
taneously. They also showed that if the length of the adaptive the sinusoidal noise included in the primary input and refer-
filter W(z) is set longer than the paths H1(z), H2(z) and fre- ence input signals. The second stage consists of conventional
quencies of the sinusoids involved are not very low, the con- adaptive noise cancellation scheme which estimates and can-
ventional ANC scheme usually indicates good performance. cels the wideband noise present in the noisy output speech
However, if a single sinusoid with very low frequency and signal from the first stage and will provide the required
relatively large amplitude is present, and the adaptation is not speech enhancement.
slow, the conventional ANC-only system may lose its power.
Its steady-state residual noise signal will sometimes show 2 The proposed scheme
spike-like peaks that sound like fireworks (Xiao and Wang
2011). Moreover, when the length of the adaptive controller Figure 2 shows the new proposed adaptive noise cancellation
W(z) is shorter than the paths H1(z), H2(z), the conventional scheme. The primary input and reference input signals of the
ANC performance will deteriorate too, because the adaptive proposed scheme are given as follows:
controller cannot realize a good approximation of the impulse
response paths between noise sources and primary micro-
x(n) = s(n) + v0 (n)=s(n) + 𝜁0 (n) + 𝜂0 (n) (1)
phone, and the existence of sinusoids make the system lack of v1 (n) = 𝜁1 (n) + 𝜂1 (n) (2)
power to take care of both the path and the sinusoids simul-
taneously. Winberg et al. (1999) used a hybrid ANC headset
13
Int J Speech Technol
where x(n) is primary input signal, s(n) is clean speech, Fig. 2. The ALE is in fact a degenerate form of the adap-
v0 (n) and v1 (n) represents the noise signals received by pri- tive noise canceller in that its reference signal, instead of
mary microphone and reference microphone respectively, being derived separately, consists of a delayed version of
𝜁1 (n) and 𝜂1 (n) represent the wideband noise and the sinu- the primary signal. The delay, denoted by d1 as shown in
soidal noise, respectively. the Fig. 2, is called the decorrelation delay of the ALE,
The proposed adaptive noise cancellation scheme shown measured in units of the sampling period. Let the sinusoi-
in Fig. 2 consists of two cascade stages. The first stage con- dal noise be the stationary periodic signal, for example,
sists of two ALE filters which are named ALE1 and ALE2 ventilating fan and engine noise. On the other hand, the
placed in parallel and used for reducing the sinusoidal noise phoneme of speech changes, so the speech signal is the
included in the primary input and reference input signals. non-stationary signal (Hayes 1996).
This connection gives the advantage of adaptation conver- The delayed signal of x(n) as shown in Fig. 2, is repre-
gence at same time for both ALE filters (ALE1 and ALE2) sented as
if we choose same value of the step size and filter length for
both ALE filters. In this setup the purpose of the signal path
x(n − d1 ) = s(n − d1 ) + 𝜂0 (n − d1 ) + 𝜁0 (n − d1 ) (3)
that contains the delay element in the ALE1 and ALE2, is to where d1 is time delay. Since characteristics of speech
generate a reference noise signal that may be used to estimate change, the autocorrelation of speech fades as d1 increases.
the sinusoidal noise signal 𝜂̂0 (n) and 𝜂̂1 (n) in the ALE1 and On the other hand, the delayed sinusoidal noise 𝜂0 (n − d1 )
ALE2 respectively. First, the sinusoidal noise is estimated by is correlated with 𝜂0 (n). In addition, the delayed wideband
both ALE filters (ALE1 and ALE2). The decorrelation fac- noise 𝜁0 (n − d1 ) has low correlation with 𝜁0 (n). Thus, if two
tors or time delays d1 and d2 , which are carefully selected signals, 𝜂0 (n) and 𝜂0 (n − d1 ), are correlated, then 𝜂0 (n) may
to be long enough to decorrelate the sinusoidal noise and be estimated by 𝜂̂0 (n) from 𝜂0 (n − d1 ) (Pearson 2003).
short enough to maintain its effect on the speech and wide- Estimating 𝜂̂0 (n) depends on the strategy of how the cost
band noise negligible, so that the outputs are just replicas of function is to be minimized, be it either least mean squares
s(n) + 𝜁0 (n) for ALE1 output and of 𝜁1 (n) for ALE2 output. or recursive least squares (Pearson 2003). For this paper,
The second stage in the proposed scheme is used for the cost function will be minimized based on least mean
wideband noise cancellation. The 𝜁1 (n) is represent the ref- squares. The mean squared error of the ALE1 as shown in
erence input signal to the LMS adaptive filter in the second Fig. 2, is defined as
stage, according to the adaptive noise filtering principles.
The system output ŝ (n) is the enhanced speech signal. E[e2 (n)] = E[(s(n) + 𝜁0 (n) + (𝜂0 (n) − 𝜂̂0 (n)))2 ]
The details of the adaptive line enhancer (ALE) used = E[(s(n) + 𝜁0 (n))]2 + 2E[(s(n) + 𝜁0 (n))(𝜂0 (n) − 𝜂̂0 (n))]
to reduce sinusoidal noise in the proposed scheme are
explained with the help of the block diagram given in
+ E[(𝜂0 (n) − 𝜂̂0 (n))]2 (4)
13
Int J Speech Technol
Since speech signal, sinusoidal noise and wideband noise are 𝜁0 (n) in the primary input signal. A general expression of
uncorrelated, E[s(n)𝜂0 (n)] = 0 and E[𝜁0 (n)𝜁0 (n − d2 )] = 0, the output can be obtained as follows,
then 2E[(s(n) + 𝜁0 (n))(𝜂0 (n) − 𝜂̂0 (n))] = 0. The mean
squared error becomes
e(n) = d(n) − y(n) = d(n) − 𝛇1 𝐓 (n)𝐰(n) (11)
E[e2 (n)] = E[(s(n) + 𝜁0 (n))]2 + E[(𝜂0 (n) − 𝜂̂0 (n))]2 (5) The LMS algorithm updates the filter coefficients accord-
ing to (Pearson 2003)
Minimizing E[e (n)] is equivalent to minimizing
2
E[(𝜂0 (n) − 𝜂̂0 (n))]2 . Therefore, this minimization will cause 𝐰(n + 1) = 𝐰(n) + 𝜇e(n)𝛇1 (n) (12)
𝜂̂0 (n) to be the minimum mean-square estimate of 𝜂0 (n)
(Pearson 2003). where 𝜇 is the step size which controls the convergence
The estimated output of ALE1 filter 𝜂̂0 (n) which is speed and the stability of the adaptive filter.
shown in Fig. 2 is given by
L
3 Simulation results
∑
𝜂̂0 (n) = wk (n)x(n − d1 − k) (6)
k=1
where 𝐰(n) = [w(n), w(n − 1), ....................., w(n − L + 1)], Table 1 Parameters used in the proposed scheme
(10)
Stage 1 ALE1 Decorrelation delay 1 Sample
is the weight vector of the adaptive filter. During the adap-
No. of weights 128
tation process, the weights are adjusted according to the
Step size 0.001
LMS algorithm (Pearson 2003). The primary input signal
ALE2 Decorrelation delay 1 Sample
contains the speech s(n), the wideband noise 𝜁0 (n) as well
No. of weights 128
as residual sinusoidal noise from output of ALE1 filter. The
Step size 0.001
reference input signal contains the wideband noise 𝜁1 (n) as
Stage 2 LMS algorithm No. of weights 32
well as the residual sinusoidal noise from output of ALE2.
Step size 0.1
The wideband noise 𝜁1 (n) is correlated with noise signal
13
Int J Speech Technol
(a) (b)
0.25 Primary Signal 0.25 Primary Signal
Output Signal Output Signal
0.2 0.2
0.15 0.15
0.1 0.1
0.05 0.05
Amplitude
Amplitude
0 0
-0.05 -0.05
-0.1 -0.1
-0.15 -0.15
-0.2 -0.2
-0.25 -0.25
(a) Output of the Conventional Scheme (b) Output of the Conventional Scheme
0.15 0.15
0.1 0.1
0.05 0.05
Amplitude
Amplitude
0 0
-0.05 -0.05
-0.1 -0.1
-0.15 -0.15
-0.2 -0.2
-0.25 -0.25
0
5000
-10
4000 -20
-30
Frequency
3000
-40
-50
2000
-60
1000 -70
-80
0
0.5 1 1.5 2 2.5 3 3.5
Time
Fig. 4 Output (error) signal of the conventional scheme a without sinusoidal noise. b With sinusoidal noise. c Spectrogram of (b)
13
Int J Speech Technol
in Fig. 3b. Note that the filter length used with the con- Spectrogram of Primary Signal
Frequency
3000
The adaptive filter W(z) in the conventional scheme does
not have ability to model both paths H 1(z) and H 2(z) (see
Fig. 1) and it only takes care of the stronger noise. Thus, 2000
13
Int J Speech Technol
5000 5000
4000 4000
Frequency
Frequency
3000 3000
2000 2000
1000 1000
0 0
0.6 0.6
0.4 0.4
0.2 0.2
Amplitude
Amplitude
0 0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
0.5 1 1.5 2 2.5 3 3.5 4 0.5 1 1.5 2 2.5 3 3.5 4
Time index 4 Time index 4
x 10 x 10
rates from 8 to 96 kHz can be set readily. There are four end for each input signal and one connector at the other
connectors on the board provide input and output: MIC IN end, which connects to the DSK is required to implement
for microphone input, LINE IN for line input, LINE OUT these experiments in this section. The wideband signal
for line output, and HEADPHONE for a headphone out- output is connected into left channel of the adaptor and a
put (multiplexed with line output). The DSK operates at sinusoidal noise with a frequency of 2 kHz is connected
225 MHz. More information about this board can be found into right channel of the adaptor. Then, the adaptor out-
in (Texas Instruments 17). put is connected to the input line in the DSK. The out-
In our first experiment, we implement the proposed put line of the DSK is connected to the digital storage
adaptive noise canceller for the cancellation of sinusoi- oscilloscope (type RIGOL DS5202CA). Figure 9a shows
dal noise in the presence of wideband random noise. the input signal (waveform plot on the top of Fig. 9a) and
Note that in this experiment as well as the next one, the its spectrum (FFT plot on the bottom of Fig. 9a) before
speech signal is considered to be inactive. The power of adaptation process of the proposed ANC system. Fig-
the sinusoidal noise is set to be higher than that of the ure 9b shows the output (error) signal (waveform plot on
wideband noise. The sinusoidal noise and wideband the top of Fig. 9b) and its spectrum (FFT plot on the bot-
signals are generated by using an external function gen- tom of Fig. 9b) after the adaptation process converged to
erator and Goldwave respectively. This Goldwave is a the wideband signal. It can be seen from FFT plots of the
software tool that can be used to generate the wideband input and output signals that the undesirable 2 kHz sinu-
random noise. An adapter with two connectors at one soidal noise is completely cancelled.
13
Int J Speech Technol
5000 5000
4000 4000
Frequency
Frequency
3000 3000
2000 2000
1000 1000
0 0
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
Amplitude
Amplitude
0 0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
0.5 1 1.5 2 2.5 3 3.5 4 0.5 1 1.5 2 2.5 3 3.5 4
Time index 4 Time index 4
x 10 x 10
Fig. 7 Spectrogram (top) and signal at the output (bottom) of the Fig. 8 Spectrogram (top) and signal at the output (bottom) of the
proposed scheme conventional scheme
In our second experiment, we investigate the effect of The desired speech signal is fed through the left chan-
multiple sinusoidal noises with different frequencies on nel of the adaptor and the undesirable signals (sinusoidal
the performance of the proposed scheme. In this case, two plus wideband) through the right channel of the adaptor.
undesired sinusoidal noise signals with frequencies 2 and Figure 11a shows the noisy speech signal at the input and
1 kHz and one wideband signal were considered. Figure 10a Fig. 11b is the snapshot of output captured in real time
(top) shows the waveform of the input signal, while the bot- by using digital storage oscilloscope. It can be seen from
tom plot in the same figure shows the spectrum of the input Fig. 11b that the proposed ANC scheme is very effective
signal. Figure 10b (top) shows the waveform of the out- in reducing both wideband and sinusoidal noises in the pri-
put (error) signal, while the bottom plot in the same figure mary signal. The only sacrifice we have to make is a mod-
shows the spectrum of the output signal. It can be seen from erate increase of computational cost due to the addition of
FFT plots of the input and output signals that the undesira- two adaptive line enhancers.
ble 1 and 2 kHz sinusoidal noises are completely cancelled.
The sinusoidal noise no longer exists in the residual noise of
the proposed ANC scheme that implement on the DSK. 5 Real‑world applications of the proposed scheme
In our last experiment, we port the proposed adaptive
noise canceller to the DSK to examine real time behavior. The proposed scheme can be applied successfully in dif-
An adaptor with two connectors at one end for each input ferent kinds of environments. Some of them are elaborated
signal and one connector at the other end, which connects below:
to the DSK, is also required to implement this experiment.
13
Int J Speech Technol
Fig. 11 Plots illustrating
the real-time behavior of the
proposed scheme obtained
with a digital storage oscillo-
scope; a snapshot of the noisy
speech signal; b snapshot of the
enhanced speech signal at the
output of the proposed scheme
5.1 Cell phones using adaptive noise cancellation (Narendra and Han 2012;
Sugiyama et al. 2011). The proposed scheme can be used
In order to ensure clear voice connectivity, the recent model here to ensure effective speech communication especially
of iPhones is deploying the concept of using two input when using cell phone during journey by car or train in
microphones to cancel out the noise from speech signal which the desired speech signal encounters various types of
13
Int J Speech Technol
noise signals such as the car-engine noise and wind noise. noise cancellation scheme when applied will reduce the
In this case, the noise signal to be targeted has both wide- wideband noise components only. To recover the pilot‘s
band and sinusoidal components. speech effectively, the proposed scheme may be applied to
remove both wideband and sinusoidal noises.
5.2 ECG analysis
13
Int J Speech Technol
Narendra, K. S. & Han, Z. (2012). A new approach to adaptive con- Touazi, A., Debyeche, M. (2017). An experimental framework for
trol using multiple models,” International Journal of Adaptive Arabic digits speech recognition in noisy environments. Interna-
Control and Signal Processing, 26, 778–799. tional Journal of Speech Technology, 20(2), 205–224.
Niedźwiecki, M. & Meller, M. (2012). Hybrid SONIC: joint feedfor- TMS320C6713 Floating-Point Digital Signal Processor, SPRS186,
ward–feedback narrowband interference canceler. International Texas Instruments, Dallas, TX.
Journal of Adaptive Control and Signal Processing, 27(12), Widrow, B., Glover, J. R. Jr., McCool, J. M., Kaunitz, J., Williams,
1048–1064. C. S., Hearn, R. H., Zeidler, J. R., Dong, E. Jr., & Goodlin R. C.
Ramli R. M., Noor A. O. A., Samad, S. A. (2017). Noise cancella- (1975). Adaptive noise cancelling: Principles and applications.
tion using selectable adaptive algorithm for speech in variable Proceedings of the IEEE, 63(12), 1692–1716.
noise environment. International Journal of Speech Technology, Winberg, M., Johansson, S., Lago, T., & Claesson, I. (1999). A new
online, 1–8. passive/active hybrid for a helicopter application. International
Sasaoka, N., Sumi, K., Itoh, Y. & Fujii, K. (2005). A new noise reduc- Journal of Acoustics and Vibration, 4(2), 51–58.
tion system based on ALE and noise reconstruction filter. Pro- Xiao, Y. & Wang, J. (2011). A new feedforward hybrid active noise
ceedings of the IEEE International Symposium Circuits Systems control system. IEEE Signal Processing Letters, 18(no. 10),
(ISCAS), pp. 272–275. 591–594.
Sugiyama, A., Miyahara, R., & Kato, M. (2011). An adaptive noise Zia Ur Rahman, M., Shaik, R. A., & Rama Koti Reddy, D. V. (2012).
canceller with adaptive delay compensation for a distant noise Efficient and simplified adaptive noise cancelers for ECG sensor
source. Proceedings of the IEEE International Conference on based remote health monitoring. IEEE Sensors Journal, 12(3),
Acoustics, Speech, and Signal Processing (ICASSP), Vol. 5, pp. 566–573.
265–268, USA.
13