All research

Physiological signal processing · 2024

ECG estimation from wearable mechanocardiograms

Reconstructing ECG waveforms from chest-worn accelerometer and gyroscope signals with a deeply supervised 1D segmentation network, then recovering heart rate and its variability.

Qatar University, University of Dhaka and Prince Sattam Bin Abdulaziz University · Prince Sattam Bin Abdulaziz University project PSAU/2023/R/1444

Pipeline diagram. ECG, SCG and GCG signals from a person go through preprocessing: resampling, baseline correction, filtering, segmentation and normalisation. The ground-truth ECG and selected SCG and GCG signals train a U-Net-style model, which outputs a reconstructed ECG used for R-peak detection and heart rate and variability measurement.
Figure 1 from Tapotee et al. (2024). The M2ECG framework: preprocessing, model training on selected SCG and GCG channels, ECG reconstruction, and heart rate and variability measurement.View full-size figureSource articleCC BY 4.0

Approach

Can chest vibration and rotation signals from a wearable motion sensor reconstruct an ECG accurate enough to measure heart rate and its variability?

Wearable ECG relies on electrodes that can loosen or degrade during long use. A chest-worn motion sensor can instead record seismocardiograms (SCG), the chest vibrations from each heartbeat, and gyrocardiograms (GCG), the chest rotations; together these are called mechanocardiograms. M2ECG treated translation from mechanocardiogram to ECG as a 1D segmentation problem, so that one motion sensor could provide an ECG-like signal for cardiac monitoring.

  1. Preprocess SCG and GCG
  2. Reconstruct ECG with DS-SA-UNet
  3. Measure heart rate and variability

Choosing mechanocardiogram channels

IEEE Access · 2024

The public Mechanocardiograms with ECG Reference dataset provides lead II ECG with three-axis SCG and GCG from a chest-mounted motion sensor, recorded at 800 Hz. The study used the 29 healthy volunteers, about 260 minutes of recordings.

Signals were band-pass filtered, corrected for baseline drift, resampled and cut into segments of 1,024 samples. Twenty-six volunteers formed the training set, and three held-out volunteers formed the test set.

Of the six motion channels, the SCG z-axis combined with the GCG y-axis gave the lowest reconstruction error, better than all three axes of either sensor or all six channels together.

Healthy volunteers
29
Volunteers held out for testing
3
Channels used: SCG z-axis and GCG y-axis
2
Subject-independent split of the 1,024-sample segments. From Table I of the paper.
VolunteersSegments
Training266,214
Test31,503

Reconstructing ECG with a deeply supervised SA-UNet

Model comparison

A 1D spatial-attention U-Net with deep supervision (DS-SA-UNet) mapped the two motion channels to ECG. Outputs from deeper decoder levels added weighted losses during training, and the model was trained with the Adam optimiser at a learning rate of 10⁻⁵ and a batch size of four for 100 epochs.

On the held-out volunteers, reconstructed and reference ECG correlated at 81.76% on average, ahead of SA-MultiResUNet at 76.83% and Self-SA-UNet at 71.14%.

Mean correlation with the reference ECG
81.76%
1D segmentation models compared
3
Correlation between reconstructed and reference ECG on the held-out volunteers, mean ± SD. From Table III of the paper.
Pearson correlation (%)
DS-SA-UNet81.76 ± 16.94
SA-MultiResUNet76.83 ± 15.83
Self-SA-UNet71.14 ± 5.36

Recovering heart rate and its variability

Clinical evaluation

R-peaks were detected in the reconstructed and reference ECGs with the Christov algorithm, and mean heart rate and RMSSD were calculated for each of the 1,503 test segments.

Heart rate from the reconstructed ECG correlated with the reference at 94.17%, compared with 58.57% from SCG alone and 71.92% from GCG alone. For heart rate variability, the correlation rose to 87.07% from 54.75% and 57.53%. For the best test volunteer, the heart rate and variability correlations reached 99.07% and 96.29%.

Heart rate correlation
94.17%
Heart rate variability correlation
87.07%
Correlation of cardiac measures with the reference ECG (%). From Table IV of the paper.
SCGGCGReconstructed ECG
Heart rate58.5771.9294.17
Heart rate variability54.7557.5387.07
Scatter plot of mean heart rate from the reconstructed ECG against the ground-truth ECG, from about 45 to 115 beats per minute. Points lie tightly along the diagonal, with a few outliers near 50, 90 and 112 beats per minute. The title reports a correlation of 94.167%.
Figure 9 from Tapotee et al. (2024). Mean heart rate from the reconstructed and ground-truth ECG for all segments of the held-out volunteers.View full-size figureSource articleCC BY 4.0

My contribution

I contributed to the methodology, data analysis, model evaluation, interpretation and manuscript review.

Study scope

The model was trained and tested on healthy male volunteers at rest, with three volunteers held out in a single split. Recordings from people with coronary artery disease were not used, so reconstruction of abnormal ECGs was not tested. The study presents mechanocardiograms as a complement to ECG rather than a replacement.