Particle Filters for the Estimation of a State Space Model Tao Chen, Julian Morris and Elaine Martin Centre for Process Analytics and Control Technology School of Chemical Engineering and Advanced Materials University of Newcastle, Newcastle upon Tyne, NE1 7RU, UK

Abstract In process engineering, on-line state estimation is a key element in state space modelling. However when state/measurement functions are highly non-linear and the posterior probability of the state is non-Gaussian, conventional filters, such as the extended Kalman filter, do not provide satisfactory results. This paper proposes an alternative approach whereby particle filters based on the sequential Monte Carlo method are used for the estimation task. Particle filters are described prior to discussing a number of implementation issues. Furthermore, a Markov chain Monte Carlo method is proposed to enhance particle filters where the estimates of the initial conditions are poor. The effectiveness of particle filters is demonstrated through the state estimation of an exothermic irreversible parallel reaction in a continuous stirred tank reactor. Keywords: Markov chain Monte Carlo, particle filter, sequential Monte Carlo, state space model.

1. Introduction In process engineering, the assured on-line estimation of a dynamic state space model is a key element of model based approaches, such as optimization, performance monitoring and process control. State estimation can be viewed as an optimal filtering problem under a Bayesian framework. If the state equations are linear and the posterior density is Gaussian, the Kalman filter (KF) (Jazwinski, 1970) provides an optimal solution. However, where these assumptions do not hold, there exists no analytical solution and therefore approximations have to be made. One example is the extended Kalman filter (EKF) which assumes a Gaussian posterior density and adopts a firstorder Taylor expansion to provide local approximation within the current state. In practice where the state equations are highly non-linear and the posterior density is nonGaussian, the EKF may give a large estimation error. An alternative algorithm is the approximate grid-based filter which was introduced into process engineering by Terwiesch (1995). The computational cost of the grid-based filter increases exponentially with the state dimension, thus limiting its widespread application. In this paper, particle filters are introduced for dynamic state space estimation. The basic idea behind particle filters is to approximate the posterior probability of the states using a large number of samples (particles) with associated weights. These particles and weights are then updated sequentially along with the state evolution when new

observations become available. A particle filter, namely the Auxiliary Sequential Importance Re-sampling (ASIR) filter (Pitt and Shephard, 1999) is described. When efficiently implemented, the ASIR filter incurs computational costs proportional to the number of particles, thus satisfying the requirements for on-line estimation when conventional computational facilities are available. However, when the initial conditions deviate far from the true value, the probability of the particles approaching the true states can be very small in the early stages. Consequently particle filters can converge slowly. A hybrid solution is to use the EKF to move the particles to the posterior density at each time step (De Freitas et al., 2000). An alternative solution based on the Markov Chain Monte Carlo (MCMC) method is proposed. A Gibbs sampler with an accept/reject step is adopted to generate samples that approximate the posterior probability of the states. As the computational cost of MCMC increases significantly with time, MCMC is only performed for the first few time steps before transferring over to the conventional particle filter. The effectiveness of particle filters is demonstrated through the state space estimation of an exothermic irreversible parallel reaction taking place within a continuous stirred tank reactor (CSTR). For good estimates of the initial conditions, the particle filter is shown to provide significantly lower estimation errors than the EKF. In the case of very poor initial guesses, the proposed MCMC method provides faster convergence.

2. An Overview of Particle Filters A state space model is defined by the following state and measurement functions:

xk = f k ( x k −1 , v k −1 )

(1)

z k = hk ( xk , nk ) where k is the time index and fk is a non-linear function describing the evolution of the state with independent and identically distributed process noise, vk-1. hk is a non-linear function mapping the state space to the measurements with independent and identically distributed noise nk. Let z1:k = (zi, i = 1, …, k) be the measurement sequence and assuming the prior distribution p(x0) is known, the posterior probability can be obtained sequentially by prediction and updated as follows: p ( x k | z1:k −1 ) = p( x k | x k −1 ) p( x k −1 | z1:k −1 )dx k −1 p( z1:k | x k ) p ( x k | x k −1 ) p( x k | z1:k ) = p( z k | z1:k −1 )

