Kalman Filtering, Factor Graphs and Electrical Networks Pascal O. Vontobel, Daniel Lippuner, and Hans-Andrea Loeliger ISI-ITET, ETH Zurich, CH-8092 Zurich, Switzerland. Abstract Factor graphs are graphical models with origins in coding theory. It is well known that Kalman filtering is an instance of the generic sum(mary)-product algorithm on the corresponding factor graph. In this paper, a one-to-one correspondence between such factor graphs and a class of electrical networks is presented. The electrical network “computes” correct Bayesian estimates even for factor graphs with cycles.

Extended Summary Background Factor graphs [1] are a unifying framework for a wide variety of system models in coding, signal processing, and artificial intelligence. Many important algorithms in these fields are instances of the generic sum(mary)-product algorithm, which works by message passing in the factor graph. One such instance is Kalman filtering and smoothing; for the scalar case, this was shown in [1], the vector case was discussed in [2]. In the present paper, as in [2], we will use Forney-style factor graphs (FFGs) [3], a variation of factor graphs (in [3] called “normal graphs”) with a number of attractive properties. Such a graph expresses the factorization of a function of several variables. E.g., let X, Y , and Z be random variables that form a Markov chain. Then their joint probability density pXY Z (x, y, z) can be written as pXY Z (x, y, z) = pX (x) pY |X (y|x) pZ|Y (z|y).

(1)

This factorization is expressed by the graph of Fig. 1. The edges in the graph correspond to the variables in (1), the nodes in the graph correspond to the factors in (1), and an edge is connected to some node if and only if the variable corresponding to the edge is an argument in the factor corresponding to the node. One of the attractive properties of Forney-style factor graphs is that they subsume block diagrams as in Figures 2 and 3. These figures illustrate the classical linear state space model X[k] = AX[k − 1] + BU [k]

(2)

Y [k] = CX[k] + W [k]

(3)

where for k ∈ Z, U [k], W [k], X[k], and Y [k] are real vectors and where A, B, and C are matrices of appropriate dimensions. For the sake of exposition we will, in this paper, 1

focus on the case where all these variables and matrices are scalars. The nodes in Figures 2 and 3 are then defined to represent factors as shown in Table 1 (left column). In Kalman filtering, both U [.] and W [.] are usually assumed to be white Gaussian (“noise”) processes; the corresponding nodes in these figures are then of the type shown in the top row of Table 1. The overall function (the factorization of) which is expressed by Figures 2 and 3 is the joint probability density of all involved variables. If the variables Y [k] are observed, say Y [k] = yk , the corresponding branches are “terminated” by nodes corresponding to factors δ(y[k] − yk ) (the dashed boxes in Fig. 2); such factors may be viewed as degenerate cases of Gaussian distributions (top row of Table 1) with variance zero. The graph then represents (the factorization of) the joint a posteriori density of all involved variables. As described in [1] and [2], Kalman filtering may be viewed as passing messages along the edges of these graphs; in general, the messages consist of mean vectors and covariance matrices (or inverses of covariance matrices) and are computed according to the rules of the generic sum-product algorithm. In its most narrow sense, Kalman filtering is only the forward sum-product recursion through the graph of Fig. 2 and yields the a posteriori probability distribution of the state X[k] given the observation sequence Y [.] up to time k. By computing also the backwards messages, the a posteriori probability of all quantities given the whole observation sequence Y [.] may be obtained. More generally, Kalman filtering amounts to the sum-product algorithm on any FFG (or part of an FFG) that consists of (the vector/matrix versions of) the linear building blocks listed in Table 1 (left column). As pointed out in [2], Kalman filtering in this sense is equivalent to a general least-squares algorithm. New Results Interestingly, the results of Kalman filtering (in its widest sense as defined above) can also be obtained by translating the state space model into an electrical network according to the rules of Table 1. These networks consist of resistors, voltage sources, and transformers. (The latter are defined by the equations U2 = aU1 and I2 = I1 /a, where Ui and Ii are the voltage accross, and the current into, terminal pair i, i = 1, 2.) As shown in Table 1, each edge/variable of the factor graph corresponds to a pair of nodes in the electrical network. Theorem. The voltages between such node pairs are the Bayesian estimates (i.e., the means of the a posteriori marginal distributions) of the corresponding random variables. The equivalence of (traditional) Kalman filtering with an electrical network as in Table 1 was recognized already by Carter [4]. However, the above theorem holds also if the factor graph has cycles, which goes beyond [4] (and appears to be related to the convergence results of [6] and [7]). In the electrical network, message passing according to the sum-product algorithm (and thus classical Kalman filtering) can be interpreted as follows. Each message represents a 2

