 Research
 Open Access
 Published:
A Bayesian network approach to linear and nonlinear acoustic echo cancellation
EURASIP Journal on Advances in Signal Processing volumeÂ 2015, ArticleÂ number:Â 98 (2015)
Abstract
This article provides a general Bayesian approach to the tasks of linear and nonlinear acoustic echo cancellation (AEC). We introduce a statespace model with latent state vector modeling all relevant information of the unknown system. Based on three cases for defining the state vector (to model a linear or nonlinear echo path) and its mathematical relation to the observation, it is shown that the normalized least mean square algorithm (with fixed and adaptive stepsize), the Hammerstein group model, and a numerical sampling scheme for nonlinear AEC can be derived by applying fundamental techniques for probabilistic graphical models. As a consequence, the major contribution of this Bayesian approach is a unifying graphicalmodel perspective which may serve as a powerful framework for future work in linear and nonlinear AEC.
1 Introduction
The problem of acoustic echo cancellation (AEC) is one of the earliest applications of adaptive filtering to acoustic signals and yet is still an active research topic [1, 2]. Especially in applications like teleconferencing and handsfree communication systems, it is of vital importance to compensate acoustic echos and thus prevent the users from listening to delayed version of their own speech [3]. Since the invention of the normalized least mean square (NLMS) algorithm in 1960 [4], the acoustic coupling between loudspeakers and microphones is often modeled by adaptive linear finite impulse response (FIR) filters. However, the statistical properties of speech signals (being widesense stationary only for short time frames) and challenging properties of the acoustic environment (such as speech signals as interference, nonstationary background noise and timevarying acoustic echo paths) complicate the filter adaptation and motivated various concepts improving the performance of linear FIR filters in many practical scenarios [5â€“7]. Despite these challenges, singlechannel linear AEC has already reached a mature state as vital part of modern communication devices. On the other hand, the nonlinear distortions created by amplifiers and transducers in miniaturized loudspeakers require dedicated nonlinear echopath models and are still a very active research topic [8, 9]. In this context, a variety of concepts for nonlinear AEC have been proposed based on artificial neural networks [10, 11], Volterra filters [12, 13], or Kernel methods [14, 15]. A commonly used model, which is also considered in this article, is a cascade of a nonlinear memoryless preprocessor (to model the loudspeaker signal distortions) and an adaptive linear FIR filter (to model the acoustic sound propagation and the microphone) [9, 16â€“19].
Recently, the application of machine learning techniques to signal processing tasks attracted increasing interest [20â€“22]. In particular, graphical models provide a powerful framework for deriving (links between) numerous existing algorithms based on probabilistic inference [23â€“25]. Besides the widely used factor graphs, which capture detailed information about the factorization of a joint probability distribution [23, 26, 27], especially directed graphical models, such as Bayesian networks, have been shown to be wellsuited for modeling causal probabilistic relationships of sequential data like speech [28, 29].
This article provides a concise overview on different algorithms for linear and nonlinear AEC from a unifying Bayesian network perspective. For this, we consider a statespace model with a latent (unobserved) state vector capturing all relevant information of the unknown system. Depending on the definition of the state vector (modeling a linear or nonlinear echo path) and its mathematical relation to the observation, we illustrate that the application of different probabilistic inference techniques to the same graphical model straightforwardly leads to the NLMS algorithm with fixed/adaptive stepsize value, the Hammerstein group model (considered from this perspective here for the first time), and a numerical sampling scheme for nonlinear AEC. This consistent Bayesian view on conceptually different algorithms highlights the probabilistic assumptions underlying the respective derivations and provides a powerful framework for further research in linear and nonlinear AEC.
Throughout this article, the problem of AEC is considered in the time domain (time index n), where we denote scalars z _{ n } by lowercase italic letters, column vectors z _{ n } by lower case bold letters, and matrices C _{ z,n } by upper case bold letters. Furthermore, sequences of variables are written as z _{1:N }={z _{1},â€¦,z _{ N }}. For a normally distributed random vector z _{ n } with mean vector Î¼ _{ z,n } and covariance matrix C _{ z,n }, we write
Note that C _{ z,n }=C _{ z,n } I (identity matrix I) implies the elements of z _{ n } to be mutually statistically independent and of equal variance C _{ z,n }. Finally, we distinguish between the probability density function (PDF) p(z _{ n }) and realizations \(z_{n}^{(l)}\) (samples drawn from p(z _{ n })) of a random variable z _{ n }, where l is the sample index.
This article is structured as follows: First, we briefly review Bayesian networks and introduce a general statespace model in Section 2. This statespace model will be further specified in Section 3 for the tasks of linear and nonlinear AEC. This is followed by applying several fundamental probabilistic inference techniques for deriving the NLMS algorithm with fixed/adaptive stepsize value (linear AEC, Section 4), as well as the Hammerstein group model and a numerical sampling scheme (nonlinear AEC, Section 5). Finally, the practical performance of the algorithms is illustrated in Section 6 and conclusions are drawn in Section 7.
2 Review of Bayesian networks and statespace modeling
This section provides a concise review of Bayesian networks and statespace modeling following the detailed discussions in [30].
2.1 Bayesian networks
Bayesian networks are graphical descriptions of joint probability distributions and provide a powerful framework for many kinds of regression and classification problems. Consisting of nodes (random variables) and directed links (probabilistic relationships), they define the factorization properties of a joint PDF p(z _{1:K }) through the following rule:
where {par(z _{ k })} is the set of nodes (socalled parent nodes of z _{ k }) from which a link is going to the node z _{ k }. We illustrate this basic definition by the example shown in Fig. 1: the joint PDF p(z _{1},z _{2},z _{3}) over the random variables z _{1}, z _{2}, z _{3} factorizes to
where the PDF of each random variable is conditioned on its parent nodes (if any). This fundamental factorization property of Bayesian networks can be employed to derive several rules of conditional dependence and independence for Bayesian networks. As an example, we consider three independent random variables z _{1}, Î·, Îµ defining two further random variables z _{2} and z _{3} through the following observation model:
The probabilistic relationship of z _{1},z _{2},z _{3} can be represented by the Bayesian network depicted in Fig. 2 a, where the variables Î· and Îµ have been omitted to focus on the headtotail relationship in z _{2}. Although z _{1} and z _{3} are statistically dependent, we can exploit (1) to show that z _{1} and z _{3} are conditionally independent given z _{2}:
The same property of conditional independence can be derived for the case of a tailtotail relationship in z _{2} as shown in Fig. 2 b. In contrast, two independent random variables z _{1} and z _{3} are conditionally dependent given z _{2} if they share a headtohead relationship as in Fig. 2 c, which would, e.g., be the case if z _{2} was defined as z _{2}=z _{1}+z _{3}.
Generalizing the above, it can be shown that two random variables z _{1} and z _{3} are conditionally independent given a set of random variables C if all paths leading from z _{1} to z _{3} contain a node, where the