(2)

The above equations are the optimal solution from a Bayesian perspective to the nonlinear state estimation problem. One limitation is that the evolution of the posterior density cannot in general be determined analytically. Thus some approximation must be

made. Particle filters approximate the posterior probability by a set of support points i

i

(particles) xk , i = 1,...,N, with associated weights wk :

p( xk | z1:k ) ≈

N

wki δ ( xk − xki )

(3)

i =1

where (.) is an indicator function. In this paper the filtered state is taken as the mean of the posterior density. The weights are decided using importance sampling (Robert and Casella, 1999). An importance density q(xk|z1:k) is identified from which samples are drawn. The weights are then defined as being proportional to the ratio of p(xk|z1:k) to q(xk|z1:k). It has been shown (Arulampalam et al., 2002) that if the importance density is selected appropriately and is only dependent on the current observation, zk, and the past state, xk-1, the weights can be updated as follows: wki ∝ wki −1

p( z k | xki ) p( xki | xki −1 ) q ( x ki | xki −1 , z k )

(4)

Two implementation issues are considered. The first is that of degeneracy, where after some time steps, only one particle has significant weight. Thus considerable computational effort will have been spent updating particles whose contribution to the approximation of p(xk|z1:k) is negligible. Re-sampling can be used to eliminate those particles with small weights thereby focussing on particles with large weights. Resampling generates a new particle set by sampling with replacement from the original set { xk , i = 1,...,N} with Pr( xkj = xki ) = wki . Here j is the particle index after rei

sampling. The parent relationship is denoted, parent(j) = i. The weights are reset to 1/N as the samples are independent and identically distributed and are drawn from a discrete density function. The second issue is how to choose the importance density. A convenient choice is to use the prior, p( xk | xki −1 ) . A particle filter with this importance density and re-sampling step is called a sequential importance re-sampling (SIR) filter (Gordon et al., 1993). However, as the importance density is independent of the current measurement, the state space is explored without knowledge of the observations, which makes the SIR filter sensitive to outliers. Recently the Auxiliary SIR (ASIR) filter (Pitt and Shephard, 1999) was proposed to obtain a more reliable importance density. It is defined as: q( x ki | z k ) ∝ p( z k | µ ki ) p( xk | x ki −1 ) wki −1 where µ ki can be the mean of xk conditional on addition Bayes's rule shows that:

(5)

xki −1 or an associated sample. In

(6)

p( xk | zk ) ∝ p( zk | xk ) p ( xk | xki −1) wki −1 Considering the re-sampling step presented earlier, the particle

xkj is assigned a weight

proportional to the ratio of the right-hand side of equation (6) to equation (5) as:

wkj ∝

p( z k | x kj ) p( z k | µ kparent( j ) )

(7)

The ASIR filter generates particles from the sample at time step k-1 conditional on the current observation, which can be closer to the true state compared with those obtained using the SIR filter. If the noise of state evolution is low, even with relatively high measurement noise, ASIR is less likely to be sensitive to outliers as p( xk | xki −1 ) is well characterized by µ ki .

3. State Space Estimation with Poor Initial Conditions Good initial conditions, specified through the prior distribution, can guarantee rapid convergence of the particle filtering approaches. However, in practice, when the initial conditions deviate far from the true values, the probability of the particles approaching the true states can be very low in the early stages. A hybrid solution has been proposed (De Freitas et al., 2000) to speed up the convergence of particle filters. This approach first generates particles as for conventional particle filters. It then tries to move particles closer to the posterior distribution through an EKF step. Although this strategy was successfully applied for the training of neural networks, it faces the same problems as the EKF, i.e. it can work poorly when the assumptions for the EKF do not hold. In this paper an alternative solution based on the Markov Chain Monte Carlo (MCMC) method is proposed. For an introduction to MCMC methods, see, for example, Robert and Casella (1999). In each time step, k, a state sequence x0:k = {xi, I = 0:k} is maintained. The objective is to approximate p(x0:k|z1:k) using MCMC. First an initial state x0 is sampled according to a proposed density, which can be Gaussian and where the mean and covariance are computed from the Monte Carlo samples of the last time step. Subsequent state vectors are then sampled through the state function step by step. The target density used in the accept/reject step is the non-normalized posterior density: k

