Twenty-fifth Symposium on Information Theory r in the // Benelux Kerkrade, The Netherlands June 2-4,2004 Previous symposia I. 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 1I. 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 i 14. 1993 Veldhoven, The Netherlands ISBN 90-71048-09-8 15. 1994 Louvain-Ia-Neuve, Belgium ISBN 90-71048-10-1 16. 1995 Nieuwekerk aid 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 2I. 2000 Wassenaar, The Netherlands ISBN 90-71048-15-2 22. 2001 Enschede, The Netherlands ISBN 90-365-1598-X 23. 2002 Louvain-Ia-Neuve, Belgium ISBN 90-71048-16-0 24. 2003 Veldhoven, The Netherlands ISBN 90-71048-18-7 CIP-gegevens Koninklijke Bibliotheek, Den Haag (NL) Proceedings Proceedings of the 25-th Symposium on Information Theory in the Benelux/ ed. R. Pellikaan, Eindhoven Werkgemeenschap voor Informatie- en Communicatietheorie ISBN:90-71048-20-9 Proceedings of the 25th Syrnposiurn on Information Theory in the Benelux June 2-4, 2004 Kerkrade, The Netherlands Edited by R. Pellikaan Published by: Werkgemeenschap voor Informatie- en Communicatietheorie Eindhoven, The Netherlands, 2004 The Twenty-fifth Symposium on Information Theory in the Benelux has been organized by Coding Theory and Cryptology Group Technical University of Eindhoven Eindhoven, The Netherlands on behalf of the Werkgemeenschap voor Informatie- en Communicatietheorie and the IEEE Benelux Information Theory Chapter. Program Committee: C.P.M.J. Baggen A.A.C. Kalker R. Pellikaan H.C.A. van Tilborg T.J. Tjalkens L.M.G.M. Tolhuizen B.M.M. de Weger F.M.J. Willems The organizing committee gratefully acknowledges the financial support of the Gauss foundation and the IEEE Benelux Information Theory Chapter. Source coding &. data compression • Occurence of patterns in random fields, J.-R. Chazottes, F. Redig, E. Verbitskiy*, pp. 73-80. • A comparative complexity study of fixed-ta-variable length and variable-ta-fixed length source codes, T. Tjalkens*, pp. 81-88. Cryptography &. Cryptanalysis • Covering radius of the (N - 3)-rd order Reed-Muller code in the set of resilient functions, Y. Borissov, A. Braeken, S. Nikova*, pp. 89-96. • On the security of certain DPA countermeasures, M. Ciet, F. Sica*, J.-J. Quisquater, pp. 97-103. • Information iheoreiic measures applied to power and electromagnetic traces measured from an FPGA performing an elliptic curve point multiplication, E. Dewitte*, B. De Moor, B. Preneel, pp. 105-112. • On cheating immune secret sharing, A. Braeken*, S. Nikova, V. Nikov, pp. 113-120. Shannon theory • Optimal strategies for hierarchical guessing problem, A.R. Ghazaryan*, E.C. van der Meulen, pp. 121-128. • Code constructions for multiple-access channels with side information at the encoders, P. Vanroose*, pp. 129-136. Biometrics • Two-stage face recognition incorporating individual-class discrimination criteria, F. Zuo*, P.R.N. de With, pp. 137-144. • Figures of merit for biometrie verification and a means for dimension reduction, R Veldhuis*, A. Bazen, pp. 145-152. Security • Wireless security design overview, N. Aboudagga, D. Giry*, J.-J. Quisquater, pp. 153-160. • Secrecy in mobile code, K. Cartrysse*, J.C.A. van der Lubbe, pp. 161-168. • Security aspects of DRM systems, R.L. Jonker*, S. Mauw, J.R.S. Verschuren, A.T.S.C. Schoonen, pp. 169- 176. • Cryptographic approach to patient records privacy protection in emergency situations, K. Kapis*, J.C.A. van der Lubbe, K. Cartrysse, pp. 177-184. • Security analysis of physical uncloneable functions, P. Tuyls*, B. Skoric, T. Akkermans, W. Ophey, S. Stallinga, pp. 185-192. Video compression & signal processing • On the computing analysis of arbitrary shape video coding in MPEG-4, M. Pastrnak*, P.R.N. de With, pp. 193-200. • Estimating physical camera parameters for 3DA V video coding, D. Farin*, P.R.N. de With, pp. 201-208. • Lossless and fine-granularity scalable near-lossless calor image compression, RJ. van der Vleuten*, S. Egner, pp. 209-216. • Perceptual quality impact of geometric distortion in images, I. Setyawan*, RL. Lagendijk, pp. 217-224. Preface The Werkgemeenschap voor Informatie- en Communicatietheorie is organizing for the twenty-fifth time the annual Symposium on Information Theory. This year the symposium is being held in Kerkrade, The Netherlands and has been organized by the Coding Theory and Cryptology Group of the Mathematics and Computer Science Faculty of the Technical University of Eindhoven. We are very pleased that Prof. J.L. Massey has accepted our invitation to give an invited lecture for this special fifth lustrum of the symposium. This book contains the 33 papers that have been accepted for presentation in oral sessions. We thank the programm committee consisting of Stan Baggen, Ton Kalker, Henk van Tilborg, Tjalling Tjalkens, Ludo Tolhuizen, Benne de Weger and Frans Willems for their reviews of the abstracts of submitted papers and the division in sessions. The organizing committee gratefully acknowledges the IEEE Benelux Informa- tion Theory Chapter for their sponsorship and thanks the Gauss foundation for the financial support for the best Young Researcher Presentation Award. Finally, I would like to express my thanks to Mrs. Anita Klooster for the assis- tance in the organization of this symposium. Ruud Pellikaan, editor Eindhoven, May 2004 Table of Contents Channel coding & decoding • Chase-like bounded-distance decoding with Û(d2j3) trials, J.H. Weber*, M.P.C. Fossorier, pp. 1-8. • Turbo-like soft-decision decoding of Reed-Solomon codes, G. Van Meerbergen*, M. Moonen, H. De Man, pp. 9-16. • To significantly reduce the computationalload of UMTS turbo decoding, A.P. Hekstra*, J. Dielissen, pp. 17-24. • On the selection of guided scrambling sequences that provide guaranteed maximum run-length constraints, A.J. van Wijngaarden*, K.A. Schouhamer lmmink, pp. 25-29. • Guaranteed scrambling A.P. Hekstra, L. Tolhuizen*, pp. 31-38. • On the size of a type of RLL codes, K.A. Schouhamer Immink", C. Kui, pp. 39-46 Invited lecture • The footsteps of Shannon, J.L. Massey, pp. 47. Signal det.ect ion • A simple adaptive interference cancelation method for power line reduction in electrocardiography, S.M.M. Martens*, J.W.M. Bergmans, S.G. Oei, pp. 49-56. • Fundamental limits of non-linear receivers in optical fibre systems, A. Martinez*, F.M.J. Willems, pp. 57-64. • Improved correlation receiver for frame synchronization, A. Nowbakht*, J.W.M. Bergmans, S. Van Beneden, W.M.J. Cuene, M. Ciacci, A.H.J. lmmink, J. Riani, pp. 65-72. Transmission channels • Simple Doppler compensation for D VB- T, S.A. Husen*, S. Baggen, M. Stassen, H.Y. Tsang, pp. 225-232. • Designing optimal link scaling for routing with incomplete information in packet switched networks, J. Levendovszky, A. Molnár*, P. Boros, E.C. van der Meulen, pp. 233-239. • CNN based multiuser detection and equalization in wireless communication systems, J. Levendovszky*, A. Oláh, D. Varga, E.C. van der Meulen, pp. 241-248. Recording channels • Equalizer based tilt estimation for two-dimensional optical storage, M. Ciacci*, J. Riani, J.W.M. Bergmans, A.H.J. lmmink, pp. 249-256. • Minimum loop-delay adaption and timing recovery for two-dimensional and optical storage, S. Van Beneden*, J.W.M. Bergmans, J. Rianni, M. Ciacci, A. Nowbakht, A.H.J. lmmink, pp. 257-264. Paper presented by * Author page Author page N. Aboudagga 153 A. Molnar 233 T. Akkermans 185 M. Moonen 9 0. lJaggen 225 B. De Moor 105 A. Bazen 145 V. Nikov 113 S. Van Beneden 65,257 S. Nikova 89,113 J. W.M. Bergmans 49,65,249,257 A. Nowbakht 65,257 Y. Borissov 89 S.C. Oei 49 P. Boros 233 A.Olah 241 A. Braeken 89,113 W. Ophey 185 K. Gartrysse 161,177 M. Pastrnak 193 1. - R. Ghazottes 73 B. Preneel 105 M. Giacci 65,249,257 J. - 1. Quisquater 97,153 M. Giet 97 F. Redig 73 W. Goene 65 J. Riani 65,249,257 D. Ciry 153 A.T.S.G. Schoonen 169 E. Deuntie 105 K.A. Schouhamer Jmmink 25,39 1. Dielissen 17 J. Setyawan 217 S. Egner 209 F. Sica 97 D. Farin 201 B. Skoric 185 M.P.G. Fossorier 1 M. Stassen 225 A.R. Chazaryan 121 S. Stallinga 185 A. Hekstra 17,31 T. Tjalkens 81 S.A. Husen 225 L. Tolhuizen 31 A.H.J. Jmmink 65,249,257 H.Y. Tsang 225 H.L Jonker 169 P. Tuyls 185 K. Kapis 177 P. Vanroose 129 G. Kui 39 D. Varga 241 R. L. Lagendijk 217 R. v-uu«; 14fi J.G.A. van der Lubbe 161,177 E. Verbitskiy 73 1. Levendovszky 233,241 1.H.S. Verschuren 169 H. De Man 9 R.J. van der Vleuten 209 S.M.M. Martens 49 1.H. Weber 1 A. Martinez 57 A.J. van Wijngaarden 25 1.L. Massey 47 F.M.J. Willems 57 S. Mauw 169 P.H.N. de With 137,193,201 C. Van Meerbergen 9 F. Zuo 137 E.G. van der Meulen 121,233,241 Chase-Like Bounded-Distance Decoding with O(d2j3) Trials Jos H. Weber Marc P.C. Fossorier Delft University of Technology University of Hawaii at Manoa Mekelweg 4, 2628 CD Delft 2540 Dole St., Honolulu The Netherlands HI 96822, USA E-mail: j.h.weber@ewi.tudelft.nl E-mail: marc@aravis.eng.hawaii.edu A soft-decision decoder for an error-correcting block code of Hamming distance d is said to achieve bounded-distance (BD) decoding if its error-correction radius is equal to that of a complete Euclidean distance decoder. The Chase decod- ing algorithms are reliability-based algorithms achieving BD decoding. The least complex version of the original Chase algorithms ("Chase-3'') uses O(d) trials of a conventional binary decoder. In this paper, we propose a class of Chase-like BD decoding algorithms of even lower complexity than the original Chase-3 algo- rithm. In particular, the least complex member of this class requires only O(d2/3) trials. INTRODUCTION Over the years, many soft-decision decoding techniques have been proposed for binary linear error-correcting block codes [5J. Although a maximum-likelihood (ML) decoding algorithm minimizes the decoding error probability, other sub-optimum al- gorithms are still of interest as well, due to the (prohibitively) high computational complexity of ML decoding for long codes. Of particular interest are the ones which achieve bounded-distance (BD) decoding, i.e., for which the error-correction radius is the same as for a complete Euclidean distance decoder. On certain channels, such as the additive white Gaussian noise (AWGN) channel, this property guarantees that an algorithm is asymptotically optimal, i.e., it has the same error performance as ML decoding at high signal-to-noise ratios (SNR). Various classes of sub-optimum algorithms provide an efficient trade-off between error performance and decoding complexity. One such class is formed by the Chase algorithms [3J, running a number of trials of a conventional algebraic binary decoder and thus generating a set of candidate codewords, of which the most likely one is chosen as the final decoding result. In each trial, some of the most unreliable symbols are inverted before the actual decoding starts. The inversion patterns, also called test patterns, are taken from a (fixed) test set. Although the Chase decoding approach is rather old, such decoders are still highly relevant. They are not only used as stand-alone decoders, but also as constituent components in modern techniques like iterative decoding of product codes ("block turbo codes") [7J, [IJ. 1 All three methods proposed in [3] achieve BD decoding when applied to any binary linear block code C of length n, dimension k, and Hamming distance d. The numbers of trials are (Ld/2J)' 2Ld/2J, and Ld/2J + 1, respectively. Note that for the last one, known as "Chase-S", the number of trials grows only linearly with the Hamming distance d. Limited-trial Chase-like decoding algorithms, not necessarily achieving BD decoding, are proposed in [2]. In particular, [2] provides a f(d+2)/41-trial BD decoding method. In [8], it is shown that the number of trials can be further reduced to fd/61 + 1 while preserving the BD decoding property. Hence, when considering the ratio between the number of trials and the Hamming distance d when d is approaching infinity, it follows that this ratio can be reduced from 1/2 (Chase-3) [3] to 1/4 [2] to 1/6 [8]. In this paper, we present a class of limited-trial Chase-like BD decoding algorithms which shows that this ratio can be made arbitrarily small. Most strikingly, it follows that BD decoding is possible using only O(d2/3) trials. The rest of this paper is organized as follows. First, BD decoding issues are re- viewed. Then, the Chase decoding principle is described. Next, limited-trial Chase-like algorithms and their properties are presented. Finally, the paper is concluded. BOUNDED-DISTANCE DECODING We assume the following setting. A sequence of k information bits is encoded into a codeword x = (Xl, X2, ... , xn) according to code C. Binary phase-shift keying (BPSK) modulation is used, i.e., a binary codeword x is represented by the vector X = (Xl, X2,···, Xn) through the usual componentwise mapping from {O,I} to {±1}. Let (l = (i?l, i?2,· .. , i?n) denote the received sequence in n-dimensional Euclidean space, and Y = (YI, Y2, ... , Yn) denote the binary hard-decision vector for which each Yi follows merely from the sign of i?i. We define the binary error vector by z = x + y. A complete Hamming distance (or binary) decoder generates for any y a codeword x which is closest in Hamming distance sense. The largest sphere in n-dimensional Hamming space centered at x such that all points in the sphere uniquely decode to x has radius L(d - 1)/2J. A decoder A is said to achieve bounded Hamming distance decoding if it generates the original transmitted codeword x for all error vectors z of Hamming weight at most L(d - 1)/2J. Similarly, a complete Euclidean distance decoder generates for any received (l a codeword x for which its ±l-representation X is closest in Euclidean distance sense. The largest open sphere in n-dimensional Euclidean space centered at X such that all points in the sphere uniquely decode to x has squared radius d. A decoder A is said to achieve bounded Euclidean distance decoding if it generates the original transmitted codeword x for any received (l for which the squared Euclidean distance to X is smaller than d. 2 In general, a complete channel measurement decoder generates for any received {} a codeword x minimizing the analog weight of z = y + x, defined by n w",(z) = L aizi, (1) i=l where the summation is over the real numbers, and a = (al, a2, ... , an) contains the channel measurement information, which is of the format (2) with the Wi'S being positive weight factors. When choosing Wi = 1 for all i, then minimizing the analog weight is equivalent to minimizing Euclidean distance. For certain channels, such as the AWGN channel, this is also equivalent to ML decoding. For other channels, fixing the weights Wi may not be the best thing to do. For example, for the coherent Rayleigh fading channel with channel state information (CS!), Wi should be set as the fading coefficient [3J. The term bounded-distance decoder mayalso be reserved for decoders correcting up to the error-correcting radius, but not beyond. This is particularly the case in Hamming space. In this paper, however, the term bounded-distance decoding is used for any decoder for which the squared error correction radius in Euclidean space equals the code's Hamming distance d. For a soft-decision decoding algorithm A and any ±1- vector X representing a codeword x, let rA(X) be the region in n-dimensional Euclidean space consisting of those {}for which algorithm A gives X (or x, equivalently) as the decoding result, and let rA (X) be the complementary region. Hence, the squared error-correction radius 6. of A can be formulated as n 6. = min inf L(Xi - l!i)2. (3) x OErA (x) i=l Since (4) where A* is a complete Euclidean distance decoder, and since n min inf L(Xi - I!i? = d, (5) x OErA(x)nrA*(x) i=l we define n s = min inf L(Xi -I!i?' (6) x oErA(X)nrA*(x) i=l 3 It follows from (3), (4), (5), and (6) that ~ = min{d, 8}. (7) If ~ = d, i.e., 8 ?: d, then A achieves BD decoding. In [5J, a unified method for com- puting 8 (and thus ~) for reliability-based soft-decision algorithms has been proposed. In case of an AWGN channel, {}is the sum of the transmitted sequence X and the noise sequence v = (1/1, V2, ... , I/n), where the I/;'S are independent zero-mean Gaussian random variables. On such a channel, the asymptotic loss of algorithm A compared to ML decoding is (8) Hence, any BD decoding algorithm A has an asymptotic loss of 0 dB, and is thus asymptotically optimal, i.e., (9) as the signal-to-noise ratio approaches infinity, where PML denotes the decoding error probability for an ML decoding algorithm, and PA denotes the decoding error proba- bility of the sub-optimum decoding algorithm A. CHASE DECODING A complete Euclidean distance or channel measurement decoder may be far too complex for practical implementation. The idea behind the Chase decoding approach is to use a binary decoder in a multi-trial fashion, in combination with the reliability vector ct = (al, a2, ... , an), to obtain a relatively small set of possible binary error patterns, of which one of minimum analog weight is the final decoding result. The algorithms have been designed to work with a conventional (algebraic) binary decoder, which determines the codeword which differs in the least number of places from the decoder's input sequence, provided that this number IS nót greater than lCd - 1)/2J. The set of error patterns is obtained by the following procedure. A binary test pattern t = (t1, ta, ... , tn) from a test set T of size i is added to the received vector y. The resulting vector s' = y + t is fed into the binary decoder, giving either an error pattern z' or a decoding failure. In case an error pattern has been found, the error pattern Zt = z' + t relative to y is calculated. After this has been done for all test patterns t from T, a Zt with minimum analog weight is determined and added to y to obtain the estimate for the transmitted codeword. In case alii trials result into decoding failures, the decoder output is the received vector y itself. In [3] Chase has proposed three algorithms, i.e., three test sets T. For Algorithm 1 the set T consists of all binary vectors of length n which contain exactly ld/2 Jones. For Algorithm 2 the set T consists of all binary vectors of length n which have the n - ld/2 J most reliable positions equal to zero. For Algorithm 3 the set T consists of all binary vectors of length n which contain ones in the i most unreliable positions 4 and zeros elsewhere, where i = 0,2,4, ... , d - 1 if d is odd and i = 0,1,3,5, ... , d - 1 if d is even. All three algorithms achieve BD decoding, and give essentially the same performance as ML decoding at high SNR in case of binary antipodal signaling and transmission over the AWGN or coherent Rayleigh fading channel [3]. LIMITED-TRIAL CHASE-LIKE DECODING Before presenting our decoding method, we first introduce some notations. For i = 0, 1, ... , n, let ti denote the test pattern of length n which contains ones in the i most unreliable positions and zeros elsewhere. Let aj denote the concatenation of j times the vector a, e.g., (01)302 = 01010100. For convenience, we assume without loss of generality throughout the rest of this paper that the ordering of the received symbols is such that (10) for i = 1, ... n - 1. Under this assumption, (11) for i = 0,1, ... , n. Note that using this notation, the Chase-3 test set reads (12) if d is odd, and (13) if d is even. Obviously, the original Chase-3 inversion patterns were inspired by Forney's Generalized Minimum Distance (GMD) decoding algorithm [4]. In the GMD decoding approach, which is valid for both binary and non-binary linear codes, unreliable symbols are erased in the various trials. It is most effective to choose the parity of the number of erasures in a trial complementary to the parity of the code's Hamming distance. However, [2] shows that this is not necessarily the case when using inversions instead of erasures, i.e., when applying the Chase decoding approach. For codes of even Hamming distance d, we allow a small improvement in the binary decoder, like in [6]. A binary decoder for a code of even Hamming distance d can be designed in such a way that any pattern of up to d/2 - 1 errors is corrected, while d/2 errors are corrected if one of these errors occurs in a pre-determined position, for which we choose the most unreliable. Throughout the rest of this paper we assume the binary decoder is implemented using this feature, as it allows to unify the cases d even and d odd. Now we are ready to present a new class of Chase-like BD decoding algorithms for binary linear block codes. As in the Chase-3 [3] and Arico-Weber [2] algorithms, all 5 test patterns are of the ti format. Our class uses the test set (14) where d is the Hamming distance of the code and m is any integer satisfying m 2:: 3 and m2 - m + 1 s: d. For m = 3 we obtain the test set presented in [8]. Theorem 1 For any binary linear code of length n and Hamming distance d < n, and any integer m such that m 2:: 3 and m2 - m + 1 s: d, the Chase-like decoder with test set '!d,m and reliability values set as ai = leil for all i achieves bounded-distance decoding. This result follows by applying the method for evaluating the error-correction radius of reliability-based soft-decision decoding algorithms as proposed in [5]. For a complete proof we refer to [9]. Note from (14) that IT,d,m 1-2 - + m -3m 2 2 + f - +2m d m2 m l . (15) Consequently, for any m 2:: 3, lim l'!d,ml = _1_, (16) d~oo d 2m i.e., the ratio between the number oftrials and the Hamming distance d is 1/(2m) in case d is approaching infinity. Hence this ratio, which is 1/2 for the Chase-3 algorithm [3] and 1/4 for the method presented in [2], can be made arbitrarily small while maintaining the BD decoding property. In order to find the smallest test set among the '!d,m in case d is finite, the expression from (15) should be minimized over all possible m. For example, we consider the case d = 95 in Table 1. Note that m = 4 and m = 5 give the smallest test sets. Hence, BD decoding of a code of Hamming distance 95 can be achieved by Chase-like decoding in 15 trials only. For comparison, also the considerably larger test sets from [3] (Chase-3, of size 48) and [2] (of size 25) have been included in Table 1. In general, it follows from (15) that d m2 l'!d.ml .. = -2'In + -2 + O(m). (17) Since d/(2m) + m2/2 achieves a minimum value of (18) for m = (d/2) 1/3, we have the following important result. 6 Table 1: Test sets in case d = 95. algorithm I test set I size I Proposed Class 7l'1 = 3 17 7TI. = 4 15 711=5 15 711=6 17 711= 7 20 25 711= 9 31 711= 10 38 Table 2: Overview of limited-trial Chase-like algorithms achieving BD decoding. algorithm remarks test set size of test set u«, d~ 00 Chase-S 131 d~3 {tO. td_l, td_3, td_5, . .. } ld/2 + IJ '/2 Artcoy Weber {2] d>3 {to, td_2, td_6, td_lO, . .. } [(d + 2)/41 1/4 Weber (8J d>7 {to, td, td_6, td-12,' .. } [d/6 + 11 1/6 Proposed Class m ~ 3, {to,td,td_:2, . .. , td_'l'n2+317l.' 2 + m(m - 3)/2+ d~m2-m.+l td_rn2+'m.' td_17l.2_·m'· } f(d - ",2 + m)/(2m)1 = d/(2m) + m2 /2 + Olm) 1/(2m) Corollary 1 Bounded-distance decoding can be achieved by a Chase-like decoder using O( d2/3) trials. CONCLUSION In this paper, we have presented Chase-like decoders which enable BD decoding of binary linear block codes of Hamming distance d in only O(d2/3) trials, whereas the least complex Chase(-like) algorithms known thus far require O(d) trials. For the AWGN channel and BPSK signaling, the bounded-distance decoding property guar- antees optimal error performance when the signal-to-noise ratio approaches infinity. Hence, the result is mostly of theoretical importance, as it applies to large values of d and extremely low error rates which cannot be simulated with a computer. An overview of limited-trial Chase-like algorithms achieving BD decoding is pro- vided in Table 2. The class of algorithms proposed in this paper is similar to the Chase-3 algorithm, in the sense that all test patterns are of the ti format, i.e., only 7 the i least reliable received bits are inverted. A first improvement in comparison to the Chase-S algorithm, as already proposed in [2], is to choose the parity of i equal to the parity of d, rather than complementary (with the possible exception of i = 0). Hence, the proposed test sets are subsets of Td = Uj{td±2j} U {to}. The next improvement is the deliberate removal of test patterns from Td, while preserving the BD decoding property, leading to the proposed class of test sets Td,m' The smallest member of this class has a size of O(d2j3), which shows the claimed result. An interesting research challenge is to investigate whether or not even less complex Chase-like BD decoding algorithms do exist. REFERENCES [1] C. Argon, S.W. McLaughlin, and T. Souvignier, "Iterative application of the Chase algorithm on Reed-Solomen product codes", Proceedings IEEE ICC 2001, pp. 320- 324, 2001. [2] G. Arico and J.H. Weber, "Limited-trial Chase decoding", IEEE Trans. on Inform. Theory, vol. 49, no. 11, pp. 2972-2975, November 2003. [3] D. Chase, "A class of algorithms for decoding block codes with channel measurement information", IEEE Trans. Inform. Theory, vol. 18, pp. 170-182, Jan. 1972. [4] G.D. Forney, Jr., "Generalized minimum distance decoding", IEEE Trans. Inform. Theory, vol. 12, pp. 125-131, April 1966. [5] M.P.C. Fossorier and S. Lin, "A unified method for evaluating the error-correction radius of reliability-based soft-decision algorithms for linear block codes", IEEE Trans. Inform. Theory, vol. 44, pp. 691-700, March 1998. [6] M.P.C. Fossorier and S. Lin, "Chase-type and GMD coset decodings," IEEE Trans. Commun., vol. 48, pp. 345-350, March 2000. [7] R.M. Pyndiah, "Near-optimum decoding of product codes: block turbo codes", IEEE Trans. Commun., Volume 46, pp. 1003-1010, Aug. 1998. [8] J.H. Weber, "Low-complexity Chase-like bounded-distance decoding algorithms", Proceedings IEEE Globecom, San Francisco, CA, USA, Dec. 1-5, 2003. [9] J.H. Weber and M.P.C. Fossorier, "Limited-trial Chase-like algorithms achieving bounded-distance decoding", accepted for publication in IEEE Trans. on Inform. Theory. 8 TURBO-L1KE SOFT-DECISION DECODING OF REED-SOLOMON CODES Geert Van Meerbergen *, Marc Moonen *, Hugo De Man *t * ESATjSISTA, KU.Leuven Kasteelpark Arenberg 10, 3001 Leuven, Belgium t IMEC, Kapeldreef 75, 3001 Leuven, Belgium gvanmeer,moonen@esat.kuleuven.ac.be, deman@imec.be Classical coding theory gave us the tools to construct (almost) perfect block codes for which hard decoding algorithms are developed. Recently, the focus shifted towards soft decoding. Because of the fact that soft decoding for these block codes has a large computational complexity, new types of codes arise, with Turbo and LDPC codes as the main examples. These codes have a large imperfectness when the block size is small. Therefore, their block lengths are chosen to be very large, decreasing the imperfectness. However, these large block lengths are the main concern for high throughput, low latency and low cost VLSI implementation. In this paper, we aim to bridge the gap between classical coding theory and soft decoding. Reed-Solomon (RS) codes are chosen as an example, and it is noticed that the straightforward appli- cation of Belief Propagation (Gallager's algorithm and its derivatives like BCJR's algorithm) are too complex and/or not very performant. However, by applying Belief Propagation to a special critically sampled filter bank rep- resentation for the RS codes, an algorithm is developed that shows a good tradeoff between computational complexity and soft decoding performance. Furthermore, it is demonstrated that this algorithm shows remarkable sim- ilarities with Turbo codes, thereby preserving the properties of the original RS code. INTRODUCTION In the last decade, there is an emerging trend towards soft error correcting coding offering a gain of approximately 2dB [I]. TUrbo codes and LDPC codes are well known examples, that became very popular and have been incorporated into standards for wireless communication systems, e.g. UMTS. TUrbo codes are considered to be nearly perfect, i.e. their imperfectness (distance from the Sphere Packing Bound) is less than 0.7 dB [2J. This is due, not only to the use of soft information, but mainly to the use of large block lengths. However, taking into account implementation constraints for high end con- sumer wireless devices (power, latency, throughput, cost, ...), this block length must be reduced and a number of approximations must be made. This results in an increased imperfectness. 9 •I I • • • I • I Figure 1: Block diagram, Tanner graph and tailbiting trellis for the RS(15,6,10). This was recognized by Dolinar [2] who identifies the following gap; On the one hand, there exist many famous nearly perfect codes, with a hard decoding algorithm for small block lengths (less than 100 bits), e.g. RS, BCH, .... On the other hand, for large block lengths (more than 1000 bits) Turbo codes become nearly perfect. In between, no family of codes exists that can be soft-decoded efficiently, and this is exactly the region that is interesting for VLSI implementa- tion. This triggers the question if filling the gap by reducing the block length of Turbo codes is indeed the best solution? In this paper, an attempt is made to fill this gap by combining the principles of soft decoding on the one hand, using classical nearly perfect codes on the other hand. We restrict ourselves to RS codes and we present a Turbo-like iterative soft decoding scheme, that maintains the 'perfect' properties of the overall RS code. TOWARDS A BLOCK TOEPLITZ STRUCTURE Solomon and Tilborg [3] noted that the large constraint length of RS-codes prohibits feasible decoding. To minimize this constraint length, they formulate the following theorem, followed by an example: Theorem 1 Let C be a cyclic RS code over GF(2m) of length n = ln' and dimension k = lk', Then C is quasi cyclic with constraint length K and can be generated by a block Toeplitz generator matrix with circulant blocks, with the highest powers of Z-l in Gij being zero, for j = i ..i + k' - n', and Gij = 0 otherwise. 10 Example 1 Throughout this paper, we will use the example of a non-systematic RS(15, 6,10) code to illustrate our techniques. This code in G F(24) 1 is generated by g(Z-l) = I1~=o(Z-l - o:k), corresponding to a 15 x 6 Toeplitz generator matrix G. Applying this theorem (l = 3, k' = 2, n' = 5) in our example yields a generator matrix GIL that is block Toeplitz with 3 x 3 circulant blocks GO.3, as shown in Figure 2. 0 Note that the superscript IL is used to denote that the codewords generated by GIL are interleaved compared to the ones generated by the Toeplitz matrix G. Just as a Toeplitz matrix can be represented by a trellis, a matrix that is block Toeplitz with circulant blocks can be represented by a tailbiting trellis [5]. In Figure 1, the block diagram and trellis are shown. The Tanner graph has only 1 cycle, which yields that Gallager's algorithm always converges, albeit not to the MAP solution. Regarding the feasibility of this solution, it is quickly noted that 164 trellis states is too large for proper decoding. This result however proofs to be usefull in the next section. FILTER BANKS In our paper [4], a filterbank structure is recognized in the block Toeplitz generator matrix. This filter bank is able to break the two delay lines in the previous example (Figure 1) apart by means of a matrix decomposition, thereby reducing the number of states drastically. Finally, we end up with a RS code that is feasible to decode. A detailed discussion of filterbanks however is beyond the scope of this paper. Therefore, the link with filterbanks is clarified using our example. Example 2 The filterbank that implements the multiplication with GIL is shown in Figure 3. In the following, it is explained that this block Toeplitz generator matrix GIL can be decomposed in the product CVA, and how this decomposition is related with the filterbank. The decomposition can be found in Figure 2. The block diagonal matrix A represents the analysis bank. Herein, F is the 3 x 3 DFT- matrix in the GF, closely related to the Mattson-Solomon polynomial. With f3 4), an element of the 5-th order in the GF(2 Fm,n equals f3mn. Structured like that, A will perform a filtering in each band (cfr. the Toeplitz matrices Al in band I), followed by a downsampling with a factor 3. When a dataword u of length k = 6 is fed in the filterbank (padded with 9 zeros), it will be chopped in 1Decimal notation is used to represent elements of a Galois Field 11 c V A ~----~----~~ ~ Band 1: -- Figure 2: Matrix decomposition of the filterbank representation of RS(15, 6,10). - - """ .,., flî!W .,., om <,' mm - mm _ ce 0/> Figure 3: Block diagram of the filterbank representation of RS(15, 6, 10). blocks of length l = 3 and then the DFT is taken, resulting in a vector of k = 6 subband samples x (k' in each band). The matrix V represents the subband filters. Again, the subband filters L:;~o Dj(i, i)z-j can be seen in Vas separate Toeplitz matrices. The actual encoding with rate kin = k' In' takes place here, resulting in n = 15 subband samples z. Finally, the synthesis bank consists of filters whose coefficients correspond to the columns of the inverse DFT matrix F-1. The decomposition of Go is given below: ~~~~l~l ~l[~~l [~~ 11 12 11 '--v--' Go = [~ ~ 167 '----v--' F-l 2 [10 ~ 0 06 '-v---' Do=diag(FGo("O)) 176 '----v--' F (1) o In general, a filterbank decomposition as in the previous example will always exist, as long as nand k are not coprime. For further details as well as a general description, we refer to [4]. APPLICATION OF BELIEF PROPAGATION (GALLAGER'S ALGORITHM) From an encoding point of view, the subband samples x and z are added and the encoding takes place in 3 steps, corresponding to the 3 computational steps 12 Figure 4: Tanner graph of the filterbank. In the upper left corner, the 6 input variables u can be found, that are connected with parity checks implementing a DFT. The resulting variables x are related to z using 15 parity checks, each for one z, implementing z = xC. Finally, the DFT relation between x and the codeword y is implemented. in the preceding section. This can be reformulated in a (2n+k) x (2n+2k) parity check relation as follows: I)Au = x 2)Vx =z (2) 3)Cz = y Hext From the decoding point of view, it is now possible to build a Tanner graph for the RS code which is feasible to implement (Figure 4). Applying Gallager's algorithm to this Tanner Graph filled with cycles results in reduced decoding performance. However, due to the filterbank structure of Hext, a number of component codes can be identified that improve convergence by removing many cycles. This is explained in the next section. It is important to note that the specific structure in the decomposition is crucial, hence not any decomposition will do. IDENTIFYING COMPONENT CODES AND RESULTS In this section, a distinction will be made between 2 categories of cycles. The first category consists of cycles that can easily be removed without raising the complexity too much. Three types of cycles are indicated in Figure 4. Cycles of type 1 are cycles formed between analysis and synthesis bank and can be easily removed by skipping the analysis bank since this is a reversible precoding step that does not change the codewords. Cycles of type 2 are cycles formed between subband samples. The n' parity checks that constitute one of the l subband filters 13 Figure 5: The codeword y is stored in the 15 outer variable nodes. Going through 5 (horizontal) tailbiting trellises, running BCJR 's algorithm, the 15 subband vari- ables z are obtained. Finally, using BCJR 's algorithm in the (vertical) trellises and skipping the analysis bank, the data word u = x is obtained. can be collapsed into 1 parity check, corresponding to a convolutional subcode (the subband filter) that can be easily decoded using BCJR's algorithm. Finally, cycles of type 3 are formed by taking a DFT. Without going into details, the DFT-code can be decomposed by a chirp algorithm. In a similar manner as we decomposed the RS code, this results in a tailbiting trellis. After removing the cycles of category 1, the final Tanner Graph is shown in Figure 5. The cycles (of category 2) that are still present cannot be removed without a dramatic increase in complexity. They link the subband codes together in a complex way, resulting in a larger RS code. Finally, the application of Gallager's algorithm results in the flow graph in Figure 6. A probability vector holding the 15 probabilities of z is passed around. First, it picks up extrinsic information about y through the DFT-codes. Ev- ery DFT-code works on a separate part of z (indicated with the subscripts) and therefore the whole vector is found by multiplying all outputs of the DFT-codes. Then, the extrinsic probabilities are fed into the subband BCJR decoders, result- ing in a posteriori information about the dataword y and extrinsic information about z that is thcn fed back into the DFTs. In this context, it is important to note the equivalence with Turbo codes. Turbo codes are concatenated convolutional codes running BCJR's algorithm. The component codes are connected by means of an interleaver with the data word u, and Gallager's algorithm is running the interconnect [61. The proposed 14 P:~ 0 ct Pt..., x ,-- "tjDFTh t. ;Y1" 'f' II T p.~r • ~ 15 -:lDFTI, " JBgjfg_12l~ ~ fT 3.4 f p.~r -o, 15 wB~f.f1.!21t r- x 15 WDFT~6.78 I1 . t P3' X _15 ::jD~IO.1~ t p~~r 15 15 ~B~ifi,~'5 IS ISTD~13.14 'T p.~ .. Figure 6: Block diagram of the soft RS decoder based on the filterbank decom- position Figure 7: Simulation results for RS(15,6,10) decoding scheme for RS codes is very similar. The subbands consist of convolu- tional codes running BCJR 's algorithm. These component codes are connected by means of a DFT, as opposed to an interleaver, with the code word y. However, we showed that the overall code has the perfect properties of a RS code! In Figure 7, simulation results of the RS(15,6,10) code, which was taken as an example throughout this paper, are presented. The evolution of the symbol error rate after each iteration of Gallager's algorithm is shown by the full lines. In total, 15 iterations are shown. For a symbol error rate of 10-\ and lower, soft decoding using Gallager's algorithm on the filterbank decomposition provides a coding gain of approximately 1.5dB compared to a conventional hard decision decoding algorithm, namely the Berlekamp-Massey algorithm, Remark also that Gallager's algorithm rapidly converges after a few iterations. 15 CONCLUSION In this paper, it is shown how the previously developed critically subsampled filterbank structure of a RS code [4] is used to build an extended Tanner Graph implementing a soft RS decoder. By introducing the subband auxiliary variables, and removing unnecessary cycles, a Tanner graph representation of the RS code is obtained which shows a good tradeoff between feasibility and performance. Applying Belief Propagation to this Tanner graph results in a block diagram of a soft-in soft-out RS decoder. This structure shows remarkable similarities with the Turbo code structure, however the overall perfectness properties of the RS code are maintained. ACKNOWLEDGMENTS Geert Van Meerbergen is a Research Assistant with the F.W.O. Vlaanderen. This research work was carried out at the ESAT laboratory of the Katholieke Universiteit Leuven, in the frame of the Interuniversity Poles of Attraction Pro- gramme P5/22 and P5/11, the Concerted Research Action GOA-MEFISTO-666, Research Project FWO nr.G.0196.02. The scientific responsibility is assumed by its authors. REFERENCES [1] J. Hagenauer, "Soft is better than hard." Communications, coding and cryp- tology.Eds.: D. Blahut etal. Leiden: Kluuier. pp. 155-171, May 1994. [2] S. Dolinar, D. Divsalar and F. Pollara, "Code performance as a function of block size," The Telecommunications and Mission Operatiens Progress Report PR 42-133, vol. January-March 1998, pp. 1-23, May 1998. [3] G. Solomon and H. C. A. van Tilborg, "A connection between block and convolutional codes," SIAM 1. Appl. Math, vol. 37, no. 2, pp. 358-369, Oct. 1979. [4] G. Van Meerbergen, M. Moonen, H. De Man, "Critically subsampled filter- banks implementing Reed-Solomon codes," accepted at ICASSP 2004. [5] J.B. Anderson and S.M. Hladik, "Tailbiting MAP decoders," Selected Areas in Communications, IEEE Journalon, vol. 16, no. 2, pp. 297 -302, Feb. 1998. [6] R.J. McEliece, D.J.C. MacKay and Jung-Fu Cheng, "Turbo decoding as an instance of Pearl's Belief Propagation algorithm," Selected Areas in Commu- nications, IEEE Journai on, vol. 16, no. 2, pp. 140 -152, Feb. 1998. 16 TO SIGNIFICANTLY REDUCE THE COMPUTATIONAL LOAD OF UMTS TURBO DECODING Andries P. Hekstra, John Dielissen Philips Research Prof. Holstlaan 4, 5600 AA Eindhoven, NL The decoding of Turbo encoded signals ("Turbo decoding") is a computa- tionally very intensive process. In 1998, Prey and Kschischang published a method called "early detection," in which bits in the trellis or segments of the trellis that have become certain, are no longer processed. Also known are a few varieties of window based Soft Input Soft Output (SISO) modules for use in Turbo decoders. The motivation for using windows, then, is to reduce the memory requirement and possibly to reduce decoding latency. We found that combining the above two ideas, viz. early detection with window based SISO modules, into a per-sliding-window stopping rule, we could re- duce the power consumption of a Turbo decoder significantly more than by competing methods that use per-codeword stopping rules. In general, the obtained reduction depends on the signal to noise ratio. Introduction Thrbo codes are powerful error correcting block codes that are included in the UMTS standard. The amount of signal processing required for UMTS signal re- ception by far exceeds that for GSM and is a drain to the battery of an UMTS handset. A well-known way to limit the computationalload and hence the current consumption of the iterative Thrbo decoding process is to use stopping criteria to reduce the average number of iterations [1]. These known stopping criteria apply to an entire block of data in the Turbo decoder, which we call global stopping criteria. In 1998, Frey and Kschischang [2] published a method called "early de- tection," in which bits in the trellis or segments of the trellis that have become certain, are no longer processed. This method has the potential advantage of fur- ther reducing the computational load of Turbo decoding, which can save battery current, or reduce decoding latency. However, we estimate that the processing overhead needed to reorganize the trellis (shorten it by individual bits) may be acceptable in a software implementation as stated in [2] but we estimate it to be prohibitive in an ASIe implementation. Also known are a few varieties of window based Soft Input Soft Output (SISO) modules for use in Turbo decoders [3], [4]. The motivation for using windows, then, is to reduce the memory requirement and possibly to reduce decoding latency. Our contribution is to combine these two methods. 17 Frey and Kschischang's Early Detection in LDPC and Turbo decoders An often used soft-decision representation in TUrbo decoders is log likelihood ratios. The sign of a log likelihood ratio indicates the corresponding hard-decision value. The absolute value of a log likelihood ratio is indicative of the reliability of the estimation. During the iterations of a TUrbo decoder, typically the log likelihood ratios increase in absolute value, with some random fluctuations and sometimes a change of sign. In a practical implementation, the dynamic range of the log likelihood ratios must be limited to some finite fixed point or integer range. Clipping of intermediate results is used to keep the variables inside this range. Empirically, once the log likelihood ratio variable of a certain message bit has been clipped, it will mostly stay stuck at this level during all future iterations. Effectively, this means that the bit has become non-random, or deterministic. In [2] such per-bit detection prior to the final iteration is called" early detection." SISO Trellis Algorithms Using Window-Based Processing to Reduce Memory Consumption and Decoding Latency In (Max)(Log)MAP SISO modules, in principle a trellis with a length equal to the number of message bits in a message block must be processed both in the forward and in the backward trellis direction. Path metrics are computed for each direction of trellis processing. The output log likelihood ratios (a posteriori, or extrinsic) are a function of the path metrics in both. trellis direciions. This requires the storage of the path metrics in at least one trellis direction, usually called the backward trellis direction. In UMTS the trellis has 8 states in each trellis subsection, and the trellis can have a length of 5114 message bits (thus, 5114 trellis subsections). To store path metrics for all states for all subsections on a chip would cost a prohibitive amount of memory. This is one reason why window techniques are introduced in (Max) (Log)MAP SISO modules. They work out such that - 3.<; a minimum - only the path metrics for the backward trellis direction for one window length need to be stored. This window length ean be a small fraction of the entire message block length, realizing large memory savings. COMBINATION INTO EARLY DETECTION PER SISO WINDOW Main Idea - High SNR Our new idea is to apply early-detection such that only entire sliding windows may be early-detected. This means that the window based SISO processor can skip entire windows. In an implementation this is especially simple to realize. Then, each sliding window in a SISO decoder has an activity flag. Initially, all sliding windows are active. When all a posteriori log likelihood ratios have reached the absolute clipping level (all message bits in the window have reached 18 a certain degree of certitude), the flag of that window is set to inactive, and the window is skipped during future iterations of decoding the given message block. Normally, in a Turbo decoder the extrinsic log likelihood ratios are stored. That is, the decision to freeze or not is taken on the basis of the window of a posteriori log likelihood ratios. In case of a freeze decision, the extrinsic log likelihood ratios are frozen. That is, the output extrinsic log likelihood ratios of the last time these windows were active and were SISO-procesed are stored and used over and over again. They are kept "as is" (i.e. not updated) in the pertaining memory. Minor Idea - Low SNR The stopping rule described in the previous paragraph reduces the workload, the more the higher the Eb / No. An easy variation of the above stopping rule, can also limit the workload, when the Eb / No is so low that successful decoding is (almost) impossible. At low SNR, one can check whether after a minimum number of iterations (e.g. 3 or 3.5) there is at least one window that has been stopped, i.e. all a posteriori log likelihood ratios in that window (permuted or in direct order) have been clipped. Then, if no window has been stopped, the decoding procedure is aborted. Combination - Unknown SNR Combination of the methods suggested in the previous two subsections means that for each active window it is monitored whether is should be stopped as all absolute values of all a posteriori LLR's exceed a given threshold. As windows become inactive, there are immediate advantages to the computational load. When we reach a given pre-determined iteration index (3 or 3.5), we check whether at least one window is inactive. If not, the entire decoding is aborted. This way, the combination of the High SNR and Low SNR rules does not involve any switching between these two rules. These rules are simply applied jointly. SIMULATION RESULTS In a Turbo MaxLogMAP decoder we post-multiplied the output extrinsic in- formation vectors with a fudge factor of 5/8. It is well-known that such fudge factors improve the FER and BER performance. In addition, they reduce the re- quired numerical range. When stopping rules are used, they also suppress possible error floors at the higher Eb/No values, and prevent that the numerical range would have to be increased with the Eb/No for acceptable error rate performance, etc. Binary Phase Shift Keying (BPSK) was assumed as modulation scheme. We used a window size (distance in between stakes plus one) equal to 40. We simu- lated the following situations for UMTS Turbo decoding, with the maximum block 19 length i.e. 1296 bits and a block length of 5114 bits, both with MaxLogMAP de- coding, with a maximum of 8 iterations: • No stopping rule. • The hard-decision assisted (HDA) stopping rule of [5]. Then, the iterations are stopped when the hard-decisions bits are the same as one iteration earlier. • Classical, cross entropy stopping rule [1]; this is a global stopping rule. • The DHDD cancellation technique of [6], which stops the decoding pro- cess, when, at low SNR, the" change in the number of bit flips in between iterations" does not change much anymore. • A per-window i.e. local stopping rule. The numerical range of the log likelihood ratios was the same for all cases. The following figures give the Bit Error Rate (BER) and the Frame Error Rate (FER) for a block length of 5114 bits. Due to space limitations we do not show the figures for the DHDD technique (and a number of other global stopping techniques from litcrature, that all proved inferior in performance to our new method). Also presented are the average effective number of iterations. As stated before, the word "effective" here means, in the case of per-window stopping, that we count in the fraction of windows that is still active. We discuss these results in the next subsection. CONCLUSIONS Using MaxLogMAP component decoders, e.g. the global (i.e. per-codeword) stopping criterion based on cross entropy [1], for the maximum block length of 5114, the average effective number of iterations can be reduced from e.g. at 1.0 dB Eb/No from 8 to ca. 5.3. When we use our per-window stopping criterion, the average effective number of iterations can be reduced to ca. 3.5, which constitutes a savings of around 35 percent". In general, the savings in the computationalload with respect to the situation without stopping rule are larger for larger signal to noise ratios on the channel, which is a logical fact. 1By reusing memory space no longer needed for backward stakes for the stakes for forward trellis processing, per-window stopping criteria need not increase the memory requirement of the chip. 20 REFERENCES [1] J. Hagenauer, E. Offer, L. Papke, "Iterative Decoding of Binary Block and Convolutional Codes ," IEEE Trans. on Information Theory, Vol. 42 Nr. 2, pp. 429-445, March 1996. [2] B. Frey, F. Kschischang, "Early Detection and Trellis Splicing: Reduced Complexity Iterative Decoding," IEEE Journalon Selected Areas in Com- munications, Vol. 16, No. 2, pp. 153-159, Febr. 1998. [3] S. Halter, M. Oeberg, P. Chau, P. Siegel, "Reconfigurable Signal Proces- sor for Channel Coding and Decoding in Low Eb/No Wireless Communica- tions," IEEE Workshop on Signal Processing Systems, 1998, pp. 260 -274, 8-10 Oct 1998. [4] R. Akella, J. Wolf, "On the Parallel MAP Algorithm," 2001 IEEE Fourth Workshop on Multimedia Signal Processing, pp. 371 -376, 2001. [5] R. Shao, S. Lin, M. Fossorier, "Two Simple Stopping Criteria for Turbo Decoding," IEEE Trans. on Communications, Vol. COM-47, No. 8, Aug. 1999. [6] I. Al-Mohandes, M. Elmasry, "Iteration reduction of turbo decoders using an efficient stopping/cancellation technique," IEEE International Symposium on Circuits and Systems, ISCAS 2002, Volume: 1, pp. 1-609 -1-612 voLl, 2002. 21 0.1r----~---.-... --.-+--------....-.c-.O'1l:k~++ ~-f-----+---+--\\"\~r.- -----------t- r•• :-.-: --.:- ••••• ••~~-~--:~:- 0.01 00:: -\~-,·-,----~.-:ISx-~]~:--- 1.005 .---+--.----+----.-.-. \ I -1----·---+-- ._-+ _ I I'j,··············· BER '-+- FER ;-*-. le-006 '-'-~;_;_--'----'-----'-----'----' -2 -1 EblNO [dB) Figure 1: BER and FER as a function of Eb/No. No stopping rule. Eight iterations. 0.1 . "iD a: 0.01 0.001 ~ 0.0001 1e-005 la-006 -2 -, 0 Eb/NO [dB) Figure 2: BER and FER as a function of Eb/No. Stop when no flips (Hard- decision assisted). 10,--.---.---,!.---.---,--, ! 'TER:-+- -2 -1 o EbJNO [dB) Figure 3: Average effective number of iterations as a function of Eb / N o. Stop when no flips (Hard-decision assisted). 22 0.1 0.01 O.C)()1 0.0001 1e-005 1e-006 -2 -1 0 EblNO(dB] Figure 4: BER and FER as a function of Eb/No. Cross entropy stopping rule. 10r--,------,------,------r-----,-~ ! B I I i +-t--i-+-+-+-+-+-+-I-+"""' t-···········-···· j -..-1 I --J------.-J 6 I .. -...-__.I-~'\+----.... -._+ ---, +----: ---+-- """,.._,___ î ! ! \ ~ 4 .- j .----. ~>t - I 1 I ' ! I I -.-- ----j··------t ' [-----1---· ! ITER'__ iI ! iI I -2 -1 o EblNO (dB] Figure 5: Average effective number of iterations as a function of Eb/No. Cross entropy stopping rule. 0.1 0.01 ~ 0.001 g w 0.0001 1e~05 -2 -1 o EblNO [dB] Figure 6: BER and FER as a function of Eb/No. Per-window stopping rule for high SNR. 23 10 I I \ \ , ITER-+- I ·2 ·1 o Eb/NO [dB] Figure 7: Average effective number of iterations as a function of Eb/No. Per- window stopping rule for high SNR. \ I -+-., 0.1 '\\ \\ 0.01 ~ m a: \ r-, e w 0.001 0.0001 1.;.-005 \ BER~ FER 19-006 ·1 0 EblNO [dB] Figure 8: BER and FER as a function of Eb/No. Per-window stopping rule for Low SNR. 10 __r ) ITER:-+- ·2 ·1 o EblNO [dB] Figure 9: Average effective number of iterations as a function of Eb/No. Per- window stopping rule for Low SNR. 24 ON THE SELECTION OF GUIDED SCRAMBLING SEQUENCES THAT PROVIDE GUARANTEED MAXIMUM RUN-LENGTH CONSTRAINTS Adriaan J. van Wijngaarden and Kees A. Schouhamer Immink Abstract - Guided scrambling is a coding technique that generates for each possible source word a fixed set of candidate codewords and subsequently selects the "best" word subject to given channel constraints. The resulting codes are often referred to as "weak" constraint codes because they do not strictls) guarantee that the specified constraints will be fulfilled. In this pa- per, it will be shown that for the important class of maximum run-length constraints a proper selection of the set of guided scrambling sequences can actually guarantee that the code satisfies "strong" constraints. Sequence set selections and code constructions that result in "strong" maximum run- length constraints wilt be presented. INTRODUCTION Guided scrambling generates for each possible source word a unique set of can- didate codewords and selects the "best" word subject to certain given channel constraints [1,2,4]. This technique has proven to be very effective to generate codewords that satisfy single or multiple channel constraints with high probabil- ity. The probability that none of the candidate codewords fulfills the constraints reduces considerably when the set of candidate sequences is increased. The cor- responding codes are therefore often referred to as weak constrained codes if they do not strictly guarantee that the specified constraints are not violated. The guided scrambling technique is particularly suited for the construction of weakly constrained high-rate codes, where a relatively small set of candidate sequences Adriaan J. (de Lind) van Wijngaarden is with Bell Laboratories, Lucent Technologies, MH 2C-360, 600 Mountain Ave, Murray Hill, NJ, U.S.A. E-mail: alw@research.bell-labs.com. Kees A. Schouhamer Immink is with the Institute for Experimental Mathematics, University of Essen, Ellernstr. 29, 45326 Essen, Germany and with Turing Machines Inc., Willemskade 15b-d, 3016 DK Rotterdam, The Netherlands. E-mail: immink@exp-math.uni-essen.de. 25 is very likely to contain a sequence that satisfies the constraints. Typical con- straints are maximum run-length constraints and spectral constraints, e.g., to suppress low frequencies. Constrained codes, such as run-length limited codes and DC-free codes, have found widespread application in data storage and com- munication systems, see [2J and references therein. Runlength-limited sequences, also known as (d, k) sequences, are binary sequences with at least d and at most k 'zeros' between consecutive 'ones'. Of particular interest is the subclass of (0, k) sequences, used extensively in recording and digital communication systems for clock recovery and synchronization. These sequences are generally constructed by concatenating words of a binary block code of length n, each fulfilling (0, k, kl, kT) constraints, where kl and kT denote the maximum number of leading and trailing zeros (kl + k; ::; k). These codes are referred to as maximum run-length limited (MRL) codes. In this article, we are interested in the question how weak the constraints are, and whether it is possible to choose the scrambling sequences in such a way that one can actually impose strong constraints. We concentrate on finding strong maximum run-length constraints, This paper is organized as follows. We first introduce the notation that is used throughout this article and further specify maximum runlength-limited sequences. Next, we analyze the guided scrambling technique and assess the "strong" constraints that can be imposed on the maximum run-length with a proper choice of the set of scrambling sequences. DEFINITIONS To describe the properties of the code construction techniques and for error as- sessment we need to introduce some notation. Let A~ denote the set of sequences of w symbols from the binary alphabet A2. A sequence X E A~ is represented as a string of symbols X1X2 ... Xw of length w. The concatenation of two sequences X and Y is denoted by XY, and PS(w) = {PX[X E Sew)} denotes a set of se- quences of length p+w with prefix P E A~ and suffix X E S(w), where Sew) ç; A~. Similarly, S(w)p = {XP[X E Sew)}. The null string, denoted by A, represents a string of length ° for which A X = X A = X. A run of w consecutive symbols a is written as a", We use * and (*)W to denote any element of A2 and A~, respectively. 26 Maximum Run-Length Constrained Sequences n Let gk ,2 I, k r denote the set ofbinary sequences oflength n that fulfill the (0, k, kl, kr) constraint. This set can be written as kl gCn) k,k"kr _ - U OSlgCn-s- 1) k,k,kr· (1) 8=0 The disjoint subsets gk~:kr are determined using recursion relations. For 0 :::; m _< k Tl rCm) < k , rCm) '::Ik,k,kr = Am2, an d for k r < m _ Ckr+1)IP E Am-kr-l} '::Ik,k,kr = {pr'::Ik,k,k r 2 . For k < m < n, gk~:kr satisfies the recursion relation (2) It follows that the cardinality of this set, denoted by G~~,kr' is determined by two equations: 2m if 0 < m < kr GCm) k,k,kr = 2m-kr-I(2kr+1_1) if kr < m _< k { dm-I) k,k,kr + ... + d m-k-I) k,k,kr if m ~ k + l. and kl GCm) _" GCm-8-1) (3) k,kl,kr - ~ k,k,kr . 8=0 The set of (0, k) constrained sequences of length m, where kl = k; = k, is denoted k = gCm) by gCm) k,k,k , and its size by dm) k = dm) k,k,k . GUIDED SCRAMBLING SEQUENCE SETS Let Q~n) denote the set of T guided scrambling sequences of length n. For a given codeword X E A~, the set of candidate codewords is given by {X + SIS E Q~n)} of size T. The initial distribution of the maximum k constraint for the set of source words can be determined exactly. Let Kq(A~) denote the number of sequences for which the maximum run-length equals q. It follows directly that Kq(A~) is given 27 by K~n)(A~) = G~n) - G~~l' for q ~ 1, and K~n)(A~) = 1. The probability that a random word of length n has run-length q is consequently give by Kq(A~)/2n. Note that we consider isolated constrained sequences here, where kl = k; = k. Expressions for (0, k, kl, kr) codes can be derived in a similar fashion. As an example, for sequences of length n = 16, the vector K(n)(A~) (K~n), ... ,K~n)) is given by K(16) (A16) 2 -_ ( 1,2583,16929,20135,13008,6792,3277,1531, 704,320,144,64,28,12,5,2,1 ). Consider the situation where a set of 2r scrambling sequences of length nare used. It can be shown that a lower bound on kmru<. is given by (4) An upper bound on kmax for an arbitrary set Q~n) is k - r. We will present several constructions where a careful choice of the set of scrambling sequences reduces the value of kmru<. to n/(r + 1) or lower. It can be shown that if Q~n) contains an arbitrary scrambling sequence A E A~ and its complement, the distribution will be identical to the case where Q~n) = {on, In}. More generally, it can be shown that for any set Q$n), one can add an arbitrary sequence A E A~ to every sequence in Q~n) to obtain a new set {S + AIS E Q~n)} with an identical maximum run-length distribution. For example, if r = 2 and Q~n) = {on, In}, the distribution is, for n = 16, as follows; K(16) (A16 2, Q(16)) 2 = (2,5164,30666,22246,6096,1154,182,24,2,0,0,0,0,0,0,0,0 - . ), i.e., kmru<. = 8. Notice that for the above example the codewords do not contain an indica- tor to identify which scrambling sequence was used. Without this information, the mapping is not unique. One option is to send this information, r bits, sep- arately, and, in the case when information is affected by noise, to protect this information well to avoid error propagation. Otherwise a single bit error may cause error propagation that affects up to ti bits due to the substraction of the wrong scrambling sequence at the receiver. 28 The sequence index can also be embedded in the codeword in several ways. The first step is to augment the source word X E A~ by r positions with indices per) = {Pl, P2, ... ,Pr} to obtain an intermediate word XI of length n. These positions are preferably interspersed with the source word. It is easy to see that these positions remain unaffected by guided scrambling with a set Q~n), where at each position Pi E per) of every element of Q~n), the value is fixed to a constant value Vi that is known to the decoder. If Vl = V2 = ... = o; = 0, the positions per) are called unconstrained positions. Note that unconstraint positions can also be of use to make a code resilient against errors. Effective error control can be provided using techniques described in [3] and references therein. CONCLUSIONS Guided scrambling is an effective technique to generate long and highly effi- cient codes that satisfy given channel constraints with high probability. We have demonstrated that by carefully selecting the set of guided scrambling sequences one can impose "strong" constraints on the maximum run-length. Although the constraints are generally loose for large values of n, they may in many cases be sufficient to avoid problems with clock recovery. REFERENCES [1] I.J. Fair, W.D. Grover, W.A. Krzymien and R.I. MacDonald, "Guided scram- bling: a new line coding technique for high bit rate fiber optic transmission systems," IEEE Trans. Commun., vol. 39, no. 2, pp. 289~297, Feb. 1991. [2] K.A.S.lmmink, Codes for Mass Data Storage Systems, Shannon Foundation Publishers, Geldrop, The Netherlands, 1999. [3] A.J. van Wijngaarden and K.A.S. lmmink, "Maximum run-length limited codes with error control capabilities," IEEE Journal on Selected Areas in Communications, vol. 19, no. 4, pp. 602~611, Apr. 2001. [4] B. Vasic, G. Djordjevic and M. Tosic, "Loose composite constraint codes and their application in DVD," IEEE Journal on Selected Areas in Communica- tions, vol. 19, no. 4, pp. 765~773, Apr. 2001. [5] A.J. van Wijngaarden and E. Soljanin, "A combinatorial technique for con- structing high-rate MTR-RLL codes", IEEE Journal on Selected Areas in Communications, vol. 19, no. 4, pp. 582~588, Apr. 2001. 29 GUARANTEED SCRAMBLING Andries P. Hekstra, Ludo M.G.M. Tolhuizen Philips Research, Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands' The bit error rate (EER) of a channel may be data dependent. This leads to certain pathological input sequences, for which the reliability of the system can be well below specifications. Guided scrambling is a well-known technique to randomize the input to a storage system while minimizing a certain objective function. In this article we take the average bit error rate as objective function. We show that for a scrambling code C satisfying some regularity constraints the following holds. For any input sequence, there exists a scrambling codeword c E C such that the predicted bit error rate of the (modulo 2) sum of this input sequence and c is not more than that for random input data. Examples of scrambling codes for 2D optical storage are provided, and a manner of combining them with error-correcting codes is indicated. BACKGROUND: 2D OPTICAL STORAGE Although our results apply more generally, they were obtained in the context of 2-dimensional (2D) optical storage. In this section, we give some background information on 2D optical storage that is relevant for the present paper. The aim of 2D optical storage is to increase the storage density for a given physical read-out system (wavelength, numerical aperture). One ingredient of the envisioned 2D optical storage system is to use a two dimensional (2D) hexagonal lattice for the bit cells on the optical media. Thus, each bit has six nearest neighbors. Coene [1] presents a channel model for 2D optical storage. In a first approximation, the channel output is a function of the bit x, at which the spot is centered and Zi, the sum of its six nearest neighbor bits. The two-dimensional index i indicates the position of the bit. Figure 1 shows the approximation of the channel output as a function of the cluster IOxi + Zi' As noise model, we can e.g. assume additive white Gaussian noise (AWGN), where the noise is data- independent. The scrambling concept of our paper, however, also applies for more specific noise sources like media-noise that may be data-dependent. In this application, it turns out that bits for which the six neighboring bits are "all ones" are bit-detected with a larger probability of error than the other bits, e.g. when the six neighboring bits are" all zeroes." This fact can be heuristically • e-mail: {andries.hekstra.ludo.tolhuizen}@philips.com. This research was carried out as a part of the European 1ST-Project "TwoDOS" (Proj. nr. IST-2001-34168) 31 Figure 1: Nearest neighbor model of the 2D optical storage scalar diffraction channel model of Coene [1J for a hexagonallattice parameter with certain physical parameters. explained hy the fact that the (square of) the vertical distance between the z-th and 10 + z-th point, z = 0, 1, ... ,6 on the curve in Figure 1 is minimal for z = 6. LOCAL CONSTRAINTS VERSUS GLOBAL CONS'l'.ltAINTS In order to prevent a situation that 2D optical disk storage is unreliable for certain channel input fields, the input field is (channel) encoded before being written to disk. It has been considered to use constrained coding to forbid the rightmost points of the curve in Figure 1. For example, we can forbid the situation in which a "one" bit is surrounded by six" one" bits. The information rate loss required for imposing such a constraint would be acceptable. However, then we are confronted with the minimum distance in the case of five out of the six nearest neighbor bits being one and the center bit being either zero or one. The squared Euclidean distance of this situation is only marginally larger than the minimum Euclidean distance we had before. This means that we would also have to forbid the one but rightmost point (z = 5, x = 1) on the curve of Figure 1. For a random input message the fraction of occurrence of z of the nearest neighbors being one is proportional to the binomial coefficient (~). As a result, forbidding z = 5, x = 1 is (~) = 6 times more expensive than forbidding z = 6, x = 1, etc. This way, (local) constrained coding significantly decreases the information rate and does not solve the data dependence of the average reliability in a funda- mental way. For this reason, we propose to apply global constraints. We remark 32 that in order to relax the rate penalty involved in satisfying local constraints, it has been proposed in literature to employ weakly constrained codes, in which certain forbidden local patterns are allowed to occur with some low probability [2, Sec. 13.4]. One should realize that all points on the curve of Figure 1 do occur for a typical random bit pattern. For such a typical pattern, the fraction of bits with six nearest neighbor bits equal to one is small, about 1/64. Problems arise when this fraction is no longer small (e.g. larger than twice the typical fraction). This observation suggests to impose constraints on the fractions of occurrence of bit patterns with a given value of z in the bit patterns: these fractions should not deviate substantially from the truly random situation for any allowed input message field. This is a sufficient condition for the worst case of the BER over all allowed input message fields to be essentially the same as the BER averaged for a typical bit pattern. A logical block size to measure the aforementioned fractions is the block size of an error correction code, the decoder of which follows the bit-detector. GUIDED SCRAMBLING In telecommunication systems, it is a well-known practise to include scram- bling or randomization e.g. to prevent pathological spectral properties ("too peaky") of the modulated signal, or to disperse the influence of interference. Our method is a special case of guided scrambling [2, Ch. 13]. The basic idea of guided scrambling is the following. A scrambling code C is designed. For each input message field m, a judiciously chosen word from C is added to m, such that the channel data stream m EBc has favorable properties. If a channel data stream is favorable or not is measured with a real-valued objective function G that we strive to minimize. We remark that a randomizer which" almost always" produces a typical ran- dom output sequence is easy. Almost all bit sequences have the characteristics of a typical uniformly random sequence so one can just do nothing. Alternatively, one can take a single random scrambling sequence, e.g. a maximum length shift register sequence, and add the input sequence modulo 2 with the scrambling se- quence. What we need is guaranteed scrambling, i.e. the system requirements should always be met. This is obtained via a proper design of the scrambling code C in conjunction with the objective function G. THE PROPOSED SCRAMBLING METHOD In this section, we describe a general construction principle for codes for guided scrambling. We show that under certain conditions on the scrambling code C and the objective function G, there exists, for each channel data stream m, a codeword c E C such that G(c EBm) is at most the average of G over all possible channel data streams. That is, we can guarantee that one of the possible 33 alternatives for encoding m results in a channel data stream that is "as good" as the average channel data stream. We use the following notation. The input signal m is represented as an array with entries from a finite alphabet Q with cardinality q. The positions in the array are labeled with elements from a (finite) index set I. Examples of index sets are a subset of the integers (e.g. for indexing (equidistant) points on a line) and a set of pairs of integers (e.g. for indexing (equidistant) points in a 2D plane, or points of a 2D hexagonal lattice). We denote the set of all such arrays by QI. The scrambling code C is a subset of QI. It consists of scrambling codeword arrays c one of which is added index-wise to the message array m. We denote the result of this addition with c EBm. For any ordered subset J = {jl,j2, ... ,ja} of I, and any s E QI, we denote the restrietion of s to J with SJ, that is, In order to state the main result of this paper, we introduce the notion of a "balanced set" for a code C. Definition A set J c I of symbol positions (indices) is a balanced set for C if within the positions indexed by J, each of the qlJI combinations of symbol val- ues occurs in equally many (namely IClq-IJI) words from C. The notion of "balanced set" generalizes the notion of "information set", where each of the possible combinations occurs in exactly one word from C. Let X be a collection of subsets of I. For each J E X, let gJ be a real-valued function defined on QIJI. For each s E QI, we define G(s) as the average value of gJ over the restrictions of s to the sets from X: Wc have the following theorem. Theorem Let X be a collection of subsets of I, and let C C QI be a scram- bling code. If each of the sets in X is a balanced set for C, then for each message m we have that 1 L 1CT G(c EBm) = q-III L G(s). eEC sEQI Proof. By using the definition of G and interchanging the order of summation, we find that (1) 34 Let J E X. We denote the cardinality of J by a. As J is a balanced set for C, we have that for each y E Qa, the term 9 J (y) occurs in the sum L:cEC 9 J (( c EBrn) J ) equally often, viz. q-alCI times. Consequently, we have that (2) For each y E Qa, there are qlII-a arrays sin QI such that SJ = y. Therefore, we have that (3) The theorem readily follows from combining (1), (2) and (3). D As a sequence of numbers always contains a term not larger than its mean, the theorem has the following corollary. Corollary Let X be a collection of subsets of T, and let C C QI be a scrambling code. If each of the sets in X is a balanced set for C, then for each message m there is a word c* E C such that ou: EElm) ::; q-III L G(s). sEQI Note that the corollary states that for each rn, there is word c* such that G(c*EElm) is at most the average of G over all arrays s. An algorithm to find c* would simply be to compute G(cEElm) for each eEC, and pick that c for which the observed value of G(c EElm) is minimal. If C and G enjoy certain symmetry properties, more efficient methods can be used. EXAMPLE I : ID ILLUSTRATION OF THE METHOD In this section, we give a toy example in order to illustrate the method. As index set T, we take T = {O, 1, .... , K -I}, where K > 2. A message m is a K-bits (binary) vector (mo, mI, ....rnK-d. Furthermore, the set X is defined as X = {J(i) 11::; i::; K - 2}, where J(i) = {i -l,i,i+ I}. Further, let 9 be a function of three input bits. For the sake of concreteness, we take for 9 the power (i.e. the square) of a 3-taps filter output, g(a, b, c) = (0.1 * a + 0.7 * b + 0.2 * C)2. For each i E {I, 2, ... , K - 2} and K-bits vector s, the local figure-of-merit 9i(S) is defined as g(Si-l, Si, Si+l), while the global figure-of-merit G(s) is the average of all la cal figures of merit, that is, 1 K-2 1 K-2 G(s) = K _ 2 L 9i(S) = K _ 2 L g(Si-l, Si, Si+l). i=1 i=l 35 As scrambling code C we take a repetition code: Let m be an arbitrary message. For any i E {I, 2, ... , K - 2}, the codeword c re- stricted to J(i) equals (Ci-1' Ci, (;;+1) and hence is some permutation of (eo, Cl, C%!). Consequently, when we consider the restrietion of c EBm to J(i) for all 8 code- words, each of the 8 bit patterns occurs exactlyonce. We conclude that gi(m), the average ofthe local figure-of-merit gi(cEBm) taken over all codewords c, equals the average of 9 taken over all 3-bits inputs: -- 1 1 3.08 gi(m) = TC! Egi(C EBm) = "8 E g(a, b, c) = -8- =: I' eEC (a,b,e)E{O,l}3 By definition, for each c E C, the global figure-of-merit G(c EBm) is the average of the local figure-of-merits g'i(C EBm) over all i E {I, 2, ... , K - 2}. Hence, the average of G(c E9m) over all words cE C equals the average of all gi(m)'s: 1 1 1 K-2 1 K-2 __ TC! EG( m EB c) = TC! E K _ 2 E gi (m EB c) = K _ 2 Es, (m) = I' eEC eEC i=l i=l We conclude that for each message m, there exists a codeword c E C such that the time-average of the power of the filter output is at most I' the ensemble-average over all messages of this time-averaged power of the filter output. EXAMPLE 11 : SCRAMBLING CODES FOR 2D OPTICAL STORAG~ We apply the general result to 2D optical storage, with bits written on a hexagonallattice. We assume that it is possible to predict the probability that a given bit is in error from the values of its nearest neighbors (six nearest neighbors in general, but less for bits situated in the top or bottom row, or at the left-hand or right-hand side of the lattice). If the bit error rate also depends on the bit values in positions different from the nearest neighbors, the largest bit error rate obtained for these bit values is Laken. We denote this estimated bit error rate for the bit in the position indexed by i by BER;(y), where y denotes the vector of bit values assumed in J(i), the set of nearest neighbors of i. Note that. the cardinality of J(i), and therefore the length of y, depends on i (it is six in general, but less for bits situated at the borders of the array). Bit detection is a local process. Therefore, if we imagine a Bernoulli random variable for each bit position indicating a bit error event, such random variables will be largely independent (unless two bits being detected are very close). We therefore define the predicted bit error rate of an array s as BER(s) = !If1 E BER;(sJ(i))' 'EI 36 The function BER plays the role of G in the theorem. We now present scrambling codes C for 2D optical storage that satisfy the require- ment from the theorem, namely that for every position i E I, the neighborhood J(i) is a balanced set for C. In order to construct such a code, we use a coloring of the hexagonal lattice. In Table 1 below, we depict such a coloring with 7 colors, indicated with the numbers 0,1, ... ,6. The scrambling code C consists of 64 words. In each word, positions with equal color carry bits of equal value. Moreover, the seven bits corresponding to the seven colors form a word from the [7,6,2] parity-check code. The reader should verify that the (at most six) neighbors! of any bit have 0 1 2 3 4 5 6 0 1 2 3 5 6 0 1 2 3 4 5 6 0 1 2 3 4 5 6 0 1 2 3 4 5 0 1 2 3 4 5 6 0 1 2 3 4 5 6 0 1 2 3 4 5 6 0 Table 1: An example of a 7-coloring of the hexagonallattice. The six neighbors of a specific bit are indicated in boldface different colors. Consequently, the neighbors of any bit form a balanced set for C. We could have refrained from the even parity constraint and instead have used a repetition code with 27 words. This would result in a larger encoding complexity (27 words would need to be tested, instead of 26) without an improvement in the BER guarantee. We can partition the hexagonal lattice into 7-sets, each containing every color exactlyonce. Considering the 7 bits in such a set a symbol in GF(27), we can interpret C as consisting of 64 GF(27)-multiples of the all-ones word. Consequently, we can combine the scrambling code with an error-correcting code containing the all-one word, as described by Denissen and Tolhuizen in [3] (see also [2, Sec. 13.2]). In practical applications, there often is a preference to work with error- correcting codes over GF(28) (instead of over GF(27)). In Table 2, we present an 8-coloring that has more favorable properties when it comes to combining our guided scrambling technique with error control codes over GF(28). It can be seen that a neighborhood of a bit not on the border and carrying color i has bits colored with the colors from {O,1, ... , 7} \ {i, i + 4(mod8)}. Again, all bits with equal color in a scrambling codeword have equal bit value.We can use a scram- bling code C with 64 words by demanding that the number of "one" bits in the colors 0,1,2,3 is even, as is the number of "one" bits in the colors 5,6,7,8. It can be checked that the neighborhood of each bit (also those located at the border) is a balanced set for C. 1In Table 1 we indicated, for illustrational purposes the neighbors of a specific bit in boldface. 37 01234567012 67012345670 34567012345 12345670123 67012345670 45670123456 Table 2: 8-coloring of the hexagonal lattice. This coloring has favorable properties that suit combination with error correcting codes over GF(28) The most logical choice of the scrambling codeword length is to make it (approximately) equal to the block size of the first error correcting code that is decoded after the optical storage channel. Then, our guided scrambling technique limits the predicted number of bit errors in that block to a "typical" expected value for "truly" (i.e. uniformly) random input data. With the repetition-based scrambling codes as defined above, it is necessary for a application of the method from [3] that the error-correcting code contains the all- ones word. A shortened Reed-Solomon code may not contain this word, but if it contains a word without all-zero symbols (which is always true if the blocklength is smaller than the alphabet size), it may be modified to a code that does contain the all-one word. This modification amounts to a coordinate-wise multiplication of all codewords with specified non-zero coefficients. CONCLUSIONS A scrambling method is proposed such that for each input message m there exists a scrambling codeword c such that the BER for m EBc is not larger than that for true random input data. For a 2D hexagonal lattice as in 2D optical storage, a repetition-based scrambling code with only 64 words can be designed. Hence, per message block over which the scrambling code is defined, we need to evaluate the predicted BER over only 64 words, and only 6 bits are required for indicating which scrambling codeword is being used. The method from [3] enables efficient combination of this scrambling code with a byte-oriented error correcting code that contains the (symbol-wise] all-one word. REFERENCES [1] W. Coene, "Nonlinear signal processing model for scalar diffraction in optical recording," Applied Optics, Vol. 42, No. 32, pp. 6525-6535, Nov. 2003. [2] K.A. Schouhamer lmmink, "Codes for Mass Data Storage Systems," Shan- non Foundation Publishers, The Netherlands, 1999. [3] A.J.M. Denissen and L.M.G.M. Tolhuizen, "Apparatus and methods for use in transmitting and receiving a digital signal, and a record carrier obtained by a transmission apparatus or method," US Patent 5,671,236, Sept. 1997. 38 ON THE SIZE OF A TYPE OF RLL CODES Kees A. Schouhamer Immink Turing Machines Inc, Willemskade 15b-d, 3016 DK Rotterdam, The Netherlands. E-mail: immink@turing-machines.com. & Cai Kui Data Storage Institute, 5 Engineering Drive 1, Singapore 117608, Republic of Singapore. Summary - We will report on a relationship between the size of certain runlength- limited (RLL) codes and encoder complexity expressed as the number of encoder states, where the number of encoder states equals a (generalized) Fibonacci num- ber. Key words: optical recording, channel capacity, constrained code, runlength- limited, RLL sequence, (d, k) sequence. INTRODUCTION Runlength-limited codes, generically designated as (d, k) RLL codes, have been widely and successfully applied in modern magnetic and optical recording systems. Binary sequences generated by a (d, k) RLL encoder have at least d and at most k, k > d, 'O's between successive 'l's. Let the integers m and n denote the information word length and codeword length, respectively. The code rate, R = mf n, is a measure of the code's efficiency. The maximum rate of an RLL code, given values of d and k, is called the Shannon capacity, and it is denoted by C(d, k). Thus for any (d, k) code we have R:::; C(d, k). Finite-state RLL encoders have become very popular in recording practice as the rate of such well-designed transducers approaches capacity. Immink et al. [1] have introduced a new family of simple and efficient finite-state RLL codes. It is of engineering interest to have a knowledge of the relationship between the encoder's hardware complexity measured in the number of encoder states and the code's efficiency. In this article, we will report on a relationship between the code size and the number of encoder states. For ease of presentation we will first focus on RLL codes with d = 1, which we williater extend to the design of codes with d = 2. 39 ENCODER DESCRIPTION We start with a few definitions. A codeword is a binary string of length n that satisfies the d( = 1) constraint. The set of codewords, E, is divided into four subsets Eoo, EOl, ElO, and En. The four subsets are characterized as follows. Codewords in Eoo start and end with a '0', codewords in EOl start with a '0' and end with a ' 1', etc. The encoder has r states, which are divided into two state subsets of a first and second type. The encoder has rl states of the first type and r2(= r - rl) states of the second type. The two types of coding states are characterized by the fact that all codewords in the rl states of the first type must start with a '0', while codewords in the r2 states of the second type are free to start with a '1' or a '0'. We are now in the position to describe the encoder state-transition rules. Codewords that end with a '0', i.e., codewords in subsets Eoo and ElO may enter any of the r = rl + r2 encoder states. Codewords that end with a '1' may only enter the rl states of the 1st type only (and not the states of the 2nd kind). Note that, by definition, the codewords in states of the first type start with a '0', and codewords in stales of the 2nd type may start with a '1', which prohibits that a codeword ending with '1' may enter states of the 2nd type. The sets of codewords that belong to a given state (of any type) must OR rlis- joint. This attribute implies that any codeword can unambiguously be identified to the state from which it emerged. The decoder can, by observing both the cur- rent and the next codeword uniquely decide which of the information words was actually transmitted. Codewords ending with a '0' can be followed by codewords in any of r states, and can, thus, be assigned r times to different information words. Similarly, codewords ending with a '1' can only be followed by the rl states of the 1st kind, and can therefore be assigned Tl tirnes to different informa- tion words. Given the above encoder model, we can write down two existential conditions of a d = 1 code of size M, where usually M ::::: 2m. Let IExvl denote the size of Exy. Then, following the above arguments, there are at maximum rl Eoo I + rll EOll codewords leaving the rl states of the first type. For a code of size M, there should be at least r1M codewords leaving the rl states of the first type. Thus we can write down the first condition (1) 40 Similarly, the second condition follows from the fact that there should be a suffi- cient amount of codewords leaving the r states. We find (2) Note that the above two conditions are necessary conditions for the construction of such RLL code. In the sequel, we will study various properties of the new code constructions. Specifically, we will study the code size for a specific selection of r and ri, where rand rl are Fibonacci numbers. To that end, let Nd (n) denote the number of distinct (d) sequences of length n and define Nd (n) = 0, n < 0, (3) N« (0) = 1. The number of (d) sequences of length n > 0 is found by Nd (n) = n + 1, 1::; n ::; d + 1, (4) Nd(n)=Nd(n-1)+Nd(n-d-1), n>d+l. The numbers NI (n) 1, 2, 3, 5, 8, 13, ... , where each number is the sum of its two predecessors, are called Fibonacci num- bers. We simply find that the numbers of sequences in the four subsets are given by IEool = NI(n - 2), IEol1 = IElOl = NI(n - 3) (5) IElll = NI(n - 4). Thus, the left-hand side of Conditions (1) and (2) now read (6) and (7) We can freely choose any convenient rand ri, but for reasons of mathematical elegance we select r = NI(q), a > 0, and rl = NI(q - 1). Then with (4), we find r2 = r - rl = NI(q - 2). In other words, the numbers of code states, r, ri, and 41 r2 are Fibonacci numbers. By recursive elimination we can proof that [2] rNI(n - 2) + rlNI(n - 3) = NI(q)NI(n - 2) + N1(q - I)NI(n - 3) (8) = N1(n + q -1). The size of the (d = 1) code, denoted by M, not necessarily a power of two, is given by M = min( LNI (n + q - 1) I. LNI (n + q) j ). (9) NI(q - 1) N1(q) According to d'Ocagne's identity [2], we have Then, we find LNI(n+q-l)j:::: LN1(n+q)j),qodd, N1(q -1) N1(q) and N1(n + q)j > LN1(n + q - l)j) L N1(q) - N1(q - 1) ,q even. So that. WP. obtain the following simple expression for the code size N1(n+q)j q odd M- L Nl(q)' , - Nl(n+q-l) (11) { L Nl(q-l) j, q even. For a 2-:;Late encoder, i.e. r = 2 and q = 1, we find (12) For a 3-state encoder, i.e. r = 3 and q = 2, we simply find M -- mm . (LN1(n + l)j LN1(n + 2)j) _ LN1(n + l)j 2 ' 3 - 2 ' (13) which shows that an increase of the encoder complexity from two to three states does not increase the code size (and as we can deduce from (11) this holds for all even numbers of encoder states). As an example, Table 1shows the code size, M, as a function of the number of encoder states, r = N1(q), for a codeword length n = 12. 42 Table 1: Code size M as a function of the number of coding states r. Code- word length n = 12. q r lN, (n+q 1) J l.&:E±_ëil J M Nl(q-1) Nl(q) 0 1 233 377 233 1 2 377 305 305 2 3 305 329 305 3 5 329 319 319 4 8 319 323 319 5 13 323 321 321 6 21 321 322 321 We may observe that in case the number of encoder states equals r = 13, the J = 321 (this code encoder achieves the maximum possible code size l2(nC(d,oo) could be implemented in practice). For an RLL code, a large number of surplus codewords, i.e. larger than a power of two, is very beneficial for implementing a de-control as normally used in optical recording disc systems. The surplus words can be used as alternative channel representations, which are selected by the encoder to reduce the low-frequency components [3]. Table 1 shows the code size M as a function of the number of encoder states r, where r is a Fibonacci number. Clearly we are also interested in M when r does not equal a Fibonacci number. Table 2 shows, for n = 12, M as a function of r :s: 14. The table has been compiled using an exhaustive search for the best r1 (and r2) given r. It is surprising to notice that choosing r to be a Fibonacci number yields such relatively high values of the code size. For example, the smallest number of code states, r, not equal to a Fibonacci number, where the encoder can accommodate the maximum numbers of 321 codewords, equals 18 (not listed in Table 2). Computer experiments conducted with other values of n show the same behavior. 43 Table 2: Maximal code size M as a function of the numbers of coding states and 7'. Codeword length n = 12. 7'1, 7'2, 7'1 7'2 7' M 2 2 4 305 3 2 5 319 4 2 6 305 4 3 7 315 5 3 8 319 5 4 9 313 6 4 10 319 7 4 11 315 7 5 12 317 8 5 13 321 8 6 14 315 Case d=2 For the case of the d = 2 constraint we can derive similar equations. The encoder is assumed to have r states, which are divided into three state subsets of states of a first, second, and third type. The state subsets are of size 7'1, rz, and '1'3 (=- r - r1 - r2) respectively. A codeword is a binary string of length n that satisfies the d = 2 constraint. The set of codewords is divided into nine subsets denoted by Eoooo, E0001, EOOlO, EOOl1, EOlOO etc, where the two first symbols of the subset subscript denote the first two symbols of the codeword, and the last two symbols of the subset subscript denote the last two symbols of the codeword. Thus, codewords in Eoooo start and end with '00'; codewords in E0001 start with '00' and end with a '01', etc. The codewords in the various subsets are distributed over the various states of the three types such that codewords in states of the first type start with '00'; codewords in states of the second type start with '01' or '00'; and codewords in states of the third type start with '10, '01' or '00'. The state-transition rules are now easily described. Codewords that end with the string '00', i.e., codewords in subsets Eoooo, EOlOO, and ElOOO may enter any of the r encoder states. Codewords that end with a '10' may not be followed by codewords in a state of the third type. Similarly, codewords that end with a '1' 44 may only be followed by codewords belonging to states of the first type. The state sets of codewords are assumed to be disjoint. As a result, it is possible to assign the same codeword to different information words. Codewords that end with '00' may enter any state so that these codewords can be assigned T = Tl + T2 + T3 times to different information words. Codewords that end with '10' may enter states of the 1st and 2nd type so that these codewords can be assigned (Tl + T2) times to different information words. Similarly, codewords that end with a '1' can be assigned Tl times. Given the above encoder model, it is straightforward to write down three conditions for the existence of such a rate mf ri d = 2 code. Define the short notation and Then the three conditions are (14) Al + A2 :::::(Tl + T2)M, (15) Al + A2 + A3 :::::(Tl + T2 + T3)M. (16) Along the same lines as in the d = 1 case above, we can analyze the d = 2 case when we assume that the number of encoder states of the 1st, 2nd, and 3rd type be chosen such that T = Tl + T2 + T3 = N2(q), Tl + T2 = N2(q - 1), and Tl = N2(q - 2), q > 1, respectively. The size of the (d = 2) code, M, not necessarily a power of two, equals For a 3-state encoder, i.e. T = 3 and q = 2, we find (18) As an example, Table 3 shows the code size, M, as a function of the number of code states r = N2(q) for a codeword length n = 15. We may observe that 45 at an encoder size, r = 9, the encoder could achieve the code size, 305. A 129- state encoder (not shown in Table 3) is the smallest encoder that achieves the maximum code size 309. Table 3: Code size M as a function of the number of coding states r . Code- word length n = 15. q r lN2(n+q-2) N2(q-2) J lN2(n+q-l)J lN2(n+q) J M N2('l-1) N2(q) 2 3 406 297 290 290 3 4 297 290 319 290 4 6 290 319 312 290 5 9 319 312 305 305 6 13 312 305 309 305 7 19 305 309 310 305 8 28 309 310 308 308 CONCLUSIONS We have evaluated a relationship between the size of a certain type of sliding- block decodable RLL codes (d = 1 and d = 2) and the number of encoder states, where the number of encoder states equals a (generalized) Fibonacci number. REFERENCES [1] K.A.S. Immink, J.Y. Kim, S.W. Suh, and S.K. Ahn, 'Extremely Efficient Dc- frce RLL codes for Optical Recording', IEEE Trans. Commun., vol OOM-51, no. 3, pp. 326-331, March 2003. [2] S. Vajda, Fibonacci and Lucas numbers, and the Golden Section: Theory and Applications, Halsted Press, 1989. [3] K.A.S. Immink, 'EFMPlus: The Ooding Format of the MultiMedia Oompact Disc', IEEE Trans. Consumer Electr., vol. OE-41, pp. 491-497, Aug. 1995. 46 THE FOOTSTEPS OF SHANNON James L. Massey JLM Consulting; Trondhjemsgade 3, 2TH DK-2100 Copenhagen East; jamesmassey©compuserve. corn I wish to congratulate the Benelux information theorists on the occasion of this silver jubilee of their very successful series of WIC symposia. I had the pleasure to participate in the fourth of these symposia, which was held in Leuven and which I found to be very stimulating and informative. With a lot of luck, perhaps I will be able to participate in the golden jubilee symposium. My only real qualification for speaking at this twenty-fifth WIC symposium is age-it has been forty-four years since I first encountered information theory. I confess that it was a case of love at first sight. The passing of the years has not dimmed my enthusiasm for the field nor my admiration for its founder and chief architect, Claude E. Shannon. We all know the great things that Shannon did. But to me, what Shannon contributed to our field is not more important than how he did this, and it is on the "how" that I wish to focus my presentation. I can think of no better way to advance information theory, or of no better advice to give to young information theorists, than to follow in the footsteps of Shannon. Here are some suggestions that I have inferred from my reading of Shannon's work as to how one might follow in those footsteps: • Carefully state the situation to be studied. • Emphasize concepts, not techniques. • Strive for the simplest treatment possible. • Occasionally "pull a rabbit out of the hat" with an unexpected and near- miraculous argument that neatly solves the problem at hand. • Fearlessly state the reach, or probable reach, of one's results. • Write in a clear and unpretentious style. In this presentation I will cite instances where each of these traits unmistak- ably appears in Shannon's work. I will also cite examples of more recent work that has been done in the same spirit, or in what appears to be a contrary spirit. Just for fun, I will provide a small selection from my collection of favorite "rabbits pulled out of hats" by Shannon and by his followers. 47 A SIMPLE ADAPTIVE INTERFERENCE CANCELLATION METHOD FOR POWER LINE REDUCTION IN ELECTROCARDIOGRAPHY S.M.M. Martens", J.W.M. Bergmans", S.G. Oei2 We present a simple method for power line reduction in electrocardiographic (ECG) recordings based on adaptive interference cancellation. The method can track amplitude and phase of the interference signal, while a reference power line recording is not needed. Its behavior at line frequency devia- tions is analyzed and validated experimentally at several adaptation time constants. Performance is assessed in terms of signal to interference ratio of the cleaned ECG signal. The method performs adequately up to power line frequency deviations of 0.2 %. INTRODUCTION A proper recording environment does not always avoid power line interference in ECG recordings sufficiently when a high quality analysis is to be made. The worst case power line amplitude that can be expected is as large as 1/4 times the peak-to-peak QRS amplitude [1]. This is equivalent to an input signal to inter- power P, and line interference power Pi, i.e. SIRin = *. ference ratio (SIRin) of around 0 dB, where SIRin is the ratio between ECG signal Furthermore, the power line frequency can vary fractions of a Hertz, or even a few Hertz in some countries [2]. Often the power line signal contains harmonics. To reduce the power line interference after the recording stage one has to use signal processing techniques. In most cases an interference amplitude of less than 1/200 times peak-to-peak QRS amplitude is acceptable [3], corresponding to a signal to interference ratio (SIR) of around 30 dB. An appropriate power line interference reduction tech- nique should therefore be able to remove line interference and harmonics with a varying line amplitude and deviating line frequency, thereby achieving an SIR of at least 30 dB. Current techniques that have been proposed include notch filtering and adaptive interference cancellation. A disadvantage of notch filtering is that it induces a transient response at QRS pulses or removes ECG signal components. Adaptive interference cancellation (ANC) [4] implies the use of an adaptive filter operating on a reference interference signal to produce an estimate of the interference in the lTechnische Universiteit Eindhoven, Eindhoven, the Netherlands 2Maxima Medisch Centrum, Veldhoven, the Netherlands 49 corrupted signal. Widrow [4] mentioned the use of a two-weight adaptive filter acting on an external reference line signal for reduction of the power line in ECG recordings. Ziarani [2] introduced a more complex ANC method. This method uses an internal reference signal and can track not only line amplitude and phase but also deviating line frequency. In this paper we elaborate, extend and analyze the simple ANC method by Widrow. The external reference signal is replaced by an internal signal. An error filter improves performance. We first present the system model and the adaptive filter structure. What follows is an analysis of the behavior of the sys- tem in response to line frequency deviations and presence of ECG signal. We neglect the presence of power line harmonics in this paper. SYSTEM MODEL AND NOMENCLATURE J(I,<) r(k) Figure 1: Simple adaptive interfer- ence cancellation structure for re- duetion of power line interference. Fig. 1 shows the system model for reduction of line interference in ECG signals. A corrupted ECG signal d(k) may to a first order approximation be expressed as d(k) == s(k) 1- i(k), where s(k) is the clean ECG signal and i(k) represents the power line interference signal. When neglecting harmonics, i (k) can be defined as i(k) = A;(k) sin(wik+ ... " According to this figure, misadjustment ~m(k), the difference between wm(k) and wm(k), is scaled by a gain factor J-l and integrated in order to produce wm(k). The loop forces a time-average of ~m towards zero. The loop can be characterized by means of transfer function Hb.m(z) = ~m(z)/Wm(z) = (z - l)/(z - 1 + J-l), where capitals denote z transforms. This leads to the following time constant for the weights: 1 1 T = ln(-l-) C'=' -, (10) l-JL J-l where T is the normalized time constant in sampling intervals and 0 < J-l < l. The approximation applies for J-l « I, the case of greatest practical interest. The time constant of adaptation for the weights is thus independent of the amplitudes of both the ECG signal and power line interference, which is desirable. We will now analyze the impact of a small line frequency deviation ®.;i. We assume that the line amplitude Ai is constant, so that P; = ~At and SIRin = ps/~Ar Without loss of generality we take

..(t) s(t) = L: 8(t - ti) z(t) -----.. Figure 1: Block Diagram of Receiver Operation. zet) as a current flowing from the photodiode, and given by zet) = (L J(t - ti)) * pet) + net) L EiP(t - ti) + net). Ei = (2) net) represents an additive thermal noise component of spectral density No/2, and pet) is the impulse response of the photodiode. Physical conaiderations dictate that its area is proportional to the number of primary electrons ejected, and for simplicity we set J pet) dt = 1. Note that the normalization leaves the pulse energy open 1 . Ei is the number of electrons after multiplication (avalanche), and is set in the following to 1. Figure 1 depicts the receiver operation. A significant amount of literature deals with receiver design for digital trans- mission over optical fibres, the vast majority of which uses Eqs. (1) and (2) for the signal model. The first references stem from work in the Bell Labs at the beginning of the 70's, the period when the first low-attenuation fibres were man- ufactured. The pioneering work of Personiek [1, 2] gave the first engineering rules for receiver design. Under some realistic practical constraints (bandwidth limi- tations, optical components, amplifier characteristics) he found out that a good receiver comprises a low-bandwidth integrate-and-dump filter. This filter limits the effect of thermal noise and introduces a limited amount of inter-symbol in- terference, which is later removed by a simple zero-forcing equalizer. This result was later confirmed by other work by Mazo and Salz [3], Messerschmitt [4], who found out that the gain from other, more complicated, equalizers was limited, a somewhat unexpected result compared with other wired or wireless channels. Later, similar optimality results under the class of linear receivers were obtained by Hollenhorst [5]. Finally, note that this is also the receiver structure presented in textbooks such as Einarsson [6]. The first closed-form expressions for the error performance were obtained by Personiek et al. [7]. Later on, some finer analysis, normally based on some variant of saddlepoint approximations, was made by da lThe pulse energy is a parameter for photodiode design only, not for receiver design, as one has not access to the physical design of the optical components. 58 Rocha [8J and Helstrom [9, 10J. To the best of our knowledge, all these references use linear processing, un- doubtedly inspired by the linear filtering in AWGN channels. It is our objective to apply some basic detection theory considerations and derive the optimal proces- sor structure for z(t) and to estimate the modulation symbols w(k), and compare its performance with the standard receivers. For convenience and simplicity, and with no real loss in generality, we assume the following. The modulation is On-Off Keying (OOK), that is, w(k) E {a, I} in Eq. (1), and are drawn equally likely. The support of h(t) is limited to the symbol interval T, so there is no inter-symbol interference; we also set J h(t) dt = p, which is also the average number of arrivals when a "I" is sent. CLASSICAL RECEIVER: LINEAR FILTERING The standard receiving filter is an integrate-and-dump filter [3, 6J whose impulse response is flat in (0, T), and vanishes otherwise 2. In presence ofthermal noise, and at each modulation period, the filter generates a number, a variable z(k) = r: kT z(t) dt = a(k) + n(k). The signal term a(k) is the number of arrivals, which is Poisson distributed with (3) parameters p and 0, for w(k) = 1 and w(k) = ° respectively. The thermal noise component n(k) is a zero-mean Gaussian random variable with variance T· No/2. We base our analysis on the distinction between the pulses h(t) and p(t) in Eqs. (1) and (2). Let Bh and Bp denote their respective bandwidths. We will approximate approximate the bandwidths by the inverse of the time duration, and in particular Bh = liTo Our filter in Eq. (3) has then a bandwidth Bh, In the limiting case corresponding to pure Poisson reception, p(t) = 8(t), so Bp = 00, and in practice, we may have Bp » Bh, Even though a small receiver bandwidth may seem advantageous, as more noise is filtered out of z(t), it is also a loss, because of the broadening of the pulses, which renders detection more difficult. Two useful parameters to estimate this trade-off are the pulse-energy- to-noise-spectral-density ratio Ep/No, and the relative bandwidth Bp/Bh' 2For this situation, Personiek showed [1, 2J that the best perfomance results when z(t) is first filtered with a bandwidth B ~ 0.7 IT. This introduces some amount of inter-symbol interference, but also reduces the noise contribution. An equalizer placed after the filter cancels inter-symbol interference, and keeps the noise small. The gain is however, relatively small, and would clutter the subsequent analysis; we will refer thus to Eq. (3) as the standard receiver. 59 As discussed above, the area below the pulse p(t) must be one. However, the exact shape is not known. Let us see how Epi No changes for a family of rectangular pulses with area one. Let the amplitude be ~ -1, also equal to the duration. The energy is ~ -2 ~ = ~ -1. We have thus Ep 1 -=---+00. (4) No No~ .ó.~o This suggests that reducing the pulse duration, making it as narrow as possi- ble may boost the pulse Epi No. We now see whether this translates into improved detection performance. OPTIMAL DETECTION: NON-LINEAR RECEIVER The optimum receiver decides on the basis of the a posteriori probabilities for each symbol, which we denote by Pr(w(k)lz(t)). Depending on the context, we mayalso use 5.. Let us divide the symbol interval into smaller elements of length ~ « T, and assume that the duration of p(t) is much shorter than ~, or Bp » ~-1. This implies that pulses are essentially confined to one element. For each sub-interval, an integrate-and-dump filter is used (Eq. (3)). Let J = T/~ denote the number of sub-intervals, and z(k, j) the output of the integrate-and-dump at element j,O ::;j ::; J - 1, of symbol k, denoted by time tk,j: z(k,j) £ r: kT+j.ó. z(t) dt ~ a(k,j) + This filter essentially counts the number of arrivals per element a(k,j), c kT+j.ó. n(t) dt. (5) a(k,j) c.: = = 1{ti kT+j.ó. LP(t i - ti) dt : kT + j ~ ::; ti < kT + (j + 1) ~ } I· (6) a(k,j) are Poisson distributed with parameter À(tk,j)~ = À(k,j), and are condi- tionally independent for different values of k and j. The thermal noise compo- nents n(j, k) = J n(t) dt are normally distributed, as N(O, ~. No/2). The a posteriori probability is a mixture of Poisson and Gaussian random variables which, after some calculations, and disregarding common terms can be 60 written as (7) Assuming conditional independenee of observations along a symbol, the total a posteriori probability on w(k) is given by J Pr(w(k)) = IIpr(5.(k,j)), (8) j=l where we exploit the conditional independenee of observations. Eq. (8) does not seem easy to simplify, and in particular, is no linear matched filter. In this sense, it may be interesting to recall that the same derivation above, when applied to the known signal in AWGN channel, leads to the well-known (linear) matched filter. The optimum receiver is a non-linear processing of the received signal z(t). The linear receiver described above is a particular case of the one considered here, obtained by taking J = 1, that is, only one sample per symbol. Fig. 2 shows the positive effect of increasing the number of elements J for detection. For a given thermal noise level several curves of error probability are plotted, varying the number of elements J. The curve with no thermal noise is also plotted. It is to be remarked that the different curves approach that of no thermal noise for higher values of J. This leads to the conjecture that for J -t 00, the effect of thermal noise disappears, a claim confirmed in the following. Taking logarithms on both sides of Eq. (8), we obtain J logPr(w(k)) = 2)ogpr(5.(k,j)). (9) j=l Eq. (9) allows us to estimate the error probabilities, in the form (10) 61 I~~~~,~,~,~,~,~,~,~,.~.~~~~~~~~~~~~~~~~~ ..... 2 4 6 8 10 12 14 16 18 20 P (dB) Figure 2: Simulated error probabilities for varying number of elements J in the non-linear receiver. TNo = 100. To see why, let us assume wek) = 0 was transmitted, then an error is made when 10gPr(w(k) = 1) > 10gPr(w(k) = 0) =? (11) t, (IOgpr(Sl(k,j)) -IOgpr(so(k,j))) > O. (12) We have implicity defined S1 (t) and suet) as the signals corresponding to symbols 1 and 0 respectively. The error probability Pe (w (k) = 0) is the tail probability of a sum of random variables, which can be solved resorting to Chernov bounds, or to saddlepoint approximations [11]. A similar equation gives the error probability when wek) = 1 is transmitted. ASYMPTOTIC RESULTS FOR INFINITE BANDWIDTH In the limiting case b. --+ 0, the Poisson distribution collapses to a Bernoulli random variable, with Pr(a(k,j) = 0) = 1 - ).,(tk,j)b. and Pr(a(k,j) = 1) = 62 >'(tk,j)1::.. Eq. (7) becomes • Pr(À(k,j)) = (1 - • À(k,j)1::.) • + À(k, j)1::. exp (2Z(k j) - b.N 1) . (13) o For fixed and finite No, and 1::. -> 0, the terms n(k, j) vanish and z(k, j) can be safely approximated by a(k, j). The effect of the Gaussian component in the a posteriori probability disappears, and we fall back into a situation with only two values for the observables, corresponding to the pure Poisson case. As the a posteriori probabilities are identical to those of a Poisson channel, so are the error probabilities. We have just shown that, for J -> 00 the effect of thermal noise vanishes. An implicit assumption above has been that Bp » 1::.-1, or Bp/ Bh » J. In practice, both Ep/No and No may be fixed, what sets a maximum achievable gain. As a rule of thumb, derived assuming square pulses (Eq. (4)), we approximate Ep/No = Bp/No;:::: (1::.NO)-l = J/(TNo) => J ::; (NoT)/ Ep/No. Going back to Fig. 2, we can provide a different interpretation of the results. If we fix Ep/No = lOdB = Jmax/(TNo), we get Jmax = 1024, the leftmost curve gives the optimum receiver performance. That can be seen as the optimum performance achievable with Ep/No = 10dB, a significant gain with respect to the curve with J = 1, the result of applying a (classical) linear filter to the detection problem. CONCLUSIONS We have applied the basic techniques of detection theory to the problem of data estimation for OOK modulation over optical fibres. Working with the a posteriori probabilities of the signal, we have shown that the optimum receiver is a non-linear processor of the observation, differently from standard practice. Even though the analysis is performed under some simplifications, such as absence of inter-symbol interference, it is expected that the validity of the results extends to more complex situations, with minor modifications of the analysis. REFERENCES [1] S. D. Personick, "Receiver design for digital fiber optic communication sys- tems, I," Bell Sys. Tech. Journal, vol. 52, no. 6, pp. 843-874, July - August 1973. [2] --, "Receiver design for digital fiber optic communication systems, 1I," Bell Sys. Tech. Journal, vol. 52, no. 6, pp. 875-886, July - August 1973. 63 [3] J. E. Mazo and J. Salz, "On optical data communication via direct detection of light pulses," Bell Sys. Tech. Journal, vol. 55, pp. 347-369, March 1976. [4] D. Messerschmitt, "Minimum mse equalization of digital fiber optic sys- tems," IEEE Trans. Commun., vol. 26, no. 7, pp. 1110-1118, July 1978. [5] J. H. Hollenhorst, "Fundamentallimits on optical pulse detection and digital communication," J. Lightwave Technol., vol. 13, no. 6, pp. 1135-1145, June 1995. [6] G. Einarsson, Principles of Lightwave Communications. John Wiley & Sons, 1996. [7] S. Personiek, P. Balaban, J. Bobsin, and P. Kumar, "A detailed comparison of four approaches to the calculation of the sensitivity of optical fiber system receivers," IEEE Trans. Commun., vol. 25, no. 5, pp. 541-548, May 1977. [8] J. R. F. da Rocha and J. J. O'Reilly, "Linear direct-detection fiber-optic re- ceiver optimization in the presence of intersymbol interference," IEEE Trans. Commun., vol. COM-34, no. 4, pp. 365-374, April 1986. [9] C. W. Helstrom, "Computing the performance of optical receivers with avalanche diode detectors," IEEE Trans. Commun., vol. 36, no. I, pp. 61-66, January 1988. [10] C. W. Helstrom and C.-L. Ho, "Analysis of avalanche diode receivers by saddlepoint integration," IEEE Trans. Commun., vol. 40, no. 8, pp. 1327- 1338, August 1992. [11] R. G. Gallager, Information Theory and Reliable Communication. John Wiley and Sons, 1968. 64 IMPROVED CORRELATION RECEIVER FOR FRAME SYNCHRONIZATION A. Nowbakht*, J. W. M. Bergmans*, S. Van Beneden*, W. M. J. Coene**, M. Ciacci*, A. H. J. Immink** and J. Riani* We study a modification of the classical correlation receiver for frame syn- chronization. The modification consists in introducing a slicer before the correlator. It turns out that apart from having a lower complexity, the modified receiver outperforms the classical receiver for practical values of the probability of synchronization error. DEFINITIONS AND SYSTEM MODEL We will use bold letters to denote a sequence x of length L and regular letters to denote its elements x[n] for n = 0, ... , L - 1 (we start indexing at zero). We assume a communication system where the transmitted sequence is built up as a succession of frames. We define each frame f to consist of three parts: a preamble p, a sync-word s and data d (in this order) of respective lengths Np, N, and Nd. The frame can alternatively be specified as f = (p, s, d) and has a length N = Np + N, + Nd. We consider fE {-I, l}". The preamble is usually a periodic sequence used for bit synchronization. The sync-word is a short sequence (typically not longer than 20 bits) used to mark the beginning of the data part. Error Probabilities The task of the frame synchronization is to identify the beginning of the data in a frame. This is done by signalling the end of the sync-word. We introduce the End of Sync-word Instant (ES I) , which is the instant at which detection should ideally occur. End of Sync-word Instant id: The end of sync-word instant id is the position of the last bit of the sync-word in the frame i.e. id ~ Np + Ns - 1. This research was supported by the EU under project IST-2001-34168 (Two-DOS). * Eindhoven University of Technology, P.O. Box 513, 5600 MB Eindhoven ** Philips Research Laboratories, Prof. Holstlaan 4, 5656 AA Eindhoven 65 When designing the frame synchronization, an important measure of perfor- mance is the achieved Probability of Synchronization Error PSE. Before defining PSE we identify the causes for synchronization errors. Two frame synchronization error events can be identified: the false alarms and the missed detection. Probability of False Alarm at instant i < id PFA[i]: The probability of false alarm at instant i < id, PFA[i], is the probability that the sync-word is declared as found at an instant i prior to the ESI id. Probability of Missed Detection PMD: The probability of missed detection PMD is the probability that the sync-word is not detected at the ESI id. Probabil- ity of Synchronization Error PSE: The probability of synchronization error PSE is the probability that frame synchronization fails because either a false alarm occurred at any instant before id or the detection of the sync-word was missed. Therefore, assuming that the frame synchronization receiver starts searching for the sync-word at the beginning of the preamble", we write id-1 PSE = 1- (1 - PMD) . IT (1 - PPA[i]). (1) i=O In order to find a simple expression for PSE we assume that the PPA is only non-negligible 8.t one unique instant (this assumption will be true for a well de- signed sync-word). Therefore we define P?Ä ~ maxi max {cw[i] : i < id} and choose a threshold T satisfying cw[id] > T > max {cw [i] : i < iÛ. The presence of the additive Gaussian noise nw results in a PMD of P MD = Q (cw[id] - T) (5) Ilwll· CT PFA[t] . Q (T - = cw[i]) Ilwll . CT for i < id (6) where Q(x) = vk Jxoo e-r2/2dr. From expressions (5) and (6) we see that choosing T to decrease either of the probabilities increases the other. Since both error events result in a frame synchronization error, we choose T in order to minimize the maximum of PMD and PFA[i]. The optimal threshold Topt in the above sense is the one yielding PM D = PF'Ä where P max FA _:_ - max P [.]_ Q (T - max{cwri] FA t - II II : i < id}) . (7) '<'d w . CT This results in (8) and PMD = PF'Ä = Q ((Cw[id]- max{cw[i] : i < id})/2)' = Q ( D/2) (9) IIwll . CT Ilwll . CT where D is the detection distance, which we define next. Detection Distance 0: The detection distance is the difference of the value of cw at the ESI and the maximum value at any prior instant i.e. D = CW[id] - max {r.w[i] : i < id}. Note that .D is a fundion of the preamble pand the sync-word s. Wc now use (9) in (2) and obtain an approximate expression for the probability of syn- chronization error D/2 ) (10) PSE ~ 2 . Q ( Ilwll. CT . IMPROVED CORRELATION RECEIVER The receiver depicted in Fig. 2 converts the received sequence r into binary by means of a slicer. This implies that the correlation can be computed by 68 n r-------------------------l I I f r I I I I I I L w JI Binary Correlation Receiver Figure 2: Block diagram of the binary correlation receiver. adding binary values solely and therefore the correlation receiver has a very low complexity. We denote this correlation receiver as the binary correlaiion receiver. The slicer converts the real valued sequence r = f-l-n into the binary sequence b (see Fig. 2). Therefore we write for b bril = {+1 if r[i]::>- -1 if r[i] < 0 0 for i = 0, ... , N - 1 (11) i.e. positive values are detected as 1's and negative values as -1's. 3 We can now write b = f + e, where e E {-2, 0, 2}N is the error sequence. A value e[io] = -2 (resp. 2) at an instant io signals that bit J[io] = 1 (resp. -1) was detected erroneously as brio] = -1 (resp. 1).4 The bit error probability (bEP) f3 i.e. the probability that a bit is detected erroneously due to the AWGN (of mean 0 and variance CJ2) is f3 = P(e[i] =1= 0) = Q (1/CJ) for i = 0, ... , N - 1. The binary sequence b enters the correlator. At the output of the cor- relator we will have the correlation sequence qw = Cw + eNs where eNs E { - 2Ns, •.. , - 2, 0, 2, ... , 2Ns}N is the correlation sequence of e with w E {-1, 1}N, of length Ns. (Note that the only assumption we make for w is to be binary.) Note that now the noise sequence takes only discrete values. We derive general expressions for PMD and PFA in the next section. ERROR PROBABILITIES FOR BINARY CORRELATION RECEIVER The following definition will prove useful to express the probability distribu- tion of eNs. 3We could have chosen {O,I} or any other binary alphabet for b. 4Note that e[io] = -2 (resp. 2) is not allowed when i[io] = -1 (resp. I), since brio] E {-I, I}. 69 Probability distribution Pe(L, l, j) Given a binary sequence of length L and a bit error probability g, we compute Pe(L,l,j) the probability of having j errors more in any subsequence of 1 bits than in the remaining L - l bits. We write min (l-j,L-I) PI}(L, l,j) = L (L;I)gi(l_ g)(L-I)-i. Uj)gi+j(l- g)l-(i+j) (12) i=O where the first binomial term corresponds to having i errors in the subsequence of L - l bits and the second binomial term corresponds to having i + j errors in the subsequence of l bits. Probability distribution of eN. The probability distribution for each element of =», E {-2Ns, ... , -2,0,2, ... ,2Ns}N can be written as P(eN.[i] = -2j) = { Po{3(Ns, l[i],j) for j = 0, ... , l[i] for l[i] < j < N. (13) .]_ .) _ { P{3(Ns, Ns -l[i],j) for j = 0, ... , (Ns -l[i]) P( eN [t - 2J - 8 0 for iN, - l[i]) < j ~ N, where l[i] is the number of bits that coincide between the detection-word wand (.f[i - (Ns -1)], ... ,J[i]) (the subsequence of the frame with which w is correlated at instant i) and (3 is the bEP. The above expression states that a bit of the frame that coincides with the corresponding bit of the detection-word will contribute with -2 to e», whenever it flips due to an error and a bit that does not coincide will contribute with +2 whenever it flips. Now we can express PMD and PFA[i] in function of P(eN.[i]). We write N.-lli] L j=f(T-ewli]+1)/21 for i < id (15) 70 10-= 10--"" Figure 3: Comparison of error probabilities for system with and without slicer. where r'l is the ceil function and TEN is the threshold level. For w = s we have that l[id] = N, in expression (13). Furthermore we assume that the detector threshold is given by (8) which implies that cw[idl - Topt = D/2, where D is the detection distance. This enables us to compute PMD and approximate it by (with slicer). (16) CORRELATION RECEIVER PERFORMANCE: BINARY VS. CLASSICAL Now we will compare the performance of the binary correlation receiver (with slicer) with the classical receiver (without slicer). Since PSE is approximately proportional to PMD (see (10)), we base our comparison on PMD in order to facilitate the analysis. Comparing (16) with (9) we see that the introduetion of the slicer results in an asymptotic gain (in dB) given by (17) We have plotted the exact expressions of PMD for both receivers in Fig. 3 for a sync-word with N. = 13 and D = 12. The plot also includes a curve corresponding to the PMD of the ML receiver. The x-axis represents the SNR (signal-to-noise ratio) in dB which is defined as SNR = -20 loglQ CT. We see that, for this particular case, at high SNR values (corresponding to practical values of 71 ---- '0" ,o~ ~- with slicer '0'" ...... ML o simulation without slicer a simulation with slicer 10-120'-----é""-~___,~~4 --":-5---":---=----=-------' SNR (dB) Figure 4: Simulation results for both receivers. PMD) the receiver with slicer outperforms the classical receiver by about G = 1.60 dB. The reason for the good performance of the binary correlation receiver is that at high SNRs the slicer works as a simple bit detector eliminating much of the noise before the correlator, whereas in the system without slicer the noise values are added by the correlator. However, we expect the classical receiver to be better at. low SNRs where the slicer is a poor bit detector and will effectively increase the noise (introducing bit errors) at the input of the correlatoi . We can observe this behavior in Fig. 4 which shows the low SNR region in more detail. This plot also includes simulation results of both receivers, which match the predicted behavior. We see that, for this example, the slicer starts to pay-off at an SNR of about 4.3 dB. We conclude that the binary correlation receiver has not only a lower complex- ity but also has a gain of G dB (see (17)) with respect to the classical correlation receiver for values of PMD of practical interest (e.g. PMD < 10-1°). REFERENCES [1] R.H. Barker, "Group Synchronizing of Binary Digital Systems," in W. Jack- son (Ed.): Communication Theory. (Butterworth, 1953), pp. 279-287. [2] A. Nowbakht, J.W.M Bergmans, "Design of Optimum Sync and Detection Patterns for Frame Synchronisation," submitted to Electronics Letters, April 2004. 72 OCCURRENCE OF PATTERNS IN RANDOM FIELDS Jean-Rene Chazottes* Frank Redig! Evgeny Verbitskiyl Abstract: We study the distribution of the occurrence of patterns in random fields on the lattice Zd , d ~ 2. The knowledge of such distributions is essential for the analysis of lossy and lossless compression schemes of multidimensional arrays. For I-dimensional mixing processes a distribution of occurrence time t(An) of a pattern An' properly renormalised, converges to an exponential distribution. We generalize this result to higher dimensions. The main difficulty lies in the fact that mixing properties of random fields (d ~ 2) are very different from those of random processes (d = 1). We show that the mixing properties of Gibbsian (and hence Markov) random fields are sufficient for the convergence to the exponential law. As a corollary, we derive other probabilistic results for the distribution of t(An): the centrallimit theorem and the large deviation principle. Exponential law is also derived for the first occurrence of an approximate match for the pattern An· Keywords: Pattern-matching, rate-distortion theory, exponential distribu- tion, data compression. INTRODUCTION In recent years there has been growing interest in a detailed probabilistic analysis of pattern matching and approximate matching problems. For example, in information theory, motivation comes from studying performance of idealized Lempel-Ziv coding schemes, see [DK02]. In mathematical biology, one likes to have accurate estimates for the probability that two (e.g. DNA) sequences agree with some error-percentage in a large interval. There is also a considerable interest • CPhT, CNRS-Ecole polytechnique, 91128 Palaiseau Cedex, France, jean- rene@cpht.polytechnique.fr t Faculteit Wiskunde en Informatica, Technische Universiteit Eindhoven, Postbus 513, 5600 MB Eindhoven, The Netherlands, f.h.j.redig@tue.nl + Philips Research, Prof.Holstiaan 4, 5656 AA Eindhoven, The Netherlands, evgeny.verbitskiy@philips.com (corresponding author) 73 in analysis of the occurrence of patterns in multidimensional setting, e.g., in image and video compression, see [ASG02]. OCCURRENCE OF PATTERNS, REPETITION AND WAITING TIMES We consider a random field {O"(x) : x E Zd} on the lattice s», d ~ 1, where O"(x) takes values in a finite set (alphabet) A. The joint distribution of {O"(x) : x E Zd} is denoted by lP'. The configuration space [2 = Azd is endowed with the usual product topology. The set of finite subsets of Zd is denoted by S. For V E S we put [2v = AV. For 0" E [2, and V E S, O"v E [2v denotes the restrietion of 0" to V. For x E Zd and 0" E [2, TxO" denotes the translation of 0" by x: TxO"(Y) = O"(x+ y). For any nE N let en = [1, n]d n Zd. An element An E [2Cn is called an n-pattern. Definition 1 (First occurrence of a pattern) For every configuration (J E [2 we define tAn (0") to be the first occurrence of an n-pattem An in that configuration, that is the minimal kEN such that there exists a non-negative vector x (Xl, ... ,Xd) E Z~ with z, ~ k, i = 1, ... ,d, Ilxll = maxi lXii> 1, satisfying (1) To define an approximate occurrence, or an occurrence of an e-matching t:4n, we have to modify (1) by requiring that the number of mismatches between An and the appropriate translation of 0" is less than e x size(An) = cnd: (2) Basen on the notion of a first exact or approximate occurrence uf a pattern, one can define other quantities relevant for the coding theory. For example, the repetition time rn(O") is defined as a first (non-trivial) occurrence of O"cn in 0", i.e., rn(O") = tO"cn (0"), and for two configurations 0", ç the "waiting time" wn(ç,O") = tçcJO"). Repetition times occur naturally in the study of Lempel- Ziv coding schemes. The waiting times where ç and 0" are "randomly chosen" according to random fields Q and lP', respectively, appear in the study of Shannon's random codebook coding schemes. 74 LIMIT THEOREMS FOR OCCURRENCE, REPETITION AND WAITING TIMES It is well known (Kac's lemma) that for ergodie processes the expected rep- etition time of a pattern of size n is equal to the inverse of the probability of that pattern. By Shannon-McMillan-Breiman theorem (asymptotic equiparti- tion property) the probability of pattern of size n is approximately 2-hn, where h = h(lP') is the entropy of the source. Therefore, the right scaling for the repeti- tion, and hence, occurrence and waiting times is n -1. Indeed, in [WZ89], it was shown that in probability. This result was later strengthened and extended to include random fields in [OW93]. If lP'is a stationary ergodic field, then for lP'-almost all (J If one is interested in more detailed properties of the distribution of the occur- rence, repetition and waiting times, one has to make further assumptions on the mixing properties of the process. In probability theory and theory of dynamical systems, the distribution of occurrence times has been studied extensively, see e.g. a review [CoeOO].The basic picture which emerged is that if the process has sufficiently strong mixing properties then the distribution of rn, properly rescaled converges to the exponential distribution. GIBBSIAN RANDOM FIELDS Gibbsian random fields are natural generalizations of Markov random fields. They constitute a well-established field of research and many examples such as the Ising model have been given a complete analysis. A random field is called k-Markov if (3) where EA denotes any events supported on a finite set A ç Zd and akA = {y E Zd, Y rt A, [z - yl ::; k} is the k-outer boundary of A. A random field is called Gibbs if its conditional probabilities have a continu- ous version in the product topology. This is equivalent with the requirement that for any local event EA (4) 75 In other words, the conditional probabilities can be uniformly approximated by k-Markovian conditional probabilities. Gibbs measures are traditionally defined in terms of local potentials via the Boltzmann Gibbs formula (5) where the local Hamiltonians HX(w) = (6) is a sum of local potentials, and the partition function ZA is the normalizing constant. An important example is the Ising model, where for A = {x,y} with Ix - yl = 1. MTXING CONDITIONS FOR RANDOM FIELDS Various mixing conditions for random processes are known and well under- stood. However, when imposing mixing conditions on random fields one has to proceed with care. Direct application of several one-dimensional mixing condi- Lions in a multidimensional setting, leads to the situation when only Bernoulli random fields can satisfy such conditions. The main difficulty in the formulation of mixing conditions for random fields lies in the fact that typically mixing is not uniform: the influence of an event A on an event B is not only dependent on their distance but also on their size. We now come to the mixing hypothesis we make on our random fields. For m> 0 define (7) where the supremum is taken over all finite subsets Al, A2 of Zd, with dist(A1, A2) 2: m and where for i = 1,2, the event EAi depends only on the values of {ax}XEAi' with IP'(EA2) > O. Note that this rp(m) differs from the usual rp-mixing function since we divide by the size of the dependence set of the event EAl' 76 Definition 2 A random field is non-uniformly exponentially 0 such that (8) The examples that motivate this definition are Gibbsian random fields in the Dobrushin uniqueness regime (see [ACRV04] for detailed discussion). Our main result reads: Theorem I For a Gibbsian random field satisfying (8), there exist strictly posi- tive constants C, c, {2, Al, A2' Al ~ A2' such that for any n and any n-pattern An, there exists ÀAn E [Al, A2], such that for any t > 0 For the repetition times result is almost the same. The slight complication lies in the fact that one has to exclude" quickly self-repeating" patterns. This can be demonstrated as follows. Consider a pattern An = IOn' i.e. an n-pattern consisting entirely of 1's. There is much greater probability of having a "quick" repetition for this pattern than for an arbitrary "random" pattern. Fortunately, the total probability of all quickly repeating patterns is extremely small. Theorem 2 For a Gibbsian random field satisfying (8), there exist (i) a set of "good patterns" Gn, which is a union of cylinders; (ii) strictly positive constants B, b, C, c, {! such that for any n ~ 1 (10) and for each An from Gn for all t > 0 and where ÀAn is given in Theorem 1. 77 COROLLARIES Using the sharp estimate of Theorem 2, one easily obtains the following result. Theorem 3 For a Gibbsian random field satifying (8), there exists EO> 0 such that for all E > EO eventually W'-almost surely (12) In porticuier (13) Note that (13) is a partienlar case of the result by Ornstein and Weiss in [OW93] where W' is only assumed to be ergodic. Under our assumptions we get the more precise result (12). Using the result of Theorem 2, one can further derive various results about the fluctuations of occurrence and repetitions of patterns. For example, for a class of Gibbs measures which includes all Markov random fields with some minor restrictions, one obtains the following Central Limit Theorem: there exists 8 > 0 such that log rn - dIElog rn -t N(O, 82) , as n -t 00, in W' distribution, (14) n"2 where N(O, 82) denotes the normal law with mean zero and variance (P. One can also derive large deviation estimates on the fluctuations of log «, ï see Theorem 2.9 in [ACRV04]. APPROXIMATE MATCHING For an n-pattern An denote by [An]€ the collection of all e-matching n- patterns, i.e., [An]€ = {Bn: L lI(Bn(x) =/= An(x)) < cnd} xE[l,n]d As in the case of repetition times, we have to exclude certain "too quickly self- repeating" patterns. Definition 3 An m-pattern An is called (E, a)-good if the set [An]€ n [8xAn]€ is empty for all [z] ~ an. The set of all (E, a)-good patterns is denoted by Gn(E, a) 78 Finally, we have to impose some conditions on the rate distortion function. The rate distortion function is defined by . 1 iI'(E,O") = lim -Ic I log lP'([O"cnl"') (15) n--?(XJ n Chi in [Chi02] proves that iI' exists and is lP'-alrnost surely constant (as a function of 0") for stationary and ergedie Gibbsian random fields. Moreover, iI' is a convex (and hence continuous) function of E and is non-zero in some interval [0, EO). For our result, we need that iI' is strictly decreasing in some interval [0, El). We can then state our result. Theorem 4 Suppose that lP' is Gibbsian random field satisfying (8),. Suppose that the rate distortion function is strictly decreasing in the interval (0, Eo). Then there exist ca, < 1, El:::; Eo, A1,A2,C,c,Q E (0,00) and Àn E [A1,A2J, such that for all patterns An E Gn(E, a): (16) The following proposition shows that An E Gn(E, a) is a typical property. Proposition 1 For any Gibbs measure lP', a < 1/2 and E > 0 small enough, there exists c > 0 such that The exponential law holds for all approximate patterns in the i.i.d. case. This is expressed in the following theorem. Theorem 5 If lP' is the Bernoulli measure with lP'(wo= 0) = lP'(wo= 1) = 1/2, then (16) holds for all patterns An- To establish this result we have to use intricate properties of random walks with independent increments from [Rév90]. For general Gibbs measures such results are not available, and it is not even clear whether the statement analogous to theorem 5 is even true for Gibbs measures. REFERENCES 79 [AbaOl] Miguel Abadi. Exponential approximation for hitting times in mixing processes. Math. Phys. Electron. J., 7:19 pp. (electronic), 2001. [ACRV04] Miguel Abadi, Jean-Rene Chazottes, Frank Redig, and Evgeny Ver- bitskiy. Exponential distribution for the occurrence of rare patterns in gibbsian random fields. Comm. Math. Phys., 246(2):269-294, 2004. [ASG02] M. Alzina, W. Szpankowski, and A. Grama. 2d-pattern matching image and video compression: theory, algorithms, and experiments. IEEE Transactions on Image Processing, 11(3):318-331, March 2002. [Chi02] Z. Chi. Conditional large deviation principle for finite state gibbs random fields, 2002. preprint. [Coeüû] Zaqueu Coelho. Asymptotic laws for symbolic dynamical systems. In Topics in symbolic dynamics and applications (Temuco, 1997), volume 279 of London Math. Soc. Lecture Note Ser., pages 123-1fi5. Cam- bridge Univ. Press, Cambridge, 2000. [CRV04] Jean-Rene Chazottes, Frank Redig, and Evgeny Verbitskiy. Exponen- tial law for multidimensional approximate pattern matching, 2004. preprint. [DK02] Amir Dembo and Ioannis Kontoyiannis. Source coding, large devia- tions, and approximate pattern matching. IEEE Trans. Inform. The- ory, 48(6):1590-1615, 2002. Special issue on Shannon theory: per- spective, trends, and applications. [OW93] Donald Samuel Ornstein and Benjamin Weiss. Entropy and data com- pression schemes. IEEE Trans. Inform. Theory, 39(1):78-~3, 1993. [Rév90] Pál Révész. Random walk in random and nonrandom environments. World Scientific Publishing Co. Inc., Teaneck, NJ, 1990. [WZ89] Aaron D. Wyner and Jacob Ziv. Some asymptotic properties of the entropy of a stationary ergodic data source with applications to data compression. IEEE Trans. Inform. Theory, 35(6):1250-1258, 1989. 80 A COMPARATIVE COMPLEXITY STUDY OF FIXED- TO-VARIABLE LENGTH AND VARIABLE- TO-FIXED LENGTH SOURCE CODES Tjalling Tjalkens Eindhoven University of Technology P.O.Box 513, 5600 MB, Eindhoven, The Netherlands t.j.tjalkens@tue.nl In this paper we present an analysis of the storage complexity of Huffman codes, Tunstall codes and arithmetic codes in various implementations and relate this to the achieved redundancies. It turns out that there exist effi- cient implementations of both Huffman and Tunstall codes and that their approximations result in arithmetic codes. Although not optimal, the arith- metic codes still have a better redundancy per storage cell due to the fact that the storage complexity is independent of the block length. INTRODUCTION A fixed-to-variable length source code, FV-code, maps fixed length source se- quences onto variable length codewords. The optimal code construction is Huff- man's construction, see [3J. Variable-to-fixed length source codes, VF-codes, map variable length source sequences onto fixed length codewords. For memoryless sources the optimal code is found using the Tunstall procedure, see [11J. In this paper we shall consider the storage complexity of the FV-codes and VF-codes in relation to the achieved redundancy. In the next section we introd uce notions and notation. Then we consider the "classical" implementations of Huffman and Tunstall codes and discuss their storage complexities. The following two sections deal with a more efficient and computational method of implementing Huffman and Tunstall codes respectively. Arithmetic codes are derived from the methods of these sections and are the topic of the next section. We consider the resulting implementations, their performance and storage complexity, and generalize from this. Concluding remarks can be found in the final section. 81 PRELIMINARIES {X;}:l is a binary, i.i.d. source with Pr{ X, = I} = P :::;~. We shall consider only the encoding (and decoding) of a block X": So, we do not take into account the cost of the preprocessing (designing the code). For VF -codes there does not exist a notion of source block because the source segments are of variable length. However we can compare FV-codes and VF-codes with (approximately) the same number of code words. If M is this number of code words then for a FV -code we know that the block length is given as n = log2 M. We use this as the definition of block length for VF-codes. Because we are concerned about the asymptotic behavior the storage com- plexity, under a time constra.int, we shall make extensive use of the following limit description of a function f(n). Big "0" gives a non-negative function g(n) that is a "possibly reachable upper bound" of f(n), such that if f(n) = 0 (g(n)) then there exist constants c and N such that for all n :::::N we have If(n)1 :::;cg(n). Time complexity: We require that the total time complexity is 0 (n). This implies that the time needed to encode a single source letter is at most a constant, independent of the length of the source block. Storage complexity: Storage cost is considered in units of codesymbols, i.e. in storage "bits". So, any data kept in storage during encoding or decoding is counted in terms of these units. We also equate arithmetic computations with storage in the following WaY. Assuming that a simple operation, i.e. an addition, is performed 011 two b-bit operands, we say Lhat its storage complexity is 0 (b) because we need a number of logic units, linear in b, to compute this, just as we need a linear number of logic units to store an b-bit value. Note: we don't claim that we need the same number of units in both cases. Usually we can interchange storage and time complexity by adding more units to perform more operations in parallel thus increasing the storage complexity while decreasing the time complexity and vice versa. OPTIMAL VARIABLE LENGTH CODES Both Huffman and Tunstall codes are naturally represented by (binary) rooted trees. Actually, useful implementations that satisfy the time constraint require either direct coding tables or tree structures using pointers. The number of table 82 entries or tree nodes is of 0 (2n) and the unit size of a pointer or table entry is of 0 (n). If it is a pointer it must address about 2n entries and if it is a source word or code word it contains about n symbols. The storage cost of representing a tree is of 0 (n . 2n). HUFFMAN-SHANNON-FANO CODE An efficient implementation of a Huffman encoder/decoder was given in [2] named the HSF-code. In [10] the storage cost was"analyzed and shown to be not more than 0 (n3). This storage complexity was caused by the need to implement binomials in tables because computing them took too much time. Here we will briefly indicate that 0 (n2) is attainable by computing the binomials. Essential here is that a division can be implemented as a multiplication by an inverse taken from a table. Suppose one wishes to compute x/y where x is a b-bit non-negative integer, y ranges from 1 to b, and y divides x. We pre-compute a table i[y] = r~ 1· This table contains b elements, each needing b units, so the storage complexity of this table is 0 (b2). Now we have x y The only expensive operation to perform is the multiplication with a cost of 0 (1) time units and 0 (n2) storage units. So the total cost of a division is 0 (1) time units and 0 (n2) storage units. We briefly repeat the HSF encoding operations. First assign to each block x" a unique index ~(xn) E {O,1, ... ,2n - I} such that for all pairs of blocks xn,yn E {O,l}n hold Let 1Q = Wo, WI,"" W2n-1 be the vector of code word lengths obtained from the Huffman algorithm. Given the code word lengths 1Q we determine the number of codewords v(£) of a given length £ as ViE{I,2,.,2n-l} : v(£) ~ l{j E {O, 1, ... , 2n - I} : Wj = i}. We shall use ui.: and W+ for the shortest and longest code word length respectively. 83 Now we compute the 'base' values by w-l 'lfWE{W_"W+} : base(w) ~ L v(j)2 wj - - v(j). j=w_ The encoding procedure is now as follows. Given a source sequence x" do 1. determine the index i = L( z"); 2. determine the code word length w = Wi; 3. produce the code word for x" from the binary representation of base(w) +i in w bits. Similarly for the decoding we need a list prefix(w) that describes the value of the largest code word of length w. The decoding procedure is now 1. Set w f- ui : and read the first w_ code symbols into S E {O,1, ... ,2w- -I}. 2. If S ~ prefix(w) then decode the sequence xn with index L(Xn) = S- base( w) and stop. Else read the next code bit into s, i.e. S f- 2 . S + bit; increment w, i.e. w f- w + 1, and repeat this step 2. ENUMERATIVE TUNSTALL CODE For the Tunstall codes, an efficient implementation comes from the enumer- ative approach of [6] and was first described in [8, 9]. Again we shall show that the storage cost is 0 (n2). First we briefly introduce the encoder. Remember that p is the source probability of a "1". Let Si and So be two stepsizes which can be chosen such that the source segment set is a Tunstall set. See [9Jfor more details. Select a positive integer m and compute the coding table cri] for all i E {I, 2, ... ,m} using the recursion cri] = cri - so] + cri - Si], and the definition cri] = 1 for all i ::;O. The number of source segments in the Tunstall set is given by c[m] and is of the order 0 (.À m), for a .À > 1 that depends on the stepsizes So and Si ,so the resulting block size, n = log2 c[m], is of order 0 (m). The code word of a segment 84 Xi is given as the n bit binary representation of the index j(xi) = nim, xi), where K(k, XIX2'" xv) given by if Xl = 0, if Xl = 1. We see that the number of additions and table references is linear in m and so it is of order 0 (n). Storage is only needed for the c table. This table contains m entries of n storage bits each so the storage cost is of order 0 (n2). ARITHMETIC CODES Consider the source intervals I(xi) ~ [Q(xi), Q(xi) + P(xi)), where P(xi) = Pr{Xi = Xi} and Q(xi) = Pr{Xi < xi}, given some ordering of the source sequences. Arithmetic codes, see e.g. [1], map source intervals I(xi) into binary intervals Jv(c):= [c· 2-v, (c+ 1)' 2- where for the integers v and s hold, v > 0 and 0 S V ), c < 2 c and v are chosen such that Jv(c) C I(xi) and the binary representation V • of c in v bits is the code word for xi. I . 15/16 X!.1L c:_(ll)=}E! . 1(1) 1(10) c(lQ)=IIO 3/4 c(OI)=101 1(01) 9116 . 1(0) 1(00) c(oo)=O 0 . Figure 1: the mapping from I(xi) to Jv(c). A basic form of the encoder is given below. 1. C = 0; A = 1. 2. For i = 1 to n repeat (a) If z, == 1 then C = C + A * (1 - p); A = A * p, (b) elseA=A*(I-p). 85 3. C is a binary fraction, the codeword are the fractional binary digits up to the last non-zero digit. The HSF-code can be seen as an arithmetic code in the following way. Con- sider 2-Wi as the sequence probability p(xn) for the xn whose index is i = [(xn). Then the resulting source intervals exactly match binary intervals lv(e) where v = Wi, the length of the code word, and e = base( Wi) + i. So an arithmetic code can be seen as an approximation of the optimal, in terms of redundancy, HSF-code. Also the enumerative Thnstall code can be approximated by an arithmetic coding scheme. The aim now is to produce source sequences with an approxi- mately equal probability. In the following figure we descibe a four words Thnstall code for a source with p = 1/4. So, given this code we actually assign the prob- ability f to all four source sequences 1, 01, 001, and 000. I . c(l)=11 1(1) 3/4 .. 1(01) c(OI)=1O 1/2 .. 1(001) c(ool)=OI 1(0) 1(00) 1/4 .. c(OOO)=oo 0 . Figure 2: Thnstall code as interval division. So the arithmetic code can also be seen as an approximation to the enumerative Thnstall code. We shall describe this in some more detail. First we should realise that decodability is guarantied as long as we have e[m] ~ e[m - SO] + e[m - sd. The table c has an exponential behavior. So we can even approximate it further by defining an integer constant mo and defining a small table Co using the recursion only for values of m in the range 1 :::::m :::::ma Co[m] ~ Co[m - so] + Co[m - si]. 86 Then we define the "table" c as Co[m]; if m:::; mo, c[m]= { Co[mo]c[m - mol; if m> moo In [9] an arithmetic code is described where the multiplications are replaced by additions of values from a small table similar to the c table above. For this method it turns out that the redundancy, as a function of the number of storage cells, s, needed for the table is of order rA (s) = 0 (~). A similar behavior can be shown for other implementations of arithmetic codes although no rigorous proof is yet given that it must hold for all possible arithmetic code implementations. CONCLUSIONS First we consider the tree implementations of Huffman codes and Tunstall codes. As we saw before the storage requirements s for a given block length nare s(n) = 0 (n· 2n). From this we can approximately find n(s) = 0 (log s). Huffman and Tunstall codes have a redundancy r as a function of the block length of r = 0 (n-1). This results in an approximate redundancy per storage unit ï r (s) = 0 Co~s) . The HSF code gives the same redundancy as the Huffman code and the enumera- tive Tunstall code performs identical to the original Tunstal code. However their storage complexity as a function of the block length n is of order 0 (n2). So we derive the following bounds on the redundancies for the enumerative schemes. renumT(S) = 0 (~) . As we saw in the previous section the arithmetic code performs even better. REFERENCES [1] T.C. Bell, J.G. Cleary and LH. Witten, Text Compression, Prentice-Hall, 1990. 87 [2] J.B. Connell, "A Huffman-Shannon-Fano Code," Proc. IEEE, vol 61, 1973, pp. 1046-1047. [3] D.A. Huffman, "A method for the construction of minimum-redundancy codes," Proc. IRE, vol 40, Sept 1952, pp. 1098-1101. [4] 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). [5] T. Nemetz and J. Simon, "Self-information and optimal codes," in Topics in IT, pp. 457-468, 1977. [6] J .P.M. Schalkwijk, "On Petry's extension of a Source Coding Algorithm,", Proceedings 2-nd Symp. Inform. Theory in the Benelux, May 1981, pp. 99- 102. [7] A. Schönhage and V. Strassen, "Schnelle Multiplikation Grosser Zahlen," Computing 7, pp. 281-292, 1971. [8] Tj.J. Tjalkens, F.M.J. Willems, "Variable to fixed-length codes for Markov sources," IEEE Trans. Inform. Theory, March 1987, pp. 246 - 257. [9] Tj.J. Tjalkens, Efficient and fast data compression codes for discrete sources with memory, Ph.D. Thesis, Eindhoven Univ. Techn., The Netherlands, 1987. [10] Tj.J. Tjalkens, "The Complexity of Minimum Redundancy Coding,", Pro- ceedings 21-th Symp. Inform. Theory in the Benelux, May 2000, pp. 217-?.';4. [11] B.P. Tunstall, "Synthesis ofnoiseless compression codes," Ph.D. dissertation, Georgia Inst. Tech., Atlanta, GA, Sept 1967. 88 1 COVERING RADIUS OF THE (N - 3)-RD ORDER REED-MULLER CODE IN THE SET OF RESILIENT FUNCTIONS Yuri Borissov Institute of Mathematics and Informaties, Bulgarian Academy of Sciences, 8 G.Bonchev, 1113 Sofia, Bulgaria yborisov@moi.math.bas.bg An Braeken, Svetla Nikova Department Electrical Engineering, ESAT ICOSIC, Katholieke Universiteit Leuven, Kasteelpark Arenberg 10, B-3001 Heverlee-Leuven, Belgium an.braeken,svetla.nikova@kuleuven.ac.be INTRODUCTION In an important class of stream ciphers, called combination generators, the key stream is produced by combining the outputs of several independent Linear Feedback Shift Register (LFSR) sequences with a nonlinear Boolean function. Siegenthaler [12] was the first to point out that the combining function should possess certain properties in order to resist divide-and-conquer attacks.A Boolean function to be used in the combination generator (or more general also in stream ciphers) should satisfy several properties. Balancedness - the Boolean function has to output zeros and ones with equal probabilities. High nonlinearity - the Boolean function has to be at sufficiently high distance from any affine func- tion. Correlation-immunity (of order t) - the output of the function should be statistically independent of the combination of any t of its inputs. A balanced correlation-immune function is called resilient. Besides the divide-and-conquer attacks, another important class of attacks on combination generators are the algebraic attacks [4, 5]. The central idea in the algebraic attacks is to use a lower degree approximation of the combining Boolean function and then to solve an over-defined system of nonlinear multivariate equa- tions of low degree by efficient methods such as XL or simple linearization [3]. In order to resist these attacks, the Boolean function should have not only a a high algebraic degree but also a high distance to lower order degree functions. The trade-off between resiliency and algebraic degree is well-known. To achieve the 89 2 desired trade-off designers typically fix one or two parameters and try to optimize the others. In this paper, we investigate the generalization of the trade-off between re- siliency and algebraic degree. In particular, we study the relation between re- siliency and distance to lower order degree functions. In order to define a the- oretic model for combining these properties, Kurosawa et al. [6] have intro- duced a new covering radius i)(t, r, n), which measures the maximum distance between t-resilient functions and r-th degree functions or the r-th order Reed- Muller code RM(r, n). That is i)(t, r, n) = maxd(f(x), RM(r, n)), where the maximum is taken over the set Rt,n of t-resilient Boolean functions of n vari- ables. Note that as the covering radius of Reed-Muller codes is defined by rAr, n) = maxd(f, RM(r, n)) where the maximum is taken over all Boolean func- tions i, it holds that 0 :::;i)(t, r, n) :::;g(r, n). Kurosawa et al. also provide a table with certain lower and upper bounds for i)(t, r, n). In [1] some exact values and new bounds for the covering radius of the second order Reed-Muller codes in the set of resilient functions were found. In this paper we find the exact value of the covering radius of RM(n - 3, n) in the set of I-resilient Boolean functions of n variables, when Ln/2J = lmod 2. We also improve the lower bounds for covering radius of the Reed-Muller codes RM(r, n) in the set of t-resilient functions, where Ir /2l = Omod 2, t :::;n - r - 2 and n 2 1" + 3. We start with some background on Boolean functions. BACKGROUND Any Boolean function i (x) on lF2 can be uniquely expressed in the algebraic normal form (ANF): i(x) = (al, ... ,an)E1F2' with hf a function on lF2, defined by hf(a) = L:x:::u i(x) for any E lF2, where ê x:::; a means that Xi :::; ai for all i E {i, ... , nl. The algebraic degree of i, denoted by deg(f) or shortly d, is defined as the number of variables in the highest term X~' ... x~n in the ANF of i for which hf(al,'" i= O. The suport of i, denoted ,an) by sup(f), is the set of all vectors X for which i(x) i= O. The Walsh transform of 90 3 f(x) is a real-valued function over lF2 that is defined as Wf(W) = 2:)_I)f(xlHW, ZElF;' where x· w denotes the dot product of the vectors x and w, i.e., x· w = XIWI + ... + XnWn· Definition 1 A function f(x) is called t-th order correlation-immune if its Walsh transform satisfies Wf(w) = 0, for 1 ::; wt(w) ::; t, where wt(x) denotes the Hamming weight of X. Balanced t-th order correlation-immune functions are called t-resilient functions, i.e. Wf(w) = 0, for 0::; wt(w) ::; t. By the well-known Siegenthaler's inequality [11] the maximal possible alge- braic degree of t-resilient function f of n variables is equal to n - t - 1 when t < n - 1. The problem for constructing resilient functions (in particular such of maximal possible degree) attracted the attention of many authors in the past. Among other works we mention [11], [2] and [10]. The next theorem shows how we can easily construct (t + l j-resilient function on lF~+l from t-resilient function on lF2. Theorem 2 [13]Let f(xl' ... ,Xn, Xn+l) = g(Xl' ... ,xn) +CXn+l, where cE {O,I} and g be t-resilient. Then f is (t + 1) -resilient. We also make use of the following theorem: Theorem 3 [J] The covering radius of RM(n - 3, n) is equal to n + 2 if n is even. If n is odd, the covering radius is equal to n + 1. To prove the theorem, McLoughlin constructed a coset for which the minimal weight is equal to n + 2 when n is even, and n + 1 when n is odd. This coset contains Cln-2, the symmetric polynomial consisting of all terms of degree n - 2. THE COVERING RADIUS OF (N - 3)-RD REED-MULLER CODES IN THE SET OF I-RESILIENT BOOLEAN FUNCTIONS In order to prove the main theorem of this paper we will need the following lemmas. 91 4 Lemma 4 Let O"i(X-) be the symmetric polynomial of n variables containing all terms of degree i (O"o(X-)= 1) and 8(x-) = 2:~:02 O"i(X-). Then -v E sup (8)'f ~ an d on Iy ~'f wt (-) v = {o,n -1,n 0, n - 1 when n is even; when n is odd. Proof. Let V E IF~be a vector of weight w. It is easy to see that the number of terms in O"i('iJ)equal to 1 is (~) (as usual (~) = 0, when w < i). Therefore the number of terms in 8('iJ) that are equal to 1 is N(w) = 2:~:02(~) i.e. 8('iJ) = N(w) mod 2. There are four cases to be considered: 1. If w = 0, then 8(0) = 1; 2. If 0 < w < n - 1, then N(w) = 2 and thus 8('iJ) = N(w) mod 2 = 0; W 3. If w = n - 1, we have N(n - 1) = 2:~:02(n~l) = 2n-1 - 1 and therefore 8('iJ) = 1; 4. If w = n, we have N(n) = 2:::; (7) = 2 n - (n + 1). Therefore 8(1) = {I when n is even; o when n is odd. This completes the proof. o Lemma 5 Let 8(x-) be the symmetric Boolean function of n variables, defined in Lemma 4., where n is equal to 4k + 2 or equal to 4k + 3. Let V be an arbitrary vector of weight 2k + 1 or of weight 2k + 2. Then the Walsh transform value Ws('iJ) = O. Proof. Let us consider the following two linear functions: L1 (x-) = 2:i~t1Xi and L2(X-) = 2:i~i2Xi' Arranging the set sup(8) in decreasing lexicographic order, it is easy to see that Lj = 0, j = 1,2 for the half of the vectors from sup( 8). Since the linear functions are balanced the same is true for the complement set of sup(8), in which 8 takes value O. Therefore L1 and L2 differ from S in 2n-1 points i.e. d(Lj,S) = 2n-1,j = 1,2. By using the relation Wf(w) = 2n - 2 d((w,X-),f) we get Ws('iJ) = 0 where v is either the vector having only ones in the first 2k + 1 or in the first 2k + 2 coordinates. Since S(x-) is a symmetric function this holds for any vector of weight 2k + 1 or 2k + 2. 0 92 5 Let T be a subset of lF~. The rank of T, denoted hy rank(T), is defined as the maximal number of linearly independent elements from T. Lemma 6 Let n be equal to 4k + 2 or equal to 4k + 3 and Z = {v E lF2 : wt(v) = 2k+l or2k+2}. Denote bç û, thevector(I,I,I, .. I,O,O,O, ... O) ofweight2k+1. Then the set Z + VI has rank n. Proof. Note that the following vectors of weight 2 (1,0,0, ... , 0, 1,0, ...0), (0, I, 0, ... ,0, 1,0 ...0), ... , (0,0,0, ..., I, 1,0 ...0), where the second "I" is in the (2k + 2)-nd position, belong to Z + VI. The same is valid for the vectors having only one "I" in positions 2k + 2 till n. Obviously, these are ti linearly independent vectors and the proof is complete. 0 Theorem 7 The covering radius of RM(n-3,n) in the set of 1-resilient Boolean functions of ti variables is equal to: ti + 2 when n = 4k+2,' i?(I,n-3,n)= ' { n + I, when n = 4k+3. Proof. By the result of McLoughlin [7] (see Theorem 3), the Boolean function S(x) defined in Lemma 4, belongs to the coset of RM(n - 3, n) with a maximal possible minimal weight. By Lemma 5 and Lemma 6 and using the procedure for "change the basis" described by Maitra and Pasalic [9] the function S(x) is affine reducible to I-resilient function. o Finally, let us consider the case n = 4. It is easy to see that CJ2 is affine equivalent to some function in the coset of RM(I, 4) containing the function f = XIX2 + X3X4. However f is a bent function and therefore the coset CJ2 + RM(I, 4) contains no balanced functions. By Dickson [8] theorem the remaining two types of cosets (which are interesting when consider I-resilient functions of 4 variables), are RM(1,4) itself and these equivalent to XIX2 + RM(I, 4). In fact the function g = XIX2 + X3 + X4 is I-resilient and the minimal weight of its coset is 4. Hence the covering radius of interest is 4 (see also numerical results in [6]). 93 6 DERIVING NEW LOWER BOUNDS ON THE COVERING RADIUS OF REED- MULLER CODE IN THE SET OF RESILIENT FUNCTIONS By induction, using Theorem 3 and Theorem 7, we can also generalize the lower bounds for RM(r, n) in the set of t-resilient functions where Ir /21 = r + 3. o mod 2, t :::;n - r - 2 and n ::::: Theorem 8 The covering radius of the Reed-Muller code RM(r, n) in the set Rt,n for Ir /21 = 0 mod 2, t :::;n - r - 2 and n :::::r + 3 is bounded from below by 2n-3. In particular, for r = 3 and r = 4, this leads to the following lowerbound: Corollary 9 The covering radius of the Reed-Muller code RM(3, n) in the set Rt,n for t :::;n - 5 is bounded from below by 2n-3, when n :::::6. The covering radius of the Reed-Muller code RM(4, n) in the set Rt,n for t :::;n - 6 is bounded from below by 2n-3, when n ::::: 7, i. e. i?(t,3,n) 2n-3 ::::: for t:::; n - 5, n;::: 6 i?(t, 4, n) 2n-3 ::::: for t:::; n - 6, n:::::7. CONCLUSION In this paper, we continued the study of the covering radius in t.he set of resilient functions, which has been defined by Kurosawa et al. [6]. This new concept is meaningful to cryptography especially in the context of the new class of algebraic attacks on stream ciphers proposed by Courtois and Meier at Euro- crypt 2003 [4] and Courtois at Crypto 2003 [5]. In order to resist such attacks the combining Boolean function should be at high distance from lower degree functions. Using >,I. rp.R1Jltfrom coding theory on the covering radius of (n - 3)-rd Reed- Muller codes, we cstablish exact values of the the covëruig radiuo of RM( 71. - 0, n) in the set of Lresilient Boolean functions of n variables, when Ln/2 J = l mod 2. We also improve the lower bounds for covering radius of the Reed-Muller codes RM(r, n) in the set of t-resilient functions, where Ir /21 = Omod 2, t :::;n - r - 2 and n::::: r + 3. In the table below we present the improved numerical values of the covering radius for resilient functions. The entry Cl! - (3 means that Cl! :::; i?(t, r, n) :::;(3. 94 REFERENCES 7 Table 1: Numerical data of the bounds on Q(t, r, n) n 1 2 3 4 5 6 7 r=l 0 2 4 12 26 56 r=2 0 2 6 16 40 - 44 t=O r=3 0 2 8 20 - 22 r=4 0 2 8 r=5 0 2 r=6 0 n 1 2 3 4 5 6 7 r=l 0 4 12 24 56 r=2 0 6 16 36 - 44 t=l r=3 0 8 20 - 22 r=4 0 8 r=5 0 n 1 2 3 4 5 6 7 r=l 0 8 24 56 r=2 0 16 32 - 44 t=2 r=3 0 16 - 22 r=4 0 n 1 2 3 4 5 6 7 r=l 0 24 48 r=2 0 32 t=3 r=3 0 REFERENCES [IJ Y. Borissov, A. Braeken, S. Nikova, B. Preneel, On the Covering Radius of Second Order Binary Reed-Muller Code in the Set of Resilient Boolean Func- tions, IMA International Conference on Cryptography and Coding, Springer- Verlag LNCS 2898, 2003, pp. 82-92. [2J P. Camion, C. Carlet, P. Charpin, N. Sendrier, On Correlation Immune Functions,CRYPTO'91, LNCS 576, Springer-Verlag 1991, pp. 87-100. [3J N. Courtois, A. Klimov, J. Patarin, A. Shamir, Efficient Algorithms for Solving Overdefined Systems of Multivariate Polynomial Equations, Euro- crypt'OO, LNCS 1807, Springer-Verlag, 2000, pp. 392-407. [4J N. Courtois, W. Meier, Algebraic Attacks on Stream Ciphers with Linear Feedback, Eurocrypt'03, LNCS 2656, Springer-Verlag 2003, pp. 345-359. 95 REFERENCES 8 [5] N. Courtois, Fast Algebraic Attacks on Stream Ciphers with Linear Feedback Crypto'03, LNCS 2729, Springer-Verlag 2003, pp. 176-194. [6] K. Kurosawa, T. Iwata, T. Yoshiwara, New Covering Radius of Reed-Muller Codes for t-Resilient Functions, SAC'Ol, LNCS 2259, Springer-Verlag 2001, pp.75-86. [7] A. McLoughlin, The Covering Radius of the (m - 3)-rd Order Reed-Muller Codes and a Lower Bound on the (m - 4)-th Order Reed-Muller Codes, SIAM J. Appl. Mathematics, vol. 37, No. 2, October 1979, pp. 419-422. [8] F. J. MacWilliams, N. J. A. Sloane, The Theory of Error-Correcting Codes, North-Holland Publishing Company 1977. [9] S. Maitra, E. Pasalic, Further Constructions of Resilient Boolean Functions with Very High Nonlinearity, IEEE Transactions on Information Theory, vol. 48, No.7, July 2002, pp. 1825-1834. [10] J. Seberry, J. Zhang, Y. Zheng, On Constructions and Nonlinearity of Cor- relation Immune Functions, Eurocrypt'93, LNCS 765, Springer-Verlag 1994, pp. 181-199. [11] T. Siegenthaler, Correlation-Immunity of Non-linear Combining Functions for Cryptographic Applications, IEEE IT, vol. 30, No. 5, 1984, pp. 776-780. [12] T. Siegenthaler, Decrypting a Class of Stream Ciphers Using Ciphertext Only, IEEE Trans. Comp., vol 34, No. 1, 1985, pp. 81-85. [13] Y. Tarannikov, On Resilient Functions with Maximun Possible Nonlinearity, Indocrypt 2000, LNCS 1977, pp. 19-30. 96 ON THE SECURITY OF CERTAIN DPA COUNTERMEASURES Mathieu Ciet+, Francesco Sica'' and Jean-Jacques Quisquater'' 1 INNOVA CARD Avenue Coriandre, 13600 La Ciotat, France. - mathieu. eiet@innova-eard.eom 2 Mount Allison University 67 York Street, Sackville, New Brunswick, Canada E4L 1E6. - fsiea@mta.ea 3 UCL Crypto Group Place du Levant, 3. B-1348 Louvain-la-Neuve, Belgium. - j j q@diee. uel. ae. be Abstract: Some countermeasures have been proposed to immunise elliptic curve scalar multiplications against differential analysis. One of them con- sists of a modification of elliptic curve scalar multiplication using efficient endomorphisms. In this paper, we analyze the probability of collision in the key decomposition of the first proposal and also present a modification of this with a very small collision probability. Keywords: Elliptic curve cryptography, differential power analysis countermeasures, fast endomorphisms. I. INTRODUCTION Since the paper of Kocher [4J on the timing attack in 1996 and the Kocher, Jaffe and Jun paper Differential Power Analysis (DPA) [5J in 1999, it is well known that non careful implementation can leak and that it is possible to recover the secret key using the information on which access is possible, such as power consumption. This is particularly true of elliptic curves, since the number of field operations for elliptic doubling and addition differ if these curve operations are trivially implemented. In 1997, Solinas [7J gave an algorithm exploiting the computation speed of the Frobenius endomorphism over lF2 to perform fast scalar multiplication on Koblitz curves. In the next few years, Joye and Tymen [3Jproposed an algorithm to prevent DPA on the Solinas algorithm. In their algorithm, they introduced a random process for computing a scalar multiplication but did not give a proof that different values for the random seed give rise to different processes. 97 The object of this paper is a first step towards filling this gap. We show that a suitable minor (both from a theoretical and implementation viewpoint) modification of their algorithm leads to strong security bounds and then give heuristic reasons that these arguments should extend to the original method. 11. THE JOYE-TYMEN COUNTERMEASURE Description Joye and Tymen first presented in [3, Section 5] a randomised endomorphism to prevent DPA for elliptic curve implementation, based on previous work of Solinas [7]. Let us consider a Koblitz curve E defined over F 2= with y2 + x Y = x3 + ax2 + 1 as equation, and a E {O,1}. Letting T : (x,y) ~ (X2,y2) the Frobenius endomorphism, which satisfies the equation u2 - (-1)l-a U + 2 = O. The ring Z[T] is an Euclidian domain with the norm N(.) defined as N(r +T 8) = r2 + (_1)1-a r 8 + 282. The key point of their countermeasure with randomised endomorphisms [3, Section 5] is to use the following property. Let (} E Z[T]. Tf k1 == k2 (mod I] (Tm - 1)), then \lP E E, kIP = k2P. Thus, they randomly choose (} E Z[T] such that N(I]) < 240, then compute ",' in Z[T] with ",' = k (mod I] (Tm -1)), and N(",') < N((}(Tm -1)). Then they decompose ",' = Li k; Ti using the NAF algorithm [2], and compute Q = kP 8!'l Li k; Ti(P). This method only applies in characteristic two and for Koblitz curves. The success of their method was tested in actual implementation. It remained an open problem to prove mathematically that different values of I] give rise to different x's and thus different ways to compute kP. Hereafter, we analyse this point and give a theoretical value for the number of possible equal decompositions. We propose a variant for which wc are able to produce a sharp bound on this number: instead of taking random integral p's, we take random prime integers (! E Z[T] with N((}) < 240 and then proceed exactly as in the Joye- Tymen method. The Probability of Collision Let P be a point on a Koblitz curve E/F2m with hn points, and k be a scalar value in [0,n-1] with n is the order of Pover E. Let us suppose that two computations with the differential countermeasure of [3, Section 5] are done. This means two numbers (}1 and 1]2 are randomly chosen such that N((}l), N(1]2) E [0, R], with 98 REN. We now study the probability that 1\;1 = k (mod (21 (Tm - 1)) and 1\;2 = k (mod (22 (Tm - 1)) are equal. We want to avoid the situation where the decomposition for two non equal (21 and (22 in 2[T] with N(.Q1), N(.Q2) < R gives the same decomposition of k, this means that we want to avoid the situation where (1) Equation (1) implies such that (2) Using the fact that k = .Qi';i(Tm - 1) + I\;i for i = 1,2 and recalling that N( Tm - 1) = nh, the following lemma holds. Lemma 1 With previous notations, if k E [n/c, n] and N(.Qi) < R, then n 2rnR < N(n. c.) < 2 - + R -c2h - -- c..Jh "',.", h (n) (3) Proof: We use the fact that and that N( I\;i) < N(.Qi (Tm - 1)) < Rnh, together with some easy quadratic bounds (like (a + b)2 :::;2(a2 + b2) for the upper bound, which is actually all we need in the following). • Remark 1 FUT typical cryptographic use, h 2 or 4, and c = 2"', meaning k E [ni c, n] with probability 1 - 1/2"'. To deduce a tighter security bound we willlimit the choice of the .Q'sto primes of 2[T] of norm less than R. The following theorem holds. Theorem 1 For a fixed value of k, by picking a random prime value .Q E 2[T] such that N(.Q) < R and computing I\;P instead of kP with I\; = k (mod p (Tm - 1)) on each computation of kP, the probability of having the same decomposition is less than 31og(~+2R). 99 Suppose we have 7r17r2... 7r1.I v with £ different Z[T]-primes 7ri. Then I. L log N(7ri) ::::;log N(v) . (4) i=l Notice that N(7ri) = Pi or P; for some rational prime Pi and that there are at most two different 7r;'S having same norm (one in the latter case). Hence I. LlogN(7ri) ~ 2 L logp ~ 2 L logp , (5) i=l with Pj being the j-th prime number, in increasing order. Let us recall Abel's lemma (partial summation). Lemma 2 ([8, p. 3]) Let (an)n>l be a sequence of complex numbers and A(t) = L an (t> 1) . n:o;t Let x> 1 and f: [1, x] ---> x/ log x for x ~ 17 and 7r(x) < 2x log 2/ log x for x > 1. to arrive at 2 - --4l0g2) -e L_ logp> - (1 - --f"[M/2 p~e/2 log £/2 2 V"!""' and therefore that for £ ~ 512 one gets from Equation (4) and (5) £::::; 3 log N(v) . (6) Proof: [of Theorem 1] By Equation (1) and (2), fixing K2 or equivalently rh and 6 (which depends only on k and £)2), we have that the number of different Kl verifying Equation (1) is bounded by the number £ of different prime divisors £)1of £)26. By Equation (6), 100 Input: p ss 1,2 or 4 mod 7, 0 < 8 < 2pwith 8 odd and 82;: -7 (mod p) Output: (u, v) E '£,2 with u2 + (_l)l-a uv + 2 v2 = P xo<-2p, x1<-8, i<-l While Xi > 2"';p Xi+1 <- r such that 0 ::; r < Xi and r ;: Xi_1mod Xi i<-i+1 t <- V(4p - xl)/7 (u, v) <- (X;+(;-l)at, t) Figure 1: Cornacchia's Algorithm in Z[T] we deduce after (3) that this number is (7) hence that the probability of getting the same decomposition Equation (1) is bounded by 3 log 2(n/h + R) R This proves the theorem, since h :::::2 on Koblitz curves. _ With the values of the Joye-Tymen article, R = 240 and n ::::: 2160, this probability is bounded by 333/240 < 2-31. Generating prime f2'S in Z[T] of norm less than R is easily done by first randomly choosing a prime p == 1, 2 or 4 mod 7 (that is a prime that splits in Q( T)) such that p < R and then finding f2 such that N(f2) = p, for instance by Cornacchia's algorithm (see Fig. 1) which gives, whenever p == 1,2 or 4 mod 7, an element u + VT E Z[T] such that N(u + VT) = p. Ill. HEURISTIC IMPROVEMENTS Unfortunately, we did not succeed in giving a complete treatment of the original Joye-Tymen method, the reason being that in the proof of Theorem 1 when we count the number of ordinary divisors f21 of f226, this number can be large. In fact, we can estimate the number of collisions to be small. However, on lal average this number is O(logn) and this explains why randomly chosen {l'S will not give rise to collisions. Also, in the case of prime {l'S, the average number of prime divisors of {l26 should be around log log n, hence much smaller than what we actually showed. IV. CONCLUSION In this paper we analyse theoretically the Joye-Tymen countermeasure of [3, Section 5] and prove that practical implementations done in the original paper are in line with theoretical analysis. ACKNOWLEDGMENTS We would like to thank Marc Joye for valuable comments on the preliminary version of this paper. Part of this work was performed while the first and second authors were involved ill the European NESSIE project within the DCL Crypto Croup. REFERENCES [1] H. Cohen. A Course in Computational Algebraic Number Theory, volume 138 of Graduate Texts in Matbematics. Springer, 1996. [2] D.M. Cordon. A survey of fast exponentiation methods. Journalof Algo- rithms, 27(1):129-146, 1998. [3] M. Joye and C. Tymen. Protections against differential analysis for el- liptic curve cryptography -An algebraic approach-. In ç.K. Koç, D. Nac- cache, and C. Paar, editors, Cryptographic Hardware and Embedded Systems (CHES 2001), volume 2162 of Lecture Notes in Computer Science, pages 377- 390. Springer, 2001. [4] P.C. Kocher. Timing attacks on implementations of Diffie-Hellman, RSA, DSS, and other systems. In N. Koblitz, editor, Advances in Cryptology - CRYPTO '96, volume 1109 of Lecture Notes in Computer Science, pages 104- 113. Springer, 1996. [5] P.C. Kocher, J. Jaffe, and B. Jun. Differential power analysis. In M. Wiener, editor, Advances in Cryptology - CRYPTO '99, volume 1666 of Lecture Notes in Computer Science, pages 388-397. Springer, 1999. [6] A.J. Menezes, P.C. Van Oorshot, and S.C. Vanstone. Handbook of Applied Cryptography. CRC Press, 1997. 102 [7J J.A. Solinas. An improved algorithm for arithmetic on a family of elliptic curves. In B.S. Kaliski Jr., editor, Advances in Cryptology - CRYPTO '97, volume 1294 of Lecture Notes in Computer Science, pages 357-371. Springer, 1997. [8J G. Tenenbaum. Introduction à la théorie analytique et probabiliste des nom- bres, volume 1 of Cours Spécialisés. Societé Mathématique de France, 1995. 103 INFORMATION THEORETIC MEASURES APPLIED TO POWER AND ELECTROMAGNETIC TRACES MEASURED FROM AN FPGA PERFORMING AN ELLIPTIC CURVE POINT MULTIPLICATION E. Dewitte, B. De Moor, B. Preneel Katholieke Universiteit Leuven Department of Electrical Engineering, ESAT-SCD-SISTA/COSIC Kasteelpark Arenberg 10, B-300l Heverlee (Leuven), Belgium {Evelyne.Dewitte, Bart.Demoor, Bart.Preneel }@esat.kuleuven.ac.be Side-channel attacks exploit information that leaks from a cryptographic device due to a specific implementation. Two important examples of si de- channels are the power dissipation and the electromagnetic radiation. Though each of these channels is being well studied, the question remains whether combining multiple channels yields advantages such as faster exhibition of sensitive data. Of course, the more independent the channels, the more interesting combining them. Information theory not only presents us tools to measure (in)dependence. It also tells us how badly a certain channel is perturbed by noise. In calculating the entropy of our measurements per clock cycle, a surprising pattern in the plots was found. INTRODUCTION The security of a cryptographic system depends not only on the mathemati- cal analysis of the algorithm itself but also on the security of the implementation [2J. The past seven years a lot of research is done towards so-called side-channel attacks. These attacks are tailored at a specific implementation. They exploit the fact that while a device is running a cryptographic algorithm, sensitive in- formation may leak through physical quantities of the device (the side-channels). Well-studied examples of side-channels are timing [5J, power consumption [6, 7J or electromagnetic (EM) radiation of the working device [1, 3J. The idea to use information theory on side-channel measurements originated from the question whether it is possible to determine a lower bound on the number of measurements we should take to have a succesful attack. Each measurement is affected by noise; by using statistical tools one hopes to reduce the noise as far as possible. Statistics however always imply assumptions such as Gaussian noise, 105 mean-zero noise, ... We approached the question in the following way: noise in- troduces uncertainty about the outcome of the measurements at each sample time; let us try to catch this uncertainty in a mathematical way. The higher the uncertainty, the more noise and the more measurements are required! Informa- tion theory offers us a great tool to quantify this uncertainty: the entropy. At the same time it allows us to detect moments of low respectively high entropy in the running of the algorithm and to compare channels. We are still performing experiments to explore what information theory can reveal to us; a few surprising results however showed from the first tests. EXPERIMENTAL SETUP Elliptic curve cryptography (ECC) was proposed in the 1980's [4]. When compared with a classical cryptosystem as RSA, ECC offers advantages such as lower power consumption and shorter keys. We expect ECC to be used more and more in the future. In a first setup we executed an EC point addition on a Xilinx Virtex FPGA board that was hand-made at Cosic. This EC point addition is realized by al- gorithm 1. The EC point addition requires fourteen states and six temporary Algorithm 1 EC point addition Require: PI = (x, y, I, a), P2 = (X2, Y2, Z2, aZi) Ensure: PI + P2 = P3 = (X3, Y3, Z3, aZj) 1. Tl <- Zi 2. T2 <- xTI 3. Tl <- TIZ2 4. Tl <- yTI s, Td. <- Tl 6. T2 <- T2'11 7. T4 <- T4T3 8. Z3 <- Z2T3 9. T3 <- Tl 10. Tl <- TIT4 X3 <- T3 - T6 11. aZj <- zg T2 <- T2 - X3 12. T3 <- T5T2 13. azt <- (aZt)2 Y3 <- T3 - Tl 14. aZj <- a (azt) registers. We restrained ourselves however to states 9, 10 en 11 (the X3 register update). Simultaneously, we recorded the power consumption of the device and the electromagnetic radiation. 106 Figure 1: Above: Typical EM (left) and power traces (right). Below: the mean measured traces While the power trace was registered fully, we only kept the above part of the EM signal because of the limited internal memory of our scope (Tektronix TDS714L). Typical traces captured in this way can be found in figures 1. SIDE-CHANNEL EFFECTS AT FIXED TIME POINTS Let Yem,i for 1 ::; i ::;1200 be the electromagnetic radiation at clock cycle i in the running of the cryptographic algorithm. Due to noise, these physical quantities are random variables with respectively probability density functions (pdfs) k (1) where F is the family of pdfs for electromagnetic radiation. For each of the 1200 members of the family, we gathered 4527 observations as a sample from the unknown pdf. Analogously we define Ypaw,j for 1 ::; j ::; 1200 to be the power consumption at instant j in the running of the cryptographic algorithm: (2) where ç; is the family of pdfs for power dissipation. Remark that all pdfs are unknown and have to be estimated. The estimators of 107 t. and gj are denoted by ij and [}j. The resulting entropy values are influenced by the choice of estimator. DENSITY ESTIMATION We approximated the pdfs (1) and (2) of our continuous stochastic variables by means of a histogram technique. Hence we discretize the side-channels pre- tending we can only measure a finite number of discrete values per clock cycle. For each cycle, we estimated the pdf at equally-spaced points starting from the minimum measured value and choosing a fixed spacing b. Consequently the bin- width is the same in all histograms (thus for both channels and all clock cycles); the number of bins increases with the range of measured values at a certain cycle. In figure 2 for instance, we compare the histograms found for the EM radia- tion respectively the power dissipation in clock cycle 1005 in the running of the cryptographic algorithm. Figure 2: Histograms for the side-channelmeasurements in clock cycle 1005: the EM radiation (left) and the power dissipation (right) ESTIMATING THE ENTROPY OF A CONTINUOUS RANDOM VARIABLE Shannon entropy We discretized the side-channels; initially we can use the estimated probabilities derived from the histogram to calculate the well-known Shannon entropy: Mi - L ii(k) log2(ii(k)) 1 :::::i < 1200 (3) k=l Nj - Lgj(k) log2(gj(k)) 1 lFq where lFq is the finite field of q elements and q = pS with p prime. Let us call this function a defining function of the SSS. We also assume that we are dealing with (n, n) threshold scheme where only all n participants together are able to determine the secret. In this paper we derive a necessary and sufficient condition for the defining function to produce SSSs that are cheating immune and strictly cheating immune. Then we improve the known upper bound for the number of cheaters based on a relation between the required properties of the defining function. This relation was known for Boolean functions, but now it is proven that it halds also for functions over any finite field. MODEL OF CHEATING We consider (n, n) threshold schemes, i.e. schemes for which only all n partic- ipants together are able to determine the secret. These schemes are represented by a set of distribution rules combined in a table. The secret K is computed by the defining function f : lF~ ----> lFq where lFq is the finite field of q = pS elements with p prime and s :::::1. Denote the sequence of shares held by the participants P = {Pl, ... , Pn} by the vector a and the secret K = f(a). Represent the cheaters by the vector b E lF~, also called cheating vector, in which the non-zero elements denote the deviations of the exact values. For any two vectors x, b, the vector xt satisfies xj = Xj if Dj =I 0 and xj = 0 otherwise. Conversely, the vector xi = Xj if bj = 0 and xj = 0 otherwise. Denote the weight of a satisfies xj vector v by wt(v). The number of cheaters is equal to wt(b). We are following the model and the notations from [1, 2, 4, 5, 6J. Let define the following sets: R(b,at,K) {xó-If(xó + at) = K}; R(b, at + b, K*) {xó-If(xó + at + b) = K*}. The first set represents the collection of rows of the table with the correct K and valid shares held by the cheaters. The second set represents the view of the cheater after getting back K* from the combiner. As a consequence, the probability of successful cheating with respect to a and cheating vector b is given by IR(b, at + b, K*) n R(b, at, K)I f2ó,a IR(b,at + s, K*)I 114 3 Definition 1 (4, 5, 6] A secret sharing scheme (SSS) is said to be k-cheating immune ij f28,a = q-l Jar every a E ~ and s e IF; where 1 ::; wt(b) ::; k. In the above definition, all cheaters are assumed to submit invalid shares. This can be generalized in a model where cheaters may submit a mixture of valid and invalid shares. To write out this definition, a vector T E IF; is used to specify the cheating values and a binary vector b to denote the cheaters. For any T j b (Tj =1= 0 if bj =1= 0), we consider the following probability with respect to b, T, a: IR(b, at + T, K*) n R(b, at, K)I f28,T,a = IR(b, at + K*)I T, Definition 2 (5, 6] An SSS is called k-strictly cheating immune ij f28,T,a = q-l Jar every a, T, b E IF; such that T j b, and 1 ::; wt( T) ::; wt( b) ::; k. PROPERTIES OF THE DEFINING FUNCTION As it has been proven in [6], the following equivalence can be derived for k-cheating immune SSS. Theorem 3 (6] An SSS with defining Junction J is k-cheating immune ij and only ij Jar any integer l with 1 ::; l ::; k, Jar any vectors s, T E IF; with wt( b) = l and T j b, and Jar any u, v E IFq simultaneously holds that IR(6, T, v)1 IR(6, T, v) n R(6, T + 6, u)1 We now prove that the conditions of Theorem 3 imply certain properties for the defining function J of the SSS. Therefore, we first give a formal definition of these properties. Definition 4 (8] A Junction J : IF; -+ IFq is said to be t-correlation-immune ij and only ij Jar every i-subset {il' ... ,id ç: {l, ... ,n}, Jar every choice oJ Zj E IFq with 1 ::; j ::; t and Jar every y E IFq holds that IJ the Junction is also balanced, then the Junction is said to be t-resilient. 115 4 Definition 5 (7j A function f : IF'~ -> IF'q is said to satisfy the propagation criterion of degree R if and only if for any non-zero word a, such that wt(a) ::;R, the function f(x + a) - f(x) is balanced (O-resilient). In the context of cheating immune secret sharing schemes, the following property seems to be relevant. Definition 6 (4, 5, 6j A function f : IF'~ -> IF'q is said to satisfy the strengthened propagation of degree k, denoted by B(k), if f(xi +T+<5) - f(xi +T) is a balanced function on IF'~, where T, <5 E IF'~ are as in Definition 2. In [5], the relation between the strengthened propagation criterion of degree k and the propagation criterion of degree k is proven for characteristic 2. It is easy to see that this relation also holds for fields of characteristic q 2: 2. Theorem 7 If f : IF'~ -> IF'q satisfies the strengthened propagation of degree k then f satisfies the propagation criterion of degree k. We now show how these properties can be used in order to produce a defining function for a cheating immune SSS. In [6]the authors have shown a construction, which leads to a defining function for a k-cheating immune SSS, but no general properties of the defining function were mentioned. In [5] the analogous theorem is given over IF'2. Theorem 8 An SSS with defining function f is k-cheating immune if and only ~f the junction f is k-resilierii and satisfies B(k). Proof. We use the saffie definitions and conditioris for <5 and T as in Theorem :3. From the definition of <5 and T, the function f (x i + T) is defined on IF'~-l (I fixed variables). Moreover, the function is balanced by the first condition of Theorem 3. As a consequence, the defining function is k-resilient. It can be easily seen that the second condition of Theorem 3 can also be interpreted as follows. The system of equations for all u, v, T, <5 has exactly «:':? solutions for xi. This implies that f(xi +T+<5) - f(xi +T) = u - v for qn-I-2 choices of xi. Because this property holds for all q2 possibilities of the tuple (u, v), we can conclude that the function satisfies B(k). 0 116 5 The following relation between cheating immune and strictly cheating im- mune SSS is known. Theorem 9 (6] An SSS is strictly k-cheating immune if and only if for any integer r with 0 ::; r ::; k - 1, any subset {jl, ... , jT} of {I, ... ,n} and any al, ... ,aT E IFq, the function f(xI, ... , xn)lx;, =al, ...,Xjr=ar as a function on ~-T is the defining function on IF~-T of a (k - r)-cheating immune SSS. As a consequence, combining Theorem 8 and Theorem 9, we derive a necessary and sufficient condition on the defining function of a strictly cheating immune SSS. Corollary 10 An SSS with defining function f is strictly k-cheating immune if and only if all subfunctions f', which are derived from the function f by fixing at most k - 1 variables to arbitrary values in IFq, are k-resilient and satisfy B(k). BOUNDS ON THE NUMBER OF CHEATERS Recently an upper bound for the number of cheaters has been proven by D'Arco et. al. Theorem 11 (1, 2] Let f be afunction defined overGF(q)n. An SSS defined by f can be k-cheating immune only if 2k < n. We improve this bound for fields of characteristic 2 and find a similar result for fields of general characteristic. For characteristic 2, it suffices to combine Theorem 7 and Theorem 8, together with the following well-known theorem: Theorem 12 (10, Theorem 2] Let f be a Boolean function on GF(2)n. If f is t-resilient and satisfies the propagation criterion of degree e then t + f. < n. Moreover t + e = n - 1 {==} t = 0, e = n - 1 and n is odd. Corollary 13 Let f be a Boolean function of n binary variables. An SSS defined by f can be k-cheating immune only if 2k ::;n - 2. We will prove that the first part of Theorem 12 also holds for functions defined over any finite alphabet F of order q ~ 2 endowed with the structure of an abelian group. Therefore, we need to introduce some general background on the theory of finite groups. 117 6 Recall that the homomorphisms from the abelian group :F into the multi- plicative group lFq are given by: x x As it is proven in [3], a function is t-resilient if and only if Wf(w) = 0 for all W with wt(w) :::::t. Analogously, a function satisfies the propagation criterion of degree l if and only if rf(w) = 0 for all w with wt(w) ::::: l. We now generalize the Wiener-Klitchine theorem for finite fields. Lemma 15 For any function f : lF~ -> lFq where q = pS with p prime, the following relations between the Walsh spectrum and the autocorrelation spectrum of the function f hold: Wrf(s) = Wf(s)Wf(s) and rf(k) = «: L Wf(S)Wf(sWr(sk1. (3) sEJFq 118 7 Proof. We start with the first equality by using (2). WrJ(s) = L rf(w)(}tr(-ws) = LL (}tr(f(x+w)-f(x)-ws) WElF:; WElF:; XEJF':; LL (}tr(f(k)-f(x)-ks+xs) = L (}tr(f(k)-ks) L (}tr(-f(x)+xs) kElF:; xElF',j Using this equality, we derive: L Wf(S)Wf(S)(}tr(sk) LL rf(w)(}tr(-ws)(}tr(sk) sErF:; SEIF:; wEJFq l L rf(w) L (}tr«-w+k)s) = rf(k) qn. wElF:; sElF:; In the last step of the the proof, we used Lemma 14. o Lemma 16 For any affine subspace V < ~ and any function from IF~ into IFq where q = pS with p prime: L kEV rf(k) = 1:j_1 L Wf(s)Wf(s). sEVj_ (4) Proof. Using (3) and Lemma 14 we have: kEV kEV sElF:; «: L Wf(S)Wf(s) L (}tr(sk) = 1:j_1 L Wf(S)Wf(s). sElF:; kEV sEV j_ o Theorem 17 If f is t-resiZient and satisfies the propagation criterion of degree Z, then t + Z ::; n - 1. Proof. Consider equation (4) with Va = {u E IF~ : Ui = 0 if ai # O} for any a such that wtCa) = Z. The dual vector space is defined by V j_ = {u E IF~ : Ui = o if ai = O}. As a consequence, equation (4) leads to q2n-p = L Wf(s)Wf(s). (5) sEVj_ 119 REFERENCES 8 ti -I for any u E v- and f is t-reslient, t should be strictly less Because wt(u) ::::; than ri -I, because otherwise we arrive at contradiction with equation (5). 0 This theorem leads to the same bound on the number of cheaters as proven by D'Arco et. al. The proof is totally different, much shorter and exploits a relation between the properties of the defining function of the SSS. Moreover, from Theorem 17, we derive that any (n, n) perfect SSS can never be cheating immune because an (n, n) perfect SSS is defined by a (n - l.j-resilient function. REFERENCES [1] P. D'Arco, W. Kishimoto, D. Stinson, On Cheating-Immune Secret Sharing, International Workshop on Coding and Cryptography (WeC 2003), 2003. [2] P. D' Arco, W. Kishimoto, D. Stinson, Properties and Constraints of Cheating-Immune Secret Sharing Scheme, Applied Discrete Mathematics (to appear). [3] K. Copalakrishan, D.R. Stinson, Three Characterizations of Non-Binary Correlation-Immune and Resilient Functions, Designs, Codes and Cryptog- raphy, Vol. 5, pp. ~41-:Lbl, 1995. [4] J. Pieprzyk, X.-M. Zhang, Cheating Immune Secret Sharing, ICICS 2001, LNCS 2229, pp. 144-149, 2001. [5] J. Pierpzyk, X.M. Zhang, Constructions of Cheating Immune Secret Sharing, ICICS 2001, LNCS 2288, pp. 226-243, 2002. [6] J. Pieprzyk, X.-M. Zhang, Cheating Prevention in Secret Sharing over GF(pt), Indocrypt 2001, LNCS 2247, pp. 79-90, 2001. [7] B. Preneel, W. Van Leekwijek, L. Van Linden, R. Govaerts and J. Vande- walle, Propagation Characteristics of Boolean Functions, EUROCRYPT'90, LNCS 473, pp. 161-173, 1991. [8] T. Siegenthaler, Correlation-Immunity of Nonlinear Combining Functions for Cryptographic Applications, IEEE Trans. on Inf. Theory, Vol. 30, Nr. 5, pp. 776-780, 1984. [9] M. Tompa, H. Woll, How to Share a Secret with Cheaters, Journalof Cryp- tography, Vol, 1, Nr. 2, 1988, pp. 133-138. [10] Y. Zheng, X.M. Zhang. On Relationships among Avalanche, Nonlinearity, and Correlation Immunity, Asiacrypt 2000, LNCS 1976,470-482, 2000. 120 OPTIMAL STRATEGIES FOR HIERARCHICAL GUESSING PROBLEM' Anahit R. Ghazaryan Edward C. van der Meulen Institute for Informaties and Automation Problems Department of Mathemat ics of Armenian National Academy of Sciences Katholieke Universiteit Leuven P. Sevak str. 1, 375014 Yerevan, Armenia Celestijnenlaan 200 B, 3001 Heverlee, Belgium ghanahit@ipia.sci.am edward. vandermeulen@wis.kuleuven.ac.be We investigate the problem of two-stage hierarchical guessing, first studied by Merhav, Roth and Arikan, from the point of view of optimality at both stages. In this model the guesser first makes guesses with respect to a higher distortion level Dl, and then, after his first success, directs the guesses to distortion level D2' D2 < Dl. He can make the first step as efficient as possible, i. e., with optimal guessing exponent given by E( Dl, (}). It is interesting to determine whether the refinement can be done as efficient as with a direct guessing strategy for D2, i.e., with optimal guessing exponent given by E(D2'{}). It is shown that for afinite-alphabet memoryless source and one distortion measure d, such optimal guessing from a coarse guess within distortion level Dl to a finer guess within distortion level D2 can be achieved. 1. INTRODUCTION We consider a natural interesting extension of the guessing problem - hierar- chical guessing, which takes advantage of the distortion information obtained at each step. This search model was first studied by Merhav, Roth and Arikan in [6] who derived a lower bound on the best attainable two-stage guessing exponent, i.e., the asymptotically minimal exponential growth rate of the (}-th moment of the number of required guesses, for the case of two distortion measures dl and d2 and distortion levels Dl and D2' and demonstrated its achievability under the assumption that the guesser knows in advance the type class of the given source vector x", In this paper we investigate this guessing problem from the point of view of optimality at both steps. At first, let us revisit the Bob-and-Alice guessing game from the paper of Arikan and Merhav [1]: Bob draws a sample x" from a random vector X", Then, Alice, who does not see z", but wishes to learn it at least approximately, in the framework of a given distortion, presents to Bob a fixed sequence of guesses i;n(I), *This research was supported in part by Project GOA/98/06 of Research Fund K.U.Leuven, INTAS Project 00-738, and by a NATO Research Fellowship to the first author for a stay at K.U.Leuven. 121 5;n(2), .... Bob checks the guesses successively until a guess 5;n(i) is found such that d( xn, 5;n(i)) ::; D for some distortion measure d and distortion level D. Bob informs Alice of 5;n(i) and in return Alice pays Bob an amount G(xn) = i equal to the number of guesses examined by Bob. It is known (see [1]) that for a finite- alphabet memoryless source P and arbitrary nonnegative real (!, the optimal (in the sense of minimizing) achievable exponential growth rate of the (!-th moment of the number of guesses E[G(Xn)€!] (as the vector dimension n tends to infinity) is given by the guessing exponent function E(D, (!) defined by /::, E(D, (!) = max[(!R(D, Q) - D(QIIP)]' Q where the maximum is taken over the set of all memoryless sources Q with the same alphabet as P, R(D, Q) is the rate-distortion function for Q with respect to (w.r.t.) distortion measure d and distortion level D, and D(Q 11 P) is the relative entropy between Q awl P. Suppose Alice now wants to first make guesses with respect to an initial larger distortion Dl, and then after her first success, if necessary, refine it for distortion D2. In the limit of many stages corresponding to many distortion-level thresholds, she will eventually take full advantage of the exact distortion-level irtformation after each trial. In this paper we consider this problem of two- stage hierarchical guessing, with the goal of achieving the optimal description at each step, Moro precisely, in the Bob-and-Alice guessing game explained above Alice can make the first step as efficient as possible, i.e., with asy mptotioally minimal exponential growth rate of E[G(Xn)€!] given by the guessing exponent function E(DI' (!) (based on [1]). Later, after deciding that the source message z" needs to be guessed more accurately, she can provide to the original guessing list an addendum, thereby achieving distortion D2. It is interesting to determine whether this refinement can be done as efficient as if Alice had directed her guesses immediately to D2' i.e., with asymptotically minimal exponential growth rate of E[G(Xn),,] given by the guessing exponent function E(D2, (!). This problem is closely related to the well-known successive refinement problem (see [2], [.5],[7]) where the goal is also to achieve an optimal description at each step but from the point of view of rate-distortion theory. In this paper we prove that for a finite-alphabet memoryless source, distortion measure d, distortion levels Dl and D2 (D2 < Dl), optimal (in the noted sense) guessing from a coarse guess within distortion level Dl to a finer guess within distortion level D2 can be achieved. In the proof of our theorem we present a two-stage guessing strategy that does not assume any information about the type class of the given source message. Our proof is based on the so-called type covering lemma (see [3], [4]). 122 Il. PROBLEM STATEMENT: NOTATION AND MAIN RESULTS Consider a discrete memoryless source (DMS) with probability mass function (PMF) P = {P(x), x E X} over a finite alphabet X. Then the probability of a vector x" = (Xl'···' xn) is given by n pn(xn) = IT P(Xi). i=l Let X be a finite reproduetion alphabet. We consider a single-letter distortion measure d:XxX-[O,oo). Let xn and xn denote the n-th order Cartesian powers of X and X, respectively. The distortion measures of n-length sequences in xn x Xn is defined by the average per-letter distortions: W here x n -_ (Xl,···,Xn ) EA.vn ,x An -_ (AXl,···,Xn A) EA..vn Throughout the paper, logarithms and exponents are taken to the base 2. The operator E[·] will denote expectation w.r.t. the underlying source P unless otherwise specified. 0(1) will denote a quantity that tends to 0 as n - 00. Now we will recall the definitions of some information-theoretic functions. For PMF's Pand Q on X, and astochastic matrix W = {W(.i: I x): x E X, .i: EX}, the Shannon entropy is defined as HQ(X) = - L Q(x)logQ(x), xEX the mutual information is given by W(.i: I x) IQw(X; X) A = ~ f=. Q(x) W(x I x) log L: Q(x) xEX A W(.i: I x)' xEX and the relative entropy, or the Kullback-Leibler information divergence, between Q and P is D(Q 11 P) = L Q(x) log ~((x)). xEX X Here QW(x,.i:) = Q(x)W(.i: I x) is the joint PMF of random variables X and X. 123 The rate-distortion function R(D, Q) for a DMS Q on X w.r.t. a single-letter distortion measure d on X x X and distortion level D ~ ° is defined as R(D,Q) = min. Ipw(X;X), W(i; I z): EQw d(X, xl ::;D where EQW denotes expectation w.r.t. PMF QW. Definition 1 (Arikan, Merhav (lJ): A D-admissible guessing strategy w.r.t. the distortion measure d for the set of sequences xn is an ordered list of vectors in Xn such that for every xn E xn there exists an i;n(i) E Ç;n with d(xn, i;n(i)) < D. Definition 2 (Arikan, Merhav (lJ): The guessing function Gn(-), induced by a D-admissible guessing strategy Ç;n w.r.t. distortion measure d, is the function that maps each x" E Xn into a positive integer, which is the index i of the first guessing codeword i;n(i) E Ç;n such that d(xn, i;n(i)) :::;D. Definition 3 (Arikan, Merhav (lJ): For any e ~ 0, DMS P and distortion measure d, the optimal (!-th order single-stage guessing exponent theoretically attainable at distortion level D is defined, whenever the limit exists, as where the minimum is taken over all D-admissible guessing strategies Ç;n w.r.t. distortion measure d. Definition 4 (Arikan, Merhav (1}): For any e ~ 0, DMS P and distortion measure d, the ë:th order single-stage guessing exponent function at distortion level D is defined as c: E(D,[i) = mgx[(!R(D,Q) - D(QJJP)], where Q ranges over all PMF's on X. It was shown in [1] that for a finite-alphabet DMS P and distortion measure d, [(D, (!) exists and has a single-letter characterization given by [(D, (!) = E(D, (!). (1) Now let us describe the scheme of an admissible two-stage hierarchical guess- ing strategy. Such scheme consists of two steps. 1. Alice guesses the value x" of a random vector X" within distortion level Dl using a Dl-admissible guessing strategy ç;~ w.r.t. the distortion measure d: 124 Let i;n(i*) = i;n(i*(xn)) be the first success, i.e. the first guessing codeword such that d(xn,i;n(i*)) ::; Dj. 2. In order to achieve distortion level D2, she provides some addendum guessing list g; (i*): to the first part g~(i*) (up to and including i;n(i*)) of her guessing list g~: such that there exists i;n( i*, j*) E g;( i*) with d(xn, i;n( i*, j*)) ::; D2, which implies that the concatenated guessing list gn(i*) = {Ç~W), g;Wn is a D2-admissible guessing strategy w.r.t. distortion measure d for x", Formally we have: Definition 5 (Merhao, Roth, Arikan [6}): An admissible two-stage guessing strategy gn with an intermediate distortion level Dj and a target distortion level D2 (D2 < Dj) consists of a Dj-admissible guessing strategy and a set of addendum guessing lists g~(i*) = {i;n(i*,I),i;n(i*,2), ... }, i* = 1,2, ... , such that for all i* = 1,2, ... , the following condition takes place: V xn E Xn, with d(xn, i;n(i*)) ::; Dj, such that d(xn,i;n(i)) > Dj Vi E {I, ... ,i* -I}, :Ji;n(i*,j*) E g~(i*) such that d(xn,i;n(i*,j*))::; D2. Definition 6 (Merha», Roth, Arikom [6]): The guessing function GnU in- duced by a given admissible two-stage guessing strategy gn with an intermediate distortion level Dj and a target distortion level D2 is for all x" E xn given by Gn(xn) = G;,(xn) + G~(xn), where G;,(-) is the guessing function induced by the associated Dradmissible guessing strategy g~, and, if G;,(xn) = i*, G;;(xn) is the index j of the first codeword i;n(i*,j*) E 9;(i*), such that d(xn,i;n(i*,j*)) ::; D2. Definition 7: The guessing is said to be successively optimally refining from distortion level Dj to distortion level D2, if there exists an admissible two-stage guessing strategy gn = {g~, g;(i*), i* = 1,2, ... } with an intermediate distortion level Dj and a target distortion level D2' such that for any {! ~ 0 (2) 125 and (3) In view of (1), conditions (2) and (3) of Definition 7 ensure achieving [(Dl, (}) at the beginning stage and at least [(D2, (}) with the overall guessing scheme, which explains our terminology "successively optimally refining". Our main result is the following. Theorem: For every finite-alphabet memoryless source P and distortion mea- sure d, a successive optimal refinement of guessing from distortion level Dl to distortion level D2 (D2 < Dl) can be achieved. Remark: In the proof of our result we use the method of types and the type covering lemma due to Berger [3] and Csiszár and Körner [4]. Let P(X) be the set of all PMF's on X. For each positive integer n we set Qn = {Q E P(X) : Q(x) E {O, l/n, 2/n, ... , I} for all x EX}. For given xn E xn we define Q",n(X) = ~ . (number of occurrences of x in xn). Q",n is called the type of z", Remark that Qxn is a member of Qn by definition. For Q E Qn, the set TQ of all Q-typical sequences in xn is given by Type covering lemma ([4], Lemma 2.4.1, p. 150): For any Q E Qn, distortion measure d, and distortion level D ~ 0, there exists a codebook CQ C Xn such that for every x" E TQ and at the same time 1 -log n ICQI < R(D, Q) + 0(1). Proof of the theorem: We first construct an optimal Dl-admissible guessing strategy o; by a similar way as in [1]. The guesser does not know in advance the type of the given vector z" from xn. To overcome this difficulty, we order the types Q in Qn according to increasing values of the rate-distortion function R(Dl, Q): where R(Dl,Qi):S; R(Dl' Qi+l) for all i < IQnl. For every type Q E Qn, let us denote by Cb a certain codebook in Xn that satisfies the type covering lemma for distortion level Dl, 1= 1, 2. Consider the guessing 126 list composed of the ordered concatenation of the corresponding codebooks Cb" Cb2' ... , Cb[Qn[ where the order of the vectors within each Cbi is immaterial: o: ~ {Cb" Cb2'···' Cb[Qn[}. Then, for x" E TQi, the number of guesses within distortion level Dl can be estimated by Therefore (4) Let i;n( i*) be the first success with distortion level Dl. Denote its corre- sponding type in the guessing list o; by Qj*, i.e., i;n(i*) E eb,*, j* :S i. After the first success with distortion level Dl, the guesser will reorder the types Q in {Qj*, ... , QIQnl} according to increasing values of the rate-distortion function R(D2,Q): where R(D2, Q;) < R(D2, Q;+l) for alll < t < IQnl - j*. Denote by C~,* the set of all i;n E Cb,* which precede i;n( i*) in Cb*. In order to guess x" E TQi within smaller distortion level D2, the guesser wilt add to the first part ' çl('*) c: {Cl nZ = Cl Q" Cl .. " ~n('*)} Q,*_" Q,*'X Z of his original guessing list ç;, an addendum Then the resulting guessing list çn(i*) = {Ç;,(i*), ç,;(i*)} will be D2-admissible for given xn E TQi. It can be easily shown that the total number of guesses within distortion level D2 can be estimated by Hence E [Gn(xn)e] < exp{n[E(D2, (!) + o(l)]}. (5) From (4) and (5) we obtain . 1 lim sup -logE [G~(xn)e] < E(Dl, (!), (6) n~oo n and 127 Using the converse part of Theorem 1 of Arikan and Merhav [1] and (6), we get Therefore, we have shown that successive optimal refinement of guessing from distortion level Dl to distortion level D2 (D2 < Dl) can be achieved. REFERENCES [1] E. Arikan and N. Merhav, "Guessing subject to distortion", IEEE Trans. Inform. Theory, vol. 44, no. 3, pp. 1041-1056, 1998. [2] W. H. R. Equitz and T. M. Cover, "Successive refinement of information", IEEE Trans. Inform. Theory, vol. 37, no. 2, pp. 269-274, 1991. [3] T. Berger, Rate Distortion Theory: A Mathematical Basis for Data Com- pression, Englewood:Cliffs, NJ: Prentice-Hall, 1971. [4] I. Csiszár and J. Körner, Information Theory: Coding Theorems for Discrete Memoryless Systems, New York: Academic, 1981. [5] V. Koshelev, "Hierarchical coding of discrete sources", Probl. Pered. Infor- mat., vol. 16, no. 3, pp. 31-49, 1980. [6] N. Merhav, R. Roth and E. Arikan, "Hierarchical guessing with a fidelity criterion" , IEEE Trans. Inform. Theory, vol. 45, no. 1, pp. 330-337, 1999. [7] B. Rimoldi, "Successive refinement of information: characterlzatiou uf the achievable rates", IEEE Trans. Inform. Theory, vol. 40, no. 1, pp. 253-259, 1994. 128 CODE CONSTRUCTIONS FOR MULTIPLE-ACCESS CHANNELS WITH SIDE INFORMATION AT THE ENCODERS P. Vamoose Katholieke Universiteit Leuven, div. ESAT Kasteelpark Arenberg 10, B-3001 Leuven, Belgium Peter.Vanroose@esat.kuleuven.ac.be Explicit code constructions are presentedfor discrete memoryless 2-input multiple- access channels in three different situations: when there is feedback from the channel output to one of the encoders; when the encoders see (part of) the channel input generated by the other encoder; and when there is a noiseless communication link with limited capacity between the encoders. INTRODUCTION The multiple-access channel (MAC) is a communication channel with two inputs and one output. The MAC is a so-called multi-user communication channel. There are two information sources which are encoded independently by the two encoders. The output is observed by a single decoder whose task it is to decode both source messages. Multi-user information theory was initiated by Shannon in his landmark 1961 pa- per [2]. In the classical MAC situation, the two encoders do not communicate, and neither is there any communication from the receiver to the encoders. MESSAGE 1 RECEIVER 1 DECODER MESSAGE2 RECEIVER2 For a one-way channel, transmission with arbitrarily small error probability is possible whenever the transmission rate is smaller than the channel capacity C. For the channel with transition probabilities P (y [x) it turns out that this number is the maximal mutual information between channel input and output: '" C = max J(X /\ Y) := max ~ Px(x) '" ~ P(ylx) P(ylx) log --, Px Px XEX yEY Py(y) 129 where the maximum is taken over all possible assignments of the probability distribu- tion Px on the input alphabet X, and where Py(y) = Lx Px(x)P(ylx). In contrast, capacity for a MAC is a two-dimensional concept, since there are two information sources and increasing the transmission rate for one source may decrease the rate for the other source. The capacity region of a MAC is then the region con- taining all rate pairs for which transmission with arbitrarily small error probability is possible. The capacity region of the MAC was found in 1971 by Ahlswede [3] and (in a simpler form) in 1972 by Liao: C=CO{(RI,R2) 10:::::RI:::::/(XI/\YIX2), 0::::: R2 :::::1(X2 /\ YIXI), RI + R2 ::::: /(XIX2 /\ Y), PXtX2 = PXt . PX2} i.e., a convex hull of the union of pentagon-shaped areas, one for each possible inde- pendent assignment of probability distributions to the input alphabets XI and X2. A MAC is called deterministic if its output is unambiguously determined by the channel inputs. Thus all channel transition probabilities are either 1 or O. III contrast to one-way channels, determmistic MAC::, are not necessarily trivial, since there is an interesting trade-off between the rates of the different communication links, and in general there are coding schemes which operate well above the time-sharing line, i.e., the terminals cooperate by using a cleverly designed coding scheme, even without actual mutual communication during transmission (apart from using the channel). Consider the two simplest nontrivial deterministic discrete memoryless MACs, both with XI = X2 = {a, I}: the binary adder channel (BAC) defined by Y = X I+ X2 and the binary switching channel (BS-MAC) where Y = (X I + 1) . Xz. In hoth cases the output is ternary. For both channels, coding schemes will be given which use some form of side information at the encoders [1]. SOMEillSTORY For the one-way channel, feedback does not increase channel capacity, although it may of course simplify the coding scheme. For the BAC feedback increases the capacity region: the non-feedback capacity region of the BAC is given by RI + R2 = 1.5 as can be seen on the figure below (shaded area) while feedback capacity is given by the solid line which goes through the point (0.79113, 0.79113). 130 R2 Capacity region of the BAC R2 Capacity region of the BS-MAC o In 1975 Gaarder and Wolf [4] gave a simple example of a coding scheme for the BAC with RI + R2 > l.S. Their scheme starts with a "normal" channel use where both encoders send n bits of their (binary) message uncoded. Feedback tells them which of the n transmissions were received as "1" and hence are ambiguous to the receiver. Now the encoders cooperate to make the decoder receive a ternary stream representing the ambiguous bits of message 1. From this the decoder can of course also derive the corresponding bits of message 2. Hence each encoder transmitted n bits of information in n + ~log3(2) channel uses (on the average), i.e., RI = R2 = 2/(2 + log3(2)) = 0.76019. No closed form expression has been derived yet for the capacity region of the general MAC with feedback. In 1981 Cover and Leung [5] found an inner bound to the feedback capacity region of the MAC, i.e., an achievable rate region: C = {(RI, R2) o s Rl :s I(XI /\ YIX2U), O:s R2:S I(X2 /\ YIXIU), RI + R2:S I(XIX2 /\ Y), PXIX2U = pu· PXIIU· PX2IU} where U is an auxiliary random variable with #U :s min(1 + #XI#X2, 2 + #y). Willems [6] showed that this Cover-Leung region is also achievable with partial feedback (i.e., only to one of the two encoders), and that for MACs for which X I is a function of Y and X2, the Cover-Leung region is optimal (i.e., is the feedback capacity region). The BAC satisfies this condition, so the feedback capacity region of the BAC is known, see the outer line of Fig. 1, and the equal-rate point RI = R2 = 0.79113 can be achieved and is optimal [10]. For the BS-MAC, which also satisfies the condition, the Cover-Leung region coincides with the non-feedback region, so for this channel feedback does not increase capacity. 131 In 1982 Willems [7] determined the capacity region of the MAC with partially cooperating encoders, in terms of the capacity of the link between the two encoders. Also in 1982 Wil1ems and van der Meulen [8] determined the capacity region of the MAC with mutually informed ("cribbing") encoders. This is done for all 5 possible cribbing situations, viz. where one or both encoders see the full codeword of the other encoder or only the initial part of it (either including the next symbol to be transmitted or not), Just like for the classical MAC, the capacity regions turn out to be the convex hull of the union of pentagons, but in the more 'informed' cases the union must be taken over all dependent input distributions PX,X2' notjust Px, . PX2. Coding for the three channel situations described above will be considered in the three following sections. PARTIAL FEEDBACK STRATEGIES FOR MULTIPLE-ACCESS CHANNELS In 1983, Vinck [9] used a technique similar to Schalkwijk's unit square subdivision for the binary multiplying channel to construct a coding scheme for the BAC with feedback with rate point RI = R2 = 0.7909. This scheme is already very close to capacity (RI = R2 = 0.79113). In 1999 Kramer [13] improved this scheme, and he was able to asymptotically achieve any point in the capacity region. So coding for the BAC with full feedback is fully solved. The problem of constructing coding schemes for the BAC with partial feedback has not been considered yet. The following simple coding scheme with rate pair (1, 0.5) uses feedback to en- coder 2 only: Encoder 1 sends its information bits uncoded, hence RI = 1. Encoder 2 also sends its information bits uncoded, but whenever the channel output is 1, he retransmits the previously sent symbol. The decoder segments the output stream into chunks of (zero or more) Is followed by a single 0 or 2. A sequence of k Is followed by a 0 is decoded as k ones and a zero for message 1, and as a single zero for message 2. A sequence of k Is followed by a 2 is decoded as k zeroes and a one for message 1, and as a single one for message 2. So this scheme is clearly uniquely decodable and R2 = 0.5 since on the average half of the transmissions are retransmissions. The rate point (1,0.5) lies on the boundary of the (feedback) capacity region. Unfortunately, this scheme does not generalise to other interesting rate points by just modifying Px, to be something else than 0.5. 132 For the noiseless BS-MAC, uniquely decodable block code pairs exist which asymp- totically reach any point in the (feedback) capacity region, see [11, 12]. Hence, for this channel, no improvements are possible when using (partial) feedback. However, rate points close to the boundary of the capacity region require codes with high block lengths. If encoder 1 receives feedback from the receiver, the following simple coding strategy achieves any point on the boundary of the capacity region: Pick any rate RI ::: 0.5, and precode source 2 into a binary stream with P(X2 = 1) = RI. Encoder 2 just transmits this binary stream, hence R2 = h(RÜ. Encoder 1 just transmits its (uncoded) information symbol. Whenever encoder 2 transmits a 0, the channel output is 0 and the decoder cannot determine the information bit from message 1. But the feedback informs encoder 1 of this fact, so encoder 1 keeps retransmitting this bit until the channel output is 1 or 2. Hence the effective transmission rate for message 1 is RI. The achieved rate point (RI, h(RI) lies on the boundary of the capacity region. Choosing RI = ~ even gives a rate sum RI + R2 = log2(3), i.e., a total cooperation rate! CODING FOR DETERMINISTIC MACS WITH PARTIALLY COOPERATING ENCODERS Suppose now that there is no feedback link from the channel output to the en- coder(s) but instead the encoders can exchange some information. In 1983 F.Willems [7] proved that the capacity region in the case where there is a rate C l2 communication link from encoder 1 to encoder 2 and a rate C2l link from encoder 2 to encoder 1 equals C = {(Rl, R2) 0:::: RI:::: I(XI /\ YIX2U) + C12, 0:::: R2 :::: I(X2 /\ YIX!U) + C2!, RI + R2 :::: I(X!X2 /\ YIU) + C!2 + C2! R, + R2 :::: I (X !X2 /\ Y), PX,X2U = Pu . Px,IU . PX2IU} where U is an auxiliary random variable with #U ::::min(l + #XI#X2, 2 + #y). It is fairly easy to achieve good rate pairs with a coding scheme of relatively short block length: Consider e.g. the BAC, fix a block length n and suppose Cl2 = kiln and C2! = k2/n. Chose an optimal uniquely decodable code pair of block length n with rates (R!, R2) and use this pair for m rounds. Meanwhile the encoders exchange for a totalof ksrn + k2m bits of information which is not yet sent over the channel. After these m rounds they start a total cooperation round to transmit those mek! + k2) bits which are now common knowledge of both encoders: Since the BAC channel 133 output is ternary, these bits must first be converted to a ternary t-tuple, where t = r m(k1 + k2) log(2) / log(3)1. Then, in t channel uses, this ternary t-tuple can be made appearing at the channel output: for a 0 both encoders send a 0, for a 2 both send a 1 and for a 1 encoder 1 sends a 0 and encoder 2 sends a 1. So, within nm + t channel uses, the effective transmission rate pair is (nm Rç + kçm, nmR2 + k2m)/(nm + t) which is slightly smaller (due to the rounding in the definition of t) than (R +C R +C ) log2(3) I 12, 2 21' log2(3) + Cl2 + C21 The rounding "error" can be made arbitrarily small by using the continued frac- tion expansion oflog2(3) which is [1; 1, 1,2,2,3,1,5,2,23, ... l since this gives the l following "best rationallower approximations" for log2(3): 1, ~, ~~,~, 160 s...4, E.g., representing 1054 bits with 665 ternary symbols has a redundancy of only 0.000063 bits! When e.g. n = 7 and CI2 = C21 = 1/7 and using the optimal uniquely decod- able code pair with 12 and 47 codewords respectively, RI = 0.5121 and R2 = 0.7935. Taking m = 527 gives t = 665 hence the effective rate pair with partially cooperating encoders is (0.5549,0.7934). Note that the increase in throughput is smaller (or even nonexisting) when the base rate is closer to capacity. It is possible to achieve an even better rate pair with a single block code of block length 7. The additional knowledge of the encoders is a single bit per codeword. In a block coding scheme, no information is passed from one block to the other, so this extra bit of knowledge at encoder 1 must refer to the current message of encoder 2 and be used for choosing the current codeword 1. Dividing the message sets in two equal halves, this knowledge corresponds to knowledge of which half the message belongs to. More generally, when CI2 = C21 = *, uniquely decodable codes of block length n can be constructed as follows: create 4 sets SI, S2, S3 and S4 of n-tuples of size M I and also 4 sets TI, T2, T3 and T4 of size M2. Form all possible componentwise sums of n-tuples from SI with TI, from S2 with T3, from S3 with T2, and from S4 with T4. If all these sums are different, the following coding scheme is uniquely decodable: Encoder 1 uses Si as codeword set and encoder 2 uses Ti, where i = 1,2, 3,4 when the two exchanged bits are 00,01,10 or 11, respectively. 134 CODING FOR DETERMINISTIC MACS WITH CRIBBING ENCODERS When the encoders observe the symbols transmitted by the other encoder, some of the above described more simple feedback schemes can still be used, viz. the Gaarder- Wolf scheme, but the 'interactive' schemes of Vinck and Kramer require the stronger condition that each code symbol must be observed by the other encoder before trans- mission of this symbol. If this specific cribbing information is only available at one of the two encoders, the partial feedback schemes can still be used. In the case ofthe BS-MAC, the capacity region with cribbing encoders is not larger than in the ordinary communication situation. REFERENCES [1] C.E. Shannon, "Channels with side information at the transmitter", IBM J. Res. Devel. 2, pp. 289-293, 1958. [2] C.E. Shannon, ''Two-way communication channels", in: Proc. 4th Berkeley Symp. Math. Stat. & Prob. 1, pp. 611-644, 1961. [3] R. Ahlswede, "The Capacity Region of a Channel with Two Senders and Two Receivers", Ann. Prob. 2, pp. 805-814, 1974. [4] N.T. Gaarder and J.K. Wolf, "The capacity region of a multiple-access discrete memoryless channel can increase with feedback", IEEE Transactions on Infor- mation Theory 21(1), pp. 100-102, 1975. [5] T. Cover and C. Leung, "An achievable rate region for the multiple-access chan- nel with feedback", IEEE Transactions on Information Theory 27(3), pp. 292- 298, 1981. [6] FM.J. Willems, "Codering en Capaciteitsgebied voor het Binary Erasure Multi- ple Access Kanaal met Feedback", Second Symposium on Information Theory in the Benelux (Zoetermeer), pp. 123-128, 1981. [7] FM.J. Willems, "Het Discrete Geheugenloze Multiple Access Kanaal met Gedeeltelijk Coöpererende Encoders", Third Symposium on Information Theory in the Benelux (Zoetermeer), pp. 157-161, 1982. [8] FM.J. Willems and E.C. van der Meulen, "Het Discrete Geheugenloze Multi- ple Access Kanaal met Afkijkende Encoders", Third Symposium on Information Theory in the Benelux (Zoetermeer), pp. 163-170, 1982. 135 [9] A.J. Vinck, "Constructive Superposition Coding for the Binary Erasure Multi- ple Access Channel", Fourth Symposium on Information Theory in the Benelux (Haasrode), pp. 179-188, 1983. [10] F.M.J. Willems, "Two Results for the Multiple Access Channel with Feedback", Fourth Symposium on Information Theory in the Benelux (Haasrode), pp. 189- 198,1983. [11] P. Vamoose and E.C. van der Meulen, "Coding for the Binary Switching Multi- ple Access Channel", Seventh Symposium on Information Theory in the Benelux (Noordwijkerhout), pp. 183-189, 1986. [12] P. Vamoose, "Code construction for the noiseless binary switching multiple- access channel", IEEE Transactions on Information Theory 34(5), pp. 1100- 1106,1988. [13] G. Kramer, "Feedback strategies for a class of two-user multiple-access chan- nels", IEEE Transactions on Information Theory 45(6), pp. 2054-2059,1999. 136 TWO-STAGE FACE RECOGNITION INCORPORATING INDIVIDUAL-CLASS DISCRIMINANT CRITERIA Fei Zuoa and Peter H. N. de Withab aEindhoven University of Technology P.O.Box 513, 5600MB Eindhoven bLogicaCMG, EHAT, P.O. Box 7089, 5605JB Eindhoven F.Zuo~tue.nl and peter.d8.with~logicacmg.com In this paper, we propose a two-stage face recognition method based on sta- tistical subspace techniques. The aim of our research is provide a better dis- crimination between similar faces. At the first stage, we use a PCA +LDA classification technique to select a set of face candidates that have clos- est resemblance to the given face to be classified. At the second stage, we employ a novel Individual-Class Discriminant criterion (lCD) to select the best-match face from the reduced candidate sets. The lCD criterion is characterized by considering the discrimination information between one individual class (i. e. different images of the same person) and all the other classes to be separated. Experimental results show that the recognition rate improves from 92% to 98% when our two-stage recognition is applied, as compared to the conventional PCA+LDA method. 1. INTRODUCTION Face recognition provides a direct and innocent way for person identification, which can be used in a wide range of application areas, such as professional human databases and more recently video surveillance. The intended application area is the embedding of face detection and recognition in a home networking environment [8]. Face recognition in an arbitrary and unconstrained environment remains a difficult task. When used in a more generic environment, the large variability of face appearances causes increased recognition errors. If we consider a face as a point in an N-dimensional image space I, where N denotes the number of pixels characterizing the face, the face recognition problem can be formulated as a comparison problem in this N-dimensional space. Since comparisons in the original space are resource consuming and may be suboptimal from a discriminative point of view, an M-dimensional (with M « N) feature space F is usually formed, so that different faces transformed to F can be more 137 easily separated. A principal problem in designing reliable face recognition is that different human faces, when captured under the same conditions, are often more similar than the same face captured under very different conditions [1]. The intra- personal variances in space F have to be large enough in order to discriminate the inter-personal variances, thereby avoiding interference with the identification of the correct person. This cannot be easily ensured, especially when the number of persons in the database becomes large. Several methods from literature pursue a transformed feature space with reduced dimensionality, based on the statisticallearning of face images. The so- called 'eigenface' method [2] has been widely applied for face recognition. It is based on the Principal Components Analysis (PCA) of face images and has been proven an efficient representation method for faces. Although PCA provides a good reduction of dimensiouality for faces, it is not optimal for discrimination. This discrimination aspect relies more on the separation between different faces (different persons) than the spread of all faces [3]. Fisherface, which is based on Linear Discriminant Analysis (LDA), finds a projection direction that maxi- rulzes the ratio of the between-class variances and the within-class variances [4]. This approach has been proven to be effective for face classification. However, when having more faces and thus a multi-class classification problem, H Fisher- face criterion is not optimal, because it over-emphasizes the global between-class variances which may cause overlaps of neighboring classes [6]. In [5] and [6], the between-class variance is reformulated by incorporating a weighting factor that is related to the intra-class distances. However, the transformation is still based on a global maximum of the between-class variance and may lead to a mixing of locally closely located classes. In this paper, we propose an Individual CI::lsS Discriminant (lCD) criterion which aims at finding the discrimination directions for individual classes, instead of seeking a global transformation for discriminating all classes. To discriminate N classes, we use N independent transformation functions, each of which identi- fying a discriminative direction that maximizes the distances between a certain class and all the remaining classes, while minimizing the within-class variances. The i-th discriminative function gives the transformation that optimally discrim- inates the i-th class from all other classes (see Fig. I). The recognition is carried out by projecting a given face to the N subspaces. The face closest to the given face (with index i) is most likely the person to be recognized and reported as a match, meaning that the closest face is found within the i-th class cluster in the 138 (a) (b) (c) (d) Figure 1: Different subspaces for face recognition. (a) PCA space (6 classes). (b) LDA space (global between-class scatter maximized). (c) the Class 4 lCD (the Class 4 discriminant criterion) (d) the Class 6 lCD (the Class 6 discriminant criterion) i-th subspace. The calculation of the N transformations is straightforward. It can be achieved by performing a redefinition of the between-class variances in the LDA method, which will be illustrated in the next section. In our experiments with the AT&T face database, our approach achieves a better result than the traditional PCA +LDA approach. We also use lCD as a second discrimination step after the LDA ap- proach, which achieves further improvement. The analysis of these experiments will be presented in Section 3. The conclusion will be given in Section 4. 2. THE DISCRIMINANT FUNCTIONS Since we develop a two-stage face recognition, we will individually address both the LDA and the lCD techniques. Linear Discriminant Analysis (LDA) In this section, we briefly review the LDA method, which is the basis for the Fisher discriminant criterion. As LDA seeks to find directions along which the classes are best separated, it considers both the within-class scatter and the between-class scatter in one computation. Suppose there are Ne classes in the data set. Let fJ,i be the mean vector of class i (i = 1,2, ... , Ne) and C, be the number of samples within class i, then the within-class scatter matrix Sw is defined as Ne c; s, = L L(Xij - fJ,i)(Xij - fJ,if, Xij E c; (1) i=l j=l 139 The between-class scatter matrix Sb is defined as Ne Sb = 2JMi - M)(Mi - Ml, (2) i=l where M = (liNe) L~ Mi· LDA computes a transformation matrix W that maximizes the between-class scatter and minimizes the within-class scatter: (3) This can be solved by computing the generalized eigenvectors of Sb and Sw corresponding to the Ne - I largest eigenvalues Ài: (1) To solve the outlier problem experienced by LDA in the low-dimensional space, the between-class scatter matrix in [6] is redefined as the following: Ne-1 Ne Sb = ~ L PiPj(l/fl;j)(Mi - Mj)(Mi - Mjl· (5) i=l j=i+1 (6) where Pi and Pj are the a priori class probabilities and flij denotes the Euclidean distance between class i and j. In the sequel, this last step involving flij is referred to as the distance-enhanced method [6][5]. Individual-Class Discriminant (lCD) Criterion As discussed earlier, both the traditional LDA method and the distance- enhanced method treat the between-class scatter matrix as a sum of the local difference contributions. This ensures a global discriminative projection, but is not necessarily the optimal solution for the discrimination between specific classes i and j. As illustrated in Fig. I, in an LDA-based approach, all the six classes are separated as much as possible in a global sense, but the samples from Class I and Class 6 are overlapping. In this section, we propose a criterion that puts more emphasis on individual class discrimination. In our approach, we seek a direction that maximizes the distance between one single class and all other classes. This criterion contains no discrimination information about the mutual differences 140 Number of Number of Method Error rates Data setA: Method Error rates Data set B: misclassifications misclassifications PeA 7 8.75% Train set PeA 13 3.25% Train set: 8x4O=320 10.40=400 PCA+LDA 5 6.25% PCA+LDA 12 3% Test set: Test set: PCA+ICD 3 3.75% 2>40=80 PCA+ICD 10 2.5% 10.40=400 PCA+LDA PCA+LDA +ICD 2 2.5% +ICD 2 0.5% (a) Face recognition results on data set A (b) Face recognition results on data set B Figure 2: Face recognition results on data set A and B. between the remaining (other) classes, so that the discriminating capability for the classes inside the group of other classes is sacrificed. We define an i-th class discriminant function as one that gives the maximal discrimination between class i and other classes. We redefine the between-class scatter matrix used by LDA as a scatter matrix between the i-th class and all the other classes. i-I Ne Sbi = 2:)l/D.;j)(f.li - f.lj)(f.li - f.ljf + L (l/D.;j)(f.li - f.lj)(f.li - f.ljf· (7) j=1 j=i+l The distance D.ij is defined as in Equation (6). The within-class scatter matrix Sw is defined as in Equation (1). The optimal projection for discriminating the i-th class is found by computing the variance ratios and taking the maximum from this, hence det(W;rSbiWi) JF(Wïl = argmaxw; d et (WTS .)' (8) i wW, In this new definition, we try to maximize the distance between the i-th class and all the other classes, while minimizing the average within-class scatter. The i-th class discriminant function resembles a two-class problem that dis- tinguishes the i-th class samples from non-i-th class samples. This function is applied to every class i, so that Ne discriminant functions need to be computed. In order to classify a given sample face into the Ne classes, the sample has to be projected to Ne subspaces. Theoretically, if the discrimination process finds the closest distance between the sample and the i-th class representation, we select the i-th class as the best match for the i-th transformation. If the system finds the closest match belonging to the j-th class by the i-th discriminant function (i of j), the sample can be safely categorized as a non-i-th class sample. Note that we cannot conclude that the sample belongs to the j-th class, because the j-th class samples may well be mixed up with other non-i-th class samples in the 141 i-th discriminant directions. In practice, however, it can happen that the system finds more than one match (m > 1) from the Ne discriminant functions. In such a case, a similar classification procedure is performed on those classes only, which will discriminate the i-th class from the remaining m-I classes. It should be noted that the results of Equation (7) are different from the first iteration, because the classes with large distances have been removed. The procedure will iterate until the classes can be clearly separated and classified. The proposed individual-class discriminant criterion can be preceded by the LDA technique to improve both the overall classification efficiency and the per- formance. For a given face sample and a face database of Ne classes, we first perform the LDA transformation and select m faces from the database which have the closest distances to the given face (m « N) in the LDA subspace. These samples belong to l classes (l :s m). We subsequently perform an individual-class discrimination on the l selected classes for refining the discrimination between the l classes. This will lead to a more reliable classification result for the given sample. The final resulting procedure is a two-stage face classification which makes use of a global LDA transformation and a local individual-class discriminant criterion. 3. EXPERIMENTAL RESULTS We have used the AT&T face database [7] as the data set for our experiments. The AT&T face database contains 400 face images (92 x 112 pixels) of 40 people. Ten images were taken for each person in different orientations with slightly different facial expressions and scale. We have performed face recognition tests using four face recognition tech- niques and two different data sets. These data sets are selected as subsets of the AT&'i' database, in order to separate the training set from the test set in the experiments. 1. Data set A: we randomly selected 8 images for each person for training and kept 2 images for testing. 2. Data set B: we used all 400 images for both training and testing. During the test stage, the face that had the closest distance dmin (dmin > 0) to the i-th test image was proposed as a 'match'. The four recognition techniques that we have compared are the conventional PCA method, a PCA+LDA based method [9], the lCD method proposed in this paper and the two-stage classification system using LDA followed by lCD. For all four 142 PCA PCA+LDA PCA+ICD PCA+LDA+ICD ~ Recognition error rate for dataset A ISSS:I Recognition error rate for dataset 8 Figure 3: Visualization of the test results for data set A and B. methods, the original data was first reduced to 40 dimensions using the PCA method. Fig. 2 and Fig. 3 portray the results of the experiments. Our proposed lCD method performs slightly better than PCA and LDA. When combined with LDA as a second-step classification criterion, our lCD method significantly improves the recognition performance. A drawback of the lCD method in stand-alone operation is the computing complexity. To classify a face in a database of Ne faces, a total of NlJ distance comparisons have to be carried out. The PCA and PCA+LDA approaches only require Ne comparisons. Ifthe two-stage LDA+ICD method is employed, the computing complexity is significantly reduced from the NlJ distance comparisons, since the number of comparisons needed by lCD is already significantly reduced by the initial LDA stage. In our experiment, only the first-ranked 10 faces are passed to the second lCD discrimination stage. This generally leads to much less than 100 comparisons, because many faces belong to the same class, resulting in an average of 10 comparisons for one face. 4. CONCLUSION In this paper, we have presented an Individual-Class Discriminant (rCD) cri- terion that can be successfully applied in face-recognition systems. The lCD criterion is characterized by considering the discrimination information between one individual class (i.e. different views of the same person) and all the other classes to be separated. This reduces the multi-dimensional class problem of the well-known LDA (Linear Discriminant Analysis) technique to a two-class prob- lem. By applying this for every individual class, we expand our rCD technique to a multi-class discrimination method. The lCD method differentiates from the 143 conventional LDA method in that it emphasizes the local discrimination infor- mation, instead of pursuing a global maximum of discrimination. We have found that the lCD technique can be used independently for face discrimination but also in concatenation with the LDA technique as a second step. We have performed experiments on different subspace methods using the 400- face AT&T database. The experimental results have shown that the largest im- provement in the recognition performance is obtained when lCD is implemented in a two-stage face recognition process after the LDA method. The recognition error rates are reduced with a factor of 3 or more when this two-stage recognition is performed as compared to the conventional PCA+LDA method. However, the PCA+LDA method is particularly useful as a first step to reduce the amount of classes to discriminated by our lCD, since its complexity grows quadratically with the number of classes. REFERENCES [1] J. Daugman, "Face and gesture recognition: overview", IEEE Trans. PAMI, Vol 19, pp. 675-676, 1997. [2] M. Turk and A. Pentland, "Eigenfacefor recognition", Journalof Cognitive Neuro- science, vol (1), pp. 70-86, 1991. [3] J. Zhang and Y. Yan and M. Lades, "Face recognition: eigenface. elastic matching, and neural nets" ,Proc. of IEEE, vol 85(9), pp. 1423-1435,1997. [4] P. N. Belhumeur and J. P. Hespanha and D. J. Kriegman, "Eigenfaces vs. Fish- erfaces: recognition using class specific linear projection" ,IEEE Trans. PAMI", vol 23(7), pp. 762-766, 1997. [5] M. Loog and R. P. W. Duin and R. Haeb-Umbach, "Multiclass linear dimension reduction by weighted pairwise Fisher criteria", IEEE Trans. on PAMI, vol 19(7), pp. 1711-720,200l. [6] P. Chen and L. Jin and B. Yu, "A new LDA-based method for face recognition", Proc. of ICPR, pp. 168-171,2002. [7] F. Samaria and A. Harter, "Parameterisation of a stochastic model for human face identification", Proc. of the 2nd IEEE Workshop on Applications of Computer Vision, 1994. [8] "F. Zuo and P.R.N. de With", "Automatic human face detection for a distributed video security system", Proc. PROGRESS workshop on Embedded Systems, pp. 269-274, 2002. [9] R. Beveridge, Evaluation of face recognition algorithms web site, http:\ \cs.colostate.edu\evalfacerec, 2002. 144 FIGURES OF MERIT FOR BIOMETRIC VERIFICATION AND A MEANS FOR DIMENSION REDUCTION Raymond Veldhuis, Asker Bazen Universiteit Twente, Fac. EEMCS P.O. Box 217, 7500 AE Enschede, The Netherlands R.N.J.Veldhuis0utyente.nl Optimum reduction of the number of dimensions of the feature vector in biometrie verification requires a figure of merit for the verification perfor- mance. We show that, under certain conditions, various figures of merit can be approximated by the same expression. We select one, the discrimi- nation distance, as an objective function for dimension reduction. This new method for dimension reduction is called maximum discrimination analysis (MDA). ft is shown to have a better verification performance than linear discriminant analysis. INTRODUCTION Reduction of the number of dimensions of the feature vector is desirable in biometric verification. One reason is that it helps to keep the computational complexity within limits. Another reason is that, for systems with parameters derived from training data, it may improve the performance, e.g. in terms of the equal-error rate or the probability of error. This is called the Hughes phenomenon [5]. Here we consider likelihood-ratio-based verification, based on known normal probability densities, with the dimension reduction achieved by an orthogonal projection. In this case the Hughes phenomenon does not play a role and it is important to reduce the number of dimensions while keeping the performance as high as possible. Such a process requires a measure of performance as an objective function that is maximized. This is a problem, because the performance of a verification system is fully characterized by the receiver operating characteristic, which cannot be translated into a unique figure of merit. Dimension reduction is often based on linear discriminant analysis (LDA), e.g. [1]. LDA maximizes the distinction between classes based on their covariance matrices. It results in one single linear transform for all classes. In [4] it is suggested to use the divergence or the Bhattacharyya distance as a objective function. In [7] an objective function based on the geometric properties of the 145 underlying probability densities is proposed and compared with other objective functions. However, both [4] and [7] consider the classification problem, which is different from the verification problem. A generally accepted figure of merit in the (biometrie) verification community is the equal-error rate, even though it is recognized that it only provides limited information about the performance. It is defined as the false-acceptance rate Cl! (or the false-reject rate (3) at the point of operation where Cl! = (3. A disadvantage is that, in the normal case considered here, a closed expression in terms of parameters of the densities does not exist for the equal-error rate. It is, therefore, computed from experimental data. We first review figures of merit that may serve as objective functions for di- mension reduction. A verification system is called 'good', when the within-class variances are much smaller than the total variance. For 'good' verification sys- tems we show that a number of different figures of merit can all be approximated by the same expression. One figure of merit, the discrimination distance between the probability density of the genuine feature vector and that of a feature vector randomly drawn from the observatiou space (further referred to as discrimination) is used ao (1 basis for dimension reduction. By means of simulations, we illustrate that the relation between the logarithm of the equal-error rate and the discrim- ination is, by good approximation, linearly decreasing. This indicates that the discrimination can be acceptable as a measure of performance to the biometrie verification community. The discrimination is used as a basis for a new method of dimension rcduc- tion called maximum discrimination analysis (MDA). This is a method to find the class-dependent orthogonal projection that keeps the discriminatien in the sub- space maximal. A numerical procedure to obtain the MDA transferm from the parameters of the probability densities is presented. This procedure is simple and converges rapidly. We show for synthetic data that the verification performance in terms of equal-error rates obtained with MDA is superior to that obtained with linear discriminant analysis. FIGURES OF MERIT FOR BIOMETRIC VERIFICATION We assume that the elements Xi, i = 1, ... , m of a feature vector x, randomly drawn from the observation space, are independent and identically distributed and have normal probability densities with zero mean. This probability density is denoted by p(x), with £{xn = 1. Furthermore, we assume that the elements of a genuine feature vector are uncorrelated. The probability density of a feature 146 vector belonging to a class with mean f-L is denoted by p( x If-L), with E {Xi} = f-Li and £{xn = ut. In practice, these conditions can always be met by applying a linear transform that simultaneously whitens the observation space and uncorrelates the genuine feature vector [4]. The likelihood ratio given class mean f-L is denoted by L(x; f-L) ~ p;'(J:îl and the log-likelihood ratio by l(x; f-L) ~ log(L(x; f-L)). A 'good' verification system has a within-class variance that is much smaller than the between-class variance, i.e. u; « 1, i = 1, ... ,m. We restrict ourselves to figures of merit for which a closed expression can be obtained. Later we will present an empirical relation between the equal-error rate and two of these figures of merit. Candidate figures of merit are: • The log area under the receiver operating characteristic [3]: aRoe ~ -log 1 1 ,Bda, (1) with a the false-acceptance and ,B the false-reject rate. • The Bhattacharyya distance [4]: dB = -log J Vp(xlf-L)p(x)dx. (2) • The log-relative expectation distance, defined as: • The discrimination [2] (or Kullback-Leibler distance [6]): (4) • The divergence [4] (or symmetrical discrimination}': lThe detection index, defined in the context of signal detection [8], is the divergence nor- malized by std{l(x;J.L)}. 147 Table 1 shows the expressions for the figures of merit listed above and their approximations if a; « 1, i = 1, ... ,m. Except for the divergence ddiv, we observe Table 1: Figures of merit (FOM) for verification and their approximation for al « 1, i = 1, ... , m. FOM Expression Approximation for (J; « 1 aROC -log(~ It (3~~L)dL) ~(2:i p,; - log( (J?)) + log( 4) -log 10 P2{X~ 00 > u}e~du dBat 1. 4 (2:. b l+u 't + log( (1+,;fl2)) - ~2 log(2) i Ui H2:i P,T-log((J?)) - ~ log(2) e log(V . (7~(2-(72) exp( ~ 'I. 1. ., 2:i P,; 2!(7t) - 1) H2:i P,T- log(a?)) - ~ log(2) ddis "21 (2: i P,i2 + (Ji2 log((Jm - ~ ~(2:i P,T -log((J?)) - ~ ddiv ~ 2:i (1-(77)2+(1+(7;)J.L; CTf 1. 2 2:. 1+~; 'l. ui that for 'good' verification systems all figures of merit can be approximated by A(2:i P,; -log((J?)) - Bm+C, with positive A, Band C. This is not immediately evident for aROC, but it follows from Figure 1, which shows log 10 p2{X~ 00 > u}e ~du as a function of m. 6 10 12 \4 16 16 ro dimension Figure 1: log It p2{X~ > u }e~du as a function of m and its straight-line ap- proximation. The expression 2:i P,; - log (a?) can be interpreted as follows. Let p(x) and p(x!p,) be the result of a linear transform on an outcome space with zero mean and covariance matrix ~T and let the original genuine feature vector have mean II 148 and covariance matrix ~w· Then 2:i J1T-Iog(a-t) = vT~Tlv-Iog( ',~~i). The first term in the right-hand side of this expression is the Mahanalobis distance from the class mean to the outcome-space mean. It says that verification performance is higher for unlikely classes. The second term is a measure of the relative within- class variability. The lower this is, the higher the performance. Next we study how the discrimination and the divergence relate to the equal- error rate. Since there is no closed expression for the equal-error rate, this is done experimentally. The discrimination is chosen because of its simple expression. The divergence is chosen because its approximation for a-;: « I, i = 1, ... , m differs from that of the other figures of merit and because [4] recommended it as an objective function for dimension reduction. We use the expressions in the middle column of Table 1. This means that the results are generally valid and not only when a} « I, i = 1, ... , m. Figure 2 shows combinations of the log equal- error rate and discrimination (.) and combinations of log equal-error rate and the divergence (+) of 100 randomly drawn parameter sets {(J1i, a})}b;,l' with m = 25. The log equal-error rates were computed by means of Monte-Carlo simulations. The a} were drawn from a uniform probability density on the interval [0,1]. The J1i were drawn from a normal probability density with zero mean and variance 1 - oT. This dependency of J1i on of ensures that the sum of the within-class variance and the between-class variance equals the total variance, which must hold for verification. Figure 2 illustrates that the relation between the log equal- error rate and the discrimination can be approximated well by a straight line. This means that the discrimination can be used to predict the equal-error rate. At the same time it shows that the relation between log-equal-error rate and the divergence is less consistent. Therefore, we have chosen the latter as the objective function for dimension reduction. MAXIMUM DISCRIMINATION ANALYSIS We rewrite the discrimination (4) as 1 ddis(J1, A) = 2 (J1T J1 + trace(A) -log(IAI) - m) , (6) with A an m x m diagonal matrix with Àii = 0-;. The aim of MDA is to determine a subspace of the observation space with an orthonormal basis {v., ... , vn}, n < m, such that the discrimination after projection onto this subspace is maximum. 149 100r---~---~---~--......, + + + 90 + + + + 80 + + +, ++ ++ + + + 70 ++ 60 ..;t-.J= +++ ++ 50 + + + ++ + 40 + + ++ 30 + + 20 I + •• I .:: "' , _ ". 10 10~ 10-' equal-error rate Figure 2: Relation between equal-error rate and discrimination U, and equal- error rate and divergence (+). Let Vn = (VI, ... , vn). The discrimination after projection is For J.L = 0, it can be shown that the basis V n that maximizes this expression is identical to the one resulting from LDA. If this is not the case, direct maximization is cumbersome. Therefore, we followan iterative approach in which we first determine the optimal projection onto a one-dimensional subspace. That is, we look for the VI, with IlvI11= 1, which maximizes (8) Note that the order in the first term has changed and that the trace operator and the determinant have disappeared. Each subsequent Vi, i = 2, ... ,m is then found by maximizing (9) under the constraints that Ilvill = 1 and v, ..l VI, ... ,Vi-I. We write v, = vl-«; in which the columns of v: are orthonormal and span the subspace orthogonal to VI,.· ., Vi-I. The constrained maximization of (9), or (8), is then equivalent to the unconstrained maximization as a function of Wi and .Àof W;MWi + W;CWi -log(W;CWi) - .À(W;Wi- 1). (10) 150 with M = VfTf.Lf.LTVf and C VfT AVf. Setting the derivative w.r.t. Wi equal to zero results in (M + cu - w, T~ W, )) w; = ÀWi· (11) This nonlinear equation is solved iteratively by taking w;O) = VfT f.L/llVfT f.L11as an initial estimate and selecting wY) as the eigenvector of M+C(l- "(j 1)/ CW "ej 1») W i i for which (10) is maximum. We found that this procedure converges rapidly, e.g. in less than 5 iterations for m = 50. The performance of MDA depends on the parameters {(f.Li, an }~1. If f.Li = 0, i = 1, ... , m, MDA will operate identical to LDA, with, of course, the same performance. In all other cases, MDA will result in a higher discrimination after dimension reduction than LDA. How much higher depends on the parameters. In order to illustrate the effectiveness of MDA for dimension reduction, we plot the results of an example of dimension reduction by MDA and LDA with randomly drawn {(f.Li,al)}~l' m = 25. The al were drawn from a uniform probability density on the interval [0,1] and the f.Li from a normal probability density with zero mean and variance 1 - al. Figure 3 shows the discrimination and the equal- error rate as functions of the reduced number of dimensions for MDA (\7) and LDA (*). The figure illustrates that MDA outperforms LDA in terms of both discrimination and equal-error rate. For instance, an equal-error rate of 10-2 requires 4 dimensions with MDA, but 7 with LDA. The reason for MDA's better performance is that it makes use of the discriminative power of the mean u, which is ignored by LDA. Note that all expressions and approximations for the figures of merit in Table 1 involve u, CONCLUSIONS Several figures of merit for biometrie verification have been reviewed. It has been illustrated that one of these, the discrimination distance, has an approximate linear relation to the equal-error rate. Therefore, it can serve as an objective function for dimension reduction prior to biometrie verification. MDA has been proposed as a new method for dimension reduction. An experiment with synthetic data has shown that MDA outperforms LDA in terms of discrimination and equal- error rate. The reason for MDA's better performance is that it makes use of the discriminative power of the mean f.L, which is ignored by LDA. 151 dimension '0' ,..----,..----,-------,--------r-------, ,o_, ,O_,O~---~----c:,O------!:'5=---------:2':-O -------:'25 dimension Figure 3: Discrimination (top panel) and equal-error rate (bottom panel) as func- tions of the number of dimensions for MDA ('iJ) and LDA (*). REFERENCES [1] P. N. Belhumeur, J. Hespanha, and D. Kriegman. Eigenfaces vs. fisherfaces: Recognition using class specific linear projection. IEEE Transactions on Pat- tern Analysis and Machine Intelligence, Special Issue on Face Recognition, 17(7):711-720,1997. [2] R.E. Blahut. Principle and Practice of Information Theory. Addison- Wesley Publishing Company, Reading, Massachusetts; 1987. [3] A. P. Bradley. The use of the area under the rue curve in the evaluation of machine learning algorithms. Pattern Recognition, 30(7):1145-1159, 1997. [4] K. Fukunaga. Introduetion. to Statistical Pattern Recognition. Morgan Kauf- mann, San Diego, second edition, 1990. [5] G.F. Hughes. On the mean accuracy of statistical pattern recognizers. IEEE Transactions on Information Theory, 14(1):55-63, 1968. [6] S. Kullback and R.A. Leibler. On information and sufficiency. Annals of Mathematical Statistics, 22:79-86, 1951. [7] M. Ordowski and G.G.L. Meyer. Geometric linear discriminant analysis for pattern recognition. Pattern Recognition, 37(3):421-428, 2004. [8] H.L. van Trees. Detection, Estimation and Modulation Theory, Part I. John Wiley and Sons, New York, 1968. 152 WIRELESS SECURITY DESIGN OVERVIEW Nidal Aboudagga, Damien Giry, Jean-Jacques Quisquater DCL Crypto Group - Place du levant,3 - 1348 Louvain-la-Neuve Belgium aboudagg@dice.ucl.ac.be, giry@dice.ucl.ac.be, quisquater@dice.ucl.ac.be Today, Wireless Network has become more and more present in open area or large companies and security enhancement is needed to control authentica- tion and confidentiality. The 802.11 Working Group introduced the 802.11 i amendment as the final stage of the Robust Security Network standard, superseded the old WEP technology. This paper describes the technical evo- lution of wireless security and introduces the future 802.11i with the most recent IEEE draft. 1. INTRODUCTION Wireless systems (IEEE Standard 802.11 [1]) are expected to become signif- icantly used in many open environments like train stations or universities. The principal aspect of this new technology is mobility and simplicity regarding user manipulation. It opened a wide range of new commercial areas for hardware vendors, at low cost. In 1999, the IEEE 802.11 working group defined the 802.11b standard [2], designing the communication between a client and an Access Point. Wireless network appeared to be the elegant network solution as it provides easy LAN access and low cost solution. This system is becoming popular for home network but security concerns have slowed wireless deployment at professional level. 2. WIRED EQUIVALENT PRIVACY (WEP) The 802.11b introduced the concept of Wired Equivalent Privacy (WEP). It tried to ensure confidentiality, integrity and authenticity in wireless communi- cation. At the beginning, implementing WEP required hardware resources and modifications to existing wireless card. With security at low cost in mind, vendors decided to introduce the so-known MAC-address filtering instead of the 802.11b. It prevented connection from unknown users to the wireless system. This au- thentication technique could be practical for a home network but maintaining a good address list quickly became a nightmare for IT departments. Moreover, an 153 v:lEP Key + IV Frame+ csc Keystream + IV V?LAN VlLAN Keystream + Iv"l Re4 I Frame + eRe"l Il1I:egrity Frame .. \ f IV + v:lEP Key 1 r Figure 1: WEP Data Processing attacker could use spoofing techniques as the authentication referred to MAC- addresses, not t.he user himself. Address filtering was never part of the standard and vendors finally imple- mented 802.11b WEP specification in hardware. It used RC4 stream cipher and Cyclic Redundancy Check (CRC) integrity algorithm as described in figure 1. A basic challenge-response protocol is used for authentication. WEP can used up to four default keys and it can create pairwise keys related to MAC-address (describe in the 802.11 management information base, MIE). It specified a 40-bit secret key, combined with a 24-bit Initialization Vector (IV). The 802.11 Working Group focussed on the early stage of the wireless protocol and did not implement real security measures. Here is a list of WEP problems: • No specification for the construction of the Initial Vector. A IV collision could occur [3] and compromises the key. • Key distribution remains a problem in case of compromising or when a user must be deleted from the authorization list. • Message injection attack [3], which allows Authentication spoofing. • Brute Force Attack: The 40-bit secret key is too small for encryption. • All network users use the same authentication keys. • No replay protection. • Pairwise keys are not user dependant but relative to MAC-address. • The CRC integrity check algorithm detects single-bit alterations but is not cryptographically secure: As it does not use a hash function, an attacker can easily forge messages. 154 The final break has been done in "Weaknesses in the Key Scheduling Algo- rithm of RC4" [4J and is specifically adapted for WEP in another paper [5J. The 802.11 Working Group adopted the 802.1X standard to address the short- comings of WEP authentication scheme. It is based on the IETF Extensible Au- thentication Protocol (EAP). EAP was designed with flexibility in mind and has been used in a lot of network authentications. 3. 802.1X: NETWORK PORT AUTHENTICATION The IEEE has proposed long-term security architecture for 802.11, which they called Robust Security Network (RSN). It utilized the IEEE 802.1X standard [6J as basis for access control, authentication, and key management. 802.1X had three components: a client (user), an authenticator (AP) and an authentication server. 802.1X is not a Wireless LAN related protocol but IEEE adapted it to the 802.11 structures in RSN. Network connectivity is provided through the concept of open (controlled) and close (uncontrolled) ports. In IEEE 802.11b, a network port is an association between a client and an Authenticator. The IEEE 802.1X standard combines a 128-bit WEP keys and the Extensi- ble Authentication Protocol EAP (RFC2284), which permits the use of various authentication methods such as certificate, smartcards, one-time passwords and public key authentication. Usually the authentication server is a Remote Au- thentication Dial-In User Service (RADIUS) but the standard did not specifically require it. EAP is built around the challenge-response paradigm. The authenticator must allow first EAP network transaction to the uncontrolled port before any other traffic (in controlled port). 1. The client sends a request for authentication to the uncontrolled port of the authenticator. 2. The authenticator replies with a request for the client to provides identi- fication and blocks all other traffic until it can verify the client's identity using the authentication server. 3. The client sends a response containing the identity to the authenticator. This last one forwards it to the authentication server. 155 4. The authentication server receives the request and uses an appropriate au- thentication algorithm (like POP, SMTP, KERBEROS, etc ... ) to verify the client's identity. If the user can be identified, an accept message is sent, otherwise it is a reject message. 5. In case of acceptation, the authenticator will convert the client's port to an authorized mode and optionally it could send a secret key to protect future transaction. 802.1X enhances security and addresses WEP authentication vulnerabilities. It allowed computer and network to authenticate each other with a central server. It provided dynamic 128-bit WEP keys management: per-user and per-session keys and ability to change them at frequent intervals. 4. 802.1X / EAP: METHODS AND PROBLEMS EAP allowed developers to construct their own algorithm and consequently a lot of wireless vendors implemented their own 802.1X adaptation. They provided significant modifications to the authentication system but, as there was no general specification, this enhancement was frequently platform dependent. Moreover, these adaptations often relied on external systems like Radius server, PKI and Certificates. All this solutions have some problems related to attacks on 802.1X [7]: 1. Man-in-Middle attack: the one-way authentication exposed to the man-in- middle attack where adversary becomes an authenticator for the client and a client for the real authenticator. 2. Session Hijacking: A hacker waits until a valid user authenticates himself, th=n he pretends to be this user and blocks the valid user traffic. Here is a list of the most common EAP implementations: • EAP-MD5, Message Digest 5 (or CHAP Protocol) (RFC1994): Vulnerable to a lot of attacks and did not support dynamic WEP keys. Only use this implementation in a small private network . • EAP-TLS, Transport Layer Security (RFC2716): Open standard, using X.509 certificates complex architecture for servers and users. It relies on PKI and TLS. It allowed manipulation of dynamic WEP keys. It resists to most 802.1X attacks except Man-in-Middle and the user's identity is revealed. 156 • EAP- TTLS, Tunnelled TLS: very similar to EAP- TLS. This protocol sim- plifies the PKI structure by using server's Certificate only. It also protects the user's identity. • PEAP, Protected EAP: Very similar to EAP- TTLS, this solution is used by Cisco and Microsoft in their products. • LEAP, Lightweight EAP: Proprietary Cisco solution, it is vulnerable to a lot of attacks like dictionary, man-in-middle and session hijacking (Cisco answer to dictionary attack by EAP-FAST1). • There is also EAP-SIM, EAP-SPEKE, etc ... 802.1X / EAP resolved most WEP authentication problems, but RC4 and EAP attacks conducted the 802.11 Working group to reveal a part of the fu- ture 802.1li standard. The Wi-Fi Alliance used this information to build a new standard, the Wireless Protected Access protocol (WPA). 5. INTERIM SOLUTION: WI-FI PROTECTED ACCESS (WPA) WPA is a subset of IEEE 802.11i security specification currently under devel- opment. It took some ready parts of 802.11i draft to enhance security structure of wireless network and it only required a software upgrade of actual wireless devices. WPA supported a mixed environment of client devices using either WPA or WEP. It used 802.1X EAP-TLS to authenticate users and addressed WEP vulnerabilities by using a new Temporal Key Integrity Protocol (TKIP) and 128- bit RC4 key. TKIP is a suit of four algorithms with minimum computing cost: 1. The cryptographic Message Integrity Code (MIC), called Michael, to defeat forgeries. It replaces CRC with providing true cryptographic hash function. 2. A new Initial Vector sequencing discipline, to prevent replay attacks. 3. A key mixing function, to have a per-packet key. 4. A re-keying mechanism, to provide fresh keys to the key mixing function. Michael Algorithm used a tagging function and a 64-bit secret key, shared only between sender and receiver. It ensured the message integrity without pre- venting replay attacks. To enhance and prevent the lake of MIC in replay, the sender appended a sequence number to the packet. 1http://www.cisco.com/warp/public/707/cisco-sn-20030802-leap.shtml 157 80bits MIXING MAC (32bits) 1 I .l. MIXING 12&bits TSC (32bits 2 t 2 Per Frame Key r T KIP Sequence Counter Temp Key (12&bits) (48bits) TSC (16bits) Figure 2: TKIP Key Mixing The Initial Vector (IV) took the role of this TKIP Sequence Number (TSC). It is based on an extended 48-bit WEP IV field. WPA associated TSC with the encryption key as it will be initialized to zero whenever a new TKIP key is set. The sender incremented the TSC after each packet sent. TKIP prevented replay attack by discarding packets out of order. The key mixing function enables TKIP to give a different key for each packets. The figure 2 represents the mixing process. WPA associated the temporal key (user dependant) and the MAC-address (computer nependant) to prevent packet forgery. In most cases, WPA used the infrastructure 802.1X to autheul.icated and ob- tained two fresh master keys for global and per-user communication. By deriva- tion, the client and the authenticator acknowledge themselves of a temporal key, which is regularly refreshed. In home environment and small network, TKIP use a shared secret pass- phrase to generate per-station encryption key or mutually entered keys without the need of an authentication server. This WPA mode suffering from dictionary attack if the user did not use a strong one (more then 20 characters) [8]. The WPA is an intermediate solution. It discards all known attacks from WEP architecture but it preserves the RC4 Algorithm to ensure compatibility and simple update of actual hardware. Even if WPA structure consolidates WEP, the 802.11 Working Group decided to change it as it could be the only Achilles' heel for the future. 158 6. THE FUTURE: 802.111 / ROBUST SECURITY NETWORK (RSN) The 802.11 Working Group seems to be ready to release 802.11i in late 2004. We will refer to Draft 9 [9] as reference for 802.11i description. It will be part of the Robust Security Network (RSN), the IEEE security standard for wireless network. RSN and WPA have a lot in common: same security protocol, key distribution and key renewal but compatibility is optional. They both need RADIUS server and 802.1X protocol as they rely on several components to produce an overall security system. Contrary to WPA, RSN had no recommendation for the choice of EAP. The support for older systems like WEP needed the utilization of traditional specifications described in Transitional Security Network (TSN). Let us describe the RSN main aspects (not present in WPA): • Utilization of the AES (Advanced Encryption Standard). • Support of Quality of Service with a dedicated place in the header of RSN packet. • Support of pre-authentication to enhance the roaming in wireless network. The client can authenticate with more than one authenticator and quickly switch his traffic from one to another. The apparition of AES could be a serious update problem to current hard- ware. Most of WEP compatible Wi-Fi cards did not have enough computational power to be easily transformed in an RSN card. CCMP is to RSN what TKIP is to WPA. CCMP is based on AES-CCM described in RFC361O. CCM mode combines Counter Mode (CTR) for encryp- tion and Cipher Block Chaining Message Authentication Code (CBC-MAC) for authentication and integrity. It requires a fresh Temporal Key for every session and a unique nonce for each frame protected by a given Temporal Key. CCMP fixed some parameters of CCM: • The M parameter (see RFC3610) to 8 octets MIC. • The L parameter (see RFC3610) to 2 octets length field. • A unique AES 128-bit key for encryption / authentication. • A 48-bit Packet Number as nonce. 159 The CCM process takes four inputs: the CCMP Temporal Key, the nonce, the frame body (payload) and some additional data taken from the frame body header. It provides authentication j integrity for the payload and the header as well as confidentiality for the payload. CCMP has a replay proteetion as it transfers an authenticated Packet Num- ber. Furthermore, forgeries can be easily detected with the CBC-MAC Message Integrity Code, protecting the source and destination. 7. CONCLUSION Today, the future seems to be in the 802.11i standard. This new vision of wireless transactions extends the 802.11b to the security area. The only remaining problem seems to be the roaming efficiency. For Real time protocol, like Voice lP, pre-authentication system did not comply with sufficient fast authenticator switching. A key passing architecture will be, perhaps, the next major evolution of RSN. REFERENCES [1] Wireless LAN Medium Access Control and Physical Layer Specifications, IEEE Std 802.11-1999 Edition. [2] IEEE Std 802.11b-1999 and IEEE Std 802.11b-1999-Corl-2001, Amendment to IEEE Std 802.11-1999 Edition. [3] Intercepting Mobile Communications: The Insecurity of 802.11; Borisou, Goldberg and Wagner; 7th Annual International Conference on Mobile Com- puting and Networking, July 16-21, 2001. [4] Weaknesses in the Key Scheduling Algorithm of RC4; Fluhrer, Mantin and Shamir; SAC 2001. [5] Attacks on RC4 and WEP; Fluhrer, Mantin and Shamir; Cryptebytes 2002. [6] Port-Based Network Access Control, IEEE Std 802.1X, 2001 Edition. [7] An Initial Security Analysis of the IEEE 802.1X Standard; Misbra and Ar- baugh; University of Maryland; http://www . cs. umd. edu;-waa/lx. pdf . [8] WLAN Testing Reports "PSK as the Key Establishment Method"; Moskowitz; ICSA Labs WLAN Security Whitepapers; http://www.icsa1abs.com/htm1/communities/WLAN/wp_PSKStudy.pdf. [9] IEEE P802.11ijD9.0, March 2004, Amendment to ANSIjIEEE Std 802.11- 1999 Edition as amended by IEEE Std 802.11g-2003 and IEEE Std 802.11h- 2003. 160 SECRECY IN MOBILE CODE K. Cartrysse and J.C.A. van der Lubbe Delft University of Technology Faculty of Electrical Engineering, Mathematics and Computer Science {K.Cartrysse; J. C.A. vanderlubbe }@ewi.tudelft.nl Mobile code is code that can be executed at a remote location, where be- forehand it might not be known whether this location is trustworthy and a requirement may be that the to be executed code is encrypted and remains encrypted during execution. This paper presents a model of mobile code and de nes perfect secrecy. The model and de nition allows to derive conditions and theoretical boundaries for proteetion of mobile code. INTRODUCTION The type of tra c in a network is not only static data anymore, but also executable code that is run at a remote location. This type of code is called mobile code. In advance it is not known whether this remote location can be trusted completely or until what extent. Some computations or programs may be sensitive with respect to privacy of the program's owner, but for some reason they cannot be executed on the local trusted platform. Executing privacy sensitive programs elsewhere requires proteetion to these programs. An example is mobile agent technology, where agents may ful II a task of its user at some untrusted host. A possible method to protect the con dentiality of a program is by encrypting it and executing the encrypted program [5J. The combination that the underlying platform cannot be trusted and that the program to be executed must ful II some con dentiality level makes it di cult to protect. Several practical solutions have been proposed to protect code against mali- cious hosts, especially in the context of protecting mobile software agents. En- cryption of polynomials and rationals has been shown in [5J and [2], but also mechanisms to protect the computation results [3J. Other practical methods are based on trusted hardware [8J or a trusted third party [IJ that protects the compu- tation. The ideal case of course is to protect code without this kind of hardware or a trusted third party. Little research has been done in the area of de ning theoretical boundaries of proteetion of mobile code. Back in 1949, Shannon de- scribed a secrecy system for static data using the concepts of information theory 161 Urarusrworthy envimnment Untrustworthy execution environment Ihest) Figure 1: Mobile code in an untrustworthy environment. [7]. Based on these results much research has been done in the eld of information theory and cryptography to achieve unconditional security [4]. In this paper, this information theoretic approach is used in a mobile code environment to de ne theoretical boundaries for encryption. The remainder of this paper is organized as follows. First, the system model as used in this paper is described. This is followed in section 3 by the de nition of perfect secrecy for mobile code and an example of such an encryption scheme is given. The fourth section presents Lwocryptographic dilemmas that exist in a mobile code environment. Finally, in section 5 conclusions are given. SYSTEM MODEL A user wants to execute a program at a foreign location. The user sends its program F with input X to the host where it is executed. The result of F(X) is called Y. In this scenario the host is capable of obtaining all information on F and X as he is the onc that executes it. The user may want to keep F private, therefore, F is encrypted. To avoid confusion, the following notation is used. F(X) denotes a function F with input X and Y is the result after executing F(X), i.e. Y is a variable, which will take a value corresponding to variable X, and F(X) is a function. The model used is shown in gure 1. The mobile code F is encrypted using key K resulting in executable encrypted code P. The result of the executed P(X) is Y. Parameter X is some input of the user to the program F or P. In this paper it is not relevant whether X is encrypted. It is only important that variable X exists and it determines Y by executing P(X). Important is that decryption of P using key K is possible, which results in F again. However, it is not necessarily 162 possible to decrypt Y to Y such that Y = F(X). This assumption is reasonable as it may be possible to process Y directly or Y forms the end of the program or action. The user (originator) is the owner of the code F and therefore completely trustworthy. On the other hand, the host where the code is executed cannot be trusted. He is interested in the content of the code F, but he is not capable of changing the code. He will execute the code as he received it, but he might for example execute it many times to obtain more information about F. PERFECT SECRECY Based on the presented system model, it is now possible to give a de nition for perfect secrecy. Perfect secrecy means that independent of the computation power of the attacker it is impossible to obtain the original function F. H(M) is used for the information measure or entropy for message M [7]. The formal de nition of perfect secrecy is: Definition 1 (Perfect secrecy mobile code) Let fr be the encryption of mo- bile code F using key K. The result of fr after execution is Y. The encrypted mobile code has perfect secrecy if and only if: H(Flfr, Y) = H(F). (1) It is important that after encryption the code is still executable as the original intention is to execute code at a remote location. Based on this de nition of perfect secrecy, immediately conditions can be derived when perfect secrecy can be provided. Theorem 1 A mobile code cryptosystem can only be perfect secure if: H(K) H(F) and (2) H(K) H(Y). (3) Proof. To proof (2) the joint entropy H(K, F, i; Y) can be written as: H(K,F,fr,Y) H(KIF, fr, Y) + H(F, i: Y) (4) H(FIK, t; Y) + H(K, fr, Y). (5) 163 Combining (4) and (5), rewriting the joint entropies, and using the fact that when K and F are known F can be computed (e.g. H(FIK, F, Y) = 0) gives: H(KiF, F, Y) = H(KIF, Y) H(FIF, Y). (6) Since entropy is nonnegative, hence H(KIF, F, Y) o. Substituting this in (6) and denoting that H(A) H(AIB) and thus H(K) H(KIF, Y) results in H(K) H(FIF, Y). (7) Using the de nition of perfect secrecy (1), (7) evolves in (2). For the second inequality (3) the following equality can be used: H(KIF, Ir) ~ H(KIF) H(YIF), (8) which can be derived in a similar manner as (6). Due to the nonnegative property of entropy, H(KIF, Y) o. After substituting this in (8) it is clear that H(KIF) H(YîF) (9) which results in H(K) H(KIF). (10) Substitution of (10) in (9) gives H(YIF) H(K). (11) According to the cle uition of perfect secrecy H(FIF, 1r).;:H(F), thpn it imme- diately follows that: H(FIY) = H(F) (12) and this is equivalent to: H(yIF) = H(Y) (13) hence, from (11) it follows that (3) is true in case of perfect secrecy. 0 Example perfect secrecy. In this paragraph an example is given of an encryp- tion scheme that provides perfect secrecy to a function. In this example the set of functions consists of polynomials. A function is constructed by selecting elements from di erent sets, and these are combined in a sequence, of which the order of 164 the elements is according to some rules. For example a plus operator will always be followed by a number. The following three sets are de ned:Numbers : N := {O, 1, 2, 3, 4, 5, 6, 7, 8, 9}, Operators: 0 := {+, x} and Variables: V := {x}. In real applications set 0 is not limited to these two elements, but can be expanded with or -;- and possibly other operations. A function f is de ned as a combi- nation of elements of the three sets. The encryption is de ned as: (14) where 0 can be seen as addition de ned over the various alphabets. The key is chosen according to the symbols of the function. If the symbol at position j is an element of the set N, then the key at position j will also be an element of the set N. The encryption operation is for set N equal to addition mod 10. In set 0 the encryption operation 0 is de ned as: + 0 + = x; + 0 x = +; x 0 + = +; x 0 x = x. We call this encryption scheme the "One-time pad for polynomials" (OTPP). For example, let f(x) be f(x) = 7x2 + 4x + 3, then encryption and decryption is respectively: f(x) : 7 x x x x + 4 x x + 3 !(x) :9+ x x x + 7+ x x 5 k(x) : 2 + x x x x 3 + x + 2 k(x) : 2 + x x x x 3 + x + 2 !(x) : 9 + x x x + 7 + x x 5 f(x) : 7 x x x x + 4 x x + 3 In the example above it is clear that i(x) can be executed. Theorem 2 The encryption scheme OTPP provides perfect secrecy for mobile code in case the mobile code is a (set of) polynomial(s). Proof. The following notation is used; PA(a) is the probability that random variable A takes the value a. To proof perfect secrecy equation (1) must hold. This is equivalent to PFIF,y(fI!, y) = PF(f). (15) The probability PFIF,y(fI!, y) can be expressed as: PFIF,y(fI!,y) = LPK(k)PF(dd!) = f), (16) k 165 where IKI is the cardinality of K and dkcJ) denotes the decryption of fusing key k. For each key there is an equal probability of occurrence IÄï: PFIF,y(flf, ij) = I~I LPF(dkcJ) = f)· (17) k The probability PF(dkcJ) = f) can only take the values 1 or O. Either the key k is responsible for the transformation of f into f or not. As the transformations are uniquely de ned, only one key per transformation is possible, hence LPF(dkcJ) = f) = 1. (18) k This leads to: (19) Concluding, the above system is perfect secure with respect to f. 0 It must be said that it is easy for the attacker to know what type of function is encrypted (e.g. whether it is a polynomial and what degree). Even when this knowledge is available still perfect secrecy is provided to the mobile code. In the conventional one-time pad for static data, also the length of the cipher text is equal to the length of the plain text, which is comparable to the length or type of a function. An easy method to prevent the attacker from obtaining this knowledge is by adding words or plain text to the to be encrypted text. In mobile code this can be done by adding auxiliary polynomials to the to be encrypted polynomials as is shown in [6]. THE MOBILE CODE DILEMMA Furthermore, it is possible to use the equivocations such that it is shown that not all possible attacks can be equally protected at the same time. The result is that two dilemmas exist. Theorem 3 (Cryptographic dilemmas for mobile code) Let (F, P, K, ek(')' dk(.)) denote a mobile code system protected by encryption, ek(')' and decryption, dk(') with key k. Then the following dilemmas exist: H(KIF,P) H(KIP) H(FIP) (20) H(KIF,17) H(FIK, Y) + H(KIY) H(FIY). (21) 166 Proof. To proof (20) H(K, F, ft) can be written as: H(K, F, ft) = H(KIF, ft) + H(F, ft) = H(FIK, ft) + H(K, ft). (22) Using the property H(FIK, ft) = 0, then (22) evolves in: H(KIF, ft) = H(K, ft) H(F, ft). (23) Rewriting the joint entropies results in (20). The proof of (21) is similar. The entropy H(K, F, Y) can be written as: H(K, F, Y) = H(KIF, Y) + H(F, Y) = H(FIK, Y) + H(K, Y). (24) Equation (24) can be rewritten as H(KIF, Y) = H(FIK, Y) + H(K, Y) H(F, Y). (25) After the rewriting of the joint entropies (25) results in (21). D The rst dilemma (20) is equal to Shannon's original approach and states that increasing the proteetion of the system against a known-plaintext-attack (H(KIF, ft) will increase) will result in a decrease of a proteetion of a ciphertext- only-attack (H(Flft) will decrease). The second dilemma (21) combines the knowledge of Y and the to be protected code F and key K. Increasing the uncertainty of the key when F and Y are known, results immediately in the decrease of the entropy of F when Y is known. CONCLUSIONS In this paper a system model is presented that corresponds to mobile code and a de nition is given of perfect secrecy for this mobile code. The de nition is similar to Shannon's de nition of perfect secrecy for static data, but the context is di erent as the attacker can be located in the execution environment. Based on this de nition of perfect secrecy it is possible to derive conditions when perfect secrecy is possible. A condition to provide perfect secrecy is that the key space should be at least as large as the function space and the output space. Further- more, an example encryption scheme is given that provides perfect secrecy. Using the properties of entropy, it is possible to derive two cryptographic dilemmas, where increasing the uncertainty of one parameter has the consequence 167 that the entropy of a di erent parameter decreases. This paper described mobile code simply as code executed at a remote, possi- bly untrustworthy, location, hence no interaction between the host and the code itself occurs. However, a more realistic scenario is that the host contributes a parameter to the received code that will then be executed. This has the conse- quence that the attacker may want to derive a value for its input such that the output of the mobile code is positive for him. The addition of allowing the host to provide input to the code makes the model more complex, but realistic. It is then interesting to obtain the theoretical boundaries for this new model. A second topic for further research is the concept of the output of the en- crypted function Y. Research whether it is possible to decrypt Y or it may be the case that based on Y a decision can be made on what to do next in the code. REFERENCES [1] J. Algesheimer, C.Cachin, J.Camenisch, and G.Karjoth. Cryptographic se- curity for mobile code. Proceedings 2001 IEEE Symposium on Security and Privacy, IEEE, pages 2 11, 200l. [?] P.A. Fouque, J. Stern, and G.J. Wackers. Cryptocomputing with ratio- nals. Financial-Cryptography. -6th-International- Conference, Lecture-Notes- in-Computer-Science- Vol.2357. 2003: 136-46, 2002. [3] G. Karjoth, N. Asokan, and G. Glc. Protecting the computation results of free-roaming agents. Mobile agents '98, Lecture Notes in Computer Science, pages 195-207, 1998. [4] U. M. Maurer. The role of information theory in cryptography. In Fourth IMA Conference on Cryptography and Coding, pages 49-71. IMA, 13-15 1993. [5] T. Sander and C. F. Tschudin. Protecting mobile agents against malicious hosts. Mobile agents and security, Lecture Notes in Computer Science, pages 44-60, 1998. [6] T. Sander and C.F. Tschudin. On software proteetion via function hiding. Information hiding, Lecture Notes in Computer Science 1525, pages 111-23, 1998. [7] C. E. Shannon. Communication theory of secrecy systems. Bell Systems Technical Journal, 28:656-715, 1949. [8] B. Yee. A sanctuary for mobile agents. Secure Internet Programming, Lecture notes in computer science, 1603:261-73, 1999. 168 SECURITY ASPECTS OF DRM SYSTEMS H.L. Jonker", S. Mauw", J.H.S. Verschuren+' and A.T.S.C. Schoenen? 1 Eindhoven University of Technology, Department of Mathematics and Computer Science E-mail: h.l.jonker@stud.tue.nl.s.mauw@tue.nl 2 TNO ITSEF BV, Stieltjesweg 1, Delft, E-mail: {verschuren.schoonen}@tpd.tno.nl INTRODUCTION Acquiring digital media over the Internet has become commonplace in recent years. Companies are looking into ways to sell their content (music, movies, etc.) over the Internet without the buyer being able to further distribute the work. Digital Rights Management (DRM) systems address this; their main goal is to enable authorised users to access a version of digital content on the terms for which they are authorised whilst preventing all other access to digital content. This is of course not always possible, therefore the field of DRM is also interested in practical security, i.e. security that may theoretically be breakable, but in practice will not be (because the costs outweigh the benefits). So DRM systems aim to achieve a security goal. How well they achieve this goal is unclear. Although various security techniques are being used by DRM systems and being researched for use in DRM systems, there seems to be little research into evaluating the security of an entire DRM system. As security of the individual components of a system does not guarantee security of the system as a whole, this means that currently it is hard to understand what level of security is offered by a DRM system. TNO ITSEF performs security evaluations of both hardware and software products. This paper is a preliminary and condensed report of research into evaluating the security of DRM systems. The main goal of this research is to devise a security evaluation method that has consistent, reciprocal comparable results. DIGITAL RIGHTS MANAGEMENT This section describes DRM systems in a generic sense. First, their goals are mentioned, followed by a technical description of DRM systems. The design of a DRM system is of course influenced by the context in which it is deployed. Therefore, the next subsection takes a closer look at that context. 169 In the last subsection, various techniques are examined which are used to strengthen the security of DRM systems. Generic break-down of DRM systems DRM systems operate in a client-server context. A distributor offers content (e.g. audio (music), video (movies), text (books), images (photos)) to customers. Generally speaking, it is far easier to implement stringent security measurements on the distributor's side than on the user's side. Therefore, this side can be considered "secure" and the user's side can be considered "insecure". A network serves as a communication medium. For purposes of security evaluation, the network can be considered insecure. Distributor's side To protect the content from access outside the system, the content is stored inside a "secure container". To access the content, a valid license is needed (which can be included in the container or delivered seperately). Licenses are expressed in Rights Expression Languages [4] (RELs). These languages (mostly XML- based) allow only the rights granted in the license and deny any other access. To ensure interoperability, the semantics of a REL can be defined in a Rights Data Dictionary (RDD) - another XML-based language. To ensure that the content stays secret and is received correctly, secure com- munication is used. This assures that attackers cannot obtain a secure container and the accompanying license when these are sent to a legitimate user, and en- sures that the user receives them correctly. User's side In almost all cases, the content provider who uses a DRM system requires a secure environment at the user's side. The content provider wishes to execute DRM components on the user's side. These components consist of code, data and state. Since the user's side is considered hostile territory, these components execute in hostile environment. Measures must be taken to assure correct execution of code, data integrity and state integrity. A tamperproof environment can provide this. This tamperproof environment is referred to as a Trusted Computing Base (TCB). A TCB functions as a trusted third party for computing. 170 A DRM system assures that all steps from opening the secure container up to and including conversion into an analogue format operate as required by the license. Without a TCB at the user's side, there is no way of guaranteeing that the terms under which the user is allowed to access the content are met. A TCB is not needed on the user's side, when the DRM system only sends versions of the digital content to the user, which need not (or cannot) be protected (e.g. analogue versions or low-quality versions). Influence of networks on DRM DRM systems operate on a network. This could be the Internet or a cell phone network. Other networks are possible (e.g. a cable TV network), but not consid- ered in this paper. A DRM system needs to take into account the constraints of the device which acts as the user's side. An important question is how powerful and secure a TCB implemented on the device is. For the mentioned networks, these devices would typically be a computer and a cell phone. Each of these networks is examined below. Internet As computers can emulate computers, they can emulate a computer which is allowed to access the content. So, if a user can access the content once, it is hard to prevent the user from accessing the content as he pleases. This means that it is hard to realise a TCB on computers without additional, tamperproof hardware components. However, DRM is concerned with practical security: making it too hard to acquire the digital contents illegally. As long as the above attack is too difficult (or time-consuming) to execute, the security of the DRM system can be acceptable for content-providers. cell phone network (see [5J) Cellular phones have a short life cycle - which means that introducing hardware support for DRM can happen (relatively) quickly. Add to this hardware secrets (the SIM-card) and the closed aspect of the hard- and software (in stark contrast to computers), and it is clear that the tech- nological requirements of DRM systems are more easily provided by the mobile phones industry (when compared to the PC market). 171 However, cell phones are limited devices. They are not ideal devices for portraying either audio or video (although improvements are being made). This means that the content that can be accessed on cell phones will be limited in scope. It is hardly imaginable to watch a complete movie on a cell phone. Security supporting techniques of DRM DRM systems can use various techniques to attain (sub) goals. In this section, the following techniques are discussed: Cryptography, ID techniques, tracing techniques, TCB and finally Updatability & interoperability. Cryptography secure container Cryptography is used to protect the content from access and to secure communi- cations between the user and the distributor. To protect content, the content is hidden in a "secure container". This con- tainer is encrypted to protect it from all access except via the DRM system. ID techniques Content owners can use content identification (for example) to detect theft, whilst users could use this to find content which they have seen or heard but which they have not yet acquired. DRM systems can employ a variety of techniques to identify content: a Digital Object Id can be added, the digital content can be fingerprinted or a watermark can be added. The Digital Object Identification (DOl) scheme works similar t.oa bar code - given a cryptic identifier, a server looks up the current location of the con- Lent and redirects you there [VOl]. A fingerprint is a small sample of the content. This can Le sent to a fingerprint- ing service, which identifies the content and redirects the user accordingly. Watermarks consist of information embedded in digital content. They are not detectable by humans on playback of the content (if correctly embedded), but a watermark detector finds the watermark, even after conversion to analogue. 172 Tracing The information embedded by a watermark could also identify the user who legally acquired the content. If the content is found "in the wild" , the watermark can still be extracted and the user identified. Trusted Computing Base A Trusted Computing Base (TCB) assures others that the owner (of the TCB) can execute computations faithfully inside the TCB without exposing secrets to the owner. An example of a TCB is the Dutch "chipknip". Updatability & interoperability Both updatability and interoperability ensure robustness of the DRM system. It is unlikely that DRM systems would achieve perfect security from the outset - but by providing updates the system might be able to remain secure enough. As there are currently many DRM initiatives, it makes sense to ensure that any DRM system can work with most other DRM systems. This is done by standardising the language of the license (REL and RDD). EVALUATION TECHNIQUES In order to get an understanding of the level of security offered by a product, several security evaluation methods have been developed. Among those are the Common Criteria [7] (CC), Attack Trees [8] and OCTAVE [1] . These methods all have drawbacks: the CC use a lengthy and costly process to evaluate, attack trees will differ depending on whom does the evaluation and OCTAVE is more concerned with evaluating organisations than products. It is desirable to use a method which delivers consistent, reciprocal comparable results for technically evaluating DRM systems. EVALUATING DRM SECURITY In order to be able to evaluate the security of DRM systems, their security goals need to be clearly stated. A threat model is needed to reason about possible threats. To study the security goals DRM systems aim to achieve, a model of the user side will help determine security issues all DRM systems need to address. As the design of DRM systems is influenced by the network on which they are deployed, so is the threat model: 173 For the internet we use a powerful threat model. The attacker can break weak cryptography, exploit weak keys, knows the communication protocol, con- trols the network, can break into servers with security flaws, has complete controlover the user side and can hack the playback software on the user side. For cell phone networks we use a less powerful threat model. The attacker can break weak cryptography, exploit weak keys, knows the communication protocol, does not control the network, cannot break into servers, has no special controlover the user side and cannot hack the playback software. The security goal DRM systems aim to achieve is to prevent all access to the content that does not comply with a valid license obtained from a valid source for said content. There can be secondary goals (e.g. the ability to trace illegally accessible content back to the buyer or the ability to prove authorship of content). This paper will not concern itself with secondary security goals. Security issues of the client side The flow of content through the user side of a DRM system is shown in Fig- ure 1. The content is received over a "connection" (e.g. a modem). IL can be stored or streamed to the player. The player generates audio and video output as needed to render the content to the user. This output is converted by drivers into a format understood by hardware. The hardware can either give analogue output, or stream digital out- put to external hardware capable of han- dling this. Figure 1: The flow of content at the To protect the content, the content user side. must remain inaccessible until "ana- logue out" is reached. Otherwise, the digital, high quality content could be retrieved from an intermediate point. However, this is not enough. DRM systems require memory (persistent state, see [9], [6]) at the user side, as a license can specify a number of times the content may be accessed. 174 Security issues of the server side A DRM system can be modelled in various ways (e.g. [2], [3]). There are some generic security rises applicable to all models: Communication Interception Any time the content is sent unprotected over a communication channel, this channel can be intercepted. Using secure channels prevents this. Analogue out It is possible to make an analogue copy of the output (e.g. taping the output). This cannot be prevented by any DRM system. Server hacking If a hacker obtains controlover one of the servers on the server side, he can provide the server with false information and he might be able to obtain content. To help prevent this, few machines should be used (fewer machines means fewer security hazards) and these servers should be kept as secure as possible. On the other hand, the different servers have different security needs and that would make it more logical not to group them. Ideally, the services offered all operate inside a TeB. Communication Protocol Hacking The communication protocols used to send data between the various components might have security flaws. Depend- ing on the nature of the flaws, an attacker might learn information, which was meant to be secret (such as decryption keys), or might be able to pose himself as a legitimate communication partner. Key Acquisition Should an attacker acquire a private key used by a component in the system, that attacker can pose as that component. Exposed keys on the user side can be used to emulate components and so defeat the system. Evaluation criteria There are several criteria which can be applied to the evaluation of the security of DRM systems. More research will clarify the impact of these criteria on the overall security of DRM systems. To name a few: Single Point Of Failures should be avoided as much as possible. The more there are, the harder it is to secure the DRM system. The ability to update (parts of) a system means that it can cope with secu- rity errors. The ease with which updates can be created and integrated is important. 175 The interoperability of a system poses a security rise. External components (players, secure containers) are introduced into the system, or internal com- ponents (secure containers) are exposed to other systems. The influence such components have in the system is important. Dependencies on other systems (such as an operating system) may introduce weaknesses into an otherwise secure system. CONCLUSION Evaluating the security of DRM systems is a complex task. The issue is not solvable, i.e. there is not one definite technical solution that satisfies all security needs - amongst other reasons, the contexts in which DRM systems operate varies too greatly. Therefore, it is crucial to understand the security a DRM system offers. Un- fortunately, current evaluation methods are ill-equipped to produce consistent and reciprocally comparable evaluations of DRM systems. Therefore, more re- search into this topic is needed. REFERENCES [I] CERT. http:j jwww.cert.orgjoctavej. [2] Serräo et al. Open SDRM - an open and secure digital rights management solution. Research note, IADIS, June 2003. [3] S. Guth. Digital Rights Management, pages 150-161. Number 2770 in LNCS. Springer-Verlag Heidelberg, November 2003. [4] S. Guth. Rights Expression Languages, pages 101-112. Number 2770 in LNCS. Springer-Verlag Heidelberg, November 2003. [5] F. Hartung. Mobile Diqital Rights Management, pages 138-149. Number 2770 in LNCS. Springer-Verlag Heidelberg, November 2003. [6] B. Home, L.R Matheson, C. Sheehan, and RE. Tarjan. Dynamic self- checking techniques for improved tamper resistance. In Digital Rights Man- agement Workshop, pages 141-159, 2001. [7] TNO ITSEF. http://www.commoncriteria.nl/. [8] B. Schneier. http://www.schneier.com/paper-attacktrees-ddj-ft.html. [9] W. Shapiro and R Vingralek. How to manage persistent state in DRM sys- tems. In Digital Rights M anagement Workshop, pages 176-191, 2001. 176 CRYPTOGRAPHIC APPROACH TO PATIENT RECORDS PRIVACY PROTECTION IN EMERGENCY SITUATIONS Kosmas Kapis, Jan C.A. van der Lubbe, Kathy Cartrysse {K.Kapis; J.C.A.vanderLubbe; K.Cartrysse}@ewi.tudelft.nl DELFT UNIVERSITY OF TECHNOLOGY This paper presents cryptographic mechanisms for securing electronic med- ical patient records, EPRs in emergency situations. The mechanism main- tains the EP R con dentiality during an emergency when a patient is un- conscious and located outside any health provider, HP. In such situations any authorized health care practitioner, H'Cl? can access all relevant medical records when needed. However, after such an emergency, it is impossible for anyone to access the patient's EPR without the patient's consent. This can be achieved by using a modi ed forward-secure signature and encryp- tion algorithm used in two directions. After an emergency treatment, the patient 's consent is restored. INTRODUCTION An Electronic Patient Record, EPR is a collection of electronic medical data for the same treatment or by the same medical practitioner. The increase of large networks for access to medical records has raised concerns about security, con - dentiality and privacy. Currently, medical doctors control the patient's medical data. Therefore a patient has no privacy in the sense that doctors have access to patient's records at any time. Privacy is only protected by means of policies and practice statements (medical ethics). One of the solution to provide privacy is for the patient to have controlover his medical data [1,2,3] such that access to medical data is only possible with the patient's consent. The few studies done on the combination of EPR and patient privacy focus on a conscious patient physi- cally able to grant the medical practitioner access to his records. Yet, the patient privacy and con dentiality problems have remained partially unsolved [5]. It is a nice idea for patients to control their medical records, but it becomes more risky during emergency situations, because under such circumstances the the means used to access the EPR must be exposed. To get the insight of the problem, assume that an unconscious person is located at a large distance from the nearest health provider while in need of medical treatment and an emergency 177 Health Care Provider, Hep (e.g. ambulance personnel) is present after an emer- gency call of a bystander. To treat this person e ciently, the Hep needs medical data of this person. However, the network in which the EPRs are stored must be available at this location. Furthermore, the Hep must somehow be able to retrieve the EPRs in order to read them without the patient's consent. The Hep must again be restricted to access the EPRs after the patient is conscious and physically able to communicate. From the scenario above the following risks are anticipated: a) The Hep may access the the wrong EPR; b)The EPR may not be available at a given time; c)It may take unacceptable delay to access the EPR; d)The means to access the EPR may not be available at that moment; and e)The EPR access means must be exposed. In this paper the concentration is on risks a), c), d),and e). This paper provides solutions to risks especially present in emergency scenario by applying cryptographic techniques. CRYPTOGRAPHIC BUILDING BLOCKS The general idea behind the proposed scheme is that the patient remains himself the part-owner of and jointly responsible for his own EPR. This does jus- tice to the privacy rights and nowadays emancipation of the patient. Encryption techniques are used for providing con dentiality. By using both digital signatures and encryption techniques it is also possible to provide privacy. In principle, this works when a patient is able to communicate. A patient's digital signature is applied to guarantee the integrity and autheuticity of the EPR. In an emergency event all access means have to be temporarily bypassed and restored afterwards. Two schemes are used. The modi ed forward secure (FS) encryption solution is used by a patient when he is conscious and physically able to communicate with the Hep. It is used to generate and access medical records. The master key solution is used by the Hep to access the patient's EPR in an emergency event. In both solutions the forward signature algorithm is used. The principle of a forward signature algorithm is that several messages can be signed with a signing key K S I Gj that eventually will be revoked and replaced with KSIGj+l. The veri er is still able to verify the messages signed with KSIGj for 1 j using verifying key KV E R. In case of exposure of K S I G j to third parties, only an update of KSIGj is needed. This scheme uses the scheme originally proposed by Itkis and Reyzin ,(IR) [4]. The IR algorithm has no encryption function. While forward-secure, (FS) encryp- 178 tion algorithms can be obtained from di erent literature sources, in this proposal; the IR algorithm is modi ed such that an encryption function is integrated. The modi ed IR scheme is chosen based on the fact that a symmetric encryption is needed for non-emergency situation where oblivious access of EPRs also must be possible. This modi cation enables incorporation of a symmetrical algorithm like AES in the forward-secure system. The details of the two solutions are given in the following section. Procedures of FS-encryption scheme One of the capabilites the scheme must have, is the proteetion of patient's con- dentiality. This is provided by encryption. The patient has to own the the encryption key in order to control the access to his records. The patient's EPRs integrity and authentication need also to be assured by the scheme, hence patient signature is needed. A signature also provides patient's consent. Due to the ear- lier stated risks of encryption and signature keys exposure, the scheme must be forward secure. Apart from the signature key present in the IR algorithm [4], an encryption key need to be included. A patient identi cation key, KID is therefore introduced. The IR algorithm based on Strong RSA assumption is used to obtain KID in the FS-encryption-scheme. Strong RSA assumption postulates that, it is intractable, given n and a value Cl! E Z~, to nd E Z~ and r > 1 such that r == Cl! (mod n) in which n is a product of two 'strong' primes and r is a random number [r ~ Z~l. In the IR scheme as well as this scheme,the maximum number of key updates T, is de ned a priori to determine the validity duration of a given KV ER. From IR scheme, the following expressions are co-opted to simplify the scheme; I,= (eiei+l eT) modspt. n) represents a parameter in a signing factor equation; while (Je = {el, e2, , eT} is a set of all e. Where all ei are random numbers relative prime to each other and 1) and SI cannot be derived anymore from KGEN] thus v cannot be derived. Using the smartcard reader and the patient's smartcard the emergency Hep on duty can login the respective mobile network and access the EPR. The following section gives general picture of how the emergency EPR scheme functions. EMERGENCY EPR SCHEME Emergency health care services can be needed anywhere and anytime. This is because accidents and situations that need urgent medical attention are inde- pendent of time and location, Therefore the need for a mobile environment is inevitable. For the Hep to be able to access the patient's EPR from any location in a given area, several assumptions have to be made. Four parties, namely the patient, Hep, EPR location, Health Provider, HP (e.g.hospitai), and the Trusted Party, TP participate. Several smart gateways are also used to facilitate mobility. A smartcard is provided to every patient by the TP as the patient's means of identi cation and access to EPRs. The TP is a party that is also by law obliged to take an oath of secrecy. It also monitors the mobile gateway G MOBILE· The G MOB I LE role is to locate the HP containing EPRs. The total topology of the proposed system with all parties involved is shown in gure 1. For the scheme to 182 5 Mobile Emergency 6 Smartcard HCP C.2.ll1!ll. _ 1 Figure 1: Topology of parties involved during an emergency EPR access at the network level. Numbers represent the sequence of events. work, it requires EPR initialization, creation, emergency access, and key update steps. In this paper only the EPR emergency access is described. It is assumed that the patient's smartcard is available, but not the PIN code. The Hep uses the smartcard reader and patient's smartcard to access the EPR. The Hep will send to GMOBILE the designation number of the smartcard NCARD and patient's identi cation encrypted with the signature key, eKSIGj(IDp). The mobile gateway determines the correct KV ER from NCARD and then runs the procedure (Le) with inputs KVER and eKSIGj(IDp) obtaining the output IDp*. Using the IDp in its storage, the GMOBILE checks whether IDp*=IDp. In this case GMOBI LE knows all HPs that have at least one relevant EPR of the patient. Therefore, the next is for the GMOBILE to send all those GHP a re- quest for emergency access for ID p. The TP gets noti ed of the event. All HPs contain = h(I Dp). In this emergency situation the patient's consent provided by the FS-encryption scheme is exposed. Having located the correct EPR, every GMOBILE copies all encrypted EPR data, eK EPRJ(DEPR). It then sends the copy back to GMOBILE with IR parameters i, -,),e]- The GMOBILE then sends all the received data and KMOBILE to the Hep, where, KMOBILE is a key used for access- ing the EPRs decryption key, the KMASTER. Using the received KÎvt.OBILE the master key can be deciphered; i.e. dKMOBILE*(eKMOBILE(KMASTER)) = KMASTER* and veri ed whether h(KMASTER*) = h(KMASTER). The Hep now can retrieve a copy of EPR by executing procedure (2c) for all encrypted EPRmedical data, i, and -, with inputs; KMASTER, eKEPR3(DEPR), i, -,), e]- This copy is supposed to be deleted after the emergency treatment of a patient. The EPR keys should be updated as soon as the patient is conscious and physi- 183 cally able to give his consent. CONCLUSION AND DISCUSSION This paper has introduced a modi ed forward-signature and an encryption solution for accessing EPRs. Two schemes have been used for emergency EPR access. The FS-encryption scheme has been used for the encryption of patient's identi cation, access request of emergency EPR, and the provision of patient's consent. The master key scheme has been used for the EPR signature and decryp- tion. Patient's con dentiality is guaranteed by instantly updating all signature and encryption keys after every usage. The medical data integrity is also assured in the scheme. Timely availability is provided by the IR algorithm, which veri es optimally [4]. Changes introduced in the original IR scheme include among others a message integrity parameter and the AES encryption key. These introduced changes do not weaken the strength of the scheme in [4], because the signature key strength mainly depends on its continuous forward update of keys for every usage. The encryption key is also forward updated but can be accessed by a master key in emergency situations by authorized persons. Since the public key is also used for decryption it should be kept secret. In case the private key is cornpromiserl , the public key is protected by the factorization and discrete logarithm problem. REFERENCES [1] The Joint Computing Group of the General Practitioners' Committee: Gaart Practice for General Practice Electronic Patient Records, Ver. 2.6, UK. 2000. [2) Health Canada, International Activities toward Electronic Health Records: Unique Identi cation and PKI, Ottawa, 200l. [3) P. Charnley: Security and Con dentiality Requirements for Cancer EHR, Version 0.1, Wirral NHS Natural Community, 200l. [4) Gene Itkis, Leonid Reyzin: Forward-Secure Signatures with Optimal Signing and Verifying, In: J. Kilian (ed.), Advances in Cryptology, LNCS, Vol. 2139, Springer-Verlag, Berlin, Germany, 2001, p. 332-354. [5) G. Ateniese, R. Cutmola, B. de Meideiros and D. Davis: Medical Infor- mation Privacy Assurance: Cryptographic and System Aspects, In: Third Conference on Security in Communication Networks 2002, (SCN2002). 184 SECURITY ANALYSIS OF PHYSICAL UNClONEABlE FUNCTIONS P. Tuyls, B. Skoric, T. Akkermans, W. Ophey, S. Stallinga Philips Research Laboratories Prof. Holstlaan 4, AA 5656 Eindhoven, The Netherlands {pim.tuyls~philips.com} We propose a general theoretical framework to analyze the security of Phys- ical Uncloneable Functions (PUFs). We apply the framework to Optical PUFs. In particular we present a derivation, based on the physics govern- ing multiple scattering processes, of the number of independent challenge- response pairs supported by a PUF. We find that the number of independent challenge-response pairs is proportional to the square of the thickness of the PUF, and inversely proportional to the wavelength of the laser and to the scattering length in the PUF. We compare our results to those of Pappu and show that they are compatible in the case where the density of scatter- ers becomes very high. INTRODUCTION A 'Physical Uncloneable Function' (PUF) is a function that is realized by a physical system, such that the function is easy to evaluate but the physical system is hard to characterize [1, 2]. PUFs were introduced by Pappu [3] as a cost-effective way of generating secure keys for cryptographic purposes. They offer an attractive alternative for the Unforgeable Subway Tokens introduced by Bennett et al. [4]. The main difference resides in the fact that PUFs are based on classical physics while Bennett's tokens are based on the Uncloneability property of quantum bits. By storing a key in a PUF, the key becomes uncloneable. Hence, it can not be given away or copied. Therefore, PUFs are attractive in Digital Rights Management (DRM) systems. A PUF is a physical system designed such that it interacts in a complicated way with stimuli (challenges) and leads to unique but unpredictable responses. Hence, a PUF is similar to a keyed hash function. The key is the physical system consisting of many "random" components. In order to be hard to characterise, 185 the system should not allow efficient extraction of the relevant properties of its interacting components by measurements. Physical systems that are produced by an uncontrolled production process, i.e. one that contains some randomness, turn out to be good candidates for PUFs. Because of this randomness, it is hard to produce a physical copy of the PUF. Furthermore, if the physical function is based on many complex interactions, then mathematical modeling is also very hard. These two properties together are referred to as Uncloneability. From a security perspective the uniqueness of the responses and uncloneabil- ity of the PUF are very useful properties. Because of these properties, PUFs can be used as unique identifiers for smart-cards and credit cards or as a 'cheap' source of key generation between two parties (common randomness). At the moment there are two main candidates: optical PUFs [3, 5] and silicon PUFs [2, 6]. Silicon PUFs make use of production variation in the properties of logical gates. When these are probed at frequencies that are out of spec, a unique, unpredictable response is obtained in the form of delay times. In this paper we will only consider optical PUFs. Optical PUFs consist of a physical structure containing some scattering ma- terial which is randomly distributed. They exploit the uniqueness of speckle patterns that result from multiple scattering of laser light in this disordered op- tical medium. The input ('challenge') can be e.g. the angle of incidence, focal distance or wavelength of the laser beam, a mask pattern blocking part of the laser light, or any other change in the wave front. The output, usually called the response, is the speckle pattern. An input-output pair is usually called a Challenge-Response Pair (eRP). Physical copying is difficult for two reasons: (i) The light diffusion obscures the locations of the scatterers. At this moment the best physical techniques can probe strongly diffusive materials up to a depth of ~1O scattering lengths [7]. (ii) Even if all scatterer locations are known, pre- cise positioning of a large number of scatterers is very hard and expensive, and requires a production process different from the original randomized process. Modeling of optical PUFs, on the other hand, is difficult due to the inherent complexity of multiple coherent scattering [8]. Even the 'forward' problem turns out to be hard: given the details of all the scatterers, a computation of the speckle pattern using Feynman diagrams requires summation over a number of diagrams that grows exponentially with the number of scattering events. 186 MOTIVATION In this paper we denote the set of PUFs by K, and a PUF K is modeled as a stochastic variable KEK. The amount of information about the PUF that is revealed by one response R (speckle pattern) is given by the mutual information I(K; R), I(K; R) = H(K) - H(KIR), (1) where H stands for the Shannon entropy. It can be easily seen that [9] I(K; R) = H(R). (2) In order to be able to talk about the information content of PUFs and speckle patterns, we have to make precise what we mean by this notion. This is done in the following sections. Definitions The information content of a PUF, H(K), and of its output, H(R), is determined by the measurements that can be performed on the system. This is formalized as follows. We identify a measurement with its possible outcomes. Definition 1 A measurement M = {Rl, ... , Rm} is a partition of K. Here Rj is the region in K containing all PUFs that produce outcome jupon measurement M, and m is the number of possible outcomes. Two measurements give more (refined) information than one. The composition of two measurements is denoted as Ml V M2 and is defined as follows: (3) Ryl is the set of all PUFs that produce outcome j when measurement Mi is performed. By induction this definition extends to composition of more than two measurements. Definition 2 Lei n denote a probability measure on K. The information obtained about a physical system K E re by performing a measurement M is defined as m h.M(K) = - L 'T)(R;) log2 'T)(Ri). i=l 187 Due to the physics, one will often only have a specified set of measurements (challenges) available. We denote this set by A. This set has to be specified for every situation and restricts the amount of information that can be obtained on a physical system. We introduce the following definition. Definition 3 1 Given the set of possible measurements A, the total amount of information that can be obtained about a system K is hA(K) = sup sup hMIV .. VMq(K). q M, •...•MqEA It follows from the monotonicity property hMIVM2 ~ hM1 [9] that hA(K) ::; H1)(K), i.e. the maximum amount of information that can be obtained about a system is upper bounded by the amount of uncertainty one has in the measure 'f). If 'f) is given by the uniform random measure 'f)(Ki) = I/IK!, we find that H1)(K) = log2lKI. In the remainder of this text, we will assume that 'f) is given by this measure. Definitions I and 2 are very general and apply to many kinds of PUFs. In this framework, the couple (K, A) has to be defined for a well-defined notion of PUF security. We consider two extreme cases to illustrate the definitions. A eRP measurement that distinguishes PUFs perfectly reveals all information about the PUF. If such a eRP measurement is an element of A, then the PUF supports only one independent eRP. The opposite extreme case is a set of measurements A = {Mj }j=I that can be represented as an extremely coarse partitioning of K, say IMij) I = IM~j)1= IKI/2, where the combined measurements (MI V ... V Mn) suffice to distinguish all elements of K. In this case a minimum of 10!!;?IJCI measurements is needed to reveal all details of the PUF. For good PUFs, all available measurements are fuzzy, revealing little about the distribution of the optical scatterers in the PUF. It is the goal and the art to choose physical systems for which only such measurements are possible. OPTICAL PUFS We illustrate Definition 2 for optical PUFs. As an optical PUF is probed with light of wavelength À, it follows from the theory of electromagnetism [11] that details smaller than À are very difficult to resolve. It is natural to divide the 1We note that this definition is in agreement with the theory of dynamical systems and dynamical entropy [12]. 188 volume into elements ('voxels') of volume ).3. The number of voxels is Nvox = Ad/).3, where A is the illuminated area of the PUF and d its thickness. Hence, the information content of a voxel is at most 1 bit, and the PUF can be represented as a bit string of length Nvox: J( = {O, 1 }Nvox• A is the set of atomic measurements that can be performed by means of a beam of monochromatic light. They can be varied by changing the angle of incidence, the wavefront etc. By combining all the available measurements in A the details of the PUF can be probed up to size X, Hence, the maximum amount of information hA (Je) that can be extracted from the PUF is H1)(K) = Nvox. The couple (Je, A) as defined here is used in the remainder of the text. SECURITY ANALYSIS Definition of the Security Parameter C The main goal of this paper is to estimate the number of independent CRPs. This number is denoted as C. First, we define independenee of CRPs as follows. Definition 4 We say that the measurements Mi, ... , M; are mutually indepen- dent if and only if (4) Note that hM1 v ...v s«, = t . hM1 if all measurements give the same amount of information about a PUF, i.e. hM1 = ... = hMtl which by symmetry arguments is a reasonable assumption. Independent measurements are also called independent CRPs since responses are implicitly incorporated in definition 0.1. In words, knowledge of independent CRPs {Mj}j#i does not give any information about the response to the i-th challenge. The security parameter C, the number of independent CRPs, is hence naturally defined as (5) where M E A, and H(R) denotes the information content of a response to a challenge (measurement). The second equality in Eq. (5) follows from Eq.(2). As we have already argued that hA(Je) = Nvox, the remainder of the text focusses on the computation of H(R). 189 Speckle Pattern Entropy It has been shown in [9] that an optical PUF can be modeled as a strongly scat- tering waveguide of thickness d, cross-section A and scattering length e, satisfying À« e e: d. The waveguide allows a number oftransversal modes Nmod = 7rAjÀ2. An upper bound for the information content of a speckle pattern is obtained as follows. First, we assume that the Nmod outgoing modes are independent. The smallest information carriers of light are photons. The number of distinguishable ways in which the photons that create the output (speckle pattern) can be dis- tributed over the Nmod outgoing modes is a natural measure for the information content of a speckle pattern. It has been shown in [9] that this upper bound is given by, H up (R) ~~ Nmod 2 Iog2 (7re2 NNip ) . (6) mod Note that the information content of a speckle pattern, H(R), increases with the number of contributing photons Nip in a logarithmic way. Hence, any errors that we make in estimating Nip will only have a small effect on Hup(R). We have assumed Nip > Nmod in the derivation. Therefore the logarithm in (6) is positive. In order to compute a lower bound on H(R), we take the correlations between the scattering channels as given by [10] into account. A similar computation as the one for the upper bound is then performed but the number of independent outgoing modes is reduced by the correlations. This results in the following lower bound [9], (7) The Security Parameter for Optical PUFs We use the results of the previous section to estimate the security parameter. Substitution of (6) and (7) in (5) leads to the following bounds for C : Nmod} . (8) The min{-··, Nmod} function reflects the fact that the number of independent challenges cannot exceed Nmod, the total number of input modes. The result (8) has the following properties: • C grows with increasing dj À. 190 • In addition, the upper bound on C grows with increasing dil!. This is a measure for the number of scattering events Nsc taking place before a photon exits the PUF. (Assuming a random walk, dil! ex .,;N;;,) . • Note that (8) refers to one specific area A illuminated by the laser. By shifting the laser over a distance equal to the diameter of the laser spot, one illuminates a new sub-volume of the PUF with the same number of challenges. This means that the total number of independent challenges Ctot is given by qat = C . ApUF IA. Using some typical example numbers (A = 1mm2, À = 500nm, d = 0.5mm, I! = 15t1m, N", = 2.5 . 1012), Eq. (8) gives 32 ~ C ~ 3.6 . 102 independent challenges per laser spot area of 1 mm". Finally, we compare our result (8) to the estimates in [3, 5]. Their approach is based on the memory angle /j() ex ÀI d [10] and does not take the density of scatterers into account. Dividing the half-sphere into pieces of solid angle /j()2, they obtain a number of CRPs proportional to d2 I À 2, representing the number of obtainable responses that look mutually uncorrelated. This number is larger than our upper bound for C by a factor ex I!I À. The two approaches give comparable results only in the limit of extremely strong scattering, I! ;::;; À. REFERENCES [1] B. Gassend et al., Controlled Physical Random FUnctions, Proc. 18th Annual Computer Security Applications Conf., Dec. 2002. [2] B. Gassend et al., Silicon Physical Unknown Functions, Proc. 9th ACM Conf. on Computer and Communications Security, Nov. 2002. [3] R. Pappu, Physical One- Way Functions, PhD thesis, MIT 2001. [4] C. Bennett, G. Brassard, S. Breidbart and S. Wiesner, Unforgeable Sub- way Tokens, CRYPTO 82. [5] R. Pappu et al., Physical One- Way FUnctions, Science Vol. 297, Sept 2002, p.2026. [6] B.L.P. Gassend, Physical Random Functions, Master's Thesis, MIT 2003. 191 [7] M. Magnor, P. Dorn and W. Rudolph, Simulation of confocal microscopy through scattering media with and without time gating, J.Opt.Soc.Am. E, Vol. 19, no. 11 (2001), pp 1695-1700. [8] J. F. de Boer, Optical Fluctuations on the Transmission and Reflection of Mesoscopic Systems, Ph D thesis, 1995, Amsterdam. [9] P. Thyls, E. Skoric, S. Stallinga, T. Akkermans, W. Ophey, Information- Theoretic Security Analysis of Physical Uncloneable Functions, preprint available at http) jusers.skynet.bejpimtuylsjpimtuyls.htm. [10] S. Feng, C. Kane, P.A. Lee and A.D. Stone, Correlations and Fluc- tuations of Coherent Wave Transmission through Disordered Media, Phys.Rev.Lett. Vol.61 NO.7 (1988), pp 834-837. [11] D. Cabor, Light and Information, in E. Wolf, Ed., Progress in Optics Vol. I, North-Holland, Amsterdam 1961. [12] K. Petersen, Ergodic Theory, Cambridge University Press, 2000. 192 ON THE COMPUTING ANALYSIS OF ARBITRARY SHAPE CODING IN MPEG-4 Milan Pastrnak and Peter H. N. de With LogicaCMG Nederland, EHAT, PO Box 7089, 5605JB Eindhoven, The Netherlands University Technol. Eindhoven, PO Box 513, 5600MB Eindhoven, The Netherlands Email: M.Pastrnak@tue.nl Abstract The predictability of the system behavior is a critical issue for the imple- mentation on a resource-limited platform and this also holds for embedded multimedia systems. The high complexity and dynamic change of resources in the MPEG-4 standard (e.g. the shape-texture decoding) is conflicting with resource limitations. In this paper, we focus on the detailed analysis of the dynamic behavior and bandwidth, as required by the proposed compu- tation model that was developed earlier [ij. The analysis revealed that the actual average bandwidth requirements are about 2.5 times lower than the worst-case estimation. The bandwidth analysis is important for the design- time and run-time mapping. 1. INTRODUCTION The combination of complex algorithms and their implementation in em- bedded systems requires a careful approach and starts already at an early stage of the system design. In this paper, we complement the analysis study of the arbitrary-shaped coding tool of the MPEG-4 standard [2]. The extensive cod- ing tools within the MPEG-4 standard allow a broad area of implementations. First, we focus on the application details that can be explored by an applica- tion programmer at an early stage of the product design process. Application aspects, such as data-driven complexity and consequently required memory al- locations, might speed-up subsequent SW/HW iterations of the product-design process. For example, the predictable memory usage and required bandwidth for the communication between tasks is tightly connected with the application (in our case streaming video). However, a platform-dependent memory organization may influence the final partitioning of the application. 193 The primary motivation for taking MPEG-4, is that it combines currently used coding techniques for video compression (e.g. DCT based) and newly in- cluded algorithms from e.g. the computer world like 2D and 3D graphics. We have adopted arbitrarily-shaped video object (AS-VO) decoding as a coding tool combining both feature types. This tool potentially leads to many applications, such as surveillance systems, patient monitoring, videophones, etc. Based on ear- lier work, a single processor system cannot cope with computational complexity of such an advanced application. Therefore, we assume a multiprocessor System- on-Chip (SaC) as the target platform for our system. Section 2 gives the background information on the platform. Section 3 dis- cusses the details of the arbitrary shaped coding. Section 4 presents the model and featuring timing analysis. Section 5 addresses the computational model with bandwidth annotation and the last section concludes the paper. 2. MULTIPROCESSOR SYSTEM-ON-CHIP Multiprocessor Systems on Chip (MP-SaCs) are suitable platforms for map- ping multimedia applications [3]. When mapping such an advanced application as AS-VO (de )coding on an MP-SaC platform, reusability and scalability are attractive features. The network-an-chip (NoC) design paradigm offers a hierar- chical approach in the design of the system architecture. Network-an-chip is also called multi-hop, which means that multiple routers (switches) are connected in a predetermined topology (e.g. a mesh). This structure is more scalable in the number of modules than a bus-based system. The predictable system behavior is supported with point-ta-point communication connections, providing end-ta-end network services with guaranteed properties, independent from other connec- tions [4]. More specifically, we employ a tile-based architecture with hierarchical memory, of which the details are depicted in Figure 1. The MP-NoC platform consists of processing tiles, storage tiles and the network-an-chip (or switch network). A processing tile represents a small self- contained embedded computer, consisting of one embedded CPU core (e.g. RISC), local memory and, possibly, application-domain specific accelerators. Further- more, each tile contains a so-called Communication Assist (CA), which is a gate- way from the specific local memory subsystem to the standard network services. The MP-NoC architecture provides access to large memories, e.g. external off- chip memory. It contains a memory controller that performs data transfers (pos- 194 Figure 1: MP-NoC tile-based architecture. sibly with some pre/post-processing) between the network and its memory. The NoC transports data packets from one tile to the other. 3. ARBITRARILY-SHAPED VIDEO OBJECT To decode AS-VO within MPEG-4 coded video requires a high amount of tools. We have focused on one particular tool in the standard, offering the arbitrarily-shaped video object decoding. In MPEG-4, every video object (VO) is represented in several information layers, with the Video Object Plane (VOP) at the base layer. This video object plane is a rectangular frame containing hi- erarchically lower units, called macroblocks (MB). A macroblock is the smallest data unit of a video object and covers 16x16 pixels. D Transparent MB 41 CT 88 bic ks Figure 2: Macroblock classification within an arbitrarily-shaped VOPo Figure 2 depicts a typical composition of MBs within a VOP, representing an arbitrarily-shaped video object. As visible from Figure 2, also an arbitrarily- shaped VO (sometimes referred to as non-rectangular VO) is covered with a 195 grid of macroblocks. The standard distinguishes three types of macroblocks: boundary, opaque, and transparent. The boundary macroblock is defined as a macroblock that has transparent pixels and opaque pixels. Additionally to texture information, a compressed boundary MB has to contain coded shape information. The shape information is represented by a 16 x 16 so-called Binary Alpha Block (BAB). The texture information is represented by four 8 x 8 blocks in YCrCb color space. 4. MODEL To express the multiprocessor-level parallelism in our model, we use Syn- chronous Data-Flow (SDF) graphs. Figure 3 shows a computation graph for arbitrarily-shaped video object decoding. The given graph represents the mac- robloek decoder as a loop through the number of all macroblocks within one Video Object Plane. Each macroblock starts with the shape information, followed by the texture data. Within the shape decoding process, we partitioned the decod- ing to the following subtasks: MacroBlock-type Decoding (MBtype Dec), Shape Motion Compensation (ShapeMC), Context Arithmetic Decoding (CAD), and the Context Block Positioning (CBP) decoding. t I~ ii? !iii i:? 18. I ::1" !ta I -j-. I~ I iil ii I~ 1 Figure 3: Computation graph of motion-compensated AS-VO decoder. The texture decoding comprises five steps: Motion vector Decoding (MvD), IDCT coefficients Decoding (Coeff Dec), Texture Motion Compensation (Tex- tureMC), Inverse Quantization (IQ) and Inverse Discrete Cosine Transformation (mCT). 196 For each subtask the parametrical computation time is estimated. We assume that the computation time can be estimated accurately using a linear model on the parameters Pk,i for i = 1, 2, ... : (1) The detailed description for each subtask is given in [1]. For example, for one complete Video-Object, the parametrical model of the CAD subtask is tess: = 14.13k + 135.12k· p, + 190· Nbits1 + 400· Nbits2 + 390· Nbits3' (2) It takes 14.13 kilocycles (indicated by a k) to initialize the task. If the MB is a boundary block, we assign p, = 1, otherwise we assign p, = O. For p, = 1, 135.12 kilocycles have to be spent on decoding the shape, plus 190-400 cycles for decoding of each bit contained in the arithmetic code. 5. BANDWIDTH ANALYSIS To complete the task-level partitioning, we have to provide information on the communication bandwidth. For on-chip communication, a connection be- tween two processing or memory tiles should provide guaranteed throughput for the system. However, over dimensioning of the connection bandwidth can limit the functionality of the target platform. A cost-efficient implementation requires optimal distribution of resources and this holds also for the communication re- sources. In our work we focus on the detailed analysis of the bandwidth allocation for in-between tasks communication. This work completes the task-level timing model for the synthesis levels higher than task-level. Based on the bandwidth analysis, our task model can be re-partitioned. For example, if there is a need for high communication bandwidth and the computation load is not a limiting factor, we can decide to map two tasks on the same processor. This decision may save significant amount of communication between processing tiles. However, the optimal balancing of all main resources (processing, memory, communication) remains still a critical task for the system designer. Starting with the proposed computation graph, we calculated the worst-case estimation for our model. We assume that in the worst-case, all macroblocks within a VOP are boundary macroblocks. The second assumption refers to coded 197 a) worst-case estimation b) real execution Figure 4: Example of bandwidth(kBytejs) for AS-VO decoding (256x64 30Hz). texture data: all texture blocks are coded with maximum-valued coefficients (64), to handel even nonrealistic situations. Figure 4 illustrates an exemplary overview of the difference between calcu- lated worst-case bandwidth and measured values from our software implementa- tion of the decoder. This overview presents our first results and has to be further detailed for the run-time mapping usage. First, the amount of available test sequences has to be extended. Second, the amount of communication strongly depends on the ratio of boundary macroblocks and other statistical characteris- tics connected to the video-object, so that bandwidth guarantees are not easily derived. On the other hand, our first results obtained provide reliable input to the first iteration of SW jHW co-design involving reasoning on required commu- nication resources. The dynamic change of number of processed macroblocks is another aspect introduced by arbitrary-shaped video objects (AS-VOs). Following the standard [2], an AS-VO is covered by a grid of macroblocks inside the boundary box around the object. Figure 5 depicts the zoom effect on the number of macroblocks for an AS-VO. 198 1+2 42MBs Figure 5: The camera zoom effect. This type of dynamics such as a variable number of processed macroblocks is hardly predictable. However, the graph of Fig. 6 illustrates that for a grow- ing number of macroblocks, the ratio between worst-case estimation and real- execution becomes higher. To verify this, we have synthetically created a test sequence with CIF resolution (352 x 288 pixels). The CIF resolution is in ac- cordance with Level 2 (L2) of the Core profile of MPEG-4. In the experiment at CIF resolution, we processed 396 macroblocks, which required 42.2% of the worst-case estimated bandwidth. kByte Is 30000 25000 20000 -+-Real 15000 execution -·a -- Worst-case estimation 10000 5000 o 64 396 Macroblocks I VOP Figure 6: Total bandwidth allocation depending on the number of macroblocks. 199 CONCLUSIONS We have studied the dynamic behavior of arbitrary-shaped video objects of the MPEG-4 standard, concentrating on a Core profile L2 MPEG-4 decoder and its mapping on a Multiprocessor Network-on-Chip system. We have employed an earlier developed task model using an accurate timing estimation model for the decoder processing tasks, to concentrate in more detail on the required memory bandwidth, both for actual and worst-case performance. Though our decoder model is not yet complete, the first results offer options to tune the target system platform and cope with the hard real-time and soft real-time properties of the MPEG-4 video decoding. We found a factor of 2.5 between the worst-case and ac- tually measured bandwidths in our first experiments. The conducted study using the employed linear timing model, combined with the communication analysis, leads to a complete timing analysis of an object-oriented video coding implemen- tation. Our model needs to be refined with respect to robustness for different se- quences and the real-time constraints for actual and worst-case behavior. Our final aim is to predict the performance and constraints for mapping advanced object-oriented video processing onto multiprocessor systems. REFERENCES [1] M. Pastrnak, P. Poplavko, P.R.N. de With, and J. van Meerbergen, "On resource estimation of MPEG-4 video decoding for a multiprocessor architec- ture," in Proceedings of PROGRESS 2003, October 2003, pp. 185-193. [2] ISO/lEC 14496-2:199/ Amd 1:2000, "Coding of Audio- Visual Objects - Part 2: Visual, Amendement 1: Visual Extensions", Maui, December 1999. [3] M. Berekovic, R.-J. Stollberg, and P. Pirsch, "Multicore system-on-chip ar- chitecture for MPEG-4 streaming video," in IEEE Transactions on Circuits and Systems for Video Technology, August 2002, vol. 12 of 8, pp. 688-699. [4] K. Goossens at al., Networks on Chip .. "Guaranteeing the quality of services in network on chip", pp. 61-82, edited by A. Jantsch and R. Tenhunen, Kluwert Academic Publisher, The Netherlands, 2003. 200 ESTIMATING PHYSICAL CAMERA PARAMETERS FOR 3DAV VIDEO CODING Dirk Farina, Peter H. N. de Witha,b aEindhoven University of Technology, 5600 MB Eindhoven, The Netherlands bLogicaCMG, 5605 JB Eindhoven, The Netherlands d. s. f ar i nët.ue . nl and peter. de. with~logicacmg. corn While video images are currently considered as two-dimensional (2D) en- tities, a recent trend is to extend video towards a 3D representation. In current video-coding algorithms like MPEG-4, global camera-motion is de- scribed as a set of abstract parameters, which have no direct relation to the physical camera movement. To bring physical meaning to these parameters, we present a new algorithm for estimating the extrinsic camera parameters and the varying focallength of a rotating camera from the MP EG-4 perspec- tive motion-model parameters. Most previous camera calibration algorithms did not consider calibration from video data and give inaccurate results if rotation angles are small. Our algorithm applies a global non-linear opti- mization that is more robust on video sequences and achieves a very high estimation accuracy. The optimization is carried out using a four-stage algorithm, hereby reducing the total number of iterations in the gradient- descent search by a factor of 150. 1. MOTIVATION A recent trend in video coding is to think about video in a more general way instead of only moving rectangular pictures. One direction in this new view is object-oriented video coding, as has been proposed in MPEG-4. A further step, that is currently discussed in MPEG, is 3D Audio Visual (3DAV) coding [5]. This widens the term video to include omnidirectional (panoramic) video, multi- view rendering, or free viewpoint video. In this process, the video representation gradually evolves from purely 2D signal to a 3D data. To achieve this evolution into the 3D world, not only the video data itself, but also meta-data about the recoding setup is required, specifically including camera calibration information. Descriptors for storing camera parameters like the rotation angles and focallength have already been proposed as an extension to MPEG-7. 201 Knowing the physical camera parameters instead of only an abstract represen- tation allows for many interesting applications. One example could be to imitate the camera motion from the original sequence with an automatic pan/tilt/zoom- camera, placed in a new environment. The obtained background sequence could then be used to show the foreground objects in the new environment. In the video coding community, camera motion in video sequences is usually described as a geometric transformation in the image plane. Popular models include affine motion or the perspective motion model employed in the MPEG-4 standard for the background sprite coding tools. The parameters of the affine motion model can be easily interpreted in terms of physical meaning, but the model is even not general enough to include camera panning, which is probably the most common camera operation. It is known that the perspective motion model can describe arbitrary camera motion except camera translation. However, it is only applicable to a limited field of view [4], and its parameters cannot be easily interpreted in a physical sense. 2. PROBLEM STATEMENT Let us consider the image formation process of a rotating camera which is allowed to change its focallength. By choosing the world coordinate system such that the optical center of the camera is located in the origin, each coordinate (x; y) in image i is mapped to coordinates (x'; y') = (x' N/; fj' /'ÛJ') in the reference image 0 according to m [~ "-v--' 0 0<] fa Oy ·R~ ·R~ ·R~· 0 1 "-v--" R,={rld} [y 0 1/ fi 0 -0<1/,] -O~/fi . n ~ , (1) Fo F;l where fa and fi are the focal lengths corresponding to the reference image and frame i, respectively, 0"" Oy denote the camera principal point which we assume to be in the image center, and R~, R~, R~ are the Euler-rotation matrices describ- ing the rotation around the three axes [2]. Note that different orderings of the rotation matrices are also possible, which will result in differing rotation angles. We chose this specific order, since the obtained angles correspond well to human intuition about rotation. By moving the image coordinate-system origin into the image center, we can set 0", = Oy = 0 in the following, leading to a simplified no- tation. Furthermore, we denote the camera transformations according to Eq. (1) 202 by Tx, Ty for the horizontal and vertical components, so that we can write the transformation in short form as (x';y') = (Tx(x,y), Ty(x,y)). By multiplying out the matrix equation (1), we obtain the perspective motion model that is usually employed to describe camera motion: y- = H y ( x,y ) = hlOx + hny + h12 . h20x + h21y + h22 Usually, the normalization h22 = 1 is applied to remove the scaling invariance of the parameters. Describing camera motion by the abstract parameters {hkl} is a common way to describe global motion. Based on these abstract parameters, which we get from the global motion estimator, we want to obtain the underlying physical parameters Ii, Jo, ai, (3i, '"'ti used in the formulation of Tx, Ty. 3. PREVIOUS WORK Camera calibration is an active field of research, but up to now, it has been applied mostly to determine the intrinsic camera parameters for static setups. Usually, a calibration pattern is recorded several times at varying positions to draw conclusions about the camera's internal parameters Fo. In [2],it is observed that for a rotating camera, the perspective transformation parameters are related to the image formation equation Hi = FoRiFi -1 by (2) and we can exploit the fact that the rotation matrix {rkl} is orthonormal. By forming equations describing the constraints of orthogonality and equal norm of the first two columns of the rotation matrix {rkl}' we get After some manipulation, we obtain the following expressions for estimating Jo: (5) 203 Similar equations can be obtained to calculate k While this seems to be an easy way to determine fo, the computation is not robust to noise in the input parameters, especially if the camera rotation angle is small. To see this, note that {rkl} approaches the identity matrix for small rotation angles and hence, rkl 0 for k =f l, and rkk ~ 1. Consequently, both numerators and denominators ~ approach zero and the equation gets numerically unstable. Agapito et al. [3] also present an algorithm for camera calibration with varying intrinsic parameters. They propose to estimate input parameters for all frames of a sequence at once by minimizing the algebraic distance n L 11FiFF - HiFoFl'Hrll~, (6) where 11 . II} is the Frobenius norm. While their global optimization framework alleviates the numerical instabilities, their minimization criterion is an algebraic distance, which is not related to physical meaning. This reduces the accuracy, since it shows unequal weighting of the error for different kinds of motion. 4. OUR CAMERA-PARAMETER ESTIMATION ALGORITHM In our algorithm, we estimate the camera parameters directly using a non- linear optimization framework. After the preceding global motion-estimation stage, we have a set of parameters {hkl} for each frame, which relate a pixel position (x; y) in frame i to a corresponding position in the reterence frame (x; y) = (H~i); H~i»). Note that the transformation between each pair of images involves two focallengths. If we would perform the transformation independently for each pair of images, we would get conflicting focal length estimates for the same image. However, by forming the additional constraints requiring that all focal length estimates for a single image should be equal, we can increase the es- timation accuracy. On the other hand, since the constraint links the parameters between images, the optimization cannot be carried out indcpendentlyon pairs of images anymore, but must now be computed over all parameters simultaneously. As we have seen in the last section, the focal lengths can be estimated more accurately for larger rotation angles. Hence, we chose to compute all parameters relative to a fixed reference frame instead of pairs of neighboring frames. Specif- ically, we fix the first frame as the reference frame and compute all parameters relative to this frame. As a natural way to define the fitting accuracy between two frames, we can measure the displacement of the same image position between the 204 (a) Rotation parameters. (b) Focal length parameters. Figure 1: Convergence speed of rotation angles and focal length ratios. A good solution is reached after only a few iterations. original position after global motion compensation (Hx(x, y), Hy(x, y)) and the transformed coordinate using physical camera parameters (Ty(x, y), Ty(x, y)). In order to achieve high accuracy, we directly use this definition of accuracy in our parameter estimation process. More specifically, we define the matching error as the sum of the squared displacements at the image corner positions. We sum the total estimation errors over the complete sequence to define the cost functional E = L L (H~i)(X, y) - T~i)(x, y))2 + (H~i)(X, y) - T~i)(x, y)t (7) iE[l;N] (X;Y)EP p = {(±w; ±h)} denotes the set of all image corner coordinates and w, h rep- resent the image resolution. The parameters for all image transformations T(i) are collected in a large parameter vector v = (fa; 11; 0;1; (31;')'1; 12; 0;2;(32;')'2; ... ) of length 4N - 3. In order to find the best parameter vector v* = arg min, E, the Levenberg-Marquardt algorithm can be used. 5. CONVERGENCE BEHAVIOUR AND FAST ALGORITHM In our first experiments, we initialized the optimization with all rotation angles set to zero and a fixed focallength set to some sensible but arbitrary value. We observed the following convergence behaviour. The rotation angles and ratios of focal lengths fo/ fi converge after only about 10 iterations (Fig. 1) up to an overall scaling factor, which is depending on the absolute focal length. On the other hand, the convergence of the absolute focallength is much slower. Usually, up to 50,000 iterations were required, which makes the algorithm impractical (Fig. 2a). 205 ~o5o.---_-_--_-_-~-_____, 1000 'a estimate (initjalvalue-l000) - ~ j 1000 f 0 estimate (initial value_SOa) .- '0 - 950 ] 900 900 : ~. : h ~t : : final 850 --. - nnary-searc ,eps---:-----;- optimization 800 800 750 700 650 600 550 500 ~O-~50""00---:1=0000;:::-----",5~00:::-0 -""200~OO~--:2~50""00,.......",30='000 175 200 iteration step Iteratlonstep (a) Standard Levenberg-Marquardt opti- (b) Our combined 4-stage optimization (200 mization (30,000 iterations). iterations) . Figure 2: Convergence speed of fa parameter. Note the different scaling at the horizontal axes. While convergence of rotation angles is fast, the main problem is to determine the correct focal lengths quickly. Since it is not the ratio between focal lengths fd fa that is difficult to estimate, but their absolute size, it is sufficient to get a fast solution for fa. We apply the four-stage algorithm illustrated in Figure 5 to search for fa. Herein, the block ShortESTIM denotes 25 iterations of the Levenberg-Marquardt algorithm with a fixed fa during the first 20 iterations. From the behaviour of fa during the last iterations, it can be concluded whether its value should be decreased or increased. Figure 2b illustrates the values of fa during the fast convergence process. 6. EXPERIMENTS AND RESULTS We applied our algorithm to the well known stefan test-sequence. The ob- tained camera parameters are shown in Figure 3. Since there is no ground-truth data available for the sequence, we can only judge the result by visual examina- tion. According to this, the result accurately corresponds to the visible camera motion. The obtained camera parameters can be used, e.g., to place the input image planes into a 3D space such that the placement corresponds to their virtual recording position. Figure 4 shows a visualization for the stefan sequence. Viewed from the camera position, all images fit together without alignment errors. The computation time for the algorithm (excluding the preceding global- motion estimation) on a 2.8 GHz Pentium IV is about 2 seconds for 20 frames (calculated over a 200 frame sequence, only considering every 10th frame). 206 angle (degrees) focaJlength ~.-----------------------------~ _ a (hortzonlal pan) 20 - - - ~ (verticallilt) 720 760~ ---------------------- --------- ------------ 10 - - 1(roll) 680 _ focal lengths 640 --- fa ·10 600 ·200~----~~~----~~----~~--~2~00 0·L_----~50~----~1~00~----~1~~----~2~OO frame number frame number (a) Rotation angles. (b) Focal lengths. Figure 3: Computed camera parameters for the first 200 frames of the stefan sequence. Figure 4: Image planes of every 10th frame from the Stefan-sequence. 7. CONCLUSIONS We presented a new algorithm to obtain the physical camera parameters (three rotation angles and the focallength) of each frame of a video sequence for a rotating camera. Differing from previous work, we apply a global optimization which achieves high accuracy since global consistency is obeyed. Using a special- ized optimization algorithm, it was possible to decrease the number of iterations from about 30,000 for the unmodified algorithm to only 200, which is a factor of 150. This reduces the computation time to about 2 seconds for 20 input frames on a 2.8 GHz Pentium IV. Since the algorithm is only based on the parameters of the perspective motion model, which is also used in MPEG-4 for transmitting current camera positions in sprite mode, the algorithm can also be used in the receiver on the decoded data. Possible applications include the generation of spherical panoramas from MPEG-4 background sprites without requiring complex recomputation of the global camera motion. 207 REFERENCES [1] Richard Hartley, Andrew Zis- serman. Multiple View Ge- ometry in Computer Vision. Cambridge University Press. [2] Richard Szeliski, Heung- Yeung Shum. Creating full view panoramic image mo- saics and environment maps. In Computer Graphics, An- nual Conference Series, pp. 251-258, 1997. [3] L. De Agapito, E. Hayman, 1. D. Reid. Self-Calibration of a Rotating Camera with Varying Intrinsic Parameters. In Proc. 9th British Machine Vision Conference (BMVC), 1998. [4] Dirk Farin, Peter H. N. de With, Wolfgang Effels- berg. Minimizing MPEG- 4 Sprite Coding-Cost Using Multi-Sprites. In SPIE Proc. Visual Communications and Image Processing, 2004. [5] A. Smolic, H. Kimata. Report on 3DAV Exploration. MPEG ISO/lEC JTC1/SC29/WG11 (d) Document N5878, July 2003. [6] R. 1. Hartley Self-calibration from multiple views of a ro- Figure 5: Algorithm for fast computation of tating camera. In Third Euro- focal lengths. (a) Initialization of fo. (b) pean Conference on Computer Searching for a range a; b, so that a :::;fo :::;b. Vision (ECCV'94), volume 1, (c) Applying a binary search to determine fo. pp. 471-478. (d) Global optimization over all parameters. 208 Lossless and Fine-Granularity Scalable Near-Lossless Color Image Compression René J. van der Vleuten" Sebastian Egner! Philips Research Laboratories, Eindhoven, The Netherlands Abstract We present a compression scheme that combines the high compression efficiency and low complexity of a dedicated lossless compression scheme with the flexibility of a fine- granularity scalable near-lossless compression scheme. The input image is analyzed and split into two parts: a most significant part that is losslessly compressed and a least signif- icant part that is compressed by a scalable encoder. Furthermore, we present an efficient very low complexity lossless compression method that also serves to automatically deter- mine the split point between the most and least significant parts for our scalable compres- sion scheme. Finally, we present a new lossless color transform that is the equivalent of the YUV transform that is commonly used for lossy image compression. 1 Introduetion Losslessly compressing an image produces a variable number of bits, depending on the im- age content. However, for certain applications a fixed maximum number of bits or a certain guaranteed compression ratio is required. For example, in case only a fixed limited storage space is available to store the compressed image, or only a fixed bandwidth is available to transmit it. Typically, this storage space or bandwidth is dimensioned based on the average lossless compression ratio (with a certain safety margin). If it were dimensioned on the worst case (i.e. when the image contains random data and cannot be losslessly compressed), it would not make sense to apply compression at all. For such applications, preferably lossless com- pression is used, but when lossless compression cannot achieve the required compression ratio, near-lossless compression is necessary. Recently, compression schemes have become available that enable the bit stream to be simply truncated at a desired bit rate (or compression ratio) (see e.g. [1]). Such compression schemes are referred to as bit-rate scalable compression schemes. When using perfectly invertible "integer-to-integer" transforms (see e.g. [2]), these compres- sion schemes can offer fine-granularity scalability from lossless to near-Iossless compression at the desired compression ratio. There are some disadvantages associated with the application ofthe known bit-rate-scalable compression methods for lossless or near-Iossless compression. For example, in [3], the re- cently standardized JPEG2000 scalable image compression method (see e.g. [4, 5]) is com- pared to the also recently standardized JPEG-LS dedicated lossless/near-Iossless compression "Rene. van.der.Vleutenërphilips.com t Sebastian.Egnertêphilips.corn 209 Most significant part Lossless Encoder Input Signal I J Compress Signal ed Split - Join ~ Analyse I ~ Least significant part Scalable LosslessfLossy Encoder I Figure 1: Block diagram of the proposed scalable compression method. method (see e.g. [6]). It was found that JPEG2000 required 19% more bits than JPEG-LS to losslessly compress a certain set of images. Furthermore, JPEG2000 required 4.3 times as much CPU time as JPEG-LS to decompress the images. On the other hand, the known dedicated lossless/near-lossless compression schemes, such as JPEG-LS, have the disadvantage that they do not provide scalable bit streams: when the bit rate is too high, the signal has to be completely re-encoded at a lower bit rate (possibly multiple times), to obtain the required compression ratio. This significantly increases the complexity of using these schemes. In this paper, we provide a method to make the dedicated lossless compression methods scalable. This method combines the benefits of low complexity and high lossless compression performance of the dedicated lossless compression schemes with the feature of fine-granularity bit-rate scalability from lossless to near-lossless compression. 2 Fine-Granularity Scalable Near-Lossless Compression The block diagram of our compression method is shown in Figure 1. The (digital) input signal is analyzed and split into two parts: a most significant part and a least significant part. The split of the input signal x can be described mathematically as Xms = x div k for the most sig- nificant part and Xls = x mod k for the least significant part. The setting of k = 2m (with m = 0, 1,2, ... ) is of particular practical importance, since it corresponds to just splitting off the m LSBs from the signal x. The most significant part is then losslessly compressed by a ded- icated lossless compression method (e.g. JPEG-LS). The least significant part is compressed by a scalable encoder, i.e. in such a way that its description may be truncated at any desired point. A practical way of implementing the scalable encoder is to just rearrange the bit planes, without actually doing compression. This means that the scalable encoder first puts all the most significant bits (of the least significant part) in the stream, followed by the respectively less significant bits. Finally, the losslessly and scalably encoded parts are joined/concatenated. Information about the way the signal was split and/or about the sizes of the losslessly and seal- ably compressed parts can also be added, when necessary. The truncation of the compressed scalable data, in order to obtain a fixed compression ratio, can be performed during the joining operation, or at a later stage in the system. To evaluate the performance of the proposed method, we have performed compression experiments with JPEG-LS, using the implementation provided by the University of British 210 LSB MSB LSB total relative compr. bit bit rate bit rate bit rate bit rate ratio planes [bpp] [bpp] [bpp) l%J range 0 4.345 0 4.345 100 1.84-1.84 1 3.393 1 4.393 101 1.82-2.36 2 2.534 2 4.534 104 1.76-3.16 3 1.811 3 4.811 111 1.66-4.42 4 1.250 4 5.250 121 1.52-6.40 Table 1: Compression efficiency and fine granularity scalability range for several MSBILSB split points. Columbia [7]. We evaluated the lossless and lossy performance of both JPEG-LS and the new method using JPEG-LS as the lossless compression method for the most significant bits and leaving the least significant bits uncompressed. The images used in our experiments are all 24 images (luminance component only) of the Kodak PhotoCD PCD0992 (see, e.g., [8]) at a resolution of 768 x 512 pixels. Table 1 shows the compression efficiency and scalability range for various choices of the MSBILSB split points. When no LSBs are split off, the scheme becomes a usual lossless compression method, without scalability. As more LSB planes are made scalable, the range of scalability increases. Also, the compression efficiency is reduced, but the bit rate increase is only 4% when 2 bit planes are split off. The near-lossless compression performance of the scalable JPEG-LS based scheme can also be compared to that of the non-scalable near-lossless JPEG-LS compression, as shown in Figure 2. For JPEG-LS, the points correspond to compressing using different maximum allowed absolute errors between the original and reconstructed images (ranging from 1 to 7 in Figure 2). For the scalable method, the points in the curve were obtained by truncating all LSBs and thus keeping only the lossless MSB part (the bit rates for these points are listed in Table 1). The decoder substitutes the missing LSBs by their expected value, assuming a uniform random distribution of the LSBs. For example, when 2 LSB planes are removed, the expected value for the LSB part is (0 + 1 + 2 + 3)/4 = 1.5, which is implemented by randomly setting the LSB part to 1 for half of the pixels and to 2 for the other half. Figure 2 shows that, as is the case for many scalable compression methods, there is an efficiency loss compared to the discrete points provided by the non-scalable method. However, one should keep in mind that the quality in the non-scalable case immediately drops to the next lower point in case the available bit rate or storage capacity is insufficient. For example, as shown in Figure 2, JPEG-LS provides a PSNR of 49.96 dB at 2.866 bit per pixel. As soon as fewer bits are available, the PSNR for JPEG-LS will drop to 45.23 dB, corresponding to the next available compression setting at a rate of 2.267 bit per pixel. Consequently, for rates between approximately 2.4 and 2.866 bit per pixel, the scalable method has a higher PSNR. In addition to the PSNR, also the visual quality of the reconstructed images has been eval- uated. The visual inspection shows that compression artefacts are visible already for some images (the images with "blue skies") when only 2 LSB planes are removed or, for JPEG-LS, when a maximum absolute error of 2 is allowed. In this case, although the PSNR values for the two cases are approximately the same, the artefacts for the proposed method are more ac- ceptable because they are more noise-like than the "striping" artefacts produced by JPEG-LS. However, for removing 3 LSB planes, compared to a maximum allowed absolute error of 4 211 52r--------.---------.---------,---------r--------~ 50 a: z ~42 40 I 36 .. G-._. 34L---------L_------~--------~--------_L--------~ 1 1.5 2 2.5 3 3.5 Rate [bit per pixel] Figure 2: Near-lossless compression performance of JPEG-LS and the proposed scalable com- pression method using JPEG-LS lossless compression. for JPEG-LS, where again the PSNR values are approximately the same, the proposed method produces "contouring" artefacts that are visually more disturbing than the striping artefacts of JPEG-LS. In the experiments described above, the MSB/LSB split point was set manually and was the same for each image as well as constant across the whole image. There are several ad- vantages, however, associated with automatically and adaptively determining the split point. In general the "flatter" image parts, such as the blue skies, are much more sensitive to com- pression artifacts than other image parts. These same image parts also suffer the most loss of compression efficiency when their LSBs are split off. Therefore, in Section 4 we propose a method for automatically selecting the number of LSB planes to split off for each line of each image. This method is based on the low-complexity lossless image compression method described in Section 3. 3 A Very-Low-Complexity Lossless Image Compression Method Our lossless compression method follows the well-known DPCM+VLC setup: it consists of a reversible prediction step to decorrelate the data, followed by an entropy coding step to com- press the prediction error signal. However, to obtain a very low complexity, for both the DPCM and VLC parts we choose a very low complexity solution. For prediction, the "Paeth" predietor is used [9]. This predietor uses only the three pixels to the left, upper-left and above the pixel to be predicted and selects the value of one of these pixels as a prediction of the value of the current pixel. 212 New JPEG-LS PNG JPEG2000 bits/pixel 4.826 4.345 4.714 4.462 % 111 100 108 103 Table 2: Lossless compression bit rates (both absolute and relative) for the very low complexity method (New) compared to several other lossless compression methods. The prediction error signal after Paeth prediction is then converted to a signed magnitude representation and losslessly encoded using a modified "Rice" code [10], an adaptive entropy code with a very low complexity. This entropy code first removes the m LSBs of the magni- tude of a sample. The remaining MSBs are encoded using a unary code, i.e. the codeword for an MSB value of k consists of kO-bits followed by a I-bit (e.g. the codeword for k = 3 is 0001). The m LSBs are then appended to the MSB codeword, as is the sign bit for non-zero magnitudes. For example, the prediction error value 15 for m = 3 is translated into the code- word 011110, consisting of the code 01 for k = 15 div 8 = 1, the m LSBs 111, and the sign bit O. The parameter m is optimally chosen (i.e. such that it results in the lowest number of bits required for losslessly encoding the prediction error signal) as m =fioor(log2(mean(abs(e»», where e is the prediction error signal. In our implementation, the value for m is is chosen once per image line, but it could also be updated more frequently. In Table 2, the compression efficiency of our very low complexity method is compared to that of JPEG-LS, PNG, and JPEG2000. Despite its very low complexity, our method requires only 11% more bits than JPEG-LS to compress the 24-image test set (the same as used in Section 2). The difference with PNG, which also uses very low complexity prediction filters, but a complex entropy coding method, is quite small. For JPEG2000, we used the implemen- tation provided by the University of New South Wales [11]. According to this experiment, JPEG2000 is almost as efficient as JPEG-LS. Therefore, in this case the inefficiency that was observed in [3], which we referred to in Section 1, does not seem to occur. 4 Adaptive automatic split point determination for scalable near- lossless compression As was already explained at the end of Section 2, we would like to automatically determine the MSB/LSB split point for the scalable near-lossless compression method. This is performed in the "Analyze" block in Figure 1. The analysis proposed here is based on the very low complexity lossless image compression method described in Section 3. To determine the split point, first the Paeth prediction is carried out and the prediction error signal e is obtained, as described in Section 3. Next, the parameter m is again determined as m =fioor(log2(mean(abs(e»». The parameter m now directly provides the splitting point: m LSBs are sent to the scalable encoder and the remaining MSBs are sent to the lossless encoder. This selection of the split point is based on the observation that the entropy code that is applied in the proposed very low complexity lossless image compression method described in Section 3 would not apply any compression on these bits (since they are simply copied directly into the codeword). Hence these LSBs are assumed to be more or less random and there is thus no loss 213 of compression efficiency when they are not used for prediction in the lossless coding of the MSBs. 5 ANew Lossless Color Transferm So far, we have only treated the compression of luminance or gray-value images. Most images, however, are color images. These images are often specified in the ROB color space, but it is well-known that this color space it not optimal for lossless compression, because of the correlation between the components. A higher lossless compression ratio can be obtained by transforming the image to a suitable different color space before compression. Since the overall method must remain lossless, the color transform has to be perfectly reversible. Calor transforms with this property are also called lossless calor transforms. Although many different lossless color transforms have been proposed in the compression literature, none of the existing lossless calor transforms has been designed for use in near-Iossless compression. In order to be able to use perceptually relevant error criteria for near-Iossless compression, we have developed a lossless ROB to YUV transform (first presented at [12]), so all the perceptual error criteria developed for the YUV color space (which is commonly used for non-Iossless image compression) can be applied to near-Iossless compression as well. The regular ROB to YUV transform is given by: Y 0.587· G + 0.299· R + 0.114· B (1) U B-Y (2) V R-Y (3) By applying the principle of invertible networks [13], this transform can be made perfectly reversible. The resulting new lossless ROB to LYUV transform (where we use LYUV to dis- tinguish it from the non-lossless YUV) is given by: G + [0.299/0.587 . R + 0.114/0.587 . B] (4) B - [0.587· Yd (5) R - [0.587 . Yd (6) where [.] indicates rounding to the nearest integer. The perfect inversion goes as B UL + [0.587· Yd (7) R VL + [0.587 . Yd (8) G YL - [0.299/0.587 . R + 0.114/0.587· B] (9) Thus, UL and VL are the same as U and V for the regular ROB to YUV transform, whereas Y L has been increased in magnitude by a factor of 1/0.587 compared to Y in order to make the transform perfectly reversible. In Table 3, the average bit rates for compressing the same 24 ROB color images as used in Section 2 are listed for various lossless color transforms (the absolute bit rates are given per sample; they should be multiplied by 3 to obtain bits per pixel). We compared our new trans- form with the "NFS" transform [14], the "CREW/RCT" transform [15], the "SHIRCT" trans- form [16], the "RDCT" transform [16], the "YCoCg-R" transform [17], the "YFrFb" trans- form [18] and the "LOCO-I" transform. The CREW/RCT transform has been adopted in the 214 RGB LYUV LOCO-I NFS CREW SHIRCT RDCT YCoCg-R YFrFb rate 4.385 3.239 3.206 3.256 3.215 3.391 3.345 3.223 3.332 % 137 101 100 102 100 106 104 101 104 Table 3: JPEG-LS lossless compression bit rates (both absolute and relative) for various loss- less color transforms. JPEG2000 standard (where it is referred to as reversible calor transform, RCT). The "LOCO-I" transform was suggested in the initial public reference software implementation of JPEG-LS by HP Labs (based on their proprietary LOCO-I compression method); it maps (R,G,B) to (R-G,G,B-G). From Table 3 the benefits of applying a col or transform are clear, since directly compress- ing the RGB components requires 37% more bits than first transforming the image to the best alternative color space. Furthermore, the LYUV, LOCO-I, NFS, CREW, and YCoCg-R trans- forms outperform the other transforms. Quite remarkably, considering the various available different color transforms, the "simplest" transform (LOCO-I) turns out to be the best for loss- less compression. For scalable lossless and near-lossless compression the LYUV transform is preferred since it provides the familiar YUV color space that is commonly used for lossy compression. 6 Conclusion We have presented a method that extends lossless compression with the feature of fine- granularity scalable near-lossless compression while preserving the high compression effi- ciency and low complexity of dedicated lossless compression methods. The method operates by splitting the signal into MSBs and LSBs. The MSBs are losslessly compressed, while the LSBs provide a scalable bit string. We also presented a method to automatically and adaptively determine the MSB/LSB split point such that a scalable bit string is obtained without affecting the compression efficiency and without producing compression artefacts for near-lossless corn- pression. The splitting method was derived from a very low complexity lossless image com- pression method. Despite its simplicity, this compression method is quite efficient. Finally, we presented the LYUV transform, a new lossless color transform that is the lossless equivalent of the YUV transform that is commonly used for lossy image compression and has a performance for lossless compression that is very close to that of the best lossless calor transform. References [1] 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. [2] A. R. Calderbank, I. Daubechies, W. Sweldens, and B.-L. Yeo, "Lossless image compression using integer to integer wavelet transforms," in Int. Con! Image Proc. (ICIP'97), vol. 1, (Santa Barbara, CA), pp. 596-599, Oct. 26-29, 1997. [3] D. Santa-Cruz, T. Ebrahirni, 1. Askelöf, M. Larsson, and C. A. Christopoulos, "JPEG 2000 still image coding versus other standards," in SPIE Vol. 4115 Applications of Digital Image Processing XXIIl, (San Diego, CA), pp. 446-454, Jul. 30-Aug. 4, 2000. 215 [4] M. W. Marcellin, M. 1. Gonnish, A. Bilgin, and M. P. Boliek, "An overview of JPEG-2000," in Data Compression Conference (DCC 2000), (Snowbird, UT), pp. 523-541, Mar. 28-30,2000. [5] M. 1. Gormish, D. Lee, and M. W. Marcellin, "]PEG 2000: Overview, architecture, and applica- tions," in Int. Con! Image Proc. (ICIP 2000), vol. Il, (Vancouver, Canada), pp. 29-32, Sep. 10--13, 2000. [6] M. J. Weinberger, G. Seroussi, and G. Sapiro, "The LOCO-I lossless image compression al- gorithm: Principles and standardization into JPEG-LS," IEEE Trans. Image Processing, vol. 9, pp. 1309-1324, Aug. 2000. [7] University of British Columbia, Signal Processing & Multimedia Group, Vancouver, Canada, JPEG-LS Codec version 2.2,1999. http://spmg.ece.ubc.ca/. [8] "Kodak PhotoCD PCD0992 images," 1999. http://sqez.home.att.netJthumbslThumbnails.htmi. [9] A. W. Paeth, "Image file compression made easy," in Graphics Gems Il (J. Arvo, ed.), (San Diego, CA), Academic Press, 1991. [10] A. A. M. L. Bruekers, A. W. J. Oomen, R. J. van der Vleuten, and L. M. van de Kerkhof, "Lossless coding for DVD audio," in JOist AES Convention, (Los Angeles, CA), Nov. 8-11, 1996. Preprint 4358. [Ll ] Universi ty of New South Wales, Sydney, Australia, Kakadu JP EG2000 software version 3.0, 2001. http://maestro.ee.unsw.edu.au/-taubman/kakadu/. [12] R. J. van der Vleuten, "Low-complexity lossless and fine-granularity scalable near-Iossless com- pression of calor images," in Data Compression Conference (DCC 2002), (Snowbird, UT), p. 477, Apr. 2-4, 2002. [13] F. A. M. L. Bruekers and A. W. M. van den Enden, "New networks for perfectinversion and perfect reconstruction," IEEE J. Select. Areas Commun., vol. 10, pp. 130-137, Jan. 1992. [14] T. Nakachi, T. Fujii, and 1. Suzuki, "Lossless and near-Iossless compression of still color images," in Int. Conf. Image Proc. (ICIP'99), (Kobe, Japan), Oct. 24--28,1999. [15] M. J. Gormish, E. L. Schwartz, A. Keith, M. Boliek, and A. Zandi, "Lossless and nearly loss- less compression for high quality images," in SPIE Vol. 3025 Very High Resolution and Quality Imaging 11,(San Jose, CA), pp. 62-70, Feb. 10-11,1997. [16] P. Hao and Q. Shi, "Comparative study of calor transforms for image coding and derivation of inte- ger reversible color transform," in Int. Con! Pattern Recognition (ICPR 2000), vol. 3, (Barcelona, Spain), pp. 224-227, Sep. 3-8, 2000. [17] H. Malvar and G. Sullivan, "YCoCg-R: A color space with RGB reversibility and low dynamic range," in Joint Video Team (JVT) of ISOIIEC MPEG & ITU-TVCEG, no. JVT-IOI4r3, (San Diego, CA), Sept. 2003. [18] P. Topiwala and C. Tu, "New invertible integer color transforms based on lifting steps and coding of 4:4:4 video," in Joint Video Team (JVT) of ISO/IEC MPEG & ITU-T VCEG, no. NT-IOI5r3, (SM Diego, CA), Sept. 2003. 216 PERCEPTUAL QUALITY IMPACT OF GEOMETRIC DISTORTION IN IMAGES Iwan Setyawan Reginald L. Lagendijk ICT Group, Department of Mediamatics, Delft University ofTechnology Mekelweg 4, 2628CD Delft, The Netherlands {i.setyawan, r.l.lagendij k}@EWI.tudelft.nl This paper presents a study on the human perception of geometric distortions in images. The first part of the study is the design and implementation of a user-test to measure human perception of geometric distortions in images. The result of this test is then used to evaluate the performance of the second part of the study, namely the objective quality measurement scheme. Our experiment shows that our objective quality measurement has good correspondence to the result of the user test and outperforms a PSNR measurement. I. INTRODUCTION Research on human perception of image quality has been widely performed [I]. Aspects of the image considered in such research are for example granularity, sharpness and specific artifacts of compression algorithms. However, the research on human perception of image quality has not dealt with geometric distortion (i.e., distortions due to geometric operations). This paper presents a study of the impact of geometric distortions to human perception of the quality of the distorted images. The results ofthis study can be used to evaluate the performance of objective geometric distortion measure schemes, for example our novel scheme proposed in [2]. The rest of the paper is organized as follows. Section II presents the design of our user test experiment and statistical analysis methods used to process the test results. Section III presents the actual set up of our user test. Section IV presents the result obtained from this user test. Section V reviews our objective geometric distortion measure algorithm and evaluates its performance based on the subjective test result. Section 6 presents our concluding remarks. 11. TEST DESIGN & ANALYSIS METHOD 11. 1. Test design Our user test involves a panel of subjects who are asked to evaluate a test set comprising of an original image and its distorted versions. The test subjects evaluate one pair of images at a time, choosing the one they think is more distorted. This is called the paired comparison test. There are two designs for this test, namely the balanced and incomplete designs [4, 5]. We choose the balanced design, where a test subject has to evaluate all possible comparison pairs taken from the test set. Our choice is based on the fact that the number of test objects in our experiment is not very large. Furthermore, by asking every test subject to evaluate all objects in the test set we will be able to get a more complete picture ofthe perceptual quality ofthe images in the test set. The work presented in this paper has also been published in Human perception of geometric distortions in images by I. Setyawan and R.L. Lagendijk, to appear in Proc. SPIE, Security, Steganography and Watermarking of Multimedia Contents VI, Vol. 5306, San Jose, CA, 2004 217 Let t be the number of objects in the test set. One test subject performing all possible comparison of 2 objects Ai and Aj from the test set, evaluating each pair once, will make a total of (~J paired comparisons. The result of the comparisons is usually presented in a t x t matrix. If a test subject must choose one object of the pair (no ties allowed), the matrix is also called a two-way preference matrix. Its entries contain l's if the object was chosen and O's otherwise. An example of such matrix for t = 4 is shown in Figure 1. Each entry Aij of the matrix means that object Ai is preferred to object Aj. The indices i andj refer to the rows and columns of the matrix, respectively. AI Az A3 A4 AI X I I 0 Al 0 x 1 1 A3 0 0 x 0 A4 I 0 1 x Figure 1. An example of a preference matrix The number of votes object Ai received during the test, ai, is called its score. In other words, t a = " A .. , i f.j. It is easy to see that the total score for all objects and the average score among all I L... ',l )::.1 objects are t La, = .!.t(t -1) i:a and ïi =..!=!_ j = 1.(t -I), respectively. If we have n test subjects each ,=, 2 t 2 performing the paired comparison test, the test result can also be presented in a preference matrix. However, each entry Au of this matrix now contains the number of test subjects who prefer object Ai to object Aj. If we disallow ties, the values of Aij will be integers ranging from 0 to n. In this case the total and average scores are expressed as !nt(t -1) and !n(t -1), respectively. 2 2 11. 2. Statistical analysis of the experiment The objectives of the statistical analysis are to obtain the overall ranking of the test objects and to show the relative quality differences (i.e., similarity) between the test objects. The analysis we perform on the data to achieve these objectives are the coefficient of consistency, the coefficent of agreement, and the significanee test on score differences. 11. 2. 1. Coefficient of consistency A test subject is consistent when he/she, in evaluating 3 objects An Ay and Az from the test set, does not make a choice such that Ax -7 Ay -7 Az but Az -7 Ax (the arrows mean "preferred to"). Such condition is called a circular triad. The matrix in Figure 1 has one such triad, namely AI-7Az-7A4 but A4-7AI. For smaller values of t, the circular triads can be easily enumerated. For larger t, we compute the number of circular triads, c, from the scores ai using the following relation [4, 6]: 218 t 2 ï' C=-(t -1)--, where T = ~)ai _a)2 (1) 24 2 ;'::1 The number of circular triads c can be used to define a measure of consistency of the test subjects [4]. KendalllBabington-Smith compared the number of circular triads found in the test to the maximum possible number of circular triads. The coefficient of consistenee ç is defined as follows: ç = 1- 24c , if t odd (2) t(t2 -1) r ~ = 1- 24c'f ,It even (3) t(t2 - 4) There are no inconsistencies if, and only if, ç = 1. This number goes to zero as the the inconsistencies increase. The coefficient of consistency can be used in the following ways, Firstly, it is an indication of the quality of the test subject. Secondly, it is as an indication of the similarity of the test objects, since if the test objects are very similar, it would be hard to make consistent decisions. 11.2.2. Coefficient of agreement Coefficient of agreement shows the diversity of preferences among n test subjects. Complete agreement is reached when all n test subjects make identical choices during the test, in which case half of the entries in the preference matrix will be equal to n, while the other half would be zero. Alternatively, ifthere are completely no agreements among the subjects all entries will be equal to nl2 (if n is even) or (n ± 1)/2 if n is odd. Each time 2 test subjects make the same decision regarding a pair of test objects Ai and Aj, we say that we have one agreement regarding this pair. In other words, we measure the agreement by counting the number of pairs of test subjects that make the same decision over each pairs of test objects. We now introduce r, defined as [4]: r=~~ ~~(A) i=1 j=1 ij 2 ' t= i (4) In Equation (4), r shows the total number of agreements among n test subjects evaluating / objects. Kendall/Babington-Smith [6] defines the coefficient of agreement, u, as follows: (5) u=~-l=~-l maxï r) GJ(;J The value of u equals 1 if and only if there is a complete agreement among the test subjects, and decreases when there are less agreements among the test subjects. The minimum value of u is -l/(n-l) if n is even or -l/n if n is odd. We can perform a hypothesis test to test the significanee of u [4, 6], the null hypothesis being that all test subjects cast their preference completely at random. For relatively large n we test the significanee of u using the statistic proposed in [7]: 219 (6) that has l distribution with (~) degrees of freedom. Consistency and agreement are two different concepts, thus a large u does not necessarily imply low inconsistency and vice versa. Coefficient of agreement also shows whether there are significant differences among the scores. A low u indicates that there are no significant differences among the scores, while large u indicates that there exist significant differences among the scores. 11.2.3. Significance test of the score difference Significanee test of the score difference is performed in order to see whether the perceptual quality of object Ai can declared to be significantly different from the quality of object Aj. This is equivalent to partitioning a set of scores S = {ai, ab ... , at} into sub-groups such that the variance- normalized range (the difference ofthe largest and lowest values) ofthe scores within each group, R = (amax - amin) (7) (JOi is lower or equal to a certain value IRe l, which depends on the value of the significanee level a. That is, we want to find R, such that the probability P[R ~ Rel is lower or equal to the significanee level a. We declare the objects within each group to be not significantly different, while those from different groups are declared to be significantly different. By adjusting the value of a, we can adjust the probability of false positives (declaring 2 objects to be significantly different when they are not) and false negatives. The distribution of the range R is asymptotically the same as the distribution of variance- normalized range, w" of a set of normal random variables with variance = I and t samples [4]. Therefore, we can use the following relation to approximate P[R ~ Rel 2R , _.!.2 P[W;a~~l (8) . -d nt In Equation (8), w',a is the value of the upper percentage point of W, at significanee point a. The I l. values of Wt,a is tabulated, for example, in [8]. The value of R is then set as R; ill. TEST PROCEDURE We used two images, Bird and Kremlin, to build the test set. Both are B-bit grayscale bitmap images with 512 x 512 pixels resolution. The Bird image does not have much structures such as straight lines and not every test subject is familiar with the particular species of bird depicted in the image. Therefore, a subject should have little (if any) a priori knowledge. On the other hand, the 220 Kremlin image has a lot of structures and even though a test subject may not be familiar with the Kremlin, he/she should have some prior knowledge ofthe shapes ofbuildings. We used 17 different versions ofthe images, each geometrically distorted in a different way. Thus in our test we have t = 17. Each image is identified using the notation Ai, with i = 1, 2, ... 17. A complete list and description of the geometric distortions are provided in [10]. We make all possible comparison pairs out ofthe 17 images. In each pair, we designate the first image as the left image and the other as the right image which refers to how the images are to be presented to the subjects. We then repeat each pair once, with the left-right ordering of the images reversed. The user test involved 16 subjects. Each subject examines each pair of the test images twice in one test session. Three subjects perform the experiments three times to see the difference of test results for one person when the test is repeated. We assume that each repetition ofthe test (both within a single test session and between test sessions) are independent, thus we have n = 44. IV. TEST RESULTS AND ANALYSIS IV.I. User preference matrix After performing the user test, we obtain the preference matrices for the Bird and Kremlin images. In Figure 2, we show the preference matrix obtained for the Bird image. The preference matrix of the Kremlin image is available for download at our website [3). The column ai shows the score of each image Ai. Since in our experiment the test subject is asked to choose the image with the most distortion, a smaller score ai means that the image is perceptually better. IV.2. Coefficient of consistency (Ç) We measured the coefficient of consistency for individual test subjects using Equation (3). Since each test subject performs the user test twice per session, we use the average value of ç as an indication of each subject's consistency. Our analysis shows that in general the test subjects are consistent in their decision. We also see that in general the values of ç for the Bird image is lower than that of the Kremlin image. This is due to the fact that the Kremlin image contains more structure compared to the Bird image, which helps the test subjects make consistent decisions. Furthermore, the unfamiliarity of the test subjects to the particular species ofbird depicted in the image also makes it more difficult to make consistent decisions. IV.3. Coefficient of agreement (u) We measured the overall coefficient of agreement that measures the agreement among all test subjects in the experiment and the individual coefficient of agreement, that measures the agreement of a test subject with him-/herself during the 2 repetitions in a test session where a low u value indicates that the subject is confused and does not have a clear preference ofthe image pairs being shown. For the the overall coefficient of agreement, n = 44 and t = 17 and thus -0.0227 ::;u ::;1. From the preference matrices, we have Ubird = 0.574 and Ukremlin = 0.731. The significanee tests on both u values show that in both cases there are strong agreements among the test subjects. We also see that 221 the agreement in the case of the Bird image is much weaker than the Kremlin image due to the image content. For the individual coefficient of agreement, n = 2 and t = 17 and thus -1 :'ó u :'ó 1. Here we find that in general the subjects have larger u values for the Kremlin image. The significanee test on the values of u also shows that the test subjects have clear preferences of the images in the test set. AI A, A3 A, A, A, A, A, A, AIO All A" AH Au A" A" An al AI x 7 3 0 0 11 21 19 8 8 24 2 10 9 I 0 0 123 A, 37 x 4 0 0 33 28 29 24 30 36 10 11 12 5 1 1 261 A3 41 40 x 3 1 42 43 39 39 41 42 25 18 37 9 5 0 425 A, 44 44 41 x 3 44 44 42 43 43 43 37 39 43 31 15 1 557 A, 44 44 43 41 x 44 44 44 43 43 44 42 43 44 43 42 24 672 A, 33 11 2 0 0 x 25 15 17 15 33 4 11 8 1 0 0 175 A, 23 16 1 0 0 19 x 15 13 21 28 3 11 5 2 0 0 157 A, 25 15 5 2 0 29 29 x 12 17 27 6 10 9 1 1 0 188 A, 36 20 5 1 1 27 31 32 x 30 40 8 15 15 2 2 0 265 AIO 36 14 3 1 1 29 23 27 14 x 34 6 9 9 0 0 0 206 All 20 8 2 1 0 11 16 J7 4 10 x 4 5 6 1 0 0 105 A" 42 34 19 7 2 40 41 38 36 38 40 x 20 31 9 5 1 403 A" 34 33 26 5 J 33 33 34 29 35 39 24 x 25 17 5 0 373 Au 35 32 7 1 0 36 39 35 29 35 38 13 19 x 6 J 0 326 A" 43 39 35 13 1 43 42 43 42 44 43 35 27 38 x 7 2 497 A" 44 43 39 29 2 44 44 43 42 44 44 39 39 43 37 x 1 577 An 44 43 44 43 20 44 44 44 44 44 44 43 44 44 42 43 x 674 Figure 3. Preference matrix for the Bird Image IV. 2. 3. Significance test of score differences From the results of the previous section, we can conclude that there exist significant differences among the scores ofthe test objects. We perform the test for a significanee level ex = 0.05. From [8] we have Wt. a= 4.89. Therefore, we have R; = 67.12 and R = 68. Thus, only objects having a score difference of more than 68 are declared significantly different. Figure 4 shows the grouping of the images based on the significanee of the score differences for the Bird image set (the grouping for the Kremlin image set is presented in [10]). Images having score difference smaller than 68 are grouped together. This is represented the shaded boxes under the image code. All AI A, A, As AIO Az A9 Au A/J All A3 AH A4 A'6 As An 105 123 157 175 188 206 261 265 326 373 403 425 497 557 577 672 674 îj!!!@;;liiWRîi4:i1,I Jing § WH ~-~#R*iL,t.HEM ti:$$ )$.) ti @jMMwg __ SM k & Figure 4. Score grouping for the Bird image Our experiments show that the images occupying the last 6 positions of the ranking for both the Bird and Kremlin images are distorted using the same distortion. Furthermore, they are essentially sorted in the same order. Thus, we can conclude that this distortions (that occupy the "lower quality" segment of the ranking) are so severe that the image content no longer plays a significant role in determining perceptual quality. For the other images, the influence of image contents on the perceived 222 quality of the distorted images are larger. Our analysis also shows that the u values for each group is very low showing that the quality ofthe images in the same group are difficult to distinguish. V. OBJECTIVE GEOMETRIC DISTORTION MEASURE V.l. Overview ofthe scheme The objective quality measurement scheme is based on the hypothesis that the perceptual quality of a geometrically distorted image depends on the homogeneity of the geometric distortion [2]. Less homogenous geometric distortion will give lower perceptual quality. We proposed a method to measure homogeneity by approximating the underlying geometric distortion using simple RST/affine approximation. The locality of the approximation is increased (using quadtree partitioning) until the approximation error is lower than a certain threshold or until the approximation locality reaches a predetermined maximum. We use the Optical Flow Estimation algorithm [9] to estimate the RST/affine parameters. The final score of an image (i.e., its perceptual quality) is based mainly on the average block size of the quadtree partitioning structure. Additionally, we also take into account the residual error of the blocks (i.e., the quality ofthe approximation) and the estimated RST/affine parameters associated with each block to further fine-tune the measurement. In the objective test, the score is normalized to the range ofO ~ 100. V.2. Performance evaluation ofthe algorithm The performance ofthe algorithm is evaluated by comparing it to the results ofthe subjective test and the results of a PSNR measurement. In the evaluation, we look at the intra- and inter- distortion comparisons. Intra-distortion comparison compares the scores within one type of distortion, but with different parameter sets. The inter-distortion comparison compares the scores of all distortions in the test set. Both the PSNR measurement and our scheme perform well in performing intra-distortion comparison, i.e., images distorted with a more severe parameter set are given lower scores. To evaluate the inter-distortion comparison performance, we plot the objective test score and PSNR values against the user test scores. The plots for the Bird image are shown in Figure 5. The results for the Kremlin image show similar behaviour. Our result shows that the objective test has a much better correspondence to the user test result compared to the PSNR measurement. In the latter case, the regression line is virtually horizontal. This is also reflected by the correlation coefficient P between each pair of data sets. For the Bird image, the value of the correlation coefficient p for the {user test, objective test} pair is Puo = -0.6 while for the {user test,psnr} pair the value is Pup = 0.14. We also see from Figure 5(a) that image A/3 does not properly fit the behaviour of the rest of the data and can be considered an outlier. Removing this image from the set, we getpuo = -0.87. 223 UserleslV1obJkIIv.lnl I U ---'----r---'----r---'--- 1 I I I I 90 -l L ~_._ I I ~ ---~----r---~----r---~--- I 1 1 I I I I 1 I 1 : 85 - - - I -1- - - - I r--- I -1- - - - I T - - -.-. 24F-=-.=....~' ~=i--=~ --T_-__:_-_; ....... i - 80 • 1---: -u;I&~V1ObJ,It5II~ I - - - -:- I I - - - ~ - - - -:- I -- ~ ~ _~-~----L---~----L---~--- 1 1 I 1 I 1 075 -:.-_"~I~I----~----:----+----:--- ~ -l I 1 L __ ~-l I I L ~ I _ I I I I , 70 - - - ""1 - - - - t- - - - -1- - - - T - - - -1- - - .1 I 1 • 1 1 1 18 ~ • L 1 ~ I _I ' "";.""""' /!I - - - .-li~.t 65 ---~----~-~.:-:----~----:--- 1 • 1 1 1 100 200 300 400 500 600 Usor!tsl,cor, (a) (b) Figure 5. Result comparisons for the Bird image: (a) User test vs. Objective test and (b) user test vs. PSNR measurement VI. CONCLUDING REMARKS We have described the method we use to perform a perceptual user test for geometrically distorted images and the statistical tools we use to analyze the results of the user test. The result of the user test is then used as a basis to validate our objective perceptual quality measurement scheme. The amount of data collected from our experiments is still to small to form firm conclusions. However, we observe strong trend that our proposed objective measurement system has a very good correspondence to the result of the user test and far outperforms PSNR measurements. In the future, more perceptual measurements need to be performed to collect more data. Furthermore, comparisons should also be performed between our proposed scheme and other objective measurement systems. Vll.REF.ERENC.ES [I) B.W. Keelan, Handbook of Image Quality: Characterization and Prediction, Marcel Dekker, Inc., New York, 2002 (2) I. Setyawan, D. Delannay, B. Macq and R.L. Lagendijk, Perceptual Quality Evaluation of Geometrically Distorted Images using Relevant Geometric Transformation Modelling, in the Proceedings of SPIE, Security and Watermarking of Multimedia Contents V, Vol. 5020, Santa Clara, USA, 2003, pp. 85 - 94 (3) www-ict.ewi.tudelft.nl/-iwan/user test result.html. [4] H.A. David, The Method 0/ Paired Comparisons, 2nd ed., Charles Griffin & Company, Ltd., London,1988 (5) R.E. Bechhofer, T.J. Santner and D.M. Goldsman, Design and Analysis of Experiments for Statistical Selection, Screening and Multiple Comparisons, John Wiley & Sons, Ltd., New York, 1995 (6) M.G. KendalI, Rank Correlation Methods, 4th ed., Charles Griffm & Company, Ltd., London, 1975 (7) S. Siegel and N. J. Castellan, Jr., Nonparametrie Statistics for the Behavioral Sciences, 2nd ed., McGraw-HiJl, Boston, 1988 (8) E.S. Pearson and H.O. Hartley, Biometrika Tablesfor Statisticians, Vol I, 3cd ed., Cambridge University Press, 1966. (9) A.M. Tekalp, Digital Video Processing, Prentice-Hall, Inc., Upper Saddle River, 1995 (10) I. Setyawan and R. L. Lagendijk, Human perception of geometric distortions in images, to appear in the Proceedings of SPIE, Security, Steganography and Watermarking of Multimedia Contents VI, Vol. 5306, San Jose, CA, 2004 224 SIMPLE DOPPLER COMPENSATION FOR DVB- T Sri Andari Husen, Stan Baggen, Maurice Stassen, Hoi Yip Tsang Philips Research, Prof. Holstlaan 4, 5600 AA Eindhoven, The Netherlands* In the DVB-T system, the Inter-carrier Interference (ICl) caused by the vehicle speed limits the achievable throughput. In this paper, we present a simple method to improve the performance of the system. Our method uses Wiener filters to estimate and track relevant channel parameters. The effect of ICI is mitigated by cancelling the ICI to a sufficiently low level to obtain a reliable detection of 64-QAM modulated signal, using the estimated data and channel parameters. INTRODUCTION In Terrestrial Digital Video Broadcast (DVB-T), Orthogonal Frequency Division Multi- plex (OFDM) is used for transmitting digital information via a frequency-selective broadcast channel [1], [2], [3]. If allobjects such as the transmitter, the receiver and other scattering objects are stationary, the usage of OFDM having a guard interval of proper length containing a cyclic prefix leads to orthogonal subcarriers, i.e., simultaneous demodulation of all subcarriers using an FFT results in no intercarrier interference. If objects are moving so fast that the channel cannot be re- garded anymore as being stationary during an OFDM symbol time, the orthogonality between subcarriers is lost and the received signal is corrupted by ICI, i.e., the signal used to modu- late a particular subcarrier also disturbs other subcarriers after demodulation. In the frequency domain, such Doppler broadening of a frequency selective Rayleigh fading channel can be un- derstood as if the frequency response H(J) of the channel is evolving as a function of time, but quite independently for frequencies that are farther apart than the coherence bandwidth. It turns out that for an OFDM system using an 8k FFT the afore-mentioned ICI levels exclude the usage of 64-QAM already at low vehicle speed. We present a low-complexity approach for suppressing such ICI to acceptable levels for all reasonable vehicle speeds. In Section 2 we explain the doubly spread Rayleigh fading channel model that we use, and we show how in principle knowledge ofthe channel allows one to remove largely the ICI caused by a time-varying H. This problem has been considered before by Gorokhov and Linnartz [4], [5]. In their approach, they consider a single OFDM symbol and they try to estimate H(J) and its temporal derivative H'(J) and the data in an iterative manner by only processing on the single OFDM symbol under consideration. Our approach differs from theirs in that we use Wiener filtering for exploiting the spectral and temporal correlation that exists within and between OFDM symbols for estimation of H(J) and H'(J) as we explain in Section 3. In Section 4, we shortly explain the simple one-tap data estimator, while in Section 5 we explain our proposed iterative technique. In Section 6, we show the results of simulations, while in Section 7 we conclude. * e-mail: {andari.husen.stan.baggen.maurice.stassen.hoi.yip.tsang}@philips.com. 225 2 CHANNEL MODEL We assume a linear mobile multipath propagation channel consisting of uncorrelated paths, each of which has a complex attenuation ht. a delay Tl, and a uniformly distributed angle of arrival Ol. The complex attenuation hl is a circular Gaussian random variable with zero mean. The channel impulse response has an exponentially decaying power profile and is characterized by a root mean square delay spread Trms. We further assume that the receiver moves with a certain speed v resulting in each path having a Doppler shift fl = fd cos Ol so that the complex attenuation of path 1 at time t becomes hl(t) = hlexp(j27rflt). The maximum Doppler shift fd relates to the vehicle speed as fd = ¥fe (assuming this to be the same for all subcarriers), where c = 3 . 108 mis, and fe is the carrier frequency. In an OFDM system, N "QAM-type" symbols (In a DYB-T system, N is 2048 or 8192), denoted as s = [so, ... , sN-1]T, are modulated onto N orthogonal subcarriers by means of an N-point IFFT to form an OFDM symbol with duration Tu. The symbol is further extended with a cyclic prefix and subsequently transmitted. The transmitted signal goes through the time-varying selective fading channel. We assume that the cyclic prefix extension is longer than the duration of the channel impulse response so that the received signal is not affected by intersymbol interference. At the receiver side, the received signal is sampled at rate 1fT (where T = Tu/N) and the cyclic prefix is removed. Next, an N-point FFT is used to simultaneously demodulate all subcarriers of the composite signal. Let's denote the baseband received signal in time domain as r(t) and express it as follows: N-1 r(t) = L Hn(t)ej2rrn!stsn + v(t), (I) n=O Hn( t) = L hl (t)e-j2rrn!sTI, I where Hn(t) is the channel frequency response of subcarrier n at time t, [» = I/Tu is the subcarrier spacing and v(t) is AWGN having a two-sided spectral density of No/2. We further take the Taylor expansion of Hn(t) around to and approximate it up to the first-order term: (2) Using (1) and (2), after undergoing the sampling operation and the FFT, the received signal at the m-th subcarrier, Ym, can be approximated as follows: N-1N-1 Ym ~ _!_ NDD '" '" H 17.,(t n )d2rr!s(n-m)kT S 17. k=O n=O N-1 N-1 + ~ L L H~(to)(kT - to)ej2rr!s(n-m)kT sn + Vm- (3) k=O n=O where Vm is the m-th noise sample after the FFT. Substituting T = l/(N fs) and using ft 2:,;:':-01 ej2rr(n-m)k/N = 8(n - m), we can rewrite (3) as follows: N-1 Ym ~ Hm(to)sm + L H~(to)'2m,nsn + nm, (4) n=O 226 N-l Q. ~m,n = _1_ N2f "'(k _ f::.)ej2rr(n-m)k/N Z:: , (5) S k=O where to f::. T. In matrix notation, we use the following approximation for the channel model: y ~ H s + S H' s + n, (6) where H = diag(Ho(to), ... , HN-l(tO)) and H' = diag(Hb(to), ... , HN-1 (to)). We choose to so that the error of the channel approximation is the smallest, i.e., in the middle of the useful part of an OFDM symbol. Note that this channel description follows the parameterization presented in [4]. The first term in (6) is equivalent to the distorted wanted signal in the static environment where there is no movement. The corresponding channel frequency response H has the following second order statistics in time and frequency [6], [7] E[Hm(to)H~(to)] = 1 +'2J 7rTrms1 (m - n)f' s (7) (8) where Jn is the Bessel function of the first kind of order n. The ICI described in the second term of (6) is the result of the spreading of the symbols transmitted at a1lother subcarriers by the fixed spreading matrix S weighted by the derivatives H:"'. Since S is a fixed matrix, our channel model is fully characterized by Hm and H:"'. Knowledge of this structure is advanta- geous for channel estimation, as the number of parameters to be estimated is 2N rather than N2. Equation (6) also forms the basis of our ICI suppression scheme as we first approximate the ICI using estimates of H' and s, followed by subtracting it from the received signal y. 3 CHANNEL ESTIMATION SCHEME 3.1 WIENER FILTERING Linear Minimum Mean Square Error (MMS£) estimates of the channel parameters (Hm and H:"') and the transmitted data are obtained by applying discrete-time or discrete-frequency Wiener filtering. Suppose that we have available a set ofnoisy observations Yb k E {I, ... , L} from which we have to estimate a random variable Xl. A linear MMSE estimate of Xl is obtained by using an L-tap FIR filter: L Xl = L C'tkYk, (9) k=l where minimization of the Mean Square Error requires that C'tk satisfy the so-called Normal Equations [8] L E[XIY~] = L C'tkE[YkY~], m E {I, ... ,L}. (10) k=l It can then be shown that the Mean Square Error (MS£) of the estimation using these filter coefficients equals MSE = E[JXIJ2]- E[JXIJ2]. 227 3.2 ESTIMATION OF H The matrix H is estimated per OFDM symbol basis by using the regular structure of the scattered pilots in the OFDM symbols as defined by the DVB-T standard (Fig. I). Frequency ~ I •• 0 0 0 0 0 0 0 0 0 0 0 • 0 0 0 0 0 0 0 0 o. OFO".ym""'" .. 0 0 • 0 0 0 0 0 0 0 0 0 0 0 • 0 0 0 0 0 --.0 • OFDM symbol n+1 • 0 0 0 0 0 • 0 0 0 0 0 0 0 0 0 0 0 • 0 0 __.0 • OFOMsymboln+2 • 0 0 0 0 0 0 0 0 • 0 0 0 0 0 0 0 0 0 0 0 o • OFDM symbol n+3 • 0 0 0 0 0 0 0 0 0 0 0 • 0 0 0 0 0 0 0 0 o • OFDM symbol n+4 Figure 1: The locations of scattered pilot and data subcarrier (denoted by • and 0, respec- tively)in several consecutive OFDM symbols The pilot symbols provide us with noisy initial estimates of H at the pilot positions, where the noise consists both of AWGN and the ICI caused by Doppler spread. We apply a Wiener filter in the frequency domain for obtaining MMSE estimates of H at the pilot symbols, ex- ploiting the spectral correlation of H. Next, we interpolate these results to obtain H at the remaining data subcarriers in between the pilot subcarriers. As a final remark, due to the smaller ICI at the outermost active subcarriers of an OFDM symbol, special attention has to be paid to the "loading" when calculating the Wiener filter coefficients involving those subcarriers. 3.3 ESTIMATION OF H' Our approach is to estimate H:" using the temporal correlation of Hm as given in (8). It can be shown that the random process H:"(t) exists because RHH(t) is band-limited, where RHH(t) stands for the temporal correlation of H at a fixed frequency. Given that we have a set of noisy measurements y(t) = Hm(t) + n(t) from a number of consecutive OFDM symbols, we can design a temporal Wiener filter that provides us with MMSE estimates of H:"(t) using these noisy measurements, if we know the second order statistics E[y(t)y*(s)] and E[H:"(t)y*(s)], as mentioned in Subsection 3.1. Using the independenee between noise and H and Eq. (8), we obtain E[y(t)y*(s)] (11) Similarly, we may obtain E[H:"(t)y*(s)] E[H:"(t)(H;;'(s) + n;:"(s))] = E[H:"(t)H;;'(s)] E [{I' .1.m·,,~o Hm(t + s) - Hm(t)} H*m ( S )] e Urn E[Hm(t + é)H;;'(s)] - E[Hm(t)H,';,(s)] é-1-0 e a atRHH(t,S) = -27rfdJl(2n"fd(t - s)), (12) where l.i.m. stands for "limit in the mean". Using these correlation functions, we obtain Wiener filters that estimate H:"(t) in the middle of an OFDM symbol using noisy estimates of Hm(t) 228 from the surrounding OFDM symbols. Actually, we use the temporal Wiener filter only for an equally spaced subset of subcarriers called virtual pilot subcarriers. At the remaining subcarri- ers H:" is obtained by interpolation in the frequency domain exploiting the spectral correlation of H:", which turns out to be the same as that of Hm (Eq.7). Finally, we need RH' H' (0), the power of the WSS derivative process for the performance evaluation of the Wiener filters for H:": _ lim 7-0 (dd )2 RHH(T) T = -liill T~O (dd )2 Jo(27rfd· T) T (27r fd)2 (13) 2 4 DATA ESTIMATION The data estimation is performed per subcarrier using standard MMSE equalizers. Since we aim at low-complexity solution, one-tap MMSE equalizers are chosen. Using the derivation as given in Section 3, the estimated symbol at subcarrier m is given as follows: (14) where N-l CTfCI,m = L IBm,nI2IH~12E[sns~1 n=O is the ICI power at subcarrier m and CT~ is the MSE of H estimation. 5 THE ITERATIVE SCHEME Since the ratio of the signal power to the interference plus noise power (SINR) of the received signal is low in a high speed environment due to the ICI, the estimated data might not have sufficient quality for symbol detection. However, the soft-estimated data still can be used for regenerating the ICI sufficiently accurate to be used for cancelling it largely from the received signal. Because of the ICI removal operation, the SINR improves and therefore better estimated data can be obtained by performing data re-estimation. However, as the SINR increases, the MSE of Hm needs also to be lower, so that the inaccuracy in the estimated Hm does not become a dominant source of error in data re-estimation process. Therefore a re-estimation of H is also performed. Figure 2 shows the complete iterative channel and data estimation scheme. At the scattered pilot positions, Hm are estimated from the received signal J!.o with the help of the known pilot symbols and the result Ho is subsequently fed into the 1st H filters. Tbe output Hl is fed into the HI filters, to obtain the estimate of H:" at all sub carriers m, H~. An additional operation is performed prior to tbe 1st data estimation in order to ensure the whiteness of the residual ICI plus noise process at the input of the 2nd H filters, namely, the removal of pilot-induced ICI from the received signal. This operation uses H~ and the known pilot symbols to regenerate 229 Figure 2: The Block Diagram of The Iterative Channel and Data Estimation Scheme the ICI caused by the pilot symbols on all subcarriers and subsequently cancels it from '!&J, as follows '!Ll = '!Lo - S diag(H~H, (15) where m E pilotindex, (16) otherwise. The output 1Ll and Hl are fed into the i= data estimator. The estimated data Q,l and H~ are subsequently used for cancelling the ICI from '!Ll in a similar way as Eq.(15). Note that since the ICI originated from the pilot symbols has been removed, Q,l at the pilot positions must be zero. The re-estimation of H and data are then performed on the reduced-ICI received signal '!!.2 using the similar procedure of estimating H and data but with the filters and equalizers adapted to the reduced-ICI condition. 6 NUMERICAL STUDY In this section the performance of the DVB-T system using the proposed iterative scheme is presented and discussed. The 8k mode is used in the simulations. However, in order to shorten the simulation time, around 1000 subcarriers are used. The 64-QAM symbols modu- lated at the data subcarriers are randomly generated. Scattered pilots are inserted according to the DVB-T specification. After IFFT, the signal is extended with a cyclic prefix of ratio 1/8. The carrier frequency Je is chosen at 600 MHz, approximately in the middle of the spectrum for analog TV in the UHF band. The channel model used is a frequency selective Rayleigh fading channel with a normalized exponentially decaying power profile with Trms = 1 ps and maximum delay spread of 10 f-Ls. At the receiver side, Gaussian noise with Es/No of 30 dB is added. For the Wiener filtering operations, symmetric noncausal filters with length L = 11 and asymmetrie causal filters with length L = 10 are used for Hand H' filtering, respectively. All filters are optimized for each speed. Figure 3, figure 4, and figure 5 show the SINR, the average MSE of H, and the Bit Error Rate (EER) for various stages of processing in the iterative scheme, from the static condition to vehicle speed of 250 krnIh. Note that the average MSE is normalized to the average power of H (E[iHI2]=I). Without any processing, both the SINR and the average MSE of H decrease 230 Figure 3: SINR before and after ICI removal for various speeds rapidly as the vehicle speed increases. At 200 krnIh, with SINR of approximately 18 dB, it is obvious that a reliable detection for 64-QAM on a Rayleigh fading channel is impossible. Figure 4: Average MSE of H for various speeds The 1st H filtering decreases the MSE approximately 6.5 dB. At this stage, the BER before ICI removal is measured. Due to the ICI removal, the SINR increases approximately 8 dB for higher speeds. We notice that the reduced SINR has come close to the accuracy of H. With the 2nd H filtering, the MSE is brought approximately 7 dB down again. With the re-estimated H and the reduced-ICI received signal, we manage to obtain BER of 2 . 10-2 at speed 200 krnIh. For lower vehicle speeds, since the ICI is less severe, the Gaussian noise becomes more dominant. That is why the gain we obtain due to ICI removal decreases. For practical implementation, the fixed filters designed for the worst case situation (e.g. speed 200 km/h) are used. Although for the lower speeds the performance is suboptimum, the performance degradation is not significant. 7 CONCLUSIONS We have presented a low complexity iterative scheme to enable a high throughput re- ception of DVB- T signal in highly mobile environment. From the simulations, it turns out that 231 Figure 5: Bit Error Rate before and after ICI removal for various speeds relevant channel parameters can be estimated easily and sufficiently accurate. The performance limitation of the presented scheme is caused by the simple one-tap data estimation. We have found that, in the higher speed range (around 200 km/h), the scheme reduces the ICllevel and achieves a raw bit error rate which seems sufficient to achieve the requirements of the DVB- T system .. REFERENCES [1] J.A.c. Bingham. Multicarrier modulation for data transmission: An idea whose time has come. IEEE Communications Magazine, 28(5):7-15, May 1990. [2] B. Le Floch et al. Coded Orthogonal Frequency Division Multiplex. Proceeding of the IEEE, Vol 83(6):587-592, June 1986. [3] Digital Video Broadcasting (DVB); Framing structure, channel coding and modulation for digital terrestrial television, Jan 2001. ETSI EN 300744. [4] Alexei Gorokhov and Jean-Paul Linnartz. Robust OFDM Receivers for Dispersive Time- Varying Channels: Equalization and Channel Acquisition. In Proceedings ICC'02, page 1453,2002. New York, April 28 - May 2. [5] Stefano Tomasin, Alexei Gorokhov, Haibing Yang, and Jean-Paul Linnartz. Reduced Corn- plexity Doppler Compensation for Mobile DVB-T. In Proceedings PIRMC 2002, vol- ume 5, pages 2077-2081, 2002. Sept 15-18. [6] William C. Jakes et al. Microwave Mobile Communications. Wiley, 1974. [7] John G. Proakis. Digital Communications. McGraw-Hill, fourth edition, 2001. [8] Monson H. Hayes. Statistical Digital Signal Processing and Modeling. Wiley, 1996. 232 Designing optimal link scaling for routing with incomplete information in packet switched networks J. Levendovszky', A. Molnár", P. Boros', and E.C. van der Meulen** • Budapest University of Technology and Economics, Department of Telecommunications, Pázmány P.sétány liD, H-lll7, Budapest, Hungary, •• Katholieke Universiteit Leuven, Department of Mathematics, Celestijnenlaan 200B, B-300l Leuven (Heverlee), Belgium This paper is concerned with optimizing link scaling for muting with in- complete information in packet switched networks. Information theoretical measures are introduced to strike a good balance between signaling bandwidth and routing performance. Identifying link traffics as MMPPs, an optimal link delay advertisement scheme is proposed which yields minimal signaling bandwidth but maximal routing performance at the same time. The results can easily be qeneralized to the case of non-MMPP types of link traffics and other kinds of link parameters (bandwidth, jitter etc.). INTRODUCTION One of the major challenges in lP networking is to ensure QoS routing, which selects paths to fulfill end-to-end delay or bandwidth requirements [9, 13, 14] as opposed to traditional shortest path routing. Because of incomplete link state- information due to randomly fluctuating traffic, QoS routing can prove to be much harder than the problem of finding optimal paths based on merely the hop count [15]. In OSPF and PNNI routing protocols link descriptors are periodically advertised when theirs value surpass a given threshold [3]. These thresholds referred to as link scaling can be subject to further optimization in order to economize on signaling bandwidth. The smaller these intervals are, the smaller is the measure of 'incompleteness' under which a path is selected. As a result, the routing performance is higher. On the other hand, small intervals forces more frequent announcements of the values of the link descriptors throughout the network, which implies that considerable portion of bandwidth is used up for 233 transmitting signaling information. Thus, the optimization of the size of these intervals is a crucial task for network management. This problem is referred to as Optimal Link Scaling (OLS). As can be seen, OLS is a constrained optimization problem, in which one has to maximize routing performance under the constraint of keeping the signaling bandwidth bellow a given threshold. The goal of the paper is to provide a solution to this optimization task by using information theoretical measures, such as 'signaling entropy' and 'link entropy'. THE MODEL - ROUTING AND LINK DESCRIPTION IN INCOMPLETE EN- VIRONMENT To model the problem let us assume that the following quantities are given: (i) a graph G (V, E) represents the network topology; (ii) each link (u, v) E E has a QoS descriptor Ö(u,v) which is assumed to be a random variable subject to the conditional probability distribution functions F(~;v)(t) = P (Ö(u,v) < t Iti < Ö(u,v) < ti+l) ,Vi = 0, ... ,Z - 1; (iii) the link descriptors are assumed to be independent; (iv) only additive link descriptors are considered where the quality of the path is determined by the sum of link measures contained in the path; (v) the end-to-end QoS criterion is 2: Ö(u,v) < T, where T denotes the end-to-end QoS requirement. (u,V)ER The objective is to find the optimal path R which most likely fulfills the given QoS criterion: R: mjf'-P (' L Ö(u,v) < T) . (1) (u,v)ER The path R introduced above, will be referred to as the Most Likely Path (MLP), It has been proven that the MLP (1) in general is an NP-hard problem (see [12]) but several high performance algorithms have been proposed which yield near optimal solution in polynomial time [4, 10, 11], Let us now suppose that links advertise the value of their link descriptor to the network at certain time instants (which is set up by the network operator) in the following fashion: (i) the set of the possible values of the link descriptor is cov- ered with a grid D = {ti, i = 1, .,., Z}; (ii) the exact value of the link descriptor is measured periodically, Link state ti is advertised at time instant k on link lu ,v if Ö(u,v)(k) E (ti, ti+1) and ö(u,v)(k - 1) ~ (ti-l' ti); (iii) for the sake of simplicity equidistant link scaling is assumed where ti - ti-1 = 6.t, i = 1, .,.,Z, and to = 0. 234 From this model it is clear that both the routing performance and the signaling bandwidth depends on the choice of link scaling as larger intervals !:::J.t results in less frequent link state advertisement but worse routing performance (the incorn- .pleteness of information about link states is higher). SIGNALING BANDWIDTH VERSUS ROUTING PERFORMANCE As indicated above our objective is to strike an optimal balance between the signaling bandwidth and routing performance. To capture the underlying phenomena two information theoretical measures are introduced: the signaling entropy and the link entropy. Since link state advertisement occurs when randomly jumping over one (or sev- eral) advertisement threshold, the advertisement scheme can be regarded as an information theoretical source denoted by K(u,v) with values i!:::J.t, i = 0, ,Z - 1 covering the axis of the link descriptor and with probabilities Pi, i = 0, , Z - 1. ~ Z-l The source does not emit any symbol (inactive) with probability P = L Pi. i=O These probabilities are governed by the randomly fluctuating link traffic (i.e. by the varying queue length in the buffer as each link is perceived as a buffer). As- suming optimal source coding, the necessary bandwidth to distribute the link state information is related to the conditional entropy H (K(u,v) Ix(u,v) = 1) of K(u,v), where the Bernoulli random variable X(u,v) describes whether the source is active or not P = P (X(u,v) = 1), 1 - P = P (X(u,v) = Regarding the 0). Signaling Bandwidth (SB) as the average codelength needed by the link state advertisement scheme, it satisfies the inequality H (K(u,v) IX(u,v)) < SB:::; H (K(u,v) IX(u,v) ) + 1 (2) where H (K(u,v) IX(u,v) = 1) = - iJ~A A log after renormalising with i:Pii'0 P = P (X(u,v) = 1). In the forthcoming discussion H (K(u,V) IX(u,v)) will be referred to as Signaling Entropy (SE), which is the achievable lower bound of SB approximated by Huff- man coding. In order to take into account the routing performance resulted from the incom- plete link state information, let us assume that the random link descriptor ö(u,v) can take its value from a discrete set. The conditional uncertainty of the random 235 link descriptor in [iÓ.t, (i + 1) ó.t) can be calculated as: Hi = H (Ö(u,v) liÓ.t :::; Ö(u,v) < (i + 1) ó.t) = - L pP) log pP) (3) jEl?) where p?) = P (Ö(u,v) = Xj liÓ.t :::;Ö(u,v) < (i + 1) ó.t) and Ni denotes the number ofpossible values of Ö(u,v) = xj, j = 1, ... .N, taken in the interval [iÓ.t, (i + 1) ó.t). Furthermore, j E Iji) if iÓ.t :::; Xj < (i + 1) ó.t and if P(Ö(u,v) = Xj) i= 0 . The total uncertainty is defined as: Z-I H (Ö(u,v)) = i=O L (4) i:i.ó.t:o;o(u,v) « i+l).ó.t where P (V(u,v) = i) = P (iÓ.t:::; Ö(u,v) < (i + 1) ó.t). OPTIMAL LINK SCALING AS A CONSTRAINED OPTIMIZATION PROB- LEM Since each link is perceived as a queueing system described by discrete Markov Modulated Poisson Processes (MMPPs) as input processes, assuming a constant serving rate and a buffer length L , the measures introduced above depend on the input traffic as follows H (K(u,v) ({_j, .x, L, ó.t) Ix(u,v) (ó.t) ) and Parameters {l = (ÀI, À2' ... , ÀK) belong to the the discrete ({lI, (l2, ... , (lK), ). = MMPP process describing the traffic on link (u, v) (the (f-S represent the station- ary distribution and the À-s are the exponents). Now optimallink scaling can be posed as a constrained optimization problem: (5) under the constraint of H (K(u,v) ({_j,:\, L, ó.t) Ix(u,v) (Ó.t)) < Oi. (6) 236 Figure 1: The signaling entropy and Figure 2: The misrouting probability as misrouting probability as a function of the function of the signaling bandwidth link scaling Both the signaling entropy and the link entropy can easily by calculated by evalu- ating the stationary distribution of the underlying MMPP ID IIIL queuing system which can be obtained by standard techniques of queuing theory. (Because of the extensive calculations the results are omitted here.) Based on this calculation, gradient search can yield (under checking the constraint in each step) the opti- mal solution which maximizes the routing performance under the constraint of keeping the signaling bandwidth bellow a threshold. SIMULATIONS AND NUMERlCAL RESULTS In Figure 1 the signaling bandwidth is plotted against the link scaling (curve 1) and the routing performance is also indicated as a function of the link scaling (curve 2). One can see that increased link scaling indeed will raise the number of misidentified path selected by the routing algorithm (due to the less complete link state information) and at the same time will reduce the signaling bandwidth necessary for link state advertisement. In Figure 2 the probability of misidentified path (routing error probability) is plotted against the signaling bandwidth. Based on this figure engineering design can be effected by setting the threshold on the signaling bandwidth and then reading out the obtained performance. As a result, one can analyze the trade-off between routing performance and signaling bandwidth. CONCLUSION In this paper information theoretical measures were introduced in order to op- timize routing performance under the constraint of keeping signaling information 237 bellow a threshold. In this way, optimal bandwidth utilization can be achieved in packet switched networks. As the simulation results have indicated the choice of link advertisement interval (~t) has a great impact on QoS (see Figure 2). ACKNOWLEDGEMENT The research reported here was partly supported by the Katholieke Univer- siteit Leuven under the grant GOAj98j06 of Research Fund K.U.Leuven, by INTAS Project 00-738 and by the Analogic Computing Laboratory MTA SZ- TAK!. REFERENCES [1] www.cisco.com [2] PNNI Specification Working Group: "Private Network-Network linter- face Specification Version 1.0" ATM Forum, March 1996, aviable at ftp:j jftp.atmforum.comjpubjapproved-specsjaf-pnni-0055.000 [3] Cherukuri, R., Dykeman, D. "PNNI draft specification", ATM Forum, 94- 0471, November 1995. [4] Levendovszky J., Fancsali A., Vegso Cs., Retvari G. "QoS routing with incomplete information by analogic computing algorithms", Proceedings of 2nd International Workshop on Quality of future Internet Services, Coimbra, Portugal, pp. 127-137, 24-26 September, 200l. [5] Bickel, J., Ritov, R., Ryden, T. "Asymptotic normality of the maximum likelihood estimator for general hidden Markov models", Annals of Statistics, Vol. 26, No4, 1998 [6] Rabiner, L. "A tutorial on hidden Markov models and selected applications in speech recognition", Proc IEEE, Vol 77. [7] Baum, L. A maximization technique occuring in statistical Analyzis of Prob- abilistic function of Markov chains", Annals of Math. Statistics, Vol 41 [81 Ryden, T. "Parameter estimation for Markou modulated Poisson processes ", Stochastic Modelling, Vol 10. [9] Lorenz, D., Orda, A. "QoS routing in networks with uncertain parameters", IEEEj ACM Trans. Networking, vol. 6., December 1998, pp. 768-778. 238 [10] Levendovszky, J., Rétvári, G., Dávid, T., Fancsali, A., Végso, Cs. "QoS routing in packet switched networks - novel algorithms for routing with in- complete information", Proceedings of 9th IFIP Working Conference on Performance Modelling and Evaluation of ATM & lP Networks, Budapest, Hungary, pp. 249-260, 27-29 June, 2001. [11] Levendovszky J., Vegso Cs. "QoS routing with incomplete information us- ing Large Deviation Approach", 2001 Polish-Czech-Hungarian Workshop on Circuit Theory, Signal Processing, and Telecommunication Networks, Bu- dapest, Hungary, 14-17 September, 2001. [12] Guérin, R., Orda, A. "QoS routing in networks with inaccurate information: theory and algorithms", IEEE/ ACM Trans. Networking, vol. 7., June 1999, pp. 350-364. [13] Chen, S., Nahrstedt,K. "On Finding Multi-Constrained Paths", Proceed- ings of 7th IEEE International Conference on Communications, Atalanta, GA, pp. 874-879, June 1998. [14] Chen,S., Nahrstedt, K. "An overview of quality of service routing for next generation high-speed networks: Problems and solutions", IEEE Network Magazine, Special Issue on Transmission and Distribution of Digital Video, 12(6): 64-79, November-December 1998. [15] Jaffe, J. "Algorithms for Finding Path with Multiple Constraints", Net- works, Vol. 14, pp. 95-116, 1984. [16] Levendovszky J., Elek Zs., Vegso Cs. "Validating novel CAC algorithms on ATM testbeds", 2nd International Conference on ATM ICATM '99, Colmar, France, June 1999. 239 CNN based multiuser detection and equalization in wireless communication systems J. Levendovszky", A. Oláh" and D. Varga", E.C. van der Meulen?" * Budapest University of Technology and Economics, Department of Telecommunications, Pázmány P.sétány liD, H-1117, Budapest, Hungary, *- Katholieke Universiteit Leuven, Department of Mathematics, Celestijnenlaan 200B, B-3001 Leuven (Heverlee), Belgium In this paper novel CNN based multiuser detection algorithms are proposed which can provide high performance mobile communication. Multiuser de- tection in CDMA system come down to quadratic optimization. CNNs are capable of fast quadratic optimization when the quadratic form arising from the detection problem is generated by a sparse matrix. Since multiuser communication under heavy loaded scenarios does not result in a sparse matrix, novel methods, such as (i) coding, (ii) truncation and (iii) equal- ization is developed to make real-time CNN detection possible. In this way, near-optimal communication can be obtained which supports high speed data services over mobile networks. INTRODUCTION One of the major challenges of wireless communication is the combined effect of InterSymbol Interference (ISI) and Multiple Access Interference (MAl) which can cause severe degradation of performance. Thus reliable communication can only be maintained by using more sophisticated detectors than matched filters followed by a threshold decision. Till the recent past, sophisticated detection al- gorithms which require multidimensional quadratic optimization [1, 2, 3] proved to be prohibitive due to their exponential complexity. In the advent of analogic computing by CNNs, multidimensional quadratic optimization required by opti- mal detection became tractable at the speed of micro-sec, which can guarantee real time operation. Therefore, the objective of the paper is to introduce CNN as an essential tool combat the effect of MAl. However, CNN is only capable of solving quadratic optimization problem by sparse matrices subject to certain 241 template structures which guarantee local connections in the circuit implementa- tion [4, 5]. In order to ensure the required template structure which allows CNN based detection the following approaches are pursued: (i) new codes are devel- oped for sparse matrix; (ii) the correlation matrix is truncated; (iii) an equalizer is deployed. All of these methods yield the required sparse structure and, as a result, novel detection algorithms can be implemented to achieve a given level of performance. THE MODEL We investigate a synchronous multi-path propagation model and the follow- ing notations are adopted: (i) the number of users is N; (ii) the transmitted information vector is denoted by y E {-I, l}N, (where Yi E {-I, I} represents the bit of information transmitted to user i); (iii) MultiUser Interference (MUI) stems from the matrix 1 T 1 M r R tJ· .= -T Jo s(t)s t ·(t)dt = -M '" J cCi)c(j) L..., m m' (1) o m=l where cCi) is the codevector of length M assigned to user i, Si(t) is the correspond- ing signature signal, and T denotes the symbol time; (iv) the noise is assumed to be a White Gaussian process with energy No; (v) the received sequence at the output of the matched filter bank is given as x = Ry + !-l and the covariance matrix of !-l is NoR. Based on the work ofVerdu [2], it has been well known that optimal multiuser detection amounts to the global minimization of the following quadratic form: . yopt := argmlIlyE{_l,l}NYTR Y- 2x T y. (2) Unfortunately, quadratic optimization over a discrete set in general does not lend itself to polynomial complexity. Therefore, in the case of a large user population (when the number of users is considerably larger than the length of the codewords, resulting in a non-diagonal R) optimal detection seems to be unattainable which is a serious bottleneck in mobile QoS communication. OPTIMAL DETECTION BY CNN Cellular Neural Networks (CNNs) built up by parallel processing units are in- troduced as real-time analogic computers optimizing a quadratic Lyapunov func- tion [4, 5]. Therefore, CNNs are capable of solving quadratic optimization prob- lems. 242 The dynamics of a Q x Q CNN can be expressed by the following set of nonlinear differential equations [5]: Tr Tr Tr 'r; x(i,j)(t) = -X(i,j)(t) + L L akI' Y(i+k,j+l)(t) + L L bkl'U(i+k,HI)(t)+I, k=-Trl=-Tr k=-Tr l=-Tr (3) where Y(i,j) = f(x(i,j)(t)) is the state variable, u(i,j)(t) is the input, X(i,j)(t) is the inner state variable of cell (i,j). The bias I is constant and T; refers to the con- nectivity pattern, the usual choice of the threshold function is fez) = tanh(z). In this model each neuron is connected to its neighbour, therefore, each cells can be described by a template matrix T = [akdk=-Tr, ...,-l,O,l, ...,Tr,I=-Tr,.,-l,O,l, ...,Tr' The Lyapunov function associated to the state transition rule (3) is given by a quadratic function yTWy - 2bTy, where y is a vector obtained by transforming the two dimensional state variables Y(i,j) into a one-dimensional array by setting Y(i-l)Q+j One must note that the corresponding W matrix is sparse due := Y(i,j)' to the local connections of the CNN. In the forthcoming discussion we assume that u(t) = 0 and 1=0. By assigning W := Rand b := x one can theoretically perform optimal detection according to the set-up indicated by Figure 6. MAl+ noise r-------jj~i~-~t~-;--~;:~hit~ct~;:~-------l y Mobile x i Sparse iY System transformation CNN , , 1 -------------------------------------------, Figure 1: CNN based detection architecture The only problem arises from the spare property of W which may not be ful- filled in the case of general R matrices under severe MAL In order to circumvent this problem novel methods are should be used to enforce the template structure. The relationship between the template structure A (which expresses the connec- tion pattern of the CNN) and matrix R can be established as follows: • It can be easily proven that having a traditional A template (which connects a processing element to its neighbours in the original 2D array) will yield a 243 matrix A(i,j),(i,j) if n = (i - l)Q + j, m = (i - l)Q + j A(i,j),(i-l,j) if n = (i - l)Q + j,m = (i - 2)Q + j Wnm= A(i,j),(i+l,j) if n = (i - l)Q + i. m = iQ + j (4) A(i,j),(i,j-l) if n = (i - l)Q + i, m = (i - l)Q + j - 1 A(i,j),(i,J+l) if n = (i - l)Q + j, m = (i - l)Q + j + 1 referred to as "Template Oriented Matrix 1 (TOM 1)". • If each processing element in the CNN is allowed to be connected to all other processing elements being in the same row and same column on the 2D CNN array then W is still a sparse matrix termed as TOM 2 where more elements can be nonzero. Consequently, the quadratic optimization related to the multiuser detection problem can only be tackled by CNNs if matrix R can be written in the form of a TOM (either TOMI or TOM2). Unfortunately, multiuser coding in the case of heavy loaded scenarios (when the number of users is considerably larger than the dimension of the codewords) usually does not provide a TOM. Therefore, further considerations are needed to detect multiuser signals by CNN. DETECTING CDMA SIGNALS BY CNNS In this section we develop three approaches to detect CDMA signals by CNNs based on (i) novel coding; (ii) truncation; and (iii) equalization. Novel coding for CNN detection One of the most straightforward way to impose the required properties on matrix R is to develop new codes. The code-set which yield TOM 1 or TOM 2 can be found by computer search and Figure 2 indicates the number of users as a function of the length of codewords. 244 70 • User Nbr of TOM 1 60 • User Nbr of TOM 2 50 ~40 'ö 30 i 20- ... Zw 4 32 8 Code length 16 Figure 2: The codelength vs the number of users by applying "sparse" code for TOMI and TOM2 The performance of CNN detection by using such codes is shown by Figure 3(a) and 3(b). Here the Bit Error Rate (BER) is plotted against the Signal-to- Noise-Ratio (SNR), and the number of users was chosen to be 10 with code-length 8 (TOMI), whereas the number of users were 16 with code-length 8 (TOM2). 4 5 9 10 2 3 4 5 6 7 8 9 10 (a) (b) Figure 3: The BER vs SNR of (a) 10 user MU channel with TOM 1 codes and (b) 16 user MU channel with TOM 2 codes One can observe that in each case a considerably higher performance (lower BER) can be obtained than the one achieved by the traditional threshold detector (which can only perform under light loaded hypothesis). 245 CNN detection by truncation Truncation amounts to deleting some elements of R in order to enforce TOM structure. Of course this will alter the detection performance as the minimum of the quadratic form YoPt := argminYE{_l,l}NyTRy - 2xTy is found by the CNN detector. Here R is a TOM obtained from R by setting those elements 0 which are required for the CNN implementation. In this way Yopt may not be equal with Yopt obtained from minimizing the original quadratic form (2). The performance yielded by the truncation method is depicted by Figure 4. Figure 4: The performance of the truncation method One can see that truncation still performs slightly better than the original threshold detection. CNN detection by equalization Another way to enforce TOM for detection is to introduce a linear transformation on the incoming signal x by matrices A and B (the role of them is being similar to the role of equalizer in single user communication). Here the task of A and B is to ensure TOM under light noise scenario. More precisely u := A Tx and thus the detection formula becomes Yopt := argmillyE{_l,l}NyTATRBy - 2u'l'y, where A TRB is supposed to be a TOM. Therefore, the obtained quadratic form can be minimized by a corresponding CNN if A and B can make A TRB sparse. Such a matrices can be easily evaluated by solving a set of linear equations. (Remark: the pair of matrices A and B were needed to obtain solutions for any possible R 246 which may not be guaranteed if only using a single matrix A). The corresponding detection architecture is shown by the next figure. liëieëïO,·ä;;;hiteC:1 j . ._-----------------------------------------------_. . Figure 5: The Architecture of detection The obtained BER in comparison with the threshold detection with user pop- ulation 16 is depicted by Figure 6. 0,3 0,2436 IIIThreshold (TOM2) IIIEqualization CNN (TOM2) Figure 6: The performance of the equalization method It can be seen that this method also yields superior performance over the threshold detection. One must note, however, that this approach only works under the light noise assumption. If the effect of thermal noise becomes significant then due to the transformation of the covariance, matrices A and B cannot achieve the required TOM structure. CONCLUSIONS In this paper multiuser detection was carried out by CNN architecture guar- anteeing real-time, near-optimal solutions even under heavy-loaded scenarios. Three approaches were presented to map the underlying interference matrix R 247 into a sparse matrix needed by the CNN template structure. In all the cases, the obtained detector outperformed the traditional threshold detector. In this way, QoS communication in 3G mobile systems can be supported even with a large user population. ACKNOWLEDGEMENT The research reported here was partly supported by the Katholieke Univer- siteit Leuven under the grant GOA/98/06 of Research Fund K.U.Leuven, by INTAS Project 00-738 and by the Analogic Computing Laboratory MTA SZ- TAK!. REFERENCES [1] Proakis, J.G.: Digital communications, McGraw-Hill, 1986 [2] Verdu, S.: Muliiuser detection, Cambridge University Pres, 1999 [3] Viterbi, A.J. and Omura, J.K.: Pruiciples of Digital Communication and Coding, McGraw-Hill, 1979, New York [4] Chua, L.O., Roska T. and Venetianer, P.L.: "The CNN is as Universal as the Turing Machine", IEEE Trans. on Circuits and Systems, Vol. 40., March, 1993. [5] L.O. Chua and T. Roska. The cnn paradigm. IEEE Trans. on Circuits and Systems, 40, 1993. 248 EQUALIZER BASED TILT ESTIMATION FOR TWO-DIMENSIONAL OPTICAL STORAGE M. Ciacci*, J. Riani*, J.W.M. Bergmans*, A.H.J. Immink** In receivers for optical storage, slowly varying channel parameters can be tracked and compensated to a certain extent via adaptive equalization. A general scheme is proposed that, based on a processing of the equalizer tap values, permits si- multaneous estimation of a given set of these parameters. An example is given for the case of disc tilt. The proposed estimation method has several desirable properties. It is simple, accurate, and insensitive to the simultaneous occurrence of other system artifacts, such as an incorrect sampling phase. INTRODUCTION In advanced high density optical storage systems, such as Blue ray Disc (BD), high storage capacities have been achieved by means of blue laser diodes, a high numerical aperture (NA) and thin cover layer media. The required tolerances in focus position and cover layer thickness variations tend to be tighter than in CD-DVD systems because the channel sensitivity to these parameters grows linearly with decreasing wavelengths and with higher powers of NA. For instance higher NA optics and shorter wavelengths À reduce depth of field proportionally to NA 2/ À, increasing the sensitivity to focus errors by a factor 3 from DVD to BD. Sensitivities to disc tilt are comparable to DVD thanks to a six-fold reduction of the cover layer thickness from DVD to BD. In future two-dimensional optical storage the problem of tolerances in the optical path gets even worse [1]. Indeed, compared with ID storage, tracks are spaced much closer together, resulting in 2D Inter-Symbol-Interference (ISI) in the read-out signals. This ISI is due to the diffraction limits of the laser spot profile, whose size is larger (up to a factor 4) than the distance between neighboring bits. As a consequence radial ISI is dramatically increased, and hence sensitivity to radial tilt. We will consider from here on the TwoDOS (Two Dimensional Optical Storage) system, which shares the same physical parameters (wavelength, NA and cover layer thickness) as BD [1]. The TwoDos player-receiver chain is schematically depicted in Fig. 1. In the TwoDOS system bits are stored on a hexagonallattice. The receiver per- forms joint detection on synchronous replay signals using a partial response maximum likelihood scheme in the form of a Viterbi detector. A 2D target response g of limited size is specified, the channel is adaptively equalized to this response, and bit decisions are taken accounting for the known ISr. Channel variations due e.g. to disc tilt need to be tracked and compensated. Uncompensated variations would indeed result in a residual ISI that degrades the detector's performance in the same functional manner as ISI impairs performance of standard threshold detectors. This research was supported by the EU under project IST-2001-34168 (TwoDOS). * Eindhoven University of Technology, P.O. Box 513, 5600 MB Eindhoven ** Philips Research Laboratories, Prof. Holstlaan 4, 5656 AA Eindhoven 249 l_!_ T:T s· Figure 1: Block diagram of the TwoDOS adaptive receiver. In order to obtain the bit synchronous replay signals Xk that comply with the predefined target response g, the receiver processes the HF analogue signals that come from a photo detector IC (PDIC) towards signals that finally enter the bit detector. The HF signals are filtered with an anti-aliasing filter (not indicated in the figure). Then they are digitized by 11 Analogue to Digital Converters (AD Cs) running at a fixed clock l/Ts, which is higher than the channel bit-clock. The ADC outputs HFn are then fed to a linear, adaptive 2D-equalizer (EQ) that equalizes to the target g, and by DC compensation and Automatic Gain Control circuits (DC-AGC). Finally, the sampling-rate converter (SRC) re-samples the signals in the tangential direction (i.e. in the time dimension) to the correct frequency and phase. In the scheme described above, slowly varying channel parameters can be success- fully tracked and compensated by the 2D adaptive equalizer. Although this compensa- tion can allow reasonable bit-error rates, it is desirable to derive electronically real-time information about some relevant channel parameters, such as the direction and amount of disc tilt, focus conditions and radial tracking. In other words it is desirable to derive some error signals that convey information about the misadjustment with respect to the optimum working conditions. These signals can then be fed to, e.g., the digital servo control system of the player, so as to aid active posil.iouing of the objective lens relative to the disc. In the case of disc tilt the objective would need to be mounted on an active- tilt-control actuator [2], in order to counter-tilt the lens. The key advantage of thin approach is SNR improvement. The reason for this improvement is twofold. First, tilt errors can be kept as close as possible to zero, preventing SNR degradation due to tilt. Second, equalization of other channel parameters gets easier, due to a smaller burden on the adaptive equalizer. The use of these estimates, as error signals to drive the ob- jective servo may result in a significant reduction in Bit-Error-Rate (BER). This is due to their close relation to the actual receiver performance. In fact, equalizer adaptation is ru1ed by the actual mismatch between the incoming replay signals and the desired detector input, converging to a solution where the equalizer output best matches the detector. Tilt estimation from the equalizer taps provides therefore a mirror of the actual misadjustment as it is sensed by the bit detector. Disc tilt manifests itself basically in two ways: as a displacement of the spot center, and as an asymmetrie deformation of the spot profile (see Fig. 2). There is not much literature available about tilt estimation. In many instances error signals for radial tracking are derived optically, and can be used to simultaneously estimate radial tilt. Two standard techniques in this respect are the Twin-spot method and the radial 250 push-pull method [3). The first is based on two auxiliary spots generated by means of a grating, and two separate detectors that collect the reflected light belonging to each auxiliary spot. The difference in average signal from each detector provides the desired bipolar tracking signal. The second method is based on the fact that in the presence of a tracking error the center of the scanning spot hits closer to the edges of the information pits, so that the propagation direction is slightly bent away from the perpendicular direction. A so called duo-detector provides a difference signal which changes its sign when the scanning spot crosses the information track. Tangential Tilt (2°) y x x Figure 2: 2D Channel impulse response in nominal conditions (left) and in the presence of tangential tilt (right). Optically derived signals require in any case extra equipment. Moreover they are impaired by their analogue nature, being sensitive to the parameter drift in the devices that produce them, as well as to temperature variations. In this paper we propose a simple digital signal processing method that permits extraction of more accurate 2D tilt estimates in the electronic domain. The proposed technique consists of a simple projection of the adaptive equalizer tap values onto a suitable space where 2D tilt information emerges irrespective of other system artifacts, such as incorrect sampling phase and radial mistracking. SYSTEM MODEL AND NOMENCLATURE Before describing the model for the player-receiver chain, we spend a few words to introduce the 2D lay-out of the data on the TwoDOS discs. Bits are organized as broad spirals in a hexagonal lattice, as depicted in Fig. 3. The model for this spiral, locally to the scanning spots, is a 2D stripe limited to NT rows in the radial direction y, and of infinite extension in the tangential direction x. Two lattice axes are chosen and indicated in the figure via the unit vectors u, v. Bits lying along the direction v are time synchronous, i.e., they are delivered simultaneously to the bit detector. The grid-spacing, corresponding to the spatial sampling interval, is denoted a and referred to as lattice constant. Bits are recorded as circular pits. The two-dimensional lattice is described by its sample locations R(A), where A = (i, k) addresses a specific lattice point in the coordinate system (u, v), and ranges in iE {l, ...,NT}, k E {...,-l,O,l, ...}. The form of R(A) defines the shape ofthe lattice. We remark that our tilt estimation method can be easily generalized to e.g. a rectangular lattice. 251 Row Number Lattice of the bit-spiral 1 Pit land '1' '0' 2 ~. JE-+---), . a = lattice constanl ~b = pit size time-synchronous bits Figure 3: 2D bit lay-out on the TwoDOS discs. The read-out process, operated by the scanning spots, will produce an array of ID signals ri,k. When applied to any signal the indexes (i, k) will denote respectively the row number, and the bit synchronous time index. For simplicity we will first focus on the case when the replay signals are obtained with the correct sampling phase, i.e. when the scanning spots, one per row, are centered, at the sampling instants, on NT bit positions. Figure 4: System Model. Fig. 4 shows a block diagram of the system model under consideration. This is just a simplified bit synchronous scheme of the player-receiver system of Fig. 1. The system input consists of the 2D bit pattern aA.. The optical path is modelled by the 2D channel response h. This response accounts for the actual realization of the bits on the medium as circular pits, as well for the actual read function that is carried out by the diffraction limited spots. To this aim the bi-linear scalar diffraction model described in [4] is adopted. This model is also employed to implement the target response g. The parameter ~, which alters the channel behavior, denotes the tilt vector. It consists of two components, namely tilt amplitude, corresponding to the tilt elevation angle a, and tilt direction, corresponding to the tilt azimuth = 0, where 7f; denotes any parameter different than tilt, and ij cx:< wOIB >2. For the sake of simplicity we will focus on a scalar tilt quantity e, e.g. tangential tilt 3. Before describing the design of B we spend a few words on how tilt estimation based on projection operators can be interpreted geometrically. The equalizer taps WA e can be viewed as a vector in RM xRN. As a function of the equalizer taps wO describe a trajectory in RMxRN (see Fig. 5). Figure 5: Geometric representation of the equalizer tap values as a function of disc tilt. e For = 0 the equalizer w is the nominal equalizer wn. For small values of e around zero the first order Taylor approximation yields Ba = awOI ae (1) 0=0 meaning that the equalizer in the presence of tilt can be approximated as the nominal one, plus a correction term that is proportional to the tilt amplitude. This correction term is parallel to the vector Ba. For a given nominal equalizer and a given model for tilt, this vector is unique. Projection of wO onto Ba produces a tilt estimate ç(e) according to (2) where the first term is constant, while the second is proportional to the amount of tilt. In principle this projection can be carried out over any vector B non orthogonal to Ba. The construction of B, in order to render the estimate independent of other parameters, is a key issue of the proposed method. Since the estimate must be zero in the absence of tilt, we can start building B by orthogonalizing Ba with respect to wn, according to B = Ba - w The tilt estimate then obeys ij = ~~:I~~. ~!~\::~ n. In order to cause ij to be insensitive to a given set (7f;I, ... , 7f;d of channel aberrations and system 2In this space the canonical inner product is defined by < vlw >= Li,k Vi,kWi,k. The results of this paper, however, hold for any definition of inner product. 3The case of radial tilt can be faced in a similar manner. In particular the influence of timing offsets on tangential tilt estimation is analogous to the influence of radial mistracking on radial tilt estimation. 253 artifacts, B must be orthogonalized relative to the space < w'P1, ... , W"'L >, where W"'i is the equalizer steady state solution in the presence of the parameter '1f;i. This is the topic of the following section. Orthogonalization with respect to timing errors Assume that the sampling phase is offset by ~ symbol intervals relative to its ideal position, and that the equalizer W shifts its center along the tangential direction ac- cordingly. For small I~I we may write the Taylor approximation w[; ~ Wn + ~w[;', where w[;' = 8wb. /8~1b.=o. Upon invoking (1), we find (3) which yields the following constraints on B: < wnlB >= LWn,II.BII. 11. =J Ê*(ej27rf)Wn(e327rf)dj =0 < w~'IB >= Lw~~BII. =J jÊ*(ej27rf)Wn(ej27rf)dj =0 11. where Wn( ej27r f) is the nominal equalizer transfer function. For the estimate to be insensitive to timing errors, B must be made orthogonal to the space < Wn, w[;' >. This can be achieved as follows. Let us consider the more general case of the space < W"'l, ... ,W"'L >. Starting from the vector Bo as defined in (1), we need to define a new vector H, orthogonal to this space. To l.his aim the basis (W"", ... , W"'L) is converted to the orthogonal basis Xl, X2, ... , Xp, with p :::::L, via the Gmm-Schmidt orthogonalization procedure. The vector B is then written as: B = Bo - t << i=1 BoiXi> x; XiiXi> Complexity Reduction by the use of ternary masks Once the projection mask B is correctly designed to provide a correct estimator of 8, the implementation of the proposed method will cost roughly MxN multiplica- tions and additions per estimate. This cost can be drastically reduced to few addi- tions per estimate, by designing from B a new ternary mask (3)B, with entries in {-I, 0, I}, that can provide comparable estimates. A straightforward approach to this end consists of slicing the real valued mask B with a given threshold. An example is (3)B = sgn(B).[lBI >Th.max(IBI)], with sgn denoting the signum operation and Th a suitable threshold. For the case of disc tilt this method produced satisfactory results. SIMULATION RESULTS Simulations are conducted for the synchronous discrete-time system of Fig. 4 in the presence of tangential tilt. The radial span of the channel h is fixed to 5, in order to properly mimic the effect of disc tilt, while that of the target 9 is fixed to 1. The data sequence all. is uncoded, and the additive disturbance nil. is white and Gaussian. SNR (the ratio between the channel output power and the noise variance) is fixed to 254 18 dB. The linear equalizer w has a span of M = N = 7 and its adaptation has a time constant 7=3000 samples. A set of tilt values a E (_1° ..1°) is applied to the channel (note that this range is twice larger than the nominal range allowed for tilt), and the system is run until the equalizer has converged. The mask Ba (1) is approximated as the ratio (w;::o - w;;"'o)j2ao with ao = 0.125 degrees. The masks Bin] and Bln,t:.'] are then obtained as the orthogonalization of Ba relative to Wn and < wn, w~' > respectively. The first mask is not orthogonal to timing errors. Therefore, when a sampling phase offset is introduced in the channel, it produces incorrect estimates (Fig. 6, lower curve), in agreement with (3). After orthogonalization of the estimation mask with respect to timing the bias due to the sampling phase, offset is practically cancelled. The real valued Bln,t:.'] is then converted into a ternary mask, whose tap values are reported in the figure. The tilt estimates resulting from it are almost identical to those of the real ====:::======:c===:===:=:c==:'======;-----,,------,------,,----, valued maskr.=' _ Correct sampling phase; Mask=B[nl 1 ~ Sampling offset ~=O.25; Mask=B[nl -e-- Sampling offset ~=O.25; Mask=B[n,lI'l 0.75 -A- Sampling offset ~=Ü.25; Mask=(3)B[n,ll'1 o Q 0 0 0: 0 0 ............. 0 : 0 .. 1. .. 0 . : 0 .. 0 .~I : B _ Q 1 -1 0: 0 1-1 (3) [n,II'] - : 0 0 0: 0 0 0 :0 1. .~I ... 0: .. 0 ... 1. .~l; .. 0. -1 1 0: 0 0 -1 0 0 o 0: 0 0 0: 0 0 -1 -0,75 -0.5 -0.25 0 0.25 0,5 0.75 1 Tilt elevation angle a 0 Figure 6: Tilt estimates in the presence of an incorrect sampling phase (!::. 0.25 symbol internals], before and after orthogonalization with respect to timing. The fourth curve concerns a ternary mask, whose tap values are reported in the figure. Finally Fig.7 reports 3D plots of Bln,t:.'], The left plot shows the mask's tap values overlapped on top of the mask surface as black dots. The level curves on the XY plane reveal that B is basically antisymmetric along the tangential direction. The central plot is the transfer function of B. It shows onto which frequencies the estimation mask picks up most of the energy. For a better understanding of this last point, a ID slice of the transfer function is considered (right plot), together with the nominal and tilted channel transfer functions. The middle peak overlaps with the region where the channel 255 is more sensitive to tilt. Most tilt information comes from this frequency range. The ternary mask, compared with the real valued one, has a lower second peak and a higher third peak. Therefore it does offer a (much) lower implementation complexity, but at the price of a somewhat higher sensitivity to noise. Nom. channel Tilt channel (0:=1°) Brn'''l ••••• (3)B[n'''1 -3 -2 -0.5 -0.25 0 fx o 0.25 Frequency fx (normalized) Figure 7: Impulse response (left) and amplitude response (center) of the real valued estimation mask. The curves in the right plots are obtained by slicing the corresponding Hexagonal Fourier Transforms along the direction fx' CONCLUSIONS This paper proposed a simple and accurate method to estimate tilt based on pro- jection masks applied to the equalizer tap values. Design criteria for these masks have been discussed, in order for the estimates to be insensitive to other channel parameters and system artifacts. The resulting tilt estimates show a correct zero crossing and quasi-linear response for the range of tilt angles Cl! E (_1°, ...,1°). Efficient ternary masks were designed, and showed no loss in estimation accuracy. The use of ternary masks reduces implementation costs to few additions per estimate. REFERENCES [1] A.H.J. Immink, W.M.J. Coene, A.M. van der Lee, C. Busch, A.P. Hekstra, J.W.M. Bergmans, J. Riani, S.J.L. v. Beneden, and T. Conway, "Signal processing and cod- ing for two-dimensional optical storage," in Global Teieconuuunicaiions Conference, 2003. GLOBECOM '03. IEEE, Dec. 2003, vol. 7, pp. 3904-3908. [21 J.P. Baartman, B.H. Hendriks, J.W. Aarts, and G.E. Rosmalen, "Realization of an active-tilt-controlled high-numerical-aperture two-lens objective for optical record- ing," in Proceedings of the SPIE, 1999, vol. 3'737, pp. 37-44, Phllips Res. Lab., Eindhoven, Netherlands. [3] J.Braat, P.Dirksen, and A.J.E.M. Janssen, "Diffractive read-out of optical discs," in Focus on Microscopy. 2002, pp. 45-85, (P. Trk, F.-J. Kao eds.), Springer Verlag. [4] W.M.J. Coene, "Non-linear signal processing model for scalar diffraction in optical recording," Applied Optics (Information Processing), vol. 32, no. 32, pp. 6525-35, Nov.2003. 256 MINIMUM LOOP-DELAY ADAPTATION AND TIMING RECOVERY FOR TWO-DIMENSIONAL OPTICAL STORAGE S. Van Beneden" J.W.M. Bergmans" J. Riani" M. Ciacci* A. Nowbakht" A.H.J. Immink** *Eindhoven University of Technology, Den Dolech 2, 5600 MB, Eindhoven **Philips Research Laboratories, Prof. Holstlaan 4, 5656 AA, Eindhoven This paper describes a new approach towards the design of adaptation and timing recovery schemes for Two Dimensional Optical Storage (TwoDOS) and presents an experimental validation of the design. Adaptation and timing recovery are becoming increasingly critical for low SNR recording channels. The combina- tion of two dimensional parameter variations (time-varying imperfections of the recording and replay channel) and detection-delays is analyzed for conventional decision-directed adaptation and timing recovery schemes. A practical solution to improve the tracking capabilities of the 2D adaptation and timing recovery schemes is proposed, analyzed and validated experimentally. INTRODUCTION The recording density in modern data storage systems is limited by intersymbol interference (ISI). To counteract this problem, digital communication techniques such as Partial Response Maximum Likelihood (PRML) detection have proven to be highly effective. In these techniques, the storage channel is equalized by means of a linear filter to a partial response target and a Maximum Likelihood (ML) sequence detector (in the form of a Viterbi Detector) is used to recover the data. The VD relies upon a well- defined time-invariant relationship between the recorded data and the detectors input signal (the partial response target). In order to ensure that the relationship between data and signal does not vary, adaptive signal processing algorithms are incorporated in the receiver to counteract fluctuations of system parameters (these fluctuations can be slowly or rapidly varying depending on their nature). Because of the complexity of the detector, the implementation of the receivers signal processing algorithms has shifted from analog to digital. Timing recovery is an essential function in digital communication and storage systems. The purpose of timing recovery is to recover the clock (phase and frequency) at the symbol rate from the replay signal and is implemented as a Digital Phase Locked Loop (DPLL). The efficiency and the performance of different timing recovery schemes is studied in [4,7] Other adaptive algorithms are used to shape the replay signal. An adaptive equal- izer is used to counteract the ISI induced by the replay process [2,6]. Automatic Gain Control (AGC) helps to stabilize the dynamic range of the signal supplied to the de- tector. Finally an adaptive DC controlloop is incorporated in the receiver. The different adaptation algorithms and the timing recovery use the transmitted data as side information to facilitate the adaptation. This extra information can either 257 be known beforehand. This is referred to as the Data Aided (DA) operation mode. Or the extra information can be taken from the decisions of the VD. This is called the Decision Directed (DD) operation mode. A PRML receiver has been built for Two-Dimensional Optical Storage [3,9]. In Two-Dimensional Optical Storage, bits are stored on a hexagonallattice [1]. In contrast with conventional optical recording (CD, DVD), where the bits are stored in a single spiral, in TwoDOS the bits are organized in so-called broad spirals. The broad spiral contains a number N R of bit rows, stacked upon each other to form an hexagonal struc- ture.In this case, the data is read out with an array of NR laser spots arranged such that each spot is centered on one of the tracks within the broad spiral. A multi-spot photo detector integrated circuit is used to generate a so-called high frequency (HF) signal for every bit row. The 2D PRML receiver performs joint detection on the HF signals for all rows in the form of a Viterbi detector, preceded by adaptive equalization, adaptive DC compensation, AGC and timing recovery (a possible solution for 2D timing recovery is presented in [5]). To reduce the high complexity of a full-fledged 2D Viterbi, the Viterbi is divided into smaller Viterbi detectors, each covering a limited number of bit rows (so-called stripes with a typical height of 2 or 3 rows). This configuration is called a Stripe- Wise Viterbi Detector. The binary output from a first Viterbi detector is passed to a next Viterbi detector to be used as side information in the branch metric calculations. In this configuration each next detector adds a delay, which is at least equal to the backtracking depth of the Viterbi detector. So going inwards starting from the outer rows the total detection-delay increases considerably. The total latency in the adaptation loops and timing recovery for the inner rows is very large and will limit the tracking capabilities severely. This paper presents a modified two-dimensional adaptation strategy that is able to track rapidly varying parameters under the asoumption th:1.t rapid parameter variations are common for all the rows. This assumption is verified by experimental results and also the performance uf thc modified adaptation and timing recovery schemes is illustrated by both simulated and experimental results. SYSTEM MODEL The receiver model is shown in Fig. 1. The received signal r.(l) can be modelled by Error e Siy" a t 'zk: Bit Figure 1: Baseband asynchronous receiver model. convolving the data bits S!k by a two-dimensional channel characterized by an hexagonal 258 impulse response ll(t) and adding a noise component ll(t). The received signal r.(t) is applied to a noise filter (Low Pass Filter, LPF) to suppress out-of-band noise. Then the signal is sampled at rate l/Ts (approximately 1.25 times the baudrate liT). In the digital domain, the overall response up till the bitdetector has to be transformed into the desired target response: the adaptive equalizer tackles ISI, the DC controlloop compensates for offsets in the system and the AGC loop normalizes the amplitude of the signal. Finally a timing recovery circuit (in the form of a digital phase locked loop, DPLL) is implemented to recover the synchronous clock at the baud rate ljT. All the control schemes are based on the Zero-Forcing technique [8]. In a ZF adaptation scheme, the output of the detector is used to generate both an error signal f.k and a signature signal that indicates the component of the error due to a misadjustment in the parameter under consideration. As the detector output is delayed with respect to its input, extra latency is added in the controlloops. The effect of latency in a control loop is studied in the next section. EFFECT OF LATENCY ON CONTROL LOOP PERFORMANCE A general parameter domain model for a control loop with latency is given in Fig. 2. A channel parameter Bk is the input of the control loop. The purpose of the loop is to minimize the error t;;.k between Bk and its estimate 'Pk. A noise component Vk is added (input-referred noise). Furthermore a delay M is incorporated which mimics the overall delay in the loop. A loop filter (LF) with transfer characteristic L(z) is used to generate the estimate 'Pk. The loop filter is just a multiplier for the DC control loop and the AGC loop. This leads the a first-order control loop. If the loop filter contains memory elements, the controlloop will be of higher-order (timing recovery is implemented as a second-order controlloop). The performance of a controlloop can be described by the statistics of the squared errorek, measured after initial acquisition. The controlloop has two inputs: a desired component Bk and a noise component Vk (see Fig. 2). The controlloop reacts to both components and as a result the output of the loop filter can be considered to be the sum of 2 components: the final estimate 'Pk and the gradient noise Lk. Consequently the error ek can be expressed as: (1) where t;;.k = 'Pk - Bk represents the misadjustment error and Lk represents the gradient noise. Loop dynamics As the dynamic properties of the loop do not depend on the noise Vk, we neglect this noise for the time being. The adaptation loop is linear and can be characterized by means of transfer functions G",(z) = (z)/8(z) and G~(z) = t;;.(z)j8(z) (the response of respectively 'Pk and t;;.k to changes of the loop excitation Bk). These functions are referred to as the parameter and misadjustment transfer functions. In the absence of input-referred noise Vb the misadjustment error can be analyzed in function of the delay M and the loop filter transfer function L(z). Only the first-order loop filter is 259 First-order Second-order high-gain al b) Figure 2: a) General Parameter-domain controlloop model with a loop filter. b) Loop filters for both first-order system and for second-order high-gain system. considered here but the results can be derived in the same manner for the second-order case. For first order loops the loop filter has transfer function L(z) = KtZ-1 /(1- Z-l), where Kt is the adaptation constant of the loop. The time constant of the loop expressed in sampling intervals can be defined as Tk = I/Kt. Consequently the transfer function Gc.(z) is evaluated to be (2) The edge of the stability region defines a relationship between the loop-delay and the time constant of the loop Tk ~ (2M + 1)/7r [4]. This equation reveals the smallest allowable time constant for a given loop-delay. The magnitude responses for varying conditions is shown in Fig. 3. In the left part the response is shown for different time constants and a delay M = o. By increasing the time constant of the control loop, the equivalent, bandwidth of the loop decreases and as a result high frequent parameter variations are introduced in the error signal ek. In the right part of Fig. ::s the magnitude response is shown for a given time constant Tk = 200 and for varying loop-delays M. A increasing resonance peak appears near the cut-off frequency for increasing loop-delays, this is highly undesirable because of the increasing error power. A similar behavior is present in the characteristic of the MSE for decreasing time constants Tk (note again the inverse relationship between the delay M and the time constant in terms of resonance effects). As a result, the design of an adaptation loop is highly influenced by the presence of a big loop latency because the loop needs to have a large time constant to avoid resonance problems or even to avoid mstability. Gradient noise The gradient noise ~k has power: a} = ~ i: T Pv(e jwT ) !G