Professional Documents
Culture Documents
Volume: 2 Issue: 7
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
AbstractAn electrocardiogram (ECG) signal is a test to measure the electrical activities of the heart by applying electrical
impulses. This paper proposed a remote ECG simulation to assisting vital signs in healthcare, namely ECG Simulation using
Fourier Series approximation. A single period of an ECG signal that contains P, Q, R, S, T and U waves is in sinusoidal/triangular
shapes, periodic and satisfies Dirichlets conditions. Periodic Fourier Series also satisfies the condition and is expressed in terms
of sine and cosine functions, thus Fourier Series is used to represent the ECG signal. All waves in the ECG signal are analyzed in
choosing suitable representation of the shape. The combination of all waves which yields the ECG signal is calculated and
programmed in Microsoft Visual Basic 2008 (MSVB2008). The results obtained could be run remotely on mobile devices using
Microsoft Remote Desktop. Further details of results might be improved by proper consultations from medical practitioners.
Keywords- ECG, Fourier Series, Microsoft Remote Desktop, Mobile Device, MSVB2008
__________________________________________________*****_________________________________________________
I.
INTRODUCTION
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
subjects of different ages. The results showed that the error
rate of the device is negligible.
The Heart
Rate (BPM)
Interpretation
Bradycardia
Normal
Tachycardia
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
B. The ECG Wave
The ECG [2,12] as in Figure 2 is a graphical representation
time versus amplitude of electrical vector projection of the
electrical activity of the heart. It picks up electrical impulses
generated by the polarization and depolarization of cardiac
tissue and translates into a waveform. The waveform is then
used to measure the rate and regularity of heartbeats. A normal
ECG consists of several different waveforms that represent
electrical events during each cardiac cycle in various parts of
the heart. The event of each normal cardiac cycle is
represented in sequence by the P wave, the PR interval, the
QRS complex, the ST segment, the T wave, and sometimes the
U wave.
The ECG waves [2] are recorded on special 1 mm2 gridlike squares graph paper as shown in Figure 3. With the paper
speed at typical 25 mm/sec, each 1 mm horizontal squares
corresponds to 0.04 second. The thicker lines form larger
squares that include five small squares and represent 0.20 sec
intervals. A better define waveforms is attained when the
paper speed is increased to 50 mm/sec where there are only six
leads per sheet of paper.
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
TABLE II.
Details
QRS
Amp (mV)
0.25
0.2
Dur (sec)
0.12
0.04
1.6
0.06
0.12
0.025
0.35
0.025
0.066
0.142
0.048
Interval
0.12
0.20
0.166
0.08
0.2
0.433
f (x ) 12 a0
n 1
n x
n x
cos
bn sin
L n 1
L
where
1
L
1
an
L
a0
f (x )dx
n x
f (x ) cos
L
L
(2)
dx
(3)
1 L
n x
(4)
f (x )sin
dx
L
L
L
and n 1, 2, 3, ... .
Generally, any periodic functions which satisfy Dirichlets
condition can be expressed as a series of scaled magnitudes in
terms of sine and cosine frequencies which occur as a multiple
of fundamental frequency. An ECG signal is periodic with its
fundamental frequencies determined by the heartbeat and it
satisfies Dirichlets conditions where it has single value, a
finite number of maxima/minima between finite intervals and
finite number of discontinuities. It is also finite in a given
interval and integrable. A single period of an ECG signal as
shown in Figure 2 is a kind mixture of sinusoidal and
triangular wave forms. P, T and U wave's portion are in
sinusoidal form and these might be represented by sine or
cosine functions. For Q, QRS segment and S waves, these
portions could be represented in the form triangular wave.
Once each of these portions is generated, these waves can be
added to get the final ECG signal.
Let L, a and b are the ECG interval (heart rate), amplitude
and duration for each portion of the wave. These
approximations can be performed as follows:
The sinusoidal waves P, T and U. Figure 4 shows
the representation for P, T and U portions in terms of
a b and L.
bn
1806
IJRITCC | July 2014, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
The computations for the coefficients as in Eqn. 2 to Eqn.
4 are as follows. From Figure 2, the function is
b x
f (x ) cos
,
2L
then using [15]
1 L /b
4
b x
(5)
a0
cos
dx b
L L /b
2
L
1
L
1
an
b x
n x
cos
cos
dx
L /b
2L
L
4b
n
cos
b 2n b 2n b
L /b
(6)
f (x )dx
abx
n x
L a cos L dx
L
/
b
1
abx
n x
a cos
L 0 L
L /b
dx
(11)
2ab
n
1 cos
, n 1, 2, 3, ...
2
b
n
(12)
(7)
f (x )
L /b
1
an
L
L /b
2
4b
n
n x
cos
cos
,
b n 1 b 2n b 2n
b
L
(8)
n 1, 2, 3, ...
n
n x
1 cos
cos L ,
b
(13)
n 1, 2, 3, ...
All portions depend on its amplitude, duration and interval
as shown in Table 2. The QRS segment is calculated using
Eqn. 13, however, due to some similarities the others could be
grouped as follows.
P, T and U waves:
2
4b
n
n x
af (x ) a
cos
cos
b
b 2n b 2n
b
L
n 1
, n 1, 2, 3, ...
(14)
Q and S waves (negative gradient):
a
2ab
n
n x
f ( x )
1
cos
cos
L ,
2b n 1 n 2
b
(15)
n 1, 2, 3, ...
f (x )
a
2ab
2b n 1 n 2
f (x ) a
a 0
abx
L
f (x )
a, x 0
x 0
0 L /b
L
b
and
f (x ) a
a 0
abx
L
f (x )
a, 0 x
x 0
0L /b
L
b
which can be written as
L
abx
L a, b x 0
f (x )
abx a, 0 x L
L
b
(9)
1
L
1
L
a
a0
L /b
L /b
f (x )dx
1
abx
a dx
L /b L
L
L /b
abx
L a dx
(10)
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
The setup for remote PC
1. Create an account and a password for a remote
desktop.
2. Click Start, then right click Computer and click
properties.
3. Click change Settings, Figure 10 appears.
4. Click Remote, and choose the appropriate button to
allow connection.
5. Click Select Users.
6. Click Add and the account name could be entered
manually or click Advances to locate it.
7. Click OK to close all the pop-up windows and
computer properties.
Select Heart
Rate
Select P-Wave
attributes
Select Q-Wave
attributes
Custom
Data
Select QRS-Segment
attributes
Use
Custom
Yes
Accept?
Display
ECG
No
Select S-Wave
attributes
Use
Default
Select T-Wave
attributes
Start
Select U-Wave
attributes
Custom Data
Normal ECG
Compute an
Add a0 and an
to ECG
Yes
Add 1 to i
Update an
an
converge?
No
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
3.
4.
5.
6.
III.
1809
IJRITCC | July 2014, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
B. The Outputs
The remote PC must be accessible by a mobile device via
WiFi and MSRD. Having clicked MSRD application in the
mobile device, the first two screenshots in the device from the
remote PC appeared as shown in Figure 19 and Figure 20.
1810
IJRITCC | July 2014, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
ISSN: 2321-8169
1803 1811
_______________________________________________________________________________________________
IV.
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
[15]
[16]
1811
IJRITCC | July 2014, Available @ http://www.ijritcc.org
_______________________________________________________________________________________