Prediction Method for Image Coding Quality Based on Differential Information Entropy

For the requirement of quality-based image coding, an approach to predict the quality of image coding based on differential information entropy is proposed. First of all, some typical prediction approaches are introduced, and then the differential information entropy is reviewed. Taking JPEG2000 as an example, the relationship between differential information entropy and the objective assessment indicator PSNR at a fixed compression ratio is established via data fitting, and the constraint for fitting is to minimize the average error. Next, the relationship among differential information entropy, compression ratio and PSNR at various compression ratios is constructed and this relationship is used as an indicator to predict the image coding quality. Finally, the proposed approach is compared with some traditional approaches. From the experiments, it can be seen that the differential information entropy has a better linear relationship with image coding quality than that with the image activity. Therefore, the conclusion can be reached that the proposed approach is capable of predicting image coding quality at low compression ratios with small errors, and can be widely applied in a variety of real-time space image coding systems for its simplicity.


Introduction
With the gradual reduction of the Earth's resources, countries all over the world are becoming increasingly aware of the importance of exploiting space resources.The European Space Agency (ESA) has completed the Near-Infrared Spectrograph, which is contributing to the international James Webb Space Telescope (a space observatory set for launch on an Ariane 5 rocket in 2018).NASA's Voyager 1 spacecraft has ventured into interstellar space.The probe is now about 19 billion kilometers from our sun.China is expected to launch its fifth lunar probe, Chang'e-5, in 2017 to send back a moon rock sample to Earth.The NO.1 High-Resolution satellite was launched in the first batch and is a component of the major China High-Resolution Earth Observation System (CHEOS) technical project.The target is to provide accurate service for sectors of land, environment and agriculture, etc.
In all these projects, observing images is an efficient way for the acquisition of space information.These images are always sent back to the ground for observation, but the data channels for space communication are always limited.The goal of image coding is to resolve the contradiction between the large amounts of high resolution images and the limited data channels.The wavelet-based coding technique is an important research direction in the field of image coding [1][2][3].One of the key steps in the wavelet-based coding technique is rate control.For example, JPEG2000, which is an excellent currently used well-known coding algorithm, can control the bit rate accurately and conveniently by a post-coding rate-distortion optimization algorithm.Currently, a lot of research has been done on the rate control algorithms in JPEG2000 [4][5][6].These algorithms consume large amounts of memory and computing time for the reason that most of the coding process must be performed in order to estimate the image distortion.Therefore, prediction of image quality (image distortion) before coding is very useful for the implementation of the image coding algorithms due to the reduction of the memory cost and the computing time.Saha analyzed the relationship between coding quality and image activity measure (IAM) at a fixed bit rate [7,8].Li proposed a model to predict JPEG2000 image quality at high compression ratios (CR) which obtained desirable prediction accuracy, but required a compression ratio larger than 10:1 [9].In remote sensing, the compression ratio is usually low for fear of large image distortion.However, when the compression ratio is low, it is always difficult to predict image coding quality accurately.
In this paper, differential information entropy is used to predict the image coding quality at low compression ratios.The rest of the paper is organized as follows: in Section 2, a brief introduction on the background of the topic is given.In Section 3, differential information entropy is introduced.Taking the JPEG2000 coding algorithm as an example, the relationship between the differential information entropy and the objective assessment indicator (Peak Signal-to-Noise Ratio-PSNR) at fixed compression ratios is established through data fitting.In Section 4, the relationship among differential information entropy, compression ratio and PSNR is studied.The conclusions are drawn in Section 5.

Background
It is important to predict image coding quality before coding for the purpose of reducing the memory cost and the computing time.The relationship between the image coding performance and the image activity at fixed compression ratios was established in previous researches [7][8][9], and is given as follows: in which  and  are the empirical parameters obtained by conducting different coding algorithms at different compression ratios.PSNR is commonly used to measure the image coding quality, and the calculation formula is in which ( , ) I i j and ( , ) I i j  represent the original image and the decoded image, respectively.The calculation formulas of image activities [8,9] are where IAMD1 and IAME1 represent single pixel distance image activity and double pixel distance image activity.The schematic diagram of the image activities are shown in Figure 1.Li established the relationship between image coding performance and image activity at dynamic compression ratios as follows [9]: in which  and  are functions related to the compression ratio.

