ECG signals represent the electrical activity of the heart. A typical ECG waveform consists of P, QRS, and T waves. In this section, we'll generate a synthetic ECG signal using mathematical functions.
The synthetic ECG signal can be modeled as:
\[ ECG(t) = \alpha_P \cdot e^{-\frac{(t-\mu_P)^2}{2\sigma_P^2}} - \alpha_{QRS} \cdot e^{-\frac{(t-\mu_{QRS})^2}{2\sigma_{QRS}^2}} + \alpha_T \cdot e^{-\frac{(t-\mu_T)^2}{2\sigma_T^2}} \]
Where \(\alpha\) represents amplitude, \(\mu\) represents position, and \(\sigma\) represents width of each wave component.
Signal Parameters
Synthetic ECG Signal
Clean synthetic ECG signal with adjustable parameters. The x-axis represents time in seconds, and the y-axis represents voltage in millivolts.
Noisy ECG Signal
ECG signal with simulated noise artifacts including baseline wander, powerline interference (50/60 Hz), and EMG noise.