Skip to main content

Multi-base compressive sensing procedure with application to ECG signal reconstruction

Abstract

Standard compressive sensing (CS) scenario assumes a single sparsifying basis used to reconstruct the signals from a small set of incoherent measurements. However, in many cases, the signal cannot be sparsely represented using a single transformation. Particularly, in ECG signal analysis, each signal segment is specific in nature and reflects different physical phenomena. Hence, using the same transformation for all segments may be inappropriate for efficient analysis and reconstruction. Moreover, in the CS scenario, it would be necessary to combine different transforms to achieve compact signal support and to provide successful reconstruction from randomly under-sampled data. This work proposes a hybrid CS reconstruction algorithm that combines different transform basis, based on the concept of orthogonal matching pursuit. The performance of the proposed approach is verified experimentally using the combination of the Fourier and the Hermite transform on the real ECG signals.

1 Introduction

Compressive sensing (CS) has recently appeared as a new concept that has been used in different applications to collect, store, transmit and reconstruct large amount of data using much fewer measurements [1]. Generally, the CS paradigm has been introduced with the aim to reduce the number of measurements in signal analysis and reduce the memory requirements, as well as the energy consumption and recording time. In certain situations, CS solutions can be also used to recover parts of signals that are discarded due to disturbances and noise [2, 3]. The measurements are usually represented as a small subset of original data samples acquired through a random selection process [4,5,6,7,8]. In order to provide a successful and unique signal recovery, CS reconstruction algorithms require a certain basis in which the considered signal is sparse [8]. Namely, the assumption is that a signal s is sparse when represented using linear transform Ψ such that the transform vector x has just a few significant components. However, the problem appears when the signal of interest is not sparse when represented in a single transform domain. Namely, we observe a problem when a signal is composed of different segments and each segment could be sparse in different transform domains, but the signal as a whole is not sparse in any particular domain when observed individually. Particularly, this is the case with the ECG signals composed of several different waves that correspond to electrical and mechanical heart activities. Concerning the biomedical ECG signal representation and compressive sensing, the part of the ECG signal that has been commonly treated so far is the QRS complex [9, 10]. Nevertheless, providing a compact representation for the entire ECG signal is still a challenge, and it is the main motivation of this work. To be more specific, there are other parts of ECG signal such as P and T waves, which are very important in medical diagnosis (e.g. long QT syndrome, coronary ischemia), but the optimal transform domain analysis of these segments have not been treated so far. Being able to represent the entire ECG signal with very few transform coefficients would allow efficient compression, CS and classification based on the low number of features.

Exploring the CS theory can be done only if a compact (sparse) support over different ECG signal segments is provided, which cannot be accomplished using a single transformation basis. In that sense, we introduce a combined sparsity model that is suitable for ECG signals represented as a sparse set of combined basis functions (hybrid or multi-base representation). The concept of applying the hybrid approach in CS applications has been used in the literature for speech signals, where the hybrid dictionary is applied for the construction of the basis matrix in CS (linear prediction coding (LPC) and discrete Fourier transform (DFT) basis) [11]. Also, the hybrid transform/prediction sparsity model has been employed for exploiting correlation in different directions for efficient CS and reconstruction of multidimensional signals [12]. It is important to note that most of the work that has been done in this field is related to a particular application or a particular type of signal, due to the fact that the hybrid approaches emerge to deal with challenging signal structures.

An interesting approach that allows to exploit multiple structural features in the reconstruction of biomedical signals has been considered in [13]. This multi-structural signal recovery framework assumes additional a priori information which is included by imposing additional minimization constraints into the optimization model for signal recovery. This approach results in multi-criterion optimization and new convex programming problem. The considered structural properties are signal-dependent such as sparsity, piecewise smoothness and low-rank property, but generally the approach can be applied in its specific form to different types of biomedical data such as MRI, EMG, EEG and ECG signals. Particularly, in the case of ECG signals, the multi-structure optimization problem is defined as a linear combination of TV1, TV2 and L1 norms [13], exploiting piecewise smoothness and sparsity in the wavelet domain. However, as we have mentioned earlier, due to the different nature of ECG signal segments, the wavelet transform could be suitable for transient signal parts while the smooth or quasi-periodic parts could be better suited by other methods. Furthermore, it has been shown in [9] that discrete Hermite transform (DHT) provides much better compression performance and more compact support than the wavelet transform, DFT or DCT, particularly in the case of QRS complexes.

