neuroresp documentation·GitHub·phrenic simulator
Respiratory motion in fMRI
Why breathing shows up in fMRI motion logs and how to separate it from head movement
Every breath changes the magnetic field at the head. Because echo-planar imaging maps magnetic field frequency to position, that small shift slides the whole brain along the phase-encoding (PE) axis even when the head stays still. Realignment records the slide as head motion, and framewise displacement (FD) turns it into censored frames. In the Human Connectome Project (HCP, 3T and 7T), this field shift grew steeply with body mass index (BMI) and drove half of all frames flagged by raw FD at 0.20 mm.
1
Opposite polarity and the scanner axis
The field shift follows the phase-encoding direction, so reversing that direction (LR to RL at 3T, AP to PA at 7T) flips the apparent image shift while the physical nod of the head keeps the same direction. At 7T, the shift moves onto the front–back axis and grows by roughly 40%.
- apparent PE shift (RMS) at the HCP median BMI
- 7T/3T shift in mm (1.54 from field strength and voxel geometry, before averaging)
- within-volume averaging factor at this TR and breathing rate
- the same field in parts per billion, equal at 3T and 7T (from the 3T in-phase gain)
- physical nod (z), identical in both directions
In HCP, PE translation reversed sign between opposite polarities in almost every participant (99.6% at 3T, 96% at 7T), and the observed 7T/3T scaling matched the predicted 1.4× ratio after within-volume averaging.
2
Body size and frame censoring
Raise BMI and the cyclic PE trace grows, FD crosses 0.20 mm on more breaths, and censoring (each flagged frame plus one before and two after) spreads across the run. Removing or filtering the field component keeps genuine movement flagged.
- of frames censored
- censored by raw FD at 0.20 mm
- mean FD
- field shift (RMS PE translation)
In HCP 3T, raw 0.20 mm censoring more than doubled from normal weight to BMI ≥ 30 (39% to 85%; falling to 21% to 49% after field removal), and 0.10 Hz low-pass filtering shrank median FD almost tenfold (0.153 to 0.017 mm), which is why low-pass thresholds rescale to roughly 0.02–0.03 mm.
3
TR, breathing rate and Nyquist
Motion parameters sample breathing once per volume. At TR 0.72 s, volume samples capture every breath; once breathing passes the Nyquist limit, 1/(2·TR), the samples fold into a slower false wave that fixed notch filters miss.
- Nyquist limit, 1/(2·TR)
- true breathing rate
- rate the samples show
- rate from peak detection on the samples
4
The matching neuroresp motion command
Updates from the scanner, TR, method, and threshold settings above. Choose your motion-file format to copy the command.
Model details and HCP calibration
Each setting simulates one 14.4-minute resting run. A breathing trace with natural breath-to-breath variation and occasional sighs drives three parts of the six motion parameters: the field shift on the PE axis (0.0375 mm per respiratory SD at the HCP median BMI, with smaller field-locked roll and yaw at 3T: 2.8 and −1.5 mrad/mm), the physical nod (z 0.018 mm, pitch 0.013° [0.011 mm arc at 50 mm], y 0.004 mm), and head motion the belt does not predict. Field strength and voxel geometry predict a 7T/3T displacement ratio of 1.54 before averaging, which drops to 1.41 at participants’ breathing rates (1.38 observed). Field amplitude scales with BMI following the HCP regression (β = 0.74 on log amplitude), and unpredicted motion is tuned so raw, field-removed, band-stop, and low-pass FD match HCP 3T censoring rates (39%, 61%, and 85% raw across BMI < 25, 25–30, and ≥ 30; 21%, 32%, and 49% after field removal) and medians (0.153, 0.121, and 0.017 mm). Filters, FD, and censoring match neuroresp.motion: fourth-order Butterworth filters applied forwards and backwards, Power FD with a 50 mm head radius, and padding of one frame before and two after each flagged frame.
Source: Lindsay, S. (2026, manuscript in preparation). Respiratory magnetic field shifts in fMRI realignment parameters: body size bias in motion censoring and belt-free breath timing. The routines live in neuroresp; see the motion usage guide and scientific approach.
© 2026 Shane Lindsay. Text and figures licensed under CC BY 4.0; code under the MIT licence as part of neuroresp.