123 Main Street, New York, NY 10001

Capnography / Respiratory Gas: IR AFE + Compensation Guide

← Back to: Medical Imaging & Patient Monitoring

Capnography is reliable only when the optics + analog front end + timing are designed for moisture, drift, and delay—not when software tries to “fix” unstable raw signals. This page shows how to choose mainstream vs sidestream architecture, build an IR modulation + synchronous-demod chain, and apply P/T/H compensation, calibration, and waveform checks so EtCO₂ stays comparable over months.

H2-1 · What capnography measures (and what “EtCO₂” really means)

Practical definition

Capnography measures the time-varying CO₂ waveform in the breathing cycle, while capnometry reports numeric CO₂ values derived from that waveform. EtCO₂ is the end-expiratory CO₂ value near the plateau end, so it is only meaningful when the system response, transport delay, and waveform phase structure allow the plateau to be captured without distortion or drift.

Capnography vs capnometry

  • Capnography = waveform-first. The primary output is the CO₂ trace vs time, enabling phase interpretation, breath quality checks, and trend stability.
  • Capnometry = number-first. Values such as EtCO₂, FiCO₂, and breath rate are computed from the waveform and decision logic.
  • Key takeaway: a “reasonable number” can still be wrong if the waveform is delayed, bandwidth-limited, or baseline-shifted. Waveform quality is the root constraint.

The three numbers that must match the waveform

EtCO₂ (end-tidal CO₂): taken near the end of the expiratory plateau. It depends on (1) the plateau being present, (2) sufficient dynamic response to reach it, and (3) correct timing alignment if sidestream transport delay exists.
FiCO₂ (inspired CO₂ / baseline): approximated from the near-zero baseline region. A rising baseline is a red flag for rebreathing, contamination/condensation artifacts, or sampling path issues that shift the “zero”.
Respiratory rate: derived from waveform periodicity. It becomes unreliable when motion artifacts create false edges, or when long transport delay + slow response smear breath boundaries.

Waveform phases (I / II / III / IV) — what each phase “means”

  • Phase I (baseline): inspired gas / near-zero CO₂ region. Baseline lift usually indicates “zero shift” or true inspired CO₂.
  • Phase II (upstroke): transition from dead-space to alveolar gas. A very rounded/slow upstroke often signals bandwidth limits or mixing in the sampling path.
  • Phase III (plateau): near-alveolar CO₂. EtCO₂ is typically taken near the end of this plateau; poor plateau definition is a warning that EtCO₂ is not trustworthy.
  • Phase IV (inspiratory downstroke): return toward baseline. Downstroke shape can be distorted by delay/response and baseline drift.

Fast diagnosis: “numbers vs waveform” mismatch patterns

A) Numbers look stable, but the waveform looks wrong
  • Rounded upstroke / missing plateau → physical low-pass (large cell volume, mixing, slow response) or long sampling path.
  • Breath boundaries shift → sidestream transport delay not compensated or changing with sampling flow / line conditions.
  • Random steps / dropouts → condensation or contamination events intermittently attenuate the optical signal.
B) Waveform shape looks plausible, but numbers drift
  • Baseline slowly rises → “zero” drift from temperature/pressure/humidity compensation mismatch, or optical contamination shifting reference ratio.
  • EtCO₂ trends without matching waveform change → zero/span drift, pressure dependence not corrected, or reference channel aging.
  • Inter-unit inconsistency → calibration workflow differences (zero/span) more than ADC resolution differences.

Practical checklist (before trusting EtCO₂)

  1. Confirm a visible Phase III plateau exists (EtCO₂ is not meaningful without it).
  2. Verify baseline (FiCO₂) stays near zero and does not creep upward across minutes.
  3. If sidestream, confirm time alignment (transport delay compensation) is applied and stable.
  4. Check for signs of attenuation events (condensation/contamination) if the waveform intermittently collapses.
  5. Use calibration history to rule out zero/span drift before chasing “higher-resolution ADC” as the fix.
CO2 capnogram phases and where EtCO2 and FiCO2 come from Simplified CO2 waveform with four phases (I baseline, II upstroke, III plateau, IV downstroke), highlighting EtCO2 near plateau end, FiCO2 at baseline, and respiratory period (RR) between breaths. Capnogram phases → FiCO₂ baseline and EtCO₂ endpoint I II III IV time → CO₂ signal FiCO₂ (baseline) EtCO₂ (endpoint) RR period (breath) Baseline near zero Upstroke Plateau (quality check) Downstroke

Practical note: EtCO₂ is only as good as the captured plateau. If Phase III is flattened, delayed, or baseline-shifted, treat EtCO₂ as “suspect” and fix the chain first.

H2-2 · Mainstream vs sidestream: architecture trade-offs you cannot “fix by software”

Decision rule (engineering-first)

Mainstream places the optical cell at the airway for minimal transport delay and crisp phase structure, but it must manage condensation, contamination, and heating at the patient interface. Sidestream moves gas through a sampling line for flexible placement, but it introduces transport delay and physical bandwidth limits from line volume, mixing, and moisture management—these cannot be “recovered” by algorithms.

Side-by-side comparison (what matters in practice)

Dimension Mainstream Sidestream
Transport delay Near-minimal (cell at airway) Can be significant (sampling line volume ÷ sampling flow)
Dynamic response (t90) Often better plateau fidelity (less mixing) Limited by line mixing + cell volume + moisture handling
Moisture / condensation At patient interface (requires heating / robust optics) In sampling path (water trap / hydrophobic membrane / maintenance)
Contamination risk High exposure; optical window protection is critical Distributed risk (line + trap + cell); blockage/leaks matter
Mechanical constraints Airway adapter size/weight constraints Flexible placement, but depends on sampling line setup
Best fit When phase fidelity and minimal delay are top priority When placement flexibility is needed and delay is acceptable/compensated

t90 vs transport delay: “slow” is not the same as “late”

