---
title: Ultrasound imaging
heading: Acoustic impedance and the echoes at tissue boundaries, ranging by echo time, frequency-dependent attenuation and the depth it allows, axial and lateral resolution, pulse rate and frame rate limits, and the quarter-wave matching layer on the transducer
eyebrow: S15 · Lesson 40 · Ultrasound imaging
xp: 50
---

::: hook
An ultrasound scanner is a radar for soft tissue, built from the piezoelectric transducers of lesson 4. It sends a short burst of a few megahertz into the body, listens for echoes, and turns their delays into depths and their strengths into brightness. It's cheap, portable and uses no ionizing radiation, which is why it's the first imaging test for a pregnancy or a painful gallbladder. Its trade-offs are the ones every echo system faces: higher frequencies resolve finer detail but are absorbed faster, and every line of the image costs a round-trip time.
:::

::: play
- The round-trip attenuation of an echo against depth, $2\alpha fd$ in decibels, with α ≈ 0.5 dB/(cm·MHz) for soft tissue.
- A scanner with 60 dB of usable dynamic range can image until the round trip costs 60 dB: about 12 cm at 5 MHz, 30 cm at 2 MHz.
- Higher frequency buys resolution: the readouts show the wavelength and the axial resolution for a two-cycle pulse.
:::

```sim plot
view: graph
x: d = 0..30
y: L = 0..120
slider: f = 1..15 step 0.5 = 5
slider: a = 0.3..1 step 0.05 = 0.5
plot: 2*a*f*d | samples: 200 | label: round-trip attenuation, dB (d in cm)
marker: y = 60 | label: 60 dB dynamic range
readout: depth reached with 60 dB, cm = 60/(2*a*f) | digits: 3
readout: wavelength, mm = 1540/(f*1e6)*1000 | digits: 3
readout: axial resolution (2 cycles), mm = 2*1540/(f*1e6)/2*1000 | digits: 3
```

::: predict
## Soft tissue has an acoustic impedance of 1.63 MRayl and air about 0.0004 MRayl. What fraction of ultrasound intensity reflects at a tissue–air boundary?

- [ ] About 0.7%
- [ ] About 43%
- [x] About 99.9%
- [ ] 50%

::: reveal
$R = ((Z_2 - Z_1)/(Z_2 + Z_1))^2 = ((0.0004 - 1.63)/(1.6304))^2$ = 0.999. Essentially nothing crosses into air, which is why gel couples the probe to the skin and why ultrasound can't see past lung or bowel gas. Fat against soft tissue reflects only 0.7%, enough to see without blocking the beam.
:::
:::

::: nameit
## Impedance and echoes

A medium's **acoustic impedance** is $Z = \rho c$; soft tissue is about 1060 kg/m³ × 1540 m/s = 1.63 MRayl, fat 1.38, bone about 7.8, air 0.0004. At a boundary hit squarely, the reflected fraction of intensity is

$$R = \left(\frac{Z_2 - Z_1}{Z_2 + Z_1}\right)^2$$

and $1 - R$ goes on. It's the transmission-line reflection coefficient of C10, squared for power.

## Ranging and timing

Scanners assume c = 1540 m/s everywhere, so an echo after time t comes from depth $d = ct/2$. The next pulse must wait for echoes from the deepest point, so the pulse repetition frequency is at most $c/2d_\max$, and an image of N lines takes $N \times 2d_\max/c$: the frame rate is $c/(2d_\max N)$.

## Attenuation

Soft tissue absorbs and scatters about 0.5 dB per cm per MHz, roughly proportional to frequency, so the round trip to depth d costs $2\alpha fd$ dB. Time-gain compensation raises the receiver gain with time to even out the image.

## Resolution

- **Axial** (along the beam): half the spatial pulse length, $n\lambda/2$ for an n-cycle pulse, with λ = c/f.
- **Lateral**: the beam width, about λ times the focal ratio (focal length over aperture) at the focus.

Both improve with frequency, which is limited by the depth needed: 2 to 5 MHz for abdomen and heart, 7 to 15 MHz for shallow structures.

## Matching layers

PZT ceramic has an impedance of about 30 MRayl, so most energy would reflect at its face. A quarter-wavelength layer with $Z_m = \sqrt{Z_\text{PZT}Z_\text{tissue}}$ matches them, just as a quarter-wave transformer matches transmission lines.
:::

::: example
## An echo returns after 130 µs. How deep was the reflector? How much is a 5 MHz echo from 10 cm attenuated, and what's the axial resolution of a two-cycle 5 MHz pulse?

