You are on page 1of 11

ARTICLE IN PRESS

Signal Processing 88 (2008) 1402–1412


www.elsevier.com/locate/sigpro

Embedded filter bank-based algorithm for ECG compression


Manuel Blanco-Velascoa,, Fernando Cruz-Roldána, Eduardo Moreno-Martı́neza,
Juan-Ignacio Godino-Llorenteb, Kenneth E. Barnerc
a
Department of Teorı´a de la Señal y Comunicaciones, Universidad de Alcalá, Campus Universitario, 28871 Alcalá de Henares, Madrid, Spain
b
Department of Ingenierı´a de Circuitos y Sistemas, Universidad Politécnica de Madrid, Madrid, Spain
c
Department of Electrical and Computer Engineering, University of Delaware, Newark, DE 19716, USA
Received 18 June 2007; received in revised form 5 October 2007; accepted 5 December 2007
Available online 17 December 2007

Abstract

In this work, two ECG compression schemes are presented using two types of filter banks to decompose the incoming
signal: wavelet packets (WP) and nearly-perfect reconstruction cosine modulated filter banks. The conventional embedded
zerotree wavelet (EZW) algorithm takes advantage of the hierarchical relationship among subband coefficients of the
pyramidal wavelet decomposition. Nevertheless, it performs worse when used with WP as the hierarchy becomes more
complex. In order to address this problem, we propose a new technique that considers no relationship among coefficients,
and is therefore suitable for use with WP. Furthermore, this new approximation makes it possible to apply the
quantization method to M-channel maximally decimated filter banks. In this fashion, the proposed algorithm provides two
efficient and effective ECG compressors that show better ECG compression performance than the conventional EZW
algorithm.
r 2008 Elsevier B.V. All rights reserved.

Keywords: Electrocardiogram (ECG); ECG compression; Embedded zerotree wavelet; Wavelet packets (WP); Channel bank filter;
Filtering theory; Filter bank

1. Introduction recording ECG in ambulatory patients as a new tool


for certain pathologies. These type of records are
The electrocardiogram (ECG) depicts the elec- commonly used and they are typically collected over
trical activity of the heart. ECG processing is a topic 24 h, which increases the volume of data. Besides,
of great interest within the scientific community ECG is also essential to monitoring patients at
because of two reasons: (1) ECG is collected by non home advancing telemedical applications [2–4]. For
invasive means, which allows easy and wide avail- these cases, compression is needed to provide either
ability and (2) the ECG contains very much transmission or storage solutions for reducing the
information, which is highly valuable for diagnos- original bit rate. Therefore, the design of ECG
ing. In 1961, Holter [1] introduced the long term compression techniques has been widely studied in
the last few years [5–12]. A classification in three
Corresponding author. Tel.: +34 91 885 67 08. categories of the most common techniques was
E-mail addresses: manuel.blanco@uah.es (M. Blanco-Velasco), proposed in [11]: direct methods, transform methods
fernando.cruz@uah.es (F. Cruz-Roldán). and other compression methods.

0165-1684/$ - see front matter r 2008 Elsevier B.V. All rights reserved.
doi:10.1016/j.sigpro.2007.12.006
ARTICLE IN PRESS
M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412 1403