Transport delay shifts the waveform in time. It can be corrected by time alignment if stable, but it still reduces clinical/engineering usefulness when it changes dynamically. A practical estimate is: delay ≈ line volume ÷ sampling flow. For example, a ~1 m sampling line with ~1 mm inner diameter holds about ~0.8 mL; at 50 mL/min (~0.83 mL/s), transport delay is roughly ~1 s (order-of-magnitude).
t90 response describes how quickly the system reaches a new CO₂ level after a step change. If line mixing or a large cell volume acts like a physical low-pass filter, the plateau becomes rounded or shortened. Algorithms cannot recreate high-frequency information that was physically filtered out—attempting to “sharpen” it often amplifies noise and motion artifacts.

Design implications (what must be specified upfront)

Sidestream — must define these knobs
  • Sampling flow and stability (delay changes if flow changes).
  • Line length/ID (sets volume and mixing).
  • Cell volume and internal flow path (sets t90 and plateau fidelity).
  • Moisture strategy (trap/membrane) sized to prevent attenuation events and blockage symptoms.
Mainstream — must control these failure modes
  • Heating and condensation window at the adapter (baseline drift and signal attenuation if uncontrolled).
  • Optical window contamination (requires protective geometry and predictable maintenance paths).
  • Mechanical constraints (adapter mass/size affects real-world usage and repeatability).
Mainstream vs sidestream capnography system overview Two parallel block diagrams comparing mainstream and sidestream capnography chains, showing where delay, moisture control, and optics sit, and how both feed ADC and DSP outputs such as EtCO2 and waveform. Architecture overview: Mainstream vs Sidestream Mainstream (cell at airway) Airway adapter NDIR optical cell IR source drive IR AFE (TIA/PGA) ADC DSP (lock-in, filt) Outputs: EtCO₂ · FiCO₂ · waveform · alarms Condensation / heating Window contamination Sidestream (gas transported) Sampling port Sampling line (tube) Pump + water trap NDIR optical cell IR AFE (TIA/PGA) ADC + DSP Outputs: EtCO₂ · FiCO₂ · waveform · alarms Transport delay changes Moisture / blockage Key: delay ≈ line volume ÷ sampling flow (late) · t90 = step response time (slow) · software can align time, but cannot undo physical low-pass.

Practical takeaway: choose architecture by physics first (delay and bandwidth), then tune algorithms. Misplacing the root cause leads to “endless DSP tweaks” that never recover a missing plateau.

H2-3 · IR absorption basics for CO₂: what your AFE must assume

Engineering takeaway

NDIR capnography does not measure “CO₂ directly.” It measures optical attenuation that depends on CO₂ concentration, optical path length, and pressure/temperature. The transfer curve is nonlinear and drifts with source aging, window contamination, and temperature gradients. The AFE must therefore prioritize stable baseline, reference/ratio handling, and calibration hooks over raw ADC bit count.

The minimal model (enough for circuits and algorithms)

  • Absorption depends on concentration and path length: more CO₂ or longer path → more attenuation (not a perfect line).
  • Pressure and temperature reshape the curve: changing gas density and absorption characteristics shifts the same optical reading to a different CO₂ estimate.
  • Electronics and optics add their own “gain drift”: source output, detector sensitivity, and front-end gain drift can mimic real CO₂ change unless normalized.
  • Calibration is part of the measurement: the output is only comparable across devices/time when zero/span (and compensation coefficients) are controlled.

Single wavelength vs dual wavelength (reference channel)

Single channel (CO₂ band only)
  • Simpler optics and lower BOM complexity.
  • Higher sensitivity to window contamination, source aging, and temperature drift because amplitude changes look like CO₂ changes.
  • Requires stronger reliance on frequent calibration and/or tight control of contamination/heating.
Dual channel (CO₂ band + reference)
  • Uses a reference wavelength with minimal CO₂ absorption to normalize common-mode drift (aging, contamination, temperature gain shifts).
  • Improves long-term stability because the system tracks ratio / normalized attenuation, not raw amplitude.
  • Still needs calibration, but calibration becomes more repeatable and less sensitive to optics “getting dirty.”

Filter bandwidth: stability vs cross-sensitivity (keep it in CO₂ scope)

  • Wider bandwidth increases signal energy but can admit more neighboring absorption and scattering effects (notably water vapor and contamination scatter), raising cross-sensitivity risk.
  • Narrower bandwidth improves selectivity but becomes more sensitive to optical alignment, incidence angle, and temperature-related shifts; manufacturing tolerance can dominate drift.
  • Practical rule: treat the filter as a system drift component, not only a “spectral selector,” and validate with humidity/condensation stress tests.

AFE design checklist (what must be true before chasing more ADC bits)

  1. Normalization path exists (reference channel or equivalent) to reject common-mode optical/electronic drift.
  2. Modulation + synchronous detection is supported so baseline drift and ambient effects are pushed out of the measurement band.
  3. P/T inputs are available (at least as measured metadata) so compensation can be applied consistently.
  4. Calibration parameters are versioned (zero/span + compensation coefficients) to keep numbers comparable over months.
  5. Attenuation events are detectable (condensation/contamination) so the chain can flag “waveform/EtCO₂ not trustworthy.”
NDIR CO2 measurement with CO2 band and reference channel Block diagram showing modulated IR source through an optical cell, split into CO2-band and reference-band paths, feeding two AFEs and ADCs, then ratio/normalization and calibration with pressure/temperature inputs. NDIR basics: CO₂ band + reference → ratio + calibration Optical path IR source (modulated) Optical cell (gas) path length · window state Detector + filter split Two channels CO₂ band AFE (TIA/PGA) ADC REF band AFE + ADC Compute Ratio / normalize Calibration (zero/span) P / T Humidity CO₂ output waveform · EtCO₂ · FiCO₂ Nonlinear · needs calibration P/T shift · humidity matters

Practical note: stable EtCO₂ comes from a stable measurement chain (ratio + calibration + compensation), not from pushing resolution while leaving drift unbounded.

H2-4 · Optical cell design: contamination, condensation, and why “heating” is a system spec

