SlideShare a Scribd company logo
1 of 36
A FRIENDLY APPROACH TO PARTICLE FILTERS IN COMPUTER VISION Concepts, hints and examples 1 2/2/2011 Dr.-Ing. Marcos Nieto Doncel Investigador/Researcher mnieto@vicomtech.org
Outline Motivation Bayesianframework Samplingsolution Examples 2 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Motivation Forwhat? Obtainestimates of a recursive/dynamicsystem Let’sstay in computervisionapplications W H (x0,y0) 3 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Motivation Why? Deterministicapproach Probabilisticapproach vs 4 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Motivation How? Define yourtarget Define yourfunctions Select a type of filteradaptedto 1) and 2) Implement and run Optionally: Writeyourpaper and share : ) 5 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Bayesianfiltering Target: xk Itevolvesthrough time accordingtosomedynamics, properties, interaction, etc. W W H H (x0,y0) x0 y0 Prior / Dynamics / Transition… p(xk|xk-1) 6 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Bayesianfiltering Observations: z1:k Noisy, distorted, indirect Typically, differentdimensionaliy Likelihood / Observationmodel / Measurements… p(zk|xk) 7 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Bayesianfiltering Posterior distribution: p(xk|z1:k) Probability density function This is all you can expect to know Typicallywewant a point-estimate of thisdistribution At each time instant: x*k At theend 8 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Bayesianfiltering Time K-1 K K+1 p(zk|xk): Observation model zk-1 zk zk+1 Measurements (visible) xk-1 xk xk+1 States (hidden) p(xk|xk-1): Dynamic model 9 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Bayesianfiltering How? Prediction Use thedynamics, guessfutureaccordingto Correction Obtain a new observation, and applyBayes’ rule  Likelihood Prediction Posterior p(xk|xk-1) 10 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Particlefilters Solvethroughsampling! Letusapproximate posterior as a set of samples Samples / Particles / Hypotheses Weighted UnWeighted 11 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Particlefilters Understandingparticles Eachparticlerepresents a hypothesis Remember! wewilltypicallywantjustonepoint-estimate Bestparticle, mean particle, mode, median… W W H H (x0,y0) x0 y0 12 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Particlefilters Howtosample? Importancesampling MarkovChain Monte Carlo Gibbssampling Slicesampling … Howmanysamples? As much as requiredtotrackthe posterior! 13 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Particlefilters Sequentialimportancesampling (SIR) 14 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Particlefilters Sequentialimportancesampling (SIR) 15 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
SIR – example (I) Single object tracking 16 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
SIR – example (I) Linear-Gaussiandynamics Generate N samplesstartingfrompreviousstateaddingestimatedvelocity And someGaussiannoise Thenoisemakesthatsamples are different! 17 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
SIR - example (I) Likelihoodbasedonsegmentationorcolor histogram Evaluateeachpredictedsampleaccordingtothisvalue Likelihoodfunctionshouldreturnhighvaluesfor “good” hypotheses, and lowfor “bad” hypotheses 18 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
SIR – example (II) Eye-tracking Linear predictionwon’twork Theprojection of theeyemovementonthescreenisdifficulttopredict Define a combination of linear-Gaussian + uniform 19 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
20 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
21 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
SIR – example (II) ,[object Object],Try toadaptthedynamicmodelyou use withwhatyouthinkisthe real dynamics of whatyouwanttotrack Thismayimplyusing mixture models, accelerations, etc. Also, a goodlikelihoodmodelshouldincludesomecontinuousterm (like a uniform), in orderto cope withocclusions, so thatthetrackisnotlost 22 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
SIR Problems Requirednumber of samplesincreaseexponentiallywithproblemdimension Severalobjects/elements? Define a multimodal posterior and generatemultiplepoint-estimates Clusterparticles Increasestate vector dimension Variable number of objects? Addexternalhandler Includethenumber of objects as another variable toestimate 23 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Particlefilters MCMC More flexible Theproblem of dimensionissoftened Directlysamplefromthe posterior Researchers are focusing in MCMC Manyexcellentworksthatproposesolutionstomultipleobject, interaction, entering-exiting, number of samplesreduction, etc. 24 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Particlefilters MCMC Generate a Markovchain of samplesdirectlyfromthe posterior 25 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
MCMC Metropolis-Hastings Startsomehow Propose a movement Acceptwithprobabilityequaltothe ratio betweenproposedvalue and previousone Prob. = 1 ifproposedisbetterthanprevious Prob. = ratio ifnot Metropolis-Hastings allowsobtainingsamplesforanarbitrarydistributionbymaking a chainwhichacceptsorrejectsmovements 26 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
MCMC Each sample is a hypothesis of the state of all objects Multipleobjects State vector includingallthedimensions of allobjects Metropolis-Hastings: Generate a chain of N samples Foreachsample, use theinformation of allthesamples at theprevioustime instant After the chain is completed, we have the sample-basedapproximation of the posterior 27 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
MCMC Marginalizedproposalmoves Proposemovement of a single dimension at each new sample E.g.don’tpropose a move in alldimensionsforallobjects Choose a dimension randomly and update it Burn-in period Stop when stationary function is reached. Or when maximum number of samples is reached. x W y … … x W H x x W L 28 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
MCMC Interactionbetweenobjects MarkovRandomField (MRF) factor 29 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
MCMC Variable number of objects Add an external detector, and modify state size Reversible-Jump MCMC Define an Enter move (creates an object) Define an Exit move (removes an object) Define an Update move (updates existing objects) 30 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Discussion Whatshould I use? SIR MCMC Kalman? 31 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Discussion Ifdynamics and observation are linear, and withGaussiannoise Use Kalman, thisistheoptimumsolution Ifnot, considerusing a particlefilter 32 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Discussion SIR Use itif target dimensionislow (3-5) Use itifyou plan toparallelizeprocessing Rememberparticles are independentonefromanother Wouldrequireimportantdesignissuesfor Managingmultipleobjects Managing variable number of objects 33 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Discussion MCMC Use itifdimensionsincrease It can notbeparallelized Rememberthatparticlesform a chain, and eachonedependsonthepreviousone Adaptedtomultipleobjects MRF interactioniseasytoinsert Metropolis-Hastings can beefficientlyadaptedtomultipleobject 34 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
Summary Define your target Determine itsdynamics Define thelikelihood Select a filterthatadaptstotheproblem Implementit Runitcarefullyselectingtheappropriateparameters of yourfunctions, number of particles, etc. 35 Marcos Nieto, PhD     -     mnieto@vicomtech.org 2/2/2011
2/2/2011 36 Dr.-Ing. Marcos Nieto Doncel Investigador/Researcher mnieto@vicomtech.org http://marcosnieto.net/