The use of wavelets in ECG analysis was first versely, a non-significant coefficient is encode as an
introduced in [5]. From this initial effort, a wide isolate zero with the symbol fIZg.
variety of ECG wavelet-based compressors have In the ECG compression cases, the EZW algo-
been proposed where compression schemes are rithm is reported in [7] using wavelet packets (WP).
carried out utilizing the discrete wavelet transform The performance of this approach is worse than the
(DWT) [6–8,10]. The embedded zerotree wavelet DWT-based algorithm. The reason for the poor
(EZW) algorithm was specifically designed to use performance in the WP case is that the best basis
the DWT [13] in image coding applications. This decomposition often splits the signal into a number
method demonstrated good performance and of smaller hierarchies that cannot be efficiently
was quickly applied to other types of signals, such encoded by zerotrees.
as ECG [7] and myoelectric [14] signals. The first motivation of this work has been the
The embedded property of the EZW algorithm development of an EZW-based algorithm to be used
allows the bits in the bit stream to be arranged in with WP, improving the performance of the
‘order of importance’ so that the encoding process previously reported methods. So, the hierarchical
can be stopped at any point once the target is relationships among coefficients is not taken into
achieved. consideration. The consequence of this is that the
In the DWT decomposition algorithm, every fZTRg symbol [13] that identifies the root of a
coefficient at any scale is related with two other zerotree can be withdrawn from the alphabet so that
coefficients at the immediate lower scale. This only three symbols ðfPOS, NEG, IZgÞ are needed
correspondence is iterated through scale, giving to encode the significance map.
the temporal orientation tree. An example is The second goal of this work is to use a
illustrated in Fig. 1. The set of a coefficient and its modulated M-channel maximally decimated filter
descendents are called zerotree. In the encoding bank in the encoder, since it reported good
process, the whole set of coefficients of a zerotree performance in ECG compression. For example, a
can be referenced by its root, which is the first low computational complexity algorithm applied
coefficient of the temporal orientation tree at the with nearly-perfect reconstruction cosine modulated
lower scale. Also, a coefficient is called significant filter banks (N-PR CMFB) is proposed in [11]. An
if its magnitude is greater than a given threshold important contribution of this work is that the
value . Therefore, depending on the magnitude of a proposed algorithm can also be used with these
coefficient related to , i.e., its significance, it can be types of filter banks as a result of its versatility
encoded as a symbol of a reduced alphabet to based on the non-use of hierarchical relationships
obtain a significance map. The EZW algorithm among subbands. To our knowledge, the N-PR
takes into account the hierarchy of the DWT CMFB were used for the first time in [11,12], where
coefficients among different subbands to efficiently good results are reported in the comparison against
encodes the significance map and use an alphabet of the DWT.
four symbols: fPOS, NEG, IZ, ZTRg [13]. Symbols Therefore, in this paper we present two versatile
fPOSg and fNEGg indicate the sign of a significant embedded encoding schemes: (1) the embedded
coefficient. A non-significant coefficient is encoded wavelet packets (EWP) algorithm to be used
with the symbol fZTRg if it is the root of a zerotree with WP and (2) the embedded filter banks
where all its coefficients are non-significant. Con- (EFBs) algorithm to be used with N-PR CMFB.

Temporal
orientation tree
Direct DWT Inverse DWT
h0[n] 2 c1 { } c1 2 f0[n]
h0[n] 2 c2 c2 2 f0[n]

c3 h1[n] 2 d1 { } d1 2 f1[n] c3

h1[n] 2 d2 { } d2 2 f1[n]

{ }

Fig. 1. Algorithm for the computation of DWT. Both h0 ½n and f 0 ½n are low-pass filters, while h1 ½n and f 1 ½n are high-pass filters.
A temporal orientation tree scheme is depicted showing the relationships among coefficients through scale.
ARTICLE IN PRESS
1404 M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412

Simulations results are provided demonstrating the ANALYSIS


SYNTHESIS
improvement of the proposed encoders over the FILTER FILTER
BANK BANK
original EZW DWT-based algorithm. Finally, it
should be emphasized that although this work Low pass
branch
focuses on ECG, other signals, such as myoelectric
signals or images (processed using linear-phase filter
banks), can also be compressed with the proposed
algorithms. x[n] x[n]
The remainder of this paper is structured as
follows. In Section 2 the decomposition methods
used in this work are presented. In Section 3, the
compression algorithms are detailed. The results High pass
and discussion are shown in Section 4 and finally, branch
the conclusions are given in Section 5.

2. Review of decomposition methods Fig. 2. Example of WP for a depth of four layers. The broken
lines correspond with the pruned branches.

2.1. Wavelets packets

