Brain–Body–Cognition

Documentation·GitHub·neuroresp

phrenic

Mechanistic model of human breathing across physiological sensors

View:·· Speed:····

Zoom30 s

Anatomy

···

Flow against volume

Chest against abdomen

Statistics

How it works

This browser port of phrenic runs the same physics engine as simulate_respiration in Python, so you can see how different sensors read the same breaths. Its sister package, neuroresp, works in the other direction, recovering breathing from recorded fMRI, MEG, ECG, belts, and airflow.

One lung model, every sensor

Three views

Live and Snapshot defaults use textbook resting-adult values; Reconstruct demographic priors come from multi-cohort resting lifespan curves. Full equations and real-data comparisons are in the phrenic model and calibration notes and tutorial.

© 2026 Shane Lindsay. Text and figures licensed under CC BY 4.0. Simulator code from phrenic under the MIT licence. 3D anatomical meshes adapted from BodyParts3D (© DBCLS, CC BY 4.0) via open-anatomy-3d. Real sample snippets in Reconstruct come from open-access recordings in PhysioNet CPAP (CC BY 4.0) and Schumann et al. (2025).