~ --- ' Twenty-firs~~ Info Wassenaar, The Netherlands May 25 & 26, 2000 Proceedings of the 21 st Symposium on Information Theory in the Benelux . May 25-26, 2000 Wassenaar The Netherlands Edited by J. Biemond Published by: Werkgemeenschap voor Informatie- en Communicatietheorie, Enschede, The Netherlands, 2000 Previous Symposia: 1. 1980 Zoetermeer, The Netherlands Dept. of Electrical 2. 1981 Zoetermeer, The Netherlands Engineering, Technical 3. 1982 Zoetermeer, The Netherlands University, Delft 4. 1983 Haasrode, Belgium ISBN 90-334-0690-X 5. 1984 Aalten, The Netherlands ISBN 90-71048-01-2 6. 1985 Mierlo, The Netherlands ISBN 90-71048-02-0 7. 1986 Noordwijkerhout, The Netherlands ISBN 90-6275-272-1 8. 1987 Deventer, The Netherlands ISBN 90-71048-03-9 9. 1988 Mierlo, The Netherlands ISBN 90-71048-04-7 10. 1989 Houthalen, Belgium ISBN 90-71048-05-5 11. 1990 Noordwijkerhout, The Netherlands ISBN 90-71048-06-3 12. 1991 Veldhoven, The Netherlands ISBN 90-71048-07-1 13. 1992 Enschede, The Netherlands ISBN 90-71048-08-X 14. 1993 Veldhoven, The Netherlands ISBN 90-71048-09-8 15. 1994 Louvain-la-Neuve, Belgium ISBN 90-71048-10-1 16. 1995 Nieuwerkerk a/ d/ Ijssel, The Netherlands ISBN 90-71048-11-X 17. 1996 Enschede, The Netherlands ISBN 90-365-0812-6 18. 1997 Veldhoven, The Netherlands ISBN 90-71048-12-8 19. 1998 Veldhoven, The Netherlands ISBN 90-71048-13-6 20. 1999 Haasrode, Belgium ISBN 90-71048-14-4 CIP-gegevens Koninklijke Bibliotheek, Den Haag (NL) Proceedings Proceedings of the zr' Symposium on Information Theory in the Benelux/ ed. J. Biemond, Delft. Werkgemeenschap voor Informatie- en Communicatietheorie ISBN: ISBN 90-71048-15-2 ii iv The Twenty-first Symposium on Information Theory in the Benelux has been organized by the Information and Communication Theory Group Department of Mediamatics Faculty of Information Technology and Systems Delft University of Technology, The Netherlands on behalf of the Werkgemeenschap voor Informatie- en Communicatietheorie and the IEEE Benelux Information Theory Chapter and in co-operation with the IEEE Benelux Chapters on Signal Processing, Consumer Electronics, and Vehicular Technology and Communication. Program Committee: Prof.dr.ir. J. Biemond Dr. A. Hanjalic Dr. E.A. Hendriks Dr.ir. R. Heusdens Prof.dr.ir. R.L. Lagendijk Dr.ir. J.CA. van der Lubbe Dr. ir. M.T.J. Reinders Prof. dr. J. Simonis, Dr.ir. J.H. Weber The organizing committee gratefully acknowledges the financial support of the Gauss Foundation. üi PREFACE Since 1980, the Werkgemeenschap voor Informatie- en Communicatietheorie (WIC) has organized Annual Symposia on Information Theory in the Benelux. The location of the symposium usually rotates among different sites in the Benelux. This year the symposium is held in Wassenaar, the Netherlands. This 21st Symposium on Information Theory has been organized by the Information and Communication Theory Group of the Department of Mediamatics, Delft University of Technology. Nowadays much research in the field of Information and Communication Theory is related to Multimedia Communications. Therefore we consider it a privilege that the newly appointed professors G. de Haan (TU-Eindhoven) and RL. Lagendijk (TU-Delft) have accepted our invitation to be guest lecturers at our symposium, where they will give presentations on respectively "Video Processing for Multimedia Systems" and "Ubiquitous Communications". These proceedings contain the papers that have been accepted for presentation at the 21st symposium. We are grateful to the authors for submitting their latest results. The Program Committee consisted of J. Biemond, A. Hanjalic, E.A. Hendriks, R Heusdens, RL. Lagendijk, J.CA. van der Lubbe, M.T.J. Reinders, J. Simonis and j.H. Weber. The eo-sponsorship of the IEEE Benelux Information Theory Chapter is gratefully acknowledged as well as the financial support of the Gauss Foundation for the best young researcher presentation award. Finally, I would like to express my thanks and appreciation to Ben van den Boom and Alan Hanjalic for their technical support, and to Mrs. Annett Bosch, who skillfully assisted in the organization of the symposium and in putting these proceedings together. Jan Biemond, Editor Delft, April 2000 v T ABLE OF CONTENTS Session 1: Coding Single-trial generalized minimum distance decoding. 1 [os H. Weber, Khaled A.S. Abdel-Ghaffar Implementation issues of 3rd generation mobile communication turbo 9 decoding. . John Dielissen. [os Huisken Box-functions and mismatched log-likelihood ratios. 17 A. (Guido) J.E.M. [anssen, Arie G.c. Koppelaar Error correction for combinationallogic circuits. 25 Geeke Muurling, Richard P. Kleihorst. N.F. Benschop. René van der Vleuten, Jurriaan Simonis Session 2: Invited lecture The TU Delft research program "Ubiquitous Communications". 33 R. (Inaid) L. Lagendijk Session 3: (poster session) Audio-visual communications Latency layered rendering for mobile augmented reality. 45 Wouter Pasman. Frederik W. Jansen Independence of source and channel coding for progressive image and 55 video data in mobile communications. Arjen van der Schaaf, Reginald L. Lagendijk LART: Design and implementation of an experimental wireless platform. 63 [an-Derk Bakker, Frits C. Schoute Human-computer interaction using real-time 3D hand tracking. 71 Stelian Pers a, Pieter Jonker Rate-distortion optimal exponential modeling of audio and speech 77 signals. Koen Vos, Richard Heusdens Low-complexity scalable image compression using the DCT. 85 René J. van der Vleuten, Richard P. Kleihorst. Christian Hentschel Volumetrie data compression based on cube-splitting. 93 Peter Schelkens, [oeri Barbarien, Jan Comelis vii Session 4: Cryptography and data protection issues Maximum likelihood detection of multiplicative watermarks. 101 Ton Kalker, Job Oostveen, Jean-Paul Linnartz On one-pass combined encryption and authentication. 109 René Struik Power analysis: methods and countermeasures. 115 Johan Borst, Bart Preneel, Joos Vandewalle • Boosting the E-security of GSM. 121 Johan van Tilburg • Efficient run permuted sequence generation. 129 Martin R. Meijer, Cees J.A. Jansen Optimistic non-repudiable information exchange. 139 Steve Kremer, Olivier Markowitch Session 5: Communication Codes for frequency hopping communication. 147 A.J. Han Vinck A generalization of a coherence multiplex system. 155 Geert Heideman BER results for a narrowband multiuser receiver based on successive 157 substraction for M-PSK modulated signals. Gerard J.M. [anssen, S.Ben Slimane Session 6: Image and video coding Swimming pool memories for image storage. 165 Richard P. Kleihorst, René J. van der Vleuten, Melina Apostolidou Towards real-time MPEG-4 segmentation: a fast implementation of 173 region-merging. Dirk Farin, Peter H.N. de With Improvement and implementation of real-time video compression 181 method for CSCL software. Axel Hunger, Stefan Werner, llham Akbarov viii Session 7: Invited Lecture Video processing for multimedia systems. 189 Gerard de Haan Session 8: (poster session) Signal processing, pattern recognition • Information measures for 3-D scene modeling. 199 Peter Vanroose Eigen finder: an extended approach to unify low-level feature extraction. 205 Bang Jun Lei, Emile A. Hendriks Information extraction for modeling gene expressions. 215 Eugène P. van Someren, Lodewijk F.A. Wessels, Marcel J.T.Reinders Adaptive mixtures for object tracking. 223 Adrei Rares, Marcel J.T. Reinders The distribution of entropy estimators based on maximum mean log- 231 likelihood. Rudy Moddemeijer Complexity-constrained tree-structured vector quantizers. 239 Jean Cardinal The complexity of minimum redundancy coding. 247 Tjalling Tjalkens Session 9: Information Theory An informationtheoretical approach to information embedding. 255 Frans M.J.Willerns Information theoretic aspects in the design of autonomous robots. 261 Essam Badreddin Minimizing the uncertainty product with composite signals. 269 Marcel G. de Bruin, Cees Kamminga Information transmission of slowly varying input signals over discrete 277 memoryless stationary channels. Mark S. Pinsker, Vyacheslav V. Prelov, Edward C. van der Meulen An upper bound on the expected number of computations for maximum 285 likelihood decoding of low-density codes. Vladimir B. Balakirsky ix LIST OF AUTHORS PAGE Abdel-Ghaffar, K.AS. 1 Akbarov, I. 181 Apostolidou, M. 165 Badreddin, E. 261 Bakker, J.-D. 63 Balakirsky, V.B. 285 Barbarien, J. 93 Benschop, N.F. 25 Borst, J. 115 Bruin, M.G. de 269 Cardinal, J. 239 Cornelis, J. 93 Dielissen, J. 9 Farin, D. 173 Haan,G. de 189 Heideman, G. 155 Hendriks, E.A 205 Hentschel, C 85 Heusdens, R 77 Huisken, J. 9 Hunger, A 181 Jansen, CJ.A 129 Jansen, F.W. 45 Janssen, AJ.E.M. 17 [anssen, G.J.M. 157 Jonker, P. 71 Kalker, T. 101 Kamminga, C 269 Kleihorst, RP. 25,85,165 Koppelaar, AG.C 17 Kremer, S. 139 Lagendijk, RL. 33,55 Lei, B.J. 205 Linnartz, J.-P. 101 Markowitch, O. 139 Meijer, M.R 129 Meulen, E.C van der 277 Moddemeijer, R. 231 Muurling, G. 25 Oostveen, J. 101 Pasman, W. 45 Persa, s. 71 Pinsker, M.S. 277 Prelov, V.V. 277 Preneel, B. 115 x PAGE Rares, A. 223 Reinders, M.J.T. 215,223 Schaaf, A. van der 55 Schelkens, P. 93 Schoute, F.e. 63 Simonis, J. 25 Slimane, S.B. 157 Someren, E.P. van 215 Struik, R. 109 Tilburg, J. van 121 Tjalkens, Tj. 247 Vandewalle, J. 115 Vanroose, P. 199 Vinck, A.J.H. 147 Vleuten, R.J. van der 25,85,165 Vos, K. 77 Weber,J.H. 1 Wemer, S. 181 Wessels, L.F.A. 215 Willems, F.M.J. 255 With, P.H.N. de 173 xi Single- Trial Generalized Minimum Distance 'Decoding Jos H. Weber Khaled A.S. Abdel-Ghaffar* Delft University of Technology, Fac. ITS University of California, Dept. ECE POB 5031, 2600 GA Delft, The Netherlands Davis, CA 95616, USA J .H.Weber@ITS.TUDelft.NL ghaffar@ece.ucdavis.edu 21sT SYMPOSIUM ON INFORMATION THEORY IN THE BENELUX, WASSENAAR, THE NETHERLANDS, MAY 25-26, 2000 A framework is presented for generalized minimum distance (GMD) decoding with a single decoding trial. In GMD decoding, symbols received from the channel may be erased before being fed into an algebraic error-erasure decoder for error correction. The decision whether or not to erase a symbol is taken by an erasure choosing algorithm, which takes into account reliability information from the channel. Fixed, threshold, and optimized erasing strategies are considered. The realizable distance for such GMD decoders is studied. A particular class of reliability sets is emphasized, which allows a link to the field of concatenated coding. Both known and new results appear from the unified approach presented in this paper. I Introduction Generalized Minimum Distance (GMD) decoding, as introduced by Forney [2], per- mits flexible use of reliability information in algebraic decoding algorithms for error correction. In subsequent trials, an increasing number of the most unreliable symbols in the received sequence is erased, and the resulting sequence is fed into an algebraic error-erasure decoder, until the decoding result and the received sequence satisfy a certain distance criterion. In Forney's original algorithm, the unique codeword (if one r exists) satisfying the distance criterion is found in at most d/21 trials, where d is the Hamming distance of the code. r Kovalev [3) considered GMD decoding with a limited (l < d/21) maximum number of trials. This restrietion may decrease the error correction capabilities compared to Forney's algorithm. Still, it is worthwhile investigating limited-trial GMD decoding, since it reduces the delay (in case of a serial implementation) or the number of required error-erasure decoders (in case of a parallel implementation), which may more than compensate for the (slightly) worse performance. Here, we will focus on the case of having only one decoding trial (1 = 1). "This author was supported by NSF Grant CCR-96-12354. 1 We assume the following situation. A codeword c = (Cl, ... , en) from a q-ary code C of length n and Hamming distance d is transmitted over a q-ary channel. The output of the channel consists of the received q-ary vector r = (r1, ... , rn) and an associated reliability vector a = (al, ... , an), where all ai are from a set R which is a subset of the real interval [0,1] containing {I}: {l} C R ç [0,1]. (1) Let R be the closure oî R: (i.e., R = b E [0,1] : ve » 0 3v E R such that IV-1'1 < E}), and let Ji, be the infimum of R: Ji, = infR = minR. (2) The higher ai, the more reliable is the symbol rio Throughout the rest of the paper we will assume without loss of generality that the ordering of the received symbols is such that ai :S ai+1 for i = 1, ... n - l. The generalized distance between the received word r with reliability vector a and a q-ary vector z = (Zl, ... , zn) is defined as dG(z, r, a) = L (1 - ai)/2 + L (1 + ai)/2. (3) Note that for R = {I}, i.e., ai = 1 for all i, the generalized distance dc(z, r, a) reduces to the Hamming distance dH(z, r) between zand r. In the GMD decoder, some of the most unreliable received symbols, i.e., ri with lowest ai, are erased. The erasing patterns are chosen according to an erasure choosing algorithm A. Such an algorithm generates upon receipt of a reliability vector a a number j such that 0 :S j :S n. Next, the first j symbols in r are erased resulting in a vector i, which is subsequently fed into an error-erasure decoding algorithm for the code C with the property that it returns the original codeword whenever the numbers of erasures s and of errors t are such that 2t + s < d. For a code C of Hamming distance d and length n, a reliability vector a of length n, and a number of erasures j, let dr(d,a,j) be defined as the largest real number d, for which the following assertion holds: for any transmitted codeword c and any received vector r of length n with reliability vector a such that dG(c, r, a) < dr/2, the original codeword c is delivered by the single-trial GMD decoder erasing the j most unreliable symbols. For a code C of Hamming distance d and length n, a reliability set R, and an erasing algorithm A, let the realizable distance of the associated single-trial GMD decoder be defined as the infimum of dr(d, a, j) over all a E Rn, where j is the output of algorithm A with input a. It can be shown that the realizable distance depends on C only by its Hamming distance d for the erasing strategies considered in this paper. The realizable distance is an important figure of merit for a GMD decoder. Forney's r original GMD decoder [2] (with l = d/2l) has a realizable distance equal to (at least) 2 d, i.e., the full Hamming distance d is exploited. For R: = [0,1], Kovalev [3J investigated the loss of distance compared to Forney's algorithm in case the maximum number of decoding trials is restricted (I < Id/2l). Here, we extend Kovalev's results to the case that R is a subset of [0, 1], for single-trial (I = 1) decoding. In particular, we consider the sets of reliability values lm/2J Rm = U {I - 2i/m} (4) i=O with m = 1,2,3,.... This collection of reliability sets links results on the number of correctable errors in concatenated coding schemes and the realizable distance by a GMD decoder [1], [5J. Several classes of erasing algorithms have been proposed in literature [3], [6J. Here, three different classes of erasing algorithms will be considered: fixed erasing (FE: 'the number of symbols to be erased is independent of a'), threshold erasing (TE: 'all symbols ri with reliability ai below a certain threshold are erased'), and optimized erasing (DE: 'the number of symbols to be erased is optimized based on the received a such that the realizable distance is maximized'). In Sections 11, Ill, and IV, we consider the realizable distance for fixed, threshold, and optimized erasing strategies, respectively. Finally, the results are discussed in Section V. 11 Fixed Erasing For single-trial GMD decoding with fixed erasing, the number j of symbols to be erased is fixed and does not depend on a. For given d, R, and i. the realizable distance of such a G MD decoder is denoted by (5) We have the following explicit expression for dFE (d, R, j). Theorem 1 For any d ~ I, reliability set n with infimum J1, and j such that ° :::; j :::; d - 1 and j ¥= d(2), it holds that dFE(d, R,j) = d + 1- J1j + (J1- 1)max{j, (d + 1 - j)/2}. (6) Note that it does not make sense to choose j ~ dor j == d(2). Maximizing (6) over all relevant values leads to the maximum realizable distance by a single-trial GMD decoder with fixed erasing, denoted by dFE(d, R) = j:0'5cj 1/3 and d == 0(2), di-E(d, [J-L,1]) = (1 + J-L)(d + 1)/2 ij p > (d - 3)/(3(d + 1)) and d == 1(2), (15) { 2d/3 otherwise. Corollary 4 For any d, m ~ 1, it holds that 2 - 2Lm/2j/m ij d = 1, di-E(d, Rm) = dr2m/31/m ij d == 0(2), (16) { (d - 3)f2m/31/m + 2 + 2/m ijd==1(2),d~3. The normalized result from Corollary 3 for J-L= 0 is included in Table I, for com- parison to other single-trial erasing strategies in case R = [0,1]. The normalized result from Corollary 4 for d approaching infinity is included in Table II, for comparison to other single-trial erasing strategies in case R = Rm. IV Opt.imized Erasing For single-trial GMD decoding with optimized erasing, the number j of symbols to be erased is chosen based on the received reliability vector a, such that the realizable distance by the decoder is maximum. For given Hamming distance d and reliability set R, the realizable distance of such a G MD decoder is denoted by dClE(d, R) = min.d max dr(d, a, j). (17) aEn J:OSJ 0 cosh( a arccosh(x)), x 2: 1. (6) The function Pw(w) is the probability density function ofw = logcosh(v), where v is a Gaussian distributed random variable with mean 0 and variance ~0"2. It can be easily verified that (7) Hence, when a = 1 so that fc'(x) = x, we obtain that pz(z) = eZpz( -z), whence, using (4), the box-function exhibits the LLR property in that case. It should be noted that pz(z) has a logarithmic singularity at z = O. We thank our colleague William Rey, who showed by simulations that due to this singularity, simulation results are prone to be unreliable, especially for z close to zero. Therefore, it is necessary to subject pz(z) to a mathematical analysis so as to obtain more insight into the behaviour of pz(z), especially at z = O. Such an analysis is carried out in the next section. 4 MISMATCHED INPUTS In the previous section we showed that the box-function has the LLR property when a = 1. However, in practice ffs and No are not perfectly known at the decoder. This results in having Le 1= 4ffs / No so that a 1= 1. We show the effect 20 of a mismatch of the inputs on the output of the decoder. Let us define L(z), . pz(z) L(z) = log -(-)' (8) pz -z It can be shown that for a 2: 1 and Y 2: 1 (with fa; given in (6) above) : (9) while for Cl: < 1 the inequality signs should be reversed. Applying this inequality with fa;(xy) = fa;(et) = fa;(et-ze Z results for a 2: 1 and z > 0 in the following ) bounds for L(z) : (10) For Cl: < 1 the inequality signs should be reversed. In accordance with the result given in the previous section, both upper and lower bounds coincide for Cl: = 1 so that then L(z) = z. Furthermore, it should be noted that the above inequality for L(z) is sharp in the sense that L(z) ---+ Cl:Z when Cl: is kept fixed and a ---+ oo while L(z) ---+ 10gfa;(eZ ) when a is kept fixed and a..(. O. Experiments show that for a not too small and fixed a, the bound Cl:Z is close to being attained. The derived bounds of L(z) are illustrated for Cl: = 2 and for Cl: = 1/2 in Figure 1. The bounds in Figure 1 show that for Cl: > 1, the mismatched output z of the box-function is smaller than the (true) LLR. The case Cl: > 1 means that the inputs of the box-function are not matched to the signal-to-noise ratio on the transmission channel and that the true signal-to-noise ratio is higher than assumed. This underestimation leads to outputs of the box-function that are also smaller than the corresponding LLR's (even the lower bound on L(z) is larger than the mismatched output). Similarly, for Cl: < 1 the outputs of the box-function are larger than the corresponding LLR's. Both the upper bound for Cl: 2: 1 and the lower bound for Cl: < 1 of L(z) exhibit a linear behaviour for small z and for large z. This linear behaviour of these bounds can be made explicit by applying an upper bound on fa;(Y) for Cl: 2: 1 and Y 2: 1 : (11) For Cl: < 1 the inequality signs should be reversed and then we obtain a lower 21 N :::r Figure 1: Bounds on the LLR of box-function with mismatched inputs. bound on !",(y). When we apply these bounds with y = e and a 2 1 we obtain Z (12) where the inequality signs should be reversed for a < 1. It can be shown that for fixed a it holds that lim L(z) = a2, lim (L(z) - az) = (a - 1) log 2, (13) z.j.O z z~oo Hence, for large z the upper bound and the lower bound on L(z) have the same slope a and the bounds have a vertical offset of (a - 1) log 2. CONCLUSIONS The box-function is a non-trivial example of an input-output relation of an APP decoder. Provided that the inputs are properly scaled (a = 1), the box- function exhibits the LLR property. Incorrectly scaled inputs lead to mismatched outputs of the box-function, i.e. the outputs are no LLR's anymore. We have given upper and lower bounds on the LLR at the output of the box-function as a function of mismatch. An underestimation of the signal-to-noise ratio (a > 1) 22 leads to pessimistic outputs of the box-function and overestimation of the signal- to-noise ratio (a < 1) leads to optimistic outputs of the box-function. For not too small a and fixed a, the bound az is tight. APPENDIX A: SYMMETRY OF DECODER OUTPUTS We want to prove that pz(zlb = 1) = pz( -zlb = 0) under the conditioris that: • The code is linear. • The noise has a symmetrical probability density function (i.e. Pn(n) Pn (-n)) and is independently distributed. • The information source is i.i.d. with P(b = 0) = P(b = 1) = 1/2. • The decoder is an APP decoder or a rnax-log APP decoder. • The channel has additive noise. Let C be a linear code over GF(2) = {-I, +1} with rate KIN. We consider the encoding of a binary information word Qo = (bo, ... , bi = 0, ... , bK-l). The corresponding code word is ~o = (co, ... ,CN-I), where Cj E {-I, +1}. The code word is transmitted over a channel with additive noise and the added noise is represented by 11- The received word is ï: = ~o + Tl. When we take another information word QI that differs from Qo only in the i-th position, i.e. h = (bo,.··, bi = 1, ... , bK-l), the corresponding code word is ~I = ~o 0 fLi, where 0 is the pointwise product and fLi is the i-th row of the generator matrix of C. Let Ci,o be the set of all code words of C that correspond to information words with bi = 0 and let Ci,1 be the set of all code words of C that correspond to information words with bi = 1. Then ~o E Ci,o and ~I E Ci,l' Moreover, Ci,] = {~0 fLi I~E Ci,o} and C = Ci,o U Ci,I, where C is the set of all code words of C. The code word ~] is sent through the channel, such that the received word is f_ = ~I + il, where we take il = Tl 0 flï Note that due to the symmetrical probability density function of the noise we have that PI!(Tl) = PI!(il). The received words r. and i. have the following relationship i. = t: 8 flï The output z of the APP decoder for information bit bi in case of a received word ï: is given by : I:cECi 0 P(~Ir.) z = log ='-'-----'-' '----c:-:-;--:- (14) I:cECi I P(~Ir.) Using Bayes' rule we have (15) 23 Due to the uniform source we have P(ç;) = 2-K for all ç; E C, and when we substitute (15) in the expression for the output z we obtain LeEC, 0 P». (z; - c) z = Iog ---,-=--.:..c' ::'__;=-:-_-..,- (16) L_çECi,1 p!! (r_ - c) Similarly, when we receive the vector i. we obtain an output z given by : z- = Iog LeECi -, 0 P». (f__ - c) . (17) LeECi I Pn (r_ - c) - , - Since p!!(f_ - c) = p!!(r_ 0 fli - c) is equal to p!!(r_ - ç 0 flJ (this is because Pu. (Tl) = p!! (Tl 0 ç;), for all ç E C and in particular for ç = fl), we get - 1 LeECi 1 p!!(r_ - c) z = og , = -zo (18) p!! (r - c) L_çECi,Q By replacing L_çECi,Qby maxfECi,Qand LfEci" by maxfECi,1 one can prove in a similar way that in case of a rnax-log APP decoder the decoder outputs for ï: and f_ have opposite sign. Since the derivation holds for every information word, every bit position and for every noise vector, it is proved that pz(zlb = 1) = pz( -zlb = 0) . Acknowledgement The authors want to thank L.M.G.M. Tolhuizen for helping with this proof. REFERENCES [1] C. Berrou, A. Glavieux, and P. Thitimajshima. Near Shannon limit error- correcting coding and decoding: Turbo codes. In Proc. of IEEE Int. Conf. on Communications, pages 1064-1070, Geneva, Switzerland, 1993. [2] L. Papke, P. Robertson, and E. Villebrun. Improved Decoding with the SOYA in a Parallel Concatenated (Turbo-code) Scheme. In Proc. of IEEE Int. Conf. on Communications, pages 102-106, 1996. [3] J. Hagenauer, E. Offer, and L. Papke. Iterative Decoding of Binary Block and Convolutional Codes. IEEE Trans. on Information Theory, 42:429-445, March 1996. [4] J. Hagenauer, E. Offer, C. Méasson, and M. Mörz. Decoding and Equalization with Analog Non-linear Networks. European Trans. on Telecommuncation, 10(6):659-680, nov-dec 1999. 24 Error-Correction for Combinational Logic Circuits G. Muurling", R.P. Kleihorstl, N.F. Benschop", R.J. van der Vleuten tand J. Simonis* Abstract In this paper we propose a method for error-correction in IC imple- mentations of Boolean functions. The method corrects both manufactur- ing "hard" errors and temporary "soft" errors during circuit operation. The errors in the logic are detected and corrected by additional logic im- plemented on each IC. The method proposed can correct output errors. Experimental results prove the feasibility of our method. We have a theo- retical upperbound of a factor of 2n + 1 in complexity increase of the total circuit, for this method for correction of Tl errors. 1 Introduction During the manufacturing of integrated circuits (ICs), defects cause the logic to be incorrect. This reduces the ratio of the correct versus the total number of ICs, also known as yield. By IC testing such faulty devices are detected, and rejected. Especially with the current growth of IC area, the yield is dramatically dropping, increasing the prices of ICs that pass the tests. The use of error-correction techniques might increase the manufacturing yield. Pioneered by Von Neumarm [IJ in the fifties, error-correction of Boolean logic circuits has regained interest [2, 3J. In several, more recent, articles the problems with soft and hard errors are mentioned [4, 5, 6, 7J. IBM has also worked in this field and used mostly repetition codes [8J . In this paper we propose a method that uses error-correction techniques from channel coding. Our main purpose is to design a method that does not affect the logic of the original circuit. We also aim for a system that is easy to implement. In Section 2 we describe the method: error-correction in Boolean logic. In Section 3 we will give an impression of the possibilities of this method. In Section 4 there are experimental results using logic synthesis for quantisizing relative overhead cost. In Section 5 are some conclusions. 'Delft University of Technology, Dept. of Mediamatics, Mekelweg 4, NL-2628 CD Delft tphilips Research Laboratories, Prof. Holstlaan 4, NL-5656 AA Eindhoven 25 y c decoding I ~ I circuit : p E I I Figure 1: Error correction in Boolean logic 2 Error-correction in Boolean logic Our method uses codes from channel coding. First we describe the implementa- tion and then we give an example. 2.1 Implementation In Figure 1 the general idea of this method is shown. In the following we call the 'original' circuit C and the extraencoding circuit E. It has to be stressed that our only interest is in incorrect outputs of the circuit; we see the circuit as a black box. Only the outputs of C and E will be protected from errors. We characterise the circuits by a two-column list of inputs and corresponding outputs. Synthesis tools can make a circuit based on this information. The encoding circuit E has to be designed separately for every C. This has to be done in the following way.(See also teh example in Section 2.2) • First a list is made with all possible binary coded inputs x of C in the first column and their corresponding binary outputs y in the second column. • Then a block code is chosen that can correct the desired amount of errors. • A third column with "tags" is then added to the list. These tags pare found byencoding the second column y with the chosen code. • Circuit E now has the same input x as C, and as outputs the tags p calcu- lated in column three. The decoding circuit decodes according to the normal procedure of the chosen code [9, 10J . The codeword is made of the output y of C and the output p of E by placing them next to each other. The circuits C and E are parallel in time, so this part of the method is not detrimental to the performance. The decoding circuit will give some extra logic depth and delay. Using a repetition code of length k in this method amounts to placing k identical circuits next to each other. This yields an upper bound for the size of the circuit: a repetition code of length 2n + 1 can correct n errors, so the upperbound is an area-increase of a factor of 2n + 1. 26 Remarks l. With this method we can only protect memory-free, combinatorial boolean circuits, that is: the outputs depend only on the inputs. 2. In general, the possible outputs y of C do not cover the full output space. For this reason also the possible codewords yp (the concatenation of y and p) do not cover the full code space. As a consequence they could be corrected to a non-existing output, when there are more than n errors (for ti error correcting code) 3. Our purpose is that our design will not affect the logic of the original circuit. It is therefore necessary to use systematic codes. We can use other codes in this method, but then the circuit has to be redesigned. Figure 2: An example 2.2 An example Consider for instance the circuit lil Figure 2. We choose the Hamming code (7,4,3) for the encoding. We can design E with the steps in Section 2.1 . For the input 0110 we then get the following: * 0110 the input x 0101 the corresponding output y 01100101 the entries in the table of C * G = ( ~~~~~~~ ) the generator matrix of the (7,4,3) Hamming code 0010101 0001110 * 0101 x G=0101101 calculation of the tag 27 101 the tag p * OllO 101 entries in the table of E If we repeat this for every possible input of C, the first part of the list is: input ouiqni! iuy 0000 0010 101 0001 0011 Oll 0010 0010 101 0011 0011 011 0100 0111 000 0101 0111 000 The first part of the list representing the extra circuit E will then be: input output 0000 101 0001 011 0010 101 0011 all 0100 000 0101 000 The Hamming code we used in this example is a systematic code. This means that the information we encode is in the code word and thus the identity matrix is a part of the generator matrix of the code. 3 Possibilities and restrictions of the method The proposed method has a lot of possibilities, but there are some restrictions. In theory it is possible to use every block code from channel coding. But as mentioned in the remarks of Section 2.1, not every code is suitable. To choose a suitable code in a certain situation we must take the following in consideration. • What is a reasonable amount of errors to correct in the given situation? • May the logic be affected or not? • How difficult or easy is the decoding to implement? • Is it required to use the same code for several circuits? 28 R R k-l k k+l Figure 3: Little adjustment for easier testing In our situation we prefer to correct one error. A typical defect density for manufacturing is an average of 1 error per cm/', For comparison: an average IC has the size of about ctri". So for this defect density single error-correction seems reasonable. The only problem is that one error might cause several output errors, if the outputs are related. For this reason we use boolean circuits C and E where the outputs do not depend on each other. We prefer to use a Hamming code for single-error correction. The Hamming code is a systematic code and therefore does not affect the logic of the original circuit. The encoding circuit is then additional, and can even be automatically added to the netlist description of the circuit by software tools. A Hamming code has also a simple decoding algorithm that is easy to implement. Another advantage of a Hamming code is that it can easily be made to the right size, by adding some extra zeros. If for instance a circuit has 9 outputs we use the (15,11,3) Hamming code by adding 2 zeros. With the sphere packing bound [l1J we can easily prove that with a fixed number of tag-bits (n- k) the Hamming code can encode the most output bits (k). For this reason we expect that in general these codes will have the best performance. As shown in Section 4, a Hamming code is not always the best option. In a design environment where hundreds of circuits can be found on a single IC it might be preferred that in every encoding and decoding the same code is used. Our method may cause some problems in testing the ICs. In the so called synchronous logic design method the logic circuits are alternated with clocked registers, so called "Register Transfer Logic". For testing purposes these registers R should not contain corrected outputs. It is not very difficult Lu adjust our method to these demands. This is shown in Figure 3 for a (7,4,3) Hamming code, with clocked flip-flops in register R. An other important advantage of this new implementation is that now also errors caused by defective registers can be corrected. 4 Some results We used a synthesis tool that makes circuits with independent outputs out of a given list of inputs and outputs. This program also gives an estimation of the size 29 I circuit C size of C I size of tag-circuit E increase sum 96 224 233 % absolute difference 107 274 256 % product 168 240 143 % square 289 315 109% pagp.r 1119 3375 76 % Table 1: Experimental results of the circuit it produced, by calculating its complexity. Complexity of a circuit is here defined as: L number of inputs of gate(i) This way we derived the following results. In Table 1 the tags are the bits that are found with a systematic Hamming code. • "Sum" calculates the 4 bit sum of two 3 bit inputs. • "Absolute difference" calculates the 3 bit absolute value of the difference between two 3 bit inputs. • "Product" calculates the 6 bit product of two 3 bit inputs. • "square" calculates the 12 bit square of a 6 bit input. • "Pager" is the control logic for a pager chip, here with a 10 bit input and a 6 bit output. We see that with the "sum" and "absolute difference" the Hamming code is not the best option. A repetition code (3 identical circuits) would take less area. This probably only happens when the original circuit is not very complex. 5 Conclusions and further research We have shown that a simple method known from channel coding can also be applied in fault-tolerant logic circuit design. Calculations show that this method can improve the yield. The results in area of the test circuits are somewhat disappointing, clearly a topic for further research. This future research should aim at a better understanding of the conditions for which a Hamming code does better than the majority voting rule. 30 References [1J J. von Neumann, Probabilistic logics and the synthesis of reliable organisms from unreliable components. Princeton University Press, 1956. [2J W. S. Evans and L. J. Schulman, "Signal propagation and noisy circuits," IEEE Transactions on Information Theory, vol. 45, Nov. 1999. [3J N. Pippenger, "Reliable computation by formulas in the presence of noise," IEEE Transactions on Information Theory, vol. 34, Mar. 1988. [4J D. K. Pradhan and J. Stiffier, "Error-correcting codes and self-checking cir- cuits," Proc. IEEE, pp. 27-36, Mar. 1980. [5J M. Nicolaidis, "Time redundancy based soft-error tolerance to rescue nanometer technologies," Proc. IEEE, pp. 86-94, 1999. [6J M. Favalli and C. Metra, "Bus crosstalk fault-detection capabilities of error- detection codes for on-line testing," IEEE Trans. on VLSI Systems, vol. 7, pp. 392-396, Sept. 1999. [7J C. Metra, M. Favalli, and B. Ricco, "Signal coding technique and cmos gates for strongly fault-secure combinational functional blocks," Proc. IEEE, pp. 174-182, 1998. [8J P. Elias, "Computation in the presence of noice," IBM J. Research and Development, vol. 2, pp. 346-353, Oct. 1958. [9J S. Lin and D. J. Costello, Error Control Coding Fundamentals and Applica- tions. London: Prentice-Hall, 1983. [IOJ S. A. Vanstone and P. C. van Oorschot, An introduetion to error correcting codes with applications. Boston: Kluwer Academic Publishers, 1989. [l1J R. Hill, A first course in coding theory. Oxford: Clarendon Press, 1986. 31 THE TU-DELFT RESEARCH PROGRAM "UBIQUITOUS COMMUNICATIONS""" R. (InaId) L. Lagendijk Delft University of Technology, The Netherlands R.L.Lagendijk@ITS.TUDelft.nl ABSTRACT The Ubiquitous Communications (UbiCom) program is a multidisciplinary research program at Delft University of Technology. The program aims at carrying out research needed for specifying and developing wearable systems for mobile multimedia communications. In particular the focus is on (i) real-time communication and processing ofvisual informationfor context-aware applications such as augmented reality, (i i) high bit rate communication at 17 GHz, (iii) architectural issues and performance optimization for heterogeneous communication and computation systems. In the vision of UbiCom, a user carries a wearable terminal and a lightweight see-through display. In this display the user can see virtual information that augments reality, projected over and properly integrated with the real world. The wearable system contains a radio link that connects the user to the ubiquitous computing resources and the Internet. This paper discusses the views on UbiCom, and motivates and illustrates the program-wide shared research objectives, namely low power, negotiated quality of service, and system approach. I. THE POSITION OF UBICOM 1.1 Current Trends in Mobile Communications The growth and penetration of sophisticated digital communication systems, infrastructures, and services has been increasing constantly over the last decade. Examples of these services are the Internet, electronic mail, multimedia, pagers, PDA's, and mobile telephony. From marginal penetration 15 years ago, these systems and services are becoming a commodity in both professional and consumer markets worldwide. The developments in these fields are still going strong. In particular, rapid advances - both in technology and services - can currently be observed in wireless and mobile systems that support the communication of different media, such as data, speech, audio, video and control [BULL99, WEZ98]. Current European wireless network and mobile phone services roll-out are centered around four available technologies, namely W AP, UMTS, Bluetooth, and mobile positioning systems [WAP, UMTS99]. The wireless application protocol (W AP), initially carried by second generation GSM and in the future by third generation UMTS wireless networks, will turn the mobile phone into a networked smart-phone capable of low to medium data rate Internet functionalities. Bluetooth will allow for short-range data communication between consumer appliances in a domestic + This work has been funded by the Advisory Council for Research at TU-Delft (ARTD) under the Delft Interfaculty Research Center initiative [DIOCj. 33 environment. Positioning systems will become integral part of mobile phones such that services can be made dependent on the location of the user in the network. When projecting the progress in mobile networks and services into the future, three developments are of importance. In the first place, we can observe that mOT~ and more mobile phone-like devices start to include accessories such as a small keyboard, a display, and a speech interface. Such communication and information-oriented systems are emerging as hybrids between the mobile phone and the wireless laptop personal computer. With higher bit rates supporting more advanced services, the integration of the personal computer and personal communication devices will be pushed even further. In the second place, we observe that computing resources are becoming ubiquitously - that is everywhere and at all time - available. We will soon live in an environment that supports us by providing ubiquitous computing for a wide variety of tasks and services. Daily life consumables, durable products and services already contain an ever-increasing number of sensors, actuators, processing units, and (embedded) software. Integration technology will continue to make these components smaller and more versatile. The personal computer has entered daily life as a necessary commodity, and the development of sophisticated communication systems in today's society relies heavily on the availability of computation resources. Finally, we observe that communication and computing is becoming increasingly personal. The device (and therefore the user) is always on-line, the user is identifiable, the device can be personalized, and the system knows about the user's position and environment. 1.2 UbiCom Research Direction The combination of, on the one hand, ubiquitous computing and, on the other hand, the exchange of data, multimedia and audio-visual information in personal wearable communication systems, we call Ubiquitous Communications. In the decade to come, we will witness the emergence of Ubiquitous Communications, based on current trends in advanced signal processing, wireless networks, multimedia, and the Internet. It is, however, a mistake to ignore the potential for Ubiquitous Communications to be more than simply the convergence between mobile phones and portable computers. Systems that are personal and that have ubiquitous computing and communication abilities offer opportunities for entirely new services that are currently virtually nonexistent. One such challenge is the recently emerging but barely explored paradigm of context-aware communication and computing. By definition, the behavior of context aware systems and applications depends on the location and activities of the user at any given time. The potentialof ubiquitous communications can be exploited for making communication and information-oriented products and services more adapted to the mobile human user. Examples can be found in mobile multimedia, media interaction, information on the spot about the spot, navigation systems, engineering, architecture, education, and security. Context-aware personal and wearable systems comprise a wide field of research [HUC99). At Delft University of Technology the "Ubiquitous Cornmunications" research program [UBICUM, TA2000] has chosen an extremely challenging view to drive research the research in 34 context-aware mobile communication and computing. Namely, visual augmented reality has been chosen as the core feature of potential context aware applications (Figure 1). Augmented reality implies that the system is not only aware of the context; it also merges its own audio- visual virtual information with the real world. A system that anticipates the interests, intentions, and problems of the user and reacts accordingly by merging proper virtual information with the real world must continuously monitor the surroundings and actions of the user. As such, the UbiCom system processes information from sensors, combines it with information from other sources, and presents the output - for instance in visual form - to the user. Com uting Co text awa and intelligen services Figure 1: Position of UbiCom program at intersection of communications, computing, and context-aware and intelligent services One can have different views on what the multidisciplinary UbiCom program encompasses. In this paper we will first give three of those views (application view, wireless communication system, architecture view). Then we will discuss the common aspects in these views and motivate the program-wide shared research objectives. Finally we glimpse at ongoing technical research in the UbjCom program. More detailed information about factual research results can be found in the "Documents" section of the UbiCom web pages [UBICOM]. 11. THREE VIEWS ON UBICOM In the vision of UbiCom, a user carries a wearable terminal and a lightweight see-through display. In this display the user can see virtual information that augments reality, projected over and properly integrated with the real world. The wearable system contains a radio link that connects the user to the ubiquitous computing resources and the Internet. A camera captures the user's environment. Camera images are sent to the backbone and matched to a 3-D description of the real world to determine the user' s position and to answer questions of the user that relate to the environment. Within the context of this future communication scenario, three different views on UbiCom exist that roughly correspond to the three projects under the UbiCom program. 35 11.1Application Specific Context-A ware System Probably the most apparent level of viewing UbiCom is that of an application-specific context aware system for future generation personal wireless communications. Figure 2 illustrates this Internet. r-------------------, ~\Ii_~0nsor Analysis : Analysi~ ifJl : ,, ,, Synthesis ,, . ,, Display Di~play ; Mobile Station Base Station Mobile Station , Figure 2: Analysis and synthesis Figure 3: Distributed form of Figure 2 of information in UbiCom top-down concept in four steps. The sensor system records the environment, the context of the user and his/her environment is derived in the analysis phase (for instance a position recovering process), the application generates (synthesizes) an appropriate reply, which is then presented to the user in an overlay manner using sophisticated display techniques. Roughly speaking, the first two steps are intended to realize the awareness of the user's position (where is he/she"), the user's attention (what is the user looking at, pointing at, thinking about"), and the user's wishes (what is the problem, what information is needed?). The third and fourth step are intended to find and properly provide the user with the desired information by synthesizing, transmitting, and displaying it in a context adapted fashion. In essence the user "wears" the computing hardware, equipped with a variety of sensors and actuators, and has access to local and remote resources. Important in this view on UbiCom is that it contains two conflicting requirements. Namely, from a user interface point of view, a small latency between sensory input and displayed output is important. This would require large local computation power and memory requirements for video analysis, position determination, information synthesis, and database storage to be available in the user's wearable device. A wearable system, however, will have to have a small form factor and low power consumption as it runs on batteries. Therefore, much of the processing and storage functions have to be placed at the wired backbone. Figure 3 illustrates this distributed architecture. The architecture needs to support the following functions: (i) video recording and analysis; (ii) position tracking; (iii) compression and decompression of visual information; (iv) graphics rendering; (v) see-through display adapted to user and environment; (vi) input devices and audio/visual dialog management. 11.2Wireless Transceiver System The second view on UbiCom is that of a wireless transceiver system. A ubiquitous communications system and its sensing-processing-actuating process relies heavily on a 36 wireless connection to access remote computation resources, remote systems, and remote users. The limitations of the wireless transceiver will directly affect the overall performance, which therefore requires adaptation of the entire wireless terminal. Consequently, the communication modules themselves must be amendable to adaptation to offer the best quality of service at affordable costs. mobile ter~ <\ \"', .. (wearable) \ '" backbone (Intern~ ompule and d séfesources Figure 4: Sketch of UbiCom communication-computation architecture. UbiCom has selected a cellular communication system, with all communications coordinated by base stations. Typical cell sizes are in the range of 100 meters outdoor and 10 meters indoors. The base stations are connected to the wired backbone having ubiquitous resources in the form of (shared) compute servers (Figure 4). We assume that the resources of the compute server themselves are sufficient and do not form the bottleneck of the communication/computation system. The wireless part between the user's wearable and the base station follows the following technical specification targets: (i) user throughput up to 10 Mb/s; (ii) maximum of about 10 users/cell, yielding a bi-directionally aggregated (gross) capacity of 155 Mb/s; (iii) radio frequency 17 GHz, with IR radio for indoor. 11.3 Flexible System Architecture The UbiCom system is a complex system that contains several components, each being individually programmable yet optimized for certain task classes. Certain specific tasks are off- loaded to the ubiquitous computing resources at the backbone. The degree of off-loading may depend on the terminal, user, application, environment, and time. In this respect, a typical UbiCom application consists of a program running on various heterogeneous resources across a wireless and wired infrastructure. The third view on UbiCom is therefore the architecture, resource management, and programming view on UbiCom, given the communication subsystem and the application functionalities. The central view is that all UbiCom resources are programmable. If needed, a specific component can 37 be down-engineered later to obtain a higher speed or lower power consumption. The programmability especially reflects the requirements of efficiency and flexibility. Efficiency refers here to minimizing the waste: the best possible overall quality is offered while consuming the smallest possible amount of energy for a range of applications. Flexibility refers to the support of this range of applications, operating conditions, and actual composition of the wireless terminal. 11.4Program-wide Objectives Looking at UbiCom from a typical telecommunications point of view, one could draw the OSI stack and try to place the UbiCom activities within that context. It will, however, rapidly become apparent that the novelty and challenges of UbiCom are not so much to be found on the OSI layers or in the data path flowing through the layers, but rather on the boundaries and controlling of the functions in the OSI layers. Two issues are essential to UbiCom in this respect. In the first place, UbiCom follows a system-wide resource optimization approach (with emphasis on the mobile terminal). In this optimization, the available resources, such as power, computation platforms, memory, and channel bandwidth, change as well as the required multimedia task and their requirements. A second issue follows from this, namely the desire to optimize the system enforces all components and algorithms of the system to be designed with flexibility in mind. This raises for each and all components and algorithms in the system questions such as how much of the internal structure and parameters need to be visible externally, how to describe the relations between parameter settings and "costs" (e.g. power, CPU cycles), and how much flexibility is needed and reasonable in a UbiCom device? Because of these issues, the three different views on the UbiCom system are not independent of each other. In particular, we distinguish three cross-program and therefore multi-disciplinary objectives in realizing the augmented reality functionality for the mobile user in a ubiquitous communication system. These objectives are cross-program in the sense that all research conducted and all disciplines involved in UbiCom must explicitly deal with them. • Low power. Truly wearable systems must be low power to achieve a reasonable operation time within battery energy capacity. The power constraint is of utmost importance to all UbiCom activities. For any future generation mobile systems, power consumption will be a limiting factor for the functionalities that can be offered. Therefore, power should be explicitly considered as a design parameter. • System approach. A system is more than the concatenation of individual components; it is the union of its components. UbiCom follows a system approach in which related components are carefully interfaced, and in which balanced trade-offs are found. • Negotiated quality of service (QoS). For varying application computation and communication demands and for a varying quality offered by the wireless channel, the system has to maintain a certain - agreed-upon or negotiated - service quality. Included in the QoS definition are parameters such as throughput and delay, but also costs such as power consumption. In order to drive research, the above objectives are taken to the extreme as much as possible in the UbiCom program. It is, however, clear that the objectives are relevant either by themselves or in combinations of different strength in most future generation ubiquitous communications systems. 38 Ill. A GLIMPSE OF SOME ONGOING UBICOM RESEARCH In this Section we describe ongoing research in subprojects the UbiCom program to illustrate the impact of the program-wide shared objectives. 111.1Low Power: Voltage and Frequency Scaling Interactive applications such as mobile augmented reality generate bursts of activity and requires therefore bursts of processing. It is important to match the performance of the wearable device accordingly. Once such possibility is to use a system of which the processor clock can be controlled by the application. Decreasing the processing frequency also allows for decreasing the input voltage. This then allows for the dynamic power scaling of the wearable device, theoretically according to a quadratic behavior [POWOO]. ... , CPU In1:f'n:!l;ve. vol1:a'jlc sealing / I ,I ee• i ... I 0" __ - ~., »> -------- -~----- .. '03 '" 221 2" CPU Cloek Frequency In MHz Figure 5: LART main board (left) (from [LART]) and total power consumption (right) when running the dhrystone benchmark (from [POWOO]). Within the MMC [MMe] and UbiCom program a low-power wearable device was assembled that can be used for developing application-directed voltage-scaling policies. The embedded StrongARM (SAllOO 190MHz) processor board forms the basis for future hardware developments in the UbiCom program. The processor runs under Linux, which has been modified to support frequency and voltage scaling. The potentialof scaling frequency and voltage is shown in Figure 5, which shows the power consumption when running the dhrystone benchmark at variable frequency and at variable frequency/voltage. From the power consumption at 59 MHz (105 mW) and at 251 MHz (963 mW) it follows that an instruction at peak performance consumes a factor of 2.1 more power than at the lowest performance. When only looking at the processor power consumed, the factor is 4.9. Also the curve shows that making the processing frequency and voltage application-dependent can save up to a factor of 9 in power consumption. Of course this will require the applications to be aware of their processing requirements, and inform the operating system about it, so that the optimal processing. speed can be selected to minimize power consumption and still meet the application' s deadlines. 39 As a first approximation, the application could indicate the required number of cycles, memory references, and timing deadline. These QoS parameters are subject of current research. III.2 Adaptivity and Negotiated QoS: Joint Source-Channel Coding In much recent work on image and video compression for wireless communications, joint source-channel coding is considered. Both the source coder and the channel coder can be controlled by a number of parameters, for instance for the source coder we can control the bit rate, the quantization level, the number of frames per second, and the frame resolution, and for the channel coder we can control the degree of error proteetion and the latency induced. In UbiCom context also the power consumption of the source and channel coders are important. The question that arises is what information needs to be exchanged at the source and channel encoder interface in order to allow for optimal adaptation. The fewer information needs to be exchanged the easier the optimization becomes, but at the same time too little information hampers the optimization. In [SCHOO]a theoretical study was carried out to determine which parameter information is suited best for exchange between the source and channel encoder, assuming a generic progressive compression system and a packetized channel coding approach. We found that - contrary to common believe - not the desired packet length, the required error proteetion scheme and the bit rate needs to be passed from source encoder to channel encoder, but rather the required level of proteetion and the acceptable latency. For instance a source encoder would indicate a required proteetion level 10.7 and a delay of 50 msec. The channel encoder would determine the best proteetion scheme within these requirements, and would pass the resulting bit rate to the source encoder. The encoder and decoder then independently optimize their operations, but within the earlier agreed quality of service contracts. QoS interface Latency Level of Bit-rate Separated Figure 6: QoS interface between source and channel encoder. The resulting optimization is close to the theoretical optimum (from [SCHOOJ). 111.3System-wide Approach: Latency Layering For many UbiCom applications the virtual information should be placed in the real environment with a fairly high accuracy: an alignment accuracy of at most a few millimeters at a distance of 2 meters seems a fair target. An important source of alignment errors is the latency: the time difference between the moment the observer moves and the moment the updated image has been 40 computed and displayed. From the alignment accuracy requirement a latency requirement of about 10 ms can be derived. To achieve such a low latency in a low-power wearable unit, the UbiCom system needs to be latency layered (Figure 7) [PAS99]. Instead of rendering the full virtual information in one big step at either the backbone side or in the user's wearable system, the rendering is split up into a number of simplification steps. In the backbone the fulI scene is simplified a few times per second, and the simplified scene (few hundred to one thousand polygons) is sent via the compute server to the mobile system. Application databases W3~ . ~, Figure 7: The virtual scene is simplified in the backbone into a relatively small number of polygons and textures, depending on the expected viewpoint of the user. The mobile unit renders this simplified scene given the latest viewpoint of the user (from [PAS99]). In the mobile system the most recent simplified scene is rendered and displayed with a latency of at most 10 ms after the movement of the user. At first this rendering will be an approximation because the scene was not optimally simplified for the new position. As a new simplified model comes in, the approximation is improved (Figure 8). A similar latency-layered mechanism is used for tracking of the user's position and viewing direction. Backbone Headsel ;t~~ position from camera, Position from GPS and prediction User movement comPle-:-l scene I display i Display list graph -1Hz -10Hz 240Hz Figure 8: Latency-layered structure of the graphics system (from [PAS99]). 41 In.V User Interaction The interface concept that UbiCom envisions is based on a head-mounted see-through display. Several other research project follow the same line of interfacing, such as the CyPhone project at the University of Oulu [CYP], the DYPERS project at MIT Media Lab [DYPERS], and the KARMA project at Columbia [KARMA). The UbrCorn program is considering three different aspects of this interface, namely: • which display technology to use, • which cognitive-perceptual effects to take into account, and • which dialog mode to use. As far as the display technology is concerned, the current development of displays for mobile systems by industrial companies is mainly an effort to enhance LCD technology. For see-through and see-around displays LCD technology does not offer sufficient brightness. There are also problems in the optical design of the eyepiece of the LCD displays. We are investigating the use of laser sources for display purposes in a technique known as retinal scanning display. By rapidly scanning a beam of light into the eye, retinal scanning display technology projects a high-quality electronic image with the look of a large screen [MVIS]. There are still many problems to overcome in with this new technology. We are concentrating on the use of adaptive systems for eye pupil movement compensation, miniaturization, and the development of small devices for full-color displays. The man-machine interaction in a mobile environment poses entirely new challenges. In UbiCom we try to take advantage of the fact that the user is wearing a head-mounted see-through display in order to enhance the dialog management. The aim of the UbiCom-related project Multi-modal Access to Transaction and Information Services [MATIS] is to investigate how speech and graphics can be combined to improve the user interface for information and transaction services. Part of the project focuses on the dialogue with and navigation in the visual domain. The key feature for the research is that the presence of visual feedback allows the user ti directly interact with the dialogue manager about the results of speech recognition, which is particularly important especially in the case of confusion or misunderstanding. This will eliminate tedious verification strategies. In addition the user should be able to direct the dialog manager to objects in a less direct way, such as "to left" or "further away". This then shows the UbiCom system in an entirely different perspective, namely of a mobile front-end for information retrieving agents. The MATIS project is funded under the lOP program [MATIS]. V. CONCLUSIONS The UbiCom program is a very broad research program on personal and wearable mobile computing and communications. There is nevertheless a common view on the problems that need to be solved. This paper has given an overview of the challenges and approaches UbiCom is taking. Due to space limitations, the telecommunications issues in UbiCom such as low-power transceivers and more generally low-power designs are somewhat underrepresented in this paper. More information about these and other on-going research in UbiCom can be obtained from the UbiCom web-site [UBICOM]. 42 Though UbiCom has already a broad scope, there are many issues that are relevant to personal and wearable mobile computing and communications that are currently not included in the UbiCom program. As examples we mention here communication security, and user acceptance of head-mounted devices raising questions such as liability and privacy. These and other subjects are candidates for potential extensions of the UbiCom consortium in the near future. REFERENCES [BULL99] D. Bull, N. Canagarajah, and A. Nix, Insights into Mobile Multimedia Communications, Academic Press, 1999. [CYP] CyPhone: Mobile Multimodal Personal Augmented Reality Project at http://www.infotech.oulu.fi. [DIOC] Delft Interfaculty Research Centres, http://www.tudelft.nl/englishlwit/overig.cfm? PageID=431. [DYPERS] Dynamic Personal Enhanced Reality System, at http://www.media.mit.edu/viscom. [KARMA] S. Feiner et al., KARMA: Knowledge-based Augmented Reality for Maintenance Assistance project at http://www.cs.columbia.edu/graphics/projects/ karma/karma.html. [HUC99] Proceedings of the First International Symposium on Handheld and Ubiquitous Computing, H.W. GeIlersen (Ed.), Springer Berlin, 1999. [LART] Low-power StrongARM embedded Linux platform (LART) at http.Z/www.Iart.tudelft.n I. [MMC] The Mobile Multimedia Communications Project (MMC) at http://www.mmc.tudelft.nl. [INFPD] Low-Power Wireless System Design Projects at http://infopad.eecs.berkeley.edu [MATIS] Multi-modal Access to Transaction and lnformation Services (MATIS) project proposal at http://www.iop.nl [MVIS] MicroVision Retinal Scanning Display, at http://www.mvis.coml [PAS99] W. Pasman, A. van der Schaaf, R.L. Lagendijk and F.W. Jansen, "Accurate Overlaying for Mobile Augmented Reality", Computers and Graphics, vol. 23, 1999, pp. 875-881. [POWOOl J. Pouwelse, K. Langendoen, H.J. Sips, Dynamic Voltage Scaling on a Low-Power Microprocessor, Proceedings of MobiCom 2000. [SCHOOl A. van der Schaaf and R.L. Lagendijk. "Independence of Source and Channel Coding for Progressive Image and Video Data in Mobile Communications ", Proc. of the SPIE Conference on Visual Communications and Image Processing, Australia, June 2000. [TA2000] R.L. Lagendijk, Ubiquitous Communications Updated Technical Annex 2000, Delft University of Technology, January 2000. [UBICOMl TU-Delft Ubiquitous Communications Program at http://www.ubicom.tudelft.nl. [UMTS99l The Future Mobile Market, UMTS Forum (http://www.umts-forum.org), March 1999. [WAP] http://www.webproforum.comlwap/ [WEZ98l E.K. Wezel, Wireless Multimedia Communications: Networking Video, Voice, and Data, Addison Wesley, 1998. 43 Latency layered rendering for mobile augmented reality Wouter Pasman! and Frederik W. Jansent 1 Delft University of Technology, Department of Information Systems and Technology, Mekelweg 4, 2628 CD, Delft, Netherlands {w.pasman, f.w.jansen}@twi.tudelft.nl http://www.ubicom.tudelft.nl Abstract. Augmented reality requires accurate alignment of virtual objects with objects in the real world. This requires extremely low end-ta-end latency from tracking to display. For mobile use these requirements are even more difficult to achieve when one considers the unrestricted situation of a user walking around and using a wireless, wearable unit that should be small and have low power consumption. To meet these conflicting requirements, we propose a latency- layered system that combines fast tracking and rendering techniques, using approximate geometric models, with slower but more accurate techniques. In this way very fast viewpoint estimates and image updates can be achieved, followed by slightly slower but more correct viewpoint estimates and image updates. We present a model to trade-off image accuracy and model complexity with respect to the available resources at the mobile unit and the cost of transferring information over a wireless link from a computer station to the mobile unit. 1 Introduetion With augmented reality, virtual objects can be projected in overlay with the real world. For applications such as remote maintenance, the placement of these virtual objects is quite critical and should be accurate within an order of tenths of a degree. In addition, if we want keep the objects at a fixed position with respect to the real world while the viewpoint is changing, then the system should also meet strict latency requirements, i.e. render a new image within 10 ms. These constraints are even more difficult to achieve when we use augmented reality in a mobile situation where accurate position tracking is difficult and the wireless link itself has a considerable latency. At the same time the mobile system should be lightweight and low power. To meet these clashing requirements, we propose a latency-layered system that combines fast tracking and rendering for first approximate estimates, and slower techniques to achieve better estimates. For the position tracking, fast viewpoint estimates are made with an inertial tracker. The estimation is kept accurate with a lower frequency optical tracking system. For the rendering we apply a viewpoint correction four times within the rendering and display of a frame, keeping the latency for individual scan-lines to less than 10 ms. This allows us to render a few hundred textured-mapped polygons within that time span. In order to render more complex scenes, we apply several stages of scene simplification to the model, from general simplification to viewpoint dependent simplification and the use of image imposters. In this paper we describe our UbiCom-system for Ubiquitous Communication and how the mobile unit carried by the user works together with a compute station at a remote location over a wireless link. Then we describe how we meet the latency requirements with our layered tracking and rendering system. We present an analysis of image-based rendering and scene simplification techniques and we define a model to calculate the trade-offs between image accuracy, rendering complexity, and the load on the mobile link. 45 2 Overview of the system The UbiCom system is an infrastructure for mobile multi-media communication, developed at Delft University of Technology as a cooperative efford of several groups in radio communication, image compression, graphics and distributed processing [1]. Users will wear a headset with a stereo augmented reality display connected to a small wearable transceiver (the mobile unit). The transceiver is connected via a wireless link to a nearby base station. Base stations are connected to other base stations and compute stations via a backbone. The compute stations offer cheap compute power, storage space for large databases, and connections to the internet (Figure 1). The mobile unit tries to off-load computations to the server to save the scarce resources of the mobile unit, carefully trading off compute power for load on the wireless link. Compute station Fig.1.0verview of the UbiCom system. See text. The configuration of the headset is shown in more detail in Figure 2. It contains an optical see-through stereo display, an inertial tracker, two video cameras and a sender and receiver for the wireless link. Dedicated hardware is available for 3D rendering, image compression and decompression, and for tracking features in the camera images. The wireless communication system uses a 17 GHz radio link outdoors and infrared indoors, and is described in more detail in [2]. The compute station has a database with a detailed 3D model of the environment and an associated set of line features as input for the vision positioning system. Transmission • .. I I VIdeo out Gra hies Camera A."y'" _: I Position and :It, I enentanen Simplifie 3D scene Fig. 2. The mobile unit. Typical applications we have in mind are way finding (Figure 3a) and remote maintenance (Figure 3b). Applications mayalso include person-to-person communication, information services for 'info-on-the-spot', games and personal assistants. We don't yet have a "killer app'', but we anticipate that video and 3D animation will play a key role. 46 Fig. 3. Two sample applications for the UbiCom system. In the left figure the system is guiding the user by projecting route information on the ground. In the right figure the system helps the user solving technical problems by placing a virtual marker at the correct reservoir level. 3 Latency-layered tracking and rendering system It turns out that latency is the major constraint on the accuracy with which virtual objects can be placed in an environment [3, 4, 5, 6] (Figure 4). Humans can rotate their heads very fast (360 /s [7] up to 2000 /s [8]), and can easily detect errors of 0.25'. Combining these 0 0 extreme values leads to a latency requirement of 0.1 to 0.7 ms, several orders of magnitude less than the current latencies of 3D systems. But we expect that humans will not notice small alignment errors while moving fast, and moreover that small alignment errors during motion will not hinder the task at hand. For the applications we have in mind we think that a maximum alignment error of 0.5° at a head rotation speed of 50 ls is acceptable, leading 0 to a latency requirement of 10 ms. This is similar to the suggestions of other authors [4, 9, 10]. _., . . ;Jr _' \ Misaligned \ virtual object Fig. 4. Head rotation is the most critical factor in the latency-alignment relation. In this example we try to align a virtual object with a realobject, while the observer is rotating his head to the left. The virtual object has a latency and therefore is displayed in the direction it should have been a short while ago. Therefore the real and virtual object are not aligned anymore. The amount of error depends on the head rotation speed and the latency. In order to meet the latency requirement of 10 ms, we propose a latency layered structure. This latency-layered structure can be made for the two essential components in the critical path: the tracking and the rendering system. 47 The tracking system is primarily based on a VISIOnsystem. A camera on the headset captures images which are analysed for line features. These features are sent -together with GPS data- to the backbone to be matched with a pre-selected set of features from the data base. After the feature identification, the new view position estimate is calculated and send back to the mobile unit, where the new viewpoint estimate arrives about hundred milliseconds after the initial feature image was captured. Within this time frame the movements and rotations of the headset are sensed by inertial trackers and by integrating the measured acceleration an up-to-date viewpoint position is calculated within a millisecond. The orientation is tracked at the same rate with gyroscopes. As the integration accumulates errors, the headset position is corrected when a new accurate estimate arrives from the vision system. See figure 5. Base Station/Backbone Headset Fig. 5. Low-latency tracking system. For the rendering system, the latency requirements are extremely severe. Table 1 shows the usual performance of the different stages of the viewing pipeline. Table 1. Typicallatencies in the graphics pipeline. See also [6]. Lag type Description Typicallag Tracker lag internal computations inside the tracker, 5-20 ms physical delays Interface lag transmitting tracker data, OS scheduling 10-30 ms delays Image-generation lag rendering time 25-200 ms Video sync lag lag while waiting for next video frame 10 ms Display lag Delay from frame swap until actual display 0-20 ms of pixel Internal display lag some displays don't refresh all visible pixels 0-40 ms immediately The actual display of a rendered image already takes about 20 ms from the first scanline at the top of the image to the last scanline at the bottom. To reduce this part of the total latency, we divide the image into a number of segments and render just ahead of the raster beam (Figure 6). While a segment of the image is displayed, the next segment is rendered. With standard graphics hardware we then can achieve a latency of 10 ms (2 ms tracking, 4 ms rendering and 4 ms display) with a rendering load of a few hundred texture mapped polygons (see also [11]). 48 Fig. 6. Overlapped rendering and display with four image segments. In this example the display card is displaying the second segment, while the third segment is being rendered. This reduces the latency to 10 ms. To render scenes with a larger number of polygons we simplify the objects to fit within the available 'budget'. First, complex objects are simplified to a small number of polygons with textures in the compute station. This is done considering the expected near-future viewpoint of the user. The simplification may go as far as to replace complete objects by one image. The resulting scene . is sent to the mobile unit, where it is rendered using the actual position of the user 7). Fig. 7. overview of the rendering system. As the image imposters have only a short life time (they are only accurate near the initial viewpoint), new imposter updates will have to be generated at the compute station and sent to the mobile unit. Together with the latency-layered tracking, this gives us the following latency-layered structure (Figure 8). The image is updated each 10 ms after a user moves, but with only an approximate image. More accurate updates (over the mobile link) are available only after 100 ms and 1 second. 49 Backbone Headset Position from User movement Display -1Hz -10Hz 240Hz Fig. 8. Latency-layered structure of the system 4 Scene representation within the mobile unit As discussed above, the mobile unit will hold only simplified versions of the scene. A number of possibilities are open here. We consider simplified polygon objects, meshed imposters, images with depth, and simple imposters (Figure 9). Fig. 9. Several simplifications of the cow model: in clockwise direction a simplified polygon object, meshed imposter, image with depth, and simple imposter. Simplified polygon models seem a good choice to replace nearby objects, because the observer can move around them freely without requiring the system to refresh the model. But for distant objects this is overly accurate, as the observer will probably never see the back faces. Another option is to use simple imposters. For nearby objects this is not a good choice, as the texture on the imposter would have to be updated very often because the poster is only correct for a small region around the initial viewpoint. But for distant objects this seems appropriate. The meshed imposter and image with depth seem suited for the in-between cases: they are more accurate than simple imposters and therefore can be used longer, but they still have no back faces. 50 This analysis suggests the configuration of Figure 10: nearby objects are represented with simplified polygon models, more distant objects with images with depth or meshed imposters, and far away objects with simple imposters. The switching distances may be closer for objects outside the viewing cone of the observer, to avoid too much effort being put in rendering things the user is not looking at. Outside viewing cone: lower quality polygon distance: object Far away meshed simple imposter. imposter image with depth Fig. 10. Intuitive way of using various objects with varying distance. However, for deciding which representations to use for which objects in order to stay within the limit of a few hundred polygons/imposters, we need a model that tells us how to trade off accuracy against the memory and rendering capacity at the mobile unit and the latency of the mobile link. We did a thorough analysis of the various techniques, to estimate the accuracy as a function of the number of polygons and the load they impose on the wireless link. This model is too large to discuss here, instead we sketch our approach (Figure 11). We started with estimating the distortion (D) in the images rendered from a model given the distance to the object (d), the size of the object (r), the number of polygons available (N), the desired life time of the object (T) and the number of pixels in the texture for the object (Tex). The texture compression ratio can also be estimated from the texture refresh pattern: if the model needs very frequent updates we can reach MPEG-like ratios, while less frequent updates will reach lower, JPEG-like ratios. Texture ________ refresh ,:~:.:~tur~~~~~pression pattern ~ Model type - D=f(d,r,N,T,Tex) _ N=g(D,d,r,T) _ Modelsize _ Link load TexehrDid.r.T) (#hyt.es) (byte/s) Fig. 11. Sketch of our resource usage analysis of various choices for model representation in the mobile unit. The next step involves inversion of the function D: we set a maximum distortion and derive the number of polygons (N) and texture pixels (Tex) as a function of the deviation from the initial viewpoint (which follows from the life time T). To come to an estimation of the model size, we assume a constant number of bytes for each polygon and we divide the number of texture bytes by the expected compression ratio. Figure 12 shows the model size as a function of the distance to the object and the object's size, as calculated by our models. We can see that the imposters are very close in size, and that the polygon model is much larger but does not grow as fast with decreasing viewing distance. All models break down at some point: at closer distances the model cannot reach the distortion and life time requirements anymore. The simple imposter breaks down earlier than the other models, because it is very much confined to the initial viewpoint. The 51 polygon model also breaks down at some point, because we have a limited amount of polygons and distortions will become evident anyway if the observer can come close to the object within the life time of the object. In this case, a near clip distance will have to be defined to avoid excessive model refresh. _ Simplified Polygon _ Suuple Imposter ~ Meshed Imposter D Image with Depth Q) .~ Objects' lze r (rn) Fig. 12. Model size as a function of the distance to the object and the size of the object. Lifetime was set to 0.1 second, the maximum distortion D=0.005 rad and the polygon budget N=1000. As the model size is a function of the chosen life time (refresh rate), we can find the average link load by dividing the model size by its life time (Figure 13). We also accounted for the probability that the user walks in such a direction that model refresh is required. The meshed imposter has a slightly longer lifetime at a given maximum distortion than a simple imposter, but essentially only a polygon model can reach the distortion requirements at close distances. The wireless link will not form a bottleneck, but the expected latency of 100 ms (Figure 8) strongly limits the use of nearby imposters because, with realistic imposter life times of less than 100 ms, the link can not provide fast enough updates from the compute station. _ Simplified Polygon _ Simple Imposter ~ ~ Meshed Imposter 2>. 100 D Image with Depth ~ Ik o - 10k '" ~ laak 0.1 Fig. 13. Load on the wireless link as a function of distance to the object and the lifetime. Settings as in Figure 12, the object's size r=l meter. The results of our estimation of the load on memory and CPU is straightforward: as the number of polygons in our system will be much smaller than the number of pixels to be put to the screen, the main CPU and memory load follows from the amount of pixels in texture memory and on the screen. Therefore, the main load comes from the way these pixels are stored (are they RGB, RGBA or RGBA + depth), and the amount of per-pixel calculations (images with depth require additional per-pixel warps and splat kernel calculations). Simple 52 imposters, meshed imposters and polygon models all impose very similar loads. For images with depth this depends on the rendering method, ranging from a.33% higher CPU load for forward splatting [12] to a 60% higher CPU load plus a 100% higher memory load for a hybrid mapping [13]. Concluding, the intuitive sketch of Figure 10 is confirmed by our theoretical model, although the exact boundaries and parameter settings require some refinement of the model and some experimental testing. For the medium distance, a meshed imposter seems the appropriate choice. 5 Conclusions We discussed our latency-layered approach to meet the high requirements for mobile augmented reality, and we sketched an approach for deciding which model representations are appropriate for the mobile unit. The presented analysis suggests that simple imposters are appropriate for distant objects, meshed imposters can extend their life slightly, and that polygon models are required for nearby objects. Our near-future work will be the integration of this approach into our demonstrator system (see figure 14). This will involve integration in the scenegraph processing, and the development of a method that uses the discussed distortion and link load models to distribute the available polygons over the visible objects. Longer term research will be on scene simplification issues related to incremental texture updating, and its close relation to the video compression and decompression system. Fig. 14. Prototype system. References [1] Deprettere, E. (1999). Ubiquitous Communications:Aiming at a new generation systems and applications for personal communication. Available Internet: http://www.ubicom.tudelft.nl/. [2] Pouwelse, J., Langendoen, K., & Sips, H. (1999). A Feasible Low-Power Augmented- Reality Terminal. 2nd IEEE and ACM Int. Workshop on Augmented Reality (San Francisco),55-63. [3] Azuma, R. T. (1997). Registration errors in augmented reality. Available Internet: http://epsilon.cs.unc.edui-azumalazuma_AR.html. [4] Ellis, S. R., & Adelstein, B. D. (1997). Visual performance and fatigue in see-through head-mounted displays. Available Internet: http://duchamp.arc.nasa.gov/ research/seethru_summary.html. 53 [5] Olano, M., Cohen, 1., Mine, M., & Bishop, G. (1995). Combatting rendering latency. Proceedings of the 1995 symposium on interactive 3D graphics (Monterey, CA, April 9-12),19-24 and 204. [6] Holloway, R. L. (1997). Registration error analysis for augmented reality. Presence, 6 (4),413-432. [7] List, U. (1983). Nonlinear prediction of head movements for helmet-mounted displays. U.S. Air force Human Resources Laboratory, Technical paper AFHRL-TP-83-45, December. L~J Aliaga, D. G. (1997). Virtual objects in the real world. Commun, ACM 40,3 (Mar), 49-54. [9] Azuma, R. (1993). Tracking Requirements for Augmented Reality. Communications of the ACM, 36 (7): 50-51. Available Internet: www.cs.unc.eduJ -azuma/cacm.html. [10] Poot, H. J. G. de (1995). Monocular perception of motion in depth. Unpublished doctoral dissertation, Faculty of Biology, University of Utrecht, Utrecht, The Netherlands. [11] Pasman, W., Schaaf, A. van der, Lagendijk, R. L., & Jansen, F. W. (1999). Accurate overlaying for mobile augmented reality. To appear in Computers & Graphics, 23 (6). [12] Gortier, S. J., He, L., & Cohen, M. F. (1997). Microsoft technical report MSTR-TR- 97 -09. Available Internet: http://www.research.microsoft.coml-cohen. [13] Shade, J., GortIer, S., He, L., & Szeliski, R. (1998). Layered depth images. Proceedings of the 25th annual conference on Computer Graphics (SIGGRAPH'98), 231- 242. 54 INDEPENDENCE OF SOURCE AND CHANNEL CODING FOR PROGRESSIVE IMAGE AND VIDEO DATA IN MOBILE COMMUNICATIONS A. van der Schaaf and R.L. Lagendij k TU Delft, Mekelweg 4, 2626 CD Delft, The Netherlands, A. vanderSchaaf@ITS.TUDelft.nl Abstract-- In this paper we assess the independenee of the optimization of source and channel coding parameters. We propose a method to separate the source and channel coding optimization as much as possible while maintaining the possibility of joint optimization. We theoretically derive key parameters that must be passed through an interface between source and channel coding. This separation greatly reduces the complexity of the optimization problem and enhances the flexibility. 1. INTRODUCTION A usual communication setup (see Fig. 1) contains a source and a channel with given characteristics, and a source encoder and a channel encoder with parameters that can be tuned. In order to utilize the limited capacity of the channel efficiently, the parameters of both encoders must be carefully matched to the characteristics of both the source and the channel. According to Shannon's separation principle [1] the source and channel coding can be separately optimized. More precisely: the channel encoder can be optimized with respect to the channel characteristics and the source encoder can, independently, be optimized with respect to the source characteristics. This well-known result from information theory, however, assumes a stationary channel and an infinitely long coding delay. These conditions are generally not satisfied for mobile communications, in which case the channel is inherently time-varying and the applications often require small transmission latency. Therefore, source and channel coding must be jointly optimized. In this case the parameters of source and channel encoding are jointly adapted with respect to both the source and channel characteristics. Joint optimization, unfortunately, is much more complicated than independent optimization. Moreover, joint optimization often involves specific details of the implementation of both source and channel coding (e.g. Source Source Channel Channel encoder encoder Characteristics Characteristics Parameters Parameters Figure 1. Overview of the communication chain. The parameters ofboth the source and channel encoder must be optimized for the given source and channel characteristics. 55 [2]), which compromises the system flexibility. Therefore, it is desirable to keep the source and channel coding as independent as possible. But, at the same time, we want to approach the efficiency of the joint optimized solution. II. OBJECTIVES In this paper we assess the independenee of the optimization of source and channel coding parameters. We propose a generic setup that uses a Quality of Service (QoS) interface (cf. [3]), which passes relevant information between source and channel coding in a restricted and clearly defined way. In the scheme that we propose the source coding parameters only depend on the source characteristics and the parameters that are passed through the QoS interface (see Fig. 2). These passed parameters give restricted information on the channel characteristics to the source coding optimization. Similarly, the channel coding parameters only depend on the channel characteristics and the restricted information about the source characteristics that is passed through the QoS interface. In this framework the source and channel encoder can be jointly optimized with respect to both source and channel characteristics. But, at the same time the source and channel coding parameters are not directly dependent. This allows the source and channel encoder to adapt relatively independently to changes in the source and channel characteristics. Figure 2. A QoS interface is applied to separate source and channel coding optimization.The interface passes relevant informationthat is needed to achieve the joint optimal solution. In this paper we will determine which parameters must be passed through the QoS interface to achieve maximum efficiency while maintaining independence. We consider progressively encoded data, image, and video sources and a mobile channel that is time- varying with respect to its capacity (bit-rate) and reliability (bit-error rate). This work is theoretical in nature and we do not make assumptions on specific implementations of the source and channel coding schemes. Ill. SOURCE MODEL In a progressively coded source the first bits in the data-stream represent the largest portion of variance of the original signal. Each successive bit represents an enhancement to the information that is encoded by the previous bits. An important property of a progressive bit-stream is that it can be truncated anywhere, and still the original signal can be reconstructed with minimum distortion. We consider only progressive codes for two reasons. First, they are common in image and video coding (e.g. wavelet and 56 predictive codes). Second, they are well suited for transmission over time-varying channels (because they can easily be truncated). We assume that the bit-stream from the source encoder to the channel encoder is divided into blocks. Each block contains an independent set of progressively encoded data, for example, representing a single image or a group of pictures. The block length ({) is a source coding optimization parameter. We will call the portion of the variance that is encoded by the I bits in the block the 'encoded variance', which equals the variance ofthe original signal minus the variance of the distortion due to truncation of the bit-stream. The relation between block length and encoded variance characterizes the source. This source characteristic depends on the type of information that the source represents and can be theoretically calculated using rate-distortion theory (e.g. [4]). We considered the following sources: data sets (random numbers), still images, and moving images(video) See Fig. 3 for an overview ofthe characteristics. Large data / / / Video :/ 0.2 .', / ( 4000 6000 Block length (I bits) Figure 3. Progressive sources are characterized by the encoded variance as a function ofthe number of bits ({) for encoding. Variances are normalized such that the maximum is unity. • Random numbers can be progressively encoded as successive bit-planes. The encoded variance of m random numbers in a block of 1 bits is then in good approximation proportional to 1-2-I/m. This characteristic depends on m and reaches asymptotically a constant value for large I. The encoded variance reaches the asymptote more quickly for small data sets (m«{) than for large data sets (m~{). This behavior is illustrated in Fig.3. • The characteristic for still images can be derived from the l/f/ power spectrum of natural images [5]. The encoded variance is calculated to be proportional to log (1+ 1). This characteristic is very steep for smalll (see Fig. 3), which shows that much ofthe variance of still images can be encoded in the first few bits. An asymptotic value for large I is never reached, however, which shows that successive bits can always encode new information (like new subbands). • The characteristic of video (moving images) is derived from the 1/ ills power spectrum, which is given for highly moving images in [6]. The derived encoded 57 variance as a function of I for video is proportional to.Ji . This characteristic is more 'balanced' than that of still images, in the sense that the encoded variance is more equally represented by all bits and relatively less of the variance is encoded by the first few bits (sees Fig. 3). We assume that ifthe bit-stream is corrupted by an error that all following data up to the next block is lost, effectively truncating the bit-stream at the first error. This is a natural property for progressively encoded data, because the successive bits encode enhancements on the information of previous bits. IV. CHANNEL MODEL The channel coding that we consider consists of mapping the source bit-stream onto data packets and protecting the data with forward error proteetion (FEC). The maximum number of correctable bit-errors within a packet is calculated theoretically. To this end we use two theoretical bounds: the sphere packing bound and the random coding bound [7]. These are upper and lower bounds, respectively. Because the two bound give very similar results we only present those that are obtained using the sphere packing bound. The packets of length n contain k source bits (k:O; n), such that n-k bits are spent for error protection. The values of nand k are channel coding optimization parameters. We align the packets with the data block boundaries, but experiments indicate that this alignment is not critical to our results. After the channel coding the packets are subsequently sent over a mobile channel with variable characteristics. The channel characteristics that we consider are the capacity (expressed as bit-rate, which denotes the number of available bits r per block of data) and reliability (expressed as bit-error rate, which is the error probability p of a single bit). If a received packet contains more bit-errors than can theoretically be corrected by the FEC, than all data in the packet (and consequently all following packets) is considered corrupt. V. METHOD Given the characteristics ofthe source and the channel and the values ofthe optimization parameters we can calculate the theoretical efficiency of the communication chain (including source and channel coding). To this end we first calculate the average variance that is transmitted without uncorrectable errors. This result follows from summing the signal variance encoded byeach packet and considering the probability that the packet and all previous packets are not corrupted by transmission. To obtain a normalized number of efficiency we divide the average encoded variance by the theoretical maximum variance, which is obtained from the rate distortion characteristic of the source and the Shannon capacity [1] of the channel. Note that the theoretical maximum is only used for normalization and that it does not depend on the optimization parameters. With this method we are in position to solve the joint optimization problem on a theoretical and quantitative basis. VI. RESULTS For fixed source and channel characteristics, we can optimize the channel parameters n and k. These parameters also determine the block length I of the source encoder Cl = r·k/n). The obtained efficiency as function of n (packet length) and n-k (the number 58 bits per packet for error protection) is Plotted in Fig. 4. We see that for any choice of na suitable k can be found, such that the efficiency is close to unity. However, large packet length n gives quantitatively the best results. Therefore, n should be chosen as large as possible. Here we must keep in mind that there are other restrictions to n, for example the maximum allowed latency. >- 0.8 u t: 0.6 al ·u 0.4 iE UJ 0.2 Figure 4. Efficiency as a function ofpacket length (n) and number of bits per packet for error proteetion (n-k). The source characteristic is that of video and the channel characteristics are bit-rate r = 104 bits and bit-error rate p = 10-2 If the packet length n is fixed, then the number of source bits per packet k must be chosen such that the efficiency is optimized. This is illustrated in Fig. 5. We see that the efficiency as a function of k depends on the source type, but for each type an optimum 0.8 >- u 0.6 t: al 'u iE 0.4 UJ 0.2 k Figure 5. Efficiency as a function of k for different progressive sources and fixed packet length (n = 1000). Channel characteristics are as in Fig. 4. 59 efficiency close to unity can be obtained. At the left ofthe optimum (small k) the source characteristic is reflected: if k decreases, then the block length [decreases proportionally and less bits are available to encode the source (cf. Fig. 3). At the right (large k), we see that the efficiency drops because of insufficient proteetion against channel errors. Thus, the amount of bits spent on source coding and the amount of bits spent on error proteetion must be carefully balanced with respect to both the source and channel characteristics. We can find the optimum number of source bits per packet (k) byexhaustive search over all possible values of k. The optimum value for k is not a constant. It depends on the bit- error rate p of the channel as shown in Fig. 6. The optimum value of k also depends on the packet length n (not shown). ... .... .............. ~ Large data Image Video 950 ~ "0 Q) N Small data 'E :p 900 a. •...,_, " 0 '"'' \ '-, \~ 850 -5 -4 -3 -2 log10(p) Figure 6. The value of k in the optimized system as a function of p for different progressive sources and fixed packet length (n = 1000). Channel characteristics are as in Fig. 4. Instead of directly looking at the channel coding input parameters n and k, we will now examine the result of error protection. The resulting bit-error probability (q) is calculated as the probability of an uncorrectable bit-error after channel coding and transmission. This variable depends on the channel coding parameters nand k and the channel bit-error probability p. In Fig. 7 the resulting bit-error probability (q) is given as a function of p for fixed n and optimized k. The irregular jumps in this plot are caused by the specific behavior of the channel coding (in this case given by the sphere packing bound): some specific combinations of n and k appear more favorable than other combinations. Apart from this irregular behavior, the resulting bit-error rate q in the optimized system is almost constant with respect to the channel bit-error rate p. The resulting bit error rate q is also almost equal for the three out of the four different source characteristics that are shown in Fig. 7. Only the small random data set (with an asymptotic characteristic) requires a different level of protection. Other results (not shown) indicate that the required level of proteetion depends on the available bit-rate r (and thus on the block length l). This is especially true for random data sets (with fixed size m) because of their asymptotic characteristic. For images and video data the optimum q decreases slowly (less than inverse proportional) when I increases. The required level of proteetion is almost independent of the packet length n. 60 -6 - ---o CT C, -8 o Large data Image Video Small data -5 -4 -3 -2 log10(p) Figure 7. The resulting error probability q as a function ofp for different progressive sources and fixed packet length (n = 1000) and optimized k. Channel characteristics are as in Fig. 4. VII. DISCUSSION We evaluated the transmission ofprogressive data over an error prone channel with use of packets that are protected with FEe. The performance of the optimized setup in our calculations is close to the theoretical maximum. The packet length n is not a critical parameter, but should be as large as possible. Usually the packet length will be restricted by the maximum latency that the type ofthe source (or application) allows. Therefore, the latency requirements must be passed forward through the QoS interface from the source to the channel coding. Then, at the channel encoder, a suitable packet length n can be calculated from the latency requirement, the bit-rate of the channel, and other factors, like the intemallatency of the channel and the time needed for computation. The net bit-rate ofthe channel (after channel coding) is required by the source encoder to determine the block length 1 of the compressed data. This parameter must be passed backward from the channel to the source encoder. We found that the resulting bit-error rate q is a determining variable to balance the source characteristics with channel coding for error protection. The 'level of protection' has already been used for joint optimization in literature (e.g. [8]), but here we are able to identify it on a theoretical basis as key parameter that links source and channel coding. The level of proteetion is a requirement that follows from the type of source. In our results the requirements were equal for all moderate source characteristics. Only very small random data sets required different level of protection. In practice, we expect more variety, because various data types differ in robustness and the perceptual effects of errors. Also, the required level of proteetion depends on the source coding parameter I. This means that the source encoder must control the level of protection. This requirement is passed forward through the QoS interface to the channel coding, where it determines (together with the bit-error rate p) how much error proteetion is needed. The notion of 61 'level of protection' is very general and can be applied to all specific implementations of source and channel encoders. VIII. CONCLUSION The main result we arrived at is that source and channel coding for progressive data in mobile image and video communication can be relatively independent. Passing only a few parameters (latency, bit-rate, and level of protection) is enough to obtain the joint optimized solution. In future work we want to verify these results experimentally using existing source and channel coding techniques. IX. REFERENCES [1] Shannon, C.E. & Weaver, W. "The mathematical theory of communication." Urbana: The University ofIllinois Press, 1949 [2] Morimoto, M., Okada, M., & Komaki, S. "Robust mobile transmission using hierarchical QAM." Signal Processing: Image Communication 12, pp. 127-134, 1998 [3] Tsu-Wei Chen, Paul Krzyzanowski, Michael R. Lyu, Cormac Sreenan and John Trotter "Renegotiable Quality of Service - A New Scheme for Fault Tolerance in Wireless Networks", Proceedings ofFTSC '97. http://www.cs.ucla.eduINRL/wirelessIPAPERIfinal.ps.gz [4] Kai!ath, T. "Rate-distortion theory: a mathematical basis for data compression", Prentice-Hall, New Jersey, 1971 [5] Schaaf, A. van der & Hateren, J.H. van "Modeling the power spectra of natural images: statistics and information", Vision Research 36, pp. 2759-2770, 1996 [6] Dong, W.D. & Atick, J.J. "Statistics ofnatural time-varying images", Network 6, pp. 345-358, 1995 [7] Peterson, W.W. & Weldron E.J. Jr, "Error-correcting codes", Colonial Press, 1972 [8] Ruf, M.J. & Modestino, J. W. "Operational Rate-Distortion Performance for Joint Source and Channel Coding ofImages", IEEE Trans. Image Processing 8(3), pp. 305- 320,1999 Acknowledgement-: This work was conducted within the Ubicom program (www.ubicom.tudelft.nl) and funded by the TU Delft, DIOC research program. 62 LART:Design and implementation of an experimental wireless platform. J. D. Bakker, F.e. Schoute Information and Communication Theory Group Faculty of Information Technology and Systems Delft University of Technology P.o. Box 5031, 2600 GA Delft The Netherlands TeJ./Fax: +31 15 278 3635/1843 E-Mail: bakker@mmc.et.tudelft.nl Abstract - A stack of protocols and rnethods enabling high speed wireless corn- rnrmicatîons has been developed. This paper discusses the design and inlplenlenta- tion of a wireless research platform that allows experirnents with this and other protocol stacks. A comparison is made with other experirnental ptatforrns. A perforrnance estirnation of the platforrn is presented. I. Introduction There is a great global interest in high-speed digital mobile communication systems. Many international consortia and working groups do research in this area, and have recently published results. At Delft University ofTechnology, two multidisciplinary research groups are active in this area: The Mobile Multimedia Communications (MMC) project [1] and the Ubiquitous Communications program (UbiCom) [2]. The MMC project has started in 1996 and considers video compression, user interaction and integration of mobile services into a working environment by supporting 'expertise at distance'. The UbiCom program, instituted in 1998, has as its goal to arrive at a system for wireless visual communications meant for augmented reality. This is achieved by focusing research on three areas: base station and personal transceiver; visual information processing and application; and system and application specification, emulation and evaluation. As both projects strive not only for high bandwidth but also for portability and low power consumption, protocol design is bounded by the performance of existing and (projected) future implementation possibilities. This paper presents the design and implementation of an experimental wireless platform that can be used to validate the performance, complexity and power usage of the protocol stack in a real environment. Section II discusses the protocols that are developed within the MMC project, and their impact on the platform. In Section III the system design is further explored, and compari- sons are made with other experimental platforms. Section IV presents the implementation of the system; conclusions and directions for further research are presented in Section V. 63 11.Transmission and Protocols The protocol stack for the system is shown in figure 1. This represents the research results from the MMC project; however the UbiCom system is similar in many areas. See Virtual Cellu'lar [3] for an overview of the directions of Multiple access UbiCom protocol research. In general the Network MMC system focuses on bandwidth where the UbiCom protocols emphasize system Link Reliable channel wide power reduction and control. The core of the MMC protocols is a hierar- OFDM Modulation chical hybrid frequency/time division multi- plex system (figure 2). Bandwidth is allocated figure 1 - protocol stack to users by the base stations (BS) in units called packets. This simplifies the access protocol, as collisions and the hidden terminal problem are eliminated. A further advantage is that mobile stations need only listen to slots that are allocated to them, which offers power savings. A full discussion of the structure of the MMC air interface can be found in [4]. Modulation Both the MMC and the UbiCom systems are intended to be used in the microwave bands with bitrates well over 1Mbit/second. Many traditional modulation techniques approach Frequency practical limits in systems with a very high operating frequency and a very large bitrate. In an indoor environment, high bitrates cause the bit time to be much smaller than the channel delay spread, resulting in multipath fading and a steep increase in the channel bit error rate (BER) by inter-symbol interference (IS!). Frame One of the systems used to minimize the data effects of multipath fading at high frequencies is Orthogonal Frequency Division Multiplexing (OFDM). Of an incoming data stream, m bits are modulated onto m different orthogonal carriers. As the resulting symbol time is m times longer than the bit time on the incoming stream, inter symbol interter- ence which is commonly caused by mul tipa th fading is reduced or avoided altogether. The merits of an OFDM system are described figure 2 - hybrid FTDMframe sircuture extensively in [5]. The MMC system uses an 64-carrier OFDM system with QPSK modulation 64 Reliable channel The OFDM layer offers an unreliable data transfer mechanism, as channel noise, signal blocking and interference from other users corrupt the received signalof the radio system. To create a reliable channel with multiple traffic classes, the Link layer is added (figure 3). The Dw.a -D- FrngmE'1J gel"",:,raiic.-1 Link uses an (128,106) extended - in -0- DeUt. ~ï){1 slcil BCH block code for the Forward Error Correction (FEC) and a 32-bit cyclic redundancy check (CRC). -D- These codes provide implementation flexibility in the receiver. The re- I Tl",fI$\'!]is:;1011 ceived bitstream may be decoded by .& either a simple hard-error decoder or Channel a more powerful soft error decoder [6], offering a trade-offbetween T D,'!)'.:] Dar", lii*fitê'fffr;g Pamlw":1l\'1' A.,>SigfllJ:>en! (;t'{(){ C(N1'IJt1f power usage and performance with- out the need for signaling. ~ Ji1-~r (e'>?s.&:l D13iaffiasselOOly ;,fIG I Fe:::; The Link accepts lP datagrams. Each datagram belongs to a traffic class; this traffic class determines Quality of figure 3 - internal structure of the Link subsvstem Service (QoS) properties like priority, maximurn acceptable delay (before the datagram is dropped) and per-bit power usage. Multiple access The multiple access control (MAC) layer distributes the available packet slots over all users. A distributed algorithm [7] runs on all base stations, maximizing throughput by minimizing inter-user interference. As the propagation at high frequencies becomes more like light, the likelihood of shadow- ing or blockage of the signal between a mobile user and a base station increases. To ameliorate this effect, a Virtual Cellular Network (VCN) [8, 9] setup is used. One of the properties of a VCN is that each of the individual base station can receive the signal trans- mitted by a user, thus reducing the outage probability caused by shadowing. This scheme achieves higher bandwidth efficiency by distributing downlink data for one single user over multiple base stations. On the uplink, the VCN enables multiple base stations to receive the signal from one single user, thus creating site diversity. Ill. Platform The previous Section has discussed the protocol stack that has been developed within the MMC project. A platform must at least be able to support these protocols in real time, to enable verification. This requires a number of building blocks (figure 4): 65 figure 4 - system architecture • a radio system. In a wireless platform a radio system is a first requirement. The radio should have suffi- cient bandwidth to transfer the modulated data. It must operate at a frequency that is comparable to that of the research target, and the system performance (in terms of noise and stability) • an AID-DI A converter. For modulation techniques like OFDM only digital modulation is practical, so an analog to digital interface is required between the radio and the modulator. This converter should have a resolution that is high enough not to have a large adverse effect on the signal to noise ratio at the input of the modulator [10]. The sampling speed must satisfy the Nyquist criterion with respect to the output bandwidth of the radio. • a modulatorl demodulator. The modulatorldemodulator consists of hardware capable of digital signal processing. Its spéed must be high enough to cope with the data offered by the AID converter. Like the converter. the resolution of its numerical representation should be high enough not to cause unwanted errors. • a linklMAC proc.essoL The linklMAC processor handles all higher-level protocol tasks. It should have enough power to keep up with the FEC, and enough memory to buffer datagrams that are waiting to be transmitted or reassembled. On a base station, it must be able to run the distributed MAC protocol. • a connection 'to the outside world. A platform that is to use real data streams must have some kind of connection to the outside world. On a mobile station this may be communication software and a display device; a base station in a VCN configuration needs a high-speed link to its neighbours. In addition to these subsystem requirements the entire platform should be portable and low power. Architecture To verify the protocols, the system architecture should be flexible enough to run only part of the stack with extensive debugging hooks, as well as the entire stack. If the platform is used not only for verification of existing protocols but also for experiments with new protocols, it should be powerful or expandable enough to support these. Note that the exact complexity of a yet-to-be-developed protocol is hard to estimate in advance. These demands are most easily fulfilled with a modular, scalable architecture, as shown in figure 5. All tasks in the digital domain are executed on a general purpose microprocessor; this is known as software radio [11]. Performing the signal processing tasks in software adds flexibility and shortens the development cycle. An optional high speed network connects a 66 Radio '-if CPU board figure 5 - modular architecture for software radio experiments based on general purpose CPU boards. The dashed parts effer sealability. variable number of processors, offering the required scalability. This creates the opportuniry to run complex protocols divided over multiple processors. Other experimental platforms As high-capacity mobile communication is a 'hot topic', many industry and academic groups are involved in related research. Some of those build demonstrator platforms, such as the ACTS project Median [12]. The Median demonstrator [13] was designed to show the feasibility of the philosophy behind the Median design. Some components, like the FEC, are kept simple to allow the use of off-the-shelf solutions. The entire system is more mono- lithic than modular. As such it is more suitable for validation than for experimentation. The SORT Software Radio [14] has a more flexible architecture. The demonstrator is built around a custom card, the RealFAST. This card holds a Digital Signal Processor (DSP) and five Field Programmable Logic Arrays (FPGA). This allows the RealFAST card to imple- ment arbitrary algorithms up to the (fixed) capacity of the card. Expansion of aRealFAST card does not appear to be possible. Note that each architecturehas its merit. The Median demonstrator has high performance (up to 155 Mbit/second) and is well suited for validation; the RealFAST card offers flexibil- ity on moderately complex algorithms. The architecture presented in this paper has the advantage oflarger scalability than the other two. IV. Implementation The implementation ofthe Linux Advanced Radio Terminal (LART) [15] experimental platform conforms to figure 6. The radio is being developed externally. Operating in the 2.4 GHz ISM band, it has a bandwidth of 17 MHz which can be tuned anywhere in the 80 MHz wide band. Noise levels and stability are sufficient for OFDM operation; by synchro- nizing to an external source it is even possible to combine multiple transceivers for phased array experiments. The transceiver can be partially or fully powered down to conserve power. Two different AID converters are in design; alO bit model for minimum power usage in the mobile station and a 12 bit version for maximum dynamic range. According to [10] this is sufficient for QPSK. 67 The main element of the platform is the processor board (figure 6). The design goals for this element are: • low power • high performance • high IlO bandwidth • small form factor • affordable price The choice for the processor fell on the lntel StrongARM SA-II00. This processor still has one of the highest instruction/Watt ratios on the market. Furthermore, mature software devel- opment tools are available. Finally, a port of the Linux operating system exists, which allows the LART to have a similar work environment as a regu- lar UNIX workstation, significantly reducing application development time. The LART has an Ethernet interface available; the switched network is figure 6 - LAR T main processor board under development. Performance To evaluate the performance of the StrongARM for signal processing tasks we implemented the elements of the Transm.it Speed (ns/bit) Euergy (uJ/bit) lower layers of figure 1. FEC encoding 10 8 Table 1 lists both the time taken for each steps OFDM encoding 125 104 in nanoseconds per raw Total 135 112 transmitted bit, and the estimated energy con- Receive Speed (us/bit) Euergy (nJ/bit) sumption in nanoJoules OFDM synchronization 60 :'0 per raw transmitted bit. The energy estimates Frequency correction 15 12 are based on [16), OFDM decoding 125 104 assuming that DSP tasks are comparable to Time correction 15 12 H.263 decoding. The FEC decoding 15 12 OFDM synchronization algotithm used is the Total 230 191 traditional correlation table 1 - performance of the StrongARM processor plaiform 68 with the guard interval as described in [17]. The FEC uses hard decoding. This indicates that one processor board can send over 7 Mbit/secónd or receive over 4 Mbit/second. On a 17 MHz QPSK channel with 16 time slots, that corresponds to almost four slots sending or two receiving; in a base station setup five synchronized processor boards can saturate the channel. Note that the totals are calculated and not yet measured; the total time may increase or decrease, depending on processor caching issues. V. Conclusion The test results demonstrates that it is possible to use the LART platform to do OFDM in software radio at data rates over 1 Mbit/second. The platform offers enough flexibility to both evaluate the existing protocols and do research on new algorithms. The LART is very much a work in progress. As the computation time is dominated by the modulation, it may be possible to use 16QAM instead of QPSK to achieve higher rates and lower consumed energy per bit. References [1] Mobile Multimedia Communications research project, http://www.mmc.tudelft.nl/ [2] Ubiquitous Communications program, http://www.ubicom.tudelft.nl/ [3] Bohdanowicz, A., C. van den Bos, M. DitzeI, W. Serdijn, G. Janssen, E. Deprettere, "Wireless Link using OFDM Modulation: Performance prediction, Modeling and Implementa- tion", ProRISC '98, Mierlo, November 1998. [4] Bakker,].D., F. C. Schoute and R. Prasad, "An Air Interface for High Bandwidth Cellular Digital Communications 011 Microwave Frequencies ", Proceedings of IEEE Vehicular Tech- nology Conference VTC '98, Ottawa, May 1998. [5] Chimini, L.]., "Analysis and simulation of a digital mobile channel using orthogonalfrequency division multiplexing". IEEE Transactions on Communication, vol. COM-33, no. 7, pp. 665-675, July 1986. [6] Bakker, J.D., R. Prasad, "An implementation of a soft error decoder in a multipath faded COFDM system ", Proceedings of IEEE International Symposium on Spread-Spectrum Techniques and Applications ISSSTA '98, Sun City, September 1998. [7] Bakker, J.D., R. Prasad, "A Multiple Access Protocol lmplementatiori for a Virtual Cellular Network", Proceedings IEEE Vehicular Technology Conference VTC '99 Spring, Houston, May 1999. [8] Kim, H.].,].P. Linnartz, "Virtual Cellular Network: a new wireless communications architecture with multiple access ports," Proceedings of IEEE conference on Vehicular Technology VTC '94, Stockholm, June 1994. [9] Bakker,].D., R. Prasad, "An uplink protocol implementation in a virtual cellular network", Proceedings First Symposium on Wireless Personal Multimedia Communi- cations WPMC '98, Yokosuka, November 1998. [10] Bogenfeld, E., R. Valentin, "Influence of Clipping, Quantization and Non-Linear HPA on OFDM for a 60 GHz WLAN System", Proceedings of ACTS Mobile Sum- mit, Granada, November 1996. [11] Mitola,]., "The Software Radio Architecture", IEEE Comms. Magazine, May 1995. [12] ACTS project Median. http://www.tno.nllinstitlfel/ div5/median.html 69 [13] Median final system design. http://www.imst.de/mobile/median/public/md3.zip [14] Herbrig, H., L. Lundheim, N.K. Rossing, "SORT SW-Radio - From Concept To- wards Demonstration", Proceedings of the 4th ACTS Mobile Communications Sum- mit 1999 (AMOS), Sorrento,]une 1999. [15] Linux Advanced Radio Terminal. http://www.1art.tudelft.nl/ [16] Pouwelse,] .A., K. Langendoen, H. Sips, "Dynamic voltage scaling on a low power micro- processor", submitted to Mobicom 2000, Boston. [17] Van de Beek, J.J., M. Sandell, P.O. Börjesson, "MC estimation of time and frcqufIlcy k(n) COs(llwk(n) + cpdn», k=1 where aken), Wk(n) and CPk(n) are slowly time varying parameters, such that Ilx - _til is minimized for some norm and some value of K. Conventional sinusoidal coders divide the signal into segments and assume the parameters ai, Wk and CPk to be constant throughout each segment. In reconstructing the signal, overlap-add or interpolation techniques are used to obtain a smooth transition of the reconstructed signal at the segment boundaries [3]. Audio signals with so-called "attacks" or "transients", like the signal shown in Figure I (upper subplot), contain fast variations in amplitude and cannot be modeled efficiently as a sum of constant-amplitude sinusoids, We, therefore, extend the con- ventional sinusoidal model by allowing the amplitude to evolve exponentially. To do so, we introduce a damping coefficient I Yk E IRand define K d _t(ll) = LakeY'" COS(Wkl1 + cpd = LrkP~, 0 S 11 < N, (I) k=1 k=1 1 The damping coefficient Yk can be any real number. Positive values of Yh therefore, cortespond to expanding amplitudes rather than to truly damped amplitudes. 78 where re, Pk E te. N E N is the segment length. The parameter rk determines the initial phase and amplitude, while Pk determines the frequency and damping. Note that d = 2K. Equation (I) expresses x (n) as the sum of d damped (complex) exponentials, in the remainder of this paper referred to as components. In order to be able to use this model, we need an analysis method to determine the parameters (rk, pd for cl components, that together form a good approximation of a given signal segment. Selecting the desired model parameters is not a trivial task. Signal analysis in conventional sinusoidal coders is based on Fourier transform methods. However, these methods take for granted that the sinusoidal components have a constant amplitude and can, therefore, not be used to determine the damping coefficients. Alternatively, we can use exponential estimation algorithms used in, for example, system identification Or direction finding problems. In the typical situation that the number of data samples is much larger than the number of exponentials (as is the case in audio/speech coding), these methods lead to very large matrices that need to be inverted. Although these matrices are highly structured, the computational cost of the inversion grows more than linearly with the number of data samples [4]- 3. PARAMETER ESTIMATION In this section we concentrate on finding the model parameters that result in a least-square fit of the input data x eN. To facilitate the following discussion, we E first introduce some notations. Let P = (PI, ... , PilY E Cd, r = (rl, ... ,rd)' E Cl and define V" as PI N-I PI where the superscript' denotes matrix transposition. The problem of finding the least squares fit to a signal x can then be expressed as min IIx - VI'rll2 n.r Given P, the complex amplitudes r depend linearlyon the signal x, whereas the poles P depend in a nonlinear manner on x. The problem can thus be separated into finding a set of nonlinear parameters P and a set of linear parameters r. The approach com- monly taken is to optimize the nonlinear parameters first, using a gradient optimization 79 algorithm, and subsequently solving for the linear parameters. This separation has the advantage that the rate of convergence in the optimization is increased [5] and that the computational complexity of each iteration is reduced at the same time, as compared to using gradient optimization for both the linear and nonlinear parameters. Given p, we can construct V" and find the optimal amplitudes from the nor- mal equations r = (V;V,,)-I V,;x, where the superscript • denotes matrix transpo- sition and complex conjugation, which enables us to write the minimization prob- lem as min" IIx - V,,(V,;V,,)-I V,;xI12. This, however, is equivalent to maximizing the projection energy, i.e., rnax., x" P x, where we defined the projection matrix P = V,,(V; VI')-I V;. Finding the optimum solution to the above mentioned optimization problem can be realized by using Newton's method. In nonlinear least-squares optimization where information about second-order derivatives is available, Newton 's method is to be pre- ferred above other methods like Gauss-Newton and quasi-Newton optimization [6]. The algorithm presented here differs from other algorithms based on Newton's method in that the poles themselves are used as the parameters in the gradient expression, rather than the coefficients of a polynomial of which the roots correspond to the desired poles. Since the objective function to be maximized is real valued, a necessary condition for a stationary point is that t he partial derivatives with respect to p is zero? [7], where p denotes the complex conjugate of p. That is, we define the complex gradient as ax' Px R(P) = -a---' IJ Let t:.p denote a change of the pole location. With this, the Newton equation is given by or, in matrix notation, (2) 2 Since the objective function to be optimized is real-valued, we could equally well set the partial deriva- tives with respect to p equal to zero, rather than to ij. However, the latter ones define the direction of the maximum change in the value of the objective function and are, therefore, more convenient to use here. 80 where 0 denotes-the zero element. Equation (2) can be solved by writing out the real and imaginary parts separately, which results in Re(g(p» ) + ( Re(HI + H2)(p) -Im(HI - Hz)(p) ) ( ïsp; ) = 0, ( Im(g(p» Im(HI + H2)(p) Re(HI - H2)(p) ïsp ; '--v--' '--v-' hip) H(f» "'If where tsp, and tsp; are the real and imaginary parts of 8.p, respectively. The quan- tities g(p), HI(p) and H1(p) can be determined by using some elementary calculus. We now have a 2d x 2d real-valued Hessian H and a 2d x I real-valued gradient li. At iteration 11, Newton 's method thus defines the update of the poles as p(lI) = p(II-I) + /s p, + i8.Py, Practical issues, like an indefinite Hessian, stopping criteria and/or safeguarding tech- niques are wel! described in literature and will, therefore, not be considered here. 4. CONSTRAINED POLE LOCATIONS In this section we discuss how two common constraints imposed on the pole loca- tions can be incorporated into the Newton equation. Assume that we have a set of, say m, (nonlinear) equality constraints Cj, .i = I ... ,m, imposed on the poles p and let J (p) denote the Jacobian matrix of the con- straints. It is well known [6, 8] that a necessary condition for optimality is given by h (p) = P (p )À, where À E C'" is the vector of Lagrange multipliers. Let Z (p) denote a matrix whose columns form a basis for the null space of the Jacobian J, that is, the columns of Z (p) form a basis for the subspace of all feasible pertur- bations. With this the condition h(p) = P(p)À is equivalent to ZI(p)h(p) = o. In words, a necessary condition for a stationary point of the constrained optimiza- tion problem is that the projected gradient ZI (p)h (p) vanishes. The Newton equa- tion for the constraint optimization problem thus becomes ZI (p) (h + H (p) 6.q) = ZI(p)h(p) + (ZI(p)H(p)Z(p») 8.q' = 0, where 8.q = Z(p)8.q'. The quantity ZI(p)H(p)Z(p) is called the projected Hessian of the constraint optimization prob- lem. We now will consider two common constraints imposed on the pole locations. Firstly, we show how to optimize poles that occur in complex conjugate pairs. Sec- ondly, we consider the case where the poles are restricted to be located on the unit 81 circle. The former case results in real-valued signal reconstructions, whereas the latter case results in a reconstruction with undamped (complex) sinusoids. In the case we optimize for poles P«. k = 1..... d , which occur in complex conjugate pairs, we have that !:"Px.k = !:"Px,k+1 and !:"Py.k = -!:,.Py.k+1 for k = 1, 3, 5, ... ,d - 1. Hence, the Jacobian matrix is given by -1 -1 I(p) = Given I (p), we can find Z(p) using, for example, a singular value decomposition of L, which results in an orthonormal basis for the subspace of all feasible perturbations. In the case that we restrict the poles to lie on the unit circle, we have that P« = ei'u,. Hence, it holds that cos(Wd!:"Px.k + sin(wd!:,.py.k = I for all k = I, ... ,d, so that the Jacobian matrix in this case is given by cos(w,) lep) = ( sinew,,) ) The two constraints can be straightforwardly combined to optimize for poles which occur in complex conjugate pairs and lie on the unit circle at the same time. 5. SEGMENTATION As mentioned before, attacks can be represented very efficiently by using the ex- ponential data model. The reason for this is that attacks can almost perfectly be de- scribed as the impulse response of a linear time-invariant system, which is of the form (1) with Ipkl ::s: 1 for all k. In order to model these attacks with a minimum number of components, it is important that the attack starts at ri = O. If this condition is not sat- isfied, we have to model the signal with considerable more components, the additional components needed to compensate for the samples preceding the attack. To find an "optimal" time segmentation we used the algorithm proposed in [91- This algorithm divides the input signal x into M subsignals and tries, by combining these subsignais, to find the partitioning of x that minimizes the distortion given a 82 target bit budget or a given number of components. This means that the algorithm gives the optimal time segmentation of x, as well as the number of components to allocate to the individual segments. 6. EXPERIMENTAL RESULTS In this section we discuss results obtained by computer simulations of the above mentioned algorithm. The input signal we used consists of 320 samples of a recording of a castanet, sampled at a rate of 8 kHz (40 ms). We took the minimum segment length equal to 32 samples (4 ms). The reconstruction of the signal was done using overlap-add techniques, where the overlap between adjacent segments was 32 samples, independent of the length of the segments. The distortion measure we used is the squared-error distortion measure. Figure 1 gives the result when reconstructing the signal with classical Fourier- based techniques. The upper subplot shows the original signal, the middle one the reconstruction and the bottom one the reconstruction error. The vertical lines in the plot correspond (0 the segment boundaries. For each segment the number of allocated components is shown. Hence, the total number of components used in this case is 22. The corresponding signal-to-noise ratio (SNR) is 12.0 dB. For comparison, exper- iments using fixed-length analysis showed that we needed approximately 40 compo- nents to obtain a comparable SNR. Figure 2 gives the result when reconstructing the signal with the algorithm proposed in this paper. Again, the upper subplot shows the original signal, the middle one the reconstruction and the bottom one the reconstruc- tion error. The total number of components allocated in this case is only 11, hal f the number needed in the classical approach. The resulting SNR in this case is 11.6 dB. 7. CONCLUSIONS We have investigated the modeling of audio/speech signals with complex exponen- tiaIs. We showed that such modeling (using a proper segmentation) can very efficiently represent attacks in audio signals, one of the main bottlenecks in state-of-the-art audio coders. We presented an algorithm for finding the model parameters which is based on Newton's method. This algorithm differs from other algorithms based on Newton's method in that the poles themselves are used as the parameters in the gradient expres- sions, rather than the coefficients of a polynomial of which the roots correspond to the desired poles. We showed that, using the proposed algorithm, the total number of components needed for reconstruction can be significantly reduced. 83 Figure 1: Reconstruction with 22 un- Figure 2: Reconstruction with 11 damped damped components obtained by using components obtained by using the pro- classical Fourier-based techniques. posed Newton-based algorithm. 8. REFERENCES [1] D.W. Griffin and J .S. Lim. Multiband excitation vocoder. IEEE Trans. on ASSP, 36(8): 1223-1235, August 1988. [2] W.B. Kleijn and K.K. Paliwal, editors. Speech coding and synthesis. Elsevier Science Publishers, Amsterdam, 1995. [3] R.J. McAulay and T.F. Quarieri. Speech analysis/synthesis based on a sinusoidal representation. IEEE Trolls. 011 ASSP, 34(4):744-754, August 19R6. [4] M.P. Clark and L. Scharf. On the complexity of ICQL algorithms. IEEE Trans. on Signal Processing, 40(7): 1811-1813, July 1992. [5] A. Ruhe and P.À. Wedin. Algorithms for separable nonlinear least squares prob- lems. SIAM Review, 22(3):318-337, July 1980. [6] P.E. Gill, W. Murray, and M.H. Wright. Practical Optimization, Academic Pres", London, first edition, 1981. [7] D.H. Brandwood. A complex gradient operator and its application in adaptiv~ array theory. lEE Proceedings, 130, parts F and H(l):11-16, February 1983. [8] D.G. Luenberger. Introduetion la Linear and Nonlinear Programming. Addison- Wesley Publishing Company, 1973. [9] Z. Xiong, K. Ramchandran, C. Herley, and M.T. Orchard. Flexible tree-structured signal expansions using time-varying wavelet packets. IEEE Trans. on Signal Pro- cessing, 45(2):333-345, February 1997. 84 Low-Complexity Scalable Image Compression U sing the DCT René J. van der Vleuten* Richard P. Kleihorst! Christian Hentschell Philips Research Laboratories, Eindhoven, The Netherlands We have developed a scalable image compression scheme with a good performance-complexity trade-off. Like lPEG, it is based on the 8 x 8 block dis- crete cosine transform (DCT), but it uses no additional quantization or entropy coding (such as Huffman or arithmetic coding). Bit-rate or quality scalability is enabled byencoding the DCT coefficients bit plane by bit plane, starting at the most significant plane. The individual bit planes are efficiently encoded using simple rectangular zones. Our method offers about the same compression per- formance as lPEG, but at a lower complexity and with the additionalfeature of scaling the bit rate by simply truncating the generated bit string. 1 Introduetion The goal of scalable compression methods is to generate a bit string that can be truncated at any desired point, while always giving the best possible quality (e.g. peak signal-to- noise ratio, PSNR) for the selected bit rate. The availability of such a scalable bit string considerably simplifies the system design by practically eliminating the need fur a buffer control method when fitting the data to a certain given bit rate or memory size. In particular, the same single bit string simultaneously serves different channels with different bit rates, without the need to re-encode the original data. Thus, real-time adaptation to varying channel capacities (with application to the Internet or wireless communication channels) is very much simplified. A particular form of scalable compression, known as EZW (embedded zero-tree wavelet coding) was proposed in [1]. It was later improved upon in [2] by a method known as • Rene, van.der. Vleuten@philips.com tRichard.Kleihorst@philips.com 'Christian.Hentschel@philips.com 85 SPIHT (set partitioning in hierarchical trees). Although embedded zero-tree coding was initially applied only to wavelet transform coefficients [1, 2], it Was later also proposed for discrete cosine transform (DCT,[3]) coefficients [4, 5, 6]. In [4, 5], the corresponding DCT coefficients from each 8 x 8 DCT block are combined and rearranged into a wavelet-like hierarchical tree. Then, the encoding methods of [1] or [2] can be applied. The disadvantage of the scalable methods of [1, 2] is their complexity. It turns out, however, that complexity reductions are possible without major losses in performance. For example, the methods of [4, 5, 6] are based on the DCT instead of the wavelet transform, which reduces the complexity of the transform at the cost of a PSNR reduction of 0.6-1 dB [7]. A further complexity reduction for DCT-based scalable compression was achieved in [6], by not making use of trees (similarly, scalable wavelet transform coding without the use of trees was proposed in [8]). After the elimination of trees the complexity of the compression schemes is determined to a large extent by the entropy coding that is used. In [6], arithmetic coding is applied, whereas in [8] it is observed that the same performance as obtained by using arithmetic coding can also be obtained using adaptive Rice coding. We propose to take the complexity reduction one step further by using a DCT-based scheme without entropy coding. This results in a scalable compression scheme with a very corn- petitive complexity-performance trade-off. In particular, we will show in this paper that we can achieve the performance of the baseline JPEG scheme [3], at a lower complexity, while adding the scalability feature. Our development of a very low complexity compression scheme is motivated by the applica- bility for embedded compression. In this context, the name refers to compression that takes part inside a system. An example thereof is the compression of the image memory in a hy- brid video encoder or decoder (such as MPEG or H.263) [9, 10). By reducing the size of the memory, it can be integrated on the same die as the logic, thus enabling a single-chip solution with significant system cost and power consumption benefits compared to using ex- ternal memory. To achieve the most benefit, the cost of the required embedded compression and decompression logic should of course be small compared to the savings achieved by re- ducing the memory size. Hence the need for a low-cost (i.e., low-complexity) compression scheme. The new scalable compression scheme is explained in Section 2 and its performance is eval- uated in Section 3. Section 4 concludes the paper. 2 The compression scheme As usual for DCT-based image compression, the image is divided into blocks of 8 x 8 pix- els, which are independently transformed. The DCT coefficients are then represented in a signed magnitude binary form and the magnitudes are output bit plane by bit plane, starting from the most significant plane. In this way, a truncatable bit string is generated, since the 86 most significant information occurs first in the string, followed by subsequent refinement information. To encode a whole image, we first encode the most significant bit plane for all DCT blocks. Then, the next bit plane is sent for each block in the image. This is repeated until the least significant bit plane has been sent. In this way a scalable bit string is obtained that can be truncated at any point in order to achieve a certain desired bit rate or quality. In order to achieve compression, we must efficiently transmit the DCT coefficient bit planes. To do so, we distinguish between two classes of coefficients, namely significant and in- significant coefficients. During the encoding of a certain bit plane, a significant coefficient is a coefficient whose magnitude had a one in any of the higher bit planes (which have already been encoded). An insignificant coefficient is a coefficient with all zeroes on the higher bit planes. We distinguish between these two classes because they have very different probability den- sity functions. A bit in the current bit plane of a significant coefficient has about equal probability of being a zero or a one. Therefore, there is not much to be gained by trying to more efficiently encode it. A bit in an insignificant coefficient, however, is very likely to be a zero. Furthermore, because of the properties of the DCT (and typical images), the significant and insignificant coefficients tend to be clustered. This enables us to efficiently encode many "insignificant zeroes" by a zonal coding technique. Specifically, our encoding is based on the observation that the coefficients with larger mag- nitude tend to be those with the lower horizontal or vertical frequencies. Because of this, a zig-zag scan order is used for JPEG [3], for example. The zig-zag scan order is signal independent and assumes the data is concentrated in the upper left triangular zone of the transformed block. Although this assumption is true on average, we have found that the data for individual DCT blocks often has a bias for either the horizontal or vertical direc- tion. Therefore, a signal-dependent rectangular scan zone, also emanating from the upper left corner, produces a more efficient encoding of the coefficients [11]. We now give a detailed description of our scalable coding method. The DC coefficients (the coefficients in the upper left corner of each DCT block) are processed separately from the AC coefficients (all coefficients except the DC coefficient). Specifically, the DC coefficients from all blocks are collected and put into the bit string before any AC coefficient data. There are several reasons for doing so. Our experiments have shown that completely outputting the DC coefficients in the beginning results in a higher performance at low bit rates than outputting them bit plane by bit plane (together with the AC coefficients). Furthermore, the thumbnail "DC-coefficient image" can easily be extracted from the string for quickly scanning the image contents. Finally, the "DC-coefficient image" can be efficiently compressed using differential encoding (like in JPEG [3], e.g.) or even DCT coding [7]. In the compression scheme used in this paper, however, the DC coefficients are directly output to the string without further compression. 87 no newly significant coefficients found for this bitplane Bits for significant coefficients Positions and sign bits for RMAX CMAX~ the newly significant coefficients I I I~- I repeat for each bitplane - - - - - - - 3:-: Figure 1: Visualization of the coding technique. Figure 1 illustrates the procedure that is used to encode the AC coefficients. Initially, all AC coefficients are marked as insignificant. We then begin encoding the subsequent bit planes, starting at the most significant plane. First, for each significant coefficient the bit in the current plane is put in the string. When there are no significant coefficients, which is initially the case, since all coefficients are insignificant at the start of the procedure, no bits are put in the string). The bits for the significant coefficients are followed by a bit indicating whether there are any insignificant coefficients that become significant at the current bit plane. If there are, the positions and signs of those newly significant coefficients are transmitted. We repeat this procedure until all bit planes have been output to the string. To encode the newly significant coefficient positions in the string, we first output the dimen- sions of the rectangular scanning zone enclosing all the newly significant coefficients, using three bits each for the highest row (RMAX) and column (CMAX) of the rectangle, as shown in Figure 2. Then we output a single bit for each coefficient inside the rectangle to indicate whether the coefficient has become significant. If it has, we also outpur it!':sign bit. Since we do not have to output position and sign bits for the coefficients that were already significant, the position encoding is very efficient. After outputting all bit planes to the string, a near-lossless description of the image is ob- tained. It is not perfectly lossless because the DCT coefficients have been rounded to the nearest integers after the transform (just like in IPEG) and because the DCT and IDCT trans- forms are usually implemented using fast methods that are not perfectly reversible. However, when a perfectly lossless option is required for a certain application, this can be achieved with our compression scheme by applying a perfectly reversible lossless integer-to-integer DCT, which can be obtained using, e.g., the methods of [12] or [13]. Since the bit string describing the image may be truncated at any point, the decoder must be able to handle such truncations. We will assume that the decoder knows the exact length of the truncated string (after truncating the string, this information can be added as side infor- mation at the start ot the string; for a software implementation, the file length is available 88 CMAX 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RMAX 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Figure 2: Example where RMAX=3 and CMAX=4. from the operating system). The decoder then decodes all information that can be com- pletely retrieved from the string and ignores any truncated incomplete information at the end of the string (for example, referring to Figure 1, when the string was truncated in the RMAXJCMAX fields or between a newly significant coefficient's position and its sign bit). Finally, the decoded coefficients are adjusted to their expected value. This means that the insignificant coefficients are set to zero, whereas the significant coefficient magnitudes are adjusted to a value inside their "uncertainty interval". This is the interval between the lowest and highest possible magnitude of a coefficient, given the magnitude bits that were decoded from the stream. The lowest value is found by filling in zeroes for all missing (truncated) bits; the highest value is found by filling in ones. Initially, we chose the middle value of the interval, but it turns out that a value at one quarter from the lower boundary gives a higher performance; probably, this is related to the peaked distribution of the DCT coefficients [14]. Specifically, when the bit planes are numbered from 1, for the least significant plane, up to the most significant plane, when the bit planes down to plane k have been decoded for a significant coefficient, the value ofl2(k.3)Jis added to the coefficient magnitude. 3 Performance We compare the performance of our new compression scheme to that of the baseline JPEG standard compression [3], as implemented by the Independent JPEG Group [15] (release 6b). Figure 3 shows the operational rate-distortion curves for the two schemes for the Lena image [16]. No perceptual weighting was used for both schemes, since this produces higher PSNRs than using non-flat perceptually weighted quantization. 89 New JPEG o 0.5 1.5 2 2.5 3 3.5 4 4.5 5 Rate [bit per pixel] Figure 3: Performances of the new method and baseline JPEG for the gray-scale Lena image. For rates around 0.5 bit per pixel, our method is slightly less efficient than JPEG. This is probably because we do not do any compression of the DC coefficients, whereas JPEG does quantization, differential coding, and entropy coding on these coefficients. Then, in the range of 1 to 2.5 bit per pixel, the performances are virtually the same. For higher rates, there is again a small performance difference. However, at these rates the decoded image is indistinguishable from the original, so there is no perceivable performance difference between the two schemes. Typically, the edge of visibility of compression arte- facts is about 40-45 dB PSNR. Interestingly, for (near- )lossless compression at approximately 5 bit per pixel, our scheme catches up again with JPEG. After examining the objective PSNR measure, we also evaluated the subjective perceptual image quality and found that this depends on the order in which the DCT blocks are pro- cessed. Initially, we processed the DCT blocks in the usual scan order (i.e., left to right and top to bottom). However, at lower rates this gives rise to annoying artefacts, because of a clearly visible quality difference between the blocks "above" and "below" the truncation 90 Scalable compression module Area IPEGmodule Area [mrrr'] [mmê] J-D DCT hardware 0.40 l-D DCT hardware 0.40 64 x 14 DCT RAM 0.12 64 x 14 DCT RAM 0.12 64 x 3 shift register 0.06 ZZ scan memory 0.10 Miscellaneous 0.11 RLE, VLE, and Huffman table 0.26 Quantizer 0.35 Control 0.20 Total 0.69 Total 1.43 Table 1: Silicon areas of the scalable and baseline IPEG encoders for a 0.35J.LCMOS process. point. This can be understood by the fact that we add a complete bit plane at a time to each block; when the bit string is truncated, the blocks scanned before the truncation point will have received one bit plane more than the other blocks. Therefore we investigated different, non-linear, block scan orders and found that first scan- ning the DCT blocks in the middle of the image and "spiraling" out towards the edges, results in a higher perceived quality for many images. In particular for those images which have a single object located in the center of the image. We also found that the perceived quality can be further improved by adapting the scan order to each individual image. The adaptation we use is based on the fact that as the bit rate is lowered blocking artefacts first become visible in low-contrast/low-texture areas. As a contrast measure, we use the total number of signifi- cant coefficients for a block. This information can easily be computed from the bitstream by the decoder, so no additional bits have to be sent (i.e., the method is backward adaptive). In our implementation, both encoder and decoder re-adjust their scanning orders, according to the block contrast, at the start of each new coefficient bit plane. With the adaptive scanning order, the perceptual image quality of our scheme is approximately equal to that of IPEG. Since the performance of our scalable coding method is about the same as that of baseline IPEG, we compared its complexity with that of baseline IPEG as well [17]. Some hardware area figures for the most important blocks as well as the total area of this implementation are presented in Table 1. It can be seen that the total silicon area of the scalable DCT block coder is 0.7 mrrr' in a 0.35J.LCMOS process. This is half the area of a corresponding IPEG encoder with the same throughput, as can be observed from Table 1. 4 Conclusion We have developed a new scalable DCT-based image compression method. The method has about the same compression performance as the non-scalable baseline JPEG and a lower complexity. 91 References [1] J. M. Shapiro, "Embedded image coding using zerotrees of wavelet coefficients," IEEE Trans. Signal Processing, vol. 41, pp. 3445-3462, Dec. 1993. [2] A. Said and W. A. Pearlman, "A new, fast, and efficient image codec based on set partitioning in hierarchical trees," IEEE Trans. Circuits, Syst. Video Techn., vol. 6, pp. 243-250, June 1996. [3] W. B. Pennebaker and J. L. Mitchell, JPEG Still Image Data Compression Standard. New York, NY: Van Nostrand Reinhold, 1993. [4] Z. Xiong, O. G. Guleryuz, and M. T. Orchard, "A DCT-based embedded image coder," IEEE Signal Processing Letters, vol. 3, pp. 289-290, Nov. 1996. [5] Y.-A. Jeong and C.-K. Cheong, "A DCT-based embedded image coder using wavelet structure of DCT for very low bit rate video codec," IEEE Trans. Cons. Electron., vol. 44, pp. 500-508, Aug. 1998. [6] D. Nister and C. Christopoulos, "An embedded DCT-based still image coding algorithm," IEEE Signal Processing Letters, vol. 5, pp. 135-137, June 1998. [7J Z. Xiong, K. Ramchandran, M. T. Orchard, and Y.-Q. Zhang, "A comparative study of DCT- and wavelet-based image coding," IEEE Trans. Circuits, Syst. Video Techn., vol. 9, pp. 692-695, Aug. 1999. [8] H. S. Malvar, "Fast progressive wavelet coding," in Data Compression Conference (DCC '99), (Snowbird, UT), pp. 336-343, Mar. 29-31, 1999. [9] R. P. Kleihorst and R J. van der Vleuten, "DCT-domain embedded memory compression for hybrid video coders," J. VLSI Signal Processing, vol. 24, pp. 31-41, Feb. 2000. [10] P. H. N. de With, P. H. Frencken, and M. van der Schaar-Mitrea, "An MPEG decoder with embedded compression for memory reduction," IEEE Trans. Cons. Electron., vol. 44, pp. 545- 555, Aug. 1998. [11] R. Manniesing, R. Kleihorst, R. van der Vleuten, and E. Hendriks, "Implementation of lossless coding for embedded compression," in Abstracts of the SAFE & ProRISC/IEEE Workshops on Semiconductors, Circuits and Systems and Signal Processing, (Mierlo, The Netherlands), p. 99, Nov 25-27, 1998. [12] F. A. M. L. Bruekers and A. W. M. van den Enden, "New networks for perfect inversion and perfect reconstruction," IEEE J. Select. Areas Commun., vol. 10, pp. 130-137, Jan. 1992. [13] K. Komatsu and K. Sezaki, "Design of lossless block transforms and filter banks for image coding," IEICE Trans. Fundamentals, vol. E82-A, pp. 1656-1664, Aug. 1999. [14] R. J. van der Vleuten, Trellis-Based Source and Channel Coding. PhD thesis, Delft Univ. Tech- noL, The Netherlands, 1994. ISBN 90-5326-013-7. [15] "The Independent JPEG Group," 1998. http://www.ijg.org/. [16] "Lena image (gray)," 1993. ftp://ipl.rpi.eduipub/image/stiIUusc/gray/. [17] R. J. van der V1euten and R. P. Kleihorst, "Low-complexity scalable image cornpression," in Data Compression Conference (DCC 2000), (Snowbird, UT), pp. 23-32, Mar. 28-30, 2000. 92 VOLUMETRIC DATA COMPRESSION BASED ON CUBE-SPLITTING Peter Schelkens, Joeri Barbarien and Jan Cornelis Vrije Universiteit Brussel Department ofElectronics and Information Processing Pleinlaan 2 - B-I050 Brussels - Belgium Tel: +32 (2) 6293955 - Fax: +32 (2) 6292883 Email: Peter.Schelkens@vub.ac.be 1. Introduetion Magnetic Resonance Imaging (MRl), Computer-assisted Tomography (CT), Ultrasound (US) and Positron Emission Tomography (PET) are typical examples of medical imaging techniques that generate three-dimensional image data. To store or transmit this type of data, typically the image volume is considered as composed of multiple slices. These slices are then successively compressed and broadcasted. Contemporary transmission techniques make use of concepts like rate scalability, quality- and resolution scalability. In a 2D world this results in an image being encoded in different quality and/or resolution layers. For volumetrie sets the scalability paradigm also causes the introduetion of multiplexing mechanisms to select from each slice the correct layer(s) to support the actually required QoS layer. However, a disadvantage of the slice- by-slice mechanism is that potential 3D correlations are neglected. In recent past, 3D DCT based techniques have been proposed, but the weakness of such systems is that they hardly meet the requirements imposed by the scalability paradigm and additionally do not support lossless coding. The latter is extremely important for medical data since it allows to avoid liability problems, and to guarantee the integrity of the medical diagnosis. Hence, we have been looking for other methods that give better support for the above-mentioned requirements. Good candidates are techniques based on wavelet compression: the front- end of such encoders, i.e. the wavelet transform, decomposes the image volume in a set of subbands each containing an different spatial frequencies. The big advantage of those subbands is that also spatial information is still available, giving inherently support for resolution and quality scalability. Additionally, most of the volume energy is grouped in the lower frequency subbands, as illustrated in Figure I. Il. Cube-Splitting The new technique we propose is based on cube-splitting. It is derived from a 2D square partitioning coder (SQP) [1], which delivers for 2D medical images equivalent lossy coding results as Set Partitioning in Hierarchical Trees (SPIHT) [2], while it outperforms SPIHT for lossless coding. The proposed technique has the desirable property that it does not impose as a prerequisite that the spatial redundancy between wavelet coefficients in different frequency bands has to be exploited, which is advantageous if large homogenous volumes do occur, like in some types ofmedical images. 93 The coding principle is based on Successive Approximation Quantization (SAQ), with each bit-plane being encoded in the two classical stages..a significanee pass and a refinement pass. HLL HHH LHH Figure 1 - Rendered representation of a J -Level 3D wavelet transform of an MRJ volume (L: J D Low-pass filter; H: ID High-pass filter. During the first significanee pass the wavelet coefficients, newly identified as significant, are registered using a recursive tree structure of cubes (Figure 2). If a cube, having initially the size of the original data volume, contains a significant coefficient, it is spliced in eight sub-cubes. The descendent "significant" cube (or cubes) is then further spliced until the significant coefficients are isolated. The result is an eight-tree structure (Figure 2.d). As might be noticed, equal importance weights are given to all the branches. When a significant coefficient is isolated, also its sign - for which two code symbols are preserved - is immediately encoded. At that point, the refinement pass is initiated for the next bit-plane, refining all coefficients marked as significant in the eight-tree. Next, the significanee pass is restarted to update the eight-tree by identifying the new significant coefficients for the current bit-plane. During this stage, only the non-significant nodes are re-encoded, and the significant ones are ignored since the decoder already received this information. The complete significanee procedure can thus actually be seen as a tree growing process. The described procedure is repeated, until the desired bit-rate is obtained. 94 (a) (b) (c) "'" ':" (d) Figure 2 - When a significant wavelet coefficient is encountered, the cube (a) is spliced in eight sub-cubes (b), andfurther on (c) up to the pixel resolution. The result is an eight-tree structure (d) (SGN = significant node; NS = non-significant node). In the next significanee pass, the non-significant nodes are further refined. Ill. Experiments The coding performance was evaluated on two medical data sets: an MRl-set ofthe brain (512x512xl03, 8 bit), and an ultra-sound (US) recording of the prostate (256x256x256, 8-bit). The cube-splitting technique delivers excellent lossy compression results (up to 5 dB improvement in the 0.0625-1.0 bpp range, compared to multiple application of the 2D SQP encoder - Figures 3-8). For lossless compression we did notice onlya small improvement for the average coding gain: 1.6% for "MRl-brain" and 8.2% for "US prostate" (Figure 5). Similar results for lossless compression were also reported in [3] for linear prediction techniques. The above results were obtained without arithmetic encoding, since classical arithmetic encoding schemes do not deliver a significant contribution to the encoding performance of the quad-tree and cube-splitting coding. Hence, future research is targeted on context-based arithmetic encoding (CAE) to obtain a higher compression gain. Nevertheless, the non-explicit need for arithmetic encoding does give the proposed coding technique an advantage compared to for example SPIHT, since arithmetic encoding, and especially arithmetic decoding adds significantly to the total computational complexity. This is important in implementations where the cost-effectiveness of the algorithms represents one of the decisive criteria. Additionally, the proposed volumetrie data compression scheme also increases the bit-stream's potential for random-access support - and consequently it inherently facilitates region-of-interest (ROl) encoding/decoding - without sacrificing too much the compression performance. 95 60 55r- ~..-:o:<'",- ...~., .... ~.....,...,.,,,,,,;...._~,,,",,,.,,,,_,,,,. ~2~Cr~;p ,,,,,,,,_,~,=",_""",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,~,,,,,,,,,,,,,,,,,,,,,~_,,,,,=,,,,,_,~~~';~!, 50t-----------------------------------------------------------------------~ ~ ~"5"~~~~======-==-====~~==~~==~~~~~~~~~--------~==~~~.~ ~ 30 \' \.--- '. 0;; DF'P' "\ -------- ~~~-=~--~~ -_~..·;! ..~., ä.25·b~P· 25 I ! ~ ..-. ..• --...-,~~~_. _" _'"-_<-._"'.,_.,_._. __ --.. .,-.>'_.. .....r.... .~ .~ ~~~~, 10 20 30 40 50 60 70 80 90 100 2D öved-tree Slice Number -- 3D Cube-Splitting Figure 3 - Compression results per slice for MRI Brain (512x512x103, 8-bit) for both the 2D Quad-Tree technique and the 3D Cube-Splitting technique for bit-rates: 2, 1, 0.5, 0.25, 0.125 and 0.0625 bpp. The 3D codec clearly outperforms the 2D approach. The results were obtained with a lossless (5,3) integer lifting filter and without arithmetic coding. 45 40 ff"'..:.....:.'-rN__ ~__:_:::#À'._~~~_'·,-=·""~~'!..,'::'~'''Y.N'''''''''''''''~.t:i.. :.:':~. '<':!V'I"'~'!lC!i.'!"!.I'yy,M~~~'li!.~~f:!!".~t!.-ivW'>~~'<'M~"""~ m E- o: 35 ~ 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 1S0 190 200 210 220 230 240 250 Slice Number 20 Outld- tree -- JO Cube-Splitting Figure 4 -Compression results per slice for US-Prostate (256x256x256, 8-bit) for both the 2D Quad-Tree technique and the 3D Cube-Splitting techniquefor bit-rates: 2, 1, 0.5, 0.25, 0.125 and 0.0625 bpp. The 3D codec clearly outperforms the 2D approach. The results were obtained with a lossless (5,3) integer liflingjilter and without arithmetic coding. 96 Compression Ratio 3.5 MRI Brain (Cube-Splitting) - Average CR = 3.12 3.3 ./ -: 3.1 ......, ..... -, ~ 2.9 MRI Brain (Quad-Tree)· Avera.ge CR = 3.07 2.7 2.5 2.3 US Prostate (Cube-Splitting) . Average CR = 1.99 .. . ' t 2.1 - - - 1.9 , , / -' '" 1.7 -- - US Prostate (Quad-Tree) - Aver"ge CR = 1.B4 1.5 o 20 40 60 BO 100 120 140 160 tso 200 220 240 Slice Number Figure 5 - Lossless compression results per slice for US-Prostate (256x256x256, 8-bit) and MRI-Brain (512x512xl03, 8-bit) for both the 2D Quad-Tree and the 3D Cube-Splitting techniques. The results were obtained with a lossless (5,3) integer lifiingjilter and without arithmetic coding. The 3D codec performs only slightly better than the 2D approach. IV. Conclusions The proposed compression technique promises to be a good basis for 3D volumetrie coding. Excellent results were reported for lossy compression compared to the equivalent 2D techniques, with PSNR improvements up to 4-5 dB for all lossy compression ranges. These results clearly illustrate one ofthe important benefits ofthe 3D approach, delivering high quality images at significantly lower bit-rates than with 2D compression. Additionally, the proposed wavelet method fully complies with scalability requirements imposed on modem encoding and decoding engines. V. References [l ] Adrian Munteanu, Jan Cornelis, Geert Van der Auwera, Paul Cristea, "Wave let- Based Lossless Compression Scheme with Progressive Transmission Capability", International Journalof Imaging Systems and Technology, Special Issue on Image and Video Coding, John Wiley & Sons, Vol. 10, No. 1, pp. 76-85, January 1999. [2] Amir Said and William Pearlman, c c A New Fast and Efficient Image Codec Based on Set Partitioning in Hierarchical Trees", IEEE Transactions on Circuits and Systems, Vo1.6, pp. 243-250, March 1996. [3] S. Van Assche, D. De Rycke, W. Philips, I. Lemahieu, "Exploiting interframe redundancies in the lossless compression of 3D medical images", Proceedings of 97 PRORISC/IEEE Benelux workshop of circuits, systems & signal processing, STW Technology foundation, Mierlo, 25-27/11/99, pp. 521-527, 1999. VI. Acknowledgements This research was funded by the Institute for the Promotion of Innovation by Science and Technology in Flanders (IWT) within the Information Technology Action II Programme (project: "Image Processing for Integrated and Irrimersive Visualization"; Project number: IWT-980302). Figure 6 - Renderedview ofthe MRl Brain volumetrie data set compressed at 0.25 bpp. 98 Compressed with the Quad-Tree codec (PSNR = 22,43 dB). Compressed with the Cube-Splitting codec (PSNR = 26,84 dB). Figure 7 - Visual compression results for slice 55 of MRl Brain (at 0.25 bpp). 99 Compressedwith the Quad-Tree codec (PSNR = 26.85 dB). Compressed with the Cube-Splitting codec (PSNR = 30.96 dB). Figure 8 - Visual compression resultsfor slice 139 af us Prostate (at 0.5 bpp). 100 MAXIMUM LIKELIHOOD DETECTION OF MULTIPLICATIVE WATERMARKS Ton Kalker, Job Oostveen, Jean-Paul Linnartz* Consider a watermarked image, in which the watermark is embedded multi- plicatively (i. e, q, = Pi(l +Wi)). Under the assumption that the watermark is a known, binary valued sequence and the original image is an i. i. d. random sequence drawn from a Rayleigh distribution, we show that this watermark should be detected by squaring the obseruations before correlatinq them with the watermark. This is proven using a maximum likelihood estimation ap- proach. Extensions to the Gaussian and Weibull distribution are possible. INTRODUCTION Recently, watermarking of audio and video material has received much atten- tion. This interest has been driven by the fast digitalisation of such content. In their digital form, audio and video (or content, for short) can easily be stored and transmitted, but the downside is that they can be easily copied, as well, without loss of quality. To enable trade of electronic media, it is therefore of eminent importance that new techniques for copyright protection are developed. Digital watermarking forms an important building block of copyright protec- tion schemes. A digital watermark is an additional piece of information which is embedded in the content. The following is a list of the most common requirements for watermarking: the watermark should 1. be imperceptible; 2. survive AID and DIA conversion and common compression techniques; 3. be robust against geometric distortions (e.g., scaling). The imperceptibility requirement is, among others, a restrietion on the allowable energy of the watermark, relative to the energy of the content. The requirements 2 and 3, above, not only mean that the watermark should be left intact by the mentioned operations, but also that a distorted watermark should still be detectable. All of this shows the necessity of having a very strong and reliable detection method. 1 Philips Research Laboratories, Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands. e-mail: ton.kalker@ieee.org.job.oostveen@philips.com.j.p.linnartz@philips.com 101 In the literature it is very common that the watermark is embedded in an additive way, i.e., qi = Pi + SWi, where {Wi} is the watermark sequence, {Pi} is the original image, {qi} is the watermarked image and S is the strength of embedding. If the image {Pi} is unknown, such an additive watermark is optimally detected by correlation with the watermark. This can be proven using a version of the matched filtering the- orem. Many refinements and improvements of this detection scheme are known, for instance by using whitening or Wiener filters. We cannot give an exhaustive list of articles dealing with optimal detection of additive watermarks. Instead, we refer to the very recent papers [3],[4],[5],[6]. In this paper we want to look at a different way of embedding watermarks: multiplicative embedding. The watermarked coefficients qi are now formed from the watermark coefficients ui; and the original image coefficients Pi according to qi = Pi(1 + SWi), (1) where S is the embedding strength. This way of embedding was proposed, among others, by Cox et.al. [1]. It provides a way of perceptual masking of the watermark in the image. Weber's law tells us that for images the luminance of a pixel is a useful perceptual mask. It is well-known that straightforwardly embedding a watermark in an additive way will result in an image with perceptible artefacts. Instead, application of Weber's perceptual mask leads to the invisibility of the watermark. This mask would lead to the multiplicative embedding studied in this paper, as in equation (1). It is unlikely that straightforward correlation with the watermark pattern would be the optimal manner of detecting the presence of the watermark in the multiplicative case, as well. Derivation of a truly optimal detector would involve a likelihood ratio test. For this to be a tractable problem, one has to assume what the probability distribution of S is. For this reason, De Rosa et.al [2] did restrict to a fixed value of s, in their derivation of an optimal detector for multiplicative watermarks. We do not want to make any assumption on the distribution of s, as in practice the value of S is not known, a priori. It is chosen as a trade- off between visibility and robustness of the watermark. Moreover, many attacks 102 against the watermark can be modelled as a transformation of the image affecting the effective embedding depth s. Therefore we have to take a completely different approach, based on maximum likelihood estimation of s. Note that for the present discussion of detection methods it is not relevant whether Pi and qi are spatial variables (like the luminance values of a picture), temporal variables (like the sound intensity in an audio frame), DCT coefficients or any other set of representative variables. Of course, the particular choice may have a strong impact on perceptibility and robustness of the watermark, as well as on which statistical model is suitable for the image coefficients. MAIN RESULT In the present section we formulate and prove our main result: the derivation of a optimal estimation based detector for multiplicative watermarks. This is done under the assumption that the original data is modelled by a Rayleigh distribution. We show that under these assumptions, our detector consists of squaring the data and subsequently correlating with the watermark. We do not restrict a priori what values s can take. The Rayleigh distribution is a suitable model for Fourier coefficients [2]. The Rayleigh probability density function is given by f(x) = DCT coefficients are usually modelled by a Weibull probability density function: The Rayleigh distribution is a special case of the Weibull distribution, corre- sponding to (3 = 2 and ex = y'2cr. In the third section, we comment on extensions to Gaussian and Weibull distributions. In the sequel, we use the following notation for inner product and norm of N-tuples: (a, b) Ilall 103 Theorem 1 Consider the sequences P = {Pi: i = 1, ... , N}, W = {Wi: i= 1, ... , N} and Q = {qi: i = 1, ... , N}. Assume that P is an i.i.d. sequence of stochastic variables, drawn from a Rayleigh distribution with parameter a. More- over assume that W is a known, binary valued sequence (i. e., Vi : ui, = ± 1), satisfying (2) The decision variable d for a detector based on maximum-likelihood estimation of s is (3) The idea of the proof is as follows. We derive a maximum-likelihood estimator for s. That is, we derive the joint probability density function f(Q; s) for the observations Q = {q;}, given s. The maximum-likelihood estimate s is the value of s which maximises f for the observed values of qi. It follows that s is proportional to d = *" L;'::,1 q;w;. Proof: As Pi is distributed according to a Rayleigh distribution with parameter a, the joint probability density function of {qi}, where q; = Pi(l + sw;) and s is viewed as a parameter, is given by f(Q; s) The paradigm of maximum likelihood estimation now means that we estimate s such that the estimate s maximises the above joint probability density. It is equivalent, but notationally easier, to maximise the logarithm of f: N N 2 L(Q; s) -2N log(a) + L log(qi) - 2 L log(1 + SWi) - 2a2( 1qi+ SW;)2. i=1 ;=1 104 Now, we need to solve ~ N 2 uL ~ 2Wi qiWi os = - L i=l 1 + sui, + 1. a2(1 + SW)3 'l. O. Because of imperceptibility requirements, it is reasonable to assume that Isl is small. Therefore, we replace aL/as by its first order Taylor expansion st. N 1 L'w(1 - sw)'a2'+ -q w(1, = 0. 2 os ~~ - -2 ~ - 3sw) , i=1 Solving for s and using the fact that {w;} is a zero-mean sequence leads to 2 2 • (4) l_ ",N 3 qj Wi _ 2w2 N L ... n.=l a2 t Note that ui; = ±1 implies that This shows that under our conditions .§ (5) • The requirement in Theorem 1 imposed on the watermark comes down to partitioning the index set {1, ... , N} into two subsets, one of which corresponds to ui; = 1 and the other to Wi = -1. The requirement that Pi are identically distributed can be achieved by pre-whitening the data, in the same way as for additive watermarks. To be able to set a threshold for the detection, we need to have some infor- mation about the probability distribution of d as a function of s. Theorem 2 Under the assumptions of Theorem 1, the decision variable d satis- fies E[dls,W] 105 Proof: This proof is a matter of long but straightforward computations. All summations are over the range 1, ... ,N. First, E[dJs, W] Secondly, ~2 L L(1 + sw;)2(1 + sw)j)2w;wjEp;p; ~2 L L(w; + 2sw; + S2W;)(Wj + 2sw; + s2w])Ep;p;' Now denoting 1'0 = Ep~p; = 40-4 for i i=- j and 1'1 = Ep; = 80-\ we obtain where we used the fact that summations over odd powers of W; or Wj are equal to zero. Using this, we obtain var(dJs, W) E[d2Js, W]- (E[dJs, W]? 40-4 N(1 + 6s2 + S4) • 106 An important measure of the strength of an estimation method is the quotient between the expected value of d (depending on s) and the standard deviation of d for s = 0. In the case of Rayleigh distributed data and the quadratic correlation of Theorem 1, we have E[dls,W] Jvar(dls = 0, W) If, instead, we use linear correlation (i.e., dl = (Q, W)), we have a2( 4 - 7r) E[dzls, W] = s, var(dzls, W) = 2N and so the quotient would be E[dzls, W] Jvar(dlls = 0, W) which differs from the value for multiplicative watermarks by a factor CT~. GENERALISATION TO OTHER DISTRIBUTIONS The analysis in this paper was carried out for data Pi which are an i.i.d. sequence drawn from a Rayleigh distribution. The result can easily be generalized to data drawn from a Gaussian distribution. In this case, we obtain E[dls,W] 2sa2 2a4 var(dls, W) N(1 + 6s2 + S4). The proofs remain virtually unchanged. With a little bit more work, the result can also be extended to Weibull dis- tributions. If we assume that the data Pi are i.i.d. distributed according to the Weibull distribution, then we can carry out the same derivation of a detector based on maximum-likelihood estimation of s. This leads to the decision variable Note that the Rayleigh distribution with parameter a is a special case of the Weibull distribution, corresponding to the parameters f3 = 2, a = V2a. 107 CONCLUSIONS In this paper we have derived an optimal estimation based detector for mul- tiplicative watermarks. Our derivation shows that the sample values should be squared before correlation. The resulting detector differs from those used nowa- days, which are based on correlating the samples directly with the watermark. This result shows that very likely it is possible to improve on the common prac- tice to use correlation of a watermark with (non-squared) data to detect additive watermarks which are embedded using perceptual masks (the result of which embedding can sometimes be modelled by a multiplicative watermark). Our result has as a consequences for implementation, that before anything is done all sample values have to be squared. If, for instance, the watermark detection uses tiling, this has to be done after squaring. REFERENCES [1] 1.J. Cox, J. Killian, F. Thomson Leighton, and T. Shamoon. Secure spread spectrum watermarking for multimedia. IEEE Trans. lP, 6:1673-1687, 1997. [2] A. de Rosa, M. Barni, F. Bartolini, V. Cappel!ini, and A. Piva. Optimum decoding of non-additive ful! frame DFT watermarks. In Proc. 3rd Int. In- form. Hiding Workshop, pages 167-179, Dresden, 1999. [3] J.R. Bernandez and F. Perez-Gonzalez. Statistical analysis of watermarking schemes for copyright protection of images. Proc. IEEE, 87:1142-1166, 1999. [4] J .P. Linnartz, G. Depovere, and T. KalkeI. On the design of a watermark- ing system: considerations and rationales. In Proc. Srd Int. Inform. Hiding Workshop, pages 303-314, Dresden, 1999. [5] M.L. Miller and J .A. Bloom. Computing the probability of false watermark detection. In Proc. Srd Int. Inform. Hiding Workshop, pages 154-166, Dres- den, 1999. [6] S. Voloshynovskiy, A. Berrigel, N. Baumgaertner, and T. Pun. A stochas- tic approach to content adaptive digital image watermarking. In Proc. Srd Int. Inform. Hiding Workshop, pages 219-244, Dresden, 1999. 108 On One-Pass Combined Encryption and Authentication René Struik Philips Crypto BV E-mail: r.struiktècrypto.philips.com 1 Introduction hl cryptographic applications, one frequently would like to offer both confidentiality and integrity over data. One way of realizing this is to offer these security services separately via a two-stage process, by first providing an integrity check value over the data and subsequently encrypting both the data and the integrity check value. Although this approach might be cryptographically appealing, it has as drawback that it requires the data to be processed twice, once for computing the integrity check value and once for encrypting the data including its integrity check. Moreover, it might require the management of two keys rather than one. From the viewpoint of implementation speed, a combined encryption and authentication function that would require the input data to be processed only once is attractive, since it potentially allows a speed up of the encryption and authentication process by a factor (of nearly) two. Previous experience shows, however, that this speed up is not without risk, as is witnessed by exposed security flaws in the so-called Cipher Block Chaining (CBC) mode with XOR checksum or CBC-C (cf., e.g., [1], [2, Example 9.89]) and in some specific implementations of the Plaintext Ciphertext Block Chaining (PCBC) mode of operation (cf., e.g., [2, Example 9.91]). In this paper, we introduce two examples of how combined encryption and authentication might be realized, one based upon Cipher-Block Chaining (CBC), the other based upon Plaintext-Ciphertext Block Chaining (PCBC). Both constructions draw upon specific properties of linear functions tat derive from irreducible polynomials, similar to Linear Feedback Shift Registers. It turns out, that both schemes allow for very efficient implementations: each hardly adds to tbe computational complexity of the underlying mode of operation. Moreover, the schemes allow for an explicit analysis of the susceptibility to undetectable modifications (thus contrasting to schemes that combine 'IDEA-like' incompatible group operations, which makes security claims - by nature - implicit, cf. [2, Example 9.91]. We show that our schemes (almost surely) offer data integrity against a variety of attacks, including permutation attacks and chosen-ciphertext attacks. At the same time, we show that the extra computational overhead is approx. one cyclic shift per data block encrypted. The paper is organized as follows. hl Section 2, we introduce some notation and provide some necessary background on irreducible polynomials. The two combined encryption and authentication schemes are discussed in detail in Section 3. hl Section 4 we discuss some implementation issues. Section 5 concludes the paper and points out some limitations of the proposed schemes. 109 2 Notation In this section, we introduce some notation that will prove to be useful throughout the remainder of the document. Let Pm(Z)=zm+am.IZm.1+ ... +alZI +ao 1 be a polynomial of degree m over the field F. Let A: F" ~ F" be the linear function defined by A(x):=(-am_l Xm-l- ... - al xi - aoxo 11 Xm-I 11 Xm.2 11 ••• 11 xj), where x=:(Xm-1 11 Xm-2 11 .,. 11 xIII Xo) is the partitioning of X into subsequent substrings of equallength (hence, n=ms, say). Note, that the matrix Z/-A has determinant det(zI-A)=p",s(z). In particular, one has that Pm(A)=AIn+am_IAm-1+ ... +aJAI +anl=Ü (Here, I:=Ao denotes the identity map and 0 the all-zero map). As a result one finds that, if Pm(Z) is an irreducible polynomial over F, then all (nonzero) linear combinations of the mappings a,:=Ao, a'_J:=AJ, ... , ao:=A' are (linear) bijections on the set of n-tuples over F (for all t, 0 ~ t CI+I). As usual, the value of the key k is kept secret; IV is assumed to be a publicly known fixed vector. In this section, D, is the decryption function corresponding to Ek. Details are as follows. 110 Encryption and authentication Let mr+l be such that ao(ml$ N)$ al(m2)$ ... $ ar(mr+l)=O. The sequence mi, ... , m, is encrypted to the sequence ei, ... , Cr, CHl as follows: ci:=Ek (mi $ Ci-l) for all1 ~i ~ t+1, where we define co:=N. - Decryption and verification of data integrity The received input is divided into the sequence of ciphertext blocks (Cl, ... , Cr, CHl), which are decrypted consecutively. For all1 ~i ~t+ 1, decryption of the ciphertext block c, to the plaintext block m;' is defined as follows: m;'=Dk (c;) $ ci., for all 1~ i s: t+ 1, where co=IV. Integrity of the received blocks m,', ... , mu ,' is now accepted depending upon whether ao(m/$ N)$ adm2 ')$ ... $ almr+/)=O (accept if equality holds; reject otherwise). Security of the combined encryption and authentication function It is clear that access to the blocks mi, ... , mr+l is restricted to those parties that have access to the key k (if Ek is secure). Moreover, if Pm(Z) is an irreducible binary polynomial, then authenticity of the recovered blocks is almost surely provided, as is witnessed by the following properties. (We assume Ek to be secure.) Property 1 (permutations) Permutations among the ciphertext blocks Cl, ... , Cr, Cr+l in the communicated string can almost surely be detected. Property 2 (known-plaintext pairs) Substitutions of the communicated string by an arbitrary string ei, ... , Cr, CHl can almost surely be detected. This statement also holds, if one is allowed to gain access to the set of known plaintext pairs ((DK(c), c) I C EC}, as long as the equation ao(Ddzl))$ adDk(z2)$ Zl)$ ... $ alDk(zr+l)$ Zr)=O does not have any solutions zi, ... , Zr+l in C. Property 3 (plaintext compromise) Compromise of mi does not expose any information on mj (i;rj). It does, however, reveal a known relationship between the other two variables. Property 4 (matching ciphertext) If no two ciphertext blocks are equal, then no information on m], ... , m; mu , is exposed. The following property shows that one should be careful in exposing known plaintext differences, since knowledge of differential plaintext pairs might allow forgery of authentic messages. Property 5 (changes to IV') Let Çk.lV be the one-key combined encryption and authentication function corresponding to the encryption function Ei, with key k and with initial vector N. l. Let (c), ... , Cr, Cr+l) be a valid output sequence of Çk.lV. If 8:=DK(Cl)$ DK(Cl) is publicly known for some known block Cl, then one can construct a valid output sequence without requiring access to the key k. 2. Similarly, if one is allowed to gain access to the set of known plaintext pairs ((Dmc), c) I C EC}, then for any zi, _.. , z; ZHl in C, choosing IV' such that 111 ao(DlzI))$ al(Dlz2)(/) Zj)(/) ... (/) a,(Dk(Z,+I)(/) Z,)= ao(N(/) IV') yields a valid output sequence without requiring access to the key k. The following property shows that one should be careful with re-using keying material. Property 6 (replay attack) Permutations among communicated strings (Cl, ... , C" C'+l) from different communication sessions that use the same encryption algorithm Ek, the same key k, and the same initial vector IV cannot be detected by the integrity verification procedure. 3.2 PCBC variant The one-key combined encryption and authentication function Êk. TV operates on t- tuples (m], ... , m.) of binary n-tuples and uses the encryption function Ek in the so- called plaintext ciphertext block-chaining mode of operation, with initial vector IV and with key k, and with as input sequence the (t+l)-tuple of blocks (m.], ... , m" mal), where mal=N. The result of encrypting the sequence of blocks (m], ... , m.) with this encryption function is denoted by (Cl, ... , Cl>C'+1), i.e., t; N(m1, ... , m,)= (C1, ... , C" C,+T).As usual, the value of the key k is kept secret; N is assumed to be a publicly known fixed vector. In this section, Dk is the decryption function corresponding to Ei. Details are as follows. Encryption and authentication Let m'+1:=IV. The sequence m], ... , m; m'+l is encrypted to the sequence C1, ... , C" C,+I as follows: ci:=Ek(mi (/) Gi-1) for all} si st+}, where Go:=IV and where Gi:=A(mi tBc;) for all i, O-ci-ct+l . Decryption and verification of data integrity The received input is divided into the sequence of ciphertext blocks (C1, ... , C" C,+/), which are decrypted consecutively. For all l si ::;t+}, decryption of the ciphertext block c, to the plaintext block mi' is defined as follows: mi '=Dk (c.) tB Gi-I for all 1::; i ::;t+}, where Go=IV. Integrity of the received blocks m,', .._,m,+/ is now accepted depending upon whether m.i , '=lV (accept if equality holds; reject otherwise). Security of the combined encryption and authentication function It is clear that access to the blocks mi, ... , m'+l is restricted to those parties that have access to the key k (if Ek is secure). Moreover, if Pn,(Z) is an irreducible binary polynomial, then authenticity of the recovered blocks is almost surely provided, as is witnessed by the following properties. (We assume Ek to be secure.) Details are omitted here (these will be included in the full paper). 4 Implementation issues In this section, we show that both schemes introduced in the previous section allow for very efficient implementations: each hardly adds to the computational complexity of the underlying mode of operation. 112 Implementation of the linear function A can be realized very efficiently. Notice that, in the binary case, we have A(x):=(alll.1 XIII.I$ ... $al XI $ aoxo 11~III·I 11XIII·Z11... 11XI), i.e., A(x):=(alll.1 XIII'I {/)... $alxl (/)(ao+l)xo 11011 ... 110)) (/)(xo 11XIII·I 11xlII.211 ... 11XI), i.e., A(x) can be implemented via a circular (right) shift of the ll-tuple X over s=n/m positions, followed by a specific binary addition on the first component of length s. In the CBC-variant of the combined encryption and authentication function, one has to compute ml+l such that ao(1111 (/) IV){/) a!Cm2){/) ... (/) a,(m,+I)=O. Since aj.'=Ar.J for all 05{j5{t, we have m,+I=A'(ml(/)IV){/)A'·I(mz){/) ...... A2(mr.l) (/)AI(m,), i.e., m'+I=A(A( ... (A(A(ml (/) IV)(/) m2){/) 1113) ...... (/) m,.I) (/) 111,). Hence, one can compute m'+1 via the so-called Horner's scheme, as follows: s:= IV; for j:=O to t-I do s:=A(s$ 111)+1); m,+I:=s. Since the mapping A can be implemented by just a circular shift and a binary addition, this allows for very efficient implement,ations. In the PCBC-variant of the combined encryption and authentication function, the additional computational overhead is also bounded by the (negligible) complexity of the mapping A. Moreover, it does not require storage of intermediate results. 5 Concluding remarks As for now, both constructions presented in Section 3 seem to offer highly efficient implementations, while at the same time avoiding providing data integrity against a variety of attacks, including permutation attacks and chosen-ciphertext attacks. We do not claim that either of the two constructions presented here provides the definite one- pass solution for combined encryption and authentication. First, we would like to stress that both schemes only offer heuristic security, not provable security. (Provable combined encryption and authentication schemes without considerable data expansion are, however, not known to the author). Second, both schemes - by design - require the number of data blocks over which integrity can be provided at the same time to be limited (to the block size minus one), i.e., if blocks have size 11, then at most H-I blocks can be processed at once. References [1] R.R. Jueneman, S.M. Matyas, e.H. Meyer, Message Authentication with Manipulation Detection Codes, in Proceedings of the 1983 IEEE Symposium on Security and Privacy, pp. 33-54, 1984. [2] A. J. Menezes, P.e. van Oorschot, S.A. Vanstone, Handbook of Applied Cryptography, Boca Raton - New York - London - Tokyo: CRC Press, 1997. 113 Power Analysis: Methods and Countermeasures Johan Borst, Bart Preneel, Joos Vandewalle K.U. Leuven, Dept. Elektrotechniek-ESATjCOSIC Kardinaal Mercierlaan 94, B-3001 Heverlee België {Johan, Borst.Bart.Preneel.J oos. Vandewalle }@esat.kuleuven.ac.be Abstract Since the introduetion of power attacks by Paul Kocher, much research has been done in this area. In this paper we give an overview of different. types of attacks. Furthermore we classify and discuss possible countermeasures. Fur- thermore we introduce the concept of taking countermeasures at the protocol level. 1 Introduction In [KJJ99] power attacks were introduced. Power attacks are side channel attacks; they exploit characteristics of the implementation of an algorithm. This is different from 'classical' cryptanalysis, where an attacker only uses information of the known input and/or output of the algorithm. Power attacks exploit differences in the power consumption of the implementation of a cryptographic algorithm during cryptographic computations. By analyzing the power consumption information about the secret key of a cryptographic device can be extracted. Especially vulnerable against this kind of attacks are smart cards. This is caused mainly by the fact that smart cards get their power externally. To mount ,l power attack an attacker mainly needs the following: a smart card reader, a device (e.a. an oscilloscope) that can measure the power consumption accurately enough and suffi- cient computing power to analyze the measurements. He then proceeds with sending commands to perform cryptographic computations to the smart card via the reader. These commands are mostly standardized. Successful attacks have been reported that only need a few hundred of power samples and contemporary opinion is that this can be brought down considerably. Many smart cards have been reported to be vulnerable, hence since a few years much research is being done to find countermeasures. This research meets resistance from several factors. At first smart cards are limited devices, i.e., they have a limited amount of memory and relatively slow processors. Hence there is little possibility for major changes to the software. Secondly, several countermeasures have been proposed that involve using new techniques (new algorithms, new hardware). But the development and testing of these techniques will undoubtedly require much time. The difficulty of this issue has been illustrated during the AES selection process: a procedure initiated by NIST to replace the DES as block cipher standard [AES]. There, 115 discussions around the theme of DPA resistance and the difficulties of this resulted in a shift to lay lower priority to the smart card suitability of the candidate algorithms. In this paper we shall give an overview of the developments in the area of power analysis and analyze several countermeasures. In Section 2 we will describe the dif- ferent versions of power attacks and in Section 3 we will discuss and propose several countermeasures. We conclude in Section 4. 2 Power Attacks Power attacks are side channel attacks; they exploit characteristics of the implemen- tation of an algorithm. Power attacks exploit differences in the power consumption of the implementation of a cryptographic algorithm during encryption or dectyption. The power consumption P (or P(t)) at each moment (time t) during operation of an algorithm can be written as P = Pinstruction + Pdata + Pnoise' (1) i.e., the sum of the power consumptions caused by the performed instructions, the manipulation and storage of data, and some noise. Typically, it holds that Pinstruction > Pnoise > Pdata· (2) Most of the difference in Pdata is caused by a difference in power consumption of manipulating and/or storing ones or zeroes. The following kinds of power attacks can be distinguished. Simple Power Analysis: SPA From the measured power consumption P(t), 0 :::; t ~ T of a cryptographic operation , the execution time of individual or groups of instructions are deterrnined. Hence, this attack exploits the differences ill Pinst.md,ioll and thus typically needs few samples. An example of this is determining the sixteen DES rounds in a non SPA resistant DES implementation. The DES round function consists of an expansion (of 32 to 48 bits), 8 table look ups (which map 6 to 4 bits) and a bit permutation on 32 bits. In a graph of the power consumption given as a function of time the sixteen rounds of DES can be distinguished. This can even be done visually. This is not an attack in the sense that it deduces key material, but it can be used as a method to find out where the cryptographic computations are done in the time period between the beginning (send command to card) and end of a transaction (receive response). Another simple example concerns cryptographic algorithms that use a 'multiply and square'-algorithm to perform an exponentiation with key material in a group eperation. This is the case with RSA and algorithms based on the (elliptic curves) discrete loga- rithm problem. Basically a multiply and square algorithm performs either a multiply or a square based on the value of a bit of the secret exponent. Hence, if multiplying and squaring have a different power consumption pattern one can easily deduce the exponent. 116 Differential Power Analysis: DPA These are statistical attacks, that need several samples of the power consumption of a cryptographic operatien. These samples are combined and analyzed in order to average out Pinstruction and Pnoi::;e from Equa- tion (1) and deduce key information from the remaining Pdata. Differential power attacks on DES implementations are described in [KJJ99, CJRR99b]. To illustrate how these attacks work, we describe the following attack on DES. The input of an S-box in the first round can be described as P EBJ( where Pand J( are 6-bits of respectively the plaintext and the key. Suppose we have obtained N samples. There are 26 = 64 possible values for K. For each of these values we can compute the output of the S-box for all N samples. Thus in 64 ways we can divide up the N samples in two sets, depending on the value (0 or 1) of a certain output bit of the S-box (this is possible for each of the 4 S-box output bits). For the right guess for J{ the power consumption for the two sets can be distinguished at the places where this bit is manipulated or stored. Hence, in this way 6 bits of the key can be determined. Note that this attack can also be mounted if the ciphertext is known; then on analyzes computations in the last round. In [KJJ99] also the term higher order differential power attacks was introduced. In this scenario an attacker would exploit a combination of different parts of the algorithm, where the same key material is used. These attacks typically need considerably more samples than ordinary DPA attacks. Inferential Power Analysis: IPA This kind of attack was introduced in [BS99] and generalized as well as given its name in [FP99]. An interesting property is that in principle such an attack can be mounted without knowledge about plain or ciphcrt.cxt. An attack basically consists of two phases: l. An attacker first performs measurements of cryptographic computations that use different key material; for example on different cards (of the same type) or after key updates. Analyzing these samples one finds that on the places where they differ the most the key material is used in the operations. 2. After Stage 1 the attacker has knowledge where to find the key related operations. That can be used to obtain information about the key. For example, in [BS99j an attack on DES is described as follows. In step 1 the places are determined where all subkey bytes are stored. For the target implementation the power consumption that is used for storage of a byte depends on its Hamming weight. Hence, one finds the Hamming weight of all subkey bytes. Due to the key schedule of DES it is then possible to deduce the whole key. Note that from this also follows that the key schedule is a relevant factor in the resistance against these attacks. In general DPA can be viewed as the most powerful type of attack. Often SPA does not necessarily have to be prevented and IPA does not reveal sufficient key information. In conclusion we can say that in order to mount successfully a different.ial power at.tack, accurate power measurements on a number (this number depends on the accu- rateness of the measurements and the hardware of the card) of encryptions or decryp- tions are required. Either plaintext or ciphertext needs to be known and to be variable 117 over the set. The attack also applies if the plainjciphertexts a~-e not known, but. vary according to a known scheme, such that the difference between any two plaintexts (ei- phertexts) is known. All encryptions have to be calculated with the same key value, or with key values that vary according to a known scheme, such that the differeuce between any two key values is known and exploitable. In the next section we discuss possible countermeasures. 3 Countermeasures If no counter measures are taken power analysis can be very effective for a lot. of applications. Smart cards are a particularly suited target, because they get their power externally and implementing countermeasures is difficult due to the small memory size that is available for thecode. Countermeasures against DPA are possible at the following levels. The first three are mostly mentioned in the open literature. In this paper we introduce a fourth method, which at the moment received little attention. • At the hardware level: It is possible to increase Pnoise' for example by irnple- menting a random noise generator. Such a measurement typically increases the amount of samples needed for a successful attack or causes the attack to bc per- formed with more accurate measurement equipment. Another countermeasure is modifying the hardware that performs the instruct.ions to give a balancnel power consumption, independent of the data [DR99]. The consequences of both st.ra.t.e- gies need to be scrutinized by analyzing and doing measurements on an actual implementation in hardware. • At the software level: There are several ways to secure an implementation at the software level. One can for example desynchronize the instructions in such a way that power samples of different executions are hard top combine. How- ever, one has to take care that with extra analysis of the power consumption of the instructions, it might be possible to synchronize them again. One can also implement some key dependent instructions in such a way that key mate- rial is not directly combined with known values. An example of this is k-wa.y split [GP99, CJRR99b]. This typically increases the amount of samples needed. • At the algorithm level: Choose, design or make changes to a cryptographic algo- rithm so that it is particularly suitable for power analysis resistant implernent.a- tion. Resistance against power attacks is based on the irnplementation, but based on the algorithm specification, it is possible to determine an algorithms' suitabil- ity for a power analysis resistant implementation. Which countermeasures are suitable for implementation depends on the algorithm and t.he implementation platform. • At the protocol level: At the application level one can put restrictions on the amount of executions of an algorithm to prevent an attacker frnrn gathering sufficient power samples. The most obvious ways to do this are to change the key 118 regularly or update the key material such that it is difficult to combine different power samples done with in such a way related keys. All methods have advantages and disadvantages. The introduction of new hardware seems very time involving. For example the construction and implementation of a new processor could easily take a few months. Compared to the other countermeasures it probably would also be more expensive to replace existimg hardware. Besides that it seems to bear considerable risks for the occurrence of inforrnation leakage via other side channels. Changes at the software level have mostly as a consequence that performance gets lower or that the code would get too large to fit in the ROM of a card. The introduction of a new algorithm seems also time consuming. This is mainly due to the process of scrutinizing such an algorithm for its resistance against other cryptanalytic attacks, like linear and differential cryptanalysis. At the protocol level it is often possible to take sufficient countermeasures, that call be efficiently implemented and that are conservative (hence based on a considorablc amount of theory and experience) from a security point of view. We summarize the comparison of the four approaches in Table 1. From this it can be seen that countermeasures at the protocol level deserve to considered if possible. But good resistance against power attacks will certainly involve taking countermea- sures at all levels if possible. And besides that it is very important to evaluate the implementation on the target platform. Level Security Efficiency Design process Cost Hardware ? ? - - Software + - - + Algorithm ? + - + Protocol + ? + + Table 1: Comparison of the four approaches for countermeasures. 4 Conclusions vVe gave an overview of the different kinds of power analysis, classified the counter- measures and discussed their applicability and effectiveness. We observed that c:oun- termeasures at the protocol level received few attention. Furthermore we conclude that the best strategy is to take (conservative) c:ountermeasures at all levels and most important is the evaluation of an actual implementation in hardware. References [AES] National Institute For Standards and Technology (NIST), "AES, A Orypto Algorithm for the Twenty-first Century," http://www .ni st . gOY / aes. 119 [BS99] E. Biham and A. Shamir, "Power Analysis of the AES Candidat.es," Proc. of the Second AES Candidate Conference, 1999, pp. 115-12l. [CJRR99a] S. Chari, C. Jutla, J. Rao, P. Rohatgi, uA Cautionary Note Regarding Evaluation of AES Candidates on Smart-Cards," Proc. of the Second AES Candidate Conference, 1999, pp. 133-147. [CJRR99b] S. Chari, C. Jutla, J. Rao, P. Rohatgi, "Towards Sound Ap- proaches to Counteract Power-Analysis Attacks," Advances in Cryptol- ogy, Proc. Crypto'99, LNCS 1666, M. Wiener, Ed., Springer-Verlag, 1999, pp. 398-412. [DR99] J. Daemen, V. Rijmen, "Resistance Against Implementation Attacks, A Comparative Study of the AES Proposals," Proc. of the Second AES Can- didate COnference, 1999, pp. 122-132. [FP99] P. Fahn, P. Pearson, "IPA: A New Class of Power Attacks," presented at CHES'99, manuscript obtained from the authors, 1999. [GP99] L. Goubin, J. Patarin, "DES and Differential Power Analysis, Th.e "Dv.- plication" Method," presented at CHES'99, manuscript obtained from the authors, 1999. [KJJ99] P. Kocher, J. Jaffe, B. Jun, "Differential Power Analysis," Advances in Cryptology, Proc. Crfpto '99, LNCS 1666, Springer-Verlag, 1999, pp. 388- 397. 120 Boosting the E-Security of ~SM Johan van Tilburg, SECCOM, The Netherlands ABSTRACT GSM's standardization has been typically technology driven, but its current advancement is business driven. GSM provides mobility with mass-produced handsets that are an attractive way of offering new, interactive services any place, any time. Yet, simple conveniences like car kits, connectors and battery chargers are not compatible, even within the same brand The GSM handset is soon be touted as DAB-ready and WAP- enabled, but what about its security? This paper reviews the status of GSM security and raises important issues influencing its development. 1 Introduetion During the early 1980s, analog cellular telephone systems were independently developed worldwide resulting in the equipment being incompatible across national boarders. These early mobile phones were transportable utilizing a transceiver in the trunk of a car or as a carry-on luggage sized handbag. Standardization, economies of scale and improvements in technology drove down the cost and size ofthe instrument to the popular hand-held device. In these early years, it was also realized and experienced that these systems are susceptible to fraud. In Europe, the future of a cellular system was addressed with the formation of the study group Groupe Spéciale Mobile (GSM) in 1982. Their taskwas to develop a pan-European, digital, Public Land Mobile Network (PLMN). At a later stage, security measures to combat fraud and to protect subscriber privacy were added to the GSM recommendations. In 1989, GSM responsibility was taken over by the European Telecommunication Standards Institute (ETSI). For a comprehensive technicaloverview of the GSM system the reader is referred to [MP92]. By mid-1991, GSM became operational and since then its growth and success has been impressive. Although standardized in Europe, GSM is not only a European standard. Over 200 GSM networks (including DeS 1800 and pes 1900 in North America) are operational in more than 110 countries around the world. Now, GSM systems exist on every continent, and the redefined acronym GSM refers to Global Systemfor Mobile communications. As in 1982, E-commerce was not yet born; GSM was mainly designed to fulfill the need for mobile communication with limited data services due to bandwidth constraints. GSM is a cellular system offering mobility with mass-produced handsets and it seems to be an attractive way of offering new interactive mobile services. Besides the Wireless Application Protocol (WAP) hype, Digital Audio Broadcast (DAB) content providers are also adapting GSM handsets to integrate digital radio [TaatDO]. As with all these new developments, availability, performance, cost, security and user friendliness are critical to its success. This paper reviews current GSM security and addresses important security issues for the new developments that were previously mentioned. This paper is organized as follows. Section 2 provides a brief overview of GSM. Section 3 gives its security overview. Section 121 4 discusses GSM cryptographic algorithms. Section 5 describes security implications of GSM for new developments. Finally, Section 6 provides conclusions. 2 Brief GSM overview For understanding the security analyses in this paper, some necessary background of GSM is provided. The system is divided into three parts: 1) Mobile Station, 2) Base Station, Mobile Switch Center and Network, and 3) Authentication Center. The security aspects of GSM are initially detailed in the European Technical Standards Institute (ETS I) recommendations: • GSM 02. 09 - Security Aspects identifies the mandatory method supported, both by the mobile station and network, to ensure the subscriber's privacy (data and location) and to guarantee the authenticity of subscriber's identity. • GSM 02.17 - Subscriber Identity Modules explains the concept of Subscriber Identity Module (SIM) and lists the items for which a non-volatile storage must be provided in the SIM. • GSM 03.20 - Security Related Network Functions describes the confidentiality and authentication procedures used in GSM to fulfill the requirements as stated in 02.09. • GSM 03.21 - Security Related Algorithms identifies the necessary cryptographic algorithms, • GSM 12. 03 - Security Management describes the management aspects of security functions listed in 02.09, and introduces the requirements for access control to the operator equipment. 2.1 Mobile Station A GSM Mobile Station (MS) consists of two parts: 1) a terminal, or handset, called the Mobile Equipment (ME) and 2) a tamper-free card called the SIM. The SIM contains a unique identity - the International Mobile Subscriber Identity (IMSI) -, which is associated with a subscriber and identifies him to the GSM-system. By inserting the SIM into a new ME, a new customized MS is created. This provides subscriber mobility since the subscriber can have access to the services and be charged appropriately. The SIM also contains the secret subscriber's authentication key and protects it from being read. When this security is compromised, a new SIM can be issued. 2.2 Base Station, Mobile Switch Center and Network The Base Station (BS) defines a cell and handles the protocols over the radio path required for communication with the MS. This central point is the connection between the MS and the Mobile Switching Center (MSC). It acts like a switching node of the fixed network and provides all the functionality needed to handle a mobile subscriber. The subscriber' s mobility has consequences, such as, moving out of coverage - due to radio propagation, geographically limited - due to subscription of the use of different networks and services. The security management is coupled with location management, and therefore, it is important to keep the consistency between these entities. Control and management information is carried between functional entities by unprotected signaling using Signaling System Number 7. 122 The Home Location Register (HLR) and Visitor Location Register (VLR), together with the MSC, provide the call routing and roaming capabilities of GSM. The HLR contains all the administrative information for each subscriber registered in the corresponding GSM network, along with the current location of the MS. If a MS has left its home domain, it will be serviced by a different MSC. The location information is then stored in the HLR in the form of the signaIing address of the VLR associated with the new MSC. When a roaming subscriber moves out of the range of his current base station, the link will be handed over to a new base station. The two base stations involved in the handover may be connected to 1) the same VLR, 2) two different VLRs on the same network, or 3) a different network. 2.3 The Authentication Center Most of the security functions within GSM rely on the secrecy of the subscriber's authentication key. This key is stored in the subscriber's SIM, but also in the network operator's Authentication Center (AuC). For security management, the SIM is crucialon the mobile side, and the AuC is crucialon the network side. The AuC consists of a protected database with identity and authentication information related to the subscriber. This information consists of the IMSI, the TMSI, the Location Area Identity (LAl), and the authentication key for each subscriber. The AuC is the security sensitive part ofthe HLR. 3 GSM security overview GSM has been designed to enable international mobile coverage and bring significant' improvements in combating fraud and enhancing subscriber's privacy. Since most of the calls involving a GSM subscriber go through the fixed network, it was logical for the designers not to aim at a level of security much higher than that of the fixed network. Subscriber privacy, therefore, was only defined for the radio path. Since GSM does not make use of public-key cryptography for distribution of the confidentiality key or to verify the authenticity of the subscriber, it does provide proteetion against non-authorized third parties. GSM does aim, however, to provide: • data-confidentiality of the transmitted data (speech, subscriber data, signaling) between the mobile station and the base station over the radio path; • proteetion against unauthorized access; and • safeguards for the subscriber's privacy. One ofthe most important aspects of security management is based on security triplets that are generated in the secure AuC and distributed to the MS's VLR. 3.1 Security triplets The AuC computes for each subscriber a set ofsecurity triplets {CR, S, Kc)}, where: • R is a 128-bit random number for use as a challenge; • S is a 32-bit signed response computed as S = A3 Ka(R), where Ka is the subscriber's. authentication key, and A3 is the authentication algorithm; and • Kc is a 64-bit confidentiality key Kc calculated as Kc = A8KaCR). 123 3.2 Mobile Station authentication When the MS notifies the MSC ofits presence, the local VLR contacts the MS's HLR and transmits the VLR's LAl and the MS's IMSI. The HLR asks its AuC for a security triplet (R, S, Kc). The triplet is forwarded to the requesting VLR and is used for the authentication ofthe MS. The VLR transmits the challenge R to the MS. It in turn uses the random number in conjunction with the subscriber's authentication key Ka in the authentication algorithm A3 to compute a signed-response S. This response is sent back to the VLR for comparison. If the received S is the same as that held by the VLR, the subscriber is approved to the network. 3.3 Radio path confidentiality The data sent over the radio path to the base station is encrypted with Algorithm AS using the confidentiality key Kc. The MS computed this key during its authentication phase to the network and stored it in the non-volatile memory ofthe SIM. 3.4 GSM security characteristics In this paragraph, some of the GSM security characteristics are highlighted. • Subscriber authentication is in place Subscriber authentication is provided by a conventional challenge signed-response procedure. The MSCNLR initiates the authentication ofthe MS. • Network authentication is not in place The subscriber cannot authenticate the network. He, therefore, cannot be sure if he is communicating with an authentic base station. This makes a security breach like a man-in-the-middle attack possible. • Subscriber 's privacy sensitive information is preferably never exposed when transmitted over the wireless path, but a GSM operator cannot guarantee it. Sensitive information (such as, identity, location, and the conversation itself) is preferably never transmitted without data-confidentiality over the radio path. In order to simplify design, GSM provides only one method for all transmitted information, whether it is: subscriber information (speech and data); subscriber-related signaling (calling number); and system-related signaling (prepare for handover). • GSM does not provide end-to-end data-confidentiality. Data-confidentiality is only provided over the radio path, no additional security is provided once the call enters the fixed network or between two different GSM MS' s. Since, GSM does not provide end-ta-end data confidentiality, its MS does not fall under the restrictions imposed by the Wassenaar Arrangement [Was99]. Introducing this capability in a WAP-enabled MS might make this handset no longer exportable. • The signaling links between the base station and the remainder of the network are not always protected or available. When a subscriber roams, the encryption management relies on the security and availability of the communication path, which is used between the subscriber, the HLR and any (foreign) VLR. This path is not always protected and makes a security breach like eavesdropping possible. Also with heavy communication traffic, it may become 124 impractical to contact the HLR (AuC). This might lead to reuse of the security triplets, or to switching off the encryption. - • Subscriber-to-SiM authentication The password or PIN (personal Identification Number) proteetion is a simple and optional authentication method between the subscriber and the SIM. The PIN is locally checked by the SIM itself without exposing it over the radio path. • SIM Authentication depends on the network operator GSM allows the authentication algorithm A3 to be secret and network operator dependent. The only constraint imposed on A3 is the size of the input parameter (128 bits) and the output parameter (32 bits). When the authentication key is to be transported through the network, its length is constrained to a maximum of 128 bits. • When a GSM subscriber connects to a "foreign" network, the security control is out of the subscriber 's network operator 's reach. Since the authentication algorithm is network operator dependent, subscriber authentication and data confidentiality can only be based on the security triplet (Section 3.1). When traffic is heavy, it may become impractical to always contact the subscriber' s HLR, which might lead to reuse of security triplets. • ME authentication The mobile equipment is uniquely identified by its IMEI, which has been assigned by the manufacturer. The IMEI is transmitted during call initialization. It was initially produced for handset approval and fraud detection, so that stolen mobile phones, or those not meeting specifications, may be removed from a network. Due to design' flaws, in most handsets, the IMEI can easily be changed. • Subscriber 's anonymity is in place The GSM subscriber is uniquely identified by his IMSI. Since it is considered to be privacy-sensitive information, the IMSI is replaced by an alias - the Temporary Mobile Subscriber Identity (TMSI) - over the radio path. The TMSI must be agreed upon beforehand, between the MS and the network. When the network encounters an unknown TMSI, the network will force the MS to send its IMSI. • GSM security algorithmic standardization The GSM security design has been criticized over the years. The GSM cryptographic algorithms used were originally not published. This raised the concern that the algorithms might not be as robust as claimed. Currently, both versions of the data confidentiality algorithm A5 are publicly known [CrypOO]. In addition, the combined authentication and key-generation algorithm A3/A8 (COMPI28) is known. Several GSM network operators used this algorithm. All published GSM algorithms have severe security flaws as will be discussed in the following section. Since, the A3/A8 cryptographic algorithms are network operator dependent, not all network operators, for example KPN and Vodaphone, use COMP128 [CrypOO]. • The logicalorder of operations is reversed: channel coding before encryption In GSM, the channelcoding takes place before data encryption. This means that the data before encryption contains a lot of structure and redundancy. This reduces the Uni city Distance [Shan49] implying that data confidentiality is easier to break. 125 4 GSM cryptographic algorithms The three most important algorithms used in GSM are 1) the authentication algorithm A3, 2) the confidentiality algorithm A5, and 3) the key-generating algorithm A8. In the MS, these algorithms are stored in the SIM. This provides the mobile equipment manufacturers flexibility, since they do not need to incorporate these algorithms in the handsets. 4.1 Authentication algorithm A3 Authentication algorithm A3 is a, key-dependent one-way function, which uses the subscriber's authentication key to calculate a signed response to the authentication challenge. This algorithm is not specified in the ETSI recommendations and can be chosen independently byeach network operator. In general, they keep this algorithm secret. The only constraint imposed on Algorithm A3 is the length of the input parameters. 4.2 Confidentiality algorithm AS Confidentiality algorithm A5 is a stream cipher and uses the encryption key (maximal 64 bits) and the current TDMA frame number (22 bits) to encrypt and decrypt data. The up- and-down link uses two different sequences. The algorithm A5 is the only common cryptographic algorithm in GSM. As a result of reverse engineering the originally secret A5 algorithm became publicly known [CrypOO]. The A5 algorithm has two versions. The A5/l (used in the EU) and A5/2 (the export version). Wagner [Wag99] demonstrated that the A5/2 is insecure and Biryukov and Shamir [BS99] showed that the A5/l design is far from optimal. A5/l is built from three short Linear Feedback Shift Registers (LFSR) of lengths 19, 22, and 23 bits. Hence the maximal number of different states is small, at most 264• The three registers are clocked in a stop-and-go fashion using the following majority rule: Each register has a single clocking tap; at each clock cycle, the majority function of the clocking taps is calculated and only those registers, whose clocking taps agree with the majority bit, are actually clocked. At each step either two or three registers are clocked, and each register shifts with a 3/4 probability. Biryukov and Shamir [BS99] describe an attack on A5/l, which is based on: subtle flaws in the tap structure of the registers, its noninvertible clocking mechanism, and its frequent resets. Their analysis is based on an improved version of the time-memory tradeoff described by Golic [GoI97], which is itself an adaptation of the time-memory tradeoff developed by Hellman [He180] for block ciphers. Such attacks can be applied to almost any cryptosystem, but they are practical only when the number of internal states is relatively small. The A5/l algorithm has this weakness. Although, the state transition function of A5/1 is not uniquely invertible [GoI97], Biryukov and Shamir observed that A5/1 could be efficiently run backwards. This accomplished by exploring the tree of possible predecessor states and backtracking from dead ends (average number of sons of each vertex is exactly one). Another weakness they exploited was that there is a very short distance from intermediate states to initial states, due to frequent re-initializations. Their attack can find the confidentiality key in less than a second on a single PC with 128 MB RAM and two 73 GB hard disks by analyzing the output of the A5/1 algorithm in the first two minutes of the conversation. The attack requires a one-time parallel data preparation stage whose complexity can be traded-off between 238 and 248 steps. Additional improvements to this attack are expected in the near future. 126 4.3 The key-generating algorithm A8 The key-generating algorithm A8 is a key-dependent one-way function. The algorithm calculates the confidentiality key from the random challenge and the subscriber's authentication key. This algorithm is not specified in the ETSI recommendations and can be chosen independently byeach network operator, who in general, keeps this algorithm secret. In practice, since A3 and A8 are always running together, they can be implemented as a single algorithm for efficiency (e.g., memory, speed). An example of a combined A3/A8 algorithm, COMPI28, is the recently broken [CrypOO]. COMPI28's output consists of 96 bits (32 for the signed-response and 64 for the confidentiality key. 5 How to boost the security of GSM As shown in the previous sections, the security functions within the GSM system rely on the secrecy of the subscriber's authentication key, which is stored in the subscriber's SIM and the network operator's AuC. When roaming outside the subscriber's operator network, the security relies on a simple security triplet (Section 3.1). For parties involved in secure transactions, this security outsourcing is unacceptable. The two following broadly advocated protocols would not solve this problem either: • SIM Tooikit (STK) is an ETSI standard (GSM 11.14) for value-added services to perform transactions using GSM handsets. Use of STK, however, is only possible when the subscriber has not only an STK-enabled handset, but also an STK-specific SIM card. • The wireless application forum [WafDO] stated that fixed network protocols are not optimized for mobile networks. The forum therefore developed an entire network protocol stack parallel to, although marginally compatible with, the existing Internet architecture. All the smarts are built into the Wireless Application Protocol (WAP) gateway at the network operator's location. WAP's objective is to deploy an absolutely standardized microbrowser environment for phone handsets. Use of WAP is only possible, however, when the subscriber is using not only a WAP-enabled handset, but also, a Wireless Identification Module (WIM). STK was developed specifically for GSM. It is likely that GSM operators will develop, however, both STK-enabled and WAP-enabled services. The Wireless Application Forum is not focused on security, but on delivering data over mobile networks. For this, it rewrites almost every Web standard in the book [Khar99]. WAP is by no means a finished product and secure transaction services are still far from perfect. WAP and STK are expected to be superseded by the next generation of mobile networks with higher bandwidth capabilities. As with any product, which was created to work around the limitations of a network (e.g., bandwidth, terminal design) is bound to be questioned when those limitations are eliminated. As a result, STK and WAP are simply not the answer to long-term handheld security. The more it seems to be inevitable, the more time and effort it will take for the mobile industry to regain momentum. The obvious choice is to stop thinking about the ME as an upgraded cellular phone, and concentrate on providing mobility to miniaturized PCs. From a security point of view, let GSM be nothing more than the mobile localloop, and most importantly make sure that it works and adds value (e.g., availability, performance, cost). This configuration could enhance the security of all mobile E-commerce applications. It would offer the flexibility 127 required by the numerous personal and business applications that demand security. In order to reach the GSM installed base of handsets, the interface between the handset and the miniaturized PC, or security module, must be standardized. 6 Conclusion GSM's standardization has been typically technology driven, but its current advancement is business driven. GSM provides mobility with mass-produced handsets that are an attractive way of offering new, interactive services any place, any time. Yet, simple convenient aspects like car kits, connectors and battery chargers are not even compatible within the same brand, even though the GSM handset is soon be touted as DAB-ready and WAP-enabled. In the best case, GSM offers proteetion against non-authorized third parties, but never comes close to providing end-to-end security. Subscriber privacy-sensitive information, such as identity, location, and the conversation itself, is supposedly never exposed when transmitted over the wireless path, but a GSM operator cannot guarantee this. From the point where a GSM call enters the fixed network, its GSM security does not migrate with it. Even worse, when a GSM subscriber roams into a foreign GSM network, he is out ofhis own network operator's security control reach. Clearly, GSM can support people who are not concerned with security risks taken when sending and receiving information over their GSM handset. On the other hand, if a bank for example, wants to allow its clients to use GSM for handling secure transactions; then additional independent security measures are definitely required. The obvious choice is to stop thinking about the ME as an upgraded cellular phone, and concentrate on providing mobility to miniaturized PCs. This configuration could enhance the security of all mobile E-commerce applications, while the MS is still exportable. It is concluded that the interface between the handsetand the miniaturized PC or security module, must be further standardized to include even its connector interface. Literature BS99 A. Biryukov and A. Shamir, Real-Time Cryptanalysis of GSM's A5/1 on a PC, preliminary draft, see [CrypOO], December 1999. CrypOO CRYPTOME GSM archive, www.jya.com/cryptout.htm#GSM. Apri12000. Go197 1. Golic, Cryptanalysis of Alleged A5 Stream Cipher, proceedings of Eurocrypt'97, LNCS 1233, pp. 239-255, Springer-Verlag 1997. Hel80 M.E. Hellman, A cryptanalytic time-memory tradeoff, IEEE Transactions on Information Theory, 23, 289-294, 1977. Khar99 R. Khare, W* Effect Considered Harmful, 4K Associates, April 1999. MP92 M. Mouly and M-B. Pautet, The GSM system for mobile communications, a comprehensive overview of the European digital cellular systems, Cell & Sys, ISBN 2-9507190-0-7, 1992. Shan49 C.E. Shannon, Communication theory of secrecy systems, Bell System Tech, 1. 28,656-713,1949. TaafOO 1. Taaffe, GSM could be music to the ears of digital audio industry, Communicationsweek International, Issue 242, Apri12000. Wag99 D. Wagner, rump session Crypto 99, Santa Barbara CA, August 1999. WafOO Wireless application forum, www.wapforum.org, April 2000. Was99 The Wassenaar Arrangement, www.wassenaar.org, 1999. 128 Efficient Run Permuted Sequence Generation Martin R. Meijer Information and Communication Theory group Subdepartment of Electrical Engineering Department of Information Technology and Systems Delft University of Technology Cees l.A. lansen Philips Crypto B. V. P.O.Box 218, 5600 MD Eindhoven The Netherlands Abstract This paper describes an efficient way of generating sequences with a large period; the sequences are generated with a run permuted sequence generator. It introduces an implementation, which is easy scalable and efficient. The sequences comply with the first and second randomness postulates of Golomb. The generator uses a counting structure to ensure the compliance with those randomness postulates and a good S-box to enlarge the maximum order complexity. 1 Introduetion Run permuted sequences were introduced by lansen [1] as sequences obtained by independently permuting the runs of ones and zeros of a DeBruijn sequence of given order. DeBruijn sequences are well known for their properties, unfortunately high- order DeBruijn sequences are not very efficient to implement and not easy to scale. Therefore the run permuted sequence generator is examined on its properties and a possible replacement for the DeBruijn sequence is presented. The new structure uses counters and a good S-box; both elements are discussed in this paper. 2 General run permuted sequences Run permuted sequences in general have no use for cryptography if they do not meet certain requirements for good cryptographic sequences. Therefore general run permuted sequences are only interesting if they comply with the first and second postulates of Golomb [3]. All run permuted sequences as described can be seen as a class of binary sequences C, of order n. Definition 1: The class C, of run permuted sequences is defined as the class of cyclically inequivalent sequences obtained by independently permuting the runs of ones and zeros of a sequence of order n. 129 Every element of the class C, complies with the first and second postulate of Golomb. The size of the class C, can be derived from the number of permutations p in which the runs of one symbol can be written, because the runs of the symbols are permuted independently. Also the number of runs is fixed for any chosen order n, because of the fact that the sequences have to comply with the randomness postulates of Golomb. 2 n! p = (1) n-1 TI1=1 21! In order to keep the sequences cyclically inequivalent the size of the class Cn is derived from the number of permutations as follows, p2 ICnl =2"' (2) in which 2n is the number of runs of a symbol. Furthermore the maximum order complexity as Jansen [1] described can be determined for any sequence in class Cn. Jansen determined the maximum order complexity for another class D, of run permuted sequences. As can be seen the maximum order of the class C, is equal to the maximum order complexity of the class Dn, because for determining the complexity he only uses restraints and properties which are also true for the class Cn. Therefore the maximum order complexity c~) of the sequences of class C, satisfies the inequality, (3) 3 Generator implementation The most important thing of the generator is to ensure the randomness. This can be done in several ways; probably the easiest way is to make an enumerative decoder that generates a sequence of length 2n, just like the DeBruijne generator does in the generator proposed by Jansen [2]. In that way the randomness can be easily controlled by using an S-box, which is described in that proposal. enumerative decoder 0 run-length decoder enumerative decoder 1 Figure 1: Flowchart of a general run permuted sequence generator A counter over GF(2) of order n does generate a sequence of length 2n, but has the disadvantage of being able to generate only a small variety of sequences if permuted 130 with a key register. Using a set of counters that are connected to each other as depicted in figure 2 can reduce the severity of this disadvantage.' Figure 2: Structure of counters that can be used as enumerative decoder. 4 Counter properties In order to determine the requirements for the S-box, the properties of the enumerative decoder should be taken into account. The properties of the counting structure are similar to the properties of a counter. COUNTER registers I I I I I coded state I I I key registers I J Figure 3: A general counter of which the state is permuted with a key register. The elements of the register can be called bits and the bit on the left is called the Most Significant Bit (MSB) and the bit on the right the Least Significant Bit (LSB). The MSB is the bit that changes at the lowest rate and the LSB is the bit that changes at the highest rate, if a normal counter is used. The bits are numbered from zero to n (size of the counter) starting at the LSB. Definition 2: The state of a counter is the contents of the registers of that counter. The states of the sub counters will be permuted with a key register. A single state does not contain much information about the properties of a counter. Definition 3: A state sequence is a sequence that is acquired by writing down the states of a counter chronologically during a period of time. A state sequence contains one copy of each possible state. 131 As a result of this a coded state sequence can be defined as a state sequence that is permuted with a key register. To make each coded state -sequence unique the generation of the sequence always starts with the counter register filled with zeros. The permutation of the states ensures that every possible state can appear on every relative position in the coded state sequence. The following corollary shows this. Corollary 4: Each state can be put on every relative position within the sequence. Proof: The permutation function is a non-singular function that maps each state onto one state. All possible states can be used as key as well therefore each state can be put on every relative position within the sequence. The keys can be divided into unity keys and other keys. The unity keys are the keys with just one bit set to one and the others set to zero. The permutation function is invariant to using just any key K, or a consecutive number of unity keys of which key K, can be formed. Example:For counters of size three there are three possible unity keys. In table 4 these keys and their coded state sequences are shown. For each key the coded state sequences are divided into blocks as indicated. The use of dividing the sequences into blocks is shown in lemma 5 and is necessary in order to determine the number of possible successors. Table 4: Coded state sequences generated with all unity keys of size 3 Lemma 5: A unity key swaps blocks of states. Proof: Suppose a counter of size n is used. The length of each sequence is 2n. Each unity key can be seen as a key which divides the sequences in 2n-k blocks of size 2k, in which k is the number of the bit in the unity key that is one. A unity key only changes bit k of the states and therefore it swaps the blocks with the same bits in front of the key bit k (bits that are closer to the MSB than bit k - including the MSB itself). Within the blocks there is no change of order. Corollary 6: The unity key with the MSB set to one only changes the phase of the sequence. 132 Proof: The unity key with the MSB set to one divides the sequence into only two blocks. If these blocks are swapped the successor of the last states within each block will not change, because the successor will be, in both cases (before and after swapping), the first state of the other block. The only difference is that after the swapping the states of the first block all have the MSB set to one in contrary to before the swap. Proposition 7: Each coded state has exactly as many different successor states as the size of the counter that is used to create the coded states. Proof: Suppose a counter of size n is used. There are only n different block sizes in which the sequence can be divided, because there are only n different unity keys. As is shown in lemma 5 only the last state of each block can have a different successor after swapping blocks. In corollary 4 is shown that any state of a block can be the last state in only one way. This would give as many as n+ 1 different successors; for each unity key a different successor and another successor if no key is used. In corollary 6 is shown that using the unity key with the MSB set to one is not different from using no key and therefore there are only n different successor states. Proposition 8: In each sequence of coded states there are four states of which each of them completely define the sequence if just one successor is known. Proof: If the position of a state in a block and the size of the block are known, the complete block can be reconstructed, because every state can only appear once at each position in a block by using a specific key. This specific key completely defines the order of all states within all the blocks. As a consequence of corollary 6 it can be shown that if the sequence is divided into four blocks the blocks can only be put in two different orders. In table 5 the blocks are numbered according the MSB and the bit right next to it. The 'normal' order is the order in which the key equals zero for the two bits that represent the block number. The key that makes the adjusted order has Ol at the position of the block number bits. 'normal' order adjusted order 0 00 1 01 1 01 0 00 2 10 3 11 3 11 2 10 Table 5: The two possibleorders of the four blocks If the successor block is known of a block than the complete order of the blocks is known and because the order within each block is the same the complete sequence can be reconstructed. 133 This does not work if a sequence is divided into more than four blocks, because the successor state of such a block does not necessarily contain enough information to reconstruct the complete sequence. This is a result of the fact that the two successive blocks can be placed at multiple places within a sequence. Only the states at the end of the four earlier described blocks contain enough information to reconstruct the sequence if its successor is known. This concludes the set of properties of a normal counter that are used to describe the requirements for a good S-box. 5 S-box structure In the previous section has been explained that counters are very regular and especially some specific states contain a lot of information about the key. To conceal this it is possible to make sure that, if a state is very easy to recognise, that its successor that completely defines the key, is obscured byencoding it as a run-length that is very common, for instance as a run of length one. Definition 9: A strongly connected set of states is a set in which each state that is an element of the set is mentioned with its unique successors as shown in proposition 8. The possibility of concealing the regularities depends on the size of these strongly connected sets of states. If these sets are small it is possible to encode the majority of states as a run of a very common run-length, for instance as a run of length one or two. This ensures that if a state is recognised by the length of the run, it will not be clear whether the next run belongs to the same block of a fourth of the states (see previous section). Proposition 10: A unique successor of any state S has state S as unique successor. Proof: To put a unique successor at the end of a block all key bits heave to be inverted. If all key bits are inverted the state S appears at the beginning of its block. If the order of the blocks is changed the block of state Swill succeed the block of its unique successor (see table 5). Proposition 11: The strongly connected sets of states have four elements each. Only if the state sequence is larger than or equal to four. 134 Proof: As shown in table 5 each block number has two possible successors, if the sequence is divided into four blocks. Converting the-table into a picture in which the block numbers and their runners-up are shown, gives figure 6. In the previous section is show that witrun each block the order of the states Figure 6: Block numbers and their runners- up is equal, therefore the bits trailing the block-number bits of the both unique successors of a state have to be equal. This is shown in the following figure. Figure 7: Structure of runner-up states Combining both figures results in the fact that the size of the strongly connected set of states is four. If the size of the enumerative decoder is larger than three, it is possible to ensure that in each strongly connected set there are three elements that are coded into runs of a common length. Because half the number of states represents a run of length one and a quarter of the states represent a run of length two and so on. In the structure of the RPSG implementation, the LSB is not always the bit that changes at the highest rate. This should be taken into consideration for making a distribution of the run length over the states. The following example shows how it is possible to make sure that whatever bit changes at the highest rate the different run lengths are always distributed across the entire sequence. Example: In this example the size of the states is four (minimum size for which a 'good' S-box can be constructed). Each row in a table represents a strongly connected set of states and the states with a gray background are the states concerning. 135 Table 8: States that represent runs of length one.. Table 9: States that represent runs of length two. 0000 0111 1000 1111 0001 0110 1001 1110 0010 0101 II:IJ~:~~ 1101 R.lij,!! 0100 1011 1100 Table 10: States that represent runs of length three. This leaves the states 0110 and 1111, for respectively the run lengths 4 and 6. Table 8 through table 10 give an indication of the contents of a good S- box. The contents of a general good S-box is not apt to be displayed in a table therefore the following rules will have to do. Rules for making a good S-box: All states with bit number 1 equal to 1 represent a run length of one. The other run length distributions are based on the exclusive-or function of bit numbers nand n-I (1=true; Oefalse). Invert the conditions for the run length r-l and add a condition for the hit with the lowest bit number, which is not used in the condition for run length r-L The condition is that that specific bit is equal to the exclusive-or of bit nand n-l. For the largest three run lengths the distribution should be made by looking at the states which are still not matched with a run length and making a 'good' distribution by hand. 6 Conclusion In this paper an efficient way of generating run permuted sequences is investigated. First the general run permuted sequence is examined and on the conclusions from that section the choice of the enumerative decoder is based. This enumerative decoder is split into basic parts and the properties are described. As a result of that there are some points of concern for the quality of the sequences arisen. Constructing an S-box with certain properties has relieved these concerns. 136 Furthermore the enumerative decoder is easy to expand, just enlarge the main counter and add some sub counters. These are the main adjustments, "Other adjustments are expand S-box and create the proper connections between the elements. On account of the generation speed of the sequences, it will probably be a fraction slower than the proposal of Jansen [2], but it is still fast. References [1] C.J.A. Jansen. Investigations on nonlinear streamcipher systems: construction and evaluation methods, PhD. Thesis, Delft University of Technology, Delft, April 1989. [2] C.J.A. Jansen. On the construction of Run Permuted Sequences, EuroCrypt proceedings April '90. [3] S.W.Golomb. Shift register sequences (revised edition), Aegean Park Press, 1982. [4] Harold M. Fredericksen, Disjoint cyclesfrom the de Bruijn Graph, PhD. Thesis, University of Southern California, Los Angeles, June, 1968. [5] F.J. MacWilliams and N.J.A. Sloane. The theory of Error Correcting Codes, Amsterdam, North-Holland, 1978. 137 OPTIMISTIC NON-REPUDIABLE INFORMATION EXCHANGE Steve Kremer and Olivier Markowitch Université Libre de Bruxelles, Computer Science Dept. Bid du Triomphe C.P.212, 1050 Bruxelles, Belgium skremer@ulb.ac.be, omarkoy@ulb.ac.be In this paper we consider the optimistic approach of the non-repudiation proio- cols. We study the most complete non-repudiation protocol with off-line trusted third party and we put forward some weaknesses. To fix these weaknesses we present two solutions: one keeping a passive TTP, a second one, more appli- cable, with an active TTP 1. We show that our protocol respects the fairness and timeliness properties. INTRODUCTION The impressive growth of open networks during the last decade has created several new security related problems. The non-repudiation problem is one of them. Non-repudiation services must ensure that when Alice sends some information to Bob over a network, neither Alice nor Bob can deny having participated in a part or the whole of this communication. Therefore a non-repudiation protocol has to generate non-repudiation of origin evidences intended to Bob, and non-repudiation of receipt evidences destined to Alice. In case of a dispute (e.g. Alice denying having sent a given message or Bob denying having received it) an adjudicator can evaluate these evidences and take a decision in favor of one of the parties without any ambiguity. In comparison to other security issues, such as privacy or authenticity of communications, non-repudiation has not been studied intensively. However many applications such as electronic commerce, fair exchange, certified electronic mail, etc. are related to non-repudiation. Non-repudiation of origin can easily be provided by signing the sent information. A digital signature provides an irrefutable non- repudiation of origin evidence. Non-repudiation of receipt is more difficult to provide: therefore Alice and Bob have to follow a protocol that assures both services. The, until recently, most complete protocols providing non-repudiation have been presented by J. Zhou [4]. His first proposal relies on a trusted third party (TTP) that has to intervene during each protocol run. This TTP plays the role of a low-weight notary. The TTP only has to publish an evidence in a read-only public 1A similar protocol has been published by Zhou et al. in [3]. We independently found equivalent results. 139 directory, accessible to both Alice and Bob. Although the TTP is low-weight it may create a communication bottleneck. Therefore Zhou presented a second protocol based on the optimistic idea [IJ: he assumes that in general Alice and Bob are honest, i.e. they correctly follow the protocol, and that the TTP only intervenes, by the mean of a recovery protocol, when a problem arises. We shall start defining the properties of the different communication channels and the requirements that have to be provided by non-repudiation protocols. Then we go on describing the Zhou-Gollman protocol and put forward some of its weak- nesses. To fix these weaknesses we present two solutions: one keeping a passive TTP, but not entirely satisfying, a second one with an active TTP. We show that our protocol respects the fairness and timeliness properties. PROPERTIES Communication channels can be divided into three classes: • unreliable: no assumptions are made on these channels and data may be lost; • resilient: data may be delayed but always arrives after a finite amount of time; • operational: data always arrives after a constant known amount of time. Note that operational channels are rather unrealistic in heterogenous networks. Now we will have a look on the requirements a non-repudiation protocol must fulfill. A first requirement is fairness: a non-repudiation protocol is said to be fair if at the end of the protocol Alice has got a complete non-repudiation of receipt evidence if and only if Bob has got the message with a complete corresponding non-repudiation of origin evidence. A second property we require is timeliness: a protocol must be finished after a finite amount of time for each participat.ing entity that is behaving correctly with respect to the protocol. THE ZHOU-GOLLMAN OPTIMISTIC NON-REPUDIATION PROTOCOL We use the following notation to describe the protocol: • X ---t Y : transmission from entity X to entity Y • X f-t Y : ftp get operation performed by X at Y • hO : a collision resistant one-way hash function • Ek 0: a symmetric-key encryption function under key k • Dk(): a symmetric-key decryption function under key k • Sx(): the signature function of entity X • m: the message sent from A to B • k: the message key A uses to cipher m • c = Ek(m): the cipher of m under the key k • 1= h(m, k): a label to identify a protocol run • f: a flag indicating the purpose of a message • EOO = SA (!Eoo, B, I, t, c): the evidence of origin of c 140 • EOR = SB (JEOR, A, i, t, c): the evidence of receipt of c • EOOk = SA(JEOOk' E, l, t, k): the evidence of origin of k • EORk = SB(JEORk,A,l,t,k): the evidence ofreceipt of k • Subk = SA(JSubk, E, l, k): the evidence of submission of k • Conk = STTp(fConk' A, B, l, t, k): the evidence of confirmation of k issued by the TTP The protocol is divided into two subprotocols: the main protocol and a recov- ery protocol. The trusted third party (TTP) does only intervene in the recovery protocol. We shall first have a look at the main protocol. l. A ---+ E : lEOO, E, l, t, c, EOO 2. E ---+ A : fEOR, A, I, EOR 3. A ---+ B : lEOO., B, l, k, EOOk 4. B ---+ A: lEORk,A,l,EORk Alice starts by sending the digitally signed cipher c = Edm) to Bob. In the second message Bob responds with the evidence of receipt for this cipher (EO R). If Alice does not receive the second transmission she stops the protocol, otherwise she sends the signed decryption key k to Bob. Bob answers by sending the receipt EORk for the key. The labell is present in each transmission in order to identify the protocol run. The time-out t specified in message 1 is used in the recovery protocol. Alice may initiate the recovery protocol if Bob does not send the receipt for the key. The steps of the recovery protocol are the following: l. A ---+ TT P : lSubk' l, t, k, Subk 2. BB TTP: lCOnk,A,B,l,t,k,Conk 3. AB TTP: iCon.,A,H,I,t,k,Conk Alice sends the signed key, together with the deadline t to the TTP. If the key arrives after t, the TTP does not accept the recovery. Otherwise the TTP publishes the key together with a confirmation Conk for the key in a read-only accessible directory, where both Alice and Bob can fetch the key as well as Conk. Conk serves to Bob as the evidence of origin of the key, and to Alice as the evidence of receipt of the key as it is accessible to Bob. The deadline t is necessary for Bob to know the moment when either the key is published or will not be published anymore. A more detailed description can be found in [4J. Zhou makes the assumption that the channels between Alice and Bob are unre- liable and that the channels between the TTP and both Alice and Bob are resilient. 141 There is however one scenario where fairness is lost. Imagine that Alice sends mes- sage 3 of the main protocol. Bob now possesses a complete evidence of origin and may stop the protocol. In that case Alice has to initiate the recovery protocol. How- ever with resilient channels, Alice does not know the time it will take for message 1 of the recovery protocol to arrive at the TTP. As messages on a resilient chan- nel can be delayed, message 1 may arrive after time t and hence be refused by the TTP. At the end of this scenario Bob possesses a complete non-repudiation of origin evidence, while Alice does not have the corresponding non-repudiation of receipt evidence: fairness is broken. Zhou [4] proposes to choose a big enough t to react to this problem. However on a resilient channel it is not possible to estimate the transmission time of a message. 80 it is impossible to set a lower bound for t. AN OPTIMISTIC NON-REPUDIATION PROTOCOL We shall now have a look at the modifications we have to insert in order to keep a low weight TTP (a TTP that only needs to maintain a public read accessible directory), without the need of an operational channel. The channels between the TTP and respectively Alice or Bob only need to be resilient and the channel between Alice and Bob may be unreliable. Only the recovery protocol needs to be changed. If, for any reason, the main protocol of Zhou fails, Alice initiates the recovery protocol. The TTP verifies the request for recovery and the validity of the signature, as well as the time limit t. If the recovery request arrives before t (with respect to the clock of the TTP), the TTP continues the protocol as it has been proposed by Zhou. However if the recovery request arrives after t, the TTP revokes the public signature keys of both Alice and Bob. Therefore the keys are inserted in a certificate revocation list (CRL). Thus, each time the non-repudiation evidences are used, the CRL has to be checked to be sure that the keys are still valid. Now, if Bob does not reply after having received the third message or if his reply is lost, it is not anymore crucial for Alice to contact the TTP before time t. If the message arrives at the TTP before time t the recovery is performed and both Alice and Bob receive their evidences. Otherwise, if the recovery request arrives after t, the evidences are revoked by revoking the public signature keys. This solution does only need a passive TTP (the TTP does not send messages but only maintains a public read-only accessible directory). However, we remark the following weaknesses. In the case Bob does not send a receipt for the key, he can use his non-repudiation of origin evidence during the time interval between t and the key revocation. This results in a temporary unfair situation. On the other hand Alice has an advantageous position with respect to Bob: jf the main protocol 142 is executed without intervention of the TTP, Alice may revoke the evidences later by the mean of the recovery protocol. We shall now propose a protocol that does not suffer from the here outlined drawbacks. Our work independently ends up to a similar protocol presented by Zhou et al. in [3J. The protocol is based on an active TTP (the TTP needs to send messages to Alice and Bob via resilient channels, but does not need to maintain a public directory accessible via ftp). The following notation is used to describe the protocol: • 1= h(m,k) • EOO = SA (JEaa, B, I, h(e)) • EOR=SB(hOR,A,I,h(e)) • Sub = SA (fSub, B, I, ETTP(k)) • EOOk = SA(JEOOk' B, I, k) • EORk = SBUEORk,A,I,k) • Reex = SX(JRecx, Y, I) • Conk = STTp(fConk' A, B, I, k) • Abort = SA (J Abort,B, I) • Con.; = STTp(fcona,A,B,l) Main protocol 1. A~B: [eoo, fSub, B, I, e, ETTP(k), EOO, Sub 2. B~A: hOR, A, l, EOR (time-out: abort) 3. A~B: [sooc, B, l, k, EOOk (time-out: reeovery[X := B, Y := Al) 4. B~A: feORk' A, l, EORk (time-out: recovery[X := A, Y := Bl) Alice starts the protocol by sending the cipher of the message, as wel! as the de- cryption key, ciphered under the public key of the TTP, to Bob. The message does also contain Alice's signature on the encrypted key and the hash of the cipher. This signatures serves as a non-repudiation of origin evidence of these ciphers. If Bob receives the first message he replies with a receipt to confirm that he got the first message. This receipt contains Bob's signature on the hash of the cipher c and serves to Alice as a non-repudiation of receipt evidence of the cipher. In the case that Alice does not receive message 2 from Bob before a given time- out, she initiates the abort protocol. Note that Alice cannot perform a recovery at this moment, as the recovery protocol requires EOR, the evidence of receipt for the cipher. If message 2 arrives to Alice before the time-out, she sends to Bob the decryption key k, as well as a signature on this key. This signature is used as the non-repudiation of origin evidence of the key. The non-repudiation of origin message 143 of the cipher c, together with the non-repudiation of origin evidence of the key k, form together the non-repudiation of origin evidence of the message m. Message 3 has to arrive to Bob before a given time-out. Otherwise Bob initiates the recovery protocol with the TTP. If message 3 arrives in time, Bob sends a receipt for the key to Alice: his signature on the key k. The signature serves as the evidence of receipt of the key. Together with the evidence of receipt of the cipher c, they form the non-repudiation of receipt evidence of the message m. Alice mayalso initiate the recovery protocol with the TTP if this last message does not arrive in time. Abort protocol Alice has the possibility to run an abort protocol, if she does not receive message 2. If she decides to do so she sends a signed abort request, including label l, to the TTP. If the TTP accepts the request (neither a recovery nor an abort has yet been initiated), the TTP sends to both Alice and Bob a signed abort confirmation. if recovery or abort then stop abort=true 1. A -+ TT P : JAboTt, l, B, Abort 2. TTP --+ A : feona, A, B, l, Con.; 3. TTP --+ B : feona, A, B, i, Con.; Ftecovery protocol To launch the recovery protocol Alice or Bob has to send to the TTP the hash of c, the key k ciphered for the TTP, the non-repudiation of origin evidence for the cipher c EOO, the non-repudiation of origin evidence for the encrypted key Sub, the non-repudiation of receipt evidence for the cipher c EOR, as well as the non- repudiation of origin evidence of the recovery request Recy (where X may take the values A or B). Note that the recovery protocol can only be executed once per protocol run. By the mean of these evidences the TTP can be sure that Alice sent the cipher c to Bob and that Bob really received it. Moreover the party X, that initiates the protocol, cannot indicate a wrong identity for Y, the second participating entity, as the TTP verifies signatures of both entities. Otherwise, X could give any wrong identity making it impossible to Y to get the evidences as the recovery may not be run a second time. 1. X -+ TT P: fRecx, fSub,Y, l, h(c), ETTP(k), Recx, Sub, EOR, EOO if abort then 2a. TTP --+ X: Jeona,A,B,l,Cona 144 else if recovery then stop else recovery=true 2b. TTP -+ A: fConk,A,B,l,k,Conk,EOR 3. TTP-+B: fCOnk,A,B,l,k,Conk If the first message arrives and the TTP accepts to perform a recovery protocol, the TTP sends to Alice the confirmation of submission of the key, as well as the non-repudiation of receipt evidence for the cipher EOR. It is important to include EOR, as Bob can initiate the recovery protocol after having received the cipher, without having sent a receipt for it. The TTP sends to Bob the key k, as well as the confirmation of the submission of the key, serving to Bob as an evidence of origin for k. If the recovery protocol is executed, the key confirmation evidence Conk will make part of the non-repudiation evidences for the message m. It is used to replace both the non-repudiation of origin evidence for the key as well as the non-repudiation of receipt evidence for the key. Dispute resolution When Alice denies the origin of the message, Bob has to present to the judge EOO, EOOk or Conk, l, c, m and k. The judge verifies that • EOO = SA(!Eoo,B,I,c), • EOOk = SA(fEOOk,B,l,k) or Conk = STTp(fConk,A,B,l,k), • 1= h(m, k), • c = Ek(m). If Bob can provide all the required items and all the checks hold, the adjudicator claims that Alice is at the origin of the message. When Bob denies receipt of m, Alice can prove his receipt of the message by presenting EOR, EORk or Conk, l, c, m and k to a judge. The judge verifies that • EOR = SB (fEOR, A, l), • EORk = SBUEoRk,A,I,k) or Conk = STTp(fConk,A,B,l,k), • 1= h(m, k), • c = Ek(m). If Alice can present all of the items and all the checks hold, the adjudicator concludes that Bob received the message. Fairness and timeliness If Bob stops the protocol after having received the first message, Alice may perform the abort protocol, in order to avoid Bob to initiate a recovery later. As neither Bob nor Alice received complete evidences the protocol remains fair. If Bob 145 had already initiated the recovery protocol, the TTP sends all the missing evidences to Alice and Bob. Note that the TTP also sends the EOR to Alice, as she has not received it yet. Thus the protocol stays fair. If Alice does perform step 3, Bob receives a complete non-repudiation of origin evidence. There are two ways to finish the protocol: Bob sends message 4 of the main protocol and Alice receives a complete non-repudiation of receipt evidence or Alice performs the recovery protocol. As the channels between the TTP and both Alice and Bob are resilient, all data sent by the TTP to Alice and Bob eventually arrive. In both cases all entities receive valid evidences and the protocol finishes providing fairness. If Alice does not send message 3 during the main protocol, Alice and Bob may initiate the recovery protocol. Fairness is still guaranteed, as during the recovery protocol, Alice and Bob receive all expected evidences. When looking at the timeliness, three situations may arrive: the main protocol ends up successfully (without any time-out); Alice aborts the protocol and the abort confirmation signed by the TTP arrives at Alice and Bob after a finite amount of time, as the channels between the TTP and both Alice and Bob are resilient; a recovery protocol is performed and Alice and Bob receive the evidences after a finite amount of time because of the resilience of the channels. CONCLUSION In this paper, we point out some weaknesses of the optimistic version of the Zhou-Gollman protocol. We then show the problems that are remaining when trying to keep a low-weight offiine TTP. Therefore we present a protocol, that combines an active, offiine TTP with a resilient channel. Note that this is the first optimistic non-repudiation protocol that succeeds to guarantee fairness and timeliness assuming that channels are resilient. ad~ve T T P REFERENCES [1] N. Asokan, M. Schunter, and M. Waidner. Optimistic protocols for fair exchange. In T. Matsumoto, editor, 4th ACM Conference on Computer and Communica- tions Security, pages 6,8-17, Zurich, Switzerland, Apr. 1997. ACM Press. [2] A. J. Menezes, P. C. van Oorschot, and S. A. Vanstone. Handbook of applied cryptography. CRC Press series on discrete mathematics and its applications. CRC Press, 1996. ISBN 0-8493-8523-7. [3] J. Zhou, R. Deng, and F. Bao. Evolution of fair non-repudiation with TTP. In ACISP: Injormation Security and Privacy: Australasian Conference, 1999. [4] J. Zhou and D. Gollmann. An efficient non-repudiation protocol. In PCSFW: Proceedings of The 10th Computer Security Foundations Workshop. IEEE Com- puter Society Press, 1997. 146 Codes for Frequency Hopping Communication Presented at the WIe meeting, May 25-26, 2000, Wassenaar A.J. Han Vinck Vinck@exp-math.uni-essen.de University of Essen Summary: We discuss communication systems using Frequency Hopping (FH) transmission technique. FH is used in situations where the spectrum must be used in a scattered way. We assume that a particular transmitter may choose one-out -of M frequencies for each transmission. The receiver is assumed to be able to detect the presence of the set of possible transmitted frequencies. In a multi-access environment, two of the coding problems involved are: a) the design of codes to facilitate simultaneous transmission of information for a small set of active users; b) the design of signature sequences to signal the activity or presence of a particular transmitter. 1. Random Access for point-to-point communication. In a fully coordinated multi-access situation, the number of available dimensions for transmission is shared equally among the number of participants in the network. If all users are active, the throughput is optimal. Examples of this method are Time Division Multiple Access (TDMA) or Frequency Division Multiple Access (FDMA). In all other situations, the channel contains idle or not-used dimensions. These communication schemes need full coordination in the network. Another drawback of dimension sharing is that each of the N potential users gets only l/N-th of the dimensions. Furthermore, the DMA schemes suffer from inflexibility inherent in pre-assigned dimensions. To accommodate more users than the available numberof dimensions, a demand assignment protocol must be established. user I receiver 1 user 2' receiver 2 WIDEBAND CHANNEL userT Fig. 1. Multi-user communication model 147 In a multi-user situation where a small set of users is active, Code Division Multi Access (CDMA) provides a means of efficient communication. We assume that the T users are allowed to transmit independently, without any network management control. Each of the T users possesses private signatures that can be used in the information encoding process. We consider the situation where user i wants to transmit information only to reveiver i. As a model, we use the T-user M-frequency transmission model as described in [2]. Here, every user has the same set of M orthogonal frequencies X= {fo, fl, ..., fM-das input symbols. At each time instant the receiver outputs a symbol y which identifies which subset of frequencies occurred as input to the channel at that time instant but not how many of each frequency occurred. We abbreviate this channel as the M-OR channel. The T users select their M input symbols independent from the other users (without coordination) but with the same input probability distribution p(x). Since the users are assumed to be unknown to each other, a particular receiver considers the other users transmissions as noise. Throughput is defined as the sum amount of information that can be transmitted with a vanishing decoding error probability over the T-user M-frequency multiple access channel without coordination. For fixed M and T ~ 00, CWlcoordinated = T(max[H(Y) - H(Y I Xi»)) 2: (M-I)ln2 bits per transmission p(x) The following theorem specifies the input distribution that achieves this throughput. Theorem J. For the M-OR channel with T ~ 00, M fixed, the sum throughput (M- I)ln2 bits per transmission can be achieved for an input probability distribution that puts a probability I-(M-I)ln2/T on one frequency and a probability In2/T on each of the remaining M frequencies,. Theorem 2, as derived in [6], gives the maximum throughput for T < M users. Theorem 2. For T = Mln2 the maximum sum throughput Mln2 bits/transmission can be obtained for a uniform input distribution. Cohen, Heller and Viterbi [1] describe an M-ary transmission scheme that achieves the normalized throughput of In2 bits per frequency, as given in theorem 2. Transmission is divided into L time slots where in every time slot every active user transmits only one of the M frequencies. Every user has M different private signatures of length L, one for every message. The normalized, with respect to time and frequency, throughput is thus R = (log- M)IM*L bit per active user. A receiver looks for the particular signature connected with a message that belongs to its respective transmitter. An error is made if it detects a valid signature that is the result of the ,,M-OR" of the other users. Codes are to be designed to minimize the decoding error probability for a given number ofactive users T . .__----- L=3 M=4 I I t Fig. 2. Cohen, Heller and Viterbi model for T = Mln2. 148 For random signatures, the input frequencies are used with equal probability. The symbol error probability is then given by the probability that the T-Lother users together generate a valid signature. This probability is upper bounded by (1) For M = i 1- e)L and T-1 = M*/n2, P, ~ 2 - E \ E > 0 for large values ofT. (2) The total normalized throughput Rsum = T* log2 M ~ (1 - E)/n2 bits. "ML Example. For T = 700 and M = 1000, we have Rum = 0.35 bits and Pe = 10-3 If, in addition we allow the transmission of an idle symbol, the M frequencies can be used independently as M parallel channels. This is called the extended 'I'-user M-frequency channel. Every frequency together with the idle symbol creates an individual channel that can be modeled as a Z-channel. The uncoordinated parallel sum throughput is upper bounded by Cpar(M,T) ~ Mln(2) bits per transmission, see [1]. Forthe extended T-user M- frequency channel we have the following theorem. Theorem 3. For the extended T -user M-frequency, channel, T ~ ooand M fixed, the total achievable sum throughput for T users becomes Mln2 bits per transmission for an input probability distribution that puts a probability l-M/n2fT on the idle symbol and a probability /n2fT on each ofthe remaining M frequencies, The following communication method achieves the capacity as given in theorem 3. Transmission is divided into i time slots where each time slot contains L sub slots, see Fig. 3. A sub slot contains M frequencies. Per sub slot we transmit only one of the M frequencies. In this case we choose "ML different messages, specified by the position of the active slot and the used frequency within an active slot. Every user thus needs "ML different private signatures, one for every message. The normalized throughput is R = (10g2 ML)/M*iL bits per active user. The symbol error probability is given hy the probability that the T-lother users together generate a valid signature. This probability is upper bounded by (3) For ML = 2{ 1- e)i and T = ML */n2, P, ~ 2 - e i, E > 0 for large values ofT. 149 The normalized sum throughput Rsum = T* 10~~ ~ (1- &)/02 bits (4) i= 3 .. III M=4 L=4 I Fig. 3. Cohen, Heller and Viterbi model for T > Mln2. For this model a particular non zero input occurs with relative frequency IIML = In2/T. This is in agreement with the maximum achieving probability distribution as given in theorem 3. Example. For T = 700 and M = 50, we have Rsum= 0.35 bits per transmission and P, = 10-3. In Table 1 we summarize the relation between the error rate, the number of users and the throughput. TABLE 1 Normalized throughput R.um and error rate as a function ofT 1ln2 l.ln2 1ln2 3 2 3 0.7 1 T ../IAT in an 'MFSK frequency hopping (FH) system we assume that each user, out of a large number ofusers, randomly selects a certain frequency slot, consisting ofM frequencies, for its transmission. For T users using a bandwidth B = qM Hz divided into q frequency slots ofM frequencies each, the average number ofusers per slot is m = T/q. Using the above throughput estimation, the total maximum achievable throughput Rsum(M, T,B), for T ~ 00, normalized with respect to the bandwidth B becomes Rsum (M = Blq, T ~ 00, B) ~ (l/B) q M 1n2 = 1n2 bits. 150 For BFSK frequency hopping we also reach an important conclusion from the above approach. For BFSK the equivalent channel model looks like an erasure channel. It is a custom to assume that for erasure channels the input should be used with equal probability in order to obtain maximum throughput. The throughput of the binary erasure channel with ill = Tlq users and symmetric input distribution is 1I2m-1 per user. The normalized throughput for T users is thus rnI2m-1 bits, which approaches 0 for q fixed and T ~ 00. However, the optimal asymmetrie input distribution gives 1n2 bits .. In Table 2, we compare the theoretical efficiency for different communication methods using binary modulation. TABLE2 efficiency for various multiple access techniques with binary modulation. FDMAlTDMA needs perfect coordination ALOHA 1Ie slotted, uses feedback FHlCDMA 1n2 uncoordinated Chang and Wolf showed numerically that the capacity of the cooperative T-user M- frequencychannel approaches M-I bits per transmission. It has been shown in [4], that the capacity for this channel is indeed M-I bits per transmission. This capacity can be achieved with a very simple timesharing strategy. Assume that we divide the T users into groups ofsize (M-I). Within one group the users are numbered from I up to M-I. User i, I s: i s: M-I, uses as the transmitting frequencies fa and ti. At the receiver, we are able to detect whether user i uses frequency fa or ti and thus we transmit M-I bits per transmission. Example: For M = 3, T/2 groups of users use the frequency pairs (fa fj) and (fa f2), respectively. The output ofthe channel is fa , (fa fl), (fa f2), or (fl f2). Note that the input ofthe channel is uniquely decodable. Note that here, we also have a "central" frequency fa. If we allow the alphabet extension with an idle symbol, then it is easy to see that the capacity increases from M-I to M bits per transmission. 2. Signatures. We consider the transmission of signatures in a multi-user concept for the case where the set of active users is small compared to the total amount of users. As before, each active transmitter uses one out of M different frequencies. The detector detects the set of used input frequencies using the "M-OR" operation. Two types of signature sets are of importance: I) unique detection of the individual transmitted signatures from the composite signature. This type is called uniquely decipherable (lID); 2) unique detection of the presence of a particular signature from the composite signature. This structure is called Zero-False-Drop (ZFD). Kautz-Singleton [7] introduced the above two classes of signatures for the binary case. We extend their definition to the M-ary case. 151 Property J: A set UD(n, N, M, T) consists of N M-ary signatures oflength n, with the property that the M-OR of any non-empty T -sub set is distinct from every other M- OR of T or fewer signatures. The second class of signatures is the Zero-false-Drop (ZFD) of order T signatures. Property 2: A set ZFD(n, N, M, T) consists of N M-ary signatures of length n, with the property that the M-OR of any non-empty T-subset does not include a signature other than those used to form the M-OR. Example: The set B = { 100,010,001, 111 } is a ZFD(3, 4, 2, 2). The set A = {lOO, 010, 001, 111, IlO} is nota ZFD(3, 5, 2, 2). However, itcan be verified that it isa UD(3,5,2,2) set ofsignatures. As an example the M-OR(OlO,lll) = ({0,1},{l},{0,1}) includes (1,1,0). However, for T = 2, the signature (1,1,0) in combination with (0,1,1) gives ({0,1}, {I}, {0,1}), which is not a member ofthe set. Note that a ZFD set of signatures is automatically a UD set. The other way around is not always true. Proposition 1 gives a relation between N, T, M and n. It follows directly from the property that every M-OR of up to T constituent signatures must be different .. Proposition J. The length of a UD(n, N, M, T) is lower bounded by (2M -1) n T(N). . ~ L (5) i=l I Proposition 2. For a ZFD( n, N, M, T) the following inequality holds . n> T 1 [e.e~N -1. We now give an upper bound for the length of a ZFD(n,N,M,T). Consider an N x n matrix containing M-ary elements that are uniformly independently distributed. All elements have equal probability llM. The probability that the matrix is not a ZFD can be shown to be bounded by (6a) Here, for a: particular selection of T + 1 rows of the matrix, the probability is calculated that there does not exist a row with an element different from all other elements in the same column. If this probability is strictlyless than 1, then there exits at least one ZFD. This condition is satisfied for 152 (6b) Using the inequality - £n(l- s) > s , we obtain aslower and upper bound (6c) A ZFD can be constructed using error correcting codes, such as Reed Solomon codes. We first give a relation between the minimum distance of a code and the existence of a ZFD. Proposition 3. Let v c: { 1,2, ••• , M}n be an error correcting code with minimum distance d and cardinality N. If T-l d>--n (7) T ' then V is also a ZFD(n, N, M, T). Proof The number of agreements between two code words is less than or equal to n-d. For the M-OR of any set S of T code words the number of agreements with a specific code word not in S is thus less than or equal to T(n-d). For T(n-d) < n, there must be at least one special element in any other code word not in S Hence, the members of the set S can be determined uniquely. 0 Corollary. The extended Reed-Solomon (n = q", k = qS-l,d = qS_ qS-!+ 1) code over GF(qS), where q is any prime power and T :::;q, defines a ZFD(qS, qS\ q", T). Proof It is easy to check that for T::::;q, the condition ofproposition 3 is fulfilled. Example: For T = 3 and M = 9, the shortened RS-code with parameters (n,k,d) = (7, 3, 5) gives a ZFD(7, 93, 9, 3) and the shortened RS-code with parameters (n,k,d) = (4,2,3) gives a ZFD(4, 92, 9, 3). Remark. The condition (7) in proposition 3 is a sufficient but not a necessary condition for the existence of a ZFD. This follows from the next example. Example: Let M = 3, T = 2 and n = 4. The following code has distance 2. The corresponding ZFD does not satisfy condition (7). 153 o 000 o 110 022 1 1 1 2 2 ZFD(4,12,3,2) 120 1 1 0 1 0 2 2 1 1- 2 0 2 1 2 1 0.1 222 0 o 0 12 2 2 0 2 An extension of the above can be found in [5], where also an asymptotic construction is given. CONCLUSIONS ·We show that the achievable normalized throughput for the asynchronous T-user M- frequency noiseless multiple access channel approaches 1n2 bits. The corresponding input distribution puts almost all mass on one frequency and divides the remaining probabilit~ mass equallyon the remaining M-I frequencies. Instead of using one out of 2 combinations of frequencies from a given frequency interval with M orthogonal frequencies, same performance can be achieved by using only a single frequency from an M-frequency interval, which is the advantage of the M-tone frequency shift keying systems. We also give an encoding strategy that enables transmission, with almost zero error probability, achieving the optimal throughput. The strategy is based on earlier results given by Cohen, Heller and Viterbi in [1]. Signature sequences can be used to signal presence in a random access system. We give two classes of signatures with the property that the composite signature is uniquely decipherable or distinguishable. We give upper and lower bounds on the length of these signatures. REFERENCES [1] A. Cohen, J. Heller and A. Viterbi, !IA New Coding Technique for Asynchronous Multiple Access Cornmunication," IEEE Trans. on Comm., vol. COM-19, pp. 849-855, October 1971. [2] Shin-Chun Chang and J.K. Wolf, "On the T-User M-Frequency Noiseless Multiple- Access Channel with and without Intensity Information," IEEE Trans. on Inform. theory, vol IT-27, pp. 41-48, January 1981. [3] A.J. Han Vinck and Jeroen Keuning, "On the Capacity ofthe Asynchronous T -user M- frequency Noiseless Multiple Access Channel without Intensity Information," IEEE Trans. on Inform. theory, November 1996. [4] P. Gober and A.J. Han Vinck, "On the Asymptotic Capacity of a Multiple-Access Channel," Problemy Peredachi Informatsii, accepted to be published. [5] A.J. Han Vinck and Samwel Martirossian, "On Superimposed Codes," in Numbers, Information and Complexity, Ingo Althöfer, Ning Cai, Gunter Dueck, Levon Khachatrian,Mark S Pinsker, Andras Sarkozy, Ingo Wegener and Zhen Zhang (eds.), Kluwer Academic Publishers, February 2000, pp.325-331. [6] L. Wilhelmsson and K. Zigangirov, "On the Asymptotic Capacity of a Multiple-Access Channel," Probl, Inf Transm. vol. 33 (1997), pp. 9-16. [7] W.H. Kautz and n.c Singleton, ''Nonrandom Binary Superimposed Codes," IEEE Trans. on Inform. Theory, IT-IO, October 1964, pp. 363-377. 154 A GENERALIZATION OF A COHERENCE MULTIPLEX SYSTEM. Geert H.M.L. Heideman Twente University, Faculty of Electrical Engineering (TEL) P.O.Box 217, 7500 Enschede Heideman @cs.utwente.nl ABSTRACT Coherence Multiplexing is a relatively unknown form of Code Division Multiple Access (CDMA), specially used in access networks for optical communication systems. Usually a Coherence Multiplex system uses delay-filters at the transmitter and at the receiver to perform the code. In this paper a generalization to other filter types is described. The performance of such a system, i.e. the signal to noise ratio can be calculated for generalized filters. In particular, the floor in the signal to noise ratio, that arises in such systems for high signal power, is given by a simple expression in which only the bit-time, the coherence length of the optical source and the number of simultaneous users are involved. It will be shown that, with a suitable choice of filters, the floor in the signal to noise ratio can be made proportional to the inverse of the number of simultaneous users instead of the inverse of the square of this number, as is the case for a conventional Coherence Multiplex System with simple delay- filters. 155 BER results for a narrowband multiuser receiver based on successive subtraction for M-PSK modulated signals Gerard l.M. lanssen S. Ben Slimane Telecomm. and Traffic-Control Systems Group Radio Communication Systems Group Dept. of Information Technology and Systems Dept. of Signals, Sensors, and Systems Delft University of Technology Royal Institute of Technology Delft, The Netherlands Stockholm, Sweden e-mail: g.janssen@its.tudelft.nl e-mail: slimane@radio.kth.se Abstract-A narrowband multiuser receiver based on successive signal detection and subtraction, is proposed. The Bit Error Rate (BER) performance for M-PSK modulated signals is evaluated and analytical approximations for the BER of the individual signals are presented and compared to the actual BER. The effect of inaccurately estimated signal parameters due to noise is anaiyzed. BER results are presentedfor synchronous signals for both Additive White Gaussian Noise (AWGN) and Rayleigh fading channels. 1 Introduetion An important issue in future mobile communication systems is to achieve a high spectral efficiency. Increase of the spectral efficiencyallows for higher data rates or for more users to communicate simultaneously in the same bandwidth. In the third generation mobile communication systems, code division multiple access (CD MA) is applied to achieve this goal. In CDMA, the user signal is coded with a user-signature which makes it possible to distinguish and detect users which occupy simultaneously the same channel at the cost of a large increase of the bandwidth required. In this paper, a narrowband multi-user receiver based on successive signal detection and subtraction, is investigated for M-PSK modulated signals. In this receiver the major signal is detected and estimated in the first detector; the estimate is subtracted from the total input signal. Subsequently the next largest signal is detected, estimated and subtracted, and so on. This principle is also indicated as "onion peeling" [1]. By narrowband we refer to the fact that no spreading gain or bandwidth expanding signature code is applied to separate the users like in CDMA. The structure of the receiver is shown in Figure 1. The proposed receiver is less efficient when the Signal- to-Noise Ratio (SNR) at the input is compared to that required by a QAM scheme with the same bandwidth efficiency. However, in an interference limited communication system, where a user with a high channel gain can be received with a high SNR at the cost of very low additional interference to the system, this receiver can be exploited. The signal state structure of multiple signals is investigated in Section 2. In Section 3, the BER performance for M-PSK modulated signals, based on successive subtraction, is analyzed. In Section 4, BER results are presented for the Gaussian noise channel and compared to the derived approximations. Also the BER performance is shown for the Rayleigh fading channel. Initially, perfect channel state information for all active signals is assumed at the receiver. In Section 5, the effect of non-perfect parameter estimation due to the presence of noise is evaluated. ln Section 6, conclusions are drawn. 157 r(tl Figure 1: Principle of the multi-user receiver using successive detection and subtraction. 2 Signal state structure Let us consider a multi-user system with N active users, al! using the same carrier frequency ie and M-PSK modulation. Assuming a synchronous system, the equivalent lowpass of the received signalover a given symbol interval can be written in the following form: N rCt) = LSkCt)+n(t) k=1 (1) N Jl({Jk+mk." ~) = LAke + nCt), k=1 where T, is the symbol duration, Ak is the amplitude of the transmitted signal k, nit) is AWGN and mk,n = ±I ,±3, ... ,±C2M -I) is related to the transmitted symbol of signal Sk Ct). We further assume that these N signals have different amplitudes with AN > AN_I> ... > Al . In general the signals have uniformly distributed phase ((Jk and independent modulated information data d k . Thus ignoring noise the interference term in the above expression will cause disjoint clouds around the major signal points. This is shown in Figure 2 for four independent QPSK modulated signals where the receiver is locked to the major one. The task of the first receiver is to detect the cloud belonging to the correct symbol value of the major signal. After subtraction of the major signal estimate, the remaining signal will form clouds around the next major signal states, and so on. With k signals present, the signal state regions are the area of the clouds which are limited by an inner circle with radius 158 ~k-2 ~k-I Rk,rnin = Ak_1 - L...i=J A; and an outer circle with radius Rk,max = L...i=1A; . For k == 2 the signal states are on a circle with radius R2 == Al centered around the state of s2 (t) . Multipl8SÎgl'lalcioUil \5 !O Ê 0 0°0 ·'0 o ·'5'-:.'5;-----;.'0::----'.5;----'0;----';----',0-0 R. --;'50-' Figure 2: Signal cloud around the dominant signal with AI = 1, Az = 2, A3 = 4, A4 = 8 , C(J4 = -11: /6 and random phases for the other signals. 3 Bit Error Rate analysis Let us first consider the detection of signal sk (t). Assuming correct decision for the first N - k signals (strongest) and with coherent detection, the detector of sk (t) should be able to lock on its proper signal sk Ct) . In that, after phase compensation the received sample at the input of this detector (see Figure 1) can be written as .( 2,,) k-J Y k.n == A k el m"'M + ~ ,1.ejOi., + n L...[~ k.n» k -- 1, 2 , ... , N (2) ;=1 where ei,n is the total phase of signal i during the symbol interval n'T; and nk,n is AWGN with zero mean and variance (Jl~ . The conditional symbol error probability in this case can be written as follows: Pk(ë) "'~ a (A sin(n I M). - I,k-JA; cos J ... J Q _k . 2" 2" ,-! ê , 1 d8 J ... dek I (3) (2n) 0 0 Cfll where ad == 1 for BPSK and ad == 2 for higher modulation levels. The above expression can be solved numerically. However, the computational complexity increases with the number of signals. Using Figure 2, it is possible to obtain two simplified approximations to the above symbol error probability. Approximation 1: Considering a worst case situation, the conditional symbol error probability of signal k can be approximated as follows: ad 2J" (Ak sin(n I M) - Rk.max cos e } Pk(£) "'- Q e (4) 2n 0 all This approximation becomes an exact solution when k == 2. 159 Approximation 2: For k > 2 all signal states are assumed to be uniformly distributed over the annular region between Rk,max and Rk,min' The approximated conditional symbol error probability is now given by: Pk(£)"" 2 a~ 2 f'fQ(AkSin(n/M)-rCOSe)rdrde. (5) n(Rk , max s; miJ ,. 0 R k,mln. on For large values of k, this approximation is more accurate than Approximation 1 as shown later in Section 4. Example: In the following, we assume that the signal amplitudes are geometrically related as: Ak=ak-lAJ> a>I, k=1,2, ...,N. (6) The minimum Euclidean distance Dk,min for signal Skis obtained as o,,min = [aH sin(n / M) - a - -1 JA!> k1 a-I M :2: 2 (7) Based on this worst case situation, the worst case conditional symbol error probability becomes: ~(£)""adQ [ 2E kNOk 2 D ,min 1 (8) with ad as earlier defined and Ek the average symbol energy of signal k. It is clear from the above expression and (7) that this conditional error probability is dependent on the parameter a and the number of signals k. Let us define the function g(a,M ,k) as follows: k-l 1 g(a,M ,k) = ak-1 sin(n / M) -~. (9) a-I To be able to detect sk' the function g(a,M ,k) has to be strictly positive. The function g(a,M ,k) has the following interesting properties: 1. for 1 < a < 1 + lIsin(n / M), g(a,M ,k) decreases with increasing k from the value sin(n / M) for k = 1. This puts a limit on the maximum number of simultaneous signals k that can be transmitted. Table 1 gives the value of a for which the function g(a,M ,k) is zero for a given number of signals k and modulation level M. 2.for a=1+1/sin()!/M), g(a,M,k)=sin(n/M) V k:2:l. 3. for a>l+lIsin()!/M), g(a,M,k) increases with increasing k from the value sine)! / M) for k = 1. We notice that the number of signals k that can be simultaneously transmitted is in principle not limited if a;::-: 1 + 1/ sinïzr / M), however, the minimum required value of a = 1+ 1/ sine)! / M) increases with the modulation level M. 160 Table 1: The set of values (a,k,M) for which the function g(a,k) = O. M=2 M=8 k a a (dB) a a (dB) 2 1 0 2.75 8.77 3 l.62 4.19 3.39 10.60 4 l.84 5.30 3.56 1l.03 5 l.93 5.71 3.60 1l.13 6 l.97 5.89 3.61 11.l5 Taking into account the error propagation from the previous k - 1 detectors, the average symbol error probability of signal k is obtained as follows: r.. = --M-l[ n 1- N (1- P<./) + Pk(E) J n P,./), N (1- I <:;;k = s3' I'!,. = S2' 0 = SI' EbNo = El/No' It is observed that Approximation 1 is too pessimistic for the larger signals because all signal states are taken at Rk,max . Approximation 2 is very close to reality. For small values of k (close to 2) the calculated symbol error rate becomes slightly optimistic because the density of the actual signal states is larger at the outside of the annular region than at the inside. In figure 4, the average BER is shown for the Rayleigh fading channel as a function of the SNR and for two different values of IX. Due to the fading, the desired amplitude ratios are not maintained anymore and even the order of signal powers may change . ~ ... .•.. 1-- i I ro rc EbNo Idaj EbNo [dSI IX = 2 (6dB) IX = 2.82 (9 dB) Figure 4: BER results for Rayleigh fading (dashed line for a single user, continuous for the four- signal case): 0 = S4' «» = S3' X = S2' 0 = Sj, EbNo = E[E1 / Nol. The large signals (s3 (t) and s4 (z) clearly show an error floor at high SNRs. The small signal sJ (t) has a BER worse than that of the single signal case, however the difference is quite small. 5 Effect of inaccurate parameter estimation Accurate parameter estimation is crucial for the operation of the narrowband multi-user receiver. In practice parameter estimation is not perfect due to the presence of noise and co- 162 channel signals. In [2] it is shown that by using training sequencés with low correlation, signals can be separated almost completely by applying the bootstrapping technique. So even in a multi-user environment it is feasible to estimate the parameters of each signal with nearly the same accuracy as for the Gaussian noise channel. The amplitude and phase errors caused by noise have a statistical nature. In [3] Gardner showed that for small phase errors, be the variance of the phase error is inversely proportional to the SNR in the estimation circuit. For the variance of the normalized amplitude error bA = bA / A an identical expression can be derived: 1 BLNo ---=--- (12) 2SNRL Here SNRL is the SNR within the equivalent noise bandwidth BL of the estimation circuit, 2 and P, = A /2 is the signal power. Since b A and be are independent stochastic variables, the residual power Pt:. after subtraction is found by using eqn. (12) as Pt:. = E[Ps (b ~ +b~ )]= r, (a gA +age )= BLNo (13) Thus inaccurate signal suppression in the multi-user detector by phase and amplitude errors can be modelled by adding the noise power BLNo in the bandwidth of the parameter estimation circuit after every subtraction. Since the training sequences are nearly uncorrelated, the estimation errors due to noise are independent for each of the signals. The conditional symbol error probability takes the form of (3) with a ~ replaced by a~+(N-k)BLNo· The degradation then increases with the number of signals and is largest for the minor signal. If the bandwidth of the estimation circuit is much smaller than the matched filter bandwidth, B MF ' of the detector then this degradation can be neglected for N« L = BMF / BL. L represents is the length of the used training sequence. In practice, this assumption holds true otherwise the signals cannot be separated for parameter estimation. Figure 5 shows the effect of estimation error on the BER for training sequences of length L = 15 and 31 in a four-signal environment with a = 2 and BPSK modulation. It is observed that the degradation for the minor signal (worst case) is relatively small. Simulation 10r l ::a 31 1.E= S3'D.= S2'O= SI' a=2 (6dB). 163 5 Conclusions The BER performance of a subtractive multi-user receiver for narrowband M-PSK modulated signals is analyzed in this paper. For a multi-signal environment two approximations for the BER were derived and compared to simulated results. It has been shown that for signals with geometrically related amplitudes, two important cases occur. If the amplitude relation between successive signals (ordered in amplitude) ex :2: 1 + 1/ sin(n / M) , in principle an arbitrary number of signals can be stacked. In practice, however, where signal parameter estimation is inaccurate, this will not be feasible. For ex < 1 + 1/ sin(n / M) , inherent errors occur if too many signals are stacked; the maximum number number of signals N decreases with decreasing ex and with increasing M. It has also been shown that to compensate for inaccurate signal parameter estimation, an extra margin should be added. This margin can be reduced considerably if the length of the training sequence L is chosen such that N « L. The performance in the Rayleigh fading channel shows an error-floor for the error probability of the different signals. This is due to the fact that fading makes the interference more Gaussian. References [1] T.M. Cover, J.A. Thomas, Elements of Information Theory, John Wiley & Sons Inc., New York, 1991. [2] M. Moretti, E. Nostrato, S. Piagneri, G.J.M. Janssen, "A Frequency Estimation Scheme for a Two-Signal Environment", IEEE Proc. VTC'99, pp. 1800 - 1804, Amsterdam, The Netherlands, September 1999. [3] F.M. Gardner, "Phaselock Techniques", 2nd ed., John Wiley & Sons Inc., New York, 1979. 164 Swimming Pool Memories for Image Storage Richard P. Kleihorst, René J. van der Vleuten and Melina Apostolidou Philips Research Laboratories, Prof. Holstlaan 4, NL-5656 AA Eindhoven Abstract In various image compression applications, the exact number of images to be compressed and stored is unknown. This will needlessly result in lower quality if only a few images are stored where more images were expected. We propose to use a scalable compression technique and a hierarchical storage medium to always strive for full use of the storage space whenever 1 or up to a maximum number of images are stored. If a new image is offered for storage, previously stored images are automatically re-quantized in-place, without the need to extract them from the memory. Experimental results show that the method is feasible for both consumer and professional applications. 1 Introduction In some systems dealing with image storage, a number of images needs to be stored in a fixed-sized memory. When storage space is exhausted and more images need to be saved, the memory medium is exchanged. Examples of this can be seen with films for classic cameras and more in general with video and audio tapes. Here, the length of the film or tape dictates the number of data items or images stored. Recently, with the introduetion of lossy compression techniques, it has become possible to (a-priori) alter the number of images to be stored on the medium. For instance, in a digital camera, you can decide to store more images if quality is less stringent or less images at high-quality. If the space is exhausted too soon, either images will have to be deleted from storage, or decoded and recoded with a higher compression ratio to allow some more space for additional desirable images on the same medium. If the memory appears to be not fully used, a wrong decision on compression ratio was made, resulting in lower than achievable quality for this storage space. The JPEG [1] compression technique used for these applications does not allowan easy way to make a trade-off between quantity and quality of the data storage. We propose to use a compression architecture that, for each added image, tries to take advantage of all the offered storage space. In this case, even if a few images are stored almost all of the memory is used to retain high quality (up to lossless) images. Still, more images can be offered to this "full" memory. The architecture takes care that insignificant parts of previously stored images are overwritten. The end-effect is that any desirable number (within limits) of images can be stored in the memory, while 165 maintaining the overall best quality possible. The final amount of storage space for each individual image is different; more complex images will, claim and obtain more storage space than less complex images. Because of the use of scalable coding and embedded quantization the images need never to be recoded, therefore avoiding the computational burden and associated power consumption. In Section 2 the "binary-choice Swimming Pool Memory" architecture is discussed; in Section 3 some simulation results are shown; finally, in Section 4 conclusions are drawn. 2 Memory architectures The goal of scalable compression is to generate a bit stream that can be truncated at any desirable point, which effects quantization. If no truncation is performed, the coding is lossless. More general and early materialon scalable image and video coding using wavelets can be found in [2, 3]. The later proposals to use it on DCT data can be found in [4, 5, 6]. We have devised a new low-complexity method for DCT-based scalable image corn- pression. For following the underlying publication, a precise knowledge ofthe technique is not necessary. Interested readers are referred to [7] of this proceedings, or to [8] where an in-depth explanation of the scalable coding technique used is given. In order to avoid the overhead of additional memory to rearrange DCT-blocks, we are using the scalable coder for processing all DCT blocks separately and in their usual scan order. Scalable coding allows embedded quantization, i.e. a stored DCT-block can be quantized while ill storage. Whenever abundant storage space is available, the data is stored as an untruncated bit-stream. When storage becomes scarce or is limited, new data can simply overwrite "less-important" pieces of previously stored data and thereby automatically re-quantized this stored data. Of course, this should only occur if the new data is perceptually more relevant than the stored data. Otherwise, part of the new data must be quantized by simply truncating. This entire process of storage, embedded quantization and keeping track of where and whether new data is stored is handled by the memory architect ure. The binary- choice Swimming Pool Memory has a hierarchical layout as shown in Figure l. This hierarchical memory structure avoids the administrative burden of absolute pointers, while still consuming the benefits of variable-rate coding. The units for storage and retrieval are coded DCT-blocks. Addressing is done by the address of the DCT-block itself. In Figure 1, addressing is done from the left and data arrives from the bottom. The memory is divided into a number of stages, in our present example each holding half the number of words of the previous stage. For simplicity, the stages have equal word sizes. Subsequent stages will hold information of decreasing image relevance. This is guaranteed by storing the bits in the decreasing significance order as supplied by the scalable coder. Every block to be coded has at least one entry (and base address) in the first stage. This means that no translation of DCT-block addresses to pointers needs to be done, and a minimal quality is guaranteed if the first stage can at least hold the DC values. Note that the maximum number of DCT-blocks is fixed because of the first stage addressing. 166 stage 1 DCTblock address ----------- ........ stage N •• lsb DCTblock Scalable Coding block data Figure 1: Principle of storing DCT-blocks in a Swimming Pool Memory Each higher stage has only half the amount of address space of the previous stage; addressing to this stage is simply done by dropping one bit from the previous address space. Now, two blocks from a lower stage are competing for the remaining storage on the same address. A criterion, for instance mean square error, decides which of the two DCT-blocks benefits most from this additional space. As a result, a one-bit pointer will be set towards one of the two addresses in the lower stage and the winning block consumes the remaining space, and if it is the new block simply overwrites the previously stored data. Because of the scalable coding format, this effects in quantizing the losing DCT-block. This procedure of competition between two DCT-blocks for remaining storage is repeated as long as there are bits to store from the present DCT- block, up to the end of the memory or until the first defeat in the competition. Note that the administrative overhead is very low: in stage 1 no pointers are needed, from stage 2 on, only one-bit pointers are needed for each address. They can simply be stored in the data memory itself. Because the stages are addressed by repeatedly skipping a bit from the base-address space, blocks are competing across the entire image, and even into other images. This is a form of in- place buffer control: after storing new data, the Swimming Pool Memory principle guarantees an optimal storage for the whole set of stored images given the competition criterion and memoryarchitecture. Complex (parts of) images will have obtained storage into higher stages than non-complex (parts of) images. This is done without removing each image in turn and re-quantizing it. Here, previously stored data is only analyzed (and maybe quantized) when competed against. An example of retrieving a DCT-block from the Swimming Pool Memory after storage is shown in Figure 2. Retrieving a DCT-block is done by addressing the first stage in the memory with the DCT-block address, obtaining the data stored, and looking in the subsequent stage to see if the current address is referenced. If so, continue obtaining data and look at even higher stages, if not, the gathered data is complete and can be decoded to DCT-coefficients, re-transformed and displayed. 167 stage 1 DCTblock address stage N Isb DCT block Scalable Decoding block data Figure 2: Retrieving the DCT-blocks 3 Results In this section we provide results of the binary-choice Swimming Pool Memory. The experiment is done with a la stage memory architect ure of 32 bits wide data space in each stage. Of 12 subsequently added 512x512 images only the Y component is stored. As a decisive criterion mean-square-error is used. The experiments store Y data and have 12 x ((512/8)2) = 49152 addresses in the first stage. These numbers reflect the number of DCT -blocks in the data. While adding the images, we monitor the effects on the previously stored images. Notably, their automatic increase in compression ratio (CR) in Table 2 and resulting decrease in quality (PSNR) in Table 1, when quality is exchanged for quantity. Along the horizontal lines in Table 1 the PSNR is given of all stored images after adding the image stated in the first column. The PSNR is calculated after reading the stored image. The number of bits that the image still claims in the memory is reflected in the figure for compression ratio from Table 2. In the experiments, the effect of image complexity can be seen. Adding a complex image (such as "Nets" or "Farm") to the memory has a stronger effect on previously stored images than adding a simple image such as "Food". From the images along the bottom row we experience some losses in image quality that are just visible. Any degradation occurs graceful, and shows itself as slight blocking effects in complex regions first followed by blocking in smooth regions. Note that the maximum storable length of scalable streams with la stages of 32 bits is 311 bits, which is smaller than the more complex DCT-blocks demand. Untruncated storage is therefore not possible with this number of stages and word size. In respect to the achieved compression ratios, the resulting PSNRs for the separate images are not that high. For example, JPEG will achieve close to 38 dB PSNR on Lena at 1 bit/pixel [7], whereas we achieve 35 dB. However, a close look at the visual data shows that the coding artifacts are hidden in and masked by the complex regions 168 Table 1: Binary-choice memory Peak Signal-to-Noise Ratios PSNR Lena Eye Farm Food Music Nets Pearl Redgirls Shoes Sint Clown Baboon Lena: 42.5 Eye: 40.1 42.1 Farm: 38.0 38.8 30.5 Food: 36.6 37.6 26.4 35.5 Music: 36.4 36.1 25.6 33.1 30.9 Nets: 36.3 36.1 25.2 32.6 29.8 28.7 Pearl: 35.5 36.1 25.1 30.7 28.2 28.2 37.8 Redgirls: 35.4 34.1 24.9 30.7 24.4 27.8 37.5 37.2 Shoes: 35.4 34.1 24.6 30.6 24.3 27.1 37.4 36.8 29.1 Sint: 35.1 34.1 24.5 29.8 24.3 27.1 37.0 36.3 28.9 32.4 Clown: 35.0 33.8 24.4 29.7 24.2 27.1 36.9 35.3 28.6 31.5 28.2 Baboon: ~5]>33.8 24.1 29.6 24.1 26.0 36.6 35.2 28.4 31.2 27.8 25.7 in the image. This is because, according to the scheme, the first blocks to be truncated are the long and therefore complex DCT-blocks that have less addresses to share. The less complex blocks are hardly truncated because they have a guaranteed storage space in the first stage. For natural images, this perceptual masking results in an apparently good image quality as shown for "Lena" in Figure 3, where hardly any artefacts are visible. For more synthetic-like images with structures, the masking is not able to hide annoying artefacts, as shown for "Music" in Figure 4. 4 Conclusions In this paper, we have discussed a combination of scalable coding with a hierarchical memory structure. This combination stores an unknown, but restricted number of images. When few images are stored a high-quality is guaranteed, and when more images are added, the compression ratio is automatically increased. This enables an on-the-fty trade-off between quality and quantity according to user's preferences. The properties were demonstrated by some experiments. Applications for this technique are probably found in consumer products such as digital cameras, digital video, and in general for embedded compression systems [9, 10]. References [1] W. B. Pennebaker and J. L. Mitchell, JPEG Still image data compression standard. New York: Van Nostrand Reinhold, 1993. [2] J. M. Shapiro, "Embedded image coding using zerotrees of wavelet coefficients," IEEE Trans. Signal Processing, vol. 41, pp. 3445-3462, Dec. 1993. 169 Figure 3: Result for "Lena" after swimming at 35.0 dB PSNR, CR=8.4 (0.95 bit/pixel) 170 Figure 4: Result for "Music" at 24.1 dB PSNR, CR=8.3 (0.96 bit/pixel) 171 Table 2: Binary-choice memory Compression_ Ratios CR Lena Eye Farm Food Music Nets Pearl Redgirls Shoes Sint Clown Baboon Lena: 2.9 Eye: 3.9 3.3 Farm: 4.7 4.7 3.1 Food: 6.4 5.2 4.2 3.5 Music: 6.5 6.5 4.7 4.4 4.0 Nets: 6.6 6.6 5.4 4.7 4.4 5.3 Pearl: 7.8 6.6 5.4 5.7 4.7 5.8 6.3 Redgirls: 7.8 9.0 5.6 5.7 6.0 6.2 7.4 5.2 Shoes: 7.8 9.0 6.2 5.8 6.0 6.9 7.6 5.7 8.6 Sint: 8.3 9.0 6.3 7.2 6.1 6.9 8.5 6.3 9.6 6.6 Clown: 8.3 10.0 6.4 7.6 8.2 7.0 8.9 7.7 10.3 7.9 5.1 Baboon: 8.4 10.0 6.8 7.7 8.3 9.2 9.3 7.8 11.3 8.3 5.8 6.5 [3] A. Said and W. A. Pearlman, "A new, fast, and efficient image codec based on set partitioning in hierarchical trees," IEEE Trans. Circuits, Syst. Video Techn., vol. 6, pp. 243-250, June 1996. [4] Z. Xiong, O. G. Guleryuz, and M. T. Orchard, "A DCT-based embedded image coder," IEEE Signal Processing Letters, vol. 3, pp. 289-290, Nov. 1996. [5] Y.-A. Jeong and C.-K. Cheong, "A DCT-based embedded image coder using wavelet structure of DCT for very low bit rate video codec," IEEE Trans. Con- sumer Electronics, vol. 44, pp. 500-508, Aug. 1998. [6] D. Nister and C. Christopoulos, "An embedded DCT-based still image coding algorithm," IEEE Signal Processing Letters, vol. 3, pp. 135-137, June 1998. [7] R. J. van der Vleuten, R. P. Kleihorst, and C. Hentschel, "Low-complexity scalable image compression using the DCT," in 21st Symp. Inform. Theory in the Benelux, (Wassenaar, The Netherlands), May 25-26, 2000. [8] R. J. van der Vleuten and R. P. Kleihorst, "Low-complexity scalable image compression," in Data Compression Conference (DCC '2000), (Snowbird, UT), Mar. 28-30, 2000. [9] R. P. Kleihorst and F. Cabrera, "Implementation of DCT-domain motion esti- mation and compensation," in Proceedings of the 1998 IEEE Workshop on signal processing systems, (Cambridge, MA), Oct 1998. [10] R. P. Kleihorst and R. J. van der Vleuten, "DCT-domain embedded memory compression for hybrid video coders," Journalof VLSI Signal Processing Systems, vol. 24, pp. 31-41, Feb. 2000. 172 TOWARDS REAL-TIME MPEG-4 SEGMENTATION: A FAST IMPLEMENTATION OF REGION-MERGING Dirk Farin and Peter H.N. de With farin@ti.uni-mannheim.de / dewith@ti.uni-mannheim.de Dept. Circuitryand Simulation (Fac. Comp. Engineering), University Mannheim B 6,26 D-68131 Mannheim, Germany We describe region merging as a flexible spatial segmentation algorithm and introduce a new heuristic to considerably speed up the computation. For further acceleration of the computation, a quadtree decomposition is carried out as a preprocessing step. 1 INTRODUCTION The emerging MPEG-4 standard is based on a new paradigm for image cod- ing. Instead of coding the picture as a rectangular array of samples, the image is treated as a collection of several independent objects, having arbitrary shape (contours) and motion. These objects can be compressed and manipulated inde- pendently, leading to so-called object-oriented coding. This approach not only promises higher compression ratios than MPEG-2, but it also allows content- based access and interactive composition of video sequences at the system level. When adopting this view, a principal problem at the encoder side is the automatic segmentation of natural video sequences into semantically meaningful video objects. This is a recent field of research where a number of techniques have been investigated. Current approaches can be classified into spatial and temporal image segmentation techniques. In this paper we describe region merging as a spatial segmentation technique and present an efficient preprocessing step for improving the computation time. Furthermore, we give an additional heuristic that considerably speeds up the merging process. 2 REGION MERGING With region merging, the objective is to group input image pixels to regions which are similar with respect to a predetermined criterion. The algorithm pro- ceeds by sequentially merging the two most similar neighbouring regions. The merging process stops when no more regions are found with sufficient similarity, or the minimum number of regions is reached. This stop condition is needed to avoid that the algorithm ends with the whole image as one region. 173 Region merging can be viewed as a graph-node merging process where the nodes represent regions of pixels and the edges indicate neighbourship. We assign edge weights to the edges to represent the similarity between adjoining regions. 2.1 FORMAL DEFINITION OF THE ALGORITHM Let P = {p;} be the set of pixels in the input image with corresponding luminance f(Pi). Furthermore, let a neighbourship-relation n(Pi,pj) = true iff Pi and Pj are neighbours; however n(pi, Pi) = false. The input of the region-merging algorithm is a set of regions R = {ri} with ri CP, Uri = Pand ri n rj = 0 for i =f. j. The way these regions are obtained may vary as follows. They can be the result of a preceding segmentation step such as watershed segmentation, they can be chosen arbitrarily (e.g. blocks of fixed size), or in the extreme case, each input pixel can be considered as a separate region. The algorithm first builds a neighbourhood graph G = (R, E) with edges E = {(ri,rj)I=:JPkEri,P1Erj n(pk,pl) = true}. Additionally, we define an edge weight w on the edges w: E -+ R which describes a measure of similarity of the regions adjacent to the edge (in our paper, smaller values of w correspond to more similar regions). The definition of the edge weights (i.e. the merging criterion) is the crucial part of the algorithm, directly affecting the quality of the segmentation result. Region merging is a greedy algorithm that follows the intuitive process to continuously merge the two most similar regions into a single region. Merging stops when the lower bound of regions #r min is reached or the minimum edge weight exceeds a threshold wmax. The algorithm is outlined in Algorithm 1 and illustrated in Figure l. Algorithm 1 Basic merging algorithm 1 while IRI > #rmin do 2 emin = h,rk) +-- minargw(e) eEE 3 if W(emin) > Wmax then STOP ft 4 Create new region rn +-- rj U rh 5 Insert new edges E +-- Eu (Enew = {(rn,ri) I h,ri) E EV (rk,ri) E E}) 6 Remove old edges E +-- En {R\ {rj; rd} x {R\ {rj; rd} 7 Remove regions rj and rk R +-- R \ {rj ; rd 8 foreach e E Enew do Update edge weight w(e) end 9 end 174 Ca) initia! regions (b) merging step 1 Cc) merging step 2 Figure 1: First two steps of a region-merging process. Thicker edges represent more similar regions. 2.2 MERGING CRITERIA A simple similarity measure that nevertheless obtains good results is to cal- culate the difference of the mean luminance of two adjacent regions: w(e = (Tj, Tk)) = I (-1:1 L f(p)) - (ITlkl L f(p)) I· J pErj pErk An advantage of this measure in applications aiming at real-time execution is its simplicity, because updating the edge weights after a merging step can be easily accomplished. If we store for each region Ti the sum of the luminance of all pixels l(ri) = L:PEri f(p) and the region size S(Ti) = hl, the edge weights calculate as: The nice property of this representation is, that after merging the two regions rj and rk into the combined region r«, we only have to set l(rn) = l(rj) + l(Tk) and S(Tn) = S(Tj) + S(Tk) and update the edge weights accordingly. This measure can be extended to all three color components (e.g. Y,Cb,Cr) and combined into a weighted sum. We used this measure with weighting (3/5 ; liG, 1/5) in the generation of the results in Figure 2. Unfortunately, the mean-luminance difference measure also has several draw- backs; consider for example the image in Figure 3a. The regions on both sides of the boundary have exactly the same mean luminance, but clearly do not match as good as the two regions in Figure 3b. Nevertheless, the similarity measure evaluates to exactly the same value. A better criterion is to examine the common boundary between two re- gions and define a similarity measure favouring an equal luminance distribu- tion along the common boundary. To formalize this measure, let the sequence 175 (a) input image (claire) (b) 120 regions remaining (c) 5 regions remaining Figure 2: Region merging applied to test image 'claire'. (a) gradients with (b) gradients with same opposite directions direction Figure 3: Gradients along a region boundary. of N pairs of opposing pixels along the boundary between region rj and rk be N (with e = h, rk) and Pa E rj, Pb E rk). Now we can bi(e) ~ (Pa, Pb), 1 :::;i :::; define a similarity measure e.g. as follows: w(e) = L 1!(Pa) - !(Pb)l, with Pa,Pb given by bi(e). l:<:;i:<:;N Other similaritymeasures are possible as well: e.g. region luminance variance, similar texture, a well-shaped boundary of the hypothetically merged regions, or similar motion of the regions. To exploit the advantages of different measures, it may be attractive to switch to another merging criterion at some point in the merging process. For example, one could start with a pure spatial merging criterion, like mean-luminance difference, and switch to a similar-motion criterion when the regions have grown to a reasonable size. The motivation for switching the merging criterion is that it can improve the segmentation results. The mean-luminance difference measure works well in small local areas, but it fails on larger regions, because the region description is too simplistic. On the other hand, motion as a merging criterion works well for larger regions, where motion can be determined with high accuracy. However, a motion criterion fails on small regions, because the features contained in the region may not be sufficient for an accurate motion estimation. 176 2.3 REDUCING THE COMPUTATIONAL COMPLEXITY Let n = IRI be the number of input regions. Usually segmentation stops when only a small number of regions is remaining. Thus, the total number of merging steps performed is O(n). In a simple implementation where edges are stored in an unsorted array, step 2 in Algorithm 1 takes O(n) time. In the worst case, shown in Figure 4a, steps 5,6 and 8 each require O(n) time when the comb-shaped region is merged. The overall complexity is therefore 0(n2). As the number of merging steps is fixed, the only way to decrease computation time is to reduce the number of edges that have to be up- dated in each step. If the regions would grow in a more balanced way (as shown in Figure 4b), the number of outgoing edges of each region be- (a) worst-case (b) heuristically comes more or less constant. Conse- pattern favoured pattern quently, steps 5,6 and 8 would run in 0(1) time. Figure 4: Worst case pattern for region We have achieved a more bal- merging and pattern that we want to anced growing of regions by adding favour with the heuristic. a secondary criterion to the edge weights. For this purpose, we use a new weight w' which favours the merging of small regions in undecided cases (w(e;) = w(ej)). In total, we define w'(e; = (Ta, Tb)) < w'(ej = (re, Td)) Ç=} w(e;) < w(ej) V (w(e;) = w(ej) A ITal + hl < ITel + ITdl)· Since w' differs from w only by a secondary weight, this approach does not degrade the segmentation quality in any way. However, this proposal alone is not sufficient for a significant speedup, as finding the minimum edge weight (step 2) still requires O(n) time. By storing the edges in a heap data-structure, sorted by edge weights, we can reduce the time spent for finding the edge to 0(1), but on the other hand enlarge the time spent for updating the edge weights (step 8) again to O(logn), since the heap has to be kept sorted. However, this results in an overall computation time of only O(n log n)l. As the edge weights mostly will not change much in a merging step, 1 Note that by using a Fibonacci-heap implementation instead, we could reduce overall com- putation time to O(n). But this implementation is so complex that it is unlikely to be faster in practice. 177 the number of levels that an edge has to be moved in the heap up- or downwards will be small. Therefore, the actual time spent in step 8 can even be considered as constant, leading to a linear-time algorithm for ordinary picture rnaterial''. 2.4 EXPERIMENTAL RESULTS Table 1 shows the speed improvement obtained when using the new heuristic criterion-extension on region sizes. Merging started at the original pixel level and the merging criterion was a weighted sum of the difference of the mean values of the luminance and chrominance components in the regions. image sequence I dimension I standard-heap I heuristic-heap kettle 352x288 76.19s 2.71s coastguard 352x288 6.99s 2.74s foreman 352x288 5.20s 2.80s claire 352x288 4.70s 2.62s Table 1: Computation time of region merging (starting with single pixel regions). Number of input regions: 101376, input edges: 202112. Calculation has been performed on an Intel Pentium-III 550 MHz. Note that images that generally required a long computation time, give the fastest results with the new criterion. This phenomenon occurs because many edges with equal weights appear during the computation of these images. This results in large regions and thus slow computation, using the standard implemen- tation. In contrast to this, our heuristic applies more often in these cases and the region sizes are growing more balanced, which results in reduced computation time. 2.5 QUADTREE-DECOMPOSITION PREPROCESSING AND RESULTS Another way to enhance performance is to start with larger regions rather than taking the original input pixels. If this preprocessing step is considerably faster than the region-merging process, an overall speed improvement can be achieved. One way to get larger input regions is to perform a quadtree decompo- sition of the image, as shown in Algorithm 2. In practice, this algorithm can be implemented most easily as a recursive procedure. Some degree of freedom lies in the definition of the function uniform: R -+ bool in step 2. We have used a metric that coincides with the mean-luminance difference measure from Section 2.2. The definition equals: ri is uniform ~ (maxpETif(p) - minpETif(p)) < T (with T 2Note that steps 5 and 6 can be combined by mostly reusing the data structures of the edges to be removed for the new edges. Therefore, these steps do not require O(logn) time. 178 being a fixed threshold). It can be seen that this definition represents a simple calculation. Algorithm 2 Quadtree decomposition 1 R = {rr} = {P} 2 while 3ri with uniformrr.) = false do 3 Subdivide r. into 4 subregions Ta,Tb,rc,rd 4 Rt-(R\{r;})U{ra;Tb;rC;rd} 5 end To initialize the region-merging algorithm, we need to build the neighbour- hood graph of our quadtree decomposition. To quickly find all necessary edges, we label all pixels to the bottom and the right of a region with a region ID whenever a uniform region is found (see Figure 5a). To determine the required edges, we scan for each region the pixels one to the left and one to the top of its boundary. Whenever the region ID found changes, we generate an edge between the two regions. Take region 'G' for example: scanning the top row, we first find region ID '6' which is a new ID. Thus, an edge (6 ; G) is generated. The next pixel is labeled '6' too, so that we do not create a new edge. We advance to '7', which is different from the last ID, so a new edge (7; G) is generated. Finally, an edge (8; G) is constructed and the same algorithm applies to the left side, resulting in the edges (A; G), (D; G) and (F; G). Table 2 shows the computation times when the quadtree decomposition is added as a preprocessing step. As compared to Table 1, a significant reduction I i I I ! ! 1 '2 13 313' 1 i i 1 14 4,~5 8 1 i i , 166 11 i 7 I 88 i iAi i[;1 i CTC ! i i i i i i i i (a) Labeling of pixels at (b) Result of decomposition the edge of regions for step applied to claire sequence. efficient neighbourhood- graph construction. Figure 5: Quadtree decomposition preprocessing step. 179 of the computation time is obtained with comparable results. The accuracy and computation time are both depending on the threshold T in the function uniform. We have to balance between a small value of T, giving exact segmentation results, and a larger T, lowering the overall computation time. image sequence I avg. iRi I avg. iEi I q.vtree-t-standard I q.-tree+heuristic kettle 13057 28850 1.04s 0.39s coastguard 38552 83529 1.31s 1.16s foreman 24853 54695 1.32s 0.73s claire 5688 12832 0.26s 0.19s Table 2: Computation time of region merging preceded by the decomposition stage. Also listed are the average number of regions and edges after the quadtree decomposition step. Calculation has been performed on an Intel Pentium-III 550 MHz. 3 CONCLUSIONS We described region merging as a spatial segmentation algorithm and illus- trated its flexibility by using different merging criteria. An improvement has been achieved by including region sizes into the merging criteria. This heuristic measure favours balanced region growing, leading to a significant reduction of the computation time when it is combined with a heap data-structure implementa- tion. A further reduction of computation time has been obtained by adding quadtree decomposition as a preprocessing step. We have presented an efficient algorithm to transform the quadtree data structure into a neighbourhood graph, thereby initializing the input data structure for the subsequent region-merging step. The resulting computation time is mostly below one second per CIF-resolution frame and makes region merging more attractive for real-time applications. REFERENCES [1] F. Moscheni, S. Bhattacharjee, "Robust Region Merging for Spatia-Temporal Segmenta- tion", Proceedings of International Conference on Image Processing ICIP'96, Vol. 1, 1996. [2] F. Moscheni, F. Dufaux, "Region Merging Based on Robust Statistical Testing", SPIE Proc. Visual Communications and Image Processing '96, Orlando, Florida, USA, March 1996. [3] T.Kurita, "An Efficient Clustering Algorithm for Region Merging," IEICE Trans. of Infor- mation and Systems, Vol. E78-D, No.12, 1995. 180 Improvement and implementation of real-time video compression method for CSCL software AXEL HUNGER, STEFAN WERNER and ILHAM AKBAROV Gerhard-Mercator-University of Duisburg, Department of Data Processing Bismarkstr. 81,47057 Duisburg tel: + 49-203-379 2707 fax: + 49-203-37 04 39 email: hungerlswernerliakbarov@uni-duisburg.de Abstract Today, multimedia data can be requested, accessed, distributed, and transmitted to nearly every household. Videophones and videoconferencing systems allow dispersed users to carry out effective communication through audio and video. This is changing and will continue to change peoples everyday life, the whole field of entertainment or the way people do business. An example on how the worldwide extension of the data networks can change the way people do buisiness is modern Software-Engineering. In this field the scenario of worldwide distributed teams has long become reality. Tools to support distributed teams are well known as groupware, the corresponding research field is known as Computer-Supported- Collaborative-Work (CSCW). Based on this scenario, new concepts and tools for the Software-Engineering-Education are under research and development at the Gerhard-Mercator-University of Duisburg. In this paper we'll introduce the groupware "Passenger" which is developed to conduct a practical training in Software-Engineering. This tool integrates a videoconferencing system, a special floor passing concept and a CASE-Tool for common document processing. First we'll discuss the concept and the system architecture. In the next step we'll focus more on the used video compression method. 1. Introduction The motivation for the usage of new media in the University-Education can be different. In this paper we present concepts and tools to carry out a new approach for Software- Engineering Education with special focus on video compression methods. Our concept defines four modules for Software Engineering Education following the above described scenario of distributed teams [1]. Within the part project Passenger-CD a multimedia CD-ROM to support the lecture is developed. To conduct the practical training in a distributed manner a CSCL Tool is under research and development in the part project Passenger-Case & Video Tool. The World WideWeb is used to solve organizational tasks. Further work is to be done to develop and implement a document version control system in the part project Passenger-Doe. In the following sections we will focus only on the development of the Passenger Case & Video Tools, especially on the video components and the used compression methods. A description of the other part projects can be found in [2]. The computational complexity of the algorithm, along with the compressed data rate, and the visual quality or distortion of the decoded video, are the three major factors used to evaluate a video compression algorithm. An ideal algorithm should have: 1) a low computation complexity, 2) a low compressed data, 3) high visual quality (or low distortion) of the decoded video and 4) on our opinion it should has easy mechanisms of imlementation as well. In order to reach these requirements it should be reviewed: I) stages of video streaming compression; 2) some aspects hybrid coding that includes: 181 coding with transformation and coding with prediction and, 3) properties of DPCM process, especially quantization process in order to improve the processing of so-called prediction error, otherwise to avoid the image fuzziness. As the result of above mentioned, it will be presented the new approach to the video compession method which then will be programmed in Delphi and implemented in "Passenger". 2. Passenger Case & Video Tool The scenario of distributed Software-Engineering places additional demands on the students. 1. The Case-Tool learnability depends essentiallyon its complexity [3]. For this reasons we have decided to develop our own Software-Engineering-Case-Tool. The design of the Case- Tool interfaces takes place in such a way that other Software-Engineering-Case-Tools based on different design methods can also be integrated later. If beyond that these Case-Tools also can perform a consistency check then the CS CL-TooI becomes a CSWL-Tool. 2. For the students, discussion by the means of videoconferencing represents a completely new form of communication. A preliminary study was conducted to assess the possibilities and limitations of telecooperation capable software for the usage in practical training in Software-Engineering. One of the most important results of this study is the demand for a mechanism which should portray as far as possible a face to face discussion through the computer. [4]. 3. Common document processing and administration over a network is new to the students. During the practical training two basic working methods are conceivable. On the one hand common synchronous processing of a document and asynchronous processing of the documents by individual students on the other. This results in a necessity to administrate the documents al a central place. 2.1. System Architecture The development of the Passenger Case & Video Tools requires not only the development of a user interface from a didactical and a psychological point of view and the integration of a Case- Tool but also mechanisms for multimedia data exchange. It is those which make working on a network and the transport of data possible in the first place. In this section we start to present the general system architecture and then go on to discuss the resulting communication requirements. The user interface is presented in the next section. The Passenger Case & Video Tool concept sees windows-based system as its target platform and the global Internet as its transport medium. Communication takes place over both reliable and unreliable services. Fig.l shows the system architecture of the Passenger Case & Video Tools for the technical implementation of it's communication. On the clients the multimedia data interface represents the interface to the input and output peripherals like keyboard, mouse, video camera, speaker and monitor. The Case-Tool is used for common software development. The current session is controlled by the session handling module. The protocol stack handles incoming and outgoing data and resource reservations. During the conceptional considerations for the architecture of the Passenger Tools different possibilities for the data transfer were discussed. As a result of the discussion several methods of data transfer have been implemented: 1) several unicast-connections for client/server-communications and 2) several multicast-connections for interclient- communications. The protocol stack shown in fig.2 builds on top of the Internet Protocol version 6 (Ipv6) [5] 182 r!,ltal'2lEt s_eryi9S~ ~ell.!!.bl~e.c::::.i.c~ Fig. 1: Passenger Case & Video Tools system architecture for the realisation of multicast connections and on top of the Resource Re.s_erYation Erotocol (RSVP) [6] for quality of service support. The Real-Time Transport Protocol (RTP) [7] is used to meet the multicast and real-time requirements of the group communication. The actual data transport is carried out using the connectionless .!1ser ;Qatagram Protocol (UDP). Parallel to this the classic connection orientated and reliable Transmission Çontrol Erotocol (TCP) above IPv6 is used to transmit signalling-, chat- and RTCP ~- L.~,R_TP_..,.-JI : ~ I 1---1 1 I . -'-~--~I-~-'~t~ ._...t'~:~:6 _._.- ...- TCP.XTP UDP .... r·B : rr-. IPv6 1 Net;..vorkLay':.E.... Fig. 2. Passenger Protocol Stack document data. Measures to increase performance arise in the first step by strictly splitting the connection types in reliable and unreliable services and implementing them in several parallel protocol stacks as shown in Fig.2. Measures like adapting certain protocols should be considered later. 2.2. The Client User Interface The client-user-interface contains video screens of each member and a public window for the common process on the outline documents (fig.3). Each member has the same view of the window according to the WYSIWIS-principle and equipped with a private working window, but only one of them can alter the document at a certain time. But it should be taken into account the following features: 1) neither size nor position of the video screens can be changed; 2) none of the video screens can be covered by an other; 3) the 183 Fig.3. Passenger Client User Interface members always appear in the same video-screens, and 4) a specific session-control supports the students during the synchronous sessions. 3. Video Compression standards Most of the existing and proposed video compression standards, including the ISO standards: MPEG-l (352x240), MPEG-2 (720x480, 1200x800) [8] and also two formats for HDTV 1440x1152 and 1920xI152), and MPEG-4 (formats from SQCIF till TV) [9], and the ITU-T recommendations: H.261 (QCIF 176x144, FCIF 352x288) [10], H.263 (SQCIF 128x96, QCIF 176x144, 4CIF 704x576 and 16CIF 1408x1152) [11, 12, 13] can be conceptually decomposed into three processing stages: 1) an invertible linear transformation that attempts to decorrelate the data; 2) scalar quantization of the transform coefficients; and 3) variable length entropy coding of the quantizer indexes. All of these standards use the discrete cosine transform (DCT), typically applied 8x8. This is even true for video coding using MPEG-4, which will probably use either wavelets or matching pursuits for coding texture information (still images). One main difference among these algorithms is how motion-compensated prediction is used to create the error images that are input to the DCT subsystem. Another difference is in the type of entropy coding. Two common methods are a combination of run-length and Huffman coding or arithmetic coding. The choice of suitable methods can lead to the development of cost-effective implementations, which in turn will promote the widespread use of videoconferencing applications. It is well known that the standard H.263 works at low hit rate communication. Video coding at low bit-rates is motivated by its potential applications for videoconferences, electronic mail, remote sensing, electronic newspapers, interactive multimedia databases etc. Due to practical limitations, the main problem of introducing these applications lies in how to compress a huge amount of visual information into a very low bit-rate stream for transmission or storage purposes. There are two ways to solve the above mentioned problem: by reducing statisticalor physiological redundancy of an image [14]. Using specifications of human eyesight analizer,one can also reduce the required transmission rate, if image is coding for transmission to spectator. The small coefficient of redundancy by the complex coder structure is the main disadvantage of statistical coding. However, it can be used by the combination with the other coding methods, such as: coding with transformation and coding with prediction, so-called hybrid 184 coding. In the systems that uses hybrid coding carries out decorrelation of an image, and in the result we get sequence of values, which then are quantisized and coded. Although, from a realizational point of view, the coding with transformation is more difficult than the coding with prediction. One can also increase the use of hybrid coding by applying to interframe correlation. In the result of it the required bandwidth becomes narrow. The H.263 video encoder combines intraframe and interframe coding to provide fast processing for on-the-fly video. The algorithm creates two types of. frames: 1) DCT- based intraframes, compressed using DCT, quantization, and entropy coding and, 2) predictive interframes, compressed using DPCM and motion estimation [15]. The block diagram of the video encoder is shown on figA. The H.263 coding algorithm begins by coding an intraframe block and then sends it to the video multiplex coder. The same frame is then decompossed using the inverse quantizer and inverse DCT, and then stored in the frame memory for interframe coding. During the interframe coding, the prediction based on the DPCM algorithm is used to compare every macro block of the actual frame with the available macro blocks of the previous frame. Virlp.o in FigA. Block diagram of the H.263 video encoder To reduce the encoding delay, only the closest previous frame is used for prediction. Then, the difference, created as error terms, is DCT -coded and quantisized, and sent to the video multiplex coder with or without the motion vector. At the final step, variable-length coding (VLC), such as the Huffman encoder, is used to produce more compact code. An optional loop filter can be used to minimize the prediction error by smoothing the pixels in the previous frame. The H.263 video decoder is shown on fig.5. It consists of the receiver buffer, VLC decoder, inverse quantizer, inverse DCT, and the motion compensation, which includes the frame memory and an optionalloop filter. Reoroduced imaze Motion __ ~=~~ __--l-.J ~M::!o~t~io~n:..v~e:::c~to~r:__ : Comp~sation Frame Memor ,------------------ Fig.5. Block diagram of the H.263 video decoder 185 3.1. DPCM process One of the effective methods of reducing required number of bit per element of an image is coding with prediction. By this consideration it should be coded and transmitted not complete step valeu, which represents brightness level of element an image, but the difference between real and predicted step value. If this difference, so-called prediction error is quantisized and coded, then this kind of coding systems calJs DPCM. Below is shown the structure of the image coding system based on prediction which can be done by DPCM. F(j,k,t) + D(j,k,t) 0-- in channel _I D(j,k,t) +0 ï FCJ,k,t) o Decoder from channel '------ ~+' FU,k,') 0 Fig.6. Structure of the image coding system based on prediction In such a system the amplitude of each image element is predicted by previous elements. Then the predicted amplitude F(j,k,t)is substracted from the real amplitude of the image element F(j,k,t), and at the end the substracted signal D(j,k,t) quantisizes, codes and transmits. On the receiving side the quantisized and substracted signal D(j, k, t) is uses for the restoration of image F(j,k,t) by the summation of the prediction signal F(j,k,t) with the quantisized and substracted signal. The reduction of the transmission rate is achieved by rough quantisation of the substractional signal. 3.1.1. Optimization of the DPCM process As we have seen in the H.263, hybrid coding is uses. That includes: coding with transformation (using DCT) and coding with prediction (DPCM and motion estimation). Among the coding systems with prediction, in which signalof prediction error is quantisize, DPCM could be considered as base case. 3.1.2. Optimization of guantization process By decreasing the quantisation scale for smalJ quantization step it becomes small substractional signals and in the case of big step-big substractional signals. This leads to the minimization of the average-squared value of quantization noise and subjectively to the improvement of the image quality. Theoretically, it isn't possible to optimize the predietor and the quantizer separately, because of complex dependence of noise quantization visibility distribution of probability prediction error values. But in case of using minimal average-squared error criteria one can show that the average-squared value of quantization noise Elq; J= a; approximitely is proposal to average- squared error of prediction Ele; J= a; [16]. This dependance is a: (~K2 }: = (1) eN - prediction error; qN - quantization error; K - number of quantization levels. 186 That is why in such consideration it can be done separate optimization of prediction and quantization. Then the best estimation of xN (predicted value) is such a value XN, by which it provides minimal mathematical waiting of error squared prediction: 0> E[,! l~E["N - xN J~ E[ [ "N - ~ a,"N, Jl (2) There are two optimizations of quantization methods: quantizer optimizing by the minimal average-squared quantization error criteria, by the given number of quantization K levels or minimizing the number of quantisize levels by keeping the quantization error below the visibility for given threshold. [17]. In our case, we have chosen first way of optimization. Assume that epe2 , ... ,ek, ... , eKand dpd2, ... ,dk, ... ,dK+lare levels and threshold of quantization respectively. Output signal is equal ek, if dk O. The energy function of the ID image I(x) is computed as: E(x) = J(Fe(x) * I(x))2 + (Fo(x) * I(x))2 Features are located at local maxima of E. For 2D images, the local energy model requires for each orientation a pair of even and odd filters whose convolution output is combined by quadrature pair summation to form the oriented local energy. These oriented local energies are then processed via some way to generate the local enerqs). Because of its calculation simplicity, the local energy model has been studied extensively for feature detection [10] [11] since then. It has been demonstrated that not only the local energy edge detector has very nice edgc detection charac- teristics such as idempotence [12], but all the ID generic low-level features can be detected accurately [1]. Figure 1 shows the ID features that can be located in the test image using the local energy operator. Although the local energy model has already been exploited to detect 2D features such as so-called key points [13][14] and the results obtained therein were postulated to be promising, they can not locate all kinds of generic 2D features 208 due to the reason explained below. In the subsequent sections we will extend this local energy based approach for modeling and detecting of 2D low-level features in general, MODELING 2D FEATURES IN 2D IMAGES The 2D feature is a relatively important kind of localized 2D image struc- ture. It has been developed from strictly defined corners to very broad concept 2D variations, including corners (local areas of comparable brightness), vertices (strong variations in contour variations), terminations (end-stops of lines), and junctions (intersections between straight lines) etc. The oriented local energy is calculated via orientation selective filters. The filter pair is tuned to features perpendicular to the orientation of the filters. Here by saying the orientation of the oriented local energy we mean the orientation perpendicular to the orientation of the used filters. Then we can distinguish four classes of 2D features in it (Note, in the following, "exists" means "is a local maximum"): Spots Isolated points in the image. [Profile]: As at a spot, the discontinuity can be observed in all orientations, thus in each orientation, the oriented local energy exists at the spot. End-Stops Terminations of lines or curves. [Profile]: At least the tangential-oriented local energy exists and has abrupt change at end-stops. Corners Corners of objects or vertices. [Profile]: The oriented local energy exists in more than one orientation. And for each orientation where the oriented local energy exists, the oriented local energy has abrupt change at the corner Junctions Cross-junctions of lines. [Profile]: The oriented local energy exists in more than one orientation. A similar classification has also been addressed in [4] and therein it was postulated that the classification covers all kinds of 2D features. But no in-depth analysis was given like we do in the above explanation. From above we can conclude that, in general, all key points have at least one of two characteristics: 209 1. The oriented local energy exists in more than one orientation. 2. The oriented local energy along a certain orientation exists and encounters abrupt change in that orientation at key points. At a point where the oriented local energy in some orientation exists and encounters an abrupt change in that orientation, it is intuitive to see that the oriented local energy in the normal orientation should also exist. This means that only condition 1 for key points is sufficient. Thus, it is possible for us to model 2D features as points where the local energy exist in at least two orientations. At the same time, it should be noticed that condition 1 and 2 provide us a means to classify the detected 2D features for special applications. The 2D local energy [13][14] already provides us a way to detect generalized ID and 2D features in images. However, the chosen implementation of 2D local energy is not fully according to the definition we proposed. It can only detect those points that are characterized by condition 2. It can not detect accurately all key points in the 2D image. As can be seen in figure 2(left) the corner points of the triangle are not detected. However, it has good localization and is robust to noise. On the other hand, the Plessey detector [21can detect features that fulfill the condition I, but it's sensitive to noise and has bad localization. PLESSEY DETECTOR In the Plessey detector [2], good features are located by examining the min- imal eigenvalue of each 2 by 2 gradient matrix: Where Ix and Iy are horizontal and vertical gradients respectively. This operator was first proposed in [2] and further developed in [15]. A significant improvement from the Plessey operator has been made in [3]. The Plessey detector always can find all the correct key points, but its local- ization is bad and often it responses multiply to one key point. 210 EXTENSION The Plessey detector has bad localization due to the synthesis strategy and the underlying gradient method. These weaknesses are just the advantages of the local energy model. Thus, in order to construct a generalized 2D feature detector with high per- formance, we combined the best of both approaches: Eigen Finder Input • An image I; • The size 2N + 1 of the considered square window. Output A feature list jeatureList[M] (M is the number of 2D features detected) Calculation Procedure The algorithm can be simply described as: 1. Compute the local energy of the image I in horizontal and vertical orientations respectively. The energy in the horizontal orientation is denoted as Ex and the one in the vertical orientation as Ey; 2. For each image point P: (a) Within the considered window centered at P(the coordinate of P is noted as (i, j)), compute the matrix: c= [ Lkl E~ Lkl ExEy * SIGN] Lkl e.n; * SIGN Lkl E; where SIGN = sign(k - i) * sign(l - J); (b) Compute the smallest eigenvalue ).,min of the matrix C. 3. Automatically estimate a threshold value T from all the eigenvalues in the image I; 4. Select those points whose eigenvalue ).,min is greater than T as 2D features and put them into the list jeatureList[M]; 5. Optionally, we can delete those points whose eigenvalue ).,min is smaller than that of any other one point within the window considered. 211 Figure 2: Locating 2D features in the test image. Left: Using the 2D local energy operator; Right: Using the Plessey detector. Figure 3: Locating features using the extended method. Left: Detected 2D features; Right: Detected ID features. We named this new detector "Eigen Finder" in order to distinguish it from the 2D local energy operator in [13][14]. The preliminary result (cf. figure 3) indicates that it performs hetter than the originalones, and supports our model for detection of generic low-level features. In attempting to also unifying the detection of generic low-level features, following the same line as [4], we further extended our new algorithm to try to detect ID features in 2D images. The detected generic ID features from the employed synthetic image are shown in figure 3. CONCLUSIONS From a subjective point of view, the detected ID and 2D features with our approach are accurate and very promising. This further demonstrates our thought on unifying the detection of generic low-level features. 212 In the near future we will exploit more on this mod-el for locating higher dimensional generic low-level features in higher dimensional images. Also we will use it for tracking generic low-level features over time. REFERENCES [1) Y. K. Aw, R. Owens, and J. Ross. An analysis of local energy and phase con- gruency models in visual feature. Journalof the Australian mathematical society series B applied mathematics, (40):97-122, July 1998. [2) C.G. Harris and M. Stephens. A combined corner and edge detector. In 4th Alvey Vision Conference, pages 147-151, 1988. [3) FöRstner Wolfgang. A framework for low level feature extraction. Band 802 der Reihe LNCS, pages 383-394, 1994. [4) Claudia Fuchs and Stephan Heuel. Proc. of Third Course in Digital Photogram- metry, chapter Feature Extraction. 1998. FöRstner Wolfgang. [5) John Canny. A computational approach to edge detection. IEEE PA MI, 8(6):679- 698, Nov 1986. [6] M. C. Morrone and D. C. Burr. Feature detection in human vision: A phase- dependent energy model. In Proceedings of the Royal Society of London, volume 235, pages 221-245, 1988. [7) John Ross, M. Concetta Morrone, and David C. Burr. The condition under which mach bands are visible. Vision Research, 29(6):699-715, 1989. [8) P. Kovesi. Invariant Measures of Image Features from Phase Information. PhD thesis, The Univ. of Western Australia, 1996. [9) C. Ronse. The phase congruency model for edge detection in multi-dimensional pictures. Technical Report 16, October 1997. [10) S. Venkatesh. A Study of Energy Based Models for the Detection and Classification of Image Features. PhD thesis, The University of Western Australia, Department of Computer Science, 1990. [ll) S. Venkatesh and R. Owens. On the classification of image features. Pattern Recognition Letters, 11:339-349, 1990. [121 C. Ronse. On idempotence and related requirements in edge detection. IEEE Transaction on Pattern Analysis and Machine lnielliqence, 15(5):484-491, 1993. [13) L. Rosenthaler, F. Heitger, O. KüBler, and R. Von der Heydt. Detection ofgeneral edges and keypoints. In Proceeding of 2nd European Conference on Computer Vision, pages 78-86, Springer-Verlag, 1992. [14) B. Robbins. The Detection of 2D Image Features Using Local Energy. PhD thesis, Dept. Of Comp. Sci. in University of Western Australia, 1996. [15) J.C. Cottier. Extraction et appariements robustes des points d'intérêt de deux images non etalonnêes. September 1994. 213 INFORMATION EXTRACTION FOR MODELING GENE EXPRESSIONS E.P. van Someren", L.F.A. Wessels=" and M.J.T. Reindersa. alnformation and Communication Theory Group, bControl Engineering, Faculty of Information Technology and Systems, Delft University of Technology Mekelweg 4, P.O.Box 5031, 2600 GA Delft, The Netherlands E.P.vanSomeren~its.tudelft.nl Recent bio-technological developments have made it possible to measure the activity levels of thousands of genes over time, giving biologists insight into the complex network of interactions between genes. Typically, such high- dimensional data-sets consists of many signals (genes) and relatively few time-points, making the inference of the exact network parameters impos- sible. Consequently, computational techniques are necessary that can cope with this dimensionality problem and extract as much useful information as possible from the data such that a basic sketch of the underlying interactions can be formed. In this paper, the regulatory interactsons between genes are modeled as a linear genetic network, which enables the exact description of all solutions that match the given data-set. Biologically sound constraints, such as limited connectivity and redundancy can be incorporated to produce, based on this exact description, a network that still fits the data, but is as simple as possible in its siracture. INTRODUCTION Traditionally, the research in molecular biology employed a reductionist approach, i.e. studying a single gene, protein or reaction at a time. With enzymatic or ge- netic reaction systems, this approach is problematic due to the high number of interactions and/or objects that need to be studied. Recent technological devel- opments resulted in the availability of high-throughput gene expression assays that produce large-scale data about the activity levels of individual genes over time. Therefore, the need arises for data analysis methods that process this data 215 in a global fashion, and produce interpretable results at some intermediate level. In this paper we propose a modeling approach which represents genetic interac- tions as a connected network of nodes, generally known as a genetic network. The ultimate goal is the complete" reverse engineering" of the underlying regulatory interactions between genes. The major problem concerning these measured data-sets is that they generally consist of hundreds to thousands of signals, measured on no more than twenty time-steps. From an information theoretic point of view this dimensionality prob- lem will render any network model inferred from this data virtually meaningless. Due to the nature of the application and the costs involved in making a measure- ment this problem will not be solved by increasing the number of measurements. The answer to this problem lies in the extraction of useful information from the data by incorporating sensible constraints on the modeling process based on exist- ing knowledge. For example, it is estimated that, on average, each gene interacts with four to eight other genes [1] and that biological networks usually contain a certain amount of redundancy [3]. This implies that the number of connections between nodes in the genetic network are limited and that the same connections are shared among nodes. Currently, several different types of models are studied, like Boolean networks [8], Bayesian networks [6, 7], (Quasi)-Linear networks [4], Neural networks [10] and Differential Equations [2]. In this paper, a linear model is employed to model the regulating interactions between genes, because 1) it uses relatively few network parameters, 2) the parameters are interpretable, 3) it allows for an exact descrip- tion of all parameters that fit the given data-set and 4) this exact description allows constraints to be applied without introducing an error in fitting the data. The aim of our approach is to yield a network model that visualizes both the information as well as the uncertainty. THE LINEAR MODEL Gene expression measurements can be represented in a so called gene expression matrix, X = [ Xi,t I iEl, ... , N tE1, ... , T 1 (1) , where each row, denoted by x., represents the gene-profile of gene i taken over T time-points. The z-th column of X is denoted by x(t) = [Xl (t), ... , XN(t) JT and 216 determines the state of the system at time t. The linear model serves as a repre- sentation of the regulatory interaction between genes and follows the assumption that the activity levellof a gene at a certain point in time can be determined by the weighted sum of the activity levels of all genes at the previous time-pointê, i.e. x(t + l)T = x(tf .R Ift=l, ... ,T-l (2) The first goal is to find all weight-matrices R that are consistent with our data, i.e. satisfy Eq. (2). In general, the weight-matrix will be under-constrained which means that there exist multiple solutions which can be written as a combination of a particular solution P, a basis of homogeneous solutions H and a set of free variables F, i.e. R=P+H·F (3) The particular solution P is one of the solutions that satisfies Eq. (2), while the homogeneous solution H . F reflects the remaining ambiguity in the data (that part of the weight-matrix that does not alter signal levels). The set of free variables F reflects the degrees of freedom as each element can be substituted with any particular value without changing the estimation of the given data. For a given data-set the particular and homogeneous solution can be found by Gaussian elimination. GENERALIZATION For actual biologically measured gene-expression matrices, the amount of ambi- guity, i.e. the number of columns in H, denoted by M, is large as the number of measurements T is significantly less than the number of genes N. Although the ambiguity is exactly known it is hard to represent it in an interpretable way. To extract an interpretable result from the set of possible solutions, it is neces- sary to find the simplest model which will be a rough sketch of the underlying network. In [9J we exploited the fact that genes are redundant and consequently employed hierarchical clustering to group together genes with similar profiles and represented them with a prototype. Next, the relationships between these prototypical genes were learned, resulting in a model that sketches the basic in- lThroughout the paper we denote the activity level of a gene by the logarithm of the ratio between normal and sample mRNA level. 2In other words, relationships between genes are assumed to be stationary. 217 teractions among groups of genes. In this paper, we follow a different approach: i.e. we aim at minimizing the number of control actions that are exerted on each gene individually. As a result both the total number and the specific set of controlling genes will differ among each individual gene. This way, the number of time-points that are required to correctly identify the weights of a sparsely connected network remains on the order of the maximal connectivity. We will show that this approach elegantly alleviates the dimensionality problem and even more so than the clustering approach that we proposed in [9]. This approach minimizes the number of genes that control another gene, which is supported by biological evidence in [1]. OPTIMIZATION The principle idea is that we manipulate the homogeneous solution, (Eq. 3), such that the number of zero elements along each column of the weight-matrix is maximized separately. In order to force a specific weight to be zero, i.e. Ti,j = 0, the following equation must be satisfied: -pi,j (4) , where hi is the i-th row of Hand fj the j-th column of F and Pi,j is the (i, j)-th element of the particular solution P. Thus, each weight-element that is forced to be zero will place certain restrictions on the free variables. In order to simul- taneously force multiple elements in one weight-column to zero, say K elements in column j, a set of K simultaneous equations must be satisfied ASSllmp t.hat such a particular set of elements is denoted by Ck 3 consisting of their row-indices mk and column-index nk = i, then: (5) , where Pek consists of the K elements in P (with indices Ck) and Hmk consists of the K rows in H (with row-indices mk) that correspond to the K weights that are forced to be zero. If there exists a solution to Eq. (5) then this solution, denoted by fek, can, in turn, be described by a particular and a homogeneous solution (the 3Note that given K zeros and N genes, that k ranges from 1 to (~). 218 latter might be empty), i.e. (6) Substitution in Eq, (3) results in the following change of the j-th column of the weight-matrix: r· J = (p J + H . fP ) + (H . fh) . fi Ck Ck (7) The first term in brackets denotes the new particular solution with elements Ck forced to zero, whereas the second term in brackets denotes the new basis of homogeneous solutions, reflecting the new degrees of freedom under the restriction that the desired elements Ck remain zero. Note that the number of columns in the new basis of homogeneous solutions as well as the remaining free variables in t! will always be equal to or less than the number of free variables in fj. In essence, this approach reduces the ambiguity after introducing information about the value of some of the weight-values in R. Our goal now is to find that set of variables F that introduces the maximum number of zero weights out of the N weights in each column of weight-matrix R so that R still satisfies Eq. (2). Assume that there exists a solution that forces K elements out of the N in a column to zero. To find out exactly which set of K elements can be forced to zero we will need to test (~) solutions of Eq, (5). When the number of zero's are not known beforehand, we need to test all combinations for all possible K ::; N: i.e. I:~=o (Z) tests. Fortunately, we don't need to follow this brute force strategy, because the particular solution P already contains at least as many zero weights in each column as there are columns in the basis of homogeneous solutions H, namely M and because we aim only to find more zero weights this gives us a lower bound of the K that we need to test. In fact, we only have to solve Eq. (5) for all ([(;:1\.{) possible combinations Ck. If a solution exists, Eq. (6) will give the corresponding set of free parameters fck' Tt now may turn out that different combinations will be caused by the same set of free parameters, i.e. fCkl = fck2' In such a case the intersection of both solutions will cause more than M zeros, in fact as many as the number of elements in the union of the corresponding combinations Ckl and Ck2. Hence, choosing this intersecting solution for fj will yield a more optimal solution in terms of maximizing the zero weights. In general, we will choose for each column in F, the free parameter set corresponding to that intersection point that occurs most often in the solutions, hence gives rise to the most zeros. 219 A B c Figure 1: A) The original model. E) The particular solution. C) Clustering approach. Each dot represents a single gene and each are between two dots represents the control from one gene to the other. The color indicates a positive (light) or negative (dark) control action. Arcs drawn above the genes indicate a direction from left to right, whereas arcs below go from right to left. EXAMPLE Our approach is illustrated on a sparse network that contains a feedback loop with redundancy, i.e. some genes share the same inputs and outputs. The cor- responding weight-matrix is illustrated as a graph in Fig. l.A. An initial state is initialized randomly and from this initial state consecutive states are computed by Eq. (2) using the given weight-matrix. In this way, a data-set is generated that consists of five signals with four time-points. By employing Gaussian elim- ination on this data-set we get a representation of the set of all weight-matrices that perfectly match this data, as follows: -.5 -.41 .8 1 0 .55 -1 1 .3 -.12 -.14 1 -.4 .14 R= 0 .9 .39 .49 0 + -.88 -.49 . [fl f2 f3 f4 f5J (8) 0 0 0 0 0 1 0 0 0 0 0 0 0 1 220 The particular solution is graphically depicted in the Fig. l.B, illustrating that it is not the desired representation of the original model (i.e. the smallest number of connections between genes). The clustering approach, on the other hand, captures the basic loop but introduces additional relations, because it neglects the differences between individual genes in each group. Although, the current particular solution contains at least M = 2 zero weights for each column, our approach can find more! After calculating (D = 10 possible combinations the following choice for F results in the sparsest solution for R. F = [0 .75 0 0 0] (9) o 0 .8 1 0 Substitution in Eq. (8), results in the following sparse solution, which exactly equals the original model: -0.5 0 0 0 0 1 0 0 0 1 R= 0 .25 0 0 0 (10) 0 .75 0 0 0 0 0 .8 1 0 In fact, it exactly identified the original model, simply because the original model only contains genes that are controlled by at most two other genes. Note that the original model was retrieved notwithstanding the fact that the number of observed time-points was smaller than the number of genes. DISCUSSION In this paper we presented a method to find the sparsest genetic network given insufficient time-response data. This method is motivated by the principle that simpler (sparser networks) explanations should be preferred if the data does not specify a unique solution. In addition, this is also in accordance with biological evidence indicating that genetic networks tend to be sparsely connected. A theo- retical example was presented, and experiments were conducted on real data-sets, but the computational complexity proved to be still a major obstacle. This prob- lem can be partially solved by preceding the application of the proposed method with a clustering step. This has the additional advantage that the number of 221 prototypes need not be reduced up to the point were the homogeneous solution becomes empty (previously this was required to obtain a unique solution). The clustering process can now be terminated when a biologically sound grouping is obtained, and the remaining degrees of freedom can be employed to optimize the sparseness of the genetic network. REFERENCES [1] A. Arnone and B. Davidson. The hardwiring of development: Organization and function of genomic regulatory systems. Development, 1997. [2] T. Chen, H.L. He, and G.M. Church. Modeling gene expression with differ- ential equations. Pacific Symposium on Biocomputing '99, 4:29-40, 1999. [3] P. D'Haeseleer, S. Liang, and R. Somogyi. Genetic network inference: From eo-expression clustering to reverse engineering. Submitted to Bioinformatics, 2000. [4] P. D'Haeseleer, X. Wen, S. Fuhrman, and R. Somogyi. Linear modeling of mrna expression levels during ens development and injury. Pacific Sympo- sium on Biocomputing '99,4:41-52, 1999. [5] D. Sharp E. Mjolsness and J. Reinitz. A connectionist model of development. Journalof Theoretical Biology, 152, 1991. [6] N. Friedman, M. Goldszmidt, and A. Wyner. Data analysis with baysian networks: A bootstrap approach. Proc. Fifteenth Conf. on Uncertainty in Artificial Intelligence (UA!), 1999. [7] N. Friedman, M. Linial, 1. Nachman, and D. Pe'er. Using bayesian networks to analyze expression data. Submitted, 1999. [8] S. Liang, S. Fuhrman, and R. Somogyi. Reveal, a general reverse engineering algorithm for inference of genetic network architectures. Pacific Symposium on Biocomputing 'D8, 3:18-29, 1998. [9] E.P. van Someren, L.F.A. Wessels, and M.J.T. Reinders. Linear modeling of genetic networks from experimental data. Accepted for ISMB2000, 2000. [10] D.C. Weaver, C.T. Workman, and G.D. Stormo. Modeling regulatory net- works with weight matrices. Pacific Symposium on Biocomputing '99,4:112- 123, 1999. 222 Adaptive Mixtures for Object Tracking A. Rares and M.J.T. Reinders Information and Communication Theory Group Faculty of Information Technology and Systems Delft University of Technology e-mail: {A.Rares.M.J.T.Reinders@its.tudelft.nl } Abstract In this paper we present a system that robustly tracks objects in an image sequence. The approach taken is based upon adaptive statistical models. An object selected in a frame by a user is tracked throughout the sequence by using a blob-like description of its features. The proposed coarse object description allows for a flexible representation and makes the tracking scheme robust. 1. Introduction Tracking objects in an image sequence can principally be done either in a bottom- up way or in a top-down manner. In the bottorn-up way, one generally calculates the motion field between successive frames and then tries to link pixels to each other that move similarly under the assumption of certain motion models. When approaching it in a top-down way, a model - usually a geometric description - of the object is fitted to each of the recorded frames. In this paper, we will introduce an object tracking scheme that. balances between these two approaches. The objects are detected by representing them through a model. However, in stead of using a geometric description we propose to use a statistical description of the objects characteristics. Thereafter, the statistical model of the object is updated based on the observed object characteristics. This is achieved by posing the object tracking as a dynamic classification problem, i.e. for each frame the pixels are classified as to which objects they belong, an information which is then used to update the statistical models that represent these objects. In this paper, we have chosen color and position as features to discriminate between objects (the scheme, however, is generic enough to include any other features as well). The tracked objects are statistically represented as a mixture of Gaussians. In this way, coarse blob-like descriptions of the object's shape are readily achieved. The statistical models are initialized manually by indicating the objects of interest in the first frame of a sequence to 223 be analyzed. To deal with the initial incomplete data about the object's appearance as well as to integrate the acquired knowledge about these appearances and to cope with changes in them, the statistical updating of the object models is achieved by an on-line version of the Expectation-Maximization (EM) algorithm [Dem77,Oli97]. This paper is structured as follows. Section 2 gives an introduetion on the general classification problem and on the EM algorithm. Section 3 describes the analysis scheme that we employed. Section 4 presents some experimental results in different application domains. Section 5 gives the main conclusions. 2. Object Tracking as a Dynamic Classification Problem 2. 1 The Classification Problem When trying to classify an item into one of several classes, we generally measure its representative properties. Thus, we get a vector of numerical data, and we try to see how well they fit into the known ranges of each class. In the statistical framework these ranges can elegantly be described by probability density functions (pdf's) over the different features. If one has these pdf descriptions then, in the case of equally probable classes, the class which explains the best the observed data (i.e. whose probability density for that observation is highest), indicates the most probable class of the current data vector. When dealing with incomplete sets of data, finding the correct pdf description, however, becomes a real problem. Generally, the best we can do is to minimize the probability of error of the aimed classification task. For this purpose, several techniques have been proposed (see [The99]). In our approach, the assumed pdf's are parameterized as a normal distributions, reducing considerably in this way the number of parameters to estimate. Pdf's have often irregular shapes, and consequently the intra-class variation cannot be described as a simple normal distribution. To deal with such situations the intra-class variation is approximated by a summation of different components with normal distributions, i.e.: Ni. Ni. p(x IC;) = L wijP(x Ie ij), ~w ~ .. =l /j (1) i=' i=: where x is a data vector, CA. is the À-th class, p(xICA.) and p(xIBA.j) represent the probability density of a sample data x that belongs to class CA. and, respectively, to component BA.j of class CA., NA. is the number of components of class CA., and wA.j is the weighing (or 224 normalizing) factor which gives us the "importance" of the j-th component within that class. Note that each class C, I degrees of freedom. We assume that Ir is fully contained in fr Ir c iJ· If /J, and also f J, 232 models the reality 9 E /J C l s, in particular g(:Ji.) = fI(:Ji.jPIo~ = /J(:Ji.jPJo), then for sufficiently large N the statistic 2N(MALL (f J) - MALL (fI)) to test the composite hypotheses Ir and /J is X}_rsquared distributed with J - I degrees of freedom [8]. Lets recall the basic properties of a chi-squared distribution. Assume the stochastic variables :Ji.n are independent, equally and normally distributed with zero mean and unit variance. The sum of squares K~ = :Ji.? + :Ji.~ + ... +:Ji.~ is XJ,,-distributed with N degrees of freedom. Consequently gf is Xi-distributed. Furthermore the sum of a Xk- and another independent xit--distributed stochastic variable is X},r-distributed with N = K + M degrees of freedom [9, p.109]. Can we reverse this theorem? In this paper we defend the affirmative answer, but the solution is only unique for independent and equally distributed g... Any XJ,,- distributed stochastic variable can be considered as a sum ofaXk- and another inde- pendent XL-distributed stochastic variable. In fact we can consider any X},r-distributed stochastic variable, such as the statistic 2N(MALL (iJ) - MALL (fI)), as a sum of N independent Xi-distributed stochastic variables. Based on this assumption we are able to compute the threshold for model selection with a guaranteed maximum probability on over-fitting in case of testing the null-hypothesis Ir versus the set of alternative hypotheses (fI + 1, iI+2,.··, ij) where /J C il+1 C ... C ij [4]. THE DISTRIBUTION OF MALL In this section, under certain conditions a theoretical justification is given of the assumption: the distribution of the MALL is a sum of independent contributions. Due to the central limit theorem, the ALL is for large enough N approximately normal distributed. This ALL of (2) equals the conventional log-likelihood, as used in the ML-method, normalized on the number of observations. Taylor expansion of this ALL in P = Po leads to ALL (jjp) =ALL (jjPo) + gT. (p - po)+ ~. (p - PO)T.l:!.. (p - po) +... (3) where the vector of first derivatives and the Hessian matrix are respectively g= : ALL Uj p)1 l:!.= a a ALLUjp) I aa T (4) P p=po p p P=Po Searching for the maximum as a function of P leads to the ML-estimate of the param- eter vector Po ~ Po _l:!.-1 . g. Substitution of the ML-estimates into the ALL leads to the MALL which is a good neg-entropy estimate. (5) 233 where N g=~L n=l N (6) t!= fr L n=l Consider the stochast ic vector obtained by taking the derivative of single observation log-likelihood vn=: P Ln(f;P)1 p=po =L~(f;po)= (~(~:i:~n (7) All Vn are like all xn, where it is derived from, independent and equally distributed. Because Po is the parameter vector of the correct model, f(x; po) = g(x), the expecta- tion of this vector is the null-vector. So the vector of derivatives d, which is obtained by averaging N of these vectors, has also the null-vector as expectation. Due to the central limit theorem g is normal distributed and all elements of g converge with an estimation error of 0 {N-1/2} to zero. The right-hand term of the Hessian H of (6) is the estimate of the covariance matrix of Vn0 For large enough N the elements of this matrix are approximately constant with an ~timation error of 0 {N-1/2 }. In case of f (x; po) = 9 (x), the elements of the matrix on the left-hand term of (6) have expectation zero [9, pp. 140-141) and they converge like 0 {N-1}; therefore this term is for large enough N negligible. Finally we can conclude that the Hessian converges to a matrix of constants with an estimation error of O{N- 1/2}. Now we consider the product gT '!i-1.g and conclude that the behavior for N -+ 00 if fully dominated by the behavior of d and that the Hessian can be approximated by minus a constant covariance matrix H ~ -( = COY {vn, vn}. N MALL (I) ~ALL (f;po) + ~. ~ L (vn T. (-1. ~ (8) n,m=l Using the Cholesky-decomposition, any positive definite matrix, such as a covariance matrix, can be decomposed into a product of a lower-triangle matrix and its transpose. Consequently: (= L· LT and (-1 = L -T . L -1 The inverse of L can be used as an orthogonalization matrix. -d = _L_ VN- . s E {_cl} = 0 COY {g, d} = -& = 1.if. (9) ê. = VNL-1 . g E {s} = 0 COY {ê., s} = I The elements of the vector §. are for large enough N all uncorrelated and normal distributed with zero mean and unit variance; this implies independence. Consequently 234 we can consider the MALL as a sum of independent contributions T MALL (I) ~ ALL (I; po) + ~ (10) The first term is like (2) normal distributed with the neg-entropy as mean and a variance which only depends on f(x; po) = g(x). The second term is a sum of dim (s) independent and equally distributed contributions which correspond with the number of independently adjustable parameters. The parameter estimates do not have to be independent; their dependencies are described by the matrix L. Although its confirmed by simulations it remains astonishing that every parameter contributes with an equal and independent XI-distributed variable to this sum. The first and second term are of a different nature so we expect them to be indepen- dent. This can easily be verified by splittingIn (I; p) into a sum of two contributions: In (I; PO) is the basic contribution to the neg-entropy estimation the first contribution problem and the second contribution Ln (I; p) - Ln (I; po) which is only related to the parameter estimation problem. Without loss of generality the prior theory can be split in a similar way. In practical applications there is a large difference in magnitude between the first and second term of (10). The first term is both in its magnitude and in its variance large compared to the second term. In a neg-entropy estimation context the second term is aN-dependent (N- )bias term, where the N-bias is caused by superfluous parameters. Comparing entropies, in particular subtracting entropies, the first terms will cancel; so the second terms becomes visible. This is typically the case in mutual information estimation [7] and in testing composite hypotheses [3]. Now the distribution and also the bias and variance of statistics to estimate the neg-entropy based on maximum mean log-likelihood can easily be computed. Using the prior theory we can compute the distribution of the MALL. This statistic is a sum of two independent components, consequently the distribution of this statistic can be obtained by the convolution of the distributions of the corresponding components: 1. a normal distribution with J.LN = E {log f(J2n; po)} (11) O'Tv = 1t (E {log2 f(J2n; po)) } - E {log f(J2n; PO)}2) which only depends on the correct distribution f(J2n; po) = g(J2) and 2. 2}."times a XJ-distributions which depends on the number of degrees of freedom 1 = dim(p). The first component is an R-unbiased statistic to estimate the neg-entropy and the second component introduces N-bias di~p). Consequently the bias and variance of the 235 statistic are BIAS {MALL U)} ~ di~P) VAR {MALL U)} ~ O"J" + di;:;J:?) (12) If there is R(epresentation)-bias the model pdf is not capable of modeling the correct pdf (g(~) ie f (~n; po)) and both distributions change. The distribution of the first term of (10) remains normal but is based on the expectation using the correct distribution g(~) and the logarithm of the model distribution log f(~n; po), Consequently both the mean (R-bias) and variance will change. In the Hessian the left-hand term will not be negligible, so the chi-squared approximation will not be valid anymore. MANY PARAMETER MODELS Entropy estimation using an over-parameterized pdf will result in inferior results due to the increasing N-bias and variance of the statistic MALL. Similar problems are observed in the field of AR-modeling. The prediction error increases while adding superfluous parameters to the model; as a result the modeling capacity decreases. We have observed a trade-off between N-bias and R-bias; in general its a good strategy to accept some R-bias to reduce the N-bias. Therefore it is a good strategy to slightly under-estimate of the number of degrees of freedom. Many parameter models are typically used in neural networks and genetic algo- rithms. What are the consequences for these algorithms which are based on the esti- mation of a large numbers of parameters? It is certain that the statistic to evaluate these models, MALL , becomes more and more unreliable for an increasing number of parameters. If all degrees of freedom fully contribute, the estimated models should be drowned in the estimation noise, The fact that both neural networks and genetic algorithms are successful for certain classes of problems indicates that yet an essential part in our theory is missing, lts very likely that we can construct algorithms in which every parameter contributes with a certain amount 0 :S ). :S 1 to the number of degrees of freedom and this). depends on the signal to noise ratio of the individual parameters. An algorithm where). E {O,I} has already been introduced for AR-modeling [4]. CONCLUSIONS AND DISCUSSION This publication provides the theoretical framework for prior publications in the field of AR-order estimation [3, 4], A weakness in these articles was the assumption that the used test-statistic is a sum of independent xi-distributed contributions correspond- ing with the parameters. This was an astonishing assumption motivated by simulation experiments. Now this observed behavior has theoretically been proven. The extended knowledge of the distribution of MALL makes a better choice of the threshold in test- ing composite hypotheses possible. Till now in our research we have only focussed on 236 reduction of model complexity by selecting models with a predefined upper limit on the probability of selecting a too complex model. If the distribution of the test-statistic in likelihood-ratio test is known, we can develop more sophisticated and application dependent model selection strategies for example based on cost functions. The approximate distribution of a large class of statistics, the statistics based on MALL, to estimate the entropy has been derived. This approximate distribution has an astonishing simple structure. Till now it was unknown that the entropy estimation problem can for large enough N be separated from the parameter estimation problem. The knowledge about the distribution of this statistic, especially its bias and variance will, enhances the accuracy of entropy estimates. Furthermore the model pdf, espe- cially the number of degrees of freedom, can now be adapted to optimally estimate the entropy. Modeling industrial processes and the selection of the most cost effective process model becomes feasible. In [10] such problems are illustrated in a beam-forming ap- proach. Some of the examples use neural networks with more than two hidden layers to improve accuracy [Ll]. However the increase in free parameters makes those networks non-trivial to train. For production processes, like steel-milling, the need for on-line training adds to that. Then on-line diagnosis can only be successful if an application optimal process model is present. The prove in this paper justifies the assumption that such is feasible. The behavior of the distribution of MALL as a function of the model complexity indicates that over-fitting by adding more superfluous parameters to a stochastic model has its price. These superfluous parameters will widen the distribution of MALL and indirectly the distribution of quantities derived from MALL. For example the parameter estimates in the ML-method become more inaccurate. In general over-fitting is a bad idea and a slight form of under-fitting seems to be optimal; we have already observed this in the field of AR-modeling [12]. We emphasize the limitations of the prior theory. The theory is only dealing with neg-entropy estimation in case of the correct model and the correct number of parame- ters (R-unbiased) eventually increased by a certain number of superfiuous parameters. Furthermore the theory is only valid for large enough N. In practical applications this means that the number of observations is an order of magnitude larger than the number of degrees of freedom. Of course our theory breaks down if dim (p) approaches N. 237 Acknowledgment. It a pleasure to thank prof. L. Spaanenburg for reading the manuscript, his helpful comments and our fruitful discussions. REFERENCES [1] H. Akaike, "Information theory and an extension of the maximum likelihood principle," in Proc. 2nd Int. Symp. on Information Theory, P. N. Petrov and F. Csaki, Eds., Budapest (H), 1973, pp. 267-281, Akademia Kiado. [2] P. M. T. Broersen, "The quality of models for ARMA processes," IEEE Trans. on Signal Processing, vol. 46, no. 6, pp. 1749-1752,1998. [3] R. Moddemeijer, "Testing composite hypotheses applied to AR order estimation; the Akaike-criterion revised," in Nineteenth Symp. on Information Theory in the Benelux, P. H. N. de With and M. van der Schaar-Mitrea, Eds., Veldhoven (NL), May 28-29 1998, pp. 149-156. [4] R. Moddemeijer, "An efficient algorithm for selecting optimal configurations of AR- coefficients," in Twentieth Symp. on Information Theory in the Benelux, A. Barbé et. al., Ed., Haasrode (B), May 27-28 1999, pp. 189-196. [5] R. Moddemeijer and L. Spaanenburg, "Selection of sufficient stochastic data-models ap- plied to modeling," in Proceedings of the 10th workshop on Circuits, Systems and Signal Processing (IEEE/ProRISC99), J. P. Veen, Ed., Mierlo (NL), Nov. 25-26 1999, pp. 307- 316, published on CD-rom. [6] G. A. Miller, "Note on the bias of information estimates," in Information Theory in Psychology, H. Quastler, Ed., pp. 94-100. Glencoe, Ill., 1955. [7] R. Moddemeijer, "On estimation of entropy and mutual information of continuous distri- butions," Signal Processing, vol. 16, no. 3, pp. 233-246, 1989. [8] S. S. Wilks, "The large-sample distribution of the likelihood ratio for testing composite hypotheses.," Ann. Math. Stat., vol. 9, pp. 60-62, 1938. [9] S. Brandt, Statistical and Computational Methods in Data Analysis, North-Holland Publ. Cornp., Amsterdam (NL), 2nd edition, 1976. [10] S. Haykin and X. Li, "Detection of signals in chaos," Proc. of the IEEE, vol. 83, no. 1, pp. 94-122, 1995. [11] D. Chester, "Why two hidden layers and better than one," in Proc. Int. Joint Conf. on Neural Networks (ISCNN), Washington, DC, Jan. 1990, pp. 265-268, IEEE Publications. [12] R. Moddemeijer, "Autoregressive order estimation combined with pruning of the coef- ficients," in Signal Processing Symp. (SPS 2000), Hilvarenbeek (NL), Mar. 23-24 2000, published on CD-rom. 238 COMPLEXITY-CONSTRAINED TREE-STRUCTURED VECTOR QUANTIZERS J. Cardinal Université Libre de Bruxelles, Computer Science Dept. Bid. du Triomphe, CP212, 1050 Bruxelles, Belgium jcardin0ulb.ac.be We present a new algorithm for complexity-distortion optimization in tree- siructured vector quantizers (TSVQ). The algorithm allows the user to spec- ify the average rate and computational complexity budgets Rand C, mea- sured in bits and multiplications per sample, respectively. The output is an optimal -in a sense to be specified- T$VQ satisfying the constraints. The complexity budget is lower-bounded by the complexity of a binary tree- struciured vector quosüizer, and upper-bounded by the complexity of a full- search entropy-constrained vector quantizer. Experimental results for syn- thetic and natural sources are given. INTRODUCTION AND BACKGROUND In a general vector quantization (VQ, [1]) scheme, we assign to any input vector x E ]Rk an index from a set I = {O,... , n-1}, using a mapping 0: : ]Rk -t I. This mapping is followed by a lossless coder "/ : I -+ {O,l}* which assigns to each index a unique binary codeword. The inverse operatien is denoted by f3("(-l(S)), S E {O,l}*, where 13 : I -t C C ]Rk. The codebock C is finite and contains the representative vectors, or codeveetors associated to each index in I. The mapping 0: is performed using a minimum distortion criteria, that is, d(x,f3(o:(x))) is minimized for a given distortion measure d. The code used by "/ is usually a prefix-free code in which 1"/( i) I ~ -log p( i). In Rate- Constrained Vector Quantizers (RCVQ), the distance to a codevector is weighted by the rate associated to it, so that the best rate-distortion tradeoff can be found. The cost measure is d(x, f3(o:(x))) + À.I"f(a(x))I, where the lagrangian multiplier À defines the rate-distortion balance. The joint design of those three mappings is based on the Generalized Lloyd Algorithm [2]. When the rate is defined as the entropy of the output, this scheme is called Entropy-Constrained Vector Quantization [3]. In a theoretical point of view optimality holds for k -t 00, but the complexity 239 of a full search in C increases exponentially with k (n = Ó(2k)), so an efficient implementation of the mapping Cl! is not easy to design. An exhaustive search, even in a medium-dimensionality space (in most cases 4 :S k :S 16) is quite costly in terms of computation time. A promising solution is the use of constraints on the codebock in order to be able to search it in an efficient way. One of these techniques is called Tree- Structured Vector Quantization (TSVQ, [4] [5] [6] [7] [8]). In TSVQ, the codebock is organized in a tree structure, each node of which contains a codevector. The actual codebook C is defined as the set of codeveetors contained in the leaf nodes. The search begins at the root node; at each node, the encoder moves to the child node that best reproduces the source vector until a leaf node is reached. The complexity of the search in a TSVQ is considerably reduced compared to a full-search VQ : the complexity order becomes O(logn) instead of O(n). The drawback is of course a worse reproduetion quality, since the codevector found is generally not the best one. Design of such trees are mainly based on two approaches: 1) the greedy growing approach, in which nodes are split until the desired rate is obtained [6J [7], 2) the pruning approach, in which a high rate TSVQ is built with a greedy method and then pruned using the BFOS algorithm [Ei] [7] Many techniques are available for VQ acceleration and TSVQ design, but only few works have tried to answer the question of which encoding fidelity can be ob- tained for a given encoding time budget. This problem is difficult to address in a general framework, but we can find optimization techniques which give optimal solutions for a class of coders. We can encompass this type of optimization in a larger complexity-distortion theory similar to the well-known rate-distortion the- ory. This idea has been developed in [9], [10], [11], [12Jand [13J. In rate-distortion theory, we define the curve D(R) of a given source as the lowest achievable dis- tortion at rate R. We can similarly define a complexity-distortion (DjC) curve as the curve DR(C) of the minimal distortion that can be obtained with a coder of average complexity C at rate R. The rate-distortion curve is obtained for a possibly infinite complexity. If we limit ourselves to a subset of feasible coders and rigorously define the complexity of a coder we can find a good - and maybe optimal- operational D(C) curve, and achieve the best reproduetion quality for a given complexity. Using time-sharing, we can show that D(C) is convex. In this work we use a BFOS-like algorithm to optimize a TSVQ in the DjC plane, just like it is usually done for RjD optimization. 240 ALGORITHMS Structure of the Coder In this section, we define the tree structure and the encoding algorithm used throughout the work. It is a loose definition in the sense that the tree is simply defined as a set of nodes. The relations father(t) and i...son(t) (i = 0, ... n(t) - 1) (i th son of node t) will be used without formal definition. We write T for the whole tree and T for the set of leaf nodes. To each node tE T we associate the number of son nodes n(t), and a codevector Yt E ]Rk We put the restrietion on n(t) that it can be greater than 2 if and only if all the son nodes of t are leaves. The other nodes satisfy either n(t) = 2 or n(t) = 0 (leaf nodes). According to the general notations defined previously, we have n = ITI. To each t, we also associate the region of the input space R(t) which is mapped onto that node during the encoding. We define p(t) as the corresponding probability mass, that is : p(t) = i: r p(x).dx, (1) for a given input pdf p(.). The encoder iteratively maps the input vector onto the son node i which maximizes the weighted distortion d(x, Yi...son(t))-Àt·logp(i...son(t)), where Àt is the lagrangian multiplier associated to the current node t. We can now write the distortion for a leaf node t ET: d(t) = r i.; p(x).d(x, Yt).dx. (2) We also define the distortion and the rate D(T) = L d(t), R(T) = - LP(t).loI;P(t), (3) tET tET associated to the tree T. In order to perform a complexity-distortion optimiza- tion, we also have to quantify the amount of complexity required for encoding a single vector using this tree. We will use the average number of multiplications per sample as measure of the quantizer complexity. Since a distance computation requires k multiplications per vector, we can see that the branching decision in each internal node costs n(t) multiplications per sample. We introduce the no- 241 tation pathT(t) for the set of nodes on the path from the root of T to the node t E T, including the root node itself. Using this definition, we can define the cornplexities c(t) = p(t). L n(u), C(T) = L c(t), (4) uEpathT(t) tET associated to a leaf node t E T and to the tree T, respectively. In terms of [5], the rate, the distortion and the complexity are linear functionals of the tree. The tree structure defined here can be seen as a generalization of the classical binary TSVQ in which each leaf node can have more than one sibling. This ex- tension will allow us to obtain a larger range of complexity-distortion points than in a simple TSVQ. The complexity achieved with this structure is lower-bounded by the complexity of a binary TSVQ, and upper-bounded by the complexity of a full-search ECVQ, corresponding to the trivial case in which the root node has n sons. The Merge Operator The complexity-distortion optimization algorithm presented in this paper uses a merge operator to modify the tree structure and move on the cornplexity- distortion curve. This operator does not change the rate of the quantizer, so the complexity-distortion ratio can be tuned independently. We define the subtree of T rooted at node r as the set of all descendants of r . The operator simply replaces a subtree SeT rooted at node r by a full-search entropy-constrained vector quantizer : the leaf nodes of S become the direct sons of r . n(r) is modified accordingly and the lagrangian weight Àr is tuned in order to keep the rate constant. It seems clear that in most cases the cornplexity C(T) does not decrease, because the logarithmic search in S is replaced by a full search in the son nodes of r. On the other hand, the distortion cannot increase, since the suboptimal ·quantizer defined by S is replaced by an optimal ECVQ 1. The variation in computational complexity when merging the subtree S of T rooted at node T is given by the following formula: n(u)) 1An ECVQ is optimal in the sense that the rate-distortion point of the selected codevector belongs to the lower convex hull of the set of all rate-distortion points. 242 Similarly, 6.D < 0 is the decrease in distortion observed during the application of the operator. When we apply this operator, we have to train the new subcodebook {ü;on(r)} in order to get the greatest decrease in distortion. It seems natural in this case to use the set {Yt}, t E S as initial codevector values for the GLA iterations at node r. The new lagrangian Àr can be found by bisection. The number of codeveetors ISI is sufficient for the training, since the actual rate of the merged subtree is always less or equal to log ISI. Optimization The algorithm is a direct optimization of the distortion D(T) with a constraint on C(T). Each move in the solution space corresponds to an application of the merge operator: at each step of the algorithm, we choose the merge that gives the best D IC tradeoff. A pseudo-code is shown in Algorithm 1. In the cases where 6.C < 0 the merge is always performed. We can show that the cornplexity- Algorithm 1 The general optimization algorithm build a variable-rate TSVQ T for each subtree, compute the decrease in distortion 6.D < 0 and the increase in complexity 6.C > 0 when this subtree is merged, while C < complexity budget do find the subtree S for which -6.D I 6C is maximal, merge S, update 6C and 6.D for all subtrees U c T such that S c Ü end while distortion pairs generated by the algorithm belong to the lower convex hull of D(C) [5]. The major problem of the presented algorithm is its storage cost: for each node of T we have to compute the complexity and distortion variation for the corresponding subtree. For instance, if T is a complete binary tree the algorithm has to store n. (log n - 1) additional codeveetors belonging to the potentially new codebooks of each subtree. The algorithm also has to design these new codebooks, which can take a lot of additional computation. In order to reduce this load, we propose a lighter version of the algorithm, similar to the ROPA algorithm [14]. Instead of computing 6.C and 6.D for each subtree, we do it only for the subtrees of height 2. The best merge is selected among these subtrees only, and the same steps are iterated until the budget is reached. The property of the 243 original algorithm stating that the obtained complexity-distortion points belong to the lower convex hull of D(C) is not true anymore because the new variant is myopic: it cannot predict the ratios obtained by merging a subtree whose root is closer to the root of T, so optimality as defined in the previous section does not hold anymore either. In [14], however, a weaker optimality criterion is shown, using the distances from the points to the convex hull. We also point out that the complexity-distortion points obtained by algorithm 1 form a subset of the points obtained in the new algorithm, so the new version probably needs more steps for a given budget, but is also more accurate. Comparison with [10] In [10], the BFOS pruning algorithm is adapted for joint rate-distortion-complexity optimization. Instead of minimizing the cost function D + À.R, a second La- grangian multiplier p, is introduced as a weight for C, and the global cost D + À.R + p,.C is minimized. At each step of the modified BFOS we prune the branch whose marginal return -/::'Dj(À./::'R + p,./::'C) is minimal. We remark that if À > 0 the user only has to define the relative weighting l/ = p,j À between the rate and complexity variations. Although optimality is ensured by this scheme, it suffers from the drawback that the user has to tune the value of l/ to fit his application needs. This problem is solved in our case by using two independent optimization steps. The problem of the close coupling between rate and complex- ity is also solved here by using an operator which does not modify the rate. Our method also makes use of a wider search space. EXPERIMENTAL RESULTS Fig. 1 shows two operational D(C) curves obtained on different test sets. The first is a Gauss-Markov process coded at .5 bits per sample, and the second is a natural source of image blocks taken from the USC image set, coded at 1 bps. The distortion measure is the mean square error (MSE). The method for growing the initial tree is taken from [6], but better rate-distortion ratio can be obtained by using the methods described in [7] and [8]. The whole range of achievable D jC points was generated, from the minimal complexity point achieved by stan- dard binary TSVQ to the maximal complexity point corresponding to full-search ECVQ. Better results are obtained on the gaussian distribution, due to its regular structure. The results presented assume that the number of codeveetors remains 244 oc_tsvq- 0.159 L__~_~ __ ~,,__ ~_---:,:--=,,---:" ". L ~ _~~~_~~,,_~~_.c......:=__j ComJ>i.l n- k ) . (15) n[ (x") - n] (xk-I) The first part B(b) can be stored in an array of length n + 1 which requires 0 (n2) bits of storage, which is of the same order as the other arrays. However, the last part, j(xn), must be treated more carefully. In the next two sections we consider the determination of the index using either a table of binomials or the computation of the required coefficients. 251 6.1 Index computation using a table of binomial coefficients Suppose we store all possible coefficients (~), for a = 0,1, ... ,n and b = 0,1, ... ,a in an array Bin(a, b). Obviously, we need to store (9 (n2) coefficients, each one has a size of n bits. So the total storage cost is (9 (n3). The total time complexity of the index computation becomes (9 (n) and the storage corn- plexity is dominated by the Bin(a, b) table and thus is (9 (n3). The inverse procedure, finding x" from i(x") can be done in a similar way. Just as with the index computation we find that the time complexity of the decoder is (9 (n) and the storage complexity is (9 (n3). 6.2 Index computation using computed binomial coefficients A storage complexity of (9 (n3) is more than we would like to have. Another option is to compute the coefficients as we need them. The algorithm based on the computation of the coefficients requires (9 (n) additions and subtractions, (9 (n) multiplications, and (9 (n) divisions. The additions and subtractions cost (9 (n) storage and (9 (n) time. The multiplications can also be done in (J (n) time with (9 (n2) storage. However, the cost of a division using long division is (9 (n) time and (9 (n) space, and because the (9 (n) divisions required have to be performed sequentially, the total time complexity is (9 (n2). So in this case we find a total storage complexity of (9 (n2) and a time complexity of (9 (n2). . 7 Conclusions Summarizing the complexity: • The cost of the code word generation. When we store the base array the time corn- plexity is (9 (1) and the storage cost is (9 (n2) bits. We also showed that it is possible to compute the base resp. prefix values when we need them in (9 (n) time. The storage cost then is (9 (n) because we must save the resulting codeword. • The cost of the code word length array. We described an algorithm that produces the required code word length from the source sequence index in (9 (log n) time and (9 (n2) storage space. • The index computation is still an open question. We have two options, either wc use a table of binomial coefficients, Pascal's triangle, or we compute the required coefficients. Pascal's triangle requires (9 (n3) bits of storage and the computation of the index then costs (9 (n) time. Computing the coefficients requires (9 (n) divisions that must be performed sequentially thus resulting in a time complexity of C9(n2), which is unacceptable. A The number of w arrays First we shall give a simple combinatorial lemma that gives the number of partitions of an integer. 252 Lemma 2 let k E {l, 2,"'} and rE {I,2,···} be given and let!!. = VIV2'" Vk be an array of non-negative integer values. The conditions on !!.are Vi E {I, 2,'" ,k} : Vi E {O, I,2,"'} (16) k LVi=r. (17) i=1 So !!.is a partition of the integer r into k parts. The number of!!. arrays that satisfy these conditions is given by 10/1 = (k + r - 1). k-I (18) For reason of brevity we omit the proof of this lemma. Now consider the array w. It has 2" elements and each element is a code word length between 1 and 2" - 1 inclusive. The array ."!Qis ordered in non-decreasing order. We can define another array g that describes how many code words of a given length are in the code. It has (2" - 1) - (1) + 1 entries, one for each possible code word length. Consider the relation between ."!Qand g, We have by definition of !!. Vj=I, ... ,2n_1 : Vj = I{i : Wi = j}l. (19) And because ."!Q is an ordered array we can find ui, from the u array by j-I Vi=0,...,2 -1 : ui, = max{j n E {I, ... ,2" - I} : L Vk < i}. (20) k=1 So the relation between g and."!Qis one-to-one. !!.satisfies the following conditions: Vi E {I, 2,'" ,2" -I} : Vi E [O, I,2,···} (21) 2n-1 L i=2". i=l V (22) The number of!!. arrays is given by Lemma 2, so also the number of ."!Qarrays, I~ I is given as I~I = e·L~'n-I).And we obtain that log21~1 = 2,,+1 + O (n). (23) B The number of w arrays with () (n) values Consider the number of ."!Q arrays given that there are two integers a and b with 1 SaS b S 2" - 1 such that for all W holds a = Wo S WI S ... S W2n_1 = b. As in Appendix A we consider an array g = VI, .. , , V2n_1 that satisfies (4), Now it is also clear that u is a partition of 2" into b - a + 1 parts and with Lemma 2 we find log2IW(a; b)1 = (2,,+1 - l)h ( b-aI ) + ()(n). (24) 2"+ - 1 253 From (8) and (9) we know that for our codes b - a = w+ - w_ = en + o (n), where c = log 2 1.=£ p " and thus with N #:. 2n+1 - 1, we find (25) All that remains to examine is the function f(m) ~ mh(c10!,2nL).Using a Taylor series ex- pansion we can finally conclude that (26) References [1] J.B. Connell, "A Huffman-Shannon-Fano Code," Proc. IEEE, vol 61, pp. 1046-1047, 1973. [2] T. Cover, "Enumerative source coding," IEEE Trans. Inform. Theory, vol IT-19, pp. 73- 76, Jan. 1973. [3] P. Flajo1et and H. Prodinger, "Level Number Sequences for Trees," Discrete Math, 65, pp. 149-156, 1987. [4] D.A. Huffman, "A method for the construction of minimum-redundancy codes," in Proc. IRE, vol 40, pp. 109R-llOl, Sept. 1952. [5] A. Karatsuba and Yu. Ofman, "Multiplication of Many-Digital Numbers by Automatic Computers," Doklady Akad. Nauk, SSSR 145, pp. 293-294, 1962 (Transl. Physics- Doklady 7, pp. 595-596,1963). [6] T. Nemetz and J. Simon, "Self-information and optimal codes," in Topics in IT, pp. 457- 468, 1977. [7] E. Norwood, "The number of different possible compact codes," IEEE Trans. Inform. Theory, vol IT-13, pp. 613-616, Oct. 1967. [8] J.P.M. Schalkwijk, "An algorithm for source coding," IEEE Trans. Inform. Theory, vol IT-I8, pp. 395-399, May 1972. [9] A. Schönhage and V. Strassen, "Schnelle Multiplikation Grosser Zahlen," Computing 7, pp. 281-292, 1971. 254 An Informationtheoretical Approach to Information Embedding Frans M.l. Willems Electrical Engineering Department, Eindhoven University of Technology Abstract We consider here a model for embedding information in a source sequence. This information is to be recovered from a noisy version of the sequence in which the infor- mation is embedded. We show that there is a balance between the information rate and the distortion that results from embedding. We focus on the proof of a converse result, i.e. on an upper bound on the rate achievable with a given distortion level. The embed- ding setup is closely related to the Gelfand and Pinsker (4] side-information model. 1 An embedding system We start by describing our embedding system. It is depicted in figure I below. discrete XNl~ yN l~ memoryless / encoder / destination source / I" discrete ~ memoryless ....::::, decoder "- W / channel ZN / ~ 1 W Figure 1: A model of an information embedding system. A discrete memoryless source emits a sequence x~ = (X], X2, ... , XN) consisting of N symbols assuming values in the discrete alphabet X. The probability that sequence x~ is generated is 255 for a certain distribution Qx O· A message source produces a message w which is uniformly distributed over {I, 2, ... , M}. The operational message rate is defined as f:, 1 Rop = N 10g(M). Depending on this message w, the encoder (embedder) changes into the sequence xt yf = (Yl, Y2, ... , YN) made up out of elements from the discrete alphabet Y, i.e. yf = f(xf, w). The modified sequence yt is close to the original sequence xf in the sense that the opera- tional average distortion between and Xf yt t; ~~ N 1 N N . Dop = L L Q(x1 )-d(x1 ' f(x1 ' w) with N w M XI N N t; 1 ~ d(x] , Yl ) = N L D(xn, Yn), n=I,N is bounded. Here DC .) is a matrix consisting of 1..1:'IIYI non-negative numbers. The modified sequence yf is now observed through a discrete memoryless channel with input alphabet Y, output alphabet Z, and transition probability matrix Qzly(-I·). The proba- bility that output sequence zf = (ZI, (;2, ... , ZN) occurs if is the channel input sequence yf is for a given matrix Qzly(-I·). A decoder is now supposed to decode the message w reliably from the channel output sequence z] N·, r.e. ÛJ = g(zn, where gO is the decoding function. The performance of the system is determined by the average error probability t; ~ PE = Pr{W op W}. In the last months of 1999 several authors, e.g. [6], [1], and [2], realized that this setup is strongly related to the side-information model that was investigated by Gelfand and Pinsker [4]. The "defect" problem (see Kuznetsov and Tsybakov [5] ) is a special case of this side- information model. Here we determine the "rate-distortion" function for the embedding model. Note that our setup relates to watermarking. However the action of the attacker is very well specified here. It.only implements.the channel Qzly(-I·). Moreover observe that there is no secret key involved here. In the next section we will state our result. After that we will give the proof of this result. 256 2 Statement of result An (N, Rop, Dop, P£)-code consists of an encoding function f (-,.)and a decoding function gC), both operating on sequences of length N, with message rate Rop, average distortion Dop, and average error probability P£. We now call a pair (R, D) achievable if for all E > 0 and all N large enough there exist (N, Rop, Dop, P£)-codes satisfying Rop > R - E, (1) Dop < D + E, and (2) P£ < E. (3) The closure of the set of achievable pairs is called the rate-distortion region. The rate- distortion function R(D) is now defined as R(D) = maxjrlt», d) is achievable and d ::::DJ. (4) Theorem: The rate-distortion function is given by R(D) = max [l(u; Z) - l(u; X)], (5) P(uylx)EPo where PD = {P(u, ylx) : Lxuy Qx(x)P(u, ylx)D(x, y) ::::D}. For the cardinality of the auxiliary variable lUI = IXIIYI suffices. In the next section we will prove the converse coding theorem. The direct part is along the lines of the proof in Gelfand and Pinsker [4]. 3 Proof Consider an (N, Rop, Dop, P£)-code. We then have NRop H(W) H(WIZf) + leW; zf) < 1 +P£NRop+I(W;zf) where the first equality holds because the messages W are drawn from a uniform distribution, the second equality follows from the definition of mutual information, and the inequality is Fano's inequality. Because Wand Xf are independent, we have 257 We now proceed as follows rrw, Z~) - I (W; X~) = L [lew; ZnIZ~-I) -leW; XnIX~+I)] n=I,N L [H(ZnIZ~-I) - H(ZnIW, Z~-I, X~+I) -1(Zn; X~+lIW, Z~-l) I!=I,N -H(XnIX~+I) + H(XnIW, X~+I)] L [H(ZnIZ~-I) - H(ZnIW, Z;'-I, X~+I) - iix ; Z~-IIW, X~+l) n=l,N -H(XI!IX~+I) + H(XnIW, X'~+I)] L [H(ZnIZ~-I) - H(ZnIW, Z~-I, X~+l) n=I,N -H(X"IX~+l) + H(X"IW, Z~-I, X~+I)] (b) < L [H(Zn) - H(ZI!IW, Z~-l, X~+I) 1!=I,N -H(Xn) + H(X"IW, Z7-1, X~+I)] L [1(Z,,; W, Z~-l, X~+l) - I(X n; W, Z~-l, X~+l)] n=I,N L [/(Z,,; VI!) - ux ; v,n. n=l,N with P(XI!' Vn, y", ZI!) = Qx(xn)P(v", y"lx,,) Qzly(z"IYI!) for some P(v", Ynlx,,) for n 1, N. Here (a) follows from the "summation byparts"-lemma of Csiszar and Kamer [3], (b) from the fact that H(Z"IZ~-l) ::: H(Z,,) (entropy can not increase by conditioning) and H(XI!IX~+l) = H(X,,) since the source symbols are independent of each other, and (c) follows from the substitution Vn ~ (W, Z7- X~+l) for 1 , ri = 1, N . We continue with n=l,N 0J N [feZ; VIT) - u», VIT)] N [H(ZIT) - H(ZIV, T) - H(XIT) + H(XI V, T)] (e) < N [H(Z) - H(ZIV, T) - H(X) + H(XIV, T)] N [/(Z; V, T) - icx, V, T)] Cf) N [/(Z; U) -leX; U)], with P(x, u, Y, z) = Qx(x)P(u, ylx)Qzly(zIY) for some P(u, y]x). Here (d) follows from defining a time sharing-variable T, independent of all the other variables, that assumes the 258 value n E {l, 2,'" ,N} with probability IIN. Moreover X = Xn, V = Vn, Y = Yn and Z = ZI1 when T assumes the value n for n = 1, N, (e) from the fact that H(ZIT) ::s H(Z) (entropy can not increase by conditioning) and H(XIT) = H(X) since the symbols Xn are assumed to be i.i.d., and (f) from the substitution V = (V, T). Next we have to study the distortion ~~ N 1 N N Dop = L L Q(x1 ) Md(x1 ,f(x1 ,w)) x~ w L L P(x~, y~)d(x~, y~) x~ y~ LLP(X~,y~)~ L D(xn,Yn) x~ y~ n=l,N 1 N L L L rc«; Yn)D(xn, Yn) 11=I.N XII YII L L L P(n)P(xn, Yn)D(xn, xn) = L L P(x, y)D(x, y). 11=I.N XII YII X Y Hence our (N, Rop, Dop, P[)-code satisfies 1 + N[I(V; Z) - leV; X)] Rop < (6) NO - PE) Dop = L L P(x, y)D(x, y), (7) x Y for some P(x, u, y, z) = Qx(x)P(u, ylx)Qzly(zly). (8) This implies that for an achievable pair (R, D) for any E > 0 and all N large enough, there are codes with 1 + N[I(V; Z) -leV; X)] R ::s Rop + E < N(l _ PE) + E, D::::: Dop - E L L P(x, y)D(x, y) - E, x y p[ < E, for some P(x, u, y, z) = Qx(x)P(u, ylx)Qzly(zly). If we now let E -J.. 0 and N -+ 00, we get the desired result. We finally have to find a bound on the cardinality of the auxiliary variable V. Therefore let V be the set of all probability distributions on X xY. Then consider the IXIIYI continuous functions of p E V that are defined as p(x, y) for all but one pair (x, y), Hp(X) - Hp(Z). (9) 259 By the Fenchel-Eggleston strengthening of the Caratheodory lemma (see Wyner and Ziv [7]) there are IXIIYI elements Pu E V and o!u that sum to one, such that P(x, y) = L O!u4Jxy(Pu) for all but one pair (x, y), u=l,IXIIYI H(XIU) - H(ZIU) L O!u4Jh(Pu)' u=l,IXIIYI Observe first that the entire distribution P (x, y), x EX, Y E y, is now specified. This distn- bution also determines H(X), P(y), y E Y and therefore H(Z), and Lxy P(x, y)D(x, y). Thus also I(U; Z) - I(U; X). This implies that lUI = IXIIYI suffices. 4 Conclusion We have described an embedding model and have determined the rate-distortion function that corresponds to it. This rate-distortion function represents the fundamental limit that is to be approached in practical situations. This is not the subject of the present paper however. Acknowledgement This research was inspired by discussions with Stan Baggen, Fons Bruekers, Marten van Dijk, Ton Kalker, Jean-Paul Linnartz, Kees van Overveld, and Peter Rongen from Philips Research Laboratories. References [1] J. Chou, S. Pradhan, L. El Ghaoui and K. Ramchandran, "A Robust Opmization Solu- tion to the Data Hiding Problem Using Distributed Source Coding Principles," preprint, 2000. [2] A. Cohen, A. Lapidoth, "On the Gaussian Watermarking Game," Proc. 2000 CISS, Princeton, March 15-17,2000, pp. pp. TA4-21 - 30. [3] 1. Csiszar and J. Korner, "Broadcast channels with confidential messages," IEEE Trans. Inform. Theory), vol. IT-24, no. 3, pp. 339-348, May 1978. [4] S. Gelfand and M. Pinsker, "Coding for a Channel with Random Parameters", Problems of Control and Information Theory, vol. 9, pp. 19-31, 1980. [5] A.V. Kuznetsov and B.S. Tsybakov,"Coding in a Memory with Defective Cells," trans- lated from Prob. Peredach. Inform., vol. 10, no. 2, pp. 52-60, April-June 1974. [6] P. Moulin and J. O'SulIivan, "Inforrnation-theoretic Analysis of Information Hiding," preprint, 1999, [7] A.D. Wyner and J. Ziv, "The Rate-Distortion Function for Source Coding with Side Information at the Decoder," IEEE Trans. Inform. Theory, vol. 1T-22, no. 1, pp. 1-10, Jan. l~nó. 260 INFORMATION THEORETIC ASPECTS IN THE DESIGN OF AUTONOMOUS ROBOTS ESSAM BADREDDIN Head of the Institute of Automation - University of Mannheim ABSTRACT Information theory is used to obtain suggestive rules and guide-lines for mobile robot design. Although these results are on a high level of abstraction, they can be very useful in the efficient assignment of the information processing resources on-board the robot. In particular, a canonical decomposition of the informatiori processing system is proposed according to effectibility and perceptibility properties. Effectibility and perceptibility are defined based on the transmission rate between system variables. It is further shown that the processing power of the whole system is additively shared by input-filtering, internal interconnections, internal system noise, output disturbance and the net input-output transmission rates. 1. INTRODUCTION A mobile robot employed in a dynamically changing unstructured environment is indeed a complex system. This system, consisting of an autonomous mobile robot and its environment, is hampered with many uncertainties about model structure and parameters so that most methods of linear and non-linear system theory cannot be readily applied. In fact the mobile robot itself is the best known part of the system. Despite the lack of compact model description, it is often desired to lay some guide-lines for an efficient conception of an autonomous robot. In particular, the kind of sensors needed for perception and, most importantly, the required processing power are serious decisions to be made during the life-cycle of the project. Engineers involved in autonomous robot design are aware of the fact that the final price of such a machine can as well be expressed in bits per seconds instead of currency units due to the strong relations between both. In general it is convenient to regard an autonomous robot as an information processing system perceiving - or collecting information about- the environment using sensors and acting upon - or delivering information to- it using actuators. Information theory is, therefore, one method for planning the efficient employment of the available resources. Information theory does not require detailed model description, in the form used by linear and non-linear control theory, but rather the statistical properties of the variables. The applicability of information theory is based on the analogy of each variable in a dynamical system representing a transmitter which sends its value to another variable being a receiver over a channel of connections. The system is, therefore, regarded as a communication network rather than coupled integrators, delay elements or non-linear function blocks. This general interpretation of a system is the source of both merits and deficiencies of information theory. The purpose of the following treatment is to provide the theoretical foundations of an economic system design in terms of its information processing power. Similar directions has been taken by [4] and [9]. In fact, entropy has been used in laying the fondations of intelligent control and intelligent machine design. The underlying work is an extension and generalization of these previous efforts. 2. DEFINITIONS AND PRELIMINARIES 2.1 N-Dimensional Entropy and Transmission Definitions of entropy and transmission for a single variable X, are presumably known to the interested reader The N-dimensional information theory deals with the case where SI is a vector of N variables, I We chose the letter S to stand also for "Set" or "System" which can be used alternatively with "vector". 261 S = [Xl X2 .. .xN]. Each value s = [xl x2 ... xN]' SE S. occurs with a probability pes). Detailed treatment of the N-dimensional information theory can be found in [11]. [10]. [2]. [3], [4] and [7]. The basic ideas in the forthcoming discussion is credited mainly to [6] and [9]. 2.1.1 System Entropy System Entropy can then be written, analogous to the single variable case, as. H(S) = - I. pes) log2P(s) S 2.1.2 Conditional Entropy The Conditional Entrop~an be given as. H(X3I 3Y(k)E YÇSP 11(XY) 0, \iXE Sp In other words, given a sensor configuration delivering the output sequence Y(k), all system states having non-zero transmission rate to the output set Y are perceptible, i.e., their past, present and future values can be deduced from measurements made by this sensing scheme. Notice that perceptibility and the dimension of the perceptible subsystem depends on the output set chosen. 3.1.2 Effectible Subsystem This is the second fundamental type of subsystems. This is the part of the system which is acted upon by the input. It can be defined in a dual manner to the perceptible subsystem Definition A subsystem Sf is said to be Effectibleesis U(k)E UÇSf 11(U:X) 0, \iXE Sf. Verbally, this means that the states of an effectible subsystem can be prescribed using an appropriate input sequence from the input set. Equivalently, given the input set to the system, all states which have non-vanishing transmission rates to that set are effectible. 3.1.3 State Decomposition Based on the above definitions, an abstract canonical state decomposition can be made for both the robot and the environment. It must be noticed, however, that the set membership of a state variable to a certain subsystem can change over time, Consequently, we suggest the decomposition of an information processing system into four disjoint subsystems as follows: Effectible & Perceptible subsystem Sfp This subsystem builds the channel between the input and the output of the system. It is characterized by the following relations for the transmission rates: I(E:Sfp) 0, I (U:Sfp) 0, I (Y:Sfp) 0. Where E, U and Y are the environment, input and output sets respectively. Effectible-Only subsystem Sf In this subsystem a part of the input is "lost" and does not contribute to the output. The characteristic rate relations can be similarly stated as follows: I (E:Sf) 0, I (U:Sf) 0, I (Y:Sf) = 0. Perceptible-Only subsystem Sp This subsystem is the dual of the effectible only subsystem. It contributes to the output without being affected by the input. It represents the "free will" of the system or can be seen as an information generator within the system. It can also be regarded as an output disturbance since its contribution is not related to the system input. The corresponding rate relations are written as: ï(E:Sp) 0, I(U:Sp) =0, 1(Y:Sp) 0. Neither Effectible nor Perceptible subsyst. SfI' It does neither influence the output nor can it be influenced by the input. It represents an inherent loss of information within the system. The cortesponding rate relations can are: I (E:Slp) = 0, I (U:Slp) = 0, I(Y:Slp) = ° 264 Environment Model . Sfp B neither Effeetibie Autonomous Mobile Robot Model Canonical State Decomposition of Robot and Environment 4. PARTITION OF RATE Now we shall make use of the above decomposition to discuss the distribution of the information processing characteristics of the system. For this purpose, we derive an expression for the transmission rate between the environment E and the robot system S = [Sfp,Sf,Sp,Sfp] . Applying the law of uniform Tilde for the transmission relation, we can readily write the expression for the transmission rate, 1(E:S) = 1(E:(Sf,Sp,Sfp» + 1(E:Sfp I(Sfp,Sf,Sp» By definition, 1(E:SIp I(Sfp,Sf,Sp» = O. Further expanding 1(E:(Sf,Sp,Sfp>). yields = 1(E:S) 1(E:Sfp) + 1(E:(Sf,Sp> ISfp) Again we expand the compound terms and apply the law of uniform conditioning to obtain, l(E:S) = l(E:Sfp) + l(E:sfISfp) + l(E:Spl(Sfp,Sf» The right-hand terms in the above expression can be interpreted as follow: I(E:Sfp) == Input-Output (10-) rate. This is the net information rate of the system, i.e., that part of the output which is related to the input. The least upper bound of this term is the System Channel Capacity, Cs = max { 1(E:Sfp) } Notice that the output rate may exceed the channel capacity by an amount contributed by a perceptible-only subsystem. ] (E:sfl Sfp) == Input Filtering (IF-) rate. It represents the rate used to isolate a, hopefully undesired, portion of the input from reaching the output. This is further explained by writing, 265 1 (E:Sfl Sfp) = H(E ISfp) - H(E I(Sfp,Sf») = [H(E) - H(E I(Sfp,Sf»]- [H(E) - H(EI Sfp)] = 1 (E:(Sfp,Sf») - 1 (E:Sfp) Thus, the information flow from sensors to the output through the channel, is reduced by this amount. 1 (E:Sp I(Sfp,Sf») == Output Disturbance (OD-) rate. As the given name implies, this rate is produced by an internal disturbance generator which produces information that is unrelated to the system input. This information appears at the output without an apparent cause. Effector uncertainties, numerical errors and memory-recall malfunction are but few examples for this effect. This rate is responsible for the spontaneous non-deterministic behavior of the system. A similar reformulation to that made for the IF-rate shows that, I (E:Sp I(Sfp,St» = I (E:S) - I (E:(Sfp,Sf») The transmission rate between the environment and the system can also be alternatively written as, I(E:S) =H(S)-H(SIE) = H(Sfp)+H(Sf)+H(Sp)+H(SIp)- I(Sfp:S(Sp: SIp)-H(SIE) But since the subsystems are disjoint, I (Sfp:S(Sp: Sip) = O. Equating both expressions for I (E:S) and rearranging, we obtain, [H(Sfp) + H(Sf) + H(Sp) + H(SIp)] =1 (E:Sfp)+ I (E:sfl Sfp)+ I (E:Sp I(Sfp,St»+H(S IE) [H(Sfp) + H(Sf) + H(Sp) + H(SIp)] == -rate, is the subsystems total entropy rate, and H(S IE) == v-rate, is the total noise rate which is produced within the system in a given environment. Then, the above expression can be verbally formulated as, s = 10 + IF + OD + v while implying "rate" for all terms. Notice that this relation is made for the subsystems. In the terms of the state entropies, the s -rate is written as, s= t1=1 H(Xi) - I(XrX2:"': XN) :2:..H(Xi) == x-rate, is the total entropy rate of the states. I(X1:X2:"': XN) 1=1 Interconnection (IC-) rate, is the rate invested in communication between the states over their interconnections. Since the transmission-rate between the subsystems is zero, this rate is consumed within the subsystems. Then, the partition relation can be restated as, x = 10 + IF + OD + IC + v The partition of rate developed above is a generalization to the so called Partition Law of Information Rate (PLIR) made in [9]. 266 5. DISCUSSIONS, CONCLUSIONS AND FINAL REMARKS General Remarks: There are some dangers which should be kept in mind when making statements for real-world systems based on information theory: • it is very difficult to obtain multi-dimensional probability distributions for real-world systems. They are rarely known in advance and are hard to estimate through practicable measurements, • real world processes are rarely stationary or ergodie as assumed by most treatments in information theory, • information theoretic measures are global and do not allow local evaluation of system performance, e.g. within a particular frequency-band of interest. It is mainly due to the above reasons that many system scientists are reluctant to apply information theoretic results. But after all many system theories sacrifice the confinement with reality for sake of obtaining any results at all. Moreover, in the conceptual phase of system design it can be very valuable to have suggestive results before going into exhaustive technical details. Further, and most importantly, results obtained from information theory are applicable to all kinds of systems, linear or non-linear, discrete or continuous. One more point deserves our attention. While in communication systems the design goal is to convey a message over a channel as faithfully and as fast as possible, a control engineer will tend to reduce the information flow to a useful minimum. He will certainly try to reduce the flood of information about the environment entering the system through its sensors and establish the necessary coordination or interconnections within the system allowing only a modest information through-put to the output. In other words, a control engineer, in contrast to a communication engineer, will apply a good deal computing power and spend most of the time filtering the input data and extracting the relevant part out of it and thus avoiding unnecessary action. Remember that the classical goal of many controllers is to keep the system output constant, i.e., to reduce variations of the system output or, in other words, to isolate the influence of any disturbance on the input from reaching the output. Many of the above remarks have also been emphasised by many researchers in earlier works such as [9]. Application examples: Despite all drawbacks, the tools of information theory can be very useful in judgements involving the economy of an information processing system as an autonomous mobile robot. It helps us asset and quantify some intuitive statements such as ", .. to be efficient, obtainjust the right amount of information and act only as much as required but not more". In terms of transmission rates this means the lowest possible IO-rate to complete the task. An example of not obeying this obvious principle is the application of high-resolution video pictures obtained in real-time just to furnish a mobile robot with collision avoidance capabilities. Staying with the example of real-time vision, one notices that many picture cognitive operations begin by extracting the contours from a frame with ,e.g., 16 gray-levels or more. The processing power, or transmission rate, invested for this operation must be paid-for in terms of the hard- and software price as well as processing time and space. This could have been avoided if something like a "contour sensor" -which deos not exist yet- were used and thus minimizing the IF-rate. We believe, therefore, that the break-through in mobile robots requires advanced technologies for specialized vision sensors and processors. The human eye with the multiple resolution sensitive regions in its retina and the massively parallel processor structure are good examples to be imitated -not copied- by future designs. Distributed, decentralized, sensing schemes should be devised to let sensors share the perception load in a hierarchical manner. Specialized sensors are best suited for this purpose since they will operate at their maximum channel capacity. For example, obtaining the heading of a vehicle continuously from a gyroscope and occasionally from a vision sensor, for position up- date, will increase both system accuracy and reliability. The role of the gyroscope, as a specialized sensor, is solely to measure the inertial rotation rate while the vision sensor is meant mainly to perform other navigational operations such as looking for and identifying land-marks. Other sensors, e.g. sonar, perform collision-avoidance on a lower hierarchy. Negotiating a particularly difficult obstacle may require the application of the vision sensor which is now devoted to this function. In other words, one should keep specialized sensors with a low information rate in operation all the time performing only one function very well. Sensors with 267 high information flow must be used with care and only in situations not manageable by simpler ones. Do not try to use them for every thing! This in conjunction with a distributed, decentral processing architecture will tend to keep the IC-rate at a minimum. The OD-rate should also be kept small by choosing effectors with the lowest possible band-width to avoid excessive noise and unnecessary, uncontrolled, action such as vibrations in the drive strain. In most cases, the v- rate, is difficult to manage. However, reducing the entropy rate involved in the coordination of the internal computation infrastructure itself is important This can be done, e.g., by building a processor unit which needs less cycles to complete the operation ,i.e., time and space efficient hardware running at the lowest possible clock-rate. Since the environment as well as the mobile robot can be modelled in terms of their perceptible and effectible parts, a successful design will match the mobile robot to the environment. In other words, environmental specifications are an important integral part of the mobile robot system and should be as tight as possible. Whenever possible, the environment should also be tailored to the task and the robot. We suggest to measure the complexity of the environment in terms of its transmission rates. This means that the more sensors and actuators one adds to the robot, the more complex the same environment will appear and the higher will be the processing cost. This seems to agree with common-sense reasoning. Therefore, given a certain budget, of money or processing power, high performance will usually be obtained by a special design while generality can only be attained on the cost of performance. Keeping the above broad guide-lines in mind will result in an information-efficient and consequently an economical, competitive design. They have been followed in the design of a control structure for our mobile robot RAMSIS [5]. In summary, we attempted, through this paper, to continue previous efforts, made by other researchers, e.g. [9] and [11], [12], to emphasis the role of information theory in the conception and design of intelligent autonomous robots. We made some generalizations of previous results and introduced a new system decomposition based on effectibility and perceptibility properties which are, in turn, defined according to the transmission rates between the states of a system. By applying the same decomposition to both the environment and robot, an overall efficient system conception is made feasible. Guide-lines for the design of autonomous mobile robots were laid interpreted and illustrated by practical examples. The experience we made in the development of our mobile robot and laboratory experiments tend to support the importance of these guide- lines. REFERENCES [1] Ash, R.: Information Theory, Interscience Publishers, 1965. [2] Ashby, W.R.: "Measuring the Information Exchange in a System", Cybernetica,vo1.8, pp.5- 22, 1965. [3] Ashby, W.R. : "Two Tables of Identities Governing Information Flows within Large Systems", Comm. Amer. Soc. Cybem., vol.L, no.2, pp.2-7, 1969. [4] Ashby, W.R. : "Information Flow within Co-ordinated Sytems'', in Progress of Cybernetics: Proc. 1st Int. Congo Cybernetics, J. Rose,Ed. London:Gordon and Breach,pp.57-64, 1970. [5] Badreddin,E.: "Tailoring the Behavior of a Mobile Robot -A Recursive Approach- ", IEEE Conf. on Robotics and Automation, Sacramento, April 1991 [6] Conant, R.c.: "The Information Transfer Required in Regulatory Processes", IEEE Trans. Syst. Sci. Cybern., vol.SSC-5, no.4, pp.334-338, 1969. [7] Conant, R.c.: "Detecting Subsystems of a Complex System", IEEE Trans.SMC, vol-2, no.4, pp.550-553,1972. [8] Conant, R.C.: "Information Flows in Hierarchical Systems", Int.J.Gen.Syst., vol.L, no.I, pp.9-18,1974. [9] Conant, R.C.: "Lows of Information which Govern Systems", IEEE Trans. Syst. Man Cybern., vol.SMC-6, no.4, pp.240-255, 1976. [10] Garner, W.R. and McGill, W.J.: "The Relation between Information and Variance Analysis", Psychometrika, vo1.12, no.3, pp.219-228, 1956. [11] McGilI, W.J.: "Multivariate Information Transmission ", Pschometrika,vol.19,no.2,pp.97- 116, 1954. [12] Saridis, G., Valvanis, K. : "Analytical design of Intelligent Machines", Automatica, vo1.24, No.2, pp.123-133,1988. 268 MINIMIZING THE UNCERTAINTY PRODUCT WITH COMPOSITE SIGNALS Marcel G. de Bruin Delft University of Technology, Dept. of Appl. Math. Analysis P.O. Box 5031, 2600 GA Delft, The Netherlands m.g.debruin~its.tudelft.nl Cees Kamminga Delft University of Technology, Dept. of Mediamathics P.O. Box 5031, 2600 GA Delft, The Netherlands c.kamminga~its.tudelft.nl The well-known uncertainty product of communication theory for a signal in the time domain and its Fourier transform in the frequency domain is studied for a 'composite signal', i. e. a 'pure' signal to which a time-delayed replica is added. If the pure signal is Gabor's elementary signal (wave packet), then the un- certainty product as a function of the time delay shows the appearance of local maxima and minima (Kamminga fj Cohen Stuart, 1996). This finding leads to the following conjecture: the uncertainty product of a non-Gaussian composite siqnal can be smaller than that of the 'pure' signal. As an example this conjecture will be proven for s(t) = te-t2 exp(jwt), the derivative of the Gaussian signal. The uncertainties 6.t and 6.f, which are inherent in the definitions of the epoch t and the frequency f of a signal, can therefore benefit from the use of composite signals. Moreover, an optimal time delay T seems to exist in the sense that there is a global minimum in the plot of the uncertainty product as a function of the time delay T for fixed frequency and weighted amplitude of the secundary pulse. The effect on the uncertainty product of adding a delayed scaled replica of a signal to the original signal in the time domain leads to an important possibility for interpretation in the study of the reverberation phenomenon echolocation signals of dolphins. 269 INTRODUCTION Consider a possibly complex valued signal s(t) E L2(:IR); then its Fourier transform sU) = f: e-27C"jfts(t)dt is again square integrable over the real axis, s (1) E L 2 (:IR),and we have Parseval's equality IlsW = f: Is(tWdt = f: Is(JWdj = IlsW· The functions Is(tW / J~oo Is(t)12dt and Is(JW / J~oo Is(j)1 dj can be seen as 2 densities in the time resp. frequency domains. Introduce the mean time and frequency by (1) and the variances by Relating time duration and frequency width as !:lt = 21fO"t and !:lj = 20" f we then arrive at the following uncertainty product (UP in short): (3) The normalization used in (3) leads to the following famous inequality (rem- iniscent of Heisenberg's uncertainty principle from Quantum Mechanics) for the uncertainty product !:lt!:lj ;:::1, (4) where the equality sign holds if and only if s(t) = c exp(-at2) (a > 0, c E C \ {O}), the Gaussian signal (or Gabor's elementary signal), cf. Gabor, 1946, Merzbacher, 1970. The inequality in (4) is of primary importance the study of dolphin echoloca- tion signals. It is known today the dolphins possess a very sophisticated detection and ranging system which is based on the use of very short duration ultrasound 270 pulses. It is observed that all of these signals share a remarkable small bandwidth given their time duration. This property of maximum 'concentration' in tand f justifies the estimate or approximation of the signal by a parametrie waveform model, the elementary Gabor function. This estimate leads in many cases to a representation of the dolphin signal by a main pulse and a time-delayed replica (Kamminga & Cohen Stuart, 1996). In order to give an interpretation of the values (significantly greater than 1) found for these signals, we studied the following Gabor model: (5) Their plot (p. 243, fig. 6) shows an interesting phenomenon: tJ..ttJ..f is plotted as a function of the time delay T, for fixed al, a2, W, 'Pl, 'P2, I has local maxima and minima. But, of course, the actual value never drops below the lower bound 1 given in (4), the value attained by a pure Gabor signal (5) with 1=0. Cf. fig. 1 in this paper, plotting tJ..ttJ..f for (5) with al = a2 = 1, 'Pi = 'P2 = 0, W = 7 (an arbitrary choice) and I as indicated. 3 2 UP i .r.\ \ / "\. o 2 3 4 5 time delay Figure 1: UP for the composite Gabor signal, W = 7 271 Below, cf. fig. 2, a plot is reproduced following from an actual signalof a young Phocoena phocoena. The dominant frequency is 137 kHz, I = 0.46, T = 18 ± 0.5 JlB. 2.0 1.8 1.6 0. :J 1.4 1.2 Figure 2: UP for a young Phocoena phocoena The plots given above, give rise to two questions: 1. Does this phenomenon also occur in other types of signals? 2. If so, is it possible to find a time delay such that the uncertainty product of the composite signal is smaller than that of the pure signal? Both questions will be answered in the affirmative for the signal that can be given by the derivative of the Gaussian function, cf. section, and it is conjectured that in general the uncertainty product of a non-Gaussian composite signal can be smaller than that of the 'pure' signal. The outline of the paper is as follows: first (in the section Theoretical remarks) the effect of scaling on the uncertainty product will be discussed and then (section Example) the behaviour mentioned in the conjecture will be shown to be true for the derivative of the Gaussian signal. This is followed by a discussion of some possible implications of this behaviour for the interpretation of models in signal analysis (section Discussion and conclusion). Then (in section Some formulae) we reproduce some mathematical formulae to calculate the required quantities and finally, in the bibliography a selected list of references is given. 272 THEORETICAL REMARKS Define the 'moments' of the densities by (6) The formulae in (2) can then be written as a; = J..Lt,2 _ (J..Lt,1)2, a~ = J..Lf,2 _ (J..Lf,1)2 (7) J..Lt,O J..Lt,O J..Lf,o J..Lf,o These formulae make it easy to prove the following theorem about Scaling Invariance Theorem 1 Let the Fourier pair s, s have uncertainty product fltflj, then the Fourier pair Sl, Sl with time domain representation Sl(t) = s(>.t), >- > 0 satisfies (8) where the index indicates the values for the scaled functions. Proof For Sl we find ,,(1) _ r't,k - 11. ,-t,k />-k+1 , and its Fourier transform SlU) = ts(f) satisfies (1) \k-l J..Lf,k = /\ J..Lf,k· Inserting these into (7) and (3) we arrive at (8). o 273 EXAMPLE Consider the composite signal that is based on the derivative of a Gaussian function: s(t) = te-t2 exp(jwt) + ,(t - T)e-(t-T)2 exp(jw(t - T)) (9) where (,), T E lR and, > O. Using the formulae from section we calculate J-Lt,O= ~~ (1 + 2,(1 - T2)e-T2/2 cos (WT) + ,2) , J-Lt,l = ~~ (,T((1 - T2)e-T2/2 cos (WT) +,)) , J-Lt,2= 116~ (3 + 2,(3 - T4)e-T2/2 cos (WT) + (3 + 4T2)r2) . The Fourier transform is given by Again using the formulae from section yields: J-Lf,o =~~ (1 + 2,(1- T2)e-T2/2 cos (WT) + ,2) , J-Lf,l = 8~ ~ (w + 2,e-T2/2(w(1 - T2) cos (WT) - T(3 - T2) sin (WT)) + W,2) , V"2E (3 + w + 2,e- / (((3 2 T2 2 J-Lf2 = __!_2 - 6T2 + T4) + w2(1 - T2)) cos (WT) + , 1611" -2WT(3 - T2) sin (WT)) + (3 + W2)r2) . From the explicit expressions given above the uncertainty product can be calculated. Fig. 3 gives the plot as a function of T for the example with W = 7 and the values of, indicated; the pure signal has value 3 (as it is obvious that we have an even function in T, only values T 2: 0 have been used). 274 7 , ,,, , /._ .•··gamma=O.5 6· ,1'\, ,/ ! \ ,I 5 r. ! \... / UP 4· !f \ \. ! gamma=O.2 i 'v' 3~~~~~~~==~~~~~ r: ; !\ v t ; v \/ i 2. 3 4 5 time delay Figure 3: UP for the composite Gauss-derivative signal, w = 7 DISCUSSION AND CONCLUSION The effect on the uncertainty product of adding to a signal a delayed scaled replica of that signal offers important possibilities for the interpretation of the echolocation sounds emitted by dolphins, especially for dolphins emitting sounds of a polycyclic sonar character (containing more than 6 complete cycles). Here the animal turns the liability of an ever persistent reverberation into an asset. The experimental data imply that not only a main contribution to the sig- nal exists, but also a secondary one of a similar form. The peak values of the envelopes of the main resp. secondary contribution were found to have a ratio roughly between 3 and 1.5, cf. Kamminga & Cohen Stuart, 1996 and Kamminga et al., 1996. The examples show that the composite signal can have a smaller uncertainty product than a pure signalof the same form. The data suggest that in nature the uncertainty product is kept to a minimum, where it does not take the shape of a Gaussian signal, but that of a species-dependent waveform having a time-delayed copy attached to it. If we would calculate the theoretically optimal time delay, and the value of 'Y and w, and would compare this to the experimentally found distance between the main and secondary peak, we could give an indication to what extent the theoretical model of composite signals leads to a better understanding of the process of echolocation used by dolphins and the dependence of the time delay 011 morphological features of the species. 275 SOME FORMULAE For sake of completeness the explicit values of integrals used to calculate the uncertainty products in section are given below, cf. Magnus & Oberhettinger, 1948, Gradshteyn & Ryzhik, 1980. MOMENTS FOURIER TRANSFORM FORMULAE s(t) = te-t2 , s(f) = -7r-!irjje-7r2 p. If {s(t), sU)} is a Fourier pair, then also {exp (jU!t)s(t), s(f - ~)}, 27r and {s(t - T), exp (-27rjTf)S(f)}. REFERENCES [1] Kamminga, C., Cohen Stuart, A.B., "Parametric modeling of polycyclic dol- phin sonar wave shapes," Acoustics Letters, Vol. 19, No. 12, 237-244 (1996). [2] Gabor, D., "Theory of Communications," J. Inst. Elec. Engrs., Vol. 93,429- 459 (1946). [3] Merzbacher, E., Quantum Mechanics (Wiley, New York, 1970). [4] Kamminga, C., Cohen Stuart, A.B., Silber, G.K., "Investigations on cetacean sonar XI: Intrinsic comparison of the wave shapes of some members of the Phocoenidae family," Aquatic Mammals, Vol. 22, No. 1,45-55 (1996). [5] Magnus, W., Oberhettinger, F., Formeln und Sätze für die speziellen Funk- tionen der Mathematischen Physik (Springer, Berlin, 1948). [6] Gradshteyn, l.S., Ryzhik, I.M., Table of Integrals, Series and Products (Aca- demic Press. New York, 1980). 276 INFORMATION TRANSMISSION OF SLOWLY VARYING INPUT SIGNALS OVER DISCRETE MEMORYLESS STATIONARY CHANNELS * Mark S. Pinsker", Vyacheslav V. Prelov", and Edward C. van der Meulen ' t Institutefor Information Transmission Problems of the Russian Academy of Sciences 19 Bol'shoi Karetnyi, 101447 Moscow, Russia. i Department of Mathematics, Katholieke Universiteit Leuven Celestijnenlaan 200B, 3001 Heverlee, Belgium. Abstract - The problem of calculating the information rate in stationary memory- less channels with an additive noise and a slowly varying input signal is considered. Under the assumption that the input signal is a stationary Markov chain with rare transitions, it is shown that the information rate is asymptotically equivalent to the entropy of the chain and, therefore, the main term of its asymptotics does not depend on the channel noise. INTRODUCTION Consider a stationary channel with an additive noise whose output signal Y = {Yj} is equal to the sum Yj = Xj + Zj, j = 0, ±1, ... , (1) where the input signal X = {Xj} and the noise Z = {Zj} are independent, discrete-time, stationary processes. The inforrnation rate I(X; Y) in such a channel is defined as - 1 I(X; Y) = lim -I(Xf;Yt) (2) n-tcx) n provided the limit exists. Here IC;') is the mutual information , Xî = (Xl, ... , Xn), and y1n = (Y1, ... , Yn)· The problem of explicit caiculation of I(X; Y) is, except for a number of special cases, rather hard. Therefore, it is important to obtain good upper and lower bounds and to investigate the asymptotic behavier of I(X; Y) under different assum ptions on the beh avior of the parameters which characterize the input and noise processes. 'This work was carried out with the partial support of the Russian FUndamental Research Foundation under Grant 99-01-00828, INTAS Project No. 94-469, and a "Krediet aan Navorsers" from FWO, Belgium. 277 In most previous papers [1-5] dealing with this subject such an asymptotic behavior of 7(X j Y) has been analyzed for the case where the input signal is weak, i.e., the noise is large. In this paper, we do not assume that the power of the input signal goes to zero or that the noise goes to infinity, but we consider the case where the input signal {Xj} is a slowly varying stationary process. More precisely, we assume that the input signal X = X" = {XJ}, depending on a parameter E > 0, is a stationary Markov chain with a "finite number of states and transition probabilities which tend to ° or 1 as E -r+ 0. Moreover, we also assume that the channel considered is memoryless, i.e., the process Z = {Zj} in (1) is a sequence of i.i.d. random variables. The model considered here is a special case of the well-known simple hidden Markov model (see, e.g., [6-9]). In [7] and [9] for such kind of model the asymptotics of the average probability of error (in [7]) and of the mean-square error (in [9]) for the optimal (in the corresponding sense) estimates of X~ from the observations y.~oo = {Yj, j Sn} were found. We use the result of [9] to derive an asymptotic lower bound on the information rate 7(xej Y) as E -t 0. In this connection, we note that some relations between the mutual inforrnation and a causal mean-square "filtering error were observed many years ago [10-13]. But most results in this area were obtained for continuous-time models with additive Gaussian noise. In the recent paper [14], some inequalities between the information rate and the mean-square error of the optimal filtering for a rather general discrete-time model of observations with additive non-Gaussian noise were established. MAIN RESULT As already mentioned in the introduction, we consider a stationary channel (1) where the input signal X = X" = {Xi} (and, therefore, the output signal Y = ye = {YI}) depends on a parameter E > ° such that Y/ = XJ + Zj, j = 0, ±1, .... (3) In what follows, we will always assume that X" is a stationary, aperiodic, and irreducible Markov chain with a finite numberofstates {XI, ... , Xm, Xi E R, i = 1, ... , m} and transition probabilities A-P{Xe -xIXe-x}_{EÀij, ii=j, (4) 'J- n+l- J n- , - l-E.Àii, i=», where .Àii = L .Àij. We will also assume that Z = {Zj} is a sequence of real-valued i.i.d. Ji-i random variables independent of :re. 278 Theorem. If EIZolfJ < 00 (5) for some f3 > 4, then I(Xe; ye) = H(Xe)(l + 0(1)), E: -+ 0, (6) where (7) is the entropy of the Markou chain X", £ n-+oo and lim P{X~ qk = xd, k = 1, ... , m, is its stationary distribution (which does riot depend on E: J. Remark. Note that, as follows from (6), the main term of the asyrnptotics for I(XE; yE) does not depend on the power of the noise Z and coincides with the entropy of the Markov chain XE. This fact seems to be a surprise. But the similar assertion can easily be derived from well-known results for the simpler continuous-time channel in which the output signal ~E is defined by the equality d~E = Xfdt + crdWt, (8) where Xi is a stationary continuous-time Markov chain with two states -1 and +1 and symmetrical jump rates E:.\, and Wt is a standard Wiener process independent of X]: Won- ham [15] showed that the mean-square error e~Pt of the optimal filtering for Xi from the observations {Y:, s :::;t} has the following asymptotic expression 1 e~Pt = 2~(Iog -)(1 + 0(1)), ~ -+ 0, (9) o It is well-known (see, e.g., [12]) that for model (8) 2 I(XE;yE) = e oP2t. (10) 20 Itfollows from (9) and (10) that for the continuous-time model (8) with white Gaussian noise we have - 1 I(X E ; Y") = E.\(log -)(1 + 0(1)), E: -r+ O. (11) E: We can rewrite (11) in the form I(XE; Y") = H(XE)(l + 0(1)), E: -+ 0, (12) since for the Markov chain with two states considered here, one has - 1· H(X E ) = é.\(Iog -)(1 é + 0(1)), e -+ O. (13) 279 Equality (12) coincides with the asymptotic expression (6) for 'ïçx-, ye) in the case of the discrete-time model (3). However, the arguments used above to derive formula (12) for the continuous-time model (8) cannot be applied to the discrete-time model (3) considered here, since for model (3) formula (10) does not hold. The proof of the above Theorem and of other results mentioned in this paper can be found in [16] which will appear in Problemy Peredachi Informatsii. This proof makes use of inequalities and asymptotic expressions etabtished in [3], [9] and [17]. GAUSS - MARKOV MODEL It is known [4] that the asymptotic behavior of the information rate I(Xe; ye) as 5 -+ 0 for the case where YI = XJ + Zj = 5Xj + Zj, j = 0, ±1, ... , (14) and X = {Xj} and Z = {Zj} are independent stationary processes, depends only on the covariance function of X (if Z is fixed) and does not depend on other characteristics of X. More precisely, it was shown in [4] that for a very large class of second-order stationary processes X and any regular Gaussian process Z the following asymptotic representation holds: - I(5X;5X 52 + Z) = :l J 1/2 !X(>,) 2 !z(>,) d>" + O(E ), 5 -+ 0, (15) -1/2 where fx(>") and fz(>...) are the spectral densities of X and Z, respectively. In [5], this result was generalized to a certain class of non-Gaussian processes Z for weak input signals X" = 5X. But, as shown in [14], for the case of a weakly varying input signal xe considered here, the asymptotic behavior of I(xe; ye) as 5 -+ 0 does not only depend on the covariance function of X"; but also on some other parameters of X', in particular, on the set of values of x-. In order to verify this assertion, compare the asymptotic behavier of the information rates 'tix-, X" + Z) for the channel model (3) under the assumptions that: (i) X" = {X~} is a stationary Mar kov chain with two states XI, X2 E R and transition probabilities (4) where >"'12 = >..., >"'21 = f.L, (ii) X" = {X;} is a stationary Gauss -Markov process with the same covariance function as the Markov chain above. We will also assume that the noise in both models is a sequence of i.i.d. Gaussian random variables Z = {Zn} with parameters (0, (T2). According to the theorem of the previous section the information e rate l(X ; X" + Z) in the first case (where xe is a stationary Markov chain with two states) is equal to I(xe; X" + Z) - !::f.i. Ic. (lOg D + (1 0(1)), 5 -+ O. (16) 280 To calculate the information rate l(.X'; X' + Z) in the second case (where X' is a sta- tionary Gauss-Markov process) we need to find first the spectral density of this process. Denote by k(n) = E(X,; - EX,;)(Xó - EXó) the .covariance function of the stationary Markov chain with two states. It is well-known (see, e.g., [18]) that (17) where a is a constant. It is easy to check that (18) and (19) Hence, (20) and (21) It is not difficult to verify that the spectral density corresponding to this cova.riance function is equal to 2 f(w) = Ix- (w) = 1- a . k(O), (22) 1 + a2 - 2acos27rw where a and k(O) are given by (20) and (18). The inforrnation rate l(X'; X' + Z) for the case considered can then be evaluated as (see e.g. [17]) : 1/2 l(X';XE+Z)=~ J log(l+f;~)) dw, (23) -1/2 where f(w) is given by (:!2). In [16], we find the asymptotic behavior of the integral on the right-hand side of (23) as E: -+ 0 and show that E: -+ O. (24) Comparing (16) and (24), we observe that the asymptotic behavior of 1(X'; X' +Z) as E: -+ 0 is different in both models considered. 281 REFERENCES [1] I. A. Ibragimov and R. Z. Khasrninsky, "Weak signal transmission in a memoryless channel," Probl. Peredachi Inf., 8, No. 4, 28-39 (1972). [2] V. V. Prelov and E. C. van der Meulen, "An asymptotic expression for the information and capacity of a multidimensional channel with weak input signals," IEEE Trans. Inf. Theory, 39, No. 5,1728-1735 (1993). [3] M. S. Pinsker, V. V. Prelov, and S. Verd u , "Sensitivity ofchannel capacity," IEEE Trans. Inf. Theory, 41, No. 6, 1877-1888 (1995). [4] M. S. Pinsker and V. V. Prelov, "Information rates in stationary Gaussian channels in weak-signal transmission," Probl. Peredachi t-«, 30, No. 4, 3-11 (1994). [5] M. S. Pinsker, V. V. Prelov, and E. C. van der Meulen, "Information rates in certain stationary non-Gaussian channels in weak-signal transmission," Probl. Peredachi Inj., 34, No. 1, 3-17 (1998). [6] R. J. Elliot, L. Aggoun, J. B. Moore, Hidden Markou Models. Berlin: Springer (1995). [7] R. Khasminskii and O.Zeitouni, "Asymptotic filtering for finite state Markov chains," Stochastic Processes and their Appl., 63, No. 1, 1-10 (1996). [8] G. Golubev and R. Khasminskii, "Asymptotically optimal filtering for a hidden Markov model," Math, Methods of Statistics, 7, No. 2,192-209 (1998). [9] G. Golubev ,"On filtering for a hidden Markov chain under mean-square quality criterion," to appear in Probl. Peredachi Inf. [10] L M. Gelfand and A. M. Yaglom, "Calculation of the amount of information about a random function contained in another such function," Usp, Math. Neuk, 12, 3-52 (1957). [11] T. Duncan, "On the calculation of mutual information," SIAM J. Appl. Math., 19, No. 1, 215-220 (1970). [12] T. T. Kadota, M. Zakai, and J. Ziv, "Mutual information of the white Gaussian channel with and without feedback," IEEE Trans. Inf. Theory, 17, No. 4, 368-371 (1971). [13] M. Zakai and .I.Ziv, "Lower and upper bounds on the optimal filtering error of certain diffusion processes," IEEE Trans. Inform. Theory., 18, No. 3, 325-331 (1972). [14] M. S. Pinsker and V. V. Prelov, "U pper and lower bounds and asymptotics of the optimal filtering error of a stationary process with a small inforrnation rate," Probl. Peredachi Irij., 34, No. 4, 23-38 (1998). [15] M. Wonham, "Some applications of stochastic differential equations to optimal nonlinear filtering," SIAM J. Conir., 2, No. 3, 347-369 (1965). 282 [16] M. S. Pinsker, V. V. Prelov, and E. C. van der Meulen, "On the information rate in memoryless channels for a slowly varying Markov signal," to appear in Probl. Peredachi Inf. [17] M. S. Pinsker, Information and Information Stability of Random Variables and Processes. San Francisco: Holden-Day (1964). [18] J. L. Doob, Stochastic Processes. New York: J. Wiley (1953). 283 AN UPPER BOUND ON THE EXPECTED- NUMBER OF COMPUTATIONS FOR MAXIMUM LIKELIHOOD DECODING OF LOW-DENSITY CODES Vladimir B. Balakirsky Eindhoven University of Technology, Electrical Engineering Department P.O.Box 513, 5600 MB Eindhoven,The Netherlands v.b.balakirsky~ele.tue.nl, http://vvv.mathematik.uni-bielefeld.de/-vbal/ We describe a realization of the maximum likelihood decoding algorithm when the messages are encoded by a low-density code and transmitted over a binary symmetric channel. The algorithm is based on the introduetion of a tree struciure in space consisting of all possible noise vectors and principles of sequential decoding with the use of a special metric function. We prove an upper bound on the exponent of the expected number of computations in the ensemble of low-density codes and show that it is much less than the exponent for the exhaustive search. INTRODUCTION AND STATEMENT OF THE PROBLEM We consider an information transmission system wherein data are encoded by a binary, linear, block, low-density code C and transmitted over a binary symmetric channel. The code is defined by the parity-check matrix H having the dimension mN x kN, where m, k, and N are given parameters, which is constructed in such a way that, for all i = 1, ... , m, the submatrix consisting of rows (i - I)N + 1, ... , iN is obtained by some permutation of the columns of the matrix Ik,N = [IN' .. IN 1 of dimension N x kN, where IN is the identity N x N matrix [Ij. We will denote the set consisting of (kN)! permutations of indices I, ... ,kN by IhN and the matrix obtained using the permutation n E IhN of columns of the matrix Ik,N by ?fIk,N' The code rate satisfies the inequality R:2: 1 - mik + (m - 1)/(kN) that follows from the observation that the vector of length kN consisting of all l's belongs to the linear space of each submatrix of the parity check matrix consisting of the rows (i - I)N + 1, ... , iN, where i = 1, ... ,m. Suppose that y E {O, 1}kN is the vector received at the output of a binary symmetric channel. Then the vector So = yHT E {O,l}mN can be interpreted as 285 the received syndrome, and the decoder has to construct 11vector ê E {O,I}kN such that êHT = so. The vectors having this property form the set y EBC. Any element of this set is a valid estimate of the noise vector at the output of the decoder and ê* = argminêEYE!lcwt(ê) is a maximum likelihood estimate, where wt denotes the Hamming weight of a binary vector. Low-density codes were introduced by Gallager [1]. Investigation of iterative decoding procedures for these codes was continued by Zyablov and Pinsker [2] and other authors. We will present a revised version of [3] and describe a sequential decoding algorithm that allows us to construct a maximal likelihood estimate of the noise vector with lower complexity than that achievable by verification of all binary vectors having the Hamming weights 0, ... , wt(ê*). SEQUENTIAL DECODING ALGORITHM To apply the sequential decoding technique, we factorize the space {O,I}kN by introducing the following tree structure. Let the tree contain nodes associated with all binary vectors of length kN and have kN + 1 levels numbered 0, ... , k N, Since the probability of any vector being a noise vector is completely determined by its Hamming weight, we put (k;) vectors of the Hamming weight j to level i. where j = 0, ... , k N, We will deal with sequential updates of a current estimate of the noise vector ê by changing one of the bits of ê at each step. If the step is interpreted as passing through the edge of a tree, then the tree should be constructed in such a way that any two nodes are connected by the edge only if the Hamming distance between the corresponding vectors is equal to 1. However, the two guidelines above do not generate a tree and we need an additional constraint which prohibits the entering of the same node by several edges. One possibility is to use the lexicographic ordering for this purpose (see Figure 1). Definition 1: The error tree is a tree containing 2kN nodes associated with binary vectors of length k N, The edge going from the node associated with the vector e and leading to the node associated with the vector ë exists if and only if ë E [1(e), where the set [1(e) consists of all vectors e' E {O, 1yN having the following properties: wt(e') = wt(e) + 1; wt(e EBe') = 1; the last bit 1 of the vector e' is farther than the last bit 1 of the vector e. Definition 2: Let the function r(êlso) = wt(êHT EBsa) + wt(ê) (1) m 286 0011 0000 1111 Figure 1: The error tree representing the set {O, 1VN, where kN = 4. where So is the received syndrome, be the metric of the node associated with the vector' ê of the error tree. One can easily see that the definitions above and the fact that each column of the matrix H has the Hamming weight m imply the following properties of the metric function: if e' E El(e), then f(e'lso) - f(elso) E [0,2]; ij ê is a valid estimate of the noise vector at the output of the decoder, then I'( êlso) = wt(ê). Consider a curve connecting the points (wt(e), f(elso)) for the vectors e associated with the nodes belonging to some path of the error tree. If none of these vectors is a valid estimate of the noise vector at the output of the decoder, then the curve is located strictly above the line with the slope + 1. All vectors of the set y + C specify the corresponding paths in the tree and the corresponding curves. Maximum likelihood decoding is equivalent to the selection of a curve that crosses the line with the slope +1 at the point having the minimal abscissa. Suppose that the decoder knows the Hamming weight of the maximum likelihood estimate, wt.Iê"). Then the exponentially lower complexity of the decoding algorithm as compared to the exponent for the exhaustive search is possible only if based on the analysis of the metric of a node associated with a vector e that does not belong to the path leading to the node associated with the vector ê", the decoder typically can reject all paths containing this node. The properties of the metric function allows us to organize such a verification, namely our decoder rejects these paths iff(elso) > wt(ê*). However, since the value ofwt(ê*) is unknown to 287 the decoder, he uses the value of a threshold T instead, tries to find a vector ê* with f(è'lso) = wtfè") = T, and increases T by 1 if there are no vectors having this property. The formal description of the decoding algorithm is given below, where 0 denotes the all-zero vector of length kN and iz 1 stands for the minimal integer which is not less than z. [I] Initialization: - set t = 0, Eo = {O}, T = if(Olso)l [SJ Selection of the current node : - if Et = 0, then go to [B]; - select an element êt of the set Et having the minimal metric; - if f(êtlso) = t, then go to [T]; - if f(êtlso) > T, then go to [B]. [F] The F-step : - set EHI = EI(êt); - if IEHII < T - t, then go to [B]; - increase t by 1 and go to [SJ. [B] The B-step : - decrease t by 1; - if t = 0, then increase T by 1 and go to [S]; - exclude the vector êt from the set Et and go to [SJ. [T] Termination : - output = êt as the estimate of the noise vector. è The statement below directly follows from the description of the algorithm and properties of the metric function. Proposition: The [I-Tl sequential decoding algorithm outputs a maximum likelihood estimate of the noise vector. AN UPPER BOUND ON THE EXPECTED NUMBER OF COMPUTATIONS Given eo E {O,l}kN and 1r = (nI, ... , nm), let !{ e E {O,l}kN : f(eleo(7rlk,N?) < f(eoleo(7rlk,N?)}! (2) 1 L CF(eo,1r) (3) [(kN)!]m 71"1, .. ,71"mEI1kN 288 Table 1: Some values of TJR(aO) and mR(aO) ao R R 1/4 1/3 1/2 2/3 3/4 1/4 1/3 1/2 2/3 3/4 aR/2 0.50 0.42 0.33 0.27 0.21 3 3 6 9 15 aR/4 0.51 0.40 0.32 0.26 0.21 4 4 6 10 16 aR/8 0.48 0.38 0.30 0.24 0.20 4 5 8 12 19 aR/16 0.47 0.36 0.29 0.23 0.18 5 6 9 14 22 aR/32 0.45 0.35 0.27 0.22 0.17 5 6 10 15 23 where H = 7rIk,N denotes the matrix whose submatrix consisting of rows (i - I)N + 1, ... , iN is constructed as 'ifiIk,N, i = 1, ... , m. If eo is the noise vector constructed at the output of the decoder, then the algorithm terminates with T = wt(eo). Therefore, all vectors e with r(eJeoHT) < wt(eo) and some vectors with r(eJeoHT) = wt(eo) will be processed in [F]. If the computation is understood as computing the metric of the vector associated with some node of the error tree, then TkNCF(eo) is an upper bound on the number of computations. Let h(p) = -plogp-(I-p) log(l-p) and D(p JJp') = -plogp'-(l-p) log(l- p') - h(p) denote the binary entropy function and the divergence between the probability distributions (p, 1- p) and (p', 1- p'), respectively, where p, p' E (0,1) (hereafter, all logarithms are to the base 2). Furthermore, let D(O JJ p') = -log(1 - p') and let JxJ+ = x if x ~ 0 and JxJ+ = 0 if x < 0, for all x. Theorem: For all es E {O,I}kN suchthatwt(eo) = kNao andao E (0,1/2), k~IOgCF(eo)::::: o(N-1logN) (4) + arnO~~l o.'E[O,CI:'] { aoh (:J + (1 - ao)h C ~'aJ - m 1 F(k)( k(a - a'), a + a/) 1+ } where (5) for all a, s e (0,1) and Bhk) = (1 - (1 - 2(3)k)/2. Given Rand ao, let TJR(aO) denote the ratio of the function at the right-hand side of (4) and heao), where k = m/(1 - R) and the maximum is taken on all integers m = i(l- R), i = 2,3, ... Furthermore, let mR(aO) denote the parameter maximizing this function. Then TJR(aO) can be considered as the gain in the 289 exponent of the average number of computations of the decoder as compared to the exhaustive search when ao is the fraction of errors in the channel, the codes with the parameters (m, k) = (mR(aO), mR(ao)/(l - R)) are used, and the decoding is correct. Some estimates of 'T/R(aO)are given in Table 1 where aR denotes the root of the equation R = 1-h( aR) corresponding to the Varshamov- Gilbert bound on the minimal distance of a code of rate R. It will follow from the foregoing considerations that, for exponentially many low-density codes, this bound is attained, and the assumption of correct decoding when the fraction of errors is less than aR/2 can be used. AUXILIARY STATEMENTS Lemma: Given e E {O, l}kN and wE {O, ... , mN}, let HT) < } _ I{ 7Tl,'" ,7Tm E IIkN: L~l wt(e(7T;Ik,N)T) ::; w}1 Pr { wt (e _ w - [(kN)!]m lfwt(e) =dE (0,kN/2), then where F(k) is the function defined in (5) and éN(>') = (2kN)-1 log(27TkN À(l- À)) for all À E (0,1). Corollary: For all a E (0,1/2), 1 lim kN log Pr { wt( eHT) = 0, for some e with wt( e) = kN a} N->oo 1 + (1 - 2a)k < h(a)-(l-R)log 2 (7) i. e., for any é > 0, one can find ka (s), No (E) < 00 such that there are exponentially many low-density codes having the parameters k 2:: kO(é), N 2:: NO(f), and the minimal distance kN(aR - s). Proof: We will use the lower bound (k::) 2:: 2kN(h(Q)-óN(Q)), where a = d] (kN), which follows from Stirling's approximation for the factorial, and the fol- lowing statement: let d = wt(e) and av(e) = I{ 7TE IIkN: wt(e(dk,N)T) = l/}I 290 for all v = 0, ... , N. Then N) (e(kl)V(l_e(kl)N-V av ()e < inf f3 f3 (8) d!(kN - d)! - ( v f3E(O,ll ,8d(l - (8)kN-d Since Pr {wt(eHT) = O} = aQ'(e)j[ (kN)! ]m, inequality (6) for w = ° directly follows from (8). If w > 0, then we denote the number of permutations 71"1, ... ,71"m E IhN such that 2:,J=l wt(e(71"jIk,N)T) = J.l by AJ'(e), J.l = 0, ... ,mN, introduce a formal variable z < 0, and write Thus, using (8) and assigning ,8 independent of v E {O, ... , N}, we obtain 1 f='~ o a; ()2e ZV d!(kN - d)! Hence Pr wt eHT < w } -< (3E(O,I) inf . d!(kN - d)! . (1 - e1 ) + 2ze1k») N k 1 m { ( ) - [ (kN)! 2(w/m)zfJd(1 - fJ)kN-d z wj(mN) k implies z1 kl < 0. Using these observations and the definition of the divergence, we prove (6) for w > 0. Proof of (8) : Let us denote the column of the matrix Ik,N having 1 in the i-th row by 1;, where i E {I, ... , N}, and notice that wt(e(71"Ik,N r) = v if and only if there is a vector (kl,' .. , k N) satisfying the constraints N kl, ... ,kNE{O, ... ,k}; 2:k;=d; l{iE{l, ... ,N}:k;isodd}l=v (9) ;=1 291 such that kl columns 11, ... , kN columns IN of the matrix 7rIk,N are located at the positions where the vector e contains 1's. Thus av(e) d!(kN - d)! where the sum is taken on all vectors (kl, ... , kN) satisfying (9), s is a formal variable and g~~)(s) = (1 + s)kj2 - (1- s)kj2, g~~)(s) = (1 + s)kj2 + (1- s)kj2. e1 We introduce the variable ,B = sj (1 + s) and since g~~)(s) = k)j (1- ,B)k, g~~)(s) = (1 - e1 k )) j (1 - ,B)k, express the last inequality as (8). To prove (7), we use (6), the inequality (k~::a) :::::2kNh(a), and the definition of the divergence D( 0 11 e~k)). PROOF OF THE THEOREM Substituting (2) to (3) we obtain CF(eo) = L Pr {wt((e E9eo)HT) ::::: m(wt(eo) - wt(e))}. (10) eE{O,I}kN Let X""a' (eo) be the set consisting of all vectors e E {O,1}kN such that there are exactly kNO'. positionsj with (eOj,ej) = (1,0) and exactly kNO'.' positionsj with (eaj, ej) = (0,1). Then e E Xa,,,,' (eo) implies wt(e E9eo) = kN(a + 0'.'), wt(eo)- wt(e) = kN(a - 0'.'), and using (6), we obtain that the logarithm of probability at the right-hand side of (10) divided by kN is upper-bounded by -mp(k)(k(a- 0'.'),0'.+ 0'.') + mEN (0'. + 0'.') . Furthermore IXa,a' (eo) I :::::2"'oh(a!ao)+(I-ao)h(a' /(l-ao)) and there are at most (kN 0'.0 + 1)2/2 pairs (0'.,0'.') such that X""a' (eo) =1= 0. Using these observations and the inequality Pr {.} :::::1, we derive (4) from (10). REFERENCES [1] R. G. Gallager, Low-Density Parity-Check Codes. Cambridge: MIT Press, 1963. [2] V. V. Zyablov and M. S. Pinsker, "Estimating the complexity of error cor- rection by low-density Gallager codes," Probl. Inform. Transmission, vol. 11, pp. 18-28 (in Russian: vol. 11, no. 1, pp. 23-36), 1975. [3] V. B. Balakirsky, "Sequential decoding producing the maximum likelihood estimate for the low-density Gallager codes," Probl. Inform. Transmission, vol. 27, pp. 40-47 (in Russian: vol. 27, no. 1, pp. 50-60), 1991. 292