ECG SIGNAL COMPRESSION BASED ON FRACTALS AND RLE

Similar documents
Research Article. ISSN (Print) *Corresponding author Shireen Fathima

EMBEDDED ZEROTREE WAVELET CODING WITH JOINT HUFFMAN AND ARITHMETIC CODING

MULTI-STATE VIDEO CODING WITH SIDE INFORMATION. Sila Ekmekci Flierl, Thomas Sikora

Audio Compression Technology for Voice Transmission

Color Image Compression Using Colorization Based On Coding Technique

A simplified fractal image compression algorithm

Investigation of Digital Signal Processing of High-speed DACs Signals for Settling Time Testing

COMPRESSION OF DICOM IMAGES BASED ON WAVELETS AND SPIHT FOR TELEMEDICINE APPLICATIONS

A New Wavelet Based Bio-Medical Data Compression Scheme Using FPGA

DICOM medical image watermarking of ECG signals using EZW algorithm. A. Kannammal* and S. Subha Rani

ECG Denoising Using Singular Value Decomposition

DELTA MODULATION AND DPCM CODING OF COLOR SIGNALS

A Novel Approach towards Video Compression for Mobile Internet using Transform Domain Technique

Digital Video Telemetry System

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)

Implementation of an MPEG Codec on the Tilera TM 64 Processor

ISSN (Print) Original Research Article. Coimbatore, Tamil Nadu, India

UTILIZATION OF MATLAB FOR THE DIGITAL SIGNAL TRANSMISSION SIMULATION AND ANALYSIS IN DTV AND DVB AREA. Tomáš Kratochvíl

Adaptive Key Frame Selection for Efficient Video Coding

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

MULTI WAVELETS WITH INTEGER MULTI WAVELETS TRANSFORM ALGORITHM FOR IMAGE COMPRESSION. Pondicherry Engineering College, Puducherry.

Error Resilience for Compressed Sensing with Multiple-Channel Transmission

The Development of a Synthetic Colour Test Image for Subjective and Objective Quality Assessment of Digital Codecs

Unequal Error Protection Codes for Wavelet Image Transmission over W-CDMA, AWGN and Rayleigh Fading Channels

Appendix D. UW DigiScope User s Manual. Willis J. Tompkins and Annie Foong

Study of White Gaussian Noise with Varying Signal to Noise Ratio in Speech Signal using Wavelet

Colour Reproduction Performance of JPEG and JPEG2000 Codecs

UNIVERSAL SPATIAL UP-SCALER WITH NONLINEAR EDGE ENHANCEMENT

Color Quantization of Compressed Video Sequences. Wan-Fung Cheung, and Yuk-Hee Chan, Member, IEEE 1 CSVT

Speeding up Dirac s Entropy Coder

Implementation of a turbo codes test bed in the Simulink environment

Music Source Separation

DWT Based-Video Compression Using (4SS) Matching Algorithm

Optimization of Multi-Channel BCH Error Decoding for Common Cases. Russell Dill Master's Thesis Defense April 20, 2015

Digital Audio and Video Fidelity. Ken Wacks, Ph.D.

Steganographic Technique for Hiding Secret Audio in an Image

TRAFFIC SURVEILLANCE VIDEO MANAGEMENT SYSTEM

DATA COMPRESSION USING THE FFT

Comparative Analysis of Wavelet Transform and Wavelet Packet Transform for Image Compression at Decomposition Level 2

Scalable Foveated Visual Information Coding and Communications

Adaptive decoding of convolutional codes

WYNER-ZIV VIDEO CODING WITH LOW ENCODER COMPLEXITY

Manuel Richey. Hossein Saiedian*

Identification of Motion Artifact in Ambulatory ECG Signal Using Wavelet Techniques

Research Topic. Error Concealment Techniques in H.264/AVC for Wireless Video Transmission in Mobile Networks

An Image Compression Technique Based on the Novel Approach of Colorization Based Coding

New Efficient Technique for Compression of ECG Signal

N-Pattern Huffman Compression Algorithm for Medical Images in Telemedicine

CERIAS Tech Report Preprocessing and Postprocessing Techniques for Encoding Predictive Error Frames in Rate Scalable Video Codecs by E

Line-Adaptive Color Transforms for Lossless Frame Memory Compression

arxiv: v1 [cs.ce] 20 Dec 2012

