TL;DR
Your heart doesn’t beat instantaneously with its electrical spark; there is a tiny, intricate cascade of delays between the electrical signal on an ECG and the physical squeeze of the muscle. Existing generative AI models ignore these channel-to-channel micro-delays and end up generating the exact same generic, "average" heartbeat for everyone. Time2Track explicitly extracts and tokenizes these electrical phase shifts, allowing a diffusion model to reconstruct your unique, 3D-plus-time (4D) beating heart directly from an inexpensive, non-invasive 12-lead ECG.
What Problem Does This Paper Address?
Every movement in your body begins with electricity. Whether it's the heart pumping blood or your forearm flexing a finger, electrical depolarization precedes mechanical contraction by milliseconds—a phenomenon called electromechanical coupling (EMC). If we could translate cheap, wearable electrical time-series data (like ECGs or surface EMGs) directly into 4D (3D space + time) anatomical motion, we could monitor organ kinematics continuously without strapping patients into MRI machines.
Why haven't we done this yet? Because electrical signals and physical motions are misaligned in space and time. When an electrical wavefront sweeps across the heart, different ECG leads pick it up at slightly different times. Those tiny inter-lead delays encode the exact spatial direction and timing of the physical squeeze.
When researchers feed raw multichannel ECGs into standard sequence encoders (like CNNs or Transformers) to condition 3D motion diffusion models, the networks implicitly blur and average out these subtle phase shifts. The result is mode collapse: the AI generates a textbook "population average" heartbeat that looks plausible globally, but completely erases the patient-specific timing variations that actually matter in the clinic.
Methods
To rescue individual kinematics from mode collapse, the authors built Time2Track. While the motion generator itself is a standard Spatio-Temporal Transformer diffusion model (predicting 3D vertex offsets from a resting heart mesh), the magic lies in the novel delay-aware electrophysiology encoder that conditions it.
Instead of squashing the 12-lead ECG into a single blended representation, Time2Track splits the signal via a pretrained, learnable multi-scale wavelet decomposition (derived from PhysioWave) into two distinct, unpooled token streams:
- The Morphology Branch (Standard-ish): Patchifies the wavelet spectrogram and runs it through a Transformer to capture the shapes of the waves across scales.
- The Delay Branch (New): Takes the unpadded wavelet detail bands and computes the Fast Fourier Transform Cross-Correlation (FFT-CC) between every channel and a reference channel. Using a temperature-controlled soft-argmax within a physically plausible time window, it extracts a continuous map of exact temporal lags ($\delta$) per channel and wavelet scale.
- Fourier Feature Lag Embedding (New): Standard MLPs are notoriously bad at learning from continuous scalar time lags. Taking a page from NeRF positional encodings, the authors lift each continuous delay $\delta$ into a high-dimensional space of log-spaced sines and cosines tied to the search window.
Both morphology and delay tokens are fed directly into the diffusion model's cross-attention layers, gated by a zero-initialized learnable scalar so training starts stably before gradually letting the fine-grained phase shifts steer the 4D choreography.
Datasets
- UK Biobank (UKB): Paired resting-state 12-lead ECGs (500 Hz) with 4D heart meshes (388 control points extracted from same-day cardiac MRI over one cycle) across $n = 40,577$ subjects—making this the largest ECG-to-4D-motion benchmark to date.
- EMG2POSE: Used to test generalizability beyond the heart, comprising surface forearm electromyography (sEMG) paired with 3D hand joint trajectories across 6,151 test sessions (178 users).
Key Insights and Ideas
- Global metrics can lie: Baseline models (like vanilla CNNs and TeCh) scored slightly better on raw Root Mean Squared Error (RMSE) simply because predicting a smooth, dead-center population average minimizes L2 distance—even when it completely misses individual systolic peaks and inter-subject variance.
- Explicit physics beats implicit attention: Standard "all-to-all" or centralized attention across channels leaves phase relationships entangled. Explicitly computing cross-correlation in Fourier space hands the diffusion model the exact physical wavefront delays on a silver platter.
- You don't even strictly need the patient's MRI: If you swap out a patient's true resting heart mesh for a generic population-average mesh at inference time (making a 12-lead ECG the only patient-specific input), global shape fidelity dips slightly, but the individualized motion diversity holds remarkably steady.
- Electromechanical delay is a universal prior: Plugging the exact same delay-token module into existing sEMG-to-hand-pose decoders immediately improved their ability to capture subject- and gesture-specific finger kinematics.
Key Results
- 10x better diversity preservation: Evaluated on detrended trajectories using Average Pairwise Distance Ratio (APDR) and Coefficient Ratio (APCR)—where a distance of
0from1.0means generated inter-subject diversity perfectly matches real human diversity—Time2Track achieved $|\text{APDR}-1| = 0.019$ and $|\text{APCR}-1| = 0.034$, roughly an order of magnitude better than CNN ($0.151$ / $0.241$) and TeCh ($0.170$ / $0.356$) baselines. - Accurate local peaks: Time2Track hit a Peak-to-Peak Amplitude Ratio (PAR, ideal = 1.0) of 0.896, whereas CNN and TeCh flattened local peaks down to 0.466 and 0.401.
- Clinical robustness: When evaluated on 981 subjects with diagnosed cardiac pathology (ICD-10 codes) vs. healthy controls, baseline encoders suffered sharp drops in diversity accuracy, whereas Time2Track maintained stable RMSE (+0.001) and actually improved its $|\text{APCR}-1|$ by 0.025.
Limitations and Future Work
The authors are upfront about three main hurdles:
- Bounded search windows: The cross-correlation relies on a predefined maximum lag window ($\tau_{\max}$), which could clip extreme delays in patients with severe conduction blocks.
- Healthy cohort bias: About 90% of the UK Biobank imaging cohort is relatively healthy; acute, life-threatening arrhythmias remain untested.
- Coarse spatial resolution: Representing a heart with 388 control points is coarser than the ventricular wall thickness itself, meaning localized, fine-grained wall-motion scars (like small infarcts) are currently out of reach. Future work aims to scale up mesh resolution and validate real-time tracking in severe clinical cohorts.
Summary updated