---
title: Medical measurement systems
heading: The chain from physiological measurand to display, what makes medical measurements hard, sensitivity and full-scale output, nonlinearity measured against the endpoint line, interfering and modifying inputs, resolution referred to the input, and combining independent errors
eyebrow: S15 · Lesson 1 · Medical measurement systems
xp: 50
---

::: hook
Medical instruments measure quantities that are small, slow, buried in other signals and attached to a person who moves, sweats and must never be harmed. An ECG is about a millivolt sitting on top of a few hundred millivolts of electrode offset and a volt of power-line pickup. A blood-pressure transducer has to read a few millimeters of mercury accurately while its temperature drifts. This course works through how each kind of medical measurement is made, from sensor to amplifier to processed number, using the circuits, signals and physics of the earlier courses. It starts with the vocabulary every instrument specification uses.
:::

::: play
- A pressure sensor whose output bends slightly away from a straight line: $y = Sx + ax^2$ over a range of 0 to X mmHg.
- The **endpoint line** joins the outputs at zero and full scale. The largest gap between the curve and that line, as a fraction of the full-scale output, is the **nonlinearity**.
- For a quadratic bend the gap peaks at mid-range, at $|a|X^2/4$.
:::

```sim plot
view: graph
x: P = 0..300
y: v = 0..13
slider: S = 10..40 step 1 = 25
slider: a = -0.02..0.02 step 0.001 = -0.002
plot: (S*P + a*P^2)/1000 | samples: 300 | label: sensor output, mV
plot: (S + a*300)*P/1000 | samples: 50 | dashed | color: ch3 | label: endpoint line
readout: nonlinearity, % of full scale = 100*abs(a)*300^2/4/(S*300 + a*300^2) | digits: 3
readout: full-scale output, mV = (S*300 + a*300^2)/1000 | digits: 4
```

::: predict
## A blood-pressure transducer has a sensitivity of 5 µV per volt of excitation per mmHg and runs from 5 V. What does it put out at 100 mmHg?

- [ ] 5 µV
- [ ] 500 µV
- [x] 2.5 mV
- [ ] 2.5 V

::: reveal
5 µV/V/mmHg × 5 V = 25 µV/mmHg, so 100 mmHg gives 2.5 mV. That's typical of bridge sensors: a few millivolts at full scale, which is why the amplifier that follows matters as much as the sensor.
:::
:::

::: nameit
## The generalized instrument

A **measurand** (pressure, potential, flow, temperature, concentration) reaches a **sensor**, which converts it to an electrical quantity. **Signal conditioning** amplifies, filters and digitizes it, and the result is displayed, stored or used to control therapy. Calibration signals and feedback may be part of the loop. Measurements are **direct** (a catheter in an artery), **indirect** (a cuff on the arm) or by **sampling** (blood drawn for the lab).

## Inputs that aren't the measurand

- **Interfering inputs** add to the output: power-line pickup, electrode offset, a temperature-driven zero drift.
- **Modifying inputs** change the sensitivity itself: temperature changing a strain gauge's gain, supply voltage changing a bridge's output.

Remedies are negative feedback, filtering, opposing inputs (a second, matched sensor that sees only the interference), and shielding.

## Static characteristics

- **Sensitivity**: output change per unit input. Bridge sensors are quoted per volt of excitation.
- **Accuracy**: closeness to the true value; **precision**: repeatability; **resolution**: the smallest change that can be detected.
- **Nonlinearity**: the largest deviation from a reference line, as a percent of full scale. Against the endpoint line, a quadratic term $ax^2$ deviates by at most $|a|X^2/4$.
- **Resolution referred to the input**: an N-bit converter spanning a range R after a gain G resolves $R/(2^NG)$ at the input.

Independent error sources combine as the root of the sum of squares.
:::

::: example
## A transducer gives 25 µV/mmHg with a bend of −0.002 µV/mmHg² over 0 to 300 mmHg. Find its full-scale output and its nonlinearity.

::: solution
1. **Full-scale output.** At 300 mmHg:
   $$\begin{aligned} V &= 25 \times 300 - 0.002 \times 300^2 \\ &= 7500 - 180 \\ &= 7320\ \mu\text{V} \end{aligned}$$
2. **Largest gap from the endpoint line.** It falls at 150 mmHg:
   $$\begin{aligned} \Delta &= \frac{0.002 \times 300^2}{4} \\ &= 45\ \mu\text{V} \end{aligned}$$