Therefore, in a similar context but without imposing additional optimization constraints, we propose an efficient combined multi-base sparsity model which can be used with the classical optimization methods to provide computationally simple solutions amenable for practical implementations. It is based on the orthogonal matching pursuit (OMP) algorithm applied over different waves of ECG signal using the combination of the two transforms. It is shown that the combined sparsity model produces the most compact representation of ECG signal parts with a highly reduced number of non-zero hybrid coefficients (relevant features). Having an optimal signal representation allows us to apply the CS concept and to recover the signal from a small per cent of randomly acquired samples. The proposed computing method is based on the modified OMP approach [14], which allows low calculation complexity, fast processing time and thus being well-suited for real-time implementations in different mobile devices and server applications [ref]. The proposed approach is also compared with several commonly used classical approaches such as iterative soft-thresholding algorithm based on the Least Absolute Shrinkage and Selection Operator (LASSO) minimization and convex optimization methods [15,16,17], showing that the proposed method represents the most convenient solution when combined with the sparsest multi-base representation. Note that we have observed the single-channel ECG data. In the case of multiple channels that need to be processed simultaneously, the large-scale problem in place requires high processing time, and in these circumstances, some computationally efficient multi-channel modifications of greedy algorithms could be considered, such as Simultaneous Greedy Analysis Pursuit algorithm [18].

The paper is organized as follows. A theory behind CS is given in Section 2. A combined signal sparsity model is introduced in Section 3. The hybrid CS using the combined sparsity model is proposed in Section 4. The application to the ECG signals and the experimental evaluation are provided in Section 5. The concluding remarks are given in Section 6.

2 Method

The aim of this study is to prove that the combined sparsity model can provide a compact transform domain representation of ECG signal parts which is used for an efficient compressive sensing scenario with a large amount of missing data. Namely, the ECG signals are not sparse when observed in a single transform domain and therefore it is important to provide a comprehensive approach for dealing with this type of data. Moreover, the achieved compact support representation can be important for classification, feature description and compression of ECG signals which is highly important in biomedical applications. The paper presents the general combined theoretical model for sparse signal representation, which in the case of ECG signals combines the Hermite transform and discrete Fourier transform, as well as the adapted, simple and computationally efficient compressive sensing scenario based on the combined sparsity model.

The theoretical developments are supported by the experimental evaluation on the real ECG signals from the MIT-BIH ECG Compression Test Database, while the simulations have been carried out with Matlab R2015b.

3 Compressive sensing theory—brief overview

The CS theory has gained significant attention of the research community, providing an alternative way to acquire signals in various signal processing applications. The conventional approach assumes that the signal should be sampled at rates that are at least twice the maximal signal frequency. In practice, it means that we are faced with a large amount of data to be sensed, stored and transmitted. Alternatively, the CS allows acquiring fewer samples while still being able to reconstruct the entire signal afterwards [1]. Thereby, the assumption is that the signal samples (called observations or measurements) are chosen randomly, and there exists a certain domain in which the signal of interest exhibits sparse representation. It is important to mention that biomedical imaging such as MRI was among the first and widely used applications of CS concept based on the advantages of using 2D DFT domain. Still, the applications on other types of biomedical signals are much less frequent in the literature, due to their specific nature [19,20,21].

Let us observe a signal s(n), with a full dataset of length N, that can be represented in basis Ψ using basis vectors ψi:

$$ s(n)={\sum}_{i=1}^N{x}_i{\psi}_i(n) $$
(1)

or in the matrix form s = Ψx.If most of the transform coefficients in vector x are zero (or close to zero), then we can say that x is a sparse representation of s [8]. Some of the frequently used transformation domains for CS applications are DFT, Hermite transform (HT) [22, 23], discrete cosine transform (DCT), etc. The process of acquiring random signal measurements is often modelled by a certain observation matrix Φ of order M×N , where M <  < N is a small number of random measurements selected out of N using Φ:

$$ \mathbf{y}=\boldsymbol{\Phi} \mathbf{s}, $$
(2)

while y is the vector of measurements of length M. Following (1) and (2), we have:

$$ \mathbf{y}=\boldsymbol{\Phi} \mathbf{s}=\boldsymbol{\Phi} \boldsymbol{\Psi} \mathbf{x}=\mathbf{Ax}, $$
(3)

where A = ΦΨ. Under the assumption that the sparsity, i.e., the number of non-zero elements in x is K (where K < M <  < N), the linear system of equations y=Ax can be solved using different mathematical algorithms leading to the reconstructed signal. The problem is then reduced to finding the sparsest transform vector corresponding to the measurements y:

$$ \hat{\mathbf{x}}=\min {\left\Vert \mathbf{x}\right\Vert}_0\kern0.36em \mathrm{subject}\kern0.17em \mathrm{to}\kern0.36em \mathbf{y}=\mathbf{Ax}. $$
(4)

where 0 is the ℓ0-norm. The ℓ0-norm is non-convex and which, in terms of computation, makes (4) difficult to solve. The problem of finding the sparsest solution is commonly solved by using the greedy approaches such as the OMP. Firstly, a convex relaxation of the problem is applied using the ℓ1-norm instead of the ℓ0-norm. Hence, under certain conditions, one can use the corresponding convex ℓ1-norm optimization problem as a suitable convex approximation of (4), i.e.,

