Professional Documents
Culture Documents
Abstract—Telemedicine is experiencing a great growth in recent method, it is classified into four categories: time domain
years, is a technology allowing remote health services and compression, transform domain compression, model based
exchange of medical information, among these areas we find compression, and the hybrid compression method. In the two-
telecardiology. In telecardiology the ECG requires a long dimensional (2-D) compression method, the ECG signal is
recording. For this purpose the data are high, the reason that an represented in two dimensions, then the transformation is
effective compression method is required for biomedical signals. applied to these two-dimensional (2-D) representations.
The electrocardiogram (ECG) or (EKG) is an important tool for
assessing the heart condition of a patient, and is very sensitive to ECG compression can also be classified into compression
noise. For that several methods are proposed to denoising the ECG with loss and lossless compression. Although loss compression
signal include: EMD, EEMD, DWT, and adaptive filter ADTF. has a high compression ratio (CR), it introduces distortion into
After the transfer phase it is necessary to compress the signal. the signal and may lose important data for patient diagnosis. On
Among the algorithms that can be found, low complexity the other hand, lossless compression ensures the integrity of
compression based on ASCII coding, DWT and DCT based
compression. In this work we propose an embedded system based
reconstructed data with a moderate to high compression ratio
on the CUDA architecture of the lossless ECG data compression. (CR) [8-9].
Today it becomes necessary to implement a reliable e-health
Keywords-Telemedicine; ECG; compression; ASCII coding; device that allows the diagnosis of cardiovascular disease. In
CUDA architecture recent years manufacturers began offering processors with two,
three, four, six, eight and more computing cores units instead of
I. INTRODUCTION one. And in order to speed up the processes, get better battery
Every year more people die because of cardiovascular life for devices. The heterogeneous system was developed.
disease. For that an electrocardiogram is necessary to diagnose Heterogeneous system architecture become prevalent in recent
the patient's cardiac condition. The electrocardiogram ECG or years, it allows different types of processors to work together
EKG is a test that allows to study the electrical activities of the efficiently eg: CPU-GPU, CPU-DSP, CPU-FPGA... To exploit
heart, while measuring the number of beats per second. Because this increasing hardware parallelism, new solutions like
of its low frequency band (0.5-150 Hz) it remains very sensitive OpenCL and CUDA have appeared.
to noise, among these most common noises are baselines The paper is organized as follows. The different compression
wander, Interference of a signal at 50 Hz, Interference of methods are detailed in section II, and section III presents the
electromyographic origin (EMG) [1-3]. For this purpose several
heterogeneous CPUGPU system based on CUDA. And for the
filtering methods are proposed include ADTF [3], EMD [4],
proposed architecture is detailed in section IV. To conclude,
EEMD [5-6], DWT [7] and others. The Adaptive Dual
Threshold Filter ADTF which is an adaptive filter based on two some results and discussion are given in section V.
thresholds. EMD for Empirical Mode Decomposition is an
adaptive method to unidimensional signals introduced by Huang II. COMPRESSION METHOD
et. al in 1998 which decompose the signal into IMF (Intrinsic
Mode Function). The EMD method has a problem called mode A. Time domain compression
mixing, to override this problem the Ensemble EMD appeared. First, for the discrete data compression technique. The
EEMD is a method assisted by adding a percentage of white ASCII coding method has been proposed for ECG signal
noise to the signal before decomposing it. compression [10, 11]. This method is illustrated in figure 2.The
For a better transmission it is needed to reduce the data size different steps of this scheme are detailed in the following of this
of ECG and protecting the integrity of the signal quality after the section.
filtering phase. Among the existing methods of ECG 1) Windowing
compression are two classes: one dimension (1-D) and two
dimensions (2-D). The one-dimensional (1-D) compression
4-3) No grouping
If the two conditions are not satisfied, then the two groups
mentioned above are impossible. So the position of c[i] and
c[i+1] is taken as it is and placed at the new array ECG-data.
The following figure shows example of Data encoding.
D. The Frame
Figure 5. The Architecture proposed for ASCII algorithm Finally, the result returns to the CPU to form the frame that
contains the characters to be printed in the text file (Table I).
A. The signal windowing
In this block we have the signal acquisition and the TABLE I. THE FRAME
measurement of its size, which will be executed in the host cnv g Sign_byte cng rsii Ecg-data
(CPU) and after the window. We need to initialize our device
for the transfer the next block the eight samples will be V. RESULT AND DISCUTION
transferred to the device (GPU). Figure 6 show the windowing
Architecture. A. Result
B. Delta function
In this step as mentioned above serves to differentiate the then, we will return a bit SB that will indicate if there is a
sampling and multiply the values of the samples by (-1) then negative value. In our case we have D[0], D[6] and D[7]. After
amplify them by (x1000). This step comes directly after the detecting the negative number it is necessary to multiply the
elements by (-1). After we will multiply them by 1000 to obtain
window phase, and will be executed in the device (GPU) part.
the table c[] which contains the values positive multiply by 1000.
Figure 8 shows Delta function Architecture.
Thereafter we need regrouping so in our example we have 2
No grouping, a direct grouping and a reverse grouping. As
shown in Figure 9.
B. Performance comparaison
To test the performance of the compression algorithm. We
can measure the difference between the original signal and the
reconstructed signal, and calculate the compression ratio.
1) The compression ratio
Figure 9. Executing Model 1 The compression ratio (CR) determines the ratio between
the size of the original signal file and the compressed signal
Another bit called nbr that will count us the final size of our file. The higher the value of CR, the compression algorithm
file compress. In our case nbr contains 6 so our frame will only has the best performance as showing in the table II.
contain 6 samples instead of 8. The following figure shows our
ECG DATA signal and the compressed signal. ܱ݁ݖ݅ݏ݈݂݁݅ܽݐܽ݀ܩܥܧ݈ܽ݊݅݃݅ݎ
ܴܥൌ