Module 8 VIDEO CODING STANDARDS. Version 2 ECE IIT, Kharagpur

Technical report on validation of error models for n.

NUMEROUS elaborate attempts have been made in the

technical note flicker measurement display & lighting measurement

Principles of Video Compression

A Combined Compatible Block Coding and Run Length Coding Techniques for Test Data Compression

Advanced Data Structures and Algorithms

OBJECT-BASED IMAGE COMPRESSION WITH SIMULTANEOUS SPATIAL AND SNR SCALABILITY SUPPORT FOR MULTICASTING OVER HETEROGENEOUS NETWORKS

Compression of digital hologram sequences using MPEG-4

Clinical Quality Guaranteed Physiological Data Compression in Mobile Health Monitoring

Channel models for high-capacity information hiding in images

Politecnico di Torino HIGH SPEED AND HIGH PRECISION ANALOG TO DIGITAL CONVERTER. Professor : Del Corso Mahshid Hooshmand ID Student Number:

An Efficient Low Bit-Rate Video-Coding Algorithm Focusing on Moving Regions

CHROMA CODING IN DISTRIBUTED VIDEO CODING

ECG Diagnostics based on the Filter-Bank Signal Processing and ANN/SVM Classification

Experiment 13 Sampling and reconstruction

AGH University of Science and Technology Measurement & Instrumentation Department Kraków, Poland

Optimized Color Based Compression

MPEG has been established as an international standard

PAPER Wireless Multi-view Video Streaming with Subcarrier Allocation

Low Power Estimation on Test Compression Technique for SoC based Design

Multimedia Communications. Image and Video compression

Single Channel Speech Enhancement Using Spectral Subtraction Based on Minimum Statistics

Chapter 14 D-A and A-D Conversion

TERRESTRIAL broadcasting of digital television (DTV)

Simple motion control implementation

DIGITAL COMMUNICATION

Analysis of local and global timing and pitch change in ordinary

Video coding standards

University of Bristol - Explore Bristol Research. Peer reviewed version. Link to published version (if available): /ISCAS.2005.

Video compression principles. Color Space Conversion. Sub-sampling of Chrominance Information. Video: moving pictures and the terms frame and

Module 8 VIDEO CODING STANDARDS. Version 2 ECE IIT, Kharagpur

Comparative Study of JPEG2000 and H.264/AVC FRExt I Frame Coding on High-Definition Video Sequences

Experiments on musical instrument separation using multiplecause

UC San Diego UC San Diego Previously Published Works

ERROR CONCEALMENT TECHNIQUES IN H.264 VIDEO TRANSMISSION OVER WIRELESS NETWORKS

Extraction Methods of Watermarks from Linearly-Distorted Images to Maximize Signal-to-Noise Ratio. Brandon Migdal. Advisors: Carl Salvaggio

Motion Artifact removal in Ambulatory ECG Signal using ICA

A New Hardware Implementation of Manchester Line Decoder

INTRA-FRAME WAVELET VIDEO CODING

Removal of Decaying DC Component in Current Signal Using a ovel Estimation Algorithm

Skip Length and Inter-Starvation Distance as a Combined Metric to Assess the Quality of Transmitted Video

Doubletalk Detection

Behavior Forensics for Scalable Multiuser Collusion: Fairness Versus Effectiveness H. Vicky Zhao, Member, IEEE, and K. J. Ray Liu, Fellow, IEEE

Electroencephalographic Signal Compression Based on Adaptive Segmentation and Video Encoders

Digital Representation

VERY low bit-rate video coding has triggered intensive. Significance-Linked Connected Component Analysis for Very Low Bit-Rate Wavelet Video Coding

Speech and Speaker Recognition for the Command of an Industrial Robot

SPIHT-NC: Network-Conscious Zerotree Encoding

Transcription:

ECG SIGNAL COMPRESSION BASED ON FRACTALS AND Andrea Němcová Doctoral Degree Programme (1), FEEC BUT E-mail: xnemco01@stud.feec.vutbr.cz Supervised by: Martin Vítek E-mail: vitek@feec.vutbr.cz Abstract: Compression of ECG signal is up to date challenge. There are many methods for ECG compression. This paper focuses on fractal based compression method. The method is implemented in MATLAB and compared with results in source article. New single cycle method for ECG signal compression that combines fractals and run length encoding () is created. Both methods are compared with method based on wavelet transform (WT) and and up to date wavelet based Set Partitioning in Hierarchical Trees (SPIHT) algorithm. Keywords: fractal, ECG, electrocardiogram, compression, run length encoding,, wavelet transform, WT, SPIHT 1. INTRODUCTION Nowadays, the ECG compression is necessary because of increasing data amount and increasing requirements on data transmitting, especially in telemedicine. Usually, loss compression methods are needful to achieve higher compression. Compression is connected with quality loss. The compromise between compression and quality should be found. There are many different compression methods. One of the advanced methods is fractal based compression. This method is described in chapter 2.1 and implemented in MATLAB. New single cycle method based on fractals and is created and described in chapter 2.2. Chapter 2.3 deals with another method using wavelet transform and. This method is implemented as well. The best method for ECG compression is SPIHT algorithm based on WT. All of these methods are tested and compared in chapter 3. At the end of the article, in chapter 4, the discussion and conclusion are done. 2. METHODS 2.1. FRACTAL BASED COMPRESSION METHOD One of the recent methods for ECG signal lossy compression is fractal based ECG compression. As said in [1], this method achieved compression ratio of 42 and the Percent Root Mean Square Difference (PRD) value less than 1 %. This algorithm uses ECG signal self-similarity. It does not need ECG signal parameters detection or extraction, so it can be used for compression of normal and abnormal signals as well. Principal is as follows: The original ECG signal is divided into non-overlapping blocks (range blocks). The size of the block is called block size (BS). The domain is created as a down-sampled copy of the original ECG signal. Each range block is compared with domain and the most similar block in domain (domain block) is found. It uses Fractal Root Mean Square (RMS) metric. Domain blocks are overlapping and the distance between them is called jump step (JS). To achieve maximum similarity between the range and domain blocks, affine transforms are used. Fractal (transform) coefficients (shift and scale), affine transformation type and index (domain block location) are calculate and stored as an output. [1] 486

Unfortunately, in the article [1] there are mistakes in equations. The equations for scale coefficient calculation and RMS are wrong. Right equations are in the article [2]. The equation for PRD value calculation is not normalized, it means that there is no subtraction of mean of the signal (DC component). In [1] there is no other mention about subtracting DC component. PRD value is smaller than normalized PRD (PRDN) value. The authors of [1] achieved compression ratio of 42 and PRD value less than 1 % but they do not mention relevant signal. Decompression part of the algorithm starts with random signal. Stored coefficients are applied on random signal and the original ECG is approximated. For better approximation, more iterations are necessary. In [1] they repeat the decompression algorithm four times (4 iterations). [1] 2.2. SINGLE CYCLE METHOD USING FRACTALS AND This is a new method based on the above-mentioned method (fractal based compression [1]). This method uses fractals and and its block diagram is shown in Fig. 1. At the beginning, the DC component is subtracted. We use the fact that ECG signal is quasiperiodic. Instead of whole domain, we use only one cycle of ECG signal. This cycle is down-sampled (mean of two adjacent samples is calculated and rounded) and we can call it domain as well. In terms of compression ratio and quality, the ideal decimation factor is 2. The domain is converted to binary and [3] is applied. The domain is stored. Then it is restored. It means run length decoding and converting to decimal are done. The interpolation by a factor of 2 is performed (mean of two adjacent samples of domain is calculated and this value is put between those adjacent samples). Then the most similar domain block is searched for each range block. Range blocks are obtained after dividing ECG signal into non-overlapping parts. The metric is used the same as in the first method (RMS). We obtain coefficients (shift, scale), type of affine transform and index of the domain block. All of the coefficients we convert to binary, do and store. Stored domain and coefficients represent the compressed signal. The decompression is done in one iteration. After run length decoding of the coefficients and domain, we convert them to decimal and calculate the final signal in a similar way as in [1]. We do not apply the coefficients on random signal but on the domain (one cycle of ECG) and only in one iteration. ECG signal Subtraction of DC component Selection of 1 ECG cycle (domain) Decimation (factor = 2) to binary Storing compressed domain Interpolation (factor = 2) to decimal -1 Division into nonoverlapping parts (range blocks) Finding the most similar domain block for each range block Calculation of coeffs (affine, shift, scale, domain index) to binary Storing compressed coefficients Approximation of original ECG signal to decimal -1 Fig. 1: Block diagram of single cycle method using fractals and. 2.3. WAVELET TRANSFORM AND RUN LENGTH ENCODING This method is based on wavelet decomposition of the signal [3]. Coefficients in every band except of the low-frequency band are compared against threshold. If they are smaller than the threshold, they are substituted by zero. Then the coefficients are expressed by selected number of bits (in our case 8 bits) and is applied. The decompression starts with run length decoding, increasing bit resolution and then inverse wavelet transform is done. The results of this method depend on selected decomposition wave, reconstruction wave, level of decomposition, threshold and bit resolution. 487

