A camera can measure your pulse from the faint color changes in your face. Beat-to-beat heart rate variability (HRV), meaning the millisecond fluctuations in the time between heartbeats, is a strong predictor of cardiovascular death after a heart attack. These two facts suggest a cheap, contactless prognostic test. The catch is that a 30 frames-per-second camera only sees the heart every 33 ms. Each detected beat is therefore misplaced by up to half a frame, and that timing error enters exactly the fine-scale variability that carries prognostic signal. This note argues that the error is not generic noise. Its spectrum can be derived from the frame rate alone. Because of that, it can be removed inside a survival model rather than ignored or learned around.
The central prediction is concrete and checkable. The spectral band that Beatquency domain and machine learning improve prediction of cardiovascular death after acute coronary syndrome found most associated with death, 0.18–0.24 cycles per beat, receives roughly twenty times more frame-quantization power than the band it found protective, 0.03–0.07 cycles per beat. The corruption therefore biases every camera-measured patient toward looking higher-risk, and the bias varies with camera and recording length. We propose a Cox model whose likelihood removes this bias and variance in closed form from the frame rate and a small calibrated jitter term. We then test whether it recovers the hazard ratios and discrimination that contact ECG achieves.
Core Claim
Model each detected peak time as the true time plus two error terms. The first is a quantization error $u_n$, uniform on $[-\Delta/2, \Delta/2]$ where $\Delta$ is the frame period. The second is a residual optical jitter $\epsilon_n$ with variance $\sigma_j^2$. An inter-beat interval (IBI) is the difference between consecutive peak times, so its error is $e_n = (u_{n+1}-u_n) + (\epsilon_{n+1}-\epsilon_n)$. This is a differenced white-noise process. Indexed by beat, its spectrum over beatquency $f$ (cycles per beat) is
$$S_e(f) = 2\left(\frac{\Delta^2}{12} + \sigma_j^2\right)\left(1-\cos 2\pi f\right).$$
The formula follows directly from differencing independent per-beat errors. At 30 fps, $\Delta^2/12 \approx 93\ \text{ms}^2$. Integrating over the high-risk band adds about $8\ \text{ms}^2$ of spurious power from quantization alone. Over the protective band it adds about $0.4\ \text{ms}^2$. Three consequences follow.
First, the beatquency domain is the natural home for this correction. Quantization error is per-beat and independent of heart rate, so the noise floor does not depend on the patient's heart rate. In the Hz domain, by contrast, it would depend on heart rate.
Second, the corruption is an additive, patient-specific bias on band-power features. It is not the classical symmetric noise that only attenuates coefficients.
Third, the remaining estimation error has a computable distribution per patient, set by frame rate, recording length, and $\sigma_j$. That is exactly the input the corrected Cox likelihood of An Exact Corrected Log‐Likelihood Function for Cox's Proportional Hazards Model under Measurement Error and Some Extensions requires.
Augustin's derivation fixes a technical problem in Cox models with noisy covariates. It switches to the piecewise-constant Breslow likelihood and divides each exponential risk term by the moment generating function of the covariate error. It was never applied empirically, and it has one serious practical limitation: the error distribution must be known. Our contribution is the observation that for frame-quantized IBIs, the dominant part of that distribution is given by physics rather than by assumption.
Research Program
The model keeps the interpretable structure that worked on Holter ECG. Liu et al. discretize the beatquency spectrum into 50 narrow bins and learn sparse weights over them with L1-regularized logistic regression. They then compute a hazard ratio of 5.19 post hoc for the high-risk group. We replace that two-stage pipeline with a single L1-penalized Cox model over the same bins.
The model is fit in two steps. First, each patient's band powers are debiased by subtracting the integrated $S_e(f)$. Second, the model is trained with the heteroscedastic corrected likelihood. Each patient's term $\exp(\beta^\top W_i)$ is divided by $M_{U_i}(\beta)$, the moment generating function of that patient's residual band-power error. We will first approximate this function as Gaussian with covariance from standard periodogram-variance formulas. We will then use a scaled chi-square form, which Augustin's non-normal extension allows.
The only quantity not fixed by the frame rate is $\sigma_j$, the optical jitter left after peak detection. We estimate it per condition from paired camera and reference recordings. These come from the HRVCam dataset, which includes diverse skin tones, motion scenarios, and pulse-oximeter ground truth (HRVCam: robust camera-based measurement of heart rate variability), and from thuhci/SUMS if its multi-camera recordings include a contact reference. Jitter is estimated separately by skin tone and motion condition, because HRVCam documents that both inflate timing error. The correction is therefore explicitly heteroscedastic across patients.
Two assumptions will be stress-tested rather than trusted. The first is that quantization errors are independent across beats. This fails when the heart period is close to a multiple of the frame period, causing beat-frame locking. We will measure how often this occurs and how badly it biases the floor. The second is that sub-frame peak interpolation, such as parabolic fitting, changes the error away from uniform. For interpolated pipelines we replace the analytical uniform term with an empirically fitted one.
The proportional hazards assumption is a live concern. Deep Cox Mixtures for Survival Regression shows that crossing survival curves badly miscalibrate standard Cox models. We therefore also run the debiased features through Deep Cox Mixtures to check that any gain from correction is not an artifact of the proportional form.
The data plan is the proposal's main risk, and we state it plainly. The only cohort in the file with long IBI recordings and hard outcomes is the NSTEACS Holter data used by Liu et al.: three trials with 2,302, 2,255, and 765 patients and a 4% one-year cardiovascular death rate. Access requires a data-use agreement with the original group.
Using that cohort, we create "virtual camera" versions of each patient. True R-peak times are re-sampled onto a frame grid at 60, 30, 25, and 15 fps, with random phase, and calibrated jitter is added. This is a semi-synthetic but physically faithful degradation, and it preserves real outcomes and censoring. No public cohort in the file pairs facial video with mortality follow-up, so a true video-to-outcome validation is out of scope. We will say so rather than imply it.
If the NSTEACS data cannot be obtained, the fallback has two parts. The feature-level analysis runs on MIT-BIH Arrhythmia and European ST-T IBIs. The survival analysis becomes fully semi-synthetic, with outcomes simulated from clean-signal band powers at effect sizes matching Liu's reported hazard ratio.
Baselines
The naive reference point is mean heart rate from the camera signal, entered into a standard Cox model. Frame quantization barely affects mean heart rate, because timing errors cancel over a window. This baseline therefore shows how much of the prognostic signal survives without any beat-to-beat information. Any HRV method that fails to beat it has not earned its complexity.
The strongest existing method is Liu et al.'s beatquency weighted-HRV model, refit as a penalized Cox model on the degraded IBIs with no correction. On clean Holter data, the reported numbers are a one-year death AUC of 0.753 for beatquency weighted HRV, against 0.704 for traditional Hz-domain LF/HF, with a hazard ratio of 5.19 for the high-risk group (Beatquency domain and machine learning improve prediction of cardiovascular death after acute coronary syndrome). For camera-derived IBIs feeding any survival model, we found no reported result on Lacuna. We will run this model on the clean data as an upper reference and on each virtual-camera condition as the naive competitor.
We also include DeepSurv (DeepSurv: personalized treatment recommender system using a Cox proportional hazards deep neural network) trained on degraded band powers with noise-augmented training at the matching frame rate. On METABRIC, DeepSurv reported a C-index of 0.867 against 0.816 for linear Cox. It represents the "let a flexible model absorb the noise" position.
Deep Cox Mixtures is the calibration competitor. It reported an expected calibration error of 0.0200, against 0.0992 for standard Cox, on FLCHAIN.
For fairness, all models use identical patient splits, the same 50-bin feature set, and the same nested cross-validation budget for penalty and architecture search. Evaluation is always on the same held-out patients.
Two ablations isolate the key ingredient. The first applies only the mean-floor subtraction, with no likelihood correction. The second applies only the likelihood correction, with no debiasing. A third variant uses a quantization-only error model with $\sigma_j = 0$, which tests whether frame physics alone suffices.
The proposal counts as beating the field if two conditions hold at 30 fps. First, its hazard ratio for the high-risk group must fall within the clean-data confidence interval while the uncorrected model's does not. Second, its time-dependent C-index must significantly exceed the uncorrected beatquency model's, with calibration no worse than the noise-augmented deep models.
Why not just…?
Why not just use a higher frame rate or sub-frame interpolation? This is partly right. The formula says the quantization floor scales with $\Delta^2$, so 60 fps cuts it by four. But consumer and telehealth video is commonly 30 fps or lower, and interpolation reshapes the error rather than removing it. It also does nothing about optical jitter, which HRVCam shows dominates under motion and dark skin, where the classical Peak NC-VT baseline has an RMSSD error of 63 ± 78 ms. The frame-rate sweep will report the minimum frame rate at which uncorrected features reach clean-data prognostic performance. If that minimum is 30 fps or below, the correction is unnecessary and we will say so.
Why not just clean the signal with a strong denoiser first? Denoisers such as the Tiramisu network (Inter-Beat Interval Estimation with Tiramisu Model: A Novel Approach with Reduced Error) achieve 13.5 ms IBI error at −30 dB on ECG. However, they operate on the sampled waveform and cannot recover timing information lost between frames. A residual error of about 13 ms is also comparable in size to the quantization term, so the bias argument still applies downstream. Denoising and correction are complementary. We will run the correction on top of the best available peak detector and fit $\sigma_j$ to its residuals.
Why not just regression calibration or noise-augmented deep training? This is the real threat. Predicting true features from noisy ones using paired data, or training DeepSurv on degraded inputs, may recover most of the discrimination. Our argument is narrower: both approaches must be refit for every frame rate, recording length, and device, whereas the analytical floor transfers automatically. The decisive test is cross-condition transfer. We train each method at 30 fps and test at 25 and 15 fps. If regression calibration matches the corrected likelihood under transfer, the physics model's value reduces to interpretability, and we will report that outcome.
Proposed Experiments
The first check validates the error model itself. On MIT-BIH and European ST-T IBIs, we compare the analytical $S_e(f)$ against the empirical spectrum of simulated quantization at each frame rate, and measure how often beat-frame locking occurs. The predicted twenty-fold asymmetry between the risk band and the protective band must appear empirically, or the premise fails.
The second check is the prognostic result. On the virtual-camera NSTEACS cohorts, we report hazard ratio, time-dependent C-index, integrated Brier score, and expected calibration error for every baseline and ablation, across frame rates. We train on one trial and test on the others, mirroring Liu's multi-cohort design. The key prediction is that the uncorrected model's risk scores shift upward in low-HRV patients and its calibration degrades, while the corrected model's does not.
The third check is the jitter-transfer test. We inflate $\sigma_j$ to the level calibrated for dark-skin and talking conditions and ask whether the per-patient heteroscedastic correction prevents miscalibration between skin-tone groups. This is the failure mode with the greatest clinical stakes if camera-based stratification is ever deployed.
References
- Beatquency domain and machine learning improve prediction of cardiovascular death after acute coronary syndrome
- An Exact Corrected Log‐Likelihood Function for Cox's Proportional Hazards Model under Measurement Error and Some Extensions
- HRVCam: robust camera-based measurement of heart rate variability
- Deep Cox Mixtures for Survival Regression
- DeepSurv: personalized treatment recommender system using a Cox proportional hazards deep neural network
- Inter-Beat Interval Estimation with Tiramisu Model: A Novel Approach with Reduced Error