Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Apr 5;25(7):2321.
doi: 10.3390/s25072321.

ECG Sensor Design Assessment with Variational Autoencoder-Based Digital Watermarking

Affiliations

ECG Sensor Design Assessment with Variational Autoencoder-Based Digital Watermarking

Chih-Yu Hsu et al. Sensors (Basel). .

Abstract

Designing an ECG sensor circuit requires a comprehensive approach to detect, amplify, filter, and condition the weak electrical signals produced by the heart. To evaluate sensor performance under realistic conditions, diverse ECG signals with embedded watermarks are generated, enabling an assessment of how effectively the sensor and its signal-conditioning circuitry handle these modified signals. A Variational Autoencoder (VAE) framework is employed to generate the watermarked ECG signals, addressing critical concerns in the digital era, such as data security, authenticity, and copyright protection. Three watermarking strategies are examined in this study: embedding watermarks in the mean (μ) of the VAE's latent space, embedding them through the latent variable (z), and using post-reconstruction watermarking in the frequency domain. Experimental results demonstrate that watermarking applied through the mean (μ) and in the frequency domain achieves a low Mean Squared Error (MSE) while maintaining stable signal fidelity across varying watermark strengths (α), latent space dimensions, and noise levels. These findings indicate that the mean (μ) and frequency domain methods offer robust performance and are minimally affected by changes in these parameters, making them particularly suitable for preserving ECG signal quality. By contrasting these methods, this study provides insights into selecting the most appropriate watermarking technique for ECG sensor applications. Incorporating watermarking into sensor design not only strengthens data security and authenticity but also supports reliable signal acquisition in modern healthcare environments. Overall, the results underscore the effectiveness of combining VAEs with watermarking strategies to produce high-fidelity, resilient ECG signals for both sensor performance evaluation and the protection of digital content.