2.4. EVALUATION PARAMETERS The amount of compression is expressed by Compression Factor (CF) [3] as shown in Eq. (1) and Average Value Length (avl) [4] as shown in Eq. (2). CF = avl = size of the input stream, [ ] (1) size of the output stream size of the output stream, [bps] (2) original signal length The quality of compression is evaluated by normalized Percent Root Mean Square Difference (PRDN) [4]. PRDN is calculated as shown in Eq. (3), where X O is original signal, X R is reconstructed signal and X is mean of original signal. PRDN = 100 n i=1 [X O(n) X R (n)] 2 n i=1[x O (n) X ] 2, [%] (3) 3. RESULTS These algorithms are tested on signal 105 from MIT-BIH arrhythmia database. Length of the signal is 25 000 samples, sampling frequency is 360 Hz and it has 11-bit resolution. [5] We set a threshold between acceptable and unacceptable quality of compression. This threshold is set on the basis of results in article [4] and original and reconstructed signals observation. The threshold is PRDN = 5 %. Below this value, distortion of ECG signal is very small. When implementing the fractal based compression algorithm based on article [1], we use the right equations from [2]. Four iterations are not enough to approximate ECG signal well, so we use 15 iterations. We use PRDN instead of PRD. There are two adjustable parameters: block size (BS) and jump step (JS). We set BS from 2 to 20 with step 1 and then from 20 to 100 with step 10. Values of JS are 1, 10, 20 and 50 for each BS. 25 PRDN [%], CF [-], avl [bps] 20 15 10 5 PRDN CF avl PRDN = 5 % 0 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Block size [samples] Fig. 2: Development of PRDN, CF and avl in dependence of BS, JS = 1, for the fractal based compression method. Development of PRDN, CF and avl in dependence of BS is shown in Fig. 2. The JS is set on 1. The compression comes on with the BS = 5. BS from 2 to 4 cause expansion. It is obvious that CF (orange line) increases linearly with increasing BS, avl (grey line) is decreasing exponentially. The green line is threshold set on PRDN = 5 %. Blue line represents development of PRDN. This line is 488

not simply describable by any function. PRDN rises rapidly for BS from 3 to 6. Then it increases almost linearly with higher deviation for BS of 11. The best compression parameters are reached for BS = 13, when CF = 3,1778, avl = 3,4615 bps and PRDN = 4,8884 %. For other JS and higher BS, trends of development of the parameters (PRDN, CF and avl) are similar like in the Fig. 2. When increasing JS, the time of compression is decreasing but the PRDN is increasing, that is why we set JS = 1. Nevertheless, the best compression parameters mentioned above are not outperformed. The results for the single cycle method using fractals and are shown in Fig. 3 (JS is set on 1). These results are obviously better than the results of the first method. Trends of CF and avl are the same as in the first method. PRDN increases linearly with increasing BS. The best compression parameters are reached with BS = 17, when CF = 13,5874, avl = 0,8096 bps and PRDN = 4,9488 %. 20 PRDN [%], CF [-], avl [bps] 15 10 5 PRDN CF avl PRDN = 5 % 0 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Block size [samples] Fig. 3: Development of PRDN, CF, avl in dependence of BS, JS = 1, for the single cycle method. The third method which uses WT and has the best results of CF = 4,8503, avl = 2,2679 bps, PRDN = 4,9161 % as seen in Tab.1. These results are obtained when the decomposition and reconstruction wavelets are coif4, level of decomposition is 4 and maximum bit depth is 8. Nowadays, the best results of ECG signal compression are obtained by using wavelet based SPIHT algorithm. We compressed the same signal (105 from MIT-BIH arrhythmia database) by this method using software [6] created by authors of [4]. When we set avl = 0,8096 (the same as in the single cycle method) the PRDN = 5,6135 as seen in Tab. 1. Fractal based compression Result from [1] Fractal + WT + SPIHT JS 1 10 10 1 - - BS 13 35 35 17 - - CF 3,1778 8,5556 42 13,5874 4,8503 13,5874 avl [bps] 3,4615 1,2857-0,8096 2,2679 0,8096 PRDN [%] 4,8884 16,4011 *1,0433 *1,24 4,9488 4,9161 5,6135 Tab. 1: Comparison of results of fractal based compression method with results from the article [1], single cycle method, method, which uses WT and and SPIHT algorithm. * means PRD value (PRD without normalization). As seen in Tab. 1, the best result is obtained using new single cycle method (avl and PRDN are highlighted by the green color). Time of running algorithm 1 (fractal based compression method) is 2 019 seconds, time of running algorithm 2 (single cycle method) is 32 seconds for the same BS = 17 and JS = 1. In this time, both compression and decompression are included. It means that 489