3. **Nonlinearity.** As a fraction of full scale:
   $$\frac{45}{7320} = 0.61\%$$

**Answer:** the full-scale output is 7320 µV, and the nonlinearity is 45 µV at 150 mmHg, 0.61% of full scale.
:::
:::

::: example
## An ECG front end has a gain of 1000 and feeds a 12-bit converter spanning ±5 V. What's its resolution at the electrodes? And what total error do independent errors of 1, 0.5 and 2 mmHg give?

::: solution
1. **Step at the converter.** The ±5 V span is 10 V, split into 4096 steps:
   $$\begin{aligned} q &= \frac{10\ \text{V}}{4096} \\ &= 2.44\ \text{mV} \end{aligned}$$
2. **Step at the electrodes.** Dividing by the gain of 1000 gives
   $$q_\text{in} = 2.44\ \mu\text{V}$$
   fine for a 1 mV ECG.
3. **Combine the independent errors.** They add as the root of the sum of squares:
   $$\begin{aligned} e &= \sqrt{1 + 0.25 + 4} \\ &= 2.29\ \text{mmHg} \end{aligned}$$
   dominated by the largest.

**Answer:** the resolution is 2.44 µV at the electrodes (2.44 mV at the converter), and the three errors combine to 2.29 mmHg.
:::
:::

::: example
## A pressure transducer is calibrated at 0, 100, 200 and 300 mmHg and reads 0.02, 2.53, 5.01 and 7.55 mV. Find its sensitivity and offset by least squares, and the largest deviation from the fitted line.

::: solution
1. **Means.**
   $$\begin{aligned} \bar x &= 150\ \text{mmHg} \\ \bar y &= 3.778\ \text{mV} \end{aligned}$$
2. **Least-squares slope.**
   $$\begin{aligned} S &= \frac{\sum(x - \bar x)(y - \bar y)}{\sum(x - \bar x)^2} \\ &= \frac{1253.5}{50\,000} \\ &= 0.02507\ \text{mV/mmHg} \end{aligned}$$
3. **Offset.**
   $$\begin{aligned} b &= \bar y - S\bar x \\ &= 0.017\ \text{mV} \end{aligned}$$
4. **Residuals.** The four points sit +0.003, +0.006, −0.021 and +0.012 mV off the line.
5. **Largest deviation.** The worst point sits 0.021 mV, 0.8 mmHg, from the line:
   $$\frac{0.021}{7.5} = 0.28\%$$
   of the 7.5 mV span, the nonlinearity this calibration would quote.

**Answer:** the sensitivity is 0.02507 mV/mmHg and the offset 0.017 mV, and the largest deviation is 0.021 mV (0.8 mmHg, 0.28% of the span).
:::
:::

::: check
given: s = 5 | 10 | 40; V = 2.5 | 5 | 10; P = 50 | 120 | 250
answer: s*V*P/1000
unit: mV
tolerance: 0.5%

## A pressure transducer's sensitivity is {s} µV per volt per mmHg, with {V} V excitation. What's its output at {P} mmHg?

::: right
Right. $sVP$ = {answer} mV.
:::

::: misses
- [s*P/1000] Multiply by the excitation voltage too.
- [any] Not yet. Sensitivity times excitation times pressure.
:::
:::

::: check
given: S = 20 | 50; a = 0.001 | 0.005 | 0.02; X = 100 | 300
answer: 100*a*X^2/4/(S*X + a*X^2)
tolerance: 0.5%

## A sensor's output is $Sx + ax^2$ with S = {S} and a = {a} (same units) over 0 to {X}. What's its nonlinearity against the endpoint line, in percent of full scale?

::: right
Right. $100\,aX^2/4$ over the full-scale output: {answer}%.
:::

::: misses
- [100*a*X^2/(S*X + a*X^2)] That's the whole bend at full scale; the endpoint line passes through both ends, so the largest gap is a quarter of that.
- [any] Not yet. The largest gap from the line joining the end points.
:::
:::

::: check
given: R = 2 | 5 | 10; N = 10 | 12 | 16; G = 100 | 1000 | 5000
answer: R/(2^N*G)*1e6
unit: µV
tolerance: 0.5%

## An amplifier with gain {G} feeds an {N}-bit converter spanning {R} V. What's one step, referred to the amplifier's input?

::: right
Right. $R/(2^NG)$ = {answer} µV.
:::

