Delineate PPG pulse fiducials¶
What it does¶
Locates the apex, basal point and mid-amplitude point for each supplied detection. An aligned derivative also allows the rising-edge onset to be located.
When to use it¶
Use detection times on the rising edge from pulsedet or another detector. The mid-amplitude time is useful for pulse interval measurements. If onset timing is needed, supply a derivative on the same time grid as the PPG and compensate its filter delay before delineation.
Canonical ID: ppg.pulsedel
Inputs¶
| Name | Meaning | Type | Unit | Requirements |
|---|---|---|---|---|
ppg |
Sampled PPG waveform. | real vector | a.u. | minimum length: 1; NaN allowed; finite |
sampling_frequency |
Sampling frequency of both signals. | real scalar | Hz | greater than: 0; no NaN; finite |
t_d |
Approximate detection times in input order. | real vector | s | NaN allowed; finite |
dppg |
Optional delay-aligned PPG derivative supplied by the caller. | real vector | a.u. | NaN allowed; finite |
Parameters¶
| Name | Meaning | Type | Unit | Default | Requirements |
|---|---|---|---|---|---|
window_a |
Forward search duration for the apex. | real scalar | s | 0.25 |
greater than: 0 |
window_b |
Backward search duration for the basal point. | real scalar | s | 0.15 |
greater than: 0 |
Outputs¶
| Name | Meaning | Type | Unit |
|---|---|---|---|
t_a |
Refined apex times. | real vector | s |
t_b |
Refined basal times. | real vector | s |
t_m |
Refined times at half the basal-to-apex amplitude. | real vector | s |
t_o |
Derivative-based onset times. | real vector | s |
How it works¶
The apex and basal point are extrema on opposite sides of the detection. The midpoint uses the level halfway between their sampled amplitudes. The onset uses the supplied derivative and a threshold of five percent of the maximum upslope for that pulse.
Interpretation and limitations¶
All times are in seconds. Each result corresponds to the detection at the same position, even when times are repeated, unsorted or missing. Searches stop at missing PPG samples. Derivative gaps affect only the onset.
Python returns four arrays by default. Use points="AB" to compute just the apex and basal times. One letter returns one array. Omitting the derivative silently fills the onset array with one NaN per detection. MATLAB accepts calls for up to three outputs without the derivative and raises an error when the fourth output is requested without it.
References¶
- Jesús Lázaro et al. (2013). Deriving respiration from photoplethysmographic pulse width. Medical & Biological Engineering & Computing. doi:10.1007/s11517-012-0954-0
- 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