the new method could work in a real time because the compression and decompression time is shorter than the length of the signal (which is almost 70 seconds). From Tab. 1 is obvious, that the new single cycle method is comparable or even better than SPIHT. 4. CONCLUSION In this paper, four methods for ECG signal compression are compared. The first one is implemented according to the article [1]. This method does not achieve by far such a good compression parameters as written in the article. For the same signal, BS and JS they achieve CF of 42 and we only less than 9, but if we use only PRD instead of PRDN we have more accurate signal (smaller PRD). As a threshold for acceptable signal we set PRDN = 5 %. The highest compression (shortest avl = 3,4615) is achieved with BS = 13 and JS = 1. The new single cycle method based on fractals and gives better results. The best one is for BS = 17 and JS = 1 and gives avl = 0,8096 bps with PRDN = 4,9488 %. This method is for the same BS = 17 and JS =1 63 times faster than the first method based only on fractals. The method based on WT and achieves better results than the original fractal based method but worse in comparison with new single cycle method and SPIHT algorithm. The minimum avl is 2,2679 bps with PRDN less than 5 %. This method is outdated and is mentioned only for comparison. The up to date compression method is SPIHT which is based on WT. The results of this method and single cycle method seem comparable. In this case, single cycle method gives better results. The single cycle method was tested on 4 signals from MIT-BIH arrhythmia database. The PRDN increases linearly with BS. The slope of the line depends on particular signal. Because results of single cycle method are encouraged, this method will be tested on more signals. After that, one universal BS could be recommended. Better approach is to use the fact, that development of PRDN in dependence on BS is linear. Then we can compress the signal with low BS and high BS, calculate PRDNs and interpolate the line. Where the line crosses the threshold of PRDN = 5 %, this BS will be used for final compression. REFERENCES [1] IBAIDA, Ayman, Dhiah AL-SHAMMARY and Ibrahim KHALIL. Cloud enabled fractal based ECG compression in wireless body sensor networks. Future Generation Computer Systems [online]. 2014, vol. 35, pp. 91-101 [cit. 2015-03-01]. DOI: 10.1016/j.future.2013.12.025. [2] AL-SHAMMARY, Dhiah and Ibrahim KHALIL. Dynamic Fractal Clustering Technique for SOAP Web Messages. 2011 IEEE International Conference on Services Computing [online]. IEEE, 2011, pp. 96-103 [cit. 2015-03-02]. DOI: 10.1109/SCC.2011.15. [3] SALOMON, David. Data Compression: The Complete Reference. 4th ed. London: Springer, 2007, xxv, 1092 p. ISBN 978-1-84628-602-5. [4] HRUBEŠ, Jan, Martin VÍTEK and Jiří KOZUMPLÍK. Vliv komprese signálů EKG na diagnózu. Elektrorevue [online]. 2010, vol. 12, issue 3 [cit. 2015-03-01]. [5] GOLDBERGER, A. L., L. A. N. AMARAL, L. GLASS, J. M. HAUSDORFF, P. Ch. IVANOV, R. G. MARK, J. E. MIETUS, G. B. MOODY, C.-K. PENG a H. E. STANLEY. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals. Circulation [online]. 2000-06-13, vol. 101, issue 23, e215- e220. DOI: 10.1161/01.CIR.101.23.e215. [6] VÍTEK, M., HRUBEŠ, J., KOZUMPLÍK, J. EKG KVANTUM [software]. Department of Biomedical Engineering, Brno University of Technology, 2009. URL: http://www.ubmi.feec.vutbr.cz/vyzkum-a-vyvoj/ produkty. 490