ArticleslgStudy

computer science

Condensation algorithm

Condensation algorithm is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Condensation algorithm rather than just read about it. In short: The condensation algorithm (Conditional Density Propagation) is a computer vision algorithm. The principal application is to detect and track the contour of objects moving in a cluttered environment.

Key takeaways

  • Condensation algorithm belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Condensation algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Condensation algorithm from memory before moving on to harder problems.

Reference excerpt

The condensation algorithm (Conditional Density Propagation) is a computer vision algorithm. The principal application is to detect and track the contour of objects moving in a cluttered environment. Object tracking is one of the more basic and difficult aspects of computer vision and is generally a prerequisite to object recognition. Being able to identify which pixels in an image make up the contour of an object is a non-trivial problem. Condensation is a probabilistic algorithm that attempts to solve this problem. The algorithm itself is described in detail by Isard and Blake in a publication in the International Journal of Computer Vision in 1998. One of the most interesting facets of the algorithm is that it does not compute on every pixel of the image. Rather, pixels to process are chosen at random, and only a subset of the pixels end up being processed. Multiple hypotheses about what is moving are supported naturally by the probabilistic nature of the approach. The evaluation functions come largely from previous work in the area and include many standard statistical approaches. The original part of this work is the application of particle filter estimation techniques. The algorithm's creation was inspired by the inability of Kalman filtering to perform object tracking well in the presence of significant background clutter. The presence of clutter tends to produce probability distributions for the object state which are multi-modal and therefore poorly modeled by the Kalman filter. The condensation algorithm in its most general form requires no assumptions about the probability distributions of the object or measurements.

Algorithm overview The condensation algorithm seeks to solve the problem of estimating the conformation of an object described by a vector 𝐱𝐭 at time t, given observations 𝐳𝟏,...,𝐳𝐭 of the detected features in the images up to and including the current time. The algorithm outputs an estimate to the state conditional probability density p(𝐱𝐭|𝐳𝟏,...,𝐳𝐭) by applying a nonlinear filter based on factored sampling and can be thought of as a development of a Monte-Carlo method. p(𝐱𝐭|𝐳𝟏,...,𝐳𝐭) is a representation of the probability of possible conformations for the objects based on previous conformations and measurements. The condensation algorithm is a generative model since it models the joint distribution of the object and the observer. The conditional density of the object at the current time p(𝐱𝐭|𝐳𝟏,...,𝐳𝐭) is estimated as a weighted, time-indexed sample set {st(n),n=1,...,N} with weights πt(n). N is a parameter determining the number of sample sets chosen. A realization of p(𝐱𝐭|𝐳𝟏,...,𝐳𝐭) is obtained by sampling with replacement from the set st with probability equal to the corresponding element of πt. The assumptions that object dynamics form a temporal Markov chain and that observations are independent of each other and the dynamics facilitate the implementation of the condensation algorithm. The first assumption allows the dynamics of the object to be entirely determined by the conditional density p(𝐱𝐭|𝐱𝐭−𝟏). The model of the system dynamics determined by p(𝐱𝐭|𝐱𝐭−𝟏) must also be selected for the algorithm, and generally includes both deterministic and stochastic dynamics. The algorithm can be summarized by initialization at time t=0 and three steps at each time t:

Initialization Form the initial sample set and weights by sampling according to the prior distribution. For example, specify as Gaussian and set the weights equal to each other.

Iterative procedure Sample with replacement N times from the set {s0(n),n=1,...,N} with probability {π0(n),n=1,...,N} to generate a realization of p(𝐱𝐭|𝐳𝟏,...,𝐳𝐭). Apply the learned dynamics p(𝐱𝐭|𝐱𝐭−𝟏) to each element of this new set, to generate a new set {st(n)}. To take into account the current observation 𝐳𝐭, set πt(n)=p(𝐳𝐭|s(n))∑j=1Np(𝐳𝐭|s(j)) for each element {st(n)}. This algorithm outputs the probability distribution p(𝐱𝐭|𝐳𝟏,...,𝐳𝐭) which can be directly used to calculate the mean position of the tracked object, as well as the other moments of the tracked object. Cumulative weights can instead be used to achieve a more efficient sampling.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Condensation algorithm

Start with the simplest possible case. Write down what Condensation algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Condensation algorithm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Condensation algorithm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Condensation algorithm

In research
Condensation algorithm appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Condensation algorithm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Condensation algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer vision, so understanding it makes those chapters shorter.
In everyday life
Look for Condensation algorithm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Condensation algorithm” →

How to study Condensation algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Condensation algorithm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Condensation algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Condensation algorithm in simple terms?

The condensation algorithm (Conditional Density Propagation) is a computer vision algorithm. The principal application is to detect and track the contour of objects moving in a cluttered environment.

Why does Condensation algorithm matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Condensation algorithm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Condensation algorithm.

Tags

  • Computer vision

Keep exploring