p( x0:k | z1:k ) ∝ p( x0 ) ∏ p( z i | xi )

(8)

i =1

As the computational cost of MCMC increases with time, MCMC is performed during the first few time steps, before switching over to the conventional particle filter. Experiments have shown that an MCMC running for only 10 steps can significantly improve state estimation performance whilst incurring reasonable computational load.

4. Simulation Results The performance of particle filters is demonstrated through a simulated exothermic irreversible parallel reaction taking place in a continuous stirred tank reactor (CSTR). This example has been well studied in the literature with respect to state space estimation, (e.g. Valluri and Soroush, 1996 and references therein). There are two states in this system: CA (kmol m-3) is the concentration of the reactant, and T (K) is the reactor temperature. In this study it is assumed that only T can be measured on-line with Gaussian noise. Thus the objective of the state estimation task is to infer CA and T sequentially given contaminated observations of T. The CSTR simulation (Valluri and Soroush, 1996) can exhibit multiple steady states. For example, when the heat input rate q under steady state is qss = -1.030 kJ s-1, there are three steady-state operating points, as shown in Table 1. Of these steady-state operating points, SS2 is unstable. In the simulation, two initial conditions, Table 1, are used to study filter performance under different steady states. The measurement signal-to-noise ratio was 20 db. One hundred simulations were realized to test the robustness of the particle filters, each running for 2000 secs with a sampling rate of 5 secs. In the first experiment, it is assumed that the true initial conditions are known. The root mean square error (RMSE) is used to evaluate the performance of the filters. 95% confidence bounds were calculated for the RMSE based on one hundred realizations of the simulated process. Table 2 shows that the ASIR filter with only 50 particles results in a significantly lower estimation error than the EKF. The ASIR filter with an increased number of particles can bring further, although marginal improvements. The algorithms were implemented in C++ and run on a 3.06GHz Pentium-4 processor under a Windows XP operating system. The computing time of the ASIR filter is acceptable. Table 1: Steady states for the CSTR with corresponding initial conditions. Steady States CA T Initial Conditions CA SS1 8.0 310.0 IC1 6.3 SS2 3.3 370.0 SS3 1.3 400.0 IC3 0.3

T 300.0 410.0

Table 2: State estimation error (RMSE) with known initial condition. Steady State 1 Steady State 3 Filters CA T CA T EKF 0.134 ± 0.016 0.905 ± 0.093 0.164 ± 0.014 1.388 ± 0.132 ASIR(50) 0.040 ± 0.014 0.310 ± 0.088 0.031 ± 0.009 0.711 ± 0.153 ASIR(500) 0.023 ± 0.006 0.301 ± 0.080 0.027 ± 0.008 0.699 ± 0.143

Time (s) 0.011 0.251 2.853

Table 3: State estimation error (RMSE) with poor initial condition. Steady State 1 Steady State 3 Filters CA T CA T EKF 0.259 ± 0.011 1.416 ± 0.106 0.235 ± 0.013 1.948 ± 0.134 ASIR(500) 0.206 ± 0.215 1.861 ± 0.997 0.179 ± 0.188 2.104 ± 0.729 HASIR(500) 0.156 ± 0.064 1.372 ± 0.100 0.083 ± 0.037 1.704 ± 0.698 MCMC 0.151 ± 0.020 0.369 ± 0.103 0.078 ± 0.022 0.808 ± 0.188

Time (s) 0.012 2.781 7.934 0.871

