 Research
 Open Access
 Published:
Simultaneous encryption and compression of medical images based on optimized tensor compressed sensing with 3D Lorenz
BioMedical Engineering OnLine volume 15, Article number: 118 (2016)
Abstract
Background
The existing techniques for simultaneous encryption and compression of images refer lossy compression. Their reconstruction performances did not meet the accuracy of medical images because most of them have not been applicable to threedimensional (3D) medical image volumes intrinsically represented by tensors.
Methods
We propose a tensorbased algorithm using tensor compressive sensing (TCS) to address these issues. Alternating least squares is further used to optimize the TCS with measurement matrices encrypted by discrete 3D Lorenz.
Results
The proposed method preserves the intrinsic structure of tensorbased 3D images and achieves a better balance of compression ratio, decryption accuracy, and security. Furthermore, the characteristic of the tensor product can be used as additional keys to make unauthorized decryption harder.
Conclusions
Numerical simulation results verify the validity and the reliability of this scheme.
Background
In recent years, numerous studies on encryption of medical images, such as computed tomography (CT) and magnetic resonance imaging (MRI), have been reported [1–6], although most of them did not consider compression during encryption. The storage, transmission, and retrieval of massive bioinformation should meet several compulsory requirements [7]: (1) high efficiency for rapid transmission and prompt retrieval; (2) strict information security to guarantee users’ privacy; and (3) high data fidelity to preserve the pathological information. It requires decreasing the quantity of data to be transmitted (compression) and protecting such data against unauthorized access (encryption). Therefore, simultaneous compression and encryption technology of medical images that are represented as threedimensional (3D) volumes has additional meanings.
Existing simultaneous compression and encryption algorithms are typically applied to ordinal images rather than medical images, because they refer to lossy compression. Alfalou et al. proposed a series of representative algorithms for the simultaneous compression and encryption of 3D images. The latest and most effective algorithm is based on spectral fusion and discrete cosine transform (DCT) [8]. However, the decryption error increases rapidly along with the increase of the number of images, indicating that it cannot handle large amounts of images simultaneously. Emerging algorithms for simultaneous encryption and compression are based mainly on compressed sensing (CS), which can activate compression during the sampling process [9]. An example being Valerio et al., who proposed a multiclass encryption by CS to withstand the common attack [10, 11]. To further enhance security, CSbased encryption algorithms were constructed by combining the chaos map and some optical encryption techniques, such as double random phase encryption (DRPE), fractional Fourier transform (FrFT), and fractional Mellin transform (FrMT) [12–19].
The medical images are different from other images because of their particular properties. There are legal and strict regulations applied to medical multimedia information due to the health of a patient depending on the correctness and accuracy of this information [20]. The quality of the decrypted and compressed data must be adequate to allow for a correct diagnosis when it is reconstructed. However, the existing algorithms did not meet this requirement because most of them have not been applicable to 3D images intrinsically represented by tensors. Conventional CS theory relies on data representation in the form of onedimensional vectors. Application of CS to higher dimensional data representation is typically performed by conversion of the data to very long vectors that must be measured using very large sampling matrices, thus destroying the intrinsic structure and imposing a huge memory burden.
Recently, Cesar et al. propose a tensor CS (TCS) based on higher order singular value decomposition (HOSVD) that introduces a direct reconstruction formula to recover a tensor from a set of multilinear projections, which are obtained by multiplying the data tensor by a different sensing matrix in each mode [21]. This HOSVDbased TCS achieved more accurate and efficient reconstruction results when compared to other existing sparsitybased TCS methods [22–24]. Indeed, we believe that, if it was used to design TCSbased encryption of 3D images better performance would occur.
We further introduce alternating least squares (ALS) into HOSVDbased TCS [21], and control the measurement matrices by 3D Lorenz [25–27]. Such a simultaneous compression and encryption algorithm for 3D medical images has two main advantages: (1) the preservation of intrinsic structures of the tensor data for the purpose of reducing the decryption error and increasing the compression ratio; (2) the keys consist of those generated by tensor decomposition, and 3D Lorenz. Particularly, the order of the tensor product used in the TCS can be used as additional keys to make unauthorized decryption harder.
This paper is organized as follows: in “Theory” section, the related notation, definition and basic results used throughout the paper, are introduced; in “Proposed encryption” section, the encryption and decryption algorithms are proposed; in “Numerical simulation results” section, several numerical results based on 3D lung CT images are provided, to corroborate our theoretical results and evaluate the stability and robustness of our proposed scheme, in “Conclusion” section, the main conclusions drawn from the present work are outlined.
Theory
HOSVD
The higherorder singular value decomposition (HOSVD) provides a generalization of the lowrank approximation of matrices to the case of tensors [28–30]. To facilitate the distinction between scalars, vectors, matrices and higher dimensional tensors, the type of a given quantity will be reduced by its representation: scalars are denoted by lowercase letters (\(a\)), vectors are written as capitals (\({\mathbf{a}}\)), matrices corresponding to boldface capitals (\({\mathbf{A}}\)) and tensors are written as calligraphic letters (\({\mathbf{\mathcal{A}}}\)).
A tensor is a multidimensional array with the number of modes represented by the tensor order. For instance, tensor \({\mathbf{\mathcal{A}}} \in R^{{M_{1} \times \cdots \times M_{d} }}\) has order \(d\) and the dimension of its ith mode is \(M_{i}\).