The DWT decomposes a signal f ðtÞ as a An for an n-layers WP can be recursively calculated
successive approximation in several scales as as
follows [15]: An ¼ 1 þ A2n1 , (4)
X XX
1
where An1 is the number of bases of an ðn  1Þ-
f ðtÞ ¼ cj0 ðkÞjj 0 ;k ðtÞ þ d j ðkÞcj;k ðtÞ, (1)
k k j¼j 0
layers WP. Therefore, WP can be adaptively utilized
by selecting the best base, which consists of pruning
where bases functions are dilated and translated the tree according to a cost function. The best base
versions of the wavelet cðtÞ and the scaling jðtÞ selection algorithm used in this work is that
functions: proposed in [16]. An example of best base selection
cj;k ðtÞ ¼ 2j=2 cð2j t  kÞ, (2) for a 4-layer WP is shown in Fig. 2. Basically, the
whole binary tree is first obtained and subsequently
pruned according to the Shannon entropy as
jj;k ðtÞ ¼ 2j=2 jð2j t  kÞ. (3)
proposed in [16]. The broken lines in Fig. 2
The coarse details of f ðtÞ are represented by the correspond to the rejected branches, while the
scaling coefficients cj0 ðkÞ while the finer details are others give the filter bank for processing the
represented by the wavelets coefficients d j ðkÞ. The incoming signal. Accordingly, different filter
DWT is efficiently computed by 2-channel perfect banks are used when the input signal is split into
reconstruction (PR) filter banks iteratively applied blocks.
to the low-pass channel as shown in Fig. 1, where
the number of layers or levels of the resulting filter 2.2. Nearly-perfect reconstruction cosine modulated
bank depends on the desired resolution scale. The filter banks
set of DWT coefficients are given at the outputs of
the direct transform side when the incoming An N-PR CMFB is a subclass of modulated
samples are the scaling coefficients of f ðtÞ at a M-channel maximally decimated filter bank whose
higher scale. The inverse transform is carried out structure is shown in Fig. 3. All the analysis
with the corresponding synthesis filter bank. hk ½n and synthesis f k ½n filters, 0pnpðL  1Þ,
WP theory is a generalization of DWT. The input 0pkpðM  1Þ, can be obtained through the
signal is decomposed applying the 2-channel PR modulation of a low-pass prototype filter p½n as
filter bank at both the low and high-pass branch. follows:
The resulting binary tree is considered as a library of    
bases of which only one would be needed to p L p
hk ½n ¼ 2  p½n  cos ð2k þ 1Þ n þ ð1Þk ,
represent the incoming signal. The number of bases 2M 2 4
ARTICLE IN PRESS
M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412 1405

x0[n] r0[n] y0[n]


x[n] h0[n] M M f0[n] x[n]

x1[n] r1[n] y1[n]


h1[n] M M f1[n]

x2[n] r2[n] y2[n]


h2[n] M M f2[n]

xM-1[n] rM-1[n] yM-1[n]


hM-1[n] M M fM-1[n]

Fig. 3. M-channel maximally decimated filter bank.

   
p L p 3. Proposed algorithms
f k ½n ¼ 2  p½n  cos ð2k þ 1Þ n  ð1Þk .
2M 2 4
(5) In this section, we present two compression
schemes that differ in the decomposition techniques
In this work, the prototype filter is designed with the used to represent the incoming signal. Here, the
technique proposed in [17]. This technique offers details of the encoding scheme are explained given
almost, but not true, PR, and controls the position that the incoming signal has been decomposed.
of the 3 dB cutoff frequency of the prototype filter, These compressors do not need any signal pre-
setting it approximately at frequency o ¼ p=2M. processing such as QRS complex detection and no a
The problem can be stated several ways, but the priori signal knowledge is required. Both methods
goal is minimizing work over non-overlapped blocks of N samples of
pffiffiffi the incoming signal.
f ¼ j jPðejp=ð2MÞ Þj  1= 2j, (6)
3.1. Embedded wavelet packets (EWP) algorithm
where Pðejp=ð2MÞ Þ is the frequency response of the
prototype filter Pðejo Þ for o ¼ p=ð2MÞ. When using The WP-based method consists of the following
an appropriate FIR filter design technique (by steps:
windowing or by means of the Parks–McClellan
algorithm), it is guaranteed that the frequency (1) Every input block of N samples is decom-
response of the prototype filter approximately posed using WP. For this purpose, the best
satisfies the power complementary property. In this base of every block is obtained by means of
way, it is possible to reduce the amplitude distortion the pruning algorithm proposed in the prior
and the aliasing error introduced in the filter bank. section.
The interest of using CMFB is based on the fact (2) The coefficients are encoded with an EZW-
that it can be efficiently implemented by means of based embedded algorithm.
polyphase structures that considerably reduce the (3) The significance map is entropy encoded.
computational complexity [18,19]. In [11], we
present a detailed study of the computational The embedded algorithm is carried out as successive
complexity for N-PR CMFB applied to ECG approximations that are applied to each group of N
compression. Furthermore, the use of N-PR instead coefficients obtained from the corresponding N
of PR systems is inspired by the fact that, for a incoming samples. Successive thresholds i ¼ 2pi ;
previously fixed filter length, higher selectivity and p 2 Z; i ¼ 0; 1; . . . ; L, are iteratively applied to
discrimination systems can be obtained designing obtain significance maps associated to each thresh-
the former one (N-PR). old. Let fci g; 8i ¼ 1; . . . ; N be the set of WP
ARTICLE IN PRESS
1406 M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412

