A Real-Time Heartbeat Detection Technique Using TMS320C6713 Processor and Multi-Rate Signal Processing
A Real-Time Heartbeat Detection Technique Using TMS320C6713 Processor and Multi-Rate Signal Processing
A Real-Time Heartbeat Detection Technique Using TMS320C6713 Processor and Multi-Rate Signal Processing
D.Mandal 1 M. Ganguly
Department ofElectronics and Communication Department ofElectronics
Engineering West Bengal State University, Barasat, West Bengal,
Heritage Institute ofTechnology, Kolkata, India India
E-mail:[email protected] E-mail:[email protected]
Abstract- A lot of works have been done on In the last few years, on data compression a lot of works
Electrocardiogram and Phonocardiogram (ECG and PCG). have been done. Several efficient ECG compression
But in most of the cases data for ECG or PCG have been taken techniques such as linear predictive, sub-band coding
from standard database Iike MIT-BIß Arrhythmia or any waveform coding etc. have been reported in literature [3].
other sourees. In this work a real-time signal processing task
During last decade The Wavelet Transform, especially
(RTST) on heart sound is presented. In the first part it is
shown that the phonocardiogram signal (pCG) could be Discrete Wavelet Transform has appeared as powerful and
detected using an electronic circuit along with the DSP robust tool for analyzing and extracting information from
(TMS320C6713) processor from human heart. In the second non-stationary signal such as speech signal and ECG signal
part reduction of PCG signal and analysis of PCG signal have [3]. In some work it is shown that the amplitude zone time
been shown using different digital signal processing techniques epoch coding (AZTEC), and coordinate reduction time
Iike Decimation, Interpolation, Windowing, Discrete Fourier encoding system (CORTES) were developed. In those work
Transform, Fast Fourier Transforms etc. In this work we have compression is achieved by eliminating redundancy between
applied the Multi-rate Signal Processing Technique to reduce different ECG sampies in the time domain [4-5] based on
the size of the heart sound signal. The MSPT deals with
direct scheme. Some other examples are the turning-point
different sampling frequencies. The chaUenging part of this
work is to apply the DSP KIT to achieve the heart sound data (TP) data reduction algorithm [6], the scan-along polygonal
and to apply the different signal processing techniques to reach approximation (SAPA) and differential pulse code
the goal. An electronic circuit is designed and implemented modulation (DPCM). These techniques involve simple
a10ng with a stethoscope to receive the heart sound signal signal processing task and produce minimum distortion with
(PCG signal) from the human heart. The DSP KIT is good compression. A detailed review on these techniques is
incorporated to proceed to the main work. The task has been presented in [7-9] and the references there in.
completed through taking near about 20 person's real time Considering all the facts, we have presented some signal
heart sound sampies (pCG sampies). processing task to reduce the problems of compressing and
analyzing the heart sound signals. In the second section we
Keywords-Decimation; Interpolation; Multi-rate signal have described the process of obtaining the digital heart
processing; Stethoscope; PCG.
sound signal using the DSP processor TMS320C6713.
Decirnation and interpolation techniques have been described
I. INTRODUCTION in section III. Results have been discussed in section V.
R eart Auscultation is a non-invasive low-cost screening
method , which is defined as the process of interpreting 11. HEART SOUNDS AND THEIR PHYSICAL CAUSES
acoustic waves produced by the mechanical action of heart,
and for the diagnosis of cardiac diseases it is used as Human heart divided into four cavities that are known as
fundamental tool [1]. It can provide necessary information the left and right atria and ventricles. A set of valves:
regarding the function of heart valves and the hemo- tricuspid, bicuspid (mitrai), pulmonary and aortic help to
dynamics of the heart. Also it has high potential for flow blood through cavities. Human heart can be modeled as
detecting various heart disorders especially valvular a four chambers pump where blood is collected from veins
problems [2]. Now-a-days heart sound signals are detected by two superior atria and other two inferior ventricles which
with the computers and other specially designed digital pump blood into arteries [10]. Its pumping action is divided
equipment. But they are very costly and installed in a into two halves; the systole and diastole. Systole is the period
particular place and they are not easy to handle. Moreover of contraction of the heart muscles and the period of
they need more memory space to store the digital signals relaxation is called diastole. Due to closure of the major
and consume more power to run. Therefore it requires some valves [11] heart sounds are produced.
techniques to reduce the size ofthe signals.
Authorized licensed use limited to: G Narayanamma Institute of Technology & Science. Downloaded on March 17,2023 at 16:36:07 UTC from IEEE Xplore. Restrictions apply.
3rd In!'1 Conf. on Recent Advances in Information Technology I RAIT-20161
J
02
Heart sounds are nonnally very weak signals. Nonnal 01
[D
OOI",I1---r-ir-w~t).J-Ir--:;;':;;-'-~-4),1
Eltample o f he'artso und s ampl,e r,eceiv ed' Dy th.e OSP'KIT M
NPN Q.OIUF
.' d MIC
-12v
-'-
., '" - "",v·
,-
P _-,Ho 0 PK
IT ~I-_...I
then y{n) = {1,O,2,O,I,O,2,O,3,O,2,O,I,O,2.0,3,O,2,O,I,O,3} .
This is done with the help of interpolation technique.
Here we see that the size ofthe y(n) is doubled ofthe x{n).
Fig. 2 Block diagram of heart sound detection Up sampling operation is shown in Fig. 5.
Authorized licensed use limited to: G Narayanamma Institute of Technology & Science. Downloaded on March 17,2023 at 16:36:07 UTC from IEEE Xplore. Restrictions apply.
3rd In!'1 Conf. on Recent Advances in Information Technology I RAIT-20161
I
•
r 1 I
••
J • 1" Ir i .• i
I I ~ j
i ;,
X2 (t) can be recovered as
Time· Time
(a l (bI
Fig. 5. Up sampling operation of discrete time signal Now ifwe want to get the resample version of
In the same way down sampling or decimation can be X2 (t) with the sampling frequency fs2 = 1/T2 we can
used to reduce the size of the sampled signal. The down resample it with the expression
sampling process can be expressed as
x(n) = {1,3,2,4,5,3,6,7,4,4,3} x'(n)=~
:z;
L x(m)Sinc[~(nT2-mT2)l
oo
Tl
-00 J (3)
If it is down sampled by a factor of 2 then it is expressed
From this equation we see that two sampling frequencies
as
y(n) = x(2n) = {1,2,5,6,4,3} . are used i.e. 1/TJ and 1/T2 also it is the general equation,
Therefore it is c1ear that the size of the y{n) is reduced by determining sampling rate changes.
a factor ofhalf.
The down sampling operation is shown in Fig. 6. Therefore we can use some systems with different
sampling frequency to reduce the size of a signal. But
Origin31 Sign<!1 Sign,al .3fter down sa mpling practically it is not possible to implement the above equation
because it consists of infinite no of sampies. The equivalent
operation can be done with the help of decimation operation
1,1
iI
i f [ I I I [ 11 11
1 ! I ! I r I I ~ '!1 ..1"-...."
II,........:.--==-~-:-:-...L-~".......,O-,·
which is done in this work. Results are shown in section V.
n"""! "J":"!"":
o
Xi (t)= L:=-=x(m}5(t-m71) (I) Time
5 10
(b) Deci_ed by 2
15 20 25
: L "~I
Now the spectrum of this signal is periodic with
period21Z'/11 .
To recover the original analog signal x 2 (t) it must be o
Time
5
(c )
10
Deci_ed by 4
15 20 25
passing through a low pass filter with the frequency Fig. 8. (a) Original signal (b), (c) Decimated Version
Authorized licensed use limited to: G Narayanamma Institute of Technology & Science. Downloaded on March 17,2023 at 16:36:07 UTC from IEEE Xplore. Restrictions apply.
3rd In!'1 Conf. on Recent Advances in Information Technology I RAIT-20161
In = nJVf,.n E Z
o therl-Vise
xAe
tE =;~ ' :~
iw )= L :=_oo xAn)e- i <lN1
~Ae.Ja» = L~=_oo xAn~-.J<U'J Q 111 ~ r"".l0 .cO (~l ~O 60 ro 110 ~
Fig. 10. Represents tbe original signal with other decimated factors
= L~=-oo x(nU-}-.JaNt
= L~=-oo x'(11Af),-.Jwn TABLE.- l
Time domain and frequency domain result applying MSPT
=X'(dw / m ) % Du rationof Du rat ionofh eart Heart bit rate Frequenc.ie sp resent
CM1·T CTE
sound
components
SE SH CMI -T CTI-T M-F SU Sl-F
)* L..J
ISec) ISec) ISec ) ISec ) 1Hz) 1Hz) 1Hz)
= _1 X{e jOJ
21<
~ 8(w - 2nk)j M 0 .714
0 .652
0 ,666
0 ,779
0 ,013
0 ,013
0 ,024
0 ,024
75 .7
69 .9
72.6
76 .9
150.06
200 .8 7
32
35 ,0 6
70.23
76 ,56
-a 0 .659 0 ,769 0 ,014 0 ,02 3 75.1 77.9 Nil 34 ,65 79 ,78
0 .689 0.857 0 ,01 5 0 ,022 77 .5 69 .9 Nil 35 .67 72 .47
0 .69 7 0 ,72 2 0 ,014 0 ,024 71.4 82 ,9 306.68 30 ,4 5 78 ,2
0 .82 1 0 ,659 0 ,014 0 ,0 23 68 ,9 90 .9 302.5 6 40 ,4 5 8 7,4 3
= _l_~M -l X{ej(m- 27lk)jM) 0 .722 0 ,666 0 ,013 0 ,024 73.5 89 .9 Nil 36 ,4 6 80
M .L..JK= O ~ 0 .731 0 ,689 0 ,014 0 ,031 66 .6 87 Nil 31,35 85 ,67
xd (n).
0 .666 0 ,705 0 ,013 0 ,02 1 70.4 85 376,56 40 ,56 76 ,69
This is the spectrum ofthe decimated signal 10 0 .722 0 ,869 0 ,012 0 ,0 2 66 ,2 69 Nil 41,56 76 ,58
11 0 ,659 0 ,84 5 0 ,0 14 0 ,022 68 ,4 71 Nil 35 76 ,83
".,
TlDlle
~t
,60 110
(c)
100 120 14.0
collected and analyzed. In every case we have got heartbeat
rate in between 60 and 90 which is normal. The duration of
Fig. 9. (a) Represents the original heart sound signal with the no of sampies SI and S2 also gives an excellent result. Therefore it can be
3600. (b) The original signal is decimated by 2 and the no of sampies is concluded that this can be app1ied to heart sound signal for
reduced to 1800. (c) The original signal is decimated by a factor of 10. The
clinical purpose
size has been reduced to 180.
Authorized licensed use limited to: G Narayanamma Institute of Technology & Science. Downloaded on March 17,2023 at 16:36:07 UTC from IEEE Xplore. Restrictions apply.
3rd Int'l Conf. on Recent Advances in Information Technology 1RAIT -20161
Authorized licensed use limited to: G Narayanamma Institute of Technology & Science. Downloaded on March 17,2023 at 16:36:07 UTC from IEEE Xplore. Restrictions apply.