Differential Information Entropy
In these studies, it is clearly shown that the prediction accuracy of image coding quality depends on the relationship between the image activity and PSNR.We find out that for some images, the relationship between the image activity and PSNR is not that close.Three images are shown in Figure 2a,b and c with similar image activity.Also, the logarithm of the image activity (lnIAMD1) is used to measure the image activity for each image, which are 2.12, 2.10 and 2.00, respectively.From the lnIAMD1 values, it seems that the images in Figure 2a and Figure 2b have similar image coding performance.Then the JPEG2000 algorithm is used to code the images.The compression ratio is 4 and the coding performance is measured by PSNR.The PSNR values of the three images are 51.12,53.79 and 54.17, respectively.The experimental results indicate that the images in Figure 2b and Figure 2c are similar in the coding performance which is different from the prediction results made by lnIAMD1.Therefore, the first purpose of the paper is to find an image coding quality prediction descriptor, which can more accurately reflect image coding performance.
We have noticed that images which have superior lossless coding performance, would also have good lossy coding performance.Since lossless coding is always simpler than lossy coding, a descriptor that is capable of reflecting lossless coding performance has been considered in the first step.A simple and common lossless coding algorithm can be implemented by conducting differential operation to adjacent pixels and then perform Huffman coding to differential values.The Huffman coding performance is close to the entropy of the differential values.Hence, the differential information entropy can be used to describe the coding performance of the above lossless coding algorithm, which is defined as: in which p N represents the ratio of the number of pixels whose value is N to the number of all pixels in the differential image y(i, j).The differential information entropy(D_Entropy) can be seen as the entropy of the differential image.
In the second step, the differential information entropy is tested to see whether it is capable of measuring the coding performance of lossy coding.The JPEG2000 algorithm is taken as an example and the PSNR is utilized as a measurement for image coding performance.The wavelet base is Db 9/7, and the transform level of wavelet is 3.A database for 8 bit high resolution grey remote sensing images of size 1,024  512 is built.There are three kinds of images, which are urban, plain and farmland, separately.Both simple and complex images are included.The similar characteristics of the images may be reflected in the imaging mode, such as remote sensing.In other words, the parameters by data fitting in the paper may be more suitable for remote sensing applications.The proposed quality prediction method can be applicable to other kinds of images with some other suitable parameters.Then these images are coded at different compression ratios (the compression ratios varying from 4/1 to 12/1), and the PSNR values are calculated for the coded images with each compression ratio.There are two tests: (1) the relationship between D_Entropy and PSNR.By removing some images of similar image compression characteristic, 23 images are selected from the database and used for data fitting.The sum of squares due to error(SSE) and R-square are used to evaluate the data fitting results.(2) The prediction method.The 23 images are used to find the relationship among PSNR, D_Entropy and compression ratio.This relationship is used as an indicator to predict the image coding quality.Six images are randomly selected from the rest images in the database for the verification of the prediction.In the first test, D_Entropy and lnIAMD1 for each image are calculated.The experimental results are shown in Table 1.
Assuming that D_Entropy is linear with PSNR for the sake of convenience, that is * _ PSNR a D Entropy b   .Then data fitting is used to find the parameters a and b.The constraint for fitting is to minimize the mean error of all samples.For comparison, the relationship between PSNR and lnIAMD1 is also studied, which is The assessment parameters include SSE and R-square.The former is to compute the square error sum of original data and fitting data, the formula of which is: ) where i y and ˆi y represent the original data and fitting data.The number of the original data is represented by n and w i are the weights.w i determine how much each value influences the final parameter estimates.Equation (6) indicates that good fittings have small SSE values.R-square determines the fitting effect through the variation of data, the formula of which is: Total sum of squares(SST) is the sum of the square of deviations from the original data( i y ) and the average value( i y ), the formula of which is: Entropy 2014, 16 996 R-square represents the square of the correlation between the real values and the predicted values.The more R-square is, the better fitting result will be.The experimental results are shown in Table 2 and Table 3.  From Table 2 and Table 3, it can be found that D_Entropy has smaller SSE and larger R-square than that in lnIAMD1 at various compression ratios.Hence, a conclusion can be made that D_Entropy has a better linear relationship with PSNR in the data fitting process.

