Method Comparisons and Measurement Limits
Choosing a respiratory method depends on which recordings you have and which physiological quantity you need. Average breathing rate, individual breath timing, inspiratory phase, relative breath depth, and rare deep sighs each place different demands on the sensor. See Scientific Approach for the underlying signal models and Usage for command syntax.
Choosing a respiratory measurement method
| Method | Representative tools | Required inputs | Temporal resolution | Best suited for | Main limits |
|---|---|---|---|---|---|
| Direct airway flow | neuroresp airflow, BreathMetrics |
Spirometer, pneumotachograph, or nasal cannula | Native sensor rate (upsampled to 60 Hz when slower) | Breath landmarks, active inspiration and expiration, pauses, flow shape, and calibrated ventilation | Requires airway hardware; nasal pressure requires square-root linearisation and is uncalibrated by default |
| Pneumatic or RIP belt | neuroresp belt, NeuroKit2, physiopy |
Chest or abdominal belt (single or paired RIP bands) | Native sensor rate | Breathing rate, breath intervals, slow variation, and within-person chest-wall contour shifts on DC-coupled bands | Scanner straps clip on deep breaths and drift during holds under AC coupling; turnarounds lag or lead airway zero-flow across people |
| Multiband slice stacks | neuroresp extract, Hocke & Frederick (2021) |
Raw 4D multiband EPI + BIDS SliceTiming and PhaseEncodingDirection |
shots / TR (typically 5 to 25 Hz) | Beltless breath timing and phase at long TRs, and Echo-1 extraction in multi-echo fMRI | Requires unrealigned 4D NIfTIs; polarity depends on scan phase-encoding direction; degrades during large head nodding |
| Interleaved single-band passes | neuroresp extract (interleaved_2pass) |
Raw single-band 4D EPI with odd/even SliceTiming passes |
2 / TR (typically 0.7 to 1.0 Hz) | Legacy single-band scans where breathing exceeds the volume Nyquist limit | Requires separated odd and even slice passes; lower sampling rate than multiband stacks |
| Full-volume PE motion | neuroresp motion, Power et al. (2019), Fair et al. (2020) |
Six-parameter rigid motion file | 1 / TR | Fast-TR scans (TR ≤ 0.8 s) and filtering respiratory shifts from framewise displacement | Aliases fast breathing at TR ≥ 1.4 s; mixes thoracic field shifts with head pitch |
| Belt and MRI cycle fusion | neuroresp fuse |
Belt and MRI breath tables from the same scan | Complete breath cycles | Recovering continuous breath timing when a scanner belt clips or slips loose mid-scan | Mixed units prevent pooled depth analysis; belt clipping still censors sigh counts |
| Complex phase unwrapping | Jaffray et al. (2024) | Reconstructed magnitude and phase EPI | 1 / TR | Direct background field measurement without tissue-edge weighting | Raw phase images are rarely saved or shared in public archives |
| Cardiac slice sorting | happy in rapidtide (Aslan et al., 2019) |
Raw 4D multiband EPI | ~10 to 25 Hz | Cardiac pulsation around 1 Hz | Targets cardiac pulsation; complements respiratory extraction |
| BOLD deep learning | Addeh et al. (2025, 2026) | Preprocessed 4D BOLD | Slow envelope (~0.01 to 0.1 Hz) | Estimating slow respiratory variation when raw images and belts are unavailable | Produces slow envelopes without individual breath phase; reads physiology from cortical BOLD |
| Chest ECG morphology + RSA | neuroresp meg, Moody et al. (1985) |
M/EEG file or 1D ECG trace (> 80 Hz) | 4 Hz waveform (1 Hz slow variation) | Beltless MEG and EEG studies, including older adults where heart-rate variability declines | Requires clean R peaks; inspiratory sign is approximate and becomes uncertain when vagal RSA is flat |
| Continuous MEG head coils | neuroresp meg --source chpi |
Pre-MaxFilter Elekta cHPI or CTF HLC MEG | 4 Hz | Independent mechanical breath timing in raw MEG, even without ECG | Large head movements interrupt tracking; standalone inhalation sign is uncalibrated |
How neuroresp fits alongside existing packages
Packages such as NeuroKit2, BreathMetrics, and physiopy (phys2bids, phys2denoise) handle clean peripheral physiology well. neuroresp focuses on the cases where scanner and laboratory recordings break down, including missing or saturated belts and respiratory T2* variance that survives multi-echo tedana ICA (Lindquist et al., 2019). Across all sensors, it separates clipping from loose straps, protects breath-to-breath variability and sigh counts from artefacts, and writes one shared set of breath tables and confound matrices.
Chest-wall movement versus airway timing
A belt tracks chest or abdominal movement, whereas a spirometer or cannula measures air passing through the airway. That physical gap determines what a belt can measure:
- Between-person airway timing: Chest-wall hysteresis, strap placement, and individual differences in ribcage-to-abdomen sharing shift belt turnarounds relative to airway zero-flow. Rise fraction, I:E, and dwell times from a belt therefore differ systematically from inline airflow across participants. Use
neuroresp airflowfor absolute inspiratory, expiratory, and pause timing. - AC-coupled scanner straps: Pneumatic scanner belts include an analog high-pass filter that decays back toward baseline during a breath hold, making a flat plateau look like early recoil.
- Within-person comparisons on DC-coupled bands: When the same participant wears calibrated DC-coupled chest and abdomen RIP bands across conditions, strap geometry stays fixed and chest-wall plateaus stay flat during holds.
neuroresp belt --states --dc-coupled(with--second-columnfor paired bands) tracks within-person shifts in active expansion, recoil, and peak or trough holds down to a practical dwell resolution floor of roughly 0.3 s.
Repetition time and aliasing
Sampling once per volume sets a Nyquist limit of 1 / (2·TR) Hz (30 / TR breaths/min).
- At short TRs (TR ≤ 0.8 s), standard motion logs sample above 37 breaths/min and resolve normal breathing cleanly. Use
neuroresp motionto track breaths or remove respiratory shifts from framewise displacement. - At moderate to long TRs (TR 1.4 to 2.5 s), the volume Nyquist limit drops to 12 to 21 breaths/min, folding faster resting breathing, task breathing, and children's breathing into lower frequencies. Aligning multiband slice groups (
neuroresp extract) raises sampling to 5 to 25 Hz; on legacy single-band scans with odd/even interleaved passes, two-pass extraction doubles the single-band limit.
Measurement limits
A passing quality grade means the trace tracks breathing reliably, while each sensor supports a different set of physiological claims. Agreement between two surrogates, such as MEG head coils and ECG, confirms shared timing without establishing absolute airway phase.
| Modality | Average rate | Breath-by-breath timing | Inspiratory polarity | Relative depth | Rare deep sighs |
|---|---|---|---|---|---|
| Direct airway flow | Direct | Direct active-flow landmarks | Known with oriented flow | Relative or calibrated tidal volume | Direct in unclipped flow; explicit rail clipping censors sigh rate |
| Chest or abdominal belt | Reliable on clean belts | Reliable chest-wall cycles; offset from airway zero-flow across people | Expansion direction if known; offset from airway phase | Within-person proxy when strap fit and gain stay fixed | Prone to rail saturation; any detected clipping censors sigh rate |
| MRI slice stacks / volume motion | Reliable within sampling and motion limits | Strong on quiet multiband and two-pass scans; volume logs alias at long TR | Flips with PhaseEncodingDirection; requires external reference |
Within-person field excursion only; scales with body size across people | Can rescue timing of clipped belt sighs; absolute depth remains uncalibrated |
| ECG morphology + RSA | Reliable across adult ageing when modulation passes QC | Reliable on stationary quiet ECG; flagged when rate shifts sharply | Approximate via RSA when sign gate resolves; ambiguous when RSA is flat | Uncalibrated cardiac morphology proxy | Unvalidated |
| MEG head coils | Reliable in quiet runs passing coil preflight | Varies with head stability; validated against ECG | Uncalibrated standalone; approximate when oriented by ECG | Mechanical head-motion excursion only | Unvalidated |
| Belt + MRI fusion | Combines clean belt and MRI cycles inside the scan window | Strict within-sensor segments across switches and gaps | Follows source polarity when single-sensor; unknown when mixed | Withheld when belt and MRI units mix | Timing rescued; sigh rate censored whenever belt clipping occurs |
Three MRI limits are worth checking before interpreting extracted traces:
- Between-person amplitude: Field displacement in millimetres or parts per billion scales strongly with body size and chest-to-head geometry. Use MRI excursion for within-person depth changes across a scan, and calibrated airflow for tidal volume across people.
- Large deliberate head motion: Heavy nodding rotates slices through anatomy and mixes physical head movement into the phase-encoding shift. Both Python and AFNI backends can agree closely with each other during deliberate nodding while losing agreement with true breathing.
- Task-fMRI denoising and harmonic locking: In task scans where breathing locks to stimulus timing, regressing respiratory confounds can reduce task contrast estimates alongside physiological noise. Unusually regular paced breathing sitting directly on a multiple of 1 / TR can also be partially absorbed by slice-group reference medians and triggers a
near_tr_harmonic_lockwarning.
Benchmarks
The ECG ageing benchmark script and summary tables comparing neuroresp meg against physical chest belts and NeuroKit2 are included in benchmarks/ecg_schumann/. Cohort validation papers covering sub-TR fMRI extraction, multi-echo tedana denoising, MEG head-coil tracking, and belt-versus-airflow mechanics will be linked here once preprinted.