Gaussian distribution as in the top row of Table 1, and can thus be represented by a voltage source (corresponding to the mean) in series with a resistor (corresponding to the variance). As illustrated in Table 2, the computation of messages out of the other node types in Table 1 then amounts to connecting the incoming messages/circuits to the node circuit and reducing the resulting circuit to its Th´evenin equivalent circuit (i.e., a voltage source in series with a resistor). We conclude with the following remarks: • The correspondence given in Table 1 can be extended to the vector case. • There is a dual version of the correspondence of Table 1 where the voltages and the currents are interchanged, as are series and parallel connections of subcircuits. • The representation of Kalman filtering (and smoothing) as an electrical network allows an easy transition from discrete-time Kalman filtering to continuous-time Kalman filtering. • A generalization beyond Kalman filtering / least squares was recently discovered by the first author [8]: if p(x, y, . . .) is any joint probability density function such that − log p(x, y, . . .) is convex, then a factor graph of p can be translated into an electrical network that finds the global maximum of p. The network consists of voltage sources (or current sources) and nonlinear resistors. Circuit simplifications similar to those in Table 2 correspond to the message passing rules of the max-product version (rather than the sum-product version) of generic sum(mary)-product algorithm. Moreover, if the voltages are solutions to the primal maximization problem, then the currents are the solutions to the dual problem.

Acknowledgement The authors thank S. Mitter for pointing out the book by Dennis [5], which inspired this work.

3

X

Y pZ|Y

pY |X

pX

Z

Figure 1: Forney-style factor graph (FFG) of a Markov chain.

U [k + 1] X[k − 1]X[k] X[k + 1] ... ... Z[k] Z[k + 1] U [k]

?

?

?

?

Y [k]

Y [k + 1]

?

?

Figure 2: State space model.

U [k] Z[k]

?

B X[k − 1] -

A

? -+

-=

X[k] -

W [k] ? -+

?

C

Y [k] ?

Z[k] ? Figure 3: Details of linear state space model.

4

σ2

b

X 0

m ?m γe− X

(x−m)2 2σ 2

=

1

Z

b

+ Y

r

Z b?

Y

Z-

b

X a

b

X? b

6

Z ? b b - b

Y

δ(x + y − z)

3

b

b - b

δ(x − y) δ(x − z)

2

r

X? b

Y

X -

X ? b

Y-

b

X? b

1 : a       

b

Y b?

δ(y − ax)

Table 1: Correspondence between the nodes in the factor graph (left) and the components of the electrical network (right). All variables are scalars.

5

X 1

-

= Y

2

X -

mZ = σZ2 =

6

+ Y

Z -

Z-

2 +m /σ 2 mX /σX Y Y 2 +1/σ 2 1/σX Y

1 2 +1/σ 2 1/σX Y

mZ = mX + mY 2 σZ2 = σX + σY2

6 6

r 2 σX

mX

σY2 j

b



j

mY r

b

j

b

j b

b



j

σZ2 mZ

mY σY2

2 σX

mX

b

σZ2 mZ

b

j b

1:a b 3

X a -

Y-

mY = amX

2 σX

2 σY2 = a2 σX

mX

j

       

b

⇒ b

σY2 mY

j b

Table 2: Computation of messages (left and middle) with circuit interpretation (right).

6

References [1] F. R. Kschischang, B. J. Frey, and H.-A. Loeliger, “Factor graphs and the sum-product algorithm,” IEEE Trans. Inform. Theory, vol. IT–47, no. 2, pp. 498–519, 2001. [2] H.-A. Loeliger, “Least squares and Kalman filtering on Forney graphs,” to appear in Codes, Graphs, and Systems, festschrift in honour of G. D. Forney, Kluwer, 2001. [3] G. D. Forney, Jr., “Codes on graphs: normal realizations,” IEEE Trans. Inform. Theory, vol. IT47, pp. 520–548, Feb. 2001. [4] D. W. Carter, “A circuit theory of the Kalman filter,” in Proc. 32nd Conf. on Decision and Control (San Antonio, TX, USA), pp. 1224–1226, Dec. 1993. [5] J. B. Dennis, Mathematical Programming and Electrical Networks. MIT Press, Cambridge, Mass., 1959. [6] Y. Weiss and W. T. Freeman, “On the optimality of solutions of the max-product beliefpropagation algorithm in arbitrary graphs,” IEEE Trans. Inform. Theory, vol. 47, pp. 736–744, Feb. 2001. [7] P. Rusmevichientong and B. Van Roy, “An analysis of belief propagation on the turbo decoding graph with Gaussian densities,” IEEE Trans. Inform. Theory, vol. 47, pp. 745–765, Feb. 2001. [8] P. O. Vontobel, Kalman Filters, Factor Graphs, and Electrical Networks. Internal report INT/200202, ISI-ITET, ETH Zurich, April 2002.

