arXiv:2610.30688cs.LGOct 2026

Manuscript Offprint

arXiv:2610.30688

An Agent Architecture with Tools and Memory for Selective Correction of Wrist PPG Heart Rate Estimates

Xu Wang, Shuhan Yi, Zhen Cheng

Abstract

Wrist photoplethysmography (PPG) heart rate estimates are vulnerable to motion artifacts, and corrections that reduce mean error can worsen individual windows. We propose an agent architecture with tools and memory around a fixed heart rate estimator. Pulse, motion, and limited historical evidence generate candidate estimates, whose predicted benefits and harms guide selection. An independent risk gate determines whether to retain, correct, or reject each output. We trained the architecture on PPG-DaLiA and tested it on Wrist Exercise, GalaxyPPG, and WildPPG with frozen weights. Across these four public datasets, mean absolute error (MAE), macro-averaged over ten estimators, decreased by up to 44.5%, with the largest reduction on GalaxyPPG. Beneficial and harmful corrections decreased and increased absolute error by more than 1 bpm, respectively. Their ten-estimator macro-averaged proportions ranged from 16.06% to 36.64% and from 1.68% to 6.77%, respectively, across the four datasets. At 60% and 80% target coverage, numerical correction on the same accepted windows contributed more to total error reduction than window selection. We implemented real-time wearable acquisition, Bluetooth reception, and smartphone deployment of a selected estimator and the framework. In backend analysis of four prototype recordings from one participant, ten-estimator macro-averaged MAE decreased from 9.09 to 4.45 bpm without additional rejection. Under the evaluated conditions, the architecture improved average accuracy while quantifying correction benefits and harms, supporting wearable heart rate analysis that considers error, correction risk, and coverage.

Result

Figure

Wrist PPG + motion

Agent framework

Figure

Selective correction

Weigh benefit and harm

Retain

Keep original HR

Figure

Correct

Revise HR

Reject

No HR output

Abstract figure

Index Terms—Heart rate estimation, photoplethysmography, selective correction, temporal memory, wearable sensors.

I. INTRODUCTION

Wearable heart rate monitoring, predominantly enabled by photoplethysmography (PPG), has become central to wearable health sensing, enabling continuous characterization of daily activity and physiological status in real-world settings. PPG measures rhythmic changes in peripheral blood volume using a compact, noninvasive optical sensor [1], [2]. Motion can introduce interference that overlaps with pulse components and reduces estimation accuracy [1], [3]. This interference varies with activity and wearing conditions, and substantial errors can remain after artifact suppression. Continuous monitoring therefore requires both accurate estimates and a way to identify unreliable outputs before they enter subsequent analyses.

Signal processing and data-driven approaches have been developed to address motion interference. TROIKA [4], JOSS [5], SpaMA [6], and WFPV [7] use signal decomposition, joint spectral reconstruction, analysis of motion-related frequencies, and filtering or tracking to improve heart rate estimation under interference. Deep PPG [3] and TimePPG [8] learn relationships between sensor signals and heart rate using time–frequency representations and temporal convolution. Output reliability has also received attention. Signal quality indices can identify contaminated segments; BeliefPPG models heart rate dynamics and probabilistic inference to provide estimates and their uncertainty [9], whereas KID-PPG combines knowledge-guided inference with identification of unreliable outputs [10]. Beyond improving estimates and detecting unreliable results, post-calibration methods use device outputs, activity, and historical information to adjust existing heart rate estimates [11]. Such additional information can support correction, but it also raises the question of which estimates should be changed and which should be retained.

These methods do not fully resolve when an existing estimate should be changed. Mean error measures overall accuracy but does not establish whether a correction benefits an individual window. BeliefPPG and some post-calibration methods assess window-level reliability or adjust unreliable outputs [9], [11]. However, explicit assessment of correction gains and harm to originally accurate estimates remains limited. Average improvements can conceal deterioration in individual windows. If a system also rejects outputs, lower error may partly reflect the exclusion of difficult windows [12], [13]. Evaluation must therefore distinguish correction benefits, correction harms, and output coverage.

Here, we propose a selective correction framework built around a fixed heart rate estimator. Its organization links observations, internal states, and action selection, following an agent architecture [14]. Signal evidence and recent history inform whether to retain, correct, or reject an estimate without changing the underlying estimator. Decisions account for predicted gains and harm relative to the original estimate, including deterioration of initially accurate outputs. We evaluate numerical correction separately from window rejection to identify the source of error reductions.

This study makes three contributions. First, we introduce a framework with signal analysis tools and memory that evaluates candidate gains and harms before replacing a fixed estimator's output. A shared base-error prediction and geometric constraints give candidates a consistent comparison against the original estimate. The original estimate remains available, and candidate selection precedes a separate output risk gate. Second, we evaluate ten prespecified estimators on four public datasets and prototype recordings, separating correction gains from selection effects and reporting correction harm and coverage. Third, we implement real-time wearable acquisition and smartphone deployment of a selected estimator and the framework. The smartphone receives and analyzes the signals, while the computer backend supports comparisons across methods.

References (20)