Skip to content

One event, two clocks

Find an event that two independently clocked signals both record, and read the offset between their clocks from where each puts it.

Techniques Windowed cross-correlation, Beat matching, Null controls

Studies

Study Date Status Summary
The heartbeat in the Primus airway signals 2026-10-19 current A pilot in 30 recordings for a heartbeat-locked route from the Primus to the SNUADC. Airway pressure shows the heartbeat in 9% of windows only. CO₂ shows a heartbeat-locked trace in 60% of windows, tight to 20 ms, but its lag does not follow the Primus drift, so it cannot time the Primus. Closed as a clock route.
The Primus stamp step at each airway-pressure pause 2026-10-19 current Measured directly at 2,491 pauses in 1,021 recordings: where CO₂ carries on through the AWP pause (74%), the Primus stamps barely step (median −1 ms, p10–p90 −164 to +187 ms, close to the no-pause controls); where CO₂ stops too (26%), they step by up to seconds. No step undoes the drift built up since the last pause.
The SNUADC clock through the Solar8000 numerics, whole release 2026-10-19 current On the SNUADC's own sample count, the delay from the waveform to the PC-stamped Solar8000 heart rate and mean arterial pressure ramps at the SNUADC's drift against the PC, measured without its stamps or resets. In recordings with whole reset intervals it agrees with them (−63 ppm; median difference +1.5 ppm, 581 recordings). It is too noisy per recording, and in recordings under about 4 h its rate is biased toward zero, so it cannot yet speak for recordings without resets.
SNUADC against the PC-stamped heart rate 2026-10-17 current The Solar8000 heart rate is stamped by the recorder on arrival, so the delay from the ECG to it, on the ECG's raw sample count, ramps at the SNUADC clock's rate: −65.3 ppm, against −66.7 ppm from the stamp model. Two independent routes agree.
Drug effects as a clock check 2026-10-13 current Infusion pumps, the rapid infuser and the cerebral oximeter share no waveform with the reference. Drug effects that follow infusions at plausible delays (propofol to BIS in about 2 minutes, fluid to CVP in about 30 s) bound their clocks to well within a minute of the recorder.
Closing loops in the timing graph 2026-10-13 current Where two independent routes reach the same clock, the offsets around the loop must sum to zero. Three measured loops close within their noise; the BIS loop closes up to a constant latency; the proposed EMR loop is not a loop at all.
Rare devices against SNUADC 2026-10-13 current CardioQ, EV1000, Vigileo and Vigilance each get a link to the SNUADC timeline: beat matching for the CardioQ, mean arterial pressure alignment for the EV1000 and Vigileo, and a long-window fit for Vigilance's averaged heart rate.
The cardiac artefact in the BIS EEG 2026-10-12 current The BIS EEG carries a weak electrical trace of every heartbeat. Too weak for beat-by-beat matching, it shows clearly when averaged on the ECG's R peaks, and gives a second SNUADC–BIS timing reference that agrees with the bursts to about 16 ms.
Shared bursts between the ECG and the EEG 2026-10-12 current Electrocautery and muscle bursts appear in both the SNUADC ECG and the BIS EEG. Cross-correlating their envelopes gives the offset between the two devices' stamps every 10 minutes: about −0.8 s, in a sawtooth that follows both clocks' corrections.
The stamp sawtooth model for SNUADC and BIS 2026-10-12 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 42 ms over the whole release.
The Primus ventilator against SNUADC, by breaths 2026-10-12 open Each breath shows in the Primus airway pressure and, through the chest, in SNUADC's central venous pressure. Tracking that lag puts the Primus on the SNUADC timeline to about 55 ms over the whole release, with a line per stretch between its AWP pauses (49 ms in the pilot). At scale it measures the Primus drifting a median +104 ppm against the recorder PC between its AWP pauses, with steps at the pauses that do not reset it.
Arterial pressure as a check on the PPG correction 2026-10-11 current Arterial pressure is sampled by the same converter but has no frame and no sawtooth, so every PPG slip leaves ECG→ABP unchanged. Against it, detected slips are 97–100% real and tier A leaves about 2 ms of drift mid-tooth.

Observations from these studies