$$ \hat{\mathbf{x}}=\min {\left\Vert \mathbf{x}\right\Vert}_1\kern0.36em \mathrm{subject}\kern0.17em \mathrm{to}\kern0.36em \mathbf{y}=\mathbf{Ax}. $$
(5)

The problem defined in (5) can be recast as a linear program [24], and it is known as the basis pursuit problem. Another commonly used approach that was introduced in the statistics literature is based on the LASSO using the ℓ1-penalty to promote sparsity [25]:

$$ \min {\left\Vert \mathbf{y}-\mathbf{Ax}\right\Vert}_2^2\kern0.36em \mathrm{subject}\kern0.17em \mathrm{to}\kern0.36em {\left\Vert \mathbf{x}\right\Vert}_1<t, $$
(6)

where t is a nonnegative real parameter, while (6) represents a quadratic program.

If x is not sparse enough meaning that K>M or even K close to N, then the observed system of equations is underdetermined. Therefore, it is of high importance to identify the sparsity domain for the signal to be reconstructed. Obviously, for certain signals such as the ECG signal, this condition may be a severe limitation, since it is not appropriately sparse in any of the mentioned domains.

4 Combined sparsity model

Sparse signal reconstruction in CS assumes that a signal has a compact (or compressible) representation in certain transform domain. In other words, the under-sampled signal can be reconstructed from its incoherent measurements only if it can be represented by using a small number of significant coefficients in an appropriate transform basis. When exploring the sparsity property, signals are usually observed in a single transformation domain. Here, we will observe the case when a signal is not sparse in any known transform basis, but can be represented as a sparse set of combined basis functions.

Let us firstly observe the additive signal model which is common in practice:

$$ s(n)={s}_1(n)+{s}_2(n)+\dots +{s}_P(n)=\sum \limits_{i={i}_1}^{i_{K_1}}{x}_i^{\boxed{1}}{\psi}_i^{\boxed{1}}(n)+\sum \limits_{j={j}_1}^{j_{K_2}}{x}_j^{\boxed{2}}{\psi}_j^{\boxed{2}}(n)+\dots +\sum \limits_{l={l}_1}^{l_{K_P}}{x}_l^{\boxed{P}}{\psi}_l^{\boxed{P}}(n), $$
(7)

where s1(n), s2(n),…, sP(n) are of the same length N, and s1(n) is sparse in \( {\boldsymbol{\Psi}}^{\boxed{1}} \), s2(n) is sparse in \( {\boldsymbol{\Psi}}^{\boxed{2}} \), etc. The signal is represented using P different transform basis\( {\boldsymbol{\Psi}}^{\boxed{p}} \)defined by the basis vectors: \( \left\{{\psi}_1^{\boxed{p}},{\psi}_2^{\boxed{p}},\dots, {\psi}_N^{\boxed{p}}\right\} \), p=1,…, P. The signal of length N contains K=K1+K2+…+KP components (Kp<<N and K<N), such that:

- K1 components belong to the basis \( {\boldsymbol{\Psi}}^{\boxed{1}} \),

- K2 components belong to the basis \( {\boldsymbol{\Psi}}^{\boxed{2}} \),

- while KP components belong to the basis \( {\boldsymbol{\Psi}}^{\boxed{P}} \).

In that sense, we might observe that a signal s(n) is not sparse in any of the transform basis \( {\boldsymbol{\Psi}}^{\boxed{p}} \) when observed individually, but some parts of the signal could be observed as sparse in appropriate basis \( {\boldsymbol{\Psi}}^{\boxed{p}} \). This signal model corresponds to the concatenation concept introduced in [26], with an example of a linear combination of spikes and sines that will be sparse when concatenating coordinate and Fourier bases. However, the standard CS framework cannot be applied if there is a certain correlation between columns of concatenated basis [26].

Nevertheless, in the case of the ECG signals, we are dealing with a slightly different signal model obtained as a combination of different signal segments (combined signal model):

$$ s(n)=\left[{s}_1\left({n}_1\right),\kern0.36em {s}_2\left({n}_2\right),\kern0.36em \dots, {s}_P\left({n}_P\right)\right], $$
(8)

where \( {s}_1\left({n}_1\right)=\sum \limits_{i={i}_1}^{i_{K_1}}{x}_i^{\boxed{1}}{\psi}_i^{\boxed{1}}\left({n}_1\right), \)…, \( {s}_P\left({n}_P\right)=\sum \limits_{l={l}_1}^{l_{K_P}}{x}_l^{\boxed{P}}{\psi}_l^{\boxed{P}}\left({n}_P\right), \) and each segment has its own duration: s1(n1) is N1 samples long, while sP(nP) is NP samples long. Namely, each cardiac cycle within the ECG signal is composed of consecutive waves, where the most prominent part is the QRS complex, while the other parts are known as P, T and U waves.

