- Open Access
Performing scalable lossy compression on pixel encrypted images
© Kang et al.; licensee Springer. 2013
- Received: 9 October 2012
- Accepted: 7 May 2013
- Published: 21 May 2013
Compression of encrypted data draws much attention in recent years due to the security concerns in a service-oriented environment such as cloud computing. We propose a scalable lossy compression scheme for images having their pixel value encrypted with a standard stream cipher. The encrypted data are simply compressed by transmitting a uniformly subsampled portion of the encrypted data and some bitplanes of another uniformly subsampled portion of the encrypted data. At the receiver side, a decoder performs content-adaptive interpolation based on the decrypted partial information, where the received bit plane information serves as the side information that reflects the image edge information, making the image reconstruction more precise. When more bit planes are transmitted, higher quality of the decompressed image can be achieved. The experimental results show that our proposed scheme achieves much better performance than the existing lossy compression scheme for pixel-value encrypted images and also similar performance as the state-of-the-art lossy compression for pixel permutation-based encrypted images. In addition, our proposed scheme has the following advantages: at the decoder side, no computationally intensive iteration and no additional public orthogonal matrix are needed. It works well for both smooth and texture-rich images.
- Image compression
- Image encryption
- Lossy compression
- Image reconstruction
- Scalable coding
Compression of encrypted data draws much attention in recent years due to the security concerns in a service-oriented environment such as cloud computing [1, 2]. The traditional way of securely and efficiently transmitting redundant data is to first compress the data to reduce the redundancy then encrypt the compressed data. At the receiver side, decryption is performed prior to decompression. However, in some application scenarios (e.g., sensor networking), a sender may first perform encryption with a simple cipher and then send it to a network provider. The network provider always has the interest to reduce the rate. It is desirable to be able to compress the encrypted data without the key to reduce the security concerns. At the receiver side, joint decryption and decompression will be used to reconstruct the original data.
It has been proved in  that the overall system performance of such approach can be as good as the conventional approach, that is, neither the security nor the compression efficiency will be sacrificed by performing compression in the encrypted domain. Two practical approaches to lossless compression of encrypted binary images and to lossy compression of encrypted Gaussian sequence are also presented in . In the first approach, the original binary image is encrypted by adding a pseudorandom string; the encrypted data are compressed by finding the syndromes with respect to a low-density parity-check (LDPC) code . In the second approach, the original data are encrypted by adding an iid Gaussian sequence, and the encrypted data are quantized and compressed as the syndromes of a trellis code. In , compression of encrypted data for both memoryless sources and sources with hidden Markov correlation using LDPC codes is also studied. A study  introduces a few methods for lossless compression of encrypted grayscale and color images by employing LDPC codes to various bit planes and exploiting the spatial and cross-plane correlation among pixels. In , Liu et al. proposed to decompose the encrypted image in a progressive manner, and the most significant bits in the higher levels are compressed using rate-compatible punctured turbo codes. The decoder can observe a low-resolution version of the image, study the local statistics based on it, and use the statistics to estimate the content in the higher levels. Another study  presents some algorithms for compressing encrypted data and demonstrates blind compression of encrypted video by developing statistical models for source data and extending these models to video. All of the works mentioned above use the distributed source coding (DSC) technique. However, a frequent backward channel communication is needed for the joint decryption and decoding at the receiver, and thus, large delay maybe of concern. So, DSC-based methods may not be a desirable choice in some practical network transmission scenarios.
There are a few works on lossy compression for encrypted data. In , the authors introduce a compressive sensing technique to achieve lossy compression of encrypted image data, and a basis pursuit algorithm is appropriately modified to enable joint decompression and decryption. In the state-of-the-art work , a lossy compression and iterative reconstruction for permutation-based encrypted image is proposed. However, when using the permutation-based encryption, only the pixel positions are permuted, but the pixel values are not masked in the encryption phase, which means that the histogram of the encrypted image will remain the same as the original image, revealing some significant information. Iterative reconstruction may have a hard time to converge for a texture-rich image. An additional public orthogonal matrix of huge size is needed for the decompression at the receiver side. If the size of the to-be-compressed image is 512×512, then the size of the public orthogonal matrix is about 512×512×512×512. Each target rate requires a distinct public orthogonal matrix. The huge public orthogonal matrix results in huge storage space requirement and computational load. Note that such a public orthogonal matrix cannot be used in the compression for pixel-value encrypted image. There is another lossy compression and iterative reconstruction for encrypted image proposed in the state-of-the-art work . The encryption method of the image is by making a modulo-256 addition on the original pixel values with pseudorandom numbers. The scheme is scalable, and it performs very well with iteration.
In this paper, we propose a scalable lossy compression scheme for images having their pixel value encrypted with a standard stream cipher. At the receiver side, a decoder performs a content-adaptive interpolation prediction based on the decrypted partial information, and the received bit plane information serves as the side information to facilitate accurate image reconstruction. The experimental results show that our proposed scheme achieves much better performance than the existing lossy compression scheme for pixel-value encrypted image and achieves similar performance as the state-of-the-art lossy compression for permutation-based encrypted images.
The rest of this paper is organized as follows: in ‘The proposed scalable compression scheme’ section, we describe the proposed compression scheme for encrypted images in detail. The ‘Experimental results’ section shows the experimental results with comparison to the state-of-the-art works. The conclusion is made in the ‘Conclusions’ section.
We assume the images have been encrypted by applying a standard stream cipher to the pixel values in the spatial domain. Even though the pixel value has been encrypted, the resulting encrypted data preserve some of the inherent property of the original image, e.g., the spatial relationship of pixels and the bit plane structure and their relative importance. This leads us to adopt a multi-resolution and bit plane-based scalable approach for the compression. The basic idea is to package and transmit a downsampled version of the encrypted image as the base layer, then selectively transmit additional bit plane information from another downsampled version (with a different spatial offset) of the encrypted image to facilitate the interpolation/reconstruction of the higher resolution image at the receiver. This process can be recursively applied in a multi-layer structure. This results in an embedded, compressed, and encrypted bitstream, where the bitstream can be cut off flexibly to meet a target bit rate constraint without requiring complex communication/negotiation between the encoder and decoder as was the case in some prior work that used DSC, e.g., [1, 3–7]. In the following, we describe our proposed scheme in a two-layer scenario.
Suppose the size of an original 8-bit grayscale image is N 1×N 2. It is encrypted with a standard stream cipher, resulting in an encrypted image E.
where N is the number of bit planes of sub-image E 11 to be transmitted. For example, if N = 2, it means two bit planes of sub-image E 11 are transmitted. Let b8b7b6…b2b1 denote the eight bit planes, and b7b6 are transmitted. The compression rate is 0.25 + 0.25 × 2/8= 0.3125. The decoder reconstructs the 00 sub-image by decrypting the E 00 sub-image and also obtains b7,b6 of the 11 sub-image by decryption. Here, according to our observation, b 8 can be recovered with little error by decompression, so the b 8 bit plane of sub-image 11 is always transmitted only when all of b7,b6,…,b1bit planes of sub-image 11 are transmitted, that is, only when N = 8. N = 8 means that sub-image 11 is transmitted.
For every pixel in the 11 sub-image, there are four neighboring pixels t = [t 1, t 2, t 3, t 4] in the 00 sub-image as shown in the top left of Figure 1. We predict the 11 sub-image using the 00 sub-image with the context-adaptive interpolation (CAI) scheme proposed in . In this work, we propose to use the received bit plane values of sub-image 11 as the side information to facilitate the estimation of the image edge information in the context adaptive interpolation thus improving the prediction. For the 10 sub-image, there are also four neighboring pixels in the 00 and 11 sub-images as shown in the bottom right of Figure 1. So, when the receiver obtains sub-image 00 and sub-image 11, the 10 sub-image (and 01 sub-image) can be predicted by the conventional CAI (please refer to  for a detailed description of the conventional CAI). In the following, we only present the improved CAI prediction of the 11 sub-image with the received bit plane information as the side information.
In Equation 2, the local region is classified into four types: smooth, horizontally edged, vertically edged, and other median-related edge. With the received bit plane values of sub-image 11, we can match the bit plane values of pred0 with the received bit plane value. If they match with each other, we accept the preliminary prediction value; otherwise, we find a better-matching prediction using the image edge directions other than the four local regions considered in Equation 2.
where floor(pred/Δ) × Δ is the value of the b8 of the prediction in the pixel; w × Δ/M is the value of the bit planes transmitted in the pixel.
In this section, we will examine the performance of our proposed method and also compare it with the existing state-of-the-art works. The proposed compression scheme is applied on a variety of images with different sizes. We will show the test results for four selected standard images which have varying texture contents. The test images used here are Lena, Baboon, Man, and Hill. All the test images are 8-bit grayscale images of 512×512. Results for a two-layer decomposition structure are presented.
The PSNR (dB) of the reconstructed images using our scheme
Rate per info bit
We also compare our method to the methods in  and . Our proposed method achieves similar performance as the method in  for the pixel-value unencrypted image (Figure 4). A public orthogonal matrix is used in  to disperse the estimation error in the permutation-based encrypted domain. Note that such a public orthogonal matrix cannot be used in the pixel value-encrypted domain. Compared to the most recent method , our method is a little worse than the method in , but our method is not an iterative method and both methods in  and  are iterative ones and thus may have the issue of convergence for a texture-rich image and possible intensive computation.
At the receiver side, the received bit plane information serves as the side information to facilitate the estimation of image edge information thus making the image reconstruction more precise. The more bit planes are transmitted, the higher quality of the reconstructed image.
The experimental results show that our proposed scheme achieves much better performance than the existing lossy compression scheme for pixel-value encrypted images, and also achieves similar performance as the state-of-the-art lossy compression on the pixel permutation-based encrypted images.
Compared to the state-of-the-art work, our proposed scheme also has the following advantages: at the decoder side, no computationally intensive iteration and no additional public orthogonal matrix are needed. The scheme can be applied to both smooth and texture-rich images.
In the future, we will also extend our work to compression of encrypted video.
This work was supported by NSFC (Grant nos. 61070167, U1135001), 973 Program (Grant no. 2011CB302204), the Research Fund for the Doctoral Program of Higher Education of China (Grant no. 20110171110042), and NSF of Guangdong province (Grant no. s2013020012788).
- Johnson M, Ishwar P, Prabhakaran VM, Schonberg D, Ramchandran K: On compressing encrypted data IEEE Trans. Signal Process 2004, 52(10):2992-3006.MathSciNetGoogle Scholar
- Zhang X: Lossy Compression and Iterative reconstruction for Encrypted Image. IEEE Trans. on Inf. Forensic Secur 2011, 6(1):53-58.View ArticleGoogle Scholar
- Gallager RG: Low Density Parity Check Codes. MIT: Ph.D. dissertation; 1963.Google Scholar
- Schonberg D, Draper SC, Ramchandran K: On blind compression of encrypted correlated data approaching the source entropy rate, in Proceedingsof the 43rd Annual Allerton Conference. IL: Allerton; 2005.Google Scholar
- Lazzeretti R, Barni M: Lossless compression of encrypted grey-level and color images, in Proceedings of the 16th European Signal Processing Conference (EUSIPCO 2008). Switzerland: Lausanne; 2008.Google Scholar
- Liu W, Zeng W, Dong L, Yao Q: Efficient compression of encrypted grayscale images. IEEE Trans. Image Process. 2010, 19(4):1097-1102.MathSciNetView ArticleGoogle Scholar
- Schonberg D, Draper SC, Yeo C, Ramchandran K: Toward compression of encrypted images and video sequences. IEEE Trans. Inf. Forensic Secur 2008, 3(4):749-762.View ArticleGoogle Scholar
- Kumar A, Makur A: Lossy compression of encrypted image by compressing sensing technique. Proceedings of the IEEE Region 10 Conference. (TENCON 2009) 2009, 1-6.Google Scholar
- Zhang X, Feng G, Ren Y, Qian Z: Scalable coding of encrypted images. IEEE Trans. Image Process. 2012, 21(6):3108-3114.MathSciNetView ArticleGoogle Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.