1 Introduction

Clinical procedures have a prominent and important space for transmission techniques of biomedical signals. To make a remote clinical assessment using biomedical signals, signal transmission techniques have paramount importance. Healthcare processes generate heavy data thus demand a huge data transmission. Using data compression techniques in bio-signal transmission can make the remote clinical assessment cost-effective. For example, while monitoring cardiac activity using an ECG, data is recorded using multiple channels for several hours thus making it imperative for a system to be equipped with sufficient storage capacity clubbed with channel bandwidth. As real-time monitoring requires a huge memory and large bandwidth to transfer raw data, a proper compression technique should enable the data storage and transmission with minimal requirements. Further, to enable secure off-line data storage through ECG archives, the ECG data needs to be compressed for a cost-effective solution. Thus, there is an obvious requirement for data compression in biomedical signals.

Literature has supported several compression ratios ranging from 2:1 to 50:1 [1]. The literature differentiates the compression techniques into two categories namely, direct time-domain (the turning point, cycle-to-cycle, scan along polygonal approximation to name a few) and transformed frequency-domain techniques (Discrete cosine transform, wavelet transform to name a few). Considering the tradeoff between simplicity, compression ratio, preserve clinical information and insensitive to noise, wavelet transform based compression methods have provided a significant advancement in the last few years [2].

2 Selection of wavelet transform and filter bank architecture

The main limitation of Fourier transform lies in dealing with the non-stationary type of signals. The wavelet transform enables both time and frequency domain analysis thus allowing the analysis of non-stationary signals. The wavelet transform is the mathematical tool that deals with joint time–frequency analysis to reveal the features hidden within the signal. With the help of variable window size, wavelet transform enables analyzing different frequency components within a signal. Oscillating wave-like characteristics of a wavelet transform resembling band like spectrum makes it a better choice in removing noises from signals. Wavelet transform can decompose a signal into two separate series, namely, scaling function and wavelet function. Out of the existing thirteen different wavelet families, only few can be applied to compress an ECG signal.

Properties of a wavelet transform play a significant role in the selection of a wavelet transform for ECG compression. Different properties of wavelet transform are listed in Table 1. Based on orthogonality; wavelet transforms are categorized into orthogonal, semi-orthogonal, biorthogonal and shift orthogonal wavelet transforms. Biorthogonal wavelet transform satisfies all the following essential properties of ECG compression: (i) allows transmission between spline of zero order and spline of infinite order; (ii) provides an optimal natural signal interpolant that has least oscillating energy; (iii) has minimum MSE (mean square error) at every decomposition level; (iv) highest degree of shift variance; (v) generates possibilities to construct symmetrical wavelet functions. In this work, the biorthogonal wavelet transform is applied to compress the ECG signal. In the analysis of non-stationary signals, the wavelet filters and bases for attaining optimal joint time–frequency localized wavelet filter banks (WFBs) are designed [3].

Table 1 Comparison of different wavelet families

Current literature uses two-band WFBs to analyze ECG signals [4,5,6,7,8,9,10]. Poor resolution (∆ω = π/2) of low and high-frequency bands during signal decomposition is the major drawback of two-band WFBs. In two-band WFBs, cascading and wavelet packet decomposition is required to improve the resolution of lower and higher frequency bands, respectively. Cascading increases the computation complexity of the design. To reduce the computation complexity, Three-band WFBs with linear phase, lesser computational complexity, higher energy in high -frequency bands and better frequency resolution of (∆ω = π/3) in lower and higher frequency bands are preferred over two-band WFBs [3]. Literature has supported the involvement of three-band time–frequency localized WFBs in numerous applications, namely, classification of EEG signals [11], digital watermarking [12], and image denoising [13]. The advantages of joint time–frequency localized three-band biorthogonal WFB motivates us to compress the ECG signal using three-band WFBs. The objective of the present scheme is to evaluate the performance of joint time–frequency localized three-band biorthogonal WFBs on different performance evaluation indexes, namely, CR, QS, CT, RMSE, SNR, EMA, and PRD and to develop a computer-aided ECG compression scheme which can be used in the real systems.

3 Proposed method

The signal processing flow of the proposed ECG compression scheme, the corresponding three-tap wavelet filter bank, and decomposition of ECG signal up to the fourth level, respectively are shown in Figs. 1, 2 and 3. Initially, ECG data is recorded using iworx® IX-TA (a portable 3-channel device) at a frequency of 360 Hz. The recorded analog ECG signal is digitized using an analog-to-digital converter (ADC). The process used to compress the ECG signal is same as used in [14] except some modifications done in the proposed work which are as follows: a novel joint time–frequency localized three-band biorthogonal WFB is utilized to decompose the digitized ECG signal into four sub-bands. The transfer function of different filters namely, lowpass, bandpass and highpass, respectively, are obtained as shown in Eqs. (1)–(3).

Fig. 1
figure 1

Proposed three-tap biorthogonal wavelet filter bank-based ECG compression scheme

Fig. 2
figure 2

Proposed three-tap biorthogonal wavelet filter bank

Fig. 3
figure 3

Decomposition of ECG signal up to the fourth level

