Journal of Real-Time Image Processing

, Volume 16, Issue 3, pp 765–773 | Cite as

Efficient image encryption and compression based on a VAE generative model

  • Xintao DuanEmail author
  • Jingjing Liu
  • En Zhang
Special Issue Paper


Efficient image encryption and compression not only well protect the security of image information, but also greatly reduce the bandwidth. This paper proposes an image encryption method based on variational auto-encoder generation model. Firstly, we use the random gradient method to train the variational auto-encoder generation model, and iteration times of the model is determined comprehensively by the training time, the loss function and the reconstruction image. The peak signal-to-noise ratio and mean square error are used to measure the compression effect of the model. Secondly, we utilize the two trained image data divisions to change the data of the generated model, and to generate an encryption image. Finally, this paper uses Spyder to simulate experiments and analyze the results. The experimental results show that the method is fast and easy to encrypt, the algorithm is simple and the distortion rate of the decrypt image is low, and it is strong practicality.


Image encryption Image compression VAE Generative model 



This paper was supported by the National Natural Science Foundation of China (nos. U1204606, U1604156), the Key Programs for Science and Technology Development of Henan Province (nos. 172102210335, 172102210045), Key Scientific Research Projects in Henan Universities (no. 16A520058).


  1. 1.
    Gersho, A., Gray, R.M.: Vector quantization I: structure and performance. In: Vector Quantization and Signal Compression, pp. 309–343. Springer (1992)Google Scholar
  2. 2.
    Gregor, K., Besse, F., Rezende, D.J., Danihelka, I., Wierstra, D.: Towards conceptual compression. In: Advances in Neural Information Processing Systems, pp. 3549–3557(2016)Google Scholar
  3. 3.
    Qin, C., Chang, C.-C., Yi-Ping, C.: A novel joint data-hiding and compression scheme based on SMVQ and image inpaiting. IEEE Trans. Image Process. 23(3), 969–978 (2014)MathSciNetCrossRefzbMATHGoogle Scholar
  4. 4.
    Hinton, G.E., Salakhutdinov, R.R.: Reducing the dimensionality of data with neural networks. Science 313(5786), 504–507 (2006)MathSciNetCrossRefzbMATHGoogle Scholar
  5. 5.
    Toderici, G., Vincent, D., Johnston, N., et al.: Full resolution image compression with recurrent neural networks. In: IEEE Conference on Computer Vision and Pattern Recognition, pp. 5435–5443. IEEE (2017)Google Scholar
  6. 6.
    Hu, F., Pu, C.: An image compression and encryption scheme based on deep learning. arXiv:1608.05001 (2016)
  7. 7.
    Ballé, J., Laparra, V., Simoncelli, E.P.: End-to-end optimized image compression. arXiv preprint. arXiv:1611.01704 (2016)
  8. 8.
    Jing, F., Wang, J., Sun, X., Li, T.: Partial encryption of color image using quaternion discrete cosine transform. Int. J. Signal Process. Image Process. Pattern Recognit. 8, 171–190 (2015)Google Scholar
  9. 9.
    Zhang, Y., Qin, C., Zhang, W., Liu, F., Luo, X.: On the fault-tolerant performance for a class of robust image steganography. Signal Process. 146, 99–111 (2018)CrossRefGoogle Scholar
  10. 10.
    Qin, C., Zhang, X.: Effective reversible data hiding in encrypted image with privacy protection for image content. J. Vis. Commun. Image Represent. 31, 154–164 (2015)CrossRefGoogle Scholar
  11. 11.
    Ahmad, J., Khan, M.A.: A compression sensing and noise-tolerant image encryption scheme based on chaotic maps and orthogonal matrices. Neural Comput Appl. 28, 953–967 (2016)CrossRefGoogle Scholar
  12. 12.
    Qin, C., He, Z., Luo, X., Dong, J.: Reversible data hiding in encrypted image with separable capability and high embedding capacity. Inf. Sci. 465, 285–304, (2018)CrossRefGoogle Scholar
  13. 13.
    Ma, Y., Luo, X., Li, X., Bao, Z., Zhang, Y.: Selection of rich model steganalysis features based on decision rough set α-positive region reduction. IEEE Trans. Circuits Syst. Video Technol. 2018. (published online) Google Scholar
  14. 14.
    Qin, C., Ji, P., Zhang, X., Dong, J., Wang, J.: Fragile image watermarking with pixel-wise recovery based on overlapping embedding strategy. Signal Process. 138, 280–293 (2017)CrossRefGoogle Scholar
  15. 15.
    Kingma, D.P., Welling, M.: Auto-encoding variational bayes. arXiv preprint. arXiv:1312.6114 (2013)
  16. 16.
    Doersch, C.: Tutorial on variational autoencoders. arXiv:1606.05908 (2016)
  17. 17.
    Diederik, P., Kingma, S., Mohamed, D.J., Rezende, Welling, M.: Semisupervised learning with deep generative models. In: Advances in Neural Information Processing Systems, pp. 3581–3589 (2014)Google Scholar
  18. 18.
    Lamb, A., Dumoulin, V., Courville, A.: Discriminative regularization for generative models. arXiv:1602.03220 (2016)Google Scholar
  19. 19.
    Rezende, D.J., Mohamed, S., Wierstra, D.: Stochastic backpropagation and approximate inference in deep generative models. In: ICML (2014)Google Scholar
  20. 20.
    Tejas, D., Kulkarni, W.F., Whitney, Kohli, P., Tenenbaum, J.: Deep convolutional inverse graphics network. In: NIPS (2015)Google Scholar
  21. 21.
    Salimans, T., Kingma, D., Welling, M.: Markov chain monte carlo and variational inference: bridging the gap. In: ICML (2015)Google Scholar
  22. 22.
    Gregor, K., Danihelka, I., Graves, A., Rezende, D., Wierstra, D.: Draw: a recurrent neural network for image generation. In: ICCV (2015)Google Scholar
  23. 23.
    Sohn, K., Lee, H., Yan, X.: Learning structured output representation using deep conditional generative models. In: NIPS (2015)Google Scholar
  24. 24.
    Giraldo, L.G.S.: Revisiting denoising auto-encores. In: International Conference on Learning Representations (2017)Google Scholar
  25. 25.
    Kan, M., Shan, S., Chang, H., Chen, X.: Stacked progressive auto-encoders (SPAE) for face recognition across poses. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1883–1890 (2014)Google Scholar
  26. 26.
    Tiwari, M., Gupta, B.: Image denoising using spatial gradient based bilateral filter and minimum mean square error filtering. Procedia Comput. Sci. 54, 638–645 (2015)CrossRefGoogle Scholar
  27. 27.
    Karamchandani, S.H., Gandhi K.J., Gosalia, S.R., Madan, V.K., Merchant, S.N., Desai, U.B.: PCA encrypted short acoustic data inculcated in digital color images. Int. J. Comput. Commun. Control 10(5), 678–685 (2015)CrossRefGoogle Scholar
  28. 28.
    Horé, A., Ziou, D.: Image quality metrics: PSNR vs. SSIM. In: International Conference on Pattern Recognition, pp. 2366–2369 (2010)Google Scholar

Copyright information

© Springer-Verlag GmbH Germany, part of Springer Nature 2018

Authors and Affiliations

  1. 1.Henan Normal UniversityXinxiangChina

Personalised recommendations