::: solution
1. **Depth.** The echo travels there and back:
   $$\begin{aligned} d &= \frac{1540 \times 130 \times 10^{-6}}{2}\ \text{m} \\ &= 10.0\ \text{cm} \end{aligned}$$
2. **Attenuation.** The round trip costs
   $$\begin{aligned} \alpha &= 2 \times 0.5 \times 5 \times 10 \\ &= 50\ \text{dB} \end{aligned}$$
3. **Wavelength.**
   $$\begin{aligned} \lambda &= \frac{1540}{5 \times 10^6}\ \text{m} \\ &= 0.308\ \text{mm} \end{aligned}$$
4. **Axial resolution.**
   $$\begin{aligned} \Delta z &= \frac{2 \times 0.308}{2}\ \text{mm} \\ &= 0.31\ \text{mm} \end{aligned}$$

**Answer:** the reflector was 10.0 cm deep, the echo is attenuated by 50 dB, and the axial resolution is 0.31 mm.
:::
:::

::: example
## What frame rate does a 128-line image to 15 cm allow? And what impedance and thickness should a 5 MHz matching layer have, if sound travels at 3000 m/s in it?

::: solution
1. **Time per line.**
   $$\begin{aligned} t &= \frac{2 \times 0.15}{1540}\ \text{s} \\ &= 195\ \mu\text{s} \end{aligned}$$
2. **Frame rate.** 128 lines take 25 ms, so the frame rate is 40 frames per second.
3. **Matching-layer impedance.**
   $$\begin{aligned} Z &= \sqrt{30 \times 1.63} \\ &= 7.0\ \text{MRayl} \end{aligned}$$
4. **Matching-layer thickness.** A quarter wavelength in the layer:
   $$\begin{aligned} \frac{\lambda}{4} &= \frac{3000}{5 \times 10^6 \times 4}\ \text{m} \\ &= 0.15\ \text{mm} \end{aligned}$$

**Answer:** the image allows 40 frames per second, and the matching layer should be 7.0 MRayl and 0.15 mm thick.
:::
:::

::: example
## An unfocused 5 MHz transducer is 10 mm across. How long is its near field, how fast does its beam spread beyond it, and what lateral resolution does focusing at f-number 5 give?

::: solution
1. **Wavelength.** In soft tissue:
   $$\begin{aligned} \lambda &= \frac{1540}{5 \times 10^6}\ \text{m} \\ &= 0.308\ \text{mm} \end{aligned}$$
2. **Near field.** The beam stays about as wide as the transducer for
   $$\begin{aligned} N &= \frac{D^2}{4\lambda} \\ &= 81\ \text{mm} \end{aligned}$$
3. **Spread beyond it.** The beam spreads at a half-angle of
   $$\begin{aligned} \theta &= \sin^{-1}\frac{1.22\lambda}{D} \\ &= 2.2° \end{aligned}$$
4. **Focused lateral resolution.** Focusing narrows the beam at the focus to about λ times the f-number:
   $$0.308 \times 5 = 1.5\ \text{mm}$$
   but only over a limited depth, which is why scanners focus electronically at several depths.

**Answer:** the near field is 81 mm long, the beam spreads at 2.2° beyond it, and focusing at f-number 5 gives about 1.5 mm of lateral resolution.
:::
:::

::: check
given: a = 1.38 | 1.63 | 1.7; b = 1.99 | 7.8
answer: ((b - a)/(b + a))^2
tolerance: 0.5%

## Ultrasound passes from a medium of {a} MRayl into one of {b} MRayl. What fraction of the intensity reflects?

::: right
Right. $((Z_2 - Z_1)/(Z_2 + Z_1))^2$ = {answer}.
:::

::: misses
- [(b - a)/(b + a)] That's the pressure reflection coefficient; square it for intensity.
- [any] Not yet. The impedance mismatch, squared.
:::
:::

::: check
given: t = 13 | 65 | 200
answer: 1540*t*1e-6/2*100
unit: cm
tolerance: 0.5%

## An echo arrives {t} µs after the pulse. How deep is the reflector?

::: right
Right. $ct/2$ = {answer} cm.
:::

::: misses
- [1540*t*1e-6*100] The sound goes there and back: halve it.
- [any] Not yet. Round-trip time.
:::
:::

::: check
given: a = 0.5 | 0.7; f = 2 | 5 | 10; d = 3 | 8 | 15
answer: 2*a*f*d
unit: dB
tolerance: 0.5%

## Tissue attenuates by {a} dB/(cm·MHz). How much is a {f} MHz echo from {d} cm deep attenuated?

