Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Source

A sensor converts some physical property of the world into a number. That number depends on the state, but not perfectly. A sensor model captures this relationship as a conditional probability p(zx)p(z \mid x): if the state were xx, how likely is reading zz?

A range sensor

An ultrasonic range sensor measures distance to a wall. A common model assumes the reading equals the true distance plus Gaussian noise:

p(zx)=N(z;x,σz2)p(z \mid x) = \mathcal{N}(z;\, x,\, \sigma_z^2)

Real sensors also fail in less tidy ways, returning a maximum-range reading when the echo is lost or a random value from crosstalk. A standard trick is to model the sensor as a mixture of these effects Thrun et al., 2005:

<Figure size 770x396 with 1 Axes>

From sensor model to likelihood

The sensor model is a function of zz for a fixed xx. After a reading arrives, we fix zz and view the same expression as a function of xx. This is the likelihood L(x)=p(zx)L(x) = p(z \mid x). It is not a probability distribution over xx (it need not integrate to 1), but it tells us which states explain the reading well.

<Figure size 990x363 with 2 Axes>

Binary sensors: false positives and negatives

Many sensors report only yes or no: is there a door here?, is the object metallic? Such a sensor is described by two numbers:

  • True-positive rate P(z=1x=1)P(z = 1 \mid x = 1): how often it fires when the thing is present.

  • False-positive rate P(z=1x=0)P(z = 1 \mid x = 0): how often it fires when the thing is absent.

The complements are the false-negative rate and the true-negative rate. A sensor with a 90% true-positive rate sounds good, but if the thing it detects is rare, most of its detections can still be wrong. Section 2.3 shows why.

prior  0.50 -> P(present | sensor fires) = 0.900
prior  0.10 -> P(present | sensor fires) = 0.500
prior  0.01 -> P(present | sensor fires) = 0.083
References
  1. Thrun, S., Burgard, W., & Fox, D. (2005). Probabilistic Robotics. MIT Press.