System-first truth

Moisture and contamination are not edge cases in capnography—they are the main drivers of baseline drift, attenuation events, and “good waveform but drifting numbers.” Heating (or another anti-condensation strategy) must be specified as a system requirement, with defined warm-up time, allowed temperature gradients, and serviceability for optical windows and sampling-path components.

Failure chains: how water becomes CO₂ error

Condensation event (short-term)
  • Droplets form on windows or inside the cell → scattering/attenuation jumps.
  • Waveform amplitude collapses or becomes noisy → plateau quality degrades → EtCO₂ becomes unstable.
  • Reference normalization helps, but heavy condensation can still break the signal-to-noise budget; detection and flagging are required.
Contamination film (long-term)
  • Deposits build on optical windows → slow loss of transmission and changing scatter profile.
  • Numbers drift even if waveform shape looks plausible → calibration interval tightens, inter-unit variation increases.
  • Serviceability (replace/clean path) and reference/ratio design are the main defenses.

Mainstream vs sidestream: moisture strategy is a trade-off, not a checkbox

Choice What it improves What it costs Typical symptom when wrong
Mainstream heating Prevents condensation at airway window; stabilizes baseline Power, warm-up time, thermal gradients, mechanical complexity Start-up drift; intermittent attenuation; “plateau disappears” in humid breaths
Sidestream water trap Protects optics from liquid water; reduces sudden dropouts Maintenance; blockage risk; added delay/volume Baseline creep; sudden flow loss; step-like waveform dropouts
Hydrophobic membrane Stops liquid water intrusion; reduces contamination migration Added flow impedance; sensitivity to clogging over time Slow response (t90 worsens); breath boundaries smear
Dryer segment Reduces humidity swing; improves long-term stability Complexity, lifetime variability, added system characterization effort Device-to-device drift scatter; calibration mismatch between lots

Optical geometry: transmission vs reflection vs multi-pass (capnography scope only)

  • Transmission: intuitive geometry; window contamination directly reduces signal; serviceability matters.
  • Folded reflection: compact path; surface condition becomes more influential; requires robust contamination strategy.
  • Multi-pass: longer effective path (more sensitivity) but amplifies scatter/film effects; must be paired with strong normalization and condensation control.

Design checklist (turn “heating” into a measurable spec)

  1. Define a warm-up time target and acceptable temperature gradient across the optical window/cell.
  2. Specify the allowable condensation window (what the system must tolerate without waveform collapse).
  3. Ensure serviceability: predictable window cleaning/replacement path, and stable optical alignment after service.
  4. For sidestream, characterize delay and t90 with moisture strategy installed (trap/membrane/dryer) so performance is not “surprising” in the field.
  5. Implement attenuation-event detection so the UI/logic can flag unreliable EtCO₂ rather than silently drifting.
Optical cell moisture and contamination control as a system specification Block diagram highlighting where condensation, contamination, and heating affect mainstream and sidestream optical cells, including water trap and membrane elements, and how these factors map to drift, delay, and maintenance. Moisture + contamination → drift and dropouts (design it in) Mainstream Sidestream Airway adapter Optical window NDIR cell + AFE Key spec: heating / anti-condensation Condensation → dropouts Film → slow drift Sampling port Tube (delay) Water trap Membrane / dryer NDIR cell + AFE Trade-off: delay · maintenance · drift Moisture → blockage risk Service interval Design rule: treat heating/moisture control as a spec (warm-up, gradients, service), or drift will dominate “accuracy.”

Practical takeaway: condensation control protects waveform integrity; contamination control protects long-term comparability. Both must be engineered as part of the optical cell system.

H2-5 · IR source & detector interface: modulation choices and failure signatures

What matters most

Modulation is the practical way to move CO₂ information away from low-frequency drift and ambient interference. The source drive method, modulation frequency, and detector interface must be chosen as a single chain—otherwise common failures (aging, contamination, saturation, bias drift) will appear as “CO₂ changes” in the waveform and EtCO₂.

IR source drive: constant-current vs PWM (what changes electrically)

  • Constant-current modulation stabilizes optical amplitude against supply variation and device temperature drift, improving repeatability for ratio/normalization.
  • PWM / switching modulation is easy to implement, but it can inject edge-related noise into the detector/AFE unless the driver return path and supply filtering are tightly controlled.
  • Both approaches need a defined modulation reference for synchronous demodulation (H2-6), otherwise amplitude drift and ambient effects leak into the baseband.

Modulation frequency: a selection logic (not a magic number)

  1. Pick above the 1/f-drift-dominated region so baseline drift is reduced after demodulation.
  2. Pick within detector + AFE usable bandwidth so the modulated amplitude is not rolled off or phase-distorted.
  3. Avoid dominant interference clusters (mains-related ripple and common lighting flicker harmonics) and ensure the demod/ADC window can lock cleanly.

Detector interface: thermopile vs pyroelectric (design intuition)

Thermopile
  • Slower response and lower bandwidth; stable synchronous demodulation helps more than pushing modulation too high.
  • Large source impedance makes input bias stability and leakage paths critical (humidity/contamination can become DC error).
Pyroelectric
  • Naturally responds to changes (AC-like behavior); works well with modulation but requires careful front-end biasing and anti-saturation measures.
  • Amplitude can be sensitive to mechanical/thermal transients; robust demod + filtering is mandatory.

Failure signatures: map causes to observable symptoms