coefficients; the first threshold value is set as is taken from the corresponding code in the
   significance map.
p ¼ log2 maxfjci jg , (7) The subordinate pass runs after the dominant
c2fci g
pass has finished. The aim is to make all the
where bc denotes rounding to the next smaller previous significant coefficients (those included in
integer. Two lists must be maintained while the SL) one bit more accurate. For instance, Fig. 5
encoding (decoding) process proceeds: The domi- shows the subordinate pass applied three consecu-
nant list (DL) contains all the coefficients found not tive times to a coefficient, which is significant to the
significant to the current and prior thresholds, and threshold of the second iteration (for p  1). Its
the subordinate list (SL) contains the magnitudes of initial value is j^ci;1 j ¼ 2p1 þ 2p2 . There is an
the coefficients found significant. Initially, DL uncertainty interval associated with the current
equals the coefficients resulting of the transform of threshold whose width is 2p2 . The actual coefficient
the corresponding incoming block, and SL is empty. value is within the upper half of the uncertainty
These lists are updated at every iteration. interval, so a ‘1’ is assigned as refinement bit and the
The dominant pass and the subordinate pass are reconstructed coefficient value is j^ci;2 j ¼ jc^i;1 j þ 2p2 .
accomplished for every threshold. During the In Fig. 5, the updated value, the first time that the
dominant pass, coefficients in DL are compared subordinate pass is applied, is designated by the
with the threshold, e.g., 0 ¼ 2p for the first curved solid line arrow. In the following iteration
iteration. Then, the significance map is encoded as (for p  2), the uncertainty interval width is 2p3
is explained in Fig. 4, with a three symbols alphabet: and a ‘0’ is the assigned refinement bit that indicates
fPOS, NEG, IZg. The magnitude of the significant that the actual coefficient value is in the lower half,
coefficients (encoded either as fPOSg or fNEGg) is yielding the reconstructed coefficient jc^i;3 j ¼
included in SL. Subsequently, the significant coeffi- j^ci;2 j þ 2p3 . Once again, for the following iteration,
cients are zeroed in DL to avoid being significant at the refinement bit is ‘0’ so the coefficient takes value
the following iteration. The reconstructed magni- j^ci;4 j ¼ j^ci;3 j þ 2p4 . All the coefficients found in the
tude of a significant coefficient, for the threshold 2p SL are refined as above in each iteration. To do so,
case, on the decoder side is jc^i j ¼ 2p þ 2p1 . The sign the encoder generates the refinement list (RL),
which contains the refinement bits to be used by
the decoder.
Input The encoding and decoding processes are sum-
coefficient marized as follows. From the encoder side, let
Is Yes
significant? Sign? fci g; 8i ¼ 1; . . . ; N be the set of WP coefficients, the
encoding algorithm works as follows:
No (+) (-)
Step 1. Output p ¼ blog2 ðmaxc2fci g fjci jgÞc.
Step 2. Initialization of lists:
IZ POS NEG
(a) DL ¼ fci g; 8i ¼ 1; . . . ; N.
Fig. 4. Alphabet for the significance map. (b) SL ¼ ffg.

Value initially assigned

‘0’ ‘1’

‘0’ ‘1’

2p
0 2p-4 2p-3 2p-2 2p-1 2p-1+2p-2
‘0’ ‘1’

Coefficient value

Fig. 5. Example of successive refinement of a coefficient. The curved solid line arrows point at the final values once the refinement bit is
successively assigned.
ARTICLE IN PRESS
M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412 1407

Step 3. Dominant pass: base, by maintaining a table with the decomposition


