WATER LEVEL TRACKING WITH CONDENSATION ALGORITHM

Similar documents
Two Popular Bayesian Estimators: Particle and Kalman Filters. McGill COMP 765 Sept 14 th, 2017

Georey E. Hinton. University oftoronto. Technical Report CRG-TR February 22, Abstract

Notes on Kalman Filtering

State-Space Models. Initialization, Estimation and Smoothing of the Kalman Filter

Robust estimation based on the first- and third-moment restrictions of the power transformation model

References are appeared in the last slide. Last update: (1393/08/19)

Recursive Least-Squares Fixed-Interval Smoother Using Covariance Information based on Innovation Approach in Linear Continuous Stochastic Systems

Estimation of Poses with Particle Filters

Vehicle Arrival Models : Headway

Modal identification of structures from roving input data by means of maximum likelihood estimation of the state space model

STATE-SPACE MODELLING. A mass balance across the tank gives:

Air Traffic Forecast Empirical Research Based on the MCMC Method

Testing for a Single Factor Model in the Multivariate State Space Framework

Západočeská Univerzita v Plzni, Czech Republic and Groupe ESIEE Paris, France

Speaker Adaptation Techniques For Continuous Speech Using Medium and Small Adaptation Data Sets. Constantinos Boulis

Block Diagram of a DCS in 411

Probabilistic Robotics SLAM

Tracking. Many slides adapted from Kristen Grauman, Deva Ramanan

Recursive Estimation and Identification of Time-Varying Long- Term Fading Channels

14 Autoregressive Moving Average Models

Probabilistic Robotics

An recursive analytical technique to estimate time dependent physical parameters in the presence of noise processes

A Specification Test for Linear Dynamic Stochastic General Equilibrium Models

Introduction to Mobile Robotics

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles

Linear Gaussian State Space Models

Tracking. Many slides adapted from Kristen Grauman, Deva Ramanan

Institute for Mathematical Methods in Economics. University of Technology Vienna. Singapore, May Manfred Deistler

Kriging Models Predicting Atrazine Concentrations in Surface Water Draining Agricultural Watersheds

Zürich. ETH Master Course: L Autonomous Mobile Robots Localization II

Tracking. Announcements

L07. KALMAN FILTERING FOR NON-LINEAR SYSTEMS. NA568 Mobile Robotics: Methods & Algorithms

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Probabilistic Robotics SLAM

Augmented Reality II - Kalman Filters - Gudrun Klinker May 25, 2004

PENALIZED LEAST SQUARES AND PENALIZED LIKELIHOOD

An EM based training algorithm for recurrent neural networks

Using the Kalman filter Extended Kalman filter

Rao-Blackwellized Auxiliary Particle Filters for Mixed Linear/Nonlinear Gaussian models

Sequential Importance Resampling (SIR) Particle Filter

Excel-Based Solution Method For The Optimal Policy Of The Hadley And Whittin s Exact Model With Arma Demand

Pade and Laguerre Approximations Applied. to the Active Queue Management Model. of Internet Protocol

Anno accademico 2006/2007. Davide Migliore

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB

EKF SLAM vs. FastSLAM A Comparison

Introduction D P. r = constant discount rate, g = Gordon Model (1962): constant dividend growth rate.

Online Convex Optimization Example And Follow-The-Leader

Robert Kollmann. 6 September 2017

How to Deal with Structural Breaks in Practical Cointegration Analysis

Final Spring 2007