In analogy with the additive model, we might assume that in the combined model defined by (8), the signal is composed of K1 components belonging to the basis \( {\boldsymbol{\Psi}}^{\boxed{1}} \), K2 components belonging to the basis \( {\boldsymbol{\Psi}}^{\boxed{2}} \), etc.

5 Multi-base compressive sensing using combined sparsity model

In the CS context, instead of a full-length signal s(n), we are dealing with a random set of M measurements, where M <  < N. The measurement process can be defined as:

$$ \mathbf{y}=\boldsymbol{\Phi} \mathbf{s}=\left[\begin{array}{c}{\boldsymbol{\Phi}}_1{\mathbf{s}}_1\\ {}{\boldsymbol{\Phi}}_2{\mathbf{s}}_2\\ {}\dots \\ {}{\boldsymbol{\Phi}}_P{\mathbf{s}}_P\end{array}\right], $$
(9)

where y denotes measurement vector, while s1, s2,…, sP are different parts of a signal vector. Having in mind that sp is sparse when represented in\( {\boldsymbol{\Psi}}^{\boxed{p}} \), for p=1,…, P, then we can write \( {\mathbf{s}}_p={\boldsymbol{\Psi}}^{\boxed{p}}{\mathbf{x}}^{\boxed{p}} \). Consequently, (9) becomes:

$$ \mathbf{y}=\boldsymbol{\Phi} \left[\begin{array}{c}{\boldsymbol{\Psi}}^{\boxed{1}}{\mathbf{x}}^{\boxed{1}}\\ {}{\boldsymbol{\Psi}}^{\boxed{2}}{\mathbf{x}}^{\boxed{2}}\\ {}\dots \\ {}{\boldsymbol{\Psi}}^{\boxed{P}}{\mathbf{x}}^{\boxed{P}}\end{array}\right]=\left[\begin{array}{c}{\mathbf{A}}^{\boxed{1}}{\mathbf{x}}^{\boxed{1}}\\ {}{\mathbf{A}}^{\boxed{2}}{\mathbf{x}}^{\boxed{2}}\\ {}\dots \\ {}{\mathbf{A}}^{\boxed{P}}{\mathbf{x}}^{\boxed{P}}\end{array}\right], $$
(10)

with \( {\boldsymbol{\Psi}}^{\boxed{p}} \) being NP×NP transform matrix and \( {\mathbf{x}}^{\boxed{p}} \)is an NP × 1 vector of transform coefficients and \( {\mathbf{A}}^{\boxed{p}}={\boldsymbol{\Phi} \boldsymbol{\Psi}}^{\boxed{p}} \). Alternatively, we may write it in the matrix form as follows:

$$ {\mathbf{y}}_{M\times 1}={\left[\begin{array}{cccc}{{\mathbf{A}}^{\boxed{1}}}_{M_1\times {N}_1}& \mathbf{0}& \dots & \mathbf{0}\\ {}\mathbf{0}& {{\mathbf{A}}^{\boxed{2}}}_{M_2\times {N}_2}& \dots & \mathbf{0}\\ {}\dots & \dots & \dots & \dots \\ {}\mathbf{0}& \dots & \dots & {{\mathbf{A}}^{\boxed{P}}}_{M_P\times {N}_P}\end{array}\right]}_{M\times N}{\left[\begin{array}{c}{{\mathbf{x}}^{\boxed{1}}}_{N_1\times 1}\\ {}{{\mathbf{x}}^{\boxed{2}}}_{N_2\times 1}\\ {}\dots \\ {}{{\mathbf{x}}^{\boxed{P}}}_{N_P\times 1}\end{array}\right]}_{N\times 1} $$

i.e., y = AcsX. (11)

The combined transform domain representation is formed as:

$$ \mathbf{X}=\left[\;\begin{array}{c}{\mathbf{x}}^{\boxed{1}}\\ {}{\mathbf{x}}^{\boxed{2}}\\ {}\dots \\ {}{\mathbf{x}}^{\boxed{P}}\end{array}\;\right]. $$
(12)

Note that in the case of additive signal model the concatenated CS matrix would be \( {\mathbf{A}}^{CS}=\left[{\mathbf{A}}^{\boxed{1}}\kern0.24em {\mathbf{A}}^{\boxed{2}}\dots {\mathbf{A}}^{\boxed{P}}\right] \), where each of the sub-matrices is of size N×N. The reconstruction problem can now be defined as follows:

$$ {\displaystyle \begin{array}{c}\min {\left\Vert {\mathbf{x}}^{\boxed{1}}\right\Vert}_1\kern0.48em \wedge \kern0.36em \min {\left\Vert {\mathbf{x}}^{\boxed{2}}\right\Vert}_1\dots \kern0.36em \wedge \kern0.36em \min {\left\Vert {\mathbf{x}}^{\boxed{P}}\right\Vert}_1\kern0.36em \\ {}\kern0.24em \mathrm{subject}\ \mathrm{to}\kern0.49em \mathbf{y}={\mathbf{A}}^{CS}\mathbf{X}\end{array}}, $$
(13)