(a) DLðiÞ; 8i ¼ 1; . . . ; N, is encoded as in Fig. 4. bases, the length of the word will depend on the
(b) If DLðiÞ is significant, its magnitude is included amount of possible bases An given by Eq. (4). Thus,
in SL and DLðiÞ ¼ 0. the number of bits H to represent the word that
Step 4. Subordinate pass: the refinement list is indicates the WP filter bank can be calculated as
generated.
H ¼ dlog2 ðAn Þe, (8)
Step 5. p ¼ p  1 and go to Step 3.
where de denotes rounding to the next larger
Conversely, the decoder performs as follows: integer.
Step 1. Initialization of lists:
(a) DL ¼ fci g; ci ¼ 0; 8i ¼ 1; . . . ; N. 3.2. Embedded filter bank (EFB) algorithm
(b) SL ¼ ffg.
Step 2. Initial threshold p is received. The basic idea of the above algorithm is to encode
Step 3. Dominant pass: a significant map without considering any zerotree,
(a) fPOSg: DLðiÞ ¼ 2p þ 2p1 and its magnitude is i.e., without taking into account the hierarchies in
included in SL. the WP transform. Thus, the resulting alphabet that
(b) fNEGg: DLðiÞ ¼ ð2p þ 2p1 Þ and its magnitude encodes the significance map consists of three
is included in SL. symbols (Fig. 4). This simplification allows us to
(c) fIZg: nothing is done. use the quantization algorithm with N-PR CMFB,
Step 4. Subordinate pass: coefficients in SL are thereby giving another compression scheme. The
refined after receiving RL. N-PR CMFB-based quantization algorithm is ex-
Step 5. p ¼ p  1 and go to Step 3. actly the same as that above for the WP decom-
position case. Only two things must be taken into
The encoding–decoding process stops when some account so as to properly reinterpret the complete
target is reached, such as the quality of the retrieved algorithm:
signal, the compression ratio (CR), or a specific
number of iterations.  The fci g; 8i ¼ 1; . . . ; N are now the set of the N
Giving the above, the stream for every incoming samples of the subband signals xk ½n given by the
block consists of a header of B bits followed by N-PR CMFB.
groups of bit sets equal to the number of  The header of the bit stream in Fig. 6 only
approximations made for the corresponding seg- includes the initial threshold.
ment, as is shown in Fig. 6, where a number of L
iterations have been achieved. For every iteration, 4. Experimental studies
the significance map and the refinement bits must be
enclosed. The B bits header includes the initial In this section, simulations are provided to show
threshold value, i.e., p, and a word indicating the the performance of the proposed algorithm. First,
corresponding base. The integer p is encoded with a we compare it against the conventional EZW
fixed number of bits equal to the resolution of the compression algorithm [7,13]. Subsequently, we
samples of the database. Relating to the wavelet carry out new experiments to show the performance

S bits

Bits for Bits for Bits for


B bits approximation 1 approximation 2 approximation L

Header

Significance map Refinement list

Fig. 6. Coding of a block.


ARTICLE IN PRESS
1408 M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412

of the proposed methods compared to approaches N-dimensional vectors representing the original and
reported in other works. reconstructed signals, respectively. The PRD is
All the signals used in the examples are from the defined as
MIT-BIH Arrhythmia Database [20]. Every file in
^
PRD ¼ ðkx  xk=kxkÞ  100, (9)
the database consists of two lead recordings
2
sampled at 360 Hz with 11 bits per sample of where k  k denotes the Euclidean or l -norm. This
resolution. A baseline of 1024 has been added to parameter depends on the mean value of the
each ECG for storage purposes that is removed original signal. Even if the 1024-baseline is removed
before processing. from ECGs of the MIT-BIH Arrhythmia Database,
a dc level remains. It is thus strongly recommended
4.1. Specifications of decomposition methods that the following criteria be used [21]:
^
PRD1 ¼ ðkx  xk=kx  x̄kÞ  100, (10)
WP and N-PR CMFB were studied for the design
of a thresholding-based ECG compressor in [11]. where x̄ is the mean value of the signal. It was
Both decomposition structures, which are imple- established in [21] for the MIT database a classifica-
mented as filter banks, were designed to be tion of ‘very good’ and ‘good’ for reconstructed
equivalent. Therefore, to accomplish the evaluation ECGs when PRD1 is within the ranges 0–2 and 2–9,
of the method proposed in this work, the design of respectively. As a result, PRD1 values under 9
the decomposition methods is based on that correspond to good, or very good, results.
reported in [11], which is as follows: As the incoming signal is split into segments of
1024 samples ðN ¼ 1024Þ, the CR can be calculated
 The number of layers for DWT and WP are up to 4. as
 The N-PR CMFB chosen is a 191-order 16-channel N  11
filter bank, using the Blackman window for CR ¼ , (11)
S
designing the prototype filter.
 Based on the good results reported by other where S is the bit stream length for every input
authors [7,8], we utilize the Cohen–Daubechies– block (Fig. 6).
Feauveau 9/7 (bior9.7).
 The number of samples N per block of incoming 4.3. Comparison against the conventional EZW