1.
Mode\(i\) product: A mode\(i\) product of a tensor \({\mathbf{\mathcal{A}}}\) and a matrix \(\varPhi \in R^{{M_{i} \times m}}\) is denoted by \({\mathbf{\mathcal{A}}} \times_{i} \varPhi\) and is of size \(m \times \left( {M_{1} \cdots M_{i  1} \cdot M_{i + 1} \cdots M_{d} } \right)\) matrix.

2.
Mode\(i\) unfolding: The mode\(i\) unfolding \({\mathbf{A}}_{(i)}\) of \({\mathbf{\mathcal{A}}}\) arranges the mode\(i\) fibers to be the columns of the resulting matrix.

3.
HOSVD: The decomposition and reconstruction of \({\mathbf{\mathcal{A}}}\) can be written as the product:
$$\left\{ \begin{aligned} {\mathbf{\mathcal{W}}} &= {\mathbf{\mathcal{A}}} \times_{1} \varPhi_{1}^{T} \cdots \times_{{M_{d} }} \varPhi_{{M_{d} }}^{T} \\ {\mathbf{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\frown}$}}{\mathcal{A}} }} &= {\mathbf{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\frown}$}}{\mathcal{W}} }} \times_{1} \varPhi_{1} \cdots \times_{{M_{d} }} \varPhi_{{M_{d} }} \\ \end{aligned} \right.$$(1)where \(\varPhi_{i} \in R^{{M_{i} \times m_{i} }}\), and \({\mathbf{\mathcal{W}}}\) is a complex \(\left( {m_{1} \times m_{2} \times \cdots \times m_{d} } \right)\)tensor of which the subtensors obtained by corresponding singular values.

4.
TuckerTCS: in [21], a more stable, robust and accuracy tensor reconstruction of CS is proposed:
$${\mathbf{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\frown}$}}{\mathcal{A}} }}\text{ = }{\mathbf{\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\frown}$}}{\mathcal{W}} }} \times_{1} {\mathbf{Z}}_{1} {\mathbf{W}}_{(1)}^{\dag } \cdots \times_{{M_{d} }} {\mathbf{Z}}_{{M_{d} }} {\mathbf{W}}_{{(M_{d} )}}^{\dag }$$(2)where “\(\dag\)” stands for the MP pseudoinverse of a matrix. We assume that the following sets of compressive multiway measurements \({\mathbf{Z}}^{(n)}\) are available:
$${\mathbf{Z}}^{(n)} = {\mathbf{\mathcal{A}}} \times_{1} \varPhi_{1}^{T} \times_{2} \cdots \times_{n  1} \varPhi_{n  1}^{T} \times_{n + 1} \varPhi_{n + 1}^{T} \times_{n + 2} \cdots \times_{{M_{d} }} \varPhi_{{M_{d} }}^{T}$$(3)$${\mathbf{Z}}_{n} = \left( {{\mathbf{Z}}^{(n)} } \right)_{(n)}$$(4)
3D Lorenz
Mohmad et al. [25, 26] propose a 3D discrete Lorenz system, which has a high order and also low complexity when implemented in digital hardware. The discrete Lorenz attractor employed here is given by the following difference equations
where U, V, W are three state variables, A, B, C are parameters, and \(g1,\;g2,\;g3\) are gains (step size). The calculating method of (5) is finite difference.
Proposed encryption
The proposed system can be split into encryption and decryption algorithms as illustrated in Fig. 1. The compression and decompression procedures are embedded in the encryption and decryption, respectively.
Encryption
For the initial 3D image \({\mathbf{\mathcal{A}}} \in R^{{M_{1} \times M_{2} \times M_{3} }}\), the encryption process consists of the following steps:

1.
Initialize randomly the three Gaussian sensing matrices \(\varPhi_{i}^{(0)} \in R^{{M_{i} \times m_{i} }}\) \((m_{i} < M_{i} ,\;i = 1,2,3)\). To accurately decrypt \({\mathbf{\mathcal{A}}}\), the optimal \(\varPhi_{i}^{{}}\) should satisfy:
$$\{ \varPhi_{1}^{*} ,\;\varPhi_{2}^{*} ,\;\varPhi_{3}^{*} \} = \arg \mathop {\hbox{min} }\limits_{{}} \left\ {{\mathbf{\mathcal{A} }}  {\mathbf{\mathcal{W}}} \times_{1} \varPhi_{1} \times_{2} \varPhi_{2} \times_{3} \varPhi_{3} } \right\_{F}^{2}$$(6)As in [28], this problem can be converted to
$$\{ \varPhi_{1}^{*} ,\;\varPhi_{2}^{*} ,\;\varPhi_{3}^{*} \} = \arg \mathop {\hbox{max} }\limits_{{}} \left\ {{\mathbf{\mathcal{A}}} \times_{1} \varPhi_{1}^{T} \times_{2} \varPhi_{2}^{T} \times_{3} \varPhi_{3}^{T} } \right\_{F}^{2}$$(7)To solve this problem, it is sufficient to find \(\varPhi_{i}\)’s satisfying \(\varPhi_{i}^{T} \varPhi_{i} = I\). The reconstruction algorithm as Eq. (2) of HOSVDbased TCS achieved a more accurate solution than that as Eq. (1) of HOSVD. To further improve the reconstruction accuracy, we use an alternating least squares (ALS) approach to solve Eq. (7).