When the initial conditions deviate significantly from the true values, the conventional ASIR filter converges slowly, leading to an overall high estimation error. Table 3 shows the results with poor initial conditions: IC1 = (5.8, 330) and IC3 = (0.6, 380). In this case, the ASIR filter, even with 500 particles, cannot outperform the EKF. However with the inclusion of a built-in EKF component, the hybrid ASIR (HASIR) filter can achieve improved estimation of concentration CA and a marginally better T. Overall the ASIR filter with the MCMC step provides good estimates of both states with acceptable computational cost. It is noted that the accurate recovery of T from noisy measurement is also an important topic in data rectification (Singhal and Seborg, 2000).

5. Conclusions This paper has introduced particle filtering for the estimation of a state space model. Particle filters are appropriate for handling general state space models and do not rely on the assumptions of linearity or a Gaussian posterior density. A particle filter algorithm is first described for the state estimation task. For poor initial conditions, a Markov chain Monte Carlo method was applied to enhance the estimation accuracy of the particle filters. The proposed method was then evaluated on a simulated CSTR, and promising results were obtained. Particle filters can be applied to existing techniques requiring the on-line estimation of state space models, such as model based quality monitoring, optimization, predictive control and data rectification. An extension to a large-scale polymerization process with uncertain kinetic parameters is on-going.

Acknowledgements T. Chen would like to acknowledge the financial support from the EPSRC and the UK ORS Award for his PhD study.

References Arulampalam, M., Maskell, S., Gordon, N. and Clapp, T., 2002, A tutorial on particle filters for on-line non-linear/non-Gaussian Bayesian tracking, IEEE Trans. Signal Processing, 50, 174. De Freitas, J.F.G., Niranjan, M., Gee, A.H. and Doucet, A., 2000, Sequential Monte Carlo methods to train neural network models, Neural Computation, 12, 955. Gordon, N., Salmond, D. and Smith, A.F.M., 1993, Novel approach to non-linear and non-Gaussian Bayesian state estimation, Proc. IEE, F., 140, 107. Jazwinski, A., 1970, Stochastic Processes and Filtering Theory, Academic, New York. Pitt, M. and Shephard, N., 1999, Filtering via simulation: auxiliary particle filters, Journal of American Statistical Association, 94, 590. Robert, C. and Casella, G., 1999, Monte Carlo statistical methods, Springer, New York. Singhal, A. and Seborg, D., 2000, Dynamic data rectification using the expectation maximization algorithm, AIChE, 46(8), 1556. Terwiesch, P. and Agarwal, M., 1995, A discretized non-linear state estimator for batch processes, Computers and Chemical Engineering, 19, 155. Valluri, S. and Soroush, M., 1996, Non-linear state estimation in the presence of multiple steady states, Industrial and Engineering Chemistry Research, 35, 2645.

Particle Filters for the Estimation of a State Space Model

monitoring and process control. State estimation can be ..... Gaussian noise. Thus the objective of the state estimation task is to infer CA and T sequentially given ...

46KB Sizes 0 Downloads 182 Views

Recommend Documents

Rao-Blackwellized Particle Filters for Recognizing ... - CiteSeerX
2University of Washington, Dept. of Electrical Engineering, Seattle, WA. 1 Introduction ..... maximum likelihood training based on the labeled data.

Phase estimation using a state-space approach based ...
In this paper, we propose an elegant spatial fringe analysis method for phase estimation. The method is presented in the context of digital holographic interferometry (DHI), which is a prominent optical technique for analyzing the deformation of a di

Object Tracking using Particle Filters
happens between these information updates. The extended Kalman filter (EKF) can approximate non-linear motion by approximating linear motion at each time step. The Condensation filter is a form of the EKF. It is used in the field of computer vision t