signal is 1024 which is the size most commonly algorithm
used by other authors [7,8,10].
4.3.1. Entropy coding
Here, a run-length code is designed to entropy
4.2. Performance measurement encode the significance map (Fig. 6). For both
methods proposed in this work, a bit ‘1’ marks a
Physicians analyze the ECG by visual inspection significant coefficient so that the following indicates
looking for specific patterns that can be related to the sign: ‘11’ is used for fPOSg and ‘10’ for fNEGg.
pathologies. Therefore, the quality of the recon- Non-significant coefficients corresponding to the
structed ECG after compressing relies on visual symbol fIZg are marked by ‘0’ and are run-length
features. When dealing with the reconstructed ECG, encoded. Every time fIZg appears, the next B1 bits
signal morphology and waveform have to be as are used to encode the number of consecutive fIZg
close as possible to the original so that all the symbols. In case of overflow, B2 more bits are used.
pathological information remains and no additional Therefore, a run-length of 2B1 þ 2B2  1 consecutive
distortion that could misunderstand a correct symbols can be encoded. In this work, B1 ¼ 5 and
diagnosis is included. Therefore, the quality in B2 ¼ log2 N, where N is the total number of samples
ECG compression is assessed as the degree of in the block.
similarity between the original signal and the To encode the significance map of the conven-
retrieved signal. This is carried out using an tional EZW algorithm, note that the alphabet of the
objective parameter. The percentage root-mean- significance map has four symbols, and 2 bits are
square difference (PRD) is an accepted criterion used for each symbol. Both fZTRg and fIZg symbols
for the performance measurement of an ECG are run-length encoded as explained above, where
compressor [6–10]. Accordingly, let x and x^ be the B1 and B2 are 2 and 8, respectively. The bit stream
ARTICLE IN PRESS
M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412 1409

for every incoming block is as in Fig. 6, but as EZW axis because it is the target parameter and can be
algorithm utilizes the DWT, no word indicating the considered as the independent variable. Both the
base has to be included in the header. WP and N-PR CMFB-based compressors (referred
to as EWP and EFB, respectively, in Fig. 7) yields
4.3.2. Simulations improved performance over the conventional EZW
The experiment is carried out over both 10-min technique in the full range of CR values. On the
long leads extracted from records 100; 101; 102; other hand, both proposed compression methods
103; 107; 109; 111; 115; 117; 118 and 119 from the perform similar, though for PRD1 values under
MIT-BIH Arrhythmia Database. This data set was 9%, the method with N-PR CMFB yields better
proposed in [8] and it consists of a variety of signals results. It is important to emphasize that although
with different rhythms, QRS complex morphologies N-PR CMFB does not fulfill the PR constraint, it
and ectopic beats. Fig. 7 shows the performance of performs better in the range of the high quality
the proposed compressors compared with the values. The main reason for this performance is that
conventional EZW. The CR is in the horizontal the filters of the N-PR CMFB have higher
discrimination and selectivity to keep every subband
signal more independent of each other. Thus any
18
17 Proposed EFB processing accomplished at any subband signal has
16 Proposed EWP (bior9.7)
Conventional EZW (bior9.7) lower influence to the others.
15
14
13 4.4. Comparison with other works
12
11
10 For the purpose of comparison against other
PRD1

9
8 approaches, Huffman coding is used as entropy
7 coder instead of the run-length coding since the
6
5 former gives higher CR. Both the significance map
4 and the RL are Huffman encoded [22]. The
3 comparison is depicted in Fig. 8 over the first
2
1 1-min long lead of the records 117 and 232. The
0 results reported from other representative works for
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
CR
those signals are included in the graphics. In this
case, we do not consider any target parameter such
Fig. 7. Results from the first experiment showing PRD1 against CR. as the CR or the PRD, so the compression finishes

3 0.4

0.35
2.5
0.3
2
0.25
PRDcc
PRD

1.5 0.2

0.15
1
Proposed EFB 0.1
Proposed EWP (bior9.7)
0.5 Benzid [10] Proposed EFB
SPIHT [8] 0.05 Proposed EWP (bior9.7)
Hilton [7] Benzid [10]
0 0
2 4 6 8 10 12 14 16 18 20 22 0 2 4 6 8 10 12 14
CR CR

Fig. 8. Comparison against results reported by other representative works. (a) Record 117. (b) Record 232.
ARTICLE IN PRESS
1410 M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412

after a specific number of iterations. Accordingly, In Fig. 8(a), the vertical axis gives the PRD
our algorithm has been successively run to provide obtained with Eq. (9) after removing the 1024-
the results achieved after iterations ranging from 5 baseline while in Fig. 8(b), the PRD (called here
to 10. The evaluation of PRD against CR is shown. PRDcc) obtained with Eq. (9) but with the

Original signal: record 117


