Modeling and Mitigating Errors in Belief Propagation for Distributed Detection
Full text
This is a self-archived version of an original article. This version may differ from the original in pagination and typographic details. Author(s): Title: Year: Version: Copyright: Rights: Rights url: Please cite the original version: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ Modeling and Mitigating Errors in Belief Propagation for Distributed Detection © Authors, 2021 Published version Abdi, Younes; Ristaniemi, Tapani Abdi, Y., & Ristaniemi, T. (2021). Modeling and Mitigating Errors in Belief Propagation for Distributed Detection. IEEE Transactions on Communications, 69(5), 3286-3297. https://doi.org/10.1109/TCOMM.2021.3056679 2021
3286 IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 69, NO. 5, MAY 2021 Modeling and Mitigating Errors in Belief Propagation for Distributed Detection Younes Abdi ,Member, IEEE, and Tapani Ristaniemi ,Senior Member, IEEE Abstract— We study the behavior of the belief-propagation (BP) algorithm affected by erroneous data exchange in a wireless sensor network (WSN). The WSN conducts a distributed multidimensional hypothesis test over binary random variables. The joint statistical behavior of the sensor observations is modeled by a Markov random field whose parameters are used to build the BP messages exchanged between the sensing nodes. Through linearization of the BP message-update rule, we analyze the behavior of the resulting erroneous decision variables and derive closed-form relationships that describe the impact of stochastic errors on the performance of the BP algorithm. We then develop a decentralized distributed optimization framework to enhance the system performance by mitigating the impact of errors via a distributed linear data-fusion scheme. Finally, we compare the results of the proposed analysis with the existing works and visualize, via computer simulations, the performance gain obtained by the proposed optimization. Index Terms— Distributed systems, cooperative communications, likelihood-ratio test, communication errors, computation errors, blind signal processing, message-passing algorithms, linear data-fusion, factor graphs. I. INTRODUCTION DESIGN of statistical inference systems often involves analysis and modeling of the collective behavior of a group of random variables and their interactions. Consequently, factor graphs, which are commonly used to capture the interdependencies between correlated random variables, provide a powerful framework for developing effective low-complexity inference algorithms in various fields such as wireless communications, image processing, combinatorial optimization, and machine learning, see e.g., [1]–[3]. Belief propagation (BP) [4] is a well-known statistical inference algorithm that works based on parallel message-passing between the nodes in a factor graph. BP is sometimes referred to as the sum-product algorithm. When working with the BP algorithm, we should bear in mind that digital computation and digital communication are both error-prone processes in general. The messages exchanged between the nodes in a wireless network can always be adversely affected by errors caused by unreliable hardware Manuscript received March 12, 2020; revised September 6, 2020 and January 25, 2021; accepted January 25, 2021. Date of publication February 3, 2021; date of current version May 18, 2021. The associate editor coordinating the review of this article and approving it for publication was A. Cohen. (Corresponding author: Younes Abdi.) Younes Abdi is with the Faculty of Information Technology, University of Jyväskylä, 40014 Jyväskylä, Finland (e-mail: younes.[email protected]). Tapani Ristaniemi, deceased, was with the Faculty of Information Technology, University of Jyväskylä, 40014 Jyväskylä, Finland (e-mail: [email protected]). Color versions of one or more figures in this article are available at https://doi.org/10.1109/TCOMM.2021.3056679. Digital Object Identifier 10.1109/TCOMM.2021.3056679 components, quantization processes, approximate representations, wireless channel impairments, etc. Even though the BP algorithm has been extensively studied in the literature, we have rather limited knowledge about how stochastic errors in messages affect the beliefs obtained and how these erroneous beliefs influence the result of statistical inference schemes implemented by the BP algorithm. This territory is difficult to explore mainly due to the nonlinearities in the BP message-passing iteration. In [5], we have developed a systematic framework for analyzing the behavior of BP and optimizing its performance in a distributed detection scenario. In particular, we have shown that the decision variables built by the BP algorithm are, approximately, linear combinations of the local likelihoods in the network. Consequently, we have derived in [5] closed-form relationships for the system performance metrics and formulated a distributed optimization scheme to achieve a near-optimal detection performance. Moreover, we have discussed the relationship between the BP and the max-product algorithms in [6] where we extend the proposed framework in [5] to optimize the performance of the max-product algorithm in a distributed detection scenario. In this paper, we further extend that framework to gain insight into the impact of computation and communication errors, in a BP iteration, on the resulting decision variables and to effectively mitigate that impact. Examples of BP being used in distributed detection can be found in [7]–[10]. Accumulation of message errors and their adverse effect on the performance of BP is analyzed in [11] where the message errors are modeled as uncorrelated random variables to find probabilistic guarantees on the magnitude of errors affecting the beliefs. The work in [11] is inspired by observing the behavior and stability of digital filters, in the presence of quantization effects, which can be analyzed reliably by assuming uncorrelated behavior in the corresponding random errors [12]. Such a modeling approach is in line with the von Neumann model of noisy circuits [13], which considers transient faults in logic gates and wires as message and node computation noise that is both spatially and temporally independent [14]. The behavior of BP implemented on noisy hardware is investigated in [15] where it is observed that under the so-called contracting mapping condition [16], the distance between successive messages in a noise-free BP decreases by the number of iterations. Consequently, in the presence of hardware (or computation) noise, the faulty messages that violate this trend can be detected and discarded (censored) from the BP iterations. Such an approach is termed censoring This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
ABDI AND RISTANIEMI: MODELING AND MITIGATING ERRORS IN BELIEF PROPAGATION FOR DISTRIBUTED DETECTION 3287 BP in [15] and is shown to perform well when the hardware noise distribution has a large mass at zero and non-negligible masses at some points sufficiently away from zero. As an alternative approach, the so-called averaging BP (ABP) is also proposed in [15]. In this method, as the name implies, an average of the messages up to the last iteration is saved and then used, instead of the actual messages, to build the beliefs. This method is proposed and its convergence is established for general zero-mean computation noise distributions. Again, the von Neumann model is used in [15] to analyze the behavior of message errors. In this paper, we use the fact that the BP algorithm and the linear data-fusion scheme are elegantly related to each other in the context of distributed detection. Fortunately, there already exists a rich collection of scientific works in the literature that investigate low-complexity detector structures based on linear fusion in various design scenarios [17]–[21]. In many of these works, the data-exchange process within the sensor network is assumed adversely affected by non-idealities in the underlying communication links. Hence, dealing with erroneous data is a familiar challenge faced when designing wireless sensor networks (WSN). We use this knowledge to cope with the impact of message errors on distributed detection systems realized by BP. It is a common practice to refer to the channels over which the data exchange between the sensing nodes is conducted as reporting channels to distinguish them from the channels over which the target signal is detected, which are referred to as listening channels. The importance of the present work can be highlighted by noting that distributed detection systems can be highly sensitive to the reporting errors. This phenomenon is illustrated in [22, Sec. IV-C] by a simple example that shows that the overall detection performance cannot go beyond the limits dictated by the reporting channel conditions irrespective of the signal-to- noise-ratio (SNR) levels of the target signal experienced at the listening channels. This effect is further studied and quantified for several hard- and soft-decision fusion schemes in [23]–[25] where it is shown that the reporting channel errors can have a significant impact on the detection performance. In the existing literature, the reporting channels have been commonly considered nonideal to account for realistic data-exchange processes between the network nodes [17], [20], [21], [26]–[30]. A major application scenario for distributed detection systems is spectrum sensing in cognitive radio networks (CRN) where communication between the sensing nodes is typically conducted without having access to dedicated spectrum bands. This means that the data exchange between those nodes could face stringent constraints in terms of transmit power and bandwidth. Consequently, many works on distributed detection in CRNs focus on reporting links with bandwidth or power constrains, see e.g., [27]. These constraints are typically taken into account, in the system modeling and optimization, by non-ideal reporting links that introduce non-zero bit error probabilities (BEP) in digital [21] and uncorrelated noise in analog reporting schemes [20]. Since the link noise level and BEP are monotonically related to each other [21, Eq. (12)], similar approaches can be used in both analog and digital cases to mitigate the impact of reporting errors, see [17], [21]. In this paper, we are focused on a BP-based decentralized distributed detection scheme. We view message errors in the BP iteration as reporting errors and approximate the messages by a linear expression to study the impact of erroneous data-exchange on the BP algorithm and to clarify how it affects the performance of the resulting distributed detection. We derive approximate expressions that measure the strength of the cumulative errors that affect the BP-based decision variables. These expressions are in the form of mean-squared error (MSE) levels. We compare the MSE levels obtained with the one in [11] to gain insight into the behavior of BP and to see how computation and communication errors propagate throughout the underlying factor graph. Our analysis closely predicts the extent of the deviation of the erroneous decision variables, obtained by an erroneous BP iteration, from their actual values. This is a significant improvement over Ihler’s bound in [11]. Moreover, based on the proposed linear approximation, we show that ABP is effective in alleviating message errors and falls short of mitigating the impact of erroneous local likelihood ratios (LLRs) on the resulting decision variables. We also show, under practical assumptions, that the decision variables built by an erroneous BP are disturbed by a sum of independent error components whose collective impact can be modeled, approximately, by Gaussian random variables. Consequently, we establish the probability distribution of the resulting erroneous decision variables, derive the performance metrics of the BP-based distributed detection in closed form, and propose a two-stage optimal linear fusion scheme to cope with the impact of errors on the system performance. We then develop a blind adaptation algorithm to realize the proposed two-stage optimization when the statistics describing the radio environment are not available apriori. The proposed blind adaptation modifies the parameters of the BP and the decision threshold at each node, in accordance with the error statistics and channel conditions, to mitigate the impact of errors and to enhance the detection performance. To summarize, we extend the works in [5] and [6] by the following contributions: •We analyze the behavior of the BP algorithm in the presence of message (and likelihood) errors and derive its performance metrics in closed form in a distributed detection subject to those errors. •We build a distributed optimization framework for the system that takes into account and effectively mitigates the impact of erroneous data exchange in BP. Moreover, •We extend the work in [11] by proposing a tighter error bound that more accurately describes the impact of message errors on the decision variables built by the BP algorithm. •We extend the work in [15] by analyzing the behavior of ABP. Our work sheds light on ABP’s effectiveness and shortcomings. Here is an overview of the paper organization: In Sec. II, we briefly explain the use of linear fusion and BP in distributed
3288 IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 69, NO. 5, MAY 2021 detection and provide the related formulations. In Sec. III, we discuss errors in BP and model their impact on the decision variables obtained. In Sec. IV, we view BP as a distributed linear fusion and formulate the proposed optimization framework. In Sec. V, we conduct computer simulations to verify our analysis and to illustrate how effectively the proposed method mitigates the impact of errors in a WSN with faulty devices. Finally, we provide our concluding remarks in Sec. VI. II. LINEAR FUSION AND BELIEF PROPAGATION FOR DISTRIBUTED DETECTION We consider Nbinary random variables, represented by x=[x1,...,x N]T, whose status are estimated based on N observations denoted Y=[y1,...,yN]made by a network of Nsensing nodes. Each node, say node i, which intends to estimate the status of xi, collects Kobservation samples, denoted by yi=[yi(1),...,y i(K)]T, and exchanges information with other nodes in the network to realize together a multidimensional hypothesis test as ˆ x=max xp(x|Y)= maxxp(Y|x)p(x). This test can be conducted with low implementation complexity in two alternative ways that are explained in the following. A. Linear Data-Fusion Linear fusion has been extensively used in the context of spectrum sensing where the aim is to detect the presence or absence of a target signal by evaluating noisy observations made throughout a WSN. For brevity, we explain the uni-variate case where we have a single binary variable x∈ {0,1}. The optimal approach to such a detection is known to be the so-called likelihood-ratio test (LRT) [31], which is conducted by evaluating the LLR, i.e., by ˆx=1{λLRT −τ} where λLRT ln p(Y|x=1) p(Y|x=0)= N i=1 γi(1) where γiln p(yi|x=1) p(yi|x=0)=sT iyi−1 2si2(2) where γiis referred to as the local LLR at node i.By 1{·} we represent the indicator function that returns one if its argument is positive and returns zero otherwise. τis a detection threshold selected via a target false-alarm rate. Eq. (2) indicates that, the LRT is a matched-filtering process, which requires the target signal sito be known aprioriat the sensing nodes. Moreover, for Gaussian observations, γi in (2) follows a Gaussian distribution. In practice, the local sensing process is realized by energy detection, due to its ease of implementation and because its structure does not require the target signal to be known. Energy detection is realized by γi1 Kyi2and the sensor outcomes are combined linearly to build a global test statistic [17]–[21], i.e., λLF N i=1 wiγi=wTγ(3) where w[w1,...,w N]Tand γ[γ1,...,γ N]T. Then, λLF is compared against τto conduct the hypothesis test, i.e., ˆx=1{λLF −τ}.wcan be set to maximize the detection probability. According to the central limit theorem (CLT) [32], when the number of signal samples Kis large enough [17]–[21], the outcome of energy detection follows a Gaussian distribution and we can model the test summary λLF, given the status of x, as a Gaussian random variable. Consequently, the detector performance can be optimized by the well-known Neyman-Pearson approach [31]. This optimization is formulated as w∗=argmin w Q−1(α)wTΣ0w−wTδ wTΣ1w(4) where δμ1−μ0while μbE[γ|x=b]and Σb cov(γ|x=b)and Q−1(·)denotes the inverse of the Q- function. αdenotes the target false-alarm probability at which the detection probability is maximized. This non-convex problem is solved in [17], [19], [20]. From these works, we know that the performance of linear fusion is close to the LRT performance. Alternatively, we can maximize the so-called deflection coefficient of the detector. This approach, which has a low computational complexity and leads to a good performance level, is realized by w∗=argmax wΔ2(w),s.t., w=1 (5) where Δ2(w)(E[λLF|x=1]−E[λLF|x=0]) 2 Var[λLF|x=0] =wTδ2 wTΣ0w(6) Consequently, by using the Rayleigh-Ritz inequality [17], w∗is obtained in closed form as w∗=Σ−1 0δ/ Σ−1 0δ . Extension of the linear detection structure in (3) to Nvariables is discussed in [18] in the context of multiband spectrum sensing. B. Belief Propagation We model the sensor network structure concerned by an MRF defined on an undirected graph G=(V,E).Inthis model, the set of vertices Vcorresponds to the set of network nodes while each edge (i, j)∈Erepresents a possible connection between nodes iand j. Each node, say node i, is associated with a random variable xiand the edge (i, j) models a possible correlation between xiand xj. This model fits well into the commonly-used ad-hoc network configurations in which major network functionalities are conducted through pairwise i.e., one-hop, links between the nodes located close to each other. This design method is based on the common assumption that nodes located close enough to each other for one-hop communication, experience some levels of correlation between their sensor outcomes. By using the MRF, we write p(x|Y)as a product of univariate and bivariate functions, i.e., p(x|Y)∝ n∈V φn(xn) (i,j)∈E ψij (xi,x j)(7) Note that ∝in (7) refers to a normalization that ensures xp(x|Y)=1and includes but is not limited to 1/p(Y). When including the bivariate terms in the product, each edge in the factor graph is included in the product only once. This is realized by doing the multiplication on i<jwhile i∈N j.
ABDI AND RISTANIEMI: MODELING AND MITIGATING ERRORS IN BELIEF PROPAGATION FOR DISTRIBUTED DETECTION 3289 We use Njto denote the set of neighbors of node jin the graph, i.e., Nj{k:(k,j)∈E}. By using (7), we formulate the message received at node jfrom node kas μ(l) k→j(xj)∝ xk φk(xk)ψkj (xk,x j) n∈Nj k μ(l−1) n→k(xk)(8) where by Nj kNk\{j}we denote all nodes connected to node kexcept for node j. We denote by b(l) j(xj)the belief, about the status of xj, formed at node j, which is obtained via multiplying the potential at node jby the messages received from all its neighbors, i.e., b(l) j(xj)∝φj(xj) k∈Nj μ(l) k→j(xj)(9) The beliefs are used as estimates of the desired marginal distributions, i.e., b(l) j(xj)≈p(xj|Y). By adopting the commonly-used exponential model [4] to represent the apriori probability measure defined on x,wehave p(x)∝exp ⎛ ⎝ n∈V θnxn+ (i,j)∈E Jij xixj⎞ ⎠(10) For notational convenience, we use bipolar binary variables, i.e., xj∈{−1,+1}in our formulations of BP. For a given x, we assume the local observations to be mutually independent. Consequently, as explained in [5, Sec. I-B], we have p(x|Y)∝ n∈V p(yn|xn)eθnxn (i,j)∈E eJij xixj(11) Hence, by using (11), the BP messages are built as μ(l) k→j(xj)∝ xk p(yk|xk)eθkxkeJkj xkxj n∈Nj k μ(l−1) n→k(xk) (12) and the beliefs at iteration lare expressed as b(l) j(xj)∝p(yj|xj)eθjxj k∈Nj μ(l) k→j(xj)(13) In the log domain, (12) and (13) convert, respectively, as clarified in Appendix A, to m(l) k→j=S⎛ ⎝Jkj,γ k+ n∈Nj k m(l−1) n→k⎞ ⎠(14) λ(l) j=γj+ k∈Nj m(l) k→j(15) where λ(l) jln b(l) j(xj=+1) b(l) j(xj=−1) (16) m(l) k→jln μ(l) k→j(xj=+1) μ(l) k→j(xj=−1) (17) denote, respectively, the estimated likelihood ratio at node j and the message sent to node jfrom node kwhile S(a, b) ln 1+ea+b ea+eband γkln p(yk|xk=+1) p(yk|xk=−1) =sT kyk−1 2sk2.Inthis model, yk=1 2(xk+1)sk+nkdenotes the signal received at node k. Hence, xk=−1indicates that the target signal skis absent leaving the the spectrum free where node k operates. If xk=+1, then the corresponding spectrum band is occupied. Jkj ’s are calculated as in Eq. (16) in [5] by processing a window of Tsensing outcomes. Note that θk in (14) is merged into γkwithout having any impact on the rest of the analysis. After l∗iterations, λ(l∗) jis compared, as a decision variable, against a detection threshold τjat node jto decide the status of xj, i.e., ˆxj=1{λ(l∗) j−τj}. By a linear approximation of (14), we have [5] m(l) k→j≈cjk ⎛ ⎝γk+ n∈Nj k m(l−1) n→k⎞ ⎠(18) where cjk (e2Jkj −1) (1+eJkj )2. This approximation is obtained by the first-order Taylor series expansion, i.e., S(a, b)≈Sb(a, 0)b where Sb(a, b)=∂S(a, b)/∂b. By using (18) we see that liml→∞ λ(l) j≈λjwhere λjγj+ k∈Nj cjkγk+ k∈Nj n∈Nj k cjkcknγn + k∈Nj n∈Nj k m∈Nk n cjkckncnmγm+... (19) Therefore, this approximation reveals that, given enough time, all the local likelihood ratios observed in the network are almost linearly combined at node jto calculate its decision variable λj. We have shown in [5] that, the convergence of this linear message-passing algorithm is guaranteed when |cj,k|<1 maxn|Nn|−1,∀(j, k)∈E. The linear combination in (19) can be expressed as λj=N i=1 ajiγi,whichis compactly stated in matrix form as λ=Aγ (20) where λ[λ1,...,λ N]Tand A[a1,...,aN]Twhile aj[aj1,...,a jN]T. Here we derive the relationship between Aand cjk’s in (19) as A≈I+ ∞ n=1 Cn−D∞ n=1 Cn(21) where C[cjk]N×Nand D(X)denotes a diagonal matrix whose main diagonal is equal to that of X. The proof is provided in Appendix B. It is now clear that to have convergence in the message-passing iteration (18), the spectral radius of Chas to be less than one. This criterion may be used to impose bounds on cjk’s to guarantee the convergence of the algorithm. Alternatively, the convergence can be guaranteed, without dealing with the complexities of finding the spectral radius, by using the contracting mapping condition as we have discussed in [5]. We use (21) in the following section to derive an estimation of the error strength affecting the decision variables built by an erroneous BP. III. ERRORS IN BELIEF PROPAGATION Eq. (14) shows that at each BP iteration each node creates its messages in terms of its local LLR value as well as the messages received from the neighboring nodes at the previous iteration. In our system model, we assume that the local LLRs and the BP messages are erroneous. As in [11] and [15],
3290 IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 69, NO. 5, MAY 2021 we use the von Neumann approach to modeling the joint statistical behavior of errors. A. Error Model and Analysis Since the messages are multiplied together to build the beliefs, we formulate them as multiplicative perturbations affecting true (i.e., error-free) message values, i.e., ˜μ(l) k→j(xj)=μ(l) k→j(xj)ε(l) k→j(xj)(22) where ˜μ(l) k→j(xj)denotes the erroneous message sent to node jfrom node kat iteration lwhile ε(l) k→j(xj)denotes the corresponding error, which is considered in this paper as a stochastic process. Eq. (22) differs from the model used in [11] in the sense that the error model in that work measures the difference between the messages at iteration lwith their counterparts at the fixed point of the message-passing iteration. In other words, the error model in [11] measures the deviation of the messages at each iteration from their final value reached by BP after convergence. The stochastic error we discuss here is briefly studied in [11] under the notion of additional error. By expressing the messages in the the log domain, we have ˜m(l) k→jln ˜μ(l) k→j(xj=+1) ˜μ(l) k→j(xj=−1) =m(l) k→j+ν(l) k→j(23) where ν(l) k→jln ε(l) k→j(xj=+1) ε(l) k→j(xj=−1) (24) Based on the von Neumann model, we assume that if k=n, then E[ln ε(l) k→j(x)lnε(l) n→j(x)] = 0 for all x. Consequently, we have E[νk→jνn→j]=0. To measure the collective impact of errors on the belief of node j,weuse E(l) j(xj)˜ b(l) j(xj) b(∗) j(xj)(25) where ˜ b(l) j(xj)denotes the belief at node jresulting from a BP iteration with erroneous messages as in (22) while b(∗) j(xj) denotes the belief of node jat a fixed point reached by an error-free BP iteration. We use (∗)instead of (l)to indicate the messages and beliefs at a fixed point of the error-free BP. By assuming uncorrelated stochastic behavior for the message errors, an upper bound on cumulative errors affecting the beliefs can be obtained. Specifically, assuming Var ν(l) k→j≤ (ln u)2for all k,j,l, an upper bound on the resulting cumulative strength of errors at node jis derived in [11] as, Eln dE(l) j2≤ k∈Njσ(l) kj 2 (26) where σ(1) kj =lnd(ψkj )2and σ(l+1) kj 2=ln d(ψkj )2ω(l) kj +1 d(ψkj)2+ω(l) kj 2 +(lnu)2(27) while ln ω(l) kj 2= n∈Nj kσ(l) nk2 (28) where dE(l) jsup a,b E(l) j(a) E(l) j(b)(29) d(ψkj)2sup a,b,c,d ψkj(a, b) ψkj(c, d)(30) We use the upper bound in (26) in the log domain based on the fact that (see (16) and (25)) ˜ λ(l) jln ˜ b(l) j(+1) ˜ b(l) j(−1) =λ(∗) j+lnE(l) j(+1) E(l) j(−1) (31) which leads to E ˜ λ(l) j−λ(∗) j 2=Eln E(l) j(+1) −ln E(l) j(−1) 2 =Eln dE(l) j2≤ k∈Njσ(l) kj 2 (32) Hence, in the detection structure discussed, (26) gives an upper bound on the MSE level observed in the decision variable at node j. B. Linear Approximations In our analysis, we distinguish between the message errors and the errors in the computation of local LLRs to gain further insight into the behavior of the BP algorithm. In particular, we model the erroneous local LLRs as ˜γkγk+kand refer to k’s as likelihood errors (LE) while assuming that LEs are uncorrelated as well, i.e., E[kn]=0for k=n. We refer to νk→j’s as message errors (ME) and assume that LEs and MEs are mutually independent. Moreover, we assume that all MEs and LEs are independent of the messages and of the local LLRs. Note that the bound in (32) does not take LEs into account. Taking both types of error into account, we express the messages decision variables as ˜m(l) k→j=S⎛ ⎝Jkj,˜γk+ n∈Nj k ˜m(l−1) n→k⎞ ⎠+ν(l) k→j(33) ˜ λ(l) j=˜γj+ k∈Nj ˜m(l) k→j(34) which shows that the errors pass through the same nonlinear transformation (i.e., S) as the messages do. By using (33), we can analyze the behavior of errors. The proposed linear BP iteration in the presence of message errors is expressed as ˜m(l) k→j≈cjk ⎛ ⎝˜γk+ n∈Nj k ˜m(l−1) n→k⎞ ⎠+ν(l) k→j(35) Consequently, similar to the way (19) is derived, the resulting erroneous decision variable is formed as ˜ λ(l) j≈˜γj+ k∈Nj cjk˜γk+ k∈Nj n∈Nj k cjkckn˜γn+... + k∈Nj ν(l) k→j(36)
ABDI AND RISTANIEMI: MODELING AND MITIGATING ERRORS IN BELIEF PROPAGATION FOR DISTRIBUTED DETECTION 3291 which can be reorganized as ˜ λ(l) j≈λj+ξ(l) j(37) where ξ(l) j N i=1 ajii+ k∈Nj ν(l) k→j(38) Eq. (38) shows that the error affecting the decision variable at node jhas two distinct components. The first component is built as a linear combination of LEs while the second one is the sum of the MEs received at node jfrom its one-hop neighbors. The first component is fixed whereas the second one exhibits a new realization at every iteration. According to (38), deviation from the error-free decision variables, caused by errors in the BP iterations, can approximately be measured by E ˜ λ(l) j−λ(∗) j 2≈Eξ(l) j 2=aT jΣaj+tr Σνj(39) where Σcov()and Σνjcov ν(l) jwhile [1,..., N]Tand ν(l) jdenotes an |Mj|-by-1 vector that contains ν(l) k→j’s for k∈M jwhere MjNj∪{j}while ν(l) j→j0. Note that (36) includes more ME terms than just k∈Njν(l) k→j. However, they can all be neglected since |cjk|<1for all j, k. Eq. (36) shows that when BP is used to realize a distributed detection, the erroneous local likelihoods in the network are combined linearly to build the decision variables. We can evaluate the impact of the errors on the system performance by analyzing the stochastic behavior of the erroneous decision variables ˜ λ(l) j.Givenx, the decision variable at node j is obtained as a linear combination of independent random variables. Consequently, its conditional pdf is derived as f˜ ιj|x(z|b)≈N i=1 1 aji f˜γi|xz aji |b∗ k∈Nj fνk→j(z)(40) where f˜γi|x(z|b)=fγi|x(z|b)∗fi(z)(41) while and ∗denote the convolution operator. Consequently, we have g j(τj,v)Pr{˜ λj>τ j|xj=v} = b∈{−1,1}N−1 px(j)|xj(b|v) ∞ τj f˜ ιj|x(z|Ej,v(b)) dz (42) where v∈{−1,+1},x(j) [x1,x 2,...,x j−1,x j+1,...,x N]Tand Ej,v(b){x(j)= b,x j=v}while px(j)|xj(b|v)Pr{x(j)=b|xj=v}. Solving g j(τj,−1) = αgives a threshold value that fixes the false-alarm rate at α. Similarly, g j(τj,1) = βfixes the detection rate at β. Recall that aji’s are found by using cjk’s, see (21). As a common practical case, when the local LLRs and the errors follow Gaussian distributions [17]–[21] the decision variable ˜ λjfollows a Gaussian distribution as well and it is fully characterized by its first- and second-order statistics. Specifically, we have ∞ τj f˜ ιj|x(z|Ej,v(b)) dz =Qτj−μj,v(b) σj,v(b)(43) where μj,v(b)E˜ λj|Ej,v(b) =E[γj|xj=v]+ i=j ajiE[γi|xi=bi](44) σ2 j,v (b)Var ˜ λj|Ej,v(b) =Var [γj|xj=v]+ i=j a2 jiVar [γi|xi=bi]+E|ξj|2 (45) In (44) we have assumed, without loss of generality, zero-mean errors. Note that, without the proposed approximation these performance measures are not available analytically due to the nonlinearity of (14). In the rest of the paper, we assume that the local likelihoods, LEs, and MEs are Gaussian random variables. Eq. (40) shows that, according to the CLT, even if the local LLRs and errors are not Gaussian random variables, the stochastic behavior of the decision variables can still be approximately described by Gaussian distributions. C.ImpactofAveraging In ABP, the message-passing iteration is the same as in BP. However, instead of the actual message values, an average of the messages are used to build the decision variables. To be more specific, in the log domain and for l≥L+1,let ¯m(l) k→j1 L+1 l t=l−L ˜m(t) k→j(46) The decision variable at node jis calculated by ¯ λ(l) jγj+ k∈Nj ¯m(l) k→j(47) Similar to our discussion regarding (19), we can show that when the message-passing iteration is error-free, ¯ λ(∗) j liml→∞ ¯ λ(l) j=λj. Hence, we can see that the averaging process does not alter the fixed points achieved by the error-free linear BP. This observation is in line with the convergence analysis provided in [15]. The impact of averaging on LEs and MEs can be clarified by noting that ¯ λ(l) j=λj+¯ ξ(l) j(48) where, assuming Lto be large enough, we have ¯ ξ(l) j= N i=1 ajii+ k∈Nj ¯ν(l) k→j≈ N i=1 ajii(49) since ¯ν(l) k→j1 L+1 l t=l−Lν(t) k→j≈0. We can state (49) in the form of MSE as E ¯ λ(l) j−λ(∗) j 2≈aT jΣaj+1 L+1tr Σνj(50) Assuming Lto be large enough and MEs to have zero mean, (49) shows that the resulting decision variable built by
3292 IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 69, NO. 5, MAY 2021 ABP in (47) is almost cleared of MEs. However, the averaging process has almost no impact on LEs. Note that in ABP the message-passing iteration is the same as in BP and the averaging is only performed when computing the decision variables. Moreover, in ABP, instead of storing the messages in past iterations separately, we only need to store the sum of the messages up to the current iteration. As a consequence, the number of additional memory cells required can be kept constant [15]. We will use ABP in Sec. IV-B to build an offline learning-optimization structure for the linear BP in the presence of errors. IV. MITIGATING ERRORS BY LINEAR FUSION In this section, we first propose a two-stage linear fusion scheme to obtain a near-optimal detection performance by suppressing the impact of the errors. Then, we realize the proposed optimization in a blind decentralized setting where the required statistics are not available a priori. A. Linear Fusion First, since |cjk|<1, we further approximate the decision variable λjin (19) as λj≈ k∈Mj cjkγk(51) Due to the symmetry of the data-fusion process in (19), the approximation in (51) is an effective approach to building a distributed computing framework for system performance optimization. In this framework, each node interacts only with its immediate neighbors. We have clarified this symmetry in [5, Sec. III-B]. By taking into account the errors while analyzing the linear BP, (19) and (36) lead to ˜ λj≈ k∈Mj cjk (γk+k)+ k∈Nj νk→j(52) We see that the disturbance on the decision variable caused by LEs is built, approximately, as a linear combination of k’s with cjk’s acting as weights in this combination. Therefore, we use cjk’s as design parameters to mitigate the impact of k’s. Moreover, MEs are combined in (52) linearly and in this combination, all weights are one. We propose to extend this combination by using a modified version of (34) as ˆ λ(l) j˜γj+ k∈Nj wjk ˜m(l) k→j(53) This modification in the structure of the decision variable does not affect the convergence of the proposed linear BP since it does not alter the message-passing iteration. Now, based on an approximation similar to the one in (52), we have ˆ λj≈ k∈Mj wjkcjk (γk+k)+ k∈Nj wjkνk→j(54) Since ˆ λjis a Gaussian random variable, we only need its mean and variance to characterize its statistical behavior. Specifically, for b∈{−1,1},wehave Pr{ˆ λj>τ j|xj=b}=Qτj−E[ˆ λj|xj=b] Var[ˆ λj|xj=b](55) where E[ˆ λj|xj=b]≈vT jμb(56) Var[ˆ λj|xj=b]≈vT jΣγj|b+Σjvj+wT jΣνjwj(57) where vjwj◦cjin which ◦denotes the Hadamard product while Σγj|b=cov(γj|xj=b)and Σj=cov(j). Moreover, wj,cj,γj,andjare |Mj|-by-1 vectors containing wji’s, cji’s, γi’s, and i’s for i∈M j, respectively. Eq. (55) gives the system false-alarm probability for b=−1and the detection probability for b=1. The false-alarm probability can be set to P(j) f=αby τj=Q−1(α)Var[ˆ λj|xj=−1] + E[ˆ λj|xj=−1] (58) and then by using (55) – (57), wjand cjcan jointly be optimized in a Neyman-Pearson setting. To avoid the challenges of this optimization, we maximize the deflection coefficient of the detector. We already know that the resulting detector performs well when the decision variables follow Gaussian distributions. In this manner, we mitigate the joint impact of LEs and MEs with low computational complexity. The proposed optimization is conducted in two consecutive stages based on the fact that we can decompose the construction of ˆ λjinto two consecutive fusion processes. That is, we first optimize cjk’s by considering the impact of k’s on γk’s. Then, we consider the resulting scaled LLRs, i.e., cjkγk’s, as new statistics to be linearly combined, while being weighted by wjk’s and distorted by νk→j’s, to make the decision variable at node j. More specifically, first, we optimize cjin a hypothetical linear detector with its decision variable defined as ˆ λ jcT jγj+j(59) The coefficients resulting from this optimization scale up the more reliable local LLRs, with respect to the ones built under low SNR regimes, to suppress the effect of LEs. We denote the resulting fusion weights by c∗ j. Then, we use c∗ jwithin the structure of the actual detector to optimize wjto mitigate the impact of MEs. That is, we consider the following linear detector at node j ˆ λ jwT jχj+νj(60) where χjc∗ j◦(γj+j)contains χjk’s for k∈M jwhile χjk =c∗ jk(γk+k). The vector νjcontains νk→j’s with k∈M j. In this structure, the elements of χjk’s are seen as the actual local LLRs that are combined to build the decision variable at node jwhile the combination takes into account the joint degrading effect of MEs and LEs. Based on the material provided in Sec. II-A, the first stage of the proposed optimization is formally stated as c∗ j=argmax cjΔ j(cj),s.t., cj=1 (61) where Δ j(cj)= cT jδj2 cT jΣγj|−1+Σjcj (62) where δjE[γj|xj=1]−E[γj|xj=−1]. The resulting c∗ jis then used to realize the second stage of the proposed
ABDI AND RISTANIEMI: MODELING AND MITIGATING ERRORS IN BELIEF PROPAGATION FOR DISTRIBUTED DETECTION 3293 optimization by solving w∗ j=argmax wjΔ j(wj),s.t., wj=1 (63) where Δ j(wj)= wT jˆ δj2 wT jΣχj|−1+Σνjwj (64) where ˆ δj=c∗ j◦δjand Σχj|−1=cov(χj|xj=−1) = c∗ jc∗T j◦Σγj|−1+Σj.Havingc∗ jand w∗ j, the detection threshold τjis derived as τj=Q−1(α)Var[λ j|xj=−1] + E[λ j|xj=−1] to fix the system false-alarm rate at α. The convergence condition |cj,k|<1 maxn|Nn|−1,∀(j, k)∈ Ecan be realized by a simple normalization of c∗ j,k’s since the objective function in (61) does not change by normalizing its argument. Through the proposed two-stage optimization, we enhance the detection performance at node jby suppressing the joint impact of MEs and LEs with low computational complexity. The statistics required in this optimization are collected from the one-hop neighbors of node j. This makes the proposed method a viable approach in ad-hoc network configurations where major network functionalities are conducted through one-hop links between the network nodes. B. Offline Learning and Adaptation To realize the proposed optimization, we need the mean and covariance of the local erroneous LLRs. In a blind setting where there is no prior information available regarding the radio environment, we have to estimate those parameters based on the detection outcomes. The main challenge here is that the state of xjis required at node jwhile the only information available in practice is the detection outcome ˆxj. Hence, node jhas to estimate the conditional statistics required in (61) and (63) based on ˆxj. The problem with such an adaptation mechanism is that it makes the detection outcome ˆxjdepend on those estimates. This dependence creates an inherent deteriorating loop by feeding the detection errors back into the system structure through erroneous estimates of the required statistics. To overcome this challenge, we propose an extended version of the blind learning-adaptation loop in [5] that accommodates the proposed error-mitigating structure. The pseudo-code of this adaptation is provided in Algorithm 1 where the task of each node is specified in a distributed computing framework. Algorithm 1 operates on a window of stored sensing outcomes and involves a secondary BP that is run much less frequently than the rate at which the distributed detection is performed. The outcomes of this offline BP are used in the estimation of the required unknown statistics. In this adaptation, the desired optimizations are realized iteratively while each node interacts only with its one-hop neighbors. Consequently, Algorithm 1 can be well incorporated in a decentralized network configuration. In the sequel, we propose a blind adaptation structure in which we use κto denote the iteration index. Note that we use las the iteration index in the main BP through which Algorithm 1 Blind Adaptation of Fusion Weights in Erroneous Linear Belief Propagation Input: ˜ γT,¯ γT,τ(0),κmax,η Output: Near-optimal cjand wjfor j=1,...,N 1. Let κ←0and initialize ˆ x(0) by comparing ˜ γTagainst τ(0); 2. while κ≤κmax 3. for node j∈{1,2,...,N} 4. Calculate E[¯γi|ˆx(κ) j]and cov(¯γi,¯γk|ˆx(κ) j)for all i, k ∈ Mj; 5. Solve (61) to find c(κ) jand τ(κ) j; 6. Set c∗ jby an η-test on c(κ) j; 7. end 8. Use c∗ j’s and τ(κ) j’s to run linear ABP on ˜ γTto find ˆ x(κ+1); 9. κ←κ+1; 10. end 11. for node j∈{1,2,...,N} 12. Use c∗ jand ˆ x(κmax)to calculate ˆ δj,Σχj|0and Σνj; 13. Solve (63) to find w∗ j; 14. end 15. Output c∗ jand w∗ jfor j∈1,2,...N; the distributed detection is realized. The offline adaptation updates the fusion weights in the proposed linear BP by processing Tstored samples of ˜ γ. This window of erroneous local likelihoods is denoted by ˜ γTand contains samples of ˜ γ(t)for t=1,2,...,T. Recall that, ˜ γ=γ+where denotes the vector of LEs. The offline detection outcomes at iteration κare denoted by ˆ x(κ)[ˆx(κ) 1,...,ˆx(κ) N]while the resulting fusion weights and detection thresholds are denoted c(κ) jand τ(κ) jrespectively. ˆ x(κ)denotes a window of stored sensing outcomes ˆ x(κ)(t)for t=1,2,...,T. For simplicity, we do not show the time index when dealing with ˜ γT,and ˆ x(κ). Due to errors caused by the wireless links between the sensing nodes, node jdoes not have access to ˜γk(t),k∈N j. Specifically, what node jreceives from node kis ˜γk(t)+νk→j where νk→jdenotes the corresponding link error. Without loss of generality, we attribute MEs to wireless link errors. To alleviate the link errors, before starting the adaptation process node jreceives Lcopies of ˜γk(t)from node kand calculates an average to obtain ¯γk(t)˜γk(t)+¯νk→jwhere ¯νk→jdenotes the average of Lindependent realizations of νk→j. The desired statistics are then calculated by processing ¯γk’s, which approximate ˜γk’s. We use ¯ γTto contain the samples of ¯γk(t)for t=1,2,...,T for k=1,2,...,N. In a realistic detection scenario, the data exchanged between the nodes in the proposed offline adaptation is impaired by both types of errors. Since in the first linear fusion (61) we take into account the impact of LEs only, we need to isolate this optimization from the MEs. To this end, we estimate the desired statistics by using linear ABP. As we saw in Sec. III-C, MEs do not affect the ABP outcomes significantly. Therefore, the resulting offline decision variables are almost cleared of