Failure CO₂-band amplitude REF-band amplitude Ratio / normalize Waveform clue
Source aging / driver weakening Slow ↓ Slow ↓ Often stable early; SNR worsens Plateau becomes noisy; small breaths fade
Window contamination film ↓ (may differ) ↓ (may differ) Shifts (common-mode rejection breaks) Numbers drift while shape looks “OK”
Detector saturation / AFE clipping Flattens at peaks May flatten too Unreliable Clipped plateau; breath boundaries distort
Bias drift / leakage (humidity) Baseline shifts Baseline shifts May look stable but offset grows FiCO₂ baseline creeps; slow “tilt” across time
IR source modulation to detector interface with failure signature tags Block diagram showing constant-current or PWM driver feeding a modulated IR source, optical cell and filter split into CO2-band and reference-band detectors, then AFE and digitization. Tags show typical failure signatures. Source drive + modulation + detector interface Drive & timing Constant-current driver PWM / switching driver Modulation reference f_mod · duty · phase IR emitter (modulated) Optics Optical cell (gas) windows · path length Filter split CO₂ band REF band Detectors & interface Thermopile Pyroelectric AFE input TIA · PGA · bias Digitize (ADC) Aging → amplitude ↓ Contam → ratio shift Saturation → clipping Bias drift → baseline ↑

H2-6 · Analog front-end & ADC: designing for tiny signals in a wet, moving world

Core rule

The hardest requirement is not raw resolution—it is baseline stability and usable dynamic range while humidity, motion, and interference continuously perturb the chain. Synchronous demodulation (lock-in) moves the measurement away from drift and ambient effects, and the ADC + digital filtering must be tied to t90 response and breath-rate dynamics so the plateau remains accurate and timely.

AFE priorities: zero stability beats “more bits”

  • TIA/PGA noise sets plateau jitter; bias stability sets FiCO₂ baseline credibility.
  • Humidity and contamination can create leakage paths; input bias planning and guarding prevent “fake CO₂ offsets.”
  • Gain strategy must prevent clipping during strong breaths while still resolving low-amplitude regions and small breaths.

Why synchronous demod (lock-in) is non-negotiable

  • Modulation moves the useful signal near fmod, away from low-frequency drift and slow baseline wander.
  • Sync demod multiplies by the known reference and then low-pass filters, rejecting ambient light flicker and a large part of 1/f behavior.
  • The low-pass corner and averaging window must preserve breath dynamics: overly aggressive filtering smears phase transitions and biases EtCO₂.

ADC and digital filtering: bind specs to t90 and breath rate

  • Sampling rate (Fs) must support stable demodulation and a clean digital filter window without aliasing.
  • Effective resolution (ENOB) must cover baseline + plateau + transient attenuation events without frequent saturation or quantization collapse.
  • Filter window should reduce plateau noise while preserving the time placement of phases—tie it to measured t90 and expected breath rate range.

Practical “noise becomes reading noise” controls (stay out of EMC deep dive)

  • Keep driver switching currents out of the detector/AFE return path; isolate the driver supply locally and control edge energy.
  • Give ADC reference a clean, quiet path; treat reference noise as direct measurement noise after demodulation.
  • Place a simple clipping/baseline monitor in the chain so the UI/logic can flag “not trustworthy” rather than silently drifting.
Analog front-end with synchronous demodulation and ADC strategy Block diagram showing detector output into TIA/PGA, then synchronous demodulation (mix with modulation reference), low-pass filtering, ADC, digital filtering window, and outputs (waveform, EtCO2, FiCO2, flags). Side blocks show major interference sources and monitoring hooks. AFE + lock-in + ADC: keep drift out of the measurement Measurement chain Detector TIA / PGA Anti-alias Sync demod × ref @ f_mod LPF ADC Fs · ENOB Digital window avg / filter Outputs waveform · EtCO₂ · FiCO₂ Mod ref Clipping check Baseline monitor Interference 1/f drift Ambient Supply ripple Rejected by lock-in + LPF Design rule: set LPF/window by t90 + breath dynamics, then choose ADC Fs/ENOB to keep baseline and plateau stable.

H2-7 · Temperature / pressure / humidity compensation: from raw signal to standardized CO₂

Practical takeaway

NDIR does not measure CO₂ directly—it measures optical attenuation. To make EtCO₂ comparable across bedside environments and sampling conditions, the signal must be normalized and then corrected using time-aligned pressure/temperature/humidity inputs, with quality gates that prevent condensation or sensor faults from becoming “CO₂ changes.”

Why pressure changes the reading (bedside + tubing + pump effects)

  • Pressure shifts can come from local restrictions, partial occlusions, or pump-induced pressure drops in the sampling path.
  • Pressure changes gas density and absorption line behavior, so the same optical attenuation can map to different CO₂ unless corrected.
  • A usable implementation needs time-aligned pressure (timestamped near the cell/sampling path), not a generic ambient reading.

Temperature drift paths: what must be tracked and what can be normalized

  • Source drift: slow amplitude changes (often common-mode if a reference band exists).
  • Detector drift: baseline and gain wander; can look like slow FiCO₂ changes.
  • Optical parts: window gradients and pre-condensation behavior change effective throughput.
  • AFE drift: bias and gain temperature coefficients translate into baseline offset unless guarded.
Placement rule
Temperature sensing should represent the dominant drift contributors (cell/window region and key analog front-end), and correction should be applied after normalization whenever possible to reduce common-mode error.

Humidity: not only condensation, but standardized output meaning

  • Water vapor affects the relationship between volume fraction and partial pressure, especially near saturated exhaled gas.
  • Ignoring humidity can turn real humidity swings into apparent EtCO₂ drift, even when the optical chain is stable.
  • Implementations can use a humidity sensor or a bounded model, but the output should carry a correction mode and quality flag.

Recommended compensation pipeline (implementable steps)

  1. Acquire CO₂-band and REF-band amplitudes (and quality indicators such as clipping/SNR), each timestamped.
  2. Normalize using ratio/scale to reduce common-mode drift (source aging, throughput changes) before environmental correction.
  3. Align P/T/H samples to the same time base (handle missing/out-of-range readings deterministically).
  4. Correct normalized signal with P/T/H to map to standardized CO₂.
  5. Output waveform + EtCO₂ + FiCO₂ with quality flags (condensation suspected, contamination suspected, sensor missing, saturation).