100
0
Amplitude

-100
-200
-300
-400
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Reconstructed signal: CR=7.7 PRD=0.9437
100
Amplitude

0
-100
-200
-300
-400
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Error: Original - Reconstructed
20
Amplitude

10
0
-10
-20
0 200 400 600 800 1000 1200 1400 1600 1800 2000

Fig. 9. Compression waveform of record 117 for CR ¼ 7:7 and PRD ¼ 0:9437.

Original signal: record 232


200
Amplitude

100
0
-100
-200
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Reconstructed signal: CR=8,5516 PRDcc=0.2141
200
Amplitude

100
0
-100
-200
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Error: Original - Reconstructed
20
Amplitude

10
0
-10
-20
0 200 400 600 800 1000 1200 1400 1600 1800 2000

Fig. 10. Compression waveform of record 232 for CR ¼ 8:55 and PRDcc ¼ 0:2141.
ARTICLE IN PRESS
M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412 1411

20

Amplitude
10
0
-10
-20
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
x 104

Fig. 11. Error signal for 1-min long of record 117 ðCR ¼ 7:7Þ.

corresponding baseline included is shown. As can be (2) The embedded filter bank (EFB) algorithm that
seen, the proposed method with N-PR CMFB yields utilizes N-PR CMFB to represent the original
comparable CRs. ECG.

4.5. Visual study Simulations show that: (a) both compressors per-
form better than the traditional EZW applied in the
The waveforms given by the proposed compres- DWT domain and (b) the EFB algorithm yields
sion scheme visually evaluated in Figs. 9 and 10 better performance than the EWP within the high
where depicted are the first 2048 samples of the quality range for the retrieved ECG, i.e., the range
original signal, the reconstructed signal and the of PRD1 below 9%. When compared to other
error signal (from top to bottom) of the records 117 authors, both schemes provide compression results
and 232 whose compression values are those of comparable to those of the state of the art. Again,
Fig. 8. The waveforms are obtained with the N-PR the EFB method outperforms the EWP method.
CMFB-based compressor. In both cases, the recon- The proposed methods show an efficient perfor-
structed signals remain close to the original signals mance and are computationally simple (see [11] for
and the error signals are equally distributed along more details about computational cost). The N-PR
the horizontal axis. CMFB-based scheme demonstrates better perfor-
The isolated high local error value around n ¼ mance than the WP-based scheme. Other compres-
1000 in Fig. 9 is considered as the distortion sion schemes with N-PR CMFB have previously
between consecutive blocks of incoming signals. reported good performance [11,12]. Therefore, given
However, Fig. 11 depicts the error over the full that N-PR CMFB admits efficient real-time im-
range of samples and, as remarked above, the error plementation [11] and that the N-PR CMFB-based
is equally distributed along the axis with only scheme outperforms the WP-based scheme, it can
isolated large samples. be considered as an appropriate tool for ECG
compression.
5. Conclusions
Acknowledgments
In this paper, a new approach for the design of
embedded ECG compressors based on filter banks This work has been supported in part by Grant
is given. In the quantization stage, zerotrees are not PR-2007-0216 from the Ministerio de Educación y
encoded reducing thus the alphabet of the signifi- Ciencia, in part by the Fondo de Investigación
cance map to three symbols. The new approach has Sanitaria under Project PI052277, and in part by
two main advantages over the traditional EZW Comunidad Autónoma de Madrid and Universidad
algorithm: (1) it is a simpler algorithm and (2) it can de Alcalá through project CCG06-UAH/TIC-0417.
be utilized with many other kind of filter banks than
the corresponding to DWT.
Two compressors are proposed with this quanti- References
zation algorithm:
[1] N.J. Holter, New methods for heart studies, Science 134
(1961) 1214–1220.
(1) The embedded wavelet packets (EWP) algo- [2] K. Hung, Y.-T. Zhang, Implementation of a WAP-based
rithm that makes use of WP to decompose the telemedicine system for patient monitoring, IEEE Trans.
incoming ECG. Inform. Technol. Biomed. 7 (2) (June 2003) 101–107.
ARTICLE IN PRESS
1412 M. Blanco-Velasco et al. / Signal Processing 88 (2008) 1402–1412