hen found from Bayes rule. Specically, he prior disribuion is given by p( ) = N( ; ^ ; r ) (.3) where r is he prior variance (we add on he random drif

Tom Heskes and Onno Zoeter. Presented by Mark Buller

Estimation of Kinetic Friction Coefficient for Sliding Rigid Block Nonstructural Components

Temporal probability models

CONTROL SYSTEMS, ROBOTICS AND AUTOMATION Vol. XI Control of Stochastic Systems - P.R. Kumar

Financial Econometrics Kalman Filter: some applications to Finance University of Evry - Master 2

Lecture 3: Exponential Smoothing

Robust Object Tracking under Appearance Change Conditions

Keywords: thermal stress; thermal fatigue; inverse analysis; heat conduction; regularization

Bias in Conditional and Unconditional Fixed Effects Logit Estimation: a Correction * Tom Coupé

A Robust Exponentially Weighted Moving Average Control Chart for the Process Mean

CHAPTER 2 Signals And Spectra

Shiva Akhtarian MSc Student, Department of Computer Engineering and Information Technology, Payame Noor University, Iran

Ensamble methods: Bagging and Boosting

Nature Neuroscience: doi: /nn Supplementary Figure 1. Spike-count autocorrelations in time.

Mathematical Theory and Modeling ISSN (Paper) ISSN (Online) Vol 3, No.3, 2013

7630 Autonomous Robotics Probabilistic Localisation

A Bayesian Approach to Spectral Analysis

Sliding Mode Extremum Seeking Control for Linear Quadratic Dynamic Game

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Article from. Predictive Analytics and Futurism. July 2016 Issue 13

Particle Swarm Optimization Combining Diversification and Intensification for Nonlinear Integer Programming Problems

Particle Swarm Optimization

Non-parametric techniques. Instance Based Learning. NN Decision Boundaries. Nearest Neighbor Algorithm. Distance metric important

0.1 MAXIMUM LIKELIHOOD ESTIMATION EXPLAINED

In this chapter the model of free motion under gravity is extended to objects projected at an angle. When you have completed it, you should

m = 41 members n = 27 (nonfounders), f = 14 (founders) 8 markers from chromosome 19

מקורות לחומר בשיעור ספר הלימוד: Forsyth & Ponce מאמרים שונים חומר באינטרנט! פרק פרק 18

Speech and Language Processing

Performance comparison of EKF and particle filtering methods for maneuvering targets

Temporal probability models. Chapter 15, Sections 1 5 1

Ensamble methods: Boosting

Object tracking: Using HMMs to estimate the geographical location of fish

An introduction to the theory of SDDP algorithm

Online Appendix to Solution Methods for Models with Rare Disasters

Application of a Stochastic-Fuzzy Approach to Modeling Optimal Discrete Time Dynamical Systems by Using Large Scale Data Processing

SEIF, EnKF, EKF SLAM. Pieter Abbeel UC Berkeley EECS

Cash Flow Valuation Mode Lin Discrete Time

Most Probable Phase Portraits of Stochastic Differential Equations and Its Numerical Simulation

10. State Space Methods

Reliability of Technical Systems

28. Narrowband Noise Representation

Let us start with a two dimensional case. We consider a vector ( x,

FAULT PROGNOSTICS AND RELIABILITY ESTIMATION OF DC MOTOR USING TIME SERIES ANALYSIS BASED ON DEGRADATION DATA

Monte Carlo Filter Particle Filter

III. Module 3. Empirical and Theoretical Techniques

Content-Based Shape Retrieval Using Different Shape Descriptors: A Comparative Study Dengsheng Zhang and Guojun Lu

The Optimal Stopping Time for Selling an Asset When It Is Uncertain Whether the Price Process Is Increasing or Decreasing When the Horizon Is Infinite

( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is

EXPLICIT TIME INTEGRATORS FOR NONLINEAR DYNAMICS DERIVED FROM THE MIDPOINT RULE

Transcription:

WATER LEVEL TRACKING WITH CONDENSATION ALGORITHM Shinsuke KOBAYASHI, Shogo MURAMATSU, Hisakazu KIKUCHI, Masahiro IWAHASHI Dep. of Elecrical and Elecronic Eng., Niigaa Universiy, 8050 2-no-cho Igarashi, Niigaa, 950-2181 Japan Dep. of Elecrical Eng., Nagaoka Universiy of Technology, 1603-1 Kamiomioka, Nagaoka, Niigaa, 940-2188 Japan E-mail: shinsuke@elecom0.eng.niigaa-u.ac.jp ABSTRACT In his repor, we propose a racking mehod ha racks a waer level as a line from a video sequence. This mehod arges he use in a river surveillance and alarm sysem. In our proposed mehod, a line racking problem is ransformed o a poin racking problem by using Hough ransformaion and he poin is racked wih Condensaion algorihm. Our proposed mehod is examined by comparing wih he Kalman filering approach. 1. INTRODUCTION In his repor, we propose a river surface racking mehod ha arges he use in a river surveillance and alarm sysem. As growing he ineres of disaser prevenion, i is desired o apply he informaion echnology o problems in his area. River waer level measuremen is very imporan for river overflow predicion. Generally, i is performed wih waer level elemeers [1, 2]. To place he waer level elemeers is, however, expensive and here are some difficulies in is legal placemen in Japan. Thus, here is an increasing demand for measuring he waer level by reasonable video cameras and by analyzing he images capured from hose cameras. Therefore, in his repor, we propose a mehod ha racks river surface line in a video sequence from a surveillance camera. Our proposed mehod adops he Hough ransformaion o deec dominan lines [5]. Nex hese lines are inpu ino he Condensaion (condiional densiy propagaion algorihm, which is a saisical racking mehod and yields a esimaed line [6]. By using he Hough ransformaion, a line racking problem is reduced o a poin racking problem on 2-dimensional plane. Since he Condensaion algorihm has sufficien serviliy o dynamics and robusness o errors, i can provide seady racking. Alhough he Condensaion algorihm requires relaively high compuaional cos, our proposed mehod reduces he compuaional cos by holding he dimension of sae vecor o wo and by droping he dimension of observaion reducing o 1-dimensional. Our proposed mehod enables us o esimae he waer level from a surveillance video sequence. In nex secion, we inroduce o he Hough ransformaion. In Secion 3, we explan he overview of he Condensaion algorihm. We propose a line racking mehod in Secion 4. The significance of our proposed mehod is examined by comparing wih he Kalman filering approach in Secion 5 and he conclusions follow. 2. HOUGH TRANSFORMATION The Hough ransformaion of lines is used in our proposed mehod a he and of preprocess. The Hough ransformaion is a mehod ha ransforms a normal image expressed in recangular coordinaes o one expressed in polar coordinaes and deec dominan lines from he polar-coordinae-image [5]. A line on he x-y plane is wrien by y = ax + b. By using θ and ρ illusraed in Fig. 1(a, he funcion of a line is expressed as ρ = xcosθ + ysinθ. (1 The Hough ransformaion is performed by his equaion. A line on x-y plane is ransformed o a poin on θ-ρ plane and a poin on x-y plane is ransformed o a sin curve on θ-ρ plane by equaion (1. Ranges of θ and ρ are 0 θ < π and w < ρ < w 2 + h 2 respecively, where w is widh and h is heigh of he inpu image. As shown in Fig. 1, when wo poins p and q on x-y plane are given, we can obain each curves on θ-ρ plane by using Eq. (1 and we can find he cross poin l. The coordinaes (θ l, ρ l of he cross poin l wih Eq. (1 give us he funcion ρ l = xcosθ l + ysinθ l. This is he funcion of he line passing wo poins p and q. By using he Hough ransformaion, i seem ha a line on x-y plane can be expressed as a poin on θ-ρ plane. Fig. 1. Hough ransformaion 750

3. CONDENSATION ALGORITHM p( x Z poserior probabiliy The Condensaion algorihm gives us an framework in order o obain he poserior disribusion p (x Z of random variable x from a se Z = {z 1, z 2,..., z which is a se of daas observed unil he ime [6, 7]. 3.1. Assumpions for he Condensaion Algorihm The Condensaion algorihm assumes he followings. x The dynamics of he random variable x is Markov chain. Namely, p (x X 1 = p (x x 1, (2 where X = {x 1, x 2,, x. weighed samples Fig. 2. Inernal represenaion of he Condensaion algorihm The observaion daa z depends only on he random variable x and is independen for each ime. Tha is p (Z X = p (z i x i. (3 i=1 Under hese wo assumpion, he propagaion of probabiliy densiy is derived. 0100 0100 01 01 selecion 3.2. Propagaion of Probabiliy Densiy From Bayes s rule p (x Z = k p (z x p (x Z 1, (4 0100 01 0100 01 01 0 111 01 0 111 predicion measuremen where p (x Z 1 = p (x x 1 p (x 1 Z 1 dx 1, (5 and k is a normalisaion consan ha does no depend on x. By Eq. (5, he prior p (x Z 1 is evaluaed from he poserior p (x 1 Z 1 which is calculaed a previous ime sep. By he equaion (4, he new poserior p (x Z is decided from he prior p (x Z 1 and he observaion densiy p (z x, which depend on he new observaion daa z. In he Condensaion algorihm, he inegral of Eq. (5 is no calculaed direcly, bu evaluaed approximaely by using a sampling mehod. 3.3. Condensaion Algorihm The Condensaion algorihm is one of sampling mehods for esimaing disribuion. The inernal represenaion of he Condensaion algorihm is shown in Fig. 2. We have a se {( of N weighed samples ; n = 1,, N and s (n, π (n his se approximaely represens he poserior p (x Z, where s (n is a sample of he random variable x and π (n is is weigh. As a new observaion daa come in, we can updae he weighed sample se hrough he following hree seps and obain he new poserior. This algorihm is illusraed in Fig. 3. weighed sample sample Fig. 3. Condensaion algorihm { Sep 1: Selecion Sample N imes from he se s (n 1 by choosing probabiliy π (n. In his sep, some elemens ha have especially high weigh may be chosen several imes and may have idenical copy in he new sample se. On he oher hand, some elemens ha have low weigh may no{ be choosen a all. The new sample se is denoed as. s (n Sep 2: Predicion Predic by drawing samples from { o generae ( p x x 1 = s (n s (n (6. In our proposed mehod, we assume ha he dynamical model is a firs-order auoregressive process, consequenly prediced sample can 751

be obained by s (n = As (n + Bw, (7 where w is a vecor of independen sandard normal random variables. Marices A and B represen he deerminisic and sochasic componens of he dynamical model, respecively. { In his sep, he disribuion of hese samples approximae he prior p (x Z 1. s (n Sep 3: Measuremen For each new sample s (n, evaluae he new weigh from and normalize o saisfy π (n p (z x = s n, (8 N n=1 π (n = 1. (9 In he case ha he sae vecor x is one dimensional, 1 { p (z x 1 + exp v2 m 2πσα 2σ 2, (10 where m is he number of observaion daa, v m = z (m x, σ and α are consans decided from observaion accuracy and error rae. {( Here we obain he new weighed sample se s (n, π (n. The expecaional value is calculaed from ɛ [x ] = N n=1 m π (n s (n. (11 Fig. 4. Srucure of our proposed mehod (a Inpu frame (b Binary image Fig. 5. Binarizaion of inpu frame 4. PROPOSED WATER LEVEL TRACKING The srucure of our proposed mehod is shown in Fig.4. The size in hese parenhesises is he image size used in he experimen. Each process is explained in he followings. 4.1. Preprocess A he preprocess, a binary image I (bin is generaed from inpu frame I. Nex, he Hough ransformaion is applied o I (bin and dominan lines are exraced. A firs, he difference image I (d is calculaed from inpu frame I and a base image I (b The base image I (b I (d I (b, = I I (b. (12 is updaed by +1 = I + I (b. (13 2 Nex, he binary image I (bin is generaed from he difference image I (d. A hreshold value T is used hrough his process. If he absolue value of each pixel in I (d is over he hreshold T, corresponding pixel of binary image will be whie, oherwise black. Figure 5 show one inpu frame and is binarized image. Our proposed mehod does no employ he simple frame difference mehod and he base image is weighed average image of inpu frames, because i is desired o exclude he influence of noise. Since he base image can forge he old inpu frame informaion by using Eq. (13 and updae he base image, our proposed mehod possesses adapabiliy for inensiy change. For all whie pixels of binary image I (bin, he Hough ransformaion is performed hen Hough image I (h is obained. In he following experimen, I (h is quanized o he same size of he inpu image for compuaional convenience. From he Hough image I h, poins corresponding o dominan lines are exraced and he following coordinaes se is formed. z = { z (m = ( θ (m, ρ (m ; m = 1,, M. (14 752

(a Hough image (b Exraced lines (a Sequence 1 (b Sequence 2 Fig. 6. Hough ransformaion and exraced lines Fig. 7. Snapshos of video sequences In our experimen, coordinaes quanized ono he Hough image (no parameers of Eq. (1 are used as (θ (m, ρ (m. The Hough ransformaion can be performed for grayscale image, bu we use he binary image as inpu for reducing he compuaional cos. The Hough image of he binary image in Fig.5(b and exraced lines are shown in Fig. 6. Number of dominan lines is no always one. In fac, wo lines are exraced in Fig.6. By noise, he Hough ransformaion may exrac wrong lines. Therefore i is necessary o use saisical approach in order o remove his influence. In our proposed mehod, we use he Condensaion algorihm. 4.2. Updae of Condensaion Sample Se By he coordinaes se z, he Condensaion sample se is updaed and he expecaional value ɛ [x ] is evaluaed. Because we assume ha he dynamical model is a firsorder auo-regressive process, we use Eq. (7 in he Condensaion predicion sep. To reduce he dimension of observaion densiy o one dimension, we use he following in he measuremen sep. ( 2 1 d z (m p (z x 1 + exp 2πσα, x 2σ 2, (15 where m d (x 1, x 2 = (θ 2 θ 1 2 + (ρ 2 ρ 1 2, (16 and x 1 = (θ 1, ρ 1, x 2 = (θ 2, ρ 2. 5. PERFORMANCE EVALUATION We use wo video sequences for performance evaluaion. Snapshos of hese sequences are shown in Fig. 7. Table 1 shows some pariculariies of hese video sequences. Sequence 1 is a video sequence of a river in fair weaher and he waer surface is calm. Sequence 2 is a video of he same river in bad weaher. I rains and he waer surface is rough. Table 1. Video Sequences sequence frame size frame rae number of frames Seq.1 320x240 30 fps 464 Seq.2 320x240 30 fps 458 As consans of Eq. (7 and (10, we use ( A =, ( 5 0 B =, 0 5 σ = 1, α = 0.01, he binarize hreshold T = 127 and we experimen on waer level racking wih our proposed mehod for he number of samples N = 1000. To verify he significance, we compare i wih he experimenal resul of he Kalman filering approach [8]. In he Kalman filer, he sae equaion and he observaion equaion are given by x = Fx 1 + Gw, (17 z = Hx + v, (18 respecively, and consans are se o ( F =, ( 5 0 G =, 0 5 ( H =, ( Σ w =, ( 10 2 0 Σ v = 0 2, where w and v are vecors of independen sandard normal random variables, Σ w and Σ v are covariance marices, respecively. 753

(a frame 40 of Seq.2 (a frame 40 of Seq.2 (b frame 41 of Seq.2 (b frame 41 of Seq.2 Fig. 8. Simulaion resul (proposed mehod Fig. 9. Simulaion resul (Kalman filering approach These resuls wih Seq.2 are shown in Figs. 8 and 9. The doed lines denoe he observaion daa from he Hough ransformaion and he solid lines denoe he esimaed lines a he end. Boh of Figs. 8 and 9 show successive wo frames in video sequence 2. From he firs frame, almos correc observaion is obained, bu wrong observaion come in from he oher frame due o he rain. In he Kalman filering approach, he observaion error effec he esimaion immediaely, alhough, in our proposed mehod using he Condensaion algorihm, he influence is almos no seen. This resul from ha he Condensaion algorihm is designed wih considering he observaion error. Through he video sequence, boh wo approaches show almos he same sensiiviy in he low observaion error par, bu in he high error par, our proposed mehod can obain more seady racking han he Kalman filering approach. MSE evaluaions of proposed mehod and he Kalman filering approach is shown in Table 2. Each value in Table 2 shows he mean square error beween rue waer surface lines and esimaed lines. True waer surface lines are decided manually. Equaion (16 is used o calculae errors beween rue lines and esimaed lines. From Table 2, i is seen ha proposed mehod give us error less racking for boh sequences han he Kalman filering approach. 6. CONCLUSIONS In his repor, we proposed he waer level racking mehod in river surveillance video by using he Hough ransformaion and he Condensaion algorihm. From several experimenal resuls, he significance of our proposed mehod is evaluaed wih he comparison of our proposed mehod wih 754

Table 2. Evaluaion by MSE Condensaion Kalman Filer Seq. 1 22.46 51.75 Seq. 2 55.24 2925.85 he Kalman filering approach. There are some assignmen for he fuure such as improvemen of preprocess, reducion of he observaion error rae and resricion of racking area. Acknowledgemen This research is financially suppored by Foundaion of River and Waershed Environmen Managemen, Japan as river and waershed mainenance projec. 7. REFERENCES [1] Minisry of inernaional affairs and communicaions, Japan, hp://www.soumu.go.jp/english/index.hml [2] hp://www.river.go.jp/ [3] Asushi Saio, Masahiro Iwahashi: River waer level deec algorihm wih frame synchronous adding and filering, The 19h Workshop on Circuis and Sysems in Karuizawa, pp.525-530, Apr. 2006 [4] Yuji Imai, Masahiro Iwahashi: River waer level deec algorihm using he Wavele ransformaion in JPEG2000, The 19h Workshop on Circuis and Sysems in Karuizawa, pp.531-534, Apr. 2006 [5] Rafael C. Gonzalez, Richard E. Woods: Digial Image Processing, Prenice-Hall, Inc., 2002 [6] Michael Isard, Andrew Blake: Condensaion - condiional densiy propagaion for visual racking, In. J. Compuer Vision, 1998 [7] M. Sanjeev Arulampalam, Simon Maskell, Neil Gordon, and Tim Clapp: A Tuorial on Paricle Filers for Online Nonlinear/Non-Gaussian Bayesian Tracking, ieee ransacions of signal processing, vol. 50, no. 2, february 2002. [8] R. E. Kalman: A new approach o linear filering and predicion problem, Journal of Basic Engineering, 82, pp.35-45, 1960 755