P/T/H compensation pipeline from normalized signal to EtCO2 Flow chart showing CO2-band and reference-band amplitudes entering quality checks, normalization, then pressure/temperature/humidity correction before output mapping to waveform, EtCO2 and FiCO2 with flags. Compensation flow: normalize → P/T/H correct → standardized CO₂ Inputs (timestamped) CO₂ band REF band Quality clip · SNR Pressure (P) Temperature (T) Humidity (H) Processing Normalize / ratio P/T/H correction Output mapping partial pressure / vol% Quality flags condense · contam · sensor Outputs Waveform EtCO₂ FiCO₂ Flags Rule: normalize first, time-align P/T/H, then correct and output with quality gates.

H2-8 · Waveform extraction & breath metrics: algorithms that survive motion and leaks

Practical takeaway

Stable capnograms come from two decisions: (1) protect the baseline and plateau with filters that respect breath dynamics, and (2) extract EtCO₂ from a validated plateau region instead of a single peak sample. Motion, leaks, and sampling-path faults must be detected as waveform signatures and converted into quality flags rather than silently reshaping the reported EtCO₂.

Denoise and baseline: choose filters by failure mode

  • Moving average reduces random jitter, but an oversized window smears phase edges and biases plateau timing.
  • Median filtering rejects spikes (motion/EMI-like bursts), but excessive use can round real rising edges.
  • Adaptive filters help when noise changes over time, but they require a freeze/rollback rule when quality drops.

Breath cycle detection: start, transition, plateau (avoid “fake breaths”)

  • Use a combination of slope/energy checks to detect cycle start, not a single threshold that motion can trigger.
  • Define the plateau as a low-slope stable region; compute EtCO₂ from a robust statistic over that region.
  • Reject cycles that violate expected phase ordering (burst spikes, clipped segments, or implausible durations).

Sidestream delay compensation: fixed vs adaptive alignment

  • Fixed delay is simple, but it breaks when sampling flow changes or tubing compliance/partial occlusion shifts the transport time.
  • Adaptive delay adjusts alignment using measured sampling flow/pump status or waveform feature matching, keeping phase boundaries consistent.
  • Delay errors show up as phase timing distortion and can make EtCO₂ appear to “jump” even when the plateau level is stable.

Abnormal signatures: identify and flag (do not “filter it into correctness”)

  • Leak: unstable or missing plateau, reduced amplitude, inconsistent cycle boundaries.
  • Rebreathing: elevated baseline (FiCO₂ rises), inspiratory segment does not return to low level.
  • Occlusion / water trap full: amplitude drops, delay increases, waveform becomes intermittent or “laggy.”
Design rule
When these signatures appear, the correct action is to raise quality flags and degrade gracefully (freeze, label, or withhold EtCO₂) instead of letting the filter reshape the value.
Waveform to event signatures for motion, leaks and sampling faults Diagram with an ideal capnogram and three abnormal patterns: leak (unstable plateau), rebreathing (baseline high), and occlusion/water trap full (amplitude down and delay shift). Each pattern is paired with a quality flag label. Capnogram signatures: stable waveform vs common anomalies Ideal waveform (stable baseline + plateau) EtCO₂ baseline low plateau stable Anomalies (recognize → flag) Leak flag: plateau unstable Rebreathing baseline high flag: FiCO₂ elevated Occlusion / water trap amplitude down delay ↑ flag: low amplitude / lag

H2-9 · Calibration, cross-sensitivity & drift control: making numbers comparable over months

Practical takeaway

Long-term EtCO₂ comparability comes from treating the optics + AFE + algorithms as one sensor: align the baseline with zero, align the slope with span, and continuously watch trend gates (ratio drift, baseline drift rate, plateau noise) so contamination, humidity shifts, or aging trigger maintenance or recalibration before they show up as “clinical CO₂ changes.”

Zero and span: what they correct (and what they do not)

  • Zero aligns the baseline so slow bias terms do not become FiCO₂ drift (optical throughput changes, AFE bias/leakage, temperature-dependent offsets).
  • Span aligns the gain/mapping so amplitude changes do not become EtCO₂ gain error (source aging, detector sensitivity shift, optical efficiency drift).
  • Zero/span do not “fix everything” by themselves: cross-sensitivity and condensation still require correction + quality gating.

Reference choice and interval: define decision rules, not a single schedule

  • Zero reference must be stable and repeatable (baseline alignment is only as good as the reference stability).
  • Span reference should be a known CO₂ point (single-point span is common; multi-point is used to validate nonlinearity and residuals).
  • Interval rule: shorten calibration intervals when trend gates accelerate (ratio drift rate rises, baseline drift rate rises, plateau noise increases) or when contamination risk is high.
  • Maintenance rule: if contamination signatures dominate, cleaning/consumables replacement should be performed before repeating span calibrations.

Calibration records and versioning: the minimum for traceable comparability

Record field Why it matters Typical gate
CalVersionID Makes readings comparable across firmware/algorithm updates and service events Must be present
Zero timestamp / Span timestamp Links drift trends to last calibration and operating conditions Order consistent
Reference source ID Prevents mixing results across different reference gas batches or setups Non-null
P/T/H range during cal Ensures calibration is not applied outside its supported range Within bounds
Residual summary (pre/post) Shows whether the calibration actually fixed the bias/gain and flags cross-sensitivity Below threshold

Cross-sensitivity paths: how non-CO₂ effects masquerade as CO₂

  • Humidity: changes the meaning of standardized output (partial pressure vs vol%) and can shift baseline behavior near saturation.
  • Pressure: pump/tubing state changes local pressure, altering absorption mapping even when true CO₂ is steady.
  • Temperature: source/detector/optics/AFE drift create slow errors that look like long-term CO₂ trends.
  • Contamination: window films and deposits change throughput and can shift CO₂/REF ratio relationships.
Engineering rule
Cross-sensitivity must be handled by correction + quality gating. If the signature points to contamination or condensation, recalibration alone will not restore comparability.

