A novel ECG signal compression method using spindle convolutional auto-encoder

https://doi.org/10.1016/j.cmpb.2019.03.019Get rights and content

Highlights

  • A deep learning method based on convolutional auto-encoder is applied in ECG signal compression.

  • A novel spindle structure is designed to achieve a high-ratio and quality-guaranteed ECG signal compression.

  • An end-to-end model can directly compress input into the code without independent encoding method.

  • The model achieves high compression ratio 106.45 and low percentage root mean square difference of 8.00%.

Abstract

Background and objectives

With rapid development of telehealth system and cloud platform, traditional 12-ECG signals with high resolution generate heavy burdens in data storage and transmission. This problem is increasingly addressed with various ECG compression methods. The important objective of compression method is to achieve a high-ratio and quality guaranteed compression. Consequently, to achieve this objective, this work presents a deep-learning-based spindle convolutional auto-encoder. The spindle structure achieves the high-ratio compression by reducing the dimension and guarantees the quality by increasing the dimension and end-to-end framework.

Methods

The spindle convolutional auto-encoder provides a high-ratio and quality-guaranteed ECG compression. It is composed of two parts as convolutional encoder and convolutional decoder with functional layers. By convolutional operation, the local information can be extracted. The spindle structure is increasing dimension in first few layers to obtain sufficient information to guarantee compression quality. And it is reducing dimension in last few layers to merge the information into a code for high-ratio compression. Meanwhile, the end-to-end framework is to obtain the optimum encoding for compression to improve the reconstruction performance.

Results

Compression performance is validated with records from MIT-BIH database. The proposed method achieves high compression ratio of 106.45 and low percentage root mean square difference of 8.00%. Compared with basic convolutional auto-encoder, the spindle structure improves the compression quality with lower losses.

Conclusions

The spindle convolutional auto-encoder performs a high-ratio and quality-guaranteed compression. It can be considered as a promising compression technique used in tele-transmission and data storage.

Introduction

With the rapid development of telecommunication and cloud platform in various fields, the demands for efficient data transmission and storage greatly increase, particularly in the healthcare system. Electrocardiogram (ECG) is a bioelectrical signal reflecting the heart state according to the potential changes of heart [1]. An important objective of telehealth system is the capability to rapidly transmit ECG signals and efficiently store these information [2], [3]. However, the clinical ECG diagnosing always utilizes standard 12-lead ECG system to obtain heart information. A large number of ECG signals are collected over long-term monitoring and at high resolutions [4]. For example, under the sampling rate of 360 Hz and the data resolution of 11 bits per sample, a 1-h record amounts to about 1.7 Mbytes per lead. This generates heavy burdens in efficient data storage and rapid data transmission. Therefore, to overcome this problem, there has been increased interests in signal compression techniques these years. High compression ratio and minimal loss are important performance indicators of the effective compression method.

Over the past few decades, most efforts have focused on lossy compressions for higher compression ratio (CR). And there are a number of efficient lossy compression algorithms providing high-quality reconstructions. Generally, these methods can be categorized into three major classes: direct, parameter extraction and transform-based [5].

The direct methods are straight to discard the redundancy parts by analyzing the signal components. These methods usually take a low cost to realize the compression by an efficient encoding system. For instance, in [6], Cox et al. presented the amplitude zone time epoch coding (AZTEC) to provides a 20–1 reduction by using amplitude and slope to code the signals. To make a further improvement, in [7], the coordinate reduction time encoding system (CORTES) was designed. It introduced the turning-point algorithm to improve the reconstruction accuracy. Because direct methods are based on reserving important samples of the original signal. The compression ratio can be improved by discarding more samples of original signal. But the reconstruction is deteriorated due to the much information loss. Thus, it is difficult to achieve a high-quality compression with high compression ratio.

Second, parameter extraction methods generally extract the particular features in signals and encode these features to achieve the compression. In [8], Cohen et al. estimated structural features of ECG signals and these features were vector-quantized to provide the compression. In [9], Akazawaw et al. introduced multi-templates to achieve the signal matching and then the segmented signals can be compressed by Huffman coding. However, the extracted features decided the performance of compression, which arise the challenges to select suitable features. The compression performance will be degraded once the incorrect features extracted.

In recent years, transform-based methods begin to show their superiorities in high-quality compression. There are large number of researches arising. On account of the energy compaction property, transform-based methods usually decompose the original signal into coefficients associated with particular designed basis. Discarding the insignificant parameters, few parameters are encoded to achieve the signal compression. Fourier transform, wavelet transform, discrete cosine transformation (DCT), and singular value decomposition (SVD) [10] can be consider as the most prevalent transform-based compression methods. In [11], Ma et al. utilized adaptive Fourier transform decomposition to realize a signal analysis which is unconstrained by R-peak detection. Hybridized with the symbol substitution (SS), it further improved the compression performance. In [12], Peng et al. used lifting wavelet transformation to reserve the essential information in different frequency. Then Embedded Zerotree Wavelet (EZW) compression coding algorithm was introduced to achieve the compression. In [13], Mukhopadhyay et al. combined singular vector decomposition with lossless-ASCII-character-encoding (LLACE) to develop a quality-guaranteed compression algorithm. Despite their performance in data size reduction, the expansion basis is predetermined in general and the transform-based methods always combined with the independent encoding algorithm which would limit the compression performance.

