Respiratory Simulation Model
phrenic models breathing in the forward direction: it starts from one underlying physiological trajectory and generates paired recordings across airway, chest-wall, cardiac, and neuroimaging sensors on shared clocks. Known breath timing, volume, and mechanical state make it clear which waveform features come from the body and which come from measurement hardware.
This page covers the structure of the simulator and the mechanisms it models. You can also try the interactive breathing simulator in a browser, or work through Simulating lung mechanics and coupled breathing sensors. For recovering breathing from recorded fMRI, MEG, ECG, belts, or spirometry, see the sister package neuroresp.
Where phrenic fits
phrenic runs a two-minute multi-sensor recording in pure NumPy and SciPy in roughly 200 ms, linking spontaneous lung and chest-wall mechanics to coupled airway, wearable, cardiac, MEG, and fMRI signals plus inverse inference and an open browser companion.
| Capability | phrenic |
Clinical / ICU engines (e.g. Pulse, BioGears, SIMSPIRE) | Signal generators (e.g. NeuroKit2) | Anatomy & ventilator apps |
|---|---|---|---|---|
| Spontaneous lung, chest-wall & CO₂ physics | Yes | Strong | No (periodic templates) | Varies |
| Coupled wearable, cardiac & MRI/MEG sensors + artefacts | Yes | Limited (clinical monitors) | Partial (no mechanics or MRI/MEG) | No |
| Fast pure-Python batch runs & SBI / cross-sensor replay | Yes | Heavy (C++ / clinical focus) | Forward signals only | No |
| Free interactive browser companion | Yes | Rare | No | Paid / closed apps |
| ICU mechanical ventilation & full haemodynamics | Out of scope | Strong | No | Strong (ventilator apps) |
Architecture
The simulator lives in src/phrenic/ and keeps respiratory physiology separate from measurement hardware. Typed configs (types.py), presets (presets.py), priors (priors.py), lung and chest-wall mechanics (mechanics.py), breath-by-breath drive (drive.py), two-pool gas exchange (gas.py), pluggable sensor adapters (sensors.py, registry.py), unified forward runs (pipeline.py, api.py), and local-linear SBI (inverse.py) have zero neuroimaging, scikit-learn, or torch dependencies, and each sensor reads only the physical variable its real instrument responds to.
flowchart LR
D["Breath drive<br/>analytic lobes, quiet-rest P_mus,<br/>or external P_mus"] --> C
subgraph Core["Lung & chest-wall core (mechanics.py, drive.py)"]
C["Nonlinear Rohrer-RC lung (1 or 2 units)<br/>+ Konno-Mead chest wall"]
end
C --> S["Shared physiological state<br/>flow (fast/slow), volume, P_mus,<br/>ribcage & abdomen volumes"]
R["Real calibrated airflow<br/>(simulate_sensors_from_flow)"] --> S
subgraph Sensors["Forward sensor layer (sensors.py, api.py)"]
S --> A["Airway & gas<br/>flow, pressure, CO2 capnogram, thermistor"]
S --> B["Chest wall<br/>dual DC RIP, AC belt, impedance"]
S --> K["Cardiac<br/>shared beat clock → ECG & PPG"]
S --> M["Neuroimaging<br/>MRI B0 shifts, BOLD RRF, MEG coils"]
end
Two waveform engines and four replay or gas-exchange entry points share this framework:
analyticengine (default): Builds smooth, volume-balanced flow lobes with exact zero-flow pauses. Useful for unit tests, quickstarts, and showing hardware artefacts against clean landmarks.mechanicsengine: Drives a mechanical lung and two-compartment chest wall with inspiratory muscle effort, producing asymmetric flow, passive recoil, dynamic hyperinflation, and ribcage-abdomen phase lag.- External drive (
solve_lung_mechanics): Accepts any custom inspiratory effort curve directly, bypassing the built-in drive generator. - Real-airflow replay (
simulate_sensors_from_flow): Takes a recorded calibrated spirometry trace, optionally removes slow baseline drift, and passes it through the chest-wall split and sensor adapters. - Sensor-array replay (
replay_sensor_array): Anchors the breathing clock to one recorded sensor (airflow, belt, dual RIP, capnogram, or ECG) and draws 5th–95th percentile envelopes for the remaining sensors, with optional age, sex, height, and BMI priors (replay.py). - Two-pool CO₂ and BOLD model (
simulate_two_pool_co2): Tracks alveolar CO₂ and a slower blood-and-tissue store from airway flow beyond dead space, producing continuous arterial PaCO₂ and a delayed cortical BOLD trace (gas.py). - Typed pipeline, pluggable sensors, priors, and SBI (
simulate,simulate_batch,register_sensor,SimulationPosterior): Separates latentPhysiology, experimentalProtocol, andHardwarenuisances across a sharedPhysiologicalState, with age-blind and demographic priors (priors.py) and missing-sensor posterior inference (inverse.py). See SBI & Extensibility.
How the lung and chest-wall core works
The mechanics engine models quiet resting tidal breathing with passive expiration through three linked steps: neural drive, airway mechanics, and chest-wall movement.
1. Quiet-rest drive and interruptions
During quiet breathing, the diaphragm and ribcage muscles contract smoothly to draw air in, then relax gradually over the start of expiration. In healthy adults, this post-inspiratory braking slows early elastic recoil so peak expiratory flow arrives partway through expiration, followed by pure passive emptying and a brief quiet pause before the next breath (Albanese et al., 2016; Bates, 2009).
Resting breathing also wanders from breath to breath and across minutes. Neighbouring breaths share modest timing persistence (ar1_phi, default 0.25) and stronger depth persistence (ar1_phi_depth, default 0.50), while a slow drift (drift_amp_frac) produces minute-scale waves in ventilation across longer runs. Inspiratory effort shape (insp_drive_exp, default 0.60) controls inspiratory peak timing (tPTIF/Ti) and plateau flatness separately from airway resistance.
Planted events follow simple physical rules. Sighs deepen one breath, lengthen its expiratory pause, and make the following breath slightly shallower. Peak breath holds and brief swallows (~0.6 s) close the glottis, holding flow at zero while lung volume stays trapped, then reopen smoothly so elastic recoil resumes without a step.
By default, peak inspiratory effort scales automatically to keep steady-state tidal volume at vt_l, as a controller defending ventilation under modest load would. Passing peak_pmus_cmh2o holds effort fixed so changes in resistance or compliance alter delivered tidal volume directly.
2. Airway resistance and lung compliance
Once inspiratory effort builds, airflow depends on two opposing physical forces: airway resistance slows air moving in and out, while the elastic recoil of the lungs and chest wall pulls volume back toward rest (Otis et al., 1956; Mead, 1961; Bates, 2009). Together, resistance and compliance set the passive emptying time constant of the lung. Stiff, low-compliance lungs hold less air for a given effort and empty quickly; high-resistance or highly compliant lungs empty slowly with a long tapering tail.
Small airways also narrow during expiration as lung volume falls toward rest. Raising expiratory resistance (exp_resistance_ratio) and low-volume narrowing (volume_resistance_slope) produces the main resting signs of mild-to-moderate bronchoconstriction: peak expiratory flow arrives earlier (lower tPTEF/Te), the flow-volume loop scoops inward near the bottom of the breath, and the end-expiratory pause shrinks. When passive emptying outlasts the gap before the next breath, air stays trapped at end expiration and resting lung volume climbs, producing dynamic hyperinflation (end_exp_volume_l > 0).
3. Ribcage and abdomen movement
A belt around the chest or abdomen tracks wall movement across one region, whereas a spirometer measures total air passing through the mouth and nose. Following the classic two-compartment Konno-Mead model (Konno & Mead, 1967), the simulator splits total lung volume into separate ribcage and abdominal bands whose sum equals total lung volume at every sample.
Posture shifts how much each compartment carries, from abdomen-heavier breathing when supine to ribcage-heavier breathing when seated. A small time lag between the two compartments (rc_ab_lag_s) opens a realistic Konno-Mead loop and shifts each individual band's peak slightly ahead of or behind airway zero-flow. Paired calibrated DC RIP bands cancel that exchange when summed and recover lung-volume timing, while a single belt keeps the chest-wall turnaround offset. During sustained glottic holds, the internal phase lag settles to zero so both bands stay flat.
Forward sensor layer
The table below summarises how each layer turns lung and chest-wall state into an instrument signal.
| Layer | Observed signal feature | Mechanism in the simulator |
|---|---|---|
| Lung & drive core | Asymmetric emptying, lower tPTEF/Te, dynamic hyperinflation | Passive RC recoil, post-inspiratory braking, and expiratory or low-volume resistance |
| Lung & drive core | Post-sigh pause, swallows, minute-scale waves | Breath-to-breath persistence, slow drift, sigh recovery, and glottic closures |
| Chest-wall core | Single-belt turnaround offset against airway zero-flow | Ribcage-abdomen phase exchange whose sum conserves total lung volume |
| Airway adapter | Distorted nasal cannula shape, oral-leak drop, zero offset | Quadratic flow-to-pressure response on (1 − oral_leak_frac) · Q plus noise, leaving total flow and chest-wall movement unchanged |
| Capnography adapter | Square-wave CO2, EtCO2 level, tubing lag, shark-fin slope | Branched dead-space washout with tunable etco2_mmhg, two-unit emptying (ventilation_heterogeneity), and sidestream delay (capno_delay_s) |
| Thermistor adapter | Rounded sleep-lab trace with phase lag | First-order thermal lag (thermistor_tau_s ≈ 0.7 s) that smooths flow shape while keeping breath rate |
| Belt adapter | Hold decay, clipped sighs, flat dropouts | Single abdominal band through an AC high-pass filter, upper-rail clipping, and loose-strap freezes |
| DC RIP & motion | Slight strap creep on holds; fidget spikes on MRI, MEG, PPG | Mild viscoelastic drift and ~3 mL cardiac ripple on DC RIP when noise_level > 0; motion_intervals_s injects non-respiratory movement into MRI, MEG, PPG, and impedance |
| Thoracic impedance adapter | Bedside respiratory trace with cardiac ripple | Ribcage excursion plus beat-locked systolic dips from the shared cardiac clock |
| Cardiac adapters | RSA, ~0.1 Hz Mayer waves, inspiratory pulse-height dips | Shared beat clock modulated by lung volume and Mayer waves, driving QRS-modulated ECG (Moody et al., 1985; Yasuma & Hayano, 2004) and finger PPG with ppg_pwa_scale pulsus paradoxus, dynamic PTT, and baseline wander (Charlton et al., 2017) |
| MEG head-coil adapter | Small AP and pitch nodding with postural drift | Volume-coupled meg_chpi_ap_mm and lagged meg_chpi_pitch_deg, plus small ballistocardiographic pulses |
| MRI adapter | Slow-TR aliasing and scan-polarity sign flips | Total lung volume scaled to signed phase-encoding shift (Raj et al., 2001; Power et al., 2019), sampled on whole-volume (1/TR) and sub-TR shot clocks |
| BOLD CO2 adapter | Delayed cortical BOLD dip 8–15 s after deep sighs | Rolling 6 s respiratory variation (RV) convolved with the Birn et al. (2008) Respiration Response Function on the volume clock |
simulate_sensors_from_flow() reuses these same adapters on recorded spirometry, passing real airflow straight through the Konno-Mead split and any chosen hardware artefacts.
Physiological dimensions and simulator parameters
Parameters are grouped into five physiological domains so it is clear which sensors can observe each trait. Single belts, MRI field shifts, and ECG track pace, timing variability, slow depth waves, and cardiac coupling. Absolute tidal volume, direct airway flow shape, airway load, expired CO2, and nasal-versus-oral route mostly require airflow, dual RIP, or capnography.
| Domain | Physiological dimension | phrenic parameter(s) |
Primarily observable in |
|---|---|---|---|
| Rhythm & timing | Breathing pace | rate_bpm |
All respiratory sensors (within scanner TR Nyquist limits) |
| Rhythm & timing | Breath-to-breath timing irregularity | rate_sd_bpm |
Airflow, belts, sub-TR MRI |
| Rhythm & timing | Adjacent-breath timing persistence | ar1_phi |
Multi-minute airflow and unclipped belts |
| Volume & depth | Tidal volume and depth variability | vt_l, vt_cv, ar1_phi_depth |
Calibrated airflow and DC RIP (relative variability in unclipped belts) |
| Volume & depth | Slow depth waves (0.01-0.05 Hz) | drift_amp_frac |
Unclipped belts, DC RIP, airflow, BOLD RRF |
| Volume & depth | Sighs and post-sigh recovery | sigh_times_s, sigh_scale, post_sigh_pause_s, post_sigh_scale |
Airflow, DC RIP, unclipped belts, BOLD RRF |
| Airway contour & mechanics | Inspiratory duty cycle and drive magnitude | duty_cycle, peak_pmus_cmh2o |
Calibrated airflow and nasal pressure |
| Airway contour & mechanics | Inspiratory peak timing and flatness | insp_drive_exp |
Direct airflow and nasal cannula pressure (largely belt-blind) |
| Airway contour & mechanics | Expiratory braking and airway load | braking_tau_s, resistance_cmh2o_s_l, compliance_l_cmh2o, exp_resistance_ratio, volume_resistance_slope |
Calibrated airflow, flow-volume loops, and within-person load shifts |
| Airway contour & mechanics | Ribcage-abdomen sharing and phase | rc_fraction, rc_ab_lag_s |
Dual-band DC RIP (paired with airflow for volume calibration) |
| Gas & breathing route | Expired gas level and dead space | etco2_mmhg, dead_space_l |
Mainstream and sidestream capnography |
| Gas & breathing route | Ventilation heterogeneity | ventilation_heterogeneity |
Capnography Phase III slope (weakly resolved by flow alone) |
| Gas & breathing route | Nasal vs oral breathing route | oral_leak_frac |
Paired nasal cannula pressure versus chest-wall RIP or total flow |
| Cardiorespiratory coupling | Respiratory sinus arrhythmia (RSA) and Mayer waves | heart_rate_bpm, rsa_amp_bpm, mayer_amp_bpm |
ECG and PPG beat intervals paired with breathing |
| Cardiorespiratory coupling | Peripheral pulse-wave amplitude (PWA) | ppg_pwa_scale |
Finger PPG pulse height (distinct from heart-rate RSA) |
Default quiet-rest runs remain open-loop (chemo_gain = 0, cue_strength = 0), while opt-in closed-loop two-pool CO₂ chemoreflex (chemo_gain > 0), inhaled CO₂ blocks (Protocol.inspired_co2_blocks_s), active expiratory hold shaping (exp_active_hold_frac), causal cue-coupled phase locking (Protocol.cue_times_s, cue_strength), and arterial-stiffness PPG scaling (arterial_stiffness) are available on Physiology and Protocol.
Comparison with real quiet-rest human recordings
To check how closely the simulator matches real resting breathing, we compared model="analytic", preset="quiet_rest", and preset="mild_bronchoconstriction" (matched to the cohort median rate of 12.5 breaths/min and 0.40 L tidal volume) against all 30 adults breathing normally at 0 cmH2O in the open-access PhysioNet CPAP dataset (Guy et al., 2023; 100 Hz calibrated Venturi airflow with simultaneous chest and abdominal circumference bands).

