Benelux Enschede, The Netherlands May 30 & 31,1996 Proceedings of the Seventeenth Symposium on Information Theory in the Benelux - i - Proceedings of the Seventeenth Symposium on Information Theory in the Benelux May 30 & 31,1996 Internationaal Congres- en Studiecentrum Drienerburght Enschede, The Netherlands Edited by: G.H.L.M. Heideman University of Twente, Enschede Published by: Werkgemeenschap voor Informatie- en Communicatietheorie, Enschede, The Netherlands - Li.L - CIP-gegevens Koninklijke Bibliotheek, Den Haag Proceedings of the Seventeenth Symposium on Information Theory in the Benelux / ed. by G.H.L.M. Heideman, Enschede: Werkgemeenschap voor Informatie- en Communicatietheorie. ISBN 90-365-0812-6 - iv - The seventeenth Symposium on Infonnation Theory in the Benelux has been organized by the Vakgroep Tele-Informatica en Open Systemen Faculteit der Electrotechniek, Faculteit Informatica Universiteit Twente, Enschede, Nederland on behalf of the Werkgemeenschap voor Informatie- en Communicatietheorie and the IEEE Benelux Information Theory Chapter. Financial support has been received from: • De Werkgemeenschap voor Informatie- en Communicatietheorie • The IEEE Benelux Section - v - AUTHORS INDEX Page A Berlinet 153 J. Biemond 17,33,159 F.J. de Bruijn 1 S. Desmet 73 B. Deknuydt 73 L. van Eycken 73 L. Györfi 153 A. Hanjalic 159 C.J.E. van Heerde 1 G.H.L.M. Heideman 119 A.P. Hekstra 31,57 J.M. Herrera van de Nood 57 E.P. Hupkens 147 G.J. Keesman 103 R.L. Lagendijk 17,159 G.C. Langelaar 33 J. Levendovszky 137 J.c.A. van der Lubbe 33 H.B. Meeuwissen 129 E.C. van der Meulen 137, 153 M. Mitrea 25 A.W.J. Oomen 9 A. Oosterlinek 73,81 A. Pa~ic 41 P. Pozsgai 137 J.P.M. Schalkwijk 121,129 M. Shoae Bargh 121 Y.M. Shtarkov 111 C.H. Slump 1 J. van Tilburg 31 Tj.J. Tjalkens 111 B.S. Tsybakov 49 P. Vanroose 87 R.J. van der Vleuten 9 P.A.l Volf 95 N.D. Vvedenskaya 65 J.H. Weber 49 S.J.P. Westen 17 F.M.J. Willems 41,95, 111 P.H.N. de With 25 T. Wuyts 81 - vii - TABLE OF CONTENTS Page Session 1: Source Coding I • F.J. DE BRUIJN, C.I.E. V AN HEERDE and C.H. SLUMP Medical Image Compression Boundaries Based on the Image Acquisition Process • R.I. V AN DER VLEUTEN and A. W.I. OOMEN 9 A Comparison of Subband Coding Gain and Transfonn Coding Gain • S.I.P. WESTEN, R.L. LAGENDIJK and I. BIEMOND 17 The TCQF Algorithm: an Encoder Based Noise Shaping Technique for Image Coding • M. MITREA and P.H.N. DE WITH 25 A Comparison between Huffman and Arithmetic Coding for Video Compression Session 2: CryptographylChannel Coding • A.P. HEKSTRA and J. V AN TILBURG 31 An Efficient Scheme for Broadcasting Secured Messages • G.C. LANGELAAR, J.c.A. V AN DER LUBBE and J. BIEMOND 33 Copy Proteetion for Multimedia Data based on Labeling Techniques • F. WILLEMS and A. P ASIC 41 Minimizing the Packet Error Probability Session 3: Dataprocessing in Networks • B.S. TSYBAKOV and J.H. WEBER 49 Conflict -A voiding Codes • A.P. HEKSTRA and J.M. HERRERA V AN DER NOOD 57 On Data Compression in Packet Switched Networks with Channel Errors • N.D. VVEDENSKA Y A 65 An Example of Optimal Message Routing in a Complete-Graph Network Model Session 4: Video Coding • S. DESMET, B. DEKNUYDT, L. V AN EYCKEN and A. OOSTERLINCK 73 A Segmentation-Based Video Codee - ix - • T. WUYTS. L. V AN EYCKEN and A. OOSTERLINCK 81 Combined Motion Estimation and Segmentation for Object-Based Very Low Bitrate Coding • P. V ANROOSE 87 Image Understanding Concepts for Improved Image Compression Session 5: Source Coding Il • P.A.J. VOLF and F.M.J. WILLEMS 95 Context-Tree Weighting for Extended Tree Sources • G.J. KEESMAN 103 Unification of Several Lossless Compression Codes • Y.M.SHTARKOV. T.J. TJALKENS and F.M.J. WILLEMS 111 Optimal Universal Coding with Respect to the Relative Redundancy Criterion • G.H.L.M. HEIDEMAN 119 Minimwn Entropy-Representations and Decorrelation Session 6: Multi-User Information Theory • lP.M. SCHALK WIJK and M. SHOAE BARGH 121 Coding for Channels with Low Rate Noiseless Feedback • J.P.M. SCHALKWIJK and H.B. MEEUWISSEN 129 Efficient Coding Strategies from Two-Dimensional Weighing Session 7: Signal Processingtlistimation • J. LEVENDOVSZKY. E.C. V AN DER MEULEN and P. POZSGAI 137 Tail Estimation by Statistical Bounds and Neural Networks • E.P. HUPKENS 147 On the Quickest Detection of Changes in Random Fields • A. BERLINET. L. GYÖRFl and E.C. V AN DER MEULEN 153 The Asymptotic Normality of Centered Information-Divergence in Density Estimation • A. HANJALIC. R.L. LAGENDIJK and J. BlEMOND 159 Achievements and Challenges in Visual Search of Video - x - PREFACE Since 1980 the Werkgemeenschap voor lnforrnatie- en Communicatietheorie (WIC) and the IEEE Benelux Information Theory Chapter organize a symposium on information theory in the Benelux. These proceedings contain the papers which have been accepted for presentation at the 17th edition of this symposium, held at the University of Twente, Enschede, the Netherlands. May I conclude by expressing my gratitude to mrs. Joke Lammerink for her skilful assistance in preparing these proceedings and in organizing this symposium. Geert H.L.M. Heideman, Editor Enschede, May 1996. - xi - Medical Image Compression Boundaries Based on the Image Acquisition Process F. J. de Bruijn, C.J.E. van Heerde and C.H. Slump Laboratory for Network Theory and VLSI-Design Department of Electrical Engineering, University of Twente, P.O. Box 217, 7500 AE Enschede, The Netherlands Abstract Traditionally, the bounds for lossyimage compressionare primarily based on perceptual requirements. In medical image compression, however,the requirements for the preserva- tion of diagnostic integrity cannot be easily formulated in terms of a perceptual model. Especially, since human visual perception is dependent on numerous factors such as the viewing conditions and psycho-visualfactors. In addition to perceptual factors, the re- quirements for diagnostic integrity heavily depend on the image modality and the type of diagnosis. Generally, as a result of the low patient dose and the limited acquisition time, medical images tend to be relatively noisy. The nature of the noiseis usually known and partlially uncorrelated. In addition, the systems modulation transfer function (MTF) imposes a known spatial-frequency limitation to the information. In the assumption that noise which is not correlated with the signal, contains no diag- nostic information, we derive compression bounds based on a physical model of a digital cardiac cineangiography system. 1 Introduction An important issue in lossy compression of medical images is the risk of destroying diagnostically relevant information. Current lossy compression standards, among which JPEG [IJ and MP EG [2J are widely used, are designed for conventional still-image and video display. These algorithms are intended for viewing situations in which loss of image detail is not regarded as a loss of information to the observer, but is primarily assessed in an aesthetical sense. The data omission in conventional lossy image compression is mostly based on commonly accepted models of human visual perception [3, 4, 5J. Some successful attempts have been reported of the application of perceptive criteria in lossy medical compression [6, 7]. It is debatable, however, whether perceptive criteria are reliable enough to guarantee the preservation of diagnostic information. In this paper, we derive a compression criterion which is not based on properties of the human observer, but on limitations of the image acquisition process, in which noise plays a key-role. The paper focuses on a cardiovascular X-ray system, which is a typical example of a low-dose detection system with Poisson statistics and a spatial-frequency low-pass characteristic. Some experiments [8] yield promising results, some of which are presented in this paper. 2 Image acquisition and data handling The images processed in the research reported in this paper, are acquired with a Philips Digital Cardiac Imaging (DCI) system. The system is schematically depicted in Figure 1. - 1 - video TV pick-up tube processing digital MTF storage restoration ~ ËJ Figure 1: Block diagram of Digital Cardiac Imaging (DCI). X-ray pulses are generated (typ. 5 - 8 ms) at a rate of 15 - 30 frames/s in order to freeze the motion of the coronary arteries which are injected with a contrast agent by means of a positioned coronary catheter. The X-ray photons which have traversed the patient are converted into a video image by the image intensifier-TV system. The resulting video signal is digitized in 8 bits after analog processing. The images are stored on a real time digital disk in 512 x 512 x 8 bit up to 60 frames/so Parallel to the storage on disk, the images are processed (i.e., correction for the low-pass filtering by the imaging components) and displayed on a monitor. The low-pass filtering by the system is described by a mQQ41€!tio'f!tronsie» function (MTF). The following expression can be used as a model for an MTF with circular symmetry MTF(v) = e-(~r, (1) with v [lp/rnm] (line pairs per millimeter) the radial spatial frequency, Vc a frequency scaling parameter, and n the device index [9, 10]. In practice, the choice of n = 2 is a fair approximation of the true MTF. By adding a factor Cl, describing the overall gain of the system, we obtain the model (2) with w = 2trdv [rad/rnm] (wc analog), and with d [mm] the pixel size. 3 Theoretical analysis of the image statistics Discussing the image statistics of cardiovascular X-ray images, we can distinguish two statistics: the statistics of the medical data and the statistics due to the acquisition process. Experiments have shown that, the statistics of the digitized cardiovascular images very well fit to a first-order Markov-process [7]. In addition, the quantum noise due to the detection process can be modeled by a Poisson distribution of which the mean value is determined by the - 2 - photon flux detected at the entrance screen. The total is low-pass filtered by the MTF of the system. In order to be able to determine information theoretic bounds associated with the medical data, we seek a description of the acquired data in a form of which both statistics can be observed separately, preferably by creating two independent stochast ic signals. 3.1 Filtered Poisson noise process The number of detected photons per pixel at location (x,y) forms a random variable n(x,y), which is a matrix with Poisson distributed data with mean >'n(X, y), corresponding to the mean photon-flux variation. For clarity, we observe the one-dimensional signal n(x) and simplify the analysis by considering a constant mean >'0 (x) = Àn (3) A signal f is formed by convolution with h, the impulse response associated with the MTF. The signal f is a process known as shot noise with mean J.Lf and variance a} , f = h * n, with J.Lf = >"n j_: h(x)dx, a} = >"n I: h2(x)dx, (4) according to Campbell's theorem [l l]. 3.2 Non-linear transformation In [12], Anscombe showed that, if n is a Poisson distributed variable with mean >"0' the trans- formation g = T(n) = vn+c, (5) with c=~, results in a variable g which is normally distributed with a nearly constant variance cri= ~ already for moderate values of n. Since >"n is large, we set c equal to zero. To evaluate the suitability of transformation (5) to a filtered Poisson process, we assume that >"n is sufficiently large. In this situation, both the Poisson process n and filtered Poisson process f can be approximated by a Gaussian noise process. For n, both mean and variance cr; equal J.Ln = >"n and = >"0 respectively. For f, however, mean and variance differ by a factor f3 which is independent of >"n cr; = f3J.Lf, with (6) In order to apply (5) to the filtered process f, mean and variance need to be equal. By correcting f with a factor ~, a signal k is obtained with equal mean and variance, with (7) Hence, transformation of k with expression (5) results in a process g, . with J.Lg = VfA: 73' (8) - 3 - 3.3 Noise power spectrum after non-linear transformation After convolution with h and correction with factor (3, a signal k is obtained of which the autocorrelation function equals À >.2 Rkk(Ç") = (3~(h*h)(Ç")+(3~H2(0) = 0"~p(Ç")+.u~H2(0), (9) where * denotes a convolution and p(Ç") = ~(h * h)(Ç) is a normalized correlation coefficient. In Appendix A is explained how after transformation T, given by (5), the autocorrelation of g can be approximated by (10) which results in a noise power spectrum which is independent of the mean photon count Àn, 11 2 Àn 2 Sgg(W) = 4::BH (w) + 21ï-;aH (0). (11) 4 Examples and experiments 4.1 Noise power spectrum With our detector model (2), with MTF(w) and gain a is substituted into (11), the power spectrum becoDles 1 a2 _2(-",-)2 Àna2 -- e ~, + 27r-- with (12) 4 f3 f3 ' Substitution of practical values Vc = 0.94 [lp/mm] and pixel size d = 0.30 [mrrr/pixel] into expression (12) results in Wc = 1.77. The corresponding normalized spectrum is depicted in Figure 2(a). 0.' o. 0.2 ., -a 0., -z (a) Normalized power spectrum for Wc = (b) Power spectrum for p = 0.99 (solid, 1.77. with peak value of 199) and p = 0.90 (dashed). Figure 2: Comparison power spectra Experiments have shown that cardiovascular images can be modeled by a first-order Markov process with the correlation coefficient p = 0.99 [7], which seems to be in agreement with the value reported in [6J. The power spectrum of a first-order Markov process [13Jis given by Sew) = 1 - p2 (13) 1 - 2pcosw + p2 Figure 2(b) shows how tightly the signal energy is packed into the low frequency components, compared to the noise power spectrum in Figure 2(a). This may indicate the potential of this transformation in the light of lossy compression. - 4 - In practice, the true strength of the noise spectrum in the grey value scale (0 to 255) could be estimated from the calibration settings of the X-ray system. Prior to analog-to-digital conversion (see Figure 1), a non-linear transformation transforms the exposure data into grey values, such that an exposure of 16 j.tR corresponds with grey value 100. The existing non- linear function can be replaced by the square-root transformation (5). ITwe maintain the same calibration criterion we get 100 = ,-fSi (14) with, a scaling factor to the grey value. For cardiovascular exposures taken at a peak voltage of 75 kVp, the average photon count per pixel (true area 9 . 10-8 m2) is equal to Àn = 70 pho- tona/pixel for an average exposure of 16 j.tR. 4.2 Illustrative experiment (a) Original image. (b) Compressed image. (c) Power spectrum of (d) Residual image. (e) Power spectrum after original image. compressîon. Figure 3: Compression example A relatively simple compression scheme was applied to a cardiovascular image, taken from - 5 - a diagnostic image sequence. By adjustment of a threshold, small spectral components are selectively deleted. Determination of the threshold level was based on an approximate rate- distortion function as described in [14, 15]. In Figure 3 a result is shown where 66% of the spectral components is deleted. The residual image shows no trace of the original image data. 5 Conclusion We have determined an expression which transforms a filtered Poisson-distributed signal into a 'noise-free' signal term and a noise term, which is not correlated with the signal. In addition, an expression for the noise power spectrum of the transformed signal has been derived, which is based upon a model of a cardiac imaging system. In case the acquisition parameters are known, Llie true amplitude of the noise power spectrum can be estimated. Thus a compression bound is obtained based on the acquisition physics. 6 Acknowledgments We like to thank Marcel Dijkema sharing his numbers and knowledge of the acquisition physics. A Appendix: Autocorrelation after nonlinear transformation The autocorrelation g after non-linear transformation g = T(k) = v'k can be found by where p (kl, k2; Xl, X2) is the joint Poisson probability density which can be approximated by the joint normal density. By linearization of T round k = /J-k, an approximation of Rgg(ç) is obtained which is equivalent to the approximation of ui = ~ according to [12]. Since the relation between the mean values is trivial, the derivation is continued for the zero-mean random variables k and g, k = k - /J-k, g = g - /J-g = g - .Jïik. (16) (17) with ç = Xl - X2· (18) with T'(k) = d'idk'(K) = ~g = ~g, and yJ.Lk VUk 1 ( ki - 2p(ç)klk2 + k~) P ()kl,k2;ç = 27ru~Jl- p2(ç) exp - 2u~ (1- p2(ç)) . The solution to the integral is ~p(Ç), independent of O"~. - 6 - References [IJ G. K. Walla.ce, "The JPEG still picture compression standard," Communications of the A CM, vol. 34, pp. 30-44, Apr. 1991. [2J D. L. Gall, "MPEG: A video compression standard for multimedia applications," Communications of the ACM, vol. 34, no. 4, pp. 46-58, 1991. [3J J. L. Mannos and D. J. Sakrison, "The effects of a visual fidelity criterion on the encoding of images," IEEE Transactions on Information Theory, vol. IT-20, pp. 525-535, July 1974. [4J C. F. Hall and E. L. Hall, "A nonlinear model for the spatial characteristics of the human visual system," IEEE Transactions on Systems, Man and Cybernetics, vol. 7,.pp. 161-170, Mar. 1'977. [5J N. B.Nill, "A visual model weighted cosine transform for image compression and quality assement," IEEE Transactions on Communications, vol. 33, pp. 551-557, June 1985. [6J M. Breeuwer, R. Heusdens, and P. Zwart, "Overlapped transferm coding of medical X-ray images," in MedicalImaging 1994: Image Capture, Formatting, and Display (Y. Kim, ed.), vol. 2194, pp. 264-275, SPIE, Feb. 1994. [7J P. Hagendoorn, "Compression of medical X-ray images while preserving diagnostic value," Master's thesis, University of Twente, Dept. of Electrical Engineering, Enschede, The Netherlands, Dec. 1995. Reportcode EL-BSC-094N95. [8J C. J. E. van Heerde, "Reductie van ruis in coronaire angiogrammen door e2-compressie," Master's thesis, University of Twente, Dept. of Electrical Engineering, Enschede, The Netherlands, Feb. 1996. 250-hours assignment, Reportcode EL-BSC-007N96 (in Dutch). [9J H. E. Johns and J. R. Cunningham, The Physics of Radiology. Springfield, IL: Charles C. Thomas, 4 ed., 1983. [lOJ L. A. J. Verhoeven, Digital Subtraction Angiography: The Technique and an Analysis of the Phys- ical Factors Influencing the Image Quality. PhD thesis, Technische Hogeschool Delft, Delft, The Netherlands, Jan. 1985. [l1J A. Papoulis, Probability, Random Variables, and Stochastic Processes. McGraw-Hill Series in Electrical Engineering, McGraw-Hill, 2nd. ed., 1984. [12J F. Anscombe, "The transformation of poisson, binomial and negative-binomial data," Biometrika, vol. 35, pp. 246-254, 1948. [13] T. Berger, Rate Distortion Theory: A Mathematicol Basis for Data Compression. Electrical Engineering Series, Information and System Sciences Series, Englewood Cliffs, NJ: Prentice-Hall, Inc., 1971. [14] B. K. Natarajan, "A general technique for filtering random noise," Tech. Rep. HPL-94--55, Hewlett- Packard Laboratorioe, Polo Alto, CA, June H)O_1. . [15] B. K. Natarajan, "Sharper bounds occam filters and application to digital video," in Data Com- pression Conference, no. 409, pp. 440-449, IEEE, 1994. - 7 - A Comparison of Subband Coding Gain and Transform Coding Gain R.J. van der Vleuten" A.W.J.Oomen* It is known that transform coding (TC) can have a higher coding gain than sub band coding (SBC), when using the same filter length. We will show, however, that ideal SBC combined with linear pre- diction can theoretically achieve the maximum possible coding gain for all stationary signals. Experiments show that the practical coding gain of SBC with linear prediction can closely approximate the theoretical optimum and confirm the theoretical superiority of SBC over TC. 1 Introduction After a general discussion of linear prediction, we introduce ideal subband cod- ing and show that its combination with prediction can theoretically achieve the maximum coding gain. Next, we introduce transform coding and experiment- ally compare the coding gain of a 512-band transform coding scheme, with linear prediction of the transform-band signals, with that of a 64-band subband coding scheme, with linear prediction of the subband signals. Both schemes use a filter length of 1024. 2 Linear Prediction and Spectral Flatness Assume x is a zero-mean discrete-time wide sense stationary signal, having a variance 0-; and autocorrelation function Rxx(l) = E[x(n)x(n + I)]. (1) The correlation in the signal can be used to predict the current value of x( n) from previous values, x(n -: i), as follows: L x(n) = 2: a(i)x(n - i), (2) i=l 'Philips Research Laboratories, Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands. - 9 - where x(n) is the prediction for x(n), L is the prediction order and the a(i) are the prediction coefficients, the optimal values of which can be determined from Rxx (I) [1, 2). The prediction error e = x - x. The prediction gain is defined as (3) where iJ; is the prediction error variance. The prediction gain measures the im- provement in signal-to-quantization-noise ratio that can be achieved by applying predictive quantization (i.e. by quantizing e) instead of directly quantizing x. The maximum prediction gain, GMAX = limL_oo GpR, is completely determ- ined by the autocorrelation function, or, more conveniently, by the power spectral density s.; (eiw) = l: Rxx(l)e-jwl. 00 (4) 1=-00 As shown in [1], 1 GMAX = 2' (5) Ix where "I:: is the spectral flatness measure of x, defined by (6) Note that -21 j7r Sxx (jw)e dw = iJx· 2 (7) 7r -7r 3 Ideal Subband Coding An ideal M -band subband coding (SBC) system has M ideal bandpass analysis filters H k (ejw) = IJJ if k7r M <.W < (k+l)1r 0 S k S 1\1 - l. { Yo oa 1otherwise M ,for (8) As shown in Figure 1, after filtering, the respective subband signals are decimated by a factor of M (i.e. critically sampled) and are then quantized. To reconstruct the original signal, each quantized subband signal is first expanded by a factor of M and then passed through a synthesis filter. The synthesis filter Fi; (ejW) is equal to the corresponding analysis filter H k (ejW). If x has a non-fiat spectrum, then, in general, the variances of the subband signals, iJ;., will not be equal. Therefore, bit allocation is applied. Basically, - 10 - x(n) Figure 1: Subband coding block diagram. the bit allocation assigns few bits to subbands with a low variance and more bits to the higher-variance subbands. Theoretically, for the mean-squared-error distortion measure, the optimal bit allocation ensures that the quantization error variance is the same in each subband. For optimal bit allocation, the subband coding gain, GSBC, is defined as the ratio of the arithmetic mean to the geometric mean of the sub band signal variances [1, 3]: GSBC = (9) It can be shown that ideal SBC asymptotically achieves the maximum prediction gain [3]: lim GSBC = ~ = GMAX. (10) M_co Ix 4 Ideal Subband Coding Combined With Linear Prediction Although ideal SBC can asymptotically achieve GMAX, in practice the number of subbands will be finite. In that case, GSBC could be lower than GMAX. However, - 11 - by applying predictive quantization on the subband signals (with infinite pre- diction order), the variance of each subband signal can be reduced from O';k to Î';k O";k' where';k is the spectral :flatness measure of sub band signal Xk. Thus the predictive subband coding gain is given by [4]: (11) As shown in Appendix A, GSBC+PR equals GMAX, meaning that ideal SBC can achieve the optimal coding gain for any (finite or infinite) number of subbands. 5 Transform Coding The transferm coding (TC) block diagram is identical to that of SBC (see Fig- ure 1). At low bit rates, codecs employing non-overlapping transforms suffer from perceptually annoying blocking effects. A solution to overcome the blocking ef- fects is provided by the lapped transforms or lapped orthogonal transforms [3, 5]. Typical for these lapped transforms is that the ratio between the filter length and the number of filters is small-in most cases 2. This ratio is very small compared to the ratio for SBC, which is typically larger than 10. Consequently, the fre- quency responses of the TC-filters will have significantly larger overlap than the frequency responses of the SBC-filters. In analogy to SBC, the coding gain for TC (with optimal bit allocation), GTC, is defined as the ratio of the arithmetic mean to the geometric mean of the transform-band signal variances. It is known that, when using the same filter length for both schemes, TC (without prediction) can have a higher coding gain than SBC (without prediction). However, as we have shown in Section 4, SBC with (asymptotic order) prediction is optimal for all stationary signals, whereas it is known that TC (without prediction) is asymptotically optimal only for some special signals, among which AR(l) sources having high positive values of the adjacent-sample correlation [6]. It is therefore interesting to compare the per- formances of SBC and TC when combined with linear prediction. 6 Experimental Comparison of Subband Cod- ing and Transform Coding We will compare the performance in terms of coding gain of a 64-band SBC system and a 512-band TC system. Both filter banks use a filter length of 1024. With each filter bank, 99840 samples from a "pitch pipe" signal sampled at 44.1 kHz are filtered. For this signal, the resulting samples in the individual - 12 - frequency bands represent a roughly stationary signal; stationarity is a necessary condition for this experiment. In Figure 2, the power spectral density of the "pitch ·pipe" signal is shown The signal's structure is very harmonic and has a periodicity of about 330 Hz. In order to establish the total (filter bank plus prediction) coding gain as a function of the total number of prediction coefficients, a coefficient allocation algorithm is used; the actual values of the prediction coefficients are determined using the autocorrelation method [I, 2]. Figure 3 shows the experimental performances of the TC and SBC systems. As a reference, thefull-band coding (FBC) gain (GpR, as defined by (3)), i.e. the gain obtained by direct predictive quantization of the original (or "full-band") signal, has also been plotted. Without prediction (0 coefficients), the TC system clearly outperforms the SBC system, for which the "pitch pipe" is a difficult sig- nal. However, as the number of prediction coefficients increases, the SBC system quickly closes the gap and starts to outperform the TC system. Asymptotically, the gain of the SBC system over the TC system is approximately 0.7 dB, and the asymptotic SBC gain is approximately 0.3 dB below the optimal gain. The difference between the asymptotic FBC and SBC gains is due to the non-ideality of the sub band filters. It can also be observed from Figure 3 that, when the total number of prediction coefficients is small, SBC and TC both outperform FBC. 7 Conclusion In comparing subband coding and transform coding in terms of coding gain, one should take into account the additional coding gain provided by linear prediction. Experiments have shown that the practical coding gain of subband coding with linear prediction can closely approximate the theoretical optimum and confirm the theoretical superiority of subband coding over transform coding. A Proof that GSBC+PR = GMAX We will show that ideal subband coding with linear prediction of the subband signals achieves the optimal coding gain, GM AX. To simplify the notation, we use the fact that S"" (eiW) is symmetric around w = 0, since x( n) is real. GSBC+PR = (12) = (13) - 13 - 90,--------------.---------------,--------------,--------------,-----, 80 70 m -c ~ 60 .a .e: g'50 :::;: E ~ 40 (I) c.. Cf) Q; 30 ~ c.. 20 10 . °0L--------------O-L.5--------------~1---------------1~.~5---------------2~--~~ Frequency Figure 2: Power spectral density of the "pitch pipe" excerpt. 34 .-.---- _._._-- 33 32 - . ...... _ . ëQ31 :£ c ·~30 0> c '0 829 ; :sg ; 0 I- 28 I 1 27 I 25L------L------L-----~------L------L------L-----~------L-----~----~ o 100 200 300 400 500 600 700 800 900 1000 Total number of prediction coefficients Figure 3: Experimental transform (TC), subband (SBC), and full-band (FBC) coding gains as a function of the number of prediction coefficients. - 14 - a2 x 14) exp M[1 E M-I ( loge exp (M J~~ -;- loge (Sxx ( e Jw . ) ) dw ))] (15) (16) In (14), we have used the fact that the filters are ideal, so that = (17) = (18) References [1] N. S. Jayant and P. Noll, Digital Coding of Waveforms: Principles and A.pplications to Speech and Video. Englewood Cliffs, NJ: Prentice-Hall, 1984. [2] A. Gersho and R. M. Gray, Vector Quantization and Signal Compression. Boston, MA: Kluwer Acad. Pub., 1992. [3] P. P. Vaidyanathan, Multirate Systems and Filter Banks. Eaglewood Cliffs, NJ: Prentlee- Hall, 1993. [4] S.-L. Tan and T. R. Fischer , "Linear prediction of subband signals," IEEE J. Select. A.reas Commun., vol. SAC-12, pp. 1576-1583, Dec. 1994. [5] H. S. Malvar, Signal Processing with Lapped Transforms. Norwood: Artech House, 1992. [6] H. S. Malvar. "Lapped transforms for efficient transform/subband coding," IEEE Trans. A.coust., Speech, Signal Processing, vol. ASSP-38, pp. 969-978, June 1990. - 15 - THE TCQF ALGORITHM: AN ENCODER BASED NOISE SHAPING TECHNIQUE FOR IMAGE CODING SJ.P. Westen, R.L. Lagendijk, and J. Biemond' Abstract We propose a general algorithm for encoder-based artifact reduction in transform coding. The algorithm can be used for noise shaping, i.e. concentration of the quantization noise in the region of the blocks where it has the lowest visibility. The method is based on the new Transform Coding Quantization Feedback (TCQF) algorithm, a general algorithm for quantization noise feedback in transform coding which optimizes the weighted squared error in the image domain. Experiments show that the algorithm leads to a significant reduction of mosquito noise in the decoded image at the same bit rate while maintaining complete compatibility with standard decoders. 1 Introduetion The Discrete Cosine Transform (DCT) is widely used in image and video coding, and is an important part ofthe JPEG and MPEG standards for image and video coding [1-4]. The use of the DCT leads to a variety of coding artifacts, of which the most important ones are blocking and mosquito noise. Blocking is visible at low bit rates, where the independent processing of the blocks leads to intensity jumps at block edges. Mosquito noise is the presence of quantization noise in the background of blocks that contain object as well as background. The quantization noise is not masked by the image content in the background, and therefore it is clearly visible. Several algorithms have been proposed for coding artifact reduction, although these methods are generally decoder based [5,6]. These algorithms are usually based on filtering and smoothing operations with some additional constraints. For many practical applications (e.g. digital television, video on demand, digital video disc, Cl.ï-Video), the number of decoders is far larger than the number of encoders, and an increase in the encoder complexity is less important than an increase in the decoder complexity. The encoders are not standardized, although the encoded bit-stream should be decodable by a standard decoder. Furthermore, the encoder knows what the original image looks like, and the decoder can only guess what it should look like. Therefore avoiding the artifact to be visible in the encoder has many advantages compared with artifact reduction in the decoder. 1 Information Theory Group, Department of Electrical Engineering, Delft University of Technology, P.O. Box 5031, NL-2600 GA, Delft, The Netherlands - 17 - In this paper, we propose an encoder-based algorithm for artifact reduction. The algorithm can be used in any coding system that is based on transform coding, and is only dependent on the linear transform and the quantizers that are used. The basic idea is to apply spatial noise shaping: we wish to concentrate the noise in the parts of the image where it has the lowest visibility. Our algorithm allows contra I of the spatial noise distribution in the blocks. In a classical transform coder, the quantization of the transform coefficients is performed independently, which normally results in noise which has equal variance at all spatial coordinates in the block. Girod showed how the spatial distribution of the quantization noise can be influenced by applying quantization noise feedback, which requires quantization noise correlation in the transform domain Pl. Girod's method has the disadvantage that no exact or even approximate relation is known between the noise feedback filter coefficients and the resulting spatial noise distribution. The situation is complicated by the fact that in practical coding schemes a different quantizer is used for each coefficient. Another drawback is the problem of finding the best order in which the coefficients should be quantized. This method is also based on a statistical method, which on average will give the required distribution, whereas we wish to have precise control in each block. Our algorithm gives precise controlof the spatial noise distribution by quantization error projection. We will first describe the generic transform image coding system. After that, we propose the new algorithm, which we call TCQF (Transform Coding Quantization Feedback). We demonstrate how this technique can be applied to image coding and show that it leads to a significant reduction of mosquito noise for JPEGIMPEG coders. 2 Transform coding Figure 1 shows a generic transform coder. Usually, the input signal is processed in blocks, which have size 8 by 8 in the JPEG and MPEG standards. A linear transform is applied to each block. The purpose of the linear transform is decorrelation of the signal.We wish to concentrate the energy of the input signal into a few transform coefficients. Examples of linear transforms that have been used in image coding are the KLT, DWT, DFT, and the DCT [8]. The transform coefficients are quantized by quantizers which are different for each coefficient, depending on the statistical properties of the coefficients and the perceptual significanee of the coefficients. The quantized coefficients are entropy coded and transmitted or stored. In a practical system, optimization of the quantization and the entropy coding needs to be carried out. The JPEG standard gives the freedom to choose the quantization stepsizes for each quantizer and the VLC codes for the entropy coding. Input Linear Entropy Signal Transform f----+I Quantization Coding f-- Channel Figure 1: The generic transform coder - 18 - 3 The TCQF algorithm 3.1 Problem formulation In a classical transform coder, the use of a unitary transform (which is the case for the KLT, DWT, DFT and DCT) means that the Mean Squared Error (MSE) in the signal domain is equivalent to the MSE in the transform domain. The use of a unitary transform means that the quantization of the coefficients can be done independently of each other, because the basis vectors of the transform form an orthogonal basis (figure 2a). As an example, let us assume that we want to code the input vector (XJ,X2).This means that we have to calculate the decomposition of the input signal into the basis vectors al and a2, which means that we can write the input signal as the sum YI.al+Y2.a2.This decomposition can be found by projection of the input vector onto the basis vectors. After that, the transform coefficients YI and Y2are quantized to integer values which results in YI and Yz. The black dots in figure 2a indicate the input vectors that can be represented after quantization. The white dot indicates the point that is the closest to the input vector, and which is the best representation of the input vector. Suppose we wish to use a weighted squared error criterion instead of the MSE. The weighting can either be done in the transform domain (figure 2b) or in the signal domain (figure 2c). The weighting does not influence the linear transform (i.e. gives the same values for YI and Y2),but effects the orientation and length of the vectors al and a2. Normally, the weighting is done in the transform domain. In image coding, the weighting usually depends on properties of the Human Visual System (RVS). Quantization in the case of a transform domain weighted MSE is still independent, because the weighted basis vectors are still orthogonal to each other, which is clear from figure 2b. We can also carry out the weighting in the signal domain. In image coding, we could calculate the HVS sensitivity at each pixel position, and use that weighting to calculate a weighted squared error. Generally, the basis vectors will no longer be orthogonal (figure 2c). Quantization along of one basis vector will effect the best representation values of the other basis vectors. As a consequence, we need an algorithm to search for the nearest lattice point. In the next section we propose an algorithm that finds good solutions. The constraints for the optimization procedure are the linear transform and the quantizers that are used. 1<1 • X2 Figure 2: Coding of the signal vector (XJ,X2).The basis vectors and the decomposition of the black dot into the basis vectors are shown in the figure for the unweighted case (2a), weighting in the transform domain (2b), and weighting in the signal domain (2c). The white dots are the best representations of the input vector. - 19 - 3.2 Optimization algorithm When the input signal is given by the vector x, and the linear transform is given by the matrix A, and the transform coefficients are given by y, we can write the linear transform as: y=Ax (1) When an orthonormal transform is used (AtA = 1), this is equal to: Ay =x (2) When y is quantized with uniform quantizers with stepsizes described by the matrix S, which is a diagonal matrix which contains the stepsizes, and the integer vector y contains the quantized values, the resulting spatial error óx is equal to: LU = (AtS Y -x). (3) If we define the weighted spatial error as ÓXw = W LU, where W is a diagonal matrix which contains the spatial weighting factors, the weighted squared error is equal to: (4) If we now define Aw= A W, and we take x; = Wx, then II~wf is given by: (5) This means that in order to minimize II~XwI12, we have to find the point on the lattice which is generated by multiplying the set of basis vectors B=AwtS with the integer vector y, which is the closest to the vector xw. Due to the large number of combinations of y, an exhaustive search for the optimal solution is totally out of the question, even if we would only consider 2 values for each coefficient, we already have 264= 1019 combinations. We propose an algorithm which finds good values of y, although it will not always find the global rrurumum. The basic strategy of our algorithm is to start with the quantization of the coefficients which correspond to the basis vectors of B which have the greatest length. The quantization error is projected onto the hyperplane formed by all other remaining basisvectors. Under the condition that the current coefficient has been quantized, the projected point is the best reprësentation of the input vector, because it is the orthogonal projection of the quantization error. We continue this procedure with the next coefficient until all coefficients have been quantized. The algorithm is similar to Girod's algorithm, because we also use dependent quantization of the coefficients. The use of the QR decomposition for the projection leads to the following algorithm for the quantization of y: - 20 - TCOF algorithm 1. Calculate xw=Wx and B = WA'S 2. Sort the columns bh b2, ... ,bDof B according to length, such that the columns which correspond to the basisveetors with the shortest length are on the left. Put the sorted columns bi', b2', "'" bD'in the matrix B'. 3. Calculate the QR decomposition of B' using the Gram-Schmidt algorithm [9]: B'=QR. Q is orthonorrnal (Q'Q=I) and R is upper triangular. 4. Calculate c = Q'b 5. Use Ry=c to find YD 6. Quantize YD,and replace YDby its quantized value Y D, and substitute this quantized value in step 5 to calculate YI"'YD-I. 7. Decrease n, and continue with step 6 8. Reorder y In fact in step 5, the quantized coefficient value is fed back into the calculation of the remaining coefficients, hence the name TCQF. When equal weighting is used (W=I), then the algorithm will find the same solution as in the unweighted case. Crucial in the TCQF algorithm is the sorting of the columns of B. The present version of our algorithm does not always result in the optimal solution for y, because in some cases a fixed ordering of B cannot result in the optimal quantization (figure 3). An interesting question for future research is whether the optimal solution can be obtained by using another (data dependent) ordering of B. We should probably not only consider the length of a column of B, but also the length of its projection onto the other columns of B. Figure 3a: Optimal quantization, 3b: Quantization in the order Y2,YI, 3c: Quantization in the order Yb Y2. 4 Spatial weighting In this section we propose a spatial weighting for noise shaping in DCT image coding. The weighting should model the human sensitivity to noise at pixel positions in the image. The most relevant properties of the human visual system for this pixel sensitivity are the luminance sensitivity and texture masking effects [10]. In most cases, the sensitivity is - 21 - reduced in bright areas and in textured areas. The first effect not only depends on the human visual system, but also on the display device that is used. In order to illustrate the concept of spatial noise shaping, a very simple weighting is used in this paper. This simple weighting is sufficient for good mosquito noise reduction, although better results can be obtained by using a more advanced model of visual sensitivity [l O], The weighting proposed here is calculated by calculating for each pixel the variance s(x,y) of the block of 3 by 3 pixels, which surrounds the pixel (including the pixel itself). The weighting w(x,y) for the pixel at position (x,y) is then defmed by: 1 w( x, Y) r::;;;-::: , (6) llllU(tlJ ,l+vs(x,y)) where =3.5. References [1] CCIIT, Recommendation H.26I: Video Codec for Audiovisual Services at p x 64 kbit/s, Mar. 1990. Draft Revision. [2] Coding of Moving Pictures and Associated Audio for Digital Storage Media at up to 1.5 Mbit/s, ISO 11172 (MPEG-l standard), 1993. [3] Generic Coding of Moving Pictures and Associated Audio, ISOIIEC 13818 (MPEG-2 standard), 1994. [4] W.B. Pennebaker and J.L. Mitchell, JPEG Still image data compression standard, Van Nostrand Reinhold, New York, 1993. [5] D. Wei and C.S. Burrus, "Optimal Wavelet Thresholding for Various Coding Schemes", IEEE International Conference on Image Processing, Arlington, Virginia, pp. 610-613, 1995. [6] M. Crouse, K. Ramchandran, "Nonlinear Constrained Least Squares Estimation to Reduce Artifacts in Block Transferm-Coded Images", IEEE International Conference on Image Processing, Arlington, Virginia, pp. 462-465, 1995. [7] B. Girod, U. Horn and Y. Xiancheng, "Spatial shaping: a fully compatible improvement of DCT coding", Picture Coding Symposium, Lausanne, 1993. [8] R.C. Gonzalez, P. Wintz, Digital Image Processing, Addison Wesley, 2nd ed., 1987. [9] G. Strang, "Linear algebra and it's applications", Harcourt Brace Jovanovich, 3rd ed., San Diego, 1988. [10] Westen, S.J.P., R.L. Lagendijk, J. Biemond, "Perceptual image quality based on a multiple channel RVS model", ICASSP-95, pp. 2351-2354, 1995. - 23 - A Comparison between Huffman and Arithmetic Coding for video compression Mihaela v.d. Schaar-Mitrea and Peter H.N. de With Philips Research Labs., Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands. Abstract - Two variable-length coding techniques, i. e. Huffman and arithmetic coding, have been tested with respect to their capabilities for video compression. We have found that the coding efficiency of arithmetic coding is slightly better than that of Huffman coding at the expense of more complexity. 1. Introduction In this paper we study the performance of Huffman coding and arithmetic cod- ing. The purpose of our investigation is to test both coding procedures for video compression applications and to consider the implementation complexity of both techniques. In this study we looked mostly to adaptive coding, e.g. using particular coding parameters depending on the image content. Recently, a number of video compression standards have been introduced for new systems in digital transmission and storage which employ variable-length coding (VLC) techniques. For example, DCT-based coding systems, such as MPEG [1] and DVC [2] [3] for digital video recording have become quite popular. In these systems, the VLC is applied after performing a decorrelation step (DCT) and ad- aptive quantiaation of the spectral components. The amplitude statistics of the data obtained is typically distributed exponentially [4J. In our case, we have used a dif- ferent and much simpler system for decorrelation and quantization (our focus is on the VLC applied), which also yields exponential amplitude statistics, namely Ad- aptive Dynamic Range Coding (ADRC). This technique was originally introduced for compression in digital video recording [5] for standard TV applications. 2. ADRC Coding The ADRC data compression system can be seen as a two-dimensional predictive coding technique that exploits the local space correlation within the video signal. The basic idea of ADRC is as follows. The image is partitioned in small subblocks (e.g. 4 x 4 samples) and, subsequently, the maximum and minimum sample value - 25 - Determine Variable MIN/MAX/DR length-coding Output bit-stream Figure 1: Block diagram of feedforward ADRC encoder. of each block are determined. The difference between the maximum and the min- imum sample value in a block is called dynamic range. The minimum sample value is transmitted as a global prediction for all other samples inside this block. After subtracting the minimum value of the actual sample value, all difference values are quantized adaptively according to the dynamic range. We have extended the basic ADRC coding system with feedforward coding in small segments, i.e. a group of blocks. The objective of [eedforuiard coding is to compress small subimages to a fixed number of bits. In order to achieve this, the video data that is compressed is first analyzed employing various quantization strategies. Afterwards, the best strategy is chosen in order to obtain the desired bit rate. Without this look-ahead technique, e.g. when using feedback coding, the input video data would result in locally large variations of the actual bit cost used and thus segments of varying length. In our application, we have aimed at a high picture quality with a compression factor of two. Figure 1 depicts a block diagram of the encoder. After the segments have been analyzed and the average quantization strategy has been selected for the complete segment, the final quantization can take place. The quantization function is basically a uniform quantizer, in which the quantizer step size can be varied. Thus, for each block within a segment, the minimum, dynamic range and the quantization strategy can be determined, such that each block can be quantized and coded. In order to further improve efficiency, it is proposed to add variable length coding (VLC) after quantization of the sample differences. The VLC techniques are applied on the same small, e.g. 4 x 4, pixel blocks and the data ranges between amplitudes 0 and 63. 3. Statistics after quantization First, a study of the video data after the ADRC quantizer was performed and the main conclusions are summarized below. For this study we used various video frames having different content. In our measurements, 4:2:2 YUV component sig- nals have been applied. The images were based on the CCIR-601 standard with a 13.5 MHz sampling frequency for the luminance (Y) signal and 6.75 MHz for the colour difference signals U and V. This results in 720 and 360 active samples/Iine for Y and U IV, respectively. In 50 Hz systems, 576 lines per frame are active. The statistics showed the following properties. - 26 - • The distribution of video data after initial compression and quantization de- cays exponentially with the amplitude of the quantized video signal. • The distribution of the quantized video data per segment (e.g. band) is almost stationary. • Code construction can best be based on the multiplexed YUV component signal rather than the individual video signal components. • The measure of activity (dynamic range) inside a small block of video data is a key parameter for the code construction. We found considerable differences between the probability distributions of the quantized output as a function of the dynamic range class. • The quantization strategy (i.e. coarseness) selected is not of major importance for the design of the code. 4. Variable length coding Two variable-length coding techniques have been compared both in terms of com- pression results and implementation complexity: Huffman and arithmetic coding. We were particularly interested in the arithmetic coding technique, because it can be easily made adaptive to the image statistics. First, standard versions of the cod- ing algorithms based on a single encoding table were implemented, using the ADRC quantized video data as an input. This gave an improved compression performance of about 10 % for both Huffman coding and arithmetic coding. 4.1 Adaptive Huffman coding Secondly, we applied the dynamic range parameter as an extra parameter for code design. This strategy was based on the measurements of the previous section. In- strinsically, 8 different classes were used to classify the dynamic range (DR) para- meter, but experiments showed that 4 different classes for code design were sufficient. For each class, a different variable-length code was designed. This approach gave an additional compression improvement of 10 %. For reduction of complexity, we took two measures. Firstly, we limited the max- imum codeword length to 16 bits, because the exponential amplitude distribution of the input data lead to rather long codewords with low probability. By rearran- ging the Huffman code to limited wordlengths of 16 bits, we found that the coded representation of a frame increases with 0.006 %, which is negligible considering the decrease in complexity. Secondly, by redesigning the encoding tables in such a way that the number of entries in each table was minimized, a further decrease in complexity was obtained. From a Huffman code using 4 tables with 2, 8, 32 and 64 entries, the system was reduced to using 4 tables with 1, 5, 16 and 16 entries, respect- ively, without decreasing the compression performance. In this way, the number of different entries reduced with a factor 3. This result was achieved by clustering the - 27 - codewords with the same number of bits as subsequent numbers. In this way, only one table entry (prefix) for the representation of these codes is required, while the remaining part of the codeword is uniquely determined by adding a suffix. 4.2 Adaptive arithmetic coding With respect to arithmetic coding, we used the standard rules of the Cleary and Witten algorithm [6], for which the iteration is described as follows. Initialization starts with 0, Phigh = 1, Phigh - Plo,,"" (1) while the iteration is executed as ns i= EOM: Plow + Ra X Pcum(nS), (2) E10w + Ra X Pcum(ns + 1), (3) Phigh - ?tow, (4) In this notation, EOM stands for "end-of-message", ns for new symbol, Ra for the probability range, and Pcum denotes the cumulative probability of the symbol al- phabet. In the case of arithmetic coding, the efficiency gain is doubled (sometimes tripled) if the encoding is performed according to the four classes of the dynamic range. Unfortunately, statistically adaptive coding improves the coding efficiency only mar- ginally, on the average 2-5 %. With statistically adaptive coding we mean updating the (cumulative) probability distribution of symbols according to their actual occur- rence, during the encoding process. In this case, we took an "average" distribution of starting the update process. Apparently, the increase in the hardware complexity does not yield a substantial improvement in the compression factor. The implementation of the arithmetic (de-) coder requires more complexity than the Huffman (de- )coder, because the intervals and cumulative probabilities need to be computed. In order to make the arithmetic coding solution competitive from the hardware complexity point of view, we made an attempt to rednee the complexity of the statistical modelling of the probability distributions. The first idea was to use one frequency table instead of four with respect to the dynamic range classes. This means that each block will be encoded using an arithmetic code based on a corresponding number of frequencies (entries) from the table and according to the corresponding dynamic range of that block. We found that the compression in the case of four different tables does not differ significantly from the case of only one probability table. Instead, the hardware complexity was reduced from four tables containing 106 entries to only one table containing 64 entries. The small modi- fication of the compression factor when using one table, is explained by the the - 28 - fact that in all classes, the distribution of the frequencies decays exponentially, so that one exponential model is sufficient for describing the four different probabil- ity distributions. In order to further reduce the implementation complexity of the arithmetic coding algorithm, we applied a probability table containing 64 entries of 9 bits, with the last 47 entries having incremental cumulative probabilities, instead of using a probability table containing 64 x 16 bits. This proposal results in a hard- ware implementation having 64 entries of 9 bits and an adder, without sacrificing the compression performance. 5. Results and conclusions Table 1 portrays the performance comparison between the Huffman and arithmetic coding procedure, both for adaptive and non-adaptive coding. Our experiments have lead to the following conclusions. For non-adaptive coding (columns HI and AI), both algorithms are nearly equal as could be expected. If both algorithms are adaptive to the dynamic range (DR), then the efficiency improvement is roughly doubled to approximately 20 % (al- gorithms H2, H3 and A3). If the statistical models in the arithmetic coder are also adaptive to the occurrence of symbols within a specific DR class, the arithmetic coder additionally improves with roughly 5 %. Apparently, the largest coding gain comes from adaptivity based on the local pic- ture contents, whereas the more global statistical adaptivity gives less improvement. We have found that the difference between the entropy of the coder input and the entropy of the source based on Huffman coding is rather small (0.05), implying that the designed Huffman code is rather efficient, so that the extra gain of the arithmetic coding technique is limited by this small difference. It can be seen that the Huffman coder can be limited in complexity at the expense of a minor efficiency decrease. This yields a substantial difference in complexity between the adaptive Huffman coder and the adaptive arithmetic coder. Therefore, our final conclusion is that the Huffman coding technique which is adaptive to the I Scene I Hl I H2 I H3 I I Al I A2 I A3 I 'Mobi' 7 17 16 8 23 17 'Car and gate' 12 22 21 13 30 27 'Baltimore' 6 18 18 7 29 21 'Football' 10 20 20 11 25 20 Table 1. Percentual efficiency improvement of Huffman Coding (Hl: non-adaptive, H2: adaptive to DR, H3: adaptive to DR and limited wordlength to 16 bits), and improvement of Arithmetic Coding (Al: statistically fixed model; A2: 4 tables adaptive to DR, each model statistically adaptive; A3: 1 statistically fixed model depending on DR). - 29 - dynamic range having limited wordlength represents the best solution, because it requires a less complex hardware implementation and it gives an improvement of about 20 %. Acknowledgement We gratefully acknowledge our Philips colleague H. Mennen who supplied us with the ADRC algorithm. References [1] "Coding of Moving Pictures and Associated Audio", International Standard, ISO/IEC 13818, November 1994. [2] "Outline of Basic Specifications for Consumer-Use Digital VCR", Matsushita, Philips, Sony, Thomson, July 1993. [3] R.W.J.J. Saeijs, P.H.N. de With, A.M.A. Rijckaert and C. Wong, "An Ex- perimental Digital Consumer Recorder for MPEG-coded Video Signals", IEEE Trans. Consum. Electron., Vol. 41, No. 3, pp. 651-661, August 1995. [4] R.C. Reininger and J.D. Gibson, "Distributions of the Two-Dimensional DCT Coefficients for Images", IEEE Trans. Commun., Vol. COM-31, No. 6, pp 835- 839, June 1983. [5] T. Kondo et al., "Adaptive Dynamic Range Coding Scheme for Future Consumer Digital VTR", IERE Proc. 7th Int. Conf. Video Audio & Data Recording, York (UK), Publ. No. 79, pp. 219-226, March 1988. [6] T.C. Bell, J.G. Cleary and l.H. Witten, "Text Compression", Prentice-Hall, Englewood Cliffs NJ, 1990. - 30 - An Efficient Scheme for Broadcasting Secured Messages Andries P. Hekstra and Johan van Tilburg' Exerpt: This paper describes an efficient scheme for broadcasting secured messages. The new scheme is based on the following observation. "When a user i is not authorized to read the secured message m, then the message is encrypted with his encryption algo- rithm E; of which he does not know the corresponding decryp- tion algorithm D;." Suppose that in a group J{ of nusers, m $ n users are al- lowed to read the secured message m. Let I C J{ denote the subset of users that are not authorized to read the mes- sage. Then, the broadcasted message is given by c = n;el Elm) and deciphering by an authorized user is performed as: m = n; EI D;(c) . Suppose the fraction of authorized users is given by: p =mln. Partition the group of n users in subgroups of car- dinality b. There are bh~) bits necessary to represent the authorized users in the group. When the size of the secured message is r bits, then to represent each user we need bh(p)+r r _:..:....:.._ = h(p)+- bits. b b For the scheme it follows: r r +- $ h(p) + Ei, so that - $ Ei h(p) b b or b=~Ei. Hence, the scheme is in Shannon sense optimal. The number of decryption algorithms is r (b -I) + 1= b = - = Oer) . Ei Note that this is linear in r and is independent of nand m, • KPN Research, p.a. Box 421, 2260 AK Leidschendam, The Nether- lands - 31 - Copy Protection for Multimedia Data based on Labeling Techniques G.C. Lange/aar, J.e.A. van der Lubbe, J. Biemond Department of Electrical Engineering, Information Theory Group Delft University of Technology P.O.Box 5031, 2600 GA Delft, The Netherlands E-mail: {Gerhard.vdLubbe}@it.et.tudelft.nl Abstract Service providers are reluctant to distribute their multimedia data in digital form because of their fears for unrestricted duplication and dissemination. Therefore robust methods must be developed to protect the proprietary rights of the multimedia data owners and to realize a copy proteetion mechanism. In this paper the existing methods for labeling multimedia data are discussed and evaluated. A possibility is given to extend these methods towards a robust copy proteetion system for new mass storage devices. Some methods suitable for a copy proteetion method are selected and weak points are discussed. One of these methods is extended to embed a bit sequence instead of one bit in an image and to make it more resistant to lossy compression techniques. Using this method some true color images (size about 500 x 500) were labeled with about 200 bits. The label turned out to be resistant to JPEG compression, with quality parameter set up to 40% (compression rate >1 :20). 1. Introduction Nowadays digital recording devices are available for recording audio. Using personal computers it is also possible to store digital video on a harddisk. The storage capacity of a harddisk is, however, not sufficient to store a complete full resolution home video. For the consumer it would be easier to have one digital storage device that can handle huge amounts of multimedia data. Such a device can replace all other recording equipment in the home, like tape or DAT recorder, VCR and tape streamer. The aim of the SMASH" project, supported by several companies and universities, is to develop a popular mass-home-storage-device. The development rate of such a digital mass storage system is dependent on not only technical advances, but also on the existence and evolution of adequate proteetion methods on it. Therefore, robust methods must be developed to protect the proprietary rights of the data owners and to realize a copy proteetion mechanism limiting the easiness of duplication of multimedia data. A copy proteetion system called SCMS [I] (Serial Copy Management System) exists for digital audio recorders, like the DAT, DCC and minidisk recorders. Using this system, a consumer can make only one digital copy of any digital source. Such a copy can not be duplicated further using storage devices equipped with this proteetion method. The proteetion is embedded in the transfer protocol. Together with the music data some sub-code data is transmitted. One bit in this sub-code is called the copy prohibit bit. This bit is set to "one" for every recording. If the consumer tries to record audio data containing a copy prohibit bit, the storage device simply refuses to record. " This work is funded in part by the European Community under the ACTS contract ACI8 (SMASH -Storage of Multimedia Applications Systems in the Home), and started in September 1995. More information about the SMASH project can be obtained from the WWW-pages: http://www-it.et.tudelft.nl/pda/smash. - 33 - However, this system can not be applied on a mass storage system for multimedia data with several interfaces to different kinds of devices. For example, if data is transferred from the storage device to the harddisk of a personal computer, the copy prohibit bit is lost, because it was only part of the transfer protocol. Therefore, the copy prohibit bit needs to be directly encoded into the audio, image or video signal itself. In this way the bit remains intact across varying data file formats. It is obvious that the copy prohibit bit must be inaudible or invisible for the user and that it must be difficult to remove the bit by using lossy compression techniques, filtering or other processing techniques, that change the data, but do not considerably affect the quality of the data. By embedding a copy prohibit bit in the data it is still possible to copy the data to devices that are not equipped with this copy proteetion system. However, if data is copied to such devices it can not directly be played back due to a lower transfer rate of that recording device (e.g. tape streamer) or the amount of data is too big to fit because of a limited storage capacity. So, a few images out of a digital library or some audio fragments can be copied, but it is probably more expensive and time consuming to store this data on other media than buying the original data and using the new mass storage device. In this paper the existing methods for labeling multimedia data are discussed and evaluated. After that, some methods suitable for a copy proteetion method as described above are selected and weak points are discussed. One of these methods is extended to embed a bit sequence instead of one bit in an image and to make it more resistant to lossy compression techniques. Finally, conclusions are drawn. 2. Existing Copyright Labeling Techniques The technique of embedding information in image, video and data is called steganography. It is mainly used in the field of copyright labeling, where data is labeled to identify it uniquely as property of the copyright holder. A label normally consists of a binary serial number or an ASCII text string. Several projects are working or have worked on this subject, like the EC RACE project ACCOPI [2] and the ACTS project TALISMAN [3]. Labels can be added in almost every domain (Spatial, DCT, Wavelet, Fourier, etc.) using different methods. There are two possibilities to extract the label from the image, some methods only use the labeled image, others also uses the original image. The simplest method manipulates the least significant bit of the luminance values or color components of an image, in a manner which is undetectable to the eye [4]. However, this method is not resistant to for instance JPEG compression. The two following methods embed a label of one bit in the spatial domain. Bender et al [5] describe a statisticallabeling method called "Patchwork". Using this method, n pairs of image points (ai,biJ are randomly chosen. The brightness of ai is increased by one and the brightness of the corresponding bi is decreased by one. The expected value of the sum of the differences of the n pairs of points is then 2n. The authors show that after JPEG compression, with quality parameter set to 75%, the label can still be decoded with a probability of recovery of 85%. Pitas and Kaskalis [6] describe a similar method. Using this method the picture is split in two subsets of equal size (for example by using a random generator) and the brightness of the pixels of one subset is altered by adding a positive integer factor k. This factor k is calculated using the sample variances of the two subsets. To check the label the difference between the means of the two subsets of pixels is calculated. The expected value is k if a label was added. This method is only resistant to JPEG compression ratios up to 4: 1 (quality factor of more than 90%). The major drawback of these two methods is the extremely low bit capacity, usually one bit. Caronni [7] also describes a method which embeds a bitstream in the luminance values of an image. The image is divided up into blocks. Every pixel in a block is incremented by a certain factor to encode a 'I' and is left untouched to encode a '0'. To recover a label, the brightness of each pixel in the labeled image is subtracted from the original one. If the mean of a block of pixel differences exceeds a certain threshold, the corresponding bit is taken as '1', otherwise as '0'. After - 34 - JPEG compression, with quality parameter set to 30%, the label can still be recovered. A disadvantage of this method is that the original unlabeled image is required to decode the label. Zhao and Koch [8] propose a method to embed a bitstream in the DCT domain. The image is divided up into 8x8 blocks (like the JPEG algorithm does). From pseudo-random selected 8x8 blocks the DCT coefficients are calculated. These coefficients are quantized using a quality factor Q and the standard quantization matrix of the JPEG software. Three quantized coefficients are selected and adapted in such a way that they have a certain order in size. For example if a bit 'I' must be embedded in a block, the third coefficient must be smaller than the other two. In an earlier proposal by the same authors [9], two instead of three coefficients were used. After JPEG compression, with quality parameter set to 50%, the label can still be recovered. Advantages of this method are that the original unlabeled image is not required to decode the label and that a quite large bitstream can be embedded. Cox et al. (10) embed a sequence of real numbers of length n in an N x N image by computing the N x N DCT and adding the sequence to the n highest DCT coefficients, excluding the DC component. To extract the sequence, the DCT transform of the original image is subtracted from the DCT transform of the labeled one and the sequence is extracted from the highest coefficients. A disadvantage is that the original unlabeled image is required to decode the label. Boland et al. [11] describe a method that works with different image transforms (DCT, Walsh- Hadamard, Wavelet, Fast Fourier). An image is divided into blocks, the mean of the block is subtracted from each pixel in the block and the remaining values are normalized between -127 and 127. The transform is carried out on the image block and some coefficients are modulated to embed a number of bits, for instance by adding one to a coefficient for bit' I' or subtracting one for bit '0'. A reverse transformation is carried out and the original block is replaced by the labeled one. A disadvantage of this method is that the original unlabeled image is required to decode the label. After JPEG compression, with quality parameter set to 90%, a label could be recovered from an image with a bit error rate of 14% using the DCT transform technique, using other transforms the bit error rates were higher. 3. Evaluation labeling methods The labeling methods described above can add information to an image in an invisible way, but there is al ways a trade-off between the size of the label, the resistance to JPEG compression and the effect on the image quality, although estimating the quality degradation due to labeling is a completely subjective matter. The methods, that add the label in the spatial domain, seem to have the lowest bit capacity and the lowest resistance to JPEG compression (methods of Bender, Pitas and Caronni). Adding the label in another domain sometimes improves the capacity and the resistance. The use of the DCT transform gives the best results (methods of Zhao, Cox and Boland), obviously because the JPEG algorithm makes use of the same DCT transform. The resistance can be increased further if the quantization step is also taken into account (method of Zhao). If the original unlabeled image can be used together with the labeled one to extract the label, the capacity and the resistance to JPEG compression seem to be higher (methods of Caronni and Cox). In the latter case, the method is also more robust to other attacks, like cropping, rotation, translation, scaling etc. Using the original image some preprocessing can be done before the label is checked. Rotation angles, translation and scale vectors can be estimated and missing parts of the image can be replaced by parts from the original image. 4, Suitable methods for a copy protection system For the copy proteetion system described in the introduction, the following requirements must be met: • The method must have a bit capacity of at least I bit, but a bit capacity up to a few hundred bits is preferable, because of extra options like adding timestamps. - 35 - • It must be possible to extract the embedded code without using the original unlabeled data. • The label must be resistant to lossy compression techniques (like JPEG / MPEG), filtering or other processing techniques, that change the data, but do not considerably affect the quality. • The labeling is allowed to cause degradation of the quality of the data if the data was already labeled before. Normally data is labeled only once. But if a hacker changed for example the image by a slight translation or rotation, the storage device might be unable to read out the original label and deals with the data as new unlabeled data. The new label should now affect the quality. The only methods which meet these requirements, are the methods of Bender, Pitas and Zhao. However, from these three methods only the last one (Zhao) has II sufficient bit capacity and an acceptable resistance to JPEG compression, the other two must be developed further to achieve the same results. In the next section a proposal is given to extend one of the first methods. A weak point of the method of Zhao is that the quality of the picture is heavily reduced by a label, which is resistant to JPEG compression up to a quality of 50%. This is illustrated in Figure I. In the left half of the picture (la) the unlabeled image and a corresponding zoom view of the shoulder is given. In the right half (lb) the labeled image (quality 50%) and the corresponding zoom view of the shoulder is represented. Figure la. Unlabeled image and zoom view Figure lb. Labeled image using Zhao's method If bits are added with a certain quality factor, the quality of many parts in the image (a number of 8x8 blocks) is reduced. Another disadvantage of this method and also of the methods of Bender and Pitas is that the labeling techniques are not resistant to attacks like cropping, rotation, translation and scaling. 5. Extending spatial labeling method In this section a new block based method is proposed, which adds a bit sequence in the spatial domain. This method is based on the method of Pitas described in the previous section. Different variants of this method have been tested, but the method as described below gave the best experimental results (concerning the resistance to JPEG compression). - 36 - Labeling procedure: A label consists of a few hundred bits. Each label bit is embedded in a block of luminance values. The width and height of this block are multiples of 8. The X and Y positions of the top corner of the block in the image are also multiples of 8 to be compatible with the YUV based JPEO compression algorithm (e.g. the JFIF standard). 1. First the ROB calor image is converted to the YUV domain. 2. A block B is pseudo-randomly selected from the image to embed one label bit. 3. A fixed binary pseudo-random pattern ofthe same size as the block is generated, consisting of the integers ''0'' and "1". 4. The mean L, is calculated of the luminance values in the block, where the random sequence is O. The mean 11 is calculated of the luminance values in the block, where the random sequence is 1. After that, the difference Difference_High_Quality_Block(lo,II) is calculated between the two means. 5. In a similar way, the difference Difference_Low_Quality_Block(l'o,l'l) is calculated for a copy B' with reduced quality of the block B by taking the 8x8 DCT transform, quantizing the coefficients with a certain quality factor Q followed by an inverse DCT transform. 6. If label bit "1" must be embedded skip step 7. 7. In order to embed the label bit ''0'', the integer random pattern is subtracted from the original block, if one ofthe two differences exceeds the value zero. The procedures (4,5,7) are repeated iteratively until both differences are below zero. Step 8 is skipped. 8. In order to embed label bit "1", the integer random pattern is added to the original block, if one of the two differences is smaller than a certain threshold T. The procedures (4,5,8) are repeated iteratively until both differences exceed T. 9. The procedures (2..8) are applied to all pseudo-random selected blocks until all bits of the label are embedded. 10. Finally the YUV values are converted to the RGB domain. The algorithm is more robust to JPEO (JFIF) compression, if a higher threshold T and a lower quality factor Q is chosen. Label extracting procedure: Reading out the label is simple and is described below. 1. First the RGB calor image is converted to the YUV domain. 2. A block B is pseudo-randomly selected from the image to read out one bit. 3. The fixed binary pseudo-random pattern of the same size as the block is generated, consisting of the integers ''0'' and "1". 4. The mean L, is calculated of the luminance values in the block, where the random sequence is O. The mean I1 is calculated of the luminance values in the block, where the random sequence is 1. After that, the difference Düference(!o,ll) is calculated between the two means. 5. If this difference Difference exceeds the value zero the bit embedded in the block is one, otherwise zero. 6. The procedures (2..5) are applied to all pseudo-random selected blocks until all bits of the label are extracted. Applying a simple edge-enhance filter to the luminance pixel values before checking the label reduced the percentage of bit errors considerably. The method can further be improved by adapting ·the random pattern. If the ratio between the numbers of ones and zeros in the random pattern is forced to be 1:4 the labelingls significantly less visible to the human eye, but marginally weaker. If the dotsize of the random pattern is increased to 2x2 instead of Ix l , the robustness increases. _ 37 _ 6. Experimental results Using the method described in the previous section four calor images were labeled (see table 1 for more information about these images). The ratio between the numbers of ones and zeros in the random pattern was forced to be 1:4 and the pattern dotsize was adapted as described in the previous section. Each bit was embedded in a block of 32 x 32 pixels, the threshold T was set to 1 and a quality factor of 75% was used. Table 1 Information about the labeled test imazes =: Name Resolution Compression ratio using JPEG quality factor of !1!.ixels) 90% 80% 75% 60% 50% 40% Diver 302 x 323 1:9 1:14 1:16 1:23 1:27 1:30 Mountain 733 x 487 1:8 1:11 1:12 1:18 1:21 1:25 Lena 512 x 512 1:11 1:17 1:20 1:28 1:33 1:39 Kielp 720 x 576 1:7 1:10 1:12 1:16 1:18 1:21 In Table 2, Figure 2 and 3 the bit errors in the label are represented, after compressing the images with the JPEG compression algorithm, with quality parameter set to different values. Table 2. Number of bit errors after JPEG compression (without / with edge enhance filterin ). Name Label bit errors after JPEG compression with qnality factor of length 90% 80% 75% 60% 50% 40% Diver 90 bits OIO 2/0 2/0 7/2 17 I 9 15 I 7 Mountain 208 bits 20 I 5 11 13 3/0 23 I 9 19 I 5 43/23 Lena 208 bits 1 10 SlO 6/0 30 I 1 37 I 5 50/10 Kielp 208 bits OIO 1/1 512 16 I 6 25 I 13 33 I 15 %errors results without flltermg 0/0 errors results after edge-enhance filtering ~1,,-1 25 , 25 -+-Oiver 20 -+-Oiver ___ Mountain ___ Mountain 15 ~{~Lena ~1'_Lena 10 ~Kielp ~Kielp 5 o~f, it o ~:;m::.~::;ril"'::::;:"'...., 100 80 60 40 60 40 JPEG quality factor JPEG quality factor Figure 2. % bit errors after JPEG compression Figure 3. % bit errors after JPEG compression withhout using edge-enhance-filtering using edge-enhance-filtering Applying a simple edge enhance filter improves the results considerably, because it amplifies the differences of the adapted and the unaffected luminance values. The maximal percentage of bit errors in the label is only 11% after compressing the image using a quality factor of 40%. Heavy smoothing, obviously, makes the results worse, however the method is immune to light smoothing. - 38 - 7. Conclusions Different methods for labeling digital images are investigated. The methods, that add the label in the spatial domain, seem to have the lowest bit capacity and the lowest resistance to JPEG compression. Adding the label in another domain sometimes improves the bit capacity and the resistance. The use of the DCT transform gives the best results, obviously because the JPEG algorithm makes use of the same transform. The resistance can be increased further if the quantization step is also taken into account. If the original unlabeled image can be used together with the labeled one to check the label, the capacity and the resistance to JPEG compression seem to be higher. Onlya few existing labeling techniques are suitable for a copy proteetion system. However, from these methods only one DCT based method has a sufficient bit capacity and an acceptable resistance to JPEG compression. Therefore, the spatial labeling methods are developed further to achieve the same results. By allowing smaller blocks to embed one label bit, making the embedding level dependent on a lower quality JPEG compressed version of the image and adapting the random pattern, this aim is reached. Using the extended method some true calor images were labeled with a few hundred bits. The label turned out to be resistant to JPEG compression, with quality parameter set to 40% (compression rate >1:20). This method can be improved further by rejecting blocks if the embedding level becomes to high. A disadvantage of almost all methods mentioned in this paper including the extended one, is that they are not resistant to rotations, cropping, translations and scaling. This problem could maybe be solved by taking into account contour information to find one or two orientation points in the image. References [1] Digital Audio Interface, International Standard IEC 958 [2] RACE M 1005: Access control and copyright proteetion for images (ACCOPI), Workpackage 5, June, 1995 [3] TALISMAN : http://www.tele.ucl.ac.beIlMAGES/ ACTS/talisman.htrnl [4] R.G. van Schyndel, A.z. TirkeI, C.F. Osborne: "A Digital Watermark", Int. Conf. on Image Processing, volume 2, pages 86-90, IEEE, 1994 [5] W. Bender, D. Gruhl, N. Morimoto : "Techniques for Data Hiding", Proceedings of the SPIE, 2420:40, San Jose CA, USA, February 1995 [6] I. Pitas, T. Kaskalis: "Signature Casting on Digital Images", Proceedings IEEE Workshop on Nonlinear Signal and Image Processing, Neos Marrnaras, June, 1995 [7] Caronni G.: "Assuring Ownership Rights for Digital Images", Proceedings of Reliable IT Systems, VIS '95, Vieweg Publishing Company, Germany, 1995 [8] J. Zhao, E. Koch: "Embedding Robust Labels into Images for Copyright Protection", Proceedings of the International Congress on Intellectual Property Rights for Specialized Information, Knowledge and New Technologies, Vienna, Austria, August 1995 [9] E. Koch, J. Zhao : "Towards Robust and Hidden Image Copyright Labeling", Proceedings IEEE Workshop on Nonlinear Signal and Image Processing, Neos Marrnaras, June, 1995 [10] I.J. Cox, J. Kilian, T. Leighton, T. Shamoon : "Secure Spread Spectrum Watermarking for Multimedia", NEC Research Institute, Technical Report 95 - 10 [11] F.M. Boland, J.J.K. 0 Ruanaidh, C. Dautzenberg : "Watermarking Digital Images for Copyright Protection", Proceedings of the 5th International Conference on Image Processing and its Applications, no 410, Edinburgh, July, 1995 - 39 - MINIMIZING THE PACKET-ERROR PROBABILITY Frans Willems and Aljosa Pasié Eindhoven University, Electrical Engineering Department, P.O. Box 513,5600 MB Eindhoven, The Netherlands. Abstract Hoeher[8] proposed a subblock (packet) detection algorithm for convo- lutionally encoded data which is optimal in the sense that it minimizes the packet-error probability. The complexity of this method increases exponen- tially with the packet size if this size is larger than the memory length of the convolutional code. We develop an optimal method here that shows linear behavior. Extracting packet soft-output information is simple if we use the proposed method. The new algorithm is implemented and experiments are carried out to determine its packet-error performance. The convolutional code that is used is the (standard) 64-state code with matrix G = (D6 + D4 + D3 + D + 1, D6 + D5 + D4 + D3 + 1). The performance improvement over Viterbi decoding is negligible. 1 Introd uction The Bahl, Cocke, Jelinek and Raviv[2] decoding algorithm minimizes the symbol- error probability when convolutionally encoded data symbols are transmitted over a memoryless channel. Moreover it generates soft symbol outputs, i.e. reliability information about the produced symbol estimates. This method is also called the maximum a-posteriori (MAP) algorithm or the forward-backward algorithm. In contrast to the Bahl et al. method, the Viterbi[12] algorithm (see also Forney[5]) minimizes the sequence-error probability. Hagenauer and Hoeher's soft output Viterbi algorithm (SOVA[6]) is an extension to the Viterbi algorithm. It minimizes the sequence-error probability and produces soft (symbol) outputs. Soft-output decoders are used for iterative decoding as e.g. in Turbo decoding (Berrou, Glavieux, and Thitimajshima[3]) and in concatenated coding systems (see Forney[4]) where the inner code is a convolutional code and the outer code e.g. a Reed-Solomon code. In that case however, the input symbols for the outer - 41 - code are supposed to be have large alphabet sizes, say 256. Therefore the decoder for the inner code should decode information packets! containing an input symbol for the outer code. Since the packets are interleaved it is important to design the packet decoder such that packet-error probability is minimal. Moreover it can be advantageous to have soft-output information (e.g. erasure positions) about the packets from which the outer decoder should obtain the transmitted information. A first attempt in this direction is made by Hoeherjê] who considered optimal subblock (packet) decoding. He found satisfactory solutions for packet sizes not larger than the memory length of the convolutional code. If we increase the packet size beyond the memory length however the number of alternatives over which the Hoeher algorithm maximizes grows exponentially. We propose here a method that combines optimality with linear growing of the computational complexity relative to the packet size. Soft-output information on packets is generated more or less automatically. 2 Encoding and channel behavior Consider a non-feedback binary convolutional encoder having memory length M. Let x; = XtlXt2'" Xtk be the t-th input (data) block for this encoder, taking values in {O, IV and let Ct = CtlCt2'" Ctn be the corresponding output (code) block assuming values in {O, ij-, then Ct = '!/J(Xt, (Xt-M"'" Xt-2, Xt-l)), for t = 1,2,' ", T + M, (1) where '!/J(.) is the encoding function. The sequence Xt-M,"', Xt-2, Xt-l is the encoder state at time t: The input data blocks are independent and uniformly distributed, i.e. Pr{Xt = Xt} = Tk, for all Xt E {O, 1}k, for t = 1,2,"', T. (2) For the rate R of this code, i.e. the number of code digits per data digit, we can write R = kin. We assume that the encoder starts in the all-zero state, which is equivalent to assuming that Xl-M = ... = X-l = Xo = ok. We also assume that the encoder ends in the all-zero state, in other words we assume that XT+l = XT+2 = ... = XT+M = Ok. Hence Pr{Xt = Ok} = 1 for t = l-M,"', -1,0 and t = T+l, T+2,"', T+M. The channel produces an output block Yt E {O,1}" for each channel input (code) block Ct. The block-behavior of the channel is memoryless, hence Cl C2 ••. CT+M = Cl Ct ... CT+M} IT Pr{Yt = YtlCt = cd· (3) t=l,T+M 1At the 1995 IEEE Inforrnation Theory Workshop Perez and Costello[9] reported about packet-error probabilities for both the Viterbi and the Bahl et al. method. - 42 - The n components within a block channel are having binary input alphabet {O, I}. Without loss of generality we assume here that the outputs of the component are also discrete. E.g. if all components are binary symmetrical channels with cross- over probability p then Pr{Y; = YtlGt = Ct} = pd(l - p)n-d, for t = 1,2,···, T + M, (4) where d is the Hamming distance between Yt = YtlYt2· .. Xtn and Ct = CtlCt2 ... Ctn· 3 Decoding Let v~ = VaVa+l ... Vb for b ?: a and q; if b < a. In what follows we will denote the probability Pr{V = v} of the random variable V assuming the value V by P( v), etc. Let y[+M = Y1Y2 ... YT+M be sequence of channel output (received) blocks. 3.1 Forward probabilities Consider p(yf+M, x~tf1) for t E {-M, 1 - M,· .. ,T}, i.e. the probability that the state of the encoder at time t + M + 1 was x~tf1" and that the channel output sequence so far was yf+M. For t = -M this probability reduces to P(x~_M) which is 1 for XLM = (Ok)M and 0 otherwise. Furthermore for t < T p(yf+l+M, = L p(yf+l+M, x~t~tf1) Xt+l, x~t~tf1) Xt+l Expression (5) shows that the forward probabilities can be computed recursively. 3.2 Maximized forward probabilities Fix L E {I - M,2 - M,· .. , T}. Consider maxXL···Xt p(yf+M, XL·· . Xt, x;tf1) for tE {L - 1, L,···, T}, i.e. the probability that the subsequence of encoder input blocks starting with the L-th one and ending with the t-th one was XL· .. Xt, that the state of the encoder at time t + M + 1 was x~tf1, that the channel output sequence so far was yf+M, maximized over all XL··· Xt. For t = L - 1 this probability reduces to p(yf+M, xf+iM) which is an ordinary forward probability. Furthermore for t < T max P( Ylt+l+M , XL· .. Xt+l, Xtt+l+M) +1+1 xL"'Xt+l ~!;[;;;-a;t p(yf+M, XL· .. Xt, x~tf1)] P(Xt+l+M )P(Yt+l+M 11/'(Xt+l+M, x~tn)· (6) - 43 - Expression (6) shows that also the maximized forward probabilities can be com- puted recursively. Note that the previous state x~ttt is determined by Xt+1 and the statex~t~t1. Therefore the most probable path of length t + 2 - L leading to statex~t~t1 is found by maximizing over the extensions of the most probable path of length t + 1 - L leading to previous states x~ttt with Xt+1 E {O, l}k. In the first step of the recursion (for t = L - 1) ordinary forward probabilities are needed, in the next steps we substitute maximized forward probabilities. Note that the updating steps in (6) can be considered as Viterbi operations. 3.3 Conditional backward probabilities Consider P(Y;+"'i~Mlx~ttt) for t E {-M, 1 - M,"', T}, i.e. the conditional prob- ability given that the state of the encoder at time t + M + 1 was x;ttt that the rest of the channel output sequence was Y;+"'i'1.M' For t = T this probability reduces to P( 1>lx~t~) which is defined and equal to 1 only for x~t~ = (Ok)M. Furthermore for t > -M p(yT+Mlxt-1+M) t-s- M t-1+1 _ - ~ T+M Xt+M I Xt-Hl W P( Yt+M' t-1+M) (7) Expression (7) shows that the backward probabilities can be computed recursively. 3.4 Maximum a posteriori decoding of packets Remember that T 2: t 2: L -1 2: -M. Let XL" . Xt, x;ttt be a value that a packet can assume. Our packet starts with input block XL and ends with block Xt+M hence the length of the packet is t + M - L + 1 which is never smaller than M. Then (8) Expression (8) shows that after the maximized forward probabilities and condi- tional backward probabilities for states x~t~ have been determined, it is easy to find the packet value XL' .. Xt, x~ttt that maximizes the probability that this - 44 - packet together with the channel output sequence yf+M occurred. If we now note that arg ma~+M XL"'Xt'Xt+1 arg max t+M XL"'Xt'Xt+1 (9) we see that (8) implies a method to compute the maximum a-posteriori packet estimate. Decoding a packet thus requires the determination of appropriate ordinary forward probabilities, followed by t- L+ 1 Viterbi steps as in (6). Then appropriate conditional backward probabilities should be computed and finally a maximization over all states is needed. 4 Soft output Note that p(yf+M) can easily be computed as follows. Take any s E {-M,·· ., T} then p(yT+M) = ~ p(ys+M xS+M)p(yT+M Ixs+M) (10) 1 ~ 1 's+l s+l+M s+l . x;!r The soft-output information can be computed by noting that p(yT+M X X xt+M) P( ... t+MI T+M) _ 1 ,L··· t, t+l (ll) XL Xt, Xt+l Yl - p(yf+M) Although many packets may be transmitted and be (soft- )decoded from the se- quence yf+M, the probability p(yf+M) of this sequence needs only be computed once, e.g. for s = -M. Computing (10) is easy since the required probabilities are forward and conditional backward probabilities that are needed for decoding the packets. 5 Simulations We have implemented the new algorithm and the Viterbi algorithm in software and done experiments to determine the packet-error performances. The convolutional code that is used is the (standard) R = 1/2 code with matrix G = (D6 + D4 + D3 + D + 1, D6 + D5 + D4 + D3 + 1). This code has memory length M = 6 and 64 states. Packets are assumed to be bytes. This implies that for decoding a byte we must determine two trellis-columns of maximized forward probabilities as in - 45 - "VIT.plt" -e- "MAP.plt" +- 0.1 0.01 0.001 0.0001 L-_--L __ ....J._ _ ___J __ -'- __ ..L-_----' __ .....L __ .L_ _ _.J -1 -0.5 o 0.5 1.5 2 2.5 3 3.5 Figure 1: Byte-error rate of the proposed maximum a-posteriori and the Viterbi method for Eb/No in dB. (6). The channel that was used has output y = c + n where y E {-A, +A}, and nis Gaussian noise'' with zero mean and variance No/2 = 1. In figure 1 we have plotted the observed byte-error rate against Eb/No = Es/(RNo) = A2 in dB. For each measurement 100 frames were decoded, each of them consisting of 1000 bytes plus a tail of 6 bits. The performance improvement over Viterbi decoding is seen to be negligible. 6 Implementation issues Although the described method definitely has a smaller computational complexity than the technique proposed by Hoeherjê], its complexity is not as small as that of the Viterbi algorithm. There are two reasons for this. The first reason is that this MAP method requires a backward pass first and after that a forward pass to do the actual decoding of the packets. At first sight Viterbi only needs one (forward) pass, but it should be noted that for Vit er bi- decoding also a backward pass is needed to reconstruct the decoded path from the survivor information. In most implementations of the Viterbi algorithm however bounded-length tracé-back memory is used to circumvent a complete backward pass. Similar ideas were proposed for MAP decodingjl.O]. E.g. we can start 2Noise was generated by using the inverse method described in Abramowitz and Stegunjl ], p. 952 together with procedure 26.2.23. Uniform variables were obtained from the perhaps not so good C-procedure rand. - 46 - backward-passing not from the end of the frame but from intermediate positions. The forward pass then continues towards an intermediate position. If the forward pass gets too close to the intermediate position we choose a next intermediate position and start a backward pass from there. This idea reduces the storage complexity and the decoding delay, but the number of computations is increased since the "same" backward probabilities are computed more than once. An advantage of our packet MAP decoder is that storing the conditional back- ward probabilities during the backward pass requires less memory than for a sym- bol MAP decoder since we need these probabilities only for each right packet boundary. Forward probabilities are computed during the forward pass and are not stored. The second disadvantage of a MAP method is that multiplications and addi- tions have to be carried out while the Viterbi algorithm only needs to do multipli- cations (or additions in the log-domain). This drawback can be circumvented for a MAP decoder by working in the log-domain too and using (tables with) Jacobian logarithms to do the additionsjt l]. Finally we remark that comparing the complexity of our packet-MAP algorithm with that of a Viterbi decoder is not fair. We should realize that the Viterbi method does not generate soft-output information. Its extension, the SOYA method, pro- duces soft-output information but is also more complex. Furthermore it is not clear how good the packet soft-output information is that can be obtained from SOYA. It should be noted that SOYA produces approximated soft symbol-outputs which should be combined to obtain soft packet-outputs. 7 Conclusion We have proposed a new maximum a-posteriori packet detection method for packet lengths not smaller than the memory length M of the convolutional code. The complexity of the new method increases linearly with the packet size, in contrast to Hoeher's technique that shows exponential growth. Since the proposed algorithm does not result in an improved packet-error per- formance over the Viterbi method although the complexity is increased signifi- cantly, the advantage of using this method lies in the fact that soft-output infor- mation about packets is obtained automatically. References [1] M. Abramowitz and LA. Stegun, Handbook of Mathematical Functions, New York: Dover, 1970. - 47 - [2] L.R. Bahl, J. Cocke, F. Jelinek, and J. Raviv, "Optimal decoding of linear codes for minimizing symbol error rate, IEEE Trans. Inform. Theory, vol. IT-20, pp. 284-287, March 1974. [3] C. Berrou, A. Glavieux, and P. Thitimajshima, "Near Shannon limit error- correcting coding and decoding: Turbo-codesfl )," Proc. IEEE ICC 1993, Geneva, Switzerland, pp. 1064-1070, May 1993. [4J G.D. Forney, Jr., Concatenated Codes, Cambridge, Mass.: M.I.T. Press, 1966. [5J G.D. Forney, Jr., "The Viterbi algorithm," Proc. IEEE, vol. 61, March 1973, pp. 268-278. [6J J. Hagenauer and P. Hoeher, "A Viterbi algorithm with soft-decision outputs and its applications, Proc. GLOBECOM '89, Dallas, Texas, November 1989, pp.47.l.1-47.l.7. [7] P. Hoeher, "Advances in Soft-Output Decoding," Proc. IEEE GLOBECOM 1993, vol. 2, pp. 793-796. [8] P. Hoeher, "Optimal subblock-by-subblock detection," IEEE Trans. Com- mun., vol. COM-43, February /March/ April 1995, pp. 714-717. [9J L.C. Per ez and D.J. Costello, Jr., "Are catastrofic encoders really bad?", Proc. IEEE Information Theory Workshop, Rydzyna, Poland, June 25-28, 1995, p. l.2. [10] S.S. Pietrobon, A.A. Barbulescu, "A simplification of the modified Bahl de- coding algorithm for systematic convolutional codes," Int. Symp. on Inform. Theory and its Applic., Sydney, p. 1073-1077. [l1J P. Robertson, E. Villebrun and P. Hoeher, "A Comparison of optimal and sub-optimal MAP decoding algorithms operarting in the log domain," Proc. IEEE ICC 1995, pp. 1009-1013. [12J A.J. Viterbi, "Error bounds for convolutional codes and an asymptotically optimum decoding algorithm," IEEE Trans. Inform. Theory, vol. IT-13, pp. 260-269, April 1967. - 48 - CONFLICT-AVOIDING CODES Boris S. Tsybakov and Jos H. Weber· Abstract In this paper, conflict-avoiding codes are presented, which can act as protocol sequences for successful transmission over the collision channel without feedback. The main result is the presentation of an optimum code which guarantees for a certain user the successful transmission of a single packet, under the assumption that at most one other user is active on the channel. 1. Introduetion We consider codes which can act as the set of protocol sequences for the M possible users of the collision channel without feedback, when it is assumed that at most K users are actively using the channel at any given time. The time axis is assumed to be partitioned into slots. The users know the slot boundaries but are otherwise unsynchronized. If in a particular slot none of the users are sending a packet, then the channel output in that slot is the silence symbol. If exactly one user is sending a packet in a particular slot, then the channel output in that slot is this packet value. If two or more users are sending packets in a particular slot, then the channel output in that slot is the collision symbol. Each user has a protocol sequence, which is a binary sequence of length N that controls his sending of packets within its active period. These sequences should be designed in such a way that for each active user the successful transmission of at least S packets is guaranteed within an active period of N slots. The set of the protocol sequences is called a conflict-avoiding code with parameters M (size of the code, number of potential users), N (length of the code), K (maximum number of simultaneously active users), and S (number of successful packets). In this paper, we concentrate on the case S=l, i.e., a user needs to send successfully only a single packet in a session . • Boris S. Tsybakov is with the Institute for Problems of Information Transmission (IPIT), 19 Ermolova Street, GSP-4, Moscow 101447, Russia, E-mail bst@ippi.ac.msk.su. J.H. Weber is with Delft University of Technology. Department of Electrical Engineering, Telecommunication and Traffic-Control Systems Group, P.O. Box 5031, 2600 GA Delft, The Netherlands, E-mail weber@et.tudelft.nl. This work has been sponsored by the Dutch Organisation for Scientific Research NWO under project number 713-229. - 49 - Important results on the collision channel without feedback and conflict-avoiding codes have been presented in [1]-[5], [7]. The approach followed in most of these papers is somewhat different from the approach we take here. In our approach, a user session consists of an active period of N time slots, followed by an inactive period of N-I time slots. The user can begin his next session at any time after the end of his previous session. It is assumed that any active period of any user can have full or partial time intersections with at most K-I active periods generated by other users. During an active period, the user transmits the packet in each time slot for which the corresponding entry in his protocol sequence equals one and is silent otherwise. During his inactive period, the user is also silent. In order to guarantee at least one successful packet transmission for this user, under the assumption that at most K-I other sessions are going on during each time slot in the active period of the session, the protocol sequences should satisfy properties which will be described in the next section. The information transmission rate that can be achieved in the described system is R=K/(2N-I). In the mentioned literature, the goal for S= I was to design the M x N protocol matrices in such a way that they satisfy the property that a certain user can keep on transmitting continuously in sessions of N time slots, with the guarantee that one packet is successfully transmitted during each session if at most K-I other users are active. Hence, compared to our approach, the breaks of N-I time slots are omitted, which gives an information transmission rate of KIN. On the other hand, it puts more severe requirements on the protocol matrices, which may require a larger length N in order to serve a certain number of users M. The main goal of this paper is to present optimum K-conflict-avoiding codes which minimize N for given M (or equivalently, maximize M for given N). First, in Section 2, we formally state the problem definition and give some preliminaries. Next, in Section 3, an upper bound on the size M ofa conflict-avoiding code will be presented. Finally, Section 4 presents a construction method based on constant weight codes. For K=2, the sizes of the codes obtained by this method meet the upper bound from Section 3, and thus the codes are optimal. 2. Problem Definition and Preliminaries As stated in the previous section, we want to design K-conflict-avoiding codes, i.e., binary matrices of size M x N such that the use of the rows of such a matrix as protocol sequences for the collision channel without feedback results in the successful transmission uf al least one user packet in each session when at most K users are active. In [1]-[5], [7], the goal for S=I was to design the M x N protocol matrices in such a way that they satisfy the following property. For any K different protocol - 50 - sequences collected in a K x N array, all possible cyclic shifts of rows must result in an array (may be different for different shifts) in which all K different columns of weight one appear at least once. In this way, a certain user can keep on transmitting continuously in sessions of N time slots, with the guarantee that one packet is successfully transmitted during each session. After finishing, this user should remain silent for at least N-l time slots. Since our approach is somewhat different (for each user, silence periods ofN-l time slots are inserted after each active period of N time slots, resulting in a total session period of 2N-l time slots), the requirements put on the protocol matrix can be relaxed. The M x N matrices we are looking for should satisfy the property described next. For any K different protocol sequences collected in a K x (2N-l) array by putting each such sequence in the first N positions of a row and setting the remaining N-l entries in each row equal to zero, all possible cyclic shifts of rows in this array must result in an array (may be different for different shifts) in which all K different columns ofweight one appear at least once. As an example, we consider the conflict- avoiding code with K=2, M=3, N=4: 1 1 00 10 10 100 1 It is easy to check that the described shift property indeed holds. However the following matrix is not a valid conflict-avoiding code with K=2, M=3, N=4: 1000 o 1 10 o 10 1 For the latter matrix a possible 2 x 7 array reads 1000000 0110000 which after shifting the first row over one position becomes 0100000 0110000 Obviously, the latter array does not satisfy the requirement that each of two possible columns of weight one appears at least once. - 51 - When considering M x N matrices representing K-conflict-avoiding codes, the following remarks can be made: 1. each row contains at least Kones; 2. without loss of generality, it may be assumed that each row starts with a one. Hence a protocol matrix may look like (1) where IT is the all-one column of height M and M' is a binary M x (N-I) matrix in which each row contains at least K-I ones. A binary sequence a is said to cover binary sequence b if b.= 1 implies a.= 1. If neither a cover b nor b covers a, then a and b are said to be unordered. A distance vector associated with a binary sequence ofweight w~2 is defined as the vector oflength w- I in which coordinate i indicates the number of zeros in between the ith and the (i+ l)th one in the sequence. For example, the binary sequence 10001100101 has weight 5 and distance vector (3,0,2,1). Finally, L a J denotes the largest integer not exceeding the real number a, and Ib l denotes the smallest integer not less than the real number b. 3. Upper Bound The requirement for valid K-conflict-avoiding codes presented in the previous section gives the necessary condition that any two rows in the matrix M' in (1) are unordered. By Sperner's Lemma [6], a maximum size unordered code oflength n is obtained by taking all vectors of weight Lnl2J. Hence, an upper bound on M for given N and K~2 reads M ~ (N-l)! / (L (N-I)/2 J! x I (N-1)l2l! ) . (2) Since this upper bound does not depend on K, it is very weak for large values of K. However, for K=2, it turns out to be tight, as will be demonstrated in the next section. - 52 - 4. Constant Weight Method Based on the upper bound derived in the previous section, it seems not a bad idea to look for good K-conflict-avoiding codes by considering constant weight codes. Consider a protocol matrix in which all rows are ofweight (K-l)L+1. For each row i, define S, as the set of distance vectors associated with all vectors of length N and weight L+l which are covered by row i. For example, for N=10, K=3, L=2 and the row 1001100101, we have ...P.~!.t.~~!l.s..~r~~i.g~t.}.._................_ .._._ ..Y.~~.!.<'.~~ ..~.i.~~.(l!l~~ _. 1001100000 (2,0) 1001000100 (2,3) 1001000001 (2,5) 1000100100 (3,2) 1000100001 (3,4) 1000000101 (6,1) 0001100100 (0,2) 0001100001 (0,4) 0001000101 (3,1) 0000100101 ~2,12 The following condition is sufficient for a code to be K-conflict-avoiding: (3) Hence, when trying to find K-conflict-avoiding codes, we can look for sets of binary sequences ai óflength N and weight (K-I)L+l, for which the associated S, satisfy (3). The parameter L should be chosen in such a way that the number M of possible sequences is maximized. For K=2, condition (3) simply translates into the condition that all rows in the matrix M in (1) are different binary sequences of length N and weight L+ 1, or equivalently, all rows in the matrix M' in (I) must be different binary sequences of length N-l and weight L. In order to maximize M, the optimum value of L reads L = L (N-I )/2 J. Combining this result with the upper bound (2), it follows that for 2-conflict-avoiding codes the maximum value ofM for given N reads M = (N-l)! 1 (L (N-I)/2 J! x I (N-I)/2l! ). (4) - 53 - Hence, we constructed the optimum conflict-avoiding codes with the following parameters: K N M R 2 3 2 2/5 2 4 1 ?./7 2 5 6 2/9 2 6 10 2/11 2 7 20 2/13 2 8 35 2/15 2 9 70 2/17 For comparison, we also include some results for codes from [1]: K N M R 2 55 11 2/55 2 78 13 2/78 2 114 19 2/114 2 222 37 2/222 Hence, these are evidently inferior to our codes, but it is necessary to take into account that the codes from [I] are designed with a different problem in mind . References [1] NQ. A, L. Györfi, and J.L. Massey, "Constructions of Binary Constant-Weight Cyclic Codes and Cyclically Permutabfe Codes", IEEE Transactions on Information Theory, vol. 38, no. 3, pp. 940-949, May 1992. [2] L.A. Bassalygo and MS. Pinsker, "Limited Multiple-Access of a Nonsynchronous Channel", (in Russian), Probl. Inform. Transmission, vol. XIX, no. 4, pp. 92-96, 1983. [3] L. Györfi and I. Vajda, "Constructions of Protocol Sequences for Multiple Access Collision Channel without Feedback", IEEE Transactions on Information Theory, vol. 39, no. 5, pp. 1762-1765, September 1993. - 54 - [4] J.L. Massey and P. Mathys, "The Collision Channel without Feedback", IEEE Transactions on Infonnation Theory, vol. 31, no. 2, pp. 192-204, March 1985. [5] P Mathys, "A Class of Codes for a T Active Users out of N Multiple-Access Communication System", IEEE Transactions on Infonnation Theory, vol. 36, no. 6, pp. 1206-1219, November 1990. [6] E. Spemer, "Ein Satz über Untennengen einer endlichen Menge", (in German), Math. Zeitschrift, vol. 27, pp. 544-548, 1928. [7] B.S. Tsybakov and N.B. Likhanov, "Packet Communication on a Channel without Feedback", Probl. Inform. Transmission, vol. XIX, no. 2, pp. 69-84 (in original Russian version), pp. 147-161 (in English translation), 1983. - 55 - ON DATA COMPRESSION IN PACKET SWITCHED NETWORKS WITH CHANNEL ERRORS A.P. Hekstra and J.M. Herrera* Excerpt: Typically packet switched networks incorporate some form of error detection to be able to identify errorred packets and request for retransmission. However, channel errors may go undetected by the error detection mechanism of layer 2 of the ISO-OSI model. If data compression is applied to the user data channel errors can propagate inside the data compression decoder. In some situations single bit errors can trigger infinite error propagation if no further measures are taken. The goal of this report is to study the error propagation e.g. in ITU-T V.42bis and MNP5 data compression decoders when used in combination with X.25 packet switched networks and to propose countermeasures. 1. INTRODUCTION 1.1. ADAPTIVE DATA COMPRESSION While encoding (decoding) user data, the statistics of this data can be estimated on the fly. That is, the encoder and decoder continually learn in an adaptive way the statistics of the source data. This has the important advantage that no a priori information is needed about what kind of source data is transmitted and what its statistics are. Many data compression schemes work as shown in figure 1. IStatisticst- 1 __ .., IModeller 1 _______ ..___~JData Compression ·IEncoder I Figure 1: Adaptive Data Compression Encoder The input data is fed to the data compression encoder and to the statistics modeller. The modeller unit extracts the relevant statistics from the input data necessary for the data compression .encoder. The modeller unit feeds the statistics obtained to the * KPN Research, P.O. Box 421, 2260 AK Leidschendam, The Netherlands - 57 - data compression encoder. With each octet fed into the statistics modeller and data compression encoder, the estimate of the statistics is updated and these updated statistics are made available to the data compression decoder one instance (codeword) later. The corresponding adaptive data compression decoder works in a likewise fashion. See Figure 2. The statistics modeller models the source from the past output from the data compression decoder. These statistics are used by the decoder in the decoding of future encoded symbols. Conc~usion: Channel errors in the input of the data compression decoder cause errors in the decompressed data, which, in turn, can cause errors in the statistics inside the modeller. r- - --- -- - - - - - - - - --- - -Checking on user d&t.a-- -- - - - -- - - - - -- -, I I r- --- -- - -- -- - ·Checking on stat.i9:~~~-- - - -- - - -, I I Decoded ~~~~__''-!-I----~ ~~---;~--user 1 data 1 1 1 1 L I L I Adaptive Adaptive Data Data Compression Compression Encoder Decoder Figure 2: possibi1ities for Additional Error detection r-- -iIStatistics IModeller I JData Compression I ----~I~r I~------~----------+ Figure 3: Adaptive Data Compression Decoder - 58 - 1.2. THE EFFECT STUDIED Recall that there are two effects by means of which channel errors can propagate inside the adaptive data compression decoder and corrupt the decoder output data: • errors can propagate inside the data compression decoder, • errors can corrupt the statistics inside the modeller, and thereby cause the decoder to output wrong data because it uses a wrong codebook. To be able to detect both effects several solutions can in principle be thought off: 1. (additional) error detection on the channel bits, 2. error detection on the decoder output data, 3. error detection on the statistics produced by the modeller, or 4. a combination of the above. An error in the input to the decoder will always cause an error in the decoder output. With high probability, but not with certainty, the error in the decoder output will cause an error in the statistics estimated by the modeller. Vice versa, an error in the statistics estimated by the modeller can cause errors in future decoder output with a fair probability, but not with certainty. T.be ultimate goal is, of course, to guarantee tbe reliability of tbe decoder output. To guarantee the reliability of the estimated statistics can only be a means to this end. Generally, channel errors occur at random. However, the data compression decoder is a system with a lot of memory. When undetected errors have propagated into the statistics in the modeller in the decoder, errors in the decoder output data or in the statistics can be of a repetitive or systematic nature. Conclusion: When checking the decoder output or the statistics insidethe errors to be detected can be of a repetitive or systematic nature. 1.3. DIRECTIONS FOR SOLUTIONS With V.42bis or MNP5, stable synchronization errors can exist. Therefore, additional error checking measures must be sensitive to such errors. Furthermore, whenever errors in the statistics affect the validity of the decoder output data, the likelihood of the errors in the statistics being aggrevated is quite large but cannot be counted on with certainty. For the detection of such errors in the statistics this means that influential errors in the statistics continually change, so we have a new chance of detecting them for each error check applied. Errors in the statistics that do not have an influence on the validity of the output data eventually will die out. - 59 - If we want to add error detection on the contents of the modeller, in the case of V.42bis, a binary representation of the trees can be checked. For MNP5 the list of frequency counters can be checked. Each time a codeword has been wrongly interpreted because of an error in.the codebaak, the wrong frequency counter is updated, so each time an error in the decoder output has occurred the error in the frequency counters has changed so we have a new chance of detecting·the error each time it has had an effect. If error detection is performed on the statistics, there is probability that is situation dependent and hard to assess in general, that errors in the decoder output do not cause errors in the statistics and therefore are undetectable. Most importantly, if error detection is performed on the decoder output repetitive errors patterns can occur because the codebook used by the decoder is wrong. It is noted that CRC by definition have a cyclic property. As a result all shifts in time of undetectable error patterns are also undetectable. As a result (direct application of) cyclic redundancy check is unsuited to our application. 2. SECURING THE INTEGRITY OF A DATA STREAM WITH POSSIBLY REPEATING ERROR PATTERNS If we use different pseudo random functions g each time, the probability of misdetection is 2-r each time error checking is performed. It is essential that at the encoder and at the decoder the same error detection function is used. That is, the error detection function must be dependent on a common index to the encoder and the decoder's site. In a packet switched network several types of data containers are defined at the respective layers of the network model. Typically, such data containers are (cyclically) numbered and these numbers are ideal for our purpose of a common index, for example: • the sequence index of the check being performed not counting retransmissions, • the packet numbers at layer 3 of the packets that contain the data to be checked, • the frame numbers at layer 2 of the frames that contain the daLa Lu De checked, • the sequènCé ihdex of the check being performed including retransmissions. With respect to the last option, note that when a retransmission has been ordered, the check function used for that data container has apparently been succesful. Since error patterns can be of a repeating nature, nothing is more logical than to use the same error detection function again for the retransmission. Therefore, the last option, which constitutes somewhat of a deviation of the main idea, is also the least logical. - 60 - Conclusion: Packet switched networks lend itself naturally to implement a va~ing error detection function. The data container sequence numbers that are transmitted in the header of the data containers at the respective layers of the network provide an ideal handle to serve as a common index to the error detection function for transmitter and receiver. The dependence of the check function on a common index can be implemented in several ways. In principle, for each value of the common index, a different check function can be selected. However, to reduce the complexity in many cases it can be handy to use a constant check function which is possible, if we include the common index in some form or another in the data to be checked, for example: • the index, e.g. in binary representation, can be part of the data to be checked, • any function of the index can be part of the data to be checked, • a pseudo random function of the index can be part of the data to be checked, • a pseudo random sequence of the index can be included as part of the data to be checked, • in particular, in any of the listed cases, the data generated from the common index can be interleaved with the user data before the check is being performed, • in particular, in any of the preceding cases, the data generated from the common index can be used to permute the user data before the check is being performed, • in particular, in any of the listed cases, the data generated from the common index can be added to (multiplied with, etc.) the user data before the check is being performed. Conclusion: Error detection functions that are different for each check being performed are easy to implement using a constant error detection function and some auxiliary function of the data to be checked and a (pseudo random) function of the common index. 3. INVENTARISATION OF SOLUTIONS In this Chapter we list possible solutions. We postpone the question, raised in the introduction, of how· to frame the parity check field, with respect to the compressed data, the decompressed data, or otherwise. In this chapter we only consider the definition of the parity check generator g. - 61 - 3.1. 32-BIT FRAME CHECK SEQUENCE ON THE DECODER INPUT An (additional) 32-bit Frame Check Sequence on the decoder input data is recommended in the introduction of Recommendation V.42bis. To counteract possible error propagation inside the data compression decoder the data compression encoder and decoder must be resetted periodically. At low data rates, this must not be done too frequently, otherwise the compression factor may be significantly reduced. 3.2. CRC ON PSEUDO RANDOM PERMUTATION OF THE DECODER OUTPUT BITSTR!AM From the previous it follows that the error detection scheme must be able to detect errors in a (pseudo) random fashion, whereby the probability of misdetection is 2-r for each parity check field. Random permutations are relatively easy to generate and easy to implement. The requirements on the degree of randomness of the permutation IT are not very strong. For example, well known CRC functions can applied to the result of the permutation. The pseudo random permutation makes the error detection scheme sensitive to synchronisation errors in the output Decoded User data rt---t-+- user data eRe eRe Sequence number Repeat request Figure 4: Checking randam1y permuted output data data. Because of the random permutation a synchronisation error will result in a totally different sequence being fed to the CRC function. - 62 - 3.3. CRC ON PSEUDO RANDOM PERMUTATION OF THE STATISTICS This approach shares some of the advantages of the previous approach. However, when reflect upon our final goal as stated in the introduction, to ensure the validity of the decoder output is a somewhat indirect approach. The risc of this method lies in a possibility - which is likely small, but which is difficult to assess in practise - that errors in the decoder output are not reflected in the statistics insïde the modeller and therefore cannot be detected. 3.4. CRC ON STATISTICS DIRECTLY In the previous we have seen that when errors in the statistics have an effect on the decoder output, there is a good probability that this will aggrevate the errors in the statistics and thus make that there is a good chance of detection the next time a check is performed, even when the error has gone undetected, so far. 3.5. ERROR DETECTION THROUGH PUBLIC KEY CRYPTOGRAPHIC FUNCTIONS ON DECODER OUTPUT This is a theoretical possibility to generate an unpredictable redundancy check field (RC) from the user data field (and the RC sequence index). Theoretically, this is a very sound method. However, it is too complex from.an implementation point of view. Therefore, it is not discussed any further.· 3.6. NONLINEAR RC ON DECODER OUTPUT For our purposes a cryptographic function is overkill. However, the essential properties of high nonlinearity and non- cyclicness are valueable. The method of this paragraph was suggested to the authors as a simplification of the precedinq method by one of the reviewers (J. van Tilburg). The advantages of a nonlinear check function are that the set of undetectable error patterns becomes dependent on the data that is transmitted. If the data to be checked are random, and the set of undetectable error patterns is sUfficiently dependent on the data, then the set of undetectable error patterns can be considered to be random. This enables us to detect repeating error patterns. However, the decoder output data is, by assumption, not completely (uniformly and independently) random, because otherwise there could not be any gain from data compression! In the following paragraph we modify the approach of this paragraph and try to use some of the ideas incorporated in 3.2, viz. use a pseudo random function of the common index. - 63 - 3.7. NONLINEAR RC ON SUM OF DECODER OUTPUT AND PN SEQUENCE A PN sequence that is a function of the common index can be added to the user data at the sender and at the receiver, only for the purpose of checking the data. That is, the ordinary user data is compressed, but the check function has as its input the sum of a PN sequence that depends on the common index. After this addition, repeating error patterns still are repeating error patterns. However, it no longer matters if the user data is not completely random, e.g. repeating. As far as the check function is concerned, the error patterns now occur in the sum of a PN sequence and user data, and this sum is always completely random! Thus, of the two conditions that are necessary to make the approach of a nonlinear RC work, one can be dropped. The only thing that is needed is that the check function is highly nonlinear (and noncyclic) . 3.8. CHECKING THE LENGTH OF THE DECODED PACKET(S) It can be useful for a variety of other reasons to incorporate the length of the decoded data in the form of counters in the packet data stream. If the number of bits available to represent the counter is too small to fully represent the counter, only the pertaining number of least significant bits can be transmitted. The disadvantage of the method is that it is insensitive to repetitive error patterns that do not affect the length of the decoded user data field. 4. REFERENCE LIST [1] J.M.HERRERA VAN DER NOOD, Datacompressie Technieken voor Communicatiesystemen, KPN Research Rapport R&D-RA-94-1296. [2] J.A. STORER, Data Compression - Methods and Theory, ISBN 0-7167-8156-5, Computer science press, New York, 1988. - 64 - AN EXAMPLE OF OPTIMAL MESSAGE ROUTING IN A COMPLETE-GRAPH NETWORK MODEL N.D. Vvedenskaya * Abstract We consider a packet-switching queuing system that is modeled by a complete- graph network with N nodes and with servers located on the links. For any pair of nodes (i,j) the input flow is a Poisson flow of intensity À. An m- packet message directed from i to i is routed according to the following policy. With probability p a message is directed throu.gh a one-link (i, j) path and with probability 1- p each packet of a message is independently directed on one of the two-link paths joining i and j (each two-link path is selected with probability I/(N - 2)). The asymptotic performance of a system as N -+ 00 is investigated. I Introd uction In the queuing theory numerous methods are developed for explicit calculation of the system's probability parameters in case of a system with one server. With the development of service technique the problem of investigating systems with interacting servers becomes topical. Unfortunately the queuing theory analytic methods are poorly extended to this case. The situation becomes particular complicated in case of a system with large number of servers, when it is difficult to use numerical methods. One of the methods for investigation of large network is the asymptotic ap- proach, namely, the investigation of networks with very large (infinite in the limit) number of servers. In particular, this method can be used where the network has a symmetric topology. For example, it was used for the star-like network models "N.O. Vvedenskaya is with Institute of Information Transmission Problems of Russian Ac. Sci., Moscow 101447, GSP-4, Bolshoi Karetnyi 19, e-mail: ndv@ippi.ac.msk.su . This work is partly sponsored by the Netherlands Science Foundation (NWO) under the Project 713-229 and by the MINNAUKA (the Project "Dostup"). - 65 - [1], [2], [3]. The approach is closely connected with the mean field approximation of statistical physics, see [1], [4]. We consider a packet-switching network SN modeled by a complete graph with N nodes and with servers located on links. For each pair of nodes (i,j) there is a Poisson flow of intensity ..\ of mk-packed messages, mk = 1,2, ... , M (i.e. the messages of length mk = k). The message lengths are iid variables with given distribution, the probability for a message to be of length mk is qk, the intensity of the flow of mk-packet messages being Àk = qç): The total flow intensity from node i to node j is p = 2::k mkÀk' P < 1. The packets of a message are routed to there destination according to the following policy: At a time of its arrival a m-packet message with probability p is instantly directed on a link (i,j), and with probábility (1 - p) it is instantly divided into unit-length packets and each packet is directed on one of the two-link paths joining nods i and j (the packets are transmitted as if they are messages). Each two-link rout is selected with probability l/(N - 2). A server on a link processes a FCFS queue with respect to the arrival times of messages at each server. When a packet is transmitted through a link (i,j'); (j',j), the transfer time from (i,j') to (j',j) is negligible. The service time of a m-length message is equal to m. The end-to-end delay of a message is the delivery time of its last packet. We consider the mean end-to-end delay of a message (farther to be refer as a delay and to be denote by IJ). For given distribution of qk and for given p we are interested in D as a function of p. The optimal value of p that minimizes D is to be investigated. If N is finite the queue lengths at the servers of SN are dependent. In case where N is large the Poisson-independence hypothesis may be of use. This hy- - 66 - pothesis states that as N --+ 00 the queue lengths at different servers become independent and the queue length distribution tends to the distribution of the queue length at a one-server system SI with an input Poisson flow of mk-packet messages, mk = 1,2, ... M. For the limit system SI the intensity of.the message flow is À(p) = À[p + 2(1 - p) L mkqk], k the message lengths are iid variables, the probability qlP) of a message length to be equal to mk is (p) - pqk tru; > 1, qk - P + 2(1 - p) Lk mkqk' (p) _ 2(1 - p) Lk kqk q1 - , mI = l. p + 2(1 - p) Lk mkqk The intensity of the flow of mk-packet messages is À~p) = 2(1 - p)À 2:= kqk, mI = 1, k . the total flow intensity for a pair (i,j) is (2 - p)p. The validity of Poisson hypothesis for a similar problem was proved recently [5]. In the model of [5] each packet of a m-packet message with probability p is directed on link (i,j), and with probability (1 - p) is directed on one of the two-link paths joining nods i and j. 11 The limit case calculations A finite system SN may be investigated by simulations. In the limit case the delay can be estimated by simulations of the performance of a one-server system SI. The simulations of SN, N = 10,15,20, with M = 5,7,9 show that in case - 67 - of a system with 15-20 nods the delay is close to the delay of the limit case (N = 00), see also [6]. The other way to deal with the limit case is to computethe probability distribution function of the queue length using solution of a boundary value problem for a functional differential equation. Let random variable ç be the queue length at a server of system SI, (2 - p)p < 1. Then the stationary probability distribution function F( x) = Pr{ ç 2: x} can be obtained as the solution of the boundary value problem F(p)(x) = 1, x::; 1. It is worth to mention, that r» can be also obtained as a limit as t -4 ex) of a solution of a boundary value problem G(pl(x , t) = 1 ,_,x < 1 t > _ 0 , G(p)(x , 0) = G(p)(x) 0' x > O. Note that both F(p)(x) and G(p)(x, t) are not continuous at the point x = 0, F(O) = G(O, t) = 1, P( +0) = (2 - p)p, G( +0, t) ::; 1. The delay D(mk,p) of a message of length mk is 00 sr» 100 d[P(p) * p(p)] D(mk,p) = -p 1o x--(x dx - mk)dx - (1 - p) 0 x d x (x - 2)dx, where.Ir" * 1<']IS the self-convolution oi F. The solution r» and its self-convolution can be calculated numerically. The optimal value of p that minimizes D(mk,p) (or minimizes 2:k rkD(mk,p), where rk are some weights) can be also estimated numerically. - 68 - III Some numerical results It is clear that for one-packet and two-packet messages the delay D(m,p), m = 1, 2, is decreasing as parameter p is increasing, and the optimal value of p is p = 1. One can expect that for m-packet messages, m > 2, the optimal value of p is increasing as P is increasing. Indeed, the queue lengths are short when P is small, therefore the delay on a two-link path is close to 2 for small P and it is larger than m on a one-link path. On the other hand, for large P the main part of the delay is the queuing time, and each packet waits twice when on a two-link path. Therefore in this case it is faster to direct messages on one-link path where the delay is m plus a queuing time. The computations verify this expectations. Let us consider D(mk,p) as a function on p, 0 :s: p :s: 1 as qk and À are fixed, and mk > 2. The computations show that if P is small, then this function is increasing as p is increasing. If P is sufficiently large, then D( mk, p) is decreasing as p is increasing. If the value of p is 'intermediate', then D(mk'p) has two local minimums at the points p = 0 and p = 1, and has one maximum at some point p, 0 < p < 1. Therefore the optimal value for D( mb p) is p = 0 or p = 1. There exists a threshold value Per, where Per depends on mk and on other parameters of the problem. In case P < Per the optimal value is p = 0, and in case Per < P the optimal value is p = 1. For P = Per P = 0 and p = 1 minimize D(mk,p), D(mk,O) = D(mk' 1). The dependence of D(m, p) on p for different P is illustrated by Figure 1, where all messages are of the same length m = 5 (qs = 1). To show the dependence of PCT on m we present the table of Per for the cases where all messages are of the same length m. - 69 - c b o 5 a 3 2 o~-- ~ o 0.1 0.2 0.3 0.• 0.5 0.6 0.7 0.8 0.9 p Figure 1: D(m,p) as a function on ]J for m = 5; a: p=O.I, b: p=O.25, c: p=0.33, cl: p=O.4. The author thanks Yu.M.Suhov and D.M. Rose for discussions of the work. References [1] R.L. Dobrushin, "Switching Networks, Gibbson Fields - Interconnection". Proc. of the I-th World Congress of the Bernoulli Society, (1986), VNS Sci. Press, Utrecht, 1987, v.l , pp. 377-393. [2] R.L. Dobrushin, Y.M. Suhov, "Asyrnptotic investigation of starlike message switching networks with a, large number of rays", Probl. of Inform. Transm., 1976, v. 12, No 1, pp. 70-90. - 70 - [3] M.Ya. Kelbert, Y.M. Suhov, "Poisson Limit Theorem for Hybrid Star Net- works: Mean Field Approximation", Probl, of Inform. Transm., 1989, v. 25, No 1, pp. 78-87. [4] F. Baccelli, F.r. Karpelevich, M.Ya. Kelbert, A.A. Puhalski, A.N. Rybko, Y.M. Suhov, "A Mean Field Limit for a Class of Queuing Networks", Journ. of Statistical Physics, 1992, v. 6, No 3/4, pp. 803-825. [5] Yu.M. Suhov, D.M. Rose, "The Poisson-independence hypothesis for infinitely-growing fully-connected packet-switching networks", Research Re- port 95-17, Statistical Laboratory, 1995, University of Cambridge, 1995. [6] D.M. Rose, "The Asymptotic Behavior of Stochastic Networks", Statistical Laboratory, Dept. of Pure Math, and Math. Statistics, University of Cam- bridge, January 1996. - 71 - A SEGMENTATION-BASED VIDEO CODEC S. Desmet, B. Deknuydt, L. Van Eycken and A. Oosterlinck • Abstract This paper describes a possible strategy to migrate from block-based coding towards object-based coding. We use the results of an intelligent motion estimation algorithm to define low resolution (block based) segmentation. The information from previous segmentation results together with the motion vector field, the image data and spatial relations are used to define the cost to belong to a given object. A separate selection procedure is used to generate the high resolution (pixel based) objects. Afterwards some shape simplification is performed to generate the final objects 1 Introd uction Processing video data on a higher level of abstraction than simple square blocks clearly gives a higher degree of flexibility for editing purposes, database retrieval, .... In the scope of image compression this is a possible way to reach graceful degradation at very high compression ratios. In segmentation-based coding every distinct "object" can have its own refresh frequency and quality parameters. In applications with very limited bandwidth the number of objects can be decreased or some can temporarily be dropped. The video codec described in this paper wants to exploit the advantages of segmentation- based processing without any a priori assumptions about the contents of the scene. So we need a fall-back mode to which we can return when the segmentation algorithm fails. This fall-back mode will simply be a block-based processing. The segmentation will be based primarily on motion information because we define an object as all parts undergoing the same perceived motion. Motion fields resulting from classical matching algorithms like "Full Search Mean Absolute Difference" are not suited for this goal because they use no global information and do only a local best match which results in fairly random motion fields. We developed an extended matching algorithm which classifies the blocks in 7 categories and uses an appropriate rule to define the motion vector for each class. Both the local data and neighbouring information is used in a balanced way to ensure the most probable motion vector. The details of this "Classification Based Motion Estimation" (CBME) algorithm can be found in [1]. ·K. U. Leuven, ESAT-MI2, K. Mercierlaan 94 B-300l Leuven, Belgium email: stef.desmet@esat.kuleuven.ac.be This research has been sponsored by the Belgian government - "Diensten voor Programmatie van het Weten- schapsbeleid" - in the framework of COST - 73 - In this paper the segmentation strategy is described and the implementation in a com- plete video codec is described. Finally some results and conclusions will be presented. 2 Segmentation In this part we will describe in detail the 4 distinct steps which wililead to the final segmen- tation result : motion tracking and validation, low resolution segmentation, high resolution segmentation and shape simplification. The global outline of the procedure can be seen in figure 1 when we start from the point where no objects are defined yet. When there are I - ~ ~LfI I r- II I I [) \ 0 D~ Figure 1: Overview of the segmentation procedure already objects defined we start with a motion tracking and validation step and afterwards only the non-object parts are used in the block-based motion estimation routine. 2.1 Motion tracking and validation Tracking the motion of existing objects is done by motion estimation on the whole object fol- lowed by a validation step which can cope with shape changes, new objects appearing, ... In the current implementation motion estimation is performed as a matching algorithm dealing only with the 2 translational components in the image plane. We mentioned in the introduc- tion that simple matching algorithms give no satisfactory results for the block-based motion estimation scheme. The reason for that is mainly due to the fact that these small blocks may contain no structured data which is needed for a correct matching result. The objects however wil! contain at least their edges so that here a simple matching based on minimizing some error criterion is used. To minimize the influence of noise in the decision and to favor constant motion we retained the "initial guess" mechanism and the error function described - 74 - in [1]. After the motion compensation with the resulting motion vector an overlap analysis is performed to decide which objects are hiding another one. The next step is the validation of the predicted segmentation for the current frame. Because the motion estimation algorithm is based on rigid two-dimensional objects we need an extra step to cope with shape changes, new objects appearing or even complete scene cuts. This validation step is not only done on the luminance component like the motion estimation step but also on the chrominance information to use as much information as possible. Not valid parts are defined as connected regions larger than a given threshold of pixels with a significant motion compensated prediction error. This prediction error is calculated as the colour difference in a uniform colour spacel . To avoid the conversion to another colour representation from the given Y'CRCB representation it was shown in [2] that a uniformisation of the Y'CRCB colour space can be obtained by using 3 weighting factors in the calculation of the Euclidean distance between 2 points. with weight factors : Wy' 0.8 WCR 1.0 WCB 1.1 We assume that the shape of the objects cannot change arbitrarily fast so we decide that if more than 50% of the object is no longer valid the whole object will be rejected. When no more than 10% of all the image pixels belong to an object we assume a scene cut. It is possible that an object is seen as several disconnected regions in an image, e.g. the background object. The last step will look to merge objects with the same motion vector. This decision is however performed on a sliding window of N frames to avoid merging on single correspondences. The result after the motion compensation, validation and merging are the starting regions for the further segmentation. 2.2 Low resolution segmentation Here we use the results of the improved block-based motion estimation algorithm to initiate objects at block level what we call the low resolution segmentation. Motion vectors are calculated for every block in the image where at least 1 pixel not belongs to an existing object. An object may be formed if there are sufficient connected blocks with the same 1A uniform colour space is used to calculate colour differences more in accordance with human feeling - 75 - reliable motion vector. Because the CBME algorithm assigns a class to every block we define reliable as motion vectors belonging to certain classes. At startup or after a scene cut detection this object generation is disabled for a few frames (typical 2) to assure that the block-based motion estimation routine returns usable vectors. For the first frame the scene cut detection mechanism will return zero motion vectors and we need another frame before the initial guess mechanism returns reliable proposals. 2.3 High resolution segrnent.ation The segmentation at pixel resolution is done in 2 steps. First a cost is assigned to every pixel to belong to a given object. Afterwards the borders are defined. The cost function is obtained by combining 3 types of information : 1. shape information 2. information from the motion field 3. colour information Spatial connectivity is guaranteed by performing an iterative region growing procedure start- ing from every pel in the predicted segmentation and low resolution objects. This region growing is continued until the colour difference between the current pixel and the represen- tative colours of an object or the difference between the motion vector of the current pixel and the object exceeds a given threshold. Borders between the different objects are defined by a second region growing step to obtain spatially connected objects. Starting from the same points as for the cost calculation we look for a 4-connected path to all pixels which have minimal cost for a motion vector which differs no more than a given threshold from the object vector. Because pixels can only once be assigned to a given object the order of evaluation is important. To avoid dominance of the largest objects we start the decision step with the smallest objects first. 2.4 Shape sirnpdification To minimize the bitrate needed for the shape information some extra processing is done to simplify the shapes of the obtained objects. The simplification is done by a majority filter which assigns a central pixel to the object of which the majority of its neighbouring pixels belong to. Because introducing a new object corresponds to an increase of segmentation information which needs to be canceled by a decrease of the textural information we reject objects which are too small. In a last step the remaining gaps in objects are filled. An illustration of the different steps on the 3rd frame of foreman (the first frame which generates objects) can be seen in figure 2. - 76 - Figure 2: Results of the segmentation algorithm I Original frame with MV I LR segmentation I HR segmentation I Final segmentation 3 Video codec In order to get some insight on the typical performance of a segmentation-based compression scheme a complete video codec is developed. A complete outline of the codec can be seen in figure 3. Because a good segmentation result was our primary goal we used for all kinds of information existing coding schemes or a straightforward extension of it. The obtained bitrates are consequently rather high. Future work willlook for more suited coding schemes. For the regions processed in block mode we need to transmit the motion vectors, the classification information used by the "Optimal Level Allocation" (OLA) coding scheme [3] and the motion compensated prediction error. OLA is a spatial domain coding scheme which tries to exploit as much as possible features of the human visual system. For the object regions we need their shape information, their motion vectors and the resulting prediction error. Some extra overhead information is needed to reconstruct the segmentation at the decoder site: the number of objects in the current frame and the di- - 77 - mensions of the used blocks. Most information is entropy coded with an adaptive arithmetic coder. For the prediction error we developed an extension of the OLA scheme for blocks however with less adaptivity. data blocks MVobj Update H Previous Segmentation contours Figure 3: Block-scheme of a video codec with motion-based segmentation 4 Results and conclusions Testing the performance of a video codec is a very difficult task due to the big changes in input characteristics and the lack of an objective error measure in accordance with human judgment. If the codec is developed for a typical application one could derive some typical input stream. We stated however that our codec should be general purpose without any need of a priori information. So we used a test sequence in ITU-R Rec. BT.601 format which is a combination of short parts of sequences with fairly different characteristics (smoothe--abrupt motion and even still images, scene cuts and fade-overs, sharp--rather blurry images,... ) to optimize the codec performance. Due to the large amount of parameters and their mutual influence on each other this optimization is still in progress. To test the robustness of the parameters this "optimal" parameter set "ill later on be used for sequences with other spatial and temporal dimensions, from QCIF to HDTV. Some video results will be shown at the symposium. Current results show that the segmentation results are rather good (see result on Mobile - 78 - and Calendar in figure 4). The weak point of the codec as described here is the coding of the motion compensated prediction error for the objects. Block-based codecs can change their coding parameters on block basis to be able to adapt to the local changes of the image content. If we process an object as one unity we loose this adaptivity. This would be no problem is our segmentation would be perfect because than we only have 2 possible error sources. First errors due to non perfect motion compensation which do not need to be coded and second errors due to illumination changes which are the same for the whole object so that a global approach causes no problems. In reality however the segmentation is never perfect which leads to local changes in the error content and is very bit consuming when coding with a global approach. Dividing the segmentation for presentation and the segmentation for coding as foreseen in the upcorning MPEG4 standard [4J is a possible approach which gives however no solution for the annoying blocking artifacts. Further reseárch is needed to develop coding strategies adapted to segmentation-based coding schemes. Figure 4: Segmentation result on field 46 of Mobile and Calendar References [IJ S. DESMET, B. DEKKUYDT, 1. VAN EYCKE::"J,& A. OOSTERLIKCK, Classification- based motion estimation for video coding, Journalof Visual Communication and Image Representation, vol. 5, pp. 370-378, Dec. 1994. [2J M. MAHY, L. VAN EYCKEN, & A. OOSTERLINCK, A simple uniform distance mea- sure for image processing based on the PAL and KTSC video standards, in Proceedings of the International Picture Coding Symposium PCS '94, pp. 412-415, 1994. [3J B. DEKNUYDT, S. DESMET, L. VAN EYCKEN, & A. OOSTERLmCK, A space domain coding method, suitable for coding motion compensated difference images, in Proceedings, Image and Video Compression, SPIE vol. 2186, San Jose, California, USA, pp. 222-232, Feb. 1994. [4J F. PEREIRA, MPEG4: a new challenge for the representation of audio-visual infor- mation, in Proceedings, PCS'96, International Picture Coding Symposium, Melbourne, Australia, pp. 7-16, 1996. - 79 - COMBINED ~vIOTION ESTIMATION AI'i"DSEGMENTATION FOR OBJECT-BASED VERY LOW BITRATE CODING T. Wuyts, L. Van Eycken and A. Oosterlinek • Abstract This text describes a segmentation algorithm meant to be used in an object-based video codec for very low bitrates. The algorithm tries to combine the motion estimation and segmentation step by searching motion vectors which are most likely to give a good segmentation and deriving the segmentation from these motion vectors. Meanwhile cost functions will be derived which describe where in an image shape information is mostly needed. 1 Introduction The current "standard" techniques for video compression, mostly using some form of motion compensation and transform coding, have more or less reached their limit in performance. Therefore new techniques are needed if we go towards the very low bitrate range. 2D object-based coding is one of the techniques that is relatively new and gives a lot of new possibilities. Object based coding introduces extra information on an image: namely a segmentation of the image into different "objects". This segmentation can be very useful in a codec : Motion estimation could be done a lot more precise if we "know" the exact location of borders in an image, the visibility of coding artifacts can be reduced, "background being uncovered" areas can be detected and properly handled, ... However, we must take care oftwo things. First, the segmentation must be good enough so that it does give an improvement in the coding step. And secondly, we must take care that our segmentation information, which must be transmitted to the decoder side like any other information, does not cost too much bitwise. Improvement in coding efficiency will not help us much if all bandwidth is taken by the segmentation information. Careful examination of where segmentation information is vital and where it can be ignored is necessary. This text describes a segmentation algorithm that combines the motion estimation step with the segmentation. In this way we try to optirnize the prediction quality given the method of prediction and segmentation. Furthermore, we will derive a cost-function which will enable us to determine how important the segmentation information is in certain areas. "K. U. Leuven, ESAT-MI2, K. Mercierlaan 94 B-3001 Leuven, Belgium This research has been sponsored by the Belgian government - "Diensten voor Programmatie van het Weten- schapsbeleid" - in the framework of COST. - 81 - 2 Basic Idea 2.1 Combining motion estimation and segmentation We want to arrive at a segmentation into a few objects. Each object will have its own motion. Having a segmentation will allow us to arrive at a better estimation of this motion. We can basically use two types of information to arrive at a segmentation: • First of all we can use "colour information". This is information derived from the frame itself. I.e. we can segment into regions of a more or less uniform colour. However, this will yield a lot of objects plus a lot of motion information for each object to be coded. Clearly, if we are coding at very low bitrates, "a lot of objects" will mean that almost the entire bandwidth will be spent on shape information and motion information . • Secondly, we can use "motion information" between two consecutive frames. I.e. we try to segment into regions with a uniform motion. This will normally give us bigger objects and thus cost us a lot less. However, this gives a chicken and egg problem since we wanted to use this segmentation to get a better motion estimation. Our solution is to try to combine the calculation of motion with the segmentation. We do that by picking a motionvector which should give a good segmentation. Classical motion estimation algorithms try to minimize the displaced frame difference of a region. This is not the way we can do our motion estimation since we do not know to what area we will apply our motion vector to as long as we have no segmentation. Instead of the global difference we will use the number of pixels a motion vector describes almost perfectly to decide which motionvector to use. It is conceivable that, the motion vector that describes the largest number of pixels almost perfectly, will describe a large area very good. This motion vector is thus an ideal candidate to arrive at a "good" segmentation. 2.2 Cost-functions (;nrling om segmentation inforrnation costs a lot of bandwidth if we are trying to do this in a lossless way. Since our intended goal is very low bitrate coding, this cannot be allowed. We thus have to look for a lossy way of coding. It should therefore be useful to have a way of knowing where segmentation information is vital and where it can be neglected. This way we would be able to decide where we want to spend extra bits on shape information and which areas of our object need not to be represented correctly. - 82 - We derive such information from our segmentation algorithm by calculating cost func- tions for each object. Each function should be a measure of how much a pixel needs to belong to an object. This means that if the "cost" of a pixel to belong to object A is much smaller than the "cost" to belong to object B, it will be vital that this pixel will belong to object A instead of object B in the finallossy coded version of the segmentation. Our cost-function will be mainly derived from two things : • The displaced frame difference of the pixel. This is really the only measure we have on pixel basis of how good a motion vector is. It is logical to give pixels with a high displaced frame difference a high cost. • Cost of neighbouring pixels. If we include this information our segrnentation will be a little bit more clustered. 3 Algorithm 3.1 Selecting a motion vector When choosing a motion vector for an object, we first have to look at which kind of motion we are going to allow. Classical motion estimation calculates for each 8 by 8 block one 2-dimensional motionvector (i.e. a translation only). However for object based coding at very low bitrates, this will no longer be sufficient : we are dealing with larger portions of the image (an object consist of more than one 8 by 8 block) and we often subsample our video sequence in time thus going from 25Hz to 5Hz or even less. This means that a pure translation will no longer be a reasonably good approximation of the motion within one region. We have to allow more parameters into our motion model. Attmeor Euclidean models would be good enough. But since we are going to use some kind of "full search" algorithm, this is computationally not reachable. _Ä•.Il acceptable com- promise is to use Gparameters (2 for translation, 1 for rotation and 2 for stretching in the x- and y-dimension). We now want to tryout every 5-dimensional motion vector and selecting the one that gives the most "almost perfectly" fitting pixels. Our concrete algorithm for selecting a motion vector looks like this : 1. For each pixel check each possible (i.e. allowed) 2D vector. We only check for each 2D vector since each motion vector behaves locally as a 2D translation. 2. If the displaced frame difference of an allowed 2D vector is smaller than a certain threshold (current settings allow a DFD of +/- 1), a counter for all motion vectors - 83 - which are locally represented by thip 2D vector is increased. 3. If a counter for one motionvector exceeds a second threshold this motionvector is selected. If all pixels are processed and no counter has exceeded this threshold, the motion vector with the highest counter is selected. 3.2 The segmentation The next step is making a first segmentation with this motion vector. From the "almost perfectly" fitting pixels we derive an imagë with starting puiuts. This is done by using a morphological erosion eperation. This morphological operator ensures that no isolated pixel will be used for growing a part of the object from. We would like our segmentation to be as contiguous as possible. There will always be pixels that happen to fit a motion vector very well. Growing from these pixels wil! only yield a lot of small, unconnected isolated regions which will be marked as one object. This is clearly not our intention. Using this operator wil! make us only grow from relatively larger clustered regions of "almost perfectly" fitting pixels. When we have calculated these starting points, we start to grow a first version of the object. Our object will grow along pixels with a reasonable low displaced frame difference. In this step we will allow a bigger displaced frame difference than for the selection of the motion vector. We can now try to find another motion vector/object combination. Hereby we reset the counter entirely and start all over again. However, now we ignore pixels already marked as belonging to a previous object. In this way, these pixels have no longer influence in the calculation and will not tend to push the selected motion vector in the direction of previously calculated motion vectors. We stop with calculating motion vector/object combinations, when our image is suffi- ciently filled with objects or when we reach a hard limit of the number of objects we want to allow. 3.3 Calculating cost-functions The final step is the calculation of cost-functions for all objects. Like said before, these functions will be mainly based Oil the displaced frame difference of a pixeL Furthermore, we want to incorporate information neighbouring pixels. Concretely, we redo our growing step. Starting points are assigned a "cost" of zero. Then we let the cost-function grow. Each pixel gets as "cost" the maximum of the cost of neighbouring pixels and its own displaced frame difference. - 84 - Figure 1: Original and segmentation of the sequence foreman Now we can make a final segmentation by assigning each pixel to the object which has the lowest cost for the pixel. Pixels with identical cost for two or more objects are arbitrarily assigned to the first one found. This does not really matter since we will still need to code the contour information. Tt is very well possible that the pixel still "moves" from one object to the other. This is likely to occur since the "costs" for both objects are more or less the same, so the decision will be solely based on coding cost of the segmentation. 4 Results During testing the following parameters were used: • The maximum displaced frame differences allowed during selection of the motion vec- tor. This value was set to +.I- 1. • The maximum displaced frame differences allowed during the segmentation step. The allowed difference here was +/- 4. • The threshold to decide whether a motion vector has had enough "hits". This was set to one 15th of the size of the image. In figure 1 and figure 2 you can see the results of the segmentation on the sequences foreman and earphone. Both segmentation give 4 objects (background counts as one object). In the sequence foreman the camera is moving and rotating. The scheme is able to track this rotation reasonably and extract the head which is moving seperately. The helmet is moving along with the head but is not detected because it is a low cost region. No matter which motion vector is applied, most of the pixels will be correctly reconstructed since it is a very smooth area. So the helmet will be assigned to the first object, i.e. the background. - 85 - Figure 2: Original and segmentation of the sequence earphone In the sequence earphone the head is extracted but part of the window is included caused by a shadow of the face moving. There is fast movement in the window on the background. This movement is too difficult to trace. Hence the "ugly" background object. 5 Conclusion An algorithm to segment a frame of a videosequence has been presented. This algorithm does not make any assumptions on the contents of the frame. The algortihm is able to extract a reasonable segmentation. Meanwhile it gives you a costfunction for each object which will be used deciding where in the image we are going to spend bandwidth for shape information. Further research will be devoted to incorporating time information, i.e. using segmenta- tions from previous frames, and to show its usefulness in a complete codec. - 86 - IMAGE UNDERSTANDING CONCEPTS FOR IMPROVED IMAGE COMPRESSION Peter Vanroose" A BRIEF HISTORIC SITUATION SKETCH Over the last decades, different approaches to image compression have been investigated. The basic ("first-generation") techniques remove redundancy from an image or image sequence based on its statistical properties, i.e., using classical source coding with distortion. With these techniques, a typical compression factor of up to 20 can be achieved. This is achieved essentially by defining the distortion in an appropriate transformed signal space. The most prominent application of this transform coding is the use of the discrete cosine transferm (DeT) in, e.g., MPEG-2 codecs. A much higher compression factor is needed for applications like video con- ferencing over normal telephone lines: at 9600 bps, a 512 x 512 byte-pixel image, compressed with factor 20, would take more than 10 seconds. Thus, compression factors in the range 500-5000 would be more appropriate. For applications like browsing large video databases, or WorldWide Web connections over the Internet, an even higher compression factor could be desirable, possibly at the expense of some (but not too much) image quality. For this purpose, we need image-specific coding methods and, more impor- tantly, methods that take into account the (in)sensitivity of the human visual system. "Second-generation" techniques were studied in the 80s [1]. It was ob- served that humans are able to, e.g., quickly identify contours and homogeneous regions in an image, separate foreground from background, and track independent moving entities ("objects") in an image sequence. First of all, we need so-called image segmentation to separate more or less homogeneous regions, either in intensity, colour, speed, or texture. If this seg- mentation is to be used for subsequent image compression, it will be clear that the most important gain comes from the region coding (for which typically a polynomial approximation is used, or also fractal techniques or Markov random • Katholieke Universiteit Leuven, div. E.S.A.T.-MI2 Kard.Mercieriaan 94, 8-3001 Heverlee, Belgium Peter.Vanrooseeesat.kuleuven.ac.be - 87 - fields when applied to textured regions). There is however extra coding over- head because the segmentation itself has to be coded as well. See, e.g., [3, 7] for examples of segmentation-based image compression techniques. At a higher level of abstraction, these regions idealiter should form (parts of) rigid objects which we should be able to follow through an image sequence. Be- cause normally we may assume that such objects are two-dimensional projections of "real" three-dimensional entities, we can even apply geometrical, topological or mechanicallaws to further interpret and thus simplify the image sequence. In the limit, coding a "virtual reality" like representation of the scene would be suf- ficient, where only a description is needed of the three-dimensional objects, their initial position and orientation and their motion vector, and similar information about the camera and the light source(s). Both this higher compression factor, and the use of objects as basic enti- ties, are the key concepts of MPEG-4, the emerging coding standard for digital audiovisual data compression and communication, which should begin to replace MPEG-2 after 1997. In short, an MPEG-4 codec will examine the image sequence to be transmitted, locate objects of interest, determine their shape, colour, re- flectance, movement ... and then encode their most important features in com- pressed form. This will of course require more computational power, both at the encoder and at the decoder, but it will enable very low bitrate applications to achieve relatively high image quality. COMPREHEND TO COMPRESS In a recent paper [5] R. Nohre argues that compression can help to interpret images: his message is "compress to comprehend". Take for example the well- known Kanizsa triangle of Fig. 1. Why do we humans interpret this as a white triangle covering three circles? Because this gives the most compact description of the scene, i.e., the one corresponding to an optimal compression. Thus, ac- cording to [5], it suffices to optimally compress an image in order to find its best interpretation, This is in accordance with the minimum description length (MDL) principle: "the best interpretation of any data set is the model which is such that the length of (a compact description of) the model plus the description of the data in this model is minimal", see [2, 6, 8]. - 88 - Fig. 1. The Kanizsa triangle. In this paper, I would like to take the complementary view: in order to com- press an image, first find an interpretation for (all parts of) the image; an optimal interpretation willlead to an optimal compression: "comprehend to compress". Returning to Fig. 1, the natural human interpretation apparently is: three black circles covered by a white triangle. Guided by this interpretation, we can encode the image in optimally compressed form by the following algorithm: "draw three black circles on a white background and put a white equilateral triangle on top of it, with corner points in the centres of the three circles". The only two quantitative values values that must be specified are the radius of the circles and the side of the triangle. These two values need not be specified very accurately: a small deviation still gives the same digitized image, because of the finite pixel granularity. Thus, these two values can be represented with few data bits. The only other entities to be encoded are the concepts of 'circle' and 'equilateral triangle', which are primitives that are part of the description language, and finally their positioning, which is very regular and thus neither needs much data bits. Remark also that the size (in pixels) of the image does not influence the compressed length, except maybe for the precision of the two quantitative values. A typical compressed size would thus be in the range 20-50 bytes. Compare this with classical encoding techniques: for image sizes 100 x 100 pixels, 250 x 250, 1000 x 1000 and 2000 x 2000 respectively, pure statisticallossless methods (such as versions of Lempel-Ziv, or Markov model methods) give approx- - 89 - imate compressed sizes of 300, 650, 3000, and 8000 bytes, respectively. JBIG, the ANSI standard for still black-and-white image compression, gives compressed sizes of 200, 260, 530, and 850 bytes, respectively. THE IMAGE UNDERSTANDING ENVIRONMENT (IUE) The Image Understanding Environment (IUE) is a project sponsored by ARPA (USA), to develop a common object-oriented software environment for the development of algorithms and application systems, see [4]. It is currently being implemented (in C++) and the first release is already publicly available through anonymous ftp on the Internet. Most importantly, the IUE provides a conceptual standard for IU data mod- els and algorithms. It provides support for images (in the broadest sense), image features, spatial structures (points, curves, surfaces and neighbourhoods), coordi- nate transforms, and sensors (i.e., camera models, light sources and scene models). Especially the spatial objects structure is thoroughly worked out, and forms the backbone of the system. These geometrical and topological abstract data struc- tures form the basis for doing image interpretation, as they are able to model any kind of image segmentation, edge detection, region growing, determination of 3-dimensional entities ... An important shortcoming of the IUE is that it does not (yet) provide an interface for image compression purposes, as the Image Understanding commu- nity, which designed the IUE, and the Image Compression community, are rather separated worlds. But although the rUE structures were not meant to be used for image compression, they turn out to be quite useful, as will be shown below. USING THE IUE TO IMPROVE IMAGE COMPRESSION The IUE provides image processing algorithms (such as image segmentation), and it also provides a compact language for describing objects in a scene. This description can be used by a compression algorithm. (Remark that the Data Exchange (DEX) format of the IUE is far from being compact, as it is an ASCII- readable format, but it seems reasonable to derive a compact representation for the information in a DEX file.) More specifically, at the sender side, rUE could perform image segmentation and motion estimation, and give a compact representation of the edges (e.g. a spline fitted version with a low number of control points) and of the motion field, which are then sent to the receiver together with the actual compressed - 90 - regions. At the receiver side, rUE is used to reconstruct the skeleton for the image sequence, being essentially a topological entity in 3-dimensional spatio-temporal space with the edges and the motion field, after which the image sequence itself is reconstructed. An even more IUE-specific image compression technique would be the use of spatial 3-dimensional (3D) modeling (at the sender side) and 3D reconstruction (at the receiver side). Viewed in 3-dimensional space, object movement in the scene is more natural and, more importantly, can be described in a very compact way for rigid objects. For sufficiently long image sequences, it will probably pay off to have very precise object edges, which need somewhat more bits to represent, but which allow for a very efficient 3D motion estimation. Maybe the most far-reaching part of the rUE is its sensor module. The sensor and scene models in the rUE were primarily meant to store information about the camera, the light sources and the reflectance properties of objects, and the transformation between the 3-dimensional world and the 2-dimensional image. This calibration information is then at the image operator's disposition in order to facilitate the interpretation of the image. Of course, normally, such information is not available in a real-life video transmission situation. But even then, the whole sensor module machinery of the rUE can be used to improve the compression rate and the image quality. Suppose that we were able to obtain a (maybe partial) 3D reconstruction for an image sequence. This means that we have obtained a transformation from the 2D images to the 3D world, i.e., we have a sensor model. From shadows, light intensity changes, or reflectance, we could derive a good estimate for the position of light sources (which can be viewed as'cameras', because shadows correspond to hidden regions, thus the sensor model setup also applies to light sources). Thus, using the sensor module of the IUE, we can compensate for specular effects and shadows at the sender side, and re-introduce them at the receiver side. After removal of these light and camera related image artifacts, the scene should look more homogeneous, or at least we may assume it to consist of mainly homogeneous, regularly textured or irregularly textured regions. The latter could probably just be modeled as "noisy" regions, i.e., we need not spend much band- width in specifying its exact structure but rather leave it to the receiver to add noise with a similar structure to a homogeneous region. This probably very compact scene representation, consisting of geometrical structures (surfaces) with luminance and texture information, a camera model - 91 - and light source models, is passed to the decoder, which uses the IUE algorithms to re-introduce the texture, shadows and light effects, very much in a virtual reality sense. The resulting image, although probably very different from the original one in a pixel-by-pixel comparison sense, will look very much alike for a human. Moreover, this kind of representation allows the decoder very easily to change light source or camera positions, allowing the viewer to interactively change these parameters. AN EXAMPLE Fig. 2 displays a simple scene at 500 by 500 8-bit pixels, i.e., 250000 bytes. The original image is at the top left. After Lempel-Ziv compression, it still occu- pies 140000 bytes. On the top right is the 'intermediate' transmitted image which was obtained by using IUE algorithms for edge detection, region finding, curve fitting, and correction for light sources. Together with this image, parameters for camera and light source have to be transmitted as well. The two images at the bottom are JPEG-encoded versions which need 10000 bytes and 1500 bytes, respectively. The IUE-encoded version needs approximately 600 bytes: the spline approximation for the region boundaries has 94 control points, each with a precision of 3 digits. The other data to be transmitted take less than 60 bytes. The number of control points could even be reduced without much visual effect. REFERENCES [1] M. Kunt, A. Ikonomopoulos & M. Kocher, "Second-Generation Image-Coding Techniques", Proceedings of the IEEE 73(4), pp. 549-574, 1985. [2] J. Rissanen, Stochastic Complexity in Statistical Inquiry, World Scientific Se- ries in Computer Science 15, 1989. [3] O. Kwon & R. Chellappa, "Segmentation-based image compression", Optical Engineering 32(7), pp. 1581-1587, 1993. [4] C. Kohl & J. Mundy, "The development of the Image Understanding Envi- ronment", in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 443-448, 1994. [5] R. Nohre, "Computer vision: compress to comprehend", Pattern Recognition Letters 16(7), pp. 711-718, 1995. - 92 - [6] P. Vamoose, "On complexity measures for a tree", in Proceedings of the Six- teenth Symposium on Information Theory in the Benelux, Nieuwerkerk aid Ijssel (May 1995), pp. 41-47. [7] E. Reusens, T. Ebrahimi & M. Kunt, "Dynamic coding ofvisual information", submitted to IEEE Trans. on Circuits and Systems for Video Technology, 1995. (8) H. Gu, Y. Shirai & M. Asada, "MDL-Based Segmentation and Motion Model- ing on a Long Image Sequence of Scene With Multiple Independently Moving Objects", IEEE Trans. on Pattern Analysis and Machine Intelligence, PAMI- 18(1), pp. 58-64, 1996. Fig. 2. A simple scene, and its encoded versions (below: JPEG). - 93 - CONTEXT-TREE WEIGHTING FOR EXTENDED TREE SOURCES Paul A.J. Volf and Frans M.J. Willems* Abstract At the ISIT'95 Suzuki [IJ presented a context weighting algorithm that covered a more general class of sources than the context-tree weighting method, at the cost of some extra complexity. Here his algorithm will be compared to an algorithm, that covers the same model class. 1 Introduction Most modern universal source coding algorithms are based on statistical tech- niques. These algorithms consist of two parts. The first part is a modeling al- gorithm that gives a probability distribution for the next symbol of the source sequence, based on some statistics. It obtains these statistics from the previous symbols of the source sequence. The second part is an arithmetic encoder that uses this probability distribution and the next symbol to form the code sequence. The arithmetic encoder performs nearly optimal, thus the performance of the source coding algorithm depends fully on the modeling algorithm. The modeling algorithm tries to approximate the source which generated the source sequence. It assumes that the source belongs to a specific model class, and it wants to find the model within that model class, that matches the source sequence best. If the source sequence has indeed been generated by a model from that model class, then the performance of the source coding algorithm could be optimal. But if the actual source differs from that model class, then this will result in some extra redundancy. Willems, Shtarkov and Tjalkens presented a universal source coding algorithm in [3]. This modeling algorithm, the context-tree weighting algorithm, gives ex- cellent performance in theory and in practice. It assumes that the model is a tree source. A tree source is a suffix tree, of which one of its leaves will be identified by the last few symbols of the source sequence seen so far (the context of the new symbol). All symbols following such a context are assumed to be independent. Thus a tree source is a suffix tree with memoryless sources in its leaves. To estimate the probability of a memoryless (sub-) sequence, the modeling algorithms discussed in this paper use the Krichevksy- Trofimov estimator. It defines the probability of a memoryless sequence with a zeros and b ones as: ~. ~ .... , (a -~). ~ .... , (b - ~) Pe(a,b)= () ,fora>Oandb>O. 1·2· ... · a+b • Both authors are with the Information and Communication Theory Group at Eindhoven University of Technology. - 95 - The redundancy of this estimatoris upperbounded by ~ log(a + b) + 1. Four model classes were described in [2], together with their corresponding context weighting algorithms: from class I, which was the most general model class to class IV the least generalone. Class IV corresponds to the context-tree weighting algorithm of which, as described above, the model class consists of all tree sources. The other more general classes result in more complex modeling al- gorithms. At the 1995 IEEE ISIT, Suzuki [IJ presented another context weighting algorithm, of which the model class is between class III and class IV. In this paper we will briefly describe the class III and class IV context weighting algorithms. But the main subject of this paper is the modeling algorithm of Suzuki, and a comparable algorithm which was developed by the second author in 1992 during investigations which finally led to the class I, Il, and III weighting algorithms. We will first describe both algorithms, and then compare them, first in theory and then with simulations. 2 Context weighting algorithms: class III and class IV The context often consists of the last symbols of the sequence. In the class IV algorithm the context symbols are examined in a fixed order, in general from the most recent to the least recent symbol. In the class III algorithm the weighting algorithm will consider all possible orders of the context symbols. The class IV modeling algorithm uses a context tree to estimate the best model. For the class IV algorithm, the context tree is a fuil binary tree with a depth D (as shown in figure 1 on the right hand side). As in a tree source each node splits according to the next context symbol. The algorithm weights in every node the two alternatives: the probability in case of the node being a leaf (Pe), and the probability in case of a split. The weighted probability in every node 8 in the context tree, where s has depth l(s), is defined as: t { Pe(a.,bs) if l(8) = D, PW(Xl' 8) = P«as,b,)+Pw(~j,os)Pw(xPs) if l(8) < D. The resulting weighted probability in the root of the tree is the probability of the sequence so far as computed by this modeling algorithm. In the class III ma deling algorithm, the context can be split at an arbitrary position. One way to implement this is with the context structure as shown on the left hand side of figure 1. First the algorithm selects a position to split the context on, and then it splits the contexts in two subsets. One with a zero on that position, and one with a one on that position. This results in the following weighting formula: - 96 - Here S is the set of positions which the algorithm already used for splitting and s denotes the values of the positions at which a split occurred and a don't care for the other positions. Furthermore Os indicates the same context s, only now the don't care on position p has been replaced by a o. The modeling algorithm now weights over the D - ISI + 1 possibilities: it could be a leaf, or any of the D - ISI remaining splits. o Class III SuzukijWillems Class IV Figure 1: Examples of possible context trees for the various modeling algorithms. Class III is more complex than class IV. The class III algorithm needs to update 2D records (nodes plus leaves) per symbol, and the context structure contains 3D records. The class IV algorithm needs only D + 1 record updates per symbol, and the context tree contains 2D+l - 1 records. 3 Skipping Another way to extend the class of tree models is to introduce don't cares. An extended tree source E is a suffix set over the alphabet {O,1, *}, the symbol * is the don't care symbol. If E contains yOx for some y and x, then it should also contain zlx for some z. Vice versa if it contains y1x for some y and x, then it should also contain zOx for some z. Note that x, y and z can be empty. If the set contains y * x for some y and x, then y should be nonempty and E can not contain zOx nor zlx for any z: The number of don't cares U(E) is the number of different strings *x that are the suffix of a string sEE where x can be empty. For extended tree sources Suzuki [IJ presented a context weighting algorithm. We will here discuss an alternative method for treating the same model class. The following two subsections describe both algorithms, and their differences. The context tree for these algorithms is shown in the middle of figure 1. - 97 - 3.1 The Suzuki-approach Suzuki found the following, very elegant, equation to compute the weighted prob- ability in every node and leaf of the context tree: p (t ) _ { Pe(as,bs) if les) = D, W Xl' S - (1 - ,8)Pw(Xi, «s) + ,8Pw(xi, Os)Pw(xi, Is) if les) < D. Interesting to note is that he doesn't weight over the Pe in the nodes, only in the leaves at the maximum depth, one can find the Pe. Thus if the actual model has a leaf at a certain depth, the modeling algorithm of Suzuki has to form a path of don't cares from the position of the leaf to the last level in the context tree. 3.2 Our approach We distinguishes between two types of nodes. In nodes in which the previous branch wasn't a don't care the algorithm weights three probabilities: the estimated probability of the memoryless subsequence, the weighted probability in case of a split, and the weighted probability in case of a don't care. But in nodes in which the previous branch was a don't care the algorithm does not weight over the memoryless probability, because in this model class a leaf cannot follow a don't care (it can be replaced by a leaf immediately). Thus: Pe(as, bs) if les) = D, ! o:Pe(as, bs) + (1 - 0:) {(I - ,B)Pw(xi, *s) + ,8Pw(xi, Os)Pw(xi, Is)} Pw(xi, s) = if les) = 0 or if 0 < les) < D, and last symbol s not a *, (1 - ,8)Pw(xi, *s) + ,8Pw(xi, Os)Pw(xi, Is) (1) if 0 < les) < D, and last symbol s is a *. Both the Suzuki and our algorithm have the same complexity: 2D updates per symbol and 3D~1_1 records. Hence the update complexity is the same as for the class III method, but the storage complexity is larger if we only look at the number of records. The number of pointers is however in general smaller in a don't care algorithm than in the class III case. 4 A comparison For a given extended tree source both algorithms will have exactly the same parameter cost, thus they only differ in the model cost. The model cost depends on the actual choices for 0: and ,8. It is possible to find models which are cheaper to describe with one algorithm than with the other one. But still it is possible to give a global comparison between both algorithms. We will derive an upperbound and a lowerbound for the difference in model cost between both algorithms. To make the computation a bit easier, 0: and ,8 will be set equal to We !. define the model cost in the Suzuki-approach, in bits, for a certain model £ as: rs(£) = L(D -les)) + (1£1- 1) + U(£). sEE - 98 - The first term is the number of don't cares one has to use to make a path from all the leaves in E to the D-level in the context tree. It can vary between 0 (the model is an extended tree with leaves only at depth D) and 2D-1 (the actual model is a (non-extended) tree with only leaves at depths D - 1 and D - 2). The second term corresponds to the splitting nodes which cost 1 bit each. The third term comes from the don't care nodes in E, they also cost 1 bit. For our weighting method we get: rw(E) = (Is E E : les) < DI) + 2(IEI- 1) + U(£). The first term is the number of leaves not at depth D, which cost one bit each. The next term corresponds to the nodes that cost 2 bit each. The root node contributes to this term and also the nodes that follow a 0- or I-branch. There are IEI- 2 such nodes. The third term is related to the nodes that follow a don't- care-branch. Since a don't care can not be followedby a leaf, there are U(E) such nodes. Now it is possible to compute the maximum gain or loss by selecting one algorithm. It is easy to prove that the followinginequality holds: -IEI(D - 1) :S Is E E : les) < DI- :L(D -les)) :S 0, sEt: with which one finds: -[IEI(D - 2) + 1] :S rw(E) - rs(E) :S IEl - 1. (2) Our approach has a side-effect which is not covered by this bound. Weighting includes models that have instead of a leaf s at level l (s) < D a string of don 't cares from s to level D. This reduces the model cost for our approach, and it could give a result below the lowerbound (2). This side-effect can be overcome by removing the don't care between depths D -1 and D. The bounds in (2) are not so tight. For example leaves at depth D - 1 are cheaper than other leaves in our approach (because of the side-effect), thus one can sharpen the upperbound. In general it is better to use the Suzuki-approach only if it is known that the leaves of the actual source are at about the same known depth. Then one could set D correctly to obtain a small gain. But often the depths of the leaves differ a lot, and are not known in advance, in which case our approach is preferable. 5 Simulations For these experiments we used the context-tree weighting algorithm, the Suzuki modeling algorithm, and our modeling algorithm with parameters 0: = !3 = ~ and depth D = 5. To show the performance of these madeling algorithms, we com- pared them for three different source sequences. A random sequence, a sequence generated by a full tree of depth 5, and a sequence generated by a small model. All sequences consist of 1048576 bits. - 99 - For all experiments, we compute the parameter redundancy in case the model is known, but not the parameters. By subtracting this parameter redundancy from the redundancies obtained by the three algorithms one gets the model cost. To compute the model cost in theory, we only have to add the model cost of all models in the model class with the same structure (and thus the same number of parameters). All other models will have considerable higher parameter redun- dancy and can be neglected. The random sequence is generated by a memoryless source with parameter 0.5. For the context-tree weighting algorithm we expect a model cost of 1 bit (a single leaf), and for the Suzuki-approach we expect 5 bit (5 don't cares). Finally for our approach we expect 0.956 bit model cost (2 models: 1 bit for the model consisting of a single leaf, and 6 bit for the model with 5 don't cares). The difference between our approach and Suzuki's approach is more than 4 bit (under lowerbound (2)) due to the side-effect mentioned before. From the experiments we obtain 0.999 bit for the class IV algorithm, 4.991 bit for the Suzuki-approach and 0.953 bit for our approach. Thus the results of the experiments match our expectations. This experiment shows the disadvantage of the Suzuki-approach, it cannot make leaves at lower levels in the tree, but it has to make a costly string of don't cares. The second experiment is the most favorable case for the Suzuki-approach. The model is complete, without don't cares, and has all its leaves at the maximum depth. The difference between the model cost of both approaches should reach the upperbound (2). We expect the model cost for the class IV algorithm to be 31 bit (31 internal nodes of 1 bit), for the Suzuki-approach also 31 bit, and for our approach 62 bit (every node costs 2 bit). The experiments resulted in a 30.999 bit model cost for the class IV algorithm and for the Suzuki-approach. Our approach indeed had 61.999 bit model cost. Again the experiments correspond to our expectations and show that upperbound (2) is achievable. oL_ L- L- i_ L- i_ ~ o 200000 400000 600000 800000 1e+06 r.ze-os Number of bits Figure 2: The parameter redundancy and the redundancies of the class IV algo- rithm, the Suzuki-algorithm and our algorithm (called Willems). - 100 - The last source sequence has been generated. by a source consisting of a don't care followed by a single node with two children. The context-tree weighting algorithm cannot deal with the don't care, so it will create a full tree of depth 2, which results in a much higher parameter redundancy and a model cost of 7 bit. The Suzuki-algorithm will have a model cost of 8 bit, mainly due to the two strings of 3 don't cares. Our algorithm should give a model cost of less than 4.66 bit (four models, of which three due to the side-effect). For this experiment we plotted the redundancies in a figure 2. The experiments showed a parameter redundancy of 18.680 bit, for modeling algorithms on the extended tree sources. The model cost are as expected, 7.980 bit for the Suzuki-algorithm and 4.655 for our approach. The class IV algorithm has to create 4 leaves, with a parameter redundancy of 31.151 bit (which is 12.471 bit more) and has 6.976 bit model cost. This shows the advantage of this larger model class. It is clear that if the depth of the actual source is not known, the Suzuki-algorithm will give a higher model cost in most cases, as for example in this one. Then our algorithm performs often better. The Suzuki-algorithm would outperform our approach only with a context tree of depth 2 or 3, in all other cases its model cost are higher. 6 Conclusions In this paper we discussed two weighting algorithms which can be placed between the class III and the class IV weighting algorithms. Compared to the class IV weighting algorithm, they cover a larger model class, at the cost of a considerable increase in complexity. The Suzuki-algorithm is elegant (a single formula describes it all), but performs not as well in situations in which the depth of the actual source is not known, or if the depths of the leaves differ a lot. It then needs (many) extra don't cares. Our algorithm uses three different formulas, but is better suited in general. Only in some specific cases it could cost some extra bits compared to the Suzuki- uiethud , but this loss will uever be larger than ISI - l. But both methods are more complex than the class III algorithm (although they have less pointers). And the class III algorithm covers a larger model class. So that algorithm is preferable to these two new ma deling algorithms, unless one explicitly wants a distribution of model cost over the models according to one of these weighting algorithms. References [IJ J. SUZUKI. A CTW scheme for some FSM models. In IEEE Int. Symp. on Inform. Theory, p. 389, Whistler, British Columbia, Canada, September 1995. [2J F.M.J. WILLEMS, Y.M. SHTARKOV, and Tj.J. TJALKENS. Context weighting: General finite context sources. In Symp. on Inform. Theory in the Benelux, vol. 14, pp. 120-127, Veldhoven, The Netherlands, May 1993. [3J F.M.J. WILLEMS, Y.M. SHTARKOV, and Tj.J. TJALKENS. The context-tree weighting method: Basic properties. IEEE Trans. Inform. Theory, 14 (3), pp. 653-664, 1995. - 101 - U nification of several lossless compression codes. Gertjan Keesman 1 Abstract In the paper a coding method is described that can be used as basic build- ing block for various FV, VV, VF (fixed-to-variable, variable-to-variable, variable-to-fixed) compression codes. This basic code is referred to as "par- tial coding" because it takes only a part of the available capacity. Partial coding essentially is a one-to-many mapping procedure. By means of a re- cursive use, possibly imposing restrictions and nesting, of several partial codes it is possible to construct several types of compression codes. Hence, it is possible to "unify" codes that are usually described as separate coding strategies. 1 Introduction Lossless data-compression can either be applied independently or as a component of a lossy data compression system. For instance, in computer applications, in- dependent lossless data compression can be found in programs such as "PKZIP", "ARJ", "COMPRESS", etc. Also lossy video data-compression systems, for in- stance, MPEG video compression, have a lossless coding function. There is a myriad of lossless data compression codes [1, 2], such as: Huff- man codes, Tunstall codes, Arithmetic codes, Elias codes, Lempel-Ziv codes, etc. Usually these codes are divided into the categories VF, VV, FV, FF and stream- codes. VF-codes map a variable number of source symbols onto a fixed number of channel symbols, Tunstall codes are such codes. FV-codes map a fixed number of source symbols on a variable number of channel symbols, Huffrnan codes are such codes. Stream codes map streams of source symbols on a stream of chan- nel symbols without distinguishing clear codewords. Arithmetic codes are such stream codes. This paper introduces yet another lossless data compression code, which will be referred to as partial code. Basically, partial codes consist of a one-to-many mapping. It will be demonstrated in this paper, through examples, that several codes can be constructed from such a partial code, hence, unifying these types of lossless codes. 1keesman@natlab.research.philips.com, Philips Research Laboratories Eindhoven, Prof. Holstlaan 4, 5656 AA. Eindhoven, The Netherlands. - 103 - 2 Partial codes This section will describe partial codes and their characteristics. The coding operation of a partial code is easiest explained through examples. Throughout this paper it is assumed that the information sources are discrete memoryless sources (DMS-sources). Suppose we wish to encode a source that produces symbols from a tern- ary alphabet, e.g. S = {a,b,c}, with probabilities Pa = 0.625, Pb = 0.25 and Pc = 0.125 and, hence, an entropy of H = 1.299 {bits/symbol]. We, fur- thermore, have a code-word set C with 8 symbols or strings of symbols, ~.g. C = {000,001,010,011,100,lOl,110,l1l}. These are the symbols that will be transmitted, Symbol a is coded by one of the symbols of the sub-alphabet Ca C C with Ca = {ODD,001, 010, 011, 100}. Similarly, symbol b is coded by one of the symbols of the sub-alphabet Cb cC with Cb = {lOl, 110}, and finally, symbols c is coded by one of the symbols of the sub-alphabet Cc C C with Cc = {l1l}. And Ca nCb ncc = 0 Obviously the encoding is non-unique and the decoding is unique, enabling instantaneous decoding. At first glance such a code does not seem to provide cornpression. However, the choice within a sub-alphabet involves the transmission of additional inforrnation. If the transmitted information is separated in two components, effective rate and rest-capacity, it can be shown that the effective rate for coding source S can be close to the source's entropy. Let ICI denote the size of the code-word set and let ICil denote the size of sub-alphabet. Furthermore, let ISI denote the number of source symbols. In our example we have: ISI = 3, ICI = 8, ICal = 5, ICbl = 2 and ICcl = 1. Obviously, 151-1 LICil:::; ICI, (1) i=O must hold. In fact, Eq. (1) is a generalized form of the Kraft inequality. Further- more, it is required that (2) holds; otherwise it would be impossible to transmit symbol i. The rate of the above described code equals 2log ICI = 3 bits per transmitted symboL This rate can be separated in an effective rate R that is actually used to represent symbols from the information source S and a rest-capacity that can be used to send additional inforrnation. In the case that we have a sub-alphabet with ICi I symbols we can transmit log ICi 12 (bits/symbol); On average we can trans- mit L!!I~l Pi log ICi I (bits/symbol), which is the rest-capacity. Consequently, the 2in this paper logex) denotes base 2 logarithms and ln( x) denotes base e logarithms - 104 - effective rate R used to transmit symbols of source ISI equals [S[-l [S[-l IC I i R = log ICI- ~ Pi log ICil = - ~ Pi log ICT' (3) If the probabilities Pi are close to the ratios %i ' the effective rate R will be close to the source's entropy H. Of course, it is required that the available rest-capacity is indeed fully used. Below it is shown how close the entropy can be approached given that the rest- capacity is used entirely. This performance can be computed, using the following property of the ceiling function r·l. Let c, denote non-negative real numbers and let n and m denote integer numbers, then m-l m-l LCi=n=::;, Lrci1 S;:n+m-1 (4) ;=0 ;=0 holds. This will be used to bound the performance of a partial code. Set the size ICil of the sub-alphabets to ICil = rPi' (ICI- ISI + 1)1- This setting, given that Pi > 0, fulfills the conditions expressed by Eq. (1) and Eq. (2) and, hence, specifies a valid partial code. It is, however, not necessarily the optimal setting. A procedure for computing the optimal sub-alphabet sizes can easily be found. The redundancy r of a partial code with this setting can be computed as follows. The redundancy equals [S[-l ICI. Pi r = R- H = L Pilog-IC'I t=O t . (5) The ratio [~J/;iis bounded as follows IGI· Pi ICI'Pi IGI· Pi (6) ICil rPi' (ICI- ISI + 1)1 Pi' (ICI - ISI + 1) + ai < Pi ·ICI ICI (7) Pi' (ICI- ISI + 1) ICI-ISI + l' where ai E [0,1). The redundancy is, hence, bounded by ISI-1) r = R - H s;: - log ( 1 - -IC-I- . (8) For instance, suppose the set of channel symbols are all strings of I binary symbols, then ICI = 21. Furthermore, apply the inequality ln( x) s;: x - 1. This gives a bound on the redundancy of r s;: 2-llog(e)(ISI - 1) {bit/symbols] which can be considerably smaller than the redundancy of a Huffman code, which is bounded by r s;: 1, given that the length lof the channel symbol strings is large enough. - 105 - a 000 a 000 a 000 OOO~ aaa 001 001 b 001~ aab 010 010 c 010~ aac 011 b ûl l ee- ab 100 c 100 100~ ac b 101~ b 1l0~"unused" c III 111~ c Table 1: (left) VF code construcied by applying partial codes recursively; (right) the resulting VF code that is produced by this procedure. Of course, Eq, (8) assume that the rest-capacity is fully used. Below the rest capacity will be wielded to transmit symbols from the same source S with another partial code. This construction can be used to generate several types of lossless codes. 3 VF codes constructed from partial codes The recursive use of partial codes leads to VF codes, for instance, Tunstall codes. In this case the rest-capacity is used to transmit another symbol from the same information source S. This procedure is shown in the following example. Assume that we have the same information source S as in the previous section, that is, a source with ternary alphabet, e.g. S = {a, b, c}, with probabilities Pa = 0.625, Pb = 0.25 and Pc = 0.125. Application of the setting ICil = rPi' (ICI- ISI + l)l for this example results in ICa I = 5, ICb I = 2 and ICcl = 1. The sub-alphabet of a can further be split into sub-subalphabets of size ICaa I = 3, ICab I = 1 and ICacl = 1. Observe that the sub-alphabet for "b" has ICb I = 2, and, hence, cannot be split any further because we cannot fulfil the conditions of Eq. (1) and Eq. (2). In other words ICbl = 2 is too small for lossless transmission of all possible symbols. In a next step the sub-alphabet for aa can be further split into ICaaal = 1, ICaab I = 1 and ICaacl = 1. Combining these three levels of using partial codes leads to the code shown in Table 1. The redundancy of using the rest-capacity obviously increases with recursion depth because the size of the sub-alphabets decreases. In fact, the redundancy can be written as ISI-1 IC I . Pi ISI-1 r=R-HS L pilog-C-+ L Pi·ri· (9) i=O I .1 i=O - 106 - send "b" send "a" send "a" a 000 a 101(00) a 10100 a 10100(0) 001 101(01) 10101 10100(1) 010 101(10) 10110 10101(0) 011 101(11) b 10111 b 10101(1) 100 110(00) c 11000 10110(0) b 101 b 110(01) c 10110(1) 110 110(10) c 111 c 110(11) Table 2: Encoding of 3 symbols from the same source Sj the bold face symbols indicate growing of the sub-alphabets and the underlined symbols indicate symbols that need no longer storage in either the encoder or the decoder. The resulting coding procedure is that of a stream code. The term L Pi . r: reflects the redundancy of using sub-alphabet i. Obviously, since the above described construction results in smaller values for ICi I every step down the recursion, the rest-capacity is used less efficient. This can be avoided by growing the sub-alphabets, which is described in the next section and which results in stream codes, such as arithmetic codes. 4 Stream codes constructed from partial codes Stream codes can be generated by using partial codes recursively, just as described in the previous section, and with a method that grows the size of the sub-alphabets whenever they become too small. Growing a sub-alphabet means that extra channel symbols are appended to the code words. In the case we have binary channel symbols, we adopt the strategy to ICI within (10) Table 2 shows an example of the above described construction with I = 3. The first column shows the initial code that we start out with. Now suppose that we send symbol "b", and, consequently we send either symbol 101 or 110. The choice among these two is determined by the following source symbol. Because we have a sub-alphabet of size 2 which does not fulfil Eq. (10), we append two bits to the symbols 101 and 110, which gives a new extended code word set with 8 code strings. This new" grown" alphabet, which is again partitioned in three sub-alphabets, is shown in the second column of Table 2, and the appended bits are shown in bold face. Now, suppose the next symbol that we want to send is an "a". This means that we have have to send one of the 5 string in the top part - 107 - of the second column. This leads again to a new sub-alphabet, 'which has size 5. According to Eq. (10) we do not grow the sub-alphabet in this case. When we transmit yet another symbol "a" we have to grow the sub-alphabet again, which is shown in the last column of Table 2. The procedure explained above has a problem with storage. The encoder and the decoder need to store at most 21 strings. Every time we grow a sub-alphabet, we need more memory to store the strings. We don't need to store the underlined bits in Table 2, because these are the same for all string in the sets. In the case of an encoder this means that these bits can be transmitted and in case of an decoder this means that they may be discarded from the decoder's buffer. This operation can be compared with the interval rescaling eperation in arithmetic codes. This procedure does however not guarantee that the required memory in both the decoder and the encoder always remains within limits. It is necessary to devise a strategy to avoid memory overflow. Suppose that the encoder and the decoder both have a memory of B bits so that the maximum string length equals lB liS IJ· Now the situation can arise that we cannot remove bits at the left-end of the strings while we want to append bits to the right-end of the strings. A possible strategy is to force a choice for the left-end bits. This choice will reduce the number of strings in the code-set and it will also shorten the strings. Obviously, we want to make the choice that keep the greatest number of strings in the code-set. The chosen bits are transmitted in the case of the encoder and are discarded in the case of the decoder. After this forced choice, we can further grow the sub-alphabets on the left-end. The above described construction is a description of relatives of arithmetic codes. In fact, the procedure through partial codes is very much a discrete ver- sion of Elias coding. An advantage of this approach is that we have an almost immediate bound on the performance of this type of coding, that is, Eq. (8). Also the problem of memory limitation is more straightforwardly seen here. 5 FV codes constructed from partial codes When we apply the above discussed form of stream codes with the limitation that the sub-alphabet sizes must equal powers of 2, we can construct FV codes. In this case it becomes relevant how the sub-alphabets are selected from the set of code words. Obviously under this condition Eq. (1) transforms into 151-1 151-1 L 2ki ::; ICI ~ L T(l-kil ::; I, (11) ;=0 ;=0 with k, 20 and ICI = 21, which is the textbook form of the Kraft inequality. The selection of sub-alphabets must be done in such a way that the left (l - k;) bits - 108 - of all strings in a sub-alphabet are the same. The consequence of this construction are that we can transmit (I - ki) bits after each coding action and, furthermore, that growing always involves adding (1- ki) bits. The optimum choice for the values of k; can be found by means of solving the constrained optimization problem mimmize : (12) subject to: One way to solve this is minimization problem is, for instance, by means of the procedure known as Huffman-coding. 6 Conclusions In this paper we have demonstrated that codes such as VF -codes, stream-codes and FV codes can all be constructed from one basic element, which was called partial code in this paper. The construction tools we recursively using partial codes, growing sub-alphabets and limiting the size of the sub-alphabets. We might say that these three types of codes can be unified. References [1] Richard E. Blahut; Principles and practice of information theory; Addison- Wesley 1987. [2] Glen G.Langdon; "An introduetion to arithmetic coding"; IBM J. Res. De- velop. Vol. 28, No. 2, March 1984. - 109 - OPTIMAL UNIVERSAL CODING WITH RESPECT TO THE RELATIVE REDUNDANCY CRITERION* Yu.M. Shtarkov', Tj.J. Tjalkensl and F.M.J. Willems+ Abstract In this paper we consider the compaction of data generated by a binary memoryless source with a fixed but unknown probability of generating a one. We argue that a relative redundancy criterion is a better measure for the code's performance than the absolute redundancy. We design uni- versal fixed-to-variable length codes and variable-to-fixed length codes and compare their relative redundancy behavior. We show that the variable- to-fixed length codes have a better performance than the fixed-to-variable length codes. 1 Introduction A message is a finite length binary sequence x = XIX2 ... Xk and its length is given as n(x) = k. A set of messages is said to be proper and complete if no message in the set is a prefix of another message in that set (proper) and if any semi-infinite binary string XIX2 ... has a prefix in the set (complete). Consider a uniquely decodable code ip = {IP( x) [z E X} that assigns codewords IP(x) of length L(xIIP) to messages from a proper and complete set X of M e source messages. Also, B denotes a binary memoryless source, i.e. describes the unknown probability of a one. The average absolute redundancy of the code sp for the set X used on the e output of source is given as _( B) ~ L(X, lP, B) _ h(B) = L(X, lP, e) - H(XIB) (1) r X, lP, n(X, B) n(X, B) , "This work was in part supported by INTAS tlO1447, Moscow, GSP-4. Ermolovoy str., 19. Institute for Problems of Information Trans- mission. Russia iEindhoven University of Technology, P.O. Box 513, 5600 MB Eindhoven, The Netherlands. - 111 - where h(fJ) is the entropy of source fJ and n(X, e) ~ LP(xle)n(x), (2) xEX L(X, ip, e) ~ L p(xlfJ)L(xlcp), (3) xEX H(Xle) ~ n(X,e)h(fJ) = - LP(xle)logp(xle). (4) xEX n(X, fJ) is the expected message length and L(X, cp, fJ) is the expected code- word length of the code ip used on the message set X with the source e. H(Xle) is the entropy of the message process. Another redundancy criterion that can be used is the relative redundancy given by -(X e) ~ rex, cp, e) = L(X, cp, e) - H(XlfJ) p .ip; h(fJ) H(XlfJ) (5) The relative redundancy gives an indication of the compression achieved by the code as compared to the best possible compression. Thus it describes in some sense how well the code performs. Absolute redundancy on the other hand explains how many more symbols we have to transmit relative to the minimum number. This is a useful parameter when we have to pay for each symbol trans- mitted. We know the extra cost. 2 Universal data compression If the source parameter e is known in advance, the optimal code, either of the fixed-to-variable length type (FV code, Huffman [1]), or variable-to-fixed length type (VF code, Tunstall [2]), is the same for relative redundancy and absolute redundancy. However, in the case of an unknown e the optimal code with respect to absolute redundancy is not the same as the optimal code for relative redun- dancy. Most results obtained until now are for universal codes w.r.t. absolute redundancy. We know of three papers, [3, 4, 5], that discuss universal codes with respect to the relative redundancy. In our opinion the relative redundancy is a better indication of quality. Rela- tive redundancy, as defined below, indicates how close the compression rate is to the source entropy, even if we don't know the SOUfCf,(p.nt.rnpy) When the source is unknown, absolute redundancy g-ives no information about the source entropy. Let n be the set of all sources fJ, with 0 ::; e ::; 1. In the following we shall use the maximal relative redundancy. This describes the worst case redundancy of a code over the set of sources n and the possible messages x. The maximal relative redundancy of a message set X and a code cp for a set of sources is defined as n L(xlcp) , p(X, cp, H = sup P X, ip, e = sup sup """') II () 1 P( le) - 1. (6) OEf! OEf! xEX - og X - 112 - For universal :fixed-to-variable length coding an algorithm ({O,l}n, r.pFV) for the class ft was described in [4] and the following relative redundancy bound was obtained: p( {O, I}", vrv, ft) :S -1 c (1 + 0(1)), ti _:t(XJ, (7) ogn where n is the source block length and the bound holds for all sequences z". except on and In. c is a constant that only depends on the length of the codewords chosen for on and 1n. In [5] an universal VF algorithm (XVF,r.pVF) was presented that achieved a relative redundancy upper bounded as ') ,c, ( ) log log M p(XVF,r.pVF,st =suPPXVF,r.pVF,B :S 21 M (1+0(1)), M-too. OEO.' og (8) Here st' is a subset of st whose volume tends to one as M -t 00. It was also shown that this redundancy is asymptotically optimal. We could try to compare the VF codes with the FV codes on the basis of an equal number of messages and codewords, so we should set log M = n, However, (8) is a non-uniform bound, see below, while (7) has been shown to hold uniformly for all sequences z", except on and In. 3 Universal VF codes From (5) it is obvious that if B = 0 or B = 1 then p(X, ip, B) = 00 and because p(X, r.p,B) is a continuous function of B for any X and sp, there exists a constant d and a Bo such that p(X, ip, B) > d for all B < Bo and all B > 1 - Bo. Note that we assume symmetry of p(X, r.p,e). Although heB) is a symmetric function, p(X, r.p,B) need not be but it will be close. So, we shall treat the points B = 0 and B = 1 and their neighborhoods separately. We define st. ~ {B I E :S e :S 1 - E} , (9) where E, with 0 < E < 0.5, is an arbitrary function of log M or n, which converges to zero as log M resp. n increases. In this paper we shall consider the possible redundancy bounds as a function of log M or n, and E. For VF codes we use fixed length codewords so L(xlr.p) = log M. (10) The message set X is defined using a function f that assigns real values to arbitrary finite length source strings. f must satisfy the following condition. - 113 - For every source string y and every source letter a such that the source probability P(aly) > 0 we require J(ya) > J(y), where ya is the concatenation of y and a. Note that from this follows that for any sequence of strings XIX2 ... Xk, k = 1,2, ... , with a positive probability for all k, holds (ll) x is a semi-infinite length source sequence. Let k(x) be the largest, possibly infinite, index such that P(XIX2 ... Xk(x») > o. Then (ll) applies to the sequence of the first k (x) prefixes of x. So, given any string x and any fixed real value Q S; J(XI ... Xk(x») there is a unique index j = j(x, J, Q) such that J(XIX2 Xj-l) < Q, (12) J(XIX2 Xj) ;:::Q. (13) A message set X can now be defined given J and Q as X(f,Q) ~ {XIX2 ... Xj I x E {O,I}OO,J(XI ... Xk(x»);::: Q,j =j(x,J,Q)}. (14) It is easy to see that X as defined above is proper and complete and its size lXI increases with Q. The bound (8) was obtained using a function J defined by (15) where a is the number of zeros and b is the number of ones in the sequence XIX2· .. Xi· 4 Universal FV codes In FV codes the message set contains all sequences x = XIX2 ... Xn for some :fixed integer n. The selection rule used in [4) to choose the codeword lengths is the maximum probability rule. For the set of SOurces ft we consider the maximal relative redundancy for a given message x (of length n): c. (I) c. L( x I~) 'Y( xl~, ft ) = sUP'Y X~, e = sup ( le) - 1 = (16) OEn OEn -logp x L(xl~) -1 (17) -logp*(xlft) , - 114 - where p*(xISt) ~ supp(xle). (18) OEf! The codeword lengths are now chosen such that (16) is upperbounded by some value 1'(XI'P, St) for all x E X. Then the maximal relative redundancy (6) is upperbounded by the same. In [4J the author proved (7) using this approach. 5 A universal VF code with a uniform bound on the redundancy We shall use the maximum probability approach of the previous section to derive a VF code with a uniform (on St,) upperbound of the relative redundancy. Ac- cording to (9) and (18), the choice of J that realizes the bound on the maximum probability is given by (a+b),,+b I min(a,b) > ~, 1 a+b _E, J,(x) = ,a(L,)b' if a:b < E, (19) { 1 é(l-')" , if b 1 a+b < E, where again a denotes the number of zeros in x and b the number of ones. Note that J, can be seen as the inverse of the maximum probability of the sequence x. From (9), (10), (14), and (16)-(19) we find that the corresponding code achieves rl) logM(Q,E) 'Y ( x Iip, H, < log Q - 1 (20) for all xE X. Here, M(Q, E) = IX(J" Q)I. The following lemma bounds the size of the message set by a function of Q and E. Due to its length, the proof of this statement is omitted. Lemma 1 The universal VF code, defined by the Junction J, has a size M(Q, é) bounded as M(Q,é) < 2cQ (logQ + 1)1/2. (21) € Here C is a constant. Using (20) and (21) we finally obtain the maximal relative redundancy bound for VF codes. - 115 - Theorem 1 Let e be a binary memoryless source with unknown probability of generating a one. The VF code whose message set is given by (14) with the func- tion f. achieves the following maximal relative redundancy bound as a function of the design parameters Q and E. X st ) < (XI st) < ~loglogQ log(l/E) __!!_ p,( , sp, e - Î CP,. - ')~ 1og Q + 1og Q + 1og Q' (22) C is the constant as described in the above lemma. 6 A universal FV code with a uniform bound on the redundancy For the FV code with respect to the maximal individual relative redundancy the codeword length of a message x E {O, I} n is given as (23) where again f.(x) is as defined in (19). Î describes the relative redundancy and its value is limited by the Kraft inequality. We can show the following upperbound for Î- Again, the proof of this statement is omitted due to its length. Theorem 2 Let e be a binary memoryless source with unknown pTObability of generating a one. The FV code with message length nand codeword lengths as given by (23) achieves the following maximal relative redundancy bound as a function of the design parameter nand E. = ({Ol}nl st) < log(nE) - 2log1n(ne) +log(4/1f) (24) Î Î , CP,. - 2nElog(1/E) , Here we require that E = En is such that nEn -t 00 when n -t 00. 7 Comparing the FV and VF codes The VF codes and the FV codes both have uniform bounds on source sets st. and thus we can compare their redundancy behavior. We shall consider the performance in terms of maximal relanve redundancy for the FV cOOPS and VF codes when their sizes are (approximately) equal. A FV code where the messages have length n has 2n codewords. From (21) we see that for a VF code as described above the size of the message set is approximately Q, at least in the sense that logM(Q,E) = logQ+o(logQ) as Q -t 00. So, we compare the FV and VF constructions under the assumptioa that n=logQ, asn,Q-too. (25) - 116 - Ifwe take (25) into account then the FV bound (24) is approximately 1/( -dog E) times larger than the VF bound (22). Also, in [5] it was shown that (8) is the asymptotically optimal redundancy for any VF code. If we select E as a function of Q such that = log e li m =0 (26) Q->oo log log Q , then (22) coincides with (8), i.e. we achieve the best possible relative redundancy. So, for the scheme described above this limits the rate by which E can decrease. Let E = dl (log Q) for some appropriate constant d. This selection does not satisfy (26). It can be checked that (22) is at most three times larger than the optimum (8). Thus we can conclude that the VF approach is more flexible, i.e. we can arrange a tradeoff between the redundancy and the growth rate of the set ne. It also gives an approximately 1/( -dog é) times better redundancy than the FV codes for the same ne. References [1] D.A. HUFFMAN, "A method for the construction of minimum-redundancy codes," Proc. IRE, vol 40, pp. 1098-1101, 1952. [2] F. JELINEK and K.S. SCHNEIDER, "On variable-length-to-block coding," IEEE Trans. Inform. Theory, vol IT-18, no 6, pp. 765-774, 1972. [3] J.C. LAWRENCE, "A new universal coding scheme for the binary memoryless source," IEEE Trans. Inform. Theory, vol IT-23, no 4, pp. 466-472, 1977. [4] Yu.M. SHTARKOV, "Universal (with respect to the criterion of relative re- dundancy) coding for memoryless sources," Probl. Inform. Trans., vol 27, no 4, pp. 282 288, 1991. [5] Tj.J. TJALKENS and F.M.J. WILLEMS, "A universal variable-to-fixed length source code based on Lawrence's algorithm," IEEE Trans. Inform. Theory, vol IT-38, no 2, pp. 247-253, 1992. - ll7 - MINIMUM ENTROPY-REPRESENTATIONS AND DECORRELATION G.H.L.M. Heideman* Abstract Decorrelation of a time discrete signal is usually seen as the best procedure to get the lowest zero order entropy of the new representation of the source. Why this is so, is not well understood and only suggestions are given in textbooks and papers. In this paper it will be shown that, besides the well known K.L. Transform and the linear prediction procedure, there exist another decorrelation procedure. This procedure uses a non linear prediction of the n'th sample of the signal. This results in a new representation with a lower zero order entropy than the K.L. Transform (with transform order N-infinity) and LPC, respectively. It will also been shown that the reason that we cannot do any better than decorrelate has nothing to do with the new representation itself. In fact, the reason is that we usually use one and the same codebook for each sample of the new representation, independent of the past history of that sample. The use of one codebook, together with the non linear estimation procedure gives the lowest "practical attainable" zero order entropy of the new representation. Theoretically, the true source entropy can be achieved with the non linear estimation procedure and with as many codebooks as the number of the different histories . • University of Twente, Deparunent of Electrical Engineering.Tele-Informatics and Open Systems Group, P.O. Box 217, 7500 AE Enschede, the Netherlands, tel. +31534892843, fax +31534893247, e.mail: heideman@cs.utwente.nl - 119 - Coding for Channels with Low Rate Noiseless Feedback J.P.M.Schalkwijk and M.S.Bargh * Abstract Consider a binary symmetric channel, where for each frame of f for- ward transmissions one is allowed a group of 9 < < f noiseless feedback transmissions. Using set partitioning a forward code affects the rather simple intra set decoding, while inter set decoding is accomplished by us- ing a feedback strategy. A simple example with f = 2, 9 = I, a memory length 2 convolutional code and multiple repetition feedback coding shows significant complexity, rate and performance gains over straight forward error control. 1 Introduction If a feedback link from the receiver to the transmitter is available when commu- nicating over a 'discrete memoryless channel', then the complexity of the coding scheme can be reduced. This is shown by multiple repetition feedback strate- gies [3J that achieve nonzero error-free rates. For specific values of the channel transition probabilities, these rates are even equal to the channel capacity! They assume a noiseless feedback which is acceptable if the receiver has enough power to transmit data back to the transmitter correctly. However the feedback line is not perfect in general. Therefore it is necessary to modify these strategies for the case of noisy feedback. A first approach could be using the same noiseless feed- back, but transmitting less than one feedback bit per forward bit (if we represent the rate of the feedback transmission to the rate of forward transmission by RIb, this means RIb < 1). Convolutional codes also have very good error correcting capabilities. In order to achieve a lower error probability we have to use a convolutional code with more states. However, the complexity of decoding algorithms (e.g. Viterbi decoder) grows with the number of states. It seems that in order to use the nice features of convolutional codes, we have to design new convolutional schemes which require less states and on the other hand provide the same performance. The idea is to combine repetition feedback strategies with convolutional codes, such that the outcome improves the shortcoming of each individual method. This new strategy basically uses the ideas of set partitioning [6J. Here we try to explain this idea when RIb = ~. An overview of the system is depicted in Figure 1 . Eindhoven University of Technology, Department of Electrical Engineering, Group on In- formation and Communication theory, PO box 513, 5600 MB Eindhoven, The Netherlands. - 121 - I I' ~:::::: Precoding ,----1 for N n Feedback 0/1 Convolutional BSC Encoder Rate Ree 0/1 m m' R..r,pivpr Ruff"r (first row) ... Figure 1: Overview of the system 2 Encoder To encode, each block of input data of length n is divided into two sub-blocks by an input buffer, The first part of the block of length I is used for the feedback scheme encoder and we represent its bits by a/b and call them group bits. The second part of length m goes to the convolutional encoder and we represent its bits by 0/1 and call them convolutional bits, n = I +m. (1) Due to channel encoding each sub-block will be transmitted in bits therefore !f the total block of n will be transmitted in N transmissions, N ?: n. The feedback scheme encoder consists of precoder which maps the input block of length I to the output block of length I' in such a way that the output block does not contain any ob" and bak sequences, I = Rol' (2) and k is the repetition parameter in the fp.f'rlh~rk- repetition schorrio(c.g. for k = 3 we have Ro = 1+2.J5" [3]). Then, to make the length of the final feedback scheme block we add a !f tail of length !f - I' which can be produced by alternating the last bit of the output block of length I' [1]. This tail is the redundant error correcting part of each block for feedback repetition strategy. On the other hand the convolutional encoder produces the convolutional code word with rate .R.:x from its input blode of m bits. - 122 - a b o ------~O 0 00 01 1 11 10 I ------;.- I Figure 2: Left: Mapping of group and convolutional bits into channel bits, Right: Corresponding BSC for convolutional bit when the group bit is known correctly (if the group bit is a then (0,1)= (00,11) else (0, f) = (01,10)). By the signal mapping box, two tasks, as follow, are carried out . • Each convolutional bit is assigned with two channel bits according to the value of the group bit. This mapping is shown in the left side of Figure 2. For each output a or b of the feedback scheme encoder we have binary symmetric channels in the right side of Figure 2. As we can see, in this way the probability that we receive the convolutional bit erroneously has become: . p2 Pee = Pr{y = fix = 0, Y E transmitted group} = p2 + (1 _ P )2' (3) The feedback repetition strategy guarantees that the received pair of bits belongs to the same group as the transmitted ones . • The signal mapping box also performs the following repetition strategy. Since in the receiver side every two consecutive bits are Ex-ored and fed back to the transmitter (feedback line is delayless), we can easily see whether the received pair is from the same transmitted group or not. If they are the same, it moves on to the next group and the next convolutional bits and if they differ, it has to: - repeat the latest afb bit (the group bit that went wrong) k times (here k = 3) and reduce from the end of the tail k bits (performing the feedback repetition strategy 011 the group bits, ~ee [3]), - repeat the 0/ I convolutional bit corresponding to that wrong a/b. This reduces the total rate with increasing the cross-over probability of the channel but improves the performance of the scheme byavoiding an erasure channel. 3 Rate As is mentioned in the previous section we repeat a transmission if there is an error in the group of the received pair of bits. From Figure 2, follows that - 123 - the corresponding channel in terms of the group bits can be seen as a binary symmetric channel with cross-over probability pi = 2p(1 - p). For each couple of transmitted bits we have contributed one bit from the feedback scheme encoder and one bit from the convolutional code encoder. For each transmitted block of length N, in the feedback part we have: N N "2 = [' + kr "2pll + 1, (4) in which r ~pll is the expected number of group errors in the block length of If (see [3]). For the convolutional part: N = _1_ (m + v) + N pil, r (5) 2 Ree 2 in which v + 1 is the constraint length of convolutional code. We can calculate the total rate as: (6) Using relation 1 to 6: ~(Ro(1- Rtotal ;::::: kp') + Ree(1- pi)) _ Ra; v. (7) For large N it becomes: Rtotal = ~(Ra(l - kp') + Rce(l- pi)). (8) In Figure 3 Rtotal is depicted in terms of p, the cross-over probability of the transmission channel. As we can see for 0.0001 < p < 0.01 (range of interest) the total rate is even larger than 0.5, of course for higher p it will fall below 0.5. 0.65 0.6 R total 0.55 0.5 V /~ ...... --- 0.45 0.4 " 0.1 om 0.001 0.0001 p Figure 3: The total rate of new scheme - 124 - 4 Decoder In the receiver, by using very simple logic (resulting from Figure 2) on every couple of bits we can determine their group (being a or b) and the corresponding convolutional bit (being 0 or 1). This means two input bits change to two output bits. Outputs for each block of length N are stored in parallel in a 2 x If buffer (called receiver buffer, in the first row 91,92, ... , g s: bits and in the second row 2 Cl, C2, ... , c s. bits) from left to right (see figure 1). Besides, the ajb bit is also 2 sent back to the transmitter via the feedback line. Now decoding is done in two stages as follows: • Firstly we: do decoding for the multiple repetition feedback strategy [3J in the first row of the receiver buffer in Figure 1 (gl, g2, ... ,9E bits). And 2 that is, moving from right to left and - replacing any abk and bak sequences with b and a respectively (here k = 3). This means that in the places of a and b a group error has occurred. - in those places that a group error is detected, delete the corresponding convolutional bit from the lower row ofthe receiver buffer (Cl, C2, ... , c s.), 2 since at the time of transmitting whenever an error occurs, the present convolutional bit is repeated . • Secondly, for the remaining of the second row of the buffer, we do convolu- tional Viterbi decoding. In the Figure 4 by an example coding and decoding procedure is shown. 5 Results In our scheme we have used a four-state convolutional code (v = 2) with rate one half. To have a measure of the bit error probability Pb, we use Meeberg's upper bound on the bit error probability of convolutional codes with Viterbi decoding [7J. This is the tightest bound on this probability and therefore is a good approximation of it. In Figure 5 the Pb of the new scheme (v = 2 convolutional code and Rfb = ~) is compared with that of 64-state convolutional code (v = 6, the best Viterbi decoder ever made!). It is important to mention that this error performance belongs to the transmitted sub-block of rn, the other sub-block is transmitted error-free (practically this is true if our multiple repetition feedback scheme has good error correcting capability, in other words a long-enough tail!). 6 Complexity of decoding In order to perform decoding for feedback scheme and next for convolutional code, in the decoder of Figure 1, we need a receiver buffer of length N. In an optimum - 125 - Group bits a b a a b a Conv. bits I I 0 I 0 I I I 0 0 I 0 Transmitted räl group bits a ~~ ~ _~ __ b__ ~ , a ~~~_,: __a__ ~_ a a b a ,, ,, , , - ï - - -1- , - - - - - - - - - - - I Transmitted conv. bits I :-C:_!. , , 0 I 9~_9 :, !~_~ , I I 0 0 I 0 , , , , , 11 ,'10, ,'11, 11 , ,, , ,, Transmitted bits 10 Ol 10 DO', 00 11 11 00 00 10 00 , Received bits 11 , , 10 :11: Ol 10 10' , 00 :, 01: 00 11 11 00 00 10 00 , , , , ,, Inlut hllffp.r irst row (J. :~,~b b b ,_ b, J a :_b, a a a a a b a Ij;ed~ck r a a a a b b b b b b b a a a a a b b a a eco rng L* a b 0.. a a b a Input buffer second row I 1 I 0 I 0 0 I 0 I I 0 0 I 0 V Input to the V it . conv. decoder * I I 0 I 0 o: I I 0 0 I 0 Figure 4: An example which explains the new coding and the decoding method, in dashed boxes a group error has occurred, dashed underlines indicate the rep- etitions for the group or convolutional bits, dashed arrows show ignoring the received convolutional bits in those places that a group error detected, dashed circle is the only error which has to be corrected by convolutional decoder. implementation of the decoder this can be avoided using sequential decoding for feedback scheme [4, 5]. Therefore for complexity evaluation we only consider the Viterbi decoder. The Viterbi decoder consists of two major parts [2]. Add Compare and Select part which finds the survival branch for each state. For a Ree = tand 2V-states code we need 2V add-compare-select operations. The other part is Path Storage Selection and its complexity, in different implementations, is proportional to L x 2V (L is also linearly dependent to 1/). Anyhow these two points imply that total complexity is proportional to the number of states (2V). From the results of our scheme it is obvious that the performance of 4- state Convolutional code with one-half feedback rate is much better than that of 54-state öne, while L1t:complonity is fi;. 7 Conclusions We considered a new feedback scheme that results significant complexity, rate and performance gains over straight forward error control schemes. It opens new prospectives for further reduction in the rate of feedback transmission. Future researches requires more investigations in optimum set partitioning, considering - 126 - 0 -2 -4 -6 \ -8 Pb 1\ -10 1\ -12 -14 1\ -16 1\ \. -18 0.1 0.01 0.001 0.0001 P Figure 5: The performance of new scheme, 4-state convolutional code with half rate feedback and that of 64-state convolutional code without feedback (the bold one) erasure channels and designing nonbinary convolutional codes. References [1] Donaid Wesley Becker. Multiple-repetition feedback coding. PhD thesis, University of Cali- fornia, 1973. [2] E. Paaske, S. Pedersen, and J. Sparso. An area-efficient path memory structure for vlsi implementation of high speed viterbi decoder. Integration, the VLSI journal, (12):79-91, 1991. [3] J. Piet er M. Schalkwijk. A class of simple and optimal strategies for block coding on the binary svmmetric rhannel with noiseless feedback. lEbl:!; 'Iransactions on Information Theory, 17(3):283-287, May 1971. [4] J. Pieter M. Schalkwijk and Karel A. Post. On the error probability for a class of binary recursive feedback strategies. IEEE Transactioris on Information Theory, 19(4):498-511, July 1973. [5] J. Pieter M. Schalkwijk and Karel A. Post. Correction to "on the error probability for a class of binary recursive feedback strategies". IEEE Transactions on Information Theory, March 1974. page 284. [6] Gottfried Ungerboeck. Channel coding with multileveljphase signals. IEEE Transactions on Communication Technology, 28(1):55-67, January 1982. [7] L. van de Meeberg. A tightened upper bound on the error probablity of binary convolutional codes with viterbi decoding. IEEE Transactions on Communication Technology, 20(3):389- 391, May 1974. - 127 - Efficient Coding Strategies from Two-Dimensional Weighing J. Pieter M. Schalkwijk and Hendrik B. Meeuwissen* Abstract Earlier strategy codes for communication over the binary multiplying two- way channel were obtained by efficiently subdividing a unit square. It can be shown that optimal subdivision eventually yields the capacity region. How- ever, the problem is that such optimal subdivisions are extremely difficult to find. Recently, Schalkwijk proposed a two-dimensional weighing procedure of message points. An example of 2-D weighing with three message points that yields a rate pair of R(l) = R(2) = 0.63069 is described. The weigh- ing procedure has the potential to yield new achievable rate regions for the binary multiplying channel, while finding further extensions by unit square subdivision is difficult. 1 A First Efficient Strategy Code The strategy code that proves that information feedback can increase the capacity region of the memoryless binary multiplying two-way channel [5] is the point from which this manuscript starts. First, we describe how this code [3] works. The sequences of zeros and ones that are offered to the terminals at both sides of the channel are translated into real numbers in the range from zero to one by putting a decimal point to the left of these sequences and then considering them as binary fractions. This real number at terminal i, i = 1,2, is denoted by et. The encoder at terminal i, i = 1,2 determines its sequence of binary channel input symbols X;' from time 1 to n by carrying out a simple algorithm that consists of the following three basic resolutions. If et E [0, al), then send Xt,l = I, else if et E [ai, I), then send Xt,l = O. If the common channel output Yj_ = Xl,lX2,1 = 0, then if et E [O,ala2)u[al, 1), then send Xt,2 = I, else ifet E [ala2, I), then send Xt,2 = O. If Yl = 0 and Y2 = Xl,2X2,2 = I, then if et E [al,I), then send Xt,3 = I, else if et E [0, ala2), then send Xt,3 = O. These three basic resolutions are usually depicted as a subdivision of the unit square as shown in figure 1. The basic subdivision is specified by the thresholds al and ala2. Note that after appropriate scaling, the three basic resolutions can be repeated in every rectangular resolution product. Now the performance of the strategy code is analyzed. The average mutual information of the first basic resolutions is the product of the area of the resolution in the unit square and the corresponding information rate. In other words, Both authors are with EindhovenUniversityof Technology,Group on Information and Commu- nication Theory, Dept. of Electrical Engineering,P.O.Box 513,5600 MB Eindhoven, Netherlands. - 129 - 1 1 Oll 00 010 c b 00 1 010 a o Figure 1: The three basic resolutions. where PI = 1 and h is the binary entropy function. Similarly, the second basic resolution has 1 12= P2' IR2 = P2' --. h (1- al + ala2), 1 + al where P2 = 1 - ai. The third basic resolution satisfies I-IR 3 - P3 . - P3 . 1- al + al a2 . h ( 3 - 1 - al ) , 1- al + 2al a2 1- al + al a2 where P3 = (1 - 0'1)(1 - al + 2a1a2). The symmetrical transmission rate of the strategy code can now shown to be If the progressive subdivision of the unit square is regarded to be a three state Markov chain, then the q's in the above expression are the corresponding stationary probabilities of that chain. Numerical optimization of the transmission rate yields R(l) = R(2) = 0.61914 for &1 = 0.67571 and &2 = 0.29769. Some relevant values of areas and information rates are listed in Table 1. As a conclusion, it can be seen that the feedback increases the capacity region, since the equal rate non-feedback capacity of the binary multiplying channel equals Cnf(1) = Cnf(2) = 0.61695. 2 Bootstrapping Now we closer examine the strategy code of the previous section. Observe from Table 1 that the information rate of the second resolution is small in comparison to the information rate of the third resolution, which is in five decimal places equal to the maximum information rate of log2((1 + ..;5)/2) ~ 0.69424. Thus, on the one - 130 - Table 1: Some numerical values. i Pi IR;. t, 1 1.00000 0.61421 0.61421 2 0.54342 0.59565 0.32368 3 0.23563 0.69424 0.16358 hand we wish to keep the third resolution, but on the other hand we wish to get rid of the second resolution. Surprisingly enough, our wish can be complied with! In fact, let Ro > I R2 be the optimal 0,61914 rate of the previous section, then it can be shown [4] that it is possible to achieve in each direction a rate of Furthermore, by an induction argument, it can be shown that it is possible to achieve a rate of where k = 1,2, ... Thus, a rate of Ric can be found by reducing the number of transmissions corresponding to the second basic resolutions by a factor of I Rd Rk-l· Since Rk > Rk-l, k = 1,2, ... , the sequence of Rk's has a limit Roo that satisfies Finally, simplification of the previous expression yields that asymptotically Hoo = q,I,R, + q;>,IRi! p,I Rl + P3I R3 ql + q3 PI + P3 is achievable. Thus, the second basic resolution is disposed of completely! Numerical optimization yields the sequence ofrates Ra = 0.61914, RI = 0.62727, R2 = 0.62962, R3 = 0.63029, R4 = 0.63048, ..., and, in the limit, ii; = R(I) = R(2) = 0.63056 for 5:1 = 0.69070 and 5:2 = 0.32060. Note that the strategy code of the previous section is constructive, i.e. the code can actually be used for communication with finite delay over a binary multiplying channel. In contrast, no constructive or finite delay methods are known to achieve rates that are obtained by application of the bootstrapping technique. However, it was proven [2]that constructive strategy codes that achieve these rates exist. - 131 - 3 Further Developments Further developments on strategy codes, see [1], that follow naturally from the strat- egy code of the first section are the discovery of more intricate and efficient codes of which the basic resolutions subdivide the unit square up to rectangles. Such strategy codes have been designed by making use of an interactive computer program that helps a human user with the design of subdivisions of the rmit square on which a grid has been projected. The values of the thresholds are allowed to lie on grid lines only. As an example, if the grid has size 33 x 33, the corresponding strategy code, a code in the class of discrete save-up strategies, achieves R(I) = R(2) = 0.62786. Additional gains in achievable rate, see [1], can be obtained by extending the strategy code that employs the bootstrapping technique of the previous section. Thus, a rate of R(I) = R(2) = 0.63077 was found. The corresponding subdivision is very intricate, and uses much of our present knowledge on unit square subdivisions. The improvement in rate is small in comparison to the increase in algorithmic corn- plexity. Although we know that the equal rate capacity of the binary multiplying channel can be approached arbitrarily close by means of the existing techniques, it seems that these technique do not enable us to actually compute the capacity of the binary multiplying channel. The remainder of this paper is devoted to a new approach to the problem. 4 2-D Weighing The new approach consists of a 2-D weighing procedure. However, a suitable sit- uation has to be set up before this procedure can be applied. First, a number of 3plN first basic resolutions is completed. Then, for sufficiently large N, a number of approximately 3p2N second basic resolutions can be disposed of by bootstrapping as explained in the second section. Clearly, a number of approximately 3p3N third basic resolutions could be accomplished at this point. However, this point is the starting-point of the weighing procedure, and thus the communication is continued in another way. Now a number of approximately P3N groups is formed such that each group consists of three resolutions products for which the third basic resolution would have taken place originally. Each of these P3N groups will be handled in the same way. Now remember that the result of three third basic resolutions for each of the three members of a group would be that both encoders are able to indicate the three subrectangles in the unit square in which each of the three message pairs is situated. The question is can wr;,obtain the same TPSll1t. in a more efficient wo;y? We will now describe our solution. Each terminal sees the location of three of its own message points in the interval [0, CXlCX2) U [CXl, I), and tries to estimate the corresponding three message points of the other terminal. Define the two random variables Wl,t and the set of possible outcomes Aw = {r, Z}. Now the following simultaneous weighing is done on what we can image to be a 2-D balance. If I{et : et E [0, Q1Q~)}1 > I{et : et E [al, 1)}1, then WI,t = r, else WI,t = Z. If Pa = ala2/(1 - al + 2al(2) is the probability that - 132 - a message pair is situated in the rectangle labeled by a in figure 1, and similarly, if Pb = Pa, and Pc = (1 - 0'1)/(1 - 0'1 + 20'10'2), then the following joint probability distribution for the weighing is obtained 4p~ + 3p~c, ifi=r/\j=l C "" - Pr W - i W _ 4p~ + 3p~c, ifi=l/\j=r p~ + 6PaP~ + 6p~c, 0 _ 1,>J - { 1,1 -, 1,2 - J} - ifi=l/\j=l { 0, ifi=r/\j=r Now after the weighing on the imaginary 2-D balance, the two terminals simulta- neously inform each other of their own outcome by sending either a zero if Wl,t = r, or a one if Wl,t = l, The average mutual information is I-IR 4 - P4 - P3· Cl,rl + Cl,ll h( Cl,rl ) " 0 4 - c.; + Cl,lr + Csn . Cl,rl + Cl,u Thus, after the transmission both terminals know whether the sequence of loca- tions of the three message pairs is contained either in {aaa, aab, aba, baa, aac, aca, caa}, or in {bbb,abb,bab,bba,bbc,bcb,cbb}, or in {ccc,acc,cac,cca,bcc,cbc,ccb,abc, acb, bae, bca, cab, eba}. Each of these three possibilities is now discussed separately . • Wl,l = rand Wl,2 = l: Define W2l,t similar to Wl,t. Note that each terminal now progresses in a different way. At terminal I, if 1{8l : 81 E [0, 0'10'2)} I = 3, then W2l,l = r , else W2l,1 = Z. At terminal 2, if l{e2 : 82 E [0,0'1, 0'2)}1 = 1, then W2l,2 = r, else W2l,2 = Z. This yields the following joint distribution Pa, if i = r /\ j = Z p~ 3pa, if i = Z /\ j = r C2l iJ" = Pr{W2ll = 2, Wn 2 = J} = -C o 0 , , , . 3 l,rl { Pc, of· 1 2 Z " Z . = /\ J = 0, if i = r /\ j = r The transmission that succeeds this weighing is specified by sending either a zero if W2l,t = r, or a one if Wn,t = Z. The average mutual information satisfies I RS,l + I RS,2 C2l,rl + C2l,1l I s = Ps . = -1 Ps . ( . C2l,rl + Cn,lr + C2l,U 0 2 2 h ( C2l,rl ) + C2l,lr + C2l,U . h ( Cn,lr ) ) C2l,rl + Cn,u C2l,rl + C2l,lr + C21,ll C2l,lr + C2l,ll ' where Ps = P4 . (Cl,rz!(Cl,rl + Cl,lr + Cl,u)). Note that both terminals now are able to distinguish between {aaa}, {aab, aba, baa}, and {aac, aca, caa}. In addition, both terminals can also distinguish between the three sequences in the second case. Only in the latter case terminal 2 needs some additional information to untangle the order of the messages. - 133 - • W1,1 = land W1,2 = r: This situation is solved in a way similar to the previous one by interchanging the role of the terminals . • W1,1 = land W1,2 = l: Define W23,t, W3,t, and W4,t similar to W1,t. Now both terminals progress in the same way. If the first of the three message points is in the interval [0, ala2), then W23,t = r , else W23,t = Z. This yields the following probability distribution PaPc + 2p~, ifi=r/\j=Z C23,ij - Pc PaPc + 2p~, ifi=Z/\j=r - -- . 2 2 C1,1l { Pc + 4PaPc + 2Pa' ifi=Z/\j=l 0, ifi=r/\j=r PaPc + p~, 2 C3ij = ~. P~Pc + Pa' , C23,ll { Pc + 2paPc, 0, The usual transmission corresponds to an average mutual information I-IR 7-P7' - 7-P7' C3,rl + C3,1l .h ( C3,rl ) C3,rl + C3,lr + C3,1l C3,rl + C3,1l ' where P7 = P6 . (C23,II/ (C23,rl + C23,lr + C23,1I))· This transmission distinguishes between {cac, cab}, {cbc, cba}, and {ccc, cca, ccb}. Now in the first case ter- minal 1 needs some additional information to distinguish between ..c, and ..b, while in the second case terminal 2 needs some additional information to dis- tinguish between ..c, and .. a. Finally, upon receiving a one, if the third of the three message points is in the interval [0, ala2), then W3,t = r , else W3,t = Z. This yields the following probability distribution Pa, if i = r /\ j = l C .. _ p~. Pa, if i = l r. j = r 4,'J - C3,1l { Pc, if i = l r. j = l 0, if i = r /\ j = r - 134 - The average mutual information of this final transmission is I-IR a - Pa· a -- Pa· c.; + C ,ll 4 .h( c.: ) C4,rl +c.; + C 4,11 C4,rl + C4,u ' where Ps = P7· (C3,lll (C3,rl + C3,lr + C3,ll)). Note that after this resolution both terminals can distinguish between {eee}, {ccc}, and {eeb}. If the additional information that is sometimes required by one of the two ter- minals is sent at the rate of the strategy, then we can conclude that R(l) = R(2) = 3PII Rl + P4I R4 + Ps (I Rs,l + I Rs,2) + P61 ~ + P71 R7 + PaIRs 3Pl + P4 + 2ps + P6 + P7 + Ps is achievable. Numerical optimization yields R(l) = R(2) = 0.62899 for &1 0.69220 and Q2 = 0.52802. For these specific a's, it can be verified that the prob- ability distributions Cl,ij, C21,ij, C23,ij, C3,ij, and C4,ij yield information rates that are less than the optimal 0.69424. Finally, the distributions C21,ij, C3,ij, and C4,ij are improved by means of bootstrapping, which is applicable as there are a large number, P3N, of groups to which the weighing procedure is applied. Thus, a rate of R(l) = R(2) = 0.63069 is obtained. 5 Conclusions If it is known how to construct unit square subdivisions that are equivalent to rates obtained by the weighing procedure, then the achievability of these rates is a direct consequence of earlier [2] results. The weighing procedure can be applied to any odd number of message points. The extension to five message points seems quite promising. References [IJ H.B. MEEUWISSEN, Coding Strategies for Two- Way Communication. Report, Institute of Continuing Education, Eindhoven Univ. of Technol., Netherlands, 1995. [2] W.M.C.J. van OVERVELD, On the Capacity Region for Deterministic Two- Way Channels and Write-Unidirectional Memories. Ph.D. dissertation, Dept. of Electrical Engineering, Eindhoven Univ. of Technol., Netherlands, 1991. [3] J.P.M. SCHALKWIJK, The binary multiplying channel - a coding scheme that operates beyond the Shannon inner bound, IEEE Trans. Inform. Theory, vol. 28 (1982), pp. 107-110. [4J J.P.M. SCHALKWIJK, On an extension of an achievable rate region for the binary multi- plying channel, IEEE Trans. Inform. Theory, vol. 29 (1983), pp. 445-448. [5J C.E. SHANNON, Two-way communication channels, in Proc. 4th Berkeley Symp. on Math. Statist. and Prob., vol. 1 (1961), pp. 611-644. Reprinted in Key Papers in the Development of Information Theory, D. SLEPIAN, Ed. IEEE Press, New York, 1974, pp. 339-372. - 135 - TAIL ESTIMATION BY STATISTICAL BOUNDS AND NEURAL NETWORKS J. Levendovszky-, E.C. van der .MeuJen2, P. Pozsgai! This paper introduces new methods for estimating the tail of the sum of a finite number o] positive discrete random variables. Accurate bu; computationallç simple estimation of the tail is of great importance in Call Admission Control (GAC) of AT,\! networks. The task of CAC is to estimate siaiisticalli: the tail of the agg1'€gate tmffic emitted by the user$ and to admit or reject new calls based on how the a_qgregatetraffic matelies the network capacity. Besides investigating haw to obtain the tightest siatistical bounds on the aggregate traffic, this paper also approaches the problem unth. the use of the set sepamtion technique. In this [rameu-ork a two-layer neural network is proposed to carry out the separation. This method yields quick and accurate tail estimation which maximizes the network utilizaiion; A. novel approach is given for training the weights of the neural netsoork in a reduced dimensional space in order to minimize the learning complexits), 1 Introduction Efficient. call admission algorithms are important attributes of multiac- cess systems. Their tasks is to control the number of admitted users in order to avoid congestion hut to ensure optimal network utilization at the sarne time. Since congestion is defined in terms of the tail of the aggregate traffic, this casts the problem as a tail estimation according to the following model. Let j : 1, ... , J denote the different users connected to the network; Xj be a random variable which denotes the number of cells emitted by the j-:h user in a given time interval; the load distribution (generated by the jth user) be givenin an On/Off fashion by P(Xj ~ 0) = 1 - T~J' P(Xj = hj) = '?,-: lTechnical University of Budapest, Department of Telecommunications, Stoczek u. 2., Budapest. H-Hll, Hungary 2Katholieke Universiteit Leuven, Department of Mathernatics, Celestijnenlaan 200B, B-3001 Leuven (Heverlee), Belgium - 137 - Y :; Lj Xj denote the aggregate tra.ffic; C represent the node capacity; ï refer to the quality of service (QOS). Congestion occurs when the aggregate traffic generated by the users ex- ceeds the node capacity (Y > C), which results in cell loss. CAO should accept or reject calls by keeping the probability of cell loss under a certain threshold parameterized by the QOS, in the form of J peL x, > C) ::; «», (1) ';""1 Consequently, the aggregate traffic distribution denoted by F.~·l)(k) .- P(Y = k) must be calculated in order to evaluate its tail P(Y > C):; E F{!)(k) s e--V. k>C Since Y is a. sum of independent ra.ndom variables, its distribution can be calculated by performing a. manifold convolution of the source distributions. This method runs into two difficulties due to its numerical complexity and the fact that the source distributions are not known explicitly. As a consequence, the central idea of CAC is to develop upperbounds on the tail of the aggre- gate traffic in the form of P('L;=l X, > 0) :;; Weal, ... , CtJ) ::; e--; where 0::1, "'l CY.J denote the available statistical parameters of the users (e.g., means, variances ... etc.). The mathema.tical endeavor of CAC is to strike a good balance in developing tight bounds on the tail by using simple parameters of the source traffic. To achieve this objective the paper puts three meth- ods under investigation: (i) applying well known statistical bounds, such as Markov, Chernoff or Hoeffding bounds, for evaluating the tail (Section 2); (ü) introducing a transformation techniques to upperbound the original tail with the tail of transformed random variables (Section 3); (üi) regarding CAC as a purely geometrical problem and performing the related set separation by a neural network (Section 4). 2 Statistical Inequalities to perform CAC In order to decide whether a new J + 1st call can be accepted by the network, the following inequalities can be used: - 138 - • M arken; inequality p(E J x, + X + J 1 > C)::;_ Lf!; -C mj . (2) j~l In this case a new J + 1st call is accepted if ",{+1 m. ~)=l J < -"Y C - e . The advantage of this method lies in its algorithmic simplicity, however the bound is ra.ther loose yielding relatively-bad network utilization (see Section 5). • ChernoJf bound c ~ P(L x, + XJ+l > C) ::; ",Hl eL-j~1 J.LJ (' ) "1+1 -'J+l • (3) j""l where Itj(8) := lnEe'x, and ~j+l : zf~; dJ.'j~.l = C. The new J + Ist call is accepted if J+l L f1j(sj ....l) - S~+lC :::; -1· j=l This bound is much sharper than the Markov inequality, therefore bet- ter network utilization can be achieved '(see Section 5). • H oeff ding inequa.lity J J+1 peL x, + XJ+l > C - L mj) < e-:Z(C-~;=1 ",1+1 mj) , ~J. !L-i=l\bj-~i) , j=t where aj,bj: P(aj::S: x, ~ bd) = 1. Now a new call is accepted if J+1 J 2(C - ~ rnj)2 / }:(bj- aj)2 2 /. j=l j=l This method does not provide as good network utiliza.tion as the Cher- noff bound but is still better than the Markov inequality. - 139 - 3 Transformation methods for CAC Another way to get rid of the computational difficulties yielded by equa- tion (1) is to transform the set of original random. variables of Xj j = 1, ... , J into a set of new random variables Xi j = 1, ... , J subject to a standard dis- tribution family. The distributions of Xjs should be easily measurable (e.~. being fully characterized by a. couple of parameters which lend themselves to easy statistical estimation). In this case, the tail of the sum of the trans- formed random variables P(I:;=l Xj :..- C) is expected to be more easily evalua.ted in contrast with the original tail In order to apply the transformation method, however, one must make sure that the following inequality holds J J peL: x, > C) ~ P(l: x~> C). (4) j=l j=l To check inequality (4) proves to be a rather hard task,therefore other rne asures of cell loss came into use, such as (5) Consequently, the inequality P~lllo66(yl, 0) :5 Pe~l!10"(1"" > G) is to be proven where Y' denotes the aggregate traffic emitted by the transformed sources. One of the well-spread transformation methods in the literature is the so called On/Off approximation, defined as follows: Xl denotes the emitted number of cells by the corresponding On/ Off source X' ._ 1'- {O the source is Off hl the source is On (6) with the distribution of P(X; = 0) = 1 - ~ and P(X{ = hI) = r,-. Based on this transformation the following result can be derived: Th..:()l·e.nl 1 Assuming a channel capacit·y (C) and arbitrary source distriuultu)iJ p~ 1 = 1, ..., L the following inequality holds (ï) - 140 - The significanee of this result lies in the fact tha.t CAC can be performed based on the cell loss probability of the OnjOff-ized users by using inequality Pedl zou(Y') C) < «>. 4 CAC as a d.iohot orny separated by a neural net In order to interpret CAC as a set-separation problem, we simplify further the traffic model by assuming that the users are classified into traffic classes i = 1, ... , M, with regard to their tra.ffic parameters. Each user from the ith class presents homogeneous load X; to the network, with the same (mi, hi) parameters. The state of the system is therefore characterized by a vector 11 = ('11,1"'" 'fLM) w L.V$~ ·ith component "ni tells how many U3C:L3 want te be admitted from t.he ith class. A traffic contiguration n is admitted if M P(L: niX. > C) :S e -'"I. i=l The overall load in the ith traffic class, denoted by y;, follows a binomial distribution, The distribution of the aggregate tra.ffic is given by the following convolution To circumvent the tedious evaluation of this formula let us regard the CAC as a set-separation problem defined on the traffic-state space N ex- panded by all possible traffic vectors n-s. Depending on whether n is admit- ted or not , Nis separated into two disjoint region, as follows: M M ,Naccept := {n: P(L: Y; > C) ~ e-")} ,Nrejeçt:= {n: P(2:Yi > C) > e-")} ;::1 - 141 - There are several attempts published in the literature to use a linear hy- perplane [3, 4, 5J as a computationally simple hypersurface to perform the separation. It is generally conjectured, however,that in very complex traffic spaces the application of a single hyperplane might yield a poor approxima- rion, keeping the network utilization at a low level. In our approach a two layer neural network described by the formula is applied to perform the dichotomy. The operatien of the net is explained as follows; • The neurons in the first layer represent the separation given by indi- vidual hyperplanes . • The single neuron in the second layer performs an OR function uniting the individual separation surfaces. Therefore the weights of this neuron are set as a·o = 1, .... ,aA-l = 1,tA =: -0.5. Learning can be regarded as a search in the parameter space W ;= {w : (woo, ... , WMM)E 3?A.M}, to find the best point which minimizes the number of lost calls. We managed to reduce the complexity of learning to an M dimensional space in contrast to the original Ieaming which took place in an A . lJ dirnensional space. 5 Numerical results To compare the performance of the methods listed above, the following traffic situation has been investigated: • The users were selected from two traffic classes with parameters hl = 35, ml = 5, h2 = 15 m2 = 12. The maximum numbers of users in both classes are NI == N2 = 100 yielding 10,201 different tra.ffic sit uations. Hence, the traffic space is a. quarterplane, expanded by the two perpendicular axes cortesponding in t.h"!'number of actual users 'TIl and 112 from the first and the second class, respectively. The admission region is filled with black dots (those points (nl, n2) for which the inequality P(n1X1 + 'TIzX2 > C) < e--Y holds). - 142 - • The network is characterized by a. node capacity G = 1600 and a. quality of service Î = -1n(lO-\!) =20.723. • The key parameter L under investigation is th.e number of lost calls which are part of the tehoretical admission region but rejected by the actual CAG (L := INacc~Pt _ N4eeeptimpl~t"di. The theoretically calculated admission region N"ccoJ't contains 5,966 points out of the 10,201 possible traffic configura.tions (they are indicated in Figure 1 by dots ). The calculation of Naccept is based on formula (8). The separations performed by the Hoeffding and Chernoff bounds and the properly trained neural network are also depicted in Figure 1. na Hl. ~ 100 H2= 100 c- l.300 Pcac-1.e-9 hl.-35 ",1.·5 h2-J.5 ",2·l.2 tlTear. - 3646 IIHo&f •• 2:587 tICher ." 3280 tlLines: f, tlH..ur . ; 3636' Teor. : Hoef. ; Char. : Meur. : ol. Figure 1 Theoretical admission region together with the admission regions gi1)en by the Chernoff and Hoeffding inequalities and a two-layer neural network - 143 - As can be seen, the neural network yields best a.pproximation of the n";"';.,.,,,1 RrhT1'tt ... rl TP'''';nn (th", nllmhp.r of Iost calls is L ;; 63 in contrast with L ,;: 421 obta.ined b; the 'Chernoff and L = 1526 obtained by the Hoeffding inequality. The efficiency of the transformation is indicated by the figure bellow, where the upperbound p~7{~~1(Y', C) is compared with the original cell loss probability P~dllo .. (Y, C). The comparison was made on sources repreaenting voice characteristics APCM (pea.k ra.te=64kbps, mean rate ,.,,16kbps, inter- arrival time=exponential, channel capacity ;:= 4.096kbps). 110 120 130 140 1SO 160 voice 0.0000001 t-----+-----+------------~ sources 1E.17 ..L..... ~ Figure 2 Upperbound for cell loss given by the source OnjOjJ-i:tatiol1 - 144 - Acknowledgement The research reported here was sponsored by the the Hungarian National Foundation for Science and Research (project number F014456) and by the Copernicus Project granted by the European Union (project number 0579), and was carried out in the framework of Onderzoeksfonds K. U. Leuven Fellowship F /93 /90 allotted for Dr. Levendovszky. References (IJ M. DE PRYCKER: Asynchronous Transfer Mode Solution for Broad- band ISDN, Ellis Harwood Ltd. 1991. [2J A. ECKBERG, B. DASHla.nd R. ZOCOLILLA: "Controlling congestion in B-ISDN / ATM: Issues and Strategies, IEEE Communication Maga.- sine, Vol. 29, No. 9, pp. 64-70, September 1991. [3] J. RUI: Resource Allocation for Broedband Networks, IEEE Lournal oti Selected Area of Communications, "01.6, No.9., pp. 1598-1608, Decem- ber 1988. [4] J. HUI: Switching and Traffic Theory for Integrated Broadband Net- works, Kluwer Academic Publishers, 1990. [5] M. YASUHIRO: A Dimensioning Scheme in ATM networks, Net- works '92, pp. 171-176) May 1992. (6J A. HIRAMATSU: ATM Traffic Control Using Neural Networks, Neural Networks in Telecommunications, edited by B. YUHAS, N. ANSARl, Kluwer Academic }'ubhshers, 1994. [71 M. MINSKY AND S. PAPERT: Percepirons, MIT Press, Cambridge, 1969. - 145 - ON THE QUICKEST DETECTION OF CHANGES IN RANDOM FIELDS. Erik P. Hupkens* Abstract The quickest detection problem is defined for multi-parameter processes, in pariicular random fields. Basically, it is equivalent to the minimization of a cost function over all possible orderings in the field. This way it can be seen as a gen- eralization of the uni-directional quickest detection problem, where a test statistic has to be found that minimizes this cost function over one definite ordering. Al- though the problem of finding the optimal test statistic for any ordering is not easily solved, we focus on the comparison of different orderings in the field. 1 Introduction. In general, the theory of signal processing deals with signals that are measured in a definite order. In most cases, the evolution of the signal is coherent with the passing of time. Quickest detection of changes then consists of finding a test statistic that minimizes the differencebetween the time of occurrence of the change and the detection time (see, for example, Shiryaev [1]). In several applications the processing method of the data may not be unique. For example, in image processing we may scan the image in any pixel-by-pixel method, in line-by-line methods, or one of many more methods. Because of this difference with uni-directional processes, the notion of quickest detection appears to be obsolete. However, if the processing of a data-point requires some effort, we may still define a quickest detection problem by minimizing the total effort needed to detect a change. The effort may be regarded as the time needed to process the data-point, or the cost of performing the measurement to obtain this data-point. For example, consider the search for oil in a certain area. Where classical quickest detection problems are specified by minimizing the delay of detection, in these multi-path situations a more suitable definition is to minimize the number of data points needed to detect a change. The problem of the quickest detection of a local change in such a situation therefore not only consists of finding an optimal test statistic, it also requires an optimal sample path. Here an initial attempt is made to construct a basis for further research on this problem. 'University of Twente, Fac.Appl.Math., Systems & Control Group, P.O.Box 217, 7500 AE En- schede, The Netherlands, AiO - 147 - 2 Notations and assumptions. We assume that the total number of data points is finite, say M. All data points, which we also denote as sites in case the process is a field, are assumed to be scalar. Therefore, the measurement space is n = ]RM. A sample path is defined as an ordering of the data points in groups, and is denoted by -n . All data points are divided over the samples such that the samples are disjunct. The samples are numbered from 1 to N7r• The superscript 'Jr indicates that the number of samples depends on the particular sample path 'Jr. The class of sample paths, denoted by Il, consists of the individual sample paths 'Jrk, kEN. The number of data points in the kth sample in sample path tt is denoted by Pk' For a given sample path, after arriving at the kth sample, the past is defined as ail samplës with index up to le, and the future is defined as all samples with index larger than k. The notion of the present is used for the sample with index k. Obviously,the class of sample paths is determined by the process under consideration. For example, for anycausal process the past and the future are predetermined, so that the class of sample paths is severely'restricted. Since the processes under consideration may be dependent and time-varying, we include all information of the past in the measurements. After k samples have been processed, the measurement Y« is defined as an Mk-dimensional vector containing all data from the previous measurements, where Mk = I:~=lPk' The nominal density function of the process is written as fo(Y) and is defined as a mapping from n to R+, with in fü(y)dy =1 We assume that only one known change may occur, so that we are dealing with a simple hypothesis testing problem. We write fe(y) for the density function of the process under the alternative hypothesis. Obviously,the density functions at sample k may be obtained by integrating the original density functions over the remaining part of the measurement space. In the sequel we use the followingassumptions on the probability density functions. Assumption 1 All density functions are continuous on the measurement space. Assumption 2 The density function Jo is absolutely continuous with respect to fa. This second assumption implies that, if Pro[Al = 0, then also Prol Al = 0, for any event A. nw lAt us introduce a quantity that is commonly used in information theory. The Kullback: informaiiori is defined as the expectatron of the log-likelihood ratio, giv=n that the alternative hypothesis holds. We use the superscript 1[" to indicate that the Kullback information also depends on the sample path 'Jr that is being used. The followingdefinition also plays an important role in the followingsections. - 148 - Definition 1 (Detectability.) A change () is said to be detectable at the kth sample of the sample path rr if its Kullback information Kk(()) is positive. It is not difficult to see that the only way this may not hold is that both density functions are exactly the same on the particular subspace. Note that this is definitely not just a theoretical exception, since changes may not be detectable at all samples. For a given sample path te, we now want to construct a test that detects any change with the smallest number of data points used. After each sample the test may decide that a change is present, a change is absent or that another sample is taken. The procedure stops the first time any of the hypotheses is accepted. The class of these tests, also known as stopping times, is denoted by M(rr). The stopping time 7 takes the value of the sample number for which any of the hypotheses is first accepted. Since we have to come to a decision if there is no more data, the test is truncated at the N1rth sample, i.e. with probability 1, any of the hypotheses is accepted at the N71"th sample. The function that decides whether the null hypothesis or the alternative hypothesis should be accepted is said to be the decision function. The decision function may take a value 0 if the null hypothesis is accepted, and a value 1 if the alternative hypothesis is accepted. The tuple (7,8), where 7 is a stopping time and 8 is a decision function, is said to be a stopping rule. The class of stopping rules for a given sample path is denoted as R( rr ) . As a result: a tuple (k, q) is assigned to each trajectory in the measurement space ° fl, where k takes a value between 1 and N7r, and q is either or 1. A stopping rule may therefore be seen as a mapping from fl to {1, ... , N1r} X {O, I}. All trajectories that have equal stopping rules {k, I} are gathered in the rejection region nk: and similarly the acception regions rk consist of the trajectories with stopping rules {k: O}. Similarly, we define k fl(k) U n, ;=1 k rek) = Ur; i=1 As a result: only the trajectories in fl(N1r) give rise to an alarm. Therefore, the probability of false alarm may be written as cr = r JrI.(N") fo(y)dy The subclass in R(rr), consisting of the stopping rules with a false alarm probability equal to cr is denoted by Ra: (rr). Similarly, the probability of detection may be written as f3 = r JrI.(N") t» (y)dy Since we desire both to maximize the probability of detection and to minimize the number of data points needed to come to a decision, we have to construct a cost function that includes both quantities. - 149 - For a given sample path 7r E TI and a given stopping time T E M",(7r), the site number is defined as T SN;= LPk k=l The expectation of this variable under the alternative hypothesis is said to be the average site number, ASN; =EeSN; The cost function may now be taken as C(T, S; 7r) = ASN; + c(l - (3) where c, defined as the miss-cost, is a suitably chosen positive real l1Ul111.H:!l. The problem may now be stated as the minimization of C( T, Oi7r) over 7r E TIand (T, 0) E R",(7r). 3 Optimal stopping rule. Since any test depends on the sample path we are using, we start with the search for an optimal stopping rule, for a given sample path. We now want to find the stopping rule (T, 0) that minimizes the average site number for a fixed false alarm probability. (T7I", 5"") = {(T, 0) E R",(7r)IASJV:; :s: ASN;, VeT, b) E R",(7r)} For notational simplicity, we only write the superscript 7r in case it isn't clear from the context. It is not difficult to see that the event {T = t} is equivalent to the event {yt E Dt U T d. The average site number for these stopping times may now be calculated as N k ASNT = L Pre[T = kj LPk k=l i=l N LPkPre[T 2: k] k=l N LPk(l - Pre[T < kj) k=l From a result by Weiss [2]we may find that an optimal test is given by a generalized sequential probability ratio test, which is defined as . {1!IJ(Yk) ( )} T = mm k -f, ( ) (j. Ik, wk k 0 Yk where the thresholds Ik and Wk are not necessarily constant. The corresponding deci- sion function takes the value 1 if the upper threshold is crossed, and a value 0 if the lower threshold is crossed. In order to actually find this optimal GSPRT, we have to find the thresholds that minimize the cost function. Even if the density function of the likelihood ratio is known, this is an extremely complicated problem. - 150 - 4 Optimal sample path. For one-dimensional processes, the method of processing the data is rather straight- forward. The only variables that may infiuence the sample method are the lengths of the samples. For the particular problem where these lengths are all equal, Pelkowitz and Schwartz [3]found some results for the optimallength of these samples. In case the data does not contain such a natural ordering, not only the sample lengths but also the choice of data points in each sample is eligible for variation. Obviously, these choices may not be unconstrained. Any feasible sample path has to be constructed such that it is consistent with the natural definitions of past, present and future of the process. We assume that IT only contains feasible sample paths. In case the process is independent on its sites, the field is said to be a-directional. The class of feasible sample paths then consists of all permutations of the sites. As another example, consider the field described by Xk+l,l+l = hXk,l+l + VXk+l,1 + dXk,1 + bWk+l,I+l where {Wk,!} is a white Gaussian noise field. The past of the site (k, l) necessarily includes all sites (i,j) with i :S k and j :S l. Let us assume that we know (T7r, 8""), the optimal stopping rule in the class Ra: (7r), for each sample path 7r E IT. Then, for each 7r we may calculate the minimum of the cost function, say C.,.., and select the sample paths that corresponds to the smallest cost function. IT* = {7r E IT[V1f E IT,C" :S c;r} The class IT*contains alloptimal sample paths. As noted before, the optimal stopping rule is not likely to be found. Therefore, for practical purposes it may be more useful to restrict the class of stopping rules severely. For example, we may constrain the stopping rules to the class of SPRT's truncated at the N7r th sample, i.e, those likelihood ratio tests that have constant thresholds I and w, with the exception of the last sample. Obviously, this restricts the number of possible stopping rules considerably. However, the computation of the thresholds still forrns a major problem. Moreover, since the samples may all take different sizes, a SPRT may be far from optimal. 4.1 Constant sample sizes. The problem as stated here is in general far too complicated to be solved explicitly. The number of possible sample paths may be extremely large, and the comparison of these sample paths may be quite cumbersome. Therefore, we now consider a particular situation for which the class of sample paths is relatively small. For uni-directional processes, Pelkowitz and Schwartz [3]used samples of constant size for the quickest detection problem. They found some expressions for the optimal size these samples should have. Here we generalize this problem to the case where the process is not uni-directional. There are two major differenceswith the uni-directional problem. Firstly, the ordering of the sites may not be unique, so that a sample path is not unique, given the sample size. Secondly, for uni-directional processes the changes are generally supposed to 'start' at a certain time and remain present ever after. The - 151 - changes in our situation do not have this property. This, however, only has some consequences for the alternative hypothesis we are using. The first difference implies that for each sample size we obtain a class of sample paths instead of one unique sample path. Denote TIp as the class of sample paths that consists of all sample paths with constant sample size p, i.e. TIp = {1r E TIIPk = p, k = 1, ... ,N1r } Then the class of all sample paths that have constant sample sizes may be written as M TI* = U TIp p=l Now define C" = min C7r ?reil. as the minimal cost function over the class of sample paths with sample sizes p. The corresponding sample path is denoted as 1rp. Similarly, C* = min CP p is defined as the minimal cost function over the class of sample paths with constant sample sizes. The corresponding sample path and sample size are denoted as 1r* and v: respectively. 5 Further research. Here we basically introduced a new problem without actually starting to solve it. Since an optimal test is not likely to be found for a given sample path, we do not expect this to be the easiest way of obtaining some results on optimal sample paths. Therefore, we suggest some other approaches. Intuitively, it seems logical to choose that sample path for which the data points are ordered from large information content to low information content. However, this does not define a unique sample path. Moreover, the tools to prove this assertion are not readily availbale. Since in practice a sequential probability ratio test (constant thresholds) is generally used, we may try to find the optimal sample path for this class of tests. References [IJ A.N. SIDRYAEV, On optimum methods in quickest detection problems, Theory of Probability and Its Applications 8 (1963) 22-46. [2J L. WEISS, Testing one simple hypothesis against another, Annals of Mathematical Statistics 24 (1953) 273-281. [3J L. PELKOWITZ & S.C. SCHWARTZ, Asymptotically optimum sample size for quickest detection, IEEE Transactioris on Aerospace and Electronic Systems 23 (1987) 263-272. - 152 - THE ASYMPTOTIC NORMALITY OF CENTERED INFORMATION DIVERGENCE IN DENSITY ESTIMATION Alain Berlinet*, László Györfi** and Edward C. van der Meulen*** We show that the centered and normalized information divergence error of a consistent histogram-based density estimate is asymptotically normal with asymptotic variance less than or equal to 1 for all multivariate den- sities f which have a finite information divergence with respect to a given reference density g. Density estimation is typically an intermediate tool for making statistical inferences on the actual probability law, so a meaningful error criterion for esti- mation of an unknown probability density function should be related to an error criterion for distribution estimation. Such error criteria can be derived from dis- similarity measures of probability measures, like the f-divergences introduced by Csiszár [4]. The two most important f-divergences in mathematical statistics and information theory are the total variation and the information divergence. If I-l and v are probability measures on lItd (d ~ 1), then the total variation of I-l and v is defined by V(I-l, v) = sup II-l(A) - v(A)I, A where the supremum is taken over all Borel sets A. If I-l and v are probability measures on lItd, then the information divergence (relative entropy, Kullback-Leibler information number) of I-l and v is defined by ~ I-l(Aj) 1(1-l,v) = sup L._.,1-l(Aj)log-(k)' {Aj} j V J where the supremum is taken over all finite Borel measurable partitions {Aj} of lItd• If I-l and v are absolutely continuous with respect to a er-finite measure À, with densities f and g, respectively, then the information divergence of I-l and *Department of Mathematics, Université Montpellier I1, place Eugène Bataillon, 34095 Montpellier, France. **Department of Mathematics, Technical University of Budapest, Stoczek u.2, H-1521 Budapest, Hungary. ***Department of Mathematics, Katholieke Universiteit Leuven, Celestijnenlaan 200B, B-3001 Heverlee, Belgium. This work was partially supported by the scientific exchange program between the Royal Belgian Academy of Sciences and the Hungarian Academy of Sciences in the field of Mathe- matical Information Theory. - 153 - 1/ becomes the information divergence DU, g) of I and g, i.e., f(j.L,I/) = f I(x) log I«X)) >'(dx) = DU,g). J'R,d 9 X If Xl,'" ,Xn are independent identically distributed according to a prob- ability density function I and {I~} is a sequence of density estimators, then {I~} is said to be consistent in information divergence if limn_co DU, I~) = a.s. ° Barron, Györfi and van der Meulen [2] showed that if one imposes a cer- tain condition on the class of distributions from which we are estimating the unknown one, namely that there exists a known probability measure 1/ such that f(j.L, 1/) < 00, then one can construct a distribution estimator which is a.s. consistent in information divergence for all distributions in the class. As is well-known, the condition f(Il,I/) < 00 implies that Il is absolutely continuous with respect to 1/. The distribution estimate proposed in Barron, Györfi and van der Meulen [2] implies a consistent density estimate as follows: define a sequence of integers {mn}, ° < mn < n, n = 2,'" , and let hn = 1jmn' Choose a reference density 9 and let 1/ denote the probability measure with density g. Next, introduce partitions Pn = {An,l,An,2"" ,An,mn},n = 2,'" , of]Rd such that the An,i's are rectangles with I/(An,i) = hno For 1 an = --,--- nhn+1 consider the following density estimate introduced by Barron [1] : where Iln stands for the empirical measure for the sample Xl,'" ,Xn and An(x) = An,; if X E An,;. For d = 1 we can get this estimate if we transferm first the data into [0, IJ by the distribution function of g, then construct a histogram on [0, 1J by a uniform partition into mn intervals, take the mixture of this histogram and the uniform density with weights I-an and an, respectively, and finally transform back this mixture to the real line. The advantage of the histogram-based density estimate (1) is that it avoids the problem of empty rectangles, i.e., if I is theunderlying density then D(J, In) is well defined and is finite. If we were touse the standard histogram density estimate in = Iln(An(x))fhn instead of In then D(J, in) is infinite with positive probability. We refer to In also as the modified histogram density estimator. Now assume that D(J,g) < 00. Then the Corollary in Barron, Györfi and van der Meulen [2J states that if lim hn = 0, lim nhn = 00, (2) n-+oo n-+cc - 154 - then __oo DU, nlim in) = 0 a.s. and lim E(D(J, n--oo in» = o. Györfi and van der Meulen [6) showed how to get a density 9 for which D(J,g) < 00. For example, for d = 1, the density 9 which is constant if lxi < 1 and behaves like constantjx2 if lxi ~ 1 is good for this purpose if the differential entropy of i is finite and E(ln IXI)+ < 00. On the other hand, Györfi and van der Meulen [6) showed also that, given any sequence of density estimators {i~} there always exists an absolutely continuous probability measure IJ- with density i, where i has finite differential entropy and arbitrarily many derivatives such that the sequence {i,';} is not consistent in information divergence (see also Györfi, Páli and van der Meulen [5)). While the result of Barron, Györfi and van der Meulen [2] provides sufficient conditions for the consistency of a histogram-based density estimator in in information divergence - and in expected information divergence - we prove in this paper a limit law for the centered information divergence D(J, in) - ED(J, in). The information divergence DU, in) can be written as the sum of two terms, D(J,in) - ED(J,Jn) and ED(J,in), respectively. The first term D(J,Jn) - ED(J, in) is the random part and represents the global error minus the expected global error. The second term, ED(J, in), is the nonrandom part. For the particular histogram density estimator in considered here, it is shown in Barron, Györfi and van der Meulen [2) that E(D(J, in») ::; mn + D(J, Ein). n For d = 1, Barron and Sheu [3] proved under some strict smoothness conditions on i (J defined on a bounded interval and having finite Fisher information) that D(J, Ein) < O(l/m!), so it follows in this case that E(D(J,in)) ::; mn + O(l/m~). n Therefore the good choice for mn is in this case nl/3 and then In this paper we show that, without any condition on i, the centered informa- tion divergence D(J, in) - ED(J, in) is asymptotically normal with guaranteed rate. For the particular choice mn = nl /3 the rate of convergence of the random - 155 - part is of order n-5/6, which is much faster than the rate of the non-random part. This result shows that, since D(f, fn) -ED(f, fn) is small with respect to ED(f, fn), and D(f, fn)-ED(f, fn) has nice asymptotic behavior, all the infor- mation about the asymptotic behavior of D(f, fn) is contained in the expected global error ED(f, fn)' Theorem. Let Bp. be the support set of p: Let fn be given by (1) with hn satisfying (2)". If D(f,g) < 00, then as n _ 00, where u2 = v(Sp.) > O. If

0 where the right hand side is density-free. In the proof of the Theorem, which is not given here, it is shown that D(f, fn) -ED(f, fn) has the same asymptotic distribution as I~ -E(I~), where I~ is of the type of a reversed order x2-divergence. Heuristically, the result of the Theorem can be explained as follows. Invoking the limit theory of chi-square statistics, it can be argued that under suitable technical conditions, as n _ 00 and mn remains fixed, the statistic will have as asymptotic distribution the distribution of a chi-square random variable Y with mn - 1 degrees of freedom. Now, letting mn = l/hn tend to infinitv, we have that Y~-m n fine = - 2 Y -l/hn) V sr -.Iv(O,l). So intuitively it should be clear that, after it has been properly centered and normalized, the random variable - 156 - wiil asymptotically have a standard normal distribution as n --t 00 and mn --t 00 under suitable technical conditions. Our Theorem makes these conditions and this statement precise. REFERENCES [1] A.R. BARRON, The convergence in information of probability density estimators. Presented at IEEE Int. Symp. Inform. Theory, Kobe, Japan, June 19-24, 1988. [2] A.R. BARRON, L. GYORFI & E.C. VAN DER MEULEN, Distribution estimates consistent in total variation and in two types of information divergence. IEEE Trans. Inform. Theory, 38, pp. 1437-1454, 1992. [3] A.R. BARRON & C.-H. SHEU, Approximation of density functions by sequences of exponential families. Ann. Statist., 19, pp. 1347-1369, 1991. [4] 1. CSISZAR, Information-type measures of divergence of probability dis- tributions and indirect observations. Studia Sci. Math. Hung., 2, pp. 299-318, 1967. [5] L. GYORFI,1. PALl & E.C. VAN DER MEULEN, There is no universal source code for infinite alphabet. IEEE Trans. Inform. Theory, 40, pp. 267-271, 1994. [6] L. GYORFI & E.C. VAN DER MEULEN, There is no density estimate consistent in information divergence for all densities. Transactions of the Twelfth Prague Conference on Information Theory, Statistical Decision Functions and Random Processes, pp. 88-90, 1994. - 157 - ACHIEVEMENTS AND CHALLENGES IN VISUAL SEARCH OF VIDEO** A/an Hanjalic', Regina/d L. Lagendijk' , Jan Biemond Abstract This paper reflects on the state-of-the-art and attempts to point out some challenges for further research towards more efficient methods for searching and accessing of stored visual information. The emphasis will be put on investigating the applicability of current approaches for search through stored video data in case of digital video libraries, and especially the so-called home - digital libraries. The development of such interactive home environments is continuously growing and becoming a very important application area with mLlny new requirements, especially concerning the available storage space and improved user- interaction. 1 Introduction Consumers will not have to wait for a long time until digital libraries become widely spread and the most common way of storing and using large amounts of textual, audio and visual data. Development of such storage systems is primarily spurred forward by an unceased and very intensive improvements in digital storage media technology, with continuously increasing Storage capacity / Dimensions ratio. The main advantage of this way of data storing, i.e. after their transfer in digital form, is, naturally, the preservation of the quality of stored information. But also the almost unlimited possibility to manipulate and browse through data by using comfortable digital user-interfaces (e.g. PC) is to be taken into consideration. Vast number of users is expected to be connected world-wide via electronic networks to a variety of such large storage systems. At the same time, many users are expected to build up their own "small" digital libraries at home, containing a couple of tens or hundreds of GBytes of multimedia data. In fact, the connection to big public digital libraries strongly suggests that users have some sort of local storage system at home, where they can store the data they get from the public library. Several important reasons can be given for the necessity of the local storage system, such as avoiding the retransmission of data and using the "off-peak"-times in the network for performing the transmission - both leading to reduction of transmission costs. The development of digital libraries of any kind need not only to consider the improvements of actual storage units (disc, tape). Such large amounts of data are only usable if there are efficient subsystems for tinding and accessing the desired parts of stored information. Searching through multimedia data means searching through visual, textual and audio data separately, as well as through different combinations of these data. It should not be difficult to realize, that e.g. one particular camera-drive in the selected movie can be found on much more robust, reliable way, by tracing both the visual and corresponding audio information, i.e, by performing both • Department of Electrical Engineering, Delft University of Technology, Information Theory Group, P.O. Box 5031, 2600 GA Delft, The Netherlands, e-mail: {alan.inaldj tèit.et.tudelft.nl "This work was supported in part by the EU ACTS program under contract AC018: SMASH (Storage for Multimedia Applications Systems in the Home). Relevant WEB-Page: http://www-it.et.tudelft.nlJpda/smash - 159 - visual and audio search. But also by such combined search procedures, efficient algorithms for tracing of any component of the multimedia information separately, must be available, in order to better "combine their forces". This paper considers only the visual aspect of the whole search strategy, i.e. efficient tracing of stored visual information, and in particular of video data stored in a compressedform. In section 2 the general scheme of search through stored video-data is presented, containing "pre-search-" as well as actual search- and retrieval procedures. Section 3 gives the scope of present development and some problems yet to be solved concerning the first pre-search- procedure, called video-parsing. Section 4 first gives current general approach for representing detected elementary video-parts (detection done by video-parsing) and some of its drawbacks, especially related to the usage of home-digital libraries. A novel idea for optimizing the key- frame extraction by taking into account user's and system specifications is presented in the second part of this section. 2 Searching through digital video libraries In order to enable user to search for, select and retrieve the desired video-part, several activities have to be carried out as a preparation for this user-interaction. The main goal of these procedures is to provide the user an overviewover the whole stored video-information. This overview should contain some representative information (key-information) about all parts of the stored video. It is also possible to "user-friendly" organize (cluster) this representative information, before presenting it to user. The main intention is that users can browse through and select any of these characteristic data, which leads to retrieval of the corresponding video-part, represented through this data. The following pre-search procedures can be distinguished: • Partitioning of video-streams (also called video-parsing, shot-change detection), i.e. defining smallest retrievable video-parts • Representing each elementary video-part through appropriate key-information • Postprocessing (Clustering) of extracted key-information for more effective user-interaction Figure I shows pre-search-, search- and retrieval procedures on a time-scale, related to the video- stream coming into the storage system. For each of mentioned pre-search-procedures, a number of proposals for improvement of their efficiency and reliability can be found in the recent literature (e.g. [I -12]). "Rml-Time" - Procedures ''N