Skip to content

Detect pulse maximum upslopes

What it does

Detects maximum upslopes in an already filtered PPG derivative and returns their quadratically refined times in seconds, together with the adaptive threshold.

When to use it

Use it after baseline removal and low-pass differentiation when maximum-upslopes are the desired pulse fiducials. Preprocessing and any filter-delay compensation belong to the caller.

Canonical ID: ppg.pulsedet

Inputs

Name Meaning Type Unit Requirements
dppg PPG derivative after filtering and any filter-delay compensation. real vector a.u. minimum length: 1; NaN allowed; finite
sampling_frequency Sampling frequency of the derivative signal. real scalar Hz greater than: 0; no NaN; finite

Parameters

Name Meaning Type Unit Default Requirements
method Pulse detector; adaptive is the currently defined method. string dimensionless adaptive not specified
adaptive_alpha_amp Amplitude multiplier defining the threshold floor. real scalar 1 0.2 greater than: 0
adaptive_refract_period Duration of the threshold hold following a raw detection. real scalar s 0.15 greater than: 0
adaptive_tau_rr Decay duration after the refractory hold, as a fraction of the estimated pulse interval. real scalar 1 1 greater than: 0
reset_after Optional duration without a raw detection before restarting adaptation; null disables resets. real scalar s not applicable greater than: 0

Outputs

Name Meaning Type Unit
t_d Refined maximum-upslope times in seconds, with the first sample at time zero. real vector s
threshold Adaptive threshold aligned with every derivative sample, including missing stretches. real vector a.u.

How it works

The initial threshold uses nonnegative samples in the first ten seconds of available signal and an initial rate estimate of 80 beats/minute. A complete excursion above and back below the threshold supplies a local maximum. Detected amplitudes and pulse intervals update the refractory hold and subsequent linear decay. After sufficient history, median estimates reduce the influence of unusually large pulses.

State continues through the entire input. Internal search blocks do not restart adaptation. The exact initialization window endpoints, rounding, history lengths and threshold updates are defined in the specification.

Interpretation and limitations

Times start at zero for the first input sample. The detector is based on the adaptive method of Lázaro et al.; this variant defines its own initialization and amplitude adaptation and measures the decay after the refractory period.

Missing samples cannot satisfy threshold crossings. They do not automatically split crossing regions or clear history, and intervals can span a missing stretch. Refinement uses the original neighboring samples and drops undefined times.

The optional reset_after feature restarts adaptation after a chosen duration without a raw detection, including missing time. This can help when a device changes gain and its signal returns at a lower amplitude. It is disabled by default; the appropriate duration depends on the application. A restart keeps previous detections and discards the earlier adaptive history.

References

  • Jesús Lázaro et al. (2014). Pulse rate variability analysis for discrimination of sleep-apnea-related decreases in the amplitude fluctuations of pulse photoplethysmographic signal in children. IEEE Journal of Biomedical and Health Informatics. doi:10.1109/JBHI.2013.2267096

Implementations and technical resources

Python source | MATLAB source

Normative JSON | Validation cases