Drag to orbit · pinch or scroll to zoom

How the inference works

The video is a few thousand photon counts. The question is which values of five biological unknowns, written θ, could have produced them, and how sure we can be.

1. Bayes' rule

p(θ | video) ∝ p(video | θ) × p(θ)

What we believe after seeing the video (the posterior) is how well each guess explains the photons (the likelihood) times how plausible that guess was beforehand (the prior).

2. The prior

Each unknown gets a typical value and a spread, on a log scale because they can be off by multiples. "45 nm ×/÷ 1.28" means two thirds of the belief lies between 45/1.28 and 45×1.28.

3. The forward model: from θ to expected photons

A guess is turned into the image it predicts. The spot is a blurred point, so pixel at distance r from the centre, at time t, expects

λ(r, t) = b + A(t) / (2πs²) · exp(−r² / 2s²)

with background b, total brightness A and blur s:

A(t) = N · P · q(t) · E(t)
s(t)² = σPSF² + footprint + 2D·(t − tf)

N is the number of tags and P the laser power. q jumps from 0.04 to 1 at the moment of fusion tf, when the acid escapes. E is the evanescent intensity at the tags' height, e−z/d; it rises as the vesicle flattens by a fraction 1 − e−(t − tf)/τ and the tags sink toward the glass. D is how fast they then diffuse apart.

4. The likelihood

Photon counts scatter around their expected value by Poisson statistics. For a count k in each pixel of each frame seen so far:

ln p(video | θ) = Σframes Σpixels ( k ln λ − λ )

Moving the video-time slider changes which frames are in that sum.

5. Sampling the posterior

There is no formula for the result, so it is explored by 40 "walkers", each holding one guess. A walker proposes a step along the line to another walker, stretched by a random factor z, and takes it with probability

min( 1, z4 · p(θ′ | video) / p(θ | video) )

Better guesses are always accepted, worse ones sometimes. Over many steps the walkers visit each region in proportion to its posterior probability, and those visits are the samples everything else is drawn from.

6. Reading the result

The video here is generated from this same model, so the inference is being tested on its own assumptions. The spot centre, blur, background and field depth are treated as known.