The Relationship among PSNR, D_Entropy and Compression Ratio
The linear relationship between PSNR and D_Entropy at fixed compression ratios has been verified in Section 3. In Section 4, the relationship among PSNR, D_Entropy and compression ratio will be discussed.We have noticed that for most images, coding of the high-frequency sub-bands will consume large amounts of bit rates.Therefore, at a low compression ratio, the loss in one image will happen in the high-frequency sub-bands.Since the loss of the high-frequency sub-bands contributes similarly to the distortion of one image, the relationship between the coding performance (measured by PSNR) and the bit rates (reciprocal of the compression ratios) can also be viewed as a linear relationship.It can be proved in our experiments, which is shown in Figure 3.Then, in the second test, the following relationship can be assumed: Through data fitting of samples in Table 1, it can be obtained that a = 52.9466,b = 7.4096, c = 69.1329.The average mean square error is 1.87.Then the above relationship can be seen as a method to predict the image coding quality.In order to validate the effectiveness of the proposed method, six 8 bit 1,024512 grey remote sensing images are tested.The images and the experimental results are shown in Figure 4 and Table 4, separately.From the experimental results, it can be found that for different images, the prediction error of the proposed method is than that in Li [9] and not exceed 2 dB.Meanwhile, the proposed method is simple.Therefore, it can be widely applied in a variety of space real-time image coding systems.
Finally, other coding algorithms (such as CCSDS [10], SPIHT [11] and EZW [12]) are implemented and tested.The following relationship is also assumed: / * _ PSNR a CR b D Entropy c    .By data fitting of samples in Table 1, the results are shown in Table 5-Table 8. Then the coding quality of the images in Figure 4 can be predicted and the prediction results are shown in Figure 5.The actual results and the predicted results for the coding quality of images in Figure 4 are represented by red line and blue line, separately.From the experimental results in Figure 5, it showed that the maximum prediction error is less than 2.5 dB and the average error is 1.12 dB.Therefore, a conclusion can be made that the proposed method is also efficient for some other coding algorithms.(e) (f)

Conclusions
In this study, the differential information entropy is used to describe the image coding performance.The relationship among differential information entropy, compression ratio and PSNR at various compression ratios is studied.Then a prediction method based on the relationship has been proposed to predict the image coding quality.From the experimental results, it demonstrated that the differential information entropy has a good linear relationship with PSNR.A conclusion can be made that the image coding performance can be predicted with small errors by the differential information entropy, which can be widely applied in a variety of space real-time image coding systems due to its low complexity.With the increase of the compression ratio, it is noteworthy that the relationship among differential information entropy, compression ratio and PSNR may be not a simple linear one.Therefore, the prediction error will be increased.How to reduce the prediction error in high compression ratios is a question we need to solve in the future.

Figure 2 .
Figure 2. Three images with similar image activity.

Figure 3 .
Figure 3.The relationship between D_Entropy and PSNR in different compression ratios.

Figure 4 .
Figure 4. Test images for the validation of the proposed method.

Figure 5 .Figure 5 .
Figure 5. Prediction Results of the Coding Quality for Images in Figure 4.

Table 1 .
Experimental results of image compression.

Table 2 .
The relationship between D_Entropy and PSNR.

Table 3 .
The relationship between lnIAMD1 and PSNR.

Table 4 .
Prediction results of the image coding quality for different methods.

Table 5 .
The relationship between D_Entropy and PSNR for CCSDS algorithm (a = 0).