Skip to main content
. 2025 Aug 7;25(15):4849. doi: 10.3390/s25154849
Algorithm 1: One-Dimensional PPG Signal to Two-Dimensional Scalogram via CWT
Input:  Preprocessed and normalized PPG signal x(t)
Output: Two-dimensional time-frequency map (scalogram) Xw(u,v)
Step 1: Choose mother wavelet ψ(t) = Morlet
Step 2: For each scale u and time shift v:
Compute Xwu,v=xtφu,vtdt
Step 3: Take absolute value: S(u,v)=|Xw(u,v)|
Step 4: Resize S(u,v) to fixed dimension (224 × 224)