where the symbol is used to denote conjunction, i.e., logical and operation. This problem can be solved using the OMP algorithm as follows:

figure a

The core of the algorithm is a standard OMP algorithm which is used in the context of multi-base approach and reconstruction of different signal parts \( {\mathbf{x}}^{\boxed{1}} \),\( {\mathbf{x}}^{\boxed{2}} \),…,\( {\mathbf{x}}^{\boxed{P}} \) (extracted at line 11). Note that the problem defined by (13) can be solved by applying other existing reconstruction algorithms, such as convex optimization algorithms or thresholding methods. However, it will be shown that in the application with the ECG signal reconstruction, the OMP provides more accurate results comparing to other classical approaches. Furthermore, the OMP is more convenient due to its realization simplicity and the execution time when used in engineering applications [27].

In the application with ECG signals, the combination of two basis sets will be considered in the sequel, namely the set of discrete Hermite functions combined with the discrete Fourier basis. It has been proven in [9, 10] that the discrete Hermite functions provide the most compact representation of the most prominent ECG segments, i.e., QRS complexes having transient signal characteristics, because of the high similarity between QRS complexes and Hermite functions. Moreover, for this purpose, the discrete Hermite transform outperforms the DFT, DCT, but also the DWT [9]. The remaining parts of ECG signal are much smoother and locally quasi-periodic in nature as can be seen in Fig. 1, and consequently, the DFT basis appears as the most suitable choice for these signal parts.

Fig. 1
figure 1

Analysed parts of ECG signal and its suitable compact support representations

Finally, we would like to remark that the proposed multi-base approach combined with the multi-structural signal recovery [13], could be considered as an interesting future topic and extension of this work. Namely, the reconstruction problem can be further extended as a linear combination of L1 and TV-norm minimization [13], to explore the advantages of additional structures (at the cost of higher algorithm complexity). It could be also of particular importance in the sense of generalization for different types of biomedical signals. However, the scalars in the linear combination of different constraints need to be determined optimally.

6 Application to ECG signals

In order to demonstrate the importance of using the proposed combined sparsity domain for ECG signal analysis, we observed the real-world signals obtained from the database given in [28]. The signals are sampled with frequency 1/250 Hz. The amplitudes are scaled by 1/400 in order to have vertical axes expressed in [mV], as specified in [28]. Selected part of ECG signal is composed of different segments appearing consecutively within the signal: P, Q, R, S, T. Note that it is sufficient to observe only one combination of segments to test the proposed method, since this combination repeats over the signal (Fig. 1a). Therefore, we have (1) the segment of ECG signal consisting of T and P wave (Fig. 1b), and (2) QRS complex/segment itself (Fig. 1c). The QRS segments can be identified using some of the common algorithms [29]. In the simplified form, after detecting R peaks as the local maxima, one can use an empirically determined number of samples on the left and right side of R peaks to identify the QRS complex (e.g. 25 samples on each side for the set of considered signals). The remaining parts consist of T and P waves.

Next, we apply the combined sparsity model to highlight the importance of the proposed approach. For the simplicity, in this example, we used the a priori assumption that the sparse representation of QRS complex can be achieved using the HT [9, 10], while for the remaining parts the testing was performed using other standard basis functions (DFT, DCT, etc.). Consequently, it is shown that the first segment has a compact support in the DFT domain (Fig. 1b), while the second segment is sparse in the HT domain (Fig. 1c).

This means that the analysed signal can be represented by a small set of combined DFT and HT coefficients, while the remaining coefficients are zeros. In that sense, we have concentrated the signal description into few coefficients that can be used as relevant signal features in other applications. For the comparison of achieved results, we can observe the selected part of the signal in separated domains (in DFT or HT, respectively). Namely, the individual representations (Fig. 2a, b) contain large number of non-zero coefficients and cannot be considered sparse as it is the case with the proposed hybrid (combined) representation (Fig. 2c). Consequently, in order to provide compact support representation (for compression or CS purpose), the hybrid combined DFT-HT should be employed, as shown in Fig. 2c. One can thus conclude that the hybrid combined DFT-HT transform provides the most suitable representation for ECG segments ensuring the lowest possible number of non-zero coefficients.

Fig. 2
figure 2

a DFT of entire analysed ECG part. b HT of entire analysed ECG segment. c Hybrid combined DFT-HT transform

Moreover, in order to explore the concept of CS, instead of full dataset we observe the signal with missing samples. According to (11), the measurement vector is given by:

$$ {\mathbf{y}}_{M\times 1}={\left[\begin{array}{cc}{\mathbf{A}}^{\boxed{1}}\;& \mathbf{0}\\ {}\mathbf{0}& {\mathbf{A}}^{\boxed{2}}\;\end{array}\right]}_{M\times N}\left[\begin{array}{c}{\mathbf{x}}^{\boxed{1}}\kern0.24em \\ {}{\mathbf{x}}^{\boxed{2}}\;\end{array}\right] $$
(14)

where \( {\mathbf{A}}^{\boxed{1}} \) denotes a random partial DFT matrix and \( {\mathbf{A}}^{\boxed{2}} \)denotes a random partial HT matrix. Since \( {\mathbf{x}}^{\boxed{1}} \) and \( {\mathbf{x}}^{\boxed{2}} \) are approximately of the same length N/2 (N is the total segment length), it follows that \( {\mathbf{A}}^{\boxed{1}} \) and \( {\mathbf{A}}^{\boxed{2}} \) are of the same size M/2×N/2. The measurement vector is supplemented by zeros at the positions of missing values and it is shown in Fig. 3a.

Fig. 3
figure 3

a Signal with missing samples. b Initial hybrid transform of signal with missing samples

The initial hybrid transform is shown in Fig. 3b, where the sparsity is ruined as a consequence of dealing with the missing samples (60% of samples are missing).

As a reference signal (desired signal) we use the original signal with full set of samples and the corresponding reference hybrid transform (Fig. 4, upper row). The results of applying the proposed signal reconstruction algorithm are shown in Fig. 4, bottom row (reconstructed time domain signal and the corresponding hybrid transform). It can be observed from the figure that the reconstructed data highly match the original data, confirming the high reconstruction accuracy.

Fig. 4
figure 4

Original and reconstructed signal and the corresponding hybrid transforms

7 Results and discussion

The influence of the number of available samples to the quality of reconstruction is expressed in terms of the mean squared error (MSE) calculated for different realizations, i.e., different random combinations of available samples. The MSE between the original (desired) and the reconstructed signals are shown in Fig. 5 for different percentage of available samples. In general, when observing the averaged results from different realizations, we may conclude that the number of available samples should be at least 40% in order to assure the acceptable quality of reconstructed signal. However, in CS scenarios it is usually possible to apply the most efficient random combination of available samples that would allow the high-quality reconstruction even for the lower percentage of available measurements.

Fig. 5
figure 5

The influence of the number of available samples to the reconstruction MSE

7.1 Comparison results

In order to assess the performance of the proposed approach, in this part, we examine the reconstruction using a single transform, namely, the HT (Fig. 6a) or the DFT (Fig. 6b). The signal with missing samples and the corresponding transform domain representations are shown in the upper row in Fig. 6. Also, the original signal with full set of samples and the corresponding transforms are shown in the middle row in Fig. 6, while the reconstructed signal and the corresponding transforms (HT and the DFT) are shown in the bottom row in Fig. 6. The results indicate that the reconstructed signal differs significantly from the original one in both observed cases.

Fig. 6
figure 6

Compressive sensing reconstruction results: a using Hermite transform, b using DFT

Next, we provide a comparison between the proposed OMP based method (with hybrid transform) and other commonly used algorithms, such as (1) the primal-dual interior point method implemented within the package l1- magic [16], and (2) the iterative soft-thresholding algorithm (ISTA) [30] (which is based on the LASSO minimization). The reconstruction results using the two considered algorithms are shown in Fig. 7. The original (desired) signal and its transform are given in Fig. 7a. The signal reconstructed using l1- magic algorithm is shown in Fig. 7b, while the reconstructed signal obtained using LASSO-ISTA algorithm is shown in Fig. 7c. Based on the reconstructed signals, one can observe that the results obtained using these two algorithms are significantly worse that the result obtained by employing the proposed method (Fig. 4). Moreover, it is important to highlight that, since the ECG signals are used in diagnosis of different heart disorders, the two algorithms (l1- magic and LASSO-ISTA) cannot be used because they produce errors higher than the acceptable threshold in biomedical applications. To support this conclusion, the numerical comparison is also provided in terms of the MSE and it is given in Table 1. Note that the MSE for the proposed algorithm is very low, meaning that the reconstructed signal is approximately the same to the original (desired) signal, while the same cannot be said for l1-magic nor LASSO-ISTA. The CPU times for each of considered algorithms is given in Table 1 as well (the evaluation is performed per ECG signal segments of 100 samples, corresponding approximately to one cardiac cycle).

Fig. 7
figure 7

The result of signal reconstruction: a Referent signal—original signal and its hybrid transform. b Reconstructed signal using l1-magic algorithm and hybrid transform. c Reconstructed signal using LASSO-ISTA algorithm with hybrid transform

Table 1 Comparison Results in Terms of MSE and CPU time (for 100 samples)

8 Conclusion

