Skip to main content
. 2022 Jan 25;22(3):919. doi: 10.3390/s22030919
Algorithm 3 Pseudo-Code: Deriving PPG Derivatives
Inputs: PPG, ABP, Signal_Length
1.1.1 Normalize both signals
1.2.1 PPG_Size = size(PPG)
1.3.1 ABP_Size = size(ABP)
1.4.1 if (PPG_Size(1) or ABP_Size(1)) > 1 then Transpose
2.1.1 Initialize Time_Vector = linspace(1, length(PPG), length(PPG))
2.2.1 [peaks_PPG, peak_locations_PPG] = findpeaks(PPG)
2.3.1 num_peaks_PPG = length(peaks_PPG)
2.4.1 std_peaks_PPG = std(peaks_PPG)
2.5.1 std_peaks_dist_PPG = std(peak_locations_PPG)
2.6.1 [peaks_ABP, peak_locations_ABP] = findpeaks(ABP)
2.7.1 num_peaks_ABP = length(peaks_ABP)
2.8.1 std_peaks_ABP = std(peaks_ABP)
2.9.1 std_peaks_dist_ABP = std(peak_locations_ABP)
3.1.1 Initialize thresholds
3.2.1 if (std_peaks_PPG, std_peaks_dist_PPG, std_peaks_ABP, std_peaks_dist_ABP, num_peaks_PPG, num_peaks_ABP) satisfies thresholds then Decision = 0
3.2.2 else Decision = 1
Outputs: Decision (0 or 1)