Drift monitoring: detect “getting worse” before it becomes EtCO₂ drift

  • Reference ratio trend: track normalized CO₂/REF behavior; sudden slope change often indicates contamination or optical changes.
  • Baseline drift rate: monitor FiCO₂ baseline stability and how quickly it moves over time.
  • Plateau noise: rising plateau jitter is an early warning for SNR collapse (aging, water, alignment issues).
  • Self-test gates: clipping, amplitude-too-low, sensor-missing, temperature-out-of-range should force a clear degrade mode.
Calibration flow: zero, span, cross-check and record with drift monitoring Flow chart showing calibration steps: Zero then Span then Cross-check and Record/Version. A side column shows drift monitoring gates such as ratio trend, baseline drift rate, and plateau noise. Calibration SOP + drift gates for month-level comparability Calibration flow Zero baseline / offset Span gain / mapping Cross-check residual / ref match Record / Version CalVersionID · QC PASS If fail → clean / service Apply to outputs Drift gates Ratio trend CO₂/REF drift Baseline rate FiCO₂ drift Plateau noise SNR warning Trigger action service / recal Rule: calibrate by Zero+Span, verify by cross-check, and guard by trend gates.

H2-10 · Validation & test checklist: what to measure to trust EtCO₂ in clinical use

Practical takeaway

A trustworthy EtCO₂ chain is validated by measurable dynamics (t10/t90, delay), accuracy envelopes across P/T, robustness under realistic disturbances (light, vibration, condensation, contamination), and failure-injection behavior that produces correct flags and safe degrade modes rather than silently shifting the reported value.

Dynamic response: t10/t90 and delay (mainstream vs sidestream)

  • t10/t90 step response verifies how quickly the chain reaches a new CO₂ level without overshoot or long settling tails.
  • Delay should be measured as the sum of transport delay (sidestream tubing) and algorithm/display latency.
  • Record both rise and fall behavior; asymmetry often indicates transport effects or condensation behavior.

Accuracy envelope: multi-point concentration and multi-condition P/T checks

  • Multi-point curve: validate nonlinearity and residuals after calibration across the expected range.
  • P/T matrix: validate that the P/T/H correction keeps errors bounded across realistic bedside conditions.
  • Report results as an error envelope (worst-case bounds), not only an average accuracy number.

Disturbance robustness: test phenomena and pass criteria (no EMC deep dive)

  • Ambient light: verify baseline drift and plateau noise remain bounded after demodulation.
  • Vibration / motion: verify “fake breath” triggers are rejected and quality flags engage.
  • Condensation / contamination simulation: verify the chain detects ratio shifts or amplitude collapse and does not silently bias EtCO₂.

Failure injection: expected flags and degrade behavior

  • Occlusion: amplitude down + delay up → flag low amplitude/lag; freeze or withhold EtCO₂ as configured.
  • Leak: plateau unstable → flag invalid plateau; reject cycle-level EtCO₂ extraction.
  • Water trap full: intermittent waveform + lag → flag sampling fault; prompt service/maintenance.
  • Source aging: CO₂/REF common-mode drop → aging trend; reduce confidence and trigger maintenance/calibration workflow.

Validation checklist (compact, actionable)

Test Stimulus / setup Record Pass criteria Expected flag / behavior
t10/t90 CO₂ step change t10, t90, overshoot Bounded rise/fall times No false flags
Delay Transport + algorithm Lag vs reference Within spec by mode Lag flag when abnormal
Multi-point accuracy Several CO₂ levels Residuals, envelope Envelope bounded Flag if out-of-range
P/T sweep Pressure + temp points Error vs condition Correction effective Sensor missing → degrade
Ambient light Light disturbance Baseline drift, noise Bounded drift/jitter No false breath
Vibration Mechanical disturbance False triggers rate Rejected artifacts Artifact flag when needed
Condensation Moisture challenge Ratio, amplitude Detect & gate Condense flag, degrade
Occlusion Block sampling path Amplitude, lag Correct detection Lag/low amp flag, freeze
Source aging Reduce emitter output CO₂/REF common-mode Trend recognized Aging warning, recal workflow
Capnography validation test bench: gas step, fault injection, record and criteria Test bench block diagram showing gas mixing/step source feeding a mainstream/sidestream selector and the device under test, with pressure/temperature/humidity control, disturbance and fault injection, and a recorder/criteria block for pass/fail evaluation. Validation bench: stimulate → measure → judge → flag Stimulus and measurement chain Gas mixing step / ramp Mode selector main / side Device under test optics · AFE · algo Recorder logs Criteria pass / fail Controls and injections P / T / H control Disturbance light · vibration Fault inject leak · occl · water Metrics t90 · delay

H2-11 · IC/BOM selection checklist: building blocks and “don’t forget” sensors

Procurement-ready intent

This checklist converts capnography performance drivers (drift, moisture, motion, response time, and comparability) into device categories + key parameters + example part numbers. Each block below includes “failure signatures” to help engineering and sourcing align quickly during design reviews.

Note: part numbers are starting points. Final selection must be validated against modulation frequency, sensor type, temperature range, packaging, and supply availability.

A) IR source driver (constant-current + modulation)

  • Current stability: drift here becomes amplitude drift (REF channel can reduce impact, but cannot erase all failure modes).
  • Modulation capability: frequency range + edge control must support synchronous demod/lock-in.
  • Pulsed current headroom: IR emitters often use pulsed drive for higher optical power.
  • Protection: open/short detect and temperature derating to avoid silent long-term degradation.
Example part Vendor Why it fits this block Selection notes
OPA189 TI Zero-drift op-amp for closed-loop constant-current and stability Use with MOSFET + sense R; verify modulation bandwidth needs
OPA188 TI Low offset/drift for stable current regulation over temperature Good when baseline stability matters more than raw speed
ADA4528-1 Analog Devices Zero-drift option for precision current-loop control Confirm supply rails and output swing for the chosen MOSFET/LED stack
Failure signatures (fast triage)
  • Slow amplitude decay: emitter aging or current drift/derating.
  • Breath-to-breath “sparkle”: unstable modulation timing, ground bounce, or current-loop instability.