In this work, the CS algorithm for data reconstruction was introduced based on the combined (hybrid or multi-base) sparse representation. The main objective here was to enhance the sparsity of ECG signals representation and to open up new perspectives for CS not only as an emerging technology, but also for standard signal compression and classification using a lower number of relevant features. The general concept of the combined sparsity model was introduced, while the particular methodology was developed to identify signal components belonging to different sources. In this way, we were able to provide an optimal representation and CS reconstruction of ECG signals. The main contributions of the proposed solution are twofold. Firstly, it provides the sparsest (compact) representation of ECG signals that cannot be sparsely represented in any of the commonly used transformation domains when observed individually. Namely, the state of the art methods, observe only QRS complexes when considering signal compression, while the other parts of the signal are not treated. This is because these parts cannot be appropriately represented in the same transform basis as the QRS complexes. In that sense, we used the combined multi-base transform, providing improved representation compared to the commonly used domains. In particular, the combined transform is concentrated in just a few coefficients that can represent the signal accurately, while the rest of the coefficients are zeros. Secondly, the proposed solution allows an efficient CS scenario for ECG signals, where it was shown that the exact signal reconstruction is possible from only a small percent of acquired measurements. The future work can be focus toward the design of improved machine learning and neural networks based classification of ECG signals using a small set of features from the achieved hybrid sparse representation.

Availability of data and materials

Data sharing not applicable to this article as no datasets were generated or analysed during the current study.

Abbreviations

CS:

Compressive sensing

DFT:

Discrete Fourier transform

DCT:

Discrete cosine transform

DWT:

Discrete wavelet transform

ECG:

Electrocardiogram

HT:

Hermite transform

LPC:

Linear prediction coding

LASSO:

Least Absolute Shrinkage and Selection Operator

MSE:

Mean squared error

OMP:

Orthogonal matching pursuit

