Redirected from Ratedistortion theory
Rate distortion theory was created by Claude Shannon in his founding work on information theory.

In rate distortion theory, the rate is usually understood as the number of bits per data sample to be stored or transmitted. The notion of distortion is a subject of ongoing discussion. In the most simple case (which is actually used in most cases), the distortion is defined as the variance of the difference between input and output signal (i.e., the meansquared error of the difference). However, since we know that most lossy compression techniques operate on data that will be perceived by humans (listen to music, watch pictures and video) the distortion measure preferebly should include some aspects of human perception. In audio compression perceptual models, and therefore perceptual distortion measures, are well developed and routinely used in compression techniques such as mp3, but often not easy to include in ratedistortion theory. In image and video compression, the human perception models are less well developed and inclusion is mostly limited to the JPEG and MPEG weighing (quantization, normalization) matrix.
RateDistortion Functions The functions that relate the rate and distortion are found as the solution of the following minimization problem:
<math>min_{Q_{YX}(yx)} I_Q(Y;X)</math> subject to <math>D_Q \le D^*</math>
Here <math>Q_{YX}(yx)</math> is the condition probability density function (PDF) of the communication channel output (compressed signal) Y for a given input (original signal)X, and <math>I_Q(Y;X)</math> is the mutual information between Y and X defined as
<math>I(Y;X) = H(Y)  H(YX)</math>
where H(Y) and H(YX) are the entropy of the output signal Y and the conditional entropy of the output signal given the input signal, respectively:
<math> H(Y) = \int_{\infty}^{\infty} P_Y (y) \log_{2} (P_Y (y))dy </math>
<math> H(YX) =
\int_{\infty}^{\infty} \int_{\infty}^{\infty} Q_{YX}(yx) P_X (x) \log_{2} (Q_{YX} (yx)) dx dy </math>
The mutual information can be understood as a measure for a priori uncertainty the receiver has about the sender's signal (H(Y)), deminuished by the uncertainty that is left after receiving information about the sender's signal (H(YX)). Of course the decrease in uncertainty is due to the communicated amount of information, which is I(Y;X).
As an example, in case there is no communication at all, then H(YX)=H(Y) and I(Y;X)=0. Alternatively, if the communication channel is perfect and the received signal Y is identical to the signal X at the sender, then H(YX)=0 and I(Y;X)=H(Y)=H(X).
In the definition of the ratedistortion function, <math>D_Q</math> and <math>D^*</math> are the distortion between X and Y for a given <math>Q_{YX}(yx)</math> and the prescribed maximum distortion, respectively. When we use the meansquared error as distortion measure, we have (for amplitude continuous signals):
<math>D_Q = \int_{\infty}^{\infty} \int_{\infty}^{\infty}
P_{X,Y}(x,y) (xy)^2 dx dy = \int_{\infty}^{\infty} \int_{\infty}^{\infty} Q_{YX}(yx)P_{X}(x) (xy)^2 dx dy </math>
As the above equations show, calculating a ratedistortion function require the stochastic description of the input X in terms of the PDF <math>P_{X}(x)</math>, and then aims at finding the conditional PDF <math>Q_{YX}(yx)</math> that minimize rate for a given distortion <math>D^*</math>.
Unfortunately, solving this minimization problem can be done only for few cases, of which the following two are the most well known ones. However, although exact solutions are only available in a few cases, measured ratedistortion functions in real life tend to have very similar forms.
If we assume that <math>P_{X}(x)</math> is Gaussian with variance <math>\sigma_X^2</math>, and if we assume that successive samples of the signal X are stochastically independent (or, if your like, the source is memoryless, or the signal is uncorrelated), we find the following analytical expression for the ratedistortion function:
<math> R(D) = \left\{ \begin{matrix}
\frac{1}{2}\log_2( \frac{\sigma_x^2}{D} ), & \mbox{if } D \le \sigma_x^2 \\ 0, & \mbox{if } D > \sigma_x^2 \end{matrix} \right.
</math>
The following figure shows what this function look like
Rate distortion theory tell us that no compression system exists that performs outside the green dotted area. The closer a practical compression system is to the red (lower) bound, the better it performs. It should be emphasized that this ratedistortion function holds only for Gaussian memoryless sources. The performance of a practical compression system working on  say  images, may well below the R(D) lower bound shown.
Performance of Practical Compression Systems
Comprehensive information about ratedistortion theory can be found for instance here: Course on signal coding (http://wwwict.its.tudelft.nl/et4_089).
To calculate practical R(D) curves on images (for instance, your own bmp or tif images) using a variety of compression techniques, download the VcDemo Image and Video Compression Learning Tool from http://wwwict.its.tudelft.nl/vcdemo.
Search Encyclopedia

Featured Article