$$H_{0} (z)\, = \, - \,0.0074 + 0.4559z^{ - 1} + 0.7292z^{ - 2} + 0.4559z^{ - 3} - 0.0074z^{ - 4}$$
(1)
$$H_{1} (z)\, = \, -\, 0.0178 - 0.3588z^{ - 1} + 0 - 0.3558z^{ - 3} - 0.0178z^{ - 4}$$
(2)
$$H_{2} (z)\, = 0.0098 - 0.4125z^{ - 1} + 0.1179z^{ - 2} - 0.4125z^{ - 3} + 0.0098z^{ - 4}$$
(3)

The decomposed ECG signal is adaptively thresholded, and the absolute values greater than the threshold are considered as digital high (logic high and represented as “1”) and all the other remaining values are considered as digital low (logic low and represented as “0”). The digitized data is then compressed using run-length encoding scheme.

4 Experimental results

CR, EMA, QS, RMSE, CT and PRD are the parameters used to demonstrate the validity of the proposed approach. Parameters listed above are mathematically expressed using Eqs. (4)–(8).

$$Compression\,Ratio\,(C_{R} )\, = \,\frac{{NB_{o} }}{{NB_{c} }}$$
(4)
$$PRD\, = \,100\sqrt {\left\{ {\frac{{\sum\nolimits_{n = 1}^{N} {\left[ {h(n) - \hat{h}(n)} \right]^{2} } }}{{\sum\nolimits_{n = 1}^{N} {\left[ {h(n)} \right]^{2} } }}} \right\}}$$
(5)
$$Q_{S} \, = \,\frac{{C_{R} }}{PRD}$$
(6)
$$E_{MA} \, = \,\hbox{max} \left[ {h(n) - g(n)} \right]$$
(7)
$$RMSE\, = \,\sqrt {\sum\limits_{n = 1}^{N} {\frac{{\left[ {\hat{h}(n) - h(n)} \right]^{2} }}{N}} }$$
(8)

where NB0 is the total bits in the input ECG, NBc is the total bits in the compressed signal, h(n) is the ECG signal, g(n) is the reconstructed output, \(\hat{h}\)(n) is the denoised output. CR is the ratio of size of the raw signal to the size of the compressed signal. PRD estimates the quality of the reconstructed signal by measuring the inaccuracy between original signal and reconstructed signal. QS is the CR divided by the PRD which estimates the behavior of the CR. Performance results of the proposed ECG compression approach is summarized in Table 2, where the proposed approach achieve a better result compared to the latest literature [15,16,17,18,19]. Proposed design achieves a highest average CR, average QS, respectively, of 22.61 and 20.81. Further, the proposed design has a minimum average CT, average EMA, average RMSE and PRD, respectively of, 327.29 ms, 0.013, 0.0016 and 1.60.

Table 2 Performance evaluation of the proposed approach

Error between the original ECG signal and the reconstructed ECG signal is determined with the help of PRD. Lowest the value of PRD signifies the better performance. Figure 4 compare the PRD values obtained by the proposed method with the existing literature [15,16,17,18,19]. The proposed method obtains the lowest average PRD value of 1.28 amongst all of the existing methods.

Fig. 4
figure 4

Comparison of PRD with existing schemes for different ECG records (indicted as R100 and others) taken from MIT-BIH database

A comparison of CR and PRD between the proposed scheme and the existing Refs. [15,16,17,18,19] is presented in Fig. 5. From Fig. 5, a highest CR and lowest PRD of the proposed scheme has been observed and compared with [15,16,17,18,19].

Fig. 5
figure 5

Comparison of the CR and PRD between the proposed scheme and the existing schemes

Signal-to-noise ratio (SNR) is an objective measure to evaluate the performance of the system which undergoes the noise. Higher SNR value leads to better quality of the signal and hence, it is easy to decode the signal without errors. A comparison of output SNR between the proposed scheme and the existing schemes has been represented in Fig. 6 and a highest SNR of the proposed scheme compared to the Refs. [15,16,17,18,19] has been observed.

Fig. 6
figure 6

SNR comparison of the proposed method with the existing methods

The output of the proposed joint time–frequency localized three-band biorthogonal WFBs based ECG compression approach is shown in Fig. 7. Figure 7(a) is an input ECG signal having a sampling frequency of 360 Hz. Figure 7(b) represents the reconstructed ECG signal.

Fig. 7
figure 7

(a) Original ECG signal, (b) compressed ECG signal and (c) error

5 Conclusion

A novel joint time–frequency localized three-tap biorthogonal wavelet filter bank for ECG compression is proposed in this article. The proposed time–frequency localized three-tap biorthogonal WFB for biosignals achives a losless compression ratio of 22.6. Simulations results demonstrate that the proposed three-tap biorthogonal WFB results in a higher compression ratio of the biosignals when compared to two-tap biorthogonal WFB. The better frequency resolution at both lower and higher frequency of three-tap biorthogonal WFB leads to a better compression of the signal. Thus time–frequency localized three-tap biorthogonal WFB can enable loss-less compress with a high compression ratio to transmit biosignals for therapeutic use to assist in remote clinical assessment.