Lossless Data Compression Using Neural Networks
Lossless Data Compression Using Neural Networks
Abstract: - This paper deals with the predictive compression of images using neural networks (NN). The idea
is to use of the backpropagation algorithm in order to compute the predicted pixels. The results validation is
performed by comparison with linear prediction compression used in JPEG algorithm.
reconstructed from the compressed data. Lossless when no assumption can be made on whether certain
compression is used when it is important that the deviation is uncritical.
original and the decompressed data are identical, or
Data compression
Reversible Nonrevesible
(lossless) coding (lossy) coding
In image processing lossless compression is Fig. 2 shows the basic components of a lossless
based on the idea that since not all the gray levels in predictive coding system [5].
an image occur equally often, by assigning shorter Input
binary code words to the more frequently occurring image fn en
Symbol
gray levels, one can achieve compression over the Σ encoder
case when all the levels are represented by equal
length code words.
Lossless compression does not generally achieve fˆn
as low bit rates as lossy compression due to the strict Predictor Nearest
integer
restriction of zero information loss.
In order to avoid the possibility of destroying Reconstructed
information that may be useful to future users, the f n' image
data must be stored in a format that allows exact Symbol en
reconstruction of the original data images. decoder Σ e
The lossless predictive coding is based on
eliminating the pixel redundancies of closely spaced Compressed fˆn Predictor
pixels by extracting and coding only the new image
information in each pixel. The new information of a
pixel is defined as the difference between the actual Fig. 2. Lossless predictive coding model: encoder
and predicted value of that pixel. and decoder
H3
D
B C D
Previous
Line Fig. 4. Predictor model
X
A Current Each input is connected to every neuron of the
line
hidden layer; likewise, each neuron of the hidden
Scan
Directions
layer is connected to every neuron of the output
layer [10].
A, B, C, D are the inputs of the predictor. Bh and
Fig. 3. Neighboring samples around the sample to be Bo are the bias of hidden and output layer,
predicted
4 Conclusion
The entropy of prediction error images produced by
neural networks is slightly higher than that produced
by linear prediction. So, in terms of the entropy
value, linear prediction is better than the neural
network one.
The neural networks minimize the mean squared
error, thus the neural networks prediction, leads to
Fig. 5. Test image a) cathedral (CTH), b) cyclone better results.
(CY), c) satellite image (SAT) We expect that using an advanced lossless
compression technique the performance of neural
We have used different numbers of iterations to network predictor would be improved [11].
train NN predictor. In our experiments, after 80
iterations the weights were constant and the results
were similar.
The results, for each case, are presented in the References:
Table 2 and Table 3. [1] S. Cho, D. Kim, and W.A. Pearlman, Lossless
Comparing the results of the neural network with compression of volumetric medical images with
the linear prediction, one can observe that the image improvement 3-D SPIHT algorithm, Journal of
entropy is worst than in the case of the linear Digital Imaging, vol.17, no.1, 2004, pp.57-63
prediction. [2] S. Winkler, A. Sharma, and D. McNally,
Perceptual video quality and blockiness metrics
for multimedia streaming applications, in Proc. lossless JPEG standard, Proc. SPIE Int. Soc. Opt.
International Symposium on Wireless Personal Eng., vol. 3024, no. 47, January 1997, pp.47-58
Multimedia Communications, (Aalborg, [8] M. Weinberger, G. Seroussi and G. Sapiro, “The
Denmark), Sept. 9–12, 2001, pp. 547–552,. LOCO-I lossless image compression algorithm:
[3] Z. Bojkovic, C. Toma , V. Gui , R. Vasiu, Principles and standardization into JPEG-LS,
Advanced Topics in Digital Image Compression, IEEE Trans. Image Processing, vol. 9, no. 8,
Politehnica Publishing House, Timişoara 1997 Aug. 2000, pp. 1309–1324
[4] R.J. Clark, Digital Compression of Still Images [9] S. Haykin , Neural Networks, a comprehensive
and Video, Academic Press, 1995 foundation, Macmillan College Publishing
[5] C. K. Wallace, The JPEG still picture Company, 1994
compression standard, Communications of the [10] C. Căleanu, Facial recognition using committee
ACM, 34(4), 1991, pp.31-44, of neural networks, Proceedings of the 5th
[6] H.G..Mussman, Predictive Image Coding, in Seminar on Neural Network Applications in
Image Transmission Techniques, W.K.Pratt Electrical Engineering NEUREL 2000, Belgrad
editor, Advances in Electronics and Electron 25-27 sept. 2000, pp. 97-100
Physics, Supplement 12, 1979, Academic Press, [11] G. Langdon and C. Haidinyak, Context
Orlando, FL, pp.73-112 dependent distribution shaping and
[7] D. Memon Nasir, Wu Xiaolin, V. Sippy and G. parameterization for lossless image
Miller, Interband coding extension of the new compression, Application of Digital Image
Processing XVII, SPIE 1994, pp.62-70