Extracting the most important Discrete Cosine Transform (DCT) Coefficients for Image Compression using Deep Learning

Authors

  • Zirak Khan Department of Computer Engineering, College of Electrical & Mechanical Engineering (CEME), National University of Sciences & Technology (NUST), Islamabad, Pakistan.
  • Farrukh Arslan Department of Electrical Engineering, University of Engineering and Technology (UET), Lahore, Pakistan.
  • Faseeha Munir Department of Computer Science, Muhammad Nawaz Shareef University of Agriculture (MNSUAM), Multan, Pakistan.
  • Mubashir Ali Department of Software Engineering, Lahore Garrison University, Lahore 54000, Pakistan.
  • Shahrukh . Department of Software Engineering, Lahore Garrison University, Lahore 54000, Pakistan.

DOI:

https://doi.org/10.21015/vtse.v10i4.1145

Abstract

Image compression is all about reducing storage costs and making the transmission of huge image files feasible. This paper targets lossy image compression by estimating the most important Discrete Cosine Transform (DCT) coefficients through employing deep learning. DCT basically results in the transformation of an image to the frequency domain from the spatial domain. The first few coefficients, in the frequency domain of a transformed image, have great importance. They are the most informative, while the others are of the least importance. The abilities of Multi-Layer Perceptron (MLP) and Convolutional neural network (CNN) were exploited in order to find a reasonable estimate of important DCT coefficients. The target was to get a deep neural network (DNN) for the compression of digital images that has a reduced number of DCT coefficients that is; higher compression rate and better image quality upon reconstruction and improved generalization ability. To shorten the encoding-decoding time and to fasten the training of our deep neural networks, RELUs and Tangent Sigmoid were used. Experiments performed on a large set of grayscale images shows that only 15 out of 64 total available DCT coefficients result in more than 70% image quality and have a good compression ratio of 4:1. Moreover, the quality of images upon a subjective and objective evaluation of unseen data proves that our proposed MLP achieved better generalization as compared to CNN.

 

References

H Farhan, J Jechang,Efficient Deep Neural Network for Digital Image Compression Employing Rectified Linear Neurons, Journal of Sensors, vol 2016. DOI: https://doi.org/10.1155/2016/3184840

S. O. Haykin, Neural Networks and LearningMachines, Prentice Hall, 3rd edition, 2008.

Y. S. Abu-Mostafa, M. M. Ismail, and H.-T. Lin, Learning from Data, AMLBook, 2012.

P. H. Sydenham and R. Thorn, Handbook of Measuring System Design, vol. 3, JohnWiley & Sons, Chichester, UK, 2005. DOI: https://doi.org/10.1002/0471497398

M. Rabbani and P. W. Jones, Digital Image Compression Techniques,SPIE Publications, 1991. DOI: https://doi.org/10.1117/3.34917

S. Carrato and S. Marsi, “Parallel structure based on neural networks for image compression,” Electronics Letters, vol. 28,no.12, pp. 1152–1153, 1992. DOI: https://doi.org/10.1049/el:19920727

G. Qiu, M. R. Varley, and T. J. Terrell, “Image compression by edge pattern learning using multilayer perceptions,” Electronics Letters, vol. 29, no. 7, pp. 601–603, 1993. DOI: https://doi.org/10.1049/el:19930403

A.Namphol, S.H.Chin, andM.Arozullah, “Image compression with a hierarchical neural network,” IEEE Transactions on Aerospace and Electronic Systems, vol. 32, no. 1, pp. 326–338,1996. DOI: https://doi.org/10.1109/7.481272

Y. Benbenisti, D. Kornreich, H. B. Mitchell, and P. A. Schaefer, “A high performance single-structure image compression neural network,” IEEE Transactions on Aerospace and Electronic Systems, vol. 33, no. 3, pp. 1060–1063, 1997. DOI: https://doi.org/10.1109/7.599334

K. S.Ng and L. M. Cheng, “Artificial neural network for discrete cosine transform and image compression,” in Proceedings of the 4th International Conference on Documents Analysis and Recognition, vol. 2, pp. 675–678, August 1997.

C. Cramer, “Neural networks for image and video compression: a review,” European Journal ofOperational Research, vol. 108, no. 2, pp. 266–282, 1998. DOI: https://doi.org/10.1016/S0377-2217(97)00370-6

J. Jiang, “Image compression with neural networks—a survey,” Signal Processing: Image Communication, vol. 14, no. 9, pp. 737– 760, 1999. DOI: https://doi.org/10.1016/S0923-5965(98)00041-1

G. L. Sicuranza, G. Ramponi, and S. Marsi, “Artificial neural network for image compression,” Electronics Letters, vol. 26, no.3, pp. 477–479, 1990 DOI: https://doi.org/10.1049/el:19900310

G. Hinton, L. Deng, D. Yu et al., “Deep neural networks for acoustic modeling in speech recognition: the shared views of four research groups,” IEEE Signal ProcessingMagazine, vol. 29, no. 6, pp. 82–97, 2012. DOI: https://doi.org/10.1109/MSP.2012.2205597

X.Glorot, A. Bordes, and Y. Bengio, “Deep sparse rectifier neural network,” in Proceedings of the 14th International Conference on Artificial Intelligence and Statistics (AISTATS ’11), vol. 15 of JMLR:W&CP, pp. 315–323, Fort Lauderdale, Fla, USA, 2011.

D. E. Rumelhart, G. E. Hinton, and R. J. Williams, “Learning representations by back-propagating errors,” in Neurocomputing: Foundations of Research, MIT Press, Cambridge, Mass, USA, 1988.

G. Lee and Y. Choe, "Image Compression Based on a Partially Rotated Discrete Cosine Transform With a Principal Orientation," in IEEE Access, vol. 9, pp. 101773-101786, 2021, doi: 10.1109/ACCESS.2021.3097720.

Downloads

Published

2022-11-27

How to Cite

Khan, Z., Arslan, F., Munir, F., Ali, M., & ., S. (2022). Extracting the most important Discrete Cosine Transform (DCT) Coefficients for Image Compression using Deep Learning. VFAST Transactions on Software Engineering, 10(4), 56–63. https://doi.org/10.21015/vtse.v10i4.1145