[3] C.H. Salvador, M.P. Carrasco, M.A.G. de Mingo, A.M. [12] M. Blanco-Velasco, F. Cruz-Roldán, J.I. Godino-Llorente,
Carrero, J.M. Montes, L.S. Martı́n, M.A. Cavero, I.F. K.E. Barner, ECG compression with retrieved quality guaran-
Lozano, J.L. Monteagudo, Airmed-cardio: a GSM and teed, Electron. Lett. 40 (23) (November 2004) 1466–1467.
internet services-based system for out-of-hospital follow-up [13] J.M. Shapiro, Embedded image coding using zerotrees of
of cardiac patients, IEEE Trans. Inform. Technol. Biomed. 9 wavelet coefficients, IEEE Trans. Signal Process. 41 (12)
(1) (March 2005) 73–84. (December 1993) 3445–3462.
[4] J. Rodrı́guez, A. Goñi, A. Illarramendi, Real-time classifica- [14] J.A. Norris, K.B. Englehart, D.F. Lovely, Myoelectric signal
tion of ECGs on a PDA, IEEE Trans. Inform. Technol. compression using zerotrees of wavelets coefficients, Medical
Biomed. 9 (1) (March 2005) 23–34. Eng. Phys. 25 (9) (November 2003) 739–746.
[5] L. Senhadji, J.J. Bellanger, G. Garrault, J.L. Coatrieux, [15] G. Strang, T.Q. Nguyen, Wavelets and Filter Banks,
Wavelet analysis of ECG signals, in: Proceedings of the 12th Wellesley-Cambridge, Wellesley, MA, 1996.
Annual International Conference on the IEEE Engineering [16] R.R. Coifman, M.V. Winckerhauser, Entropy-based algo-
in Medicine and Biology, vol. 12, 1990, pp. 811–812. rithms for best basis selection, IEEE Trans. Inform. Theory
[6] A. Djohan, T.Q. Nguyen, W.J. Tompkins, ECG compres- 38 (2) (March 1992) 713–718.
sion using discrete symmetric wavelet transform, in: [17] F. Cruz-Roldán, P. Amo-López, S. Maldonado, S.S.
Proceedings of the 17th Annual International Conference Lawson, An efficient and simple method for designing
on the IEEE Engineering in Medicine and Biology, vol. 1, prototype filters for cosine-modulated pseudo-QMF banks,
1995, pp. 167–168. IEEE Signal Process. Lett. 9 (1) (January 2002) 29–31.
[7] M.L. Hilton, Wavelet and wavelet packets compression of [18] P.P. Vaidyanathan, Multirate Systems and Filter Banks,
electrocardiogram, IEEE Trans. Biomed. Eng. 44 (5) (May Prentice-Hall, Englewood Cliffs, NJ, 1993.
1997) 394–402. [19] F. Cruz-Roldán, M. Monteagudo-Prim, Efficient implemen-
[8] Z. Lu, D.Y. Kim, W.A. Pearlman, Wavelet compression of tation of nearly-perfect FIR reconstruction cosine-modu-
ECG signals by the set partitioning in hierarchical trees lated filter banks, IEEE Trans. Signal Process. 52 (9)
algorithm, IEEE Trans. Biomed. Eng. 47 (7) (July 2000) (September 2004) 2661–2664.
849–856. [20] A.L. Goldberger, L.A.N. Amaral, L. Glass, J.M. Hausdorff,
[9] Y. Zigel, A. Cohen, A. Katz, ECG signal compression using P.C. Ivanov, R.G. Mark, J.E. Mietus, G.B. Moody, C.-K.
analysis by synthesis coding, IEEE Trans. Biomed. Eng. 47 Peng, H.E. Stanley, PhysioBank, PhysioToolkit, and Physi-
(10) (October 2000) 1308–1313. oNet: components of a new research resource for complex
[10] R. Benzid, F. Marir, A. Boussaad, M. Benyoucef, D. Arar, physiologic signals, Circulation 101 (23) (June 2000) 215–220.
Fixed percentage of wavelet coefficients to be zeroed for [21] Y. Zigel, A. Cohen, A. Katz, The weighted diagnostic
ECG compression, Electron. Lett. 39 (11) (May 2003) distortion (WDD) measure for ECG signal compression,
830–831. IEEE Trans. Biomed. Eng. 47 (11) (November 2000)
[11] M. Blanco-Velasco, F. Cruz-Roldán, F. López, Á.M. Bravo, 1422–1430.
D. Martı́nez, A low computational complexity algorithm for [22] K. Skretting, J. Hakon, S.O. Aase, Improved Huffman
ECG signal compression, Medical Eng. Phys. 26 (7) coding using recursive splitting, in: Proceedings of NORSIG
(September 2004) 553–568. 99, September 1999.

You might also like