More Related Content

Similar to A FRIENDLY APPROACH TO PARTICLE FILTERS IN COMPUTER VISION

Concept extraction from the web of things (3)
Concept extraction from the web of things (3)Concept extraction from the web of things (3)
Concept extraction from the web of things (3)
Amélie Gyrard
 
John W. Vinti Particle Tracker Final Presentation
John W. Vinti Particle Tracker Final PresentationJohn W. Vinti Particle Tracker Final Presentation
John W. Vinti Particle Tracker Final Presentation
John Vinti
 

Similar to A FRIENDLY APPROACH TO PARTICLE FILTERS IN COMPUTER VISION (20)

Why FPGA
Why FPGAWhy FPGA
Why FPGA
 
HAMS - Product and Prototype
HAMS - Product and PrototypeHAMS - Product and Prototype
HAMS - Product and Prototype
 
How to break apart a monolithic system safely without destroying your team - ...
How to break apart a monolithic system safely without destroying your team - ...How to break apart a monolithic system safely without destroying your team - ...
How to break apart a monolithic system safely without destroying your team - ...
 
Teams and monoliths - Matthew Skelton - Velocity EU 2016
Teams and monoliths - Matthew Skelton - Velocity EU 2016Teams and monoliths - Matthew Skelton - Velocity EU 2016
Teams and monoliths - Matthew Skelton - Velocity EU 2016
 
Human Behaviour Understanding using Top-View RGB-D Data
Human Behaviour Understanding using Top-View RGB-D DataHuman Behaviour Understanding using Top-View RGB-D Data
Human Behaviour Understanding using Top-View RGB-D Data
 
Teams and monoliths - Matthew Skelton - Agile in the City Bristol 2016
Teams and monoliths - Matthew Skelton - Agile in the City Bristol 2016Teams and monoliths - Matthew Skelton - Agile in the City Bristol 2016
Teams and monoliths - Matthew Skelton - Agile in the City Bristol 2016
 
Concept extraction from the web of things (3)
Concept extraction from the web of things (3)Concept extraction from the web of things (3)
Concept extraction from the web of things (3)
 
A N E XTENSION OF P ROTÉGÉ FOR AN AUTOMA TIC F UZZY - O NTOLOGY BUILDING U...
A N  E XTENSION OF  P ROTÉGÉ FOR AN AUTOMA TIC  F UZZY - O NTOLOGY BUILDING U...A N  E XTENSION OF  P ROTÉGÉ FOR AN AUTOMA TIC  F UZZY - O NTOLOGY BUILDING U...
A N E XTENSION OF P ROTÉGÉ FOR AN AUTOMA TIC F UZZY - O NTOLOGY BUILDING U...
 
