Skip to main content
. 2025 Mar 18;25(6):1868. doi: 10.3390/s25061868
Algorithm 1. PPG Signal Data Collection and Analysis
1: Initialize parameters
2: SET frequency = 115.2 Hz
3: SET total subjects = 835
4: SET total samples per segment = 1700
5: SET segments per participant = 2
6: SET sample duration = 1 min
7: SET total duration = 15 min
8: SET fasting duration = 2 h after eating
9: SET glucose intake = 75 g of glucose-infused water
10: Data collection process
11: for each participant FROM 1 to total subjects do
12:    COLLECT participant data
13:   DISPLAY “Please agree to participate in the data collection”
14:    for segment number FROM 1 to segments per participant do
15:    RECORD PPG signal (segment number)
16:    end for
17:    participant data.age = GET age
18:    participant data.weight = GET weight
19:    participant data.blood glucose level = GET BGL(fasting)
20:    if participant is unaware of diabetes, then
21:      ADMINISTER glucose intake
22:    participant data. Blood glucose level = GET BGL(non-fasting)
23:    end if
24: end for