::: right
Right. $2\alpha fd$ = {answer} dB.
:::

::: misses
- [a*f*d] Count the round trip.
- [any] Not yet. Attenuation coefficient × frequency × path length.
:::
:::

::: check
given: n = 1 | 2 | 3; f = 2 | 5 | 12
answer: n*1540/(f*1e6)/2*1000
unit: mm
tolerance: 0.5%

## What's the axial resolution of an {n}-cycle pulse at {f} MHz in soft tissue?

::: right
Right. $n\lambda/2$ = {answer} mm.
:::

::: misses
- [n*1540/(f*1e6)*1000] Half the pulse length: echoes closer than that overlap.
- [any] Not yet. Half the spatial pulse length.
:::
:::

::: check
given: d = 5 | 15 | 25; N = 64 | 128 | 256
answer: 1540/(2*d*1e-2*N)
tolerance: 0.5%

## An image of {N} lines reaches {d} cm deep. What's the highest possible frame rate, in frames per second?

::: right
Right. $c/(2d_\max N)$ = {answer} frames per second.
:::

::: misses
- [1540/(d*1e-2*N)] Each line needs a round trip.
- [any] Not yet. Lines times round-trip time per line.
:::
:::

::: check
given: Z = 20 | 30 | 34; z = 1.5 | 1.63
answer: sqrt(Z*z)
tolerance: 0.5%

## What impedance, in MRayl, should a quarter-wave layer have to match a {Z} MRayl transducer to {z} MRayl tissue?

::: right
Right. $\sqrt{Z_1Z_2}$ = {answer} MRayl.
:::

::: misses
- [(Z + z)/2] The quarter-wave match uses the geometric mean.
- [any] Not yet. The quarter-wave transformer.
:::
:::

::: check
kind: parts
given: f = 2 | 5 | 10; D = 6 | 12 | 20; F = 2 | 4

## An ultrasound transducer {D} mm across works at {f} MHz in soft tissue (1540 m/s).

::: part
answer: (D*1e-3)^2/(4*1540/(f*1e6))*1e3
unit: mm
tolerance: 0.5%

### How long is its near field?

::: misses
- [(D*1e-3)^2/(1540/(f*1e6))*1e3] The near field is $D^2/4\lambda$.
- [any] $D^2/4\lambda$.
:::
:::

::: part
answer: 1540/(f*1e6)*F*1e3
unit: mm
tolerance: 0.5%

### What lateral resolution does focusing at f-number {F} give?

::: misses
- [any] About λ times the f-number.
:::
:::
:::

::: check
kind: derivation
vars: t = 1..300, d = 1..30

## Sound travels at 1540 m/s in tissue.

::: step
answer: 1540*t*1e-6/2*100

### How deep, in centimeters, is a reflector whose echo returns after t µs?
:::

::: step
answer: 1540/(2*d*1e-2)

### What is the highest pulse rate that lets echoes from d cm return before the next pulse?
:::

::: right
Right. Depth and pulse rate trade directly, and with them frame rate.
:::
:::

::: explain
## Why must an ultrasound system trade imaging depth against resolution?

::: model
Resolution along the beam is set by the pulse length, and a pulse of a given number of cycles is shorter at higher frequency, so higher frequencies resolve finer detail; the beam can also be focused more tightly. But tissue absorbs ultrasound at a rate roughly proportional to frequency, and an echo must survive the round trip with enough strength to rise above the receiver's noise. At a fixed dynamic range, the depth that can be imaged falls in inverse proportion to frequency. So deep organs are scanned at a few megahertz with coarser resolution, and superficial structures such as tendons, thyroid or blood vessels near the skin are scanned at 10 MHz or more with sub-millimeter detail.
:::
:::

::: practice

::: check
given: a = 0.0004 | 8; b = 1 | 1.7
answer: ((b - a)/(b + a))^2
tolerance: 0.5%

## Intensity reflection: {a} → {b} MRayl?

::: misses
- [any] $((Z_2 - Z_1)/(Z_2 + Z_1))^2$.
:::
:::

::: check
given: a = 0.3 | 1; f = 1 | 20; d = 1 | 25
answer: 2*a*f*d
unit: dB
tolerance: 0.5%

## Round-trip loss: α = {a}, {f} MHz, {d} cm?

::: misses
- [any] $2\alpha fd$.
:::
:::

::: check
given: d = 2 | 30; N = 32 | 512
answer: 1540/(2*d*1e-2*N)
tolerance: 0.5%

## Frame rate: {d} cm, {N} lines?

::: misses
- [any] $c/(2d_\max N)$.
:::
:::
:::