B) Detector front-end (TIA/PGA, bias & noise)

  • Offset and drift: baseline stability (FiCO₂) is usually limited here.
  • Low-frequency noise: plateau jitter and “fake breath” triggers often come from 1/f + moisture/motion coupling.
  • Input bias current: critical for high-impedance detector interfaces.
  • Programmable gain: preserves margin as optics get dirty or emitters age.
Example part Vendor Typical role Why it is used Notes
OPA333 TI Low-drift amplifier Baseline stability and low offset for small signals Validate bandwidth vs modulation/demod strategy
OPA388 TI Zero-drift front-end op-amp Good for stable gain stages and low-frequency accuracy Check input common-mode and output swing
OPA140 TI JFET-input amplifier Low input bias for high-impedance detector interfaces Useful when bias current dominates error
INA333 TI Instrumentation amplifier Differential sensing and robust gain with common-mode rejection Use when cabling/ground noise is a primary risk
AD8237 Analog Devices Instrumentation amplifier Compact, low-power differential front-end option Verify gain-setting range and input limits
Failure signatures
  • Baseline “walks” over minutes: offset/drift, moisture-induced leakage, or reference instability.
  • Plateau jitter grows: SNR collapse from contamination/aging, or low-frequency noise dominating the passband.

C) Synchronous demod / lock-in building blocks

  • Why it matters: moving the signal away from DC reduces sensitivity to ambient light and slow drift.
  • Implementation options: analog switch demod + low-pass, or digital demod after ADC (requires timing alignment).
  • Key parameters: switch leakage, charge injection, on-resistance, and timing determinism.
Example part Vendor Use case Notes
ADG704 Analog Devices Analog switching / mux for synchronous sampling paths Check leakage/charge injection vs detector impedance
ADG884 Analog Devices Low-leakage analog switch option Useful when moisture + high impedance makes leakage dominant

D) ADC (resolution/ENOB, sampling, triggering)

  • ENOB + input noise: directly impacts plateau stability and breath metric repeatability.
  • Sampling rate: must support the demod/filter window and the desired response time (t90) without “smearing” phase features.
  • Trigger/sync: deterministic timing reduces demod phase error and delay ambiguity.
ADC example Vendor Family Why it’s a common fit Selection notes
ADS1220 TI ΔΣ Low-noise conversion for slow, small signals after demod/filter Validate data rate and digital filter latency vs response goals
ADS124S08 TI ΔΣ (multi-ch) Multi-channel option for CO₂/REF and auxiliary sensing Check mux settling vs channel count
AD7172-2 Analog Devices ΔΣ Precision conversion with strong noise performance Review filter group delay and sync features for demod alignment
AD7685 Analog Devices SAR Useful when doing digital lock-in with flexible sampling Confirm driver requirements and input settling strategy
ADS8688A TI SAR (multi-ch) Multi-channel approach for front-end plus diagnostics sampling Align channel timing with trigger strategy if extracting phase features

E) P/T/H sensors (do not omit in wet, changing environments)

  • Pressure: accuracy + response; place so it reflects the sampling path pressure (not a distant enclosure).
  • Temperature: prioritize thermal “closeness” to optics/AFE; PCB ambient temperature is often misleading.
  • Humidity: evaluate high-humidity drift and protection method (filter/membrane) for long-term stability.
Sensor Example part Vendor Selection focus Notes
Pressure MS5611 / MS5607 TE Connectivity (MEAS) Stable digital pressure sensing options used in many embedded systems Validate accuracy and response for the sampling dynamics
Pressure HSC / SSC / ABP Honeywell Industrial-style pressure sensing families with broad options Pick range/port style to match the sampling plumbing
Temperature TMP117 / TMP116 TI High-accuracy digital temperature sensing Mount location dominates real usefulness
Humidity SHT31 / SHT35 / SHT41 Sensirion Humidity families commonly used for high-humidity environments Compare long-term drift under high RH exposure and protection options

F) MCU + calibration memory + “don’t forget” reliability parts

  • Timing: stable modulation/trigger timing reduces demod phase error and delay ambiguity.
  • Parameter storage: calibration coefficients, CalVersionID, trend thresholds, last QC results.
  • Write integrity: avoid half-written coefficients (use atomic update strategy and CRC).
  • Supervision: watchdog/reset prevents “silent stale outputs” when software or peripherals hang.
Category Example part Vendor Why it’s useful here Notes
MCU STM32L4 ST Strong timers + low power; fits deterministic modulation/sampling control Pick based on peripheral set and supply constraints
MCU STM32G0 ST Cost-effective option with practical timer resources Confirm ADC/DMA resources if used for digital demod
EEPROM 24LC256 Microchip Simple I²C storage for calibration and QC records Use wear-leveling or periodic write minimization if frequently updated
FRAM MB85RC256V Fujitsu High write endurance for trend logs and frequent parameter updates Useful when drift gates and QC logs update often
Supervisor TPS3430 TI Watchdog/reset to prevent silent hangs and stale outputs Configure timeout to match processing cadence
RTC (optional) DS3231 Analog Devices (Maxim) Stable timestamps for QC logs and calibration recordkeeping Use when log integrity and traceability are requirements

G) Precision reference (and the minimum “quiet” support parts)

  • Reference stability: reference noise/drift can become apparent CO₂ noise/drift after demod and filtering.
  • Local decoupling and partitioning: keep the analog reference/AFE domain away from pulsed drive current returns.
Example part Vendor Role Notes
REF3330 TI Precision voltage reference Verify output voltage matches ADC full-scale strategy
ADR4530 Analog Devices Precision voltage reference Select for drift/noise targets; validate load/decoupling requirements
Capnography BOM map: modules and “don’t forget” sensors Block diagram showing the capnography signal chain from IR driver and source through optical cell, detector, AFE, demod, ADC, MCU, and outputs, with side blocks for pressure/temperature/humidity sensors, calibration memory, reference, supervisor, and timestamps. BOM blocks for capnography (CO₂ + REF) — short labels, clear ownership Signal chain blocks IR Driver CC + mod IR Source emitter Optical cell CO₂ + REF Detector thermo/pyro AFE TIA / PGA Demod lock-in ADC ENOB + sync MCU timing Outputs “Don’t forget” blocks Pressure Temperature Humidity Cal memory EEPROM/FRAM Reference ADC/AFE Supervisor / WDT RTC (opt.) Quality flags & trend gates Baseline · ratio · plateau noise