::: misses
- [R/2^N*1e6] Divide by the gain to refer the step to the input.
- [any] Not yet. Converter step over gain.
:::
:::

::: check
given: c = 0.05 | 0.2 | 1; d = 5 | 15
answer: c*d
tolerance: 0.5%

## A transducer's zero drifts by {c} mmHg per °C. How large an error does a {d} °C temperature change cause?

::: right
Right. {answer} mmHg, an interfering input.
:::

::: misses
- [any] Not yet. Coefficient times temperature change.
:::
:::

::: check
given: c = 0.002 | 0.005; d = 5 | 15
answer: c*d*100
tolerance: 0.5%

## A transducer's sensitivity falls by {c} (as a fraction) per °C. By what percent is a reading wrong after a {d} °C rise, whatever the pressure?

::: right
Right. A modifying input: the gain is off by {answer}% at every pressure.
:::

::: misses
- [c*d] Express it as a percent.
- [any] Not yet. Fractional change per degree times degrees.
:::
:::

::: check
given: a = 0.5 | 1 | 2; b = 0.3 | 1.5; c = 0.2 | 0.8 | 3
answer: sqrt(a^2 + b^2 + c^2)
tolerance: 0.5%

## A measurement has independent errors of {a}, {b} and {c} mmHg. What's the combined error?

::: right
Right. $\sqrt{a^2 + b^2 + c^2}$ = {answer} mmHg.
:::

::: misses
- [a + b + c] That's the worst case; independent errors combine as the root of the sum of squares.
- [any] Not yet. Root sum of squares.
:::
:::

::: check
kind: parts
given: s = 50 | 350 | 1000; i = 1 | 10 | 100

## A sensor with output impedance {s} Ω drives an amplifier whose input impedance is {i} kΩ.

::: part
answer: (1 - i*1e3/(s + i*1e3))*100
unit: %
tolerance: 0.5%

### By what percent does loading lower the measured signal?

::: misses
- [any] The divider $Z_i/(Z_s + Z_i)$ keeps the rest.
:::
:::

::: part
answer: s + i*1e3
unit: Ω
tolerance: 0.5%

### What total resistance does the signal source see?

::: misses
- [any] The two in series.
:::
:::
:::

::: check
kind: derivation
vars: S = 0.1..100, k = -0.01..0.01, z = -0.5..0.5, T = -20..20, x = 10..300

## A transducer's sensitivity S changes by a fraction k per °C and its zero by z output units per °C; the temperature moves by T from calibration while it measures x.

::: step
answer: S*(1 + k*T)*x + z*T

### What does it output?
:::

::: step
answer: (S*k*T*x + z*T)/S

### What error does that make, in units of the measurand?
:::

::: right
Right. Zero drift gives a fixed error; sensitivity drift grows with the reading.
:::
:::

::: explain
## How do interfering and modifying inputs differ, and why does the difference matter for correcting them?

::: model
An interfering input adds its own contribution to the output, independent of the measurand: power-line pickup on an ECG lead or a zero drift with temperature shows up even when the measurand is zero. It can be removed by subtraction, for instance with a matched reference sensor or a filter, because its effect doesn't depend on the signal. A modifying input changes the instrument's sensitivity, so its error is proportional to the measurand: a strain gauge whose gauge factor drifts with temperature reads 1% low at every pressure. Subtracting an offset doesn't fix it; it needs compensation of the gain, such as a bridge arrangement where the effect cancels, or feedback that makes the gain depend on stable components.
:::
:::

::: practice

::: check
given: s = 2 | 50; V = 1 | 10; P = 10 | 300
answer: s*V*P/1000
unit: mV
tolerance: 0.5%

## Output: {s} µV/V/mmHg, {V} V, {P} mmHg?

::: misses
- [any] $sVP$.
:::
:::

::: check
given: R = 1 | 20; N = 8 | 24; G = 1 | 10000
answer: R/(2^N*G)*1e6
unit: µV
tolerance: 0.5%

## Input-referred step: {R} V, {N} bits, gain {G}?

::: misses
- [any] $R/(2^NG)$.
:::
:::

::: check
given: a = 0.1 | 5; b = 0.1 | 5; c = 0.1 | 5
answer: sqrt(a^2 + b^2 + c^2)
tolerance: 0.5%

## Combined error: {a}, {b}, {c}?

::: misses
- [any] Root sum of squares.
:::
:::
:::
