vitabel.analysis.ventilation.capnography¶
Detection of end-tidal CO₂ (etCO₂) values and ventilations from the capnography waveform.
Attributes¶
Functions¶
Detect end-tidal CO₂ (etCO₂) values and ventilations in a capnography |
Module Contents¶
- vitabel.analysis.ventilation.capnography.logger¶
- vitabel.analysis.ventilation.capnography.detect_etco2_and_ventilations(source: vitabel.timeseries.Channel, mode: Literal['threshold', 'filter'] = 'filter', breath_threshold: float = 2, etco2_threshold: float = 3) tuple[vitabel.timeseries.Label, vitabel.timeseries.Label] | None¶
Detect end-tidal CO₂ (etCO₂) values and ventilations in a capnography waveform.
Two detection methods are supported:
'filter': An unpublished method by Wolfgang Kern (default).'threshold': The method described by Aramendi et al. in [AEA+17].
- Parameters:
- source
The capnography channel (CO₂ in mmHg).
- mode
Method to use for detecting ventilations from the CO₂ signal.
- breath_threshold
Threshold below which a minimum is identified as a ventilation (default: 2 mmHg). Used by the
'filter'method.- etco2_threshold
Threshold above which a maximum is identified as an etCO₂ value of an expiration (default: 3 mmHg). Used by the
'filter'method.
- Returns:
- The (unattached) labels
etco2_from_capnographyand ventilations_from_capnography, orNoneif the mode is unknown.
- The (unattached) labels