Figure 1. Phase-aligned average breath shapes across 30 real quiet-rest adults (blue median with 25–75% IQR and 10–90% envelope) overlaid with analytic (dashed grey), mechanics: quiet_rest (teal), and mechanics: mild_bronchoconstriction (orange). Panels show normalised airway flow (A), lung volume (B), tidal flow–volume loops (C), and normalised ribcage versus abdomen excursion (D).
Across inspiration (0–40% of the cycle), quiet_rest tracks the real human median closely in both flow and volume, whereas the symmetric analytic wave peaks too late. On expiration, quiet_rest matches peak expiratory timing and the end-expiratory pause, but its passive recoil peak is sharper and taller than the CPAP cohort (−1.47 vs. −0.73 relative to the inspiratory peak). Two effects account for that difference: real subjects flatten quiet expiration through laryngeal and muscular braking, and the CPAP Venturi mask adds apparatus resistance and a low-flow deadband. In mild_bronchoconstriction, elevated low-volume resistance and two-unit heterogeneity pull peak expiratory flow earlier and scoop the low-volume tail.

Figure 2. Six breath-shape and thoracoabdominal metrics extracted with neuroresp.analyse_airflow() across all 30 real CPAP adults (blue dots; open circles mark the two participants with self-reported controlled asthma) alongside analytic, mechanics: quiet_rest, and mechanics: mild_bronchoconstriction.
Across the 30 adults, quiet_rest falls inside the empirical interquartile range for inspiratory and expiratory peak timing (tPTIF/Ti and tPTEF/Te), end-expiratory pause fraction, and chest–abdomen phase (abdomen leading ribcage). The main gap is expiratory contour flatness (0.54 vs. real median 0.70), which comes from the sharper passive recoil peak in Figure 1. Both participants with controlled asthma fall inside the healthy resting range on every metric, so presets label mechanical states directly.
Calibration status across model components and sensors
| Component / sensor | Current basis | Open calibration TODO |
|---|---|---|
Quiet-rest airflow & dual RIP (quiet_rest) |
Checked against 30 quiet-rest adults in PhysioNet CPAP (0cmH2O_norm; Guy et al., 2023) on tPTIF/Ti, tPTEF/Te, flatness, pauses, and Konno-Mead phase |
Check seated posture (seated_rest) and breath-to-breath AR(1) / OU slow drift against longer multi-minute rest and overnight recordings |
Bronchoconstriction presets (mild/moderate) |
Textbook tidal mechanics (Otis et al., 1956; Bates, 2009) reproducing lower tPTEF/Te, hyperinflation, and shark-fin emptying |
Calibrate against paired tidal spirometry and RIP recordings from acutely bronchoconstricted participants |
| Nasal cannula pressure & AC scanner belt | Standard quadratic pressure law and first-order high-pass with rail clipping and loose-strap dropouts | Check cannula low-flow deadband, oral leak attenuation, and real belt noise and stiction spectra |
Capnogram (capnogram_mmhg) |
A 0.20 s mixing time gives 10–90% expiratory upstrokes of 0.50 s during spontaneous breathing and 0.58 s during controlled ventilation, close to 0.53 and 0.58 s across 42 CapnoBase recordings | Separating airway washout from sampling-line delay requires synchronised flow |
Sleep thermistor (thermistor) |
Textbook ~0.7 s first-order thermal lag | Check thermal lag constant and amplitude distortion against paired polysomnography thermistor and nasal-pressure recordings |
Chest ECG (ecg) |
QRS tilt, RSA, and ~0.1 Hz Mayer waves checked against neuroresp meg (sister package) rate recovery |
Calibrate age-stratified QRS-modulation depth and Mayer-wave variance against resting ECG across the adult lifespan |
Finger PPG (ppg) |
Textbook systolic/dicrotic template with RSA, P_mus-linked pulsus paradoxus, and dynamic PTT |
Check pulse-amplitude modulation across instruments and recording conditions |
| Thoracic impedance | Beat-locked cardiac ripple coefficient (0.025 Ω) calibrated to a 6.6% median ripple across 18 usable BIDMC bedside records | The monitor gives a relative ripple target; absolute impedance gain depends on hardware and electrode placement |
MEG head coils (meg_chpi_*) |
Volume-coupled AP shift, lagged pitch nodding, micro-BCG, and slow postural drift | Calibrate displacement-per-litre gains, phase offsets, and fidget bursts against Elekta cHPI and CTF HLC MEG cohorts |
fMRI PE shift & delayed BOLD (mri_*, bold_rv_rrf) |
Ideal signed B0 PE displacement on dual clocks + rolling 6 s RV convolved with Birn et al. (2008) RRF | Uncalibrated idealised imaging traces; omit 3D registration noise, head-motion mixing, and regional BOLD heterogeneity |
Scope and limits
The mechanics engine is built for quiet resting breathing, with a few explicit boundaries:
- Tidal rest with passive expiration: Elevated-resistance presets represent mild-to-moderate resting tidal bronchoconstriction. Forced spirometry (FEV1/FVC dynamic airway collapse) and severe exacerbations with active abdominal expiration lie outside scope.
- Mechanical regimes: Presets label resting mechanical states (supine rest, seated rest, mild and moderate resting bronchoconstriction) directly, since well-controlled asthma often looks normal at quiet rest.
- Open-loop sleep presets and passive Starling airway: Sleep presets (
cheyne_stokes,obstructive_apnoea) use prescribed rhythmic modulation and occlusion windows rather than collapsible-airway Starling dynamics, and closed-loop CO₂ chemoreflex feedback (chemo_gain > 0) omits hypoxic (O₂) drive. - Simplified imaging and vascular hardware: Synthetic MRI and PPG traces omit 3D image-registration noise, arterial-tree compliance, and regional BOLD heterogeneity.
Appendix: Equations and solver details
For reference, the exact expressions implemented in mechanics.py, drive.py, sensors.py, and api.py are:
- Inspiratory muscle pressure P_mus(t): For normalised inspiratory time u = t / Ti in [0, 1], effort rises briskly and rounds smoothly into peak inspiration as 0.5 · P_max · (1 − cos(π · u^p)), where p =
insp_drive_exp(default 0.60). Over early expiration s = t − Ti in [0, T_brake], where T_brake = min(Te, 2.5 ·braking_tau_s), optional active hold (exp_active_hold_frac) maintains P_max overhold_s = min(0.8 · T_brake, exp_active_hold_frac · T_brake)before tapering as 0.5 · P_max · (1 + cos(π(s − hold_s) / (T_brake − hold_s))), then stays at zero for s ≥ T_brake. - Causal cue-coupled timing and closed-loop CO₂: When
cue_strength > 0and a cue falls in a breath, only post-braking expiration after cue onset is nudged towardcue_target_phase, leaving pre-cue muscle pressure untouched. Whenchemo_gain > 0, a causal two-pool alveolar/tissue CO₂ state (with baseline resting CO₂ production fixed from baseline ventilation) feeds delayed, first-order smoothed PaCO₂ back into breath amplitude;Protocol.inspired_co2_blocks_sraises inspired CO₂ in both the controller and capnogram. - Quiet-rest variability: Breath-to-breath timing and depth innovations follow stationary AR(1) processes with coefficients
ar1_phi(default 0.25) andar1_phi_depth(default 0.50). Slow drift evolves across breaths as a stationary Ornstein-Uhlenbeck process with a 50 s correlation time, scaled bydrift_amp_frac(inactive whenvt_cvorrate_sd_bpmis zero). - Equation of motion: P_mus(t) = R_eff(V, Q) · Q(t) + R2 · |Q(t)| · Q(t) + V(t) / C, with dV/dt = Q(t), where R_eff(V, Q) = R_phase · (1 +
volume_resistance_slope· exp(−max(V, 0) / 0.22)) and R_phase equals R1 during inspiration (P_mus − V/C ≥ 0) and R1 ·exp_resistance_ratioduring expiration. When R2 = 0,braking_tau_s= 0, and R_eff is constant, passive expiration reduces to exact exponential decay with τ = R1 · C. - Numerical integration and glottic opening: Volume is integrated using fourth-order Runge-Kutta sub-stepping scaled to at least 500 Hz and 20 steps per minimum R · C time constant. Glottic closures set a conductance factor g(t) = 0, reopening over a 60 ms raised-cosine ramp, and output flow is evaluated algebraically as g(t) · Q(P_mus − V/C).
- Konno-Mead chest-wall split: V_rc(t) = f_rc · V(t) + u(t) and V_ab(t) = (1 − f_rc) · V(t) − u(t), where u(t) relaxes toward f_rc · (1 − f_rc) ·
rc_ab_lag_s· Q(t) with time constant max(0.06 s, 0.5 · |rc_ab_lag_s|), ensuring V_rc + V_ab = V at every sample. - Two-unit parallel lung heterogeneity: When
ventilation_heterogeneityh > 0, compliance splits into two parallel units (C/2 each) sharing P_mus(t) and glottic conductance, with fast branch resistance 2·R1·(1 − 0.72·h) and slow branch resistance 2·R1·(1 + 2.20·h) plus weighted expiratory narrowing. As h → 0, total volume V_fast + V_slow and total flow Q_fast + Q_slow collapse identically to the single-unit equation. - Airway pressure and AC belt: Nasal pressure is sign(Q) · Q² + 0.1 plus Gaussian noise; the AC belt passes the scaled abdominal compartment through a first-order high-pass filter with cutoff
ac_highpass_hz, followed by optional upper-rail clipping and loose-strap flatlines. - Capnography, thermistor, impedance, MEG coils, and BOLD RRF: Capnography advects CO2 through a 1D branched anatomical dead space (
dead_space_l: 40% shared trachea, 30% fast branch, 30% slow branch) with 0.20 s mixing andcapno_delay_stubing delay. The thermistor applies a first-order low-pass filter (thermistor_tau_s); thoracic impedance scales V_rc with beat-locked systolic dips; MEG head coils couple V to AP shift and lagged pitch with gentle drift; andbold_rv_rrfconvolves rolling 6 s RV with the Birn et al. (2008) RRF onmri_vol_time_s.
References
- Albanese, A., Cheng, L., Ursino, M., & Chbat, N. W. (2016). An integrated mathematical model of the human cardiopulmonary system: model development. American Journal of Physiology-Heart and Circulatory Physiology, 310(7), H899–H921. https://doi.org/10.1152/ajpheart.00230.2014
- Bates, J. H. T. (2009). Lung Mechanics: An Inverse Modeling Approach. Cambridge University Press. https://doi.org/10.1017/CBO9780511627156
- Birn, R. M., Smith, M. A., Jones, T. B., & Bandettini, P. A. (2008). The respiration response function: The temporal dynamics of fMRI signal fluctuations related to changes in respiration. NeuroImage, 40(2), 644–654. https://doi.org/10.1016/j.neuroimage.2007.11.059
- Charlton, P. H., Bonnici, T., Tarassenko, L., Clifton, D. A., Beale, R., & Watkinson, P. J. (2017). Extraction of respiratory signals from the electrocardiogram and photoplethysmogram: technical and physiological determinants. Physiological Measurement, 38(5), 669–690. https://doi.org/10.1088/1361-6579/aa670e
- Guy, E. F. S., Knopp, J., Lerios, T., & Chase, J. G. (2023). Pressure, flow, and dynamic thoraco-abdominal circumferences data for adults breathing under CPAP therapy (version 1.0.0). PhysioNet. https://doi.org/10.13026/25q9-y416
- Konno, K., & Mead, J. (1967). Measurement of the separate volume changes of rib cage and abdomen during breathing. Journal of Applied Physiology, 22(3), 407–422. https://doi.org/10.1152/jappl.1967.22.3.407
- Mead, J. (1961). Mechanical properties of lungs. Physiological Reviews, 41(2), 281–330. https://doi.org/10.1152/physrev.1961.41.2.281
- Moody, G. B., Mark, R. G., Zoccola, A., & Mantero, S. (1985). Derivation of respiratory signals from multi-lead ECGs. Computers in Cardiology, 12, 113–116.
- Otis, A. B., McKerrow, C. B., Bartlett, R. A., Mead, J., McIlroy, M. B., Selverstone, N. J., & Radford, E. P. (1956). Mechanical factors in distribution of pulmonary ventilation. Journal of Applied Physiology, 8(4), 427–443. https://doi.org/10.1152/jappl.1956.8.4.427
- Power, J. D., Lynch, C. J., Silver, B. M., Dubin, M. J., Martin, A., & Jones, R. M. (2019). Distinctions among real and apparent respiratory motions in human fMRI data. NeuroImage, 201, 116041. https://doi.org/10.1016/j.neuroimage.2019.116041
- Raj, D., Anderson, A. W., & Gore, J. C. (2001). Respiratory effects in human functional magnetic resonance imaging due to bulk susceptibility changes. Physics in Medicine and Biology, 46(12), 3331–3340. https://doi.org/10.1088/0031-9155/46/12/318
- Yasuma, F., & Hayano, J.-I. (2004). Respiratory sinus arrhythmia: Why does the heartbeat synchronize with respiratory rhythm? Chest, 125(2), 683–690. https://doi.org/10.1378/chest.125.2.683