2.
For \(k = 0\), iterate Eqs. (8)–(11) until \(\varPhi_{i}^{{}}\) converges or the maximum iteration is achieved:
$$\left\{ \begin{aligned} {\mathbf{Z}}^{(1)} = {\mathbf{\mathcal{A}}} \times_{2} \varPhi_{2}^{(k)T} \times_{3} \varPhi_{3}^{(k)T} \hfill \\ {\mathbf{Z}}^{(2)} = {\mathbf{\mathcal{A}}} \times_{1} \varPhi_{1}^{(k)T} \times_{3} \varPhi_{3}^{(k)T} \hfill \\ {\mathbf{Z}}^{(3)} = {\mathbf{\mathcal{A}}} \times_{1} \varPhi_{1}^{(k)T} \times_{2} \varPhi_{2}^{(k)T} \hfill \\ \end{aligned} \right.$$(8)$${\mathbf{Z}}_{i} = \left( {{\mathbf{Z}}^{(i)} } \right)_{(i)}$$(9)$${\mathbf{Z}}_{i} \approx {\mathbf{U}}_{{i,m_{i} }} {\varvec{\Sigma}}_{{i,m_{i} }} {\mathbf{V}}_{{i,m_{i} }}^{T}$$(10)where \({\varvec{\Sigma}}_{{m_{i} }} = diag\left\{ {\sigma_{1} , \ldots ,\sigma_{{m_{i} }} } \right\}\) is the diagonal matrix containing the \(m_{i}\) largest singular value \(\sigma_{1} \ge \sigma_{2} \ge \cdots \ge \sigma_{{m_{i} }}\) of \({\mathbf{Z}}_{i}\), and \({\mathbf{U}}_{{m_{i} }}\) and \({\mathbf{V}}_{{m_{i} }}^{{}}\) are matrices whose columns are the leading \(m_{i}\) left and right singular vectors of \({\mathbf{Z}}_{i}\), respectively. Let
$$\varPhi_{i}^{(k + 1)} = {\mathbf{U}}_{{i,m_{i} }}$$(11)Then the optimal \(\varPhi_{1}^{*}\), \(\varPhi_{2}^{*}\) and \(\varPhi_{3}^{*}\) are obtained.

3.
Compute the compressed core tensor
$${\mathbf{\mathcal{W}}} = {\mathbf{\mathcal{A}}} \times_{1} \varPhi_{1}^{T} \times_{2} \varPhi_{2}^{T} \times_{3} \varPhi_{3}^{T}$$(12) 
4.
Unfold \({\mathbf{\mathcal{W}}}\) into its nmode \({\mathbf{W}}_{(n)}\). The mode n is a private key which has three possible values: 1, 2 and 3.

5.
\(\varPhi_{1}\), \(\varPhi_{2}\) and \(\varPhi_{3}\) are synchronously constructed by 3D Lorenz as Eq. (5).
$$E_{{\varPhi_{i} }} = L\left( {\varPhi_{i} } \right)$$(13)where \(E_{{\varPhi_{i} }} \in R^{{M_{i} \times m_{i} }}\). Hence the compression ratio is given by:
$$\gamma = \frac{{m_{1} m_{2} m_{3} + m_{1} M_{1} + m_{2} M_{2} + m_{3} M_{3} }}{{M_{1} M_{2} M_{3} }} \approx \frac{{m_{1} m_{2} m_{3} }}{{M_{1} M_{2} M_{3} }}$$(14)
The details of how to synchronize the image by 3D Lorenz system are introduced below. One data sample \(\varphi_{i,k}\) is inserted into U, which gives
where \(\varphi_{i,k}\) is the kth element of \(\phi_{i}\)(\(\phi_{i}\) is the vectorization of \(\varPhi_{i}\), i.e. \(\phi_{i} = vec\left( {\varPhi_{i} } \right)\)). The initial conditions \(U_{0} ,\;V_{0} ,\;W_{0} ,\;\) parameters A, B, C, and g1, g2, g3 are known by both transmitter and receiver. The transmitted signal is the U state variable, and the objective is to retrieve \(\varphi_{i,k}\) from this signal at the receiver. Feedback is used to update the state variables at the receiver to synchronize the system and allow decryption of subsequent data values.
After \(\tilde{\varphi }_{i,k}\) is obtained, the receiver state equations can be updated, thus achieving synchronization with the transmitter.
Decryption
The decryption process consists of the following steps:

1.
\(E_{{\varPhi_{i} }}\) are inverse transformed by 3D Lorenz:
$$D_{{\varPhi_{i} }} = L^{  1} \left( {E_{{\varPhi_{i} }} } \right)$$(18)\(L^{  1} \left( \cdot \right)\) is computed during Eq. (16).

2.
\({\mathbf{W}}_{(n)}\) and the obtained \(D_{{\varPhi_{i} }}\) are multiplied in the correct order to recover \({\mathbf{\mathcal{A}^{\prime}}}\). There are three feasible ways to achieve this:
$${\mathbf{A^{\prime}}}_{(n)} = \left\{ \begin{aligned} D_{{\varPhi_{1} }} \cdot {\mathbf{W}}_{(1)} \cdot \left( {D_{{\varPhi_{2} }} \otimes D_{{\varPhi_{3} }} } \right)^{T} \hfill \\ D_{{\varPhi_{2} }} \cdot {\mathbf{W}}_{(2)} \cdot \left( {D_{{\varPhi_{3} }} \otimes D_{{\varPhi_{1} }} } \right)^{T} \hfill \\ D_{{\varPhi_{3} }} \cdot {\mathbf{W}}_{(3)} \cdot \left( {D_{{\varPhi_{1} }} \otimes D_{{\varPhi_{2} }} } \right)^{T} \hfill \\ \end{aligned} \right.$$(19)where ‘\(\otimes\)’ represents the Kronecker product.

3.
Then, fold \({\mathbf{A^{\prime}}}_{(n)}\) into \({\mathbf{\mathcal{A}^{\prime}}}\) according to the private key n.
It is obvious that besides the secret keys of measurement matrices, the unfolding model n (order of tensor product) can be used as an additional key.
Numerical simulation results
Numerical simulations were conducted with Matlab2011 on a work station with an Intel Core i7 CPU and 64 GB RAM. The decryption error and compression ratio of the proposed system are introduced in “Decryption accuracy and compression ratio” section, the histograms are analyzed in “Histograms and statistical analysis” section, the secret keys are illustrated in “Ratedistortion” section, and the robustness is stated in “Secret keys” section.
Decryption accuracy and compression ratio
Our experiments are conducted on lung CT sequences in lung image database consortium (LIDC) [31]. Each frame of one CT sequence is preprocessed to have 512 × 512, where 512 frames were chosen. The CT sequence together is represented by a 512 × 512 × 512 tensor and has 134,217,728 voxels in total. The randomly constructed Gaussian measurement matrix for each mode is now of size \(512 \times m_{i}\) (\(i = 1,2,3\)). Thus, the compression ratio is given by:
The quantitative measure of the decryption error is the peak signal noise ratio (PSNR), which is based on the root mean square error (RMSE) between the decrypted data and ground truth and can be represented as:
To further evaluate the performance of decryption, the structural similarity index (SSIM) is used as another indicator.
In this section, we compare the proposed algorithm with state of the art algorithms to show its superiority. These algorithms are presented briefly as follows:

1.
As demonstrated previously [13], an encryption based on 2D_CS in the FrMT domain (algorithm 1) stands out for its efficient, robust, and secure encryption performance. In this algorithm, the 2D CS is based on a 2D wavelet, measuring matrices with Logistic map and a 2D NSL_{0} reconstruction algorithm. Notably, although the security of FrMT is better than that of FrFT, its decryption accuracy is less than the later. In order to verity the decryption accuracy and compression ratio of our tensorbased algorithm, we replaced FrMT with FrFT in algorithm 1.

2.
Additionally, we chose an encryption algorithm based on HOSVDTCS [21] with FrFT (algorithm 2).

3.
Also, as previously shown [8], an encryption algorithm based on spectral fusion and DCT obtained a better PSNR when compared with previous compressionencryption implementations. Accordingly, this became algorithm 3.
A visual evaluation of the decryption results under frames 117, 138 and 159 of one CT sequence at the compression \(\gamma = 0.125\) is shown in Figs. 2, 3, 4, 5, 6. As shown in Fig. 3, all the tissues within the lung volume are clear. Our clinical experts did not find distinct differences between the decrypted and the original CT images. The quantitative summaries of the above algorithms are shown in Tables 1, 2 and Fig. 7, where the advantages of the proposed algorithm are highlighted. It is evident that the advantages of the proposed algorithm over the other methods increase with the compression ratio. Case in point is in algorithm 3, where improving the compression ratio requires a large number of frames. However, the PNSR rapidly decreases with the increase of the number of frames. Thus, the algorithm cannot handle large number of frames.
We also compared the computation times (the average computation time of the experiments with all compression ratio and noise level) required in each case. The comparison shows that algorithm 3 provides a much faster computation (Table 3), while the proposed algorithm requires slightly longer computation time because it contains a procedure of iteration. Fortunately, this iteration is much simpler than those of algorithms 1 and 2.
Histograms and statistical analysis
Histograms
The histograms of two CT sequences and the encrypted images of their composed parts are shown in Figs. 8 and 9, respectively. The intensity distribution of the histograms of the encrypted images is completely dissimilar from that of the histogram of the original CT, which indicates that an intruder cannot perceive any useful information based on statistical properties. The histograms of the two original CT sequences are evidently different from each other, whereas the histograms of their corresponding encrypted images are similar. The security analysis effectively illustrates the robustness of the proposed method.
Statistical analysis
Statistical properties of the images can also be evaluated by the computation of the correlation between two adjacent pixels. By selecting randomly P pixels of the image, the correlation coefficient is computed as:
where \(x\) is the value of a selected pixel and \(y\) is the value of the correspondent adjacent pixel, \(D(x)\) is the mean square error.
It is expected that an image will have a correlation coefficient close to 1 before being submitted to the encryption; it is desirable that the correlation coefficient of a ciphered image be as close to 0 as possible. In Table 4, where the simulation results for P = 125,000 are shown, we verify that the above described premise is satisfied. This indicates that the proposed encryption scheme is secure against statistical attacks.
Normalized entropy
The normalized entropy [6] of the ciphered image is defined as
where P is the number of different values that the pixels of the ciphered image can assume, \(N_{i}\) is the amount of pixels of the ciphered image that assume value i, and N is the total amount of pixels of the ciphered image. During the experiments, we found that the ciphered pixels’ intensity of all the algorithms mentioned in the paper are almost equiprobable, so their normalized entropy are all approximate to 1.
Ratedistortion
Ratedistortion (RD) is an important indicator to evaluate the performance of compression. In a previous study [32], the following mathematical model of CS RD was constructed:
The proposed TCSbased algorithm falls into the CS category, so the model in Eq. (23) applies for our algorithm. Because there are some differences between traditional vectorbased CS and the proposed tensorbased CS, we recalculate some parameters as follows:
where \(\gamma^{\prime} = \frac{K}{{m_{1} m_{2} m_{3} }}\), \(\mu^{\prime} = \frac{{M_{1} M{}_{2}M_{3} }}{K}\), \(\sigma_{\varPhi }^{{}}\) is the singular value of the measurement matrix and \(R\) is the rate. It is important to note that in 3D case, there is \(\sigma_{{\varPhi_{1} }}^{{}} \approx \sigma_{{\varPhi_{2} }}^{{}} \approx \sigma_{{\varPhi_{3} }}^{{}}\) because the three matrices obey a uniform Gaussian distribution. The RD diagram at several compression ratio points is shown in Fig. 10.
Secret keys
Key space
The keys of the proposed algorithm consist of those generated by the three measurement matrices with 3D Lorenz and the unfolding mode \(n\) of the core tensor \({\mathbf{\mathcal{W}}}\). The Key that are used on \(\varPhi_{i}\) with 3D Lorenz are the initial values for the three state variables, the \(U_{0} ,\;V_{0}\) and \(W_{0}\), the parameters \(A,\;B\) and \(C\), and \(g_{i}\) for each of the state equations. As shown in [25], the key length is 39 decimal digits, with a key space of 10^{39}. The order of the tensor product can be used as an additional key, which has 18 combinations (which will be introduced in detail in “Key sensitivity”).
The total key space of the proposed algorithm is larger than \(10^{39} \cdot 18 > > 2^{30}\), which is large enough to withstand a brutal attack.
Key sensitivity
The key sensitivity of measurement matrices with 3D Lorenz has been analyzed in detail to demonstrate their advantages [15, 24–26]. Here we emphasize the key sensitivity of the order of the tensor product. Although \({\mathbf{W}}_{(n)}\) is easy to be distinguished from \(D_{\varPhi n}\), the ciphertexts are still difficult to decode due to both \({\mathbf{W}}_{(n)}\) and \(D_{\varPhi n}\) having three models. Hence there are a totally of 18 combinations of all \({\mathbf{W}}_{(n)}\) and \(D_{\varPhi n}\). Equation (16) indicates that only three combinations are correct, with 15 wrong combinations listed in the following:
\(D_{{\varPhi_{1} }} \cdot {\mathbf{W}}_{(1)} \cdot \left( {D_{{\varPhi_{3} }} \otimes D_{{\varPhi_{2} }} } \right)^{T}\), \(D_{{\varPhi_{2} }} \cdot {\mathbf{W}}_{(1)} \cdot \left( {D_{{\varPhi_{1} }} \otimes D_{{\varPhi_{3} }} } \right)^{T}\), \(D_{{\varPhi_{2} }} \cdot {\mathbf{W}}_{(1)} \cdot \left( {D_{{\varPhi_{3} }} \otimes D_{{\varPhi_{1} }} } \right)^{T}\), \(D_{{\varPhi_{3} }} \cdot {\mathbf{W}}_{(1)} \cdot \left( {D_{{\varPhi_{1} }} \otimes D_{{\varPhi_{2} }} } \right)^{T}\), \(D_{{\varPhi_{3} }} \cdot {\mathbf{W}}_{(1)} \cdot \left( {D_{{\varPhi_{2} }} \otimes D_{{\varPhi_{1} }} } \right)^{T}\), \(D_{{\varPhi_{1} }} \cdot {\mathbf{W}}_{(2)} \cdot \left( {D_{{\varPhi_{2} }} \otimes D_{{\varPhi_{3} }} } \right)^{T}\), \(D_{{\varPhi_{1} }} \cdot {\mathbf{W}}_{(2)} \cdot \left( {D_{{\varPhi_{3} }} \otimes D_{{\varPhi_{2} }} } \right)^{T}\), \(D_{{\varPhi_{2} }} \cdot {\mathbf{W}}_{(2)} \cdot \left( {D_{{\varPhi_{1} }} \otimes D_{{\varPhi_{3} }} } \right)^{T}\), \(D_{{\varPhi_{3} }} \cdot {\mathbf{W}}_{(2)} \cdot \left( {D_{{\varPhi_{1} }} \otimes D_{{\varPhi_{2} }} } \right)^{T}\), \(D_{{\varPhi_{3} }} \cdot {\mathbf{W}}_{(2)} \cdot \left( {D_{{\varPhi_{2} }} \otimes D_{{\varPhi_{1} }} } \right)^{T}\), \(D_{{\varPhi_{1} }} \cdot {\mathbf{W}}_{(3)} \cdot \left( {D_{{\varPhi_{2} }} \otimes D_{{\varPhi_{3} }} } \right)^{T}\), \(D_{{\varPhi_{1} }} \cdot {\mathbf{W}}_{(3)} \cdot \left( {D_{{\varPhi_{3} }} \otimes D_{{\varPhi_{2} }} } \right)^{T}\), \(D_{{\varPhi_{2} }} \cdot {\mathbf{W}}_{(3)} \cdot \left( {D_{{\varPhi_{1} }} \otimes D_{{\varPhi_{3} }} } \right)^{T}\), \(D_{{\varPhi_{2} }} \cdot {\mathbf{W}}_{(3)} \cdot \left( {D_{{\varPhi_{3} }} \otimes D_{{\varPhi_{1} }} } \right)^{T}\), \(D_{{\varPhi_{3} }} \cdot {\mathbf{W}}_{(3)} \cdot \left( {D_{{\varPhi_{2} }} \otimes D_{{\varPhi_{1} }} } \right)^{T}\).
The average MSE of the 15 wrong combinations is 7.2895 × 10^{3}. It is clear from the MSE values of the different combinations that the proposed system is sensitive to the order of the tensor product.
The 3D Lorenz system is similar to that in [26]. The 3D image is encrypted with initial conditions \(U_{0} = 0.1,\;V_{0} = 0,\;W_{0} = 0,\;\) and parameters A = 10, B = 28, C = 8/3, and g1 = g2 = g3 = 0.01. The maximum Lyapunov value according to the parameters and initial conditions is 0.8024 (larger than 0), the system is chaotic. The 3D distribution of the Lorenz system is also depicted in Fig. 11. Table 5 gives the sensitivity of each parameter. Any change in a parameter greater than its sensitivity will prevent an eavesdropper from decrypting message.
Resistance against attacks
Common attacks include knownplaintext attack and chosenplaintext attacks. It has been proven [10, 11] that despite the linearity of its encoding, CS may be used to provide a limited form of data protection. The TCS used in the paper is a multilinear (nonlinear) extension of the traditional CS, which further enhances the antiattack ability. Although the attackers have access to some plaintextciphertext pair, they will be unable to reproduce the system without knowledge of the order of tensor product. Furthermore, the 3D Lorenz, which was introduced in the system, has the ability to withstand these common attacks [25, 26]. Therefore, the proposed system based on TCS with 3D Lorenz has the ability to resist these common attacks.
We ran an experiment on knownplaintext attack to evaluate the antiattack performance. The decryption result of knownplaintext attack with the keys generated from a chosen CT sequence, which was treated as fake tensor, is displayed in Fig. 12. The frame 256 of the original and fake CT sequences are shown in Fig. 12a, b, respectively. The attack result using fake decryption keys with all correct parameters is shown in Fig. 12c. It can be seen that the retrieved image is noiselike signal. We first analyze the number of pixels rate: all pixels assumed to be an even distribution, because the retrieved image was noiselike signal. The unified average changing intensity was also used to evaluate the difference among the original and decrypted images:
We used the gray level to represent intensity, ranging from 0 to 255. Because the intensity value per pixel of the tensor was up to \(\xi = 80\), we assume that there is a substantial difference between the original and retrieved images.
Conclusions
In this paper, we proposed an algorithm of simultaneous encryption and compression, as applied to 3D CT volumes. This scheme has the advantages of TCS and 3D Lorenz. Its outstanding advantage is that it achieves a high precision of decryption at a big compression ratio. The security of the proposed algorithm conformed to the requirements of the common encryption technology. Moreover, the unfolding mode, which is a unique feature of the tensor product, can be used as an additional secrete key other than traditional encryption algorithms to make unauthorized decryption harder.
References
Kanso A, Ghebleh M. An efficient and robust image encryption scheme for medical applications. Commun Nonlinear Sci Numer Simul. 2015;24:98–116.
Karakis R, Guler I, Capraz I, et al. A novel fuzzy logicbased image steganography method to ensure medical data security. Comput Biol Med. 2015;67:172–83.
Chen L, Wang SH. Differential cryptanalysis of a medical image cryptosystem with multiple rounds. Comput Biol Med. 2015;65:69–75.
Ye CH, Xiong ZG, Ding Y, et al. Joint fingerprinting/encryption for medical image security. Int J Secur Appl. 2015;9(1):409–18.
Zhang LB, Zhu ZL, Yang BQ, et al. Medical image encryption and compression scheme using compressive sensing and pixel swapping based permutation approach. Math Probl Eng. 2015;2015:1–9.
Lima JB, Madeiro F, Sales FJR. Encryption of medical images based on the cosine number transform. Sig Process Image Commun. 2015;35:1–8.
Ma JL, Zhang TT, Dong MC. A novel ECG data compression method using adaptive fourier decomposition with security guarantee in ehealth applications. IEEE J Biomed Health Inform. 2015;19(3):986–94.
Alfalou A, Brosseau C, Abdallah N. Simultaneous compression and encryption of color video images. Opt Commun. 2015;338:371–9.
Donoho DL. Compressed sensing. IEEE Trans Inf Theory. 2006;52(4):1289–306.
Cambareri V, Marngia M, Pareschi F, Rovatti R, Setti G. On knownplaintext attacks to a compressed sensingbased encryption: a quantitative analysis. IEEE Trans Inf Forensics Secur. 2015;10(10):2182–95.
Cambareri V, Mauro M, Fabio P, et al. Lowcomplexity multiclass encryption by compressed sensing. IEEE Trans Signal Process. 2015;63(9):2183–95.
Zhou NR, Zhang A, Zheng F, et al. Novel image compressionencryption hybrid algorithm based on keycontrolled measurement matrix in compressive sensing. Opt Laser Technol. 2014;62:152–60.
Zhou NR, Li HL, Wang D. Image compression and encryption scheme based on 2D compressive sensing and fractional mellin transform. Opt Commun. 2015;343:10–21.
Rawat N, Hwang I, Shi Y, Lee BG. Optical image encryption via photoncounting imaging and compressive sensing based ptychography. J Opt. 2015;17(6):1–11.
Zhao SM, Wang L, Liang WQ, Cheng WW, Gong LY. High performance optical encryption based computational ghost imaging with QR code and compressive sensing technique. Opt Commun. 2015;353:90–5.
Lang J, Zhang J. Optical image cryptosystem using chaotic phaseamplitude masks encoding and leastdatadriven decryption by compressive sensing. Opt Commun. 2015;338:45–53.
Ran QW, Yuan L, Zhao TY. Image encryption based on nonseparable fractional fourier transform and chaotic map. Opt Commun. 2015;348:43–9.
Nitin R, Byoungho K, Inbarasan M, et al. Compressive sensing based robust multispectral doubleimage encryption. Appl Opt. 2015;54(7):1782–93.
Nitin R, Byoungho K, Rajesh K, et al. Fast digital image encryption based on compressive sensing using structurally random matrices and Arnold transform technique. Optik. 2016;127:2282–6.
Bairagi VK, Sapkal AM. Automated regionbased hybrid compression for digital imaging and communication in medicine magnetic resonance imaging images for telemedicine applications. IET Sci Meas Technol. 2012;6(4):247–63.
Cesar FC, Andrzej C. Stable, robust, and super fast reconstruction of tensors using multiway projections. IEEE Trans Signal Process. 2015;63(3):780–93.
Marco FD, Richard GB. Kronecker compressive sensing. IEEE Trans Image Process. 2012;21(2):494–504.
Friedland S, Li Q, Schofeld D. Compressive sensing of sparse tensors. IEEE Trans Image Process. 2014;23(10):4438–46.
Sidiropoulos ND, Kyrillidis A. Multiway compressed sensing for sparse lowrank tensors. IEEE Signal Process Lett. 2012;19(11):757–60.
Mohamed FH, Gulliver TA. Realtime image encryption using a lowcomplexity discrete 3D dual chaotic cipher. Nonlinear Dyn. 2015;82:1523–35.
Mohamed FH, Gulliver TA. A new 3D chaotic cipher for encrypting two data streams simultaneously. Nonlinear Dyn. 2015;81:1053–66.
Suryadi MT, Eva N, Dhian W. Performance of chaosbased encryption algorithm for digital image. TELKOMNIKA. 2014;12(3):675–82.
Bernard NS, Yousef S. Higher order orthogonal iteration of tensors (HOOI) and its relation to PCA and GLRAM. Proceedings of the 7th SIAM international conference on data mining. 2007. p. 355–65.
Wang L, Bai J, Wu J, et al. Hyperspectral Image compression based on lapped transform and tucker decomposition. Sig Process Image Commun. 2015;36:63–9.
Ballester RR, Suter SK, Pajarola R. Analysis of tensor approximation for compressiondomain volume visualization. Comput Graph. 2015;47:34–47.
Lung Image Database Consortium (LIDC), National Cancer Institute. http://imaging.cancer.gov/programsandresources/InformationSystems/LIDC. Accessed 3 Nov 2016.
Coluccia G, Roumy A, Magli E. Operational ratedistortion performance of signalsource and distributed compressed sensing. IEEE Trans Commun. 2014;62(6):2022–33.
Authors’ contributions
Conceived and designed the experiments: QW. Performed the experiments: XC and MW. Analyzed the data: ZM. Wrote the paper: QW. All authors read and approved the final manuscript.
Acknowledgements
Not applicable.
Availability of data and materials
The LIDC datasets used in the experiments of this article are available for download, upon request, from https://public.cancerimagingarchive.net/ncia/dataBasketDisplay.jsf. If the users have opened the website, they can tap the submenu “Simple search” of menu “Search images”, and then chose the “LIDCIDRI” of item “Collection(s)”. The Subject ID of the CT set used in the paper is “LIDCIDRI1004”.
Competing interests
The authors declare that they have no competing interests.
Ethics approval and consent to participate
This experiment was approved by the ChinaJapan Union Hospital of Jilin University Medical Research Ethics Committee, Changchun, China.
Funding
This study was funded by National Natural Science Foundation of China (61301257).
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Wang, Q., Chen, X., Wei, M. et al. Simultaneous encryption and compression of medical images based on optimized tensor compressed sensing with 3D Lorenz. BioMed Eng OnLine 15, 118 (2016). https://doi.org/10.1186/s1293801602391
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1293801602391
Keywords
 Encryption and compression
 Hither order singular value decomposition
 3D Lorenz
 Medical images