PulseTrace: A Dual-Wavelength PPG and Dual-Brain Framework for Continuous Physiological-State Tracking and Knowledge-Grounded Feedback
Abstract
Continuous, low-burden physiological sensing requires more than isolated optical measurements: the signal must be transformed into an interpretable state trajectory and communicated without implying an unsupported diagnosis. We present PulseTrace, a closed-loop prototype combining dual-wavelength photoplethysmography (PPG), physically defined features, a lightweight temporal encoder, and retrieval-augmented language feedback. Red and infrared PPG are filtered and differentiated to form four waveform channels; the dual-wavelength relative pulsation ratio (DOSR) and an infrared second-derivative morphology index (MMDI) provide complementary scalar features. A dual-branch, Mamba-inspired perception model fuses waveform and feature representations to estimate a window-level engineering state proxy. Experiments used 444 public recordings from 148 participants, processed into 79,953 overlapping windows, and 1,002 locally acquired demonstration windows. The temporal encoder contained 9,097 parameters and required 0.3634 ms per window, compared with 18,121 parameters and 0.4257 ms for LSTM; the complete fusion model required 0.5762 ms per window. In a 50-question pilot, evidence-support scores were 44% and 94%, and factual-accuracy scores were 50% and 94%, for the LLM-only and RAG conditions, respectively. Because the target is a deterministic combination of DOSR and MMDI and no synchronized glucose labels are available, these results establish engineering feasibility, not clinical metabolic prediction.
References
- Allen, J. (2007). Photoplethysmography and its application in clinical physiological measurement.Physiological Measurement, 28(3), R1–R39. https://doi.org/10.1088/0967-3334/28/3/R01
- Park, J., Seok, H. S., Kim, S. S., & Shin, H. (2022). Photoplethysmogram analysis and applications: An integrative review.Frontiers in Physiology, 12, 808451. https://doi.org/10.3389/fphys.2021.808451
- Takazawa, K., Tanaka, N., Fujita, M., et al. (1998). Assessment of vasoactive agents and vascular aging by the second derivative of photoplethysmogram waveform.Hypertension, 32(2), 365–370. https://doi.org/10.1161/01.HYP.32.2.365
- Park, Y. J. (2023). Association between blood glucose levels and arterial stiffness marker: Comparing the second derivative of photoplethysmogram and cardio-ankle vascular index scores.Frontiers in Endocrinology, 14, 1237282. https://doi.org/10.3389/fendo.2023.1237282
- Gu, A., & Dao, T. (2023).Mamba: Linear-time sequence modeling with selective state spaces. arXiv. https://doi.org/10.48550/arXiv.2312.00752
- Lewis, P., Perez, E., Piktus, A., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. InAdvances in Neural Information Processing Systems, 33(pp. 9459–9474).
- Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory.Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
- Amugongo, L. M., Mascheroni, P., Brooks, S. G., Doering, S., & Seidel, J. (2025). Retrieval augmented generation for large language models in healthcare: A systematic review.PLOS Digital Health, 4(6), e0000877. https://doi.org/10.1371/journal.pdig.0000877
- Analog Devices. (2018).MAX30102: High-sensitivity pulse oximeter and heart-rate sensor for wearable health. Datasheet, Rev. 1.
- Li, S., Gu, C., Pan, J., et al. (2026). A dataset of synchronized raw and preprocessed finger-contact ECG and dual-wavelength PPG signals from healthy subjects at rest and during seated post-exercise recovery.Data, 11(7), 155. https://doi.org/10.3390/data11070155
- Li, S. (2026).A dataset of simultaneous collected ECG and PPG signals. Mendeley Data, Version 1. https://doi.org/10.17632/pz2zzr8vhm.1