Keywords: Fourier-simulated ECG dataset; latent variable space; variational AutoEncoder; watermarking technology.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Functional Block Diagram of ECG signal processing.
Figure 2
Figure 2
The plots represent (a) the Bode magnitude and (b) the phase response of a system consisting of high-pass, band-pass, and low-pass filters.
Figure 3
Figure 3
The architecture of the VAE.
Figure 4
Figure 4
The simulated electrocardiogram (ECG) [27,28,29,30].
Figure 5
Figure 5
The simulated ECG (a) original signal with the noise factors (b) 0.00, (c) 0.01, and (d) 0.05.
Figure 6
Figure 6
The architecture of the implemented VAE in experiments.
Figure 7
Figure 7
(A) Embedding a watermark into the mean (μ) of the VAE model: (a) the loss vs. epochs; (b) ECG training data; and (c) VAE model-generated ECG embedded with a watermark. (B) Embedding a watermark into the latent variable (z) of the VAE model: (a) the loss vs. epochs; (b) ECG training data; and (c) VAE model-generated ECG embedded with a watermark in the latent variable (z). (C) Embedding a watermark through the frequency domain: (a) the loss vs. epochs; (b) the reconstructed ECG with the VAE model; and (c) ECG embedded with a watermark.
Figure 7
Figure 7
(A) Embedding a watermark into the mean (μ) of the VAE model: (a) the loss vs. epochs; (b) ECG training data; and (c) VAE model-generated ECG embedded with a watermark. (B) Embedding a watermark into the latent variable (z) of the VAE model: (a) the loss vs. epochs; (b) ECG training data; and (c) VAE model-generated ECG embedded with a watermark in the latent variable (z). (C) Embedding a watermark through the frequency domain: (a) the loss vs. epochs; (b) the reconstructed ECG with the VAE model; and (c) ECG embedded with a watermark.
Figure 8
Figure 8
The simulated ECG at (a) alpha 0.5 and (b) alpha 0.9 embedding the watermark in the mean (μ); (c) alpha 0.5 and (d) embedding watermarks through the latent variable (z); (e) alpha 0.5 and (f) alpha 0.9 embedding watermarks through the frequency domain.
Figure 9
Figure 9
(A) Embedding the watermark in the mean (μ) with noise_factor = 0.1: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking. (B). Embedding the watermark in the mean (μ) with noise_factor = 0.3: (a) first original training signal; (b) mean of all training signals; and (c) VAE reconstructed signal with watermarking. (C) Embedding the watermark in the mean (μ) with noise_factor = 0.5: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking.
Figure 9
Figure 9
(A) Embedding the watermark in the mean (μ) with noise_factor = 0.1: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking. (B). Embedding the watermark in the mean (μ) with noise_factor = 0.3: (a) first original training signal; (b) mean of all training signals; and (c) VAE reconstructed signal with watermarking. (C) Embedding the watermark in the mean (μ) with noise_factor = 0.5: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking.
Figure 10
Figure 10
(A) Embedding the watermark through the latent variable (z) with noise_factor = 0.1: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking. (B) Embedding the watermark through the latent variable (z) with noise_factor = 0.3: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking. (C) Embedding the watermark through the latent variable (z) noise_factor = 0.5: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking.
Figure 10
Figure 10
(A) Embedding the watermark through the latent variable (z) with noise_factor = 0.1: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking. (B) Embedding the watermark through the latent variable (z) with noise_factor = 0.3: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking. (C) Embedding the watermark through the latent variable (z) noise_factor = 0.5: (a) first original training signal; (b) mean of all training signals; and (c) VAE-reconstructed signal with watermarking.
Figure 11
Figure 11
(A) Post-reconstruction watermarking, embedding watermarks through the frequency domain with noise_factor = 0.1: (a) first original training signal; (b) mean of all training signals; (c) VAE-reconstructed signal without watermarking; and (d) VAE-reconstructed signal with watermarking. (B) Post-reconstruction watermarking, embedding watermarks through the frequency domain with noise_factor = 0.3: (a) first original training signal; (b) mean of all training signals; (c) VAE-reconstructed signal without watermarking; and (d) VAE-reconstructed signal with watermarking. (C) Post-reconstruction watermarking, embedding watermarks through the frequency domain with noise_factor = 0.5: (a) first original training signal; (b) mean of all training signals; (c) VAE reconstructed signal without watermarking; and (d) VAE reconstructed signal with watermarking.
Figure 11
Figure 11
(A) Post-reconstruction watermarking, embedding watermarks through the frequency domain with noise_factor = 0.1: (a) first original training signal; (b) mean of all training signals; (c) VAE-reconstructed signal without watermarking; and (d) VAE-reconstructed signal with watermarking. (B) Post-reconstruction watermarking, embedding watermarks through the frequency domain with noise_factor = 0.3: (a) first original training signal; (b) mean of all training signals; (c) VAE-reconstructed signal without watermarking; and (d) VAE-reconstructed signal with watermarking. (C) Post-reconstruction watermarking, embedding watermarks through the frequency domain with noise_factor = 0.5: (a) first original training signal; (b) mean of all training signals; (c) VAE reconstructed signal without watermarking; and (d) VAE reconstructed signal with watermarking.

Similar articles

References

    1. Li G., Ma X., Wang X., Yue H., Li J., Liu L., Feng X., Xue J. Optimizing deep neural networks on intelligent edge accelerators via flexible-rate filter pruning. J. Syst. Archit. 2022;124:102431. doi: 10.1016/j.sysarc.2022.102431. - DOI
    1. Liu L., Ma X., Liu H., Li G., Liu L. FlexPDA: A flexible programming framework for deep learning accelerators. J. Comput. Sci. Technol. 2022;37:1200–1220. doi: 10.1007/s11390-021-1406-9. - DOI
    1. Li G., Ma X., Wang X., Liu L., Xue J., Feng X. Fusion-catalyzed pruning for optimizing deep learning on intelligent edge devices. IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 2020;39:3614–3626. doi: 10.1109/TCAD.2020.3013050. - DOI
    1. Sanivarapu P.V., Rajesh K.N.V.P.S., Reddy N.V.R., Reddy K.V.K., Rao P.V.R., Reddy A.S. Patient Data Hiding into ECG Signal Using Watermarking in Transform Domain. Phys. Eng. Sci. Med. 2020;43:213–226. doi: 10.1007/s13246-019-00838-2. - DOI
    1. Kaur S., Singhal R., Farooq O., Ahuja B.S. Digital Watermarking of ECG Data for Secure Wireless Communication; Proceedings of the 2010 International Conference on Recent Trends in Information; Kerala, India. 12–13 March 2010; pp. 140–144. - DOI

Publication types

LinkOut - more resources