7

Kalman Filtering, Factor Graphs and Electrical Networks

2 and 3 are then defined to represent factors as shown in Table 1 (left column). In Kalman filtering, both ... The representation of Kalman filtering (and smoothing) as an electrical network al- lows an easy transition .... Internal report. INT/200202 ...

116KB Sizes 1 Downloads 202 Views

Recommend Documents

Kalman Filters, Factor Graphs, and Electrical Networks
the electrical network which solves the Kalman filter problem. ...... where F1, F2, F3, F4, are the sets of indices of the one-degree function nodes, of summation-.

[PDF] Fundamentals of Kalman Filtering
addition, both FORTRAN and MATLAB* source code are available electronically for all ... Deep Learning (Adaptive Computation and Machine Learning Series).

[PDF] Download Fundamentals of Kalman Filtering: A ...
... Kalman Filtering Progress In a practical approach progress in astronautics and store download and read ... Online PDF Fundamentals of Kalman Filtering: A Practical Approach (Progress in Astronautics .... building Kalman filters and shows.

[PDF] Download Fundamentals of Kalman Filtering ...
In 2008 the National Academy of Engineering awarded Rudolf Kalman the Charles Stark Draper ... concepts and explore issues beyond the scope of the text.

[PDF] Download Fundamentals of Kalman Filtering ...
... students are major users of the facilities and services of many research laboratories and centers .... have unique solutions, the authors illustrate several different filtering approaches. Readers will gain experience in software and performance.

[PDF] Download Fundamentals of Kalman Filtering
... and usually do not have unique solutions, the authors illustrate several different filtering approaches. Readers will gain experience in software and performance.

PDF Download Fundamentals of Kalman Filtering
... Bulletin s ExploreCourses web site International Journal of Engineering Research and Applications IJERA is an open access online peer reviewed international journal that publishes research Retrouvez toutes les .... Prize -- for the development an

[PDF] Download Fundamentals of Kalman Filtering: A ...
Fundamentals Of Kalman Filtering Download Book Progress in Aeronautics and Astronautics Paul Zarchan of Kalman Filtering a Practical Approach å·¥å¦ .... in Astronautics and Aeronautics) free download pdf, Fundamentals of Kalman Filtering: A Prac

Realtime Tempo Tracking using Kalman Filtering
Mar 30, 2006 - tempo is as the time interval between beats, referred to as the inter-beat interval or period. With the ... data and raw audio signal for the use of tempo tracking. We will then ...... Meter as mechanism: A neural network model.

Data Parallelism for Belief Propagation in Factor Graphs
Therefore, parallel techniques are ... data parallel algorithms for image processing with a focus .... graphs is known as an embarrassingly parallel algorithm.

Fully Distributed SLAM using Constrained Factor Graphs
Quadratic Programming (SQP) using in the context of square root SAM. ..... In IEEE Intl. Conf. on Robotics and Automation. (ICRA), pages 3415–3422, May 2009.

Download Random Graphs and Complex Networks: Volume 1 ...
Networks: Volume 1 (Cambridge Series in. Statistical and ... Mathematics) · All of Statistics: A Concise Course in Statistical Inference (Springer Texts in Statistics)

The Kalman Filter
The joint density of x is f(x) = f(x1,x2) .... The manipulation above is for change of variables in the density function, it will be ... Rewrite the joint distribution f(x1,x2).

Rule Based Data Filtering In Social Networks Using ...
Abstract— In today's online world there is a need to understand a premium way out to get better the data filtering method in social networks. By implementing the ...

Information filtering in complex weighted networks
Apr 1, 2011 - Filippo Radicchi,1 José J. Ramasco,2,3 and Santo Fortunato3 ... meaningful visualization of the network. Also ... stage algorithm proposed by Slater [25,26] and a method by ..... In Appendix B we use an alternative measure.

Are biological networks scale-free graphs?
The degree distribution for a scale-free graph can be de- scribed by a power-law, .... options are: using the s-metric or an index of between- ness centrality.

Neural Graph Learning: Training Neural Networks Using Graphs
many problems in computer vision, natural language processing or social networks, in which getting labeled ... inputs and on many different neural network architectures (see section 4). The paper is organized as .... Depending on the type of the grap

Rule Based Data Filtering In Social Networks Using Genetic Approach ...
A main part of social network content is constituted by ... The main part of this paper is the system provided that customizable content based message filtering for OSNs, Based on ML .... “Sarah Palin,” and “John McCain,” then both documents