References

  1. Y. Eldar, G. Kutyniok, Compressed Sensing: Theory and Applications (Cambridge University Press, 2012)

    Book  Google Scholar 

  2. E. Sejdić, L.A. Lipsitz, Necessity of noise in physiology and medicine. Comput. Methods Prog. Biomed. 111(2), 459–470 (2013)

    Article  Google Scholar 

  3. J. Lerga, V. Sucic, B. Boashash, An efficient algorithm for instantaneous frequency estimation of nonstationary multicomponent signals in low SNR. EURASIP J. Adv. Signal Process,. 725189 (2011), 16 pages

  4. M. Davenport, M. Duarte, Y. Eldar, G. Kutyniok, Introduction to Compressed Sensing, in Compressed Sensing: Theory and Applications (Cambridge University Press, Cambridge, 2012)

    Google Scholar 

  5. S. Foucart, H. Rauhut, A Mathematical Introduction to Compressive Sensing (Springer, 2013)

    Book  Google Scholar 

  6. I. Orović, V. Papić, C. Ioana, X. Li, S. Stanković, Compressive sensing in signal processing: Algorithms and transform domain formulations. Math. Probl. Eng., 7616393 (2016), 16 pages

  7. I. Orović, N. Lekić, N.M. Beko, S. Stanković, An analog hardware solution for compressive sensing reconstruction using gradient-based method. EURASIP J. Adv. Signal Process 61 (2019). https://doi.org/10.1186/s13634-019-0656-y, https://doi.org/10.1186/s13634-019-0656-y

  8. E. Candès, J. Romberg, Sparsity and incoherence in compressive sampling. Inverse Problems 23(3), 969–985 (2006)

    Article  MathSciNet  Google Scholar 

  9. A. Sandryhaila, S. Saba, M. Puschel, J. Kovacevic, Efficient compression of QRS complexes using Hermite expansion. IEEE Trans. on Signal Process. 60(2), 947–955 (2012)

    Article  MathSciNet  Google Scholar 

  10. M. Brajović, I. Orović, M. Daković, S. Stanković, On the parameterization of hermite transform with application to the compression of QRS complexes. Signal Process. 131, 113–119 (2017)

    Article  Google Scholar 

  11. Y. Wang, Z. Xu, G. Li, L. Chang, C. Hong, Compressive Sensing Framework for Speech Signal Synthesis Using a Hybrid Dictionary (Int. Congr. on Image and Signal Process, CISP, 2011)

    Book  Google Scholar 

  12. G. Coluccia, S.K. Kuiteing, A. Abrardo, M. Barni, E. Magli, Progressive compressed sensing and reconstruction of multidimensional signals using hybrid transform/prediction sparsity model. IEEE Trans. Emerg. Sel. Topics Circuits Syst 2(3), 340–352 (2012)

    Article  Google Scholar 

  13. Y. Liu, M. De Vos, I. Gligorijevic, V. Matic, Y. Li, S. Van Huffel, Multi-structural signal recovery for biomedical compressive sensing. IEEE Trans. Biomed. Eng. 60(10), 2794–2805 (2013)

    Article  Google Scholar 

  14. J. Tropp, A. Gilbert, Signal recovery from random measurements via orthogonal matching pursuit. IEEE Trans. Inf. Theory 53(12), 4655–4666 (2007)

    Article  MathSciNet  Google Scholar 

  15. M. Brajović, I. Orović, M. Daković, S. Stanković, Gradient-based signal reconstruction algorithm in the Hermite transform domain. Electron. Lett. 52(1), 41–43 (2016)

    Article  Google Scholar 

  16. E. Candes, J. Romberg, ℓ1-Magic: Recovery of Sparse Signals Via Convex Programming (2005) www.acm.caltech.edu/l1magic/downloads/l1magic.pdf

    Google Scholar 

  17. S. Boyd, L. Vandenberghe, Convex Optimization (University Press, Cambridge, 2004)

    Book  Google Scholar 

  18. Y. Avonds, Y. Liu, S. Van Huffeel, Simultaneous Greedy Analysis Pursuit for Compressive Sensing of Multi-Channel ECG Signals (Proc. of the 36th Annual Int. Conf. of the IEEE Engineering in Medicine and Biology Society (EMBC '14), Chicago, 2014), pp. 6385–6388

    Google Scholar 

  19. E. Sejdić, C.M. Steele, T. Chau, Scaling analysis of baseline dual-axis cervical accelerometry signals. Comput. Methods Prog. Biomed. 103(3), 113–120 (2011)

    Article  Google Scholar 

  20. E. Sejdić, F. Movahedi, Z. Zhang, A. Kurosu, J.L. Coyle, The effects of compressive sensing on extracted features from tri-axial swallowing accelerometry signals. Proc. SPIE the Int. Society for Opt. Eng, 9857:985704, (2016)

  21. M. Balouchestani, S. Krishnan, Robust compressive sensing algorithm for wireless surface electromyography applications. Biomed. Signal Process. and Control 20, 100–106 (2015)

    Article  Google Scholar 

  22. G. Leibon, D.N. Rockmore, W. Park, R. Taintor, G.S. Chirikjian, A fast Hermite transform. Theor. Comput. Sci. 409(2), 211–228 (2008)

    Article  MathSciNet  Google Scholar 

  23. A. Krylov, D. Korchagin, in Image Analysis and Recognition, ICIAR 2006, Lecture Notes in Computer Science, ed. by A. Campilho, M. S. Kamel. Fast Hermite projection method, vol 4141 (Springer, Berlin, Heidelberg, 2006)

    Google Scholar 

  24. E. Candes, T. Tao, Decoding by linear programming. IEEE Trans. Inform. Theory 51(12), 4203–4215 (2005)

    Article  MathSciNet  Google Scholar 

  25. R. Tibshirani, Regression shrinkage and selection via the lasso. J. Royal Stat. Soc. (Series B) 58(1), 267–288 (1996)

    MathSciNet  MATH  Google Scholar 

  26. E. Candes, Y. Eldar, D. Needell, P. Randall, Compressed sensing with coherent and redundant dictionaries. Appl. Comput. Harmon. Anal. 31(1), 59–73 (2011)

    Article  MathSciNet  Google Scholar 

  27. A. Kulkarni, T. Mohsenin, Low overhead architectures for OMP compressive sensing reconstruction algorithm. IEEE Trans. Circuits Syst. I Reg. Pap. 64, 1468–1480 (2017)

    Article  Google Scholar 

  28. MIT-BIH ECG Compression Test Database [Online]: http://www.physionet.org/physiobank/database/cdb. Accessed Jan 2020.

  29. J. Pan, W. Tompkins, A real-time QRS detection algorithm. IEEE Trans. Biomed. Eng. 32(3), 230–236 (1985)

    Article  Google Scholar 

  30. B. Amir, M. Teboulle, A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM J. Imaging Sci. 2(1), 183–202 (2009)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgements

The authors would like to thank Dr. Miloš Brajović for the assistance during the preparation of some experimental results. This research was partially funded by Fundação para a Ciência e a Tecnologia under Projects UIDB/04111/2020, foRESTER PCIF/SSI/0102/2017, and CEECIND/01830/2018.

Funding

This research was partially funded by Fundação para a Ciência e a Tecnologia under Projects UIDB/04111/2020, foRESTER PCIF/SSI/0102/2017, and CEECIND/01830/2018.

Author information

Authors and Affiliations

Authors

Contributions

All authors made contributions in the discussions, analyses and implementation of the proposed solution. I. Orovic also contributed in writing the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Irena Orovic.

Ethics declarations

Consent of publication

The manuscript does not contain any individual person’s data in any form (including individual details, images or videos) and therefore the consent to publish is not applicable to this article.

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Orovic, I., Stanković, S. & Beko, M. Multi-base compressive sensing procedure with application to ECG signal reconstruction. EURASIP J. Adv. Signal Process. 2021, 18 (2021). https://doi.org/10.1186/s13634-021-00728-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13634-021-00728-4

Keywords