Particle filters for dynamic data rectification and process ...
... model of this process can be described as follows (McAvoy, Hsu & Lowenthal,. 1972):. V. FF. V. CF dt d ..... A Tutorial on Particle Filters for On-line. Non-linear/Non-gaussian ... Wan, E. A., van der Merwe, R. (2000). The. Unscented Kalman ...

INTERACTING PARTICLE-BASED MODEL FOR ...
Our starting point for addressing properties of missing data is statistical and simulation model of missing data. The model takes into account not only patterns and frequencies of missing data in each stream, but also the mutual cross- correlations b

An Improved Particle Swarm Optimization for Prediction Model of ...
An Improved Particle Swarm Optimization for Prediction Model of. Macromolecular Structure. Fuli RONG, Yang YI,Yang HU. Information Science School ...

Estimation of Prediction Intervals for the Model Outputs ...
Abstract− A new method for estimating prediction intervals for a model output using machine learning is presented. In it, first the prediction intervals for in-.

New density estimation methods for charged particle beams ... - NICADD
8 Jul 2011 - where n is an integer. One of the ways to quantify noise in a PIC simulation is to define a .... linear operation on data sets with size of integer power of 2 in each dimension, yielding a transformed data set of the ...... of about 2880

New density estimation methods for charged particle ...
Jul 8, 2011 - analyze the sources and profiles of the intrinsic numerical noise, ... We devise two alternative estimation methods for charged particle distribution which represent ... measurements of CSR-induced energy loss and transverse.

the standard model of particle physics pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying.

Identification and Estimation of a Search Model: A ...
May 12, 2017 - Mateusz My´sliwski ... build on the setting proposed in MacMinn (1980) where firms have independent ... We build on his insight that makes the.

The Hidden Information State model: A practical framework for ...
Apr 16, 2009 - hence the distribution of grid points in belief space is very important. ..... other application-dependent data or code in a HIS dialogue manager.

A Hierarchical Model for Value Estimation in Sponsored ...
Also, our hierarchical model achieves the best fit for utilities that are close to .... free equilibrium, while Varian [22] showed how it could be applied to derive bounds on ...... the 18th International World Wide Web Conference, pages 511–520 ..

The Hidden Information State model: A practical framework for ...
Apr 16, 2009 - POMDP-based spoken dialogue management ... HIS system for the tourist information domain is evaluated and compared with ..... Solid arrows denote conditional dependencies, open circles denote ... For example, the utterance ''I want an

The Hidden Information State model: A practical framework for ...
Apr 16, 2009 - called the Hidden Information State model which does scale and which can be used to build practical systems. A prototype .... The key advantage of the. POMDP formalism is that ... reviews the theory of POMDP-based dialogue management i

Computing Stable Skeletons with Particle Filters
including visual tracking, speech recognition, mobile robot localization, robot map building ..... There are two important differences in comparison to the standard .... filter can deal with the condition that the path between two endpoints are not.

Semi-supervised learning of the hidden vector state model for ...
capture hierarchical structure but which can be ... sibly exhibit the similar syntactic structures which ..... on protein pairs to gauge the relatedness of the abstracts ...

Dynamic Data Rectification Using Particle Filters
... it is equal to zero. Therefore the key step is to generate random samples from (. )k k p .... the conventional EKF are shown only for illustration, as it is not specifically designed for detecting and removing ..... A Tutorial on Particle Filters

Dynamic Data Rectification Using Particle Filters
system states, and thus provide the basis for rectifying the process measurements. ... The appropriateness of particle filters for dynamic data rectification ... is limited by the applicability of the EKF, which has been shown, in a number of ...

Semi-supervised learning of the hidden vector state model for ...
trained automatically from only lightly annotated data. To train the HVS model, an abstract annotation needs to be provided for each sentence. For exam- ple, for the ...... USA, 2005. [14] Xu L, Schuurmans D. Unsupervised and semi-supervised multi-cl

Hydrodynamic model for particle size segregation in ...
materials. We give analytical solutions for the rise velocity of a large intruder particle immersed in a medium .... comparisons with previous experimental data. 2.