Skip to content

Where the PPG sawtooth stops

Third of the sawtooth series (Finding and placing each PPG frame slip, The PPG sawtooth's period, its phase jumps, and the reversed sawtooth), rebuilt on 2 November and run on the full release on 3 November. With the new slip detector and the slip grid, stretches of 1.5 teeth or more without a slip are fewer than first reported: 1,072 stretches, 469 hours, in 796 of 5,714 recordings. Most of those inside a recording are two teeth long, and where the slips on either side lie on one grid, the step the grid predicts is usually there, missed because a ramp or a disturbance coincided with it. Where the phase moves across a stretch, it moves by quarter teeth. Some stretches look flat; the frame clock keeps its rate and phase through them; and the 586 recordings without any one-frame step show no hidden sawtooth, though many drift slowly.

Date 2026-11-13
Status current
Methods Clocks carried in the signal
Techniques Phase-step detection, Null controls
Clocks Pulse oximeter frame clock
Devices Solar8000 monitor, SNUADC
Variables Plethysmogram (SNUADC), Arterial pressure (SNUADC)

Background

The first version of this study (11 October) reported 98 stretches (67 hours) where slips were due but none came, and 32 whole recordings (47 hours) without a slip; there the delay was flat (median slope −0.15 of the sawtooth's rate), the frame clock ran on (82 of 98 stretches, within 1 ppm), and predicting slips one tooth beyond the first and last raised tiers A and B from 26% to 29% of the time. Its script and outputs were not kept, so it could not be reproduced, and the earlier fit (physiosync's detect) relied on it: stretches that pass its pause test were labelled N (offset only). This version rebuilds it with public code and asks one more question that the slip grid makes possible: when slips resume, do they continue the old grid (the sawtooth went on unseen) or start a new phase?

Data

The recordings and slips of Finding and placing each PPG frame slip: on the full release, the longest continuous stretch of ECG lead II and PLETH (20–90 min) in 5,714 recordings (7,789 hours); the benchmark on which the methods were built is 273 of them (373 hours).

Method

Commands (vitaldb-bench tools/sawtooth_char.py): the slips run of Finding and placing each PPG frame slip into $W/sawtooth_char/full (slips --inj-seeds 6, 8 parts, then agg), then mech --scan $W/sawtooth_char/scan_full --slips $W/sawtooth_char/full/slips.jsonl --recordings $W/sawtooth_char/full/recordings.csv --root $R --out $W/sawtooth_char/full_mech/mech_partK.jsonl --part K --of 8 (K = 0–7) and mech-agg --mech $W/sawtooth_char/full_mech/mech_part*.jsonl --recordings $W/sawtooth_char/full/recordings.csv --clocks $W/clock_network/r4/clocks.csv --out $W/sawtooth_char/full_mech/agg (mech_summary.json: pauses and whole_without_slips; tool SHA-256 8f5734d273f5…). The benchmark's run is $W/sawtooth_char/bench8 and $W/sawtooth_char/mech3.

  • Stretches without a slip: in each recording with an upward sawtooth (3 or more slips), every stretch of 1.5 teeth or more between two slips (middle), before the first or after the last (start, end).
  • Flat or creeping: the slope of the ECG→PPG delay (beat median of foot, upstroke and peak; 30 s left out at each end) as a share of the sawtooth's creep: 1 creeping as usual, 0 flat.
  • A sawtooth unseen? physiosync's sawtooth_evidence at the recording's rate (the share of variance a one-frame sawtooth explains, best of 50 phases) against the same with the sawtooth mirrored, which no slip produces.
  • The frame clock in the stretch (raw PLETH maxima): its rate against the whole recording's, and whether the recording's own frame comb (rate and phase) still holds there.
  • Does the phase carry on? For a middle stretch, whether the slips on either side lie on one run of the slip grid (The PPG sawtooth's period, its phase jumps, and the reversed sawtooth), or the phase has moved (the shift, in teeth); and how far the delay falls from just after the first slip to just before the second, in frames, against ordinary teeth.
  • The missing slip. Inside each middle stretch, the slips the grid predicts (evenly spaced between the two slips): the best one-frame step within 10 s, its free size, its persistence and the tests it fails. The control is the same search half way through ordinary teeth, where no slip should be.
  • Recordings without any one-frame step: the slope over the whole stretch, the sawtooth evidence at the setup's rate, and the frame clock.

Results

Full release first; the benchmark's figures in brackets.

  • Fewer stretches than first reported: 1,072 of 1.5 teeth or more without a slip, 469 hours in 796 recordings (710 middle, 173 at the start, 189 at the end) [68; 26.5 hours; 43 recordings].
  • Most middle stretches are two teeth long (median 2.0, interquartile range 1.97–2.01) [2.0–2.07]. In 404 of 710 the slips on either side lie on one grid, so the phase carried straight through [29 of 49]; and the delay falls by a median 0.92 frame across a stretch, as over an ordinary tooth (0.89) [1.00 against 0.90]. The detector finds about 88% of injected slips, which leaves enough missed slips to account for many of these.
  • The missing slips are mostly there. At the 418 places the grid predicts a slip inside such stretches, the best step has a median size of 0.70 frame and persists at 0.70 frame, a median 2.4 s from the prediction; 240 lie between 0.4 and 1.4 frames, against 596 of 8,330 controls half way through ordinary teeth (7%, median size 0.13, persistence −0.10) [33 places, 0.73 frame, 19 between 0.4 and 1.4; 36 of 442 controls]. 45 pass the detector's tests for a slip the grid supports [3]; the rest fail on the step's size or persistence, often a disturbance within the window (264), a coinciding ramp (226), or both. About a quarter (115) show no step of 0.4 frame or more. Where the phase has moved (423 places in stretches with a new phase), the evenly spaced positions look like the controls (median 0.18 frame).
  • New phases come in quarter teeth. Of the 306 middle stretches after which the phase has moved, 181 shift it by a whole number of quarter teeth against 73.4 by chance (p = 4 × 10⁻³⁹); 32 lie on an odd eighth against 73.4. The benchmark (8 of 20 against 4.8, p = 0.08) could not show this. A stretch with a new phase behaves like the phase jumps between slips (The PPG sawtooth's period, its phase jumps, and the reversed sawtooth).
  • Some look flat. In 459 of the 1,072 stretches the delay's slope is under 0.3 of the creep (162 of them middle stretches on one grid, 121 with a new phase after); 181 creep at more than 0.7 [33 of 68; 13]. A slope near zero is not proof of a flat delay: in the longest flat-looking stretch between two slips in the benchmark (case 1363) the delay creeps as usual for 8 minutes and then rises back by about a frame over 1–2 minutes instead of in one step, so 459 is an upper bound. A sawtooth explains more than half the variance in 251 (median evidence 0.15, mirrored control −0.05) [21; 0.26, −0.09].
  • The frame clock runs through them. Found in 848 of 1,063 stretches with frames; the recording's own frame comb holds there as well as over the whole recording (resultant median 0.48 against 0.44), so the frames keep their rate and phase [48 of 67; 0.44 against 0.42].
  • Whole recordings without any one-frame step: 586 (745 hours) [27; 33.8 hours]. They show no sawtooth (evidence median −0.06, mirrored control −0.07; 7 above 0.5) [−0.20, −0.15; none], and the frame clock is found in 537; but 259 drift by more than 5 ppm (slope median −0.2 ppm, 5th–95th percentile −14.6 to +10.6) [13 of 27].
Two delay traces with dashed lines at slips and a grey shaded stretch in each; the top zoom shows a scatter of beats stepping up about 30 ms with a burst of outliers before it; the bottom zoom shows the delay falling along a dashed line and then rising back over two minutes.
(a) A two-tooth stretch without a detected slip in case 2140 (grey), its slips on one grid: at the slip the grid predicts (dotted) there is a one-frame step 1.5 s away, preceded by a burst of disturbed beats that kept the detector from accepting it (zoom). (b) The longest stretch between two slips whose slope is near zero, in case 1363: the delay creeps as the sawtooth would (dashed, zoom) for 8 minutes and then rises back slowly.

Discussion

The first version's flat pauses were partly missed slips: a better detector and the grid explain most stretches inside a recording as one slip not seen, and the predicted slip is mostly found where the grid says, missed because something else happened at the same time. Where the phase moves across a stretch instead, it moves by the same quarter teeth as at a phase jump, so a stretch with a new phase is a phase jump whose excursion happened to hide a slip. Of the stretches that look flat, some are not: the delay can return by a frame slowly instead of in one step. Where the delay is flat, only the content's drift against the frames stops; the frames themselves run on unchanged. For correction, a stretch of exactly two teeth on one grid should be corrected as two teeth with a slip between them, not labelled N; a stretch with a new phase should be split at a quarter-tooth shift; and a recording without slips is not necessarily free of drift. The rebuilt correction (The rebuilt PPG slip finder and its correction) takes up all three. It predicts the slip the grid expects inside such a stretch and judges it like any other slip, correcting it where the evidence is strong and leaving the tooth unresolved (tier U) where it is not. It closes each tooth on its own slips, so a new phase needs no special treatment, and it reports the drift of recordings without a sawtooth rather than correcting it. Some of the 259 recordings without a slip that drift by 5 ppm or more may run the slow sawtooth of The rebuilt PPG slip finder and its correction's tier I: at 5 ppm a sawtooth slips by one frame only every 111 minutes or so, longer than the 90 minutes analysed.

Observations it supports

Observation Status Summary
The PPG sawtooth sometimes stops open In some stretches, and some whole recordings, no frame slip comes although one or more were due. Many such stretches inside a recording are a single missed slip (two teeth long, on one slip grid); in the rest the delay is flat and the frame clock keeps its rate and phase; what stops the content's drift is not known.

Limitations

Methods and thresholds were set on the 273 benchmark recordings, which are part of the full release. The test of whether a middle stretch is a missed slip rests on the grid and the fall of the delay, not on finding the slip; stretches at the ends cannot be tested that way. The first version's slip-prediction result (tiers A and B, 26% to 29%) concerns the earlier fit and is not repeated here. The manual labels of Finding and placing each PPG frame slip included 25 grid-predicted slips. Of these, 14 show an upward step on the PPG side (9 confirmed by the arterial line), 9 show none, and 2 are a sub-frame step or unclear ($W/label_eval_final/label_eval.json). This roughly agrees with the share found here, where a quarter of predicted slips show no step.

Open questions

  • Slips that come slowly (unexplained phenomenon). In some stretches the delay returns by about a frame over a minute or two instead of in one step. Whether that is a slip spread out by the monitor, or physiology that happens to cancel the creep, is not known; a fit of creep plus a ramp of one frame, with the ramp's length free, across all stretches would show how common it is.
  • A quarter of the predicted slips show no step (unexplained phenomenon). Where the grid carries on across a two-tooth stretch but no step of 0.4 frame or more is found at the predicted slip (115 of 418), the phase moved on without a visible slip. Whether the step is hidden by physiology there or absent is open.
  • What stops the content's drift (unexplained phenomenon). In the flat stretches the frames run on and the content stops drifting against them. 259 of 586 recordings without slips drift slowly instead, by 5 ppm or more. What sets either is not known.

Worked examples

Example Side Status Summary
Pulse arrival time in two correction steps time current As stored, the ECG-to-finger PAT in VitalDB is about 0.72 s, far beyond any physiological value, because a device delay of about 0.39 s and a frame-slip sawtooth sit inside it. Removing the sawtooth narrows finger minus arterial PAT from 13.6 to 11.1 ms in the median case, and removing one global delay brings PAT to about 0.33 s to the upstroke, keeping the differences between patients.

Code