Documente Academic
Documente Profesional
Documente Cultură
Abstract This paper outlines a scheme for compressing EEG signals based on the
JPEG2000 image compression algorithm. Such a scheme could be used to compress
signals in an ambulatory system, where low-power operation is important to conserve
battery life; therefore, a high compression ratio is desirable to reduce the amount of data
that needs to be transmitted. The JPEG2000 specication makes use of the wavelet
transform, which can be eciently implemented in embedded systems. In this research,
the JPEG2000 standard was broken down to its core components and adapted for use
on EEG signals with additional compression steps added. Variations on the compres-
sion architecture were tested to maximize compression ratio (CR) while minimizing re-
constructed percentage root-mean- squared dierence (PRD) and power requirements.
Tests indicate that the algorithm performs well in eciently compressing EEG data,
without signicant loss in signal delity.
Compressed
Data Adaptive Binary
Quantization
Arithmetic Coder
varying sized signals and (b) previous findings in is the quantisation/bit resolution of each sample and
similar research [4]. is the number of bits representing the compressed
While the JPEG2000 Part 1 specification signal. The goal of this research is to achieve the best
allows use of a lossy and lossless WT, this research trade-off between PRD and CR.
focuses on the lossy CDF 9/7 WT. This choice
allows us to maximise the attainable CR for the EEG b) Dataset
signal with only a slight increase in computational
There is currently no freely available dataset
requirements.
of AEEG recordings. For this reason an EEG
The Arithmetic Coder implemented was
database provided by the University of Freiburg in
bas)( 21 %<22(A6 :25. [19]. This allowed for the
Germany was used. This database provides
PDF to either be calculated before encoding for the
recordings of adult EEG from patients suffering from
whole window, or to be updated adaptively as each
epilepsy. The database includes 24 hours of seizure
new symbol is encoded. In the case of the PDF being
(ictal), and non-seizure (inter-ictal) data for 21
pre-determined, it had to be transmitted as part of the
patients. The ictal data are composed of signals
message for use by the decoder. The adaptive coding
recorded during times when patients were
requires the encoder to continually update symbol
experiencing seizures. Due to the transient nature of
the seizures the majority of the data in this ictal set is 5 that an average CR of over 5:1 is achievable.. For
non-seizure, interspersed with seizure waveforms. even a low PRD of 3%, a CR of between 3.5:1 and
The inter-ictal subset is composed of the data that 4:1 is still achieved.
was recorded when no seizures were occurring. For
this research, the ictal data was examined as it VI. CONCLUSIONS AND FUTURE WORK
contains enough seizure and non-seizure data to be This paper has presented a method of
representative of both epileptic and regular compressing EEG signals using a JPEG2000-based
waveforms. compression algorithm. A high compression ratio
was achieved
c) Thresholding
Initial experimentation involved performing
the thresholding step directly after the DWT and
before Quantisation was performed. This
methodology of thresholding is similar to the
algorithm proposed in [4]. Because of the amplitude
variation of the EEG signal, initial tests indicated
that it was difficult to control the level of distortion
introduced across an entire EEG record from the
selection of a static threshold. For certain frames, the
recordings were of such low amplitude relative to the
entire EEG signal that the entire set of wavelet
coefficients for that frame fell below the selected
threshold. This resulted in the whole frame being
reconstructed as a stream of zeros. This varying
amplitude across frames and channels made it
unfeasible to employ fixed thresholds values for all
F igure 5: A verage PR D vs C R for all Patients
signals. A potential solution would require the
computation of an appropriate adaptive threshold
value for each EEG frame. However, performing While other proposed AEEG algorithms from the
such a computation would add a computational literature report achieving higher CRs [8],[21],[5], in
overhead to the algorithm, which would be many cases, this is possible only on seizure data, and
unsuitable for an ambulatory implementation. as such are only suitable for a single EEG
)'%86)2*%16-+1%/6A(<1%0-'1%785), a application. The algorithm proposed here has been
second architecture was explored whereby the tested with both seizure and non-seizure data, and
thresholding was performed after quantisation. In can be adapted for a variety of applications, with the
this case, quantised values below the threshold were amount of distortion increased or decreased as
deemed insignificant and consequently zeroed. As needed.
the coefficients are normalised and uniformly The method of performing thresholding after
quantised to within a predictable range, the impact of normalisation and quantisation provides more
thresholding (using a static value) on the signalA6 predictable CR and PRD results for a given
energy is more predictable and controllable. It is for threshold. The same threshold values can be used for
this reason that thresholding after quantisation was all recordings without having to take into the account
used for the results in this paper. the amplitude of the signal. This is useful if the
algorithm is to be implemented on a portable device,
d) Test Para meters and Results
where it could be impractical to adjust the threshold
The EEG records were compressed using a on a frame-by-frame, or channel-by-channel basis.
fixed wavelet decomposition and quantisation level. In terms of future work, analysis of the power
These values were based on the results found in [20] usage of the algorithm should be completed. It has
as they provided the best trade-off between CR and already been established by other researchers
maintaining signal integrity. Each signal was divided [6],[7],[22] that the main elements of JPEG-2000 can
into windows of size 1024. These windows were be efficiently implemented, while the addition of
compressed and reconstructed using 5 different thresholding proposed here will not add significantly
threshold values. These threshold values were chosen to the computational complexity.
to give a range of PRD values from very low (~2%) Expert clinical analysis of the decompressed
to high (>15%). The CR and PRD values were EEG signal in relation to the original signal, at a
averaged for each patient, and an overall average was variety of PRD levels, is desirable to ensure that
calculated for all patients in the database, at each signal integrity is maintained. Similarly, it is
threshold level. The overall results for average CR proposed to test the algorithm in conjunction with
versus PRD are plotted in Figure 5. established automated diagnosis algorithms to ensure
Using the 7% PRD as the maximum detection rates are maintained.
acceptable PRD we can see from the graph in Figure
VII. ACKNOWLEDGEMENTS Algorithms, Springer, 2002.
[19] K. Sayood, Introduction to Data Compression, Third
The authors would like to acknowledge the Edition, Morgan Kaufmann, 2005.
Albert-Ludwigs-Universitt, Freiburg, Germany, for [20] -++-16'-1/)</%9-1%1(21)6?2:
allowing access to their adult EEG database. Power 2035)66-21 2* -+1%/6 !6-1+
@
4th International IC S T Conference on Pervasive
This research was supported by Science Computing Technologies for Healthcare 2010.
Foundation Ireland under grant number [21] A.J. Casson and E. Rodriguez-"-//)+%6 ?%7% 5)(8'7-21
SRC/07/I1169. techniques to facilitate wireless and long term AEEG
epilepsy 021-725-1+@ 3rd International IE E E/EMB S
Conference on Neural Engineering, 2007, pp. 298-301.
[22] M. Yicong, L.I.U. Leibo, L. Zhang, and W. Zhihua,
VIII. REFERENCES ?)6-+1 )7,2(2/2+< 2* 2: 2:)5
2()'
[1] G. Jacques, J. Frymiare, J. Kounios, C. Clark, and R. ;3/2-7-1+ 8%/ "2/7%+) '%/-1+@ 6th International
2/-.%5 ?8/7-5)62/87-21 :%9)/)7 %1%/<6-6 %1( )16)0&/) Conference On AS IC, 2005. AS IC ON 2005. , vol. 1, Oct.
2* '/%66-*-)56 *25 )%5/< (-%+126-6 2* /=,)-0)56 (-6)%6)@ 2005, pp. 183-186.
IE E E International Conference on Acoustics, Speech, and
S ignal Processing, 2005. Proceedings. (ICASSP '05),
2005, pp. v/389-v/392 Vol. 5.
[2] ")5+%5- " 87)5- 256- %1( %0&)57- ?
ZigBee-based ECG transmission for a low cost solution in
,20) '%5) 6)59-')6 ()/-9)5<@ Mediterranean Journal of
Pacing and Electrophysiology.
[3] C. Otto, A. Milenkovic, C. Sanders, and E. Jovanov,
?<67)0 %5',-7)'785) 2* % :-5)/)66 &2(< %5)% 6)1625
1)7:25. *25 8&-48-7286 ,)%/7, 021-725-1+@ Journal of
Mobile Multi media , vol. 1, 2006, pp. 307>326.
[4] J.L. Crdenas-Barrera, J.V. Lorenzo-Ginori, and E.
Rodrguez-"%/(-9-% ? :%9)/)7-packets based algorithm
*256-+1%/'2035)66-21@ Medical Informatics & The
Internet in Medicine , vol. 29, 2004, pp. 15-27.
[5] A.J. Casson, D.C. Yates, S. Patel, and E. Rodriguez-
Vill)+%6 ?/+25-7,0 *25 (%7% 6)/)'7-21 /)%(-1+ 72
:-5)/)66 %1( /21+ 7)50 )3-/)36< 021-725-1+@ Annual
International Conference of the IE E E Engineering in
Medicine and Biology Society, 2007, p. 2456.
[6] $ )1+ %1( #%1+ ? 2: 2:)5 "
Implement%7-21 *25
2()'@ 6th International
Conference On AS IC, 2005. AS IC ON 2005, vol. 1, Oct.
2005, pp. 198-202.
[7] -1 8 8 %1( -1+ 8 ?2:-Power JPEG2000
Implementation on DSP-Based Camera Node in Wireless
8/7-0)(-% )1625 )7:25.6@ International Conference
on Networks Security, Wireless Communications and
Trusted Computing, 2009. N SWCTC '09. , 2009, pp. 300-
303.
[8] A.J. Casson and E. Rodriguez-"-//)+%6 ? 2:%5( 1/-1)
Data Reduction for Portable Electroencephalography
Systems in Epil)36<@ IE E E Transactions on Biomedical
Engineering, vol. 56, 2009, pp. 2816-2825.
[9] ? -1:2000 - Information technology -- JPEG
2000 image coding system -- %57
25)'2(-1+6<67)0@
[10] (%06 ? ,) -2000 still image compression
s7%1(%5(@ IS O/IEC JTC 1/S C 29/WG 1 N 2412, 2001.
[11] M.L. Hilton, B.D. Jawerth, and A. Sengupta,
?2035)66-1+ 7-// %1( 29-1+ 0%+)6 :-7, #%9)/)76@
Multi media Systems, vol. 2, p. 1.
[12] P.G. Howard, P.G. Howard, J.S. Vitter, and J.S. Vitter,
?1%/<6-6 2* 5-7,0)7-' 2(-1+ *25 %7% 2035)66-21@
Information Processing and Management, vol. 28, 1992,
pp. 749--763.
[13] #-77)1 )%/ %1( /)%5< ?5-7,0)7-'
'2(-1+ *25 (%7% '2035)66-21@ Commun. ACM , vol. 30,
1987, pp. 520-540.
[14] S. Mallat, A Wavelet Tour of Signal Processing, 3rd ed.,
Third Edition: The Sparse Way, Academic Press, 2008.
[15] I. Daubechies, Ten Lectures on Wavelets, SIAM: Society
for Industrial and Applied Mathematics, 1992.
[16] ")77)5/- %1( )5/)< ?#%9)/)7s and filter banks:
,)25< %1( ()6-+1@ IEE E Transactions on Signal
Processing, vol. 40, 1992, pp. 2207>2232.
[17] %8&)',-)6 %1( # :)/()16 ?%'725-1+ :%9)/)7
75%16*2506-172/-*7-1+67)36@ Journal of Fourier Analysis
and Applications, vol. 4, May. 1998, pp. 247-269.
[18] A. Moffat and A. Turpin, Compression and Coding