Algorithm 1 ECG-Guided PPG Signal-Quality Assessment. |
-
1:
procedure
Identifying R and T Waves in ECG Signals
-
2:
→→
-
3:
→
-
4:
procedure
Determining the Locations of PPG Pulse Onsets
-
5:
=
-
6:
→
-
7:
procedure
Assessing the Variability in PPG Pulse Amplitudes
-
8:
step 1: PPG Envelope Estimation
-
9:
for i = 1: length() - 1 do
-
10:
= (((i): (i+1)))
-
11:
end
-
12:
step 2: Absolute Second Derivative of PPG Envelope Estimation
-
13:
for i = 1: length() - 2 do
-
14:
-
15:
end
-
16:
step 3: Absolute Second Derivative of PPG Envelope Smoothing
-
17:
-
18:
= median filter(, order)
-
19:
step 4: Absolute Second Derivative of PPG Envelope Offsetting
-
20:
k-subtraction constant;
-
21:
-
22:
-
23:
procedure
Identifying Low-Quality PPG Pulse Waves
-
24:
thresholds: and
-
25:
if then
-
26:
-
27:
otherwise
-
28:
-
29:
end
|