Observation Status Summary
About 20 ms of signal lost at every SNUADC reset established At each step-mode reset the acquisition pauses for about 20 ms inside the last record before the new timing, and that time is never sampled: 17.7 ms on the sample count (Signal lost at a SNUADC step-mode correction), once the filler sample is counted. Every record still holds 100 samples, so nothing in the file shows it.
SNUADC sends no time; the recorder stamps by count established The SNUADC board streams samples with no time stamps. Every SNUADC time in VitalDB is the recorder's model of the board's clock: the sample count at the nominal rate, pulled back when it drifts too far.
The ECG→PPG delay is a sawtooth established Inside the oximeter the PPG content creeps 18–52 ppm against its 30 Hz frames; every 11–31 minutes a frame repeats and the delay jumps up by 33 ms. The rate is fixed per recording setup.
The EEG–ECG offset is fixed by the SNUADC correction mode established After the stamp model, BIS EEG still lags the SNUADC ECG by a constant: −804 ms in step mode and −660 ms in frequent-correction mode over the whole release, tight within a port or unit. The mode, a property of the setup, sets the constant.
The EMR clock's offset cannot be separated from documentation lag established Both routes between the EMR clock and the recorder run through the case start, so any EMR clock offset cancels. Without a time from outside the release it is confounded with how late entries are made.
The EVENT track repeats the clinical table established In 411 random cases the recorder EVENT track's four entries equal the clinical table's case start, operation start, operation end and case end exactly: the release generated them from the table.
The Primus AWP stops for about 21 s every 7,230 s established In 5,502 recordings the Primus airway-pressure waveform has gaps of 19–23.5 s (whole messages of 0.48 s, mostly 21.12 s) that recur every 7,230 s, the Primus's correction interval; a clock correction follows about 21.6 s after. The CO₂ waveform carries on through 90% of them. The 21 s of AWP are lost, not merely re-stamped.
The BIS EEG carries an averaged cardiac artefact likely Averaged on the ECG's R peaks, the BIS EEG shows the heartbeat (median 4.3 µV), near-simultaneous with the R wave. Single beats are too weak to match one by one.
A heartbeat-locked trace in the CO₂ waveform that ignores the Primus clock open Averaged on the ECG's R peaks, the Primus CO₂ waveform shows a heartbeat-locked signal in 60% of 10-minute windows (30-recording pilot), tight to about 20 ms. Unlike the breath, its lag does not drift with the Primus clock: it stays fixed on the SNUADC timeline.
Long SNUADC recordings with no correction at all open 1,066 cases of 2.5 h or longer show no SNUADC correction, although at the step-mode median of −63 ppm a 0.49 s step falls due within about 2.2 h. Slower units, a third recorder mode, or both; shared bursts point to slower units (about −36 ppm where the BIS rate is known, The stamp sawtooth model for SNUADC and BIS, due only after about 3.8 h). The Solar8000 route cannot settle it: its rates shrink toward zero in recordings under about 4 h (The SNUADC clock through the Solar8000 numerics, whole release).

The approach

The idea. Stamps say how a device drifts against the recorder, not where its time sits against another device. For that, both devices must see the same event: an electrical burst reaching ECG and EEG electrodes at once, a breath moving airway pressure and venous pressure, a heartbeat in two monitors' pressure traces, a drug's effect following its infusion.

What it gives. The offset between two devices' stamps, followed through a recording: its constant part (a latency), its ramps (the difference of the two drifts) and its steps (corrections). Where a third route exists, the offsets must close around the loop, which tests every assumption on the way.

How. Turn each signal into something the event dominates (a band-power envelope, breath onsets, beat times); cross-correlate in sliding windows, or match events one to one with a delay window around the expected level; keep only windows with a clear, unique peak; repeat everything at random times as a control.

Pitfalls. Regular events (ventilation, steady heart rhythm) match one cycle away almost as well as at the right lag. Physiology adds its own delay: a breath reaches the veins later than the airway, so the offset mixes clock and body. Soft links such as drug onset only bound an offset, they do not measure it.

Techniques

  • Windowed cross-correlation: Cross-correlate two signals' envelopes in sliding windows (for example 10 minutes, stepped by 5) to follow an offset that changes over a recording, keeping only windows whose peak is clear.
  • Beat matching: Pair beats seen by two signals one to one, using a delay window around the known level rather than nearest neighbours, which flip between beats when the lag is near half a beat.
  • Null controls: Repeat each test where the effect cannot be: at random times, at the same interval later, sign-flipped, or between two channels of one device. The effect is real only where it beats its control.