Request a Quote

Accepted Formats

pdf, csv, xls, xlsx, zip

Attachment

Drag & drop files here or use the button below.

H2-12 · FAQ – Capnography / Respiratory Gas

These FAQs cover definitions, architecture choices, drift/compensation, waveform-based fault detection, calibration, and test setup for IR capnography. Answers are written to be actionable for design review and troubleshooting.

1) What is the practical difference between capnography and capnometry?

Capnography is the continuous CO₂ waveform (shape and phases), while capnometry is the numeric reporting (such as EtCO₂ and FiCO₂). Numbers are useful for trends and alarms, but waveforms explain causes: leakage, rebreathing, blockage, or slow response can look “OK” in a single value yet distort the phase profile and plateau behavior.

2) What does EtCO₂ represent, and why can it differ from PaCO₂?

EtCO₂ is the end-tidal CO₂ estimated from the last part of exhalation, intended to approximate alveolar gas at breath end. PaCO₂ is arterial CO₂ from blood gas measurement. Differences are expected with dead space, ventilation-perfusion mismatch, and sampling dilution/delay. In sidestream systems, tubing compliance and flow can flatten the plateau and bias EtCO₂ low.

3) Mainstream vs sidestream—what metric should decide the choice?

The decision is primarily driven by timing metrics that software cannot fully “fix”: delay, t90 response, and mixing in the sampling path. Mainstream typically offers lower delay and faster response but faces window contamination and heating/condensation constraints near the airway. Sidestream offers flexible placement but adds pump/tube dynamics, water management, and higher delay that can blur phase transitions.

4) Why do CO₂ readings drift with humidity or condensation, and what should be checked first?

Humidity creates drift through two paths: optics and electronics. Water films and contamination change optical transmission and effective light path, while moisture-induced leakage and temperature gradients shift offsets in high-impedance front ends. First checks should include window condition, water trap status (sidestream), heater performance (mainstream), and whether the CO₂/REF ratio shifts in a way consistent with optical loss.

5) How do pressure and temperature change NDIR CO₂ readings?

NDIR absorption is nonlinear and depends on molecular density and spectral behavior, so both pressure and temperature matter. Pressure shifts effective gas density inside the sampling path, directly changing absorption strength. Temperature affects source output, detector sensitivity, and filter behavior, and can also move baseline via electronics drift. A practical implementation applies ratio/normalization first, then P/T correction, and only then converts to EtCO₂ output.

6) How should IR modulation and synchronous demod be chosen to fight drift and ambient light?

Modulation moves the measurement away from DC, reducing sensitivity to 1/f drift and ambient light changes. Choose a modulation frequency that avoids dominant interference bands and fits the optical/AFE bandwidth. Synchronous demod (lock-in) must be phase-aligned to the modulation reference; otherwise, phase error becomes amplitude error. Typical symptoms of poor alignment are plateau jitter, inconsistent breath edges, and “sparkly” waveforms under motion.

7) Which ADC specs actually matter for a clean CO₂ waveform?

ENOB and input-referred noise set plateau stability more than headline resolution. Sampling rate should be chosen around the demodulated bandwidth and the intended digital filter window so that response (t90) and phase features are not smeared. Triggering/sync capability matters when demod is digital, because sampling timing directly affects phase and amplitude. A quiet reference and stable front-end baseline often improve waveform quality more than adding ADC bits.

8) How can blockage, leaks, or a full water trap be recognized from the waveform?

Blockage usually increases delay and slows edges, often producing a rounded upstroke and reduced plateau stability. Leaks commonly bias EtCO₂ low and make the plateau unstable or “tilted” because sampled gas mixes with ambient air. A full water trap (sidestream) often causes intermittent dropouts, sudden noise bursts, and erratic baseline shifts. Reliable detection combines waveform shape checks with flow/delay consistency and quality flags rather than a single threshold.

9) How is zero/span calibration done, how often, and how is it verified?

Zero calibration sets baseline (offset) using a known low-CO₂ condition, while span calibration sets gain using one or more known CO₂ points. Calibration interval is not universal; it depends on contamination risk, emitter aging, and drift-monitoring thresholds. Verification should include a cross-check point and a stored calibration record (version ID, date/time, gas point, pass/fail) so long-term comparability can be audited.

10) What are typical failure signatures, and what do they usually mean?

Source aging often appears as a slow, monotonic amplitude drop with gradual SNR loss. Optical contamination or condensation tends to cause ratio shifts and drift that correlates with humidity or temperature gradients, sometimes recovering temporarily after drying. Detector saturation or front-end bias issues show up as clipped plateaus, baseline jumps, or “stuck” readings. Fast triage checks include CO₂/REF consistency, baseline behavior, and whether symptoms correlate with moisture events or temperature steps.

11) How should response time and accuracy be tested in a practical setup?

Response tests should measure delay plus step response metrics (t10/t90) using a controlled gas switch or mixing system and a repeatable flow condition. Accuracy validation should include multi-point CO₂ curves across pressure and temperature corners, reporting an error envelope rather than a single number. A practical bench captures raw signal, demod output, and final EtCO₂ simultaneously so filter latency and compensation effects can be separated from sensor physics.

12) How can cross-sensitivity and long-term drift be monitored without false alarms?

Cross-sensitivity in practice often enters through humidity, pressure, temperature, and optical loss, which can masquerade as concentration change. A robust strategy combines a reference channel, periodic self-tests, and trend-based gates that separate slow drift from short transients. False alarms are reduced by using quality flags (SNR, baseline stability, delay consistency) and requiring persistence over a time window before declaring drift. Store drift metrics with timestamps to support maintenance decisions.