Eighteenth Symposium on Information Theory inthe .r- Benelux/ , Veldhoven, The Netherlands May 15 & 16,1997. Werkgemeenschap voor Informatie- en Communicatietheorie. IEEE Benelux Information Theory Chapter. 18th SYMPOSIUM on INFORMATION THEORY in the BENELUX Programme. Kongreshotel Koningshof, Veldhoven. May 15-16, 1997. Thursday May 15, 1997. 10u30: Registration en coffee/tea. 10u50: Welcome by the WIC chairman: prof.dr. E.C. van der Meulen. 11u00 - llu40 : Session 1: Channel coding I 11uOO: "The Decoding of Binary Quasi-Cyclic Codes", P. H eijnen. llu20: "Performance and Complexity of Decoding Algorithms", J. Keuning. 11u40: Coffee. 12u00 - 12u40 : Session 2: Detection and estimation 12u00: "Statistical Signal Detection and Kohonen's Neural Network", F. Cremer & L.P.J. VeelenturJ. 12u20: "Quickest Detection in Random Fields: A Baysian Approach", E.P. Hupkens. 13u00: Lunch. 14u20 - 15u00: Session 3: Video coding I 14u20: "Real-Time Labeling Methods for MPEG Compressed Video", G. G. Langelaar, R.L. Lagendijk & J. Biemond. 14u40: "On the Application of Fast DCT Transforms for Combined SW/lfW Implementation", M. v.d. Schaar-Mitrea & P.H.N. de With. 15u00: Tea. 15u20 - 16u20 : Session 4: Multi-user information theory 15u20: "Feedback Coded Modulation", M.S. Bargh I)i J.P.M. Schalkwijk. 15u40: "Variable-Rate codes for Multiple Localized Burst Error Correction", G.H. Bmtatjandm I)i J.H. Weber. 16u00: "Some Observations on Two-Way Channels", H.B. Meeuunssen & J.P.M. Schalkwijk. 1'{uOO: Reception. 18u00: Symposium diner. 21u00: WTC meeting. May 1997 Research group on Information and Communication Theory Eindhoven University of Technology Department of Electrical Engineering Friday May 16, 1997. Breakfast. 9uOO- 10u00: Session 5: Channel coding 11 9uOO: "Coping with Ambiguities in the Channel Code for DVB-S", B. de Bart. 9u20: "Effects of Floating Point. Arithmetic in Enumerative Coding", K.A. Scha uh am er Immink fj A.J.E.M. Janssen. 9u40: "A Bound on the State-Complexity of a Binary Linear Block Code", L. Tolhuizen. 10u00: Coffee. 10u20 - 11u00: Session 6: Video coding 11 10u20: "Objective Measurement of Video Quality", J. G. Beerende fj A.P. Hekstra. 10u40: "All Eye-Movement Compensated Spatio-Temporal Model for Pre- dicting Distortion Visibility in Digital Image Sequences", S. J.P. Westen, R.L. Lagendijk fj J. Biemond. 11uOO: Coffee. llu20 - 12u20 : Session 7: Cryptography 11u20: "Quantum Key Agreement", M. van Dijk fj A. Koppelaar. 11u40: "An Overview of E-mail Security Schemes", M. Vandenwauver, R. Govaerts fj J. Vandewalle. 12u00: "Cryptanalysis of 'less short' RSA Secret Exponents", E.R. Verheul fj H. G.A. va n Tilborg. 12u40: Lunch. 14u00 - 14u40 : Session 8: Source coding 14u00: "A Context-Tree Branch-Weighting Algorithm", P.A.J. Vol! fj F. M.J. Wil/ems. 14u20: "Cornplexity Reduction of the Context-Tree Weighting Method", F. M. J. Willems fj Tj. J. Tjalkens. 14u40: Tea. 15u00 - 16u00: Session 9: Shannon theory 15u00: "Normalization Procedures and Shannon's Entropy Measure", M. G. de Bruin fj G. Kamminga. 15u20: "Applications of Information Theory in Optics", G.H. Slump. 15u40: "On the Capacity of Generalized Write-Once Memory with State Transitions Described by an Arbitrary Directed Acyclic Graph", F.- W. F'u fj A.J. Han Vinek. 16u00: WIC chainman's closing remarks. PROCEEDINGS OF THE EIGHTEENTH SYMPOSIUM ON INFORMATION THEORY IN THE BENELUX Proceedings of the Eighteenth Symposium on Information Theory in the Benelux May 15 - 16, 1997 Kongreshotel Koningshof, Veldhoven The Netherlands by F.M.J. Willems and Tj.J. Tjalkens, Editors Published by: Werkgemeenschap voor Informatie- en Communicatietheorie Enschede, The Netherlands, 1997 The Eighteenth Symposium on Information Theory in the Benelux has been organized by the Groep Informatie- en Communicatietheorie Faculteit der Electrotechniek Technische Universiteit Eindhoven, Nederland on behalf of the Werkgemeenschap voor Informatie- en Communicatietheorie and the IEEE Benelux Information Theory Chapter. The Program Committee consisted of C.P.M.J. Baggen (Philips Research Labs., Eindhoven), A.P. Hekstra (KPN Research, Leidschendam), J.P.M. Schalkwijk (T.U. Eindhoven) : chairman, Tj.J. Tjalkens (T.U. Eindhoven), F.M.J. Willems (T.U. Eindhoven). v Previous Symposia Proceedings 1. 1980 Zoetermeer, The Netherlands Department of Electrical 2. 1981 Zoetermeer, The Netherlands Engineering, Technical 3. 1982 Zoetermeer, The Netherlands University Delft 4. 1983 Haasrode, Belgium ISBN 90-334-0690-X 5. 1984 Aalten, The Netherlands ISBN 90-71048-01-2 6. 1985 Mierlo, The Netherlands ISBN 90-71048-02-0 7. 1986 Noordwijkerhout, The Netherlands ISBN 90-6275-272-1 8. 1987 Deventer, The Netherlands ISBN 90-71048-03-9 9. 1988 Mierlo, The Netherlands ISBN 90-71048-04-7 10. 1989 Houthalen, Belgium ISBN 90-71048-05-5 11. 1990 Noordwijkerhout, The Netherlands ISBN 90-71048-06-3 12. 1991 Veldhoven, The Netherlands ISBN 90-71048-07-1 13. 1992 Enschede, The Netherlands ISBN 90-71048-08-X 14. 1993 Veldhoven, The Netherlands ISBN 90-71048-09-8 15. 1994 Louvain-la-Neuve, Belgium ISBN 90-71048-10-1 16. 199.5Nieuwerkerk aid IJssel, The Netherlands ISBN 90-71048-11-X 17. 1996 Enschede, The Netherlands ISBN 90-365-0812-6 vi TABLE OF CONTENTS Page Session 1: CHANNEL CODING I • The Decoding of Binary Quasi-Cyclic Codes 1 P. Heijnen (T.U. Eindhoven) • Performance and Complexity of Decoding Algorithms 5 J. Keuning (T.U. Eindhoven) Session 2: DETECTION AND ESTIMATION • Statistical Signal Detection and Kohonen's Neural Network 9 F. Cremer fj L.P.J. Veelenturf (Univ. Twente) • Quickest Detection in Random Fields: A Bayesian Approach 17 E.P. Hupkens (Univ. Twente) Session 3: VIDEO CODING I • Real-Time Labeling Methods for MPEG Compressed Video 25 G. G. Langelaar, R.L. Lagendijk fj J. Eiemond (T.U. Delft) • On the Application of Fast DCT Transforms for Combined SW /HW 33 Implementation M. v.d. Schaar-Mitrea fj P.HN. de With (Philips Research Labs) Session 4: MULTI-USER INFORMATIONTHEORY • Feedback Coded Modulation 41 M.S. Eargh fj J.P.M. Schalkwijk (T.U. Eindhoven) • Variable-Rate codes for Multiple Localized Burst Error Correction 49 G.H Eratatjandra fj J.H Weber (T.U. Delft) • Some Observations on Two-Way Channels 57 HE. Meeuwissen fj IP.M. Schalkwijk (T.U. Eindhoven) Session 5: CHANNEL CODING II • Coping with Ambiguities in the Channel Code for DVB-S 65 E. de Earl (T.U. Eindhoven & Philips Semiconductor-Systems Lab) • Effects of Floating Point Arithmetic in Enumerative Coding 70 K.A. Schouhamer Immink fj A.J.E.M. Janssen (Philips Research Labs) • A Bound on the State-Complexity of a Binary Linear Block Code 76 L. Tolhuizen (Philips Research Labs) vii Page Session 6: VIDEO CODING II • Objective Measurement of Video Quality 81 J.G. Beeretuis fj A.P. Hekstra (KPN Research) • An Eye-Movement Compensated Spatio-Temporal Model for Pre- 89 dicting Distortion Visibility in Digital Image Sequences S.J.P. Westen, R.L. Lagendijk e J. Biemond (T.U. Delft) Session 7: CRYPTOGRAPHY • Quantum Key Agreement 97 M. van Dijk fj A. Koppelaar (Philips Research Labs) • An Overview of E-mail Security Schemes 105 M. Vandenwauver, R. Govaerts fj J. Vandewalle (K.U. Leuven) • Cryptanalysis of 'Less Short' RSA Secret Exponents 113 E.R. Verheul (Dept. of the Interior) & H.e.A. van Tilborg (T.U. Eindhoven) Session 8: SOURCE CODING • A Context-Tree Branch-Weighting Algorithm 115 P.A.J. Vol! €3 P.M.J. Willems (T.U. Eindhoven) • Complexity Reduction of the Context-Tree Weighting Method 123 F.M.J. Willems e Tj.J. Tjalkens (T.U. Eindhoven) Session 9: SHANNON THEORY • Normalization Procedures and Shannon's Entropy Measure 131 M.G. de Bruin €3 C. Kamminga (T.U. Delft) • Applications of Information Theory in Optics 142 C.H. Slump (Univ. Twente) • On the Capacity of Generalized Write-Once Memory with State 150 Transitions Described by an Arbitrary Directed Acyclic Graph F.- W. Fu (Nankai Univ., China) & A.J. Han Vinck (Univ. Essen, Germany) viii AUTHORS INDEX Page M.S. Bargh 41 B. de Bart 65 J.G. Beerends 81 J. Biemond 25,89 G.H. Bratatjandra 49 M.G. de Bruin 131 F. Cremer 9 M. van Dijk 97 F.-W. Fu 150 R. Govaerts 105 P. Heijnen 1 A.P. Hekstra 81 E.P. Hupkens 17 A.J.E.M. Janssen 70 C. Kamminga 131 J. Keuning 5 A. Koppelaar 97 G.C. Langelaar 25 R.L. Lagendijk 25,89 H.B. Meeuwissen 57 M. v.d. Schaar-Mitrea 33 J.P.M. Schalkwijk 41, 57 K.A. Schouhamer Immink 70 C.H. Slump 142 H.C.A. van Tilborg 113 Tj.J. Tjalkens 123 L. Tolhuizen 76 M. Vandenwauver 105 J_ Vandewalle 105 L.P.J. Veelenturf 9 E.R. Verheul 113 A.J. Vinck 150 P.A.J. Volf 115 J.H. Weber 49 S.J .P. Westen 89 F.M.J. Willems 115, 123 P.H.N. de With 33 ix PREFACE Since 1980 the Werkgemeenschap voor Informatie- en Communicatietheorie has or- ganized a symposium every year. Especially during this period it became clear that Information Theory is more than just a theory. Coded modulation and Lempel-Ziv data-compression demonstrated that the limits in communication that Shannon pre- sented to us, are indeed achievable in practice. Moreover, the small gaps that still remained, seem to be closed by recent developments as TURBO coding and context- tree based compression. Regarding this, our conclusion must be that Information Theory is fully qualified as an engineering science. Apart from this success of Information Theory during the last years we can observe another development. It is a fact that in the mentioned period all three Dutch technical universities cancelled their chairs on Information Theory, the last one here in Eindhoven very recently. It is not clear whether the situation will improve in the near future, but at this moment the perspectives for doing research in our field at a university are not very good. A consequence of this is that after while the teaching-quality will decrease and as a result engineers with a poor education in the mathematical background of communication will find their way to industry ... It requires a combined effort of all of us to prevent the above scenario from coming true. We, the organizers of the eighteenth symposium, have the intention to keep Information Theory alive, at least in Eindhoven. To save Information Theory for the Benelux we need your help. April :23,1997 Frans Willems & Tjalling Tjalkens Groep Informatie- en Communicatietheorie, Faculteit der Electrotechniek, Technische Universiteit Eindhoven. xi The Decoding of Binary Quasi-Cyclic Codes Petra Heijnen * April 14, 1997 Abstract The decoding of binary quasi-cyclic codes of rate ~ is studied in detail and three distinct decoding algorithms are presented. 1 Quasi-cyclic codes We consider a linear code C of length n = mk, dimension k and minimum dis- tance d. Let C be a codeword of C. We divide C in m blocks, say Cl, C2,... ,Cm, each of length k. Let Ac; denote the cyclic shift of Ci, the ith part of c, over one position. We call C a quasi-cyclic (QC) code if and only if for every codeword C (Cl, C2,... ,cm) E C also (Ac I, AC2,... ,Acm) E C. The QC-code C lias a generator-matrix G that consists of m circulant k x k matrices GI, G2, ... ,Gm. We take the entries of the first row of the matrix Gi, 1 ::; i ::; m, as the coefficients of a polynomial 9i(X). In the same way we represent the m parts of a codeword c by m polynomi- als, say Ci(X), 1 :::; i ::; m, of degree less than k. We denote c by c(x) = (q(X),C2(X) ... ,cm(x». We will use both notations. Now, c(x) represents a codeword in C if there exists a polynomial a(x) of degree less than k, such that c;(x) == a(x)9;(X) mod xk -1, for all i, 1::;i ::; m. There- fore we call the polynomials 91(X),92(X), ... ,9m(X) the generator-polynomials of "Department of Mathematics and Computing Science, Eindhoven University of Technology, P.O. Box 513, 5600 MB Eindhoven, The Netherlands 1 c. Computer evidence suggests that QC codes with good parameters always seem to have at least one of the circulant matrices Gi, 1 ::::;i ::::; rn, of full rank. In this case we can find an equivalent code of C, of which Gl is the k x k identity-matrix. From now on we assume that gl (x) = 1. From the parity-check matrix, we find a set of parity-check equations for the code C. c(X) E C {o} e;(x) + Cl(X)gi(X) == 0 mod xk -1, (1) for all i, 2 ::::;i ::::; rn. 2 Decoding We will now describe three maximum likelihood decoding algorithms for QC codes. In the next section a discussion of the complexity will be given We will assume that c(x) = (Cl(X), ... ,c",(x)) is the transmitted codeword, while rex) = (rl(X), ... ,rm(x)) is received. Let e(x) = (el(x), ... ,em(x)) rep- resent the errorvector, such that ri(x) + ei(x), for 1 ::::;i ::::; = e;(x) rn. The number of errors that C can correct is t = ld;l J. We assume that the weight of the errorvector e is not more than t. 2.1 Algorithm 1: Comparison with all codewords For all polynomials a(x) of degree less than k compute the polynomials ei(x), 1::::; rn, by ei(x) i ::::; == a(x)gi(X) + ri(x) mod x k - 1, until the weight of the corresponding vector e = (el, ... ,em) is less or equal to t. Then c(x) = (a(x)gj(x), ... ,a(x)gm(x)) is the transmitted codeword. 2.2 Algorithm 2: Syndrome-decoding To decode the received word rex), compute the syndrome-polynomials Si(X) for rn, by Si(X) 2::::; i ::::; == ri(x) + rj(x)gi(X) mod xk - 1. By equation (1) we have 2 also Si(X) == ei(x) + el(x)gi(X) mod xk -1, for all i, 2::::: i :::::m. Furthermore we determine all the k quasi-cyclic shifts of the corresponding syndrome-vector S = (S2,S3, ... ,srn), say s(l) = (Als2,A1s3, ... ,ALSm), 0:::::I::::: k -1, where Al denotes a cyclic shift over I positions. Consider the vector e = (el, 0, ... ,0) of length n: This vector differs on at most t places from the error-vector e. Let Zi(X) == el (X)gi(X) mod xk - 1, 2 ::::: m, be the syndrome-polynomials i ::::: of e. Then the vector (0, Z2,Z3,.·. ,zm) differs at the same places from (0, S2,S3,... , srn) and we can find back the error- vector e = (el,s2 +Z2,S3 + Z3,.·· ,Sm +Zm). Now we consider all binary vectors of length k and we divide them in classes, such that every class consists of of all vectors that are each others cyclic shift. "Ve choose the lexicographic smallest vector in every class as representative of that class. First those of weight 0, then of weight 1, and so on, till weight t. By definition el is a cyclic shift of one of those representatives. So to decode r(x) we generate all representatives of weight:::::t. Let b be such a representative, and b(x) its corresponding polynomial of degree < k, then we compute the corre- sponding syndrome-polynomials by Zi(X) == b(X)gi(X) mod xk -1, 2::::: i::::: m. If b is indeed a cyclic shift of el then there is a cyclic shift of s, say s(l), 0 :::::I ::::: k-l, that has distance j; t - wt(b) with z. Then c = (Ak-lb + rl,82 + Ak-lz2 + r2, ... ,Srn + Ak-lzm + rml is the transmitted codeword. 2.3 Algorithm 3: Error division Let S = lr:.J, then there exists a subvector ei of e = (el, ... , em) of weight less or equal to s. So for each i, 1 :::::i ::::: m we can check all subveetors ei of weight less or equal to s and assume that the subvector c, of the transmitted codeword C equals ri + ei. With that we can compute the polynomials a(x) satisfying a(x)gi(X) == ri(x) + ei(x) mod xk - l. Since the circulant-matrix G, is not neccessary of full rank, there can be more than one solution. If the distance between the word (a(x)gl (x), ... ,a(x)gm(x)), with a(x) in this solution space, and rex) is less or equal to t then (a(x)gl (x), ... , a(x)gm(x)) is the transmitted codeword. 3 3 Complexity of the algorithms We have made simulations of the complexities of the three algorithms from Sec- tion 2. In the next figure the time is plotted that every algorithm needed to decode 1000 words, that were transmitted over the BSC with errorprobability p = 0.1. The dimension of the codes has value 7, the number of blocks m goes from 2 tilll7. We did use the best known quasi-cyclic codes. 'Best' with respect to their minimum distance. We observe that all the algorithms behave linear in m. if k is fixed. Algorithms 2 and 3 behave much better than the first one. Since Algorithm 3 needs more memory than Algorithm 2, it depends on the application which of those two is the best. Pao sec a , • x m Figure 1: Complexity decoding-algorithms with k = 7 and p = 0.1. References [1] F.J. MacWilliams and N.J.A. Sloane, "The Theory of Error-Correcting Codes" . [2J Renk van Tilborg, "On quasi-cyclic codes with rate l/m", IEEE Trans. On Inform. Theory, Vol. IT-24, No.5, Sept. 1978. 4 Performance and Complexity of Decoding Algorithms Jeroen Keuning * 1 Introduction Designing a system, there are at least two important things: quality and the price you pay for it. The coding part of such a system makes no exception to this rule. Also here, the tradeoff between quality and money can easily be found. The quality of a code depends on the performance of its decoding algorithm, the price of the quality depends on how complex this algorithm is. The performance of a decoding algorithm is expressed by how good (or bad) it works depending on the circumstances. Measuring the complexity is usually done by counting the number of operations that are relevant. Decoding algorithms can be roughly divided in two parts: hard decision decoding (HDD) algorithms and soft decision decoding (SDD) algorithms. For HDD algorithms, the relevant operations are the logical operations, while for SDD algorithms opera- tions on real numbers are the most time-consuming operations. We will discuss SDD algorithms only. The most common channel for SDD algorithms is the Additive White Gaussian Noise (AWGN) channel. The binary data from the codes that we will consider are modulated by a Binary Phase Shift Keying (BPSK) system, where the waveforms have amplitude Eb. So Eb is the amount of energy that is necessary at the transmitter to send one "Departrnent of Mathematics and Computing Science, Eindhoven University of Technology, P.O. Box 513, 5600 MB Eindhoven, The Netherlands 5 bit. The noise that is added to the signal is white Gaussian with double-sided spectral density ~o. At the receiver, a matched filter is used for the waveform detection and to obtain reliability information How performance can be measured will be explained in the next section. 2 The Performance of a Decoding Algorithm Depending on how bad the channel is, the decoding algorithm will sometimes not be able to find the transmitted code word ç from the received filter outputs z:. Instead, it will output another codeword 'Ç. So the performance of a decoding algorithm can be measured by the probability that the decoder gives a code word that is different from the transmitted word, i.e, 1P('Ç =1= c). But, as mentioned before, this probability is dependent on how bad the channel is. Therefore, we will first look at the channel. The AWGN channel has the following probability density functions, depending on the transmitted bit: pep 1'1') = _l_exp (_ (p - VElY) ~ No and pep 1'0') = _1_ exp (_ ep + VElY) . ~ No However, the use of coding also has a negative effect. Since coding adds redundancy to the data, more bits have to be transmitted. In a communication system where the power is limited, the available power per transmission bit reduces due to this addition. To take this effect into account, the probability density functions should use Es = REb, the amount of power available per transmission bit, instead of Eb, where R is the rate of the code that is used. So for the uncoded transmission, Es = Eb, By scaling the filter output from ±,JE; to ±l, it is easy to see that the quality of the channel can be described by one parameter, namely tfoi2' This parameter is called the & Signal-ta-Noise Ratio (SNR). So, the performance of a decoding algorithm on a specific channel is actually the error probability 1P(f. i= çJ as a function of the SNR. For HDD algorithms the error probability 1P(f. i= £) can be computed. For SDD algorithms however, simulations have to be done to find this error probability. 3 Simulation Results This paper does not contain any plots of performances of decoding algorithms, since the simulations to make these plots were not finished at the time of writing this pa- per. During the presentation the results of the following decoding algorithms will be discussed: • A bounded distance decoding algorithm for the non-linear Nordstrom-Robinson Code [1]. • A maximum likelihood decoding algorithm for the non-linear Nordstrom-Robinson Code [2]. • A bounded distance decoding algorithm for the binary extended Golay code [3]. We will compare the gain in complexity with the loss in performance by using a bounded distance instead of a maximum likelihood decoding algorithm for the Nordstrom- Robinson code. Furthermore, the bounded distance decoding algorithms for the non- linear Nordstrom-Robinson code and the linear extended Golay code will be compared in the same sense. References [1] F.W. Sun and H.C.A. van Tilborg, "Fast Bounded Distance Decoding of the Nordstrom-Robinson Code," in: Communications and Cryptology; two sides of the same tapestry, (ed. R.E. Blahut, e.o.), Kluuier Academic Publishers, Boston etc., pp. 391-398, 1994. 7 [2J Jean-Pierre Adoul, "Fast ML Decoding Algorithm for the Nordstrom-Robinson Code," IEEE Trans. on Information Theory, vol. IT-33, pp. 931-933, November 1987. [3J O. Amrani, Y. Be'ery, A. Vardy, F.W. Sun and H.C.A. van Tilborg, "The Leech Lattice and the Golay Code: Bounded-Distance Decoding and Multilevel Con- structions," IEEE Trans. on Information Theory, vol. IT-40, pp. 1030-1043, July 1994. 8 Statistical Signal Detection and Kohonen's Neural Network F. Cremer L.P.J. Veelenturf , Researchgroup BSC-NT, Department of Electrical Engineering, University of Twente, PO Box 217, 7500AE Enschede, The Netherlands April 11, 1997 Abstract: In this paper three methods of using Kohonen's neural network for statistical signal detection is introduced. These methods are tested on the real world problem of spike- wave detection in EEG signals and are compared to conventional statistical signal detection methods. Because of the neural networks, more flexible models of the probability density function can be used, with better results than the more simpler models. 1 Introduction Neural networks have been used for (signal) detection application for quite a long time. These methods should be compared to conventional methods of statistical signal detection. A study, resulting into a Master's Thesis, has been done to compare and combine neural networks and statistical signal detection. A recent overview of this combination was also given by [Homström 97] In this paper, first Kohonen's Neural Network and some properties of this network will be discussed. Secondly the problem of spike-wave detection in EEG signal will be introduced. This problem will be used as a test case for various signal detection methods, either conventional or neuraL Each method will be briefly discussed and the results on spike-wave detection will be given. This paper ends with conclusions and recommendations for further research. 2 Kohonen's Neural Network Neural Networks are simplified models of the human brain. These models are based on the working of neurons, cells which receive, transmit and process information. A simple model is used for each neuron; a neuron consists of a number of inputs, a set of weight (setting the relative influence of each input) and an output. Neurons can be connected into networks, to obtain more complex behavior, as can be found in the human brain. There are many different types of neural network, see also [Veelenturf 95]. In this paper only a variant of Kohonen's neural network will be discussed. 9 Kohonen's neural network consist of a set of neurons, arranged into a lattice, which may be one or more dimensional and either circular or fiat. The distance ddr, s), between neuron rand s in the lattice, must follow the requirements of any normal distance measure. Each neuron can be identified by it's weight vector W. The (Euclidean) distance dv(w,v) between weight vector wand input vector v determines the output level of the neuron. The neuron with the shortest distance to the input reacts most strongly on this input vector and is therefore called the winning neuron. In biological neural networks, it is observed that within one region neurons react strongly on specific input patterns and that in other regions, reactions are suppressed. This behavior can be modeled, by adapting the weight of the neurons within an area around the winning neuron into the direction of the input. The weight of the winning neuron is adapted the most and this adaptation decreases for weights of neurons which are further away in the previously defined lattice: _ _ adv [wr(t), v(t) J wr(t + 1) = wr(t) - g[dL(r, s), tJ awr(t) (1) with s the winning neuron. For g(d, t), a function with decreases both for the distance d and time t; the adaptation width decreases also with time: g(d, t) = (1 + t)f" exp ( _d21 ~ t) (2) with Eet the rate of decay (usually Ea = -0.5) and 0"0 the initial adaptation width (usually 0"0 equals half the number of neurons). It can be shown that this algorithm performs vector quantization in the final phase of learning (when the adaptation width is small). Vector quantization is optimal, when the average (square) distance between a set of input vectors and their nearest weight vector is minimal. Instead of minimizing the average square distance, for signal detection it is inter- esting to take a look at the relation between the Probability Density Function of the input space pv(x) and the PDF ofthe weights pw(x). For the conventional Lindo-Buzo- Gray (LBG) vector quantizing algorithm, [Ritter 91] has derived a relationship. For an adaptation rule with a fixed number of adapted neighbors, [Zador 82] has shown an- other relationship and finally [Lutt reil 91] has derived a relationship for an adaptation function with decreasing neighborhood. Experimental results (of a one dimensionallattice and input space) with the adap- tation rule as presented in this paper only show stable results for Ea = -0.4 and 0"0 = n, with n the number of neurons. For these parameters the relationship is: Pv(x) = C . PW(X)OA, with C a constant. This equations show that there is no 1:1 relation between those two PDFs, but that low density areas are over represented and that high density areas are under represented by the weights. Does this makes this adaptation rule useless for estimating the input density? No, because ifthe chance of winning (P(w;)) for each weight Wi is estimated, it can be seen if a weight lies in an under or over represented area. The chance P(Wi) is estimated by the relative number of input vectors which have the same nearest weight vector: P(Wi) = ( Pv(x)dx ~ mi (3) JXEV(Wi) m 10 with V(Wi) the volume (also called receptive field) in which x is closest to Wi, mi the number of input vectors in this receptive field and m the total number of input vectors. The chance P( Wi) would be the same for all weights, if there was a 1:1 relationship. An approximation of the input PDF is given by _ (_) P(Wi) ( ) (4) vv x = V(Wi)' 'rIx E V Wi since ~1::l is an approximation of the mean PDF within the receptive field of Wi· Equation 4 can be used directly for estimating the PDFs, but it is a rather rough approximation. Besides, it is hard to determine the exact volumes of the receptive fields for higher dimensions. 3 Spike-wave detection Spike-wave are certain waveforms in Electro- EncephaloGram (EEG) recordings. They randomly occur in the EEG recordings of an epilepsy patient and may mark the start of an epileptic seizure. Epilepsy is usually diagnosed based on the occurrence of spike- waves. Because of the random nature of the spike-waves (they may be absent for longer periods), it is necessary to make long recordings (up to 24 hours). These recordings (consisting of 24 channels) are scanned by a neurologist for any spike-waves. This work is time consuming and boring, so it would be a improvement to automate this process. Although all spike-waves have the same biological background; some kind of brain disorder, the shape of the spike-waves may differ significantly for one patient and even more between different patients. The spike-wave mayalso be buried in noise or normal EEG signals. Spike-waves are not well defined, so they should be learned by examples, which is a normal situation for neural networks. However to ensure maximum performance these networks should be integrated with statistical signal detection methods. These statis- tical detection methods are described in numerous books, for example [Helstrom 60J and [Helstrom 95J. In this section several methods (some using Kohonen's Neural Network) are tested on a single EEG channel, containing 66 spike-wave of an average size of 99 samples and a total of 120,000 samples. Halve the number of spike-waves (33) and halve the number of normal EEG are used for training. All of them are used for testing. For testing, a window containing 99 samples, see figure 1 is shifted over the signal (one sample at a time). For each window the likelihood ratio A(x) (or a positive rising function of the likelihood ratio) is calculated. If the likelihood ratio is above a certain threshold, a spike-wave is said to be de- tected. If a spike-wave is detected within ±10 samples of a spike-wave marked by the neurologist, it is correctly detected, otherwise it is called a false alarm. If a spike-wave marked by the neurologist is not detected at all, it will be called a miss. Misses should be avoided as much as possible, because in real world application of this method, misses as opposed to false alarms will never be shown to the neurologist. However, it is hard to assign costs to misses and false alarms, so a Bayes classifier cannot be made. 11 Figure 1: A window on a part of the recording of the EEG signal. 3.1 Correlating Receiver The correlating receiver can be used to detect a known signal s in noise (with a known covariance matrix <1». The sufficient statistic of the likelihood ratio is then given by: A(-) - Wlith q- = ",-1 X = q-T . X, '±' . s. - (5) For simplicity it is assumed that the known signal is the average of the 33 spike-waves in the signal and that the noise is Gaussian and equal for each sample. This results into an even simpler expression, since ij ~ S. To calculate the likelihood ratio, the inner product between the average spike-wave and the samples in the window has to be taken. Choosing the optimal threshold (for which there are no misses) results into 37 times false alarms. This seems low, but it implies that besides verifying the 66 real spike-waves, the neurologist still has to verify and discard 37 windows of false alarms. 3.2 Parametric Density Estimation Parametrie probability density estimation uses a fixed form for the PDF and calculates the parameters. For spike-wave detection, it is assumed that each sample Xi is inde- pendent of the others and may have a different expectation value l1i and a different amount of Gaussian noise a, on it: p(x) = I1P(Xi) = IT --exp d d 1 (1Ix. - ' - 211.11 ' 2 ) (6) i=1 i=1 V27fO"i 20"i with d the dimension of the window (99 samples). The parameters of the PDF are estimated using 33 spike-waves. The likelihood can be calculated if it is assumed that the joint PDF of normal EEG is uniform. This gives better experimental result than using the same parametric estimation of the PDF of normal EEG signals. In figure 2, the average spike-wave and the 1 - 0" line is plotted. With this detector there are 9 times false alarm, when all spike-waves are detected. 3.3 Parametrie Signal Detection Parametrie signal detection assumes that the signal has a few parameters (like fre- quency and phase, denoted by 8) which may vary within a well defined range. The PDF is given by: p(X) = J p(xI8)f(G)dG (7) 12 0.8 0.6 0.4 ................. ) 0.2 v(k) 0 -0.4 -0.6 -0.8 20 40 60 80 100 k---. Figure 2: Estimation of the average spike-wave and the 1-CJ line. with f(8) the distribution function of 8. Instead of taking a continuous range of parameters, this equation can be approximated by a limited realization Wi of the signal: N p(x) = LP(xlw;)P(w;) (8) i=1 For each realization w; a d dimensional Gaussian PDF is assumed with equal variance in each direction (CJ; = 1). Now, only these realizations and there prior probability P(w;) need to be estimated. It is clear that this can be simply done, using Kohonen's neural network and counting the number of times a neuron wins. Two networks are used, one for the spike-waves and one for normal EEG signals. Experiments have shown that two networks of 4 neurons performs best. For the optimal threshold there are only 4 false alarms. The sensitivity to noise of this detector was tested by adding noise to each window, see also figure 3. Up to signal to noise ratios (8 IN) of -4dB this detector has 4-6 false alarms and occasionally 1 miss (depending on the shape of the noise). Above -4dB the number of false alarms rises sharply. 3.4 Non-Parametric Density Estimation Non-parametric PDF estimation uses the fact that the PDF can be approximated by: K p(x) ~ N. V(x) (9) with V(x) some volume containing x and K nearest neighbors of x from a reference set with a total of N vectors". Using a set of 1000 windows of normal EEG, and 33 lThis volume can be approximated with a hyper sphere around ft with as radius the distances between ft and the K-th nearest neighbor. 13 Figure 3: EEG signal without(left) and with -4dB noise(right). windows which contained spike-waves and K = 1, all spike-waves were detected and the number of false alarms was zero. However, this method is very slow, since for each window, 1033 distances has to be calculated. To speed up this method, Kohonen's neural network can be used to reduce the number of vectors in the reference set. This may be done, since the network tries to minimize the square representation distance. So replacing the set by a smaller set, consisting of the weights of a Kohonen network trained with the original set, should lead to a minimal increase in the average distance and thus to a minimal increase in the volume. Reducing the set of vectors to 4 windows of normal EEG and 4 windows of spike- waves, leads to 6 false alarms and no misses. The number of distance that has to be calculated is now only 8, so this algorithm is almost 130 time faster. 3.5 Semi-Parametric Density Estimation Semi-parametric probability density estimation combines the flexibility of the non- parametrie density and simplicity and generalization of the parametrie density estima- tion. It uses a set of N component densities P(XIWi), which are combined using mixing parameters P(Wi): N p(x) = L P( wi)p(xlwi)' (10) i=J For the component densities a Gaussian PDF is used with expectation value Wi: __ 1 (1IX-WiW) (11) P(XIWi) = (27l'oDdj2 cxp - 2af . with ai the variance. Notice the similarity between this method and the method of parametrie signal detection: parametrie signal detection uses signal parameters and semi-parametric density estimation uses Gaussian kernels, resulting into the same ex- pression for the PDF. It has been shown that the mixing parameters may be estimated by the fraction of times the neuron with this weight vector wins. The variance still needs to be estimated. The following estimation was given by [Lokerse 95]: (12) 14 N4/d(d+4) and (13) utN-1/(d+4) (14) with ar,i the variance in the receptive field of Wi, mi the number of input vectors in the receptive field, N the total number of input vectors, d the dimension and at the total variance of the input vectors. With these estimates, the classification performance is poor: there are 64 times false alarm for a threshold where all spike-waves are detected. Another way to estimate the variance and the mixing parameters is to use an optimization algorithm to maximize the tota! probability P (also called likelihood): P = IIp(x) (15) 'Ix When this likelihood is maximal, it is most likely that the set is generated using a similar PDF. This optimization is done using the BFGS Quasi-Newton method with a mixed quadratic and cubic line search procedure. Using this optimization indeed leads to a higher likelihood, although the mixing parameters are barely adapted and the variance is only slightly adapted. The results for spike-wave detection are however much better: now only 13 times false alarm. The performance is less than the performance of the parametrie signal detection. This is strange, since the variance is estimated and not set to 1. Probably the variance can not be estimated correctly, using only 33 spike-waves. 4 Conclusions and recommendations The results of the various methods are summarized in table 1. Besides the number of false alarms and false rejected, the table lists also the number of calculations per window for detection. This is interesting, because it shows if the methods are fast enough for real application, c- Calculations # False # False Method per window alarm rejected Correlating Receiver 200 37 0 Parametrie DE 999 9 0 Non-parametric DE 309,000 0 0 Non-parametric DE (Kohonen) 900 6 0 Parametrie SD (Kohonen) 900 4 0 Semi-parametric DE (Kohonen) 900 13 0 Table 1: The number of false alarms and false rejected and calculations for the previous tested methods (DE=density estimation and SD=signal detection). For spike-wave detection, a more complex method is needed than the correlating receiver. The parametrie density estimator performs better, but still not good enough. The non-parametric density estimator with the complete set performs best, but needs to many calculations; reducing the set decreases the performs to third best. The 15 parametrie signal detection method performs second best and surprisingly better than the semi-parametric density method. The parametrie signal detection method would be preferable for spike-wave detec- Lion. This method has also been shown to a neurologist, who classified two of the four false alarms as spike-waves (apparently they were missed the first Lime) and thc other two as possible spike-waves. To speed up this method, it may be combined with the correlating receiver and be used on the 37 possible spike-waves detected by the correlating receiver. This study has shown that is possible to combine neural networks and statistical detection methods, to build a good and robust (insensitive to noise) signal detector. Although this is a limited test, the results are promising (especially compared with neural only detectors), but there still needs to be a lot of testing on other (EEG) signals. References [Helstrom 60] C.W. Helstrom, Statistical theory of signal detection, 1960, Pergamon Press, Oxford [Helstrom 95] C.W. Helstrom, Elements of signal detection and estimation, 1995, Pren- tice Hall, London [Homström 97] L. Homström, P. Koistinen, J. Laaksonen, E. Oja, Neural and Sta- tistical Classifiers - Taxonomy and Two Case Studies, IEEE Transactions on Neural Networks, Vol 8, No 1, 1997 [Lokerse 95] S.H. Lokerse, L.P.J. Veelenturf and J.G. Beltman, Density estimation us- ing SOFM and adaptive kernels, Proceedings of the Third Annual SNN Sym- posium, Nijmegen, The Netherlands 1995 [Luttrell 91] S.P. Luttrell, Code Vector Density in Topographic Mappings: Scalar Case, IEEE Transactions on Neural Networks, Vol 2, No 4, 1991 [Ritter 91] H. Ritter, Asymptotic Level Density for a Class of Vector Quantization Processes, IEEE Transaction on Neural Networks, Vol 2, No 1, 1991 [Veelenturf 95] L.P.J. Veelenturf, Analysis and Applications of Artificial Neural Net- works, 1995, Prentice Hall International, UK [Zador 82J P.L. Zador, Asymptotic quantization error of continuous signals and the quantization dimension, IEEE Transactions on Information Theory, vol 28,no 2,1982, page 139-14 16 Quickest Detection in Random Fields: A Bayesian Approach Erik P. Hupkens* Abstract The quickest detection problem in inexhaustive and independent random fields is solved using a Bayesian approach. However, the solutions are given implicitly, and the actual calculation of the solution generally is very complicated. For some special cases, approximations to the solution are given and analysed. 1 Introduction The classical quickest detection problem (Shiryaev [1])is defined for signals that evolve in time. A change appears at a certain time, and the objective is to detect it as soon thereafter as possible. The statistical decision theory (Berger [2]) has been very useful for dealing with these problems. In case the signal is a random field, we do not have this causality. The measurements may be taken from any site of the field, and the change mayalso be present at arbitrary sites on the field. Cairoli and Dalang [3]give a framework for handling these problems. Applications may be found in several spatial search problems. We assume the prior distribution of the changes to be known. Furthermore, the cost of making an incorrect decision is supposed to be known, relative to the cost of taking a single measurement. This allows us to approach this problem from a Bayesian point of view. In Section 2 we introduce the random fields and the change that may appear on these fields. Then, in Section 3 we give the solution to the quickest detection problem using a Bayesian approach, and specify this solution for some special cases. All proofs have been omitted to save space and readability. 2 Random fields Although a random field is generally defined on a two-dimensional plane, we use a more abstract notation. We define a field as a set of sites, where each site may have the physical interpretation of a certain position on a surface. We will use ç to denote a field and t or 5 to denote a single site. "University of Twente, Fac.Appl.Math., Systems & Control Group, P.O.Box 217, 7500 AE En- schede, The Netherlands 17 A random field is now defined as a stochastic process defined on a field. We assume the field to be inexhaustive, that is, from each site we may take an infinite number of independent measurements. Furthermore, the measurements between the sites are also supposed to h~ independent. If there is no change present on the field, the density function of the process is equal to fa at each site. In general, we assume a change to be present on a certain subset of the field, which we term the region of change. Each change is parameterized by a parameter e, and the set of all changes is denoted bye. We assume the set e to be finite. Furthermore, we define e* = eU {O} as the set of all parameters, including the nominal model. The density function at site t is given by fO.t. So, if t is not contained in the region of change corresponding to e, then fo.t = fa. In order to detect a change, we have to take measurements from the field. This process consists of three stages; 1. Where do we take the next measurement. 2. When do we stop. 3. What decision do we make. A stopping strategy is defined as the triple d = (t, T, 6). The sample path t is a sequence of sites, where each site is defined as a function of the previous measurements, and denotes the next site to be processed. The stopping time T determines when to stop sampling, and the decision function 6 tells us what decision we should make. 3 Bayesian approach In case we have some additional prior information about the distribution of the param- eters and the costs of making incorrect decisions, the Bayesian approach may be used. The prior distribution of the parameters is given by ç, defined by ç(e) = Pr[e] for all e E O". After t.aking a measurement y at site t, the posterior distribution may be calculation using Bayes' rule, 1tç(e) = ç(e)fo.t(Y) L:1gee' ç( 1'J)f~.t(Y) The cost of making an incorrect decision is assumed to be given by Co if e = 0, d = 1 tcie, d) = { ~l if e =1= 0, d = 0 otherwise where Co and Cl are the false alarm cost and the miss cost, respectively. The variable d denotes the decision that is made, i.e., d = 0 coincides with accepting the null hypothesis and d = 1 represents the rejection of the null hypothesis. 18 Since we want to detect a change as soon as possible, we also have to assign a cost to the measurements. The sampling cost is assumed to be equal to 1, which is equivalent to scaling the error costs with respect to the sampling cost. The total cost L is defined as the sum of the sampling cost and the error cost. Using a stopping strategy d = (t, T, ó) this gives us an expected cost L(E" d) = EdT + K(e, ó)] The main objective throughout this paper is to minimize this quantity. The Bayes cost is defined as p(E,) = inf L(E" d) d In other words, the Bayes cost is the minimal expected cost when E, is the prior distribu- tion of the parameters. The stopping strategy that minimizes the expected cost is said to be the Bayes stopping strategy. The Bayes cost and the Bayes stopping strategies may be obtained from the following theorem. Theorem 1 (Bayes cost) The Bayes cost is a concave function, and is given by p(E,) = min{po(E,),1 + min t Edp(TtE,)]} (1) where Po(E,) = min{E,(O)co,(1 - E,(O))CI} is the cost of stopping. The Bayes stopping strategies may now be described as follows. • The sample path t follows from the minimization over the future Bayes cost. • The stopping time T is given by the first time for which p(E,) = Po(Ç)· • The decision function Ó is the Bayes decision function, defined by 0 if ç-(O)co> (1 - ç(O))CI Ó = 1 if Ç-(O)co< (1 - Ç-(O))CI 1 q otherwise where q is an arbitrary value between 0 and 1. Finding the Bayes sample path and the Bayes stopping time is a rather complex task. From the concavity of the Bayes cost, we may see that the ç-space may be divided in three regions. The acceptance region is given by and the rejection region is given by S" = {E,lp(ç) = ç(O)co} Then, the continuation region C is the complement of these two regions. 19 Lemma 1 (Convexity of stopping regions) Both the acceptance region sa and the rejection region S" are convex. Let us define Q(ç,t) = E{p(Tt() Clearly, the Bayes sample path may be obtained from minimizing this function over t for all ç. A site t is said to be most informative at ç if Q(ç,t) = minQ(ç,s) s It is denoted as too(f;). If more than one site exists for which the future cost is minimal, the site with the smallest X-coordinate is chosen. If this is not conclusive, the site with the smallest Y-coordinate is chosen. Furthermore, let g(ç) = Q(ç,too(Ç» denote the future Bayes cost. The continuation region may now be divided in a number of sub-regions, according to which site is most informative. Let us define G(t) = {ç E Gjtoo(ç) = t} 3.1 Approximate solution In many situations, the number of sites that will be processed is limited. For example, if the error cost is relatively small, it is not likely that an extremely large number of sites is required to make a decision. Therefore, a good approximation of the Bayes cost may be found by using a truncated test. Let us define Pk(Ç) = inf L(ç, d) cleRk as the k-truncated Bayes cost, where Rk is the class of stopping strategies that are truncated at or before the kth site. Then, similarly, Qk(Ç, t) EçPk-l(7tÇ) tk(Ç) {tjQk(Ç,t) = min s Qk(f;, s)} (2) Qk(Ç) Qk(Ç,tk(Ç» where the same lexicographic ordering is used to guarantee the uniqueness of tk. Then we may easily see t.hat Pk(Ç) min{po(Ç),l + min EçPk-l(7tÇ)} min{po(ç),l + Qk(Ç)} enables us to calculate the k-truncated Bayes cost in an iterative way. Lemma 2 The [unctioii tk .. defined by equation (2) converges pointwise to too. More- over, there exists a number N, such that for all ç, for all k 2: N. 20 The stopping regions corresponding with the k-truncated Bayes cost may now be ob- tained similarly, and are denoted as Sk and Sk' Finally, the corresponding continuation region is denoted as Ck, which again may be divided in sub-regions Ck(t). The nature of these approximations to the original stopping regions follows from the following lemma. Lemma 3 The convex regions Sk and Sk are decreasing with k and converge to sa and ST, respectively. Let us now define the n-step look-ahead Bayes stopping strategy as the stopping strategy that follows from the minimization of Pn(ç) after each measurement. So, after each measurement, we maximally consider n future measurements in our minimization. Clearly, if we let n go to infinity this strategy converges to the Bayes stopping strategy. Since we apply the same test at each stage, the stopping regions (S~ and S~) are constant. Moreover, from Lemma 3 we know that the optimal stopping regions are contained in these stopping regions. Let us consider the I-step look-ahead procedure. The stopping regions may be obtained rather easily in this case. Let us define Sî(t) and Sf(t) as the acceptance and rejection region corresponding to a I-step look-ahead procedure that is concentrated at site t. Lemma 4 The stopping regions for the i-step look-ahead procedure are given by the intersection of the stopping regions per site, i. e., s: ntSf(t) sr ntSr(t) If we consider more than one step in our look-ahead procedure, the equality no longer holds. This may easily be seen from the fact that the concentrated look-ahead pro- cedures use concentrated versions of p(ç). However, we may still find that the actual stopping regions are contained in the intersection. In the following sections we examine thc optimal cost function for some special types of changes. In Section 3.2 we assume the alternative hypothesis to be simple, so that the problem may be interpreted as the detection of a known global change. In case the alternative hypothesis is composite, we may still distinguish several situations. Here we focus on local changes of known form and size, but of unknown position. In Section 3.3 we assume the possible regions of change to be disjoint. 3.2 Simple hypothesis Suppose that the set of changes only contains one element, with a region of change that is equal to the entire field. Under the alternative hypothesis, we assume the density function at site t to be equal to ft. We assume that ft 't t, for each t i= s, since if ft == fs for some t i= s, we may join these two sites in one site without loss of generality. The prior distribution of the parameters is defined by the constant ç = Pr[e = OJ 21 Corollary 1 (Bayes stopping time for simple hypotheses) For a test between two simple hypotheses, there exist constants Ça and çr such that the Bayes stopping time may be written as Here Çk is defined by Çk = TtJ The problem that remains is twofold. Firstly, we do not know the constants Ça and çr. Unfortunately, as in the uni-directional case, these may not be found that easily. Since the thresholds in this case also depend on the minimization over the sites, the problem is even more complicated. If we only use one particular site t for our measurements, we may calculate the optimal thresholds çr(t) and ça(t), using the integral equations from Basseville and Nikiforov [4]. In the first example we get back to these integral equations. If we repeat this procedure for each site, we obtain a sequence of stopping boundaries. From the discussion following Lemma 4 we know that çr < rnjnçr(t) ça > maxça(t) t The second problem is the optimal choice of the sites. Finding the most informa- tive site at some given ç is not that straightforward. Moreover, if a certain site is most informative for some ç, this does not automatically imply that this site is most informative for all other ç. If the site t is most informative for all ç between çr(t) and ç ç(s) for all soft} The following example illustrates the I-step look-ahead procedure for this problem. Example 2 Let us consider a Gaussian field consisting of two sites. The parameter set also contains two elements, each of which represents the presence of a change at one of the sites. Under the null hypothesis, the process has zero mean on both sites. Under the alternative hypothesis, one of the sites has measi u, and the other still has mp-n.nzero. The variance is equal to 1 under all circumstances. The error costs are given by Co = 50 and Cl = 100. Using a I-step look-ahead procedure, the stopping regions may be calculated using the previous results. The stopping boundaries are calculated for both sites separately, -_ - -~- Accept ', Figure 2: Stopping regions according to I-step look-ahead procedure. and are shown in Figure 2. From Lemma 4, the actual stopping regions according to the l-step look-ahead procedure are then given by the intersection of the separate stopping regions. The boundary between the regions CI(s) and CI(t) is defined by the straight line ç(s) = ç(t). If ç(s) > ç(t), then the site s is more informative than the site t. References [1] A.N. SHIRYAEV, On optimum methods in quickest detection problems, Theory of Probability and Its Applications 8 (1963) 22-46. [2] J.O. BERGER, Statistical Decision Theory - Foundations, Concepts, and Methods, Springer- Verlag, 1980. [3] R. CAIROLI, R.C. DALANG, Sequential Stochastic Optimization, John Wiley & Sons, 1996. [4] M. BASSEVILLE, LV. NIKIFOROV, Detection of Abrupt Changes: Theory and Application, Prentice Hall, 1993. 24 Real-time Labeling Methods for MPEG Compressed Video Gerrit C. Langelaar, Reginald L. Lagendijk, Jan Biemond Department ofElectrical Engineering, Infonnation Theory Group Delft University of Technology, P.O. Box 5031,2600 GA Delft, The Netherlands E-mail: {gerhard.lagendijk.biemond}@it.et.tudelft.nl Abstract The objective of the SMASH-project, sponsored by the European Union, is to develop a mass multimedia storage device for home usage. Service providers are reluctant to offer video services in digital form because of their fears for unrestricted duplication and dissemination. Therefore a copy proteetion system based on labeling techniques is proposed for this digital storage device. In this paper, two new real-time labeling techniques for compressed video are introduced. The first method adds the label directly in the MPEG-bitstream. Although, this labeling procedure can be performed in a fast and simple way, the label can also easily be removed without affecting the quality seriously. The second method is more computationally demanding but also more robust. This method is based on discarding parts of the compressed MPEG-video stream. The label can be extracted even after the MPEG-stream has been re- encoded using a lower bit-rate. 1. Introduction The objective of SMASH'-project, is to develop a mass multimedia storage device for home usage. The development rate and success of such a digital mass storage system depend not only on technical advances, but also on the existence of an adequate copy proteetion method. Service providers will not offer high quality video services in digital form without a copy proteetion method which limits duplication of multimedia data. Therefore a copy proteetion system for video based on labeling techniques is proposed. This system should be implemented in the storage device and adds a perceptually invisible "copy-prohibit" label to the data which is stored. Before the storage device starts recording, the incoming data is checked for this label. The recorder will only start if the "copy-prohibit" label is not detected. This means that data can only be stored or copied once. The advantage of this system is that the label can not be removed without affecting the quality of the data and the label also remains intact across different data file formats. The current work in SMASH concentrates among other things on developing real-time labeling methods for compressed video and images. Severallabeling methods for images can be found in literature. Most methods add the label in the spatial [1..5] or the Discrete Cosine Transform (DCT) [6,7] domain. To extract a label some of these methods only use the labeled image, where others use the labeled image together with the original one. For copy proteetion we can only use the first kind of methods. To perform the labeling in real- time on compressed data, the compressed format must be taken into account, because decoding, labeling and finally re-encoding the data is quite computationally demanding. Only the methods presented in [5] and [6] deal directly with compressed data. In [5] a labeling method is described which incorporates the label in the bitstream domain of MPEG-2 coded video, without decoding and full re-encoding the stream. The label can be retrieved from the decoded video. In [6] a labeling technique is proposed which adds the label in the bitstream domain of JPEG coded images, without decoding and full re-encoding the stream. The label can be extracted from the encoded (compressed) image. In this paper we first discuss the requirements for a label. Subsequently two new real-time labeling techniques for compressed video are introduced. The first method, described and evaluated in section 3, adds the label directly in the MPEG-l or 2 bitstream by replacing variable length codes. Since decoding and re-encoding the stream is not necessary, the labeling procedure is not computationally demanding. Although, the labeling process can be performed in a fast and simple way, the label can also be removed easily without affecting the quality seriously . • This work was funded in pan by the EU ACTS program ACI8: SMASH (Storage for Multimedia Applications Systems in the Home) 25 In section 4, the second method is presented and evaluated. This method is more computationally demanding but is also more robust. The method is based on discarding parts of the compressed MPEG-video stream. For the labeling only partial decoding is needed. No re-encoding is required. The label can be extracted even after the MPEG-stream has been re-encoded using a lower bit-rate. Finally, conclusions are drawn in section 5. 2. Requirements Labeling or watermarking is a technique to embed additional information into audio or video data by modifying the original data under the constraint that the quality is not seriously affected. For a copy proteetion system as described in the introduetion we need a labeling method that: • allows the extraction of the label without using the original video data, • can be performed directlyon compressed data to add and extract a label in real-time, • does not increase the size of the compressed bitstream, is perceptually invisible, • is resistant to simple processing techniques, which do not seriously reduce the quality of the image, like re-encoding the MPEG-stream using a lower bit-rate, can store enough label bits per second to detect the copy-prohibit bit at every random position in the stream. The first three requirements are inevitable. A recorder does not have the original data to its disposal to extract the label. A copy proteetion system in a consumer storage device should not be too complex and expensive and must operate in real-time. If a spatiallabeling method [1..4] is used, the MPEG video stream should be locally decoded, labeled and encoded. Re-encoding the data to add the label is too computationally demanding and expensive, therefore the label must be added in another way, circumventing the most time consuming steps, decoding and encoding. If the size of the compressed bitstream is increased by the labeling, the buffers in hardware decoders can run out of space or the synchronisation between audio and video can be disturbed. The other requirements are related with each other and ranked in order of importance. First, the label must be perceptually invisible, because a copy proteetion system that spoils the video quality is not acceptable. After that, a trade-off should be made between robustness and label size. The more label bits are added per frame, the less robust the label will be against processing techniques. The methods discussed in section 3 and 4 rely heavily on the MPEG video compression standard. The discussion of this standard is, however, out of the scope of this paper and the reader is referred to [9] for more information. 3. Fast MPEG Labeling Technique in the Bitstream Domain In this section a real-time labeling system is described and tested, which has about the same strength as the Serial Copy Management System (SCMS) [8]. It has the additional advantage that it can add much more side-information in the label (e.g. copyright information), Unlike SCMS, this side-information remains intact if the video data is copied to a PC or other device, that does not support the copy proteetion mechanism. 3.1 MPEG Bitstream Labeling Technique To make the algorithm as fast as possible the motion vector calculation, DCT and IDCT transforms etc. should be avoided. Therefore, the label should be added on the VLC-Ievel (variable length codes). In our case, the label-bitstream is embedded in the MPEG-slreatll by changing the least significant bit of some VLC's, that represent quantized run-length coded AC DCT-coefficients. To be sure that the change in the VLC is perceptually invisible and the MPEG-bitstream keeps its original size, the VLC has to meet several requirements. Another VLC must exist, that has the same size, the same run length, and a level difference of 1. According to table B.14 and B.15 of the MPEG-2 standard [9], there are enough suitable VLC's. Besides, all fixed-length-coded DCT coefficients following an Escape-code meet the requirements. Some examples of suitable VLC's are listed in table 1. The VLC's in the intra and inter coded macroblocks can be used in the labeling process. However, in our experiments we only used the VLC's in the intra coded macroblocks. The labeling procedure works as follows. First an intra coded macrobleek is located. The VLC's in this macrobloek are tested. If a VLC, which meets the requirements mentioned above, is found, this VLC is replaced by another, whose least significant bit represents the label bit. To extract the label, again the intra coded macroblocks are located. If a suitable VLC is found, the value represented by its least significant bit is assigned to the label bit. 26 Table 1. Example 0 f some suita b le VLC' SIn. ta bIe B .40 1 f t he MPEG - 2 Stan d ar d Variable length code VLC size Run Level Parity 0010 0110 s 8+I 0 5 1 0010 0001 s 8+1 0 6 0 00000001 1101 s 12 + 1 0 8 0 0000 0001 1000 s 12 + 1 0 9 1 00000000 0011 101 s 15 + 1 1 10 0 0000 0000 0011 100 s 15 + 1 1 11 1 The label can be added in a very fast and simple way, but it can also be removed easily for example by decoding the MPEG-stream and encoding it again using another bit-rate or after applying simple processing techniques, like filtering, etc. However, this is a very time-consuming, computationally and memory (disk) demanding method. By watermarking the stream again using another label, the previous label is removed and the quality is not affected. In fact, the stream can be labeled over and over again without seriously affecting the quality any further. 3.2 Experimental Results We applied the labeling technique to 10 seconds of MPEG-2 video coded with 25 frames per second. The size of the movie is 720 by 576, the GOP-Iength is 12 and the video contains smooth areas, textured areas and sharp edges. During the 10 seconds of the video there is a gradual frame-ta-frame transition and the camera turns fast to another view at the end. The video was coded using different bit-rates. Table 2. Total number of VLC's and number of suitable VLC's in the intra coded macroblocks of 10 secon d s MPEG -2'dVI eo co ded usmg Hf 1 erent biIt-rates an d tne h maximum 1a bel biIt-rate. Video bit-rate number ofVLC's nnmber of suitable VLC's Max. label bit-rate 1.4 Mbit/s 334.433 1.673 0.2 Kbit/s 2.0 Mbit/s 670.381 15.733 1.6 Kbit/s 4.0 Mbit/s 1.401.768 42.784 4.3 Kbit/s 6.0 Mbit/s 1.932.917 62.877 6.3 Kbit/s 8.0 Mbit/s 2.389.675 82.397 8.2 Kbit/s It was possible to store up la 8 Kbit of label information per second in the MPEG streams. Informal subjective tests showed that the labeling does not result in any visible artefacts in the streams coded at 4, 6 and 8 Mbit/s, see Table 2. However, it was not possible to evaluate the quality of the video streams coded at 2 or less than 2 Mbit/s, because the unlabeled MPEG-streams already contained too many coding artefacts. The label bit-rate can be increased by also taking the inter coded macroblocks into account. In figure la the original I-frame of an MPEG-2 coded movie is represented. If the original I-frame is subtracted from the corresponding labeled I-frame and this absolute difference signal is amplified by 60, the images, shown in figure 1b and le, are obtained. Since more bits are stored in an I-frame of a stream coded at 8Mbit/s more differences are made (see Figure Ie), Figure 1. (a) Unlabeled I-frame (b) Frame difference (4Mbit/s) (c) Frame difference (8Mbit/s) 27 4. Re-encoding Resistant MPEG Labeling Technique The labeling algorithm described in this section is more complex, but also more robust against re-encoding the video using a lower bit-rate. The algorithm does also not require re-encoding of the compressed video stream to add the label, since the label is embedded by discarding parts of the compressed stream. A similar approach was proposed in [6] for compressed still images. 4.1 Basic Idea Each bit out of the label string has its own area in an I-frame For instance the first bit is located in the top- left-corner of the I-frame, in a pixel area of n 8x8 pixel blocks, see Figure 2 (n=16). 16 8x8 blocks 1 8x8 lJ!OCK 8 8x8 blocks Figure 2. Bit positions and block definitions in a frame. A label bit is embedded in an area by introducing an "energy" difference in the high frequency DCT coefficients of areas A (see Figure 2), the upper half of this pixel area and B the lower half. In Figure 3 the procedure to calculate the difference in energy D of a 32x32 pixel area is explained. For all 8x8 blocks in A, the Discrete Cosine Transferm is calculated. Then the squared sum of a particular subset of coefficients is computed. 8 DCT-blocks Figure 3. Extracting a label bit from an nxn pixel area. This subset is denoted by SA, and is illustrated in Figure 3 by the white area in the DCT blocks. We define the total energy of SA, computed over all blocks in area A, as: EA=L, L,DCT(i,j)2 kE A i,jeSA 18 Similarly EB is computed for area B (indicated in Figure 3 as black triangles). SA and SB are typically defined according to a cut-off point c in the zig-zag scanned DCT-coefficients. This implies that SA and SB have a triangular shape. The label bit value is now defined by the sign of the difference between the two energies EA and EB. Label bit "0" is defined as a positive energy difference and label bit "1" as a negative one. The label embedding procedure must adapt EA and EB to manipulate the energy difference D. If label bit "1" must be embedded, the energy in A is removed and the difference becomes negative: D = EA - EB = 0 - EB = -EB If label bit "0" must be embedded, the energy in B is removed and the energy becomes positive: There are several reasons for using this energy difference in the triangularly shaped areas (Figure 3). The most important reason is that calculating D and adapting EA and EB can easily be done in the compressed stream. Another advantage is that the human eye is less sensitive to changes in the high frequency coefficients located in those areas. In the compressed bitstream the DCT-coefficients are ordered into a "zig- zag" sequence (see Figure 4) and run-level encoded. Variable-length codes (VLC's) are assigned to these run-level codes. All DCT-coefficients, needed for the calculation of EA or EB are conveniently located at the end of the compressed 8x8 DeT block after zig-zag ordering. The coefficients can easily be set to zero to adapt the energy without re-encoding the stream. Simply shifting the end of block marker (EOB) towards the DC-coefficient by skipping the last VLC's of the block changes the energy E (Figure 4). Because coefficients are "thrown away" to add a label, the labeled compressed stream will be always smaller than the unlabeled stream, and synchronisation and buffer overflow problems are avoided in this way. 8x8 Dcr-block ~~m~7 zig-zag scan Cut-off point: c Encoded video stream: • Zig-zag order ................................. Calculating E: Manipulating E: DC AC-] "C2 AC*) AC-4 AC·:5 AC-6 AC·7 AC·S AC·9 AC-IQ A.C-Il EOB I DC I AC·1 I AC-2 I ACl] AC-4 I AC·S I AC61 AC-7 I AC-S I AC-9t AC-IO Figure 4. Calculating and adapting the energy in an 8x8 compressed DCT block 29 4.2 Calculating the Cut-off Point The question is how many DCT coefficients must be discarded to generate a certain energy difference between the two areas A and B (see Figure 3.). For smooth areas A+B a low cut-off point c is required to find DCT-coefficients which are non-zero. For more textured areas A+B a higher c is needed, otherwise too many coefficients are set to zero and the label bit will become visible. Problems occur if one area e.g. A does not contain any detail and the other contains much texture (see Figure 5a). If a positive energy difference D = EA -EB must be generated to embed label bit "0", almost all AC-DCT coefficients in area B must be removed by using a very low cut-off point c to make EA > EB. Figure 5 illustrates this situation, clearly the presence of the label becomes visible in area B. Figure 5. (a) smooth and (b) positrve energy (c) shuffled frame textured area differnce enforced EA > EB This problem can be solved by pseudo-randomly shuffling all8x8 DCT-blocks ofthe I-frame before labeling (Figure 5c). If the I-frame is not shuffled, the cut-off points c can range from 1 for smooth blocks, where almost no energy EAI<') or EBlc) can be found, to 63 for textured blocks. If all 8x8 DCT-blocks of the I-frame are first shuffled, smooth 8x8 blocks and textured 8x8 blocks will alternate in blocks A or B. The high frequency DCT coefficients are now distributed equally over all areas A and B, and the cut-off points will have a smaller range. The c-values in the shuffled frames vary less around the average of the c-values than in the unshuffled frames. So, the chance that a very low or a very high cut-off point c will be used is smaller. An extra advantage of shuffling is that each label-bit is scattered over the frame, which makes it more difficult for a hacker to locate the label bits. 4.3 The Fully Automated Labeling and Extraction Procedure Labeling procedure: The parameter D is the energy difference which will be enforced to add a label bit. This parameter influences the amount of coefficients, which are discarded, and determines together with parameter n the robustness of the label. n indicated the number of 8x8 blocks per label bit and L, i:O.1.2 .... is the label bit string. 1. All 8x8 DCT- Y -blocks of the I-frame are pseudo-randomly shuffled. The label bit counter i is set to O. 2. A blockA+B containing n 8x8 Y-DCT-blocks is selected from the I-frame to embed label bit L; This block is split into an upper half A (n12 blocks) and a lower half B (see Figure 2). 3. To estimate the cut-off point c, for this block A+B, the squared sum EA(c) of all DCT-coefficients after cut-off point c = 1 (see Figure 4) in all 8x8 DCT-blocks in A is calculated. EBlc) is calculated in the same way for block B. This procedure (3) is repeated for c = 2,3, ... ,63. 4. c, is set to the highest cut-off point c (1..63) for which (EA(c) > D) AND (EBIc) > D) 5. If L, is 1, all coefficients after Ce in all 8x8 DCT-blocks of block A are set to zero (coefficients in SA)' If L, is 0, all coefficients after Ce in all 8x8 DCT-blocks of block B are set to zero (coefficients in SB)' 6. The label-bit counter i is increased by 1. The procedures (2 ..6) are repeated until all label bits Li are embedded. 7. AIl8x8 DCT-Y-blocks are shuffled back to their originallocations. 30 Label extracting procedure: For the extraction procedure a fixed threshold T is required. The threshold T influences the detennination of the cut-off point e, which is used to extract each label bit. This value must be smaller than the enforced energy difference D. J. A1I8x8 DCT-Y-blocks ofthe I-frame are pseudo-randomly shuffled. The label bit counter i is set to O. 2. A block A+B containing n 8x8 Y-DCT-blocks is selected from the I-frame to extract label bit L; This block is split into an upper half A (n/2 blocks) and a lower half B (see Figure 2). 3. To estimate the cut-off point c, for this block A+B, the squared sum EMe) of all DCT-coefficients after cut-off point e =1 (see Figure 4) in all 8x8 DCT-blocks in A is calculated. EB!c) is calculated in the same way for block B. This procedure (3) is repeated for e = 2,3, ... ,63. 4. CA is set to the lowest cut-off point e (1..63) for which (EA!e) < Ty. CB is set to the lowest line number e (1..63) for which (EB!c) < Ty. 5. If (CA < CB) the label bit L, embedded in the block A+B is one. If (CA = CB) AND (EA(eA) < EB!cA)), L, is also one. Otherwise L, is zero. 6. The label bit counter i is increased by 1. The procedures (2 ..6) are applied to all blocks A+B until all bits of the label are extracted. 4.4 Experimental Results We applied the labeling technique presented in section 4.3 to 10 seconds of MPEG-2 compressed video using different bit-rates. The parameter D was set to 20 and the parameter T to 15. The cut-off points e for each label bit were allowed to vary in the range from 6 to 63. A similar algorithm using 16 8x8 blocks per bit (n=16) was successfully applied to JPEG compressed images [6]. However, using this value in the MPEG labeling algorithm resulted in blocking artefacts around edges of smooth objects. Informal subjective tests showed that the label, embedded with n=32, was not noticeable in video streams coded at 8 and 6 Mbit/s. If MPEG streams coded at a lower bit-rate, are labeled with n=32 the same artefacts appear. By increasing n further to 64 a perceptually invisible label can also be embedded in an MPEG stream coded at 4 Mbit/s. In Table 3 some results are listed. It appears that not enough high frequency coefficients can be found in the sequence coded at 1.4Mbitls to create the energy differences D for the label bits. Table 3. Amount of 8x8 DCT blocks per bit, amount of bits discarded by the labeling process, % label biterrors and label bit-rate for the Sheep-sequence coded with different bit-rates Video bit-rate n Discarded bits % Bit errors Label bit-rate 1.4 Mbit/s 64 1.6Kbit/s 24.6 0.21 Kbit/s 2.0 Mbit/s 64 4.7Kbitls 0.1 0.21 Kbitls 4.0Mbitls 64 3.8Kbit/s 0.0 0.21 Kbitls 6.0 Mbit/s 32 7.6Kbitls 0.0 0.42 Kbitls 8.0 Mbit/s 32 7.1Kbit/s 0.0 0.42 Kbit/s In figure 6a the original I-frame of an MPEG-2 coded movie is represented. If the original I-frame is subtracted from the corresponding labeled I-frame and this absolute difference signal is amplified by 60, the images, which are shown in figure 6b and 6c, are obtained. 31 -" • '~ .v .: , t~ " .»: .,; :t "".:f1 ~u:';.~ :n .._. ". , Figure 6. (a) Unlabeled I-frame (b) Frame difference (11=64, 4Mb/s) (c) Frame difference (11=32, 8Mb/s) To see if the label is resistant to re-encoding using a lower bit-rate, the following experiment is performed. The sheep-sequence is MPEG-2 encoded at 8 Mbitls and this compressed stream is labeled (11=32). After that, the labeled sequence is decoded and again MPEG-2 encoded using the same GOP-length but with different lower bit-rates. The biterrors introduced by decreasing the bit-rate are represented in Figure 7. Oio errors ~l, L B 7.5 7 Figure 7. % Biterrors after re-encoding 6.5 6 5.5 5 4.5 4 Bltrate (Mblt/s) a labeled 8Mbit/s Mpeg-2 sequence with a lower bit-rate. 5. Conclusions and Future Work In this paper two new techniques for real-time labeling of compressed video are presented. There is clearly a trade-off between complexity, label bit-rate and robustness. The first method is not computationally demanding, has a very high label bit-rate, which can be extended further by taking also the inter-coded macroblocks into account, but is not robust against re-encoding. The second method is more complex and has a lower label bit-rate, but is resistant to re-encoding if the same GOP structure is used. To survive re- encoding using another GOP-structure a different approach should be followed. The label extraction process can for instance take place after decoding in the spatial domain. References [1) W. Bender, D. Gruhl, N. Morimoto : "Techniques for Data Hiding", Proceedings of the SPIE, 2420:40, San Jose CA, USA, February 1995 [2) 1. Pitas, T. Kaskalis : "Signature Casting on Digital Images", Proceedings IEEE Workshop on Nonlinear Signal and Image Processing, Neos Marrnaras, June, Greece, 1995 [3) J.R. Smith, B.O. Comiskey, "Modulation and Information Hiding in Images", Preproceedings of Information Hiding, an Isaac Newton Institute Workshop, University of Cambridge, UK, May 1996 [4) G.C. Langelaar, J.C.A. van der Lubbe, J. Biemond : "Copy Proteetion for Multimedia Data based on Labeling Techniques", 17th Symposium on Information Theory in the Benelux, Enschede, The Netherlands, May 1996 [5) F. Hartung and B. Girod: "Digital Watermarking of Raw and Compressed Video", Proc. European EOS/SPIE Symposium on Advanced Imaging and Network Technologies, Berlin, Germany, Oct. 1996. [6) G.C. Langelaar, J.C.A. van der Lubbe, R.L. Lagendijk: "Robust Labeling Methods for Copy Proteetion of Images", Proc. Storage and Retrieval for Image and Video Databases V, February 1997, San Jose (CA), USA [7) J. Zhao, E. Koch: "Embedding Robust Labels into Images for Copyright Protection", Proceedings of the International Congress on Intellectual Property Rights for Specialized Information, Knowledge and New Technologies. Vienna, Austria, August 1995 [8) Digital Audio Interface, International Standard IEC 958 [9) ISOIIEC 138l8-2:I996(E), Information technology - Generic coding ofmoving pictures and associated audio information:video, International Standard, 1996 32 On the Application of Fast nCT Transforms for Combined SW / HW Implementation Mihaela v.d. Schaar-Mitrea and Peter H.N. de With Philips Research Labs, Prof. Holstlaan 4, 5656 AA Eindhoven (NL). Abstract In this paper we study different algorithms designed for the fast 2-D DCT transform, both from a HW and sw perspective. We have investigated implementations of the 2-D DCT based on the one-dimensional DCT employing a row-column decomposition, and direct 2-D DCT transformation techniques. Considering the implementation of the 2-D FDCT, we discuss not only comparisons between the number of additions and multiplications of the different algorithms, but also other important aspects such as the number of used registers and the algorithm parallelism. A multiplication-free transform has been evaluated resulting in a decreased IC complexity and giving considerably smaller CPU execution time, which is suitable for low-cost systems giving sufficiently high quality. Keywords: DCT, FDCT, transform, fast algorithm, video compression, coding 1. Introduetion The paradigm in implementation of video compression systems is shifting from hardware (HW) to software (SW). Examples of this trend are the emerging implementations of video conferencing (H.320) and MPEG on Pentium-based PCs. However, the computation power applied for a full SW realization of compression systems is stilllimited, when other functions have to be active simultaneously. A good example is formed by the H.320 videoconferencing standard which combines video compression (H.263) with audio coding and system data multiplexing. In this type of systems, where video coding forms the most complex component, the focus is on reducing the computational complexity of the SW implementation by adopting a mixed form of hardware and software. In our study, we concentrate both on hardware reduction and software efficiency. Most of the compression standards presently used employ transform coding. A commonly applied transform is the DCT, which has proven to be very suitable for local decorrelation of video signals. The DCT computations can be performed with fast algorithms which require fewer operations than a straightforward implementation of the definition. Various implementations of fast DCT (FDCT) algorithms have been developed during the past decade. These fast algorithms are preferable for both hardware and software implementation, because they allow parallel computation with reduced computational complexity, so that they can be mapped easily on a parallel processing architecture. In our study, we have focused on a low-cost compression system based on intraframe coding for applications embedded in larger systems. Particularly in this paper, we concentrate on the implementation of the DCT and its inverse (IDCT), using small blocks of 4x4 samples. 33 The forward 2-D DCT of an N x N block of pixels is defined by: Y( u, V ) _ - 4 C(u) C(v) 2 N-1N-l ~ ~ ~ ~ X (") I, J cos (2i +2N1 )U1t) cos (2j +2N1 )V1t) N .. I=OJ=O where C(O) = uJi and C(W) = 1,forW= I, 2, ..., N-l. For the case of 4x4 blocks, the DCT transformation is given by the above-mentioned formula with N = 4. The DCT forms the basis for all popular image and video compression standards, be- cause it satisfies the three criteria listed below. " The transformed image data is efficiently decorrelated. - The basis functions are image independent. - Many fast implementations of the DCT have been developed, which reduce the com- putational complexity substantially. Different considerations apply for the hardware and software implementation of the algo- rithms. In the remainder of the paper, we will focus therefore upon the hardware and soft- ware implementations independently. Section 2 introduces several fast algorithms for computing the DCT with high efficiency. Section 3 proposes a low-cost fast algorithm with- out multiplications, whereas Section 4 concentrates upon the inverse DCT executed in SW. In Section 5, the various techniques are compared with respect to different criteria. 2. Fast nCT algorithms (FDCT) An initial disadvantage of the DCT is its large computational complexity compared with other transforms, such as the Walsh-Hadamard transform. Fortunately, the DCT is separa- ble, so that a multidimensional DCT can be performed by subsequently applying the I-D DCT along each dimension. For the 2-D DCT (and mCT), this property leads to first trans- forming the rows of a block and the columns thereafter (row-column decomposition), thereby saving considerable hardware. However, even when using this technique, we need to reduce the complexity of the I-D DCT further, if we require both real-time computation of the DCT and very low system costs (e.g. small chip area or very fast SW execution). The criteria discussed in this paper for evaluating the different fast DCT algorithms are: - reduced number of multipliers; - regularity and modularity in the computational structure; - reduced number of registers needed for the storage of the partial results. The I-D FDCT with the smallest number of multipliers was proposed by Lee [1] and its computational diagram is depicted in Figure 1a. In the diagram, the intersection of two solid lines represents an addition, whereas the crossing of a solid line with a dashed line denotes a substraction. A cosine coefficient indicated close to a branch stands for a multiplication. Another popular algorithm, introduced by Chen [2] (see Figure 1b), results in an increased number of multiplications. However, it is emphasized that the computational complexity is not the only criterion for the choice of the transform. The accuracy of the computed coeffi- cients, the number of registers required for the partial results and the additional overhead for 34 address calculation are also important issues. These topics are addressed in more detail in Section 5. xlG] uot xlG] ao) 11(2cJ) xlI] zl2] xlI] z[2] 11(2d) xl2] z[3] xl2] z[1] xl3] z[1] x[3] z[3] C{=cOS(jrclk) (a) """ Figure 1. Flowgraph ofthe l-D fast DCT proposed by (a) Lee and (b) Chen. For the fast computation of the 2-D FDCT, the row-column technique requires eight l-D DCTs for the computation of the 4x4 DCT. In order to increase the computational efficiency and reduce the hardware requirements involved in a parallel implementation, algorithms working directlyon a 2-D data set have been introduced. A very efficient 2-D DCT algo- rithm was proposed by Cho & Lee [3] [4] (see Figure 2). The major advantages of the Cho implementation are an increased modularity and also regularity, which form important crite- ria for an efficient hardware implementation. The modularity in the Cho algorithm is made explicit by the property that only two 4-point l-D FDCTs, combined with a multiplexer and a demultiplexer unit, are required for the realization of the complete 4x4 2-D transform. In this way, the number of multiplications and registers are reduced with 50% and the l-D FDCT need not to run at twice the speed, because the same transformers can be reused at different computational stages. Based on this observation, we can conclude that the Cho al- gorithm forms an attractive alternative for the hardware implementation of the 2-D FDCT. The computational complexity of the different transforms expressed in terms of the number of required additions and multiplications needed for the 2-D FDCT of block size 4x4 are given in Table 1 (in the table, the number of multiplications and additions for the 2-D FDCT algorithm was computed by adopting the l-D FDCT with the smallest number of multipli- cations). Despite of the reduced number of multipliers and the modularity present in the Cho algorithm, the implementation requires a more complicated data access scheme, com- putational structure and number of registers than the simple row-column implementation. Consequently, in order to define the best candidate for the hardware implementation of the FDCT, the Cho algorithm should be compared with the two l-D row-column approaches described earlier (e.g. Chen and Lee). The Cho transform implemented with the l-D FDCT proposed by Chen requires 24 mul- tiplications for a 4x4 block, which is only half of the multiplications needed for the row-col- umn approach. However, the Chen algorithm requires less registers for the storage of the partial results than the Cho algorithm, less additions and the implementation of the algo- rithm is easier, because the same elementary component (the l-D DCT) is used 8 times. Therefore, a trade-off should be made between a low operations count using more registers and advanced control (Cho scheme), and a simplified flow of computations (the row-column 35 approach). Initially, the best choice for hardware implementation is not obvious.The accura- cy ofthe two compression schemes is presented in Section 5. Xoo ---{------l---~--_r--_.----~~------------ Yoo cl == 236 = 256-16-4 c2 = 256*cos(21t18) => c2 == 184 = 128+64-8 c3 = 256*cos(31t18) => c3 == 98 = 128-32+2 Thus, the scaled DCT and mCT matrices are: 256 256 256 256J 256 256 256 2561 DCT = 236 98 -98 -236 IDCT = 237 98 -98 -237 [ 184 -184 -184 184 [ 178 -178 -178 178 98 -236 236 -98 98 -237 237 -98 Subsequently, all the transformed data are normalized (divided) by 256x2, which reduces to a shift operation, and rounding preserves the best representation of the transform coeffi- cients. The resolution of the DC coefficients has been limited to 9 bits and the AC coeffi- cients have been represented with 8 bits (excl. sign). 36 The coefficients of the IDCT cannot be represented only by sums of powers of 2. This implies that, depending on the architectural requirements, a system can be designed where either the encoder or the decoder has an increased complexity in the coefficient multiplica- tion. For the software implementation, even if the CPU-time required for performing a mul- tiplication exceeds that of the additions, the necessity of implementing multiplication-free transforms is less evident. However, an experiment showed that if integer arithmetic was used in place of floating-point arithmetic, the CPU-time required for the computation of the IDCT decreased from 58 ms for the real-time implementation of the Cho algorithm to 31 ms. Analysis and measurements have provided evidence that usually the IDCT computa- tions require almost 50% of the CPU-time required for software decoding, thereby implying that a decoding scheme based on integer arithmetic results in a tremendous increase in de- compression speed. It is mentioned here that the IDCT in the decoder should not necessarily be based on the same algorithm as applied in the encoder. For example, if the encoder needs to be optimized for hardware realization, while the decoder should be implemented in software, two differ- ent algorithms can be chosen. This implies that also 2-D algorithms or alternative approach- es can be considered for the implementation of the mCT. 4. Alternative for the IDCT implementation A possible implementation of the rDCT inverts the flowgraphs of the Chen and Cho trans- forms presented in Section 2. The Cho algorithm is more adequate for a software implemen- tation, due to its lower amount of multiplications and additions. However, the difference in performance between the two algorithms is not considerable, because of the extra amount of registers (local memory) which are required for the Cho implementation. In order to substantially reduce the amount of computations in the IDCT algorithm, we should consider the sparse nature of the rDCT input. For example, filtering out the blocks containing only a DC coefficient decreases already the CPU time considerably. Also in the case of a few non-zero coefficients, different algorithms can be applied that exploit the sparseness of the IDeT input. However, these algorithms should not necessarily be efficient if most of the IDCT input values are non-zero. One algorithm exploiting the sparse nature of the IDCT input, calculates for each non- zero coefficient its distribution over the complete image data block, while assuming that the other coefficients are zero. For example, reading Figure] b from right to left for the IDCT, the coefficient z[2} gives via the upper two branches with cosine term c2 contributions to all samples x[O} through x[3]. Finally, the accumulation of the contributions of all the non- zero coefficients results in the total IDCT calculation. This algorithm can be performed very fast by replacing the multiplications by look-up tables, which contain the multiplication of the frequency-domain coefficients with the cross-products between cos(7tl8), cos(21t18) and cos(37t18). However, the implicit multiplication by look-up tables should not necessarily re- sult in a faster execution of the implementation, because the tables can become very large, leading to an increased access time. We have found that the number of operations required for the calculation of the IDCT us- ing the contributions of the non-zero coefficients is larger than the operations count of a complete fast IDCT when more than 6 non-zero coefficients occur in the block. This is ex- plained by the fact that a complete DCT reuses its intermediate results for the computation 37 of other samples. Hence, if the reuse is sufficiently large, carrying out a complete transform is more efficient. From the previous discussion it can be deduced that anadaptive selection of algorithms may be the best solution for an efficient SW-based IDCT. However, in our experiments most of the blocks contain less than 6 non-zero coefficients and the conditional statements re- quired for adaptive selection decrease the decoding speed, so that we concluded that calcu- lating the IDCT by the contribution of its non-zero coefficients is the best implementation. 5. Comparison and discussion Computational requirements. In Table 1, the computational requirements for the various FDCT schemes are presented. As can be seen, the multiplication-free algorithm is optimal with respect to the number of multiplications, stages and registers. Only the number of addi- tions is considerably larger than of other schemes. However, add operations can be easily mapped in HW and the CPU-time required for add implementations in SW is considerably lower than that needed for multiplications and the storage of partial results in registers. Table 1. Computational requirements for various implementations of FDCT. Numberof Number of Numberof Number of Algorithm additions multiplications stages registers Lee 72 32 6 56 Chen 64 48 4 48 Cho&Lee C2-D) 74 16 5 56 Multiplicat.-free 160 0 4 48 Accuracy. The transformed coefficients computed with the Lee algorithm are less accurate than those obtained with the Chen transform, due to the subsequent multiplications in the same branch of the butterfly drawn in Figure la. This property results in an increased prop- agation and accumulation of rounding/truncation errors. Other advantages of the Chen algo- rithm are its regularity and the decreased number of registers for the storage of partial results. Figure 2 illustrates that tbe 2-D FDCT algorithm of Cho applies four l-D FDeT's in its implementation. However, the algorithm does not specify which I-D FDCT should be used, giving an extra degree of freedom for the algorithm implementation. If the I-D FDCT of Chen is used, then the Cho algorithm results in a higher accuracy of the transformed coeffi- cients than the accuracy obtained by applying first the Chen l-D FDCT upon the rows and subsequently upon the columns. This is explained by the two main stages in computation in the row-column decomposition approach, in which the second stage (e.g. column trans- form) cumulates the errors of the first computation (rows) and its own errors. This numeri- cal analysis was also verified by applying the two transforms upon different video frames: in all situations, the frames transformed forward and backward with the Cho algorithm re- semble the original better than those computed using the Chen transform (experiments con- ducted with I I-bit AC coefficients incl. sign). 38 In order to compare the accuracy of the different FDCT implementations, we have ap- plied forward and backward transforms on a set of images for various DCT algorithms. No quantization was applied and thus, the loss in quality is determined entirely by the accuracy of the FDCT scheme. Table 2 portrays the difference between the original and the recon- structed image after forward and inverse transformation, expressed in SNR for both lumi- nance (Y) and chrorninance CU and V) signals. The results support the conclusion that the Cho transform is closest to the original image, while the image transformed by Lee's algo- rithm results in the worst SNR, due to the consecutive multiplications within algorithm branches (see Figure la). Evidently, the multiplication-free DCT performs even 4-5 dB worse, but this poor SNR cannot be compared seriously, since the resolution between DCT and mCT is only 9 bits (low-cost optimization), whereas the other algorithms apply ll-bit coefficients after transformation. Additionally, the multiplication-free DCT is also a factor simpler in its implementation (an I I-bit comparison was not available at the time of writing the paper). Table 2. SNR Y / SNR U / SNR V obtained for various implementations of FDCT. Algorithm Multiplication- Lee Chen Cho-Lee (2-D) Image free 51.9 53.0 53.8 47.3 computer 55.4 55.4 55.5 50.3 55.5 55.5 55.7 48.8 49.9 51.3 51.9 47.4 talk 53.9 54.1 55.4 50.7 54.1 54.4 55.8 48.9 50.9 52.1 52.9 49.9 logo 54.8 55.2 56.7 52.5 55.0 55.7 56.8 50.3 An alternative technique to compare the accuracy of the various implementations is to de- termine the absolute error between the transform coefficients obtained applying the defini- tion of the DCT and those computed with the different FDCT schemes. The cumulation errors in each frequency component were evaluated by adding the errors obtained using the 16 basis-functions with amplitude 255 as signal input. The results for Lee and Cho schemes are plotted in Figure 3a and 3b, respectively. (a) Lee Errors 3 r-r- 2 r- r-r- r-e- r-r-r-t- -r- r- l- r- I- DCI2345678 Figure 3. Cumulated errors in the frequency components for Lee and Cho FDCT. 39 Decorrelation. As mentioned in the introduction, a good transform yields highly dec orre- lated image data. All the previously mentioned implementations result in an efficient com- paction of the coefficients: almost lOof the 16 coefficients are equal to zero. However, if the multiplication- free implementation of the FDCT is used, the number of zero coefficients re- duces to 8. Again, the difference in resolution should be taken into account. 6. Conclusions We have evaluated the algorithms of Chen, Lee, and Cho to enable fast DCT (FDCT) realizations for both hardware and software implementation. These fast algorithms allow parallel computation with reduced computational complexity, so that they can be mapped easily on a parallel processing architecture. For a parallel hardware implementation of a fast DCT algorithm, reduction of the number and size of the multipliers is a focus point. For this reason, we have introduced a multiplication-free I-D FDCT, using only add and shift operations in the signal flow graph. It is concluded that this algorithm yields a reduced hardware complexity, at the expense of decreased decorrelation capabilities. Since the complexity ofthe multiplication-free DCT is much lower (hardware and software) than that of the alternatives, is a suitable choice when low system cost and/or moderate quality are key parameters. We have concluded that the efficiency of the software implementation is less critical with respect to the usage of multiplications. Instead, we have found that other parameters are relevant for a software implementation of the 2-D DCT. We have proposed a fast inverse DCT algorithm that can be obtained by the accumulating the individual contributions of non- zero coefficients to the reconstructed sample block. In addition, multipliers can be circumvented by applying look-up tables. This solution is attractive when the average number of non-zero coefficients is small, which appears in moderate quality applications. 7. References [1] B. G. Lee, "A New Algorithm to Compute the Discrete Cosine Transform", IEEE Trans. Audio Speech Sign. Proc., Vol. ASSP-32, No. 6, 1984, pp. 1243 - 1245. [2] W. H. Chen, C. H. Smith and C. Fralick, "A Fast Computational Algorithm for the Dis- crete Cosinus Transform", IEEE Trans. Communications, Vol. COM - 25, No. 9,1977, pp. 1004 - 1009. [3] N. 1. Cho and S. U. Lee, "A fast 4 x 4 DCT Algorithm for the Recursive 2-D DCT", IEEE Trans. Signal Processing, Vol. 40, No. 9,1992, pp. 2166 - 2173. [4] N. I. Cho and S. U. Lee, "Fast algorithm and implementation of2-D DCT", IEEE Trans. Circuits and Systems, Vol. 38, No. 3, 1991, pp. 297 - 305. 40 Feedback Coded Modulation M.S. Bargh and J.P.M. Schalkwijk * Abstract The low rate noiseless feedback strategies [2J are extended to the additive white Gaussian noise (AWGN) channels. A new bandwidth efficient modula- tion method, called feedback coded modulation (FCM), is introduced. Consider an AWGN channel where each transmitted waveform is from an N-dimensional signal constellation. Further assume that one is allowed one binary noiseless feedback transmission per dimension. In each dirnension, one binary repetition feedback coding (BRFC) scheme [3J differentiates between two congruent sets of coordinates. Thus, N-parallel BRFC schemes specify one out of 2N possible partitions of the constellation and the signal point within each partition is trans- mitted without coding. It is shown that in this way we can achieve about 6 dB improvement in the signal to noise ratio (SNR). In FCM the decoding cornplexity is considerably reduced as compared with that of the trellis coded modulation (TCM) with a similar performance. Given the same SNR in both directions, then with a number of signal points per dimension of the forward constellation larger than 6, the feedback channel can essentially be considered errorless. 1 Introduetion FCM, a new approach to bandwidth efficient modulation, is based on the BRFC scheme. Similar to TCM, FCM uses the set partitioning technique and, consequently, there is no necessity for protecting the signal points inside each partition. On the other hand, FCM is similar to the conventional modulation in the sense that there is no constellation expansion and adding redundancy is accomplished by executing more transmissions. However, due to set partitioning and operating the BRFC scheme at the rates close to the capacity of its corresponding binary symmetrical channel (BSC), the amount of redundancy needed and therefore the rate loss, is very small in FCM as compared to conventional modulation. In conventional modulation the coding and the modulation are done separately. To start, we define an N-dimensional signal constellation. Let SN = (SI, , SN) be a signal point from N-dimensional signal constellation n. Coordinate Si, i : 1, ,N is a random variable, denoted by Si, which is assumed to have a value from the alphabet set of: (L even) (1) where the outcomes are equiprobable and d is the minimum distance between signal points along each dimension. Since the signal space is assumed to be orthogonal, d is also the minimum distance of signal points in the N-dimensional signal space. "Eindhoven University of Technology, Department of Electrical Engineering, Group on Information and Communication Theory, PO Box 513, 5600 MB Eindhoven, The Netherlands. 41 alb cf d c C I I u'~ "'$' '@""~" - -é- - 4>- -0 - + b a 'G"!]>" U neoded bits - -é- - e- -~- -Er b d d Figure 1: The block diagram of the FCM with a 2-dimensional 16-point signaling. • 0 • -~ d 0 0 0 0 0 0 • 2d 0 • 0 0 0 0 0 0 0 0 • 0 • 0 0 0 0 0 0 • 0 • • 0 • 0 0 0 0 0 0 • 0 • 0 0 0 0 0 0 0 0 • 0 • 0 0 0 0 0 0 • 0 • a-c a-d b-c b-d Figure 2: Set partitioning of the example of 2-dimensional 16-point signaling. 2 Coding of the FCM We explain the encoding and decoding of this scheme by using a 16 point 2-dimensional constellation. In Figure 1 the schematic diagram of the system is depicted where one BRFC is used for each dimension, The output bit of the first BRFC scheme, repre- sented by afb, chooses every other row of the constellation and the output bit of the second BRFC scheme, denoted by cf d; chooses every other column of the constella- tion. Therefore, two alb and cl d bits determine one of the a - c, a - d, b - c and b - d partitions, see Figure 2. The reuiaiuing two uncodcd bits choose one signal point from the selected partition. Here alb and cfd bits are called as the state bits of each transmission, therefore, each partition corresponds to one state. In general, the encoding in the case of an N-dimensional signaling, as defined in the previous section, is accomplished by using one BRFC for each dimension. In each dimension, the corresponding BRFC or state bit differentiates between two congruent sets 0 f coor n'mates, Lê. . b etween B 0 -- {d2' -1.' 3d , , " (l)k_ - ICL-I)d} 2 2 an d BI = {-~, ¥",., (-l)t CL-;lld} coordinates. The uncoded bits are used to choose the remaining coordinates of the N-dimensional signaL At the receiver, the state of the re- ceived signal in each dimension is determined by simple hard decision operations (here 42 being a or b, and c or d). The received state bits are fed back via a noiseless delayless feedback channel to the transmitter in order to be used in their corresponding BRFC encoders. In the example of Figure 1, for each block of n transmissions, the received signal coordinates are stored in two buffers. Then the decoding is carried out in two steps. First, the decoding of the BRFC of each dimension is performed on the corresponding state bit by using either the block decoding method [3]or the recursive decoding method [4]of the BRFC. After decoding of the BRFC schemes, we have the part of information associated with the state bits and we also know the state of each transmission, i.e. the transmitted state bits. The latter one enables us to know the transmitted partition, provided that there is no state decoding error, see section 5. Secondly, given a partition, we find the closest signal point of the partition to the received point as the most likely estimation of the transmitted signal. Given a correct state at the receiver, from Figure 2 it is clear that the minimum distance between signal points in a partition is twice the minimum signal distance in the original constellation, i.e. D fed = 2d. Therefore, for a same error performance, the minimum signal distance in the coded system can be taken half of that in the uncoded system. Since the average signal energy is proportional to the square of the minimum distance, FCM saves by a factor 4 in energy (or 6 dB). This 6 dB improvement also holds for a general N-dimensional constellation, see [1]. 3 Receiver buffer Here we present a technique for storing the received block of signal points until the decoding of the BRFC schemes. Due to the AWGN channel, the received signal is a continuous quantity (soft information). However, in this new scheme we do not need to store with a high precision a block of soft information quantities in order to wait for the decoding the BRFC schemes. Only we need to store the following information for a received signal point in the corresponding buffer of the i-th dimension i = 1, ... , N. 1. Bit a/b is used to store the state of the z-th coordinate of the TP,c:eived signal. As shown in the upper part of Figure 3, a and b indicate that the received coordinate is either in the decision region of the BD coordinates or in the decision region of the BI coordinates, respectively. Note that the left most signal point is from the set of BD coordinates. 2. Every two equal amplitude coordinates are grouped together and are indicated by index number j = 0, ... ,~. Since L is an even number, these two coordinates are from two different states. We can say that in every dimension the uncoded information chooses a specific amplitude (or index) and the state bit chooses the corresponding sign. Note that the left most coordinate is from state a. 3. One extra +/ - bit is used to store the position of the received signal coordinate in the upper or lower part of the corresponding decision region of a or b. In the lower part of Figure 3 the decision regions of +(- bit are indicated. As we see, the interval of length d, centered at a coordinate, is divided into two parts. The half with bigger absolute value is assigned + and the other part is assigned -. 43 o ... / I • I " ·r-'---i;3-+---__ --l---B--+~f__'_1~-I-- .... --l-r I 0 I,' I I I I j 2 1 o o 1 2 Ij .':.1' ~ j ,~./ '~r-=-'~l-=-'~l-=-I-=-l~'-=-r~'-=-l~' 2 100 ,t .." ~ 1 2 j > . CJ decision region for a ~ dec~s~onreg~onfor + l1li decision region for b Ll decision region for - Figure 3: The decision regions for each dimension of the received signal. These three points indicate that we have to store L log(2) + 1 + 1 = log(L) + 1 bits per signal per dimension. (2) From this we can see that it is enough to store one bit per dimension per signal more than the hard decision case where log(L) bits per dimension are needed. This is the only price of the new scheme for soft informatiou. After detecting an state error by the BRFC decoding and modifying the state bit accordingly, the +/ - bit is used to modify the index of the received coordinate to the correct index. In this case, index j is modified to j + 1 or j - 1 if +/ - bit is + or -, respectively. At the time of a state error, this mapping rule gives the most likely neighbor coordinate from the correct state. 4 BSC of the state bit In every dimension we use one BRFC scheme to differentiate between every other coordinate, i.e. between Ba and BI coordinates. The corresponding channel for the state bit is a BSC with cross over probability of (3) in which (J2 = !f- is the variance of the Gaussian noise in each dimension. Function QC x) = k Jx 2 oo e- Y dy represents the Guassian error integral and Nlree,i is the average 44 number of nearest neighbor coordinates (per dimension). Each middle coordinate has two neighbors and the ones at the ends have one neighbor. Since the coordinates are equiprobable, N . _ 2(L - 2) + 2 _ L - 1 [r ee, - L - 2 L . For a 64 point 2-dimensional constellation (8 x 8), at SNRA = 27.2 dB the uncoded 64 point constellation has signal error probability of 10-6. If we want to have an improvement of 6 dB in our coding scheme, then the coded system has to work at point B for which SNRB = 27.2 - 6 = 2l.2 dB. This SNR corresponds to 0.914 bits capacity in the BSC of each state bit. Therefore, every state bit carries less than one information bit. 5 Performance of the FCM In the FCM system of Figure 1 there are three sources of error that affect the total performance of the coding process. 5.1 Signal error probability This is the probability that, in a given partition, a transmitted signal point is received in the decision region of another signal point. Similar to 3, the signal error probability in a partition of n can be upperbounded by the union bound of (4) in which NfTee,? is the average number of nearest neighbors in each partition of n. It can be written as: 2(1,-2)+2 L-2 NfTee,? = N 2 1, = 2N-y;-. 2 This bound is tight in our range of interest. For example, consider a 2-dimem;ional FCM scheme with a 64-point signal constellation (8 x 8). For different values of the repetition parameter of the BRFC, the signal error probabilities in each partition are depicted in Figure 4 together with the signal error probability of the uncoded constellation. In order to compare the results fairly, the SNRs are normalized according to the Shannon rate for the different repetition parameters of the BRFC schemes. 5.2 Error of the noisy feedback channel Until now we have assumed the feedback channel to be noiseless. In this section we assume that the SNRs in the forward channel and in the backward channel are equal, i.e. SNR = SNRfb. (5) Therefore, we have to take into account the error produced by the noise of the feedback channel. Our approach is to make this noisy feedback channel perform like a noiseless channel. This has been done by reducing the amount of backward information and 45 k=4 -2 k=5 - k=6 - Uncoded - -3 -6 The exponent of -4 Psig,c -5 -6 -7 L_ ~ _Lu_~ __ _J L_ ~ o 2 4 6 8 10 SNR" Figure 4: The symbol error probability of the FCM spending the same amount of signal energy as in the forward direction on this amount of backward information. In the FCM scheme we need to feed back one bit information per dimension via the noisy feedback channel. Therefore, in the signal constellation of the feedback channel there are two signal points per dimension or 2N signal points in N dimensions. If dfb is the distance between two signal coordinates in the constellation of the feedback channel, then equation 5 means that or Note that due to the symmetry of the dimensions, the total SNR (in N dimensions) is equal to the SNR of the i-th dimension. If the 6 dB improved coded system works at signal error probability 10-6, by choosing dfb about 3d, the symbol error probability in the feedback channel will be in the order of lO-H This amount of error probability in the feedback link is so small that it practically enables us to consider the feedback channel noiseless. Thus, the criterion for this assumption is or L?_ 6. (6) 5.3 Decoding error of the BRFC We can speak about the signal error probability in the first subsection, as long as the partition of the transmitted signal is decoded correctly at the receiver. In other words, the BRFC scheme of each dimension has to be decoded correctly. In this section 46 the decoding error probability of the feedback schemes is evaluated for block decoding algorithm of the BRFC, for the recursive decoding see [IJ. In this scheme we receive the entire block of n symbols, similar to the scheme described in [2J. The block overflow probability of the block decoding of the BRFC is the probability that the number of state errors in any dimension exceeds the number of errors that can be corrected by the tail of the BRFC block. This overflow probability is denoted by P;: and it is upperbounded by: pon < NP~i' where P;:i is the block overflow probability of the i-th dimension. The whole block error probability of the scheme can be written as pn p:(pn!P:) + p:(pnIP:) P;: + ponP;;g < pon + Ps~g' (7) Here P;;g is the block error probability caused by the signal error and that is: where Psig,c is defined in 4 and we are interested to maintain it at 10-6. Note that in 7 the error of the noisy feedback channel is ignored conform to the argument of section 5.2. To make Psig,c dominant in 7, we increase the tails of the BRFC schemes in the block of the transmitted signals from I r pn l to xn l such that P':51.9 = 10pn0 < - 10 x 2 x TnXp(X) , where Xp(x) is the binary information divergence, see [3], and p is the cross-over probability of the BSC of the state bit in each dimension, defined as 3 and related to Psig,c via 4. For the example of 64-point 2-dimensional constellation, if Psig,c = 10-6, then p = 0.011. The SNR loss due to increasing the tail of BRFC schemes is plotted in Figure 5 for k = 6, the optimum repetition value at Psig,c = 10-6 according to Figure 4. As we see, for a large block length, the effect of this loss is negligible. Note that increasing the block length in the block decoding of the BRFC does not increase the complexity of the decoding, and only the length of the buffers increases. As indicated in Figure 5 for 0.1 dB loss, the length of the buffers should be 6650. 6 Complexity comparison With an example, we compare the amount of hardware needed for the TCM with that of the FCM. Consider a 2-dimensional signaling scheme for which the original constellation contains 64 signal points. If we apply a three level TCM with a 128 state trellis code to obtain about 6 dB coding gain, we need: a 3364 byte memory and a memory for 136 soft values; for every signal: 128 metric updatings, 128 Euclidian distance calculations, 512 additions and 631 comparisons of soft information plus back tracing for 35 branches. 47 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 n Figure 5: The SNR loss due to increasing the block length in the block decoding of the BRFC. Here we do not claim that these figures are the requirements of an optimum TCM decoder, however, we can say that they present a good estimation of those major re- quirements. On the other hand, if the FCM scheme is applied to the same constellation and from Figure 5 if we choose n = 6650 (for the recursive decoding the length of buffer is 129, see [1]), then we need: + a 6650 byte memory in the block decoding or a 129 byte memory in the recursive decoding; + for every signal: 2 pattern searches in the block decoding or 2 random walks in the recursive decoding, and 2 index modifications per 90 signals (same in both methods). From above figures, the decoding simplicity of the FCM scheme (or the decoding corn- plexity of the TCM) is evident. References [1] M. Shoae Bargh. Low rate noiseless feedback coding strategies. Technical report, Eindhoven University of technology, February 1997. [2] J. P. M. Schalkwijk and M. S. Bargh. Coding for channels with low rate noiseless feedback. In Seventeenth Symposium on Information Theory in the Benelux, pages 121-127, May 1996. [3] J. Pieter M. Schalkwijk. A class of simple and optimal strategies for block coding on the binary symmetric channel with noiseless feedback. IEEE Transactions on Information Theory, 17(3):283-287, May 1971. [1] J.P.M. Schalkwijk. Binary recursive feedback strategies. In 1973 IEEE Interna- tional Symposium on Information Theory, June 1973. 48 Variable-rate codes for multiple localized burst error correction Gerardus H. Bratatjandra and Jos H. Weber' Abstract-In this paper, new construction methods for codes correcting multiple localized burst errors are proposed. First, a new fixed-rate method is presented, which combines the properties of having a high code rate and allowing the correction of long bursts. Next, a variable-rate method is presented, which is based on the new fixed-rate method and enables more flexible and reliable communication, while still keeping the encoding and decoding complexity low. I. Introduetion In the concept of channels with localized errors, it is assumed that the encoder knows the possible error locations but not the error values. while the decoder has no a priori information about neither error locations nor error values. This concept has been introduced by Bassalygo, Gelfand, and Pinsker [1]. Important results in this research field have been presented by the same authors [2], by Ahlswede, Bassalygo, and Pinsker [3], by Larsson [4]. and by Mardjuadi and Weber [5]. The main goal of this paper, which is based on the first author's M.Sc. work [6], is to propose a construction method for codes for multiple localized burst error correction with variable rate. The codes obtained by this method have the ability to correct different numbers of localized errors and to take advantage in code rate when the number of localized errors is small. This means that these codes improve upon the known fixed-rate codes in flexibility and reliability. This paper is organised as follows. First. the concept of localized (burst) errors is introduced in Section Il. Then. a new construction method for codes with fixed rate is given in Section Ill. This method is the foundation for the construction method for variable-rate codes. which is presented in Section N. The performance of this method is evaluated in Section V, by showing some comparisons between the variable-rate codes and the fixed-rate codes. Finally. conclusions are drawn in Section VI. n. Localized Errors We will mainly use the same notations as in [4]. The problem consists of transmitting messages from a message set M over a q-ary channel. For this purpose, we consider block codes of length n over the alphabet Q = {O,l ....,q-l }. The components of a vector x of length n are numbered from 1 to n: X=(XI,X2, ... ,xn). Let E be a subset of {1.2 .... ,n}. The set E is the set of positions where errors may occur during transmission over the channel and it is known a priori to the encoder but not to the decoder. It is assumed that no errors will occur outside the set E. The set E is often called the configuration of unreliable positions. Denote by e(E) a possible error vector for a certain set E and by e;(E) the ith component of e(E). The encoder does not know the error values but it knows that there will be no errors . The authors are with Delft University of Technology, Department of Electrical Engineering. Telecommunications and Traffic-Control Systems Group, p.a. Box 5031, 2600 GA Delft, The Netherlands, e-mail J.H.Weber@ET. TUDelft.NL. 49 in the positions outside E. In other words, the encoder knows that elE) = 0 for i fiÖ E. The set of unreliable positions may change from one block to another. The encoding functionfis a mapping f: M x E ~ Qn, (1) i.e., the output from the encoder, f(m, E), depends both on the message m E M and on the set E of unreliable positions. The output of the channel will be the component-wise addition modulo q oî ftm, E) and e(E), denotedf(m, E) EBe(E). The decoder function g is a mapping g : Qn ~ M U {*}, (2) where * is a special symbol used to indicate that the decoder could not make a proper decision. It must hold that g(j(m, E) EB e(E» = m (3) for every message m, every configuration E which is in the correctable class, and any error vector e(E) with zeros in the positions outside E. In the case of multiple localized burst errors, which is the topic of this paper, the set E consists of the union of a number of sets of consecutive positions (bursts). For a fixed-rate scheme, the number of bursts m and the burst length b are fixed. Both parameters are known a priori to both the encoder and the decoder. For a variable-rate scheme, the number of bursts m can change from codeword to codeword and the burst lengths bi (i=I,2, ...,m) can change from burst to burst. These parameters are known a priori only to the encoder (not to the decoder). They satisfy Osms m* and 1SbiSb*, where m* and b* are constant for the coding system and are known a priori to both the encoder and the decoder. Ill. Fixed-Rate Codes Several coding methods for multiple localized burst error correction have been proposed in literature. Larsson [4] has presented a construction method in which 2m+l fixed-length sub-blocks are used, separated as much as possible in a block of length n. In each of the first m+ I error-free sub-blocks the encoder transmits a message identifying the current set E, in order to inform the decoder on the unreliable positions. By reading the content of the 2m+ I sub-blocks, the receiver obtains the locations of the m possible bursts through a majority decision. Although these codes are asymptotically optimal, they suffer from a low code rate for finite length codes, since the information on the unreliable positions is transmitted m+1 times. Mardjuadi and Weber [5] have presented a method in which this information is sent only once (together with some small extra overhead). Hence, this method leads to codes with a higher code rate than the Larsson codes. However, the maximum correctable burst length b is much smaller than for the Larsson method. Here, we present a new method, which combines the advantages of the Larsson method (i.e., a large maximum correctable burst length) and the Mardjuadi-Weber method (i.e., a high code rate). The main idea in this method is to use 2m+l sub-blocks Di (i = 1, 2,..., 2m+ I), separated as much as possible in a block (codeword) of length n, where each of the sub-block Di is partitioned into two pruts: a first part of p positions (the "P-part") and a second of a positions (the "A-part"). Some (parts) of these sub-blocks will be used to transmit the information on the unreliable positions to the receiver in the following way.This information itself will be stored in the A-part of one error-free sub-block Di with i odd. Further, m+ I error-free P-parts will each contain a pointer to the A-part in use for this purpose. By reading the contents of the P-parts of all 2m+ 1 sub-blocks Di, the receiver 50 obtains the knowledge on the A-part in use through a majority decision. By reading the contents of this A-part the receiver obtains the locations of the bursts. The complete encoding and decoding procedures are given below. Encoding procedure: 1. Put information on the unreliable positions E into the A-part of the first error-free sub- block Di with i odd; 2. Put a pointer to this A-part into the first m+ 1 error-free P-parts; 3. Fill the unreliable positions corresponding to E at random; 4. Put data into the remaining n-a-int+ 1)p-mb positions. Decoding procedure: 1. Read the P-part of each of the 2m+ 1 sub-blocks Di; take a majority decision to find the pointer to the A-part with the information on E; 2. Read the information on E from the indicated A-part; 3. Neglect • the A-part in which the information on E was stored; • the m+ 1 P-parts where the pointers were stored; • the m bursts of length beach; 4. Read the data from the remaining n-a-im+ï ïp-mb positions. To be able to point to any of the m+ 1 sub-blocks Di with i is odd, the length of a P-part should be P=11ogq(m+l)l (4) The identification of E can be done by only informing the receiver on the starting positions of the m bursts, since m and b are fixed. The number of configurations T(n,m,b) of precisely m disjoint blocks of b adjacent positions in a block of length n reads T(n,m,b)=(n-:~+m} (5) so the leng th uf an A-part should be chosen: a=rlogq T(n,m,b)l (6) In order to guarantee the existence of at least m+ 1 sub-blocks Di with an error-free P-part, the burst length b must be less than or equal to the maximal correctable burst length brnax: b 5, b max =lI n-2mp-2m p-aJ + 1. (7) The size of the codes is equal to qn-mb-(m+l)p-a, (8) so the code rate R is n-mb-mp- p-a R = ---'---'--- (9) n In Figures 1 and 2, we give examples of the code rate and the maximum correctable burst length for the proposed method, the Larsson method, and the Mardjuadi-Weber method. These examples illustrate that the proposed method indeed performs well, both with regard to the code rate and with regard to the maximum correctable burst length. 51 n=5oo, q=S and m=3 0.95 R 0.65 0 ;::Mardjuadi-Weber code 0.6 + = proposed code 0.55 • = Larsson code 0.5L----~---~---~-----J 1 20 25 30 bursllenglh b Fig. 1. Code rate R as a function of the burst length b for n=500, q=3 and m=3. q=3, m=3 and b=25 180r--~--~-~--~--~-~ 160 0;::Mardjuadi-Weber code + = proposed code 140 • = Larsson code 120 Umax 100 700 800 900 100 code length n Fig. 2. Maximal correctable burst length bmax as a function of the code length n for q=3, m=3 and b=25. IV. Variable-Rate Codes The characteristic property of the concept of localized errors is that the encoder knows a set E of unreliable positions, and that in the positions outside E there will be no errors. As already indicated by Larsson [4], the fixed-rate codes as described in the previous section have two major drawbacks. In case the size of the actual error pattern is (much) smaller than the "designed" correction capability, it is not possible to transmit more data. On the other hand, in case the size of the actual error pattern is larger than the "designed" correction capability, error-free transmission can not be guaranteed. These two major drawbacks are the main reasons for introducing the idea of variable-rate codes, enabling more flexible and reliable communication. In this section, a method is proposed for constructing such codes. The method is based on the new fixed-rate construction method presented in the previous section. In the fixed-rate method, it was sufficient to inform the receiver on only the starting positions of the m bursts, since the number of bursts and the burst length were fixed. In the variable-rate concept, we will allow the number of bursts m to vary from codeword to codeword and and the burst length bi (i=1,2,...,m) to vary from burst to burst, both within 52 certain limits (05" msm", 15"bi5" b*). Hence, the receiver should be informed on the number of possible bursts, their starting positions, and their lengths. The proposed method is based on these ideas. In the variable-rate method, 2m*+ 1 sub-blocks Di, separated as much as possible in a way known a priori to both the encoder and decoder, are partitioned into several parts. Some (parts) of these sub-blocks will be used to transmit the information on the unreliable positions to the receiver in the following way, the remaining parts can be used to store data. Here, the number of parts is either three (P-part of length p, Y-part of length 1, A-part of length a) or five (P-part of length p, Y-part of length 1, K-part of length k, A-part of length a, L-part of length l). These parts have the following functions: • The P-part contains a pointer to the sub-block Di (with i odd) in use to store the information on the unreliable positions. • The Y-part of length 1 contains a 0 if only the A-part will follow, and a 1 if the K-part, the A-part, and the L-part will follow. • The K-part contains the actual number m of bursts that occurs. • The A-part contains the information on the m starting positions of the bursts. The length a of this vector depends on the content of the Y-part. • The L-part gives information to the decoder about the lengths of the bursts. It can give the length of each burst as a value from 1 to b *. The length of the P-part equals p=llogq(m*+I)l (10) To be able to give the number of bursts, which can vary from 0 to m*, the length of the K- part must be k =rlogq(m*+l)l (11) The length of the A-part depends on the content Y of the Y -part. If Y = 1, then the length is a=a=r10gq(:)l (12) with a maximum value equal to a==r10gq(:*)l (13) If Y = 0, then the length is a = ~ = rlOgq(n- m ~**+m *)l. (14) In order to be able to give the lengths of the m bursts, the length of the vector L must be l=rmlogqb*l (15) with a maximum value equals to I m ax = rm * logq b * l (16) Further, we introduce a decision parameter D= k+a+l+ fbi- ~-m*b* (17) i=1 The choice between Y=O or Y=1 is made by the following criterion: Y=O if D20; Y=1 if D ~ 0.4 '" 0.3 + = variable rate 0.2 • = fixed rate b=21 0.1 0= fixed rate b=b_ma»=42 OL_~--~--~~--~--~--~~--~ ~ ~ M M M M ~ M M 5 Fig. 4. Average code rate as a function of the S-factor from the burst length probability function (22) for n==IOO, q==2, m ==m* ==I and b*==brnax=42. 55 1>=100,q=2, b_max=42 0.9 + = variable rate O.B • = fixed rate b=21 0.7 0 = fixed rate b=b_max=42 "" ~O.6 .0 ~O.5 ~ 0.4 :fj 0.3 0.2 0.1 O.t Fig. 5. Failure probability as a function of the S-factor from the burst length probability function (22) for n=lOO, q=2, m=m* = 1 and b*=bmax=42. VI. Conclusions A new construction method for fixed-rate codes correcting multiple localized burst errors has been proposed. This method combines the advantages of a high code rate (as in the Mardjuadi-Weber method) and a large maximum correctable burst length (as in the Larsson method). Based on the new fixed-rate method, a variable-rate method has been presented, allowing for more flexible and reliable communication, while still keeping the encoding and decoding complexity low. Thus far, all proposed methods for localized (burst) error correction assume that the encoder is completely informed on the areas in the codewords where errors might occur. According to the model, no errors will occur outside these areas, which is of course not very realistic. Therefore, a major point for further research is the consideration of localized errors (known to the encoder) together with random errors (unknown to the encoder). References [1] L.A. Bassalygo, SJ. Gelfand, and M.S. Pinsker, "Coding for Channels With Localized Errors", Proc. Fourth Joint Swedish-Soviet Int. Workshop on Information Theory, Gotland, Sweden, pp. 95-99, August 1989. [2] L.A. Bassalygo, S.J. Gelfand, and M.S. Pinsker, "Coding for Partially Localized Errors", IEEE Trans. Inform. Theory, vol. 37, pp. 880-884, May 1991. [3] R. Ahlswede, L.A. Bassalygo, and M.S. Pinsker, "Nonbinary codes correcting localized errors", IEEE Trans. Inform. Theory, vol. 39, pp. 1413-1416, July 1993. [4] P. Larsson, Codes for Correction of Localized Errors, Linköping Studies in Science and Technology, Dissertations, No. 374, Sweden, April 1995. [5] A. Mardjuadi and J.H. Weber, "Coding for Multiple Localized Burst Error Correction: the FBI-Method", Proc. IEEE Fourth Symposium on Communications and Vehicular Technology in the Benelux, Gent, Belgium, pp. 142-147, October 1996. [6] G.H. Bratatjandra, Coding for Multiple Localized Burst Error Correction with Variable Rate, M.Sc. Thesis, Delft University of Technology, January 1997. 56 Some Observations on Two-way Channels H.B. Meeuwissen and J.P.M. Schalkwijk* Abstract The fundamentalopen question of how to communicate through two-way communication channels as effectively as possible was raised by Shannon [IJ in 1961. The question is partially answered by the Shannon inner and outer bounds to the capacity region of the discret.e memoryless two-way channel. As a matter of fact, there exist many examples of two-way channels with coinciding Shannon inner and outer bounds. First, we discuss an example of both a noiseless and a noisy discrete memoryless two-way channel with coinciding Shannon inner and outer bounds. It is shown that the convex hull in the definition of the Shannon inner bound region is essential for noisy two-way channels. Next, we discuss the well-known binary multiplying channel and a channel mentioned in Jelinek's [2, p. 4J thesis. Thus, we give an example of both a noiseless and a noisy discrete memoryless two-way channel with differing Shannon inner and outer bounds. In general, the capacity region C of the discrete memoryless two-way channel K (with differing Shannon inner and outer bounds) can be described by a limiting expression in terms of the normalized inner bound regions Bn, for n = 1,2, ..., of the derived channels Kn. The increasing sequence of normalized inner bound regions B2k-l for k = 1,2, ..., is the simplest sequence to describe C. 1 The Shannon Inner and Outer Bound Regions Shannon's [IJ 1961 paper entitled "Two-way Communication Channels" marks the beginning of multi-user or network information theory [3J. In fact, it introduces not only the two-way channel, but also the interference channel [1, p. 636J and the multiple access channel [1, p. 641J. Definition 1.1 (Discrete memoryless two-way channel) The discrete memory- less two-way channel K consists of two finite input alphabets Xl and X2, two finite out- put alphabets YI and Y2, and a transition probability matrix P{YbY2IxI,X2}, Xl E Xl, X2 E X2, YI E YI, and Y2 E Y2. The discrete memoryless two-way channel is said to be deterministic or noiseless if the transition probability matrix satisfies P{YI, Y21xl, X2} E {O, I} for all possible pairs of channel input and output letters. The capacity region of the discrete memoryless two-way channel can be bounded from below by the Shannon inner bound. Conversely, the capacity region of the discrete memoryless two-way channel can be bounded from 'Both authors are with Eindhoven University of Technology,Section on Information and Commu- nication Theory, Dept. of Elec. Eng., P.O. Box 513, 5600 MB Eindhoven, the Netherlands. 57 above by the Shannon outer bound. The Shannon inner and outer bounds have a single letter characterization. The definition of the Shannon inner bound region uses the convex hull. The convex hull of a set S is the smallest convex set that contains S. Definition 1.2 (Shannon inner bound region) The Shannon inner bound region Yi of the discrete memoryless two-way channel K is defined as the set of rate pairs ç, == convex hull (y?), where and Xl, X21 YI1 Y2 are discrete random variables with a joint probability distribution that satisfies p{ Xl} .p{ X2} 'P{YI, Y2!Xl, X2} I where P{Yl, Y2!Xl, X2} is transition probability matrix uf the channel K. Definition 1.3 (Shannon outer bound region) The Shannon outer bound region Yo of the discrete memoryless two-way channel K is defined as the set of rate pairs where Xl, X2, YI, Y2 are discrete random variables with a joint probability distrib- ution that satisfies P{Xl,X2}' P{yl,Y2!Xj,X2}, where P{yI,Y2!Xl,X2} is the transition probability matrix of the channel K. Theorem 1.1 The capacity region C of the discrete memoryless two-way channel K satisfies c. ç C ç c; The Shannon inner and outer bound regions have some useful properties. The region satisfies if (R1,R2) E Yi, then (RI,O) E Yi and (0,R2) E ç; The conditional average mutual informations I(XI; Y2!X2) and I(X2; Y1!X1) are convex-f) functions of P{XI, X2}' The region Yo satisfies if (RI, R2) E Yo, then (RI, 0) E Yo and (0, R2) E Yo, and convex hull(yo) = Yo. Finally, the Shannon inner and outer bounds are the same at the intersection points with the coordinate axes. 2 Capacity Regions of SOIne Two-way Channels 2.1 Channels with a Semi-Symmetrical Structure Definition 2.1 (Semi-symmetrical structure) The discrete memoryless two-way channel with transition probability matrix p{yI, Y2!Xl, X2} has a semi-symmetrical struc- ture if for all possible interchanges of input symbols at terminal i, there exist inter- changes of output symbols at terminal i, terminal 2, or both terminalland 2, such that P{YI, Y2!XI,X2} remains the same. Definition 2.2 (Binary erasure-noiseless channel) The binary erasure-noiseless channel has binary alphabets ..1:'1 = ..1:'2 = YI = Y2 = {O, I}, and a transition probability matrix P{YI, Y2!XI, X2} as given in table 1. Theorem 2.1 The capacity region of the discrete memoryless two-way channel K with a semi-symmetrical siructure is equal to the Shannon inner bound region. 58 YIY2 p{Yl,Y2/Xl,X2} 00 Ol la 11 00 1 0 0 0 1 1 Ol 0 0 2" 2" XIX2 la 0 0 0 11 0 0 1 1 Table 1: The binary erasure-noiseless channel. The binary erasure-noiseless channel is a noisy two-way channel that acts in the 1 ---7 2 direction as a binary erasure channel, and in the 2 ---7 1 direction as a binary noiseless channel. The binary erasure-noiseless channel has a semi-symmetrical structure, since an interchange of the input symbols at terminal I, and an interchange of the output symbols at terminal 2 leaves the transition probability matrix unchanged. The above theorem yields that the capacity region of the binary erasure-noiseless channel is equal to the Shannon inner bound region. The rate pairs in the capacity region, which is plotted in figure 1, satisfy ((1 - (31). heal), h((31)), where 0 :S al :S 1 and 0 :S (31:S 1. 2.2 Channels with a Full-Symmetrical Structure Definition 2.3 (Full-symmetrical structure) The discrete memoryless two-way channel with transition probability matrix P{Yl, Y2lxl, X2} has a full-symmetrical struc- ture if for all possible interchanges of input symbols at both terminalland 2, there exist interchanges of output symbols at terminal 1, terminal2, or both terminalland 2, such that P{Yl' Y2IxI, X2} remains the same. Definition 2.4 (The modulo-2 adding channel) The modulo-2 adding channel has binary alphabets Xl = X2 = YI = Y2 = {a, I}, and a transition probability matrix P{YI, Y2lxl, X2} = 1 if Yl = Y2 = Xl EB X2, and P{Ylo Y2lxl' xd = 0 otherwise. Theorem 2.2 The capacity region of the discrete memoryless two-way channel K with a full-symmetrical structure is a rectangle formed by the point (0, 0) and the point corresponding to the input distribution p{ Xl, xz} = 1/IXII· IX21· The above theorem yields the capacity region of the modulo-2 adding channel. Setting p{XlJ X2} = 1/4 yields l(XI; Y21X2) = 1 and l(X2; YlIX2) = 1. The capacity region is plotted in figure 2. 3 The Discrete Push-to-Talk Channel In this section, the third example of a two-way channel in [1, p. 612], which is called the discrete push-to-talk channel, is investigated. It is explicitly shown that some rate pairs in the Shannon inner bound region Çi of this noisy two-way channel can only be obtained by taking the convex hull of the region çp. 1 1A similar result for the capacity region of the multiple access channel can be found in [4J. 59 '~r-----------:;-~""'_ ,. , ,,, ,, '--------------1, ., Figure 1: Capacity region of the Figure 2: Capacity region of the binary erasure-noiseless channel. modulo-2 adding channel. Definition 3.1 (Discrete push-to-talk channel) The discrete push-ta-talk channel has alphabets Xl = X2 = {O,1, 2} and Yl = Y2 = {O,I}, and a transition probability matrixp{Yl,Y2Ixl,X2} as given in table 2. YIY2 P{Yl,Y2Ixl,X2} 01 10 11 00 4" 4" 01 I I 0 0 2 2 1 1 02 0 0 2 10 1 0 ~ 0 XIX2 11 ~ 1 ~ 1 12 I I I I 4" 4" 20 0 I 0 I 21 1 ~ 1 ~ 22 I I I I Table 2: The P{Yl' Y2lxl' X2} of the discrete push-to-talk channel. The average mutual informations in the Shannon inner bound region satisfy I(Xl; Y21X2) = fh/32 ' [h(al (1- ~2)) - a1a2] , I(X2; YIIX1) = ala2 . [h (/31 (1 - ~2 ) ) - /31/32] ., where ° ::::; al> a2 ::::;1 and ° ::::; /31, /32 ::::; 1. Note that for al = 1/2, a2 = 0, and /31 = /32 = 1, the rate pair (1,0) is obtained, and that for al = a2 = 1, /31 = 1/2, and /32 = 0, the rate pair (0,1) is obtained. The symmetrical case, i.e. /31 = al and /32 = a2, case is investigated. The stationary points of I(Xl; Y21X2) and I(X2; YiIXl) are obtained from setting their partial derivatives with respect to al and a2 to zero. ° Thus, al = yields the stationary point (0,0), and al = 3/4 and a2 = 2/3 yields the 60 stationary point (1/4,1/4). The point (1/4,1/4) is a maximum, since in this point it holds that à2 I à2 I àar . àa~ - A numerical computation shows that the region çp is bounded by a curve of the form of the convex-U curve plotted in figure 3. Moreover, it follows from theorem 1.1 that any point in the convex hull of çp is achievable as well. Therefore, the Shannon inner bound region Çi of the discrete push-to-talk channel is the triangular region between the coordinate axes, and the straight line between the points (1, 0) and (0, 1), see figure 3. It can be shown that the Shannon outer bound region is the same region. Figure 3: Capacity region of the discrete push-to-talk channel. Property 3.1 (ÇP is not convex-n) For the non-deterministic discrete memoryless two-way channel the set of rate pairs çf which is obtained from a product input dis- I tribution, is not necessarily a convex-n set. Thus, the convex hull is essential in the formulation of Çil i. e. there exist discrete memoruless two-way channels for which there are rate pairs (Rh R~) E Çi such. that (Rh R2) 1. çp. The discrete push-to-talk channel does not have a semi-symmetrical structure, but it has been shown in this section that its Shannon inner and outer bound regions are the same. Thus, if the discrete memoryless two-way channel has a semi-symmetrical structure, the Shannon inner and outer bounds coincide. However, if the discrete mem- oryless two-way channel has coinciding Shannon inner and outer bounds, it does not necessarily have a semi-symmetrical structure. A general answer to the question what conditions are necessary and sufficient to guarantee the coincidence of the Shannon inner and outer bounds is not yet known. 4 The Binary Multiplying Channel In this section, it is shown that the Shannon inner and outer bounds of the binary multiplying channel are different. &1 Definition 4.1 (Binary multiplying channel) The binary multiplying channel has binary alphabets .l'l = .1'2 = Y1 = Y2 = {O, I}, and a transition probability matrix P{Y1, Y21x1' X2} = 1 if Y1 = Y2 = Xl . X2, and P{Yl, Y21x1, X2} = 0 otherwise. A numerical optimization yields a rate pair of (0.61695, 0.61695) on the inner bound curve. In addition, the midpoint of the outer bound curve is (log2( (1 +V5) /2), log2( (1 + V5)/2)) ~ (0.69424,0.69424). The Shannon inner and outer bounds are plotted in fig- ure 4. As a conclusion, the inner and outer bounds of the binary multiplying channel are not the same! Since there are no known examples of deterministic discrete mem- oryless two-way channels for which the convex hull in the definition of Qi is essential, the following conjecture is formulated. Conjecture 4.1 (Convexity of Q?) For the deterministic discrete memoryless two- way channel it is conjectured that the set of rate pairs Q? is already a convex-n set. In other words, for the deterministic discrete memoryless two-way channel it is conjectured that if(R1,R2) E gi, then (Rl,R2) E QP.2 5 Jelinek's Channel In this section, a non-deterministic discrete memoryless two-way channel is investigated that is mentioned in Jelinek's [2] thesis. It is shown that Jelinek's channel has differing Shannon inner and outer bounds. Definition 5.1 (Jelinek's channel) Jelinek's channel has binary alphabets Xl = .1'2= Y1 = Y2 = {O,I}, and a transition probability matrix as given in table 3. YIY2 p{YI, Y2!Xl, X2} 00 Ol 10 11 00 1 0 0 0 XIX2 01 P2(1 - PI) P2Pl (1 - P2)(1 - pd (1- PZ)PI 10 (1 - P2)PI (1 - P2)(1 - pd P2PI pz(1 - pJ) 11 0 0 0 1 Table 3: Transition probability matrix for Jelinek's channel Note that terminal I receives its own input symbols with probability P2, 0 ::; P2 ::; 1, and the input symbols from terminal 2 with probahility 1 - P2, while terminal 2 receives its own input symbols with probability P1, 0 ::; Pl :S 1, and the input symbols from terminal I with probability 1 - Pl' The values of Pi and P2 are fixed. If p: = P2 = 1/2, the optimal equal rate point satisfies I(Xi; Y21X2) = I(X2; YlIX1) = 3/2 - (3/4) ·log2 3 ~ 0,31128. In addition, the points (0, log, 5 - 2) and (log25 - 2,0) can be obtained. The Shannon outer bound is the square between the points (0,0) and (log25 - 2, log. 5 - 2) ~ (0.32193,0.32193). The Shannon inner and outer bounds for P: = P2 = 1/2 are plotted in figure 5. Although Jelinek's channel has dillering Shannon inner and outer bounds, the gap is relatively small (also for different values of p: and P2.) 2This conjecture has not even been proven for the binary multiplying channel. 62 Figure 4: Shannon inner and Figure 5: Shannon inner and outer bounds of the binary mul- outer bounds of Jelinek's channel tiplying channel. for PI = P2 = 1/2. 6 The Capacity Region as a Limiting Expression Definition 6.1 (Derived channel) A derived channel Kn, where n is a positive in- teger, of the discrete memoryless two-way channel K consists of two input alphabets X{' and X2', two output alphabets Yî and Y2', and a transition probability matrix PKn {(YI)~, (Y2)~I(XI)~, (X2)~}, (XI)~ E X{', (X2)~ E X2', (YI)~ E Yî, and (Y2)~ E Y2', that satisfies n PKn {(Yl)~, (Y2)~I(Xl)~, (X2)n = IIp{yli' Y2ilhi«xl)~, (Yl)~-l), hi«X2)L (Y2)i)}· i=l The region Bn is defined as the Shannon inner bound region for a derived channel K; normalized by a factor of l/n. The normalization factor of l/n enables the mutual comparison of the Bn-regions for different values of n. Corollary 6.1 (Lower bounds to the capacity region of K) The Bu-reqions for the derived channels of the discrete memoryless channel K with capacity region C satisfy VnEINBn ç C. Lemma 6.1 (Nesting of regions) The regions Bn and Bkn of the corresponding de- rived channels of the discrete memoryless two-way channel K with capacity region C satisfy VnEIN VkEIN s; ç Bkn ç C. Note that successive application of lemma 6.1 yields for example the following in- creasing sequence of normalized inner bound regions BI < B2 ç B4 ç s, < B16 ç ... ç C. The following theorem shows how the capacity region of the discrete memory- less two-way channel can be expressed in terms of this increasing sequence of normalized inner bound regions. Theorem 6.1 (Capacity region) If the regions B2k-l, k = 1,2, ..., are the normal- ized inner bound regions of the derived channels K2k-l of the discrete memoryless two- way channel K, then the capacity region C of K is yielded by the limiting expression 00 lim B2k-l = U B2k-l = C. k->oo k=l 63 The above theorem gives a limiting expression for the capacity region C of the dis- crete memoryless two-way channel K. Hence, the capacity region is well-defined and it can in principle be computed. Although, the actual determination of the normalized inner bound regions E2k-l for the corresponding derived channels of the discrete memo- ryless two-way channel becomes more and more complicated as the value of k increases, the limiting expression gives a direction for the problem of finding the capacity region of the discrete memoryless two-way channel. Finally, consider the normalized Shannon outer bound regions En of the derived channels Kn of the discrete memoryless two-way channel K with capacity region C. The question arises whether C can be described in an alternative way as a limiting expression based on the normalized Shannon outer bound regions of the derived channels. However, the Dn-regions are identical to the Shannon outer bound region. In 1986 Zhang, Berger, and Schalkwijk [5] strengthened the Shannon outer bound of the discrete memoryless two-way channel. 7 Conclusions This presentation is based on the original paper of Shannon entitled "Two-way Com- munication Channels". The two-way channel is a model for communication processes with an exchange of information in two directions. In other words, the two-way channel is an information theoretical model of the dialogue. This model does not beforehand regard the dialogue as two independent monologues. One of the major open ques- tions [2, p. 14] in the early days of two-way channel investigation was whether or not it is possible to achieve rate pairs beyond the Shannon inner bound of the discrete mem- oryless two-way channel. This question is answered by now, see [6] and [7]. Two-way channel investigation is still of a fundamental character. The aim is to acquire a deeper understanding on two-way communication channels by continuing the line of research that was pointed out by Schalkwijk in 1982. One of the major open questions concerns the capacity region of the discrete memoryless two-way channel. References [1] C.E. Shannon. Two-way communication channels. In J. Neyman, editor, Proc. Fourth Berkeley Symp. on Math. Statistics and Probability, vol. I, pages 611-644. University of California Press, Berkeley, CA, 1961. f2] F. Jelinek. Coding [ar Discrete Memoruless Two-way Channels. PhD thesis, MrT, Dept. of Elec. Eng., January 1962. [3] T.M. Cover and J.A. Thomas. Elements of Information Theory. John Wiley & Sons, Inc., New York, 1991. [4] M. Bierbaum and H.-M. Wallmeier. A note on the capacity region of the multiple-access channel. IEEE Trans. on Inform. Theory, 25(4):484, July 1979. [5] Z. Zhang, T. Berger, and J.P.M. Schalkwijk. New outer bounds to capacity regions of two-way channels. IEEE Trans. on Inform. Theory, 32(3):383-386, May 1986. [6] G. Dueck. The capacity region of the two-way channel can exceed the inner bound. Inform. and Control, 40:258-266, March 1979. [7] J.P.M. Schalkwijk. The binary multiplying channel - a coding scheme that operates beyond the Shannon inner bound. IEEE Trans. on Inform. Theory, 28:107-110, January 1982. 64 Coping with ambiguities in the channel code for DVB-S Brian de Bart, debart@ehv. sc. philips. corn Technische Universiteit Eindhoven, Group on inforrnation- and communication theory Philips Semiconductors, Systems Laboratory Eindhoven, Building BE 3.40, PO-Box 218, 5600 MD, Eindhoven, the Netherlands. Abstract In this presentation, it is shown how the channel coding scheme ofthe Digital Video Broad- casting satellite system can cause ambiguities in the code that can not be solved by the Viterbi decoder. The Reed-Solomon and (punctured) convolutional encoded stream is QPSK modulated. This stream may be transformed into another sequence by the channel and the demodulator. Examples of these transformations are spectral inversion (one branch is inverted), rotation of the constellation by ± 90 or 180·, and a shift of the puncturing map. It 0 will be shown that some of these transformations yield a sequence that resembles a code- word of the original convolutional code. This causes 'false lock points' in the synchroniza- tion ofthe Viterbi decoder, since the decoder can not distinguish between such a trans- formed sequence and a real code word. Synchronization in DVB-S system The DVB-S scheme is the European standard for broadcasting digital video, audio and data via a satellite transmission system [1]. Among other things, this standard has fixed the chan- nel encoding scheme. For the implementation of a DVB-S compliant channel decoder, one needs to design a system that can automatically synchronize to the transmitter, and deliver quasi-error free data as its output. Fig. 1 shows the channel coding part of the DVB-S system. Fig. 1 Channel coding scheme for Digital Video Broadcasting via satellite 65 The input to the randomizer are DVB transport packets. These packets have a length of 188 bytes, of which the first byte is a sync word. The randomizer, which is used for energy dis- persal, operates on frames of eight of these packets. To ease the synchronization to these frames at the receiver side, the first sync byte of each frame is inverted. The Reed-Solomon encoder adds sixteen parity bytes to each packet of 188 bytes, yielding an output block- length of 204 bytes. The RS decoder uses the sync bytes to find the beginning of a code- word. The convolutional code is a binary code that is based on a rate 1/2 mother code. Puncturing can be used to obtain higher information bit rates (the DVB standard specifies the rates 2/3, 3/4, 5/6 and 7/8). Finally, the encoded bits are QPSK modulated on a carrier. At the receiver side, the demodulator should first find the symbol rate and the carrier fre- quency that are used by the transmitter. Next, the Viterbi decoder should find the correct puncturing rate and solve the channel ambiguities to deliver data to the RS decoder. The RS decoder will look for sync bytes to determine the border between packets. Finally, the derandomizer looks for the inverted sync bytes to find frame synchronization. Channel transformations The modulator uses QPSK with Gray mapping to transmit the bits that come from the Viterbi decoder. Fig. 2 shows the constellation mapping of this system. At the receiver side, the demodulator can find the symbol rate (clock recovery) and the car- rier frequency (carrier recovery), by concentrating as much as possible the energy of the received signal in those four constellation points. However, a phase ambiguity of 90° exists, since the demodulator can not determine the labels of the points. Fig. 2 shows the result of a constellation that is rotated by 90° and a constellation that is rotated by 180'. For the moment, we assume that once the demodulator is synchronized, it will not change its rota- tion any more. Due to the up- and down mixing, it can happen that one of the branches (I or Q) is inverted. This is called spectral inversion. Fig. 2 shows the labelling of the constellation points in case there is spectral inversion (the I branch is inverted in this example). Q Q Q Q 00 01 01 11 • • • • • • 1 1 1 1 ~ l~ ·11 O~ ·10 ~ original mapping 90' rotation 180' rotation spectral inversion Fig. 2 Examples of QPSK channel transformations && As can be seen, spectral inversion gives a constellation mapping that can not be obtained by rotation only. The data that is given to the Viterbi decoder can be influenced by a combina- tion of these transformations. If the receiver is tuned to a new channel for the first time, the puncturing rate is unknown. For each puncturing map, several starting positions exist (i.e. the decoder should know where to add the erasures). The receiver should detect these parameters by trying all possi- ble system configurations and finding the most likely one. Ambiguities in the channel code As is explained in the previous section, the channel and demodulator may transform the encoded sequence into a new sequence. We will now discuss some of the transformations and their impact on the synchronization of the decoders. Constellation phase rotations In case of a rotation of the constellation of ± 90", the mapping is not correct and the Viterbi decoder will not be able to recognize a valid codeword in the sequence. The convolutional code that is specified for DVB-S is a transparent code. This means that the all-ones word is a valid codeword sequence and since the code is linear, the inverse of a codeword is also a codeword. This implies that the Viterbi decoder is not able to detect a 180" phase shift of the constellation. When this happens, the Viterbi decoder is operating normally and detecting the maximum likelihood sequence. However; the output sequence will be inverted in this case and the Reed-Solomon decoder should be able to detect the polarity of the stream. To find the polarity of the stream, the sync unit of the RS decoder can use the sync bytes. The fact that the frame sync bytes are just inverted packet sync bytes, makes this polarity detection somewhat more difficult. However, since only one out of every eight packet syncs is inverted to a frame sync, the polarity ofthe stream can be detected by a 'majority vote' on the polarity of the sync bytes. In any case, the phase ambiguity can be resolved, either by the Viterbi decoder or the RS decoder. Spectral inversion In the previous section, it was explained that spectral inversion results in the inversion of one of the spectral components. This means that all even (or odd) bits have been inverted. For most of the puncturing rates, this is no problem. However, for the rate 5/6 code, the resulting sequence appears to be a codeword too. This can be easily seen by looking at a syndrome former for this punctured code. Such a syn- 61 drome former will have an XOR-addition of some of the symbols of the I-branch, and an XOR -addition of some of the symbols of the Q-branch. For the rate 5/6 code, the number of taps on the I-branch and Q-branch are both even. A speetrally inverted stream has one branch inverted, but since the number of taps on a branch is even, this makes no difference for the resulting syndrome sequence. Hence, the speetrally inverted stream is also a code- word of the convolutional code. For the other DVB compliant puncturing rates, the number of taps on both branches is odd and the syndrome sequence is inverted in case of spectral inversion. However, a combina- tion of phase rotation, spectral inversion and a shift of the puncturing map can cause some of the symbols to end up in their original position. The rest of the symbols will appear ran- dom. The synchronization unit of the Viterbi decoder will detect these correct symbols and decide that this is a codeword with some noise on it, while in fact it is a sequence with no noise that is falsely locked. We will now give an example for puncturing rate 3/4. Fig. 3 shows the puncturing opera- tion. The binary sequences A and B come from the convolutional encoder and are punctured in accordance with the puncturing map. A '0' in the puncturing map means that this bit is deleted, while a '1' means that the bit is sent over the channel. A=AJA2A3A4ASA6A7 ~ I=AJB2A4BSA7 B=BJB2B3B4BsB6B7 ~ Q=BJA3B4A6B7 Fig. 3 Rate 3/4 puncturing operation The output sequences I and Q are sent over the channel and demodulated. A possible chan- nel transformation is spectral inversion (I = notû) and a phase rotation of 90' (I = Q, Q = not(I». The resulting sequences I' and Q' are shown in Fig. 4. I=AJB2A4BSA7- ,.- I'=BJA3B4A6B7 Q=BJA3B4A6B7 - - Q'=AJB2A4BSA7 Fig. 4 Channel transformation The Viterbi decoder will depuncturing this sequence and try to synchronize to it. For the puncturing map, two starting positions exist. Fig. 5 shows the sequence after depuncturing for both cases. fî\I'=BJA3B4A6B7 ~ A'=BJXB2B4XBS B7 \V Q'=AJB2A4BSA7 ~ B'=AJA3X A4A6X A7 o I'=A3B4A6B7 Q'=B2A4BSA7 ~ ~ A'=A3XA4 A6XA7 B'=B2B4X BsB7X Fig. 5 Rate 3/4 depuncturing operation 68 The first sequence has the correct starting position. As can be seen, none of the symbols is at the correct position in this case and the sequence will look random (unsynchronized) to the decoder. The second sequence, however, has an incorrect starting position of the puncturing map, but now two out of every six symbols is at the correct position. A sensitive synchroni- zation unit will detect this as being a codeword with a lot of noise and declare the decoder 'synchronized' with no phase rotation and no spectral inversion! Hence, the Viterbi decoder may synchronize to these configurations, claiming that there is no spectral inversion, and deliver data to the Reed-Solomen decoder. However, since the Viterbi decoder is not correctly synchronized, this data will not contain sync bytes and the RS decoder will not be able to find synchronization. Conclusions In this paper, it has been shown that the channel coding scheme of DVB-S, the European standard for broadcasting digital video, is not unambiguous. Several channel transforma- tions can make the received sequence look like a valid codeword sequence to the Viterbi decoder, while in fact the decoder is falsely synchronized. If no spectral inversion is present, the phase ambiguity can be completely resolved, either by the Viterbi decoder (phase rotations of ± 90°) or the Reed-Solomon decoder (a phase rotation of 180°). This is the case for all puncturing rates. In case of spectral inversion (one branch is inverted), false lock points exist for several puncturing rates. For the rate 5/6 code, the speetrally inverted version is exactly a code word sequence. This means that the Viterbi decoder can not distinguish between a normal stream and a speetrally inverted stream. For other puncturing rates (e.g. rate 3/4), a combination of phase rotation, spectral inversion and shifting of the puncturing map can result in a sequence that resembles a codeword. In this case, the Viterbi decoder could use a threshold to distinguish between a real sync lock and a false lock point. However, this will make it more difficult to find synchronization on channels with low Signal-to-Noise ratios. In all cases, a joined synchronization of the Viterbi and Reed-Solomon decoders will be able to find the correct configuration. The Viterbi decoder can select favourable configura- tions and tries these for a while. If the RS decoder can not find synchronization within a given time, the Viterbi decoder should continue its search for the correct configuration. References [1] ETSI, Digital Broadcasting systemsfor television, sound and data services; Framing structure, channel coding and modulationfor 11-12 GHz satellite receivers, December 1994, ETS 300421. 69 Effects of floating point arithmetic in enumerative coding Kees A. Schouhamer lmmink and Augustus J.E.M. Janssen * Summary - The storage requirements of conventional enumerative schemes can be reduced by using floating point arithmetical operations instead of the conventional fixed point operations. The enumeration scheme will incur coding loss. The relationship between the storage requirements and the coding loss is derived. 1 Introduction In channel coding schemes we are usually faced with the problem of translating a given source word into another codeword and vice uersa that satisfies some prescribed constraints. In the absence of an algorithmic rule defining the relationship between the source word and codeword, the translation operation will be simple look-up tables. As hardware grows with the number of codewords used, i.e. exponentially with the codeword length, there is a technological limit to the length of the words that can be translated using such a simple look-up table. A preferable alternative technique, called enumerative coding, makes it possible to perform the translation by invoking an algorithmic procedure [1]. Essentially, enumer- ative decoding is accomplished by forming the weighted sum of the codeword received. The integer-valued weights used in forming the sum are a function of the channel con- straints in force. Encoding is done by a method which is similar to decimal-to-binary conversion where, instead of the usual powers of two, the weights are used. The weights are usually pre-computed and stored in a look-up table. Translation using enumera- tion has the virtue that the complexity (weight storage) grows polynomially with the codeword length. This relationship between complexity and word length can be ap- proximated by, say, nt, 11, » 1, where 11, denotes the word length and t is an arbitrary positive integer. Note that the fixed-point binary representation of each weight requires Rn, 0 < R < 1, bits. In an alternative scheme where a floating point instead of a fixed point represent- ation of the weights is employed, the binary representation of each weight requires ep bits, where ep is a fixed integer chosen by the designer. As a result, the complexity grows with nt-1, which could be beneficial for large ti. As a penalty, we will incur some coding loss because the full set of constrained codewords cannot be used (see later for more details). The article addresses the problem of quantitatively assessing the coding loss in the case of (dk) constrained sequences. We start with a description of the state of the art °K.A. Schouhamer lmmink and A.J.E.M. Janssen are with Philips Research Laboratories, Prof. Holstlaan 6, 5656 AA Eindhoven, The Netherlands. 70 followed by an exposition of the floating point enumeration scheme. Next, we develop a relationship between the coding loss and the weight storage hardware. 2 Coding and decoding using enumeration The description of the enumeration method given below is due to Cover [1]. Let {O,I}" denote the set of binary sequences of length n and let 5 be a given (constrained) subset of {O, l}n The set 5 can be ordered lexicographically as follows: if x = (XI, ... ,xn) E 5 and Y = (YI, ... ,Yn) E 5, then y is called less than x, in short, y < x, if there exists an i,1 :::;i :::;n, such that Yi < x, and Xj = Yj, 1 :::;j < i. The position of x in the lexicographical ordering of 5 is defined to be the rank of x, denoted by is(x). Let ns(xI' X2,"" x,,) be the number of elements in 5 for which the first u coordin- ates are (XI, X2, ... ,xu). The inverse rank of x E 5, i.e. the number of elements of 5 that have a lexicographic index higher than x, is given by n is-ex) = LXjns(xI,x2"" ,Xj-I> 1), (1) j=1 where Xj = 1 - Xj, the complement of Xj' Next, we will apply the above theory to the enumeration of (dh) sequences. 2.1 Encoding and decoding of (dkr) sequences A dk-limited sequence, (dk) sequence in short, has at least d and at most k 'zeros' between consecutive 'ones' [2]. A (dh) sequence is a (dk) sequence with at most r trailing 'zeros'. Given a dkr-codeword x, let x} = (XI, X2,"" Xj-I, 1). Denote by N°(i) the number of (dkr )-constrained sequences of length i starting with a 1. We define the quantity aj(x) as the length of the trailing zero-run of the sub-vector (XI, ... ,Xj_l) if it is not the all-zero sequence. Or, min {(j - i-I) : 1 :::;i < i, z, = I} if j > 1 and aj(x) = (XI, ... ,Xj_l) i= (0, ... ,0); { d otherwise. By invoking (1) to (dkr) sequences, we observe that for a given i. 1 :::;j :::;n, ns(x}) can take one of two different values, depending on x. If aj(x) < d then ns(x}) = 0, because in this case x} violates the prescribed d constraint. Alternatively, if aj(x) 2: d then ns(x}) = N°(n - j + 1). The next relationship for the enumeration of (dkr) sequences is now immediate [3] [4] [5]. n is-ex) = L bj(x)NO(n - j + 1), j=1 where bj(x) = { I ° and aj(x) 2: d; ° otherwise. if z, = 71 In words, the inverse rank of x can be obtained by summing the appropriate weight of each 'zero' of x that is either contained in the leading zero-run or is preceded by at least d 'zeros'. The computation of the weights N°(n) is an exercise in combinatorics. To that end, let U(n) be the number of (dk) sequences that start and end with a 'I'. Then the following recursions are immediate: 0, if n :S 0, U(n) = { I, if n = I, (2) I:~=d U(n - i - I), if n ;:::: 2. The number of (dkr)-constrained sequences of length ti, NO(n), is simply r NO(n) = L U(n - i). (3) i=O For n > d + k we may verify the following recursion: k+l N°(n) = L NO(n - i). (4) i=d+i 2.2 Enumeration using floating-point arithmetic The hardware for implementing the enumeration algorithm comprises a (binary) adder, a subtracter, a comparator, and a look-up table of the pre-computed set of weights {NO(i)}, 1 Si :S n. The binary fixed-point representation of a single weight requires ° Rn bits per weight, where R, < R < I, is a constant. For the overall scheme, we need therefore storage proportional to Rn2. In the sequel we will develop an enumeration method where the weights are specified in floating-point notation. Let I be one of the weights NO(i). It is well known that the non-negative integer I,I < 2v, can be uniquely represented by a binary v-tuple x = (XV-i"'" xo), where v-I 1= LXi2i. i=O The binary v-tuple x is called the binary fixed-point representation of I. Let be the position of the leading 'one' element of x. Then the p-bit truncation of I, denoted by lIJp, (5) can be represented in binary floating-point representation whose mantissa requires at most p non-zero bits. If the above finite-precision arithmetic is used in the enumeration algorithms we must modify the set of weights developed in the previous section. To that end, let NO(i) denote the number of (dkr) sequences of length i starting with a '1' that can be encoded with p-bit mantissa representation, then i:S k + d, (6) i> k + d. For clerical convenience, it is assumed that the weights NO(i) < 2P, 1 < i :S k + d, i.e. they can be represented by a mantissa of p bits; otherwise more bookkeeping is required. The encoding and decoding algorithms developed in the previous section can be employed directly by using the 'truncated' coefficients NO (i) in lieu of N° (i). The enumeration algorithm itself remains unchanged. The effect on the set of codewords will be that recursively the NO(i) - LNO(i)Jp highest ranking (dkr) words of length i are discarded from the set of all lexicographically ordered dkr sequences starting with a '1'. 2.3 Effects of finite-precision arithmetic Using finite precision of the weights representation (truncation) will result in coding loss. The number of (dkr) sequences of a length n that start with a '1', NO(n), n > k-s-d, satisfies (see (4)) k+l NO(n) = L NO(n - i). i=d+l The number of (dkr) sequences grows exponentially with n, the growth factor being Ào = 2C(d,k), where À = Ào is the largest root of the characteristic equation [2] (7) Recall that for sufficiently large n, the number of (dkr) sequences of length n, NO (n), that can be encoded using a p-bit mantissa representation can be expressed as k+l NO(n) = L L NO(n - i)Jp. (8) i=d+l Conceptually, the computation of the growth factor 5. of NO(n) and the capacity ci« k) = 10g25. becomes very simple if we notice that the sequence behavior of the p- bit mantissa of NO(n) versus n can be described in terms of an autonomous finite-state machine. The dynamic behavior of the finite-state machine is implied by the recursive equation (8). Proposition 1 The capacity ci«, k) is rational. Proof: From the theory of feedback registers [6] we know that the sequence of the mantissa of NO(n) will ultimately become (and remain) periodic. That is, there are integers hand f such that (9) In other words, per cycle period of length f the number of sequences increases with a fixed factor, which is equal to a power of two, 2h. From the above it is immediate that h 7. A C(d, k) = (10) Results of a computer search are listed in Table 1. 73 Table 1: Capacity ê(d, k) for selected values of d, k, and p. d k CCd, k) p CCd, k) "1 7 0.67929 8 40/59 1 12 0.69299 9 9/13 2 12 0.54711 7 6/11 2 15 0.55011 11 11/20 The above method for computing the capacity ê(d, k) does not provide a useful rela- tionship between p and the capacity loss CCd, k) - ci« k). Below we try to obtain a relatively simple relationship without the need of a computer search. The capacity CCd, k) can be expressed as CCd, k) = log2 Ào, where '>'0 is the largest root of the characteristic equation (7) corresponding to the linear recursion (4), i.e. À = Ào satisfies Àk+2 _ Àk+l f(À) = Àk-d+l _ 1 = 1. (11) Due to the l.Jp operation, the recursion (8) is non-linear, whence it is not straightfor- ward how ci«, k) can be expressed as log2 5-with ~ the largest root of a characteristic equation. We propose here to linearize the recursion (8) by replacing it by k+l NO(n) = (1 - O'p)( L NO(n - i)), (12) i=d+l where O'p is the limiting average relative truncation error, _ uim E [X(N) - lX(N)Jp] O'p - N---i'OO ;r (N) with ;reN) an integer random variable, uniformly distributed on {2N-I, ... , 2N - I}. Accordingly, we approximate cça, k) by log2 5-(O'p), where ~(O'p) is the largest root of the characteristic equation corresponding to (12) so that À = 5-(O'p) satisfies Àk+2 _ Àk+1 f(À) = Àk-d+1 _ 1 = 1 - O'p' Note that in particular 5-(0) = Ào (no truncation, see (11). Then we get after linearizing f around Ào where -I Àk+2 - (k + 1 - d) fl. =d+ Àk+I-d _ 1 . By elementary means it can be shown that TP In 2 - T(2p+2) < - 0' < TP In 2. p- 74 The capacity ci«, k) can therefore be approximated by " " C7 f-L CCd, k) = log2 À::::: log2 Ào ~ ~lP ::::: CCd, k) ~ f-LTP, n2 where we have replaced C7p by 2-P In 2. Practically, we have f-L ::::: 0.25 in the working range d = 1, ... ,3, k » d, which means that the loss in capacity resulting from the truncation of the weights can be simply approximated by CCd, k) ~ ci« k) :::::2-(p+2) (13) A comparison of the above result with the outcome of the method of computing the cycle time revealed that (13) can serve as a reliable rule of thumb. 3 Concl usions We have introduced a scheme of enumerative coding of dk sequences using floating- point arithmetic. This scheme offers, for long codewords, a significant advantage in storage requirements. A simple relationship between coding efficiency versus encoding or decoding hardware (storage) has been derived. References [1] T.M. Cover, 'Enumerative Source Coding', IEEE Trans. Inform. Theory, vol. 1T-19, no. 1, pp. 73-77, Jan. 1973. [2] K.A.S. Immink, Coding Techniques for Digital Recorders, Prentice-Hall International (UK) Ltd., Englewood Cliffs, New Jersey, 1991. [3] L. Patrovics and K.A.S. Immink, 'Encoding of dklr-sequences using one weight set', IEEE Trans. Inform. Theory, vol. IT-42, no. 5, pp. 1553-1554, Sept. 1996. [4] '1j. Tjalkens, 'Runlength limited sequences', IEEE Trans. Inform. Theory, vol. TT-40, no. 3, pp. 934-940, 1994. [5] H. Hollmann, Modulation Codes, Thesis Eindhoven University of Technology, Dec. 1996. [6] S.W. Golomb, Shift Register Sequences, Holden-Day, Inc., San Francisco, 1967. 75 A bound on the state complexity of a binary linear block code Ludo Tolhuizen I Abstract If a binary [n, k, d] code with state complexity at most k - 3 exists, then n 2: 2d + 2 r~l - 1. In case of equality, the all-one vector is not a codeword. Consequently,the state complexity of the [15,7,5] BCH code - that contains the all-one vector - is at least five. We give an ad-hoc construction of a binary [i5,7,5] code with state complexity four. 1 Introduction Maximum likelihood decoding of a linear block code can be efficiently performed with a trellis [1],[2]. A well-written semi-tutorial paper is [3], and other interesting articles on this matter can be found in [4]. An important parameter for judging the complexity of trellis decoding is the state complexity .'I of the code. We will provide the definition of s, as well as some elementary results, in Section 2. It is natural to ask how small the state complexity of a code can be, given its length, dimension and minimum distance. In [S], a table is provided that gives bounds on the smallest possible state complexity of binary [n, k, d] codes for all feasible triples (n, k, d) with n :s: 24. In Section 3, we will show that a binary code with dimension k, minimum distance d and state complexity at most k - 3, has a length larger than or equal to 2d + 2r~l - 1. Moreover, equality can only hold if the all-one word is not a codeword. As the [15,7,5] BCH code contains the all-one word, our result implies that its state complexity is at least 5. In Section 4, we will describe the ad hoc manner with which we constructed the binary [15,7,5] code with state complexity 4 from [SJ. This example shows that a code with a simple algebraic decoding algorithm, like a BCH code, need not have the lowest possible state complexity, This should not come as a complete surprise: such codes were never designed with efficient trellis decoding in mind! 2 Preliminaries Let C be a binary [n, k, d] code. In order to define the state complexity s of C, some auxiliary definitions are required. For O:S:i :s: n, the future subcode F, is defined as :fj = {c Eel Cl = C2 = ... = C; = oj. lL.M.G.M. Tolhuizen is with Philips Research Labs, Prof. Holstlaan 4,5656 AA Eindhoven, The Netherlands. E-mail: tolhuizn@natlab.research.philips.com 76 Similarly, the past subcode Pi is defined as Pi = {c E C I Ci+l = Ci+2 = ... = Cn = oj For 0 :::;i :::; n, we define Si = k - dim(Fi) - dim(Pi)' As shown in [6, Appendix], C may be described with a trellis that has 25' states at level i. The state complexity S is2 the logarithm to the base 2 of the maximum number of required states, that is, We define the number k( m, d) as the maximum dimension of a binary linear code of length m and minimum distance d. For each i, 0 :::;i :::;n, F, can be considered as a code of length n - i, and consequently dim(Fi) :::;ken - i, d). Similarly, dim (Pi) :::; kei, d), and so Si 2: k - ken - i, d) - kei, d). (1) 3 The bound In order to prove our main result, we require the following lemma. It is implied by a result that we state and prove in the appendix. Lemma The length of a binary 2-dimensional code of minimum distance d is at least d + r~l. A binary [d + r~l, 2, dl code has a word of weight 2· Hl. Theorem Let C be a binary [n, k, dl code with state complexity S :::; k - 3. Then n 2: 2d + 2r~1 __:_ 1. In case of equality, S = k - 3 and the all-one vector 1is not in C. Proof. According to (1), we have for each i that k-3 2: S 2: Si 2: k-k(n-i, dl-kei, d), and so ken - i, d) + k(i, d) 2: 3. (2) Now we specialize (2) to the case i = d + r~l - 1. According to the lemma, the length of a binary 2-dimensional code of minimum distance d is at least d + r~l, and thus kei, d) = 1. But then we need that ken - i, d) 2: 2 and so, applying the lemma again, we obtain that n-i 2: d+ r~l Plugging in the value ofi, we see that n 2: 2d+2r~1-1. Now suppose that equality holds, so n = 2d + 2 r~l - 1. Then all inequalities above must be equalities, and so dim(Fi)=k(n - i, d) = 2 and dim(Pi) = 1. As F, is a two- dimensional [n - i = d + r~l, 2, dl code, (preceded by i zeros), it has a word a of weight 2 r ~l As Pi has dimension 1, it contains a non-zero word b; obviously, wt(b) 2: d. As a and b have no ones in common, the weight of the codeword c= aEBb equals wt(a)+wt(b), and so wt(ck 2r~1 + d = n - d+ 1. As wt(a) = 2r~1 < d+ r~l = n - i, c=aEBbil. (If 2 r~l 2: d + r~l, then d = 1 and the theorem is obvious). Consequently, 1 EBc is a non-zero vector of weight smaller than d, and so lljtC. 0 2 As defined here, s depends 'on the ordering of the bits in C. In literature, one often defines s as min (max(so, 81, ... , Sn)), where the minimum is taken over ail symbol permutations. 77 Remark With similar techniques, it is shown in [7] that s ~ k - 1 if d ~ t(n + 2) and that s ~ k - 2 if d ~ Hn + 2). In [8], it is shown that s = k - 1 if the code contains 1 and its other non-zero weights are in {d, d + 1, ... , 2d - I}. 4 The construction of a [15,7,5] code with state complexity four If we specialize the result of the previous section to the case k = 7 and d = 5, we see that a binary block code of dimension 7, minimum distance 5 and state complexity 4 has length at least 15. Moreover, a [15,7,5] code with state complexity four does not contain 1, and a [15,7,5] code with state complexity 3 does not exist. As the [15,7,5] BCH code [9, Sec. 6.6] contains 1, its state complexity is at least five. This also follows from [8]: as the [16,7,6] extended BCH code contains 1 and has its other non-zero weights in {6,7,... ,11}, its state complexity equals k - 1 = 6. BCH codes allow efficient algebraic bounded distance decoding, but their design does not aim at efficient trellis decoding. And indeed, although the [15,7,5] BCH code has state complexity at least five, a [15,7,5] code with state complexity 4 does exist. An example [5] is provided by the code C generated by the following matrix G: 000000011111000 000000000011111 111110000000000 G= 000111110000000 000001101010100 001010101100000 010000111000010 By computing the weights of all linear combinations of the rows of G, one obtains that G generates a [15,7,5] code with 16 words of weight five. As the [15,7,5] BCH code has 18 words of weight five, our code shows a somewhat better performance on good channels (high SNR). From G one readily obtains that for each i, dim(Pi) + dim(Fi) ~ 3, and so s = 4. As a final remark we note that C is reversible, that is, reversing the order of the symbols in a code word results in (another) code word. In the remainder of this section, we show how G was constructed. We will see that the goal of obtaining state complexity = 4 strongly suggests to use the six top rows of G and that just a few possibilities need to be checked. So we wish to design a [15,7,5] code D with state complexity four. For notational convenience, the dimensions of the Pi and F; are denoted by Pi and J;, respectively. In order that s = 4, we should have that 1; + Pi ~ 3 if 1 :::;i :::; 15. F7, the code consisting of the words of D starting with 7 zeros, can be considered as a code of length 8 with minimum distance five. As k(8,5) = 2, 17 :::; 2. g, the code consisting of the words of D ending in eight zeroes, can be considered as a code of length 7. As k(7, 5) = 1, P7 :::; 1. As 17 + P7 ~ 3, 17 = 2 and P7 = 1. Similarly, fs = 1 78 and Ps = 2. This strongly suggests that the four top rows of G should be in a generator matrix for D. Let Pi(A) and j;(A) denote the dimensions of the i-th past and future subcodes of the code generated by the matrix A, consisting of the four top rows of G. We readily obtain that f,(A) ~ {l if i ::; 3 if 4 ::; i ::; 7 if 8 ::; i ::;10 if i ~ 11 and ",(A) ~ { ï if i::; 4 if5::;i::; 7 if 8 < i < 11 if i ~ 12 Consequently, fi(A) + Pi(A) ~ 3 if i rfc {4, 11}; f4(A) + P4(A) = f11 (A) + PH (A) = 2. If we add a row to A that starts with five zeros, then the dimension of the 4-th future subcode increases by one (starting with four zeros would already be sufficient). In each .row of A, the symbols in the positions 9 and 10 are equal; so are the symbols in the positions 11,12 and 13,14. Therefore, we write a '1' in the positions 9,11 and 13 of our new row, and a '0' in the positions 10,12 and 14: this already yields a distance three. It is easy to check that a distance 5 is obtained if we write '11' in the positions 6 and 7; the symbol in position 8 can still be chosen arbitrarily. We choose it to be a zero. In this way, we obtain the fifth row of G; the sixth row of G is obtained by reversing the fifth row. Let B denote the code generated by the six top rows of G. By construction, the sum of the dimensions of the i-th future subcode of B and the i-th past subcode of B is at least three for every i. Consequently, any [15,7] code with the six top rows of G in its generator matrix has state complexity four. We only have to take care that the resulting code has minimum distance five. As the two leftmost symbols of any word of B are equal, we start the new row with Ol: this already builds up a distance one in the two leftmost positions. Similarly, we end this row with 10. As the positions from {3, 4, 5, 11, 12, 13} are information positions for B, we assume without loss of general- ity that the new row only has zeros in these positions. We only have to fill in zeros and ones in the five remaining positions, i.e., in the positions 6,7,8,9,10. The code obtained so [ar is reversible. In order to keep this property, and to reduce the number of possibilities to investigate, we impose that the bit pattern in the positions 6,7,8,9,10 should have the form (a, b, c, b, a). As the weight of the new row should be at least five, the weight of (a, b, c, b, a) should be at least three, and so only four possibilities have to be investigated: (1,1,1,1,1), (1,1,0,1,1), (0,1,1,1,0) and (1,0,1,1,0). It turns out that the choice (0,1,1,1,0) yields a code with minimum distance five; for the other choices, a code with minimum distance four is obtained. Appendix: the structure of two-dimensional binary codes meeting the Griesmer bound In this appendix, we show the following result. If C is a binary [n, 2, d] code, then n ~ d + i%l. In case of equality, all non-zero words of C have weight d if d is even; if d is odd, two non-zero words of C have weight 79 d, the other non-zero word has weight d + 1. The first statement is a special case of the Griesmer bound [9, p. 59]. Let us prove it anyhow; this gives us the opportunity to prove the second statement simultaneously. Let C be a binary rn, 2, d] code, and let its non-zero words be x.y, and z=xElly. Without loss of generality, we assume x, y and z are of the following form x = 1u1vOwOx , y = luOv1wox, and so z = x Elly = OU1vlwox. We clearly have that n = u + v + w + x. As each of the non-zero vectors of C has weight at least d, we have that u + v ~ d, u + w ~ d and v + w ~ d. Consequently, we have that 2n = 2(u + v + w + x) = wt(x) + wt(y) + wt(z) + 2x ~ 3d + 2x ::::3d. and so n ~ r¥l = d + rH If d is even and 2n = 3d, all inequalities above must be equalities, and so all non-zero words of C have weight d, and x = 0, u = v = w = ~. If d is odd and 2n = 3d + 1, then x = 0 and wt(x) + wt(y) + wt(z)= 2n = 3d + l. This equality implies that one non-zero word of C has weight d + 1 and the two other non-zero words have weight d, as each non-zero word of C has weight at least d. If z is the word of weight d + 1, then u = L~J and v = w = r~l. References [1] L.R. Bahl, J. Cocke, F. Jelinek and J. Raviv, "Optimal decoding of linear codes for minimizing symbol error rate", IEEE Trans. on Inform. Th., Vol. 20, No. 2, pp. 284-287, March 1974. [2] J.K. Wolf, "Efficient maximum-likelihood decoding of linear block codes using a trellis", IEEE Trans. on Inform. Th., Vol. 24, No. 1, Jan. 1978, pp. 76-80. [3] R.J. MeEliece, "On the BCJR trellis for linear block codes", IEEE Trans. on Inform. Th., Vol. 42, No. 4, July 1996, pp. 1072-1092. [4] IEEE Trans. on Inform. Th., Nov. 96, Vol. 42, No. 6, Part I, Special issue on codes and complexity. [fi] P. Schuurman, "A table of state complexity bounds for binary linear codes", IEEE Trans. on Inform. Th., Vol. 42, No. 6, Part I, pp. 2034-2042. [6] G.D. Forney, Jr., "Coset codes - Part II: binary lattices and related codes", IEEE Trans. on Inform. Th., Vol. 34, No. 5, Part II' Sept. 1988, pp. 1152-1187. [7] A. Vardy and Y. Be'ery, "Maximum-likelihood soft decision decoding of BCH codes", IEEE Trans. on Inform. Th., Vol. 40, No. 2, March 1994, pp. 546-554. [8] 0. Ytrehus, "On the trellis complexity of certain binarylinear block codes", IEEE Trans. on Inform. Th., Vol. 41, No. 2, March 1995, pp. 559-560. [9] J.H. van Lint, Introduction to Coding Theory, Springer, 1982. 80 OBJECTIVE MEASUREMENT OF VIDEO QUALITY Dr. John G. Beerends, Dr. Andries P. Hekstra, KPN Research Abstract An objective perceptual video quality measure based on a simple perceptual improvement ofthe ANSI video quality measure is presented. The correlation between predicted objective and observed subjective scores is 0.31 for the ANSI based implementation and 0.87 for the perceptual improved quality measure. 1. Introduetion Within question 11 ofITU- T SG 121 objective measurement methods for evaluating audio-visual quality in multimedia services is studied. Such methods can be devided into two classes, one in which the system under test is characterised using know-how ofthe system, and one where the quality ofthe output signal is characterised using a model of human perception. The first approach will be called glass-box approach because one needs a model ofthe systemunder test (Figure 1) while in the second one the system itselfis not modelled and viewed as a black box (Figure 2). The advantage ofthe black box approach is that no information is needed about the system under test. Glass box approaches for modern telecommunication systems are extremely difficult because ofthe non-linear, time-varying behaviour of these systems. For speech quality measurement the glass box approach has resulted in a number of models [1], [2] while for the black box approach recently a perceptual model (PSQM, [13], [14]) was accepted for measuring telephone-band speech quality [5]. Because the glass box approach is not suited for modem non-linear, time-varying systems such as low bit rate speech codecs they are supplemented with subjective evaluations [1]. The black box approach can be used for any system as long as large sets of speech signals are used in combination with an accurate model ofhuman auditory perception. input (test- signal) FIGURE 1 Glass box approach towards objective measurement of the quality of an audio/video system. A model of the system is used to estimate its parameters, using a test signal that is appropri- ate for the device. The set of parameters is mapped to the subjective quality of the audio/ video system 1 This article is based on a contribution to ITV SGI2. B1 input output (reference) AudioNideo (degraded) r---.-~~--~--,---~ System subjective Q-objective quality ~ quality Subject Perceptual model FIGURE2 Black box approach towards objective measurement of the quality of an audio/video system. A computer model of the subject is used to compare the output of the device under test with the input, using any audio/video signal that is appropriate for the service provided (speech, music, natural video scenes, etc). For video quality measurement ANSI accepted a standard [6] that was also submitted to ITU- T SG 12 as a proposal [7]. However, in the ANSI approach the glass box and black box approach are mixed in contrast to the recommendations on measuring speech quality. In order to keep study group 12 recommendations coherent it is to be preferred to split objective video quality recommendations into glass box and a black box approaches. The ANSI proposal [7] starts with a number of measurements using test signals for determining model parameters like gain and offset (glass box approach). Because ofthe non-linear, time-varying behaviour of modern video codecs this approach only has a limited value. In a separate section a black box approach is proposed applicable to natural scenes. It allows the use of a large set of quality parameters derived from the comparison ofthe input and output as in Figure 2. However, no single model specification is given allowing a wide variety of different implementations. In this contribution a proposal is given for such a unique implementation. The scope ofthe objective perceptual video quality measure that is proposed is limited to low and medium quality video (less than television quality). The database used in this contribution resulted from a subjective test of different MPEG-4 video codec proposals [9]. 2. The ANSI based video quality measure A first point of attention in implementing the ANSI method is that no space is defined in which all calculations have to be performed. Implicitly the standard only deals with the luminance signal. However, ignoring colour information is not acceptable in a video quality measure that must cope with a wide variety of distortions. Therefore, we decided to extend the recommendation to the colour domain. The best space for all calculations is the one where equal distances represent equally perceptible differences. Although literature provides many examples of such spaces the one that is most widely used for colour television is the L*u*v* space [11]. All results given in this contribution are based on calculations in this L *u*v* space. 82 Within the ANSI proposal a large set of quality indicators is proposed. This report starts with the evaluation ofthe first 10 quality indicators as given in Table Al of[7]. These indicators have the advantage that they can be calculated fairly easy, no large storage is required because both the input frame and output frame of the video sequence are mapped onto a single scalar. If each quality indicator is calculated in all three dimensions ofthe L*u*v* space we get a total number of30 quality parameters. However, indicator 5 is only calculated on the luminance signal L * while all indicators that use the Sabel operator (edge detection, nr. 6, 7, 8 and 10) turned out to have a chrominance weighting that was about the same for both the u* and v* component. To keep the number offree parameters as low as possible the two chrominance parameters for these indicators are combined to a single parameter. This results in a totalof 24 quality parameters derived from the 10 quality indicators. 3. Validation ofthe ANSI based video quality measure The ANSI model was optimised on a set of 40 sequences of the MPEG-4 database (database MPEG-4a) using a multiple linear regression [12]. This optirnisation resulted in a correlation ofO.89 (see Figure 3). If only the luminance signal L * is used the correlation dropped to 0.73, too low for use in practical measurements. Colour information can thus not be neglected in an objective video quality measure. Predicted vs. Observed Values Dependent variable: MOS gj 5 r·· · ·..· ·; · · -v-l · ·O..·CO ..7··:r·.-'-": .i......................... j :::s ~ ~ ~ 3 f ..· ......·..·....·..·..·....··-f- ......·..,........·......·.... · o "o.._ Regression o 2 4 6 8 95% confid. Predicted Values FIGURE 3 Results of the ANSI based video quality measure on the MPEG-4a database using an optimal multiple linear regression on the subjective results of the MPEG-4a database. Correlation ofthis optimal fit is 0.89. Next the subjective scores ofa second set of36 sequences, database MPEG-4b, were predicted using the regression coefficients obtained from the optirnisation ofthe ANSI model on the MPEG-4a database. The result was a correlation ofO.31 (see Figure 4) showing that the predictive power of the model is too low in order to be useful in 83 practical situations. The reason for this is probably that the 24 quality parameters only have a limited perceptual interpretation. Subjects do not map solely an input frame and an output frame to a scalar and then compare these numbers, but will also compare the most relevant parts on a local space scale. Our goal is now to update the ANSI model using the best parts ofit in combination with a number ofnew indicators that are based on know how ofthe human visual system. Predicted vs. Observed Values Dependent variable: MOS 11 9 0 7 III Ql :J ro > ." 5 Ql ~ ill ..a 0 3 '0..... Regression 3 4 5 6 95% confid. 2 Predicted Values FIGURE4 Results of the prediction of the subjective scores of the MPEG-4b database with the ANSI based video quality measure. Correlation between predicted and observed scores is 0.31. 4. A perceptual video quality measure based on the ANSI approach The rational behind the so called asymmetry effect is that when something is left out of the original the remaining signal is still one coherent percept while the introduetion of an artefact causes a disintegrated additional percept leading to a more objectionable distortion. The key idea to improve the ANSI quality measure is to use the idea of asymmetry on a pixel matrix basis. In the ANSI document three different levels of quality features are defined, scalar, vector and matrix features. In the previous section the implemented quality measure was derived only from the scalar features. With this implementation one needs large databases because ofthe great number offreedoms that are used in the multiple regression. Furthermore it was shown in the previous section that predicting subjective scores for a database using a model optimised on a slightly different database, is not feasible. Extending the model with vector and matrix features would give an even larger number offree parameters, thus increasing the problem even more. 84 Therefore a more basic perceptual approach was taken to develop a quality measure that uses less parameters and has good predictive power. In literature there are many models that deal with the lower levels ofauditory perception (see e.g. [15]). However, as stated, the higher levels of cognitive processing dominate the perception of audio and video quality. A combination ofperceptual and cognitive modelling for measuring video quality could not be found in the literature. The asymmetry idea however was used in an earlier paper by the originators ofthe ANSI model [16] in a more fundamental form. They implemented it by using a quality indicator derived from the positive difference between the sobel filtered output and input frames (introduced edges). Furthermore they made a distinction between still and moving parts. This idea is combined with the following basics of human perception: 1. The luminance channel is more sensitive to spatial edges then the chrominance channel [18] 2. When objects are moving spatial edges become less dominant [17] This leads to the following sets of qualityparameters: QI = mean+ {still( Sobel(OUTL.)) - still( Sobel(IN L'))} (1) Q2 = mean; {still(Sobel(OUTL.)) - still(Sobel(IN L'))} (2) Q3 = meanl{still( OU[.,.) - still(INu.)}1 + meanl{Still( OUT".) - Still(JNv.)}1 (3) Q4 = meanl{motion(OUTL') - motion(JN L.)}I (4) Qs = meanl{motion( OU1'..) - motion(INu*)}1 +meanl{motion(OUT".) - mOtion(INv.}1 (5) The Sobel operator is again used as edge detector. The mean+ and mean; operators indicate the mean over the positive parts (introduced edges, blocking) and the mean over the negative parts (left out edges, blurring) respectively. When these parameters are combined with parameters derived from the following ANSI quality indicators: stdspace (Sobel(IN.)) - std,pace(Sobel( OUT,,)) (6) std space ( Sobel( IN J) A2 = i.m. ( max{O, RMS(MN) - RMS(!lOUT)}), (7) with MN = IN. - JN._1, !lOUT = OUT" - OUT,,_I itime({ XI})= std.me (high pass filter( {XI})) high pass filter respons = (-1 2 -1) 85 and Stdspace (!-"O UT)) l A, = maxön" { log., ( stdspace(MN) l' (8) we get a total number of 13 quality parameters. From A 1two quality parameters, Q6, Q7 are derived, one for the luminance L * and one for the combined chrominance signal. From A2 and A3 six quality parameters are derived, Q8,. Q13, because A2 and A3 operate on the L*u*v* components separately. This perceptual ANSI model thus has only about halfthe number of quality parameters when compared to the ANSI model presented in section 2. When the model is optimised on the :MPEG-4a database the correlation between objective and subjective results is 0.93 (see Figure 5). Predicted vs. Observed Values Dependent variable: MOS "o.._ Regression 95% confld. Predicted ValUlOS FIGURE5 Results of the perceptual video quality measure on the MPEG-4a database using an optimal multiple linear regression on the subjective results of the MPEG-4a database. Correlation of this optimal fit is 0.93. Although this is only marginally better that the ANSI approach presented in the previous section (see Figure 3), the proof ofthe power ofthis perceptual model lies in the prediction of the subjective scores of database :MPEG-4b. The correlation between predicted and measured scores is 0.87 (see Figure 6) which significantly better then the 0.31 ofthe ANSI approach (see Figure 4). 86 Predicted vs. Observed Values Dependent variable: MOS 11 9 c L.·· .... ' .>: ~ 7 ti) ~ Q) öi > 5 0°)? .;;;(.; ..... ---- ..... 0· '.. -0 , Q) ~ ° ° Q) ti) .0 0 3 .. ' -;%: .."0 ° I·' ...... ........ a >. ~ ........... [<:l ... -1 / ~é I '0... Regression 95% confid. -1 o 2 3 4 5 6 7 8 Predicted Values FIGURE 6 Results of the prediction of the subjective scores of the MPEG-4b database with the perceptual video quality measure. Correlation between predicted and observed scores IS 0.87. 5. Results and conclusions Table 1 gives an overview ofthe results. It is clear that the ANSI based video quality measure derived from [7], does not give reliable predictions of the subjective video quality. Ifthe ANSI based quality measure would be extended to include more distortions, the number offree parameters would become too big. The perceptual video quality measure based on the ANSI approach requires only half ofthe number offree model parameters, while the correlation between predicted subjective scores and observed subjective scores increases from 0.31 to 0.87. Although this correlation is still below the correlation required for accurate predictions we think the model is a good basis for a newly to be developed ITU-T recommendation on the objective measurement ofvideo quality. Table 1. Overview ofthe results. The trained correlations are derived from an optimal fit of the free parameters on the subjective data. The untrained correlations are real predictions. MODEL NUMBER OF FREE CORRELATION CORRELA nON PARAMETERS TRAINED UNTRAINED ANSI 24 0.89 0.31 ANSI +_p_erceptual 13 0.93 0.87 87 6. References [1] ETS I, ETR 250 (VTQM-E), Speech communication quality from mouth to ear of 3, J kHz handset telephony across networks, July 1996. [2] CCITT, Blue Books, Volume 5 - Supplement No.3, Models for predicting transmission quality from objective measurements. [3] J.G. Beerends and J.A. Stemerdink, A perceptual speech-quality measure based on a psychocoustic sound representation, J. Audio Eng. Soc., Vol.42 nO.3, pp.1l5-123, March 1994. [4] J.G. Beerends, Modelling cognitive effects that play a role in the perception of speech quality, in Speech quality assessment, workshop papers, Bochwn, pp 1-9, November 1994. [5] ITU-T, Contribution COM 12-67, Draft recommendation P.861, Objective quality measurement of telephone-band (300-3400 Hz) speech codecs, study period 1993-1996. [6] ANSI, Standard Tl. 80 1.03-1996, Digital transport of one-way video signals - parameters for objective performance assessment. [7] ITU- T, Contribution COM 12-66, Selections from the draft American national standard: - Digital transport of one-way signals - parameters for objective performance assessment, study period 1993-1996. [8] ITU-T, Contribution COM 12-74, Review ofvalidation tests for objective speech quality measures, study period 1993-1996. [9] T. Alpert et al. Subjective Evaluation of AfPEG-4 Video Codec Proposals: Methodological Approach and Test Procedures. Image Communication, special issue on MPEG-4, May 1997. [10] ITU-R, Recommendation BT.500, Methodology for the Subjective Assessment ofthe Quality of Television Pictures, November 1993 [11] CIE. Colorimetry. Publication 15.2, 1986. [12] Statistica, General conventions & statisttos 1, Chapter 12, Multiple regression. StatSoft USA, 1995. [13] J.G. Beerends, Modelling a cognitive effects that play a role in the perception of speech quality, in Speech Quality Assessment, Workshop papers, Bochum, ppl-9, November 1994. [14] J.G. Beerends, Modelling a cognitive aspect in the measurement ofthe quality of music codecs, ABS Convention paper, preprint 3800, Amsterdam 1994. [15] A. B. Watson (edt), Measurement and prediction ofvisual quality, in DigitalImages and Hwnan Vision, MlT press, Cambridge Massachusetts, USA, 1993. [16] S.D. Voran, The development of objective video quality measures that emulate human perception. Globecom conf.publ.no.I776-1781 vol.3, 1991. [17] LA Olzak, J.P. Thomas. Seeing spatial patterns. Handbook ofPerception and Human Performance (Wiley, New York, 1986), sec. II: "Basic sensory processes I," chap. 7. [18] G.J.C. van der Horst, C.M.M. de Weert, MA Bouman. Transfer ofspatial chromaticity- contrast at the threshold in the human eye. J. Opt. Soc. Am. 57, pp 1260-1266, 1967. 88 An Eye Movement Compensated Spatio- Temporal Model for Predicting Distortion Visibility in Digital Image Sequences Stefan J.P. Westen, ReginaId L. Lagendijk, and Jan Biemond Delft University of Technology Department of Electrical Engineering, Information Theory Group P.O. Box 5031, NL-2600 GA, Delft The Netherlands Abstract We propose a vision model for predicting the significanee of coding errors in digital image sequences. Eye movements have a significant effect on distortion visibility, and hence they form an important part of the model. An algorithm is proposed to make a prediction of the eye movements a viewer will make when watching the image sequence. Further- more, the spatio-temporal frequency sensitivity and masking effects are included in the model. The model is based on a decomposition of the signal into frequency and orienta- tion bands, in order to allow accurate modeling of spatial masking, which occurs mainly between signal components which are similar in position, orientation, and frequency. 1. Introduetion The Mean Squared Error (MSE) is widely used as a distortion measure for optimization of image compression algorithms, probably because its calculation is very simple. However, it is not a very good measure of quality as experienced by human viewers. Therefore, many alternative distortion measures have been proposed that are based on the Human Visual System (HVS) [1-5]. Most of these measures are based on spatial models of the HVS, and give predictions for distortion visibility in still images. For the case of image sequences, much less work has been done [6-8]. A model for image sequences differs from a model for still pictures in the sense that it also incorporates temporal properties of vision. In particular, visual experiments have shown that the human eyes are capable of almost perfect motion compensation of object motion [9]. These eye movements are known as "Smooth Pursuit Eye Movement" (SPEM), and have a considerable influence on distortion visibility. However, most HVS models neglect these effects. In this work we present a spatic-temporal vision model which includes smooth pursuit eye movements. The model is an extension of our spatial model [5]. 89 2. Model structure Figure 1 shows the structure of the model. The inputs are the original and the distorted image sequence. First, a prediction is made of the eye movements that the viewer will make when viewing the sequence. The viewer eye movements lead to motion compensa- tion of the input sequence. The retinal image is the motion compensated version of the input sequence, under the assumption of perfect tracking by the human viewer of parts of the sequence (e.g. objects). The next part of the model is the spatio-temporal frequency sensitivity filter, which models the contrast sensitivity of the HVS. This filter is followed by a decornposition into a spatial image pyramid which contains spatial frequency bands and orientations, which is needed for accurate modeling of spatial masking effects. Mask- ing is modeled by a contrast transducer function. Finally, the normalized contrast differ- ences between the original and the distorted image sequences are combined into a local measure of distortion visibility at each spatial position in each image of the sequence. Ori ginal CSF ~ Spatial ___.. Contrast seq ~~ pyramid transducer t .... Eye Movement Prediction Summation Dec seq ~ n • CSF ~ Spatial pyramid ___.. transducer Contrast Figure 1: The general model structure. 3. Retinal image sequence calculation When an eye movement is made, the image that is projected to the retina makes a transla- tional movement. This translational movement alters the spatio-temporal frequency spec- trum of the retinal image, and hence the spatio-temporal sensitivity of the entire visual system. Experimental evidence suggests that the human eyes are very well capable of tracking objects in image sequences [9], which means that the frequency spectrum of the image on the retina will be different from the frequency spectrum of the image on the screen, and 90 hence the frequency sensitivity of the human visual system has to be converted into an image frequency sensitivity. However, it is very hard to predict beforehand the eye movements a viewer will make when watching the image sequence. Furthermore, these eye movements will be different for different viewers, because they will pay attention to different parts of the image. When viewing a certain moving object in the image, the most critical eye movement the viewer can make is when the object is perfectly tracked [9]. Hence, for each moving object there is a certain eye movement which williead to the highest visibility of errors in the objects. By assuming the worst case situation of perfect tracking, we can reduce the problem of viewer eye movement prediction to the problem of object motion estimation. Although we could actually calculate all possibilities for the retinal image by shifting the image sequence in accordance to the motion, in our vision model, the temporal filtering in the contrast sensitivity filter is done along the motion trajectories of the objects. A well-known and widely used algorithm for motion estimation is the full search block mateher and the hierarchical version of it [14,15]. In order to estimate the motion at a cer- tain pixel in the image, a block of surrounding pixels is taken and compared with pixels in the previous image, shifted by a displacement vector. The displacement vector which gives the best match is taken as the estimate for the motion at the current position. Although block matching gives a low displaced frame difference when used for prediction (for instance in video coding), we are not interested in a low frame difference but in a con- sistent estimate of object motion. The main problem with block matching algorithms is the selection of a good block size: when large blocks are used we get problems when the block contains multiple motion regions, and when small blocks are used there is little correspondence with the actual motion and high sensitivity to noise. In the hierchical block mateher [15], the estimation is first done with large blocks, followed by a refinement with smaller blocks. The search on the small block size level is constrained by the result of the search on the large block size level. These constraints form another problem: in uniform areas we want the search on the small block size level to be very constrained, because we are quite confident about the result of the first stage. However, near object boundaries, the result of the first stage tends to be unreliable, and therefore the search with the smaller block size should be less con- strained. Figure 2 shows an example of the result of hierchical block matching. Around the car, the estimated motion vectors are not accurate enough for use in our vision model. Therefore, we use a different motion estimator, which has some similarities with the hier- chical block matching algorithm. Our motion estimation algorithm is based on the idea that the estimation with the large block size will give us a set of motion vectors, and that in the second stage for each pixel we select which vector from the set gives the best match. The second stage estimation phase in the hierchical block matching algorithm is replaced by a selection phase in our algorithm. The search in the second stage is constrained by the fact that we are only allowed to select from the set of vectors which belong to pixels which are near the current pixel in the current frame. An example of the result of our method is shown in figure 3. 91 This vector field was estimated by starting with a full search block rnatcher for every Sth pixel, with a block size of 64 by 64. In the following selection stage, for every 8th pixel, we selected the best candidate from all motion vectors around the current pixel in an area of 16 by 16. The selection phase is carried out with block sizes 32, 16,8, and 4. In the selection phase, only a few candidates are evaluated for each 8th pixel, which means that most of the work is in the initial estimation phase. Our motion estimation algorithm is quite simple and could be useful for other applications as well. Figure 2a: result of hierchical block matching, 2b: result of the hierarchical selection algorithm 4. Spatio-temporal frequency sensitivity The sensitivity of the human visual system to stimuli which vary in space and in time has been measured by Kelly [11], Robson [12], and by Van Nes and Koenderink [13]. The measurements showed that for high spatial and temporal frequencies, the spatio-temporal sensitivity is separable into a spatial part and a temporal part, e.g. the spatial sensitivity is independent of the temporal frequency and the temporal sensitivity is independent of the spatial frequency. However, at low spatial and temporal frequencies, this is not the case. Non-separable spatio-temporal filters are not really an option for a vision model, because they take very long to calculate. Lukas and Budrikis proposed an efficient "visual filter" to model the frequency sensitivity and the influence of the background luminance on the fre- quency sensitivity [6]. This filter is given by: c:.' e X',y, t) = A . E (x, ., y, t) (1) k + I (x, y, t) where E ex,y, t) and I (x, y, t) are filtered versions of the input sequence, and A and k are constants. E (x, y, t) is given by: 92 E (x, y, t) = Re (x, y, t) ® L (x, y, t) , (2) and I (x, y, t) is given by: I (x, y, t) = Ri (x, y, t) ® L (x, y, t) , (3) where L (x, y, t) denotes the screen luminance (measured in Cd/m2), and Re (x, y, t) and Ri (x, y, t) denote the excitation and inhibition response functions, which are given by: (4) and Ri (x, y, t) = Ui (X, y) . Vi (t) , (5) where Ue (x, y) and Ui (x, y) are Gaussian functions, and Ve (t) and Vi (t) are second order exponentional functions. The Lukas and Budrikis visual filter is computationally efficient, because the only filtering operations which are required are spatial Gaussian fil- ters and temporal exponential filters. The overall filter response however is non-separable. 5. Spatial decomposition Masking is the reduction of the visibility of a stimulus (the quantization error) by the pres- ence of another stimulus (the original image). Psychophysical experiments have shown that spatial masking in images mainly occurs between image components which have sim- ilar position, orientation, and spatial frequency [16]. Therefore, in our model the image sequence is decomposed into frequency and orientation bands, and masking is modeled by assuming in-band masking, which means that masking in a certain frequency and orienta- tion band is only influenced by the image content in that particular band. Results from visual experiments suggest a radial bandwidth between 1 and 2 octaves and an orientation bandwidth between 20 and 50 degrees. In our model, we use a variant of the steerable pyramid by Simoncelli and Adelson [17]. This decomposition gives a radial bandwidth of 1 octave and an orientation bandwidth of 45 degrees. Figure 6 shows the pyramid decomposition. Unlike critically sampled decom- positions (DWT,SBC), the steerable pyramid is completely shift-invariant. In a critically sampled decomposition, a shift of one pixel may result in a completely different decompo- sition. However, this shift variance is undesirable in our model, because shifting the image by one pixel has no effect on the image quality, and therefore the model should give the same result. The decomposition results in 20 band-pass and 1 low-pass images. More details on filter design can be found in [18]. 93 ----------------~ Figure 4: The analysis/synthesis filter bank used for the spatial decomposition into frequency bands and orientations. The filters Lo and Lj are low-pass filters, Ho and HI are high-pass filters, FI ..4 are directional (fan) filters. The total decomposition is obtained by inserting the dashed part into the white dot recur- sively 3 times. This results in 20 oriented frequency bands and 1 low-pass fre- quency band 6. Contrast transducer In order to model masking effects, a contrast transducer is applied to the decomposed image components. Classical measurements on contrast masking have been done by Legge and Foley [19]. A few years later, Bradley and Ohzawa showed that the masking function is approximately the same at different frequencies [20], and therefore we can use one function for all frequency bands and orientations in our model (except for the low- 94 pass component, where no masking is modeled). The contrast transducer function is given by: ~ C out (x, y, t, k, I) = aC (x, y, t, k, I) (6) 2 ' C (x, y, t, k, I) + 'Y where C(x,y,t,k,l) is the input contrast at position (x,y) at time instant t in the frequency band with index (k,l), Cout is the result, and a, ~, and 'Y are constants. Currently, the con- stant values are a = 1, ~ = 2.4 and 'Y = 1. Similar functions have been used in other vision models [2,4]. The transducer function saturates for high contrasts, which means that a larger input increment is needed in the input to obtain the same increment in the output. This means that when a strong signal is present, the threshold for a difference is increased, because the difference is masked by the signal. 7. Error summation After the contrast transducer, the difference is taken between the decomposed image corn- ponents of the original and the distorted image. This results in a perceptually weighted dif- ference at each position, orientation, and frequency band. However, in most applications it is more usefull to have one number per pixel position which indicates local distortion vis- ibility. Therefore, for each pixel position, all differences in all frequency bands and orien- tations are squared and added together. This results in an image which indicates locally the distortion visibility at each pixel position. 8. Conclusions A vision model was proposed for use in digital image compression. Smooth pursuit eye movements have a significant influence on dislortion visibility, and therefore a method was proposed to predict the most critical eye movements by using a new motion estima- tion algorithm. The signal is split into frequency bands and orientations, which is in accor- dance with experiments that show tbat signal components only influence each other when they have similar position, orientation, and frequency. At current, we are evaluating the use of the model in an MPEG-2 video compression system, by using the model for calcu- lating sensitivities for DCT coefficients, and using these sensitivities for coefficient thresholding, rate control, and bit allocation. References 1. Zetzsche C., and G. Hauske, "Multiple channel model for the prediction of subjective image quality", SPIE conference on Human Vision, Visual Processing, and Digital Display, vol. 1077, pp. 209-216, 1989. 2. Lubin, J. , "The Use of Psychophysical Data and Models in the Analysis of Display System Perfor- mance", In: Digital Images and Human Vision, A.B. Watson, editor, MIT Press, Cambridge, Massachu- setts, 1993. 95 3. Daly, S. , "The Visible Differences Predictor: An algorithm for the Assessment of Image Fidelity", In: Digital Images and Human Vision, A.B. Watson, editor, MIT Press, Cambridge, Massachusetts, 1993. 4. Teo, P.C., and D.J. Heeger, "Perceptual Image Distortion", Human Vision, Visual Processing, and Digi- tal Display V, SPIE, 1994. 5. Westen, SJ.P., R.L. Lagendijk, J. Biemond, "Perceptual image quality based on a multiple channel HVS model", ICASSP-95, pp. 2351-2354, 1995. 6. Lukas, F.X.J., and Z.L. Budrikis, "Picture quality prediction based on a visual model", IEEE Transac- tions on Communications, vol. 30, no. 7, pp. 1679-1692, 1982. 7. Girod, B., "Ein Modell der menschlichen visuellen Wahrnehmung zur Irrelevanzreduktion von Fernse- hluminanzsignalen", VD! Verlag, Düsseldorf, 1988. 8. van den Branden Lambrecht, C., "Col or moving pictures quality metric", ICIP-96, pp. 877-880, Lau- sanne, Switzerland, 1996. 9. Girod, B., "Eye movements and coding of video sequences", SPIE Visual Communications and Image Processing 1988, SPIE lOOI. 10. Westerink, J.H.D.M., and C. Teunissen, "Perceived sharpness in moving images", Human Vision and Electronic Imaging: Models, Methods, and Applications, J. Allebach and B. Rogowitz, editors, SPIE 1249. ll. Kelly, D.H., "Adaptation effects on spatia-temporal sine-wave thresholds", Vision Research, vol. 12, pp 89-101, 1972. 12. Robson, J.G., "Spatial and temporal contrast sensitiviry functions of the visual system", Journalof the Optical Society of America, vol. 56, pp. 1141-1142, 166. 13. van Nes, F.L., J.J. Koenderink, H. Nas & M.A. Bouman, "Spatie-temporal modulation transfer in the human eye", Journal ofthe Optical Soeciety of America, vol. 57, pp. 1082-1088, 1967. 14. Musmann, H.G., P. Pirsch, and H.l. Grallert, "Advances in Picture Coding", Proc. IEEE, vol. 73, no. 4, pp.523-548,1985. 15. Bierling, M., "Displacement estimation by hierarchical blockmatching", SPIE Visual Communications and Image Processing, Vol. lOOI, pp. 942-951,1988. 16. Olzak, L.A., and J.P. Thomas, "Seeing spatial patterns", In: Handbook ofperception and Human Perfor- mance, K. Boff, L. Kaufman, and J. Thomas, editors, Wiley, New York, 1986. 17. Simoncelli, E.P., W.T. Freeman, E.H. Adelson, and D.J. Heeger, "Shiftable Multiscale Transforms", IEEE Transactions on Information Theory, vol. 38, no. 2, 1992. 18. Westen, SJ.P., R.L. Lagendijk, and J. Biemond, "Optimization of JPEG color image coding using a human visual system model", SPJE conference on Human Vision and Elcctronic Imaging, San Jose, vol. 2657,pp. 370-381, 1996. 19. Legge, G.E., and J.M. Fo1ey, "Contrast masking in human vision", Journalof the Optical Society of America, vol. 70, pp 1458-1471, 1980. 20. Bradley, A., and I. Ohzawa, "A comparison of Contrast Detection and Discrimination", Vision Research, Vol. 26, pp. 991-997,1986. 96 Quantum Key Agreement Marten van Dijk and Arie Koppelaar 1 Abstract. We consider quantum key agreement between two legal users Alice and Bob in which an eavesdropper Eve intercepts and resends photons. We show how Alice and Bob attain a probabilistic upper bound on Eve's knowledge. 1 Quantum Transmission We consider the quantum key agreement method described by Bennett et al. [1] in which an eavesdropper uses the intercept Zresend strategy. We derive the probability that an eavesdropper obtains at most I bits of information given the number of errors after the raw quantum transmission. Bennett et al. considered quantum key agreement between two legal users Alice and Bob. It is based on Heisenberg's uncertainty principle. Alice sends a random sequence of the four canonical kinds of polarized photons to Bob, horizontal, ver- tical, left-circular, and right-circular. For each received photon Bob chooses randomly whether to measure the photon's rectilinear or circular polarization. Then Bob an- nounces publicly which kind of measurement he made. Alice replies publicly whether the transmitted photon was rectilinear or circular polarized. Alice and Bob then dis- card all bit positions for which Bob's measurement did not match and all bit positions for which Bob did not detect any photon at all. The polarizations of the remaining photons are interpreted as bit 0 for horizontal or left-circular, and bit 1 for vertical and right-circular. These steps together are called a raw quantum transmission session. In [1] different eavesdropping strategies are presented. We only consider the inter- cept Zresendstrategy during the raw quantum transmission. In this case the eavesdrop- per Eve intercepts selected pulses and reads them in bases of her choosing. Then Eve fabricates a pulse of the same polarization as she detected, which she sends to Bob. We assume that Eve ll~e~ rectilinear and circular bases only (there are more bases, see [1]). With probability 1/2 Eve measures the polarization of the intercepted photon in the correct base (that is the base agreed by Alice and Bob). Heisenberg's uncertainty principle implies that measuring a photon's linear polarization randomizes its circular polarization, and vice versa. Hence, with probability 1/2 Eve interprets intercepted photons measured by her in the wrong base correctly (that is Eve's interpretation coincides with Alice's interpretation). Similarly, with probability 1/2 Bob interprets intercepted photons measured by Eve in the wrong base correctly. For simplicity we assume that Bob and Eve have detectors of 100% quantum efficiency,that is measuring in the correct base imposes no errors (to Alice and Bob this is a worst case assumption since Eve is assumed to have a perfect detector and all errors occurred in Bob's detector are assumed to be caused by Eve). So after the agreement of the bases between Alice and Bob, both Eve and Bob have bit error probability 1/4 for the bits intercepted by Eve. There is a significant difference between the channel from Alice to Bob and the 1 Philips Research Laboratories, 5656 AA Eindhoven, the Netherlands, Email mvandijk@natlab.research.philips.com, koppelr@natlab.research.philips.com 97 channel from Alice to Eve; Eve knows which intercepted photons were measured by her in correct base, where Bob does not know which intercepted photons were measured by Eve in correct base. This extra knowledge of Eve gives Eve information about whether her interpretation of an intercepted photon is correct or completely arbitrary (that is independent of Alice's interpretation). We conclude that Eve's channel is superior to Bob's channel (which is not surprising since Eve is an active eavesdropper). Alice and Bob want to distill a secret key of a certain minimallength from each raw quantum transmission session despite eavesdropping by Eve. They remove all raw quantum transmission sessions for which it is not possible to distill a secret key of sufficient length. It is Eve's intention that Alice and Bob generate a secret key about which Eve gets some information. Hence, Eve's activities should not prevent Alice and Bob from generating a secret key. Therefore it can be better for Eve only to intercept a part of the pulses as otherwise Alice and Bob may not generate a secret key at all. Alice and Bob have to solve the following problems: 1. Find with high probability the location of all, say t errors after agreement of their bases. This can be done by means of information reconciliation, see [1,4]. During the information reconciliation, Alice and Bob reveal bits to Eve. The exact number b of bits revealed to Eve can be computed by Alice and Bob. 2. Given the number of errors t, compute an upper bound Z, which holds with high probability, on the number of bits of information obtained by Eve during the raw quantum transmission session. This problem will be discussed here in Section 2. 3. Generate a secret key given that Eve obtained at most l+ b bits of information, and compute the secret information leaking to Eve. This can be solved by means of privacy amplification, see [3, 2, 5]. 2 Probabilistic Upper Bound To solve the second problem we introduce some notation. By n we denote the number of bits shared between Alice and Bob after a raw quantum transmission session (n is fixed, Alice keeps on sending photons until Bob has received n photons in correct base). The random variable representing the number of bits intercepted/resent by Eve is denoted by J( (~ n). We notice that we only discus the intercept Zresendeavesdropping strategy where intercepted photons are measured in rectilinear and circular base only. The random variable representing the number of deterruinistic bits of inforrnation of the raw quantum transmission session leaking to Eve is denoted by L, and the random variable representing the number of errors which Alice and Bob have after agreement of their bases is denoted by T. Notice that L + T < K, and that given J{ = k the expected values of L and T are equal to k/2 and k/4, respectively. Our goal is to find a function le such that P(L ~ Ze(T)) > 1 - ê. 98 I.e., if T = t is measured during information reconciliation then IE(t) is an upper bound on L with probability at least 1 - e. This means that in a fraction é of all quantum transmission sessions Alice and Bob assume an incorrect upper bound. Thus they require e to be small. We stress that IE describes a probabilisiic upper bound on Eve's knowledge. Random variable K represents Eve's strategy of partial intercept/resend eavesdrop- ping. Probability distributions PL and PT depend on the value of K. The value taken on by K is not known to Alice and Bob. However, after the reconciliation phase they know with high probability the value taken on by T. For 0 S k, t, I S n Alice and Bob are interested in Pi L :2: liT = i, K = k), the probability that the number of deterrn- inistic bits of information of the raw quantum transmission session leaking to Eve is at least I given the number of errors t which Alice and Bob have after agreement of their bases, calculated under the assumption that Eve intercepted k bits. Lemma 2.1 characterizes this quantity. As we will show, it leads to a probabilistic upper bound. Before we state and prove the lemma we analyse a few probabilities. We have seen that with probability 1/2 Eve measures an intercepted photon in correct base. With probability 1/2 Bob interprets an intercepted and resent photon measured by Eve in the wrong base wrongly, and with probability 1/4 Bob interprets an intercepted and resent photon wrongly. Henceforward, taking our quantum transmission model into account we obtain e) (1/2/, C~ I) (1/2)k-l, G) (1/4)t(3/4)k-t, (1) and P-(lli kj' = PLIK( 11k) PT1L,K(tI/, k) = (k - t) (2/3)k-t-1 (1/3)1 (2) LIT,h , PTIK(tlk) I . The binomial distribution can be upper bounded by, see [6, pp. 61-70], t 1=0 G)pl(l - pr-I < F ((m - pn + 1/2)/Vnp(1 - p)), (3) where Feu) = e-u2/2 if u S 0 and F(u) = 1 if u :2: O. For 0 < ex < 1 we define u", by F(ua) = a, i.e. u'" = -Vln(1/a2). Lemma 2.1 Let 0 S I, t, k S n such that l+ t S k. Then P(L:2: liT = t,K = k) kfl (k ~ t) (2/3)k-t-j (1/3)j j=O J < F (V2(k - t) - 3(1- 1/2)/V2(k - t)) 99 and P(T::::; tiJ{ = k) ~ G) (1/4)i(3/4)k-j < F (4(t + 1/2)/v3k - Vf13) . The upper bound on probability P(L ~ liT = t, J< = k) is decreasing in l and increasing in k - t. The upper bound on probability P(T ::::;tiJ{ = k) is decreasing in k and increasing in t. Proof: Since L + T ::::; ]{ k-t P(L ~ liT = t, K = k) L hIT,K(j It, k), and (4) j=1 t P(T ::::;tiK = k) = L PTIK(jlk). (5) j=O By substituting (1) and (2) in (4) and (5), respectively, and by using (3) we obtain the desired results. o For e > 0 and 0 ::::;t, k ::::;n we define [",(t, k) as the minimal value I for which P(L> liT = t,K = k) < F (J2(k - t) - 3(1 + 1/2)/J2(k - t)) ::::;e. Thus if T = tand K = k then with probability at least 1 - e, the integer [",(t, k) is an upper bound of the number of deterministic bits leaked to Eve during the raw quantum transmission session. Alice and Bob will generate a short secret key during the privacy amplification phase if L(t, k) + b is large. This is the reason why Alice and Bob are interested in the minimal value I. We notice that the upper bound on P(L ~ liT = t, K = k) is decreasing in I and increasing in k - t. Hence, [.(t, k) increases if k - t increases. Suppose that Alice and Bob want to take the worst case (to them) strategy of Eve into account, that is k = n (then the upper bound on P(L > liT = t,K = k) is maximal W.r.t. k). We derive P(L > Î",('1',n)) L P(L > [",(l, n)IK = k, T = t)PK,T(k, t) k,t < L F ( J2(k - t) - 3(Î.(t, n) + 1/2)/ V2(k - t)) PK,T(k, t) k,t < L F ( V2(n - t) - 3(Î",(t, n) + 1/2)/ V2(n - t)) PK,T(k, t) k,t < L £PK,T(k, t) k,t £. Hence, P(L::::; î",(T,n)) > 1 - e and we achieved our goal. 100 Suppose that in reality Eve does not intercept , that is k = 0 implying that I = O. Then Alice and Bob will determine t = O. Since Z.(t, k) increases if t decreases Alice and Bob compute Zeet, n) » I = O. Their probabilistic upper bound i.(t, n) is not good. We conclude that Alice and Bob should not take a worst case situation (k = n) into account. Given T = t, it is better to estimate the value of K and to use this estimate to estimate L. In this way we will obtain a better upper bound to achieve our goal. This is considered in the following theorem. Theorem 2.2 Let 0 < a,(3 < 1/2. For real numbers O:S t < n we define k",(t) by ka (t) = min { k, 11 } , where k E IN is the minimal value for which U", ;::: 4(t + 1/2)/V3k - .jkj3. We define 1",,{J(t) as the minimal value l E IN for which and we define Z;(t) = min I"At). "'+fJ=e Functions k",(t), [",,{J(t), and l;(t) are well defined and decreasinq in a, a and (3, and e, respectively. We have that Pt L :s 1;(T) > 1 - e. Proof: In this proof we denote 4(t + 1/2)/v'3k - .jkj3 by f(t, k) and .J2(ka(t) - t)- 3(1 + 1/2)/ .J2(ka(t) - t) by ga(t, i). Since f(t, k)-+ - oe as k tends to infinity, ka(t) is well defined. Because Ua < 0 (0 < a < 1/2), f(t, t) = V3t + (1/2)/V3t > 0, and t < n, we have that k",(t) > t. Hence, inequality ue ;:::g",(t, l) with which [",,{J(t) is defined makes sense. Furthermore g",(t, 1)-+ - oe as I tends to infinity, hence 1",,{J(t) is well defined. If a increases then Ua increases, and if t decreases then f(t, k) decreases. Thus kC/Ct) decreases if a increases or t decreases. If k",(t) decreases then g",(t, I) decreases, Thus, if a increases then k,,(t) decreases and 1",{J(t) decreases. Since U{J increases if (3 increases l",,{J(t) decreases if (3 increases. Summarizing, we have that k",(t) and [",{J(t), and, hence, l;(t) are well defined and decreasing in a, a and (3, and e, respectively, Furthermore we have that k,,(t) is increasing in t. At the end of the proof we will show that P(ka(T) < K) < a (6) and ri: ;::: l",,{J(t)IT = t.K = k) < (3 if k,,(t) ;:::k. (7) 101 We require (6) and (7) to derive LP(L> 1""tJ(t)IK = k,T = t)PK,T(k,t) k,t L P(L> 1""tJ(t)IK = k,T = t)PK,T(k,t) k,t:k,,(t)2::k + L P(L> la,tJ(t)IK = k, T = t)PK,T(k, t) k,t:k,,(t) 1- c which is what we need to prove. Let us prove (6). We define t",(k) by ta(k) = (u",V3k + k - 2)/4. Then Ua = 4(ta(k) + 1/2)/V3k - .JkT3 = f(t",(k), k). Hence, the minimal value k for which u., ~ f(t",(k), k) is at most k. Since f(t",(k), k) is decreasing in k the minimal value for which Ua ~ f(t",(k), k) is equal to k. Hence, k",(t",(k)) = min{k, nl. (8) By using Lemma 2.1, (8), and the fact that k",(t) is increasing in t we derive L P(k,,(T) < kiK = k)PK(k) k L P(T < t",(k)lI< = k)PK(k) k < LF (4(Lt,,(k)J + 1/2)/V3k - Vk73) PK(k) k < L F (4(t,,(k) + 1/2)/V3k - ..jk/3) PK(k) k L F(u",)PK(k) = Q. k Let us prove (7). Suppose that k",(t) ~ k. Then by Lemma 2.1 and the fact that P(L > liT = t K = k) is increasing in k we obtain ç P(L> 1""tJ(t)IT = i,« = k) S; P(L ~ 1",tJ(t) + liT = i.te = ka(t)) < F (..j2(ka(t) - t) - 3(la,tJ(t) + 1/2)/..j2(k",(t) - t)) S; F(uf3) = {3. 102 This completes the proof. o Theorem 2.2 tells us that in a fraction 1-6 of all raw quantum transmission sessions Tand L attain values t and I such that I ::; l;(t). Hence, in a fraction 1 - 6 of all raw quantum transmissions l;(t) upper bounds the number of bits leaking to Eve. The following lemma and Figure 1 gives the relation between l;(t) and Î,,(t, n). In Figure 1 we used 1'/2,"/2(t) ~ l;(t), which appears to be a good approximation (see also Example 2.6). Lemma 2.3 For 0 ::; t ::; nand 0 < e < 1/2 l:(t) ::; I.(t, n) and equality holds ij k. (t) = n. Proof: By definition Î.(t,n) is the minimali for which F (J2(n - t) - 3(1 + 1/2)/J2(n - t)) ::;c. Hence, [,,(t, n) is the minimal I for which u" :::: J2(n - t) - 3(1 + 1/2)/ J2(n - t). Theorem 2.2 states that k",(t) is decreasing in a and at most n. So, if k.(t) = n then k",(t) = n for 0 < a::; e, and we have that !""._",(t) = Î._",(t,n) for 0 < a::; e. Hence, l;(t) = Î,,(t,n), since Î,(t,n) is decreasing in e. If alO then U",--+ - 00 and so k",(t) = n if a is sufficiently small. Hence, l",,,_,,,(t)--+Z,,(t,n) as alO, and we conclude that Z;(t) = min lcx,(3(t) ::; liml",,<_a(t) = Î,,(t,n). ,,+(3=. "'10 o The first example shows that it is possible that l;(t) = i.«, n). The second example demonstrates that inequality l;(t) < l.(t, n) may hold in Lemma 2.3. Example 2.4 Let n = 1000 and t = 200. Then P(L > 5991T = t, J{ = n) = 0.18798.10-6, where the upper bound (3) gives e = ~.7267· 10-6. For 0 Sa::; c We have that k",(t) = n. Hence, l;(t) = Î,,(t,n) = 600 by Lemma 2.3. Example 2.5 Let n = 1000 and t = 100. Then P(L > 6691T = t, J{ = n) = 0.2553.10-6, while the upper bound (3) gives 6 = 5.6967.10-6. Let a = (J = c/2. Then ka(t) = 620 and 1",,(3(t) = 401. Taking a = 6·8 and (J = 6· (1 - 8) it turns out that lDlAt) = 401 ± 2 for 0.34 ::; 8 ::; 0.98. We obtain the best bound l;(t) = 399 for 8 >::J 0.74. Hence, averaged over all raw quantum transmissions 399 upper bounds the number of bits leaking to Eve with probability at least 1 - e, We conclude that l;(t) = 399 «700 = Î.(t,n) (see also Figure 1). As noted in [6] the binomial distribution can be approximated more closely by the Gaussian distribution tha~ by .the. up~er boun~ in (3)- But, even .if we replace F in Theorem 2.2 by the Gaussian distribution vk L= e-X /2dx we obtain almost the same bounds although e = 0.4453· 10-6 is a factor 13 smaller. We obtain 1",,(3(t) = 401 ± 2 for 0.33 ::; 8 ::; 0.99 and the best bound Z;(t) = 399 is obtained by 8 >::J 0.75. An open problem is to strengthen Theorem 2.2 by using better upper bounds in (3), see [6], or by using the exact formula's in Lemma 2.1. 103 BOOr------,------.-------r-----~----__, , l_eps/Ûpsl2(1) -- l_hat_~ps(l,n) .. ...... _ _._._----.;.- ..-._._ .._ -.-_. ::::"~R'" ;~ ~-j~ I _...._ ..~ ....n=1Q(J~:~1s_::~,6967e..6 500 , "<;;~.......................... ..; ,. 400 .. .""' -, _............... -j .. 300 ....·.. ~ 200 / .~ / "~ 10: i ~~ o 200 400 600 BOO 1000 measured T Figure 1: Upperbounds on the number of deterministic bits obtained by Eve. 3 Concluding Remarks We conclude that Alice and Bob better take a probabilistic worst case scenario into account. We considered the situation in which Eve intercepts and resends a transmitted photon in rectilinear or circular base. An interesting exercise is to generalize the results in this contribution towards the situation in which Eve intercepts and resends a transmitted photon in any base of her choice. References [1] C,H. Bennett, F. Bessette, G. Brassard, L. Salvail, and J. Smolin. "Experimental Quantum Cryptography". J. Cryptology, 5:3-28, 1992. [2] C.H. Bennett, G. Brassard, C. Crépeau, and U.M. Maurer. "Generalized Privacy Amplification". submitted (partially presented at ISIT'94). [3] C.H. Bennett, G. Brassard, and J.-M. Robert. "Privacy Amplification by Public Discussion". SIAM J. Compui., 17(2):210-229, April 1988. [4] G. Brassard and 1. Salvail. "Secret-Key Reconciliation by Public Discusssion" . In Advances in Cryptology - Proceedings of Eurocrypt '93, Leeluie Notes in Comput. Sci., volume 765, pages 410-423, 1994. [5] C. Cachin and U.M. Maurer. "Linking Information Reconciliation and Privacy Amplification". In PreProceedings of Eurocrypt '94, pages 269-278, 1994. [6] N.L. Johnson and S. Kotz. Discrete Distributions. John Wiley & Sons, 1969, 104 An Overview of E-mail Security Systems Mark Vandenwauver René Govaerts Joos Vandewalle Katholieke Universiteit Leuven, ESAT /eOSle Kardinaal Mercierlaan 94, B-3001 Heverlee e-mail:Mark.Vandenwauver@esat.kuleuven.ac.be Abstract Thanks to the Internet, the use of e-mail has become common practice. More and more companies are using it as a primary means of communication. Un- fortunately most people are not aware of the risks they are taking. If you send a regular letter you can count on the confidentiality of its content but not so with plain e-mail. Each message can be intercepted by a trained computer user, connected anywhere on the Net. In this paper we will show how easy it is to read other people's e-mail, even change it without being caught. Thanks to an extensive use of cryptography, the risks can be limited. Lately a number of new protocols, based on public key technology, have been proposed. In public key cryptography it is essential to find a way to make the public keys of the users available. Usually this is achieved by embedding these keys into a certificate structure. These certificates are then distributed by way of a directory service. In this paper we want to give an overview and analysis of the different proto- cols and standards. We will evaluate the latest Internet protocols as there are: PGP /MIME, MOSS, MSP and S/MIME. 1 Introduction Even in the previous era of central mainframes, there was the possibility of monitoring or active attacks on the seriallines which connected terminals to the central mainframe. However, the move to LANs in general, and Ethernet in particular, has made matters much worse. The Internet is a prime example of this. The attacks are very much easier to carry out on an Ethernet than they were on seriallines. Indeed, these attacks can often be carried out using just software, with no hardware-level interception or modification required. Tools that are used to check the functionality of the network (LAN analyzers, also known as network sniffers) can also be used to listen in on any traffic on the Internet. Using this software (Esniff is an example of such a public domain tool), it is very easy to read all e-mail messages that pass by your computer. Services such as anonymous remailers make it impossible to track down a message received through one of them. Important e-mail messages can be altered with the use of some hardware. The need for an electronic equivalent of registered mail where you can prove to an arbitrator 105 that the letter was sent and delivered, has become imminent due to the emergence of services as Electronic Commerce. The rest of the paper is organized as follows. In section 2 we will describe the cryptographic services offered by most of the available tools for securing Internet e-mail and in Section 3 we will give a basic solution for our problem. Section 4 will discuss the X.509 certificate structure and hierarchy. An overview of the latest Internet standards will be given in Section 5. We will finish with our conclusion. 2 Cryptographic Services In the case of electronic mail, our goals are to provide the following services: data au- thentication (data integrity and data origin authentication), non-repudiation of origin and delivery, and data confidentiality. In the remainder of this section we will elaborate more on these services. Our basic scenario is always the same: we have a sender Alice who will send an e-mail to her friend Bob while at the same time Eve is listening in on the communication lines or is even trying to modify the message. • Data authentication: Data authentication consists of two components: the fact that the message can not be modified by Eve (data integrity) and the fact that Bob knows that Alice was the sender (data origin authentication). 1. Data integrity: A data integrity service guarantees that the content of the message, that was sent, has not been tampered with. Data integrity by itself is not meaningful: it does not help you to know that the data you have received has not been modified, unless you know it has been sent directly to you by the right person. Therefore it should always be combined with data origin authentication. 2. Data origin authentication: Here one wants to make sure that the person who is claiming to be the sender of the message really is the one from whom it originates. Suppose Alice sends a message to Bob, but Eve intercepts it and sends it to Bob, claiming Alice has sent it. How can Bob be sure of the realorigin of this data? A variation on this theme is: Eve could send a message to Bob claiming Alice is the originator. • Non-repudiation: Non-repudiation protects against denial by one of the entities involved in a communication of having participated in all or part of the commu- nication. Non-repudiation with proof of origin protects against any attempts by the sender to repudiate having sent a message, while non-repudiation with proof of delivery protects against any attempt by the recipient to deny, falsely, having received a message. • Data confidentiality: This aspect of data security certainly is the oldest and best known. Even the Roman emperor Julius Caeser used a cipher to secure the orders that were sent to his troops. The fact that confidentiality was considered to be much more important than authentication of both sender and data, together with non-repudiation of origin can be explained as follows: the latter services 106 were provided implicitly by the physical properties of the channel: a letter was written in a recognizable handwriting, with a seal and a signature. With data confidentiality we try to protect ourselves against unauthorized dis- closure of the message. If Alice sends a message to Bob, but Eve intercepts it, one wants to make sure that Eve is unable to read the contents of this message. Confidentiality proteetion was very important in the medical world and the bank- ing sector. It has become a real issue with the current success of the Internet and the emergence of Electronic Commerce. World-wide there are several million transactions each day and all of these have to be passed from one institution to another. If there were no way to protect confidentiality, everybody would be able to see who had purchased what, who has made wbat kind of withdrawal, and so on. 3 Basic solution The properties of secret key cryptography and public key cryptography are well known [1]. In this real world situation we will combine both in a hybrid system to take advantage of their respective benefits. We still have the same scenario with Alice as the sender of the message and Bob as the receiver. An important aspect of this scenario is that it will use a one step protocol. There is usually no prior interaction between sender and receiver to setup cryptographic keys or to authenticate each other. To protect against Eve listening in on the electronic mail, the message will be enci- phered using a symmetric key algorithm. The reason for using symmetric technology is obvious: performance. The key that is used in this way is called the Data Encrypting Key (DEK). To avoid that all of these DEK's have to be distributed in an off-line way, we will use a public key system to send the DEK along with the message. When Alice sends a secure message to Bob, she uses Bob's public key to encipher the DEK. When Bob receives the message he will be able to decipher the encrypted DEK because he knows the corresponding private key. A digital signature [2] will also be applied by Alice using her private key. Bob can then verify this signature using Alice's public key. At this moment he will be sure tbat: • nobody has changed the message (data integrity); • Alice is the real sender (data origin authentication); • he can prove to an outsider (e.g. a judge) that Alice really did send this message (non-repudiation of origin). Non-repudiation of delivery is usually not covered by the basic secure e-mail system. 4 Certificates (X.509) The problem of key management can not be stressed enough. The security of your system depends on the weakest link. While it is a good idea to use strong crypto, it remains essential to find a way to distribute each party's public key in a safe and 107 reliable way. This problem is usually tackled by introducing Trusted Third Parties (TTPs) called Certification Authorities (CAs), that issue certificates. Basically, a certificate contains a digital signature of the CA on a person's name and his public key, thus binding them together. In this way the CA guarantees that a particular public key belongs to a particular user. If the user can now prove that he knows the corresponding private key (e.g. by signing a challenge), he will be au- thenticated to his correspondent. The certificate can be seen as a token to prove one's identity just as a driver's license or a passport. Other well known Internet security tools such as the Secure Sockets Layer (SSL) also use these certificates. There are now a number of well-known commercial CAs on the market: Verisign, AT&T, Thawte, ... The ITU- T has issued a guideline (X.S09) concerning certificates [3Jand what they need to contain. The naming directives from X.SOOare used. Up to now there have been three major releases. Version 1 originated in 1988, version 2 was published in 1993 and version 3 in 1996. A version 1 certificate looks like this : • Version: version number. • Serial number: A unique number attributed by the CA. Using this serial number and the name of the issuing CA, the certificate can be traced. • Signature algorithm: Information about the algorithm used to sign the certificate. • Issuer name: The unique name (also known as distinguished name) of the CA. • Validity period: Begin time and end time of the validity of the certificate. This is based on Universal Time to avoid confusion about time zones. (This will generate problems in the year 2000, ... ) • Subject name: All details about the owner of the public key that is being certified. • Subject public key information: All data needed to verify the certificate. • SKCA: This is the signature of the CA. The public key of the CA is needed to verify it. Version 2 added two fields (Issuer unique identifier and Subject unique identifier) to make implementation of directory access control possible. The latest release (V3) has made the biggest change by introducing the Extensions field. They have been defined to improve the functionality and to answer some specific requests of people using X.S09 certificates. These extensions contain a criticality flag indicating whether a non-compliance will mean that a certificate will be rejected or not. Specific extensions can be defined in future standards or by user communities. Some of the possible extensions include: • Alternative naming so that the certificates can be used on Internet. • More information about the key: e.g. whether the key can be used for key management, verification of a digital signature, encryption of data, ... 108 • Other identification data such as the e-mail address of the person concerned . • Where the Certificate Revocation List (CRL) can be obtained. This is the list of the certificates that are not valid anymore. Reasons for an invalid certificate could be : the user has increased the bit-length of its modulus and needs a new public key, the user has left the organization thus rendering the certificate futile, or in the worst case scenario, the private key of a user has been broken or publicized. 5 The latest Internet Standards 5.1 S/MIME In early 1995, several major e-mail vendors (Microsoft, Lotus, Qualcornm, ... ) got together with RSADSI to design a secure, interoperabie messaging standard. The result of their work is S/MIME. It stands for Secure/Multipurpose Internet Mail Extensions and integrates MIME [6] with the PKCS#7 [4] standard. S/MIME as of the time of writing of this paper is not yet published in an RFC. Its current status is that of an Internet Draft [12]. When the current compatibility tests will have been finished successfully, S/MIME will be submitted to the IETF as an RFC. Several public versions have also been made available for testing by the general public. S/MIME recommends the use of three symmetric encryption algorithms: DES, Triple DES and RC2. The key-size of RC2 can be adjusted to 40 bits, which is the current maximum strength allowed for export outside of the US. As recent experiments and literature study have shown, 40 bit does not represent a secure system with the current state of the art in computing. It can be broken in a matter of hours on a medium size university network, or in minutes if one uses the FPGA technology to build a dedicated piece of hardware. Key management is based on X.509 certificates. Because S/MIME is new, it sup- ports the Version 3 certificates. Evidently the RSA public key cryptosystem is used to generate digital signatures, exchange keys, ... In the draft, the new content-type application/x-pkcs7-mime is defined, to specify that a MIME body part has been cryptographically enhanced according to PKCS#7. S/MIME uses the MIME security multiparts [7). PKCS#7 describes a series of encod- ings to transfer messages over 7-bit electronic mail systems but MIME solves this with its content transfer encodings. With regular PKCS#7 there are no restrictions on the format of the data that will be encrypted or signed, but in S/MIME this data needs to be a MIME entity on its own. This will allow the result of removing the signature and/or encryption to be passed on directly to the MIME engine of the receiving e-mail client. 5.2 PGP/MIME PGP /MIME combines PGP with MIME, the Internet standard messaging protocol. It has recently completed its final phase of the IETF's standard process as it was published as RFC 2015 [13) in October 1996. PGP /MIME has also been adopted 109 by the Internet EDI Working Group to be one of the core components of their draft proposal to introduce EDI over the Internet. PGP jMIME has inherited the basic PGP properties: use of strong encryption without any limits on the key-length, a model of trust based on peers, ... It is compatible with previous PGP releases. A first commercial package supporting PGP jMIME was offered in February 1997 with the release of PGPMail 4.5 for Windows 95 and NT. Late breaking news is that PGP Inc, the commercial company founded by Phil Zimmerman in 1996, has acquired Zoomit Corporation and its directory technology. This will undoubtedly mean that they will offer an X.500 directory and X.509 certificate like solution in the near future. The integration in PGP jMIME was done by using the MIME security multi- parts [7]. Three new Content-Types have been defined accordingly: applicationjpgp- encrypted, applicationjpgp-signature and applicationjpgp-keys. The first one is used to send encrypted messages, the second to send digitally signed e-mail and the third to distribute public keys of individuals. The standard allows for messages to be both signed and encrypted. Before encrypting with PGP, the message should be written in a MIME canonical format. The resulting MIME multipartjencrypted message will contain exactly two parts. The first MIME body part must have a content-type of pgpjencrypted, while the second MIME body part will contain the actual encrypted data and is labeled applicationj octet-stream. When a PGP signature is applied, the data also needs to be in its canonical form. The digital signature is calculated on both the data to be signed and its set of content headers. The signature will be detached from the actual signed data so that the signing process won't affect the signed data in any way. 5.3 MIME Object Security Services (MOSS) MOSS is an integration of PEM [8,9, 10, 11] and MIME. It is a framework that uses the MIME security multiparts [7]to add digital signature and encryption to MIME objects. It is described in RFC 1848 [14]. MOSS leaves a lot of implementation options (such as the choice of algorithms or what kind of key management to apply) open. This makes it a very general protocol. But this also means that it is not sure that implementations offered by different vendors will be able to inter communicate in a secure way. In its current form, MOSS supports two kinds of key management: one based on X.509 certificates and a manual scheme. Messages containing keys and messages containing encrypted (or signed) data are separated into different MIME messages. This allows for an encrypted message to be decrypted before the public key of the correspondent has been verified. This verification can then be done off-line. The basic structure of a MOSS message is that of a MIME multiparts message using the security multiparts. Before a message can be signed, it is first canonicalized. Then the digital signature and other control information is generated. This control information must then be embodied in a predefined MIME content-type. Eventually the control information and data information body part will be embodied in a multi- partjsigned type. 110 5.4 Message Security Protocol (MSP) MSP was introduced by the US government's Secure Data Network System (SNDS) [15J program. SNDS was initiated by the National Security Agency (NSA) to look for methods to implement security in distributed computer systems. MSP is a protocol to provide secure message transfer on the XAOO network and is based within the OSI network model. MSP provides a large set of cryptographic services and it is the only one to have some form of non-repudiation of delivery. This is achieved by asking the recipient to send back a digitally signed acknowledgement of receipt. There were some plans to make a MIME implementation of MSP available. This Internet Draft defined a new content/type called applicatiou/rnsp. However this draft has expired and has not been updated or proposed as an RFe. 6 Conclusion Just as we have seen an explosion in the number of Internet users over the last years, there has been an increase in the number of solutions for securing electronic mail. Now that people are committing themselves to the use of e-mail for business appications, the concern for security has grown. Due to the shift towards multi-media and the im- portance of user friendliness, three new schemes were proposed recently. PGP /MIME inherits most of the benefits from PGP and initially kept on promoting its web of con- fidence scenario. While this can be used within a company or for EDI (when previous bilateral agreements are signed), it is not a good solution for electronic commerce. On the other hand, both S/MIME and MOSS use X.509 certificates. This means that the level of confidence in the other party's public key will be higher for secure (level 3 in the Verisign language) certificates. MOSS suffers from the fact that there are few implementations available. S/MIME is pushed by some of the largest compa- nies (Microsoft, Netscape, ... ) and will be incorporated in most of the commercially available secure e-mail tools. The reason for including MSP in this picture is that it provides non-repudiation of delivery. This is essential when using e-mail for executing secure electronic transactions. References [IJ A. J. Menezes, P. e. van Oorschot, and S. A. Vanstone, Handbook of Applied Cryptography, eRe Press, 1996. [2J International Standards Organization, Digital signature schemes giving message recovery - Part 2: Mechanisms using a hash-function, Draft International Stan- dard ISO/lEe 9796-2, December 1996. [3J InternationalTelecommunication Union - Telecommunications Standardization Sector, The Directory - Authentication Framework, Recommendation X.509, 1996. [4J RSA Laboratories, Cryptographic Message Syntax Standard, PKeS #7, Version 1.5, November 1993. 111 [5J D. Crocker, Standard for the Format of ARPA Internet Text Messages, RFC 822, University of Delaware, August 1982. [oJ N. Freed, N. Borenstein, Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies, RFC 2045, lnnosoft and First Virtual, November 1996. [7J J. Galvin, S. Murphy, S. Crocker, and N. Freed, Security Multiparts for MIME: MultipartjSigned and MultipartjEncrypted, RFC 1847, TIS and Innosoft, Septem- ber 1995. [8J J. Linn, Privacy Enhancement for Internet Electtonic Mail: Part I: Message Encryption and Autbeniicatioti Procedures, RFC 1421, lAB IRTF PSRG, IETF PEM WG, February 1993. [9J S. Kent, Privacy Enhancement for Internet Electronse Mail: Part IJ: Certificate Based Key Management, RFC 1422, BBN Communications, February 1993. [10J D. Balenson, Privacy Enhancement for Internet Electrome Mail: Part In: Algo- rithms, Modes, and Identifiers, RFC 1423, TIS, February 1993. [11JR.Kaliski, Privacy Enhancement for Internet Electrome Mail: Part IV: Key Cer- tification and Related Services, RFC 1424, RSA Laboratories, February 1993. [12J S. Dusse, SjMIME Message Specification: PKCS Security Services for MIME, Internet Draft, RSA Laboratories, September 1996. [13J M. Elkins. MIME Security with Pretty Good Privacy (PGP), RFC 2015, Aerospace Corporation, October 1996. [14J S. Crocker, N. Freed, J. Galvin, and S. Murphy, MIME Object Security Services, RFC 1848, Cybercash, Innosoft and TIS, October 1995. [15J C. Dinkei (Ed.), Secure Data Network System (SNDS) Network, Transport and Messa.ge Security Proiocols, U.S. Department of Commerce, National Institute of Standards and Technology, Report NISTIR 90-4250, 1990. 112 Cryptanalysis of 'less short' RSA Secret Exponents Eric R. Verheul Department of the Interior P.O. Box 20010 2500 EA, the Hague, the Netherlands E-mail e.verheul@ngi.nl Henk C.A. van Tilborg Department of Mathematics and Computing Science Eindhoven University of Technology 5600 MB, Eindhoven, the Netherlands E-mail henkvt@win.tue.nl The RSA system can be described by the modulus n being the product of two (large) primes p, q, and by the public and secret exponents e and d which are related by e· d == 1 (mod lcm(p - 1, q - 1)). The public exponent e and the modulus n are made public; the remaining parameters are kept secret. In a typical RSA system one has that gcd(p - 1, q - 1) is small, e < n, and pand q have approximately the same number of bits. In some applications of RSA, it is desirable to have a short secret exponent d, as this reduces the execution times. For instance when RSA is used on a smart card to sign a document. In [1], an attack on a typical RSA system with a "small" secret exponent is described. This attack will give the secret exponent d (as well as the prime-factors of n), provided that the number of bits in d does not exceed (approximately) one-quarter of the number of bits in n. One of the intriguing aspects of this attack is that it does not only make use of knowl- edge of the modulus n. Indeed, it also highly depends on information obtained from the public exponent e. So in this situation the problem of breaking RSA is essentially different from the problem of the factorization of n where only information on n is available .. Here, we describe an extension of Wiener's attack. It will turn out that we always obtain a substantial amount 'of "secret" information from nand e in a typical RSA system, i.e. when d is not small. As in [1], our attack is based on the theory of continued fractions. Let K be defined by K e· d = 1 + K ·lcm(p - 1, q - 1) = 1 + G (p - 1)(q - 1), where G = gcd(p - 1, q - 1). Further let kjdg be the reduced representation of the fraction Kj dG, 113 Theorem 1 The first j terms of the Continued Fraction-representation (and con- vergents) of k / dg can be determined, where j is such that the number of bits in the denominator of the j-th convergent is approximately one quarter of the number of bits 'm u: In particular, if d < n1/4 it can be determined completely. This is the result of Wiener [IJ. To estimate the complexity of our method for d > n1/4, we define lU2 d = ln2 n1/4 + r, Theorem 2 The uncertainty about k/dg and thus about d,p, and q is about 2r+6 bits. References [IJ M.J. Wiener, Cryptanalysis of Short RSA Secret Exponents, IEEE Transactions on Information Theory, IT-36, May 1990, pp. 553-558. 114 A Context-Tree Branch-Weighting Algorithm Paul A.J. Volf and Frans M.J. Willems Eindhoven University of Technology Information and Communication Theory Group Abstract The context-tree weighting algorithm [4J is a universal source coding algo- rithm for binary tree sources. In [2Jthe algorithm is modified for byte-oriented tree sources. This paper describes the context-tree branch-weighting algorithm, which can reduce the number of parameters for such sources, without increasing the complexity significantly. 1 Introduction Contemporary universal source coding algorithms process a source sequence symbol by symbol. An adaptive modeling algorithm estimates the probability distribution of the new symbol, based on statistical information which it inferred from the previous symbols of the source sequence. The encoder and decoder use the same modeling algorithm. In the encoder, an arithmetic encoder uses the probability distribution and the actual value of the new symbol to form the code word. The decoder uses the probability distribution to decode the new symbol from the code word. Then they both update their statistics and process the next symbol. The arithmetic encoder and decoder perform nearly optimal, thus the performance of these universal source coding algorithms depends fully on the modeling algorithm. To implement the modeling algorithm efficiently, it assumes that the source belongs to a specific model class, and it wants to find the model within that model class, that matches the source sequence best. But if the source sequence has not been generated by a source from that model class, then the actual model has to be approximated by a model in the model class. This often results in some extra redundancy. Section 2 describes an efficient modeling algorithm for the class of tree sources, called the context-tree weighting algorithm [4]. Our main goal is to apply this algorithm to texts. But texts are not generated by tree sources. Therefore, the next section discusses an extension of the model class, and an efficient weighting algorithm for the new model class, called the context-tree branch-weighting algorithm. Next, the new weighting algorithm and the normal context-tree weighting algorithm are combined into a single algorithm. Finally, this combined algorithm is tested on some text files. 2 The context-tree weighting algorithm The context-tree weighting algorithm assumes that the actual model is from the class of tree sources. A tree source consists of a suffix tree (the model) and a parameter vector. The suffix tree determines the state of the source, based on the context of the new symbol. The context of the new symbol is the suffix (of at most D symbols) of the source sequence seen so far. The first symbol of the context, the most recent symbol of the source sequence, will be used in the root of the suffix tree to choose a child (if 115 it has any). Then the next context symbol is used in the child node. This recursion continues until it encounters a leaf. This leaf is the state corresponding to that context. Every leaf has its own parameter. It defines the probability distribution with which all symbols following that context are generated. Thus those symbols form a memoryless subsequence. The context-tree weighting algorithm uses a context tree to collect the statistics of the tree source. A context tree is a full and complete tree of depth D. In every node and leaf s of this tree the algorithm counts for every symbol how often it followed context s. Furthermore, it stores two probabilities in every node and leaf s: the "estimated" probability P:(xï) and the weighted probability P,';;(xï). The estimated probability is the probability of those symbols of Xl which follow context s, assuming that this node is a leaf of the actual model. In that case these symbols form a memoryless subsequence. The block probability of this subsequence can be computed sequentially. If the subsequence contains as zeros and bs ones so far, then the probability that the next symbol is a, is defined as as a+'b+"'+' Ct 5 in which a; > O. The block probability of the subsequence extended with a 0 can then be written as (similar for a L): Ps(e Xl'n Xn+l as + a; = 0 ) = PS(e Xl'n) b (1) as + s + a; With a; = 1 (1) reduces to the Laplace-estimator, and with a; = ! it reduces to the Krichevsky-Trofimov estimator. If the probability of a memoryless sequence xf" is estimated with the Krichevsky-Trofimov estimator, then the individual redundancy ! can be upper bounded by [4]: log2 N + 1. The second probability in a node s is the weighted probability of the symbols of Xl with context s. The context-tree weighting algorithm weights in every node the probabilities of two possibilities: the actual model has a leaf here and the actual model has a node here. In the first case the subsequence is memoryless and the algorithm uses the estimated probability P:(xl). In the latter case the subsequence can be split in two disjoint subsequences: one consisting of those symbols following context Os (Os denotes context s expanded with the preceding symbol 0) and one for those symbols following context Is. In this case the probability is the product of the probabilities of both disjoint parts. Thus the weighted probability in a node or leaf s of the context tree, where s has depth I (s) is defined as: PS( n) {P:(Xï) if l(s) = D, (2) w Xl = . !P:(xï) + !p~S(xï)P~S(xï) if l(s) < D, The weighted probability in the root node of the context tree À is the weighted probabil- ity over the entire sequence so far, and with this probability the probability distribution for the arithmetic coder can be computed. The individual redundancy of a sequence xf", compressed with the context-tree weighting algorithm compared to the situation in which the actual source (with model S and parameter vector 8) is known, satisfies: Pa(xf"IS,8) (I I ') (,ISIlo N I I) log2 P~(xf') ~ 2S - 1 + T g2 iSï + S , (3) in which Pa(Xf" IS, 8) is the probability of the sequence given the actual model. The first term on the right hand side is the model cost (redundancy for not knowing the model), and the second term the parameter redundancy of the ISI Krichevsky-Trofimov 116 estimators. For sequences of increasing length, the model cost will amount to a constant number of bits (1 bit per node and per leaf), but the parameter redundancy will continue to increase. Thus it is important that the number of parameters is as small as possible, even if this results in higher model cost. 3 The context-tree branch-weighting algorithm 3.1 The decomposition The context-tree weighting algorithm gives excellent performance for binary sources. But in practice most sources will be non-binary (for example text-sources). Suppose that the symbol alphabet X is non-binary, thus lXI > 2. One way to extend the context-tree weighting algorithm for such sources is to use a binary decomposition (see [1] and [2]). A binary decomposition is an arbitrary binary tree with IXlleaves. Every leaf corresponds to one of the source symbols. To every node of the binary decomposition belongs a context tree. A source symbol is encoded by tracing the path in the decomposition tree to the leaf corresponding to that symbol. The decoder is able to decode the symbol correctly if it can find the same path. Therefore the encoder has to encode for every node on the path which branch it chooses. To do that, the encoder updates the context tree corresponding to that node and applies the context- tree weighting algorithm to find a probability distribution over both branches. Finally, this probability distribution is used by an arithmetic encoder to encode the correct branch. The decoder is then able to find the same branch, and thus to trace the path in the tree towards the correct leaf. Every node in the decomposition tree has two branches. Thus the context-tree weighting algorithm can use binary estimators. But the context symbols (the previous symbols in the source sequence) are non-binary. As a result, the lXI - 1 context trees (the decomposition tree has lXI - 1 nodes) consist of IXI-ary nodes. The context-tree weighting algorithm for context trees with non-binary nodes is defined as (we omit the trivial case les) = D, for which P:, = P: from now on): P:'Cx~) = (3P:Cx7) + Cl - (3) IT p!S(x7), if les) < D, (1) tEX in which we also replaced the weights ~ with weights (3 and (1 - (3), with 0 < (3 < 1. 3.2 Weighting per branch Formula (4) weights between two possibilities: the actual model has a leaf here, or it has a node here with all its children. Thus this algorithm can be called the context-tree node-weighting algorithm. But this choice may be to strict. Consider a text-source, often a small part of the context will already be sufficient to estimate the probability distribution of the new symbol. But in some special cases, the part preceding this short context may give some valuable additional information. Thus we want to extend the model class in such a way that a "node" of the source may act as a leaf for most contexts, while it acts as an internal node for some specific contexts. At first glance it may not seem necessary to develop a new weighting algorithm for such situations, because the context-tree node-weighting algorithm can "simulate" 117 these situations. For a node with only a few of its branches, it will simply find a node with all its children. For the contexts for which this node should have been a leaf, the algorithm will find a leaf one level deeper in the tree and for the other contexts, the model can just grow further. But this has two distinct disadvantages. First of all, a lot of extra leaves will have to be created which could result in higher model cost. But more importantly, the counts which were originally collected in one "leaf". are now spread over many leaves. Thus the individual estimates will be less accurate than necessary which results in additional parameter redundancy. Therefore, by extending the model class this way, we may reduce the number of parameters, and thus the parameter redundancy. 3.3 An optimal solution First we introduce some notations. We denote a branch by the value t of the context symbol for which that branch will be used. Consequently, the set of all possible branches is equal to the set of possible context symbols X. This is reasonable because a branch t from a node s corresponds to its child node which has context ts with t from X. In the same way a subset T of branches is equal to the set of contexts ts for which t E T. We denote such a subset of contexts with Ts (thus Ts ~ {tslt E T}). The optimal weighting algorithm for this model class has to weight for every node s over every possible subset T of its branches. Take a subset of branches T ç X. For all contexts ts for which t E T this node of the context tree will act as a node, while for all other contexts ti s with ti E X \ T this node acts as an leaf. A single estimator will be used for all symbols following a context in the subset T's. For these symbols the prob- ability in this node is: p'['S(xf). For all other symbols, those following a context ts in subset T's, a branch exists and the weighted probabilities in their children will be used. For these symbols the probability in this node is: TItET P! ts(xï), in which P! ts(xf) is the weighted probability in child node tso Thus the prob~bility of all symbols in this node s, given a subset T of branches, is defined as: p'['S(xf)· TItET P! ts(xf). The new context-tree branch-weighting algorithm is obtained by weighting in this node over all possible subsets T. The new weighted probability in a node s over a sequence xf is defined as: p!,.(x~) ~ L P(T)(P!,'S(x~) . IT p!,ts(x~)), if I(s) < D, (5) TÇX,T'=X\T tET in which P(T) is an a priori probability distribution over the subsets '1'. For example, if all subsets of branches are equally likely, P(T) = 2-lx1. 3.4 Two examples Let us examine the exact form of (5) for two examples: binary context trees and ternary context trees. Example 1. First we examine the new weighted probability for binary nodes in case all subsets are equally probable. We will only examine the non-trivial case: nodes s 118 for which les) < D. The weighted probability now reduces to: p!,s(x~) = ~ (P:(x~) + P~S(X~)P!,lS(X~) + p:S(x~)P!,os(x~) + P!,os(X~)P!,lS(X~)) = ~ (P:(x?) - P~S(x?)PelS(x~)) + (6) + ~(P~S(x~) 4 + r: os(x~))(p:S(x~) ' + P! ,ls(xm. In case a leaf is assigned probability ~, and all other subsets are equally probable (thus they have probability ~), the weighted probability reduces to a similar form: pbW,s (Xn)1 = (~ps(xn) 2 e 1 _ ~poS(xn)plS(xn)) 6 e 1 e 1 + (7) + ~ (p~S(x~) + p!,os(x~)) (PelS(X~) + P!,lS(X~)). The results in (6) and (7) are similar to the binary node-weighting algorithm. The first term is a term with only estimated probabilities, and only one of both parts of the last term has to be updated for each symbol. Furthermore, in both cases this branch weighting algorithm does not need any additional terms Pe. For binary context trees the branch-weighting algorithm will not result in signifi- cant increase in complexity. But for binary context trees this branch weighting is not necessary. The new model class now also contains models in which some nodes have only one child. In that case an estimator is used to estimate the probability of the symbols for the missing child. Thus the parameter which in the old model class would have been one level deeper in the tree is now in this node. But the number of para- meters will not decrease. There will only be a difference in the way the model cost are computed and this can also be achieved in the node-weighting algorithm by changing the weights f3 in (4). Thus for binary context trees the complexity will not increase, but the model class has not been extended either. The non-binary branch-weighting algorithm is more interesting. Example 2. Now we examine the weighted probability for ternary nodes in the context tree. We assume that all subsets T are equally probable. Then the weighted probability for a node s with les) < Dis: P!,s(x~) = ~ (p:(xn + PeOS(X~)P!,lS(X~)P;s(X~)+ + PelS(X~)Pw,Os(X~)Pw,2s(X~) + P;S(X~)Pw,Os(X~)Pw,lS(X~) (8) + p{O,l}s(Xn)pb e 1 w,2s (Xn1) + p{O,2}s(X e n)pb 1 tc.Ls (Xn1) + +pp,2}S(X~)P!,Os(X~) + P!,os(X~)P!,ls(X~)P!,2S(X~)) , in which Pe{O,l}s is the estimated probability of the symbols following contexts Os and Is, estimated by a single estimator. But (8) cannot be written in a more compact form due to the many additional estimated probabilities. In this case the branch- weighting algorithm has to update all 8 terms for each symbol, and it needs many additional estimated probabilities compared to the node-weighting algorithm. Thus for non-binary context trees, the optimal branch-weighting algorithm is considerably more complex (in computational time and memory) than the node-weighting algorithm. 119 3.5 An approximation For non-binary sources the optimal branch-weighting algorithm seems too complex to use. The main reason is the large number of different estimated probabilities that have to be computed and stored in every node of the context tree. An estimated probability in a node s can be written as: P:(x7) ~ IT P1t)s(x7), (9) tEX in which p~t)s is the probability of all symbols following context ts, estimated with the estimator in node s each time they occurred. Thus if a new symbol Xn+1 has context ts probability p~t)s will be updated with the estimate of the estimator in node s: p~t)S(X7+1) = p~t)S(xï)P:(Xn+1 = xn+1lxï). The other probabilities P~y)s with y i= t will not change. Splitting the probability like this has been done before by Weinberger et al. in [3]. Now we can approximate the various estimated probabilities with: pQS(xn) ~ pCQ)S(xn) e 1 ~ el' (10) p{Q,l}S(X n) ~ pCQ)S(Xn)pCl)s(xn) (11) e lrove le 1) (12) tET' in which T' ç X. These approximations reduce the optimal branch-weighting al- gorithm of (5) to the following approximated branch-weighting algorithm (note the similarity with the binomial theorem), assuming that all subsets are equally probable: r:w,s (Xn)=IT(~pCt)s(xn)+~pb 1 2 e 1 2 w,ts (Xn)) 1 , forl(s) -I - = 5.7708. (11) n2 The minimum is achieved for p = 1 - P = 1/2. We are now interested in the smallest possible change in T)S(xi-1IxLD) caused by a change in a or b. The smallest change in . hl 1 ~ pIS roug y 2.(2"-1)+1 ~ 2- k-1 - 1 - 512' Th ere for . 77S( Xlt-ll X10-D )' 18 ore th e srnall est ch ange III 4~:~-1 2~:;1 = = 0.0113. To be able to represent this smallest change in 77S(xi-1IxLD) we need at least m = k - 1 = 7 bits. Therefore we form the log-table L[·] as follows: L[j] := l2m . log(j) + 1/2 J for j = 2k, 2k + 1, ... , 2k+l - I, (12) with m = k - 1. Here 19J denotes the largest integer not larger than g. Note that the since k . 2m ::; L[·] ::; (k + 1) . 2m we need only m + 1 bits to store each table element. 127 4.3 The Jacobian table J[.] How about the table containing the Jacobian logarithm? It is obvious that the accuracy of the table elements should be m again, i.e. table elements are fixed point numbers having a fractional part of m bits wide. Moreover the entries are also logarithms, i.e. fixed point numbers with an m bit fractional part. Therefore we define the Jacobian table as J[i] := l2m ·log(1 + 2i/2m)+ 1/2J for i = ... , -2, -I, O. (13) Values of y = i/2m such that log(1 + 2Y) < 2-m-l willlead to table elements equal to zero and are not informative. Therefore for y < log(22- m 1 - - 1) ~ log(Tm-l -In 2) = log In 2 - m-I = -m - 1.5288, (14) we need no table elements. Typically m = k - 1 = 7, hence we need elements only ° for -8.5288 :s: y :s: or, say, for -9 :s: y :s: o. Hence i = -9·128,'" , -2, -I, O. The number of entries in the typical setting is roughly (k + 1)2k-l = 1152. Note that since O:S:J[.] :s: 2m we need only m + 1 bits to store the table elements. 4.4 The range of'T)S(,) Since 0 :s: as (.) :s: 2k - 1 and 0 :s: b, (.) :s: 2k - 1 we can write for the ratio 1/2 t-l S 0 2k - 1 + 1/2 2k _ 1 + 1/2 :s: Tl (Xl Ixl-D):S: 1/2 ' (15) l-D-) < k + 1. < ",S(xt-llxO t-1IxO or roughly 2-k-1 - 'I 1 l-D ) -< 2k+l or -k - 1 <- log",S(x 'I 1 Therefore, apart from the m = k - 1 fractional bits, flog 2(k + 1)1 bits are needed for the integer part of log(TlS(,)), In the typical (k = 8) case this leads to 5 bits for the integer part. Hence for communicating log(Tls(-)) to its parent 12 bits are needed. 4.5 Bounding the range of (YC) Since log(,8s(-)) has to be stored in node s we must bound its range. To do this we can argue as follows. We want the ,8S(.) to have a range that is large enough to switch to either the (external) ratio P~3(Xt = Olxi-\ xLD)/ P~'(Xt = llxi-1, xLD) or to thc (internal) ratio P:(Xt = Olxi-l,X~_D)/P:(Xt = llxi-l,xLD)' no matter how big the difference between these two ratios is. Suppose e.g. that the external ratio is small and the internal one is large. Then still log P:(Xt = Olxi-\ xLD) :s: log P~S(Xt = Olxi-l, xLD) + (k + 1). Note that by the definition of the Jacobian table, the sum of two terms that differ more in log than m + 2 is completely determined by the largest term. The smallest term then just does not matter. Keeping this in mind it is useless to make log,8s (.) smaller than -m - k - 3. Similarly we can argue that it is useless to make log,85(.) larger than m + k + 3. The range of log(,8s(.)) would then become 2-m-k-3 < - ,88 (xt-llx 1 O l-D ) < - 2m+k+3 , (16) 128 or -2(k + 1) :s: log ,8S(xi-1IxLD) :s: 2(k + 1) if we substitute m = k - 1. For k = 8 we need therefore, besides the m = 7 fractional bits, flog 4(k + 1)1 bits more for storing the integer part of log(,8S(.)). In the typical (k = 8) setting 6 bits are required for the integer part of log(,8S(.)). In total we then need 13 bits to store each log(,8'('))' To achieve the real CTW behavior ,8'(-), should not be bounded at all. However bounding ,8S(.) decreases the storage space needed for ,8s0 and also improves the performance quite often because of non-stationary parts in the data. In a system with bounded ,8S(.) it takes less time to forget the past and this improves performance. A similar effect results from scaling the counts as and bs. 4.6 Storage space needed in each node The total amount of storage that is needed for one record is now two times 8 bit for the counts plus 7 fractional and 6 integer part bits for log(,8), which brings us to 29 bits. This is a lot less than the 20 bytes that were needed in the classical setting. 5 Arithmetic code The same principles (logarithmic representations, use of lookup-tables) that are used in implementing the CTW-estimator can be used in the realization of the arithmetic encoder and decoder. Interval sizes are represented by their logarithm and multiplying an interval by a conditiorial probability is done by increasing this logarithm. These in- crements (step sizes) can easily be determined from the 1/0 using the already available Jacobian table. The underlying principles of this arithmetic coding method were investigated by the authors already in 1984 and appeared e.g. in Tjalkens' Ph.D. thesis [3J. 6 Conclusion It is demonstrated here that instead of 20 byte as before we need only 4 byte to store the CTW-information in each existing node of the context tree in a typical setting. This is achieved by combining the estimated probability of a node and weighted probabilities of its children in one variable. This variable is logarithmically represented. From simulations it follows that the performance shows a slight improvement prob- ably because of bounding the ratios ,8S(.) and scaling the counts as and bso Acknowledgements These investigations were supported by KPN Research, Leidschendam, The Nether- lands. Preliminary studies and tests were done by Peter van Gils. Thanks! 129 References [1] R.E. Krichevsky and V.K. Trofimov, "The Performance of Universal Encoding," IEEE Trans. Inform. Theory, vol. IT-27, pp. 199-207, March 1981. [2] J. Rissanen, "Universal Coding, Information, Prediction, and Estimation," IEEE Inform. Theory, vol. IT-3D, pp. 629-636, July 1984. [3] Tj.J. Tjalkens, Efficient and Fast Data Compression Codes for Discrete Sources with Memory. Ph.D. dissertation, Eindhoven University of Technology, Sept. 1987. [4] F.M.J. Willems, Y.M. Shtarkov and Tj.J. Tjalkens, "The Context Tree Weighting Method: Basic properties," IEEE Trans. on Inform. Theory, vol. IT-41, May 1995, pp. 653-664. [5] F.M.J. Willems, Y.M. Shtarkov and Tj.J. Tjalkens, "Reflections on the Prize Pa- per: The Context Tree Weighting Method: Basic properties," IEEE Information Theory Society Newsletter, vol. 47, March 1997, p.1 & pp. 20-27. [6] F.M.J. Willems, "Implementing the Context-Tree Weighting Method," Abstracts 1996 IEEE Information Theory Workshop, Haifa, Israel, June 9-13, 1996, p. 5. 130 Normalization procedures and Shannon's entropy measure M. G. de Bruin Dept. of Pure Mathematics, Delft University of Technology P.O. Box 5031, 2600 GA Delft, The Netherlands email: m.g.debruin@twi.tudelft.nl c. Kamminga Information Theory Group, Dept. of Electrical Eng., Delft University of Technology P.O. Box 5031,2600 GA Delft, The Netherlands email: c.kamminga@et.tudelft.nl Abstract Using the entropy definition according to Shannon, the entropy sum in the time and frequency domains is studied. It is shown that normalisation of the Fourier pair by absolute value integrals in time and frequency leads to a shift-and-scaling invariant entropy sum. Keywords: Shannon entropy; Fourier analysis, scaling invariance of entropy sums. AMS MSC (1991): 94A17, 33B15. 1 Introduction Leipnik (1959) studied entropy sums H(t) + H(f) for the Fourier transform pair set), S(f) normalised by I: Is(tW dt = I: IS(fW df = 1, (1.1 ) where the first equality follows from Parseval's relation. The related entropies are then defined by Definition 1. Ht(s) = - I: Is(tW log Is(tW dt (1.2) HI(S) = -I: IS(fW log IS(fW dj (1.3) In particular Leipnik's entropy sum reveals the additive nature of entropy, where uncertainty is no longer a function of the duration product as it was in Gabor's ap- proach. The fact that in (1.1) and (1.2,1.3) the square of the absolute value is used goes back to the origin of the study of Fourier transform pairs in quantummechanics: math- ematically speaking, one works in the Hilbert space of square integrable functions on 131 the real axis, where the square of the absolute value is seen as the distribution function for a physical observable. The information entropy of Shannon, however, uses the absolute value itself and is defined by the following entropy integrals in the time and the frequency domain by Definition 2. Et =- I: [s(t)[log [s(t)[ dt (1.4) Et = - I:[S(f)[log [S(f)[ df (1.5) It is obvious to note that both entropy definitions are shift invariant with respect to a shift in the time domain on the signal s(t). Invariance with respect to scaling in the time domain and renormalization is quite another matter. Here we mean the following procedure: - replace s(t) by s(od) (a> 0), - normalise the new time- and frequency domain representations, - recalculate the entropy sum. Using (1.1) with (1.2,1.3) does give scaling invariance as will be shown in section 2. However the use of Shannon's entropy (1.4,1.5) combined with the energy normal- isation (1.1) does not. In the theory and practice of signal processing, Definition 2 of the entropy according to Shannon is used. However there is no indication that one has to look at 'distributions defined by the square of the absolute value of the signal'. Nevertheless, it is quite convenient to have the entropy of a signalor a polynomial depending on its intrinsic form i.e. asking for scaling invariance. The solution of this problem is straightforward: one has to normalise with the absolute value of the signalor polynomial itself, in the time domain as well as in the frequency domain. Along this line of thought the following definition is given. Definition 3. Let s(t) be a signal and S(J) its Fourier iransjorm. Define the nor- malised functions sn(t) and Sn(J) by (1.6) The scaling invariance of the entropy sum using the definitions (1.4,1.5), for signals normalised in absolute value, using definition (1.6), will be shown in section 2. This viewpoint was used for the first time by Kamminga (1994, Chapter 14), addressing uncertainty and entropy in the context of the study of dolphin echolocation signals. It is obvious that Definition 3, normalization of absolute values, puts constraints on the class of signals s(t) to be studied, constraints that are different from those following from the energy normalisation (1.1). Nevertheless, the class of signals that-as well as their Fourier transform-can be normalised using Definition 3 is sufficiently large and contains a.o. the Gaussian signal and its time derivative and the negative exponential signal. These examples will be treated in section 3. 132 2 Scaling invariance First, scaling invariance in the case of energy normalisation (1.1) and quadratic entropy (1.2,1.3) will be studied: Theorem 1. Consider a signal set) and its Fourier transfarm SU) normalised by 1: [S(t)[2dt = 1: [SUW df = 1. Further, let for any real a > 0 the scaled signal seCt), normalised in the same manner as set), be given by seCt) = fo seat). (2.1) The Fourier transjorm of seCt) is given by 1 f SeU) = G. S( -). (2.2) va a Then SeU) is automatically normalieed in the same manner as SU) (Parseval's rela- tion) and we have (2.3) Proof. The time and frequency entropies of the scaled signal will be calculated seper- ately in terms of the entropies for the original signal. Ht(sc) = -1: [fo s(atW log [va s(atW dt = -1: [s(tWlog (a[s(tW) dt = -log a + Ht (s), (2.4) (2.5) The scaling invariance (2.3) then follows from (2.4) and (2.5). o The case of separately normalizing by the integral of the absolute value of the signal and its Fourier transform along with the use of entropy defined according to Shannon (1.4,1.5) asks for a different type of calculation as Parseval's relation (1.1) cannot be used. However the scaling invariance of the entropy sum can still be established: 133 Theorem 2. Consider a signal s(t) normalieed by I: Is(t)1 dt = 1. The Fourier tramsjortri of s(t) is denoted by S(f) and in order to calculate the frequency- domain entropy we first have to normalise using S(f) = A· S(I), (2.6) with A = (I: IS(I)I df )-1 (2.7) Further, let for any real a> 0 the scaled signal se(t), normalised in the same manner as s(t), be given by se(t) = a s(at). (2.8) Then, the Peurier trasisfarm of Se(t)is given by S(£) and the normalised frequency- domain description of the signal se(t) is - f (2.9) SeU) = B· S(-), a where the constant B satisfies We now have: (2.10) Proof. The time and frequency entropy of the scaled signal will be calculated seperately in terms of the entropies for the original signal. ét(Se) = - I: las(at)lloglas(at)ldt =- I: Is(t)llog (als(t)1) dt =-loga+ét(s), (2,11) - = - 100 IBS(-)llogIBS(-)ldf éf(Se) f f = - aB I: -00 a IS(f)llog(BIS(f)I)df a = - I: IS(f)llog C·§~)I) dj (aB = A) =loga +éf(S). (2.12) Scaling invariance (2.10) then follows from (2.11) and (2.12). o 134 3 Examples In this section, several distributional signals will be treated. For each of them, the normalised form according to both Theorem 1 and Theorem 2 is considered and the entropy sum will be calculated using both Definition 1 (quadratic entropy) and Defin- ition 2 (linear entropy). Definition 4. Let {slAt), Sl,cU)} be a Fourier pair, normalised using the absolute value and {S2,c(t), S2,cU)} be a Fourier pair, normalised using the square of the absolute value Now let Ht, Hf denote the quadratic entropies in time and frequency domain as defined in (l.2,l.3), while Et, Ef denote the Shannon entropies as in (l.4,l.5), sometimes referred to as linear entropy in the sequel. The entropy sums are denoted by Hl = Ht(Sl,c) + Hf(Sl,c), H2 = Ht(s2,c) + Hf(S2,c), El = Et(Sl,c) + Ef(Sl,c), E2 = Et(S2,c) +Ef(S2,c), Scaling invariance (Theorem 1 and Theorem 2) implies that H2 and El do not depend on the scaling parameter 0: > 0 (this conditon 0: > 0 will be used n the sequel without explicitly stating it). When different powers are used in the normalization of a signal and the deifintion of its entropy sum, then the quantities arising-denoted by Hl and E2 do depend on the scaling parameter. Inn this case of "mixed normalization" plots are given in Section 5. It is quite remarkable that the different examples treated all lead to the same type of shape (convex/concave) for the functions Hl as well as for E2. 3.1 Gaussian signal The signal to be studied here is basically (3.1) normalised according to either signal energy (Theorem 1) or absolute value (Theo- rem 2). First, we normalise in absolute value (Theorem 2), indicated by an extra index 1 on the signal, and the scaled FOUTierpair turns out to be , Sl c(f) = ft e-7r2 f2 /0: . 2 2 0: _0:2t Sl c(t) = v7r , r.;; e ' 0: (3.2) 135 Using standard integrals, cf. Magnus & Oberhettinger (1948), a straightforward cal- culation leads to Ht( SI e) = 0:. fi (---log _.!!_ + ~) , VJr Vii 4' Hj(Sl e) = ~v'z;( -log , 0: Vii 0: + ~), 4 0: 1 ét(Sl c) = -log , r;;. yJr + -, 2 0: 1 cj(Sle)=log , yJr r;;.+-,2 which shows that the Shannon entropy sum is indeed independent of the scaling variable 0: and has the integer value 1: (3.3) while the quadratic entropy sum does depend on a: Hl(a)=y.dog- In 0: Vii (Vii --- 0: 0:) Vii +-1 2 v0 (a-+- Vii Vii) . 0: (3.4) Now we normalise according to signal energy (Theorem 1), indicated by an extra index 2 on the signal, and the scaled Fourier pair turns out to be (3.5) Using standard integrals, cf. Magnus & Oberhettinger (1948), a straightforward cal- culation leads to , Ht(S2 e) = -log (0: fi) + ~, V; 2 1 1 Hf(S2 e) = -log (-v'z;) + -, , 0: 2 ét(S2e) = -~V'21r log (a (; -) V'21r + ---, , 2fo Jr 2Va yI2(.t 1 ~ yI2(.t cf(S2 ) = --- log (-y 2Jr) + -- ,e 2V'21r 0: 2V'21r' which shows that the quadratic entropy sum is independent of the scaling variable a: H2(a) == 1-log2 = 0.3068528, (3.6) a result that appears in Leipnik's treaty (1959) on entropy and the uncertainty principle without reference to scaling invariance. However, the Shannon entropy sum does depend on 0: E2(a) = - ~ + --v"2Q - -log(o: ~ (; -) - --log yI2(.t 1 (-v'z;). (3.7) 2fo 2~ 2fo Jr 2V'21r 0: The functions in (3.7) and in (3.4) are given in one plot (section 5, Figure 1). 136 3.2 Negative exponential signal Now we study basically o (t < 0), set) = { t e:" (t ~ 0), (3.8) using absolute value normalisation (Theorem 2) first. The scaled Fourier pair turns out to be s t = 1,c( ) {o et2t e-cd (t ::;0) . S (t ~ 0)' 1,c(l) = 2et (27rif + et)2' (3.9) Using standard integrals, cf. Magnus & Oberhettinger (1948), a straightforward cal- culation leads to Ht(s1,c) = et Ct + log2 -loget) j2, Hf(S1,c) = 2 (log2 + log et - 1) jet, Et(Sl,c) = 1 + , - log et, Ef(Sl,c) = log2 + log et, which shows that the Shannon entropy sum is independent of the scaling variable et: El (et) == 1 +, + log 2 = 2.2703628, (3.10) while the quadratic entropy sum does depend on et et 2 Hl (et) = 2' Ct + log 2 -log et) + ;; (log 2 + log et - 1) . (3.11) Normalisation according to signal energy (Theorem 1) leads with the formulae in Magnus & Oberhettinger (1948) to the Fourier pair: s t = 2,c( ) {o ~t e-at (t ::;0). S (t ~ 0)' 2,c(l) = ~ (27rif + et)2' (3.12) The entropies are: Ht(s2,c) = 2, -log et, Hf(S2,c) = 2log 2 - 2 + log et, 2 Et(S2,c) = va(1 + ,-log2ya), va Ef(S2,c) = Tlog(4et), showing that now the quadratic entropy is scaling invariant: H2(et) == 2(, + log 2 - 1) = 0.5407256. (3.13) The Shannon entropy does depend on the scaling variable E2(et)= ~(I+,-log2va)+ va log (4et). (3.14) yet 2 The functions in (3.14) and in (3.11) are given in one plot (section 5, Figure 2). 137 3.3 Derivative of the Gaussian signal The signal to be studied here is basically (3.15) normalised according to either Theorem 1 or 2. The extra factor t (or I), which has to be taken as iti (or ifD in the normalisation, leads to quite simple integrals when using absolute values (Theorem 2). First we normalise according to Theorem 2 and the scaled Fourier pair turns out to be (3.16) Straightforward calculation leads to which again shows that the Shannon entropy sum is indeed independent of the scaling variable a: El(a) == "( + 2 -lopr = 1.4324857, (3.17). while the quadratic entropy sum does depend on a a (if 1 Hl(a) ="4V 2("( + 3log2 - 2 - 2loga) + -7r ~ -("( + 3log2 - -1 + 2loi!;-). a (3.18) 4a 2 2 n Now we normalise according to Theorem 1: (3.19) Using standard integrals from Magnus & Oberhettinger (1948) we find: Ht(82,c) = (-1 + 2"(+ log 2 + log rr - 2log a)/2, Hf(52,c) "'" (-1 + 2-y+log2 --log7r + 2loga)/2, Et(82c)= , (f,( 5 "(--log2+2-loga+-log7r, 2 1 2 ) 5 1 Ef (52 ,c) = Cr - -2 log 2 + 2 + log a - -2 log 7r). 138 As expected the quadratic entropy sum is independent of the scaling variable a: H2(a) == 2'Y- 1 + log2 = 0.8475785, (3.20) while now the Shannon entropy sum does depend on a E2 (a) = ('Y- ~ log 2 + 2 - log a + ~ log 7r) + V~ 4 ~ 2 2 5 1 + ('Y- -log 2 + 2 + log a - -log vr ). (3.21) 2 2 The functions in (3.21) and in (3.18) are given in one plot (section 5, Figures 3). 4 Discussion and conclusions It is known that for signals that allow quadratic normalisation (i.e. finite energy) the quadratic entropy sum, to be denoted by H2 in the sequel, is minimal for the Gaussian signal. Minimality for the type of quantities that have been calculated, fits in nicely with the uncertainty character of the underlying distributions as can be noted from the paper by Leipuik (1959). For sake of convenience the numerical results from section 3 are brought together in Table 1. example H2 El Gauss (3.1) 0.3068528 1.0000000 Neg. expo (3.2) 0.5407256 2.2703628 derivative of Gauss (3.3) 0.8475785 l.4324857 Table 1: Entropy sums using Theorem 2 A closer look at Table 1 shows that where the value of H2 is increasing going down in the table, this does not hold for Shannon entropy combined with absolute value normalisation. The numerical evidence, however, leads to the following Conjecture: Shannon entropy using absolute value normalisation is minimal for the Gaussian signal. 5 Plots of entropy sums with mixed normalisation As stated before, plots of the entropy sums with mixed normalisation will be given in this section. The layout is as follows: each of the plot pages treats one of the examples given before. The scaling parameter a runs along the positive horizontal axis; the entropy sums E, H are plotted in vertical direction. The reader can observe from the plots that in all cases the linear entropy (using quadratically normalized functions) is convex and the quadratics entropy (using linear normalisation) is concave. 139 E 10 ·2 H Fig. 1. Mixed normalisation: linear entropy for quadratic normalized sig- nals (convex) and quadratic entropy for linear normalized signals (concave) for a Gaussian signal as a function of the scaling parameter 0:. E H ... Fig. 2. Mixed normalisation: linear entropy for quadratic normalized sig- nals (convex) and quadratic entropy for linear normalized signals (concave) for a Negative Exponential signal as a function of the scaling parameter 0:. 140 E -2 H Fig. 3. Mixed normalisation: linear entropy for quadratic normalized sig- nals (convex) and quadratic entropy for linear normalized signals (concave) for the derivative of the Gaussian signal as a function of the scaling para- meter 0'. References [1] Gabor, D. (1946). Theory of communication. J.J.E.E. 93, 429-459. [2] Kamminga, C. (1994). Research on Dolphin sounds. PhD Thesis, Technische Uni- versiteit Delft, Delft. ISBN 90-5326-014-5. [3j Leipnik, R. (1959). Entropy and the Uncertainty Principle. Information and Control 2,64-79. [4] Magnus, W. & F. Oberhettinger (1948). Formeln und Sätze für die speziellen Funk- tionen der Mathematischen Physik. Springer, Berlin. 141 Applications of Information Theory in Optics C.H. Slump Laberatory for Network Theory and Vl.Sf-Design Department of Electrical Engineering, University of Twente, P.O. Box 217, 7500 AE Enschede, The Netherlands Abstract The advent of information theory in communications has inspired work in physical optics. We name here the early work of Gabor. There are interesting concepts of interest to both fields, such as holography with modulation and coding, the number of degrees of freedom in an image versus image coding. This presentation gives an overview of the optical image formation with concepts from the Shannon theory. Applications to image recording and medical X-ray imaging will be presented. 1 Introduetion In this paper we attempt a look into optics from the viewpoint of information theory. Informa- tion theory originates from electrical engineers interested in mathernaties and matematicians interested in communication problems. There is a strong connection between information the- ory and physics. According to Gabor [IJ the viewpoints of information theory are the analysis of the degrees of freedom of a phenomenon, in practise a discrete finite number, and to specify a measure for each coordinate. Information theory provides a finite number of integers in the description of experimental situations. This is very similar to quantum mechanics. In order to analyse the question of the degrees of freedom, we now first describe the optical image formation. The imaging situation we describe models a (electron) microscope. Let '1f;o(xo, Yo) denote the object wave function in the object plane Z = Zo = 0 and and '1f;p(t;,TI) the wave function in the plane of the diaphragm Z = zp. The wave function in the image plane of the microscope, i.e. the image wave function see Figure 1, is related to the object wave function by: (1) where K(,) is given by [2, 3J: K(xo - x, Yo - y) = i i dt; dry exp{ -i'Y(t;, ry) - 27ri[(xo - x)t; + (Yo - y)ry]} (2) The equations (1) and (2) describe the linear transfer theory of image formation for isoplanar optical systems. The real function 'Y(,) introduced in Eq. (2) is the wave aberration function. We now analyse the image formation in the simplest form. We assume that we illuminate a thin plane object situated at Z = Zo = 0 with a plane monochromatic wave with wavelength >. propagating in the positive Z direction, see Figure 1. We describe the wave propagatiou with the scalar wave equation and assuming a harmonic time dependency exp(27rictj >') the propagating waves must satisfy the Helmholtz equation: (3) 142 1.,y I pIL'I1 >,y J ~''1J vë e u u m .. optics" ·E eoherent (J : illumination L' '-£ optic: oxis obi«' -j -d -d obJ.ct plan. exit pupil imag_ plane loZp Z :2j Figure 1: Imaging system, Immediately behind the object the wave function '1f;o(x, y) includes the transmission of the object and for our purposes it represents the object. The issue is now how many independent variables are necessary to express as much of the" function '1f;o(xo, Yo) as we learn from the image. We decompose the wave function '1f;o(xo, Yo) containing the information about the pertinent _ object into its Fourier components: (4) The equation for a plane wave propagating with direction cosines (a, (3, "1) equals exp{ 2~i (oz + (3y + V)} with "1 = Jl - a2 - (32 At the plane z = 0, exp{21Ti(çx + 7)y)} equals a plane wave - >. propagating with the direction cosines: a = À( (3 = À7) "1 = Jl - (ÀÇ)2 - (À7)2 (5) The (complex) amplitude of this Fourier component is '1f;p(J;, ~). At a distance z along the optical axis we find for the wave function in (x, y, z): In case the direction cosines satisfy: (7) we have evanescent waves which are very quickly damped and will not contribute to the image. This means that Fourier components with a periodicity in the object plane smaller that a wavelength are not propagated to the image plane and thus do not carry information. We represent the object by the continuous wave function '1f;o(xo, Yo) in terms of suitable chosen elementary functions. The number of terms in this series expantion equals the number of freedom. The simplest case arises for rectangular apertures both in object and diaphragm plane. '1f;o(,) is only nonzero for -d:S Xo :S d , -d :S Yo :S d and '1f;p(,) is limited by -£ :S ç :S e 143 , -c ::;71::; e. In this case we expand 1/10(,) by the well-known Whittaker-Shannon interpolation equation: 1/1 (!!:. m) simr(2cxo - n) simr(2cxo - n) (8) c 2c' 2c 1l"(2cxo - n) 1l"(2cxo - n) n=-oom=-oo As 1/10(,) is zero outside the rectangular aperture we have the summation limits: =ed < n < cd - cd < m < cd (9) Therefore there are CJ"0CJ" degrees of freedom. In a more realistic case where the apertures are circular as mostly in optics, we have the following expansion: (10) with polar coordinates (r, if» in the object plane. In the expansion there are !N(N + 1) non-zero terms, from the degrees of freedom given by the space - bandwidth product, it follows that: (11) There is evidence [4] that in human vision the cones and the rods also apply Whittaker - Shannon sampling. An intresting issue is the effect of illumination: coherent, partial coherent or incoherent. The effect of the illumination on the number of degrees of freedom and the influence of aberrations is also of practical interest. However, this is beyond the scope of this short paper. In the next section we pay attention to the metric aspect of information. The classical theory of optics is valid at all levels of intensity. In case low ligth level measurements must be analyzed and described, also detection theory and noise will become important. 2 Application to radiological imaging In this section we analyse radiologieaal imaging from the viewpoint of information theory. The performance of an imaging system such as the radiographic screen - TV system can be characterized by the sensitivity, the Modulation Transfer Function (MTF) and the Noise Power Spectrum (NPS). The ability of the system as a photon counter can be computed in the number of Noise Equivalent Quanta (NEQ). The efficiency of the system as a photon detector is given by the ratio of NEQ to the input photon fluence. This ratio is defined as the Detective Quantum Efficiency (DQE). The DQE as function of spatial frequency includes the effect of MTF and noise. We analyse f.he system presented in Figure 2 which is the basic model of a diagnostic x-ray imaging detector system. Impinging x-ray photons that are not absorbed by the patient hit the intensifying screen and a fraction of them is absorbed in the screen and each generates a large number of light photons. Again a fraction of the light photons coming out of the screen is accepted by the optical coupling lens and is focused on the CCD-sensor. We will now briefly characterize the three system components depicted in Figure 2, i.e. screen, optical coupling and CCD- sensor. 2.1 Intensifying screen In many conventional radiological examinations the pattern of x-ray photons is converted into an optical image by means of a luminescent intensifying screen. The. optical image is in most cases recorded in the photographic emulsion of a properly chosen film. The luminescent screen 144 ~ X-ray CCD sensor photons Screen undetected light photons Figure 2: Basic model of x-ray imaging detector. is composed of a so-called phosphor with high Z number that under irradiation by x-ray photons emits visible (preferably green) light. The number of emitted light photons per absorbed x-ray quantum is typically of the order of 2000. The characteristic parameters describing screens are apart from resolution, DQE, energy conversion efficiency, escape fraction, angular radiance distribution. Thin screens do not absorb as many x-ray quanta as thicker screens, but their resolution is better. 2.2 Optical coupling From the appendix we derive by substitution of the object lens distance, the focal length, the F# and the magnification m the following equation for the lens coupling efficiency I): 1 (12) 1)= 1+4F2(1+m-l)2 2.3 CCD sensor A CCD sensor consists of light sensitive cells, positioned in a two-dimensional array. The impinging photons on such a cell generate electron-hole pairs in the silicon layer. The electrons are gathered under an electrode with a positive voltage, the holes are drained. The charge packet is read-out and converted into a voltage. Sequential read-out of a row of pixelcells at video rates in a row by row scanning generates a video-signal, suitable for analog-to-digital conversion and further processing. Apart from the electron-hole pairs due to photons, also electron-hole pairs generate spontaneously in the silicon cell due to thermal lattice vibration, phonons and surface states. This so-called dark current adds to the signal. Dark current depends a. a. on pixel size and température. By cooling of the sensor dark current can be eliminated for the greater part. Both the signal and the dark current are shot noise processes. In the read-out and conversion of the charge packet the shot noise of the preamplifier adds up to the sum of signal and dark current. The for our purpose main characteristics of a CCD sensor are: 1. Quantum Efficiency (QE), the ratio ofinteracting photons (number of electron-hole pairs) and the incoming photons. Typical QE values are 30with QEs of 80these are expensive. 2. Conversion factor, typ. 8 - 10 p,V/c. 3. Dark current (room temperature), typ. 100 e- / pixel at 40 ms image integration time. 4. Noise due to the read-out process and preamplifier noise, typ. 25e- (rms) at a bandwidth of 10 Mhz. 5. Pixel size, we assume a square basic pixelcell of 10p,m x 10p,m. Larger pixels can be synthesized by adding the charge packets at the sensorchip. 145 2.4 Image formation In this section we investigate the optical image formation between intensifying screen and CCD sensor. The magnification should not be too small, m-I ~ 5 otherwise the coupling efficiency TJ will become very low. The (F#) is important and also the focallength because the building length should not be too large. Our purpose is to satisfy our imaging requirements with as few optical surfaces as possible. We have also the vignetting effect to cope with. This means that the offaxis intensity profile drops proportionally to cos4 (4)) with 4> the half angle of the optical system. In order to simplify the discussion we limit the discussion here to screens with one major spectral contribution, e.g. Gd202S so that we can neglect the chromatic aberrations of the imaging lens system. Let us assume that. we want to construct an X-ray detector with an input screen of 20 x 20 cm with a resolution of 1024 x 1024 pixels. We have a limiting resolution of 2.5 ipf mm, In [5] it. has been pointed out that in many electra-optical imaging cases the MTF can be modeled in one dimension by the expression: (13) with 11 the one-dimensional spatial frequency and lIc and n device constants. With n = 2 and Vc = 2.12 lpf mrti we have at the spatial Nyquist frequency a modulation of 0.25. This value is a reasonable compromize between screen sensitivity and resolution in the clinically relevant area and spatial aliasing due to the discrete pixels. A higher modulation value would increase the aliasing and reduce the sensitivity due to the requirement of a slower high resolution screen. We apply a reduced demagnification equal to 5 as required in [6] for DQE reasons and let us for example image a screen part of 5 x 5 cm2 on a CCD of 1 x 1 cm2, we have for a standard sensor of 512 x 512 pixels, a limiting spatial Nyquist frequency of 5 Ip[mm, This resolution is not supported by the intensifying screen, also because we want the screen to be fast in order to have as much photons as possible. From the detector we require a limiting resolution of 2.5 Lp [rnm. so we appear to over sample the MTF by a factor of two. his is a convenient situation and this allows us also the correction of some mild barrel distortion. A detailed analysis will be presented elsewhere but the base line is that from an oversampled image a high quality image representation is constructed by means of spatially - varying multi - sampling rate techniques. This solves our potential resolution problem. Noise may be something different. The most likely situation in which noise structural artifacts may show up due to image processing is the case of imaging a uniform object. In that case the image is a realization of a stochastic process [7]. Random variables wil! be underlined. The number 11representing the X-ray photons impinging on the intensifying screen per mm2 is Poisson distributed according to: k = 0,1,2,3,··· (14) with>' the average number of photons per mm2. With h(x,y) the pointspread function characterizing the optical system coupled to screen and CCD we obtain for the output shot noise process [8] §.(x, y) the expectation value: E{s(x,y)} = >.TJC /__: /__: h(x,y)dxdy (15) and the variance: (16) 146 The DQE at frequency zero is denoted by 7) and the total detection gain is equal to c. The autocovariance of ~(x, y) is given by: (17) The CCD averages the signal s(x,y) over the pixel area. Because the pixel areas are small (typ. 12 x 12 J.Lm2 ) we model the acquired image by multiplying the signal ~(x,y) at the center of the pertinent pixel with its area. The CCD adds electrical noise (readout noise, dark current shot noise etcetera) that we model by a Gaussian distributed random process with a constant mean r and variance a;: (18) The recorded image consists of a correlated part due to the X-ray photons filtered by the systems MTF and an uncorrelated electrical noise part. With where MT F(v., vy) is the modulus and rj;(vx, vy) is the phase of the optical transform function associated with the impulse response function hex, y), we obtain for the autocovariance function: (20) With the MTF of Equation 4 we arrive at the following result: (21) from which we can compute the correlation of neighboring pixels. This equation shows that neighboring pixels are heavily correlated apart from the electrical noise. 3 Conclusion The photon and electrical noise sets a lower limit to the detectable signal levels. Due to the limited number of photons available there is 11 competition between fine spatial detail and contrast scnsitivity, An increase of spatial detail by increasing the number of arrayelements decreases the contrast sensitivity because there are less photons available per element. The spatial information capacity can now easily be defined and computed along the well-known lines of Shannon's channel capacity. The presentation will show an example. A Appendix: Lens coupling efficiency We derive the opticallens coupling Equation refeq:opticalcoupling. At the low luminance levels of our application we choose a formulation in terms of number of photons. We assume that the screen is a diffuse radiator and that radiant intensity Np in number of photons per steradian in the space about apixel , see Figure reffig:diffuse, depends upon the angle () with the normal on the surface according to the Lambert cosine law: (22) with No the number of photons in the direction of the normal on the screen and n = 1 for the Lambertian radiator. 141 Figure 3: The geometry about the diffuse radiating pixel. In order to compute the radiance (the number of photons leaving the surface at a given point and a given direction, per unit solid angle and per unit of surface projected orthogonal to that direction) in the direction of B, we consider an annular ring on the surface of the sphere in Figure reffig:diffuse. The area da of the annulus is: da = (21fT8inB)rdB (23) The solid angle dw subtended by da is: dw = 2nsinBdB (24) The photon flux cI>p through the solid angle dw is: (25) The total number of photons cI>p emitted by apix.l is obtained by integration over B from 0 to n /2, this results in: With the typical number of 2000 photons coming out of an intensifying screen per absorbed x-ray quantum, we have for the Lambertian radiating screen: e, = 2nNo 1~ cosê sinB dB = n N« (26) Entrance pupil Figure 4: The number of photons accepted by the imaging lens. 148 We now turn to the number of photons accepted by an imaging lens, that focuses these captured photons on the corresponding pixel of the CCD sensor. The pixel with area apixel subtends a solid angle du: by the concentric angular ring situated in the entrance pupil of the imaging optical system, see Figure reffig:acceptance, du: = 211" situs de. (27) The projected pixel area in the direction a of the ring is apizelcoSe., therefore the number of photons radiated in du: is: dof>p= N(e.) cosa di» = 211" N(a) cose.sine. da (28) The total number of photons accepted by the entrance pupil is obtained by integrating over the half cone angle subtended by the entrance pupil: (29) References [1] D. Gabor, "Light and information," in Progress in Optics, uol.L (E. Wolf, ed.), pp. 109-153, Ams- terdam, The Netherlands: North-Holland, 1961. [2] M. Born and E. Wolf, Principles of Optics. Oxford, UK: Pergamon Press, 1980. [3] C. H. Slump and H. A. Ferwerda, "Properties of the human visual system as related to the encoding of images," in Advances in Electrottics and Electron Physics, vol. 66 (P. W. Hawkes, ed.), pp. 201- 308, New York, USA: Academic Press, 1986. [4] W. S. GeisIer and D. B. Hamilton, "Sampling-theory analysis of spatial vision," J. Opt. Soc. Am. A, vol. 3, pp. 62-71, 1986. [5] C. B. Johnson, "Classification of electron-optical device modulation transfer functions," Advances in Bleetronses and Electron Physics, vol. 35, pp. 579-584, 1972. [6] C. H. Slump, G. J. Laanstra, H. Kuipers, M. A. Boer, A. G. J. Nijmeijer, and M. J. Bentum, "A novel x-ray detector with multiple screen-CCD sensors for real-time diagnostic imaging," in Medical Imaging 1996: Physics of Medicalimaging (R. L. Van Metter and J. Beutel, eds.), vol. 2780, pp. 450-461, Apr. 1996. [7] M. Brok and C. Slump, "Automatic. determination of image quality parameters in digital radio- graphic imaging systems," in Medical Imaging In: Image Formation (R. Shaw, ed.), vol. 1090, pp. 246-256, 1989. [8] A. Papoulis, Probability, Random Variables and Stochastic Processes. New York: McGraw-Hill, 1965. 149 On the Capacity of Generalized Write-Once Memory with State Transitions Described by An Arbitrary Directed Acyclic Graph Fang- Wei Fu * and A.J. Han Vinck t Abstract-A generalized write-once memory, which introduced by Fiat and Shamir , is a q-ary information storage medium, Each storage cell is expected to store one of q symbols, and the legal state transitions are described by an arbitrary directed acyclic graph. This memory model can be understood as a generalization of binary write-once memory, which introduced by Rivest änd Shamir, During the process of updating information, every bits can be changed from a O-state to a I-state but not vice versa. In this paper, we study the problem of reusing a generalized write-once memory for successive T cycles. When encoder knows and decoder does not know the previous state of the memory, we deter-mine the zero-error capacity region and the maximum total information bits stored in the memory for consecutive T cycles. These results extend the results of Wolf, Wyner, Ziv and Körner for binary write-once memory. 1 Introduction A write-once memory ( WOM ) is a binary information storage medium, During the process of updating information, every bits can be changed from a O-state to a I-state but not vice versa. This class of WOM includes punch cards and digital optical disks, in which binary data is represented by blanks ( O's) and dots ( l's ), due to the updating technology, the dots can not be removed. Rivest and Shamir [1] showed that, if encoder knows and decoder does not know the previous state of the memory, WOM can be reused very efficiently by using the same code for every cycle. Wolf, Wyner, Ziv and Körner [2] studied the WOM from an information theoretic point of view. For fixed T cycles, if different codes are allowed to be used for every cycle, they determined the capacity region and the maximum total information bits stored in the memory for consecutive T cycles. Fiat and Shamir [3] studied the generalized write-once memory, which is a q-ary information storage medium, Each storage cell is expected to store one of q symbols, and the legal state transitions are described by an arbitrary directed acyclic graph. They extended the results of Rivest and Shamir [1] for binary WOM to generalized WOM, in which case the encoder and decoder use the same code for every cycle. Heegard [4] investigated the noisy WOM, and presented an inner bound for the s-error capacity region, and showed that in some cases the inner bounds are exactly the s-error capacity region. Kuznetsov and Vinck [5] studied the general defective channel with informed encoder as a generalization of a memory with defects, they presented lower bounds and upper bounds for the maximum transmission rate, as a corollary, they could derive the capacities of binary WOM and other constrained memories. In this paper, we study the problem of reusing a generalized WOM for successive T cycles. When encoder knows and decoder does not know the previous state of the memory, and different codes are allowed to be used in every cycle, we determine the zero-error capacity region and the maximum total information bits stored in the memory for consecutive T cycles. These results extend the results of Wolf, Wyner, Ziv and Körner for binary WOM to generalized WOM. "Faag-Wei Fu is with the Department of Mathematics, Nankai University, T'ianjin 300071, P.R.China. He is now visiting Lhe Institute for Experimental Mathematica, University of Essen, Ellernstrasse 29, 4300 Essen 12, Germany. tA.J. Han Vinck is with the Institute for Experimentaî Mathemat.ics, University of Essen, Ellernstrasse 29, 4300 Essen 12, Germany. 150 2 Definitions, Notations and Model In order to describe the mathematical model of the generalized WOM, we borrow some notations and definitions from [3J. A directed graph is a pair (V, E), where V is the set of vertices and E ç V x V is the set of edges, A directed edge from s to s' is denoted by s ---t s' . A path from s to s' is a sequence of zero or more edges in E of the form s = SI ---t S2 ---t ... ---t Sk = S' , and abbreviated as s ===} s', A cycle is a nonempty path from a vertex to itself. A directed graph which does not contain cycles is a directed acyclic graph ( abbreviated as DAG ). A rooted DAG is a triple (V, E, r) such that (V,£) is a DAG, the root rEV, and for any s E V, there is a path from r to s. In the sequel, we only consider rooted DAG, and assume V = {O,1,"',q -I}, 0 is the root. A generalized WOM is a q-ary information storage medium, Each storage cell is expected to store one of q symbols, and the legal state transitions are described by a rooted directed acyclic graph (V, E), abbreviated as (V,£)- WOM. During the process of updating information, if the content ( or state) of a storage cell is s, we can update s to s' if only if s ===} s': This memory model can be understood as a generalization of binary write-once memory, Example 1 V = {O, 1,2, 3}, E = {O ---t 1,0 ---t 2,0 ---t 3,} , During the updating process, a storage cell in a "0" state may be not changed or updated to the "1" , or "2", or "3" state, a storage cell in a Ui" ( i=l , 2, 3 ) state is then forever stuck at the "i"state. Example 2 V = {D, 1,2, 3}, E = {O ---t 1,1 ---t 2,2 ---t 3,} , During the updating process, a storage cell in a "0" state may be not changed or updated to the "1" , or "2", or "3" state, a storage cell in a "1" state may be not changed or updated to the "2", or "3" state, a storage cell in a "2" state may be not changed or updated to the "3" state, a storage cell in a "3" state is then forever stuck at the "3" state. Assume (V, E)-WOM consists of n storage cell, The initial states of all storage cells are "0" ( root ). We want to reuse the (V, E)- WOM for successively T cycles. In this paper, we only consider the following case : Encoder knows and decoder does not know the previous state of the memory. Encoder and decoder can use arbitrary codes for every cycle, and there is no decoding error ( zero-error case). Notation If z" = (Xl, X2,' . " Xn) E vn, yn = (Yl, Y2," " Yn) E vn, we denote z" ===} yn if only if Xi ===} Yi,i = 1,2," ·,n. Definition 1 A (n,T,Ml,···,MT) code for (V,E)-WOM consists of T pairs of encoding and decoding functions {(ft,9')}[=I' where message index sets It = {1,···, M.}, t = 1,"', T. ft: It x Vn >--+ v-, 9t: Vn >--+ It. such that for any mI E h,mz E Iz,"',mT E IT, denote Yo = (0, .. ·,0) = Q E Vn, yr = ft(mt, yr-l)' t Denote R, = = *1," " T, then yr-l ===} Yr, and 9t(Y;') = m"~ t = 1,' . " T. logz Mi, t = 1,·", T. T-tuple (Rl,' . " Rr) is called the rate vector of this code. Suppose Ar(V, E) is the closed set generated by the Het of all rate-vectors. Ar (V, E) is called capacity region of the (V, £)- WOM. Denote T Cr(V,£) =max(ERt I (Rl,Rz, .. ·,RT) E Ar(V,£)} t=l CT(V, E) is the maximum total information bits stored in one storage cell of the (V, E)- WOM during the T updating cycles. D 3 Main Results In this paper, we present an information-theoretic single-letter characterization for the capacity region Ar(V, E), and a calculation formula for the maximum total information bits CT(V, E) stored in one storage cell of the (V, E)-WOM during the T updating cycles. Let H(·) represent the entropy ofrandom variable or probability vector, He-I,) represent conditional entropy, lR+ denote the set of non-negative real number, and hex) denote the binary entropy function. Assume v = {(Vl,V2) E v2 I VI ===} V2 j . 151 X, Y are two random variables, which take values in V, We denote X ==} Y if for any (x, y) 1: V, Pr{X = x, Y = y} = O. If random variables 51,52,"', ST form a Markov chain, which take values in V, and for every t = 2,3,'" ,T, St-I ==} St, then we denote SI ==} 52 ==} ... ==} ST. Assume BT(V,E) = {(RI,R2,·· ',RT) E !R+T I there exist tandum variables 51,52,'" ,ST, 51 ==;. 52 ==;. ... ==;. ST, such that RI S H(SI), R2 S H(S2ISIl,'" ,RT S H(STIST-d} . R.T(V,E) is the closed set generated by BT(V,E). Theorem 3.1 The capacity region of the (V, E)- WOM is AT(V, E) = R.T(V, E) . The proof of Theorem 3.1 will be given in section 4. Remark Heegard [4] determined the e-error capacity region for deterministic WOM, which has the same representation form as Theorem 3.1 ( zero-error capacity region ). It should point out that the proof of the converse part of Theorem 3 in [4] is not complete. 0 For a given rooted DAG (V, E), we define its incidence matrix as A = (aij )qxq, where aij = 1, if there is a ( zero or non-zero) path from vertice i to vertice j, and aij = 0, otherwise. Remark The incidence matrix defined here is different from the definition in graph theory, which is based on edge set E. 0 Denote Im as the all one row vector with length m, and Im as the unit matrix of order m. If Q is a matrix, we use QC to denote its transpose matrix. Theorem 3.2 The maximum total information bits stored in one storage cell of the (V, E)- WOM during the T updating cycles is CT(V,f) = log2(Iq· AT-I ·Iqe) . The proof of Theorem 3.2 will be given in section 5. Following we consider two examples of generalized WOM. (1) V = {O, 1,"', q - I}, EI = {O -t 1,0 -t 2,",0 -t q - I,} (2) V ={0,1,·· ',q -I}, E2 = {O -t 1,1-t 2,"',q- 2 -t q-l,}. Corollary 3.1 (1) The capacity region of the (V, EI)- WOM is AT(V, Ed = {(RI, R2, ... ,RT) E !R+ T I there exist probability vectors pCt) = (p~t), p~t), ... ,P~t]_1 ), t = 1,2,·· ,T.such that R, S H(p(I»), R, S m::~p~i»)H(p(t»), t = 2,3,'" ,T.}. (2) The maximum total information bits stored in one storage cell of the (V, Ed- WOM during the T updating cycles is CT(V,Ed = log2[1 + (q -l)T]. Corollary 3.2 The maximum total information bits stored in one storage cell of the (V, E2)- WOM during the T updating cycles is q-I CT(V, E2) = log2 C!2'{-1 = L[log2(T + i) -log2 i] . 1-1 where C~ = n!/m!(n - m)! . Proof The incidence matrix of the (V,E2)-WOM is Uq = (Uij)qxq, where Uij = 1, if j ~ i; and Uij = 0, if j < i. Then u, = [ U q-l Oq-l 1q-l 1 C ] . where Oq-l is the zero vector of length q - l. Therefore t-I Iq' Uq'-I . 1qc = 1 + L Iq-I' U~_I . Iq_IC. j=O 152 Denote f3t,q = Iq . uqt-l . Iq c, t = 1,2,···. Then t f3t,q = 1 + Lf3j,q-l , t ~ 1,q ~ 2. j=l Following we show that f3t,q = C~::'i-l by using induction method on q. By Corollary 3.1 we know that f3t,2 = t + 1, t ~ 1, This implies that the assertion is true for q = 2. Assume the assertion is true for q = k, then t t f3t,k+1 = 1+ L f3j,k = 1+ L cik::'~-l= C~+k. j=l j=l This implies that the assertion is true for q = k + l. Therefore from the induction method, we know the assertion is true. Hence o 4 Proof of Theorem 3.1 In this section, we generalize the methods of Wolf, Wyner, Ziv and Körner [2J for proving coding theorems of binary WOM to prove Theorem 3.1. The proof of Theorem 3.1 is divide into two parts (1) proof of the direct part of Theorem 3.1, (2) proof of the converse part of Theorem 3.1. In order to prove Theorem 1, we introduce some properties of typical sequences. 4.1 Properties of Typical Sequences LI this subsection, we only list those properties of typical sequences, which we need for establishing our results. For details of typical sequences and the proofs of these properties, we refer to the book written by Csiszár and Körner [6J. X, Y are two finite sets. P(X) is the set of probability distribution on X. For x" E xn, let N(a I z") be the number of occurrences of a E X in z". The type of z" is the distribution Px" on X defined by Px" (a) = *N(a I xn), a EX. Let rn(X) be the set of types. For P E rn(X), we denote Tp {z" E xnl Px" = P} . = Assume X is a random variable, which take values in X, If its probability distribution Px E rn(X), we denote Tpx = TJ(. For a pair of sequences z" = (Xl,' ", Xn) E xn and u" = ('111,"', '!In) E' yn, let N(a, b I z ", yn ) be the number of occurrences of (a, b) E X x Y in {(Xi, Yi)} :'=1 . The joint type of x'" and yn is the distribution Px', y' on X X Y defined by Pe- , y,,(a,b) = .!.N(a,b n I z", yn), a E X, bEY. In the same way, we can define rn(X x Y) and Tp, P E rn(X x Y). Suppose X, Y are two random variables, which take values in X and Y respectively, If the joint probability distribution PX,y E rn(X x Y), then the marginal distribution Px E rn(X) and Py E T'(Y). We denote Tpx,¥ = TJ(,y. For a xn E TJ(, we denote Ty1x(xn) = {yn E ynl Pxn,yn = Px,y} . Property 4.1 For any P E P(X), there exist a sequence of types Pn E rn(X), such that maxIPn(x) - P(x)l-r 0, n -r oe. xEX Property 4.2 Ir(X)1 ::;(n + l)lxl . 153 Property 4.3 Property 4.4 FOT any xn E TJ(, we have (n + 1)-IXIIYI2nH(YIX) s ITy1x(xn)1 ::; 2nH(YIX) . 4.2 Proof of the Direct Part of Theorem 3.1 The Direct Part of Theorem 3.1 Assume SI, S2,"', ST are random variables, which take values in V, and SI = = ...= S2 ST. For any fixed 8> 0 (very small ), set MI = 2n[H(Sd-óJ, M, = 2n[H(SdS,-d-óJ, t = 2,3,'" ,T. Then when n is sufficient large, there exists a (n, T, MI,"', MT) code for (V, E)-WOM. o Remark MI,' .. ,MT are assumed to be positive integers, This assumption does not affect the asymptotic behaviour of the code. Proof In order to simplify the proof here, we only prove the direct part of Theorem 3.1 for T = 2. It is easy to extend our proof here for general T. By Property 4.1, we can assume Psç.s, E Tn(v x V). This assumption does not affect the asymptotic behaviour of the code constructed in the follows. Suppose {F"'}!;;I is a partition of Ts" i.e. F", nF"" this partition satisfies the following property: = 0, m"l mi; and U~~IF", = T If s,. Property" such that u = x. For any u ETs" and any m2 E h = {1,"', M2}, there exists a vector x E Fm" 0 then there exists a (n, T, MI, M2) code for (V, E)-WOM. The encoding and decoding functions can be defined as follows. the first cycle By Property 4.3, we can choose MI different elements VI, V2, ... ,V M, ETs,. encoding function fl(i) = Vi, decoding function 9I(Vi) = i. and any j E 12 = {l,···, M2}, the second cycle Xj(u) E Fj, such that u if xE Fj. = For any u ETs" Xj(u). encoding function h(j,u) there exists a vector = Xj(u), decoding function 92(X) = j, Below we show that there exists such a partition of T For every bETs" s" by using random coding method. we correspond a random index Tb, which uniformly distribute over 12 {1,···, M2}, and all these random indexs are independent. Define Fm = {bE Ts, I Tb =m}, m = 1,2,···,M2· Then {F"'}!;;I forms a random partition For a fixed u E T set of T s,' S" G(u) = {x ETs, I u = x}, kv. = IG(u)1 . Because SI = S2, then Ts,ls, (u) c:;: G(u). By Property 4.3, ku = IG(u)1 ~ ITs• 1s1(u)1 ~ (n + 1)-q'2 (S,I d nH S . Fix m E h = {I,· ", M2}, and u E TS1' Then PT{ Fm n G(u) =0} Pr{ for every b E G(u), Tb "I m } [1- _2_t M 2 u ::; exp{-k,JM2} ::; exp{ -en + 1)-q'2 nH(S,ISd 1M2} exp{ -en + 1)-Q'2 nó ) -t 0, n -t 00 . This implies that when n is sufficient large, there exists a partition ... This completes the proof of the direct part of Theorem 3.1. of Ts,' which satisfies Property 0 154 4.3 Proof of the Converse Part of Theorem 3.1 The Converse Part of Theorem 3.1 If there exists a (n, T, MI,"', Mr) code for (V,E)-WOM, then the rate vector (~log2 MI, ~ log2 M2," " ~ log2 Mr) E Rr(V, E). 0 Proof Assume WI, W2,' . " Wr are independent random variables, which uniformly distribute over It = {I,· . " Md, t = 1,2," " T, respectively. {(ft,9t)}[=1 are the T pairs of encoding and decoding functions for the (n, T, MI, ... , Mr) code. Denote Yon= Q (zero vector), ~n = (Yi,I, Yi,2, ... , Yi,n) = ft(Wt'~':.I)' t = I,"',T, then ~:I ==> ~n, and gt(~n) = Wt, Yi-I,i ==> Yi,i, t = I,2,"',T; i= 1,2,'" ,n. Because Wt and 1';:1 are independent, then Therefore H(W,) = H(YtIY'':.I)' t = 1,2,"', T. Suppose L is an index random variable, which uniformly distribute over the index set {I, 2, ... , n}, and L is independent of other random variables. Then 1 1 ;; log2 M, = ;;H(Wt) H(Yi,LIYi-I,L' L) S; H(Yi,L IYi-I,d . For every t = 1,2,"', T, Yi-I,L ==> Yi,L, but random variables YI,L, Y2,L,"', Yr,L may not form a Markov chain. We take random variables SI, S2, ... , Sr, which take values in V, and joint probability distribu tion is defined by Pr{SI = u, S2 = j2,"', Sr = jr} = Pr{YI,L = jIJPr{Y;,L = [z I YI,L = JIJ··· Pr{Yr,L = Jr I Yr-I,L = Jr-IJ . Therefore SI ==> S2 ==> ... ==> Sr, and H(Stl = H(YI,Ll, H(St I St-I) = H(Yt,L I Yi-l,Ll, t = 2,3,"', T. Hence 1 ;; log2 u, S; H(St I St-I), t = 1,2,"', T. where So = O. This implies that o 5 Proof of Theorem 3.2 For a positive vector x = (XI, ... , xm), here Xl, ... , Xm > 0, we denote log2 x = (log2 Xl, ... ,log2 X",). Lemma 5.1 À = (Ào, ÀI , , Àq_ IJ is a constant positive vector, p = (Po, PI, ... , Pq-l) is a probe- bility vector, i.e. Po, PI, ,Pq-l > 0 and L,;::; Pi = 1, then q-l H(p) + ~Og2À] . pC S; log2[L Ài] = log2(À' 1qC) • i=O equality holds if only if Pi = Ài/[L,J:~ Àj] , i = 0,1,' . " q - 1. 155 For a given DAG (V,E), here V = {O, 1,'" ,q - I} , ° is the root. Assume Vi = {j E V I i => j}, i = 0,1,' .. ,q - 1. here Va = V. The incidence matrix of DAG (V,E) is defined as A = (aij)qxq, where aij = 1, j E Vi, and aij = 0, J ft Vi. Denote ai =; (ai,n, ai.J,· ", ai,q-d, i = 0,1," -, q - 1. Assume SI, S2,"', ST are random variables, which take values in V, ann 81 => S. => ... => ST. Denote d~') = Pr{S, = i}, i = O,I,···,q-l;t = 1,2,'" ,T. de') = (d(') o , de') l' de') ) t = 1".,. ... 'q-l' 2" T d('), t = 1,2,"', T, are probability vectors. Assume bI:] = Pr{St = j I St-1 = i}, i,j = 0,1," ',q -1;t = 2,3,'" ,T. (t) .d (t) _ (b(t) (t) (t)). wherebij =0, J I"Vi. We knowthat bi - ia,bil,"',biq-1' ~=O,I,"·,q-l;t=2,3, .. ·,T, are prob~bility vectors, B(') = (b~:])qxq, t = 2,3,' ... ,T, are random matrixs, and d(t-l) ·B(t) = d(t). Then, q-1 H(Sd = H(d(l)), H(S, I St-d = 2:>~'-1)H(b;'lJ, t = 2,3,'" ,T. i=O Suppose At. l~ = (e~t), ei') , " . , e~:.!.l)"' t = 0, 1, 2, " . , T. where A? = Iq ( unit matrix of order q ). Lemma 5.2 For any m = 1,2,' ", T, we have L H(ST+1-l I ST-I) <::: d(T-m) ·log2(A m . l~) . 1=1 equality holds if only if for every I = 1,2, ... ,m, (T+I-I) = 0)£)(1-1)/" L..."rEVi UT bt,) £)(1-1) , f' E V·'tJ an d b(T+1-I) Z J t,) = ° 'f' , Z J d ')l: Vi· Proof We prove this lemma by using induction method ( on m ). Case m = 1: Because b;~) = 0, j rt Vi, then H(bV)) <::: IOg21Vil = log2(ai . l~), Therefore q-l H(ST I ST-I) = Ld;T-1) H(b;T)) <::: d(T-l) ·log2(A· l~) . i=û equality holds if only if b;~) = I/lVii, if jE Vi; and bl~) = 0, if j rt V;. This implies that the assertion is true for m = l. Assume the assertion is true for m = k, below we prove the assertion is true for m = k + 1. k+1 k L H(ST+1-1 I ST-tl H(ST-k I ST-k-1) + LH(ST+1-1 I ST-I) 1=1 1=1 < H(ST_k I ST-k-Il + d(T-k) ·log2(Ak ·1~) q-l L d~T-k-l) H(b~T-k)) + d(T-k-l) . B(T-k) . log2(A k . l~) i=O q~l L dIT-k-1)[H(b;T-k)) + bIT k). log2(Ak .1~) J . i=O 15& By Lemma 5.1 and the fact bl~-k) = 0, j If Vi, we have Tk H(bI - » + bIT-k) ·log2(Ak ·I~)::; log2(L W» = log2(ai· Ak ·I~). rEV; Hence k+l LH(ST+1-1 I ST-I)::; dT-k-l ·IOg2(Ak+l ·I~). 1=1 equality holds if only iffor every I = 1,2,···, k + 1, (.) holds. This implies that the assertion is true for m = k + 1. By induction method, we know the assertion is true. 0 Proof of Theorem 3.2 By Lemma 5.2, we have T-l L H(St+l I St) ::; d(l) ·log2(AT-l . I~) . t=1 By Lemma 5.1 and H(SI) = H(d{l), we have H(SI) + H(S2 I SI) + ... + H(ST I ST-d ::; H(d(I» + d(l) . log2(AT- 1 . I~) ::; log2(lq . AT-l . I~) . equality holds if only if for every I = 1,2,···, T - 1, (.) holds. This implies that CT(V, E) log2(lq . AT-I. Ig). 0 6 Conclusions In this correspondence, we study the problem how to reuse a generalized WOM for successive T cycles. When encoder knows and decoder does not know the previous state of the memory, and different codes are allowed to be used in every cycle, we determine the zero-error capacity region and the maximurn total information bits stored in the memory for consecutive T cycles. These results extend the results of Wolf, Wyner, Ziv and Körner for binary WOM to generalized WOM. By considering the previous state of the memory as side information available to encoder and decoder, Wolf, Wyner, Ziv and Körner [2J studied binary WOM in the following cases: (E+, D+) Both of encoder and decoder know the previous state of the memory. (E+, D_) Encoder knows and decoder does not know the previous state of the memory. (E_ , D +) Encoder does not knows and decoder knows the previous state of the memory. (E+,D+) Both of encoder and decoder do not know the previous state of the memory. Using zero-error and s-error as performance criteria, they investigated the problem of determining the capacity region and and the maximurn total information bits stored in the memory for consecutive T cycles. Generalized WOM can be studied in the same way considered by Wolf, Wyner, Ziv and Körner [2J. We study generalized WOM here only in case (E+, D_) with zero-error codes, because this case is the most interesting and natural case. It should point out that some other results for binary WOM in [2] can also be established for generalized WOM. There are still some unsolved difficult problems for generalized WOM, for example, in case (E_,D_) and (E_,D+) with EO-errorcodes, the maximurn total information bits stored in the memory for consecutive T cycles are not known to us. References [1] R.L. Rivest and A. Shamir, " How to reuse a write-once memory," Inform. Cantr., Vo1.55, no.l, pp.1-19, 1982. [2] J.K. Wolf, A.D. Wyner, J. Ziv, and J. Körner, "Coding for a write-once memory," AT&T Bell Labs. Tech. J., Vo1.63, no.6, pp.1089-1H2, 1984. 157 [3] A. Fiat and A. Shamir, " Generalized" write-once" memories," IEEE Trans. Inform. Theory, IT-30, no.3, pp.470-480, May 1984. [4] C. Heegard, " On the capacity of permanent memory," IEEE Trans. Inform. Theory, IT-3I, no.1, pp.34-42, Jan. 1985. [5J A.V. Kuznetsov and A.J.H. Vinek, " On the general defective channel with informed encoder and capacities of some constrained memories," IEEE Trans. Inform. Theory, IT-40, no.6, 1'1'.1866·· 1871, Nov. 1994. [6] C. Csiszár and J. Körner, Information Theory: Coding Theorems for Discrete Memoryless Systems, New York: Academic, 1981. [7] G. Simonyi, " On write-unidirectional memories," IEEE Trans. Inform. Theory, IT-35, no.3, pp.663-667, May. 1989. 158 .. ..I ....,,_- 11 . - 11 -' I. ~r_ .• ol u .. --._ .... -. •- r • • .. -_ I' - ...L. dr.ir. Stan Baggen Ir. Mortaza Shoae Bargh adres Philips Research Labs adres T.U. Eindhoven Prof. Holstlaan 4 Fac. Elektrotechniek 5656 AA Eindhoven Postbus 513 5600 MB Eindhoven email baggen@natlab.research.philips.com email mortaza@ei.ele.tue.nl Ir. Brian de Bart dr. M.G. de Bruin adres Philips Semiconductor-Systems Lab adres T. U. Delft Postbus 218 TWI-ET 5600 MD Eindhoven Postbus 5031 2600 GA Delft email debart@ehv.sc.philips.com email Harde Creemers ir. F. Cremer adres T.U. Eindhoven adres Universiteit Twente Fac. Elektrotechniek Fac. Elektrotechniek Postbus 513 Postbus 217 5600 MB Eindhoven 7500 AE Enschede email harrie@ei.ele.tue.nl email ir. Marten van Dijk prof.dr. Fang-Wei Fu adres Inst. Exp. Math., Univ, Essen adres Philips Research Labs Ellernstrasse 29 Prof. Holstlaan 4 4300 Essen 12 5656 AA Eindhoven Duitsland email mvandijk@natlab.research.philips.com email ir. Geert Heideman ir. Petra Heijnen adres TIOS adres T. U. Eindhoven Universiteit Twente Fac. Wiskunde en Informatica Postbus 217 Postbus 513 7500 AE Enschede 5600 MB Eindhoven email G.H.L.M.Heideman@el.utwente.nl email petrah@win.tue.nl dr.ir. Andries Hekstra dr.ir. E. Hekstra-Nowacka adres KPN Research adres Philips Research Labs St. Paulusstraat 4 Prof. Holstlaan 4 2260 AK Leidschendam 5656 AA Eindhoven email a.p.hekstra@research.kpn.com email hekstra@natlab.research.philips.com ir. Erik Hupkens dr.ir. Cees Jansen adres Fac. Toegepaste Wiskunde adres Philips Crypto B.V., GeL BAM Universiteit Twente Postbus 218 Postbus 217 5600 MD Eindhoven 7500 AE Enschede email cja@iaehv.nl email hupkens@math.utwente.nl Ir. Jeroen Keuning prof.dr. Dirk Kleima adres T.U. Eindhoven adres Universiteit Twente Fac. Wiskunde en Informatica Fac. Elektrotechniek Postbus 513 Postbus 217 5600 MB Eindhoven 7500 AE Enschede email keuning@win.tue.nl email d.kleima@el.utwente.nl ir. Arie Koppelaar DerkKort adres T. U. Eindhoven adres Philips Research Labs Fac. Elektrotechniek Prof. Holstlaan 4 Postbus 513 5656 AA Eindhoven 5600 MB Eindhoven email email ir. Gerhard Langelaar 11'. Erik Meeuwissen adres T.U.Delft adres T.U. Eindhoven Fac. Elektrotechniek Fac. Elektrotechniek Postbus 5031 Postbus 513 2600 GA Delft 5600 MB Eindhoven email email erik@ei.ele.tue.nl prof. dr. Edward van der Meulen ir. Jan Rooyackers adres K. u. Leuven adres T.U. Eindhoven Departement Wiskunde Fac. Elektrotechniek Celestijnenlaan 200B Postbus 513 B-3000 Leuven 5600 MB Eindhoven België email jan@ei.ele.tue.nl email ecvdm@gauss.wis.kuleuven.ac.be ir. Mariska Sas ir. Mihaela v.d. Schaar-Mitrea adres T.U. Eindhoven adres Philips Research Labs Fac. Wiskunde en Informatica Prof. Holstlaan 4 Postbus 513 5656 AA Eindhoven 5600 MB Eindhoven email mitrea@natlab.research.philips.com email prof.dr.ir, Piet Schalkwijk dr.ir. C.". Slump adres T. U. Eindhoven adres Universiteit Twente Fac. Elektrotechniek Faculteit Elektrotechniek Postbus 513 Postbus 217 5600 MB Eindhoven 7500 AE Enschede email piet@ei.ele.tue.nl email c.h.slump@el.utwente.nl prof.dr.ir. "enk van Tilborg dr.ir. Tjalling Tjalkens adres T. U. Eindhoven adres T.U. Eindhoven Fac. Wiskunde en Informatica Fac. Elektrotechniek Postbus 513 Postbus 513 5600 MB Eindhoven 5600 MB Eindhoven email henkvt@win.tue.nl email tjalling@ei.ele.tue.nl dr.ir. Ludo Tolhuizen Ir. Mark Vandenwauvcr • adres K.U. Leuven-ESAT jCOSIC adres Philips Research Labs Kard. Mercierlaan 94 Prof. Holstlaan 4 B-3001 Heverlee 5656 AA Eindhoven België email tolhuizn@natlab.research.philips.com email vdwauver@esat.kuleuven.ac.be Saskia Vangheluwe dr.ir. Peter Vanroose adres K.U. Leuven adres K.U. Leuven Departement Wiskunde Dep. Elektrotechniek ESAT Celestijnenlaan 200B Kard. Mercierlaan 94 B-3000 Leuven B-3001 Heverlee België België email saskia.vangheluwe@wis.kuleuven.ac.be email Peter.Vanroose@esat.kuleuven.ac.be ir. Leo Veelenturf dr.ir. Rene van der Vleuten adres Universiteit Twente adres Philips Research Labs Fac. Elektrotechniek Prof. Holstlaan 4 Postbus 217 5656 AA Eindhoven 7500 AE Enschede email vleutenr@natlab.research.philips.com email Ir. Paul Volf dr.ir. Jos Weber adres T. U. Eindhoven adres T.U. Delft, Fac Elektrotechniek Fac. Elektrotechniek Mekelweg 4 Postbus 513 2628 CD Delft 5600 MB Eindhoven email j.h.weber@et.tudelft.nl email paul@ei.ele.tue.nl . Ir. Stefan Westen dr.ir. Frans Willerus adres T.U.Delft adres T.U. Eindhoven Fac. Elektrotechniek Fac. Elektrotechniek Postbus 5031 Postbus 513 2600 G A Delft 5600 MB Eindhoven email email frans@ei.ele.tue.nl dr.ir. Peter de With adres Philips Research Labs Prof. Holstlaan 4 5656 AA Eindhoven email dewith@natlab.research.philips.com