Ganesan 2018
Ganesan 2018
Ganesan 2018
Abstract— In this paper, we aim to develop a real-time ECG complex can provide substantial information on the working
monitoring system that records a noise free signal. This is of the heart. The height of the R peak and the R-R interval is
accomplished by amplifying the acquired signal, filtering out the imperative to the diagnoses of the condition of the patient’s
noises by employing higher order filters. This system is a perfect heart. Basic abnormalities of any sort can be found by
blend of electronics, embedded hardware and bio-potential signal
analyzing the width and height of the QRS waves in the ECG.
by making use of open source software, Raspberry pi, to display the
filtered ECG signal that has been acquired directly from the For diagnoses of more complex diseases other smaller waves
subject’s body. Thereby, we propose a device that can acquire and in the ECG, like P, T and U wave needs to be observed.
monitor real time ECG signal and display the signal in a display The processed noise free signal is then converted from Analog
screen using Raspberry Pi. to Digital Signal by employing MCP3008. The digital signal is
plotted in the display using Raspberry Pi. This makes the ECG
Keywords— LPF, HPF, Notch filter, power line interference, system compact, portable and easily accessible unlike the ECG
Baseline wander, ADC, MCP3008, DSO circuit that uses a DSO/CRO for displaying its signals. The
signal is displayed in a compact display screen, like LCD,
I. INTRODUCTION after processing using raspberry pi [5].
The Electrocardiogram signal is generated due to the Our aim in this project is twofold: To design and implement a
contractions of the heart. It represents the electrical activities low cost ECG device in comparison to those available in the
occurring in the muscles of the heart. The potentials from market and to design an easily accessible, compact device that
various nodes of the heart combine to create the ECG signal. can be used in today’s clinics and hospitals.
ECG devices use electrodes to convert ionic signals to
electrical signals that can be displayed in a way that is visible
to the naked eye, which can further be used for monitoring and
diagnosing of underlying heart diseases [1].
An ECG device performs certain activities like removal of
external and internal noise. The signal is amplified by making
use of an instrumentation amplifier while the filtering is
accomplished by a low pass filter [LPF] and high pass filter
Fig 1. The Proposed ECG system
[HPF] and a notch filter. The amplifying and filtering of ECG
signal is extremely essential as the signal acquired from the
subject’s body is contaminated with noise that arises due to II. LITERATURE SURVEY
many factors such as power line interference, baseline wander, In real time ECG signals obtained from the human body are
high frequency noise and electromyography noise that is contaminated with noise. The signal needs to be filtered in
caused due activities in the muscle. These noises must be order to record and analyze the signal. In the papers [2], [7],
eliminated to distinctively see and analyze the QRS waves [2]. the various noises that contaminate the ECG signal have been
In this paper, the real time ECG signal acquired from the discussed. The three major noises that seem to make its way
subject’s body is sent through a pre amplifier, a 9 th order low into all ECG signals are as follows:
pass filter and high pass filter that will eliminate internal and Power-line interference Noise (PLI): PLI is one of the
external noise interferences and a 50-60 Hz notch filter that major elements when it comes to disturbances in the
will effectively remove the 50Hz power line noise that is ECG signal. The electromagnetic interferences
prominent in most ECG signals [3]. corrupt the quality of the signal and perturb the small
Analyses for the ECG signal are one of the most prominent yet essential parts of the signal that may be critical for
methods of diagnosing heart diseases. The underlying QRS examining and diagnosis.
1093
The LPF is used to remove the high frequency components in Gain = 8.72; cut off frequency = 0.5Hz
the ECG. By implementing the low pass filter we can remove To accomplish this we make use of a 9th order Butterworth
the noise caused due to factors like power line interference and high pass filter with a cut off frequency of 0.1Hz. We design a
electromyography noise. This filter has a considerable affect 9th order filter because by increasing the degree of freedom
on the QRS complex [4]. there is sharpness in the transition between attenuated and
A 9th order LPF with cut off frequency of 100 Hz is designed. preserved frequencies. The frequency response in the stop-
Therefore on passing through it, any signal that has frequency band, band-pass is flatter when the degree increases which
above 100 Hz will be eliminated. The cut off frequencies that causes improved amplitude conservation [2].
are used for the filters have been chosen because it has been
noted that the clinical ECG frequencies lie in the range 0.1- E. Notch Filter
100 Hz [2]. The notch filter is used to attenuate the power over a narrow
range. In this case, the notch filter is designed at 50 Hz and is
used to remove the power line noise causing the least amount
of disturbance to the remaining signal.
The notch filter is designed at 50-60 Hz because the AC
frequency in India is 50 Hz. Thus this can remove the noise
due to power supply interferences [5].
G. Raspberry Pi
The Raspberry Pi 3 Model B is the latest version of the
Raspberry Pi computer. The Pi isn't like the typical machine,
in its cheapest form it doesn't have a case, and is simply a
credit-card sized electronic board [5].
The 3.5mm audio jack output of the electrode probe is
Fig 5. 9th Order Butterworth HPF Design connected to the instrumentation amplifier through an adapter.
This probe will yield an optimum output and less complicated
1094
than a 12 lead electrode system. The Analog output of the
Amplifier is given to the filters and from the MCP3008 to the
Raspberry Pi. The connections between the Raspberry Pi and
the other parts can be made via Male-to Female jumper wires
or via one of Adafruit’s Pi cobbler kits.
The signal obtained, on further coding using Python, is
displayed in an LED screen. Upon additional developments, the
ECG signal can be displayed on more updated and advanced
display systems [15].
Fig 9. Frequency Response of Notch Filter (Screenshots taken from DSO)
The sine wave used to plot the frequency response was later
changed to the ECG acquired from the body through electrode
pads. The electrode pads connected to the wrists of the subject
was given to the inputs of the instrumentation amplifier. The
third electrode pad connected to the ankle was given to the
ground of the circuit.
Once appropriate connections were made, the signal from the
subject was recorded. The following was the recorded ECG
signal. It can be seen from the results that the QRS complex is
visible while the P, T and U wave are not.
Fig 7. Connections between the MCP3008 and Raspberry Pi 3
IV. RESULT
The ECG signal is acquired from the body through 3 lead pads
is sent through an instrumentation amplifier. The amplifier is
designed to have a gain of 20. The CMRR value when
designed had a value of 60 dB, after adding potentiometer the
CMRR value is increased to a value of 80 dB.
The signal is later passed onto a low pass filter with cut off
frequency 100Hz. The frequency response, when recorded in
the digital signal oscilloscope (DSO), was as follows: Fig 10. ECG signal recorded from the Subject 1
The output of the low pass filter is send as the input of the
high pass filter. The high pass filter is designed with cut off
frequency of 0.1Hz and the frequency response for this filter Fig 11. R peaks displayed using Raspberry Pi 3
was too low to record.
The output of the high pass filter is then passed through the
Where, sampling rate is set as 300Hz.
notch filter designed to remove 50Hz noise. The frequency
response of the notch filter was recorded as follows:
1095
Hardware implementations: The system has tremendous amount of future scope in the field
of biomedical instrumentation. On further improvements in the
coding, we can not only display the signal, but also detect the
peaks of the signal, calculate the heart rate and monitor for any
anomalies in the heart beat.
ACKNOWLEDGMENT
The authors of this paper are very grateful for the support
and guidance from Amrita School of Engineering, Vishwa
Vidyapeetham, Coimbatore for providing us with the
necessary guidance, equipment and lab.
REFERENCES
Fig 12. Hardware implementation of Filter circuit
[1] Rangaraj M. Rangayyan, “Bio-Medical Signal Analysis, Wiley-
Interscience”, IEEE press, 2002.
[3] Sergio Franko, “Design with operational amplifiers and analog integrated
circuits”, Tata McGraw-Hill, Third Edition, 2010.
[5] International Journal of Science and Engineering, Vol. No.6, Issue no.04,
April 2017, “RASPBERRY Pi based ECG Data Acquisition System”,
Fig 13. Hardware implementation of MCP3008 and Raspberry Pi 3 Ms.Gauravi.A.Yadav, Prof. Shailaja.S.Patil.
1096