TESTING
TESTINGTESTING
TESTING
 
Single layer perceptron in python
Single layer perceptron in pythonSingle layer perceptron in python
Single layer perceptron in python
 
Nanocomputing
NanocomputingNanocomputing
Nanocomputing
 
Multimodal Deep Learning
Multimodal Deep LearningMultimodal Deep Learning
Multimodal Deep Learning
 
Continuous Unsupervised Training of Deep Architectures
Continuous Unsupervised Training of Deep ArchitecturesContinuous Unsupervised Training of Deep Architectures
Continuous Unsupervised Training of Deep Architectures
 
Algorithmic Analysis to Video Object Tracking and Background Segmentation and...
Algorithmic Analysis to Video Object Tracking and Background Segmentation and...Algorithmic Analysis to Video Object Tracking and Background Segmentation and...
Algorithmic Analysis to Video Object Tracking and Background Segmentation and...
 
RuleML2015: Using PSL to Extend and Evaluate Event Ontologies
RuleML2015: Using PSL to Extend and Evaluate Event OntologiesRuleML2015: Using PSL to Extend and Evaluate Event Ontologies
RuleML2015: Using PSL to Extend and Evaluate Event Ontologies
 
John W. Vinti Particle Tracker Final Presentation
John W. Vinti Particle Tracker Final PresentationJohn W. Vinti Particle Tracker Final Presentation
John W. Vinti Particle Tracker Final Presentation
 
Kantian Philosophy of Mathematics and Young Robots: Could a baby robot grow u...
Kantian Philosophy of Mathematics and Young Robots: Could a baby robot grow u...Kantian Philosophy of Mathematics and Young Robots: Could a baby robot grow u...
Kantian Philosophy of Mathematics and Young Robots: Could a baby robot grow u...
 
Theory and Applications of Monte Carlo Simulations by Chan V. (Ed.).pdf
Theory and Applications of Monte Carlo Simulations by Chan V. (Ed.).pdfTheory and Applications of Monte Carlo Simulations by Chan V. (Ed.).pdf
Theory and Applications of Monte Carlo Simulations by Chan V. (Ed.).pdf
 
Detection of fraud in financial blockchain-based transactions through big dat...
Detection of fraud in financial blockchain-based transactions through big dat...Detection of fraud in financial blockchain-based transactions through big dat...
Detection of fraud in financial blockchain-based transactions through big dat...
 
Survey Multiple Object Tracking Survey Paper
Survey Multiple Object Tracking Survey PaperSurvey Multiple Object Tracking Survey Paper
Survey Multiple Object Tracking Survey Paper
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

