BeatFlow-ECG:基于整流流模型从可穿戴间接信号重建心电图

arXiv cs.LG 论文

摘要

BeatFlow-ECG 是一种条件整流流模型,可从可穿戴设备的 PPG 和 IMU 信号中重建单通道心电图。在 PPG-DaLiA 和 WESAD 数据集上,该模型超越了确定性模型、对抗模型和扩散模型等基线方法,Pearson 相关系数最高达 0.986,并取得优异的 R 峰检测 F1 分数。

arXiv:2610.09052v1 Announce Type: new Abstract: Continuous cardiac monitoring outside clinical settings requires signals that are both informative and practical to collect during daily life. Electrocardiography (ECG) provides rich information about cardiac rhythm and waveform morphology, while wearable photoplethysmography (PPG) is easier to acquire continuously but is only an indirect cardiovascular measurement and is highly sensitive to motion. We present BeatFlow-ECG, a conditional rectified-flow model for reconstructing single-channel ECG from synchronized PPG and inertial measurements. BeatFlow-ECG models reconstruction as conditional transport from noise to ECG using a convolutional encoder-decoder with a transformer bottleneck and explicit flow-time conditioning. Motion information is incorporated through IMU-derived conditioning features, motion-dependent loss weighting, and an easy-to-hard training curriculum. We evaluate the model under leave-one-subject-out protocols on PPG-DaLiA and WESAD. BeatFlow-ECG achieves the best results among the evaluated deterministic, adversarial, and diffusion-based baselines across all reported waveform and beat-timing metrics, with Pearson correlations of 0.983 and 0.986 and R-peak F1 scores of 0.946 and 0.955, respectively. Compared with Conditional DDPM-1D, L1 error decreases from 0.085 to 0.062 on PPG-DaLiA and from 0.074 to 0.055 on WESAD. Additional analyses on PPG-DaLiA show higher correlation in fixed R-peak-relative waveform regions and lower reconstruction error across low-, medium-, and high-motion subsets.
查看原文
查看缓存全文

缓存时间: 2026/10/08 12:52

