|
Algorithm 1 Estimation of Instantaneous RR from PPG signal. |
|
Input PPG
|
|
← red or infrared PPG |
|
Remove Base-line wander using SSA
|
|
← trajectory-matrix [, M], embedding dimension |
|
← Apply SVD onto
|
|
, selection of eigenvectors
|
|
← diagonal-averaging, signal reconstruction |
|
Detect pulse peaks of the
|
|
Estimate Respiratory induced modulation
|
| amplitude modulation (AM) or frequency modulation (FM) |
|
Re-sample the modulation into a 4 Hz signal |
|
Estimate average Respiratory Rate (RR)
|
|
average RR using Hilbert spectrum or AR-spectral method |
|
Apply SSWT to the 4 Hz modulation
|
|
, replace by in Equation (1), implement Equations (3) and (4) |
| returns , instantaneous frequencies
|
| and , signal energy in time and frequency plan, ()) |
| Mask SSWT spectrum using averaged RR |
|
|
|
is associated respiratory frequency from average RR () |
|
, time-window size e.g., 32 s, , frequency-window size |
|
, time indices, , maximum-energy frequency indices |
| Find instantaneous frequencies
|
|
|
|
Estimate Instantaneous RR in terms of breaths per minute () |