To tackle aforementioned problems, this study aims to provide a high-ratio and quality-guaranteed ECG compression algorithm. Hence, a novel spindle convolutional auto-encoder (SCAE) is proposed. Convolutional auto-encoder is an attractive technique successfully used in many fields such as image super resolution, pattern recognition, and image reconstruction [14], [15]. There are a number of publications demonstrating that low-dimensional signals can produce a good quality restoration of original signal [16], [17], [18], [19]. Auto-encoder is an effective method in applications of low-dimensional representation and information retrieval [20]. Therefore, convolutional auto-encoder (CAE) can be considered as a promising method in ECG compression. Convolutional operation not only can reserve the local information, but also can also flexibly expand dimensionality for extracting high-level information and reduce dimensionality for high-ratio compression. So, a spindle convolutional auto-encoder is designed. Without parameters extraction, signal transformation and independent encoding algorithm, SCAE is an end-to-end model which directly compress the input as a low-dimensional code. The spindle structure is to expand dimensionality in first few layers and reduce dimensionality in last few layers to achieve the compression. In terms of the dimensionality expansion, the sufficient high-level features can be obtained in the hidden layers which can guarantee the quality of the signal reconstruction. As for dimensionality reduction, it can achieve to a high-ratio compression by merging these features. Compared to previous compression methods, this novel SCAE makes contributions in two aspects as:

  • (1)

    SCAE as a deep learning technique, is an end-to-end compression method without parameter extraction, signal transformation and independent encoding algorithm.

  • (2)

    Spindle structure can achieve a quality-guaranteed and high-ratio compression by expanding the dimensionality and reducing the dimensionality.

The remainder of this paper is organized as followings. Section 2 introduces the SCAE in detail. In Section 3 the performance evaluation criteria are listed out. Section 4 shows detailed compression performance. Discussion and comparison are presented in Section 5. Section 6 concludes this paper.

Section snippets

Methods

The proposed method can be divided into two parts as ECG signal preprocessing and spindle convolutional auto-encoder. As depicted in Fig. 1, an overall procedures of ECG compression and decompression using proposed method. Details of each part are introduced in the following contents.

Performance evaluation

For evaluation of compression performance, compression efficiency and reconstruction quality are two main aspects indicating the comprehensive performance. The evaluation criteria commonly used in the literature have been used for evaluating the compression efficiency and reconstruction quality of proposed method. These performance criteria are summarized as follows:

  • (1)

    Compression ratio (CR)

With respect to compression efficiency, CR is widely accepted as an evaluation criterion that is defined as

Results

For the ECG compression, the training of the SCAE model on the dataset containing 48 records of MIT-BIH database was carried out. Each record randomly provides 1000 heartbeat segments used for training 200 heartbeat segments used for validation and 200 heartbeat segments used for testing. The sample ratio between training, validation and testing samples is 5:1:1. The network is trained for each record respectively. Due to all records have the similar loss graphs. Here as an example, the loss of

Discussion

To achieve an effective ECG compression, in this work, a novel spindle convolutional auto-encoder is designed. The first advantage of this work is the high-ratio and quality-guaranteed compression SCAE provided. By expanding dimensionality of SCAE, sufficient high-level features of the input can be obtained so that significant information can be merged into the compressed code by dimensionality reduction. The information capacity of the compressed code can be further enhanced to improve the

Conclusion

This paper proposed a high-ratio and quality-guaranteed ECG compression method using the novel designed SCAE. The spindle structure improves CAE to obtain the sufficient information of the original input signal by dimensionality expansion. It guarantees the compression quality. And dimensionality reduction further merges the information in the hidden layers to achieve the high-ratio compression. In addition, SCAE as an end-to-end model can directly compress the signal without parameter

Acknowledgments

This work was supported by the National Natural Science Foundation of China (61574102, 61774113 and 61331007), the Fundamental Research Funds for the Central Universities, Wuhan University (2042017gf0052 and 2042018gf0045) and the Natural Science Foundation of Hubei Province, China (2017CFB660).

References (37)

  • J.R. Cox, AZTEC, a preprocessing program for real time ECG rhythm analysis, IEEE Trans. Biomed. Eng., 15(1968)...
  • J.P. Abenstein

    A new data reduction algorithm for real time ECG analysis

    IEEE Trans. Biomed. Eng.

    (1982)
  • A. Cohen

    Compression of ECG signals using vector quantization

  • K Akazawa

    Adaptive data compression of ambulatory ECG using multi templates

  • An ECG signals compression method and its validation using NNs

    IEEE Trans. Biomed. Eng.

    (2008)
  • J. Ma

    A novel ECG data compression method using adaptive Fourier decomposition with security guarantee in e-Health applications

    J. Biomed. Health Informat.

    (2015)
  • Peng Ziran

    Research and improvement of ECG compression algorithm based on EZW

    Comput. Meth. Prog. Bio.

    (2017)
  • O.E. David

    DeepPainter: painter classification using deep convolutional antoencoders

    Int. Conf. Arti. Neural Netw.

    (2016)
  • Cited by (44)

    • Using ECG signals for hypotensive episode prediction in trauma patients

      2022, Computer Methods and Programs in Biomedicine
      Citation Excerpt :

      The results of this research show that the proposed method can learn better features than the traditional methods for the ECG arrhythmias classification. Wang et al. [34], achieved a high-ratio and quality compression of ECG signals using a convolutional AE. The encoder has 8 layers, convolution layers, max-pooling layers, and batch normalization layer.

    • A physiological signal compression approach using optimized Spindle Convolutional Auto-encoder in mHealth applications

      2022, Biomedical Signal Processing and Control
      Citation Excerpt :

      These records were all sampled at 360 Hz with 11 bit/sample resolution. Signals were preprocessed for noise removal and centralisation, to achieve a higher compression ratio [4]. SCAElite compression model was applied over the dataset and the performance was evaluated in terms of compression ratio and reconstruction error so as to compare its performance with the state-of-the-art compression model SCAE [4].

    View all citing articles on Scopus
    View full text