logo

Electrocardiography | Digital Signal Processing

   

Added on  2022-08-26

12 Pages2795 Words38 Views
Running head: DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSING
Name of the Student
Name of the University
Author Note
Electrocardiography | Digital Signal Processing_1
Introduction:
Electrocardiography is basically the graphical representation of any electrical activity
in the human heart for a specific period of time. The electrical activity is recorded by the
electrodes which are connected to the human body by either three or twelve leads connected
to skin of the person. The ECG signal is mainly comprised of P wave, QRS complex and T
waves. The P wave is the depolarization effect in the signal and QRS section indicates the
ventricular depolarization, whereas, T wave is the proof of very fast repolarization of
ventricles [6]. Now, in this particular project these waves are generated artificially with
optimized parameters by mathematical functions in MATLAB and then combined to obtain a
similar to real ECG signal [1]. Furthermore, a random noise is added to the signal and the
noisy signal is filtered using an appropriate filter available as built-in function in MATLAB.
Finally, the original real time ECG signal, error added signal and filtered signal is plotted in a
same graph for comparison.
Scope:
The scope of this particular project includes noise removal from ECG signal which is often
the primary concern for many medical researchers. The noises in the ECG signal exists
mainly from five sources which are baseline wander, Power line interference, motion
artefacts, Muscle noise and other interferences. Baseline wander exists varying electrode-skin
impedance which is added to signal in form of low frequency component. The power line
interference occurs when the power supply to the ECG instrument has a power input of
unstable frequency [2]. The motion artefacts are generated by the motions of electrode those
are very much away from the contact region on skin. The frequency of this type of noise is
unpredictable. Muscle noises are common as during ECG recording EMG
(Electromyography) signal is also generated from contractions of skeletal muscles. Other
types of noise that can affect the ECG signal are noise produced by the instrument such as
cables, probes or D/A converters. Now, instead of affecting the generated ECG signal with all
Electrocardiography | Digital Signal Processing_2
types of noises only one noise namely muscle noise is used to corrupt the signal for simplicity
and ease of filtering. The occurrence of muscle noise is random and thus this can be modelled
using a stochastic process from Gaussian distribution with zero mean and unit standard
deviation [3]. Hence, additive white Gaussian noise is applied to the signal and then it is
filtered using suitable filter and its optimized parameters.
Project design:
Now, at first the ECG signal is generated in MATLAB part by part by generating each
wave of ECG with mathematical approximation. Then each waves are combined to generate
the real time ECG signal for a time period up to 5 seconds.
There are a total of six waves namely p-wave, q-wave, qrs-wave, s-wave and t-wave exist in
the ECG which are approximated by mathematical expressions. Each wave has four
parameters namely the time interval of the wave, coefficient a, coefficient d and coefficient t
and the frequency factor [7]. The parameters of the waves are sensitively chosen to obtain a
signal very similar to ECG signals which are obtained from heart rates in real time from
human body.
Now, after obtaining the real time ECG signal the signal is corrupted with a random white
Gaussian Noise with signal to power ratio of 20. The power of the signal is measured from
the input signal and then the white Gaussian noise is applied to the signal with 80% of the
signal power [10].
Now, after corrupting the original signal with noise a filter is applied to the signal cancel out
the noise in the signal. The filter is chosen in such a way that it’s smoothens the signal
without tampering the key trends in the signal characteristics. Thus the best filter matching
the criterion is chosen to be Savitzky-Golay filter which is also known as polynomial
smoothening filter or the least square smoothening filter [5]. This filter is available in
MATLAB by the function scgolayfilt and thus it is applied with best suited parameters (order
Electrocardiography | Digital Signal Processing_3
= 3, window size = 9). The filter is suited for the particular noisy ECG signal as the noise in
the signal is large and there are many high frequency components in the ECG signal. Thus for
this type of application scgolayfilt is known to perform better than any standard mean filter or
Gaussian filters as these filters often clears the high frequencies along with the noise which is
undesirable [4]. The Savitzky-Golay filter operates by minimizing the least square error of
the fitted polynomial to data and in this sense this filter an optimal filter and thus often
further optimization of filter parameters are not required [8].
The general filter equation of the Savitzky-Golay is given by,
Y i=(1/ W )¿
Here, W = window size or frame length
ai=¿ Coefficients of the filter
n = Order of filter polynomial
xi=¿ ith observed value in the data or input signal
Y i=¿ Filter output of ith smoothened data point
Now, ECG signal is generated, noised and filtered in the MATLAB script ecgcorrection.m as
given in appendix section and the output is given below.
Plot of real time generated ECG signal:
Electrocardiography | Digital Signal Processing_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Electronics Digital Signal Processing Report 2022
|7
|2257
|43

Digital Signal Processing and Video Compression
|14
|2698
|400

Digital Signal Processing PDF
|15
|2551
|26