arrows meet headtotail or tailtotail, and the node is in the set C

arrows meet headtohead and neither the node, nor any of its descendants, are in the set C [30].
2.2 Statespace modeling
In this part, we introduce a general probabilistic model (later applied to linear and nonlinear AEC) and review fundamental techniques which are commonly employed in Bayesian network modeling.
Probabilistic model: Assume all relevant information of an unknown system at time instant n is captured by a latent (unobserved) state vector
In general, a statespace model is defined by the process equation (modeling the temporal evolution of the state vector) and the observation equation (modeling the relation between state vector and observation). The remainder of this article is based on the following observation equation and state equation, respectively,
where the temporal evolution of the state vector z _{ n } is captured by the additive uncertainty w _{ n }. Furthermore, the observation d _{ n } in (7) is modeled by adding a scalar uncertainty v _{ n } to the output of the function g(x _{ n },z _{ n }), which depends on the state vector z _{ n } and the input signal vector x _{ n } = [ x _{ n },x _{ nâˆ’1},â€¦,x _{ nâˆ’M+1}]^{T} (timedomain samples x _{ n } at time instant n). The statespace model of (7) is represented by the Bayesian network in Fig. 3, where observed variables, such as d _{ n }, are marked by shaded circles. Note that the input signal vector x _{ n } is regarded as an observed random variable (without explicitly estimated statistics) and thus omitted in Fig. 3 for notational convenience in the later probabilistic calculus. The conditional independence rules of Section 2 reveal two major properties of the Bayesian network in Fig. 3:

With respect to the latent state vector z _{ nâˆ’1}, the headtotail relationships of all paths from d _{1:nâˆ’2} to z _{ n } and the tailtotail relationship of the path from d _{ nâˆ’1} to z _{ n } together imply the current state vector z _{ n } to depend on all previous observations d _{1:nâˆ’1}. For the conditional PDF of z _{ n } given {z _{ nâˆ’1},d _{1:nâˆ’1}}, this leads to:
$$ p \left(\mathbf{z}_{n}  \mathbf{z}_{n1}, d_{1:n1}\right) = p \left(\mathbf{z}_{n} \mathbf{z}_{n1}\right). $$((8)) 
The current observation d _{ n } depends on all previous observations d _{1:nâˆ’1} following the headtotail relationship in the latent state vector z _{ n }. This allows to reformulate the conditional PDF of d _{ n } given {z _{ n },d _{1:nâˆ’1}} as
$$ p \left(d_{n}  \mathbf{z}_{n}, d_{1:n1}\right) = p \left(d_{n} \mathbf{z}_{n}\right). $$((9))
The statespace model in (7) is a fundamental probabilistic model and will be employed to derive wellknown methods for linear and nonlinear AEC in Sections 4 and 5. For this, we make the following assumptions on the PDFs of the additive uncertainties in (7) [32]:

w _{ n } is normally distributed with mean vector 0 and covariance matrix C _{ w,n } defined by the scalar variance C _{ w,n }:
$$ \mathbf{w}_{n} \sim \mathcal{N} \{\mathbf{w}_{n}  \mathbf{0}, \mathbf{C}_{\mathbf{w}, n}\},\quad \mathbf{C}_{\mathbf{w},n} = C_{\mathbf{w},n} \mathbf{I}. $$((10)) 
v _{ n } is assumed to be normally distributed with variance C _{ v,n } and zero mean:
$$ v_{n} \sim \mathcal{N} \{ v_{n}  0, C_{v, n}\}. $$((11))
To derive estimates for the state vector and the hyperparameters C _{ v,n } and C _{ w,n }, we recall the steps of probabilistic inference and learning in the next part.
Inference/Learning: In the inference stage, the mean vector of the posterior PDF \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\) can be identified as minimum mean square error (MMSE) estimate for the state vector [30]:
where Â·_{2} is the Euclidean norm and \(\mathcal {E}\{\cdot \}\) the expectation operator. Note that this MMSE estimate can be calculated in an analytically closed form in case of linear relations between the variables in (7) and is optimal in the Bayesian sense for jointly normally distributed random variables z _{ n } and d _{1:n }.
In the learning stage, the hyperparameters C _{ v,n } and C _{ w,n } of the statespace model in (7) are estimated by solving a maximum likelihood (ML) problem (see Section 4.1 for more details).
3 Statespace model for linear and nonlinear AEC
To identify the electroacoustic echo path (from the loudspeaker to the microphone), a physically justifiable model has to be selected first. As the sound propagation through air can be modeled by a linear system [1], the acoustic path at time n between loudspeaker and microphone is estimated by the linear FIR filter
of length M. Ideally, the error signal
between the observation d _{ n } and the linear transformation of the input vector y _{ n }:
equals zero, which means that the estimated impulse response matches the actual physical one. In many practical applications, nonlinear loudspeaker signal distortions created by amplifiers and transducers in minituarized loudspeakers prior to the linear acoustic impulse response limit the practical performance of linear echo path models. This justifies to model the overall echo path by a nonlinearlinear cascade of a memoryless preprocessor (to model nonlinear loudspeaker signal distortions) preceding the linear FIR filter \(\hat {\mathbf {h}}_{n}\) (to model the sound propagation through air) [9, 16, 17], see Fig. 4. Motivated by the good performance in nonlinear AEC [18, 19, 32], we choose a polynomial preprocessor
defined as weighted superposition of nonlinear functions Î¦ _{ Î½ }{Â·} parameterized by the estimated vector
to perform an elementwise transformation of the loudspeaker signal vector x _{ n } to the input vector y _{ n } of the linear FIR filter in (15). In particular, oddorder Legendre functions of the first kind (inserted for Î¦ _{ Î½ }{Â·} in (16)) have been shown to be efficient for specific applications [18, 19]. By combining (15) and (16), the error signal e _{ n } resulting from the nonlinearlinear cascade in Fig. 4 is given as:
It is obvious that the nonlinearlinear cascade in Fig. 4 simplifies to a linear AEC system when setting the estimated preprocessor coefficients equal to zero because:
In the following, we describe the tasks of linear and nonlinear AEC from a Bayesian network perspective by further specializing the general statespace model in (7). This is summarized in Fig. 5 as guidance through the following derivations.
Linear AEC: The observation equation for linear AEC follows the definition of \(\hat {d}_{n}\) in (15):
where the latent lengthM vector h _{ n } models the acoustic path between the loudspeaker and the microphone. Note that the observation equation in (20) is denoted as a model which is linear in the coefficients (LIC model) due to the linear relation between the elements of the state vector z _{ n } and the observation d _{ n }.
Nonlinear AEC: For the task of nonlinear AEC, we derive the observation equation from (18):
where the latent variables a _{ Î½,n }(Î½=1,â€¦,P) model the preprocessor coefficients and represent the entries of the lengthP vector a _{ n }, which is identically defined as in (17). Depending on the choice of the state vector, the observation equation in (21) represents a LIC model or a model which is nonlinear in the coefficients (NIC model) of the state vector. To start with the latter case, we specify:
as state vector of length M+P. Thereby, the observation equation in (21) becomes a NIC model due to the nonlinear relation between the entries of the state vector z _{ n } and the observation d _{ n }. Alternatively, we can express the same inputoutput relation by the length MÂ·(P+1) state vector
together with the observation equation
This represents a LIC model as the output d _{ n } linearly depends on the coefficients of z _{ n }. The three previously described pairs of observation equations and state vector definitions represent special cases of the statespace model in (7) and will be employed in the subsequent sections to derive algorithms for linear and nonlinear AEC following the schematic overview in Fig. 5.
4 A Bayesian view on linear AEC
Consider the task of linear AEC using the statespace model (see left part of Fig. 5)
which can be represented by the Bayesian network shown in Fig. 6. To derive an NLMSlike filter adaptation, we assume the PDFs \(p\left (\mathbf {h}_{n}  \mathbf {h}_{n1}\right) \), \(p\left (d_{n}  \mathbf {h}_{n}\right)\), and \(p \left (\mathbf {h}_{n}  d_{1:n}\right)\) to be Gaussian probability distributions [30], where the latter is denoted as:
Therein, we restrict the covariance matrix of \(p \left (\mathbf {h}_{n}  d_{1:n}\right)\) to be diagonal [33]
where tr{Â·} represents the trace of a matrix. This implies the filter taps to be uncorrelated and of equal estimation uncertainty. The assumption (27) will be the basis for deriving the NLMS algorithm with adaptive (Section 4.1) and fixed (Section 4.2) stepsize value.
4.1 NLMS algorithm with adaptive stepsize value [32]
The NLMS algorithm with optimal stepsize calculation has been initially proposed by Yamamoto and Kitayama in 1982 [34]. Since then, the derivation of the adaptive stepsize NLMS algorithm with filter update
has been adopted in many textbooks [35]. As the true echo path h _{ n } is not observable, the numerator in (28) can be approximated by introducing a delay of N _{ T } coefficients to the echo path h _{ n } [36, 37]. Then, it is assumed that the leading N _{ T } coefficients \(\hat {h}_{\kappa,n1}\), with Îº=0,â€¦,N _{ T }âˆ’1, should be zero for causal systems and any nonzero coefficient values are representative for the system error norm \(\mathcal {E}\left \{ \mathbf {h}_{n}  \hat {\mathbf {h}}_{n1} ^{2}_{2} \right \}\). Typically, the denominator in (28) is recursively approximated using a smoothing factor Î· [35, 37]. Thus, the filter update is realized as follows:
However, the approximations in (29) often lead to oscillations which have to be addressed by limiting the absolute value of Î² _{ n } [36].
In the following, we employ Bayesian network modeling to derive the filter update of (28) (in the inference stage) and an estimation scheme for the adaptive stepsize Î² _{ n } (in the learning stage).
Inference: To derive the MMSE estimate of the state vector following (12), we rewrite the posterior PDF as
Then, the product rules of linear Gaussian models ([30] p. 639) can be applied to derive recursive updates for the mean vector \(\hat {\mathbf {h}}_{n} = \mathcal {E}(\mathbf {h}_{n}d_{1:n})\) and the covariance matrix C _{ h,n }, resulting in a special case of the wellknown Kalman filter equations:
By inserting the assumptions (10) and (27), we can rewrite the filter update as:
The equivalence between the filter updates of (34) and (28) can be illustrated by exploiting the equalities
which lead to:
Furthermore, h _{ nâˆ’1} and w _{ n } are statistically independent due to the headtohead relationship with respect to the latent vector h _{ n } in Fig. 6. Thus, we rewrite:
Furthermore, one can use the fact that v _{ n } is statistically independent from h _{ nâˆ’1} and w _{ n } (headtohead relationship in d _{ n } in Fig. 6) to express \(\mathcal {E}\left \{{e_{n}^{2}}\right \}\) as:
Inserting (38) and (39) into (28) finally yields the identical expression for the filter update as in (34). All together, we thus derived the adaptive stepsize NLMS algorithm (initially heuristically proposed in 1982 [34]) by applying fundamental techniques of Bayesian network modeling to a special realization of the fundamental statespace model in (7). Next, we estimate the hyperparameters C _{ v,n } and C _{ w,n } in the learning stage to realize the adaptive stepsize NLMS algorithm in (34) without exploiting the approximations of (28).
Learning: For deriving an update of the model parameters from \(\theta _{n}=\left \{ C_{v,n}, C_{\mathbf {w},n}\right \}\) to \(\left \{ C^{\text {new}}_{v,n}, C^{\text {new}}_{\mathbf {w},n}\right \}\), we determine the joint PDF
based on the factorization rules of Section 2. Although the ML problem
is analytically tractable, marginalizing over the joint PDF in (40) to calculate p(d _{1:n }) leads to a computational complexity exponentially growing with n [30]. Thus, we iteratively approximate the ML solution to derive an online estimator based on the lower bound [30]
Taking the natural logarithm ln (Â·) of the joint PDF defined in (40) and maximizing the righthand side of (42) with respect to the new parameters leads to two separate optimization problems caused by the conditional independence properties in (8) and (9):
For the estimation of \(C^{\text {new}}_{v,n}\), we insert
into (44) and thus derive the instantaneous estimate by equating the derivation with respect to \(C^{\text {new}}_{v, n}\) to zero:
which can be interpreted as follows [31]: The first term in (45) (squared error signal after filter adaptation) is influenced by nearend interferences like background noise. The second term in (45) depends on the signal energy \(\mathbf {x}^{\mathrm {T}}_{n}\mathbf {x}_{n}\) and the variance C _{ h,n } which means that it considers the input signal power and uncertainties in the linear echo path model. Similar to the derivation for \(C^{\text {new}}_{v,n}\), we insert
into (43), to derive the instantaneous estimate
where we employed the statistical independence between w _{ n } and h _{ nâˆ’1}. Equation (46) states that \(C^{\text {new}}_{\mathbf {w},n}\) is estimated as difference of the filter tap autocorrelations between the time instants n and nâˆ’1. Finally, the updated parameter values are used as initialization for the following time step, so that
Note that this approximated ML solution is only guaranteed to converge to a locally but not necessarily globally optimum solution [32].
4.2 NLMS algorithm with fixed stepsize value [38]
In the previous section, we estimated the model parameters Î¸ _{ n } by approximating the ML problem in (41). For some applications, it might be promising to manually set the values of C _{ v,n } and C _{ w,n }. This is done in the following leading to the NLMS algorithm with a fixed stepsize value:

The uncertainty w _{ n } is equal to zero by choosing C _{ w,n }=0 in (10).

The variance of the microphone signal uncertainty C _{ v,n } is proportional to the current loudspeaker power and the estimation uncertainty C _{ h,nâˆ’1}:
$$ C_{v,n} = \tilde{\alpha} \mathbf{x}_{n}^{\mathrm{T}} \mathbf{x}_{n} C_{\mathbf{h},n1}, \quad \text{where} \quad \tilde{\alpha}\geq 0. $$((48))Inserting both assumptions into (34) leads to the filter update of the NLMS algorithm
$$\begin{array}{*{20}l} \hat{\mathbf{h}}_{n} &= \hat{\mathbf{h}}_{n1} + \frac{C_{\mathbf{h},n1} \mathbf{x}_{n} e_{n} }{\mathbf{x}^{\mathrm{T}}_{n}\mathbf{x}_{n} C_{\mathbf{h},n1} + \tilde{\alpha} \mathbf{x}_{n}^{\mathrm{T}} \mathbf{x}_{n} C_{\mathbf{h},n1}} \notag \\ &=\hat{\mathbf{h}}_{n1} + \frac{\alpha }{\mathbf{x}^{\mathrm{T}}_{n}\mathbf{x}_{n}} \mathbf{x}_{n} e_{n} \end{array} $$((49))with fixed stepsize value
$$ \alpha = (1+\tilde{\alpha})^{1}. $$((50))Interestingly, the resulting stepsize Î± is from the interval typically chosen for an NLMS algorithm: if the additive uncertainty is equal to zero (C _{ v,n }=(48)0 for \(\tilde {\alpha }=0\)), the stepsize reaches the maximum value of Î±=(50)1. With increasing additive uncertainty (\(C_{v,n}\stackrel {(48)}{\rightarrow }\infty \) for \(\tilde {\alpha } \rightarrow \infty \)), the stepsize decreases and tends to zero.
5 A Bayesian view on nonlinear AEC
In this section, we consider the nonlinear AEC scenario of Fig. 4 and compare both realizations of the state vector in (22) and (23) to compare models having a linear (LIC models) or nonlinear (NIC models) relation between the observation and the coefficients of the state vector.
5.1 LIC model: Hammerstein group models
Following the definition of the state vector in (23), we define the statespace model as follows:
Note that (51) is similar to (25) with the difference that the state vector z _{ n }, the input signal vector y _{ n }, and the uncertainty w _{ n } are extended by MÂ·P values. Thus, applying equivalent assumptions as in Section 4.2 leads to the filter update
As illustrated in Fig. 7, this represents the realization of P+1 parallel NLMS algorithms with individually preprocessed loudspeaker signal x _{ n }. One advantage of this Hammerstein group model is the application of wellknown linear FIR filters to identify a nonlinear electroacoustic echo path. However, this is at the cost of an increased number of coefficients to be estimated. It should be emphasized that this Bayesian network view on the Hammerstein group model is considered here for the first time.
5.2 NIC model: numerical sampling
In cases where the observation equation of (21) represents an NIC model due to the definition of the state vector in (22), we cannot analytically derive the Bayesian estimate of \(\hat {\mathbf {z}}_{n}\) in a closed form. Thus, we employ particle filtering to approximate the posterior PDF in (32) by a discrete distribution [30, 39]:
where Î´(Â·) is the Dirac delta distribution. Based on (55), the set of L realizations of the state vector \(\mathbf {z}^{(l)}_{n}\) (socalled particles) is characterized by the weights
which describe the likelihoods that the observation is obtained by the corresponding particle (as measures for the probability of the samples to be drawn from the true PDF [40]). To calculate the weights in (56), the particles are plugged into (18) to determine the estimated microphone samples \(d^{(l)}_{n}\).
Due to the definition of the discrete posterior PDF in (55), the MMSE estimate for the state vector is given by the mean vector
This fundamental concept is illustrated in Fig. 8 and can be summarized as follows [9]:

Starting point: L particles \(\mathbf {z}^{(l)}_{n}\).

Measurement update: Calculate the weights \(\omega ^{(l)}_{n}\) and determine the posterior PDF \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\) (see (56) and (55), respectively).

Time update: Replace all particles by L new samples drawn from the posterior PDF [30]
$$\begin{array}{*{20}l} p \left(\mathbf{z}_{n+1}  d_{1:n}\right) = \sum\limits_{l=1}^{L} \omega^{(l)}_{n} p \left(\mathbf{z}_{n+1}  \mathbf{z}^{(l)}_{n}\right), \end{array} $$((58))which is equivalent to sampling from \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\) and subsequently adding one realization of the uncertainty w _{ n+1} defined in (10)^{1}. This is the starting point for the next iteration step.
Unfortunately, the classical particle filter (initially proposed for tracking applications) is conceptually illsuited for the task of nonlinear AEC: it is well known that the performance degrades with increasing search space and that the local optimization problem is solved without generalizing the instantaneous solution (see the weight calculation in (56)) [41â€“43]. These properties of the classical particle filter are severe limitations for the task of nonlinear AEC with its highdimensional state vector (see (22)). To cope with these conceptional limitations without introducing sophisticated resampling methods [40, 44], the elitist particle filter based on evolutionary strategies (EPFES) has been recently proposed in [9]. As major modifications for the task of nonlinear AEC, an evolutionary selection process facilitates to evaluate realizations of the state vector based on recursively calculated particle weights to generalize the instantaneous solution of the optimization problem [9]. These fundamental properties of the EPFES will be illustrated for the statespace model of (7) in the next part.
EPFES [9]: As first modification with respect to the classical particle filter, the particle weights are recursively calculated
where Î³ is the socalled forgetting factor. Following concepts from the field of evolutionary strategies (ES) [45], we subsequently select Q _{ n } elitist particles \(\boldsymbol {\bar {z}}^{(q_{n})}_{n}\) with weights larger than a threshold Ï‰ _{th} to determine the posterior PDF \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\) (and the MMSE estimate \(\hat {\mathbf {z}}_{n}\) as its mean vector) by replacing \(\left \{\mathbf {z}^{(l)}_{n},\omega ^{(l)}_{n}\right \}\) in (55) by the set of elitist particles and respective weights \(\left \{\bar {\mathbf {z}}^{(q_{n})}_{n},\bar {\omega }^{(q_{n})}_{n}\right \}\). Subsequently, Lâˆ’Q _{ n } new samples drawn from the posterior PDF \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\) replace the nonelitist particles and complete the set of particles for realizing the time update. These steps are illustrated in Fig. 9 and can be summarized as follows:

Starting point: L particles \(\mathbf {z}^{(l)}_{n}\) with weights \(\mathbf {\omega }^{(l)}_{n1}\) determined in the previous time step.

Measurement update: Update weights \(\omega ^{(l)}_{n}\) in (59), select elitist particles, and determine \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\) by inserting the set of elitist particles \(\bar {\mathbf {z}}^{(q_{n})}_{n}\) and weights \(\bar {\omega }^{(q_{n})}_{n}\) into (55).

Time update: Replace the nonelitist particles by new samples drawn from the posterior PDF \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\). Furthermore, add realizations of w _{ n+1} (following (7)) to the set of particles (containing Q _{ n } elitist particles and Lâˆ’Q _{ n } new samples). This is the starting point for the next iteration step^{2}.
It has been shown that these modifications of the classical particle filter generalize the instantaneous solution of the optimization problem and thus allow to identify the nonlinearlinear cascade in Fig. 4 [9]. However, the EPFES evaluates realizations of the state vector based on longterm fitness measures. This leads to a high computational complexity due to the high dimension of the state vector in (22). Although many realtime implementations of particle filters have been proposed using parallel processing units [46, 47], it might be necessary for typical applications of nonlinear AEC (e.g., in mobile devices) to reduce the computational complexity to meet specific hardware constraints. Note that a very efficient solution for this problem is the socalled significanceaware EPFES (SAEPFES) proposed in [19], where the NLMS algorithm (to estimate the linear component of the AEC scenario) is combined with the EPFES (to estimate the loudspeaker signal distortions) by applying significanceaware (SA) filtering. In short, the fundamental idea of SA filtering is to reduce the computational complexity by exploiting physical knowledge about the most significant part of the linear subsystem to estimate the coefficients of the nonlinear preprocessor [18]. Thus, the state vector in (22) underlying the derivation of the SAEPFES models the coefficients of the nonlinear preprocessor and a small part of the impulse response around the highest energy peak (to capture estimation errors of the NLMS algorithm in the directpath region).
6 Experimental performance
This overview article establishes a unifying Bayesian network view on linear and nonlinear AEC with the goal to drive future research by highlighting the idealizations and limitations in the probabilistic models of existing methods. Note that a detailed analysis of the adaptive algorithms described in the previous sections has already been performed in [18, 19]. Therefore, we briefly summarize the main findings without explicitly detailing the practical realizations of the algorithms (see [18, 19] for more details). For a recorded female speech signal (commercial smartphone placed on a table with display facing the desk) in a mediumsize room with moderate background noise (SNR â‰ˆ40 dB), the NLMS algorithm (length256 FIR filter at 16 kHz) achieved an average echo return loss enhancement (ERLE) of 8.2 dB in a time interval of 9 s [19]. Compared to this, the Hammerstein group model and the SAEPFES improve the average ERLE by 34 and 68 % at a computational complexity increased by 27 and 50 %, respectively [19]. To achieve these results, the Hammerstein group model (termed as SAHGM in [18]) and the SAEPFES are realized based on the concept of SA filtering [18] (11 filter taps for the directpath region of the RIR) by using length256 FIR filters and a thirdorder memoryless preprocessor (inserting oddorder Legendre functions into (18)).
7 Conclusions
In this article, we derived a set of conceptually different algorithms for linear and nonlinear AEC from a unifying graphical model perspective. Based on a concise review of Bayesian networks, we introduced a statespace model with latent state vector capturing all relevant information of the unknown system. After this, we employed three combinations of statevector definitions (to model a linear or nonlinear echo path) and observation equations (mathematical relation between state vector and observation) to apply fundamental techniques of machine learning research. Thereby, it is shown that the NLMS algorithm, the Hammerstein group model (considered from this perspective here for the first time), and a numerical sampling scheme for nonlinear AEC can be derived from a unifying Bayesian network perspective. This viewpoint highlights probabilistic assumptions underlying different derivations and serves as a basis for developing new algorithms for linear and nonlinear AEC and similar tasks. An example for future work is a Bayesian view on a nonlinear AEC scenario, where the nonlinear loudspeaker signal distortions are modeled by a nonlinear preprocessor with memory.
8 Endnotes
^{1} Note that sampling from the posterior PDF \(p\left (\mathbf {z}_{n+1}  d_{1:n}\right) \stackrel {(7)}{=} \sum \limits _{l=1}^{L} \omega ^{(l)}_{n} \mathcal {N} \left (\mathbf {z}_{n+1}  \mathbf {z}^{(l)}_{n},C_{\mathbf {w},n+1} \mathbf {I}\right)\) is equivalent to adding samples drawn from the discrete PDF \(p \left (\mathbf {z}_{n}  d_{1:n}\right)\) in (55) and the Gaussian PDF \(p \left (\mathbf {w}_{n+1}\right)\) in (10).
^{2} In practice, the weights of the new samples for the recursive update in (56) are initialized by the value Ï‰ _{th}.
References
P Dreiseitel, E HÃ¤nsler, H Puder, in Proc. Conf. Europ. Signal Process. (EUSIPCO). Acoustic echo and noise controlâ€“a long lasting challenge (Rhodes, 1998), pp. 945â€“952.
E HÃ¤nsler, The handsfree telephone problemâ€”an annotated bibliography. Signal Process.27(3), 259â€“271 (1992).
E HÃ¤nsler, in IEEE Int. Symp. Circuits, Systems. The handsfree telephone problem, (1992), pp. 1914â€“1917.
B Widrow, ME Hoff, in IRE WESCON Conv. Rec. 4. Adaptive switching circuits (Los Angeles, CA, 1960), pp. 96â€“104.
C Breining, P Dreiseitel, E HÃ¤nsler, A Mader, B Nitsch, H Puder, T Schertler, G Schmidt, J Tilp, Acoustic echo control. An application of veryhighorder adaptive filters. IEEE Signal Process. Mag.16(4), 42â€“69 (1999).
E HÃ¤nsler, in IEEE Int. Symp. Circuits, Systems. Adaptive echo compensation applied to the handsfree telephone problem (New Orleans, LA, 1990), pp. 279â€“282.
E HÃ¤nsler, G Schmidt, Acoustic Echo and Noise Control: a Practical Approach (J. Wiley and sons, New Jersey, 2004).
A Stenger, W Kellermann, Adaptation of a memoryless preprocessor for nonlinear acoustic echo cancelling. Signal Process.80(9), 1747â€“1760 (2000).
C Huemmer, C Hofmann, R Maas, A Schwarz, W Kellermann, in Proc. IEEE Int. Conf. Acoustics, Speech, Signal Process. (ICASSP). The elitist particle filter based on evolutionary strategies as novel approach for nonlinear acoustic echo cancellation (Florence, Italy, 2014), pp. 1315â€“1319.
AN Birkett, RA Goubran, in Proc. IEEE Workshop Neural Networks Signal Process. (NNSP). Nonlinear echo cancellation using a partial adaptive time delay neural network (Cambridge, MA, 1995), pp. 449â€“458.
LSH Ngja, J Sjobert, in Proc. IEEE Int. Conf. Acoustics, Speech, Signal Process. (ICASSP). Nonlinear acoustic echo cancellation using a Hammerstein model (Seattle, WA, 1998), pp. 1229â€“1232.
M Zeller, LA AzpicuetaRuiz, J ArenasGarcia, W Kellermann, Adaptive Volterra filters with evolutionary quadratic kernels using a combination scheme for memory control. IEEE Trans. Signal Process.59(4), 1449â€“1464 (2011).
F KÃ¼ch, W Kellermann, Orthogonalized power filters for nonlinear acoustic echo cancellation. Signal Process.86(6), 1168â€“1181 (2006).
G Li, C Wen, WX Zheng, Y Chen, Identification of a class of nonlinear autoregressive models with exogenous inputs based on kernel machines. IEEE Trans. Signal Process.59(5), 2146â€“2159 (2011).
J Kivinen, AJ Smola, RC Williamson, Online learning with kernels. IEEE Trans. Signal Process.52(8), 165â€“176 (2004).
S Shimauchi, Y Haneda, in Proc. IEEE Int. Workshop Acoustic Signal Enhanc. (IWAENC). Nonlinear Acoustic Echo Cancellation Based on Piecewise Linear Approximation with Amplitude Threshold Decomposition (Aachen, Germany, 2012), pp. 1â€“4.
S Malik, G Enzner, in Proc. IEEE Int. Conf. Acoustics, Speech, Signal Process. (ICASSP). Variational Bayesian inference for nonlinear acoustic echo cancellation using adaptive cascade modeling (Kyoto, 2012), pp. 37â€“40.
C Hofmann, C Huemmer, W Kellermann, in Proc. IEEE Int. Conf. Acoustics, Speech, Signal Process. (ICASSP). Significanceaware Hammerstein group models for nonlinear acoustic echo cancellation (Florence, Italy, 2014), pp. 5934â€“5938.
C Huemmer, C Hofmann, R Maas, W Kellermann, in Proc. IEEE Global Conf. Signal Information Process. (GlobalSIP). The significanceaware EPFES to estimate a memoryless preprocessor for nonlinear acoustic echo cancellation (Atlanta, GA, 2014), pp. 557â€“561.
T Adali, D Miller, K Diamantaras, J Larsen, Trends in machine learning for signal processing. IEEE Signal Process. Mag.28(6), 193â€“196 (2011).
R Talmon, I Cohen, S Gannot, RR Coifman, Diffusion maps for signal processing: a deeper look at manifoldlearning techniques based on kernels and graphs. IEEE Signal Process. Mag.30(4), 75â€“86 (2013).
KR Muller, T Adali, K Fukumizu, JC Principe, S Theodoridis, Special issue on advances in kernelbased learning for signal processing. IEEE Signal Process. Mag.30(4), 14â€“15 (2013).
BJ Frey, Graphical Models for Machine Learning and Digital Communication (MIT Press, Cambridge, MA, USA, 1998).
SJ Rennie, P Aarabi, BJ Frey, Variational probabilistic speech separation using microphone arrays. IEEE Trans. Audio, Speech, Lang. Process.15(1), 135â€“149 (2007).
S Malik, J Benesty, J Chen, A Bayesian framework for blind adaptive beamforming. IEEE Trans. Signal Process.62(9), 2370â€“2384 (2014).
FR Kschischang, BJ Frey, HA Loeliger, Factor graphs and the sumproduct algorithm. IEEE Trans. Inform. Theory. 47(2), 498â€“519 (2001).
P Mirowski, Y LeCun, in Machine Learning and Knowledge Discovery in Databases, Lecture Notes in Computer Science, 5782. Dynamic factor graphs for time series modeling (Springer,Berlin Heidelberg, 2009), pp. 128â€“143.
CW Maina, JM Walsh, Joint speech enhancement and speaker identification using approximate Bayesian inference. IEEE Trans. Audio, Speech, Lang. Process.19(6), 1517â€“1529 (2011).
D Barber, AT Cemgil, Graphical models for time series. IEEE Signal Process. Mag.27(6), 18â€“28 (2010).
CM Bishop, Pattern Recognition and Machine Learning (Springer, New York, 2006).
R Maas, C Huemmer, C Hofmann, W Kellermann, in ITG Conf. Speech Commun. On Bayesian networks in speech signal processing (Erlangen, Germany, 2014).
C Huemmer, R Maas, W Kellermann, The NLMS algorithm with timevariant optimum stepsize derived from a Bayesian network perspective. IEEE Signal Process. Lett.22(11), 1874â€“1878 (2015).
PAC Lopes, JB Gerald, in Proc. IEEE Int. Conf. Acoustics, Speech, Signal Process. (ICASSP). New normalized LMS algorithms based on the Kalman filter (New Orleans, LA, 2007), pp. 117â€“120.
S Yamamoto, S Kitayama, An adaptive echo canceller with variable step gain method. Trans. IECE Japan. E65(1), 1â€“8 (1982).
S Haykin, Adaptive Filter Theory (Prentice Hall, New Jersey, 2002).
U SchultheiÃŸ, Ãœber die adaption eines kompensators fÃ¼r akustische echos. VDI Verlag (1988).
C Breining, P Dreiseitel, E HÃ¤nsler, A Mader, B Nitsch, H Puder, T Schertler, G Schmidt, J Tilp, Acoustic echo control. Signal Process.16(4), 42â€“69 (1999).
R Maas, C Huemmer, A Schwarz, C Hofmann, W Kellermann, in Proc. IEEE China Summit Int. Conf. Signal Information Process. (ChinaSIP). A Bayesian network view on linear and nonlinear acoustic echo cancellation (Xiâ€™an, China, 2014), pp. 495â€“499.
K Uosaki, T Hatanaka, Nonlinear state estimation by evolution strategies based particle filters. 2003 Congr. Evolut. Comput.3:, 2102â€“2109 (2003).
T SchÃ¶n. Estimation of nonlinear dynamic systems (PhD thesis, LinkÃ¶pings universitetLiUTryck, 2006).
T Bengtsson, P Bickel, B Li, in Probability, Statistics: Essays Honor David A. Freedman, Vol. 2. Curseofdimensionality revisited: collapse of the particle filter in very large scale systems (Institute of Mathematical StatisticsBeachwood, Ohio, USA, 2008), pp. 316â€“334.
F Gustafsson, F Gunnarsson, N Bergman, U Forssell, J Jansson, R Karlsson, PJ Nordlund, Particle filters for positioning, navigation, and tracking. IEEE Trans. Signal Process.50(2), 425â€“437 (2002).
A Doucet, AM Johansen, A tutorial on particle filtering and smoothing: fifteen years later. Handbook Nonlinear Filtering. 12:, 656â€“704 (2009).
A Doucet, N de Freitas, N Gordon, Sequential Monte Carlo Methods in Practice (Springer, New York, 2001).
T BÃ¤ck, HP Schwefel, in Proc. IEEE Int. Conf. Evolut. Comput. (ICEC). Evolutionary computation: an overview (Nagoya, Japan, 1996), pp. 20â€“29.
S Henriksen, A Wills, TB T. SchÃ¶n, B Ninness, in Proc. 16th IFAC Symposium Syst. Ident, 16. Parallel implementation of particle MCMC methods on a GPU (Brussels, Belgium, 2012), pp. 1143â€“1148.
A Lee, C Yau, MB Giles, A Doucet, CC Holmes, On the utility of graphics cards to perform massively parallel simulation of advanced monte carlo methods. J. Comp. Graph. Stat.19(4), 769â€“789 (2010).
Acknowledgements
The authors would like to thank the Deutsche Forschungsgemeinschaft (DFG) for supporting this work (contract number KE 890/42).
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authorsâ€™ information
RM was with the University of ErlangenNuremberg while the work has been conducted. He is now with Amazon, Seattle, WA.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Huemmer, C., Maas, R., Hofmann, C. et al. A Bayesian network approach to linear and nonlinear acoustic echo cancellation. EURASIP J. Adv. Signal Process. 2015, 98 (2015). https://doi.org/10.1186/s1363401502822
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1363401502822
Keywords
 Bayesian networks
 Acoustic echo cancellation
 Graphical models