VAMP-Diff:用于光电容积描记建模的VampPrior潜变量扩散模型 VAMP-Diff: VampPrior Latent Diffusion for Photoplethysmography Modeling 预印本
原文摘要
查看英文原文摘要
Photoplethysmography (PPG) has become a ubiquitous physiological signal; however, current generative models still struggle to preserve realistic waveform morphology and learn a latent structure that captures cardiac and respiratory physiology. PPG generators trained with adversarial losses can produce plausible waveforms, but provide no inference path from a real signal to a latent representation. Variational autoencoders, on the other hand, map the PPG data to latent codes, although their decoders often blur systolic upstrokes and dampen amplitude and spectral details. Diffusion models improve waveform fidelity, but typically lack an inference path for reconstruction and physiological analysis. We propose VampPrior Latent Diffusion (VAMP-Diff), a jointly trained variational diffusion model that combines a temporal PPG encoder, a conditional one-dimensional diffusion decoder, and VampPrior regularization on a compact pooled latent. The model uses full temporal latent during diffusion reconstruction, giving the decoder access to beat timing and morphology while generating samples from learned VampPrior components instead of a fixed Gaussian prior. We demonstrate on the CapnoBase dataset that VAMP-Diff produces realistic PPG signals, reconstructs sharper physiological waveforms than Gaussian-prior baselines, preserves heart-rate information, maintains respiratory-rate consistency, and is sensitive to waveform corruptions through reconstruction error.
📚 参考文献 (35 条)
查看全部 35 条
- [1] J. Allen, “Photoplethysmography and its application in clinical phys- iological measurement,” Physiological Measurement, vol. 28, no. 3, pp. R1–R39, 2007.
- [2] M. Elgendi, “On the analysis of fingertip photoplethysmogram signals,” Current Cardiology Reviews, vol. 8, no. 1, pp. 14–25, 2012.
- [3] P. H. Charlton, T. Bonnici, L. Tarassenko, and D. A. Clifton, “Wearable photoplethysmography for cardiovascular monitoring,” Proceedings of the IEEE, vol. 110, no. 3, pp. 355–381, 2022.
- [4] D. Bian, P. Mehta, and N. Selvaraj, “Respiratory rate estimation using ppg: A deep learning approach,” in 2020 42nd annual international conference of the IEEE engineering in Medicine & Biology Society (EMBC), pp. 5948–5952, IEEE, 2020.
- [5] S. A. H. Aqajari, R. Cao, A. H. A. Zargari, and A. M. Rahmani, “An end-to-end and accurate ppg-based respiratory rate estimation approach using cycle generative adversarial networks,” in 2021 43rd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), pp. 744–747, IEEE, 2021.
- [6] I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, “Generative adversarial networks,” 2014.
- [7] T. Golany and K. Radinsky, “Pgans: Personalized generative adversarial networks for ecg synthesis to improve patient-specific deep ecg classifi- cation,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, pp. 557–564, 07 2019.
- [8] K. Vo, E. K. Naeini, A. Naderi, D. Jilani, A. M. Rahmani, N. Dutt, and H. Cao, “P2e-wgan: Ecg waveform synthesis from ppg with conditional wasserstein generative adversarial networks,” in Proceedings of the 36th Annual ACM Symposium on Applied Computing, pp. 1030–1036, 2021.
- [9] J. Yoon, D. Jarrett, and M. van der Schaar, “Time-series generative adversarial networks,” in Advances in Neural Information Processing Systems (H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alch´e-Buc, E. Fox, and R. Garnett, eds.), vol. 32, Curran Associates, Inc., 2019.
- [10] J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” Advances in neural information processing systems, vol. 33, pp. 6840– 6851, 2020.
- [11] J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli, “Deep unsupervised learning using nonequilibrium thermodynamics,” in International conference on machine learning, pp. 2256–2265, pmlr, 2015.
- [12] J. M. L. Alcaraz and N. Strodthoff, “Diffusion-based conditional ecg generation with structured state space models,” Computers in biology and medicine, vol. 163, p. 107115, 2023.
- [13] Y. Tashiro, J. Song, Y. Song, and S. Ermon, “Csdi: Conditional score- based diffusion models for probabilistic time series imputation,” 2021.
- [14] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, “High- resolution image synthesis with latent diffusion models,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recogni- tion (CVPR), pp. 10684–10695, June 2022.
- [15] K. Preechakul, N. Chatthee, S. Wizadwongsa, and S. Suwajanakorn, “Diffusion autoencoders: Toward a meaningful and decodable represen-
- tation,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10619–10629, 2022.
- [16] A. Vahdat, K. Kreis, and J. Kautz, “Score-based generative modeling in latent space,” 2021.
- [17] D. P. Kingma and M. Welling, “Auto-encoding variational bayes,” arXiv preprint arXiv:1312.6114, 2013.
- [18] A. Vahdat and J. Kautz, “Nvae: A deep hierarchical variational au- toencoder,” in Advances in Neural Information Processing Systems (H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin, eds.), vol. 33, pp. 19667–19679, Curran Associates, Inc., 2020.
- [19] R. Child, “Very deep vaes generalize autoregressive models and can outperform them on images,” arXiv preprint arXiv:2011.10650, 2020.
- [20] A. Wehenkel and G. Louppe, “Diffusion priors in variational autoen- coders,” arXiv preprint arXiv:2106.15671, 2021.
- [21] D. Kingma, T. Salimans, B. Poole, and J. Ho, “Variational diffusion models,” Advances in neural information processing systems, vol. 34, pp. 21696–21707, 2021.
- [22] J. Tomczak and M. Welling, “VAE with a VampPrior,” in Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics (A. Storkey and F. Perez-Cruz, eds.), vol. 84 of Proceedings of Machine Learning Research, pp. 1214–1223, PMLR, 2018.
- [23] A. Kuzina and J. M. Tomczak, “Hierarchical vae with a diffusion-based vampprior,” arXiv preprint arXiv:2412.01373, 2024.
- [24] W. Karlen, “Capnobase 8-minute (long) dataset,” 2021.
- [25] G. Lovisotto, H. Turner, S. Eberz, and I. Martinovic, “Seeing red: Ppg biometrics using smartphone cameras,” in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), p. 3565–3574, IEEE, June 2020.
- [26] N. G. Venkataswamy, O. Olugbenle, M. K. Banavar, and M. H. Im- tiaz, “Descriptor: Contactless fingerprint image streams and heart rate (cfishr),” IEEE Data Descriptions, 2025.
- [27] M. A. F. Pimentel, A. E. W. Johnson, P. H. Charlton, D. Birrenkott, P. J. Watkinson, L. Tarassenko, and D. A. Clifton, “Toward a robust estimation of respiratory rate from pulse oximeters,” IEEE Transactions on Biomedical Engineering, vol. 64, no. 8, pp. 1914–1923, 2017.
- [28] S. Odaibo, “Tutorial: Deriving the standard variational autoencoder (vae) loss function,” arXiv preprint arXiv:1907.08956, 2019.
- [29] O. Ronneberger, P. Fischer, and T. Brox, “U-net: Convolutional networks for biomedical image segmentation,” CoRR, vol. abs/1505.04597, 2015.
- [30] J. Song, C. Meng, and S. Ermon, “Denoising diffusion implicit models,” arXiv preprint arXiv:2010.02502, 2020.
- [31] E. Perez, F. Strub, H. De Vries, V. Dumoulin, and A. Courville, “Film: Visual reasoning with a general conditioning layer,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 32, 2018.
- APPENDIX A PROOF OF THEOREM 1 Proof. Let qA ϕ (ez | x0) = A#qϕ(z | x0) and pA ψ(ez) = 1 K PK k=1 qA ϕ (ez | uk). Given the variational identity on the compact latent space, we have log pθ,ψ(x0) = log Z pθ(x0 | z) pA ψ(ez) dez ≥Eqϕ(z|x0) log pθ(x0 | z) −DKL qA ϕ (ez | x0) ∥pA ψ(ez) . (18) where ez = Az. The KL term is well-defined since both dis- tributions live on the same compact latent space RCz×Tc and the conditional likelihood keeps the full latent z ∈RCz×Tz. Given the diffusion forward process 6 and the reverse model log pθ(x0 | z) = log Z pθ(x0:T | z) dx1:T = log Z q(x1:T | x0)pθ(x0:T | z) q(x1:T | x0) dx1:T ≥ Z q(x1:T | x0) log pθ(x0:T | z) q(x1:T | x0) dx1:T . (19) Using the Markov factorizations and the exact posterior q(xt−1 | xt, x0), the lower bound 19 decomposes into Ldiff(x0, z) = −DKL(q(xT | x0) ∥p(xT )) | {z } independent of θ + Eq[log pθ(x0 | x1, z)] − T X t=2 Eq " DKL(q(xt−1 | xt, x0) ∥ pθ(xt−1 | xt, z)) # . (20) Moreover, under the standard diffusion noise schedule, we have ¯αT ≈0 and q(xT | x0) ≈N(0, I) = p(xT ), which makes the terminal KL term negligible. for t ≥2, we assume q(xt−1 | xt, x0) = N eµt(xt, x0), eβtI , pθ(xt−1 | xt, z) = N µθ(xt, t, z), σ2 t I . (21) We can compute the KL term as follows DKL(q(xt−1 | xt, x0) ∥pθ(xt−1 | xt, z)) = 1 2σ2 t ∥eµt(xt, x0) −µθ(xt, t, z)∥2 2 + Ct. (22) where Ct is independent of θ. Following the assumptions made in [10], the exact DDPM posterior mean under x0- prediction parameterization and the reverse posterior mean with the network prediction bx0 = fθ(xt, t, z) are given by eµt(xt, x0) = √¯αt−1βt 1 −¯αt x0 + √αt(1 −¯αt−1) 1 −¯αt xt, µθ(xt, t, z) = √¯αt−1βt 1 −¯αt fθ(xt, t, z) + √αt(1 −¯αt−1) 1 −¯αt xt. and therefore DKL(q(xt−1 | xt, x0) ∥pθ(xt−1 | xt, z)) = wt ∥x0 −fθ(xt, t, z)∥2 2 + Ct, wt = ¯αt−1β2 t 2σ2 t (1 −¯αt)2 . (23) Similar to the simplified DDPM objective [10], the positive scalar wt is dropped, which preserves the same minimizer up to timestep reweighting. Given forward process 6, the diffusion negative lower-bound becomes Et,ϵ,z h x0 −fθ √¯αtx0 + √ 1 −¯αtϵ, t, z 2 2 i . (24) Adding the compact VampPrior KL with annealing weight β gives the loss function 10 up to constants independent of (θ, ϕ, ψ) and the standard positive diffusion timestep weights. The decoder therefore uses the full sequence latent z, whereas prior regularization is applied only to the pooled latent ez. APPENDIX B WAVEFORM CORRUPTION DETECTION CapnoBase does not provide annotated abnormal PPG events. To check whether reconstruction error is sensitive to abnormal waveform structure, we use synthetic waveform corruptions as a sanity check with reconstruction error, and not as a standalone anomaly benchmark. Clean test windows are corrupted with additive Gaussian noise, low-frequency base- line wander, amplitude clipping, and partial flatline. These cor- ruptions represent broadband noise, slow drift, dynamic-range saturation, and signal dropout. The trained model is applied to clean and corrupted windows without anomaly-specific training, and per-window reconstruction error is used as the anomaly score. This experiment checks whether deviations from the learned clean PPG distribution receive larger recon- struction errors. We report AUROC, AUPRC, TPR@5%FPR, and the Spearman correlation between scores computed on input signals and scores computed on reconstructions. A. Empirical Results: Anomaly Detection Sanity Check As a sanity check on whether reconstruction error reflects signal quality, anomalous windows are constructed by inject- ing four types of synthetic corruption into random subset of the 1,645 clean test windows. Each corruption type is applied to an equal share of the subset: 136 windows receive additive Gaussian noise (motion artifact), 136 receive slow baseline wander (breathing artifact), 135 receive amplitude clipping (sensor saturation), and 135 receive partial flatline (signal loss), yielding 542 anomalous windows in total. The remaining 1,645 windows are kept clean and treated as normal, giving a final evaluation set of 2,187 windows with a 75.2% / 24.8% normal/anomalous split. Two anomaly scores are computed from each encode- decode pass: the mean absolute error MAE(x0, ˆx0) and the correlation-based score 1 −ρ, where ρ is the Pearson corre- lation between input and reconstruction. No anomaly-specific training is performed; the model was trained exclusively on
- TABLE IX ANOMALY DETECTION SANITY CHECK RESULTS USING RECONSTRUCTION ERROR AS SCORE. Corruption AUROC AUPRC TPR@5%FPR Noise 1.000 1.000 1.000 Baseline 0.847 0.700 0.632 Flatline 0.708 0.149 0.111 Clip 0.400 0.081 0.059 Overall 0.739 0.672 0.452 Fig. 4. Score distributions, ROC curves, AUROC per corruption type, and input vs reconstruction scatter plots (Spearman r = 0.98). clean signals, so corrupted inputs that fall outside the learned latent distribution are expected to produce higher reconstruc- tion error. Results are mixed and corruption-dependent, as shown in Table IX. Gaussian noise is detected perfectly (AUROC= 1.0, MAEanomalous = 0.593 vs MAEnormal = 0.039), because high- frequency random corruption falls entirely outside the smooth periodic structure of the learned latent space. Baseline wander is partially separated (AUROC= 0.847). Amplitude clipping performs below chance (AUROC= 0.400) because clipped sig- nals retain regular periodicity and are reconstructed faithfully as low-amplitude PPG, so the model cannot distinguish them from genuinely low-amplitude normal signals. The overall AUROC of 0.739 should be interpreted cautiously given the poor clipping result; the Spearman correlation r = 0.98 between input and reconstruction anomaly scores confirms the pipeline preserves signal quality ordering, but this experiment is not intended as a standalone anomaly detection benchmark. TABLE X RR ESTIMATION ON REAL VS RECONSTRUCTED PPG SIGNALS. GROUND TRUTH IS DERIVED FROM ETCO2 CAPNOGRAPHY. (|∆| = |PRED(REAL) −PRED(RECON)|) Recording RREtCO2 pred(real PPG) pred(recon PPG) |∆| 0312 11.84 12.37 12.98 0.61 0313 14.53 16.23 15.82 0.41 0322 18.00 17.56 15.58 1.98 0328 12.45 12.82 12.99 0.17 0331 14.71 16.76 16.83 0.07 0333 12.14 12.62 13.97 1.35 Fig. 5. Example corruptions (left) and reconstructions (right). Noise produces high reconstruction error; clipping is reconstructed faithfully as low-amplitude PPG, explaining the poor detection rate. APPENDIX C RESPIRATORY RATE COMPARISON Table X compares CNN predictions on real and recon- structed PPG signals. The estimator produces similar predic- tions on real and reconstructed signals (mean |∆| = 0.74 bpm across recordings), indicating that the reconstruction pipeline does not substantially degrade the frozen estimator’s predic- tions. Given the estimator’s moderate accuracy on real signals, this should be interpreted as evidence that reconstruction preserves the signal features the estimator relies on, rather than as a claim of strong RR accuracy. APPENDIX D HEART RATE INTERPOLATION To assess latent space structure, two windows with heart rates of 65.9 and 119.2 bpm are encoded to z1 and z2, and signals are decoded from zα = (1 −α)z1 + αz2 for α ∈{0, 0.25, 0.5, 0.75, 1.0}. The decoded heart rates transi- tion as 65.9, 65.9, 100.1, 119.1, 119.2 bpm, shown in Figure 6, confirming that the latent space supports smooth generation across different heart rate regimes.
- Fig. 6. Decoded signals from latents interpolated between a low-HR (65.9 bpm) and high-HR (119.2 bpm) test window. Heart rate transitions smoothly from 65.9 to 119.2 bpm as α increases from 0 to 1.