# BeatFlow-ECG: Rectified Flow for ECG Reconstruction from Indirect Wearable Signals
Source: [https://arxiv.org/html/2610.09052](https://arxiv.org/html/2610.09052)
Mohamed Kamel††thanks:Corresponding author:kamelms@vcu\.eduSahar SelimAffiliation:School of Information Technology and Computer Science, Nile University, Giza, EgyptWalaa MedhatAffiliation:School of Information Technology and Computer Science, Nile University, Giza, EgyptTamer NadeemAffiliation:Department of Computer Science, Virginia Commonwealth University, Richmond, VA, USA

###### Abstract

Continuous cardiac monitoring outside clinical settings requires signals that are both informative and practical to collect during daily life\. Electrocardiography \(ECG\) provides rich information about cardiac rhythm and waveform morphology, while wearable photoplethysmography \(PPG\) is easier to acquire continuously but is only an indirect cardiovascular measurement and is highly sensitive to motion\. We presentBeatFlow\-ECG, a conditional rectified\-flow model for reconstructing single\-channel ECG from synchronized PPG and inertial measurements\. BeatFlow\-ECG models reconstruction as conditional transport from noise to ECG using a convolutional encoder\-decoder with a transformer bottleneck and explicit flow\-time conditioning\. Motion information is incorporated through IMU\-derived conditioning features, motion\-dependent loss weighting, and an easy\-to\-hard training curriculum\. We evaluate the model under leave\-one\-subject\-out protocols on PPG\-DaLiA and WESAD\. BeatFlow\-ECG achieves the best results among the evaluated deterministic, adversarial, and diffusion\-based baselines across all reported waveform and beat\-timing metrics, with Pearson correlations of 0\.983 and 0\.986 and R\-peak F1 scores of 0\.946 and 0\.955, respectively\. Compared with Conditional DDPM\-1D, L1 error decreases from 0\.085 to 0\.062 on PPG\-DaLiA and from 0\.074 to 0\.055 on WESAD\. Additional analyses on PPG\-DaLiA show higher correlation in fixed R\-peak\-relative waveform regions and lower reconstruction error across low\-, medium\-, and high\-motion subsets\.

## 1Introduction

Electrocardiography \(ECG\) captures cardiac electrical activity with high temporal precision and provides clinically useful information about rhythm and waveform morphology\. However, continuous ECG acquisition outside clinical settings typically requires dedicated electrodes and specialized hardware\. Wearable photoplethysmography \(PPG\) is easier to acquire continuously, but it provides only an indirect measure of cardiovascular activity and is sensitive to motion artifacts and signal degradation\([Allen, 2007](https://arxiv.org/html/2610.09052#bib.bib4);[Tamura et al\., 2014](https://arxiv.org/html/2610.09052#bib.bib44);[Dias & Paulo Silva Cunha, 2018](https://arxiv.org/html/2610.09052#bib.bib12);[Elgendi et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib13)\)\. Reconstructing ECG from wearable signals could support ambulatory cardiac monitoring, but the relationship between peripheral pulse measurements and ECG varies across subjects and activity conditions\([Reiss et al\., 2019a](https://arxiv.org/html/2610.09052#bib.bib36);[Reiss et al\., 2019b](https://arxiv.org/html/2610.09052#bib.bib37)\)\. Accurate reconstruction therefore requires preserving both local waveform morphology and longer\-range beat timing\.

Prior work has explored ECG reconstruction and restoration using deterministic, adversarial, and diffusion\-based models\([Zhu et al\., 2019](https://arxiv.org/html/2610.09052#bib.bib50);[Zhu et al\., 2021](https://arxiv.org/html/2610.09052#bib.bib51);[Sarkar & Etemad, 2021](https://arxiv.org/html/2610.09052#bib.bib38);[Shome et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib40);[Ezzat et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib15);[Pinto et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib34);[Bedin et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib5)\)\. However, most existing work does not address subject\-independent reconstruction from multimodal wearable signals under substantial motion\. Diffusion\-based methods also require iterative sampling, which can increase inference cost\([Ho et al\., 2020](https://arxiv.org/html/2610.09052#bib.bib18);[Song et al\., 2021b](https://arxiv.org/html/2610.09052#bib.bib43);[Song et al\., 2021a](https://arxiv.org/html/2610.09052#bib.bib42)\)\.

We presentBeatFlow\-ECG, a conditional rectified\-flow framework for reconstructing single\-channel ECG from synchronized PPG and IMU signals\. Instead of directly regressing the waveform in one step, BeatFlow\-ECG models reconstruction as conditional transport from noise to ECG\. The model combines a convolutional encoder\-decoder with a transformer bottleneck and explicit flow\-time conditioning\. Motion information is incorporated through IMU\-derived conditioning features, motion\-dependent loss weighting, and an easy\-to\-hard training curriculum\.

We evaluate BeatFlow\-ECG on PPG\-DaLiA\([Reiss et al\., 2019a](https://arxiv.org/html/2610.09052#bib.bib36)\)and WESAD\([Schmidt et al\., 2018](https://arxiv.org/html/2610.09052#bib.bib39)\)under leave\-one\-subject\-out \(LOSO\) protocols\.

Our main contributions are:

- •We formulate single\-channel ECG reconstruction from synchronized wearable PPG and inertial measurements as a conditional rectified\-flow problem, modeling reconstruction as continuous transport from noise to ECG\.
- •We incorporate motion information through IMU\-derived conditioning features, motion\-weighted velocity matching, and a curriculum that gradually introduces higher\-motion windows, and evaluate the contribution of these components through ablations\.
- •We evaluate BeatFlow\-ECG under LOSO on PPG\-DaLiA and WESAD against deterministic, capacity\-matched, adversarial, and diffusion\-based baselines\. BeatFlow\-ECG achieves the best overall waveform and beat\-timing results among the evaluated models, with additional analyses examining regional waveform agreement, motion robustness, and inference efficiency\.

## 2Related Work

### 2\.1ECG reconstruction from indirect wearable signals

ECG reconstruction from indirect physiological signals has been studied using several approaches\. Early work mapped photoplethysmography \(PPG\) to ECG\([Zhu et al\., 2019](https://arxiv.org/html/2610.09052#bib.bib50);[Zhu et al\., 2021](https://arxiv.org/html/2610.09052#bib.bib51)\), while later studies considered dictionary\-learning formulations\([Tian et al\., 2020](https://arxiv.org/html/2610.09052#bib.bib45)\)and neural models for specific ECG components such as the QRS complex\([Chiu et al\., 2020](https://arxiv.org/html/2610.09052#bib.bib9)\)\. More recent methods include GAN\-based synthesis\([Sarkar & Etemad, 2021](https://arxiv.org/html/2610.09052#bib.bib38)\), attention\-based reconstruction\([Ezzat et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib15)\), modified U\-Net architectures\([Pinto et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib34)\), and diffusion\-based translation\([Shome et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib40)\)\. Most of these methods use PPG alone and do not explicitly use synchronized IMU measurements to account for motion\. Reported results also differ in datasets, preprocessing, train/test splits, signal lengths, sampling rates, and evaluation protocols, making direct numerical comparison across papers difficult\. BeatFlow\-ECG instead combines wrist PPG with IMU\-derived motion information and is evaluated under subject\-independent LOSO\. We also evaluate CardioGAN under the same LOSO protocol on both PPG\-DaLiA and WESAD\.

### 2\.2ECG restoration, morphology reconstruction, and lead reconstruction

ECG restoration has also been studied when ECG is available in partial, degraded, or reduced\-dimensional form\. Representative directions include ECG denoising\([Ravichandran et al\., 2019](https://arxiv.org/html/2610.09052#bib.bib35);[Chiang et al\., 2019](https://arxiv.org/html/2610.09052#bib.bib8);[Singh & Pradhan, 2021](https://arxiv.org/html/2610.09052#bib.bib41);[Li et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib26)\), imputation and restoration\([Xu et al\., 2022](https://arxiv.org/html/2610.09052#bib.bib46);[Jenkins et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib19)\), and lead reconstruction from reduced or single\-lead observations\([Garg et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib16);[Gundlapalle & Acharyya, 2022](https://arxiv.org/html/2610.09052#bib.bib17);[Zhan et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib47);[Joo et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib20);[Liu et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib29);[Liu & Zhang, 2025](https://arxiv.org/html/2610.09052#bib.bib30);[Nakanishi et al\., 2026](https://arxiv.org/html/2610.09052#bib.bib32)\)\. BeatDiff\([Bedin et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib5)\), which is closely related to our work, uses diffusion for ECG beat morphology reconstruction from indirect ECG observations\. These methods start from ECG observations and restore missing or corrupted ECG content\. In contrast, BeatFlow\-ECG reconstructs ECG directly from peripheral PPG and IMU measurements\.

### 2\.3Generative modeling foundations for physiological time series

Diffusion probabilistic models\([Ho et al\., 2020](https://arxiv.org/html/2610.09052#bib.bib18);[Song et al\., 2021b](https://arxiv.org/html/2610.09052#bib.bib43);[Song et al\., 2021a](https://arxiv.org/html/2610.09052#bib.bib42)\)and their conditional and inverse\-problem extensions\([Kawar et al\., 2022](https://arxiv.org/html/2610.09052#bib.bib22);[Chung et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib10);[Kawar et al\., 2021](https://arxiv.org/html/2610.09052#bib.bib21);[De Bortoli et al\., 2021](https://arxiv.org/html/2610.09052#bib.bib11);[Zhou et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib49)\)have been widely studied for structured generation\. In physiological signals, diffusion models have been applied to synthetic ECG generation, conditional ECG modeling, and multimodal cardiovascular signal generation\([Adib et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib1);[Alcaraz & Strodthoff, 2023](https://arxiv.org/html/2610.09052#bib.bib3);[Lai et al\., 2025](https://arxiv.org/html/2610.09052#bib.bib23);[Lin et al\., 2025](https://arxiv.org/html/2610.09052#bib.bib27);[Chen et al\., 2025](https://arxiv.org/html/2610.09052#bib.bib7)\)\. Diffusion\-based methods typically rely on iterative sampling, which can increase inference cost\([Ho et al\., 2020](https://arxiv.org/html/2610.09052#bib.bib18);[Song et al\., 2021b](https://arxiv.org/html/2610.09052#bib.bib43);[Song et al\., 2021a](https://arxiv.org/html/2610.09052#bib.bib42)\)\. Rectified flow and flow\-matching methods provide continuous\-time alternatives\([Lipman et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib28);[Liu et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib31);[Albergo et al\., 2025](https://arxiv.org/html/2610.09052#bib.bib2);[Esser et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib14);[Zhang et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib48)\)\. BeatFlow\-ECG applies this formulation to wearable ECG reconstruction with PPG/IMU conditioning and motion\-aware training\.

## 3Method

We presentBeatFlow\-ECG, a conditional rectified\-flow model for reconstructing ECG from wearable measurements\. We describe the rectified\-flow formulation, model architecture, motion\-aware training, and preprocessing pipeline below\.

### 3\.1Problem formulation

Letc∈ℝC×Tc\\in\\mathbb\{R\}^\{C\\times T\}denote the conditioning signal extracted from a wearable window of lengthTT, whereCCis the number of conditioning channels\. In our setting,ccis constructed from synchronized wearable measurements and derived timing and motion features, as described later in this section\. Letx∈ℝTx\\in\\mathbb\{R\}^\{T\}denote the corresponding target ECG waveform for the same time window\. For notational simplicity, we treat the ECG as a one\-channel sequence, although the formulation extends naturally to multi\-channel targets\.

The goal is to learn a conditional generative mapping from wearable observations to ECG,p⁡\(x∣c\)p\(x\\mid c\), such that the generated waveform preserves both signal\-level fidelity and waveform morphology\. Direct deterministic regression seeks a one\-shot mappingfθ​\(c\)→xf\_\{\\theta\}\(c\)\\rightarrow x, which can be brittle when the conditioning signals are indirect, noisy, or corrupted by motion\. We instead model ECG reconstruction as a continuous\-time conditional transport process from a simple reference distribution to the ECG data distribution\.

Formally, each training example is a paired sample\(x,c\)∼pdata​\(x,c\)\(x,c\)\\sim p\_\{\\mathrm\{data\}\}\(x,c\)\. We introduce a latent variablez∼𝒩⁡\(0,I\)z\\sim\\mathcal\{N\}\(0,I\)with the same dimensionality asxx, and define a continuous family of intermediate states\{xt\}t∈\[0,1\]\\\{x\_\{t\}\\\}\_\{t\\in\[0,1\]\}connecting noise to signal\. The learning problem is to estimate a time\-dependent conditional velocity fieldvθ​\(xt,t,c\)v\_\{\\theta\}\(x\_\{t\},t,c\)that transports a sample from the noise distribution toward the target ECG while remaining conditioned on the wearable observationscc\.

### 3\.2Conditional rectified\-flow formulation

We use rectified flow as the generative backbone of BeatFlow\-ECG\. Rectified flow learns a velocity field along straight conditional paths between a reference sample and a data sample using flow matching\([Lipman et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib28);[Liu et al\., 2023](https://arxiv.org/html/2610.09052#bib.bib31);[Esser et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib14);[Zhang et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib48)\)\. Compared with diffusion\-style denoising, sampling is performed by integrating the learned velocity field over an ODE trajectory\.

For each paired training example\(x,c\)\(x,c\)and noise samplez∼𝒩⁡\(0,I\)z\\sim\\mathcal\{N\}\(0,I\), we define the linear interpolation

xt=\(1−t\)​z\+t​x,t∈\[0,1\]\.x\_\{t\}=\(1\-t\)z\+tx,\\qquad t\\in\[0,1\]\.\(1\)This path connects pure noise att=0t=0to the target ECG att=1t=1\. Since its time derivative is constant, the network learns to predict the conditional velocityvθ​\(xt,t,c\)≈x−zv\_\{\\theta\}\(x\_\{t\},t,c\)\\approx x\-z\.

We train the model using an L1 velocity\-matching objective on the rectified\-flow target:

ℒFM​\(θ\)=𝔼\(x,c\)∼pdata,z∼𝒩⁡\(0,I\),t∼p⁡\(t\)​\[‖vθ​\(xt,t,c\)−\(x−z\)‖1\]\.\\mathcal\{L\}\_\{\\mathrm\{FM\}\}\(\\theta\)=\\mathbb\{E\}\_\{\(x,c\)\\sim p\_\{\\mathrm\{data\}\},\\,z\\sim\\mathcal\{N\}\(0,I\),\\,t\\sim p\(t\)\}\\left\[\\left\\\|v\_\{\\theta\}\(x\_\{t\},t,c\)\-\(x\-z\)\\right\\\|\_\{1\}\\right\]\.\(2\)The time\-sampling distributionp⁡\(t\)p\(t\)is specified in Appendix[A\.2](https://arxiv.org/html/2610.09052#A1.SS2)\.

Intuitively, the model is trained to predict the instantaneous direction that moves the intermediate statextx\_\{t\}toward the target ECGxx, while conditioning this prediction on the wearable observationcc\.

After training, ECG reconstruction is performed by solving the conditional ordinary differential equation

d​xtd​t=vθ​\(xt,t,c\),x0∼𝒩⁡\(0,I\),\\frac\{dx\_\{t\}\}\{dt\}=v\_\{\\theta\}\(x\_\{t\},t,c\),\\qquad x\_\{0\}\\sim\\mathcal\{N\}\(0,I\),\(3\)fromt=0t=0tot=1t=1\. In practice, we use an explicit Euler discretization withNNsteps:

x\(k\+1\)=x\(k\)\+Δ​t​vθ​\(x\(k\),tk,c\),tk=kN,Δ​t=1N,x^\{\(k\+1\)\}=x^\{\(k\)\}\+\\Delta t\\,v\_\{\\theta\}\\\!\\left\(x^\{\(k\)\},t\_\{k\},c\\right\),\\qquad t\_\{k\}=\\frac\{k\}\{N\},\\quad\\Delta t=\\frac\{1\}\{N\},\(4\)starting fromx\(0\)∼𝒩⁡\(0,I\)x^\{\(0\)\}\\sim\\mathcal\{N\}\(0,I\)\. The final statex\(N\)x^\{\(N\)\}is taken as the reconstructed ECG\.

The conditioning signalccguides the velocity field throughout the transport process\. We next describe the architecture used to parameterizevθ​\(xt,t,c\)v\_\{\\theta\}\(x\_\{t\},t,c\)\.

### 3\.3BeatFlow\-ECG architecture

![Refer to caption](https://arxiv.org/html/2610.09052v1/figures/New_Beatflow5.png)Figure 1:Overview of BeatFlow\-ECG\.Given the current intermediate statextx\_\{t\}, conditioning signalcc, and flow timett, the model predicts a conditional velocity fieldvθ​\(xt,t,c\)v\_\{\\theta\}\(x\_\{t\},t,c\)through a convolutional encoder, transformer bottleneck, and temporal decoder\.We parameterizevθ​\(xt,t,c\)v\_\{\\theta\}\(x\_\{t\},t,c\)with a hybrid convolutional\-transformer architecture that combines multiscale temporal convolutions with global sequence modeling, similar to recent rectified\-flow architectures for signal reconstruction\([Osman & Nadeem, 2026](https://arxiv.org/html/2610.09052#bib.bib33)\)\. The model receives the intermediate statextx\_\{t\}, wearable conditioning signalcc, and flow timett, wherecccontains the synchronized wearable measurements and derived timing and motion features\. Figures[1](https://arxiv.org/html/2610.09052#S3.F1)and[2](https://arxiv.org/html/2610.09052#S3.F2)show the architecture and its main computational blocks; additional details are provided in Appendix[A\.1](https://arxiv.org/html/2610.09052#A1.SS1)\.

#### Overview\.

BeatFlow\-ECG follows an encoder\-decoder architecture with a transformer bottleneck\. The current statext∈ℝTx\_\{t\}\\in\\mathbb\{R\}^\{T\}is concatenated with the conditioning signalc∈ℝC×Tc\\in\\mathbb\{R\}^\{C\\times T\}along the channel dimension and projected into the model feature space:

h0=Convin​\(\[xt;c\]\)\.h\_\{0\}=\\mathrm\{Conv\}\_\{\\mathrm\{in\}\}\(\[x\_\{t\};c\]\)\.\(5\)This early fusion lets the network learn cross\-modal interactions between the current reconstruction state and the wearable observations from the first layer onward\.

The fused representation is processed by a temporal encoder that reduces sequence length and extracts local temporal features\. Skip connections pass features at finer temporal resolutions to the decoder\. A transformer bottleneck models longer\-range dependencies across the encoded sequence, including relationships between beats\.

#### Time\-conditioned transformer blocks\.

Because the target velocity depends on flow timett, the model conditions its intermediate activations on a learned time embedding\. We map the scalar time value through Fourier features followed by a small multilayer perceptron:

et=MLP⁡\(Fourier⁡\(t\)\)\.e\_\{t\}=\\mathrm\{MLP\}\(\\mathrm\{Fourier\}\(t\)\)\.\(6\)The embeddingete\_\{t\}is injected through adaptive RMS normalization \(AdaRMSNorm\), allowing the network to adapt its behavior across the flow trajectory\. The transformer blocks use multi\-head self\-attention with rotary positional encoding \(RoPE\) and query\-key normalization \(QKNorm\) for stable temporal modeling, together with GEGLU feedforward blocks for gated feature selection\.

#### Decoder and output head\.

The decoder progressively upsamples the latent representation back to the original temporal resolution and combines it with encoder skip features\. A final normalization layer and1×11\\times 1convolutional head map the decoded representation to the velocity estimate

v^=vθ​\(xt,t,c\)\.\\hat\{v\}=v\_\{\\theta\}\(x\_\{t\},t,c\)\.\(7\)The output has the same temporal dimensionality as the target ECG and is used in the Euler update in Equation[4](https://arxiv.org/html/2610.09052#S3.E4)\.

### 3\.4Motion\-aware conditioning and training

Wrist PPG is often corrupted by motion artifacts during unconstrained daily activity, which can distort pulse morphology and weaken the relationship between peripheral pulse measurements and ECG structure\([Allen, 2007](https://arxiv.org/html/2610.09052#bib.bib4);[Dias & Paulo Silva Cunha, 2018](https://arxiv.org/html/2610.09052#bib.bib12);[Lemay et al\., 2014](https://arxiv.org/html/2610.09052#bib.bib24);[Elgendi et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib13)\)\. BeatFlow\-ECG therefore incorporates motion information through conditioning features, sample weighting, and an easy\-to\-hard training curriculum\. Additional implementation details are provided in Appendix[A\.3](https://arxiv.org/html/2610.09052#A1.SS3)\.

Figure 2:Detailed blocks of BeatFlow\-ECG\.\(a\) Time\-conditioning network\. \(b\) Convolutional encoder block\. \(c\) Transformer block\. \(d\) Convolutional decoder block\. Together, these components parameterize the conditional velocity field used for ECG reconstruction\.#### Motion\-aware conditioning\.

We augment the wearable conditioning representation with IMU\-derived descriptors, using acceleration magnitudemacc​\[n\]=ax​\[n\]2\+ay​\[n\]2\+az​\[n\]2m\_\{\\mathrm\{acc\}\}\[n\]=\\sqrt\{a\_\{x\}\[n\]^\{2\}\+a\_\{y\}\[n\]^\{2\}\+a\_\{z\}\[n\]^\{2\}\}as a compact measure of instantaneous motion intensity\. This provides motion context that can help the model adapt reconstruction under changes in wearable signal quality\.

#### Motion\-aware loss weighting\.

To place greater emphasis on higher\-motion windows, we compute a window\-level scoresmotion=Std⁡\(macc\)s\_\{\\mathrm\{motion\}\}=\\mathrm\{Std\}\(m\_\{\\mathrm\{acc\}\}\), normalize it within each mini\-batch tos~motion\\tilde\{s\}\_\{\\mathrm\{motion\}\}, and set the sample weight tow=1\+α​s~motionw=1\+\\alpha\\tilde\{s\}\_\{\\mathrm\{motion\}\}\. The weighted flow\-matching objective is

ℒmotion​\(θ\)=𝔼⁡\[w​‖vθ​\(xt,t,c\)−\(x−z\)‖1\]\.\\mathcal\{L\}\_\{\\mathrm\{motion\}\}\(\\theta\)=\\mathbb\{E\}\\left\[w\\,\\\|v\_\{\\theta\}\(x\_\{t\},t,c\)\-\(x\-z\)\\\|\_\{1\}\\right\]\.\(8\)

#### Spectral consistency\.

We additionally use an STFT magnitude loss to encourage consistency in the frequency\-domain structure of the reconstructed ECG\. For this auxiliary training loss, we define the ECG estimatex^=z\+vθ​\(xt,t,c\)\\hat\{x\}=z\+v\_\{\\theta\}\(x\_\{t\},t,c\), which equals the targetxxwhen the predicted velocity matches the target velocityx−zx\-z\. The full training objective is

ℒ=ℒmotion\+λSTFT​‖\|STFT⁡\(x^\)\|−\|STFT⁡\(x\)\|‖1\.\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{motion\}\}\+\\lambda\_\{\\mathrm\{STFT\}\}\\left\\\|\|\\mathrm\{STFT\}\(\\hat\{x\}\)\|\-\|\\mathrm\{STFT\}\(x\)\|\\right\\\|\_\{1\}\.\(9\)We useλSTFT=0\.10\\lambda\_\{\\mathrm\{STFT\}\}=0\.10; additional implementation details are provided in Appendix[A\.2](https://arxiv.org/html/2610.09052#A1.SS2)\.

#### Curriculum over motion difficulty\.

We also use an easy\-to\-hard curriculum in which lower\-motion windows are emphasized earlier in training and higher\-motion windows are gradually introduced\. This helps the model first learn the core physiological mapping before adapting to more corrupted wearable observations\.

### 3\.5Signal preprocessing and feature construction

We preprocess all sensor streams into synchronized fixed\-length windows and augment them with timing and motion features\. Additional preprocessing details, including the full equations, are provided in Appendix[B\.1](https://arxiv.org/html/2610.09052#A2.SS1)\.

#### Filtering, resampling, and normalization\.

Raw PPG and ECG signals contain baseline drift, high\-frequency noise, and motion\-related perturbations that can obscure physiologically relevant structure\([Allen, 2007](https://arxiv.org/html/2610.09052#bib.bib4);[Tamura et al\., 2014](https://arxiv.org/html/2610.09052#bib.bib44);[Li & Boulanger, 2021](https://arxiv.org/html/2610.09052#bib.bib25);[Li et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib26)\)\. We apply signal\-specific bandpass filtering before cross\-modal alignment, using 0\.4\-8 Hz for PPG and 0\.5\-40 Hz for ECG\. All modalities are then resampled to 125 Hz and z\-score normalized independently within each 10\-second window\.

#### Alignment and window extraction\.

After preprocessing, all modalities are temporally aligned and segmented into overlapping 10\-second windows with a 5\-second stride, corresponding to 1250 samples and 625 samples at 125 Hz\. Each training example consists of a synchronized wearable conditioning tensor and a one\-channel ECG target waveform extracted from the same interval\.

#### Physiological timing and motion features\.

To provide beat\-level temporal context, we augment the conditioning signal with a normalized phase feature derived from consecutive PPG peaks\([Charlton et al\., 2022](https://arxiv.org/html/2610.09052#bib.bib6)\)\. This feature represents the relative position of each sample within the pulse cycle\. Because wearable PPG is sensitive to motion corruption, we also include IMU\-derived motion descriptors, including acceleration magnitude and short\-term motion statistics computed over a rolling 0\.5\-second window\. The final conditioning tensor therefore combines synchronized wearable measurements with derived timing and motion features\.

## 4Experimental Setup

We evaluate BeatFlow\-ECG on subject\-independent ECG reconstruction from wearable signals\. Additional implementation and experimental details are provided in Appendices[A](https://arxiv.org/html/2610.09052#A1)and[B](https://arxiv.org/html/2610.09052#A2)\.

### 4\.1Datasets and evaluation protocol

We evaluate on two public wearable datasets, PPG\-DaLiA\([Reiss et al\., 2019a](https://arxiv.org/html/2610.09052#bib.bib36)\)and WESAD\([Schmidt et al\., 2018](https://arxiv.org/html/2610.09052#bib.bib39)\), using a separate LOSO evaluation for each dataset\.

#### PPG\-DaLiA\.

PPG\-DaLiA contains wrist PPG, wrist inertial measurements, and chest reference signals, including ECG, from 15 subjects during daily\-life activities with substantial motion and cross\-subject variability\. Additional preprocessing and target\-construction details are provided in Appendix[B\.1](https://arxiv.org/html/2610.09052#A2.SS1)\.

#### WESAD\.

WESAD is a multimodal wearable dataset with synchronized physiological, motion, and ECG signals collected under a different acquisition protocol\. We use it as a second benchmark beyond PPG\-DaLiA\.

We use the preprocessing pipeline in Section[3\.5](https://arxiv.org/html/2610.09052#S3.SS5), with 10\-second windows containing PPG, IMU\-derived features, and physiological phase information paired with a one\-channel ECG target\.

We use a leave\-one\-subject\-out \(LOSO\) protocol on each dataset separately\. In each fold, one subject is held out for testing and the remaining subjects are used for training and validation\. The held\-out subject is not used during model fitting or checkpoint selection, so the evaluation measures generalization to an unseen subject\.

### 4\.2Baselines and metrics

We compare BeatFlow\-ECG with deterministic, diffusion\-based, and adversarial baselines\. UNet1D and AttnSeq are convolutional and attention\-based direct regressors, respectively; UNet1D\-Large and AttnSeq\-Large provide capacity\-matched variants\. Conditional DDPM\-1D uses the same conditioning inputs and LOSO protocol as BeatFlow\-ECG\. CardioGAN\([Sarkar & Etemad, 2021](https://arxiv.org/html/2610.09052#bib.bib38)\)uses PPG only, following its original formulation, and is evaluated under the same dataset\-specific LOSO protocol on both datasets\. Full architecture and training details are provided in Appendix[E\.1](https://arxiv.org/html/2610.09052#A5.SS1)\.

We report L1 error, RMSE, and Pearson correlationrrfor waveform fidelity, and R\-peak F1 with a 100\-ms matching tolerance and absolute heart\-rate error for beat timing\. On PPG\-DaLiA, we also report correlations within fixed R\-peak\-relative windows corresponding approximately to the P\-wave, QRS complex, and T\-wave regions, together with reconstruction error across IMU\-derived motion levels\. Additional metric definitions and inference\-efficiency results are provided in Appendices[B\.2](https://arxiv.org/html/2610.09052#A2.SS2)and[D\.1](https://arxiv.org/html/2610.09052#A4.SS1)\.

### 4\.3Implementation details

All models use 125 Hz windows of 1250 samples\. In each LOSO fold, 10% of non\-test windows are sampled for validation using seed 42, with the remainder used for training\. Because consecutive windows overlap by 5 seconds, training and validation sets can share raw samples within the training subjects, while the held\-out test subject remains fully isolated\. BeatFlow\-ECG uses 120 explicit Euler steps at inference\. All baselines use the same dataset\-specific LOSO splits and evaluation metrics\. Training and baseline details are provided in Appendices[A\.2](https://arxiv.org/html/2610.09052#A1.SS2)and[E\.1](https://arxiv.org/html/2610.09052#A5.SS1)\. Experiments were run on an NVIDIA H100 GPU\.

## 5Results

Table 1:Overall LOSO performance across PPG\-DaLiA and WESAD\.Values are mean \[95% CI\] across held\-out subject folds\. Lower is better for L1, RMSE, and HR error; higher is better for Pearsonrrand R\-peak F1\.Table[1](https://arxiv.org/html/2610.09052#S5.T1)shows that BeatFlow\-ECG achieves the best results across all reported metrics\. On PPG\-DaLiA, compared with Conditional DDPM\-1D, it reduces L1 error from 0\.085 to 0\.062, increases Pearson correlation from 0\.962 to 0\.983, and improves R\-peak F1 from 0\.905 to 0\.946\. On WESAD, it reduces L1 error from 0\.074 to 0\.055 and improves R\-peak F1 from 0\.918 to 0\.955\. The capacity\-matched UNet1D\-Large and AttnSeq\-Large baselines remain weaker, indicating that parameter count alone does not explain the performance gap\.

Paired Wilcoxon signed\-rank tests across the 15 held\-out PPG\-DaLiA subjects show lower L1 and HR error for BeatFlow\-ECG than for Conditional DDPM\-1D and UNet1D \(p<0\.01p<0\.01for each comparison\)\.

### 5\.1Morphology\-sensitive analysis

Whole\-window correlation can be dominated by the QRS complex and may not fully reflect lower\-amplitude ECG morphology\. We therefore evaluate Pearson correlation over fixed R\-peak\-relative windows on PPG\-DaLiA that correspond approximately to the P\-wave, QRS complex, and T\-wave regions\. Appendix[D\.5](https://arxiv.org/html/2610.09052#A4.SS5)provides the window boundaries\.

Table[2](https://arxiv.org/html/2610.09052#S5.T2)shows that BeatFlow\-ECG achieves the highest correlation in all three waveform regions, including the lower\-amplitude P\-wave and T\-wave regions\. These results are limited to the healthy cohorts used in this study and do not establish generalization to pathological ECG morphology\.

Table 2:Morphology\-sensitive evaluation on PPG\-DaLiA\.Pearson correlation is computed over fixed R\-peak\-relative windows corresponding approximately to the P\-wave, QRS complex, and T\-wave regions\. Higher is better\.\(a\)Low\-error example\.\(b\)Moderate\-error example\.\(c\)Higher\-error example\.
Figure 3:Qualitative ECG reconstruction examples\.Each panel shows wearable PPG, reconstructed ECG, reference ECG, and motion signal across windows with varying reconstruction error\.
### 5\.2Subject\-wise analysis

BeatFlow\-ECG performs strongly across most held\-out subjects\. S6 and S10 are among the more difficult PPG\-DaLiA folds; for S6, the dataset authors also report a recording hardware issue that reduced the valid recording duration\([Reiss et al\., 2019a](https://arxiv.org/html/2610.09052#bib.bib36)\)\. We retain both subjects in the evaluation\. Detailed subject\-wise results are provided in Appendix[D\.3](https://arxiv.org/html/2610.09052#A4.SS3)\.

### 5\.3Qualitative reconstruction analysis

Figure[3](https://arxiv.org/html/2610.09052#S5.F3)shows example reconstructions across windows with varying reconstruction error\. BeatFlow\-ECG preserves the dominant beat structure, timing, and local waveform morphology\. Additional peak\-alignment examples, reconstruction trajectories, and baseline comparisons are provided in Appendices[C\.2](https://arxiv.org/html/2610.09052#A3.SS2),[C\.3](https://arxiv.org/html/2610.09052#A3.SS3), and[D\.4](https://arxiv.org/html/2610.09052#A4.SS4)\.

### 5\.4Motion robustness analysis

Because PPG\-DaLiA contains substantial daily\-life motion, we further evaluate reconstruction across low\-, medium\-, and high\-motion subsets\. No test windows are excluded based on ECG quality, motion level, or reconstruction difficulty; all windows satisfying the fixed preprocessing and alignment requirements are retained\. For each held\-out test window, we compute the same IMU\-derived motion score and divide the test windows into low\-, medium\-, and high\-motion groups using the 33rd and 67th percentiles of the motion\-score distribution\. The resulting grouping is fixed and applied identically to all models\.

Table 3:Motion\-stratified L1 error on PPG\-DaLiA\.Lower is better\.Table[3](https://arxiv.org/html/2610.09052#S5.T3)shows that reconstruction error increases with motion for all models, while BeatFlow\-ECG remains lowest across all three motion levels\. The IMU\-derived score measures motion exposure only and is not interpreted as ECG SNR, since PPG\-DaLiA does not provide a paired artifact\-free ECG reference for each segment\. Additional motion visualizations are provided in Appendix[D\.2](https://arxiv.org/html/2610.09052#A4.SS2)\.

### 5\.5Ablation Study

We evaluate the contribution of the main design components of BeatFlow\-ECG on PPG\-DaLiA\. Each variant removes the indicated component while keeping the remaining training setup fixed\.

Table 4:Ablation study on PPG\-DaLiA\.Lower is better for L1, RMSE, and HR error; higher is better for Pearsonrrand R\-peak F1\.Table[4](https://arxiv.org/html/2610.09052#S5.T4)shows that all evaluated ablations degrade performance\. Removing both motion weighting and the STFT loss gives the largest degradation, increasing L1 from 0\.062 to 0\.084 and HR error from 4\.89 to 5\.85 bpm\. Motion conditioning, the curriculum, and the STFT objective also each improve performance\.

## 6Discussion

BeatFlow\-ECG remains stronger than the deterministic baselines and Conditional DDPM\-1D, while the capacity\-matched variants indicate that model size alone does not explain the performance gap\. On PPG\-DaLiA, BeatFlow\-ECG also shows higher regional waveform correlations and lower reconstruction error across motion levels\. Although slower than the single\-pass deterministic models, it requires substantially fewer function evaluations than the evaluated DDPM configuration \(Appendix[D\.1](https://arxiv.org/html/2610.09052#A4.SS1)\)\.

## 7Limitations

Our evaluation is limited to PPG\-DaLiA and WESAD and does not establish generalization across different devices, populations, sensor placements, or clinical conditions\. Both datasets mainly contain healthy subjects, so the morphology results do not demonstrate reconstruction of pathological ECG patterns such as atrial fibrillation, conduction abnormalities, or abnormal T\-wave morphology\. The current model also reconstructs a single\-channel ECG rather than a diagnostic 12\-lead ECG\. Future work should evaluate larger and more clinically diverse cohorts, investigate uncertainty estimation, and conduct prospective clinical validation\.

## 8Conclusion

We introduced BeatFlow\-ECG, a conditional rectified\-flow framework for ECG reconstruction from indirect wearable signals\. Under LOSO on PPG\-DaLiA and WESAD, it achieves the best overall waveform and beat\-timing results among the evaluated baselines, with higher regional waveform correlations and lower reconstruction error across motion levels on PPG\-DaLiA\.

## Ethics Statement

BeatFlow\-ECG reconstructs ECG rather than directly measuring it, and reconstruction errors could lead to false reassurance or false alarms if used clinically\. The results in this study should therefore not be interpreted as establishing diagnostic validity\. Prospective clinical validation would be required before clinical use\.

## Reproducibility Statement

The main paper describes the model formulation, preprocessing pipeline, LOSO evaluation protocol, baselines, and evaluation metrics\. The appendix provides additional architecture and training details, preprocessing equations, baseline configurations, confidence intervals, subject\-wise results, and efficiency analyses\. All experiments use the publicly available PPG\-DaLiA and WESAD datasets\.

## AI Use Statement

We used LLMs to polish the manuscript and correct grammatical errors\. All scientific content was developed and verified by the authors\.

## References

- Adib et al\. \(2023\)Edmond Adib, Amanda Fernandez, Fatemeh Afghah, and John Prevost\.Synthetic ECG signal generation using probabilistic diffusion models\.*IEEE Access*, 11:75818–75828, 01 2023\.doi:10\.1109/ACCESS\.2023\.3296542\.
- Albergo et al\. \(2025\)Michael S\. Albergo, Nicholas M\. Boffi, and Eric Vanden\-Eijnden\.Stochastic interpolants: A unifying framework for flows and diffusions, 2025\.URL[https://arxiv\.org/abs/2303\.08797](https://arxiv.org/abs/2303.08797)\.
- Alcaraz & Strodthoff \(2023\)Juan Miguel Lopez Alcaraz and Nils Strodthoff\.Diffusion\-based conditional ECG generation with structured state space models\.*Computers in Biology and Medicine*, 163:107115, 2023\.ISSN 0010\-4825\.doi:https://doi\.org/10\.1016/j\.compbiomed\.2023\.107115\.URL[https://www\.sciencedirect\.com/science/article/pii/S0010482523005802](https://www.sciencedirect.com/science/article/pii/S0010482523005802)\.
- Allen \(2007\)John Allen\.Photoplethysmography and its application in clinical physiological measurement\.*Physiol\. Meas\.*, 28\(3\):R1–39, March 2007\.
- Bedin et al\. \(2024\)Lisa Bedin, Gabriel Cardoso, Josselin Duchateau, Remi Dubois, and Eric Moulines\.Leveraging an ECG beat diffusion model for morphological reconstruction from indirect signals\.In A\. Globerson, L\. Mackey, D\. Belgrave, A\. Fan, U\. Paquet, J\. Tomczak, and C\. Zhang \(eds\.\),*Advances in Neural Information Processing Systems*, volume 37, pp\. 84409–84446\. Curran Associates, Inc\., 2024\.doi:10\.52202/079017\-2682\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2024/file/9988f2c8e07c1f98af7ba9ca31ccae0b\-Paper\-Conference\.pdf](https://proceedings.neurips.cc/paper_files/paper/2024/file/9988f2c8e07c1f98af7ba9ca31ccae0b-Paper-Conference.pdf)\.
- Charlton et al\. \(2022\)Peter H Charlton, Kevin Kotzen, Elisa Mejía\-Mejía, Philip J Aston, Karthik Budidha, Jonathan Mant, Callum Pettit, Joachim A Behar, and Panicos A Kyriacou\.Detecting beats in the photoplethysmogram: benchmarking open\-source algorithms\.*Physiol\. Meas\.*, 43\(8\):085007, August 2022\.
- Chen et al\. \(2025\)Zehua Chen, Yuyang Miao, Liyuan Wang, Luyun Fan, Danilo P Mandic, and Jun Zhu\.Versatile cardiovascular signal generation with a unified diffusion transformer\.*Nat\. Mach\. Intell\.*, December 2025\.
- Chiang et al\. \(2019\)Hsin\-Tien Chiang, Yi\-Yen Hsieh, Szu\-Wei Fu, Kuo\-Hsuan Hung, Yu Tsao, and Shao\-Yi Chien\.Noise reduction in ECG signals using fully convolutional denoising autoencoders\.*IEEE Access*, 7:60806–60813, 2019\.doi:10\.1109/ACCESS\.2019\.2912036\.
- Chiu et al\. \(2020\)Hong\-Yu Chiu, Hong\-Han Shuai, and Paul C\.\-P\. Chao\.Reconstructing QRS complex from PPG by transformed attentional neural networks\.*IEEE Sensors Journal*, 20\(20\):12374–12383, 2020\.doi:10\.1109/JSEN\.2020\.3000344\.
- Chung et al\. \(2023\)Hyungjin Chung, Jeongsol Kim, Michael T\. McCann, Marc L\. Klasky, and Jong Chul Ye\.Diffusion posterior sampling for general noisy inverse problems\.In*International Conference on Learning Representations*, 2023\.URL[https://openreview\.net/forum?id=OnD9zGAGT0k](https://openreview.net/forum?id=OnD9zGAGT0k)\.
- De Bortoli et al\. \(2021\)Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet\.Diffusion schrödinger bridge with applications to score\-based generative modeling\.In*Proceedings of the 35th International Conference on Neural Information Processing Systems*, NIPS ’21, Red Hook, NY, USA, 2021\. Curran Associates Inc\.ISBN 9781713845393\.
- Dias & Paulo Silva Cunha \(2018\)Duarte Dias and João Paulo Silva Cunha\.Wearable health devices\-vital sign monitoring, systems and technologies\.*Sensors \(Basel\)*, 18\(8\):2414, July 2018\.
- Elgendi et al\. \(2024\)Mohamed Elgendi, Fridolin Haugg, Richard Ribon Fletcher, John Allen, Hangsik Shin, Aymen Alian, and Carlo Menon\.Recommendations for evaluating photoplethysmography\-based algorithms for blood pressure assessment\.*Commun\. Med\. \(Lond\.\)*, 4\(1\):140, July 2024\.
- Esser et al\. \(2024\)Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, Dustin Podell, Tim Dockhorn, Zion English, and Robin Rombach\.Scaling rectified flow transformers for high\-resolution image synthesis\.In*Proceedings of the 41st International Conference on Machine Learning*, ICML’24\. JMLR\.org, 2024\.
- Ezzat et al\. \(2024\)Ahmed Ezzat, Osama A Omer, Usama S Mohamed, and Ahmed S Mubarak\.ECG signal reconstruction from PPG using a hybrid attention\-based deep learning network\.*EURASIP J\. Adv\. Signal Process\.*, 2024\(1\), November 2024\.
- Garg et al\. \(2023\)Akshit Garg, Vijay Vignesh Venkataramani, and U\. Deva Priyakumar\.Single\-lead to multi\-lead electrocardiogram reconstruction using a modified attention U\-Net framework\.In*2023 International Joint Conference on Neural Networks \(IJCNN\)*, pp\. 1–8, 2023\.doi:10\.1109/IJCNN54540\.2023\.10191213\.
- Gundlapalle & Acharyya \(2022\)Vishnuvardhan Gundlapalle and Amit Acharyya\.A novel single lead to 12\-lead ECG reconstruction methodology using convolutional neural networks and LSTM\.In*2022 IEEE 13th Latin America Symposium on Circuits and System \(LASCAS\)*, pp\. 01–04, 2022\.doi:10\.1109/LASCAS53948\.2022\.9789045\.
- Ho et al\. \(2020\)Jonathan Ho, Ajay Jain, and Pieter Abbeel\.Denoising diffusion probabilistic models\.In*Advances in Neural Information Processing Systems*, volume 33, pp\. 6840–6851\. Curran Associates, Inc\., 2020\.
- Jenkins et al\. \(2023\)Alexander Jenkins, Zehua Chen, Fu Siong Ng, and Danilo Mandic\.Improving diffusion models for ECG imputation with an augmented template prior, 2023\.URL[https://arxiv\.org/abs/2310\.15742](https://arxiv.org/abs/2310.15742)\.
- Joo et al\. \(2023\)Jinho Joo, Gihun Joo, Yeji Kim, Moo\-Nyun Jin, Junbeom Park, and Hyeonseung Im\.Twelve\-lead ECG reconstruction from single\-lead signals using generative adversarial networks\.In Hayit Greenspan, Anant Madabhushi, Parvin Mousavi, Septimiu Salcudean, James Duncan, Tanveer Syeda\-Mahmood, and Russell Taylor \(eds\.\),*Medical Image Computing and Computer Assisted Intervention – MICCAI 2023*, pp\. 184–194, Cham, 2023\. Springer Nature Switzerland\.ISBN 978\-3\-031\-43990\-2\.
- Kawar et al\. \(2021\)Bahjat Kawar, Gregory Vaksman, and Michael Elad\.SNIPS: Solving noisy inverse problems stochastically\.In*Advances in Neural Information Processing Systems*, 2021\.
- Kawar et al\. \(2022\)Bahjat Kawar, Michael Elad, Stefano Ermon, and Jiaming Song\.Denoising diffusion restoration models\.NIPS ’22, Red Hook, NY, USA, 2022\. Curran Associates Inc\.ISBN 9781713871088\.
- Lai et al\. \(2025\)Yongfan Lai, Jiabo Chen, Qinghao Zhao, Deyun Zhang, Yue Wang, Shijia Geng, Hongyan Li, and Shenda Hong\.DiffuSETS: 12\-lead ECG generation conditioned on clinical text reports and patient\-specific information\.*Patterns*, 6\(10\):101291, October 2025\.ISSN 2666\-3899\.doi:10\.1016/j\.patter\.2025\.101291\.URL[http://dx\.doi\.org/10\.1016/j\.patter\.2025\.101291](http://dx.doi.org/10.1016/j.patter.2025.101291)\.
- Lemay et al\. \(2014\)Mathieu Lemay, Mattia Bertschi, Josep Sola, Philippe Renevey, Jakub Parak, and Ilkka Korhonen\.Chapter 2\.3 \- application of optical heart rate monitoring\.In Edward Sazonov and Michael R\. Neuman \(eds\.\),*Wearable Sensors*, pp\. 105–129\. Academic Press, Oxford, 2014\.ISBN 978\-0\-12\-418662\-0\.doi:https://doi\.org/10\.1016/B978\-0\-12\-418662\-0\.00023\-4\.URL[https://www\.sciencedirect\.com/science/article/pii/B9780124186620000234](https://www.sciencedirect.com/science/article/pii/B9780124186620000234)\.
- Li & Boulanger \(2021\)Hongzu Li and Pierre Boulanger\.An automatic method to reduce baseline wander and motion artifacts on ambulatory electrocardiogram signals\.*Sensors \(Basel\)*, 21\(24\):8169, December 2021\.
- Li et al\. \(2024\)Huayu Li, Gregory Ditzler, Janet Roveda, and Ao Li\.DeScoD\-ECG: Deep score\-based diffusion model for ECG baseline wander and noise removal\.*IEEE Journal of Biomedical and Health Informatics*, 28\(9\):5081–5091, September 2024\.ISSN 2168\-2208\.doi:10\.1109/jbhi\.2023\.3237712\.URL[http://dx\.doi\.org/10\.1109/JBHI\.2023\.3237712](http://dx.doi.org/10.1109/JBHI.2023.3237712)\.
- Lin et al\. \(2025\)Yuxin Lin, Jing Ma, Suyu Dong, Chaoyu Sun, Wanting Cong, Kuanquan Wang, Gongning Luo, and Wei Wang\.TransDiffECG: Semantically controllable ECG synthesis via transformer\-based diffusion modeling\.*Journal of Biomedical Informatics*, 172:104948, 2025\.ISSN 1532\-0464\.doi:https://doi\.org/10\.1016/j\.jbi\.2025\.104948\.URL[https://www\.sciencedirect\.com/science/article/pii/S1532046425001777](https://www.sciencedirect.com/science/article/pii/S1532046425001777)\.
- Lipman et al\. \(2023\)Yaron Lipman, Ricky T\. Q\. Chen, Heli Ben\-Hamu, Maximilian Nickel, and Matthew Le\.Flow matching for generative modeling\.In*International Conference on Learning Representations*, 2023\.URL[https://openreview\.net/forum?id=PqvMRDCJT9t](https://openreview.net/forum?id=PqvMRDCJT9t)\.
- Liu et al\. \(2024\)Jingwei Liu, Hongyan Li, and Shenda Hong\.Synthesis of standard 12\-lead ECG from single\-lead ECG using shifted diffusion models\.In Albert Bifet, Tomas Krilavičius, Ioanna Miliou, and Slawomir Nowaczyk \(eds\.\),*Machine Learning and Knowledge Discovery in Databases\. Applied Data Science Track*, pp\. 271–286, Cham, 2024\. Springer Nature Switzerland\.ISBN 978\-3\-031\-70378\-2\.
- Liu & Zhang \(2025\)Mingzhe Liu and Hongpo Zhang\.*A Personalized ECG Lead Reconstruction Method Based on Denoising Diffusion Model*, pp\. 170–175\.Association for Computing Machinery, New York, NY, USA, 2025\.ISBN 9798400713637\.URL[https://doi\.org/10\.1145/3730436\.3730464](https://doi.org/10.1145/3730436.3730464)\.
- Liu et al\. \(2023\)Xingchao Liu, Chengyue Gong, and Qiang Liu\.Flow straight and fast: Learning to generate and transfer data with rectified flow\.In*International Conference on Learning Representations*, 2023\.URL[https://openreview\.net/forum?id=XVjTT1nw5z](https://openreview.net/forum?id=XVjTT1nw5z)\.
- Nakanishi et al\. \(2026\)Ryuichi Nakanishi, Akimasa Hirata, and Yoshiki Kubota\.Deep learning\-based multi\-lead ecg reconstruction from lead i with metadata integration and uncertainty estimation\.*Sensors*, 26\(1\), 2026\.ISSN 1424\-8220\.doi:10\.3390/s26010212\.URL[https://www\.mdpi\.com/1424\-8220/26/1/212](https://www.mdpi.com/1424-8220/26/1/212)\.
- Osman & Nadeem \(2026\)Mohamed Osman and Tamer Nadeem\.Loraflow: High\-quality signal reconstruction using rectified flow\.*IEEE Internet of Things Journal*, January 2026\.doi:10\.1109/JIOT\.2026\.3656336\.URL[https://ieeexplore\.ieee\.org/document/11359196](https://ieeexplore.ieee.org/document/11359196)\.Early Access\.
- Pinto et al\. \(2024\)Rafael Albuquerque Pinto, Hygo Sousa De Oliveira, Eduardo Souto, Rafael Giusti, and Rodrigo Veras\.Inferring ECG waveforms from PPG signals with a modified U\-Net neural network\.*Sensors*, 24\(18\), 2024\.ISSN 1424\-8220\.doi:10\.3390/s24186046\.URL[https://www\.mdpi\.com/1424\-8220/24/18/6046](https://www.mdpi.com/1424-8220/24/18/6046)\.
- Ravichandran et al\. \(2019\)Vignesh Ravichandran, Balamurali Murugesan, Sharath M\. Shankaranarayana, Keerthi Ram, Preejith S\.P\., Jayaraj Joseph, and Mohanasankar Sivaprakasam\.Deep network for capacitive ECG denoising\.In*2019 IEEE International Symposium on Medical Measurements and Applications \(MeMeA\)*, pp\. 1–6, 2019\.doi:10\.1109/MeMeA\.2019\.8802155\.
- Reiss et al\. \(2019a\)Attila Reiss, Ina Indlekofer, and Philip Schmidt\.PPG\-DaLiA\.UCI Machine Learning Repository, 2019a\.URL[https://doi\.org/10\.24432/C53890](https://doi.org/10.24432/C53890)\.
- Reiss et al\. \(2019b\)Attila Reiss, Ina Indlekofer, Philip Schmidt, and Kristof Van Laerhoven\.Deep ppg: Large\-scale heart rate estimation with convolutional neural networks\.*Sensors*, 19\(14\), 2019b\.ISSN 1424\-8220\.doi:10\.3390/s19143079\.URL[https://www\.mdpi\.com/1424\-8220/19/14/3079](https://www.mdpi.com/1424-8220/19/14/3079)\.
- Sarkar & Etemad \(2021\)Pritam Sarkar and Ali Etemad\.CardioGAN: Attentive generative adversarial network with dual discriminators for synthesis of ECG from PPG\.*Proceedings of the AAAI Conference on Artificial Intelligence*, 35\(1\):488–496, May 2021\.doi:10\.1609/aaai\.v35i1\.16126\.URL[https://ojs\.aaai\.org/index\.php/AAAI/article/view/16126](https://ojs.aaai.org/index.php/AAAI/article/view/16126)\.
- Schmidt et al\. \(2018\)Philip Schmidt, Attila Reiss, Robert Duerichen, Claus Marberger, and Kristof Van Laerhoven\.Introducing wesad, a multimodal dataset for wearable stress and affect detection\.In*Proceedings of the 20th ACM International Conference on Multimodal Interaction*, ICMI ’18, pp\. 400–408, New York, NY, USA, 2018\. Association for Computing Machinery\.ISBN 9781450356923\.doi:10\.1145/3242969\.3242985\.URL[https://doi\.org/10\.1145/3242969\.3242985](https://doi.org/10.1145/3242969.3242985)\.
- Shome et al\. \(2024\)Debaditya Shome, Pritam Sarkar, and Ali Etemad\.Region\-disentangled diffusion model for high\-fidelity PPG\-to\-ECG translation\.In*Proceedings of the Thirty\-Eighth AAAI Conference on Artificial Intelligence and Thirty\-Sixth Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence*, AAAI’24/IAAI’24/EAAI’24\. AAAI Press, 2024\.ISBN 978\-1\-57735\-887\-9\.doi:10\.1609/aaai\.v38i13\.29422\.URL[https://doi\.org/10\.1609/aaai\.v38i13\.29422](https://doi.org/10.1609/aaai.v38i13.29422)\.
- Singh & Pradhan \(2021\)Pratik Singh and Gayadhar Pradhan\.A new ECG denoising framework using generative adversarial network\.*IEEE/ACM Transactions on Computational Biology and Bioinformatics*, 18\(2\):759–764, 2021\.doi:10\.1109/TCBB\.2020\.2976981\.
- Song et al\. \(2021a\)Jiaming Song, Chenlin Meng, and Stefano Ermon\.Denoising diffusion implicit models\.In*International Conference on Learning Representations*, 2021a\.URL[https://openreview\.net/forum?id=St1giarCHLP](https://openreview.net/forum?id=St1giarCHLP)\.
- Song et al\. \(2021b\)Yang Song, Jascha Sohl\-Dickstein, Diederik P\. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole\.Score\-based generative modeling through stochastic differential equations\.In*9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3\-7, 2021*\. OpenReview\.net, 2021b\.URL[https://openreview\.net/forum?id=PxTIG12RRHS](https://openreview.net/forum?id=PxTIG12RRHS)\.
- Tamura et al\. \(2014\)Toshiyo Tamura, Yuka Maeda, Masaki Sekine, and Masaki Yoshida\.Wearable photoplethysmographic sensors—past and present\.*Electronics*, 3\(2\):282–302, 2014\.ISSN 2079\-9292\.doi:10\.3390/electronics3020282\.URL[https://www\.mdpi\.com/2079\-9292/3/2/282](https://www.mdpi.com/2079-9292/3/2/282)\.
- Tian et al\. \(2020\)Xin Tian, Qiang Zhu, Yuenan Li, and Min Wu\.Cross\-domain joint dictionary learning for ECG reconstruction from PPG\.In*ICASSP 2020 \- 2020 IEEE International Conference on Acoustics, Speech and Signal Processing \(ICASSP\)*, pp\. 936–940, 2020\.doi:10\.1109/ICASSP40776\.2020\.9054242\.
- Xu et al\. \(2022\)Maxwell A\. Xu, Alexander Moreno, Supriya Nagesh, V\. Burak Aydemir, David W\. Wetter, Santosh Kumar, and James M\. Rehg\.Pulseimpute: a novel benchmark task for pulsative physiological signal imputation\.In*Proceedings of the 36th International Conference on Neural Information Processing Systems*, NIPS ’22, Red Hook, NY, USA, 2022\. Curran Associates Inc\.ISBN 9781713871088\.
- Zhan et al\. \(2024\)Zehui Zhan, Jiarong Chen, Kangming Li, Linfei Huang, Lin Xu, Gui\-Bin Bian, Richard Millham, Victor Hugo C\. de Albuquerque, and Wanqing Wu\.Conditional generative adversarial network driven variable\-duration single\-lead to 12\-lead electrocardiogram reconstruction\.*Biomedical Signal Processing and Control*, 95:106377, 2024\.ISSN 1746\-8094\.doi:https://doi\.org/10\.1016/j\.bspc\.2024\.106377\.URL[https://www\.sciencedirect\.com/science/article/pii/S174680942400435X](https://www.sciencedirect.com/science/article/pii/S174680942400435X)\.
- Zhang et al\. \(2024\)Xi Zhang, Yuan Pu, Yuki Kawamura, Andrew Loza, Yoshua Bengio, Dennis L\. Shung, and Alexander Tong\.Trajectory flow matching with applications to clinical time series modeling\.NIPS ’24, Red Hook, NY, USA, 2024\. Curran Associates Inc\.ISBN 9798331314385\.
- Zhou et al\. \(2023\)Linqi Zhou, Aaron Lou, Samar Khanna, and Stefano Ermon\.Denoising diffusion bridge models, 2023\.URL[https://arxiv\.org/abs/2309\.16948](https://arxiv.org/abs/2309.16948)\.
- Zhu et al\. \(2019\)Qiang Zhu, Xin Tian, Chau\-Wai Wong, and Min Wu\.ECG reconstruction via PPG: A pilot study\.In*2019 IEEE EMBS International Conference on Biomedical & Health Informatics \(BHI\)*, pp\. 1–4, 2019\.doi:10\.1109/BHI\.2019\.8834612\.
- Zhu et al\. \(2021\)Qiang Zhu, Xin Tian, Chau\-Wai Wong, and Min Wu\.Learning your heart actions from pulse: ECG waveform reconstruction from PPG\.*IEEE Internet of Things Journal*, 8\(23\):16734–16748, 2021\.doi:10\.1109/JIOT\.2021\.3097946\.

## Appendix

## Appendix AAdditional implementation and training details

### A\.1Detailed architecture configuration

BeatFlow\-ECG uses the conditional rectified\-flow architecture described in Section[3\.3](https://arxiv.org/html/2610.09052#S3.SS3)\. In the configuration used for the LOSO experiments, the model reconstructs a one\-channel ECG waveform from synchronized wearable signals over windows of 1250 samples\. The conditioning representation follows Section[3\.5](https://arxiv.org/html/2610.09052#S3.SS5)and includes PPG, IMU\-derived channels, and a physiological phase feature, with motion\-aware conditioning and training as described in Section[3\.4](https://arxiv.org/html/2610.09052#S3.SS4)\.

The backbone uses 8 transformer layers with hidden dimension 320 and feedforward dimension 1280, with dropout set to 0\.0 and skip connections enabled\. The conditioning signal and current state are fused before the convolutional encoder and transformer bottleneck, with flow\-time conditioning applied through AdaRMSNorm as described in the main text\.

The implementation includes temporal\-alignment safeguards for small length mismatches introduced by downsampling and upsampling\. Intermediate tensors are kept in a consistent channel\-first layout, aligned in temporal length when necessary, and skip connections are applied only after temporal matching\.

### A\.2Training objective and optimization details

BeatFlow\-ECG follows the conditional rectified\-flow formulation in Section[3\.2](https://arxiv.org/html/2610.09052#S3.SS2)\. For each training sample, the flow timettis drawn from aBeta⁡\(0\.5,0\.5\)\\mathrm\{Beta\}\(0\.5,0\.5\)distribution and clamped to a minimum of10−310^\{\-3\}to avoid boundary cases\. Letxxdenote the target ECG waveform andz∼𝒩⁡\(0,I\)z\\sim\\mathcal\{N\}\(0,I\)Gaussian noise of the same shape\. The intermediate state is

xt=\(1−t\)​z\+t​x,x\_\{t\}=\(1\-t\)z\+tx,\(10\)with target velocity

The model is trained to predict the conditional velocity field from\(xt,t,c\)\(x\_\{t\},t,c\), whereccdenotes the wearable conditioning signal\.

The full model combines a motion\-weighted L1 velocity\-matching loss with an STFT magnitude loss to encourage spectral consistency in the reconstructed waveform\. Because the network predicts a velocity field rather than the final ECG directly, we compute the STFT term on the implied ECG estimate

x^=z\+vθ​\(xt,t,c\),\\hat\{x\}=z\+v\_\{\\theta\}\(x\_\{t\},t,c\),\(12\)which equals the targetxxwhen the predicted velocity matches the rectified\-flow targetx−zx\-z\. The spectral term is

ℒSTFT=‖\|STFT⁡\(x^\)\|−\|STFT⁡\(x\)\|‖1\.\\mathcal\{L\}\_\{\\mathrm\{STFT\}\}=\\left\\\|\|\\mathrm\{STFT\}\(\\hat\{x\}\)\|\-\|\\mathrm\{STFT\}\(x\)\|\\right\\\|\_\{1\}\.\(13\)The final training objective for the full model is

ℒ=ℒmotion\+λSTFT​ℒSTFT,\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{motion\}\}\+\\lambda\_\{\\mathrm\{STFT\}\}\\mathcal\{L\}\_\{\\mathrm\{STFT\}\},\(14\)withλSTFT=0\.10\\lambda\_\{\\mathrm\{STFT\}\}=0\.10andnfft=256n\_\{\\mathrm\{fft\}\}=256\. For the*w/o Motion Weighting \+ STFT Loss*ablation,ℒmotion\\mathcal\{L\}\_\{\\mathrm\{motion\}\}is replaced by the unweighted velocity\-matching lossℒFM\\mathcal\{L\}\_\{\\mathrm\{FM\}\}, and the STFT term is removed\. Gradient norms are clipped to 1\.0 for stability\.

We optimize BeatFlow\-ECG using AdamW with learning rate2×10−42\\times 10^\{\-4\}, batch size 128, and 80 training epochs\. A cosine annealing learning\-rate schedule is used over the full training horizon\. Within each LOSO fold, checkpoints are selected using validation windows from non\-test subjects\. Because consecutive windows overlap within recordings, training and validation windows can share raw samples\. Validation scores are used for checkpoint selection, while all reported test metrics are computed on the held\-out subject, which is excluded from both training and validation\.

The standard UNet1D and AttnSeq baselines are trained as direct regressors using the same LOSO splits and preprocessing pipeline\. Both use AdamW with learning rate10−310^\{\-3\}, batch size 64, 30 training epochs, and L1 reconstruction loss\. Training settings for the larger variants are provided in Appendix[E\.1](https://arxiv.org/html/2610.09052#A5.SS1)\. Each model is trained for the full epoch schedule, and the checkpoint with the best validation performance is selected within each LOSO fold using only non\-test subjects\. In our runs, both standard models reached their best validation performance before epoch 30 and had plateaued by the end of training\.

At inference time, BeatFlow\-ECG starts from Gaussian noise and reconstructs the ECG waveform by integrating the learned velocity field with an explicit Euler solver for 120 steps\.

### A\.3Motion\-aware training details

This section provides additional details on the motion\-aware conditioning, loss weighting, and curriculum described in Section[3\.4](https://arxiv.org/html/2610.09052#S3.SS4)\.

Motion information is incorporated into the conditioning pathway using IMU\-derived descriptors\. Given preprocessed accelerometer channels\(ax​\[n\],ay​\[n\],az​\[n\]\)\(a\_\{x\}\[n\],a\_\{y\}\[n\],a\_\{z\}\[n\]\), we compute the acceleration magnitude

macc​\[n\]=ax​\[n\]2\+ay​\[n\]2\+az​\[n\]2\.m\_\{\\mathrm\{acc\}\}\[n\]=\\sqrt\{a\_\{x\}\[n\]^\{2\}\+a\_\{y\}\[n\]^\{2\}\+a\_\{z\}\[n\]^\{2\}\}\.\(15\)
Second, the training objective is weighted according to motion difficulty\. For each window, we define a scalar motion score from the standard deviation of the acceleration magnitude:

smotion=Std⁡\(macc\)\.s\_\{\\mathrm\{motion\}\}=\\mathrm\{Std\}\\\!\\left\(m\_\{\\mathrm\{acc\}\}\\right\)\.\(16\)Within each mini\-batch, this score is normalized as

s~motion=smotion−sminsmax−smin\+ε,\\tilde\{s\}\_\{\\mathrm\{motion\}\}=\\frac\{s\_\{\\mathrm\{motion\}\}\-s\_\{\\min\}\}\{s\_\{\\max\}\-s\_\{\\min\}\+\\varepsilon\},\(17\)wheresmins\_\{\\min\}andsmaxs\_\{\\max\}denote the minimum and maximum motion scores within the mini\-batch\. The normalized score is then converted into a per\-sample training weight

w=1\+α​s~motion,w=1\+\\alpha\\tilde\{s\}\_\{\\mathrm\{motion\}\},\(18\)whereα\\alphacontrols the emphasis placed on high\-motion samples; we useα=1\.0\\alpha=1\.0in all reported experiments\. The resulting objective is the weighted flow\-matching loss

ℒmotion​\(θ\)=𝔼⁡\[w​‖vθ​\(xt,t,c\)−\(x−z\)‖1\]\.\\mathcal\{L\}\_\{\\mathrm\{motion\}\}\(\\theta\)=\\mathbb\{E\}\\left\[w\\,\\\|v\_\{\\theta\}\(x\_\{t\},t,c\)\-\(x\-z\)\\\|\_\{1\}\\right\]\.\(19\)Higher\-motion windows therefore receive larger training weights\. We use mini\-batch normalization rather than global dataset statistics to avoid an additional dataset\-level calibration step and keep the weighting adaptive across folds\.

Training also follows an easy\-to\-hard curriculum based on the motion scoresmotions\_\{\\mathrm\{motion\}\}\. We rank training windows by motion score and use a linear pacing schedule over epochs: early epochs sample primarily from the lower\-motion portion of the training set, and the accessible fraction is gradually increased until all training windows are used\.

## Appendix BAdditional experimental details

### B\.1Dataset preprocessing details

This section describes the preprocessing pipeline used to construct paired wearable\-conditioning and ECG\-target windows\.

#### Bandpass filtering\.

We apply signal\-specific bandpass filtering before cross\-modal alignment to reduce baseline drift, high\-frequency noise, and motion\-related perturbations\([Allen, 2007](https://arxiv.org/html/2610.09052#bib.bib4);[Tamura et al\., 2014](https://arxiv.org/html/2610.09052#bib.bib44);[Li & Boulanger, 2021](https://arxiv.org/html/2610.09052#bib.bib25);[Li et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib26)\)\. Letx⁡\(t\)x\(t\)denote a raw signal sampled at ratefinf\_\{\\mathrm\{in\}\}\. We define the filtered signal as

xbp​\(t\)=BP⁡\(x⁡\(t\),fℓ,fh\),x\_\{\\mathrm\{bp\}\}\(t\)=\\mathrm\{BP\}\\\!\\left\(x\(t\);f\_\{\\ell\},f\_\{h\}\\right\),\(20\)whereBP⁡\(⋅\)\\mathrm\{BP\}\(\\cdot\)denotes a bandpass operator and\(fℓ,fh\)\(f\_\{\\ell\},f\_\{h\}\)are the low\- and high\-cutoff frequencies\. For PPG, we use\(fℓ,fh\)=\(0\.4,8\)\(f\_\{\\ell\},f\_\{h\}\)=\(0\.4,8\)Hz to preserve pulse dynamics while attenuating slow drift and high\-frequency noise\. For ECG, we use\(fℓ,fh\)=\(0\.5,40\)\(f\_\{\\ell\},f\_\{h\}\)=\(0\.5,40\)Hz to preserve clinically relevant morphology, including sharp QRS energy, while removing baseline wander and higher\-frequency artifacts\.

#### Resampling to a common rate\.

The raw sensing streams originate from different devices and may operate at different sampling frequencies\. All modalities are resampled to a common frequency offs=125f\_\{s\}=125Hz:

x125\[n\]=ℛ\(xbp;fin→fs\),x\_\{125\}\[n\]=\\mathcal\{R\}\\\!\\left\(x\_\{\\mathrm\{bp\}\};f\_\{\\mathrm\{in\}\}\\rightarrow f\_\{s\}\\right\),\(21\)whereℛ⁡\(⋅\)\\mathcal\{R\}\(\\cdot\)denotes rational resampling\. This gives the target ECG and conditioning channels a common sampling interval\.

#### Per\-channel normalization\.

After resampling, each channel is z\-score normalized independently within each 10\-second window using statistics computed from that window\. For a signalx⁡\[n\]x\[n\]of lengthNN, we compute

x~​\[n\]=x⁡\[n\]−μxσx\+ε,μx=1N​∑n=1Nx⁡\[n\],σx=1N​∑n=1N\(x⁡\[n\]−μx\)2,\\tilde\{x\}\[n\]=\\frac\{x\[n\]\-\\mu\_\{x\}\}\{\\sigma\_\{x\}\+\\varepsilon\},\\qquad\\mu\_\{x\}=\\frac\{1\}\{N\}\\sum\_\{n=1\}^\{N\}x\[n\],\\qquad\\sigma\_\{x\}=\\sqrt\{\\frac\{1\}\{N\}\\sum\_\{n=1\}^\{N\}\(x\[n\]\-\\mu\_\{x\}\)^\{2\}\},\(22\)whereε\>0\\varepsilon\>0is a small numerical constant\. This normalization is applied independently to the PPG channel, the selected ECG target, and each IMU\-derived channel\.

#### ECG target selection\.

For PPG\-DaLiA, we use the ECG channel provided by the RespiBAN chest device as the reconstruction target\([Reiss et al\., 2019a](https://arxiv.org/html/2610.09052#bib.bib36)\)\. In the synchronized dataset, this corresponds tosignal/chest/ECGand is used for all windows\. Respiration and other non\-ECG chest signals are not used as reconstruction targets\. After filtering and resampling, the ECG channel is segmented into the same 10\-second windows as the wearable conditioning signals\. Each ECG window is then z\-score normalized using its own mean and standard deviation\. Figure[4](https://arxiv.org/html/2610.09052#A2.F4)shows the processed wrist PPG, RespiBAN reference signals, and the ECG target used for reconstruction\.

\(a\)Processed wrist PPG\.\(b\)RespiBAN reference channels\.\(c\)Selected ECG target\.
Figure 4:Wearable ECG reconstruction setting on PPG\-DaLiA\.\(a\) Processed wrist PPG segment\. \(b\) Processed chest reference channels from the RespiBAN device\. \(c\) Selected one\-channel ECG target used for supervision\.
#### Common valid length\.

After resampling, the modalities may have slightly different valid durations\. We truncate them to a common length before window extraction\. IfLPPGL\_\{\\mathrm\{PPG\}\},LECGL\_\{\\mathrm\{ECG\}\}, andLIMUL\_\{\\mathrm\{IMU\}\}denote the available lengths after preprocessing, we define

L=min⁡\(LPPG,LECG,LIMU\),L=\\min\(L\_\{\\mathrm\{PPG\}\},L\_\{\\mathrm\{ECG\}\},L\_\{\\mathrm\{IMU\}\}\),\(23\)and retain the firstLLsamples from each modality\.

#### Window extraction\.

The aligned signals are converted into supervised training examples using overlapping sliding windows\. We use a window duration ofTw=10T\_\{w\}=10s and strideSw=5S\_\{w\}=5s, corresponding to

NT=Tw⋅fs=1250,NS=Sw⋅fs=625N\_\{T\}=T\_\{w\}\\cdot f\_\{s\}=1250,\\qquad N\_\{S\}=S\_\{w\}\\cdot f\_\{s\}=625\(24\)samples, respectively\. Letc~\\tilde\{c\}denote the wearable conditioning tensor in channel\-first format andyythe target ECG waveform\. For window indexmm, starting atsm=m​NSs\_\{m\}=mN\_\{S\}, we define

cm=c~\[:,sm:sm\+NT\],ym=y\[sm:sm\+NT\],c\_\{m\}=\\tilde\{c\}\[:,\\,s\_\{m\}:s\_\{m\}\+N\_\{T\}\],\\qquad y\_\{m\}=y\[s\_\{m\}:s\_\{m\}\+N\_\{T\}\],\(25\)for all validmmsuch thatsm\+NT≤Ls\_\{m\}\+N\_\{T\}\\leq L\. Each training example therefore contains a synchronized wearable conditioning tensor and a target ECG waveform covering the same 10\-second interval\.

#### Physiological phase feature\.

To provide beat\-level temporal context, we augment the conditioning signal with a phase feature derived from PPG peaks\. Letpip\_\{i\}andpi\+1p\_\{i\+1\}denote consecutive detected PPG peak indices\([Charlton et al\., 2022](https://arxiv.org/html/2610.09052#bib.bib6)\)\. For each sample indexn∈\[pi,pi\+1\)n\\in\[p\_\{i\},p\_\{i\+1\}\), we define the normalized phase

ϕ⁡\[n\]=n−pipi\+1−pi,ϕ⁡\[n\]∈\[0,1\]\.\\phi\[n\]=\\frac\{n\-p\_\{i\}\}\{p\_\{i\+1\}\-p\_\{i\}\},\\qquad\\phi\[n\]\\in\[0,1\]\.\(26\)The feature resets at each pulse cycle and encodes the relative position within the pulse cycle\. In implementation, PPG peaks are detected using a local\-maximum detector with a minimum inter\-peak distance chosen to exclude physiologically implausible heart rates\. If fewer than two peaks are detected in a window, the phase channel is set to zero\. Samples before the first detected peak are assigned phase 0, and samples after the last detected peak are assigned the final available phase value\.

#### Motion\-related features\.

Because wearable PPG is highly sensitive to motion corruption, we include explicit motion descriptors derived from the wrist IMU\. Let\(ax​\[n\],ay​\[n\],az​\[n\]\)\(a\_\{x\}\[n\],a\_\{y\}\[n\],a\_\{z\}\[n\]\)denote the accelerometer channels after preprocessing\. We compute the acceleration magnitude as

macc​\[n\]=ax​\[n\]2\+ay​\[n\]2\+az​\[n\]2\.m\_\{\\mathrm\{acc\}\}\[n\]=\\sqrt\{a\_\{x\}\[n\]^\{2\}\+a\_\{y\}\[n\]^\{2\}\+a\_\{z\}\[n\]^\{2\}\}\.\(27\)We further compute short\-term motion statistics over a rolling 0\.5 s window\. Specifically, the conditioning tensor includes the rolling standard deviation of the acceleration magnitude over this window to capture local motion variability\.

#### Final conditioning tensor\.

After preprocessing and feature construction, each training window consists of synchronized wearable measurements and derived timing and motion features paired with a target ECG waveformymy\_\{m\}\.

### B\.2Evaluation metrics

We report waveform\-level and beat\-timing evaluation metrics\.

#### L1 and RMSE\.

Signal\-level reconstruction accuracy is measured using L1 error and root mean squared error \(RMSE\) between the reconstructed and target ECG waveforms over each test window\.

#### Pearson correlation\.

We report the Pearson correlation coefficient between the reconstructed and target ECG to measure waveform similarity independent of scale\.

#### R\-peak F1\.

We detect R\-peaks in the reconstructed and target ECG and compute precision, recall, and F1 score using a temporal matching tolerance of 100 ms\.

#### Heart\-rate error\.

We compute heart rate from the detected peaks and report the absolute error in beats per minute \(bpm\) between the reconstructed and target signals\.

#### Motion\-aware analysis\.

For the motion\-stratified analysis, we compute a motion score from the wearable inertial channels and evaluate reconstruction quality across motion conditions\.

\(a\)Additional qualitative example 1\.\(b\)Additional qualitative example 2\.
Figure 5:Additional BeatFlow\-ECG reconstruction examples\.Each panel shows the conditioning PPG, reconstructed ECG, ground\-truth ECG, and motion signal\.

### B\.3Compute resources

All models were trained and evaluated on an NVIDIA H100 GPU\. For each LOSO fold, the experimental pipeline saves checkpoints, predictions, summary metrics, and qualitative outputs\.

### B\.4Confidence intervals for LOSO results

We compute 95% confidence intervals across the 15 held\-out subject folds for each reported model and metric\. For an evaluation metric, letx1,…,x15x\_\{1\},\\dots,x\_\{15\}denote the values from the 15 LOSO test folds\. We report the mean

x¯=115​∑i=115xi\\bar\{x\}=\\frac\{1\}\{15\}\\sum\_\{i=1\}^\{15\}x\_\{i\}\(28\)together with a 95% confidence interval of the form

x¯±t0\.975,14​s15,\\bar\{x\}\\pm t\_\{0\.975,14\}\\frac\{s\}\{\\sqrt\{15\}\},\(29\)wheressis the sample standard deviation across folds andt0\.975,14t\_\{0\.975,14\}is the97\.597\.5th percentile of the Student\-ttdistribution with 14 degrees of freedom\.

These intervals summarize variability across held\-out subjects and therefore reflect subject\-to\-subject variation rather than repeated random\-seed variation\.

## Appendix CAdditional qualitative results

### C\.1Additional reconstruction examples

Figure[5](https://arxiv.org/html/2610.09052#A2.F5)shows additional BeatFlow\-ECG reconstruction examples beyond those in the main paper\. The displayed windows differ in PPG morphology and motion intensity, while the reconstructed ECG preserves the dominant beat structure and local waveform shape\.

### C\.2Additional peak\-alignment examples

Figure[6](https://arxiv.org/html/2610.09052#A3.F6)shows peak\-alignment examples across several windows, including the example referenced in the main paper\. Predicted peaks are closely aligned with the target R\-peaks in the displayed windows\. These examples provide a qualitative view of the beat\-timing behavior summarized quantitatively by the R\-peak F1 and heart\-rate error metrics in the main results\.

\(a\)Peak\-alignment example 1\.\(b\)Peak\-alignment example 2\.\(c\)Peak\-alignment example 3\.
Figure 6:Peak\-alignment examples for BeatFlow\-ECG\.Predicted and reference R\-peaks remain closely aligned across different windows, supporting the R\-peak F1 and heart\-rate results reported in the main paper\.
### C\.3Progressive reconstruction trajectories

Figure[7](https://arxiv.org/html/2610.09052#A3.F7)shows the compact trajectory view referenced in the main paper, while Figures[8](https://arxiv.org/html/2610.09052#A3.F8)and[9](https://arxiv.org/html/2610.09052#A3.F9)provide more detailed views of the same reconstruction process\. The conditioning signal remains fixed throughout the trajectory, while the intermediate state evolves according to the learned conditional velocity field\. The intermediate states show the gradual emergence of ECG structure as the trajectory moves from the initial noise sample toward the final reconstruction\. These visualizations are intended to illustrate the iterative reconstruction process rather than define discrete stages of waveform formation\.

Figure 7:Compact progressive reconstruction trajectory\.Intermediate states are shown from the initial Gaussian noise sample to the final ECG reconstruction\.![Refer to caption](https://arxiv.org/html/2610.09052v1/figures/Appendix/rf_trajectory_grid_full.png)Figure 8:Full progressive reconstruction trajectory of BeatFlow\-ECG\.The figure shows intermediate states along the conditional rectified\-flow trajectory from Gaussian noise to the final ECG reconstruction\.![Refer to caption](https://arxiv.org/html/2610.09052v1/figures/Appendix/rf_trajectory_grid_zoom.png)Figure 9:Zoomed progressive reconstruction trajectory of BeatFlow\-ECG\.A shorter temporal segment shows changes in beat timing and waveform structure across intermediate states\.

## Appendix DAdditional quantitative results

### D\.1Inference efficiency

Table[5](https://arxiv.org/html/2610.09052#A4.T5)compares parameter counts, function evaluations, and average inference time for reconstructing a 10\-second ECG window \(1250 samples\) on a single NVIDIA H100 GPU\.

Table 5:Inference efficiency of the evaluated models\.Inference time is measured as the average time required to reconstruct a 10\-second ECG window \(1250 samples\) on a single NVIDIA H100 GPU\.The deterministic baselines are fastest because they require a single forward pass\. BeatFlow\-ECG uses iterative integration, but under the evaluated sampling configurations it reduces the number of function evaluations from 1000 to 120 and inference time from 3520 ms to 425 ms relative to Conditional DDPM\-1D, corresponding to an approximately 8\.3×\\timesspeedup\. On the evaluated H100 setup, BeatFlow\-ECG processes a 10\-second input window in 425 ms, substantially shorter than the duration of the signal\. This shows that the iterative solver remains computationally practical under the evaluated configuration\. The reported timing measures model inference once the input window is available and does not include signal acquisition, preprocessing, or data transfer\. Faster diffusion samplers, reduced\-step schedules, distillation, or alternative ODE solvers could also change this latency comparison\.

### D\.2Motion robustness visualizations

Figure[10](https://arxiv.org/html/2610.09052#A4.F10)shows window\-level reconstruction metrics and their relationship to the acceleration\-derived motion score for BeatFlow\-ECG on PPG\-DaLiA\.

\(a\)Motion vs RMSE\.\(b\)RMSE distribution\.\(c\)Pearsonrrdist\.![Refer to caption](https://arxiv.org/html/2610.09052v1/correlation_matrix_big.png)\(d\)Correlation matrix\.

Figure 10:Motion robustness visualizations\.The scatter plot shows reconstruction RMSE against the acceleration\-derived motion score\. The histograms show the distributions of RMSE and Pearson correlation, and the correlation matrix summarizes relationships among motion level, waveform fidelity, and peak\-based metrics\.The continuous analysis is consistent with the motion\-stratified results in Table[3](https://arxiv.org/html/2610.09052#S5.T3): reconstruction error generally increases with the acceleration\-derived motion score, although windows at similar motion levels can still exhibit different errors\. The distributions further show that most windows are concentrated in the lower\-RMSE and higher\-correlation regions, providing additional context beyond the three motion groups used in the main paper\.

### D\.3Per\-subject tables

The following tables report subject\-wise LOSO results for BeatFlow\-ECG, Conditional DDPM\-1D, and UNet1D\-Large on PPG\-DaLiA and WESAD\. Reporting individual held\-out folds makes it possible to examine cross\-subject variability that is not visible from aggregate means alone and to determine whether the overall results are driven by a small subset of subjects\.

On PPG\-DaLiA, S6 and S10 remain among the more difficult folds across the evaluated models, consistent with the subject\-wise discussion in the main paper\. BeatFlow\-ECG nevertheless achieves lower reconstruction error than Conditional DDPM\-1D and UNet1D\-Large on these difficult subjects\. The complete tables also show variation in waveform, peak\-detection, and heart\-rate metrics across all held\-out subjects on both datasets\.

Table 6:Subject\-wise LOSO performance of BeatFlow\-ECG across 15 subjects on PPG\-DaLiA\.Table 7:Subject\-wise LOSO performance of Conditional DDPM\-1D across 15 subjects on PPG\-DaLiA\.Table 8:Subject\-wise LOSO performance of UNet1D\-Large across 15 subjects on PPG\-DaLiA\.Table 9:Subject\-wise LOSO performance of BeatFlow\-ECG across 15 subjects on WESAD\.Table 10:Subject\-wise LOSO performance of Conditional DDPM\-1D across 15 subjects on WESAD\.Table 11:Subject\-wise LOSO performance of UNet1D\-Large across 15 subjects on WESAD\.
### D\.4Baseline qualitative comparisons

Figure[11](https://arxiv.org/html/2610.09052#A4.F11)provides additional qualitative examples from the supervised baselines\. The displayed windows show that these models can reconstruct some ECG segments closely, while other examples contain local morphology, amplitude, or temporal\-alignment errors\. These examples complement the aggregate results in Table[1](https://arxiv.org/html/2610.09052#S5.T1)and the subject\-wise results in Appendix[D\.3](https://arxiv.org/html/2610.09052#A4.SS3)\.

\(a\)AttnSeq reconstruction on a selected test window\.\(b\)UNet1D reconstruction on a selected test window\.
Figure 11:Additional baseline qualitative comparisons\.AttnSeq and UNet1D reconstructions on selected test windows\.
### D\.5Morphology\-sensitive region analysis

For the morphology\-sensitive evaluation reported in Table[2](https://arxiv.org/html/2610.09052#S5.T2), we use fixed R\-peak\-centered timing regions as proxies for the P\-wave, QRS complex, and T\-wave\. Around each reference R\-peak, we consider a 600\-ms interval and define the P\-wave region as−200\-200to−60\-60ms, the QRS region as−60\-60to\+60\+60ms, and the T\-wave region as\+60\+60to\+400\+400ms relative to the R\-peak\. Pearson correlation between the reconstructed and reference ECG is computed independently within each region\. Reference R\-peaks are used to define the same temporal regions for all models\.

## Appendix EReproducibility details

### E\.1Baseline model details

We benchmark BeatFlow\-ECG against deterministic, adversarial, and diffusion\-based baselines\. UNet1D, AttnSeq, and Conditional DDPM\-1D use the same conditioning tensorc∈ℝC×Tc\\in\\mathbb\{R\}^\{C\\times T\}, target ECG waveformx∈ℝ1×Tx\\in\\mathbb\{R\}^\{1\\times T\}, LOSO splits, preprocessing pipeline, and evaluation metrics as BeatFlow\-ECG\. CardioGAN uses PPG only, following its original formulation, and is evaluated under the same dataset\-specific LOSO protocol, preprocessing pipeline, and evaluation metrics\.

#### UNet\-based regressors \(UNet1D and UNet1D\-Large\)\.

UNet1D is a 1D convolutional encoder–decoder architecture\. The standard variant \(UNet1D, 4\.2M parameters\) projects the multimodal conditioning input using a Conv\-BatchNorm\-GELU stem \(base width 64, kernel size 9\), followed by three downsampling stages with channel widths 128, 256, and 512 using max pooling\. For a capacity\-matched comparison, we also construct a larger variant \(UNet1D\-Large, 13\.2M parameters\) by expanding the base channel width to 128 and increasing intermediate block depths \(channel widths 256, 512, and 1024\), yielding a parameter count comparable to BeatFlow\-ECG\.

#### Attention\-based regressors \(AttnSeq and AttnSeq\-Large\)\.

AttnSeq is an encoder\-only transformer baseline for direct waveform regression\. The standard variant \(AttnSeq, 8\.5M parameters\) projects the input to a latent dimension of 128 and processes it through a 4\-layer Transformer encoder with 4 attention heads and feedforward dimension 256\. The capacity\-matched variant \(AttnSeq\-Large, 12\.3M parameters\) expands the latent projection to 256, increases the depth to 8 layers with 8 attention heads, and sets the feedforward dimension to 1024\.

#### Conditional DDPM\-1D\.

We implement a 1D conditional Denoising Diffusion Probabilistic Model \(Conditional DDPM\-1D, 12\.6M parameters\) inspired by BeatDiff\([Bedin et al\., 2024](https://arxiv.org/html/2610.09052#bib.bib5)\)\. The model uses the same hybrid convolutional\-transformer backbone and conditioning inputs as BeatFlow\-ECG, but is trained with a 1000\-step linear noise scheduleβt∈\[10−4,0\.02\]\\beta\_\{t\}\\in\[10^\{\-4\},0\.02\]\. At inference, reconstruction is performed by reverse diffusion over 1000 timesteps starting from standard Gaussian noise\.

#### CardioGAN\.

We also include CardioGAN\([Sarkar & Etemad, 2021](https://arxiv.org/html/2610.09052#bib.bib38)\)as a published PPG\-to\-ECG generative baseline\. The original CardioGAN study combines BIDMC, CAPNO, PPG\-DaLiA, and WESAD and uses a different user split and preprocessing setup from our LOSO evaluation\. The released pretrained weights were trained on pooled data that include PPG\-DaLiA and WESAD, so we do not use them directly because they may contain information from subjects held out in our LOSO folds\.

For CardioGAN, we use PPG only and retain the original two\-generator, four\-discriminator architecture with time\- and frequency\-domain discriminators, adversarial loss, and cycle\-consistency loss\. We train the model under the same dataset\-specific LOSO protocol and preprocessing pipeline used in our evaluation, using 10\-second windows resampled to 125 Hz\. Training uses Adam with learning rate10−410^\{\-4\}, batch size 128, and 15 epochs, with learning\-rate decay after epoch 10 and loss weightsα=3\\alpha=3,β=1\\beta=1, andλ=30\\lambda=30\. The generators used at inference contain 28\.24M parameters, while the complete training system including the discriminators contains 78\.92M parameters\. The CardioGAN results reported in Table[1](https://arxiv.org/html/2610.09052#S5.T1)are obtained under our subject\-independent LOSO evaluation on PPG\-DaLiA and WESAD\. Accordingly, these results should be interpreted as CardioGAN evaluated under our LOSO protocol rather than as a reproduction of the original paper’s reported experimental setting\.

#### Training objective and protocol\.

The deterministic baselines are trained using anL1L\_\{1\}reconstruction loss with AdamW \(learning rate10−310^\{\-3\}, batch size 64, 30 epochs, and cosine annealing\)\. The final PPG\-DaLiA UNet1D\-Large result instead uses the 80\-epoch retuning protocol described in Section[E\.2](https://arxiv.org/html/2610.09052#A5.SS2)\. Conditional DDPM\-1D is trained using anL1L\_\{1\}noise\-prediction loss with AdamW \(learning rate2×10−42\\times 10^\{\-4\}, batch size 128, and 80 epochs\)\. All models are trained for fixed epoch horizons, and the checkpoint with the best validation performance is selected within each LOSO fold using only non\-test subjects\.

### E\.2Learning\-rate selection for UNet1D\-Large

We performed an additional tuning step for UNet1D\-Large on PPG\-DaLiA\. The 13\.2M\-parameter model was trained for 80 epochs using three learning rates:3×10−43\\times 10^\{\-4\},1×10−41\\times 10^\{\-4\}, and3×10−53\\times 10^\{\-5\}\. We used S6, S10, and S12 as development folds and selected the learning rate using validation L1 computed only from non\-test subjects\. The held\-out subject in each development fold was not used for model selection\. Table[12](https://arxiv.org/html/2610.09052#A5.T12)summarizes the learning\-rate sweep\.

Table 12:Learning\-rate sweep for UNet1D\-Large on PPG\-DaLiA\.Validation L1 is computed using non\-test subjects from the development folds\.Based on the validation results, we fixed the learning rate to3×10−43\\times 10^\{\-4\}and reran all 15 LOSO folds\. The final UNet1D\-Large result on PPG\-DaLiA is L1 0\.138, RMSE 0\.210, Pearsonrr0\.925, R\-peak F1 0\.875, and HR error 6\.95 bpm\. These are the values reported in the main comparison table\. Despite this tuning, UNet1D\-Large does not improve over the smaller UNet1D under LOSO; we retain it as a capacity\-matched control rather than assuming that increased model size should monotonically improve unseen\-subject generalization\.

### E\.3BeatFlow\-ECG hyperparameters

Table[13](https://arxiv.org/html/2610.09052#A5.T13)summarizes the BeatFlow\-ECG configuration and the shared windowing settings used in the experiments\. Baseline training settings are provided in Appendix[E\.1](https://arxiv.org/html/2610.09052#A5.SS1)\.

Table 13:Main hyperparameters used in the reported experiments\.
### E\.4Ablation details

The main ablation results are reported in Table[4](https://arxiv.org/html/2610.09052#S5.T4)\. Here, we provide additional details on the ablated configurations and how each experiment was constructed\.

For the*w/o Motion Conditioning*variant, the explicit IMU\-derived motion descriptors are removed from the conditioning representation while the remaining architecture and training procedure are unchanged\. L1 error increases from 0\.062 to 0\.078 and R\-peak F1 decreases from 0\.946 to 0\.920, indicating that the motion\-conditioning information contributes to reconstruction performance\.

For the*w/o Curriculum*variant, all training windows are used throughout training without the easy\-to\-hard motion schedule\. L1 error increases to 0\.071 and HR error to 5\.35 bpm, indicating a benefit from the motion\-based curriculum under the evaluated training setup\.

For the*w/o STFT Loss*variant, the spectral consistency term is removed while retaining the motion\-weighted flow\-matching objective\. Performance decreases across all reported metrics, with L1 increasing from 0\.062 to 0\.069 and R\-peak F1 decreasing from 0\.946 to 0\.926\. This indicates that the STFT term provides additional benefit beyond the time\-domain velocity\-matching objective\.

Finally, in the*w/o Motion Weighting \+ STFT Loss*variant, both the motion\-dependent weighting and the STFT objective are removed\. This produces the largest degradation among the evaluated variants, increasing L1 to 0\.084 and HR error to 5\.85 bpm\. Together with the individual ablations, these results show that the motion\-aware training components and the STFT objective contribute to the performance of the full model\.

### E\.5Experimental workflow

The project uses a subject\-independent LOSO pipeline in which each fold uses 14 subjects for training and validation and evaluates on the held\-out subject\. The workflow consists of: \(i\) preprocessing all subjects into paired wearable/ECG windows, \(ii\) constructing subject\-level manifests and splits, \(iii\) training the selected model within each fold, and \(iv\) evaluating the validation\-selected checkpoint on the held\-out subject while saving aggregate metrics and per\-window prediction artifacts\.

相似文章

MontageFlow:符合物理规律的高保真脑电信号生成

arXiv cs.AI

MontageFlow 是一个流匹配模型,通过将输出限制在满足 EEG 导联(montage)线性约束的子空间内,生成物理上有效的高保真临床 EEG 信号,在三个大规模基准上将 TS-FID 提升了 1.6–3.6 倍。

NeuroSonic:基于条件流匹配的脑电图到语音重建

arXiv cs.LG

NeuroSonic 提出了一种条件流匹配框架,用于从脑电图信号重建连续语音。通过学习一个确定性的概率流速度场,解决了神经数据与声学数据之间的结构不匹配问题。在跨受试者基准测试中,相比现有的GAN、扩散和均值流基线,该方法在感知质量上取得了高达26.3%的提升。

DenoFlow:面向真实生理伪迹的SSVEP流匹配去噪方法

arXiv cs.LG

提出了DenoFlow,一种基于整流流(rectified flow)的SSVEP脑电信号去噪方法,通过回归污染信号与干净信号间直线路径的速度场实现去噪,并在两个公开SSVEP数据集上超越了七个基线模型的信号保真度与解码准确率。

ChangeFlow -- 基于潜空间纠正流的遥感变化检测

Hugging Face Daily Papers

ChangeFlow 提出了一种用于遥感变化检测的生成式框架,该框架利用纠正流在潜空间中合成变化掩码,通过基于采样的预测集成实现了更高的准确率和鲁棒性,在四个基准数据集上的平均F1分数达到80.4%。