Sawtooth fit
Model a clock as a straight drift that is pulled back at correction events, and fit the rate from whole teeth (the correction divided by the time since the previous one).
Studies
| Study |
Date |
Status |
Summary |
| The rebuilt PPG slip finder and its correction |
2026-11-13 |
current |
Fourth of the sawtooth series (Finding and placing each PPG frame slip finds the slips, The PPG sawtooth's period, its phase jumps, and the reversed sawtooth their grid, Where the PPG sawtooth stops where it stops). The slip finder is rebuilt around one rule: correct a step only when the evidence that it is a frame slip is strong, because a wrong correction puts a false step into real physiology. It judges each candidate on the shape of the pulse and, where there is one, on the arterial line, and corrects only one-frame steps. Checked against 172 blinded manual labels, a review of 174 corrections and sawtooths injected into real recordings, it called no held-out slip-free event a slip and 98% of the corrections reviewed were judged right. Its correction was then tested end to end against the arterial line in 2,976 recordings, which showed the first version made a third of them worse; rebuilt so each tooth closes exactly, it brings finger PAT closer to arterial PAT than the earlier method (median spread 9.46 against 11.17 ms in sawtooth recordings, 13.95 uncorrected), though it leaves more recordings worse than uncorrected (7.3% against 2.9%). physiosync 0.3.2, fit_ecg_ppg_delay(method="rebuilt"). |
| The stamp sawtooth model for SNUADC and BIS |
2026-11-09 |
current |
Fitting each track's record stamps against its sample count as a drift with corrections (a sawtooth) puts SNUADC and BIS on one timeline without any artefact. Checked against shared bursts, the EEG–ECG timing error falls from about 790 ms on the recorded stamps to 33 ms with one constant per SNUADC mode in the pilot, and 40 ms over the whole release. |
| Arterial pressure against the monitor's 240 Hz cycle |
2026-10-28 |
current |
The arterial pressure's steps follow a 240 Hz output cycle that runs 23–55 ppm off the SNUADC clock. If its timing followed that cycle it would slide against the ECG by 4.17 ms each turn, or drift by up to 200 ms an hour. Neither happens: arterial pressure keeps time with the ECG to within about 1 ms. |
| How often each device is corrected |
2026-10-17 |
current |
The devices re-synchronise in different ways: SNUADC when its drift reaches about half a second, BIS on a fixed 8,192 s timer, and the Primus by small steps about every two hours that do not keep up with its drift (+105 ppm, measured later by breath matching). |