A FRIENDLY APPROACH TO PARTICLE FILTERS IN COMPUTER VISION

  • 1. A FRIENDLY APPROACH TO PARTICLE FILTERS IN COMPUTER VISION Concepts, hints and examples 1 2/2/2011 Dr.-Ing. Marcos Nieto Doncel Investigador/Researcher mnieto@vicomtech.org
  • 2. Outline Motivation Bayesianframework Samplingsolution Examples 2 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 3. Motivation Forwhat? Obtainestimates of a recursive/dynamicsystem Let’sstay in computervisionapplications W H (x0,y0) 3 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 4. Motivation Why? Deterministicapproach Probabilisticapproach vs 4 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 5. Motivation How? Define yourtarget Define yourfunctions Select a type of filteradaptedto 1) and 2) Implement and run Optionally: Writeyourpaper and share : ) 5 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 6. Bayesianfiltering Target: xk Itevolvesthrough time accordingtosomedynamics, properties, interaction, etc. W W H H (x0,y0) x0 y0 Prior / Dynamics / Transition… p(xk|xk-1) 6 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 7. Bayesianfiltering Observations: z1:k Noisy, distorted, indirect Typically, differentdimensionaliy Likelihood / Observationmodel / Measurements… p(zk|xk) 7 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 8. Bayesianfiltering Posterior distribution: p(xk|z1:k) Probability density function This is all you can expect to know Typicallywewant a point-estimate of thisdistribution At each time instant: x*k At theend 8 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 9. Bayesianfiltering Time K-1 K K+1 p(zk|xk): Observation model zk-1 zk zk+1 Measurements (visible) xk-1 xk xk+1 States (hidden) p(xk|xk-1): Dynamic model 9 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 10. Bayesianfiltering How? Prediction Use thedynamics, guessfutureaccordingto Correction Obtain a new observation, and applyBayes’ rule Likelihood Prediction Posterior p(xk|xk-1) 10 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 11. Particlefilters Solvethroughsampling! Letusapproximate posterior as a set of samples Samples / Particles / Hypotheses Weighted UnWeighted 11 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 12. Particlefilters Understandingparticles Eachparticlerepresents a hypothesis Remember! wewilltypicallywantjustonepoint-estimate Bestparticle, mean particle, mode, median… W W H H (x0,y0) x0 y0 12 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 13. Particlefilters Howtosample? Importancesampling MarkovChain Monte Carlo Gibbssampling Slicesampling … Howmanysamples? As much as requiredtotrackthe posterior! 13 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 14. Particlefilters Sequentialimportancesampling (SIR) 14 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 15. Particlefilters Sequentialimportancesampling (SIR) 15 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 16. SIR – example (I) Single object tracking 16 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 17. SIR – example (I) Linear-Gaussiandynamics Generate N samplesstartingfrompreviousstateaddingestimatedvelocity And someGaussiannoise Thenoisemakesthatsamples are different! 17 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 18. SIR - example (I) Likelihoodbasedonsegmentationorcolor histogram Evaluateeachpredictedsampleaccordingtothisvalue Likelihoodfunctionshouldreturnhighvaluesfor “good” hypotheses, and lowfor “bad” hypotheses 18 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 19. SIR – example (II) Eye-tracking Linear predictionwon’twork Theprojection of theeyemovementonthescreenisdifficulttopredict Define a combination of linear-Gaussian + uniform 19 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 20. 20 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 21. 21 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 22.
  • 23. SIR Problems Requirednumber of samplesincreaseexponentiallywithproblemdimension Severalobjects/elements? Define a multimodal posterior and generatemultiplepoint-estimates Clusterparticles Increasestate vector dimension Variable number of objects? Addexternalhandler Includethenumber of objects as another variable toestimate 23 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 24. Particlefilters MCMC More flexible Theproblem of dimensionissoftened Directlysamplefromthe posterior Researchers are focusing in MCMC Manyexcellentworksthatproposesolutionstomultipleobject, interaction, entering-exiting, number of samplesreduction, etc. 24 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 25. Particlefilters MCMC Generate a Markovchain of samplesdirectlyfromthe posterior 25 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 26. MCMC Metropolis-Hastings Startsomehow Propose a movement Acceptwithprobabilityequaltothe ratio betweenproposedvalue and previousone Prob. = 1 ifproposedisbetterthanprevious Prob. = ratio ifnot Metropolis-Hastings allowsobtainingsamplesforanarbitrarydistributionbymaking a chainwhichacceptsorrejectsmovements 26 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 27. MCMC Each sample is a hypothesis of the state of all objects Multipleobjects State vector includingallthedimensions of allobjects Metropolis-Hastings: Generate a chain of N samples Foreachsample, use theinformation of allthesamples at theprevioustime instant After the chain is completed, we have the sample-basedapproximation of the posterior 27 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 28. MCMC Marginalizedproposalmoves Proposemovement of a single dimension at each new sample E.g.don’tpropose a move in alldimensionsforallobjects Choose a dimension randomly and update it Burn-in period Stop when stationary function is reached. Or when maximum number of samples is reached. x W y … … x W H x x W L 28 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 29. MCMC Interactionbetweenobjects MarkovRandomField (MRF) factor 29 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 30. MCMC Variable number of objects Add an external detector, and modify state size Reversible-Jump MCMC Define an Enter move (creates an object) Define an Exit move (removes an object) Define an Update move (updates existing objects) 30 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 31. Discussion Whatshould I use? SIR MCMC Kalman? 31 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 32. Discussion Ifdynamics and observation are linear, and withGaussiannoise Use Kalman, thisistheoptimumsolution Ifnot, considerusing a particlefilter 32 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 33. Discussion SIR Use itif target dimensionislow (3-5) Use itifyou plan toparallelizeprocessing Rememberparticles are independentonefromanother Wouldrequireimportantdesignissuesfor Managingmultipleobjects Managing variable number of objects 33 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 34. Discussion MCMC Use itifdimensionsincrease It can notbeparallelized Rememberthatparticlesform a chain, and eachonedependsonthepreviousone Adaptedtomultipleobjects MRF interactioniseasytoinsert Metropolis-Hastings can beefficientlyadaptedtomultipleobject 34 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 35. Summary Define your target Determine itsdynamics Define thelikelihood Select a filterthatadaptstotheproblem Implementit Runitcarefullyselectingtheappropriateparameters of yourfunctions, number of particles, etc. 35 Marcos Nieto, PhD - mnieto@vicomtech.org 2/2/2011
  • 36. 2/2/2011 36 Dr.-Ing. Marcos Nieto Doncel Investigador/Researcher mnieto@vicomtech.org http://marcosnieto.net/