Twenty-seventh Symposium on ,,_. a Information Theory ,/ f in the Benelux Noordwijk, The Netherlands June 8-9, 2006 Twenty-seventh Symposium on Information Theory in the Benelux Noordwijk, The Netherlands, June 8-9, 2006 The Twenty-seventh Symposium on Information Theory in the Benelux has been organized by Information and Communication Theory Group Wireless and Mobile Communications Group Delft University of Technology Delft The Netherlands on behalf of the Werkgemeenschap voor Informatiie- en Communciatietheorie in the Benelux Organizing Committee R.L. Lagendijk J.H. Weber A.F.M. van den Berg J. Erkelens The organization committee gratefully acknowledges the financial support of the Gauss Foundation for the 'Best Student Paper Award', and of the IEEE Benelux Information Theory Chapter. Twenty-seventh Symposium on Information Theory on the Benelux R.L. Lagendijk and J.H. Weber Werkgemeenschap Informatie- en Communicatietheorie (WIC) ISBN-10: 90-71048-22-5 ISBN-13 (from January 1, 2007): 978-90-71048-22-7 ij Preface The Symposium on Information Theory in the Benelux traditionally reflects the breadth and richness of research on information and communication theory in Belgium, the Netherlands and Luxemburg. Numerous results have been presented at the symposium, covering areas such as cryptography, coding and communication theory, and signal and image processing. Throughout the years the symposium has also echoed the international developments in these fields, in some of which the Benelux researchers and collaborators have played a pivotal role. The organizers hope that this year the proceedings of the symposium again contain new ideas - even if they are only in their infancy stage - that in due time will find their way to the worldwide research community. We are pleased that the program of this year's symposium contains two invited speakers who will present recent developments in the field of information and communication theory. Prof. Koetter (UIUC) will speak about exciting developments in information theory for network coding, and Prof. Kalker (HP Research) will expose new developments in combining signal processing and cryptography. The proceedings contain 42 papers that have been accepted for oral or poster presentation. The organizers have chosen for a single-track symposium such that there is ample time for informal interaction among the participants. We hope that this provides opportunity for fostering new scientific collaboration between the participants' organizations. On behalf of the organizing committee, I wish all participants a fruitful and pleasant symposium. Prof. Inald Lagendijk, chair Delft, June 2006 jjj Table of Contents Invited presentation R. Koetter: University of Illinois at Urbana-Champaign, USA, Network Coding for Multicast and Non-Multicast Connections 1 Source and Channel Coding A. Martinez, F. Willems: A Coding Theorem for Bit-Interleaved Coded Modulation 3 A.G.C Koppelaar, O. Eerenberg: Power-saving by Adaptive RS Decoding in a DVB-H Receiver 9 H.D.l. Hollmann, l.M.G.M. Tolhuizen: Generating Parity Check Equations for Bounded-Distance Iterative Erasure Decoding of Even Weight Codes 17 R. Schiphorst, CH. Slump: Non-recognizable Error ProbabIlity in a Terrestrial DAB Single Frequency Network 25 Video Compression B. Zafarifar, P.N.H. de With: Adaptive Modeltng ofSky for Video Processing and Codinç Applications 31 J.R. Taal, R.l. Lagendijk: Asymmetric Multiple Description Codmç uSIng Layered Coding and Lateral Error Correction 39 T. Clerckx, A. Munteanu: J. Cornelis, P. Schelkens, Performing Motion Estimation in Distributed Video Coding 45 G. Petrovic, P.H.N. de With: Framework for Layered 3D VIdeo Streaming .......... 53 Poster session K.A.S. Abdel-Ghaffar, J.H. Weber: Enumeration of Stoppinç Sets of Full-Rank Parity-Check Matrices of Hamming Codes 61 N.F. Kiyani, J.H. Weber: Analysis of Random Regular LDPC Codes on Rayleigh Fading Channels 69 Y.A. Reznik, A.V. Anisimov: On Direct Construction of Variable-Length- to-Block Codes 77 v P. Li, D. Farin, R. Klein Gunnewiek, P.H.N. de With: On Creating Depth Maps from Monoscopic Video using Structure from Motion 85 Y. Morvan, D. Farin, P.H.N. de With: Design Consideretions for View Interpolation in a 3D Video Coding Framework 93 R. Wijnhoven, P.H.N. de With: 3D Wire-frame Object-Modeling Experiments for Video Survelïlance 101 M. Pastrnak, P.H.N. de With: Multidimensional Model of Estimated Resource Usage for Multimedia NoC QoS 109 D. Farin, P.H.N. de With: Shortest Circular Paths on Planar Graphs 117 M. van Staalduinen, E. Backer, J.e.A. van der Lubbe: Adaptive Scale Selection for Robust Mode Seeking 125 E.e. van der Meulen, P. Vamoose: New Results for Relay Channels 133 L. Debowski, Excess Entropy - A Link between Probabilistic and Algorithmic Approaches to Mutual Information 141 o. Shental, I. Kanter: Optimum Asymptotic Multiuser Efficiency of Pseudo-Orthogonal Randomly Spread CDMA 149 V. Tamgnoue, V. Moeyaert, S. Bette, P. Mégret: Impulse Noise Estimation for Adaptive Modulation and Coding 157 W. Van Thillo, J. Nsenga, F. Horlin, A. Bourdoux, R. Lauwereins: Continuous Phase Modulation for 60 GHz Wireless High Data Rate Communication 165 F. Hoeksema, e.H. Slump: The analysis of Timing Metrics for Synchronisation Purposes in OFDM Systems 173 e.K. Ho, J.-P.M.G. Linnartz, Calculation ofthe Spatial Reservation Area for the RTSjCTS Multiple Access Scheme 181 P.J.O. Doets, R.L. Lagendijk: Extension of a Stochastic Model for the Philips Audio Fingerprint 189 T. Ignatenko, F. Willems,: On the Security of the XOR-Method in Biometrie Authentication Systems 197 O. Koval, S. Voloshynovskiy, T. Pun: Laplacian Channel State Estimation for State Dependent Channels 205 e.J.A. Jansen: Stream Cipher Constructions over Binary Extension Fields 213 vi Y. Borissov, S. Nikova, N. Manev: On Primitive Polynomials over GF(2) the Duals of which are also Primitive 221 Communications S.A. Husen, S. Baggen, A. Filippi: Blind Estimation of Maximum Delay Spread in OFDM Systems 227 M.M. Pietrzyk, K. Popovski, T.A. Wysocki, B.J. Wysocki, J.H. Weber: On the Performance of Scarcely Populated Coded UWB-IR Systems on Multipath Fading Channels 235 J. Nsenga, W. Van Thillo, F. Horlin, A. Bourdoux, R. Lauwereins: Offset-QPSK with FDE for 60 GHz Wireless Communication Systems 243 J. Levendovszky, Cs. Orosz, A. Olah, and E.e. van der Meulen: Optimal Energy Balancing Protocols for Wireless Sensor Networks 251 Cryptography, Security, and Authentication S. Voloshynovskiy, O. Koval, E. Topak, T. Pun: Message Communications and Channel State Estimation for State Dependent Channels 259 V.B. Balakirsky, A.R. Ghazaruyan, A.J.H. Vinck: Processing Fingerprints via Binary Codes: The BMW Algonthm 267 B. Gedrojc, J.e.A. van der Lubbe: Private Matching of Noisy Data 275 M.S. Kiraz and B. Schoenmakers: A Protocol Issue for the Malicious Case OT Yao5" Garbled Orcuit Construction 283 Pattern Recognition for Human Interaction J.F. Lichtenauer, E.A. Hendriks, M.J.T. Reinders: 3D versus 2D Pose InTormation for Recogmtion of NGT Signs 291 W. Lao, J. Han, P.H.N. de With: 3D Mode/ing for Capturing Human Motion Trom Monocular Video 299 J. Wang, A.P. de Vries, M.J.T. Reinders: On Combining User-based and Item-based Collaborative Flltering 307 Invited presentation A.A.e.M. Kalker: HP Research, Palo Alto, USA, Secure Signal Processing 317 Author index Abdel-Ghaffar, K.A.S 61 Mégret, P 157 Anisimov, A.V 77 Meulen, E.e. van der 133, 251 Backer, E 125 Moeyaert, V 157 Baggen, S 227 Morvan, Y 93 Balakirsky, V.B 267 Munteanu, A 45 Bette,S 157 Nikova, S 221 Borissov, Y 221 Nsenga, J 165, 243 Bourdoux, A 165, 243 Olah, A 251 Clerckx, T 45 Orosz, Cs 251 Cornelis, J , 45 Pastrnak, M 109 Debowski, L. 141 Petrovic, G 53 Doets, PJ.O 189 Pietrzyk, M.M 235 Eerenberg, 0 9 Popovski, K 235 Farin, D 85,93, 117 Pun, T 205, 259 Filippi, A 227 Reinders, MJ.T 291, 307 Gedrojc, B 275 Reznik, Y.A 77 Ghazaryan, A.R 267 Schelkens, P .45 Han, J 299 Schiphorst, R 25 Hendriks, E.A 291 Schoenmakers, B 283 Ho, C.K 181 Shental, O 149 Hoeksema, F 173 Slump, e.H 25, 173 Hollmann, H.D.L. 17 Staalduinen, M. van 125 Horlin, F 165, 243 Taal, J.R 39 Husen, S.A. 227 Tamgnoue, V 157 Ignatenko, T 197 Thillo, W. Van 165, 243 Jansen, CJ.A 213 Tolhuizen, L.M.G.M 17 Kalker, A.A.CM 317 Topak, E 259 Kanter, 1. 149 Vanroose, P 133 Kiraz, M.S 283 Vinck, A.J.H 267 Kiyani, N.F 69 Voloshynovskiy, S 205, 259 Klein Gunnewiek, R 85 Vries, A.P. de 307 Koetter, R 1 Wang, J 307 Koppelaar, A.G.e. 9 Weber, J.H 61,69,235 Koval, 0 205, 259 Wijnhoven, R 101 Lagendijk, R.L. 39, 189 Willems, F 3, 197 Lao, W 299 With, P.H.N. de 31, 53, 85, 93 Lauwereins, R 165, 243 ...................... 101, 109, 117, 299 Levendovszky, J 251 Wysocki, BJ 235 Li, P 85 Wysocki, T.A. 235 Lichtenauer, J.F 291 Zafarifar, B 31 Linnartz, J.-P.M.G 181 Lubbe, J.CA. van der 125, 275 Manev, N 221 Martinez, A 3 ix Network coding for multicast and non-multicast connections Ralf Koetter University of Illinois at Urbana-Champaign Dept. of Electrical and Computer Engineering, CSL 1308 W. Main St. Urbana, Illinois, 61801 koetter@uiuc.edu Abstract Networkcoding is a new paradigm in transmitting information through networks. We review some of the basic results in network coding, relating to multicasting and non-multicasting situations for information transmission. Special attention is being paid to the role of network coding as enabling and missing link in the intersection of information theory and networking. 1 Network coding: Sorne rernar'ks The advent of network coding [1] in network information theory has significantly con- tributed to a renewed interest in the fundamental limits of information transmission in networks. Still, network coding appears to be most useful only in some specialized cases of networking, and the paradigm is seemingly constraint to noise-free setups and specialized networks. Moreover, while network coding is extremely useful in a multicast setup, including numerous variations thereof such as distributed storage or gossiping [3, 2], the situation is much less clear in the non-multicast problem. The main reason for this division lies in the nature of multicast connections and its relatives in a noise- free environment. These situations are characterized by the fact that all "randomness" in the network is due to the source processes to be transmitted in the network. Thus, in contrast to interference limited scenarios, all we have to ensure in order to guarantee a successful multicast connection in a network is that random processes of a sufficient entropy rate are observable at a set of intended receivers. However, guaranteeing this is easy as long as the network topology is rich enough, i.e. the standard min-cutyrnax- flow conditions on the network are satisfied. In fact this is the simple idea behind the fairly successful concept of random network coding.ld, 5J There are two major obstacles to generalizing the success of network coding for the multicast to non-multicast setups. First, interference may be caused by other users and, second, entropy rate may be due to noisy links rather than the source processes alone. The issue of noisy links in a multicast setup was addressed in a number of papers, which essentially proved a separation theorem between channel coding and network coding for the multicast setup[6, 7, 8]. Loosely speaking, this means that noisy channels can be separately stabilized at any rate below their capacity without compromising multicast capacity. However, no such theorem was known for the non- multicast setup. We address this issue and present an equivalent theorem for the transmission of information through networ ks of discrete memory less channels (DM Cs). This separation allows us to split the problem of information transmission through DMCs into a relatively easy information theoretic problem of stabilizing individual lThis materialis based upon worksupported by the NSF under AwardNo. NSF CCR-0325673 channels and a "hard" combinatorial problem of finding a network code for a particular non-multicast problem. Acknow ledgment Part ofthis abstract is inspired by joint work Professor Muriel Médard (MIT), Desmond Lun (MIT), Niranjan Ratriakar (UIUC), and Danail Traskov (UIUC). References [1] R. Ahlswede, N. Cai, S.-Y. R. Li and R. W. Yeung, "Network informa- tion flow," IEEE Trans. on Information Theory, vol. 46, pp. 1204-1216, 2000. http://personal.ie.cuhk.edu.hk/~pwkwok4/Yeung/l.pdf [2] S. Deb and M. Médard, "Algebraic Gossip: A Network Coding Approach to Op- timal Multiple Rumor Mongering," submitted to the IEEE Transactions on Infor- mation Theory, April 2004 [3] S. Acadanski, S. Deb, M. Mdard, R. Koetter , "How Good is Random Linear Coding Based Distributed Networked Storage?", NetCod 2005. [4] T. Ho, R. Koetter, M. Medard, D. Karger and M. Effros, "The Benefits of Coding over Routing in a Randomized Setting," Proc. IEEE International Symposium on Information Theory, July 2003 [5] "Random Network Coding Homepage," http://www.mit.edu/~medard/codingl.htm [6] A. Ramamoorthy, K. Jain, P. A. Chou and M. Effros, "Separating Distributed Source Coding from Network Coding," 42nd Allerton Conference on Communica- tion, Control and Computing, 2004 [7] L. Song, R. W. Yeung and N. Cai, "A separation theorem for single- source network coding," to appear in IEEE Trans. on Information Theory, http://personal.ie.cuhk.edu.hk/rvpwkwok4/Yeung/6.pdf [8] S. Borade, "Network Information Flow: Limits and Achievability," Proc. IEEE International Symposium on Information Theory, July 2002 2 A Coding Theorem for Bit-Interleaved Coded Modulation Alfonso Martinez Frans Willems Technische Universiteit Eindhoven Technische Universiteit Eindhoven Fac. ELE, MBS-SPS Group Fac. ELE, MBS-SPS Group Den Dolech 2, 5600 MB Eindhoven Den Dolech 2, 5600 MB Eindhoven The Netherlands The Netherlands a.martinez©tue.nl f.m.j.willems©tue.nl Abstract We prove a coding theorem for bit-interleaved coded modulation. We show that the residual corrclation among the parallel sub-channels induced by the demapper does not reduce the information rate. The total rate is given by the sum of the mutual informations per bit I(Bj; Y). This implies that an interleaver is not required to remove the correlation. 1 Introduction The capacity in bits per complex transmission of the additive white Gaussian noise (AWGN) channel is given by Shannon's famous formula C = log2(1 + SNR), (1) where SNR is the signal-ta-noise ratio. For SNR « 1 capacity can be achieved using binary linear codes and BPSK modu- lation, whereas for SNR» 1 we need M-ary modulation with NI > 2. A combination of NI-ary modulation with M-ary linear codes cannot achieve Shannon capacity since the symbols occur with equal probability and a Gaussian input is required to achieve the capacity C; with M-ary linear codes we achieve the so-called uniform capacity CM = 1(5; Y), where 5 denotes the modulation symbols, and Y the channel output. Ifwe want to restrict ourselves to binary codes we can combine 2I<-QAM modulation with set-partitioning and trellis coding. The decoder for these Ungerboeck [IJ codes is based on the Viterbi algorithm. Multi-level codes (Imai and Hirakawa [2]) can be con- sidered as a generalization of Ungerboeck codes. Let us denote the bits in a modulation symbol by BI, ... , BK. Starting by bit HI<, a multi-stage decoder sequentially peels off the bit layers Bj, using the results ofprevious layers (Bj+l' ... ,BK). A code CK pro- tects bit Bf( ifthe rate RI< satisfies Rf( < I(BK; Y). Similarly, the following bit, BK-I, is successfully decoded if the rate RK-I is chosen so that RK-I < I(BK-I; Y, BId· In principle this method can achieve the uniform capacity C~J< (Huber and Wachsmann [3]), that is there are codes with rates Rj satisfying K K L Rj < L I(Bj; Y, e.«; ... , Bf() = 1(5; Y) = C~J<. (2) j-l j=l Caire, Taricco, and Biglieri [4Jdiscovered that multi-stage decoding can be circum- vented by using Gray-labeling and bit-interleaving. Instead of layered decoding, the entire code is decoded simultaneously now, without explicitly distinguishing to which symbol the bits belong to. Instead of an M-ary channel and code, binary inputs and 3 binary linear codes may be used. In some sense, the channel is separated into parallel subchannels (BI .......Àl), (B2 ....... À2), ... , (BK ....... ÀJ,_.). The input to subchannel j is bit Bj; the output is a log-likelihood ratio Àj. The ratio Àj is given by (3) and PA I,) is the corresponding a posteriori probability. In general it will depend on the random elements in the channel, i. e. noise, fading, and on the remaining bits in the symbol. As they are assumed to be unknown, we have the same situation as for the first bit in the multi-stage decoder, and we expect a rate I(Bj; Àj) = I(Bj; Y) to be achievable. This would give a total rate C~)( K K C~)( ~ LI(Bj;Àj) = LI(Bj;Y). (4) j=l j=l We call this total rate the BICM capacity (BICM stands for Bit-Interleaved Coded Modulation). In practice, it is found that for QAM and Gray labeling there is only a small loss in capacity hence the C~)< ~ C~K for relevant signal-to-noise ratios. This closeness in capacity is matched by good error performance with simple linear codes, such as convolutional codes or turbo-like codes [4]. Even though the reasoning seems convincing, there is a hidden subtlety in the reasoning just sketched. Although the subchannels are clearly not independent, be- cause two bits may well belong to the same symbol and therefore experience the same channel conditions, the total rate is assumed to be the sum of the rates of each sub- channel. Caire et al. [4] circumvented this issue by postulating that an infinite-depth interleaver is used, which sweeps away the residual correlations, and therefore makes C~){ achievable. In this paper, we show that the interleaver is not necessary to remove the effect of the correlations on the total rate. We give a coding theorem proving the achievability of C~)<, even in presence of residual correlation. 2 A coding theorem 2.1 Notation Let us consider a general case of M-ary transmission over an AWGN channel". A block diagram is depicted in Fig. l. At the transmitter, a message index w is chosen. W is uniformly distributed over the set W = {I,··· ,IWI}. Given the index w, the encoder forms a binary codeword (5) of length K N, where M = 2K, and N is the number of (complex) transmissions. The mapper p,(-, ... ,.) uses K consecutive binary digits to compute a (complex-valued) channel-input symbol Sn, Sn = p,(bln,· .. , bKn), (6) for n = 1, ... , N. We assume that the symbols are normalized in energy, that is tt L~=l I ml = l. We denote the set of channel symbols by X; we have lXI = M = S 2 2]( We denote by !2.j the set of all N bits in position i, i. e. !2.j = (bjl, ... ,bjN). lGeneralization to fading channels is straighforward. 4 Figure 1: BI CM structure. The channel accepts the input sn, adds an independent Gaussian noise variable nn, and finally outputs a number Yn, (7) The average signal-to-noise is denoted by SNR. With no loss of generality, we take the noise density to be complex Gaussian noise, with independent real and imaginary part, of mean zero and variance 1/2. Given the mapping J-t(., ... , '), the joint probability of a sequence (bI,'" ,bl<), and an output in the interval Y < Yn < Y + dy, is denoted by (8) for all bj E {O, I}, Y E R, and infinitely small dy. We refer to the derived distributions as P( bI, ... , b«, y), and the corresponding marginals P( bI), ... , P( bl<), and P(y). Let the bits B, be uniformly distributed. For the assumed noise density, the distribution P(b1, ... ,bl<,y) is P(b1, ... , b«, y) = 7T~J( exp ( -Iy - v'SNRJ-t(b1, ... ,bI<) n dy. (9) The marginal distributions with respect to bit B, and Y are special, and are denoted by Pj(bj, y), for j = 1, ... , K. We denote by y the set of all N received symbols, i. e. y=(yl,···,YN). - - The demapper, upon observing Yn, produces K log-likelihood-ratios Àjn, with j = 1, ... ,K, and (10) for properly chosen a posteriori probabilities Pj Cl·) .The ratios Àjn are generated si- multaneously, by assuming a uniform prior over the remaining bits in the symbol. In addition, the correlation among the K Àjn in the same symbol is ignored. The decoder uses the log-likelihood-ratio vector (Àl1, ... , ÀI 0 for all N large enough, there exists an encoder, demapper and decoder such that 1:J log21WI 2': R - E and Pr(W i= W) :S E. We have then the following theorem 5 Theorem 1. The sum of mutual informations L:f=l I(Bj; Y) is achievable. Proof. We apply random coding. Fix an E > O. For each w E W we uniformly generate a binary codeword QI (w) ... ,QK (w). The codebook is the set of all codewords so generated. The decoder outputs 'ÛJ only if 'ÛJ is the unique integer satisfying (11) where (12) for f..E ~ L:f=l I(Bj; Y) - 3K E. Otherwise, the decoder outputs an error flag. The error probability, averaged over the ensemble of randomly generated codes, Pf> is upper bounded by (13) where 'ifl is the probability that the received Jj_does not belong to the set Bf> 'ifl ~ L P(QI"" ,QK,Jj_)· (14) (Q,,···,QK,!!.)<{cB, 'if2is the probability that another randomly chosen codeword would be (wrongly) de- coded, that is, 1< 'if2~ L P(Jj_) IT P(QJ. (15) (Q" .. ,QK,!!.)EB, j=l We now prove that BE :::J AE(B1, ... , BK, Y), where A.(Bl"'" B/{, Y) is the corre- sponding jointly typical set. By definition, the sequences (Q1"'" Qf{, Jj_) in the typical set must satisfy, among other constraints, the following equations I ~ log2 P~Jj_) - H(Y) I < E, 1~IOg2p(~j) -H(Bj)1 :;> ~ :;> ~. ö' §" (S' N " (0 W "..,. N (0 W j-; T~, To. Figure 1: An example of four time-sliced services in a burst is sufficient to guarantee playtime till the next burst is received. If a user is interested in Service 1 only, the receiver front-end can be switched-off during the transmission of the other services. In this way a power-saving ratio of Tof f / (Ton + Toff) can be realized, which can be in practice up to 90%. The actual realizable power-saving is roughly determined by the average service bit rate and the gross transmission bit rate. During the Ton period of a burst, first the lP datagrams are transmitted followed by the RS parity columns. 2.2 MPE-FEC encoding MPE-FEC encoding is established by filling an array ofup to 1024x 191 bytes ("rows" x "columns") column-wise with lP datagrams. Using a [255,191,65] RS encoder, parities are generated in a row-wise fashion, resulting in rows of 255 bytes. The resulting 1024x255 bytes = 2 Mbit arrav is called an MPE-FEC frame and will be transmitted in a single time-slice (burst). After encoding, the lP datagrams are encapsulated in so called MPE sections and the parity columns are encapsulated in MPE-FEC sections. Encapsulation in sections means that the payload (lP datagram or RS parity column) is preceded by a 12 bytes section header and followed by a 4 byte Cyclic Redundancy Check (CRC). The section header contains information regarding section length, MPE- FEe table address and time-slicing inforrnation. The MPE and MPE-FEC sections are inserted in the MPEG-2 Transport Stream (TS). For this purpose, the sections are divided into 184 bytes fragments and transmitted as payload of TS packets. The 188 (=184 bytes TS packet payload + 4 bytes TS packet header) bytes TS packets are encoded with a [204,188,17] RS code and a convolutional code, modulated with an OFDM modulator and broadcasted. 2.3 Decoding of MPE-FRC Frame At the receiver, MPE-FEC decoding can be started after the burst data has been received. Using the time-slicing parameters the receiver ensures that it is synchronized to the correct service burst. At TS level, synchronizing to the service of interest is established by monitoring the Packet Identifier (PID), which is a 13-bit field in the 4 byte TS packet header. TS packets, with a PID value related to the wanted service, are filtered by the TS de-multiplexer. The payload of these TS packets is used to reconstruct the MPE and Ivf P F.- FEe sections. The section CRC can be used to check the integrity of the received section. If the CRC fails, the payload of the section is discarded and otherwise the payload is put in the MPE-FEC Frame using the table 10 Application data table RS data table 1 Column 1-191 191 : Column 1-64 64 -0 . '"• "C g- iF ;ï' :J. ? '< ~' '< ~ ~ ~ ~ 1,ï ~ i -rt ~ ~ rrc i ~. ~ o '" ~ 3 ~ n g- r. 3, n r. ~ -o -o ~ I [ ~ c c - r. =0 ~ a: " 2. E n n g- a: ! 5' S· S' ~ .. it'" z r-- 0 I ~~ 0- 5' s: s: [ 0- se s, "i oe 0 c;n 0 en V> I 3 f-- n -'n (Tl 'ij n n a a -e a -rt en 01 \" a ë ~ '"• g. n n -n ë g g =0 ~ en 0- cc "~ ae ä g' g' n r. n ~Ol B - '" g' 3 Figure 2: The structure of an MPE-FEC frame address that is present in the section header [1]. Discarded or missed payload lead to un- filled positions in the MPE-FEC frame. All un-filled positions are erased such that the MPE-FEC RS decoder is informed about these erroneous positions. Since undetected erroneous sections will be very rare, the MPE-FEC RS decoder can operate in the "Erasure only" mode and has a capacity of correcting up to 64 erasures per row. After MPE-FEC decoding the (correct) lP datagrams can be parsed to the service renderer, and the receiver front-end can go to sleep mode and wait for the next burst. 3 DVB-H Receiver In Figure 3 an example of a DVB-H receiver module is shown. At the left of the module one haves an antenna. In the Tuner the wanted DVB-H/T signal is selected and mixed to baseband. The signal is converted from the analog to the digital domain with an AID converter (not shown). The digital signal is demodulated and decoded in the DVB- HIT Channel Demodulator. The output of the DVB-H/T Channel Demodulator is an MPEG-2 Transport Stream. In the DVB-H TS Demultiplexer and lP De-encapsulator, TS packets from the desired service are filtered, lVlPE and MPE-FEC sections are reconstructed and both lP datagrams and RS data are extracted from these sections. The extracted lP datagrams and RS parity columns are put in the MPE-FEC frame Figure 3: Global overview of DVB-H receiver 11 memory. Due to bad channel conditions it will happen that TS packets are corrupt and that fragments from or whole lP datagrams and RS parity columns are not received. By monitoring section CRC and TS packet headers (transport error indicator and continuity counter) one can mark these missed or erroneous portions of data in the Erasure Memory. With aid of the information in the Erasure Memory, the MPE-FEC decoder will try to correct the MPE-FEC Frame. After error-correction the correct lP datagrams that are present in the MPE-FEC Frame Memory can be parsed to the Handheld. The Power Save Control unit manages real time parameters like the Lime that a time-sliced service starts and ends. Accordingly, the receiver front-end will be switched off and on such that only the services of interest will be received. During the off-time of a service, the received data burst has to be processed by the MPE- FEC decoder and transferred to the Handheld for rendering. Therefore the amount of off-time also influences the throughput requirements of the MPE-FEC decoder. Since, most of the power consumption takes place in the receiver front-end it is important that this part of the receiver is switched on for a minimal amount of time. 4 Power-saving by adaptive RS decoding In the DVB-H Implementation Guidelines [1] it is mentioned that in case the application data table is received error free, no MPE-FEC decoding has to be accomplished. Hence, the reception of the RS data table is not necessary anymore. As a consequence, the receiver may be put into sleep mode and wait for the reception of the next burst. At good reception conditions (e.g. error free reception) a power-saving ratio of up to 64/255 ::::;25 % can be realized in case a [255,191,65] RS code is used. The number 64 corresponds to the number of columns in the RS data table and 255 is the total number of columns in an MPE- FEe frame. At decreasing channel couditions the average power-saving will decrease accordingly. 4.1 A proposal for extra power-saving The proposed power-saving method is based upon the observation that by using a [n.k.d] RS code and applying. erasure decoding one can correct d - 1 erasures. This means that if one has received k correct symbols one can decode the corresponding word and re-construct the code word. Projection of this observation to a DVB-H receiver one can start MPE-FEC decoding after reception of k correct columns and simultaneously switch-off the receiver front end (tuner and channel demodulator). When k columns are received correctly, the RS decoder can reconstruct the whole MPE-FEC frame by erasing the columns that still had to be received (this is a kind of virtual puncturing). Eg. when in the application data table one column is corrupt one needs only one correct RS data column in order to make the re-construction of an MPE-PBC frame possible. The state of received columns can be determined by monitoring section CRC and TS packet headers (transport error indicator and continuity counter). The decision to switch-off the receiver front-end can be refined further. Instead of requiring that one has received (at least) k correct columns one can also use the more relaxed requirement of having (at least) k correct symbols per row. This requires somewhat more book- keeping but gives possibly an earlier switch-off time. In order to anticipate on some undetected errors one can require to have k+rn. correct columns or at least k-s-m correct symbols per row. Eg. with m = 2 one can correct 1 undetected error additional to the k erasures per row. Summarizing we propose two criteria for early switch-off of the receiver front-end: • Column criterion. Switch-off front-end, when k + m correct columns (m :::0: 0) are received. 12 • Row criterion. Switch-off front-end, when all rows have k + m or more correct symbols. 4.2 Estimated power-saving of adaptive RS decoding With a simple model one can estimate the performance of the proposed power-saving method using the column criterion. The performance of this method is compared with the method in which one requires the error-free reception of the whole application data table. We assume the use of a [255,191,65J RS code and the use all k = 191 application data columns and all n - k = 64 RS data table columns and a total of 1024 rows. Moreover, we assume a random TS packet error probability PTS. Filling one column in an MPE-FEC frame requires 1024/184 ~ 5.6 TS packets (with a payload of 184 bytes). Therefore, one can estimate the column error probability as Pc ~ 1 - (1 - PTS )5.6. As a coarse approximation we assume that column errors occur independently from each other. The probability PM,L that one has exactly L correct columns after- the reception of the Mth column is given by: M 2" L. (1) For proper MPE-FEC decoding we require that L 2" k. Let us choose L = k (=191 in our example). A power-saving ratio of (n - M)/n = (255 - M)/255 (M 2" k) will be realized with probability Ptt/l,k' The average power-saving ratio 51 one can realize if one require the error-free reception of the whole application data table (i.e. all k columns of the application data table need to be error free) is given by: n-k Pkk,--, n (1 _ pc)k n - k, n (1_ P )191~. (2) c 255 For ideal channel conditions, i.e. for Pc -+ 0 the power-saving ratio approaches 25%. The expected average power-saving ratio 52 one can achieve with the proposed method using the column criterion is given by Tl n-lVI LPM,k--, M=k n ( 1 _ p)k c ~ ~ (M - l)pM_kn k-l c - AI , M=k n (1 _ P c )191 ~~ (190 + . j) pj64.255- j c (3) FO J Obviously we find that 52 2" 51' Moreover we see that asymptotically 52 -+ 0.25 for Pc -+ O. In Figure 4 the power-saving method based upon the column criterion is compared with the average power-saving one can achieve with error-free reception of the application data table. We see that for PTS = 0.001, the proposed power- saving algorithm almost achieves the optimal power-saving ratio of 25%. Currently no estimates are made for the expected average power-saving ratio 53 one can achieve using the method with the row criterion, but obviously 53 2" 52' 13 30r-------------------~------------------__. Estimated power-saving column criterion - ~stimated Error Free Application Data Table' •• 25 ------------------------------- ------------------~ ------------------------------------------------- 20 oL-----------~------_L ~ __ __J 0.001 O.Q1 TS-packet error probability, PTS Figure 4: Estimated power-saving 4.2.1 Simulated power-saving of adaptive RS decoding Using an example the performance of the proposed power-saving methods are simu- lated. In this example we use a [255,191,65] RS code and use all 191 application data columns and all 64 RS data table columns and a total of 1024 rows. In the application data table we put 128 lP datagrams of length 1528 bytes, which are encapsulated in 128 MPE-sections of length 1544 bytes. Each MPE-section is distributed over 9 TS packets: 8 having a payload of 184 bytes and one packet has a payload of 68 bytes together with 112 stuffing bytes. The RS data table has 64 columns of size 1024 bytes. Each column is encapsulated in one MPE-FEC section of length 1040 bytes. An I\IIPE- FEC section is distributed over 6 TS packets: 5 having a payload of 184 bytes and one packet has a payload of 116 bytes together with 64 stuffing bytes. Hence in total 128 x 9 + 64 x 6 = 1536 TS packets are used for carrying one MPE-FEC frame. The channel is modelled by having a probability PTS that a TS packet is corrupt. It is assumed that in a corrupt TS packet all bytes are erroneous such that the payload cannot be used. Furthermore, TS packet errors occur independently from each other. 111 [2] it is shown that a proper extraction of lP datagrams from the TS has a positive effect on the MPE-FEC Frame Error Rate after MPE-FEC decoding. Therefore it can be expected that the power-saving performance also will improve. The power-saving performance using two lP de-encapsulation methods are simulated: • Conventional lP de-encapsulation. If a TS packet is corrupt (the transport error indicator in the TS header is equal to 1) then discard the TS packet and corresponding section (MPE or MPE-FEC section). In case of discarding a TS packet, a whole lP datagram or RS parity column will be erased in the MPE-FEC frame . • Improved lP de-encapsulation. See [2]. Only corrupt TS packets with incon- sistent TS header are discarded. If a TS packet cannot be used (inconsistent TS header) then discard the TS packet, but still try to recover remaining part of the corresponding section (MPE or MPE-FEC section). In case of discarding a TS packet, only a fragment of an lP datagram or RS parity column will be erased in the I\IIPE-FEC frame. In the simulation 1000 MPE-FEC frames are generated and TS packets are cor- rupted randomly (i.i.d) using an error probability PTS. From these 1000 MPE-FEC frames two histograms registering the number of required columns fulfilling each of 14 the two criteria are made. The histogram is used for calculating the expected average power-saving. The results are shown in Figure 5. The simulated performance of the 30.-------------------~------------------~ Impr IP-de-encap, Row criterion - lmpr tp-de-encap. Column erftenen - - - Conv IP-de-encap, Aow criterion • • • Corn IP-de-encap, Column criterion --- 25 ~ft~::::::-::::::=::.==---:.=.::.:.·t Error Free Application Data Table --- ~'-'-'-::"'C:"':':":":":«~.~.:.,,,.~.>._~... l 20 .......... . .. .... -, ...... o ~ 15 -----------------------:-_),<..t~:-':.- ----..--------------- ----------------.- " ;, '\ , \. ...............................................,.\"'< ....';....\, -,~ ----....... -------------------- \, . ----------~\-----_!- '. -----.---------- ". -- ,_.--..._ ....... '',,~'. . ... ' ..\'''- ~ __ ~ OL_------~~~=------L--------~~~~ 0.001 0.01 0,1 TS-packel error probability, PTS Figure 5: Simulated power-saving power-saving method based upon the column criterion fits quite well with the estimated performance shown in Figure 4. Also the simulated performance of the method based upon the error-free reception of the application data table agrees with the estimated performance. As expected, the method based upon the row criterion is better than the method based upon the column criterion. Moreover, applying the improved lP de- encapsulation method improves the power-saving performance. This improvement is stronger for the row based method than for the column based method. The improved lP de-encapsulation method combined with the row based power-saving method re- alizes a power-saving ratio of more than 10% over a wide range of TS packet error probabilities. 4.2.2 Power-saving with example parameters Using an example DVB-H parameter selection we calculate the total power consump- tion of the DVB-H receiver with and without the power-saving method. The chosen parameters are an example obtained from [1, Annex C.4]. It is assumed that during Sleep mode (stand-by) the receiver consumes 10 mW. In order to lock (re-synchronize) to the transmitted signal, the receiver has to be switched on 0.12 seconds in advance to the burst. In this example it is assumed that the reception of the burst costs 0.2 seconds (e.g. 2 Mbit with a rate of 10 Mb/s). During synchronization and burst recep- tion the receiver consumes 400 mW. After reception, the MPE-FEC decoder decodes the MPE-FEC frame and the lP datagrams are transferred to the mobile phone. De- coding and transfer of lP datagrams is assumed to cost 50 m Wand to last for 0.5 seconds. The cycle-time is assumed to be l.61 seconds, such that the sleep mode lasts for 0.79 seconds. In Figure 6 the example parameter selection is illustrated. Using these numbers the average power consumption Pavg is equal to: _ 0.32 x 400 + 0.50 x 50 + (l.29 - 0.50) x 10 _ 00 \'1 Pavg - , 0 - 1 m '\ . (4) i.si If one can reduce the burst time with 15% using the early switch-off method one realizes an average power consumption of: (0.12 + 0.85 x 0.20) x 400 + 25 + (0.79 + 0.15 x 0.20) x 10 V Pavg = l.610 = 93 m\ . (5) 15 11 11 : 0.1205 : 0.2 s burst lime If 0.55 11 // decoding time cycle time iJ Lod< Bursl reception Burst decoding Sleep Figure 6: Example of burst timing and power consumption Hence, for this parameter set the average power consumption can be reduced with 7%. If channel conditions are optimal, the burst time can be reduced with 25%. In that case an average power consumption of Po",? = 88 mW will be realized. It has to be noted that the lock time has a large contribution of the power consumption. With advanced re-synchronization techniques significant power-saving can be realized. This will also increase the relative influence of the presented power-saving method. 5 Conclusion A power-saving method for DVB-H receivers is presented. The method is based upon erasure decoding techniques for Reed Solomon codes and uses the fact that for a [n.k.d] RS code, one can reconstruct all n symbols after reception of k correct symbols, pro- vided that there are no undetected errors. Hence, after reception of k correct symbols one can stop receiving the remaining symbols and therefore switch-off the receiver front-end. Combined with an improved lP de-encapsulation method [2], one can real- ize more than 10% power-saving (total average power consumption reduction can be more than 5%). References [1] DVB-H Implementation Guidelines, Draft ETSI TR 102 ::l77,V1.2.2, January 2006. [2] A.G.C. Koppelaar, O. Eerenberg, LJvI.G.M. Tolhuizen and V. Aue. Restoration of IP-datagrams in The DVB-H Link-layer for TV on Mobile, Proceedings of the ICCE'2006, pp. 409-410, Las Vegas, January 7-11, 2006 16 Generating parity check equations for bounded-distance iterative erasure decoding of even weight codes Henk D.L. Hollmann Ludo M.G.M. Tolhuizen Philips Research Laboratories Philips Research Laboratories High Tech Campus 36 High Tech Campus 27 5656 AE Eindhoven 5656 AE Eindhoven The Netherlands The Netherlands henk.d.l.hollmann©philips.com ludo.tolhuizen©philips.com Abstract It is known that for certain LDPC codes, usage of redundant parity-check equa- tions significantly improves the error performance of iterative decoding. In this paper, we show how to generate redundant parity-check equations for improving the performance of iterative decoding of even weight codes used over the binary erasure channel. For given r and rn, with rn -s: '1', we give explicit constructions of sets of binary vectors of length r· that allow us to generate, for each full rank 'I' x TI, matrix H with the all-one row as top row, a set of parity check equations. Iterative erasure decoding with this set of parity check equations corrects all era- sure patterns of size at most m. that are potentially decodable by the code with parity check matrix H. The constructions significantly improve on om previous constructions where no constraint was imposed on H. Keywords iterative decoding, binary erasure channel, stopping set. 1 Introduction Numerous simulations have shown that iterative decoding of Turbo codes and LDPC codes achieves a remarkably good performance for a variety of channel models. This remarkable performance, at a reasonable implementation cost, has stimulated a lot of work on both practical and theoretical aspects of these codes and their iterative decoding. There is considerable interest in LDPC codes with structural properties that allow for simplified encoding and decoding, in particular, in LDPC codes for which the parity check matrix consists of circulant matrices. Examples of such codes include one- step majority logic decodable codes [1] and codes based on finite geometries [2]. The simulations in those papers show a very good error performance. In both papers, the parity check matrix that is used in iterative decoding contains redundant rows, that is, decoding could have been performed with less parity check equations. For example, codes based on projective planes have the incidence matrix of the plane as parity check matrix; this square matrix is then employed in decoding. In [1] it is speculated that the good decoding performance is at least partly due to the usage of these redundant parity check equations; in [2, p. 295], it is stated that "If we remove some redundant rows from the parity-check matrix, simulation results show that the error performance of the code will be degraded". 17 The present paper in a sense works the other way around: we start with a full-rank parity check matrix, and aim to judiciously create redundant parity check equations in order to improve error performance. We do so in a theoretical setting, namely iterative erasure decoding over the binary erasure channel (BEC). Remember that with the BEC, each received symbol either equals the transmitted bit, or is an erasure, indicating a "don't know". It is thus assumed that all received bit-values are error-free; the aim is to reconstruct the bit values in the erased positions. The BEC captures in a crude way the idea of incorporating reliability inforrnation in decoding. Recently, there has been a renewed interest in the BEC, see for example [3] and the references in it . One of the reasons is that iterative decoding on the BEC can be analyzed precisely (no simulations are required) [4]. In this paper, we consider the following well-known scheme for iterative decoding of a binary linear code C used on the BEC [4]. We are given a set H of parity check equations for C. For a received word with E as set of erased positions, we inspect if one of the parity check equations from H involves exactly one of the erasures. If so, we determine the value of the erasure involved in this equation and continue; if not, we stop the algorithm. In the latter case, E is called a stopping set for H [4]. It can be shown [4] that iterative decoding of an erasure pattern E is successful if and only if E does not contain an non-empty stopping set. It should be stressed that the fact whether E is a stopping set or not is not a code property, but depends on the collection of parity check equations that is being used. Let C be a code of length n. An erasure pattern E ç {I, 2, ... , n} is called C- correctable if for each received word from the BEC with E as set of erasures, exactly one way to fill in the erasures results in a word from C. Erasure patterns that are not C-correctable cannot be iteratively decoded by any collection of parity check equations. If we take sufficiently many parity check equations, then all C-correctable erasure pat- terns can be decoded with iterative decoding ([8], [10]. It is possible, however, that a C-correctable erasure pattern is a stopping set for the collection of parity check equa- tions consisting of the rows of a full-rank parity check matrix of C. Example (cf. [5]) Let H be the following parity check matrix for the [7,4,3] Ham- ming code C: 11 ~ [! 0 0 1 0 1 0 1 1 0 0 1 1 1 0 1 ij The pattern with erasures in positions 4,5 and 6 is C-correctable (the 3x3 matrix con- sisting of the columns 4,5 and 6 of H is invertible); however, none of the 3 rows of H has a single one in the positions 4,5 and 6. Now suppose that we use an additional parity check equation, viz. the sum of the rows of H, so the vector 1111000. With this parity check equation, the erasure in position 4 can be resolved. It can be shown that all C-correctable patterns of three erasures can iteratively be decoded if the three rows of H and their sum serve as collection of parity check equations. A construction of such collections of parity check equations for Hamming codes of arbitrary redundancy has been obtained by Weber and Abdel-GhaHar [61. It is our aim to find parity check collections with which the iterative decoding al- gorithm decodes all C-correctable erasure patterns of a sufficiently small cardinality (as these erasure patterns determine the error performance of iterative erasure decod- ing for the BEC with low erasure probability). We restrict our attention to even-weight codes, that is, codes for which all codewords have an even number of ones, or stated differently, codes for which the all-one vector 1 is a parity check vector. For m :s; r , we will be interested in what we call (r, m)-sets. These sets will allow us to construct, for each even weight code C and from each full rank r x ti parity check matrix H for C with 1 as top row, a collection of parity check equations with which 18 the iterative erasure decoding algorithm corrects all C-correctable erasure patterns of size m (a precise definition will be given in Section 4). Note that in [8], we aimed to generate parity check equations from all parity check matrices H, whereas here we require that H has 1 as top row. As a result, we will obtain much smaller collections of parity check equations than in [8J. The remainder of the paper is structured as follows. In Section 2, we briefly describe related work. In Section 3, we give a simple example that motivated us to consider even weight codes. It is shown explicitly that 2(r -1) parity check equations of an even weight rn, n - rJ code suffice to iteratively decode any correctable pattern of 4 or less erasures. The construction from [8], valid for all codes, requires as many as 2:;=0 (r~l) parity check equations. In Section 4, we describe the notion of (r, m)-sets precisely, and we state our results. The proof of the main theorem in this section is contained in the appendix. 2 Related work In [6], Weber and Abdel-Ghaffar consider iterative erasure decoding of the [2r - 1,2" - r - 1,3] Hamming code C,. with full rank parity check matrix Hr. As the columns of H,. are non-zero and distinct, for any pattern E of one or two erasures there is a row of Hr with exactly one 1 in the position(s) of E. As a consequence, iterative decoding with the rows of Hr as collection of parity check matrices corrects any any pattern of two or less erasures. More interesting is the following result. Let H,. be the following set of parity check equations: r} U {hl + hi + hj 1 2 :::::i < j :::::r}. Hr = {hi 11 ::::: i ::::: Here, hi denotes the i-th row of H,.. Weber and Abdel-Chaffar show [6J that for any pattern of three erasures that does not coincide with the support of a codeword, at least one of the parity check equations from HT has exactly one 1 in the positions from E. As a consequence, using H.,., iterative erasure decoding corrects any C,.-decodable erasure pattern of weight 3 or less. Note that IHrl grows quadratically in r. In these proceedings, Abdel-Ghaffar and Weber study [7J iterative erasure decoding of Hamming codes in the situation that only the rows of a full-rank parity check matrix are used. They explicitly compute, for each w, the number of stopping sets of cardinality ui. This extends previous work of McEliece [5], and allows to compute the error-performance of iterative decoding on the BEC as a function of the erasure probability. The present authors extended the work of [6] in [8J. For arbitrary r and m, with m :::::r, we derived properties for and constructions of sets for generating parity check equations of an [n, n - rJ code C from an arbitrary parity check matrix H. These collections of parity check equations allow to decode all C-correctable patterns of m or less erasures. The constructed collection of parity check equations has cardinality 2::~1 ('"~l). In [9J it was shown by an averaging argument (hence non-constructively) that for fixed m, there exist a constant Cm such that for each r 2: m, there exist such a collection of parity check equations of size at most Cm . r . In [9], also an explicit recursive construction is provided for m = 3 that yields collections of parity check equations the size of which grows as r!og2 3, instead of as r2 like in [6] and [8J. In [10], Schwartz and Vardy define the stopping redundancy of a code C as the size of the smallest collection of parity check equations for which iterative decoding corrects all erasure patterns of size less than the minimum distance of C (note that all such erasure patterns are C-correctable). With a recursive construction, they obtain an upper bound on the stopping redundancy of Reed-Muller codes. They also obtain a lower bound of 34 on the stopping redundancy of the [24,12,8J Golay code. They do 19 so by picking in a lexicographic order parity check equations until all erasure patterns of weight at most 7 have a single one in at least one of these equations. 3 A motivating example In this section, we describe a simple construction that motivated us to look for con- structions specifically aimed at even weight codes. Let H be an r x n parity check matrix for an rn, n-r] code C with rows hl = 1, h2, ... h,; Let Tl be the collection of parity check equations We claim that for any C-correctable erasure pattern E of size 4, at least one of the equations from H can resolve an erasure from E. Indeed, let H(E) be the 4xr submatrix of H consisting of the columns indexed by E. As E is C-correctable, at least one of its rows, say hj(E), has odd weight.' As IEl = 4, it follows that either hj(E) or its complement has weight 1. With a similar reasoning, it can be seen that H also can resolve an erasure from any C-correctable erasure pattern of size 3 or less. Note that H contains only 2(r - 1) equations, while the sets from [8] for generating a collection of parity check equations correcting all C-correctable erasure patterns of size 4 for all parity check matrices have size 2::=0 C~l 4 Statement of results In order to state or results precisely, we first introduce some terminology. All vectors and codes are binary. The weight wt(x) of the vector x is its number of ones. Let C be a code of length n. An erasure pattern E c:::; {I, 2, ... , n} is called C-correctable if for each received word from the BEC with E as set of erasures, exactly one way to fill in the erasures results in a word from C. If C is linear (as we assume throughout this paper), E is C-correctable if the all-zero word is the only codeword with only zeroes outside E. Using this property, one can easily show the following lemma. Lemma 1 Let H be a full-rank parity check matrix for a code C of length n. An erasure pattern E c:::; {I, 2, ... ,n} is C-correctable if and only if H(E), the submatrix of H consisting of the columns indexed by E, has full rank. Let m :::; r. We call a set A c:::; IF; an (r, m)-set if for any even-weight rn, n - r] code C and any r x n parity check matrix H of r: that has 1 as top row, and any C-correctable erasure pattern of size m, the set {aH I a E A} (1) contains a vector with exactly one 1 in the positions indexed by E. That is to say, if the iterative decoding algorithm is used with the set from (1) as set of parity check equations, for each C-correctable erasure pattern of size m, an erasure is resolved. In order to resolve another erasure, we continue with a collection of parity check equations from an (r,m - 1) set, etc. 11£ all rows of H (E) have even weight, then the vector with ones in the positions from E and zeroes elsewhere is a codeword. Hence, if we receive erasures in the positions of E and zeroes elsewhere, there are at least two ways to fill in the erasures that result in a word from C, so E is not C-correctable. 20 Using Lemma 1, one readily can prove the following lemma, that gives a characteriza- tion of (r, m)-sets that is more easy to work with. Lemma 2 A set A of binary vectors of length r is an (r, m)-set if and only if for any r x m matrix M of rank m that has 1 as top row, there is an a E A such that wt(aM)=1. We continue by giving explicit constructions for (r, m)-sets for small m that can easily be proved (Proposition 1). Subsequently, we state an explicit construction of (r, m)-sets for general r and m (Theorem 1); the proof that the constructed sets indeed are (r, m)-sets is contained in the appendix. We use ei to denote the i-th unit vector, i.e., the vector with a '1' in position i and zeroes elsewhere. Proposition 1 (a) For r ~ 1, {ed is an (r, I)-set. (b) For r ~ 2, {ej 12::; j < r} is an (r,2)-set. (c) For r ~ 3, {ej 13::; j ::; r} U {el + ej 13::; j < r} is an (r,3)-set. (d) For r ~ 4, {ej 12 < j < r} U {el + ej 12 < j < r} is an (r, 4)-set. Proof. Claim (a) is obvious, and claim (d) has already been proved in Section 3. To show (b), we apply Lemma 2 and note that every full rank 2 x r matrix with 1 as top row has a (non-top) row of weight one. To show (c), we again apply Lemma 2. Let M be a full rank 3 x r matrix with top row 1. As NI has at least three non-zero rows, one of its rows indexed by 3,4,... ,r - 1 is non-zero. Either this row, or its complement has weight 1. D Remarks 1. It can be shown that the (r, m)-sets in Proposition 1 have the smallest possible cardinality. 2. The (r,3)-set constructed above is not an (r,2)-set. (To see this, apply Lemma 2 with M the 2xr matrix with top row 11, second row 10, and zeroes elsewhere). This is in contrast with our result from [8], where it is shown that every (r; m)-set for general parity check matrices H is an (r, m)-set for general parity check matrices as well. It can be shown that every (r, m)-set is an (r, m - 2)-set as well. 3. Clearly, adding e2 to the (r,3)-set constructed above yields an (r,3)-set that is an (r,2)-set as well; the cardinality of this set equals 2r - 3. This coincides with the size of the collection of parity check equations constructed in [10] for correcting all patterns of three or less erasures in the [2"-1, 2r-1 - r, 4] extended Hamming code. Extended Hamming codes can be considered as the "most difficult" even weight code to design collections of parity check equations for iterative erasure decoding for (similar to Ham- ming codes for general codes [8J). More precisely, we have the following proposition, that follows from from Lemma 2 and the fact that a parity check code for the extended Hamming code with 1 as top row contains each column vector starting with a '1'. Proposition 2 Let 3 ::; m ::; r . Let H be a parity check matrix for the [2"-1, 2r-l_r, 4] extended Hamming code C with 1 as top row. A set A ç IF; is an Cr, m) set if and only if for any C-correctable pattern E of m erasures, at least one of the vectors of {aH 1a EA} has exactly one' l' in the positions indexed by E. We now come to the main result of this paper, namely, an explicit construction of (r, m)-sets. 21 Theorem 1 Let 3 .::::m .::::r. We define the set A,m ç lF~as A,m = { {(Xl, ,XT) E lF~I X2:: 1 and wt(X3,'" ,xr),:::: m- 3}_ if m is even, {(Xl, ,Xr) E lF21 X2 - 1 and 1'::::wt(X3,'" ,xr),:::: m 2} if m is odd. For each s with 3,:::: s .::::m, the set A,m is an (r, s)-set. For m 2: 4, A,m is an (r,2)-set; A,3 is not an (r, 2)-set, but A,3 U {e2} is an (r,2)-set. It is easy to compute the cardinalities of A,m: if m if even, if m is odd. Note that the set AT,m is smaller than the (r, m)-sets valid for all matrices H as con- structed in [8]: those sets have cardinality L:~l C~l). For fixed m and growing r, the difference is large. The set AT,T has size 21'-1 - 2, just two smaller than the (r, r)-sets valid for all matrices H. It can be shown that A,r has the smallest possible size of any (r,r)-set. 5 Proof of Theorem 1 We first show the statements for s = 2. To see that Ar,3 is not an (r,2)-set, apply Lemma 2 with M the matrix with top row 11, and all other rows equal to 10. Now we take m 2: 4. Let M be a full-rank 2 x r matrix with top row 1; we denote its i-th row by rn.. If m2 has weight 0 or 2, there is an i ;:::3 such wt(mi)=I; the vector a = e2 + ei is in A,m and wt(aM)=1. Now assume that wt(m2)=12 If m is even, then, as e2 is in A.·,m, we are done. Now suppose that m 2: 5. If there is an i 2: 3 such that wt(Illi) #1, then wt((e2 + ei).i\!I)=1. If I113, I114, ... , rn, all have weight one, then, as r 2: m 2: 5, there exits i,j 2: 3 such that m, = mj; the vector a = e2 + ei + ej is in AT,m, and wt(aM)=1. Next, let 3 .::::s .::::m .::::r . We will show that the set AT,m is an (r, s)-set. We use Lemma 2. So let M be a full-rank r x s matrix with rows m, = 1, m2, ... , m,; We will show that the set r {L aimi I (al, ... , ar) E A,m} i=l contains at least one unit vector. We distinguish between two cases. Case 1: m2 rt {O, I}. Let J ç {I,:Z, ... ,r} be such that {I,L} ç J and {m, I jEJ} forms a basis. For notational convenience, we assume without loss of generality that J = {I, 2, ... , s}. Let S be the set of missing linear combinations, that is, S:= {LXjIllj I x = (Xl, ... ,x"O, ... ,0) ElF; \ AT,m}. j=l We will show that S contains at most s - 1 unit vectors. We write S = SI U S2, where SI = {xM I x = (Xl, ... ,Xr) E lF;,X2 = 0 and Xs+l = ... = Xr = O}, and 2Clearly, e2 deals with this case; combining this with the above case shows that A,.,3 U {e2} is an (r,2)-set. 22 if m is odd if m is even and s = m if m is even and s < m. Suppose that SI contains s - 1 unit vectors, say all unit vectors except ej' As SI is linear and contains m, = 1, it also contains 2::i#j ei + 1 = ej' Consequently, SI contains all unit vectors, contradicting that dim(Sl) = s - 1. We conclude that SI contains at most s - 2 unit vectors. Suppose that S2 # 0. As s 2: 3 and the elements of S2 are each other's complement, S2 contains at most one unit vector. We conclude that S contains at most (s - 2) + 1 unit vectors. Case 2: m2 E {O, I}. Let J ç {I, 2, ... , r} be such that 1EJ and {m, I jE J} forms a basis. For notational convenience, we assume without loss of generality that J = {I, 3, 4, ... ,s+ I}. A vector a = (al, a2," ., as+l, 0, ... , O} in AT,m produces the linear combination if m2 = 0 if m2 = 1 Hence, the set S = {2::;~~ xjmj I (Xl, ... ,Xs+l,O,'" ,0) Elf; \ AT,m} of missing linear combinations consists of vectors of the form El + 2::;~; ajmj with E E {O, I} and i) (a3,'" ,as+l) E {O, I} if m is odd and s = m; ii) (a3,'" ,asH) = 0 if m is odd and s < m; iii) wt((a3,"" ~ {m- 1, m - 2} i~ m is even and s = m; aS-+:_l)) IV) (a3,"" asH) - 1 If m ISeven and s - m-I, v) There are no missing linear combinations if m is even and s ::::: m - 2. In cases (i),(ii) and (iv), at most two unit vectors can be missing, as a vector of length s 2: 3 and its complement cannot both be a unit vector. In case (v), there are no missing vectors at all. We only have to consider case (iii). Assume that m is even, s = m, and that all unit vectors are missing. Then for suitable E E {O, l}, the vector El + 2::;:~1 mj is a unit vector; and for each k E {3, ... , m + I}, there is an Ek;E {O, I} such that El + 2::;:~~J7'kmj is a unit vector. Hence, for each k E {3, ... , m + I}, the vector (E + Ek) 1 + rru,, being the sum of two unit vectors, has even weight; as m is even, mj, has even weight. As mj = 1 has even weight as well, all vectors from {rn, Ij E J} have even weight, contradicting that these vectors form a basis. We conclude that not all unit vectors can be missing. 0 References [1] R. Lucas, M.P.C. Fossorier, Y. Kou, and S. Lin, "Iterative decoding of one-step majority logic decodable based on belief propagation", IEEE Trans. Comm., Vol. 48, No. 6, June 2000, pp. 931-937. [2] Y. Kou, S. Lin, and M.P.C. Fossorier, "Low-density parity-check codes based on finite geometries: A rediscovery and new results", IEEE Trans. on Information Theory, Vol. 47, No. 7, Nov. 2001, pp. 2711-2736. [3] H. Pishro-Nik and F. Fekri, "On decoding low-density parity-check codes over the binary erasure channel", IEEE Trans. on Information Theory, Vol. 50, No. 3, March 2004, pp. 439-454. 23 [4] C. Di, D. Proietti, I.E. Telatar, T.J. Richardson, and R.L. Urbanke, "Finite- Length Analysis of Low-Density Parity-Check Codes on the Binary Erasure Chan- nel", IEEE Trans. on Information Theory, Vol. 48, No. 6, June 2002, pp. 1570- 1579. [5] R.J. McEliece, "Are there turbo codes on Mars?", Shannon lecture, 20004 IEEE Int. Symp. on Information Theory, Chicago, IL, USA, June 27-July 2,2004,. Slides available at http://www.systems.caltech.edu/EE/Faculty Irjm. [6] J .H. Weber and K.A.S. Abdel-Ghaffar, "Stopping Set Analysis for Hamming Codes", Proc. IEEE ITSOC 2005 Information Theory Workshop 2005 on Cod- ing and Complexity (M.J. Dinneen, editor, ISBN 7803-9481-X), Rotorua, New Zealand, pp. 244-247, August 29 - September 1, 2005. [7] K.A.S. Abdel-Ghaffar and J.H. Weber, "Complete Enumeration of Stopping Sets of Full-Rank Parity-Check Matrices of Hamming Codes", Proceedings of the 27th Symposium on Information Theory in the Benelux, Noordwijk, The Netherlands, pp. 61-68, .June 8-9,2006. [8] H.D.L. Hollmann and L.M.G.M. Tolhuizen, "On parity check collections for iter- ative erasure decoding that correct all correctable erasure patterns of a given size", submitted to IEEE Trans. on Information Theory, July 2005, see also ar Xiv:cs.IT 10507068. [9] H.D.L. Hollmann and L.M.G.M. Tolhuizen, "Generic erasure correcting sets: bounds and constructions", accepted for publication in Journalof Combinatorial Theory, Series A, special issue dedicated to J.H. van Lint. [10] M. Schwartz and A. Vardy, "On the Stopping Distance and the Stoppping Re- dundancy of Codes", IEEE Trans. on Information Theory, Vol. 52, No. 3, March 2006, pp. 922-932. 24 Non-recognizable error probability in a Terrestrial DAB Single Frequency Network R. Schiphorst and C.H. Slump University of Twente, Department of Electrical Engineering, Mathematics and Computer Science (EEMCS), Signals and Systems group (SaS), P.O. box 217 - 7500 AE Enschede - The Netherlands Phone: +31 53 489 2770 Fax: +31 53 489 1060 Email: r.schiphorst©utwente.nl Abstract DAB (Digital Audio Broadcasting) is a the European successor of FM radio and it can broadcast besides audio services also other services such as traffic information. In this paper the probability of non-recognized errors in the system is derived for a 8 kbit./s data subchannel using protection level EEP3-A. This is important as data services rely on error-free transmission. It has been shown that in a live DAB network, this probability is very low. For a realistic user scenario, a user will encounter on average a non-recognized packet each 100000 year. 1 Introduction DAB (Digital Audio Broadcasting) is standardized in the late nineties [1] and is the European successor of current FM radio broadcasting. The physical layer of DAB, include an OFDM-based transmission with D-QPSK modulated sub-carriers and using RCPC (Rate Compatible Punctured Convolution Codes) for error correction. One DAB channel consists of a multiplex of 2304 kbit/s (including error correction). In a typical situation, the multiplex contains about 10 radio stations. In addition, Terrestrial DAR is designed to operate in a Single Frequency Network which means that all DAB transmitters broadcast on the same frequency. TIle network is designed in such a way that the delay spread of the received paths of all transmitters are within the cyclic prefix duration, i.e. signals from other transmitters can be con- sidered as extra received paths. For mode I in DAB, the maximum allowable distance between receivers is 100 km [2]. DAB is not only designed for audio services, it can also transmit video or data. Data services include traffic information, electronic programming guide etc. To guarantee error-free reception, DAB uses several techniques to protect the transmitted data bits against errors. However, there will always be a probability that a non-recognizable error will occur. Such an error can cause systems to malfunction, an example being that incorrect traffic jam information is displayed. This paper identifies the probability of these non-r·ecognizable error-s. To derive this probability, results from measurements in a live Single Frequency Network (SFN) in Amsterdam are used where the University of Twente conducts a DAB field trial commissioned by the Dutch Ministry of Economic Affairs [3]. The outline of this paper is as follows. First the error detection and correction techniques in DAB are discussed. This is followed by a realistic user scenario and this paper is concluded with a summary. 25 2 Error detection and correction in DAB DAB uses several techniques to protect the transmitted data bits against errors: • Interleaving • Forward Error Correction (FEC) • Cyclic Redundancy Codes (CRC) 2 .1 Interleaving The first part is the interleaving function. In wireless communication errors occur often in bursts and the purpose of the interleaver is to convert these burst errors in independent errors. This is required as the FEC decoding function requires independent bit errors. The interleaver consists of two randomize functions, both in frequency and time to meet this goal. 2.2 Forward Error Correction At the transmitter, extra information (i.e. Forward Error Correction (FEC)), is added to the transmitted data, which allows the receiver to detect and correct errors in the received signal. DAB uses convolutional codes (i.e. Rate Compatible Punctured Convolution Codes) for this purpose. The most common mode used in DAB, is proteetion level EEP3-A (Equal Error Protection) for data services. EEP3-A has a code rate of ~ which means that for every information bit, two bits are transmitted. The performance of the FEC system for the different proteetion levels is discussed in [4]. In figure 1, the Bit-Error Rate (BER) versus the symbol-to-noise ratio (ffo) is depicted for different code rates 11SPr1 in DAB in a Glownay leigh fading channel that mimics a realistic channel. Proteetion level EEP3-A uses a code rate of -& = ~. In addition, the BER curve is shown if no error correction is applied (line uncoded). The service area of DAB can be defined as where the BER is lower than 10-4 [5],[2]. At the border of the service area, proteetion level EEP3-A is capable of reducing the raw BER (uncoded line) of 10-1 to 10-4. So, it reduces the BER with a factor 1000. In a realistic situation, the user is not always at the border of a service area. For example, figure 2 depicts the measured BER with our measurement vehicle for proteetion level EEP3-A in Amsterdam. From this figure one can deduce that a realistic scenario would be that the user is only 5 % of the time at the border of the service area. At the border of the service area, the user experiences a BER of 10-4 Within the service area, the ~~ is much higher and therefore the BER is several magnitudes lower (see figure 1). For that reason, this 5 % will determine the probability of non-recognizable errors in the DAB system. 2.3 Cyclic Redundancy Codes Although the BER is largely reduced by the FEC decoder, still bit errors can occur. To detect these errors, the system uses Cyclic Redundancy Codes (CRC) 26 10' 10.1 \ 10'" \_\, \. .\ \ ~ , 10') \\\\ \ \ \ \ \ \ \ \ \ 10" \ \ \ \. \'\ \ \ \, , \ , 10.5 \ \. \ \. \ \ 0 B 10 12 14 16 EslNo [dBJ Figure 1: Theoretical BER curves (upper bound) for a slow Rayleigh channel, taken from [4]. Figure 2: Typical performance for Proteetion level EEP3-A in Amsterdam (the color is an indication for the BER) 27 checksums [6] that are added to each packet that is transmitted. In DAB, the eRe-eeTITT code is used: x16 + X12 + x5 + 1. To each packet a eRe checksum is added. The eRe checksum is calculated by dividing the packet data by the eRe code i.e. 1000100000010000l. The remainder of this division is the eRe checksurn. At the receiver side, the division is repeated and both checksums are compared. If they are unequal, the packet contains errors. The eRe-eeTITT code can detect bit errors as long as the combination of the errors is not a multiple of the eRe code, because in this case the remainder (i.e. checksum) of the division remains the same. The code contains 4-elements, which means that this code can detect anyone, two or three bit errors and any unequal number of errors. Most combinations of 4 errors in the packet are detected but not all. The probability of non-recognizable errors is therefore mainly determined by the probability that 4 errors occur in the packet, as the following example will show. 2.3.1 Example In this example we will derive what the probability is of a non-recognizable packet error, if there are 4 errors in the received packet for a BER of 10-4. This value is compared with the probability when 6 bit errors occur as any combination of 5 errors is detected by the eRe code. Six bit errors are only undetected if it is a combination of two non-recognizable 1-bit errors. For a 8 kbitys channel with proteetion level EEP3-A, each packet contains 192 information bits [1]. To calculate the eRe checksum, the packet is divided by the eRe code. In binary calculations this means that at 192 - 16 = 176 positions a XOR operation of 17 bits long can be performed. If the bit errors are a multiple of the eRe code they are not detected. So if in one of the stages of the division, errors occur on the positions of the elements of the code, it is undetected. The probability for this to happen is for a single stage in the division is: (1) Pp the packet error probability P; the bit error rate i.e. 10-4 N the packet length ne the number of errors i.e. 4 L the length of the eRe code i.e. 17 ! the factorial function The last part of the equation is the binomial distribution function [7] i.e. the probability that four bit errors occur in one XOR operation. However, only bit errors at elements of the code are not recognized and there are only 4! combination out of the total number of possibilities that are not recognized (i.e. first part of the equation). So equation 1 reduces to: Pp =n e-l.pne(l_p)L- e ne e (2) 28 For a packet of 192 bits, there are 176 stages, the total packet error probability (non-recognizable errors) if there are four bit errors is: 176· Pp = 4.2.10-18 To analyze the probability that six bit errors are not detected by the CRC code is more difficult, but the probability that six errors occur in a packet is P~(1 - Pe)192-6 = 1.10-24. (On the other hand, for four errors this probability is 1.10-16) As this value is already magnitudes smaller, the non-recognizable packet error probability is determined by the 4-bit errors case. Moreover, six bit errors are only undetected if it is a combination of two non-recognizable 4-bit errors. In the previous section, it has been derived that it is likely that only 5 % of the time this probability will occur. Therefore the total non-recognizable packet error probability is 2.1 . 10-14. 3 U ser scenario A packet has a duration of 24 ms. So, if the data sub channel of 8 kbit/s is used every day for 8 hours by 10 million users, the probability that in year a packet with non-recognizable errors is received by one of the users is: 365.8.3600.107. O~24 .pp >=::; 92. Thus, every year, there are about 100 packets received with non-recognizable errors. Considering 10 million users, this is a very small value. On average, a user will encounter a non-recognizable packet each 100000 year. 4 Summary In this document the non-recognizable packet error probability has been derived for a 8 kbit/s DAB sub channel for proteetion level EEP3-A. This probability is 4.2· 10-13 which is very small. For a user scenario with 10 million users, it has been shown that on average a user will encounter a non-recognizable packet each 100000 year. References [1] ETSL Radio Broadcasting Systems; Digital Audio Broadcasting (DAB) to mobile, portable and fixed receivers. ETSI EN 300 401 V1.3.3, 2001. [2] W. Hoeg and T. Lauterbach. Digital Audio Broadcasting: Principles and Applications of Digital Radio. John Wiley & Sons, second edition edition, 2003. [3] Signals and Systems Group. http://www.sas.eLutwente.nl/ research/ wire L ess/ t dab. [4] H. Schulz. Codierung, Interleaving und Multiplex-Diversity bei DAB: Auswirkungen auf de Rundfunkversorgung. 2. ITG-Fachtagung "Mobile Kom- munikation", 1995. [5] ETSL Digital Audio Broadcasting (DAB); Signal strengths and receiver pa- rameters; Targets for typical operation. ETSI TR 101 758 V2.1.1, 2000. [6] A.S. Tanenbaum. Computer Networks. Prentice Hall, fourth edition edition, 2003. [7] http://mathworLd. uiot f ram, com/BinomiaWistribution. h tml., 29 Adaptive Modeling of Sky for Video Processing and Coding Applications Bahman Zafarifar Peter H. N. de With LogicaCMG Nederland B.V. LogicaCMG Nederland B.V. Philips Consumer Electronics Eindhoven University of Technology Eindhoven University of Technology P.O. Box 513, 5600 MB Eindhoven P.O. Box 513, 5600 MB Eindhoven The Netherlands The Netherlands B.Zafarifar©tue.nl P.H.N.de.With©tue.nl Abstract Video content analysis for still- and moving images can be used for various ap- plications, such as high-level semantic-driven operations or pixel-level content- dependent image manipulation. Within video content analysis, sky regions of an image form visually important objects, for which interesting applications at both mentioned levels can be envisaged. This paper introduces a new algorithm and model for detecting blue-sky areas, with suitable properties for TV video material. The proposed method is capable of robustly detecting various sky appearances, while addressing the requirements of the target applications. A special feature of our proposal is that we use adaptive calor 1 - and position models for computing a pixel-accurate sky-probability measure. The experimen- tal simulations show that our proposal considerably improves the correct detec- tion/rejection of sky regions, and yields better spatial and temporal consistency of the detection results with respect to the currently available systems. 1 Introduction Content analysis of digital images and video sequences is strongly emerging, with ap- plications ranging from high-level, such as image understanding and semantic-driven image- and video retrieval, to pixel-level applications like object-based image coding and picture-quality improvement. Sky detection, as a particular case of content analy- sis, can be used for the mentioned high-level applications, as well as image-manipulation operations such as object-based locally-adaptive artifact reduction and color enhance- ment. A system employing such content-adaptive picture processing can achieve a better image enhancement, as compared to a system that applies locally-constant set- tings [1]. Sky is one of the important visual objects, which appears frequently in video images. The smooth appearance of sky allows noise and other signal artifacts to be clearly visible. This motivates our research into creating a reliable sky-detection system with suitable properties for picture quality improvement of video sequences. Previous work on sky detection includes a method [2][3] based on calculating an initial "sky belief map", followed by a selection of connected areas based on texture and color analysis and the fitting degree to a two-dimensional (2D) model. An alternative Iln this paper, "calor" denotes all calor components. When a distinction between chromaticity and gray values is required, we use the terms "luminance" and "chrominance". 31 method [4][5]is based on the assumption that sky regions are smooth and are regularly located near or at the top of the image. Here, an initial sky probability is calculated based on color, texture and vertical position, followed by an adaptation step and a refined sky-probability calculation, Although the first method yields useful results in annotating large sky regions, it tends to fail in stably detecting smaller areas, making the detection results unacceptable for image-manipulation applications, Alternatively, the pixel-oriented approach of the second met.hod makes this system suitable for video applications. However, this method often leads to false detections such as accepting non-sky blue objects as sky, and false rejections like a partial rejection of sky regions when they cover a large range in the color space. We propose an extended system for blue-sky detection that builds upon the second method, thereby exploiting its suitability for video applications, while considerably improving false detection/rejection rates. The improvements are the result of a more elaborate texture measure that uses a multi-resolution magnitude and gradient analy- sis of the luminance component, a more realistic color model, an adaptive threshold calculation, and the exploitation of a sky confidence metric. We evaluated the proposed algorithm for many images, representing a large variety of sky appearances. Comparing our results to [4][5], we can conclude that our proposal considerably improves the correct detection/rejection rates. When compared to [2][3], our system yields better spatial accuracy and temporal consistency, which are essential for picture-quality improvement in video applications. The remainder of the paper is organized as follows. Section 2 describes the proposed algorithm, Section 3 presents the results and Section 4 concludes the paper. 2 Algorithm Description 2.1 Model Creation Sky color is a primary feature for detecting sky areas. As sky appears in a variety of forms, such as clear blue, cloudy and overcast, its color can cover a large part of the color space, trom saturated blue to gray, or even orange and red during sun-set. This large color range can be seen not only between different images, but also within a single image: a wide-shot clear-sky image is often more saturated near the top and becomes less saturated towards the bottom of the image, while the luminance tends to increase in top-down direction. Another feature of blue-sky areas is their smooth texture, which can be used for discriminating sky regions and other sky-blue objects. Our last observation is that sky areas are more likely to be near the top of the image than the bottom. The main application of our system is television picture-quality improvement, such as noise and artifact reduction, and color enhancement. Among different sky appear- ances, blue-sky regions are most useful for these image-enhancement operations. There- fore, we propose a detection system that targets only the blue-sky regions. Our system is based on the features mentioned in the previous paragraph, namely the assumptions that (1) sky regions are more likely to be found near the top of the image, (2) the color values cover a certain part of the color space, (:1) thR color cornponents have limited horizontal and vertical gradients, and that (4) the texture is smooth. As illustrated in Fig. I, the sky detection system contains two main parts, namely 32 Input Image (YUVl Initial Psky f----------------------------~ Calculate Adaptive Threshold and Sky Confidence Adapt Calor Model Model Creation Model Application Figure 1: Block diagram of the sky detection system "model creation" and "model application". In the first part, a sky model is created for the sky areas of the current image. This includes a spatially-adaptive color model, a vertical-position probability model, and a sky confidence measure. In the second part, the created sky model and the original image are used to compute a pixel-accurate sky-probability map (Final Psky output in Fig. 1). 2.1.1 Initial Sky Probability The first step for model creation is estimating which parts of the image are likely to belong to sky. To this end, an initial sky-probability map is calculated based on the color, vertical position and texture of the image (Fig. l-left) by Pskylnitial = Pcolorl X P positionl X Ptexturel , using fixed predefined settings for color and position. These settings are chosen such that all targeted sky appearances can be captured. The color probability is calculated using a three-dimensional Gaussian function for the Y, U and V color components, centered at predetermined positions ló, Uo and Vó (representing the expected sky color), with corresponding standard deviations (Jyl, (Jul and (Jvl as _ ((Y(T,Cl-Yo)2 (Jyl + (U(T,C)-uo)2 (Jul + (V(T,Cl-Vo)2) (Jvl P col or (r, C ) = e . The vertical-position probability is defined by a Gaussian function, which has its center at the top of the image, starting with unity value and decreasing to 0.36 at the bottom of the image. The texture probability is based on a multi-resolution analysis of the luminance component of the image. More specifically, three down-scaled (with factors of 2) ver- sions of the luminance component are analyzed using a fixed window-size (of 5x 5 pix- els). The texture analysis uses the Sum of Absolute Differences between horizontally- and vertically-adjacent pixels in the analysis window, and the horizontal and verti- cal gradients. The texture probability assigns low probabilities to parts of the image 33 containing high luminance variation or containing excessive horizontal or vertical gra- dients. 2.1.2 Adaptive Threshold level and Sky Confidence The initial sky-probability map needs to be segmented by a threshold in order to create a map of regions with high sky probability. Simple measures for threshold op.tp.rmini;l- tion, such as using the maximum of the sky-probability map as proposed in [5], can perform inadequately, for example by favoring small objects with high sky probabil- ity over larger non-perfect sky regions. In order to avoid this problem, we propose a more robust method that takes both the size and the probability of sky regions into account, by computing an adaptive threshold and a global sky confidence-metric. The confidence metric also prevents small (sky-)blue objects from being accepted as sky, in images where no actual sky regions are present. The calculation steps are as follows. Denoting the Cumulative Distribution Function of the initial sky probability as CDFpskyl , we define CDFweighted as CDFweighted(i) = W(i) x (1 - CDFpskyl(i)) , where W(i) is a weighing function for emphasizing the higher probability values, equaling unity at i = 1 and decreasing to zero at i = O. For images containing sky areas, the function CDFweighted will have a peak where a large number of pixels with high sky probability are found. The maximum value of CDFweighted indicates the mentioned sky confidence metric (Qsky), while the position of this maximum is used to determine the required threshold level for segmenting areas with high sky probability. 2.1.3 Modeling Sky Calor As explained in previous section, sky can take a large range of colors within and between images. As a consequence, a simple fixed-color sky detector is likely to fail in correctly annotating different sky appearances. Ref. [5] proposes to adapt the expected sky color in each image to the areas with the highest init.ial sky probability, but further to keep this expected color constant within the image. Our experiments proved that this method leads to false rejection of sky areas, when the sky color covers a large range. In order to deal with this problem, we use a color model that is spatially adaptive. This means that the expected sky color not only takes the color difference between images into account, but also adapts to the color of the sky regions at different positions of the image. Each color component (Y, U, and V) of the image is modeled by a spatially- varying 2D function. These three 2D functions together define the expected sky color at each image position, and are used for calculating the final sky probability. Each 21) function is fitted to a selected set of sky pixels. The choice of the model and the fitting strategy depends on the required accuracy and the permitted computational complexity. We implemented two different models and fitting methods, which will be described below. The first method uses a second-degree 2D polynomial, in combination with a least- squares optimization for estimating the polynomial coefficients. First, the initial sky- probability map is segmented using an appropriate adaptive threshold (described in Section 2.1.2) to retain the sky regions with high sky probability. Subsequently, the 34 pixels of the segmented areas are selected with a decreasing density in top-down di- rection. In the last step, each color model (polynomial function) is fitted to the val- ues of the corresponding color component (Y, U, V) of these selected pixels, using a least-squares optimization. The mentioned vertically decreasing density exploits our assumption that the pixels near the top are more important for model fitting than those near the bottom. This ensures that the model parameters are less influenced by reflections of sky or other non-sky blue objects below the actual sky region. The second modeling method uses a small 2D matrix (18x23) for modeling each color component (Y, U, and V). Each matrix can be seen as a small version of the image, containing the expected color in a condensed format. For calculating the final sky probability, the values of these matrices are up-scaled (interpolated) to find the expected colors for each image position. Each matrix is fitted to the values of the corresponding color component as follows. First, the initial sky-probability map is segmented using an appropriate adaptive threshold to remove regions of low sky prob- ability (by setting the corresponding sky probabilities to zero). Next, the segmented sky-probability map, and all three color components of the image are down-scaled to the size of the model (18x23). Finally, using these down-scaled versions, the model is computed as (here we present the Y model, My) h w 2..= 2..= (Y(r+i,c+j) x Psky(r+i,c+j) X W(i,j)) My(r, c) = i=-h j=-w h w 2..= 2..= (Psky(r+i,c+j) X W(i,j)) i=-h j=-w where rand c are the model position-indices, hand ware the model height and width, respectively, Y(i,j) is the down-scaled luminance component, Psky(i,j) is the down-scaled version of the segmented initial sky-probability map, and W(i,j) is a 2D Gaussian kernel. The second method is more suitable for a hardware implementation, as it employs relatively simple operations in comparison to the complex computations needed for the least-squares optimization used in the first method. 2.1.4 Modeling Sky Position The position of the sky areas is modeled by a vertically decreasing probability, which equals unity at the top of the image and linearly decreases to zero at the estimated position of the bottom of the sky areas (as in [5]). For estimating the position of the bottom of the sky areas, the initial sky-probability map is segmented with an appropriate threshold level (described in Section 2.1.2) to identify the areas with high sky probability. The position of the bottom of sky areas is then estimated to be three times the mean vertical position (V) of the segmented sky areas. In other words, the sky position model is defined FIS Pposition(r) = [1- ~]l 3 V 0 ' where r stands for the vertical position of the current pixel (r = 0 at the top of the image). The symbol [ f 16 is a clipping function, such that 0 :S [ f 16 :S 1. 35 2.2 Model Application Using the computed spatially-adaptive calor model, the vertical-position model, the sky confidence metric (as explained in Section 2), and the input image at original resolution, we calculate a pixel-accurate final sky probability as PskyFinal = Pcolor2 X Pposition2 X Ptexture2 X Q sky . The calor probability is calculated using a 3D Gaussian function for Y, U and V components, centered at the spatially-varying values Yo(r, c), Uo(r, c) and Vo(r, c) (representing the expected sky calor at spatial position (r, c), prescribed by the calor model), with corresponding standard deviations ay2, au2 and av2 as _ (( Y(r,c)-Yo(r,c)) 2 + (u(r,c)-Uo(r,c)) 2 + (v(r,c)-vo(r,c)) 2) ay2 au2 av2 Pcolor(r, c) = e . In order to reduce false detections, the standard deviations are decreased with respect to the values used for calculating the initial sky probability. The inclusion and the type of the texture feature depend on the application for which the sky detector's results are intended. For some applications, the usage of the texture feature in the final sky probability leads to undesirable effects in the post- processed image, while other applications may demand the explicit use of a texture feature. As an example, when sky detection is used for noise reduction in the sky areas, it is useful to exclude the boundaries of non-sky objects from the final sky-probability map, to preserve the sharpness around the objects. 3 Experimental Results We applied the proposed algorithm on more than 200 sky images. The images were selected to present a large variety of sky appearances, many including sky reflections and other challenging situations. Figure 3 compares our results to [4][5]. In Fig. 3- top, the halo (top-middle) is caused by the spatially-constant calor model used in [4][5], while the spatially-adaptive calor model employed in our algorithm is capable of dealing with the large calor range ofthe sky area (top-right). A similar difference can be seen in Fig. 3-bottom, where in addition, the reflection of the sky is removed by the gradient analysis. Figure 4 shows the improved correct rejection of non sky objects, which results from the multi-resolution texture analysis. Lastly, Fig. 2 shows the improved spatial accuracy of our results in comparison to [2][3], which is a result of the pixel- oriented approach and applying a moderate texture measure in the final sky-probability calculation. In short, our system yields improved correct sky detection/rejection rates, and a better spatial and temporal consistency of the calculated sky-probability map. 4 Conclusions Sky detection for video sequences and still images can be used for various purposes, such as automatic image manipulation (e.g. picture quality improvement) and content- based directives (e.g. interactive selection and retrieval from multimedia databases). 36 Figure 2: Examples of improved spatial accuracy; left: input image, middle: result from [2][3](courtesy of Eastman Kodak), right: result of our algorithm. Figure 3: Examples of improved correct detection; left: input image, middle: result from [4][5], right: result of our algorithm. Figure 4: Examples of improved correct rejection; left: input image, middle: result from [4][5],right: result of our algorithm. 37 The main problems with the existing algorithms is erroneous detection of sky areas with large ranges of calor, false detection of sky reflections or other blue objects, and inconsistent detection of small sky areas. This paper has presented a sky-detection al- gorithm which has suitable properties for video applications, and significantly reduces the mentioned problems. This was achieved by constructing a sky model that incorpo- rates a 2D spatially-varying color model, while reusing the vertical position-probability from an existing method. Moreover, we have introduced a confidence metric for im proving the consistency and removal of small blue objects. Wrong detection of the reflections of sky areas has been reduced by employing a gradient analysis of the lumi- nance component of the sky. Experimental results show that the proposed algorithm is capable of handling a broad range of sky appearances. The two primary advan- tages of the proposed algorithm are increased correct detection/rejection rates, and an improved spatial accuracy and temporal consistency of the detection results. 5 Acknowledgement The authors gratefully acknowledge Dr. Erwin Bellers for his specific input on existing algorithms. We are also thankful to Dr. Jiebo Luo for providing us with the results of sky-detection algorithm described in [2] [3] on a number of sample images. References [1] S. Herman and J. Janssen, "System and method for- per-for-ming segmentation- based enhancements of a video image", European Patent EP 1 374 563, date of publication: January 2004. [2] A.C. Gallagher, J. Luo, and W. Hao, "Improved blue sky detection using polyno- mial model fit," in IEEE Inter-national Confer·ence on Image Processine. October 2004, pp. 2367-2370. [3] J. Luo and S. Etz, "Method for- detecting sky in images", European Patent EP 1 107 179, date of publication: February 2001. [4] S. Herman and E. Bellers, "Locally-adaptive processing of television images based on real-time image segmentation," in IEEE Inter-national Confer-ence on Consumer- Electronics, June 2002, pp. 66-67. [5] S. Herman and E. Bellers, "Adaptive segmentation of television images", European Patent EP 1 573 673, date of publication: September 2005. 38 Asymmetrie Multiple Description Coding using Layered Coding and Lateral Error Correction Jacco R. Taal and Inald L. Lagendijk Delft University of Technology Fac. EEMCS, ICT Group Mekelweg 4, 2628 CD Delft The Netherlands J.R.Taal@TUDelft.NL Abstract In this paper we present a method for Asymmetrie Multiple Description Coding (AMDC) us- ing Reed Solomon Channel Codes and Layered Coding. Asymmetrie MDC can be used when channel conditions are not uniform. For instance peer-ta-peer networks or heterogeneous (wired and wireless) networks may offer different channels with different bandwidths and loss charac- teristics. The AMDC encoder can be designed to fit these network conditions and in many cases outperforms single description coding, symmetric MDC, layered coding and in some cases lay- ered coding with unequal error protections. (A)MDC exploits the diversity offered by multiple (parallel) channels without increasing the delay. In general, optimizing the design and rate allo- cation for the AMDC method is hard. In this paper we first introduce the general framework of AMDC and give some examples for which the AMDC outperforms other methods. 1 Introduetion Multiple Description Coding is a source coding method where a source is encoded into a limited num- ber of descriptions such that, whenever some descriptions are lost, the quality gracefully degrades. In general some amount of redundancy has to be added in order to increase the error resilience and to enhance the gracefulness. In [1] the theoretical bounds for the case of two descriptions is presented. Goyal [2] gave an excellent analysis and discussion of these bounds and also presented a method to correlate i.i.d. sources in order to increase the error resilience. Most of the presented methods for MDC are however cases of symmetric MDC: Each description is equally important and equivalent (similar but not the same). In general, however, MDC can be asymmetrie: descriptions are not equally important and may be prioritized: Having description one may give better quality than having only description two. Having both results in the highest quality. An extreme case of asymmetrie MDC is Layered Coding, where the enhancement layer is useless (gives worst quality) when the base layer is not received. We can also think of intermediate cases where' there is still some unbalance between the descriptions but each description will at least give some quality, although descriptions are still prior- itized. With nested quantizers and correlating transforms it is possible to generate these asymmetrie descriptions, although most papers concentrate on balanced/symmetric MDC.[3] In this paper we investigate the encoding of asymmetrie descriptions using layered coding and channel codes. We refer to [4, S] for a discussion of symmetric MDC using layered coding and channel codes. In that case IvI MD-packets are assembled by dividing the bytes of each layer over the descriptions. For each layer i, a (M, i) Reed-Solomon code is computed, and these bytes are also divided amongst each MD packet. This way, when receiving an arbitrary combination of k MD packets, the original first k layers can be reconstructed. This method effectively removes the prioritization from the layered coding and introduces redundancy and hence error resilience. Each extra description will increase quality. Later (Section 3) we will show an example of this symmetric case as a special case of general (asymmetrie) MD coding. The main idea of our Asymmetrie Multiple Description Coding method (AMDC) is to generate un- balanced descriptions by including different amounts of channel codes into each description. Thereby forming descriptions that contain more base information and descriptions that contain more enhance- ment information. It should be clear that we need to know the channel characteristics at forehand in order to fit or design the AMDC coder, the (un)balance of the channels should be matched by an 39 unbalance of the descriptions. In the remainder of this paper we first present the general design of AMDC using channel codes and layered coding (Section 2). In Section 3 we first present other coding techniques as special cases of AMDC and compare them with our rate-constrained AMDC method as discussed in Section 4. In Section 5 we present an algorithm to find solutions for a rate constrained optimization of our AMDC method. We have a discussion in Section 6. 2 Asymmetrie Multiple Description Coding AMDC Control ; {I;} • {"",,"~I • {Si,j} l(u\,k\)code I ~7'1 a, "'. N~M d, dl Pl, Rmax.J ! I - Layered (11.2, 1.:2) code ~'2 MD -lateral P2, Rmax.2 AMDC - Codec N Layers - - - - - - - - - -~ - - - - - - - - - - ~T channel code Packetization d2 Coder d3 IP3,Rrnax 3 AMDC Decoder r- !(1i.N,kN)code l kil! N tiN dM PM) Rmax.Alr (a) (b) Figure I: (a) Asymmetrie MD + lateral error correction code block diagram. (b) Asymmetrie Channel model. The AMDC codec generates M descriptions which are transmitted over M channels. Each channel j has a, possibly different, packet loss rate Pj and transmission rate Rma:x,j In this section we present the general design of AMDC. What does asymmetrie MDC look like. In general, all descriptions contain some base information (low resolution or coarse information, like a base layer) and some refinement inforrnation. When not all descriptions contain the sarne amounts of these, we speak of AMDC. One way to obtain an AMDC code, is to extend the MD-FEC system with longer (Lateral) Error Correction codes (LEC) and where each description contains one ore more of these LEC blocks. Figure I(a) shows a block diagram. The source is first encoded using a layered coder into L layers using rates {rl,T2, ... , rd (See Figure 2(a)). On each layer i a different (ni, kil Reed Solomon Channel Code is applied (See Figure 2(b). The Packetization Block then Combines all data (layer data and channel codes) into MD Packets according to the packetization scheme (Matrix S). The AMDC control block controls the layered coding rates Ti, the channel codes and packetization matrix S. In Figure 2(b), we explain the difference between Forward Error Correction (FEC), which operates on sequential packets. and Lateral Error Correction (LEC), which operates on parallel packets (or Forward Error Correction ~ ffimJ [;ill] ffimJ Bij Ill] I Da taS I~==: Delay Lateral Error Correction time I I I I Channell Channel2 Channel3 I I Delay (a) Layered Coding RD-Curve (b) Forward Error-correction compared to Lateral EC / MDC Figure 2: (a) Example of Layered Coding RD-Curve. When using an FGS encoder. layers can be generated at arbitrary rate points ri . (b) This (6,4) Forward Error Correction Reed-Solomon code operates on subsequent packets, therefore introducing a delay. Lateral Error Correction and MDC operate on parallel streams such that the delay is not increased. 40 descriptions). The general design of our AMOC method with L layers and M descriptions is as follows: Sasym LEC dl d2 dM (ni, ki) Sl,l Sl,2 Sl,M (nl,kl) (1) S2,1 S2,2 S2,M (n2, k2) SL,l SL,2 SL,M (nL,kL) The L rows of this Matrix correspond to the L layers as generated by the layered coder. The LEC column shows which lateral channel code is applied to each layer. Matrix S show the allo- cation/distribution of each of the ni code blocks within each layer i over each description (columns). Each layer i is protected with a (ni, ki) code, where ni = LJ~l Si,j. When we accumulate the sizes of the code blocks in each description, we have N n, = I:(ri- r'i_1)_!_d_ S· . (2) i=l k.; being the rate of description j, where ra = O. In order to evaluate the performance of this coding scheme we need to know for each combination of packet losses what layers can be successfully decoded. We define a "description pattern" V = {VI, V2,· .. ,VNJ} where Vj = 1 when description j is received and zero otherwise. Set V contains all 2!v1 possible V's. In general, each V has a certain probability ofoccurring Pr{V}. Given pattern V, layer i can be decoded when alliower layers are decodable and its channel code can be decoded: !vi DecodabIe? I: VjSh,j 2: kh VI:::::: h:::::: i. (3) j=l We define I(V) as the number of layers that can be decoded given pattern V. We express the distortion obtained in this case as D(rl(V))' As a more general case we use from now on a quality metric Q(r). Suppose each description pattern has a probability Pr{V}, then we can define the following average quality measure. Q= I: Pr{V}Q(rl(V))' (4) "'VEV For independent channels with loss probahilities Pj, we have In the next section we show some examples (solutions) of this problem for the case of three descriptions. 3 Special Cases of AMDC and examples In order to get insight of the behavior and design of our AMOC coding method we will first show well-known coding methods as special cases of AMOe.One extreme case of asymmetrie MDC is (pure) Layered Coding (hence no LEC), which only yields acceptable distortions when all layers 0, ... up till an arbitrary layer i are received. Layered Coding can be seen as a degenerate case of MOC. Another extreme case is symmetric or balanced MDe. Layered Coding as extreme AMDC - With the first case of layered coding, we transmit each layer on a different channel, where the most important layer is transmitted on the safest channel. Suppose we confine ourselves to the case with 3 channels and 3 descriptions and since layered coding 41 is considered a special case of AMDC, also only 3 layers. Furthermore we assume that the channels have increasing packet loss rates (PI < P2 < P3. In this case using our AMDC framework, layered coding looks like (Eq. 5): This case does not include the often used Layered Coding with Unequal Error Proteetion (LC+UEP). With LC+UEP each Layer has a different amount of error protection, according to the priority of each layer. It is clear that the UEP is based is forward error correction (Fig.2(b) and is thereby introducing possibly unwanted delay. Symmetric MDC case - Symmetric MDC is special in the sense that mau ix S only contains ones and k = {I, 2, 3, ... } (Eq.(6). Slayered LEe Ssym LEe [: : :] dl d2 d3 iru, kil dl d2 d3 (ni,ki) (5) (3,1) (6) [ o~ ~ ~ 1 0 1 g:~~ (1,1) (3,2) (3,3) 4 General AMDCconstrained by channel rates The most general optimization criterion can be defined when the rate on each channel is limited and potentially different. Furthermore we assume that also the packet loss rates on each channel are different (See Figure I (b». (7) L "L.__,-'-' S·j (ri-ri-l) < Rmax,j \11 < j < M. (8) i=l ki Optimizing matrix Sand k in order to maximize the average quality criterion Q is an integer programming problem since values for S.i,j and k; only take integer values and is very complex since the number of parameters tends to get very large. Furthermore, the behavior of Function (3) is non- linear and non-continuous. When also the rates for alllayers r, have to be optimized, the problem is a mixed integer programming problem. For now we concentrate on investigating the behavior of fairly simple AMDC cases. If we constrain again to a system with three layers and three descriptions, each layer i is coded with a different (ni, kil channel code. In this example layer one is (channel) coded with a (6,3) code, layer 2 with (6,4) code and layer 3 with (6,3). The following table shows the distribution of the n codewords over all descriptions: Sasym,6 LEe dl d2 d3 (ni, kil 2 (6,3) (9) [l n 2 2 (6,4) (6,5) This simple example already gives some interesting behavior. If a client only receives description one, he has - according to the channel code - sufficient information to decode layer one. When he receives descriptions two and three, he could decode layer one as well as layer two. Receiving all three descriptions results in all descriptions being decodable. 4.1 Comparison of results for M = 3 and simple quality metric Let us compare the AMDC method to SDC, layered coding and symmetric MDC. The quality metric we use here is simply counting the number of layers that can successfully be decoded, Furthermore 42 we assume that every layer has a rate ri = 1. Suppose descriptions dl. da, d3 have loss probabilities of 0.05,0.1,0.3, respectively. For the asymmetrie case, on average 2.89 layers can be decoded at a total rate of 5.5 (See Table I). For the symmetric case, the total rate is also 5.5, but on average only 2.55 layers can be decoded. By changing the codes and reallocating the codewords over the descriptions we have adapted to the network conditions, which results in more layers being decodable (and hence in higher quality) and in lower rates. The Layered coding technique where each layer is send over a different channel, only 2.4 layers can be decoded. For a complete view, we also simulated the single description coding case. where all data is sent over the safest channel. This gives a pretty high average of 2.85, but needs much higher rate on this channel. In a rate-constrained case, where description rates Rj are constrained to 1.8, by using AMDC we achieve better error resilience and are able to balance the load over all channels. SDC 3.0 {3.0, 0, O} 2.85 Layered 3.0 {1.0, 1.0, 1.0} 2.40 Symm. MDC 5.5 {1.8, 1.8, 1.8} 2.55 AMDCI 5.5 {1.8, 1.8, 1.8} 2.89 Table I: Comparison of AMDC cases for M = 3. 5 Optimization Algorithm Since we believe there is no efficient analytic solution to the optimization criterion, we developed an algorithm (Alg: 3(a)) based on simulated annealing that tries to find a good S matrices. We do this for the simple case using the layer-counting metric and for equal layer rates Ti = rilli =1= j. We try to find a Pareto set 5 of S matrices, containing non-inferior solutions S using function Pareto(5, V, k) : {Si E 5; Q(Si, k) > Q(Sj, k) 1\ n; k > u; k VSj E 5, i! = j}. (10) The algorithm runs an arbitrary number of passes. With each pass, the existing set 5 is extended with multiple random variations of each matrix S E 5. Of this new set the Pareto points are extracted. With each pass i set Si is superior to 5i-1. The algorithm is initialized with a template matrix S which can be a random or structured matrix. The purge step is included to purge solutions that are not required, and can be used to bound the rates. By feeding the algorithm sufficiently large fa and k the algorithm has enough freedom to find good candidates. By shaping the initial S matrix and k-values towards a reasonable initial solution the optimization process can be improved. In figure 3(b) we show some results ofthe algorithm. The X-axis shows the total rate Lr! Rj, the Y-axis the average Quality under the given conditions. The lines show the Pareto points found in each pass. The upper-left-most line corresponds the the last pass. 6 Discussion and Conclusions We introduced a method for multiple description coding for asymmetrie channels (AMDC). AMDC is applicable when the network defines different channels with different rates and different loss proba- bilities. When one channel is completely reliable (p = 0), a pure layered solution is advised. When both channels are unreliable, but have the same characteristics, the symmetric mdc case can best be used. In allother cases, an asymmetrie MDC should be applied. Unequal Error Proteetion and Layered Coding has been proposed to deal with channels with packet loss, the drawback is that UEP increases delay, whereas AMDC does not. Since finding the optimal S matrix is very complex, we proposed a fairly simple algorithm to find suitable (but suboptimal) S matrices given the packet loss rates for each channel. Depending on the channel rates an S-matrix can be selected that is matched to the channel characteristics. 43 EXTEND(M, So, k, v,s. Npasses) Require: Number of descriptions M, template matrix So, k, V, channel probabilities p, total number of passes. Ensure: Spar == Par:eto(So) for pass = 1 to Npasses do N f-- No/2pass-l, f f-- fo/2pass-l, T f-- Spass-l 2.5 for all SE Spass-l do for n = 1 to N do .'':':'~~--:';'::''-~': ~~--, ... T {= S + f· randorn o ; M, ,.'; _~ 1.5 end for end for T f-- Prune(T) Spass <- Pareto(T, V, k) 0.5 end for '0 '2 Spar f-- 5 Npasses (a) (b) Figure 3: (a) Algorithm to find a Pareto set of S matrices, which all resultin a different rate Rm and Quality Q. (b) Example ofresults of the algorithm (5 Pass, No = 128, f = 16, k = {16, 32, 48, 64}, P = {O.05, 0.1, O.2}). The dots correspond to all points found in each pass. The lines connect the Pareto points found in each pass of the algorithm References [1] R. Puri and K. Ramchandran, "Multiple description source coding through forward error correction codes," in Proc. Asilomar Conference on Signals, Systems and Computers, (Asilornar, CA), Oct. 1999. [2] V. Goyal and J. Kovacevic, "Generalized multiple description coding with correlating transforms," IEEE Trans. onf lnformation Theory, vol. 47, pp. 2199-2224, September 1999. [3] Vaishampayan, "Multiple-description vector quantization with lattice codebooks: design and analysis," Information Theory, IEEE Transactions on, 2001. [4] P. A. Chou, H. J .. Wang, and V. N. Padmanabhan, "Layered multiple description coding," in Proc. Packet Video Workshop, Apr. 2003. [5] J. R. Taal and R. L. Lagendijk, "Fair rate allocation of scalable multiple description video for many clients," in Proc. of SPIE, Visual Communications and Image Processing, vol. 5960, pp. 2172-2183, July 2005. 44 Performing Motion Estimation . In Distributed Video Coding T. Clerckx, A. Munteanu, J. Cornelis and P. Schelkens Vrije Universiteit Brussel Department of Electronics and Informaties (ETRO), Interdisciplinary Institute for Broadband Technology Pleinlaan 2, 1050 Brussels - Belgium tclerckx©etro.vub.ac.be Abstract Distributed source coding (DSC) is a new coding paradigm for video compression, based on the theoretical fundaments of Slepian and Wolf and Wyner and Ziv on compression of correlated information sources. DSC simultaneously provides low-complexity encoding of video and robustness against transmission errors. Current video coding systems based on distributed source coding, apply motion estimation only at the decoder side in order to generate the side-information. This paper proposes an alternative distributed video coding approach employing a simple motion model at the encoder side, using the bit-error as a block-matching criterion. This leads to higher compression-performance at the cost of a slight shift in coding complexity from the decoder to the encoder. 1 Introduction Current state-of-the-art video coding standards such as H.264/MPEG-4 AVC [1]encode the video sequence by exploiting the joint statistics of the video frames at the encoder- side. Although they achieve excellent rate-distortion characteristics, the complexity of these types of codecs is high. With the rise of wireless communication technologies, the market has opened up for a wide range of portable devices that are inevitably subject to power and computational/memory complexity constraints. Moreover, wire- less transmission channels suffer from error-proneness, such that employing error pro- tection/ correction tools has become imperative for reliable communications. Unfortu- nately, the device constraints are in conflict with the complexity associated with today's video coding architectures. Hence, new coding systems need to be designed in order to cope with the limited computational capabilities of portable devices. Distributed video coding (DVC) is a technique based on the Slepian- Wolf theorem [2], which exploits the interframe statistics at the decoder side. Thereby the computational burden is shifted from the encoder side to the decoder side, as the complex motion estimation (ME) algorithms become part of the decoding process. Moreover, the DVC encoder uses forward error correcting (FEC) codes to correct the errors introduced in the virtual channel [3], considered between subsequent frames; therefore, the signal can also be protected against errors introduced in the physical transmission channel. Earlier work has showed that DVC is a promising approach in environments where error-correction capabilities and algorithm simplicity are important assets [3, 4]. These solutions in- tegrate the motion estimation (ME) completely at the decoder side and heavily rely on appropriately modeling the virtual channel at the encoder side. The main problem associated with this design is that as the virtual error between frames or blocks within frames, increases with increasing motion, the FECs will fail on decoding the correct blocks/frames. Hence, as the amount of errors on the virtual channel becomes too high, 45 source blocks/frames have to be either heavily over-protected or intra-coded, both im- plying a poor overall video coding performance. In order to alleviate these effects, several approaches employ a feed-back channel [5] in which the decoder informs the encoder about the appropriate FEC code-rates to be used for each source block/frame. Although in principle this approach allows for optimizing the FEC code-rates, using a feedback channel is not always an option, particularly in time-constrained video cod- ing applications, due to the inherent coding delays. An alternative approach, studied in this paper, is the use of simple motion estimation strategies at the encoder side. With this respect, a spatial-domain DYC architecture is proposed, in which the DYC encoder employs a simple logarithmic-search block-based motion estimation algorithm. Moreover, in our approach, the classical minimum absolute-difference block-matching criterion used in typical ME is replaced by a minimum bit-error rate criterion. This option is motivated by the common assurnption for which the virtual channel is con- sidered to be binary-symmetric. The even frames are intra-coded as in [5], while ME is applied on the odd frames followed by block-based DYC coding, using Low Density Parity Check (LDPC) forward error-correcting codes. At the decoder, the motion vec- tors are used to generate side-information with the intra-coded frames as a reference, followed by LDPC decoding. The proposed approach offers the advantage of reducing the amount of blocks that have to be intra-coded at the expense of additional motion- vector rate and encoder complexity. Moreover, the rate needed for successful decoding can be pre-assessed, in contrast to [5] , where a feedback is included in the system. The paper is organized as follows. Section 2 overviews the principles of distributed source and video coding. A motivation and description for a logarithmic-search motion estimation algorithm in a DYC-system is presented in section 3. The experimental setup is given in section 4, followed by a discussion of the obtained results in section 5. Finally, conclusions of our work are drawn in section 6. 2 Basic principles in DSC 2.1 Distributed source coding Assume a system encoding and decoding a set of two correlated information sources, using two encoders and a pair of decoders, as depicted in Figure 1. For such a system, 16 different scenarios regarding information exchange between the encoders and/or between the decoders can be described, resulting in 16 different joint/distributed en- coding/decoding systems. Each encoding/decoding scenario can be described by the x X* Y* Y Figure 1: Sixteen cases of correlated source-coding. switches {Sj, S2, S3, S4} being open (0 - no information exchange) or closed (1 - in- formation exchange). There are three switch-configurations, which are of particular interest when it comes down to video-coding. The setup where all switches are closed, l.e. {Sj, S2, S3, 54} = {L, 1, 1, l} , corresponds to joint-encoding and joint-decoding of the information sources. This setup is widely used in today's video coding stan- dards, where the encoder jointly codes and decodes frames in a video sequence, ex- 46 ploiting inter- and intra-frame correlations, resulting in highly-efficient coding. Also the case where all switches are open, i.e. {SI,S2,S3,S4} = {O,O,O,O}, is a known configuration in video coding. This corresponds to independent coding of the sources, which is used for instance in motion-JPEG coding. The third particular setup, i.e. {SI, S2, S3, S4} = {O,0,1, I}, corresponds to independent (distributed) coding of the sources combined with joint decoding of the coded information. With respect to video coding, such a system applies only intra-coding at the encoder, while exploiting joint statistics at the decoder-side e.g. by performing motion-compensated frame interpola- tion (MCI). This implies that - as opposed to classical video coding schemes - the high computational burden of performing motion estimation in such a system is placed at the decoder-side instead of the encoder. Although in contrast with the conventional ideas of video coding, Slepian and Wolf [2] proved that under certain conditions, the (lossless) coding performance of such a system is equal to that of the joint encod- ing/decoding scenario. Later, Wyner and Ziv extended these theories for lossy coding of correlated information sources [6]. 2.2 Distributed video coding Figure 2 shows a practical distributed video coding architecture. In this scheme, after quantization, the even frames P(2n) are intra-coded and sent to the decoder over a communication channel where they are lossy or lossless decoded to P*(2n). Between the even and the odd frames, P(2n) and P(2n+ 1) respectively, an error-prone virtual channel is assumed. That is, one can imagine an odd frame P(2n+ 1) being transmitted through this virtual channel, to form the corrupted version F(2n). Transmission Medium Figure 2: Distributed Video Coding Scheme. Hence, the basic idea in distributed video coding is to protect the odd frame against errors occurring in the virtual channel by adding forward error correcting codes (FEC), prior to transmission. At the decoder side we already received a corrupted version of frame P(2n + 1) , which is the decoded even frame P*(2n). Thus, in order to decode P(2n + 1) we need to send only the corresponding FEC's. Applying the forward error correcting codes to the corrupted version P*(2n) will result in a less-corrupted (or uncorrupted in the lossless case) version P*(2n + 1) of P(2n + 1). 1n order to minimize the amount uf data spent on the error correcting codes, frame P(2n + 1) is first quantized and split into blocks, followed by a classification of the blocks to determine the strength of the FEC that needs to be applied. These classes range from no-coding at all (if the error is negligible) to intra-coding of the block if the error is too high to be corrected with any FEC code. Between these two outer 47 limits, a wide range of FEe classes can be foreseen. In addition, the decoder will try to generate a less corrupted version of F(2n + 1) than F*(2n) , by applying e.g. motion-compensated frame interpolation or block motion extrapolation. This coding scheme has the additional advantage of providing robustness against errors occurring on the transmission channel. Indeed, the FEe's may be used not only to protect against errors occurring on the virtual channel, but also against errors occurring in the physical channel. Moreover, one can easily trade-off complexity with error-robustness: applying more advanced prediction techniques at the decoder to gen- erate more reliable side-information, results in less errors on the virtual channel, which in turn allows for a higher amount of errors on the physical channel. The only con- strain is that, in the worst case scenario, the sum of errors occurring on the virtual and physical channels should not exceed the amount of errors that the FEe can correct. Note that this scheme does not apply pure distributed coding of the information sources, as classification of the blocks needed in order to determine the appropriate FEe's is based on the error determined with respect to the corresponding block in the previous frame. Another solution to minimize the rate of the FEes is obtained by using a feedback channel, as reported in [5]. 3 Logarithmic-search block-based motion estima- tion One of the advantages of distributed video coding is its relatively simple encoding complexity compared to the conventional coding systems. However, its performance strongly depends on the reliability of the side-information generated at the decoder. Using the previous frame as side-information is the simplest but the least reliable ap- proach in high-motion scenes. Additionally, although motion-compensated frame inter- polation or block-based motion extrapolation generate more reliable side-information than the previous frame itself, they still poorly capture the true motion in the video sequence. Hence, in order to (i)keep a relatively simple algorithmic encoder complexity with respect to the conventional video coding systems, and in the same time (ii)to generate more accurate side-information than provided by MeI or block-based motion extrap- olation, we propose Dye using a simple motion model at the encoder side. With this respect, in our Dye system, a logarithmic-search block-based motion estimation scheme is employed. In this motion model, the number of candidate predietor blocks is a function of the logarithm of the search range, requiring far less computations than a full-search block-based motion estimation algorithm. However, as opposed to a full-search algorithm, a logarithmic-search can converge to a local minimum. Important to remark here is that while conventional video coding systems typically use sum of absolute differences (SAD) as a metric to determine the quality of the candidate predictor, this should not be used in Dye systems. As the virtual channel between the frames is assumed to be binary symmetric, we propose using the bit-error as the metric to be employed in the motion estimation algorithm. This can be easily verified by the example given in Table 1 for a pixel-based estimation. One notices that the error is 1 bit if one uses the Bit-Error as matching criterion, whereas the SAD results into a 8 bits prediction error, implying a longer FEe code or intra-coding. A logarithmic-search block-based motion estimation is performed to predict the quantized frame F(2n + 1) from the quantized frame F(2n). The predicted frame, which is more correlated to F(2n + 1) than F(2n), is then considered as the corrupted version of F(2n + 1). This results in lower FEe code-rates for coding F(2n + 1) at the cost of slight increase in encoder complexity and additional motion-vector rate. Note that, in comparison to conventional Dye systems, this iu fact correaponds to a cornplexity shift from the decoder back to the encoder, as the proposed Dye-system does not perform 48 Table 1: Illustration of the differences resulting from the use of the SAD and Bit-error in order to predict a given value P3 given Pl and P2. Current pixel: P3=128 (decimal) = 10000000 (binary) Predietors Decimal value Binary value SAD Bit-error Result Pl 127 0111 1111 1 8 bits P2 144 1000 1000 16 1 bit Shortest FEC motion estimation in the decoding process. 4 Experiments: description and setup To evaluate whether applying logarithmic-search block-based motion estimation leads to better side-information generation, a first experiment determines the amount of blocks that can be DVC-coded, using one FEC class that can correct up to 12.5% bit-errors for a set of 84 frames of the "Football" sequence. Subsequently, the motion estimation algorithm is used in a simulation of a DVC system, coding both a high- and a low-motion frame, using 6 different FEC classes, an intra-coding mode and a no-coding mode. For each frame, uniform quantization ranging from 1 to 8 bit per pixel is employed. In order to efficiently DVC code the blocks, logarithmic-search block-based motion estimation is performed on 8x8 blocks, followed by their re-grouping into source-blocks of 32x32 pixels, needed in order to construct sufficiently large source packets. The em- ployed FECs are low-density parity-check (LDPC) codes [7, 8]. The bit-error correction capacity (BEC) of our LDPC codes has been numerically determined. Additionally, simulations using the bit-error correction capacities of optimal LDPC codes as pre- sented in [9] have been performed as well. A full description of the experimental setup is given in Table 2. The simulations are repeated, using (a) the previous frame and (b) the motion-compensated interpolated frame (generated using the previous and the next frames) as side-information. The amount of bits spent on intra-coding a block is calculated as the sum of (i) adaptive first-order entropy coding of the block and (ii) the amount of bits needed to flag the block as being coded in intra-coding mode. On the other hand, the amount of bits spent on a DVC-coded block is calculated as the sum of (i) the redundancy bits generated by the FEC code, (ii) the motion vector bits, and (iii) the bits required to signal the DVC-class to the decoder. 5 Experiments and discussion For the first experiment, Figure 3 shows the amount of blocks that can be DVC-coded, obtained on the "Football" sequence (CIF resolution, 30 fps) quantized using 4-bit uniform quantization. It can be observed that in high-motion frames (e.g. DVC-frame 13), simple motion estimation can triple the amount of DVC-coded blocks compared to the case where no ME is employed. Moreover, on average, there will be up to 19% less intra-coded blocks in case wherein ME is performed at the encoder side, compared to the common DVC approach wherein motion-compensated interpolation (MCI) is performed at the decoder. These results are promising, and indicate that the number of intra-coded blocks (and hence the overall source coding rate) can be significantly reduced. The compression ratios obtained in DVC-coding using side-information based on 49 'OO,-------;OCr·~=-·+=··'::.= ..·N:,=·· ..·=MJ=·iOn=·····=·ESti=-··:rrm=·· .. =·("00=··· ..=····==,-------------------1 , i ec 1---- ~slde>.£seateh-WrdoN'I-------------------,H ·t I I------~~-----~-__d~ L _.,.~ .~\---f------=-----"-----------c---.cc :',. ~:.._~ ••••~.~~~_ ..;.:::.\ !~:~:;~.ct.:!~ ~-+ -. ' -.- 1 2 3 4 5 6 7 6 9 10 11 12 13 14 15 16 '7 18 19 2D 21 Z2 Z3 2425 26 27 2B 29 3131 32 33 34 35 36 37 38 39 40 41 42 DVC frarre nr. Figure 3: Percentage of DYC encoded blocks for ME, no ME and MCI using 8x8 blocks and a 32x32 pixel search-window, obtained on the "Football" sequence (CIF resolution, 30 fps), quantized using 4-bit uniform quantization. (i) logarithmic-search block-based motion estimation, (ii) motion-compensated frame interpolation and (iii) the previous frame for both a low- and high-motion frame from the "Football" sequence are presented in Figure 4. These results are obtained using both our LDPC-implementation (figures 4(a) and 4(c)) and the optimal LDPC-codes of [9] (figures 4(b) and 4(d)). In all cases logarithmic-search block-based motion estimation gives more than 50% better results at low source-rates (coarse quantization). For higher source-rates, the different methods of generating side-information lead to similar results. This is because the errors induced by the random behavior of the least-significant bits leads to bit-errors beyond the error-correcting capabilities of the LDPC-codes; thus, for high source-rates mostly intra-coding is being performed. Notice that for the low-motion frame, the compression-ratio in the case when using MCI to generate the side-information, leads to worse performance than using the previous frame as side-information. As shown in Figure 3, at low-motion (DYC framesl-7), the percentage of DYC-codable blocks is almost the same for these two methods. The worse performance of the MCl method here is a consequence ot re-grouping the 8x8 blocks to 32x32 blocks in order Lo have Table 2: Experimental Setup. Sequence Experiment 1 Experiment 2 "Football" Quantization: 4-bit uniform Quantization: 1-8 bit uni- quantization form quantization CIF resolution Blocksize: 8x8 Blocksize: 8x8 30 fps Search-range: (-32, +31) FEC Code type: LDPC- code Selected low-motion frames: Maximum correctable bit- FEC Code packet-length: 1,2,3 error: 12.5% 32 x 32 pixels (4 blocks) Selected high-motion Code-rates: 0.8, 0.75, 0.70, frames: 25, 26, 27 0.65, 0.60, 0.55 50 " , <; I~--""'~r--.. l:~-fmrre <, <, ~""' 'IYrio-soc' ' '~t I:~lrarr& 1' [ ~ - r: ---- L <, ...._ 9OUro&-rfIIre{bitlpixeI) (a) 9ourc&-rale (bitlpixaQ (h) " I~_""c_~[ I~"""'_ -~ __ p-ev1ous-ftarTll so=I>~~ , -e-rrrs " """"'p-EWIOUS-frarre ~ ~rrri i" t ,: l="'- ~~ t L source-rate (bilpboeI) (c) SOt.J~e(biI~ (d) Figure 4: Compression-ratios for a (a) low-motion DVC-coded-frame (c) high-motion DYC-coded frame as a function of source-rate; (b) and (d) represent the results ob- tained on the low and high-motion frames respectively, using the optimal LDPC codes. sufficiently large source-packet lengths for LDPC-coding. This re-grouping leads to more intra-coded blocks and higher-rate DVC-coded blocks, as only one 8x8 block with a high bit-error is sufficient to corrupt its neighbouring blocks in the grouped 32x32 block. For this reason one should re-order the blocks according to their coding-mode (classification) prior to re-grouping. Notice that this would not cost additional rate, as the code-modes for each block are known. This aspect is left for further investigation. The PSNR (Peak Signal-to-Noise Ratio) of the decoded frames can be calculated in advance, as the coding/decoding in this case is lossless and is only determined by the applied source quantization. so ~ ~ ~ fl:~ - .....---- ____ ~. , ~ ~_._~~ ~- l20 l: --- ~. i" •~ ~-0~---~r- ~__________ I:::~""=f_ ! eo ----=--~ --- -- ...- I " 1" ------ .>: ........ pre..icusfraJTB ~rrri !i<1rc::e-rae(tjtlpDceI) (a) source-rate (billpim) (b) Figure 5: Average bit-error as a function of the source-rate for a (a) low-motion frame (b) high-motion frame. The average percentual bit-error per block as a function of the source-rate is re- ported in Figure 5. As the source-rate directly relates to quantization, these results show that coarser quantization leads to a lower average bit-error rate and thus to lower bit-rates. Again, it can be seen that for both a low- and high- motion frame, the average percentual bit-error using MCI is lower than using the previous frame for the side-information generation. However, MCI performs worse than applying a 51 logarithmic-search block-based motion estimation. Hence, irrespective of the applied FEC codes, a DVC system employing a simple motion model will perform better than the equivalent conventional system employing MCI. Note also that the difference be- tween the curves remains almost constant for all source-rates, confirming the advantage of applying a simple motion model at the encoder side. 6 Conclusions In this paper we have introduced the concept of applying a simple motion model at the encoder side in a distributed video coding system. Additionally, the classical minimum absolute-difference block-matching criterion used in typical ME is replaced by a minimum bit-error criterion. We have shown that employing simple logarithmic- search block-based motion estimation results in higher coding performance, at the cost of a slight complexity shift to the encoder side, compared to a conventional DVC system that applies only decoder-side motion estimation. Acknow ledgments This research was funded by a Ph.D grant of the Institute for the Promotion of Innova- tion through Science and Technology in Flanders (Ph.D. bursary T. Clerckx, RESUME project), BELSPO (lAP Phase V-Mobile Multimedia) and the Fund for Scientific Research-Flanders (FWO) (post-doctoral fellowships A. Munteanu and P. Schelkens). References [1] T. Wiegand, G. J. Sullivan, G. Bjontegaard, and L. Ajay, "Overview of the H.264/ AVC Video Coding Standard," IEEE Transactions on Circuits and Systems for Video Technology, vol. 13, no. 7, pp. 560-576, July 2003. [2] D. Slepian and J. Wolf, "Noiseless coding of correlated infonnation sources," IEEE Transactions on Information Theory, vol. 19, no. 4, pp. 471-480, July 1973. [3] B. Girod, A. Aaron, S. Rane, and D. Rebello-Monedero, "Distributed Video Cod- ing," Proc. IEEE, vol. 93, no. 1, pp. 71-83, January 2005. [4] S. Pradhan and K. Ramchandran, "Distributed Source Coding Using Syndromes (DISCUS)," IEEE Transactions on Information Theory, vol. 49, no. 3, pp. 158-167, March 2003. [5] A. Aaron, E. Setton, and B. Girod, "Towards practical Wyner-Ziv coding of video," Proceedings of IEEE International Conference on Image Processing, Barcelona, Spain, vol. Ill, pp. 869-872, September 2003. [6] A. D. Wyner and J. Ziv, "The rate-distortion function for source coding with side information at the decoder," IEEE Transactions on Information Theory, vol. 22, no.1, pp. 1-10, January 1976. [7] R. Gallager, "Low-Density Parity-Check Codes," Massachusetts Institute of Tech- nology, PhD thesis, 1963. [8] D. MacKay and R. Neal, "Good Codes based on Very Sparse Matrices," Lecture Notes in Computer Science, no. 1025, pp. 100-111, 1995. [9] A. Amraoui, "LDPCOpt, an efficient optimization program for LDPC codes", http://lthcwww.epfl.ch/research/ldpcopt/. 52 Framework for Layered 3D Video Streaming 1Goran Petrovic 1,2Peter H.N. de With lEindhoven University of Technology 2LogicaCMG Netherlands P.O. Box 513 P.O. Box 7089 5600MB Eindhoven 5605JB Eindhoven The Netherlands The Netherlands g.petrovic©tue.nl P.H.N.de.With©tue.nl Abstract This paper presents a layered framework for 3D-TV applications, combining multiview and depth-image based approaches in a scalable fashion. To solve the problem of missing data due to disocclusions, we add specific layers for coded oc- clusion data and the edge-mask information for high-quality 3D rendering of key objects in the scene. We show how the same framework can be extended towards FTV applications by jointly addressing simulcast and multicast transmission. By adopting a distributed delivery architecture, new interesting properties can be realized such as shared processing for the creation and streaming of virtual viewpoints. In an extensive system discussion, we conclude that it is possible to adaptively implement our streaming applications using a cross-layered approach. Similarly, the concept of selective reliability optimization can be introduced into our system. 1 Introduction In an attempt to anticipate future deployment of 3D-video systems [1],the MPEG com- munity has recently singled out two application scenarios: Three-Dimensional Televi- sion (3D-TV) and Free Viewpoint Television (FTV), and one enabling technology - Multi- View Video Coding (MVC) [1]. We find these recommendations adequate in that they point the ways in which more realism can be added to the conventional TV and video systems. A recent survey of MVC standardization activities [1] illustrates a strong bias towards existing standards (e.g., H.264). Although this viewpoint can be understood, we believe that the opportunity exists to further explore combinations of video data, scene geometry information, scalability and interactivity to improve the overall framework and pursue a broadly applicable architecture. These combinations will be discussed in more detail in this paper. The 3D-TV application enables a viewer to perceive depth in the displayed scene. Two closely spaced images of the same scene are displayed simultaneously to create the effect of depth. This is a well-known concept of stereoscopie video, which 3D-TV extends from the service perspective, by defining a suitable infrastructure for broad- casting such content to the users. With PTV, a scene can be displayed from different viewpoints in an interactive fashion. A user either selects an arbitrary new viewpoint and a viewing direction, or the user's movements are continuously tracked and the displayed content automatically adjusted to the new position. 53 In our earlier paper [2], we argue that the lP-based networks are best positioned to serve as a substrate for the gradual deployment of 3D-TV and FTV services, and also as their long-term operational environment. To this end, we propose a stream- ing solution which is based on Depth Image-Based Rendering (DIER) [3], and extend it with explicit disocclusion-filling information. As our second contribution, we de- scribe an efficient content delivery architecture based on resource sharing in groups of collaborating network hosts. The rest of the paper is structured as follows. In Section 2 we survey different formats for 3D video representation. Section 3 discusses the system design and moti- vates our choice of data format and communication system architecture. In Section 4 we suggest the ways in which our framework can be extended to allow the system to scale to a large number of concurrent, heterogeneous users. In Section 5 we present preliminary results. Section 6 identifies challenges for future research and Section 7 concludes the main points of the presented framework. 2 Background on 3D-TV and FTV Shum et al. [4] give an overview of the approaches for representing real-world 3D scenes and rank those approaches depending on the amount of geometric information about the scene they recover. We adopt their general concept, but confine ourselves to considering dynamic scenes only. An important approach is to render multiple views of a dynamic scene from the input images directly [5], or compute a basic scene-geometric information (e.g., a depth map) to reduce the number of input images or improve the rendering quality. Fehn et al. [3] propose to use depth streams for the narrow-field view interpolation in 3D-TV broadcast. Geometry information in a depth stream involves a depth value for each pixel in every frame of the original stream. Multiple nearby views of the scene are generated at the receiver by re-projecting the original pixels into the new viewpoint, based on the depth map. It can be deduced from the above survey [4] that rliffprpnt. vi"ws on 3D processing exist, but the evaluation of their relative merits in the absence of directly comparable data is difficult. In such a case, it is usually beneficial to define a framework that attempts to combine the attractive points of individual approaches. It can be readily motivated that although volumetrie object models [4] may be attractive in advanced professional applications, this would bring little or no benefit for the 3D-TV applica- tions in the broadcast/simulcast case, where the user is after a 3D experience at an affordable cost (consider e.g., rendering complexity at the receiver). Therefore, we be- lieve that the goal can be better achieved by combining the multiview and depth-based approaches and pursuing scalability as an architectural property. In summary, techniques that extract global object geometry, like the advanced volumetrie approaches, have the potential to significantly reduce the number of images, which is attractive for lP video streaming applications. However, current techniques for global geometry extraction and rendering are not likely to be a cost-effective solution for real-time system operation in the near future [2]. Furthermore, such techniques scale poorly with the scene complexity (e.g., the number of objects in the scene). For this reason, we exclude them from the near-term solution. 54 SENDER RECEIVER Packet- Scheduler (Receiver- or RTP/RTCP RTP/RTCP Sender-driven) De- Packetizer I Packetizer Stream Coordinator RTSP/SOP extensions for interactive viewpoint control Figure 1: 3D streaming framework. 3 Transmission framework for 3D-TV Depth map is efficient. When considering that image-based representations have high data volumes, broadcasting all available camera streams is impractical. A depth-map is an efficient alternative for narrow-angle viewpoint changes, as it can be used to re- project the corresponding intensity data to a newly chosen camera plane, in a process known as warping. Layered extension to multiview streaming. For sufficient scalability, we pursue a layered framework where the number of views and the associated depth-maps received can be extended dynamically and on-demand (Fig. 1). Addition of occluded data and edge masks. If a wide-angle perspective change is requested, rendering artifacts come in the form of holes in the texture of the synthe- sized views. This situation illustrates the "dissoclusion" problem. The solutions to this problem are occlusion-compatible warping and filling the holes by background ex- trapolation [3]. For large occlusions, this approach will have its limitations. In our lP-networked case, we propose to add a specific stream that provides the occluded data explicitly. Finally, the edge boundary for a number of key objects in the scene is useful, as it improves the quality of the intcrpolatod views [6]. Intemctivity. Broadcasting all the layers for every available viewpoint is inefficient (although attractive for FTV applications as it allows the clients to quickly switch between the available viewpoints) in that it treats all the streams as equally important, while in real sessions, some streams will be requested frequently, and others not at all. A better design is to schedule new viewpoint transmissions reactively and on-demand. The rest of the framework of Fig. 1 will be discussed in more detail in Section 6. 4 Large-scale 3D-content delivery In this section we address the performance issues of 3D-TV (FTV) systems imple- mented within the framework of Section 3, for the case of a large number of concurrent, heterogeneous users. Large data volumes in multi-camera systems coupled with the 55 processing for interactive viewpoint adaptation pose new challenges to the design of scalable multimedia servers and delivery architectures. To better understand the design issues involved, we consider a scenario where 3D- TV and FTV technologies are deployed to enhance live broadcast. We make the follow- ing two assumptions: (1) the event is captured by multiple, fully calibrated cameras; (2) each camera is assigned a unique logical identifier providing an interface to its calibration parameters, the associated depth map, edge mask and occlusion inforrna- tion. Our layered model provides basic support for heterogeneity of display devices and client access bandwidths. All viewers receive a 2D stream for their camera angle of choice, while those equipped with 3D display devices also receivethe additional layers associated with that camera angle (3D-streams). Optionally, 2D-viewers can receive full 3D streams to perform narrow-angle viewpoint changes. In general, wide-angle viewpoint changes are supported by switching to the desired camera angle. A special case of a wide-angle viewpoint change is the viewpoint case that does not match any of the physical cameras, nor can it be created using the available depth and occlusion- handling layers. In this case, a virtual viewpoint needs to be constructed combining a number of original camera streams (and the associated additionallayers). Two options for implementing this functionality exist. Either a server computes the desired view- point and streams the result to the client, or the server sends the original streams and the client does the reconstruction. The choice between the two is a trade-off between the computation and network bandwidth. 4.1 Bandwidth cost Conceptually, IP-multicast provides for an efficient usage of both the server-bandwidth and the wide-area network bandwidth, thus improving scalability of video streaming systems compared to the unicast case. A 3D-TV (FTV) server employing multicast delivery starts one multicast session for each requested 2D camera stream and one for each accompanying additional stream. Every client selects a number of multicast transmissions to receive, based on its preferences or capabilities. This way, the server- bandwidth cost depends on the number of active viewpoints, but is independent of the number of clients. Still, global support for IP-multicast remains limited, and the accessible client base is small [7]. This is a serious concern for 3D-TV and FTV applications aiming to grow to a TV broadcast-scale service and alternative delivery methods need to be investigated. 4.2 Server-side processing cost for interactivity From the service perspective, processing for virtual viewpoint generation is best irnple- mented at the server, thus reducing the bandwidth and processing costs at the client. However, serving a large number of such requests concurrently quickly consumes com- putational resources on the server, and a more scalable solution is required. 4.3 Developing the case for resource sharing Motivated by the recent proposals for synchronous [7] and asynchronous [8]content de- livery using network overlays, we illustrate the concept of resource sharing for reducing the bandwidth and processing costs in large scale 3D-TV and FTV systems (Fig. 2). 56 Figure 2: Distributed streaming and virtual viewpoint creation. A 3D-TV (FTV) server transmits two different camera angles (3D-streams) to Nodes 1 and 4 respectively, using unicast connections to alleviate the lack of IP- multicast routing between different ISPs. Nodes 1 and 4 in turn relay the streams to other nodes on their lP multicast-enabled networks. Joining the overlay, Node 7 (3D-viewer) acts as a proxy for supplying 2D stream to a resource-constrained Node 8. Suppose Node 9 contacts the server with a request to join an ongoing live transmis- sion. The server responds by sending the address of a nearby node which is already receiving the desired viewpoint (Node 7), which adds the Node 9 to its list of served clients. Next, suppose an event occurs which generates intensive interest from multiple viewers (e.g. a goal in a soccer match). Node 8 desires to receive an instant replay of the event from a virtual viewpoint. The server cannot fulfill this request due to a flash crowd effect. Instead, it responds by sending the addresses of two nodes that received and cached the 3D-streams required for interpolation (Nodes 7 and 5). Node 5 sends its cached data to Node 7, thus allowing Node 7 to interpolate a novel view and serve Node 8. Summarizing, the first example shows bandwidth sharing, whereas the second one illustrates distributed processing. 5 Preliminary experiments We implemented the streaming test-bed from Section 3 between two nodes on a lOOMbis LAN. Both the sender and the receiver were implemented on a desktop PC running Linux OS. We streamed the "Interview" test sequence and the associated depth-map sequence [3] at 25fps and 720 x 576 resolution. Both sequences were compressed in Simple Profile (SP) configuration using an MPEG-4 Reference Encoder and stored in separate files. At the start of the session, the compressed MPEG-4 elementary streams were packetized as specified in RTP (IETF RFC 3016). The RTP IRTCP protocol stack implementation was provided with "Live555 Streaming Media" library [9]. The sender transmitted texture and depth frames in succession. Different UDP ports for texture and depth streams were used both at the sender and the receiver. The decoding at the receiver involved two independent MPEG-4 decoder processes, and the decoded frames were buffered prior to display. To test the end-to-end data pipeline, our player used the depth maps to compute and display an anaglyph sequence. The playback was smooth and the depth cues were well visible, even when viewed with inexpensive RIB filter glasses. This experiment is now extended by adding more streams for high-performance depth-map extensions containing occlusion data or adding secondary views to support multiview approaches. 57 6 System aspects and considerations In this section, we conceptually evaluate the streaming framework introduced in Sec- tions 3 and 4 under practical constraints, and discuss the challenges it presents. Extraction of layers. Since our focus in this paper is a streaming architecture, we currently rely on the availability of 3D test-sets provided by the MPEG 3DAV Work- ing Group [1]. Each set includes a pre-extracted depth map and edge masks for key scene objects. However, in live 3D-TV and FTV sessions as in Section 4, these two layers need to be extracted at run-time. This is best implemented on original image data, thus prior to encoding (Fig. 1). For real-time operation, commercial live stream- ing systems commonly employ hardware encoders at the server back-end, and directly forward the compressed bitstreams to the clients via the server front-end [10]. Cur- rently, few hardware devices are available that support real-time extraction of depth maps [3]. This leaves us with software processing for the time being, at an increased latency and server computational cost. For this reason, real-time operation and corn- plexity are important factors in selecting an algorithm from the available options [11]. Similar considerations apply to the extraction of edge masks. Here, we will assume that a model of the scene background can be constructed off-line (e.g., in the case of a sports event), and focus on extracting key objects through background subtraction [12]. Streaming over best-effort networks. In contrast to the original (DIER) proposal [3], intended for terrestrial and satellite TV broadcast, our framework primarily addresses best-effort lP networks. This raises concerns about the reliability and user-perceived QoS in 3D-TV (FTV) applications. From the transmission point of view, the Internet is a communication channel, shared statistically among multiple users. QoS parameters such as bandwidth, packet-loss rate and end-to-end delay are time-variant, reflecting the time-dependent traffic patterns in the network. With the inclusion of wireless last hops in the network, these parameters additionally depend on the varying conditions of the physical channel. Moreover, such time dependencies are generally unknown and virtually impossible to predict at the application design-time. A common solution for a streaming application to maximize its user-QoS under time-varying transmission con- ditions is to adopt adaptivity as a leading design principle [10]. Adaptive streaming attempts to keep the QoS levels in one dimension constant (e.g., frame rate), while compromising other QoS dimensions (e.g., quality, spatial resolution), based on the feedback from the network [13]. We believe that t.he 3D-TV applications implemcnted within our framework can substantially benefit from adaptivity. Particularly the image formation through warping (Section 3) introduces an interesting new QoS dimension for adaptivity. More specifically, it is important to study the effects of 11 QoS drop in one of the layers on the final presentation quality, and the possibility to compensate for those effects by allowing a higher QoS in other layers. Our framework also offers an opportunity for reliability optimizations that cut across its different layers of inforrna- tion. As Fig. 1 suggests, instead of transmitting each layer over a reliable end-to-end connection (e.g., with TCP), our current implementation relies on a connectionless, unreliable protocol (UDP). This decision is based on a common argument that the video streaming applications should trade full reliability for less rate fluctuation [10]. Previous research also demonstrates the advantages of providing the reliability in a selective way ([10], [14]). These approaches exploit the knowledge of the importance 58 of different bitstream parts for the presentation quality, and apply different levels of reliability based on this utility function (e.g., I- and P- frames in MPEG-4, base layer and enhancement layers for scalable video). We believe that an exciting opportunity exists to further develop these approaches in the context of 3D-TV applications, where such a utility distribution spans different layers. Finally, an additional requirement for the streaming applications based on UDP is to implement a conqestion-control mech- anism [10]. Its purpose is to dynamically adjust the transmission rate in response to the congestion state in the network, thus sharing the bandwidth fairly with concurrent applications and preserving the Internet stability. Distribuied delivery infrastructure. A network-distributed architecture has been explored in a number of commercial streaming Content Delivery Networks (CDNs) ([10], [7]). The CDNs consist of a large number (up to 10000) of geographically distrib- uted servers, each of which can be configured to perform content caching, streaming, downloading or adaptation (e.g., transcoding). Alternatively, a number of propos- als emerged for an overlay multicast infrastructure consisting solely of network end- hosts [7]. In this case, a multicast tree is formed employing the uplink bandwidth capacity of participating receivers, which self-organize into a distributed delivery ar- chitecture. Our main contribution is the first attempt to consider such architectures for implementing 3D-TV and FTV services. Our framework introduces virtual viewpoint creation as a new functionality to be implemented in a distributed manner. It is impor- tant to note that the feasibility of implementing FTV services within our framework is not constrained by the availability of distributed processing resources. Rather, if such resources are available, the framework leverages them to ease the burden on the server. 7 Conclusion This paper presents a layered framework for 3D-TV transmission, combining multi- view and depth-based approaches in a scalable fashion. Besides texture and depth information, specific layers are added for coded occlusion data and edge-mask infor- mation to allow high-quality 3D rendering of key objects in the scene. By relying on a distributed delivery architecture and the concept of resource sharing for the creation and streaming of virtual viewpoints in a network overlay, we extend the range of view- points selectable by the user (FTV). Important system aspects of uur framework were extensively discussed and resulted in a few relevant conclusions. Firstly, the 3D-TV applications implemented within our framework can substantially benefit from adap- tivity. Secondly, we discussed that particularly the image formation through warping (Section 3) introduces an interesting new QoS dimension for adaptivity. Thirdly, our proposed framework also offers an opportunity for selective reliability optimizations that cut across its different layers of information. References [1] A. Smolic and P. Kauff, "Interactive 3D video representation and coding technologies," Proceedings of the IEEE, vol. 93, no. 1, pp. 98-110, Jan. 2005. 59 [2J G. Petrovic and P.H.N. de With, "Near-future streaming framework for 3D-TV applica- tions," in to appear in International Conference on Multimedia and Expo (ICME), July 2006. [3J C. Fehn, P. Kauff, M. Op de Beeck, F. Ernst, W. A. IJsselsteijn, M. Pollefeys, L. Van Goal, E. Ofek, and I. Sexton, "Evolutionary and optimised approach on 3D-TV," in Proc. Int. Broadcast Con]. (TRe), Sept. 2002, pp. 357-365. [4J H.Y. Shum, S.B. Kang, and S.C. Chan, "Survey of image-based representations and compression techniques," IEEE Trans. Circuits 8 Systems Video Techriol., vol. 13, no. n, pp. 1020-1037, Nov. 2003. [5J W. Matusik and H.-P. Pfister, "3D TV: A scalable system for real-time acquisition, transmission, and autostereoscopie display of dynamic scenes," in Proc. Comp. Graphics (SIGGRAPH'04), Aug. 2004, pp. 814-824. [6J L. Zitnick, S. B. Kang, M. Uyttendaele, S.Winder, and R. Szeliski, "High-quality video view interpolation using a layered representation," A CM Trans. Graphics, vol. 23, no. 3, pp. 598-606, Aug. 2004. [7J A. Ganjam and H. Zhang, "Internet multicast video delivery," Proceedings of the IEEE, vol. 93, no. 1, pp. 159-170, Jan. 2005. [8J S. Jin and A. Bestavros, "Cache-and-relay streaming media delivery for asynchronous clients," in International Workshop on Networked Group Communication (NGC), 2002 [9J "Live555 Streaming Media," http://www.live555.com/. [10J G. J. Conklin, G. S. Greenbaum, K. O. Lillevold, A. F. Lippman, and Y. A. Reznik, "Video coding for streaming media delivery on the internet," IEEE Trans. Circuits 8 Systems Video Technol., vol. n, no. 3, pp. 269-281, Mar. 2001. [lIJ D. Scharstein and R. Szeliski, "A taxonomy and evaluation of dense two-frame stereo correspondence algorithms," Inti J. Computer Vision, vol. 47, no. 1-3, pp. 7-42, Apr. 2002. [12J D. Farin, "Automatic video segmentation employing object/camera ma deling tech- niques," Phd Thesis, Eindhoven University of Technology, 2005. [13J Jonathan Walpole, Rainer Koster, Shanwei Cen, Crispin Cowan, David Maier, and Dylan McNamee, "A player for adaptive mpeg video streaming over the internet," in Proc. SPIE Applied Imaçerç Patter Recognition Workship A IPR-97, Oct. 1997. [14J N. Feamster and H. Balakrishnan, "Packet loss recovery for streaming video," in 12th International Packet Video Workshop, Apr. 2002. 60 Enumeration of Stopping Sets of Full-Rank Parity-Check Matrices of Hamming Codes Khaled A. s. Abdel-Ghaffar Jos H. Weber University of California Delft University of Technology Dept. ECE Fac. EEMCS, WMC Group Davis, Ca 95616 Mekelweg 4, 2628 CD Delft USA The Netherlands ghaffar@ece.ucdavis.edu J.H.Weber@TUDelft.NL Abstract Iterative techniques have been proposed for decoding linear binary block codes over erasure channels. The performance of such decoding techniques depends on the parity-check matrices used, and, in particular, on the numbers and sizes of stopping sets of these matrices. In the 2004 Shannon lecture, McEliece presented an expression for the number of stopping sets of size three for a full-rank parity- check matrix of the Hamming code. In this paper, we present an expression for the number of stopping sets of any given size for the same parity-check matrix. 1 Introduction Let C be a linear binary [n, k, dl block code, where ti, k, and d denote the code's length, dimension, and Hamming distance, respectively. The set of codewords of C can be defined as the null space of the row space of an r x n binary parity-check matrix H = (hi,j) of rank n - k. Assuming all rowsin H are different, ti - k :=; r :=; 2n-k Let 5 be a subset of {I,2, ... ,n} and T be a subset of {I,2, ... ,r}. For any H = (hi,j) of size r x n, let HI = (hi,j) where iET and j E 5. Then, HI is a ITI x 151submatrix of H. For simplicity, we write Hs and HT to denote HI in case T = {I, 2, ... , r} and 5 = {I, 2, ... , n}, respectively. A set 5 is the support of a codeword if and only if all rows in Hs have even weight, i.e., if and only if IU E 5: hi,j = 1}1== 0(2) Vi=I,2, ... ,r. (1) A set 5 is a stopping set if and only if Hs does not contain a row of weight one, i.e., if and only if I{j E 5: hi,j = I} 10/- 1 Vi = 1, 2, ... , r. (2) The polynomial A(x) = Lf=oAlXI, where Al is the number of codewords of weight l, is called the weight enumerator of code C. It holds that d = min{l 2 1 : Al> O}. (3) lThe authors were supported by the NSF through grants CCR-01l7891 and ECS-0121469, and by STW through the McAT research project DTC.6438. 61 The polynomial S(x) = Ll=o SlXl, where S, is the number of stopping sets of size I, is called the stopping set enumerator of parity-check matrix H. Let s denote the smallest size of a non-empty stopping set, i.e., s = min {I ~ 1 : Sl > O}. (4) Notice from (1) and (2) that the support of any codeword is a stopping set. There- fore, S, ~ Al for 1- 0,1, ... ,n awl s::; d. Considering the vacuous case in which l = 0, we notice, from the definitions, that the empty set is both the support of a codeword and a stopping set for any code and any parity-check matrix. Hence, Aa = So = l. Furthermore, from the observation that (1) and (2) are equivalent for sets S with ISI :S 2, it follows that Al = S, for I :S 2. In particular, So = 1 and SI = S2 = 0 for any parity-check matrix of a code of minimum distance d ~ 3. The notion of stopping sets is important in the context of iterative decoders (using H-based Tanner graphs), in particular for low-density parity-check codes [3]. For ex- ample, on the binary erasure channel, an iterative decoder will not lead to successful decoding if and only if the set of erased positions contains a non-empty stopping set. Hence, the minimum (non-empty) stopping set size s and the cardinality Ss are perfor- mance indicators for iterative decoding, alike the minimum distance d and the number of minimum weight codewords for maximum-likelihood decoding. However, contrary to the weight enumerator, which is fixed for a code C, the stopping set enumerator depends on the choice of the parity-check matrix H. In the 2004 Shannon lecture, McEliece [51 presented the following expression for the number of stopping sets of size three in a [21n - 1, 2m - m-I, 3] Hamming code: S3 = ~ (5m - 3ffi+l + 2m+l) rv ~n2.322 (5) He did not mention explicitly which parity-check matrix he had in mind, but from the context, it was clear that it was the full rank m x (2m - 1) parity-check matrix. This is the parity-check matrix of minimum number of rows for the Hamming code. The value of S3 is of particular interest since So = 1 and SI = S2 = 0 as the Hamming code has minimum distance three which implies that s = 3. Hence, the value of S3 given in (5) corresponding to the full rank parity-check matrix of thR Hamming code can Le llspn to obtain 0. good estimate of the performance of the simplest iterative decoder for the Hamming code. However, as the multiplicities Al of codewords in a code of weight l > d influence the performance of maximum-likelihood decoding, the multiplicities Sl of stopping sets of size l > s also influence the performance of iterative decoding. In this paper, we derive the values S, for all I for the full-rank parity-check matrix of the Hamming code. Section 2 gives an cxpression for S, in terms of certain parameters that can be derived from the parity-check matrix of any linear code. In Section 3, we determine these parameters for the full-rank parity check matrices of Hamming codes and derive expressions for Si. 2 Stopping Set Enumeration for Linear Codes In this section, we derive an expression for the coefficients of S(x) for an r x n parity- check matrix H of an rn, k, d] binary linear code C. For each subset T of {I, 2, ... .r }, we define 7T to be the number uf columns in lIT of weight zero. In particular, if T is empty, then ZT = n. If Y is a subset of {I, 2, ... , n} such that IYI = p, each row in H~ has weight one, and each column in H~ has non-zero weight, then we say that Y is of type p with respect to T. Let 62 Y(T,p) be the number of subsets of {I, 2, ... , n} of type p with respect to T. Since every column in H~ should have non-zero weight and every row should have weight one, it follows that Y(T ,p )= {O1 ifif TT = 0 PP =2: O.1 or Tof- = 01\ 1\ 01\ P= 0, (6) Theorem 1 Let H be an r x n parity-check matrix of a linear code C of length n. Then, for l = 0,1, ... ,n, SI = L TÇ;{ 1,2, ... ,1'} (_I)ITI tY(T,P) p-o C~p). Proof. It follows from (6) that the result holds for I = O. Therefore, we assume I 2: l. Let S be a non-empty subset of {I, 2, ... , n}. Following [7], we say that row h in H covers S if and only if hs has weight one. For i = 1,2, ... , rand l = 1,2, ... , n, let QI and Q; be the family of subsets of {1,2, ... ,n} and size l that are covered and not covered, respectively, by the ith row in H. A subset S ç {I, 2, ... ,n} of size l is a stopping set if and only if it is not covered by any row of H, i.e., S E n~=l Q;. In particular, SI = [ n~=l Q;[. The Principle of Inclusion and Exclusion (see, e.g., [2], Theorem B, p. 178), yields [ n_r 1 QI['. = l- 1. (7) TÇ;{l,2, .. .r} In the above sum, T runs over all 2" subsets of {l, 2, ... ,r} where, for the term corre- sponding to the empty set 0, [niE0 Q;[ = (7) , which is the total number of subsets of {I, 2, ... , n} of size l. Notice that a set S of size I belongs to niET QI if and only if each row in HI has weight one. This is the case if and only if, for some p = 0,1, ... ,I, S contains a subset Y of type p with respect to T and all the columns indexed by S\Y have zero weights. Therefore, [niET Q;[ = ~Y(T,p) p=o (l ~ ). p Combining this with (7), the proof is complete. • 3 Stopping Set Enumeration for Hamming Codes A full-rank parity-check matrix of a [2m - 1,2m - m-I, 3] Hamming code, where m 2: 3, is an m x (2m - 1) matrix whose columns are the distinct non-zero vectors of length m. From now on, we take H to be such a matrix with r = m and n = 2m - 1, and SI to be the number of stopping sets of H of size I. In the followine; derivations, we make use of Stirling numbers. Following the no- tation of Comtet l2] and Riordan [6], we denote by s(n, k) and S(n, k) the Stirling numbers of the first kind and of the second kind, respectively. Notice that nand k are not necessarily the length and the dimension of a code. For n 2: 1, (-1 )n-k s( n, k) is 63 the number of permutations of n elements which have exactly k cycles and S(n, k) is the number of ways of partitioning a set of n elements into k non-empty subsets, see, e.g., [1], p. 824, where (8)-(11) can also be found. We also define s(O, 0) = S(O,O) = 1. Notice that for n 2: 1, both s(n, k) and S(n, k) are equal to zero if k ::; 0 or k >n, see e.g., [6]. Stirling numbers of the first kind satisfy the following polynomial identity in x k ~ s(n, k)x = n! (~) (8) k=O and the recursion s(n + 1, k) = s(n, k - 1) - ns(n, k), (9) for n 2: k 2: 1. We also have s(n, 1) = (-lt-1(n - I)!. (10) Stirling numbers of the second kind can be computed explicitly using S(n, k) = k\ t(-l)i . i=O (k) (k - it. t (11) Lemma 1 For n 2: 0, the following polynomial identity in x holds n! (X-I)n = L s(n + 1, k)Xk-l. 'n-i-I k=l (12) Proof. From the definition of binomial coefficients, we have (13) Combining this with (8) we get x-n n n n -- L s(n, k)xk = L s(n, k)xk - n L s(n, k)Xk- 1 x k=O k=O k=O n+l L (s(n, k - 1) - ns(n, k)) Xk-l k=l since ns(n, 0) = 0 and s(n, n + 1) = 0 for n 2: O. The result now follows from the recurrence relation (9). • Lemma 2 Let H be an m x (2m - 1) parity-check matrix of a Hamming code of length 2m - 1. Then, for any set T ç {I, 2, ... , m} and any p = 0, 1, ... , n, and Y(T,p) - S(ITI,p) 2(m-ITI)p. 64 Proof. Each non-zero vector of length m appears exactly once as a column in H. Hence, the zero-weight vector of length ITI appears exactly 2m-1T1 - 1 times in HT. This verifies the expression for ZT. From (6) and (11), it follows that the second part of the lemma holds in case T = !/J. Therefore, assume in the following that T # !/J. Hence, 1:S ITI:S m. For each jE {1,2, ... ,2= -I}, let hJ = {i ET: hij = I}, hT i.e., is the set of indices of ones in the jth column of HT. Notice that a subset y of size p is of type p with respect to T if and only if H~ is a ITI x p matrix, each column of which has non-zero weight, and each row of which has weight one. This is the case if and only if, for j E y, the sets hT are non-empty, disjoint, and their union is T. There are S(ITI,p) ways to partition a set of ITI elements into p non-empty disjoint subsets. Each non-zero vector of length ITI appears exactly 2m-1T1 times as a column in HT. Therefore, for each partition, there are 2m-1T1 choices for j, corresponding to indices of identicalnon-zero columns in HT, such that hT is one of the p subsets in the partition. Since there are p subsets in each partition, and there are S( ITI, p) partitions, the total number of ITI xp submatrices in HT, where ° :S p :S I, each of its columns has non-zero weight and each of its rows has weight one, is S(ITI,p) 2(m-ITI)p The number of such matrices equals Y(T,p). • Lemma 3 Let H be an m x (2m -1) parity-check matrix of a Hamming code of length 2m - l. Then, for I = 0,1, ... , 2m - 1, Proof. From Lemma 2, it follows that for fixed m and p, both ZT and Y(T,p) depend only on the cardinality of T. Since there are (';) subsets T of cardinality t, then the result follows by using the expressions derived for ZT and Y(T,p) in Theorem l. • Lemma 3, when combined with (11), gives an explicit expression for Sl for I = 0,1, ... ,2m - l. Notice that for each value of I, Si depends only on m. However, contrary to the expression in (5), the expression in the lemma does not show clearly this dependency. In the next lemma, we make the dependency clear. For this purpose, we define for nonnegative integers q and v, b(q,v) = t(-I)P p=o (v) 8(P+ 1,p-q+ p 1). (14) Lemma 4 Let H be an m x (2m - 1) parity-check matrix of a Hamming code of length 2m - l. Then, for I = 0, 1, ... ,2m - 1, Proof. From Lemma 1, we have for PSi and t sm ( 2m-t - 1) --- 1 l-p+l L 8(1- p + 1, u)2(m-t)(u-l) l-p (I - p)! tz==L 1 1 -(I _ )! L 5(1 - P + 1, 1- q - p + 1)2(m-t)(l-q-p), (15) p q=O 65 since s(n, k) = 0 for k :::; 0 < n. Also, from (11), we obtain S(t,p) = A f) _1)i (P) (p - i)t = (-I~I-P ~J_1)V (l ~ ) (l- vt p. i=O 2 p. v=O V (16) Substituting (15) and (16) in the expression of SI given in Lemma 3, we get SI = ~(-I)t(7)~(-~;I-PE(-I)VC~J(l-V)t 2(rn-t)p I .-- L s(l - p + 1, l - q - p + 1)2(rn-t)(l-q-p) (l - p)! q=O ~ I:(-I)t l. t=O (m) t(-I)I-p(l) t p=O p t(-I)V v=o ( ~ l v ) I . (l- v)t L s(l- p + 1,1- q - p + 1)2(m-t)(l-q). q=O Noticing that we obtain by interchanging orders of summations 1 I SI = IT ?;E(-lt I (l) v (21-q - (l- v)) m I ~(_1)I-P ( l- V P ) s(l-p+l,l-q-p+l). It is straightforward to check that the last sum is identical to b( q, v). • To obtain an expression for b(q, v) that does not involve Stirling numbers, we derive a recursion for b(q, v) along with boundary values to apply the recursion. Lemma 5 For nonnegative numbers q and v, we have if q > v or q = 0 < v, b(q,v) = { q~ if q = v, and for q 2: 1 and v 2: 2, b(q,v) = vb(q -1,v - 1) - (v - l)b(q -1,v - 2). Proof. For 0::; p:::; v < q, we have p- q+ 1::; 0 and, therefore, s(p+ l,p- q+ 1) = O. From the definition of b(q,v) given in (14), it follows that b(q,v) = 0 in case q > v. In case q = 0, it follows from the definition of b( q, v) and the fact that s(p + 1, P + 1) = 1 that b(O,v) = 0 whenever v:::: 1. In case q = v, we have b(q, q) = t( -1)p (q) s(p + l,p - q + 1) (-I)qs(q + 1, 1) = q! r=n p = 66 using (10) and since s(p+I,p-q+I) = 0 for p-q+I ::; O. Next, we prove the recursion for q ;::: 1 and v ;:::2. Using the recurrence formula for the binomial coefficients followed by the recurrence formula (9) for Stirling numbers of the first kind, we obtain v-I 2:)-I)P ( v- 1) s(p+I,p-q+I) p=o p v +2:J-I)P (v =11) (s(p,p-q)-ps(p,p-q+I)) p=o p v -L(-I)P (v =11) ps(p,p-q+l) (17) p=O P v-I L(-I)P ( v- 1) (p+l)s(p+I,p-q+2). p=o p Next, we use followed by (9) to conclude that b(q,v) = b(q-I,v-l)+(v-I)L(-I)p v-I (2) v=I s(p+I,p-q+2) P=Ü p = b(q-I,v-I)+(v-l)L(-I)P v-I (2) v=I (s(p,p-q+I)-ps(p,p-q+2)) P=Ü p = b(q - 1, v-I) - (v - I)b(q - 1, v - 2) + (v - l)b(q - 1, v-I), where we used (14) and (17) after replacing v by v-I and q by q - 1. Hence, we have b(q, v) = vb(q - 1, v-I) - (v - I)b(q - 1, v - 2). Now we state an explicit expression for b(q, v). For this purpose, we write a <2 b • for real numbers a and b if and only if b - a ;:::2. For example, 3 <2 5 but 3 1:-2 4. Lemma 6 For nonnegative integers q and v ;:::q, we have (18) Proof. It is straightforward to verify that the expression in the right hand side of (18) satisfies the recursion given in Lemma 5 for q ;::: 1 and v ;:::2 and that it agrees with b(q,v) in the cases q = 0 < v and q = v. Combining Lemmas 4, 5, and 6, we obtain the major result of this paper. • 67 Theorem 2 Let H be an m x (2m - 1) parity-check matrix of a Hamming code of length n = 2m - l. Then, for 1= 0, 1, ... , 2m - 1, 1 1 min{2q,l} ( I) SI = TI ~ ~ (-1)v V b(q,v)(21-Q - (1- v))m where b(q, v) is given in Lemma 6. In particular, for a fixed value of 1;:::-3, SI behaves asymptotically as a function of the code length n as n1og2(2'-I) SI ~ l! It is interesting to compare the asymptotic expression of SI with that of AI, the number of codewords of weight I in a Hamming code of length n = 2m - 1, where I ;:::-3, which can be derived from [4] as nl-! AI~--· I! Direct application of Theorem 2 gives the following results including the expression of S3 in (5) stated by McEliece [5] l,S! = S2 = 0, 1 "6 (5m - 3 x 3m + 2 x 2m) , ~ (12m - 6 x 6m - 4 x 5m + 3 x 4m + 20 x 3m - 14 x 2m) 24 ' 1 - (27m - 10 x 13"' - 5 x 12 + 15 x T" + 50 x m 6m + 20 x 5m 120 -35 x 4 - 130 x 3 + 94 x 2m) . m m References [1] M. Abramowitz and 1. A. Stegun (Eds.), Handbook of Mathematical Functions. Ninth printing. New York, NY: Dover, 1972. [2] L. Comtet, Advanced Combinatorics. Dordrecht, The Netherlands: Reidel, 1974. [3] C. Di, D. Proietti, LE. Telatar, T.J. Richardson, and RL. Urbanke "Finite-length analysis of low-density parity-check codes on the binary erasure channel," IEEE Trans. Inform. Theorç, vol. 48, no. 6, pp. 1570-1579, June 2002. [4] F. J. MacWilliams and N. J. A. Sloane, The Theory of Error-Correcting Codes. Amsterdam, The Netherlands: North-Holland, 1977. [5] RJ. McEliece, "Are there turbo-codes on Mars?," Shannon Lecture, 2004 IEEE International Symposium on Information Theory, Chicago, IL, USA, June 27 - July 2, 2004. The slides are available at the web site http://www.systems.caltech.edu/EE/Faculty/rjm/· [6] J. Riordan, An Introduetion to Combinatorial Analysis. Princeton, NJ: Princeton University Press, 1978. [7] M. Schwartz and A. Vardy, "On the stopping distance and the stopping redundancy of codes," IEEE Trans. Inform. Theory, vol. 52, no. 3, pp. 922-932, March 2006. 68 Analysis of Random Regular LDPC Codes on Rayleigh Fading Channels Nauman F. Kiyani Jos H. Weber Delft University of Technology Delft University of Technology Fac. EEMCS, WMC Group Fac. EEMCS, WMC Group Mekelweg 4, 2628 CD Delft Mekelweg 4, 2628 CD Delft The Netherlands The Netherlands N.F.Kiyani©TUDelft.NL J.H.Weber©TUDelft.NL Abstract Low-density parity check (LDPC) codes of small, realizable size and regular form are analyzed in different multipath fading conditions. The multipath fad- ing conditions vary from uncorrelated channels (with and without channel state information (CS!)) to a correlated land mobile channel at a frequency of 900 MHz. The effects of an external channel interleaver and varying mobile speed in a correlated fading channel are investigated. Obtained results show that the channel interleaver does not provide substantial improvement in the performance of the codes. However, the increasing speed of a mobile in a correlated channel can provide better bit error rate (BER) performance. 1 Introduction Remarkable progress towards Shannon's limit has been made in the last decade, using codes that are termed as turbo codes and codes based on sparse graphs known as low density parity check (LDPC) codes. These codes have dramatically raised the bar for codes to be termed as 'Good' [1]. LDPC codes have certain advantages over other codes, e.g. turbo codes. They not only have a simple description of their code structure but can also have a fully paral- lelizable decoding implementation [2,3]. LDPC codes with message passing algorithms have achieved excellent performance over the additive white Gaussian noise (AWGN) channel [4,5]. However, their potential as capacity achieving codes for more realistic wireless channels, has not been established yet. Preliminary results are available which suggest that they can achieve capacity for a wide range of channels. In [3], irregular LDPC codes of larger lengths were analyzed in a flat uncorrelated as well as in a flat correlated Rayleigh fading channel. The channel model assumed in [3] was a slow memoryless frequency non-selective (i.e., flat) Rayleigh fading channel with a large coherence time. This effectively means that during the entire transmission the channel stays coherent. In [6], the analysis was carried out on irregular LDPC codes of larger lengths in a frequency non-selective and block independent Rayleigh fading channel. The emphasis in [6]was to estimate the channel when both the amplitude and phase are effected by fading and this was accomplished with the help of pilot symbols. This paper is an extension of the analysis of LDPC codes from [3] and [6]. We con- sider codes of small block lengths and regular, random form in various fading conditions in our analysis. Moreover, the channel dynamics are explicitly taken into account by considering a block-independent fading model. The fading is considered to be constant for a block length (i.e., the channel coherence time) and independent from block to block. The independent and identically distributed (i.i.d) fading model is a widely used assumption for dispersive wireless channels [7] and is used to evaluate a wide 69 variety of practical communication systems, e.g., orthogonal frequency division multi- plexing (OFDM), time-division multiple access (TDMA) and frequency hopped spread spectrum (FHSS). In this paper we analyze the performance of small block size, random regular LDPC codes, i.e., codes of lengths 204, 504 and 1008 in the presence of various fading con- ditions. In an uncorrelated fiat Rayleigh fading channel, results are presented with and without CSt Also, a typical land mobile channel [8] at a carrier frequency of 900 MHz and a source data rate of 9.6 kb/sis analyzed. Here, we compare different mobile speeds and the effect of a channel interleaver under these conditions. This paper is organized as follows. Section 2 briefiy reviews the basics of LDPC codes and their decoding. Section 3 gives an overview of the two fiat Rayleigh fading channels under consideration. In Section 4 we present the results of LDPC codes on the channels discussed in Section 3. Lastly, we present our conclusions in Section 5. 2 Low Density Parity-Check Codes An LDPC code is a linear block code which is specified by a very sparse parity check matrix H [2]. LDPC codes have an inherent advantage: the controlled sparseness of the code results in a specified and very small number of non-zero bits in each column. This, not only, reduces the number of equations to be solved by the decoder but also results in making feasible practical decoding by the means of iterative methods similar to turbo codes. LDPC codes, can be represented by a bipartite graph. One set of the nodes in the graph corresponds to the elements of the code word referred to as variable nodes. The other set of nodes corresponds to the set of parity check constraints and are termed as check nodes [9]. An edge exists between the variable and check node if and only if there is a 1 in the corresponding entry in the parity check matrix. The code word length and number of parity bits are represented by N and M respectively and therefore, the designed code rate R can be expressed as R = 1 - %. There are two main types of LDPC codes, namely regular and irregular. Regular LDPC codes have the same number of ones in each row (column) of the parity check matrix. Equivalently, the degrees of all the variable nodes (check nodes) are equal, where the degree of any node is the number of edges emanating from or terminating on it. For example, a (3,6) regular LDPC has a mathematical representation in which all variable nodes have degree 3 and all check nodes have degree 6. The bipartite graph determining such a code is shown in Fig. 1. Irregular LDPC codes were introduced in [10]. For irregular LDPC codes the variable and the check nodes can have different degrees and their degrees are specified by a degree distribution pair (,>-, p). Encoding of linear LDPC codes involves solving a set of linear equations to find the code word. We can use Gaussian elimination and re-ordering of columns to calculate the code word [1]. There are, however, more efficient schemes for reducing the complexity of encoding [11]. In our analysis we use the scheme proposed by [1]which is less efficient but still suitable for codes with small block size. 2.1 Decoding One of the most widely used decoding method for LDPC codes is based on belief propagation. It is performed by applying the maximum a posteriori (MAP) algorithm [12]. This algorithm aims at minimizing the bit error rate of the decoded sequence and iteratively calculates the a posteriori probabilities [12, 13]. Consider a regular (j, k) LDPC code with v as the log-likelihood ratio (LLR) message passed from a variable 70 Variable Figure 1: Bi-partite graph representation of a code of length 12 and rate 1/2. There are 12 variable nodes and 6 check nodes. For each check node, the sum (over GF(2)) of all adjacent variable nodes is equal to zero. node of degree j to a check node of degree k, given as [4], j-1 V = Va + Lri. (1) i=1 In (1), Va is intrinsic information conditioned on the channel output, and ri, for all i = 1, ... .i - 1, is the extrinsic information. Extrinsic information is part of the overall LLR stemming from the obscrvation of the received samples. The check nodes update rule is obtained by noticing the duality between variable and check nodes. It is based upon the well known tanh rule and it is given as [13] r k-1 v. tanh - = IT tanh _::, (2) 2 i=1 2 where Vi, for all i = 1, ... ,k - 1, are the incoming LLRs from the neighboring edges. 3 Channel Models The channels under consideration are AWGN and Rayleigh fading channels. Through- out our analysis we assume that the code word is being represented by x and is mapped into the signal point w using binary phase shift keying (BPSK) as shown by the sys- tem diagram in Fig. 2. The received s:xmbol is y = o:w + n, where 0: is the nor- malized Rayleigh fading factor with E [0: ] = 1 and probability density function (pdf) 71 Figure 2: System Block Diagram. p( a) = 2ae- a2 ; and n is a Gaussian random variable with zero mean and variance u2. If a = 1 the channel is an AWGN channel. The conditional pdf of the matched filter (y_w.o-)2 output is p (ylw, a) = v'2~CT2 e-~. If we have ideal CSI, the intrinsic information can be expressed as [3] P(x = Oly, a) 2 x = 1Iy,a ) = 2 Va = log P( ya (3) u . When no CSI is available, then we can approximate Va as given by [14] (4) The correlated fading model used is based on the autoregressive (AR) modelling scheme, given by [15]. This is a more realistic model than Jakes' modified model [16] and also, is much simpler to implement than the IDFT model [17]. A complex AR process of order p can be generated via the time domain recursion [15] p y[n] = - L aky[n - k] + z[n], (5) k=l where z[n] is a complex white Gaussian noise process with uncorrelated real and imag- inary parts. For Rayleigh variate generation, z[n] has zero mean with variance u; and the simulator output is ly[n]l. The filter coefficients {al,a2, ... ,ap} are given by a = -R;;v where Ryy is the received signal auto-correlation matrix dependent upon the maximum Doppler frequency normalized by the sampling rate and v is the auto- correlation vector [15]. 4 Results And Discussion In this section, we present the results of random, regular (3,6) LDPC codes of different lengths with rate one-half. The focus of analysis is on codes of small block lengths in various fading conditions. The parity check matrices for the codes were generated following [1] and decoding was performed using (1) and (2). In order to gauge the difference in performance of small length block codes, we analyze them in an AWGN channel. Fig. 3 illustrates the well-known phenomenon that codes of larger block size have better performance. In a multipath fading channel, two scenarios were considered. Firstly, an uncorre- lated fading channel was investigated with intrinsic information calculated by (3) and 72 EblNO(dBj Figure 3: Bit error rate performance Figure 4: Bit error rate performance of (3,6) regular LDPC codes of lengths of (3,6) regular random LDPC codes 204, 504 and 1008 with rate one-half on of lengths 204 and 504 with rate one- the AWGN channeL half, on an uncorrelated Rayleigh fad- ing channel with and without CSI. Figure 5: Bit error rate performance Figure 6: Bit error rate performance of (3,6) regular random LDPC codes of (3,6) regular random LDPC codes of length 204 with rate one-half on a of length 504 with rate one-half on a correlated mobile channel at speeds of correlated mobile channel at speeds of 4, 30 and 70 miles/h with and without 4, 30 and 70 miles/h with and without a channel interleaver. a channel interleaver. Table 1: Normalized Doppler frequencies at different speeds Mobile Speed miles/h fD(Hz) fDTs 4 5.37 2.8 x 10-4 30 40.2 2.1xlO-:l 70 93.9 4.9 x 10-3 73 (4) for the cases with and without CSI, respectively. An uncorrelated channel with perfect CSI availability is an ideal assumption. Therefore, another scenario without the availability of CSI is also considered. The results in Fig. 4 show the degradation when no CSI is available. The performance can be improved but at the cost of higher system complexity. However, as shown by the system diagram Fig. 2, our focus was to see the strength of the underlying code. Secondly, a correlated land mobile fading channel at a frequency of 900 MHz with a data rate of 9.6 kb/s was investigated. A channel interleaver was introduced and its effects with the changing mobile speeds was analyzed. The interest in a channel interleaver is due to the fact that in turbo codes every bit needs to make use of the information of its neighboring bit to update its likelihood information [13]. Therefore, a channel interleaver is introduced to break up the correlation of channel fades among consecutive bits. However, in the decoding of LDPC codes, as given by (1) and (2), when bit ti updates its information from a parity check, e.g., check m, it only makes use of the information from those bits participating in check m. As the construction of the parity check matrix is random, therefore, the probability that these bits will be neighbors is very small. The randomness and sparseness of the parity check matrix suggest that the LDPC codes have a built-in interleaver [3]. This implies that LDPC codes should have good performance over a fading channel, without the use of a channel interleaver. Due to the inherent randomness in LDPC codes, a non-random, circular shift permutation based interleaver was employed [18]. It can be represented as [18] 7r (j) = (aj + r) mod N, (6) where N is the length of the code, a < N is a step size that is relatively prime to N and r < N is an offset. The values of a used in the calculations are 19 and 293 for code lengths of 204 and 504, respectively. The choice of the offset is unimportant, therefore, we have taken it to be equal to zero in our calculations. Three typical mobile speeds, i.e., 4, 30 and 70 milesjh, representing the mobility levels from a pedestrian to a high speed moving vehicle, were considered. The cor- responding normalized Doppler shifts iDTs and Doppler frequencies [o are shown in Table 1 where T'; is the coded symbol duration. From Fig. 5 and 6, we can conclude that by increasing the mobile speeds we can achieve better performance in terms of BER. This improvement in the performance is due to the fact that the channel becomes more and more uncorrelated with the increase in the speed. It is, as if we have included an interleaver of increasing depth. However, this performance is also bounded and the maximum we can achieve is when the channel is completely uncorrelated, as in Fig. 4. Fig. 5 and 6 also emphasize that longer block size codes are able to achieve better results. Furthermore, the effect of an external interleaver is also shown in both the figures. Results show that the inclusion of an interleaver does not lead to a substantial improvement in the performance. This is a reflection on inherited interleaving in the code as discussed earlier. If in the system diagram, shown by Fig. 2, an external interleaver is included, the effect is similar to the -case if we have two-interleavers of same depth which would result in no substantial improvement in the performance. This phenomenon is evident from Fig. 5 and 6. 5 Conclusions Results on regular, random LDPC codes of small block lengths were analyzed in various fading conditions. In an uncorrelated fadmg channel with Ideal CSI availability the performance of the codes in terms of BER is better than the case when no CSI is available. The correlated flat multipath land mobile channel was analyzed for different mobile speeds, with and without a channel interleaver. The fading model used for a rnultipath correlated flat fading channel is a realistic model based on autoregressive 74 modelling and with the assumption of i.i.d block fading. Obtained results show that better performance in terms of BER can be achieved for small block size codes by increasing mobile speed. We also showed that even without a channel interleaver the LDPC codes can still achieve the same performance as with a channel interleaver on a correlated flat multipath fading channel. This phenomenon is a reflection upon the built-in "interleaver" in the parity check matrix H. Acknowledgement The authors wish to thank all the colleagues for their helpful comments and suggestions during the writing of this paper. This work was supported by STW under McAT project DTC.6438. References [1] D. J. C. Mackay, "Good error correcting codes abased on very sparse matrices," in IEEE Trans. Information Theory, no. 2, Mar. 1999, pp. 399-431. [2] R. G. Gallager, Low density parity check code. Cambridge: MA:MIT Press, 1963. [3] J. Hou, P. H. Siegel, and L. B. Milstein, "Performance analysis and code opti- mization of low density parity-check codes on rayleigh fading channels," in IEEE Journal oti Selected Areas in Communications, no. 15, May 2001, pp. 924-934. [4] T. J. Richardson and R. L. Urbanke, "The capacity of low density parity check codes under message passing decoding," in IEEE Trans. Information Theory, no. 47, Feb. 2001, pp. 599-618. [5] T. J. Richardson, M. A. Shokrollahi, and R. L. Urbanke, "Design of capacity approaching irregular low-density parity check codes," in IEEE Trans. Information Theory, no. 47, Feb. 2001, pp. 619-637. [6] K. Fu and A. Anastasopoulos, "Performance analysis of LDPC codes for time se- lective complex fading channels," in IEEE Global Telecommunications Conference, no. 2, Nov. 2002, pp. 1279-1283. [7] R. J. McEliece and W. E. Strak, "Channels with block interference," in IEEE Trans. Information Theory, no. 1, Jan. 1984, pp. 44-53. [8] K. Tang, P. H. Siegel, and L. B. Milstein, "On the performance of turbo coding for the land mobile channel with delay constraints," in Proc. 33rd Asilomar Conf. SSC, Pacific Grove, Oct. 1999, pp. 1659-1665. [9] M. Tanner, "A recursive approach to low complexity codes," in IEEE Trans. Information Theory, no. 5, 1981, pp. 533-547. [10] M. Luby, M. Mitzenmacher, A. Shokrollahi, D. Spielman, and V. Stemann, "Prac- ticalloss-resilient codes," in Proc. 29th Annu. ACM Symp. Theory of Computing, no. 2, 1997, pp. 150-159. [11] T. J. Richardson and R. L. Urbanke, "Efficient encoding of low density parity check codes," in IEEE Trans. Information Theory, no. 47, Feb. 2001, pp. 638-656. 75 [12] L. R. Bahl, J. Cocke, F. Jeflinek, and J. Raviv, "Optimal decoding oflinear codes for minimizing symbol error rate," in IEEE Trans. Information Theory, no. 2, Mar. 1974, pp. 284-287. [13] J. Hagenauer, E. Offer, and L. Papke, "Iterative decoding of binary block and convolution codes," in IEEE Trans. Information Theory, no. 2, Mar. 1996, pp. 429-445. [14] J. Hagenauer, "Viterbi decoding of convolution codes for fading and burst chan- nels," in Int. Zurich Seminar Digital Comm., Mar. 1980, pp. 1-7. [15] K. E. Baddour and N. C. Beaulieu, "Autoregressive modeling for fading channel simulation," in IEEE Trans. Wireless Comms, no. 4, July 2005, pp. 1650-1662. [16] P. Dent, G. E. Bottomley, and T. Croft, "Jakes fading model revisited," in IEEE Elec. Letters, no. 13, June 1993, pp. 1162-1163. [17] D. J. Young and N. C. Beaulieu, "The generation of correlated ray leigh random variates by inverse fourier transform," in IEEE Trans. Wireless Comms, no. 7, July 2000, pp. 1114-1127. [18] S. Dolinar and D.Divsalar, "Weight distributions for turbo codes using random and non-random permutations," Jet Propulsion laboratory, Pasadena, California, Tech. Rep. TDA-42-122, Aug. 1995. 76 On Direct Construction of Variable- Length- to- Block Codes Yuriy A. Reznik Anatoly V. Anisimov Corporate R & D Department of Cybernetics QUALCOMM Incorporated Kiev National T. Schevchenko University 5775 Morehouse Drive 2 Acad. Glushkov Avenue, Bldg. 3 San Diego, CA 92121 03680 Kiev, Ukraine yreznik@qualcomm.com ava@unicyb.kiev.ua Abstract We offer a novel algorithm for construction of minimum-redundancy variable- length to block codes. This algorithm is based on Khodak's algebraic character- ization of VB-coding trees, and employs combinatorial enumeration techniques for assignment of codewords. As a side product, we also derive an exact formulae for average redundancy of such codes under memoryless sources, and show its usefulness for analysis of codes with small number of codewords. 1 Definitions Consider a memoryless source S producing symbols from an input alphabet A = {al, ... , am} (2:( m < (0) with probabilities {Pi = P(ai), i = 1, ... , m}. By Pmin,Pmax we denote the probabilities of the least- and the most-likely symbols correspondingly, and assume that 0 < Pmin :s;Pmax < 1. Assume that a message ~ = {aik}k=l is an infinite-length sequence of symbols produced by the source S. The main idea of variable length coding is to define a set of words X = {Xj E A*,j = 1, ... , M} (m:s; M < (0), such that any message X can be uniquely represented by a sequence of such words, and then map words Xj into codes {'" \f-' (x.l )}oo r 1'=1 = {b 'l.s}oo 8=1 . We assume that the mapping l/Pmin). Condition (5) implies that the total number of leaves in the resulting tree ~N satisfies: (6) so by picking different values of N one can control the size of the resulting trees (although with certain granularity, since (5) applies to allleaves). It can also be shown (e.g. using [6, Lemma 6]), that a tree ~N constructed by Khodak algorithm with parameter N is exactly the same as the tree ~ (iN) constructed by Tunstall algorithm after 2N = IX(L'.,,)I-l steps. m-I In other words, both algorithms can be used to solve the same problem. Tunstall algorithm has an advantage of providing an explicit controlover the number of leaves 78 in the resulting trees. Khodak scheme, on the other hand, provides a simple algebraic characterization of the coding tree (5), which, as we will show in this paper, can be used to perform its direct construction, and leads to exact formulae of redundancy of such codes. 3 Exact Redundancy of VB-Codes We first prove two simple lemmas allowing us directly enumerate internal nodes in VB-coding trees. Lemma 1. Probabilities of internal nodes w in a tree 6.N satisfying Khodak condi- tion (5) have the following property: (7) Proof. Follows directly from condition (5) and the fact that P( w) must be greater than the probability of a leaf. D Lemma 2. Any string w EA' such that: 1 P(w) ~ NP. . (8) mm leads to an existing internal node in a tree 6.N satisfying Khodak condition (5). Proof. If this is not correct, then there must exist a prefix u: w = uv, lul> 0, lvi> 0, leading to an external node. Then, according to (5) we must have P(u) < _I_ N Pmin 1 which, however, contradiets (8) and the fact that P(w) = P(u)P(v) < P(u). D Now we can derive formulae for all essential parameters of VB-codes. Theorem 1. VB-codes based on a tree 6.N satisfying Khodak condition (5) have the following redundancies: n (6. S) = lIg (M(N, S))l _ h(S) R* (6. S) = 19 (M(N, SJ) - h(S) (9) VH N, d(N,S) ,VB N, d(N,S) , where: ( k e k ) PI" 1,·'" m k, k .p,;,_n , (10) and M (N, S) = 1 + (m - 1) L L (11) k1 + ... + km = £ k: k-« .> 1 PI ... Pm z-: Npm;n 79 Proof. By X (~) and W (~) we denote sets of strings leading to all external and internal nodes in ~, correspondingly. To derive an expression for the average delay, we use the fact that [16, 10]: d(~, S) = L P(x)lxl = L P(w), (12) XEX(~) wEW(~) and then simply enumerate all internal nodes using condition (8) of Lemma :2: d(N,S) := d(~N,S) P(w) wEA"': P(w)? N ~min (13) Similarly, to count the number of external nodes, we use the fact that: IX(~)I = 1 + (m - 1) IW(~)I, (14) and apply Lemma 2: M(N,S) := IX(~N)I =1+(m-1) 1 wEA*: pew),? N tm;n 1+(m-1) L L (15) kl + ... + km = R kj PI .. ·Pm km >- Npm;n t--: I o 3.1 Exact Redundancy in Binary Case In binary case, assuming that Pr(O) = p,Pr(l) = q,p < q, the condition (8) becomes (16) where k denotes the number of O's in the path from root to node w in the parsing tree, and R is the total length of this path. The above inequality implies that: k <: _log(Np) + R logq (17) ~ log(p/q) and (by requiring k ~ 0): R ( _log(Np) . (18) loe; q Using these expressions we obtain: 80 Corollary 1. VB-codes for binary memoryless source with probabilities p, q (p < q) have the following redundancies: R (~ )= fig (M(N,p))l _ h R* (~ ) = 19 (M(N,p)) - h (19) VB N,P d(N,p) ,VB N,P d(N,p) , where: d(N,p) = (20) M(N,p) = 1+ L O,;:e,,::l-'og(NP)J O':::k":: . L {e l'Og(NP)HlogqJ} G) , (21) -..;;::-..;;:: logq -..;;::-..;;::mmI log(q/p) and h = -p 19 P - q 19 q is the entropy of the source. The obtained expressions (20) and (21) are well suited for evaluations using com- puters. Examples of such computations (conducted using MAPLE) for binary sources with p = ~ (a case when ~ is irrational) and p = 3+2\1"5 (a case when ~ = 2) are shown in Fig. l. For comparison, in Fig. 1 we also include plots of idealized redundancy computed using known asymptotic formulae [5]. Plots for p=2/5 (irrational case) Plots for p~2/(3+sqrt(5» (rational case) 0.25 0.25 : \ 0.2 l/< r\ 0.2 ::\ !. 0.15 \i I", ,\ 0.15 g , ]1 (;- c '"c "0 §'" ::> "0 Q) cr: 0.1 \f \!\ n '0 Q) cr: 0.1 ,/\ \i \ i\, ","~' \".,1 \ :', .: \ 1\ 0.05 t, \ I \i ~\i\!\!\!\\/\\,.:1\' , , V \r "Ij ....; i 0.05 \'~ \j oL_~~~==~~~~~~~ o .le2 .le3 .le4 .le5 .le2 .le3 .le4 .le5 M M Figure 1: Exact average redundancy RVB(M,p) (dashed lines) vs. exact idealized red undancy RYB (M, p) (solid lines) vs asymptotic idealized redundancy (dotted lines) of VB-codes constructed for binary memoryless sources with p = ~ and p = 3+2\1"5' Based on these plots it can be seen that exact redundancy of VB-codes RVB(M,p) involves significant fluctuations caused by rounding of codeword lengths to integral 81 number of bits. While the magnitude of those oscillations is decreasing as 0(1/ log M), they are of major effect when the size of VB-coding trees is constrained. In such cases our exact redundancy formula provides an essential tool for optimal design of such codes. In contrast, the idealized redundancy RyB(M,p) has a much smaller amplitude of oscillations in a case when ~ is irrational, and it is oscillation-free in the rational case. In both cases, asymptotic formulae from [5] provide very good approximations to the exact values of RYB(M,p). 4 Direct Construction of VB-Codes First, we derive somewhat tighter bounds for probabilities of leaves in trees constructed using Khodak's algorithm. Lemma 3. Leaves x attached to a-branches (0'. E A) in a tree fj_N satisfying condition (5) have the following properties: P(a) 1 . NP. mln ~ P(x) = P(wa) < NP.. (22) mln Proof. Consider an internal node corresponding to a string w. Its children correspond to single-letter extensions of w: wa, 0'. E A. If now, a node Wo'. becomes an external node, then, according to Khodak condition (5) it must satisfy: 1 P(wa) = P(w)P(a) < NP. .. (23) min Since w is internal (cf. Lemma 1): 1 P(w) ~ NP. .. (24) mm Combining both we arrive at (22). o Next we show that this condition is sufficient for direct counting of leaves. Lemma 4. All strings wE A* such that: P(a) _ 1 NP.. ~ P(wa) < NP.. (25) mm mm cortespond to internal nodes whose a-branches are immediately connected to leaves in a tree fj_N satisfying Khodak condition (5). Proof. Left side of (25) ensures that w is a valid internal node in fj_N (cf. Lemma 2). It also implies that (5) is satisfied for wa, so it. must be a leaf. 0 Using these facts we can now design an algorithm for direct construction of VB- codes. An sketch of such an algorithm for binary alphabets is provided below. 82 Algorithm 1 Direct construction of a binary VB-coding tree t:::.N. M=O; II M number of codewords for (1=0; l<=L_MAX; 1++) { II 1 length of words w for (k=O; k<=l; k++) { II k number of zeros in w 1* probability of an I-bit word with k zeros: *1 pr = pow(p,k) * pow(i-p,l-k); 1* internal nodes? *1 if (pr >= i/(N * p)) { 1* check if left extensions turn into leaves: *1 if (pr < i/(N * P * p)) { 1* register an (l,k)-group of nodes connected to O-leaves *1 1* update the number of codewords: *1 M += binomial(l,k); } 1* check if right extensions turn into leaves: *1 if (pr < i/(N * P * (i-p))) { 1* register an (l,k)-group of nodes connected to i-leaves *1 1* update the number of codewords: *1 M += binomial(l,k); } } } } It can be observed, that in order to create a parsing tree this algorithm uses only parameters of groups (e, k) which are either 0- or I-connected to the leaves. The number of such groups is proportional to the logarithm of the number of leaves M, which means that overall this algorithm needs only O(log M) space. In order to index a particular sequence w in a (e, k)-group we can use the following well-known enumeration formula (cf. Mudrov [11], Cover [3], Schalkwijk [15]): e Index(w,e,k) = ~w,(~~=~J, (26) where w, represent z-th bit of w, and it is assumed that G) = 0 for all k > ri. A similar formula for m-ary alphabets can be found in [15]. Al~orithms for efficient computation of indices based on (26) can be found in [1, 3, 12, 19]. 83 References [1] V. F. Babkin, A method of universal coding with non-exponent labour consumption, Probi. Inf. Trans., 1 (4) (1971) 13-21 (in Russian) [2] F. Cicalese, L. Gargano, and U. Vaccaro, A note on Thnstall codes with applications to optimal approximation of uniform distributions, IEEE Trans. Inf. Theory - submitted. [3] T. M. Cover, Enumerative Sources Encoding, IEEE 'l'rans. 1nf. Theory, 19 (1) (1973) 73-77. [4] T. M. Cover and J. M. Thomas, Elements of Information Theory, (John Wiley & Sons, New York, 1991). [5] M. Drmota, Y. A. Reznik, S. A. Savari, and W. Szpankowski, Precise Asymptotic Analysis of the Thnstall Code, IEEE International Symposium on Information Theory (ISIT06), Seattle, WA, July 9 - 14, 2006 - accepted. [6] F. Jelinek, and K. S. Schneider, On Variable-Lenght-to-Block Coding, IEEE Trans. Inf. Theory, 18 (6) (1972) 765-774. [7] G. L. Khodak, Connection Between Redundancy and Average Delay of Fixed-Length Coding, All- Union Conference on Problems of Theoreiical Cybernetics (Novosibirsk, USSR, 1969) 12 (in Russian) [8] G. L. Khodak, Redundancy Estimates for Word-Based Encoding of Messages Produced by Bernoulli Sources, Probl. 1nf. Trans., 8, (2) (1972) 21-32 (in Russian). [9] D. Knuth, The Art of Computer Programming. Sorting and Searching. Vol. 3 (Addison- Wesley, Reading MA, 1973). [10] R. E. Krichevsky, Universal Data Compression and Retrieval. (Kluwer, 1993). [11] V. I. Mudrov, An algorithm for enumeration of combinations, Vyc. Math. and Math. Phys.,5 (4) (1965) 776-778 (in Russian). [12] B. Ya. Ryabko, The fast enumeration of combinatorial objects, Discrete Math. and Ap- plications, 10, (2), 1998 [13] S. A. Savari , Robert G. Galla,e;er; Generalized ThI1st<111 codes for sources with memory, IEEE Trans. Info. Theory, vol. IT-43, pp. 658 - 668, March 1997. [14] S. A. Savari, Variable-to-Fixed Length Codes for Predictable Sources, Proc IEEE Data Compression Conference, Snowbird, UT, March 30 - April I, 1998, pp. 481-490. [15] J. P. M. Schalkwijk, An Algorithm For Source Coding, IEEE Trans. In]. Theory, 18 (3) (1972) 395-399. [16] V. M. Sidelnikov, On Statistical Properties of Transformations Carried out by Finite Automata, Cybernetics, 6 (1965) 1-14 (in Russian) [17] Tj. J. Tjalkens, Efficient and fast data compression codes for discrete sources with mem- ory, Ph.D. Thesis, Eindhoven Univ. Techn., The Netherlands, 1987. [18] T. J. Tjalkens and F. M. J. Willems, "Variable to fixed-length codes for Markov sources," I.E.E.E. Trans. 1nf. Theory IT-33, 246-257, 1987. [19] Tj.J. Tjalkens, The Complexity of Minimum Redundancy Coding, in Proc. 21-th Symp. 1nf. Theory in the Benelux (May 2000) 247-254. [20] B. P. Thnstall, Synthesis of Noiseless Compression Codes, Ph.D. dissertation,(Georgia Inst. Tech., Atlanta, GA, 1968) 84 On Creating Depth Maps from Monoscopic Video using Structure from Motion Ping Lil, Dirk Farin! , Rene Klein Cunnewiek/ , Peter H. N. de Withl,3 Eindhoven Univ. of Technology! / Philips Research Eindhoven- / LogicaCMG3 P.O. Box 513, 5600 MB Eindhoven, The Netherlands {p.li, d.s.farin}@tue.nl / rene.klein.gunnewiek@philips.com/ P.H.N.de.With@tue.nl Abstract The depth-image-based rendering technique is a promising teclmology for three-dimensional television (3D-TV) systems. For such a system, one of the key components is to generate a high-quality per-pixel depth map, particularly for already existing 2D video sequences. This paper proposes a framework for creat- ing the depth map from uncalibrated video sequences of static scenes using the Structure From Motion (SFM) technique. This paper describes the architecture and the main components of the proposed framework. The initial experimental results show that SFM can be an effective way for creating the depth map, or it can be used to refine the depth map created by other methods, for example, the Depth From Cues (DFC) technique. 1 Introduction Depth-image-based rendering (DIBR) 3D-TV has recently received much attention from both academia and industry. In contrast to the conventional stereoscopic video, where two separate video streams (one for the left eye and one for the right eye), need to be encoded and transmitted, only one monoscopic texture video and an associated per-pixel depth sequence need to be encoded and transmitted. This system has two clear advantages. First, it provides a good backward compatibility, since the mono- scopic video can be decoded and displayed in a conventional 2D-TV system. Second, the depth information can be encoded with a much higher efficiency than the texture video Only very little extra bandwidth is needed for transmitting the depth map. Also stereoscopie video systems have a good backward compatibility, but the extra bandwidth needed to transmit the extra view is much higher. The depth map can be created either by a range camera or by converting the normal 2D video to 3D. During the introduetion phase of 3D-TV, conversion of existing 2D videos to 3D is desired [1]. The paper proposes a framework for extracting the depth information from monoscopic videos. Our literature survey has revealed that the exist- ing automatic depth-creation algorithms can be coarsely classified into two categories. One is the SFM approach and the other is the DFC technique that creates the depth from various depth cues such as the gravity, focus/defocus, occlusion, texture, etc. 85 The SFM approach exploits the physical relation between the motion in the image, motion of the camera, and the motion of the object in the 3D space. One major ad- vantage of this method is that this relation can be well modelled using the pin-hole camera model, epipolar geometry, etc. However, the deficiency is that it cannot handle scenarios containing degenerated motion (e.g., rotation-only camera) or degenerated structure (e.g., coplanar scene) [2]. Moreover, applying SFM to non-static scenes with moving or deformable objects is still a difficult task. In this aspect, DFC has an ad- vantage since it is capable of analyzing all kinds of scenes, including the scenes with moving and deformable objects. Howevever, a significant drawback of DFC is that the heuristic depth cues are hard to model due to the complexity of the scene interpre- tation. Obtaining an accurate and stable depth map is usually difficult for this type of algorithm. In view of the above observations, our proposed system attempts to integrate the SFM and the DFC methods to improve the depth creation. The system chooses SFM to create the depth map whenever SFM is applicable, as it can give a more stable and accurate depth map. In this case, the heuristic cues are used only as complimentary means for refining or creating the depth map for those parts of the scene where SFM cannot extract good depth information. When SFM is not applicable, our system relies on DFC to extract the depth. This paper describes the proposed framework. Each of the main components of the proposed framework is briefly addressed. Though the overall framework is presented in this paper, the focus of this paper is on creating the depth using the SFM technique. An SFM algorithm is implemented and an initial depth map is created. The remainder of the paper is organized as follows. Section 2 describes the proposed architecture and its major components. Section 3 describes the SFM algorithm for depth creation from monoscopic videos. Section 4 presents some experimental results. Finally, Section 5 concludes this paper. 2 Architecture As mentioned in Section 1, due to the inherent advantages and disadvantages of DFC and SFM, our architecture combines both approaches for a better depth creation. Fig. 1 shows the architecture of the proposed system, where we note that the overall archi- tecture comprises of three major components, i.e., the scene analysis, the DFC block, and the SFM block. Though the figure shows the entire depth-creation algorithm, this paper is focusing on the SFM part. The Scene Analysis and the DFC remain as our future work. In this section, we will briefly describe the Scene Analysis and the DFC. SFM will be presented in more detail in Section 3. 2.1 Scene analysis As we discussed in Section 1, depending on the scene contents, the system chooses either SFM or DFC to create the depth map. Thus, analyzingj classifying of the scene contents is the first step in our algorithm and it is crucial for automatic depth creation from monoscopic videos. During the scene analysis, the degenerate motion and structure are detected and the video sequence is partitioned into a number of sub-sequences, where 86 2D video Depth from ,-----1 Cues ,-- - -- - -- - --- --- --- --- -- . ---- ----- --- --- --- ---- Other Depth Cues Dept Map Depth Map Figure 1: Architecture for depth generation. either SFM or DFC can be applied. As we will be discussed in Section 3, we use a factorization-based approach for 3D reconstruction, in which the motion and structure for the set of images are computed at the same time. Appropriate partitioning of a long monoscopic video sequence into a number of sub-sequences so that factorization- based SFM can be applied, is very important for the automatic depth creation in our framework. Up to now, we did not yet realize this component. Some research on this topic can be found in [4]. 2.2 Depth from cues The Human Visual System (HVS) obtains depth information from both the disparity information provided by the two eyes and the visual information extracted by the hu- man brain. In our application of creating depth maps from monoscopic videos, SFM is a process that analyzes the disparity information from multiple views in the time axis. To some extent, this process is similar to the disparity processing by the two eyes. Alternatively, DFC tries to extract the depth information by analyzing the heuristic depth cues in individual images. This process to some extent is similar to the vi- sual processing by the brain to extract the depth information using its well-developed knowledge for scene interpretation. To use the DFC for automatic depth creation from monoscopic videos by a com- puter, the depth cues such as the occlusion, focusjdefocus, etc., must be somehow 87 described by mathematical models. Due to the little knowledge of the HVS and the complexity of the scene interpretation by the brain, the modelling of the heuristic depth cues is difficult. Obtaining an accurate and stable depth map is usually a problem for this approach. As such, DFC is only used as a fall back in the proposed system. When the scene analysis detects the degenerate motion or structure in the sub-sequence and SFM is not applicable, then DFC is applied. 3 Structure from motion SFM refers to the problem of recovering the camera motion parameters and 3D scene geometry from a set of images captured by calibrated or un-calibrated cameras. SFM has been a very active research area in computer vision since the early 1980's. State- of-the-art SFM algorithms include the factorization-based approach [5] and the merge- based approach [3]. In general, merging algorithms rely on a good initial estimate of structure, and are also susceptible to drift over a long sequence [4]. Factorization methods calculate the motion and structure using all the tracked feature points with equal weights simultaneously. This approach has been proven to be accurate and robust to noise. This paper adopts the factorization-based approach. In the following, we will briefly describe and comment on the main steps of a the factorization-based SFM algorithm. 3.1 Feature tracking As pointed out in Section 1, SFM exploits the relation between the camera motion and image motion. In practice, this relation is captured by the feature correspon- dences (points, lines, curves, surfaces, etc.), which has been extensively studied in past decades. An accurate feature correspondence is crucial to any SFM method. Feature tracking for monoscopic videos is similar to that for multiple views in the sense that both are actually working on multiple images of the same scene from different viewpoints. However, feature tracking for monoscopic video does have its own unique charactcrisl.ics. One of those is the strict camera-motion constraint. Unlike the multiple-view scenarios where both the external and internal parameters of the camera may change significantly across views, the camera parameters for a monoscopic video usually do not change abruptly. Exploiting this camera-motion constraint is expected to improve the feature tracking significantly, which make an investigation worthwhile. Furthermore, exploiting this feature mayalso help on our motion and structure recovery process. In the current implementation, the Harris corner detection [8, 9] is used to detect the feature points in the images. The detected feature points are then tracked along images using block matching. Future extension of this work could be to detect the line correspondences, which is expected to improve the quality of the 3D reconstruction in the areas that contain little texture but many strong edges. 3.2 Motion and structure recovery This step is to compute the camera motion and scene structnre, hilSPr! on the de- tected feature correspondences. It can be divided into two sub-steps: the projective 88 reconstruction [6J to recover the projective depths for the 3D points and the Euclidian reconstruction [5J to enforce the metric constraints on the recovered camera parame- ters. In this paper, the factorization-based technique reported in [7J and [5J are used for our projective and Euclidian reconstructions. 3.3 Dense depth map creation using geometry fitting The feature-based SFM only gives us a sparse depth map. To obtain the dense depth map that is required for our application, the Delaunay triangulation is used, which is shown in Fig. 4(a). The triangulation technique assumes that the complete scene consists of piece-wise planar surfaces described by the triangles. Generally, this as- sumption works well if the three vertices of the triangle are close to each other and lie in the same object. However, problems may arise in certain cases. As we can note from Fig. 4(b), the depth is not accurate for those triangles covering the edges of two objects and the transition area between foreground and background. Another problem of triangulation is that in some image areas where few feature points can be detected and tracked (the sky, the tree, and the ground in Fig. 2), triangulation is not applicable at all. We refer to these areas as degenerate areas in this paper. Extending or inferring the depth into these degenerate areas from their neighborhoods where structure can be reconstructed is desirable. This comes with the geometry fitting in our SFM process. Briefly, the fitting first detects the object geometry (e.g., plane), and then infers depth for the degenerate areas based on the detected geometry. Currently, we are thinking of using the calor, texture and edge information together with the reconstructed 3D points to detect the object geometry. 4 Experimental results and discussions We have implemented an initial SFM algorithm for depth creation. In the algorithm, feature points are detected using Harris corner detection. Then, the feature points are tracked along a number of frames using a block matching technique [3J. After that, the factorization-based projective and Euclidian reconstruction are conducted to recover the camera motion parameters and the scene structure. Finally, dense depth maps are created using the Delaunay triangulation. In this section, we will present results that show each of t.hp.sesteps. The castle sequence (Fig. 2) that is used in [3J for 3D reconstruction is used for our experiment. In the experiment, the feature points are tracked along the first 21 frames of the sequence (Fig. 2 also shows the tracked feature points in the first frame). Fig. 3 depicts the reconstructed scene geometry from two different viewpoints. The figure shows that the reconstructed structure is quite accurate. The three planes that corresponds to the three walls of the house as well as the orthogonality between the walls can be clearly seen from the top view of the reconstructed scene geometry. Fur- thermore, we also note that the locations of the 21 cameras are accurately recovered (at the bottom of Fig. 3(a) and at the right of Fig. 3(b)). However, for the ground, sky and tree areas where feature tracking is difficult, the structure cannot be reconstructed 89 Figure 2: Input image 0 and the tracked feature points. or the reconstructed structure is very sparse. (a) Top-front view (b) Top view Figure 3: Reconstructed scene geometry. Fig. 4(b) shows the dense depth map created using the simple triangulation. From the figure, we observe that the depth map is accurate and fits well to the real scene structure for most of the scene. However, as we explained in Section 3.3, problems occur in the following degenerate areas: 1) the ground, the tree and the sky where fea- tures are difficult to detect or to track; 2) the transition areas between the foreground and background where the depths are discontinuous; 3) the connection areas between the two objects, where the triangle covers the edges, e.g., the connection part between the ground and the three walls. 90 (a) Triangles for input image 12 (b) Depth map for input image 12 Figure 4: The triangles and the dense depth map for input image 12. 5 Conclusion and future work In this paper, we have presented a framework for creating the per-pixel depth maps from monoscopic videos using the combination of SFM and DFC. The proposed algo- rithm uses SFM to create the depth map whenever it is applicable and DFC elsewhere. A special feature of our framework is the use of scene analysis to choose between SFM or DFC. An SFM algorithm is implemented for creating the depth map for the castle sequence. As a preliminary conclusion from our results, SFM can be used to create a good depth map from monoscopic videos. We expect that the accuracy of the depth map can be significantly improved over that obtained by the DFC-based algorithm because the modelling for DFC is complicated. We have also observed shortcomings of the current implementation. Based on cur- rent results, we list the tasks below that need further investigation: 1) Exploiting camera-motion constraints to improve the feature tracking and the projective recon- struction; 2) Partitioning a long video sequence into sub-sequences for a robust depth creation using SFM; 3) Extending the depth to the degenerate areas and the degenerate sub-sequences where SFM is not applicable. 91 References [1] Christoph Fehn, "A 3D-TV System Based On Video Plus Depth Information", Thirty- Seventh Asilomar Conference on Signals, Systems and Computers, vol. 2, pp. 1529-1533, Nov.2003. [2] Philips H. S. Torr, Andrew W. Fitzgibbon and Andrew Zisserman, "The Problem of Degeneracy in Structure and Motion Recovery from Uncalibrated Image Sequences", MSR- TR-99-03, Microsoft Research, March 1999. [3] M. Pollefeys, L. Van GooI, M. Vergauwen, F. Verbiest, K Cornelis, J. Tops, R. Koch, "Visual Modeling With a Hand-held Camera", International Journalof Computer Vision, 59(3): 207-232, 2004. [4] Yoon-Yong Jung, Yong-Ho Hwang, and Hyun-Ki Hong, "Frame Grouping Measure for Factorization-based Projective Reconstruction", 17th International Conference on Pattern Recognition, vol. 4, pp. 112-115, 2004. [5] Mei Han and Takeo Kanade, "A Perspective Factorization Method For Euclidean Recon- struction With Uncalibrated Cameras", J. Visual. Comput. Animat. 2002. [6] Bill Triggs, "Factorization Methods for Projective Structure and Motion", IEEE Com- puter Society Conference on Computer Vision and Pattern Recognition, 1996. [7] Qian Chen and Gerard Medioni, "Efficient Iterative Solution to M-view Projective Recon- struction Problem" , IEEE Computer Society Conference on Computer Vision and Pattern Recognition, vol. 2, June 1999. [8] Cordelia Schmid, Roger Mohr And Christian Bauckhage, "Evaluation of Interest Point Detectors", International Journalof Computer Vision, 37(2): 151-172, 2000. [9] Wenxin Wang and Robert D. Dony, "Evaluation Of Image Corner Detectors For Hardware Implementation" , 2004 Canadian Conference on Electrical and Computer Engineering, vol. 3, pp. 1285-1288, May 2004. 92 Design Considerations for View Interpolation in a 3D Video Coding Framework +Yannick Morvan , lDirk Farin 1,2Peter H.N. de With 1Eindhoven University of Technology 2LogicaCMG Netherlands P.O. Box 513 RTSE1, P.O. Box 7089 5600MB Eindhoven 5605JB Eindhoven The Netherlands The Netherlands y.morvan@tue.nl Abstract A 3D video stream typically consists of a set of views capturing simultaneously the same scene. For an efficient transmission of the 3D video, a cornpression technique is required. In this paper, we describe a coding architecture and ap- propriate algorithms that enable the compression and reconstruction of views at the decoder. We explore the concept of predicting views in order to reduce trans- mission bandwidth, and add a correction to maintain sufficient accuracy. The correction contains occlusion data to cover complicated situations in 3D scenes. Additionally, we present experimental results for occlusion handling, performing a more accurate synthesis of views for the rendering on a multiview display. 1 Introduction A 3D video stream is typically obtained from a set of synchronised cameras, which are capturing the same scene (multiview video). This technique enables interesting appli- cations such as free-viewpoint video, which enable the viewer to select his preferred viewpoint, or 3D TV, where the depth of the scene can be perceived using a special display. Multiview display technology which allows the presentation of images with the illusion of depth is strongly emerging. This illusion of depth is provided by showing simultaneously several views of the same scene. An independent transmission of these views is inefficient, since there is a strong correlation between the views of the same scene. Moreover, the aforementioned 3D displays support a varying number of views at the input, which makes it impractical to prepare these views prior to transmission. Instead, the views should be rendered or inierpolaied at the receiver where the display characteristics are known. It would be efficient to consider views that are coded and transmitted and directly reused for display. To render novel views at the decoder, sev- eral approaches have been investigated. A first class of approaches considered the use of stereo video from which intermediate views are interpolated. However, interpolation of intermediate views without a 3D geometric description of the scene is a difficult task. Moreover, it is crucial that the interpolation of views is as accurate as possible because no residual image is sent. A second class involves an alternative approach using 3D geometry data from which it is possible to derive the warping transformation for the interpolated views at the decoder. For example, a possible coding setup could first transmit a left image combined with a corresponding 3D geometry description, from which the right image can be predicted. Missing data in occluded regions can be filled in using a residual image. The intermediate views can then be interpolated from the left texture image, 3D geometry and the occlusion-compensated views. 93 In this paper, we propose to use a depth signal for 3D geometry information that enables the view-prediction, i.e. compression, of a multiple-view video stream. Addi- tionally, we discuss different occlusion-handling techniques for the intermediate views. This paper is organised as follows. Section 2 describes the 3D compression system using view prediction. Section 3 presents techniques for view interpolation. Section 4 introduces occlusion-handling techniques and presents various approaches for padding missing data areas. The experimental results are included within Section 4. Section 5 draws conclusions. 2 Overview of the 3D video coding framework Our work is motivated by the problem of capturing and transmitting a set of views to render it onto a remote 3D display. For such an application, a typical capturing setup consists of a set of cameras pointing in the same direction such that the views are highly correlated. To exploit the inter-view correlation, the adopted coding approach is to predict the views from the leftmost view, using a corresponding 3D geometry representation. In our case, the 3D geometry data is represented by a depth image (see Figure 1) that specifies the distance between a point in the 3D world and the camera. This distance information is mapped onto a gray-level image. Therefore, the view predietor is based on an image interpolation technique known as Depth Image Based Rendering (DIER). In practice, a depth image can be estimated from multiple images by calculating the parallax motion of pixels between views. Based (lil this (a) (b) Figure 1: The "Cones" [1] texture image and the corresponding depth image. depth image and a texture image, arbitrary views can be interpolated at the decoder. In the case a region in the rightmost view is not visible in the leftmost view, it is not possible to predict the corresponding pixel values. This results in undefined pixels, i.e. occluded pixels, in the new view, which shows perceptual artefacts on the display. In this particular case, a perfect reconstruction of views can be obtained by transmitting resid ual information. An overview of the 3D video coding framework is depicted in Figure 2. 3 View interpolation using depth images In this section, we describe the framework that enables the interpolation of views based on a texture image and a depth image. 94 --- leftm ast view (re ference) depth 1----'---1 estimation I predicted views 1 - I I ->- I I new view synthesis l I I residual image I : optionally transmitted I j texture I1 residual imagel I depth coder I I coder coder : : I network I Figure 2: Overview of the 3D video coding system. A single texture image and a corresponding depth image are sufficient to interpolate synthetic views from arbitrary positions. Let us consider a 3D point at homogeneous co- ordinates P = (Xp, Yp, Zp, I)T captured by two cameras and projected onto the left and right image planes at pixel positions PI = (Xl, Yl, If and Pr = (x" y,., I)T, respectively (see Figure 3). We assume that the leftmost camera is located at the coordinate-system origin and looking along the Z-direction. The rightmost camera location and orienta- x n.. Figure 3: Two projection points PI and Pr of a point p. tion are described by the rotation and translation matrices Rand t. This allows us to define the pixel positions PI and Pr in both image planes by [KII03]p, (1) [K.[O,] [~ -~ '. p ~ K.R ( ~ ) - K.R t, (2) where Ki; Kr represent the 3 x 3 intrinsic parameter matrix of the corresponding cameras and Àl, Àr some positive scaling factors [2] which can be specified in this particular case by Àl = Àr = Zp. From Equation (1), the 3D position of the original point P in the Euclidean domain can be written as (3) 95 Finally, we obtain the predicted pixel position Pl by substituting Equation (3) into Equation (2): (4) Equation (4) constitutes the image-warping equation (see [3]) that enables the interpo- lation of the rightmost view from the original textured leftmost-view pixels and their corresponding depth value. The image-warping equation can be simplified with the following assumptions. First, using identical cameras, the intrinsic parameter matrices are assumed to be equal and can be written as f 0 Ox) Kr = Kl = 0 f Oy ( o 0 1 where f and (ox,Oy) corresponds to the focal-lenght of the recording camera and the principal point of the image, respectively. Second, the Ieftmost camera is not rotated, i.e. R = 13x3 and third, the synthetic camera is translated horizontally by a distance tx, i.e. t = (tx,O,O)T. Rewriting Equation (4) and using the previously mentioned assumptions, the analysis simplifies to a 2D problem except for a scaling factor in the third (Z) dimension. This scaling factor Zp can be removed by converting the 2D homogeneous coordinates of both points Pl and Pr into the Euclidean domain, so that (5) Equation (5) provides the relation between the depth Zp and the so-called disparity ~,p when the inter-view motion is limited to the case of horizontal motion. As a result, in this restricted case, interpolating the rightmost-view corresponds to shifting the leftmost-view pixels horizontally. For simplicity, we only consider the restricted case of horizontal motion between cameras in the sequel of this paper. Note that a warping transformation uniquely computes the destination position for each input pixel in the other view, but that it is not possible to invert this function in order to find a corresponding pixel in the input image for each pixel in the new view. This problem becomes mostly apparent in occlusion regions, where no texture information can be found in the input image. 4 Occlusion handling When no texture is available, i.e. in an occluded region, texture and depth data in the new view must be interpolated [3]. We first address the problem of determining the position of occluded pixels in the interpolated view and secondly describe several techniques to properly interpolate values of occluded pixels. 4.1 Deter mining the position of occluded pixels During the warping procedure, multiple original pixels can be projected onto the same pixel position in the interpolated view. For example, a foreground pixel can occlude a background pixel in the interpolated view, which is resulting in overlapped pixels. Additionally, some regions in the interpolated view are not visible from the original 96 pixels overlapped in the interpolated view 1 visible pixels \ I holes in the interpolated viewpoint \~t original camera interpolated viewpoint viewpoint Figure 4: An interpolated view consists of visible, overlapped and undefined pixels. viewpoint which results in holes in the interpolated image (see Figure 4). This problem is known as the visibility problem in the computer-graphics community. First, to determine which pixels are visible in the interpolated view, one approach is to scan the original view such that eventually occluded background pixels are obtained prior to the occluding foreground pixels [3]. Since we are considering only a horizontal shift of the camera, view interpolation can be processed row by row. The scan of the depth image is performed with increasing x-coordinate such that foreground pixels overwrite background pixels, while foreground pixels are always preserved. Second, to determine the undefined-pixel positions, a per-pixel flag is set when the interpolated pixel position is written. These per-pixel flags finally provide a map of occluded pixels. The procedure is illustrated by Figure 5. scanning order la 0 2 2 2 2 0 0 0 0 ------ pixel disparities 1)7 1'8 P9 1'10 Pil - - - - - - pixels in the original viel interpolated pixels overwritten, Le. overtappee pixels T visible pixels undefined, Le. occluded pixels Figure 5: A proper scanning order of the original view enables that foreground pixels, P3, P4, P5, P6 overwrite the background pixels, i.e. PI, P2. Visible background pixels Ps, Pg, PlO, Pll are preserved. The arrows indicate a simple copy operation. The symbol X represents undefined data. 4.2 Occlusion padding For the padding of occluded pixels, we have basically three possibilities. First, the occluded data could be sent as new independent data (intra mode). Second, undefined pixels could be extrapolated from the background i.e. the surrounding pixels with the largest depth. Third, these areas could be extrapolated from the background and post- processing operations could be performed to increase subjective perceptual quality of interpolated images. 97 (b) (c) (a) (d) (e) Figure 6: (a) Interpolated view using an occlusion-padding technique based on back- ground pixels. (b) Magnified view that shows the "rubber band" effect. (c) Magnified view with aliasing artefacts at the object boundaries. (d)+(e) Visual artefacts gener- ated by propagating blended colour in occluded pixels. Intra-mode. To obtain a perfect reconstruction of the rightmost view, a residual data that corrects the prediction error should be transmitted. However, in some cases, heuristic padding techniques which fill occluded regions by synthetic texture, provide a sufficient perceptual quality. Occlusion padding based on background pixels. The second approach exploits the idea that occluded pixels belong to the background. Thus, to interpolate occluded pixel values, only neighboring non-occluded pixels with the highest depth value should be taken into account. For simplicity, we define neighboring pixels as the two nearest left and right non-occluded pixels in the image line. The value of occluded pixels is then derived from the neighboring pixel with the highest depth value, i.e. background. An example of a warped image with the occlusion padded with background pixels is shown in Figure 6(a) . Unfortunately, as illustrated in Figure 6(b), because the padding is performed row by row, occluded regions show lines of equal pixels, which is known as the "rubber band" artefact. Secondly, in a typical textured image, object-border pixels show a mixture of foreground and background colour, which results in blended colour pixels. As a con- sequence, occluded pixels are padded by the blended colour instead of the background colour (see Figure 6(d) and Figure 6(e)). Finally, it can be observed in Figure 6(c) that objects borders can show non-soft edges due to the pixel-based interpolation technique which lead to aliasing artefacts. For these reasons, we have investigated an alternative padding technique that appropriately handles object boundaries. Occlusion padding with object-boundary smoothing. As described previously, apparent artefacts mostly occur along object borders. Therefore, we now introduce a simple algorithm that intends to minimize the perceptual impacts of these artefacts. 98 (b) (c) (a) (d) (e) Figure 7: (a) Interpolated view with occlusion padding based on background pixels and smoothened discontinuities. (b) Rubber band artefacts attenuated by smoothing the occluded pixels. (c) Attenuated aliasing artefacts along the objects boundaries. (d) (e) Blended colours are not propagated in occluded pixels. In a first step of the algorithm, we replace the blended edge pixels in the original image. Because pixels along the objects border are a mixture of foreground and back- ground colour, we classify the pixels on the object border as not valid. To obtain the classification map of unreliable pixels, an edge-detection procedure is performed on the depth image. It can be found in literature that recent depth-estimation algorithms provide sufficiently accurate depth images to detect the object borders [4, 5]. The al- gorithm then replaces each unreliable pixel by the nearest valid pixel in the image line. This results in an image Inb in which object boundaries are not blended (the suffix nb means "not blended"). In a second step, the not-blended image is warped and subsequently, edge pixels are blended. The image Inb and the depth image are warped to obtain the interpo- lated view and the corresponding warped depth map. In this warping step, texture and depth samples are extrapolated from the background pixels (as described in the previous paragraph). Because the resulting warped view shows non-blended object boundaries, the algorithm finally smoothens the edges to obtain soft object bound- aries. To attenuate the "rubber band" artefacts, the occluded regions are srnoothened as well. Though multiple heuristic techniques have been employed for padding the occluded pixels, experiments have revealed that our proposed algorithm can interpolate new views with sufficient quality. For example, Figure 7(d) and Figure 7(e) show clearly that blended colours are not replicated in the occluded regions. Moreover, the aliasing (jagged edges) and "rubber band" artefacts are attenuated by a simply smoothing of the occluded pixels (Figure 7(b)) and the object borders (Figure 7(c)), respectively. 99 5 Conclusions In this paper, we have described a framework for 3D video coding system which employs a prediction of views based on an original view combined with depth information. The depth information is enhanced with residual image data for handling occlusion. The prediction of views is performed using a view interpolation and occluded data can be efficiently predicted or explicitly transmitted. It was shown that the interpolated view can be reconstructed by a transformation of the original view using the warping equation. As an illustration, we have derived a simple example of the transformation based on horizontal camera-motion only. This architecture enables multiview synthesis by predicting any desired in-between view from the geometry data coded by the depth image, where the occlusion data ensures sufficient quality at object borders. We have provided a new algorithm for padding of occluded pixels. The key to this algorithm is that blended object-border pixels are first removed and replaced by neighbouring data. Afterwards, the image is warped and object-border pixels are blended. The advantage of the presented padding technique is the low complexity as only pixel-copy operations and spatial filters are employed to interpolate the new view. Subjective evaluation of the interpolated views based on the new technique shows that the quality of the edges improves and blending colour effects are significantly re- duced. Moreover, the low complexity view-interpolation technique makes our proposal an appealing candidate for consumer electronic applications such as 3D TV receivers. References [1] D. Scharstein and R. Szeliski, "High-accuracy stereo depth maps using structured light," in IEEE Computer Society Conf. on Computer Vision and Pattern Recog- nition, vol. 1, pp. 195-202, June 2003. [2] Y. Ma, S. Soatto, J. Kosecka, and S. S. Sastry, An Invitation to 3-D Vision. Springer, November 2003. [3] L. McMillan, An Image-Based Approach to Three-Dimensional Computer Graphics. University of North Carolina, April 1997. [4] D. Scharstein and R. Szeliski, "A taxonomy and evaluation of dense two-frame stereo correspondence algorithms," in Int. Journalof Computer Vision, vol. 47, Kluwer Academic Publisher, April-June 2002. [5] M. Bleyer and M. Gelautz, "A layered stereo algorithm using image segmentation and global visibility constraints," in IEEE Int. ConJ. on Image Proc., pp. 2997- 3000,2004. 100 3D Wire-frame Object-Modeling Experiments for Video Surveillance Rob Wijnhoven 1,2 Peter H. N. de With 2,3 1Bosch Security Systems B.V. 2Eindhoven Univ. of Technol. / 3LogicaCMG Glaslaan 2, 5616 LW Eindhoven P.O. Box 513, 5600 MB Eindhoven The Netherlands The Netherlands rob.wijnhoven©nl.bosch.com P.H.N.de.With©tue.nl Abstract We consider model-based object detection for traffic surveillance, aiming at ob- ject classification. Within detected regions-of-interest (ROls) of moving objects in the scene, the orientation of the object is detected using a histogram of gradi- ent directions. For the calculated orientation, a 3D wire-frame model is projected onto the image data and the best matching pixel-position is calculated inside the ROl of the object. 1 Introduction The rapidly increasing capacity of digital storage devices and the low bitrate offered by state-of-the-art video compression standards [I] lead to a strong growth of available video content in systems. This phenomenon introduces the necessity for content man- agement. Video Content Analysis (VCA) algorithms have become an aid in generating descriptions of the video data. For video surveillance, this technology can be used to effectively assist security personnel. State-of-the-art VCA systems comprise object detection and tracking, thereby gen- erating location data of key objects in the video imagery of each camera. Classification of the detected objects is commonly done using the size of the object, where simple camera calibration is applied to compensate for the perspective. However, effects such as shadows and occlusion negatively influence the segmentation process and thus the object classification (e.g. shadows increase the object size, and occlusion decreases the size). Furthermore, when objects cross each other, they may be integrated into one object. For improved scene understanding, more advanced object models are re- quired, taking specific object features from the video into account. The aim of our object modeling is to classify various objects in a reliable way, thereby supporting the decision-making process for a security operator of a CCTV system. To this end, we will present a new algorithm for 3D object detection, which is based on a combination of existing technology. We have experimented with this new system for traffic analysis. The sequel of the paper is as follows. Section 2 lists similar work in the area of model-based object detection. In Section 3 we show the algorithm used for 3D object detection. Results of the matching process are shown in Section 4. Finally, conclusions are drawn and recommendations are given in Section 5. 2 Related work The detection of moving objects in a static background has already been investigated extensively. Object classification or recognition often continues on the result of such a 101 first detection step. Such a second step is the focus of this paper. Schneiderman and Kanade [2] propose statistical training to detect both vehicles and faces in images. Haritaoglu et al. propose the W4 system [3]that uses the object's shape to detect persons and groups of persons. For our work, we focused on model-based approaches. Such approaches are based on two different classes of models: rigid (non-deformable) and non-rigid (deformable) models. Rigid models are commonly used for the detection of objects like vehicles, where non-rigid models are typically used for person detection. A combination of two types of algorithms is presented in [4]. In [5], deformable models are proposed, to make a deviation between several types of vehicles (hatchback, station-car, sedan, minivan). In the presented work, we have focused on rigid object models for the purpose of vehicle classification. In the approaches presented in literature, a division can be made between algorithms that consider full 3D models of objects of interest, and models that are based entirely on image processing in the 2D-space (for example [6]). Processing in the 3D-space is more flexible, because a change in viewpoint does not have significant influence (consider a pan-tilt-zoom camera). Publications [7] and [8] propose a (non-extendible) 3D-box model for the purpose of vehicle tracking. However, this does not allow for object classification. More complex 3D wire-frame models have been considered. Several research groups have been presenting work in the area of model-based object detection and tracking. Much work in this field has been published, as presented in [4,5,9-13]. An overview of published work in this area can be found in [9] and [10]. The process of matching 3D wire-frame models onto images typically is a problem with six degrees of freedom (DOF). However, in the considered general surveillance case, objects are assumed to be located on the ground-plane. This assumption limits the complexity from six DOF to three: each model is rotated along the axis perpendicular to the ground-plane and translated on the ground-plane. Model-based tracking algorithms are commonly divided in three processing steps: Region-Of-Interest (ROl) selection, pose evaluation with refinement, and tracking. In the following, each of these steps will be shortly addressed. In this paper, we concen- trate on the pose evaluation and refinement step. As a first step of model-based tracking, the ROIs are detected, in which objects may be present. This step is mostly applied as a motion-detection step, using algorithms like optical flow [14] or background subtraction [8]. We have used the algorithm proposed in [15]. The pose-evaluation process can be divided in two stages. The first stage determines the orientation of the object. The second stage uses the orientation of the object to determine the translation. Tan et al. propose an orientation histogram to determine an initial pose of the object of interest. In [12], the histogram is built using the results of a line-detection stage on the edge-detection results of the input image. In [16], the authors improve this approach by using the gradient directions of the input image. Peaks in the histogram of these gradient directions are used to determine the most obvious orientations of the object. Next, the model is projected onto the image data using the detected object orientations. The translation is detected by shifting the 2D-projected model over the input image within the ROl and calculating the match for each translation. The best matching translation is considered the location of the object. Pece et al. [17] have presented a novel active-contour algorithm, also applied to 102 vehicle pose estimation and tracking. An initial 3D model is projected onto the input image using the object pose and the camera parameters. Using differences in the gray- level values between pixels on lines perpendicular to the model lines, the model pose parameters are iteratively updated. This method has not been considered. Most publications do not consider an efficient distinction of multiple object models. Commonly, all known models are matched onto the image data sequentially, and the best matching model is selected. This is not scalable when a large number of models has to be used in a real-world application. A generic vehicle model has been proposed in [5], that is decomposed into separate, independently-detectable components. 3 3D Wire-frame model matching At the start, we have implemented the algorithm from Lou et al. [13] for further experiments because the algorithm design is based on logical steps and the results are reasonable. Video images from the camera are processed to segment moving foreground objects from the static background. This is based on the algorithm explained in [15]. The detected moving objects are tracked over time. Each detected object is represented by a Ral (the object's bounding box), and a binary shape mask, representing the detection result at the pixel-level. This information is available for each video frame, during the lifetime of each object. This shape infonnation is considered a first filtering step, and areas outside the detected regions are ignored for further processing. In Figure 1, the detected ROls are visualized as white rectangles. Each detected object in the image is processed independently. The merging and splitting of multiple objects is ignored. Each bounding box that is processed is assumed to contain only one object. In the following subsections, we will consecutively discuss the calculation of the orientation of the object model and the calculation of the translation of the model on the ground-plane. 3.1 Orientation of the object model First, the gradient is calculated for the input image, inside the object's bounding box. A 3x 3 Sobel filter is used in the x- and y-direction to determine the amplitude and the direction of the gradient. All pixels that do not belong to the segmentation mask of the object-detection step are ignored. Also the pixels that have a gradient amplitude below a threshold are ignored (this threshold value has been empirically estimated at about one tenth of the maximum image intensity value). A histogram is created from the computed gradient directions. The bins in the histogram are grouped per two orientation degrees. Next, the histogram is sorted to obtain the most frequently-used orientations. These main orientations are used as the initial model orientations for the subsequent processing step. As can be seen in Figure 1(c), the calculated orientations are close to the actual orientation of each object. The white lines show the calculated main orientation, where the thinner darker lines show the next three main orientations. Figure l(f) shows two examples where this computation is not successful. In the left of the figure, occlusion from static objects in the scene (traffic lights) results in an incorrect calculation. The 103 (a) Typical input image. (b) Gradient magnitude for each ROL (c) Detected four main orientations for each (d) Matched object model. ROL (e) Matching score histogram for each ROL (f) Static occlusion (left) or limited visibility (right) causes incorrect orientation. Figure 1: Process of matching 3D model onto an input image. 104 right of the figure shows a miscalculation caused by the limited visibility of the side of the object. 3.2 Translation of the object model After finding the main orientation angles, the translation of the object-model on the ground-plane is calculated. Together with the orientation, this defines the model lo- cation in the scene. The translation is determined by projecting the model onto the gradient image for each pixel-position in the ROl, and calculating the goodness-of-fit. For the given translation and rotation, a list of two-dimensional object model-lines is requested from the 3D object-model library (described in Subsection 3.3). Before applying translation, a probability mask is created for this set of lines. The values of this mask specify the probability of the particular pixel belonging to any of the model lines (as defined in Equation2). For each pixel-position in the ROl, the probability mask is translated to the corresponding position and the model-match is calculated. The goodness-of-fit function is a novel metric, based on the metrics proposed in [13] and [9]. The first metric is based on both the distance from the current pixel of the input image to the closest projected model line, and the difference between the gradient angle of the respective model line and the input pixel. The second metric [9] is based on the difference in gradient values between each input pixel and the closest model line. A synthetic gradient is calculated by convolving each model line with a Gaussian kernel. We have combined the Gaussian convolution of the model lines [9], with the difference in gradient direction [13]. The combination of these two metrics has shown an improved detection performance. The further verification of this recent finding is still ongoing. The matching score M between the image pixels I and the set of model lines L is defined by M(I,L) = 2..= ((gj,k' rtp)' P(Ij,k,Lp)), (1) j,k where 9j,k defines the normalized gradient vector of the input pixel j, k and rt p defines the normal of the closest line segment Lp. While calculating the gradient image, the vector product (g j,k . rt p) can be calculated simultaneously. The term P(Ij,kl Lp) defines the probability that the current pixel belongs to one of the projected model lines. The term P(lj,k' Lp) is defined as follows (2) where dj,k,p defines the point-to-line distance from the current pixel j, k to the model line Lp (as defined in [13]). The matching score of a typical input image of a traffic scene is shown in Figure l(e). Red/dark pixels show a correct match, where blue/light pixels correspond to an incorrect model match. Finally, the resulting projected 3D models for the best matching pixel-position are superimposed on the cars in Figure l(d). 105 3.3 3D model projection An object model is defined by a set of 3D model-lines. Each model has been created in the external ma deling tool Bletuier+. The models are created using the specifications (size) of the vehicle objects that we are trying to detect, so the size of the model is normalized in the modeling tool. Figure 2(a) shows a side-view from the model drawn over the background image with correct scale and Figure 2(b) shows a 3D-view of the modeled object, that is used for matching. The models are exported from the ma deling tool and loaded at the initialization stage. The Open Graphics Library2 is used to apply a projection of the 3D object to the 2D image coordinates. Therefore, the camera calibration needs to be annotated. The algorithm requests a projected model for a certain pose and translation in the camera image. The projection is calculated and the list of projected model lines is returned. This list of lines is used in the matching process as described in the previous subsections. (a) Modeling using a correctly scaled (b) 3D-view of the model used for real object at the background. matching. Figure 2: Creation of 3D Object Models in Blender. 3.4 Classification Each model is matched independently, so the computational cost of the algorithm is in the order of the number of object models that should be matched. The model that results in the best match is selected as the detected model. The ultimate goal of the model-based classification is to classify each object using a large database of 3D object models. Presently, this processing stage is still at its initial phase. It is known from recent literature that despite using larger databases, efficient implementations are possible [5]. 4 Results We have implemented 3D object models for vehicles in traffic surveillance sequences. The object models were based on the actual size data from the car manufacturers and we used the aforementioned line models. These line models were projected onto the 2D image data. I Blender: OpenSource 3D graphics creation ~ http://www .blender.org/ 20penGL: Open Graphis Library ~ http://www.opengl.org/ 106 Experiments revealed that the camera-calibration step should be performed accu- rately. Incorrect calibration parameters can cause an incorrect projection of the 3D model, which negatively influences the matching algorithm. Calculation of the object orientation is applied using the gradient vectors. In most cases, this results in a match with the actual object orientation. However, sometimes the calculation of the orientation is incorrect (Figure 1(f)). This can be caused by occlusion from static objects in the scene (at the left) or the limited visibility of lines representing the actual direction of the object (at the right). Moreover, the calculated orientation does not take the movement direction of the object into account. Therefore, both the movement direction and the calculated orientation have to be considered in the matching process, where temporal filtering mayalso be useful. It has been experienced that the level of detail of an object model should be limited and a model should not contain too many model lines for optimizing matching accuracy. However, models should resemble sufficient visible lines in the image: matching vehicles with a model of a simple 3D box will most probably not result in a true match. Furthermore, first results with object classification using the sequential matching of multiple object models show that a normalization should be added to compensate for the difference in model size and complexity to obtain a comparable matching score. The model-matching process is computationally intensive when every pixel-position in the object's ROl is considered. Aiming at a real-time implementation, a careful se- lection of the processed pixel-positions should be considered. Preliminary experiments have shown that only processing every fourth pixel-position in the ROl in both the x- and y-direction (roughly a complexity reduction of a factor 16) does not significantly degrade the matching performance. Because the matching score is in general a smooth function (as seen in Figure 1(e)), an iterative searching approach can be considered to refine the matching process. 5 Conclusions and future work We have implemented a 3D wire-frame model-matching algorithm for traffic surveil- lance and presented first experiments. It has been found that an object model is more complex than a simple box and should reflect the real object to some extent, but on the other hand, should not be too detailed. Experiments showed that it is possible to distinguish three different types of vehicles in this way. We also found that the matching can be performed at lower resolution, e.g. at 1/16th of the pixel resolution. We have calculated the model pose for every input frame without tracking. A simple prediction step will drastically lower the computational cost and improve the performance. Also an hierarchical spatial-search can be used for model-matching. Ad- ditionally, from the specification of the models, detection of smaller features (e.g. the distance between wheels) can be combined to improve the matching result. These are typically front windows, wheels and head-lights. Vice versa, this type of information can be used to calibrate the camera. We propose to extend current work into a general object-detection architecture for several application domains. The general architecture consists of multiple "small" de- tectors aiming at finding specific features in the image, and is therefore not specifically limited to the 3D wire-frame model-matching. A separate module then combines the output of all small detectors, for example using a Bayesian network. 107 References [1] E.G.T. Jaspers and J. Groenenboom, "Quantification of the optimal video-coding complexity for cost-efficient storage," in Digest of Tech. Papers of the Int. Conf. on Consumer Electronics, Las Vegas, NV, USA, Jan. 2005, pp. 123-124. [2] H. Schneiderman and T. Kanade, "A statistical model for 3d object detection applied to faces and cars," in IEEE Conference on Computer Vision and Pattern Recognition, June 2000, vol. 1, pp. '(41)-'lbl. [3] I. Haritaoglu, D. Harwood, and L.S. Davis, "W4s: real-time surveillance of people and their activities," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 22, no. 8, pp. 809-830, August 2000. [4] P. Remagnino, A. Baumberg, T. Grove, D. Hogg, T. Tan, A.Worrall, and K.Baker, "An integrated traffic and pedestrian model-based vision system," in Proceedings of British. Machine Vision Confer-ence, BMVC97, September 1997, vol. 2, pp. 380-389. [5] G. Sullivan, A. Worrall, and J. Ferryman, "Visual object recognition using deformable models of vehicles," in Proc. Wor-kshop on Context-Based Vision, June 1995, pp. 75-86. [6] M. Dubuisson, S. Lakshmanan, and A. Jain, "Vehicle segmentation using deformable templates," in Proc. of the International Symposium on Computer Vision (ISCV), November 1995, pp. 581- 586. [7] N. Yung and A. Lai, "Detection of vehicle occlusion using a generalized deformable model," in Proceedings of the IEEE Int. Circuits and Systems, ISCAS'98, June 1998, vol. 4, pp. 154-157. [8] C. Pang, W. Lam, and N. Yung, "A novel method for resolving vehicle occlusion in a monocular traffic-image sequence," IEEE Transactions on Intelligent Transpor-tation Systems, vol. 5, no. 3, pp. 129-141, September 2004. [9] Henner Kollnig and H. H. Nagel, "3d pose estimation by directly matching polyhedral models to gray value gradients," International Journalof Computer Vision, vol. 23, no. 3, pp. 283-302, June 1997. [10] M. Haag and H. Nagel, "Combination of edge element and optical flow estimates for 3d-model- based vehicle tracking in traffic image sequences," International Journalof Computer- Vision, vol. 35, no. 3, pp. 295-319, December 1999. [l l] H. Dahlkarnp, A. Pece, A. Ottlik, and H. Nagel, "Differential analysis oftwo model-based vehicle tracking approaches," in Proceedings of the 26th DAGM-Symposium (DAGM'04), September 2004, pp. 71-78. [12] T.N. Tan, G.D. Sullivan, and K.D. Baker, "Model-based localisation and recognition of road vehicles," International Journalof Computer- Vision, vol. 27, no. 1, pp. 5-25, March 1998. [13] J. Lou, T. Tan, W. Hu, H. Yang, and S. Maybank, "3-d model-based vehicle tracking," IEEE Transactions on Image Processing, vol. 14, no. 10, pp. 1561-1569, October 2005. [14] D. Koller, K. Daniilidis, and H. H. Nagel, "Model-based object tracking in monocular image sequences of road traffic scenes," International Journalof Computer Vision, vol. 10, no. 3, pp. 257-281, June 1993. [15] S. Mueller-Schnciders, T. Jager, H.S. Loos, and W. Niem, "Performance evaluation of a real time video surveillance system," in Proc. of the 2nd IEEE International Workshop on Visual Surueillance and Performance Evaluation of Tracking and Suroeillance, PETS, October 2005, pp. 137-144. [16] T.N. Tan and K.D. Baker, "Efficient image gradient based vehicle localization," IEEE Tromsec- tions on Image Processinq, vol. 9, no. 8, pp. 1343-1356, August 2000. [17] A. Pece and A. Worrall, "Tracking with the em contour algorithm," in 7th European Conference on Computer Vision (ECCV), May 2002, vol. 2350. 108 Multidimensional model of estimated resource usage for multimedia NoC QoS Milan Pastrnak Peter H. N. de With LogicaCMG Nederland B.V. / LogicaCMG Nederland B.V. / Eindhoven University of Technology Eindhoven University of Technology Fac. Electr., SPS, VCA Group Fac. Electr., SPS, VCA Group Den Dolech 2, 5612 AZ Eindhoven Den Dolech 2, 5612 AZ Eindhoven The Netherlands The Netherlands M.Pastrnak©TUE.NL P.H.N.de.With©TUE.NL Abstract Multiprocessor systems are rapidly entering various high-performance computing segments, like multimedia processing. Instead of an increase in processor clock frequency, the new trend is enabling multiple cores in performing processing, e.g. dual or quadrapule CPUs in one subsystem. In this contribution, we address the problem of modeling the resource requirements of multimedia applications for a distributed computation on a multiprocessor system. This paper shows that the estimation of resource requirements based on input data enables the dynamic activation of tasks and run-time redistribution of application tasks. We also formally specify the optimal selection of the eo-executed application with aim to provide the most optimal end-results of such streaming applications within one networks-an-chip (NoC) system. We present a new concept for system optimization which involves the major system parameters and resource usage. Experimental results are based on mapping an arbitrary-shaped MPEG-4 video decoder onto a multiprocessor NoC. 1 Intrad uct ion Multiprocessor systems enable new features for computationally intensive applications, such as multimedia coding, video communication, etc. The parallel computation ca- pacity of multiprocessor systems inherently offers simultaneous execution of several applications. The run-time distribution of different applications or subtasks of ap- plications over the available processors of a target platform introduces an NP-hard problem. The modeling of resource usage on platforms focused mostlyon the usage mod- eling of computational resources with I/O components and priority-based scheduling techniques for real-time systems [3, 4]. Due to the characteristics of a distributed com- putation, we extend this one-dimensional approach covering the real-time characteris- tics of multimedia applications, into a multidimensional model concerning a plurality of resources, such as e.g. communication resources and the storage of data and in- structions [2]. The usage of the architecture becomes more visible with multimedia applications having varying requirements on resources. 109 In this paper, we concentrate on a multimedia processing system featuring a dis- tribuied real-time computation with intelligent application modeling and Quality-of- Service (QoS) control. A novel aspect is to discuss inter-application behavior, where cc-execution is combined with the intra-application view on resource estimation. The reservation of resources is also scalable for different quality-levels, depending on the actual input data. A second contribution of this paper is that we show the technique for a fast search of the optimal quality selection optimizing the overall output for the end user. We dernonstrate this technique using an MPEG-4 video-object decoder al- gorithm that can instantiate up to four-object decoders within the available resources of a realistic clock-cycle true eight-processor system model. 2 QoS architecture and run-time estimation. In order to provide fluent non-interrupted multimedia processing, we employ a design paradigm based on predictable mapping. The growing complexity of a final multipro- cessor system asks for a system design with distributed control. Instead of one central system-level solution, we address a hierarchical approach that can better support the configurability of a target system. The architecture of our QoS concept [1] is based on two levels of negotiat- ing managers. We distinguish a Global QoS manager that controls the total system performance involving all applications, and a set of Local QoS managers controlling individual applications (see Fig. 1). Figure 1: Hierarchical QoS architecture view. Each application is divided into several jobs, and the platform should support each job for implementation by using the system resources and the software libraries. A 110 job is split into different tasks, e.g. for an MPEG-4 decoder this would be split into the video header parsing, the inverse quantization, IDCT, etc. In order to execute a job on a multiprocessor system, tasks are mapped onto processors and other resources (memory, communication resources, computation, etc) and each job is divided in vari- ous communicating tasks. For each job i, the set of different quality levels is a-priori defined and in this work based on a finite set of possible qualities. For each job and a related quality level, we provide a detailed task description for the QoS subsystem management. In our research, we study object-based video applications based on MPEG-4. These applications offer an independent set of tools used for decoding. The applications also allow the combination of several independent objects into one image, which naturally supports the possibility of Quality-of-Service management. An object-based video application is composed of several jobs, e.g. the background image decoding, audio decoding, and several instances of an arbitrary-shaped video-object decoder. For each job and related quality level, we provide a detailed data-flow graph and resource re- quirements description. Run-time resource estimation is matching the algorithm characteristics of processing using specific input data. With respect to the modularity of our system design, we keep the details of algorithm at the job level. The estimation of resources is hence a part of the Local QoS module. The possible high variation in input data and the cost of reconfiguration are constraining our estimation to provide the maximum over a certain time interval. With respect to our experimental object-based video decoder, we set this interval to the length of a Group of Video Object planes (GOV). CPU workload [kilocloek cycles] 45 CPU workload 40 [küoclcck cycles] 35 30 25 45 20 40 15 35 10 3U ~ 2' 20 15 10 5 1 Taskindex (a) Resource estimation per each frame. (b) Min-max view on the 15 VOPs of one GOV. Figure 2: Data-level parallelism for processing of video texture. III Figure 2 portrays the overall estimation of resource usage for our case, where Fig- ure 2a illustrates the estimation of each task involved in the decoding (video-header parsing, shape decoding, texture decoding, padding, and deblocking & deringing fil- ters). The reader can observe that the computation needs can vary between 5-32k clock cycles. With respect to the above-mentioned granularity of a possible QoS sys- tem reconfiguration, we need to find the maximum of the resource requirements on the defined set of required resources for the given input data. We project the estimation time interval, in order to simplify the representation of minimsati/moaimum over the whole interval (in our experimental setup 15 VOPs). The maaimum is required for reservation of resources for guaranteed quality level, while the minimum indicates the requirements that will be used over the whole period of time. The usefulness of the minimum for more advanced control provides many adaptation strategies for further exploration, which are however, beyond the scope of this paper. 3 Resource modeling In this section, we provide details of modeling the application with respect of com- putation, communication, and storage. The model of the required resources of an application is followed by the model of the available system resources. 3.1 Application consumption Let us now outline the resource-usage model for one job. Formally, the range of possible quality settings mapped into a vector q of a job i leads to a job resource-consumption R for a resource type J, which is described by a function R,J(qi) = !J(qi, dp), where dp is an arbitrary input-data parameter that mostly influences the complexity of the computation. For example, in our arbitrary-shaped VO decoder, it is the size of a video object in terms of macroblocks. The function f specifies the requested amount of re- sources for a particular job. The resource type is J E {C, D, J, B, T}, where C denotes the computation resources; D the data memory per task; J the instruction memory per task; B the required communication-port bandwidth; and T the bandwidth on each connection between a pair of tasks. For one job i, we specify the quality setting, so that for a set of jobs the set of chosen quality values leads to a chosen quality vector qc, in which the vector components refer to the chosen quality settings of individual jobs. Similar reasoning can be held for the required resources of R,J, leading to a vector of resources RJ. For example, when J refers to computations only, Rc( q.,, dp) is representing the required vector of computations for a set of jobs at chosen quality level q., and input-data dependence dp. The vector Rc( qe) can be used for finding the accumulated computation costs per set of jobs executed at quality settings qe. If in the mapping this requirement is coupled to the available resources, the requirements can be evaluated. 112 Required resource Required CPU resource per one period [kiloclock cycles] Estimated maximum over the ~GOVlength ~ /QUality level1 _ V- co...., ,.,.-' "" 'X Qualitylsvel2 ,= Task / Connection '. r:::S'" 'QuaUty level 3 task 1 task 3 task 5 task 2 task 4 (a) Model of different quality levels per (b) Multi-dimensional model of resources, resource (J=C), Figure 3: Resource consumption model of a job i, Figure 3 illustrates the modeling of a job i that is scalable to three quality levels. Figure 3(a) portrays the computational requirements of that job. The points represent the maximum requirements over the reservation period (in our case GOV length), Fig- ure 3(b) visualizes the resource estimation for different types of resources as described above. 3.2 Modeling of system resources The system resources that are available for a job execution are modeled as described below. We model the available computation and storage resources per processing tile. If P denotes the set of processing tiles, then we denote total available resources as follows: computation resources of a tile as Pc, data storage capacity as Pd, instruction storage capacity as P;_, and communication port capacity as Pb' The communication provision is modeled per pair of processing tiles as the amount of data that communicated per time unit as Tpo..pb- The model of system resources is illustrated in Figure 4. 4 Optimization concept for multidimensional sys- tem control 4.1 Formal definition Generally, the task-to-processor assignment is a search for the distribution of tasks with certain requirements over processors of the platform. There are several analytical approaches that solve this problem. However, most of them assume a shared-memory 113 Modeled resource Processing tile I Connection P. - Pb Figure 4: System resource model, with explicitly modeled resource consumption at run-time system. model and one communication resource (like a bus). In our case, we will include a detailed model for communication resources per connection and also a distributed memory model. We also provide a formal definition of our optimization problem. Let us now briefly formulate the optimization problem for the complete system and a set of jobs. We assume a set of processing tiles {PI, P2, ... } with the following available resources per processing tile: number of clock cycles of the CPU, size of the data and instruction memory, bandwidth of the communication assist; and for every possible connection {Pm,Pn} between involved processing tiles, the bandwidth and input/output FIFO buffer sizes. Let RA be the collection of all vectors of all available resource types from all tiles of the platform, which are organized into a matrix. That matrix has different tiles P over the row index and resource types J over the column index. We define the benefit fJi,qi as the contribution to the overall system value function (e.g. in our case quality). If we execute the job i at the quality level qi, then the matrix R,qi stands for all resource requirements of the job i at the chosen quality level q.i. Now, our optimization problem for QoS management of the complete system is formulated as N N max L fJi,qi for 1 < qi < Qi,max, subject to L R,J,qi < RA,J· i=O i=O It should be noted that RA,J = z=p RA (P, J), so the sum of all tile resources of the same type (the sum of all elements of one column in the matrix RA· 114 4.2 Heuristic optimization algorithm We now provide a heuristic algorithm that searches the optimal mapping of a job to the system resources. First, at the start of the optimization, the clustering of occupied resources is enabled. Second, the resources are scanned in a priority-ordered way, starting with the most utilized resource. Clustering is applied to simplify the modeling of reserved resources. At the specific resource (processing tiles, connections), the reserved resources are clustered together and modeled as one big task with an certain total resource consumption. The reordering of resource types is evaluated. The priority order can vary over time. Our assumption is that, if there is a conflict between available and required resources, it will be on the mostly utilized resources. The algorithm starts on a request of a job i for reconfiguration of the actual allo- cation. The start or termination of a job is a special case of the job reconfiguration. Beginning with the highest quality level, the algorithm checks the availability to map the task with the specified resource requirements to the platform resources (for each type J). In the case of a possible mapping, it checks the availability of the next type of resources. The algorithm stops if the platform has all resource types available for a job mapping. Otherwise, it decreases the quality of a job and tries to find a mapping on the conflicting type of resources. If it would not succeed even for the lowest quality of the job, the job cannot be mapped. 4.3 Experimental results We have developed a simulation framework that implements the above optimization presented in Section 4.1. First results are now becoming available, showing that with this optimization a higher overall quality is obtained when compared to the conven- tional approach. Moreover, the reaction time of the system to change the job conditions is faster than in the original case. P. have found that with more than about six jobs, the computation of the optimal operation point becomes too complex for run-time allocation. We have implemented the heuristic optimization algorithm, which was published recently [6]. The current work concentrates on negotiating the qualities among jobs, depending on the benefit of a job execution at certain level. The modeling of resources and the resource conflicts were based on the N-dimensional models that are concep- tually presented in this paper. The experimental setup has considered three resource types: computation, data storage, and communication. At the time of experiments, not all data was available for the five resource types indicated. Nevertheless, the pre- liminary experiments have shown the benefits of the modeling technique for run-time QoS system management. 115 5 Concl usions We have presented a QoS management system for multiprocessor platforms designed for executing multiple multimedia applications. The QoS control system is based on modeling of the estimated resource requirements. The modeling of different types of resources, involving both required and available resources, allow more efficient system design and usage of a system. A novel system aspect is to include the most influencing input-data parameter within the estimation model, to more quickly and flexibly react on varying system conditions (e.g. caused by varying object sizes in MPEG-4). Another important system aspect is the search of the maximum quality over a limited time interval. This balances the system adaptivity with a simplified QoS management by decreasing the negative effect of too frequent system reconfigurations. The hierarchical distribution of responsibilities between system control and intra-application control (two-layer management) speeds up the design time for a new system by reusing the estimation technique for all required resources. The proposed clustering technique simplifies the N:l mapping problem of a job allocation to a 1:1 mapping problem. We are currently gathering more system data in order to execute multiple multimedia applications simultaneously, while monitoring the usage of a plurality of resource types. References [1] M. Pastrnak, P. Poplavko, P.H.N. de With, J. van Meerbergen, "Hierarchical QoS concept for multiprocessor system-on-chip" , Proc. Workshop On Resource Manage- ment for Media Processing in Networked Embedded Systems, pp. 139-142, March 2005. [2] D.E. Culler, J .P. Singh, and A. Gupta, "Parallel computer architecture: a hard- ware/software approach", Morgan Kaufmann Publishers, Inc., 1999. [3] Z. Deng and J.W.-S. Liu, "Scheduling real-time applications in an open environ- ment", Proc. IEEE Real-Time Systems Symposium, pp. 308-319, December 1997. [4] J. Regehr and J. Stankovic, "HLS: A framework for compsing soft real-time solied- uiers", In Proc. IEEE Real-Time Systems Symposium, pp. 3-14, December 2001. [5] M. Pastrnak, P. Poplavko, P.H. N. de With, J. van Meerbergen, "Novel QoS model for mapping of MPEG-4 coding onto MP-NoC", Proc. 9th IEEE Int. Symp. on Consumer Electronics (ISCE), pp. 93-98, June 2005. [6] M. Pastrnak, P.H. N. de With, J. van Meerbergen, "Realization of QoS management using negotiation algorithms for multiprocessor NoC", Proc. 38th IEEE Int. Symp. on Circuits and Systems (ISCAS 06), Greece, May 2006. 116 Shortest Circular Paths on Planar Graphs Dirk Farin Peter H. N. de With Eindhoven University of Technology LogicaCMG & TUle P.O.Box 513 P.O.Box 513 5600 MB Eindhoven 5600 MB Eindhoven The Netherlands The Netherlands d.s.farin@tue.nl p.h.n.de.with@tue.nl Abstract The shortest circular-path problem is similar to the ordinary shortest path problem, but instead of specifying a distinguished starting and end node, the path has to form a closed loop. This problem has several applications in optimization problems as they occur in image segmentation or shape matching. We propose a new algorithm to compute shortest circular paths on planar graphs that has a typical computation time of O(lVllog IVI) and a worst case complexity of O(lVllog21V1). The fastest previously known algorithm for this problem has an average computation time of O(lVllog2 lVI) and a worst case performance of O(1V1210g IVI)· 1 Introduction Computing shortest paths in graphs is a well-studied problem with numerous applica- tions in coding (Viterbi decoding), optimization, networking, and pattern analysis. A closely related problem is the computation of shortest circular paths, i.e. closed paths for which no specific start node or end node is known. This problem arises in several ar- eas like video-object segmentation [2], or shape matching [4]. Surprisingly, the problem of shortest circular paths has so far received little attention. Previously proposed algo- rithms include the Multiple Search Algorithm (MSA) or the Image Patching Algorithm (IPA) [5]. However, MSA has a high computational complexity of O(IV13j210g lVI), where WI is the number of nodes, and the IPA cannot guarantee to find the optimal solution. The fastest previously known algorithm for this problem is a branch-and- bound algorithm [1] with an average computation time of O(IVllog2IVI) and a worst case performance of O(IV1210g lVI)· We propose a new algorithm for computing shortest circular paths with a compu- tation complexity of only O(IVllog lVI) in the average case and O(IVllog2IV[) in the worst case. Note that the average computation complexity of our algorithm is opti- mal since it equals the complexity of the standard shortest path problem. For graphs with nodes on a regular lattice, the computation time of our algorithm can be further reduced with dynamic-programming techniques to only O(IVI) in the average case. The paper first introduces the shortest circular-path problem in Section 2 and derives some basic properties of shortest paths in Section 3. The new algorithm is described in Section 4 and its computational complexity is analysed in Section 5. 117 În~iQe FI outside FE (al Circular-grid graph. (b) General planar graph. Figure 1: Two graphs with examples of valid circular paths (dark nodes). In each, an example cut-path (path between inside and outside face) is indicated. 2 Shortest circular-path problem Let C = (V, E) be a planar graph with nodes V and edges E. Furthermore, the graph is assumed to be embedded in the plane with two of its faces denoted as FJ, FE (see Fig. I). We denote any path connecting FJ and FE a cut-path p. Furthermore, we define that a cyclic path p = u, -v-+ Vi is a circular path on the graph C if P and any cut-path p have at least one node in common. Intuitively, this means that a circular path p separates the faces FJ (interior) and FE (exterior). Instead of computing a shortest circular path on the original graph, it is convenient to transform it first into a corridor graph. The construction of the corridor graph can be imagined as cutting the original ring-shaped graph along a cut-path to obtain a lane-shaped graph. Formally, this construction can be described 8S follows. Construction (corridor graph): Let G = (V, E) be 3. planar graph and j5 = VIV2·· ·VN a cut-path between FJ and FE, consisting of the nodes V = {VI, ... ,VNJ. Furthermore, we assume the following property of C: if Vn is the set of nodes adjacent to nodes in V, then Vn comprises exactly two connected components Vz, Vr. If C has this property, we can transform C into a corridor graph C' = (V', E') as follows. We set V' = V U V', where V' = {v~, ... , v'tJ} forms a copy of V. The edges are defined as E' = (E \(11,. x V)) U {{Vi E v;,v~ E V'} I {vi,vd E E}. (1) '--v-----' cut graph be- reconnect Fr with \.T' tween Vr and V This copies the nodes V on the cut-path to V' and reconnects the adjacent nodes Vz and v,. such that Vz connects only to V, and V;. only to V'. The construction is visualized in Fig. 2. Within the corridor graph, searching for a circular path can be described easily as searching for a path from the "left side" V to the right side V' with the additional constraint that a path starting at u, must end in v;. Even though a general planar graph can be transformed into a corridor graph by cutting along any arbitrary cut- path, care must be taken because the shortest circular-path algorithms operating on the corridor graph can only find paths that do not cross the cut-path more than once. 118 corridor graph (a) The circular input graph is cut into a lane- shaped corridor graph. (b) The nodes on the cut and (c) The nodes on the cut are duplicated the left and right neighbors. and the graph is cut. Figure 2: The input graph is cut along a cut-path to get a corridor graph. The computation of a suitable cut-path is included in the main description of our algorithm. 3 Preliminary considerations about shortest paths In the construction of our algorithm, we repeatedly make use of the following theorem about shortest paths. Theorem: Let G = (V, E) with V = {Vi}i be a graph and let u = Vi, Vi2 ... Vin and W = Vk, Vk2 ... Vk= be two minimum-cost paths. Then we can state that if u and w have two nodes vp and vq in common, there is a path w' = Vk, ... Vk= with the same cost as w, which has a common subpath Su = vp .,..... vq with path u. Proof If Su and Sw have equal cost, there is nothing to show. Hence, assume that the two subpaths Su, Sw between vp and vq have different cost. Then, the cost of either s., or Sw must be lower than the other. Let us assume that the cost of s., is lower than the cost of Sw. But then w cannot have minimum cost, because the cost can be lowered by replacing the subpath Sw with Su. 0 As a direct consequence of this theorem, we can state the following two corollaries. Corollary 1: Minimum-cost paths cross at most once.' 1 In fact, minimum-cost paths can cross more than once, but there is always a path of similar cost that does not cross more than once. Hence, when searching for a minimum-cost path, we can assume that they do not cross more than once. 119 close circular path transform graph into compute two initial corridor graph bounding paths add new bounding path In the middle and recurse Figure 3: Overview of the shortest circular-path algorithm. Corollary 2: If two paths share a common starting node, both paths will share a common subpath to their end node until both paths split. After the split, the paths will not cross. Our algorithm also exploits one property of the Dijkstra algorithm, which is em- ployed in our algorithm to compute ordinary shortest paths. We use the fact that the Dijkstra algorithm not only computes the shortest path between two nodes, but the full shortest-path tree to all nodes, rooted at the starting node. 4 Shortest Circular-Path Algorithm Step 1: Tr ansforrn graph into corridor graph The first step of our algorithm (see also Fig. 3) is to cut the graph to create a corridor graph as introduced in Section 2. The important point is that it must be ensured that the path j5, along which the graph is cut open, does not cross the circular path more than once. This can be achieved by computing a shortest path between the nodes of the faces FT and FE. Because of Corollary 1, this path will cross the circular path exactly once. The problem of finding a shortest circular path is now reduced to finding the shortest path u: "'-'""+ V; between the set of nodes V and V'. In the following, we draw V and V' on the left and right sides of the corridor graph (Fig. 4). Step 2: Compute two initial bounding paths In the next step, the shortest path between VI and v~, labelled (a), and the shortest path between VN and v'tv, path (b), is computed, where N = WI = W'l. Often, these two paths (a) and (b) will touch like shown in Fig. 4, e.g., because the edges in the center of the graph have ;:J. low cost. Step 3/Case 1: Bounding paths do touch For the case that the two bounding paths touch, the shortest circular path (c) can be computed immediately, because it is known that (c) also has the common subpath VI "'-'""+ v,.. Hence, the shortest circular path can be obtained by computing the ordinary shortest path between v,. and VI, within the area between (a) and (b), as indicated by the dashed line in Fig. 4. Note that the search for v, "'-'""+ VI can be implemented more efficiently by searching backwards from VI "'-'""+ V,.. In this case, the search can be restricted to the left area, since the shortest-path tree for the right area, rooted at v,., is already known from the previous search. 120 V1 : -- -- - -- - - - -- ---- -- -- -- - - - --- - - - -- - - - - - - -- -- - ----- --- --- ---- -- v1' (a) v ;....-------_ (c) V' ,(b) , vN ----- - ----- -- - - -- - - - - -- --- - -- --- -- --- --- -- --- - -- - --- - - - --- -- - VN Figure 4: (Step 3/Case 1) The initial shortest paths (a) and (b) have a common subpath In this case, the shortest circular path (c) can be computed directly in one VI ""'"' Vr. more step by connecting Vr with VI through a shortest path (dashed line). Step 3jCase 2: Bounding paths do not touch Case 2 uses a recursive approach to continuously split the graph into smaller graphs until the shortest circular-path problem can be solved similarly as in Case 1. The input of each recursion is an input graph which is bounded to the top and bottom by shortest paths (a) and (b). Let us denote the top bounding path (a) as Va ""'"' v; and the bottom bounding path (b) as Vb ""'"' v~. Note that both paths are circular paths and that initiallyu, = VI and Vb = VN0 2 We now compute a shortest- path tree, starting from the middle node Vc = V(a+blj2 at the left side of the graph (Fig. 5). In one run of the Dijkstra algorithm, we obtain all shortest paths to the nodes between v~ and v~ at the right side. Note that we can limit the computation to the area between the two bounding paths (a),(b). If we consider the shortest paths between Vc and the right side of the graph, we see that the path Vc ._,...,v; obviously joins with (a). As we consider destination nodes v~ further down (k > a), there is generally a point from which onwards the shortest path does not join (a) anymore. In fact, there is a node v~, A < c which is the last node (from top to bottom) for which the shortest path Vc ""'"' v~ touches (a). Let us denote this path as (d), like it is depicted in Fig. 5. Note that this results in a similar sit.nation as in Case 1. Any circular path Vi -v-> V;' with a ::::; A is known to include i ::::; the common subpath of (a) and (d). This range is identified as A = [a; Al. We can now compute the shortest circular path that starts and ends within range A in a single step, similarly to Case 1 (see Fig. 6). A symmetrical process can be carried out to find the shortest circular path for the area B at the bottom of the considered graph. When the shortest circular path in each of the ranges A and B are known, we have to further consider only the remaining range in between (Fig. 7). Since we also know the path Vc -v-> v~, denoted as (c), we can split the problem for the remaining range recursively, by first considering the graph between (f) and (c) with start nodes VA+lo ... ,Vc-I, and similarly the graph between (c) and (g) with start nodes Vc+1,"" VB-I' Once all shortest circular paths for all ranges of nodes along the cut are known, we simply select the shortest of them as the global solution. 2In later recursion steps, Va and Vb change to the new bounding paths (for example to path (f) and (c) during recursion 10r (c) and (g) during recursion 2 in Figure 7). 121 v c ', ~ -, -, , \~e) ~~~-IVB' (b) "-,,-~ ~~~/ ~B ! ~ vN • - - -- -- - ---- ------ - ---- -- --- -- - - - -- ---- -- -- - - --------- ------- 'i!vN' Figure 5: A shortest-path tree is computed, starting at vc, which is the node in the middle of the left side. The bottom-most node v~ on the right side, for which Vc "" v~ joins the path (a) is denoted as v~ and the corresponding path as (d). Similarly, we obtain v~ as the top-most node on the right side, for which Vc "" v~ (e) still joins the path (b). Furthermore, we have computed the circular path Vc --.--. v; for the center node VC' !~'.------------------------------------------------~------------,'11 AGlI. v -~ IA f,! t.. "-.... ......._____J_cta,) ___.:::::::..--: .....----::::-- I v ~.if' , VA :~~""~~ '" '~---_--..:--:----::..::~-- t I VA i (f)---------------~~~~~;1~--- 1 Figure 6: Given (a) and (d), we know that all shortest circular paths in range A include the subpath VI "" VC' Hence, we search for a shortest path starting from V{ in the indicated direction to VC' This is the shortest circular path within range A. Note that this search can be restricted to the area between (a) and (d). The path (f) is the shortest circular path VA "" v~, which will be used as upper-bound path to further reduce the graph size in the recursion step. A B Figure 7: Regions A and B are already processed, only shortest circular paths in the range in between are unknown. This range is processed recursively, first processing the graph between (f) and (c), and then between (c) and (g). 122 operation count 1e+08 ------- ~------- - --------- -".---------~-- ----- ---.--- ----- ---_. ----- ------ i-r':': : : ... "... 1e+07 =~=~:::I~:~:~::se, >,..~ which is given by 'l/Jk = (PI,al,a2) (7) For the comparison 900 different parameterizations are used, this set 'l/J is given by 'l/J = { 'l/Jk I PI E {0.55, 0.6, .. , 0.95}, al,2 E {0.05, 0.1, .. , 0.5}, k = 1, ..,900 } (8) The range of the standard deviations al,2 is limited, because for larger values the two Gaussians will fuse together to one distribution, which does not contribute to the performance comparison. Figure 2 presents three density functions based on these parameterizations. The strategies are compared, according to definition 4, on the basis of accuracy after a certain amount of computation time. The accuracy is quantified by means of the mode bias. Definition 7 The mode bias B'S of a strategy S after r iterationsfor a 2-GMM 'l/Jk is the absolute difference between an estimated mode ii" and the nearest mode in the underlying model [v . and is given by (9) The mode bias is detennined foreach 'l/Jk E 'l/J. Figure 2 presents the mode biases in an image representation. Each pixel corresponds to a 'l/Jk and the gray intensity represents the mode bias after the specified number of iterations. In order to relate the mode bias to a strategy, all the mode biases should be combined to one bias, called the strategy bias. Therefore the following assumption is needed. Assumption 1 It is assumed that each 'l/Jk has equal probability of occurrence, because of the absence of prior knowledge about the a priori probabilities. The strategy bias Bs is then defined as follows. Definition 8 The strategy bias Bs is the average ofmode biases after r iterationsfor the set 'l/J, and is given by (10) The optimal strategy is detennined by means of accuracy and computation time. The com- putation time Cs of a strategy is detennined by the number of iterations multiplied with the number of complex operations per iteration (convolutions in case of imaging). The mean shift consists for example of two complex operations. The optimal strategy is then defined as follows. Definition 9 The optimal strategy S* is the strategy for which the strategy bias Bs is always a minimum for after any amount of computation time Cs: S' = args { min {Bs} I Cs}. (11) 3.2 Scale Selection Strategies Five scale selection strategies are compared by means of the approach as presented before in order to select the best strategy. Two types of strategies exist: passive and active. In case of an active strategy the scale is updated each iteration. This changes the mean shift in equation (4) to 6.Nl(yr, as)' The scale selection procedure should also be initialized. An important observation is the fact that the standard deviation of the data set Sy is a kind of upper bound of the scale a. This is experimentally investigated and also illustrated in figure I. The standard deviation or fractions of it are therefore used to initialize the scale selection procedure. 128 -$2 : 0"1 = 0.2,0":;2 = 0.3 : al = 0.45,(12 = o. a :a = 0.3,0"2 = OA f y Figure 2: Three 2-GMMs '1f;1,2,3 with PI = 0.6 (left). A mode is estimated for each '1f;i by means of scale selection strategy Il. The mode biases B~ (top-right) and B~o (bottom-right) presented in an image representation after 5 and 20 iterations, respectively. Each pixel corresponds 10 a 2-GMM '1f;i and the intensity represents the mode bias (darker is smaller bias). 3.2.1 I - Passive Strategy The passive strategy uses different fractions of the standard deviation, and is given by r Sy CT, = Vi. (12) This strategy is used in the approach which was presented before. Figure 3 presents two important results. The left figure presents the relation between the selected fraction T and the strategy bias after a certain number of iterations. This figure shows that the minimal strategy bias for a certain fraction T* is achieved after a fixed number of iterations r. This is actually quite logical, because the fraction controls the scale and for a large scale we have fast but less accurate convergence and for a small scale we have slow but accurate convergence. The right figure presents the relation between the optimal fraction T* and the iteration number r. This turned out to be a linear relation, which is estimated as T*(r) = argmin{ T Bsi T} R::: O.24r + 3, 'rIr> l. (13) The computational cost of the passive strategy is just based on the number of iterations and the mean shift computation, so it is equal to: C, = 2r. 3.2.2 11 - Active-Passive Strategy The active-passive strategy is based on equation (13); the relation between the optimal fraction and the iteration number. The strategy updates the scale based on the iteration number: Sy CT;; = (14) ~ Sy (15) JO.24r +3 This strategy has the same computational complexity as the passive strategy: CII = 2r. 3.2.3 m - Measured Variance Strategy The third strategy is proposed in [8]. The scale is initialized with a fraction T of the standard deviation, and with each iteration it is updated based on the measured variance. 129 'r ,~ ,. ,~ 'e 2(1 Figure 3: The strategy bias 8(' of strategy I as a function of the initialization parameter T, after a fixed number of iterations. The minimum strategy bias is achieved for each fraction T after a specific number of iterations (left). The relation between the number of iterations r and the optimal T* is shown to be linear (right). Definition 10 The m.easured variance am(y, a)2 is the variance determined at position Y and at scale a: 2.:i(Yi - y)2Gu(Yi - y) (16) 2.:i GU(Yi - y) This special variance is used to update the range scale as follows: ~ if r < 1 (17) { a,n(yr-l)a~Il) otherwise The computational complexity of this strategy is less efficient with respect to the previous two, because the computation of the measured variance is an extra complex operation: CIII = 3r - 1. The main drawback of the measured variance is that it converges to zero, while a mode is not yet estimated. 3.2.4 IV - Heuristic Strategy The heuristic strategy is designed to avoid the zero convergence problem of the measured vari- ance approach. It takes into account that the measured variance is biased with respect to the 'real' variance within a density function. Therefore, is the unbiased variance au introduced. Definition 11 The unbiased variance au is the variance of a Gaussian distribution measured by means of am. It is given by a2am(y, a)2 (18) 2 a - am(y, a)2' This approach becomes instahle if la2 - am(y,a)21 -4 0, the unbiased variance goes to infinity in those cases. To avoid this instability, the following heuristic strategy is proposed: if r < 1 else if ar-I> y ar'u-1 > arrrt-1 (19) else if a"-l y > V2arm-1 otherwise The unbiased variance depends mainly on the measured variance and does not introduce another complex operation, so the computational complexity is equal to: CIV = 3r - 1. 130 3.2.5 V - Correlation Maximization Strategy The last strategy maximizes the correlation of the data set with a Gaussian. This approach is followed by Comaniciu in [2]. He concluded that the optimal scale is the scale which is equal to the standard deviation of the density function where the considered mode belongs to, because it maximizes the norm of the mean shift vector. Definition 12 The correlation between two Gaussian density functions multiplied with the square root ofthe scale is maximized, ifthe two scales are equal to each other: (J* = arg max{ GaG * VO'Ga} = (JG. (20) a In order to maximize the correlation with one of the distributions in the density function, the first derivative to the scale should be equal to zero: o O(J {f * y'aGa}(y) = O. (21 ) This corresponds to maximization of the kernel density estimate multiplied with the square root of the scale for which the first derivative should be equal to zero. It is solved as follows: This is rewritten to the following, which is equal to twice the measured variance as introduced in equation (16): Correlation maximization strategy is then given by 7' if r < 1 (Jv (22) otherwise The computational complexity of this strategy is equal to the complexity of the measured variance strategy: Cv = 3r - l. Drawback of this method is its assumption that the mixture fy consists of Gaussians. 4 Result and Discussion The experiment as described in section 3.1 is implemented for the strategies as presented in section 3.2. The performance curves of the strategies are presented in figure 4. It is important to note that the optimized initial fraction T is used for each strategy except for strategy IT, in order to present the best performance of a strategy after r iterations. The performance curves show that the passive and active-passive strategies are the best strategies. And since the active-passive strategy is the optimized passive strategy, is this one identified as the best strategy, because it does not require prior knowledge about the number of iterations. Since the set of Gaussian mixture models is large, and the methods that assume Gaussian models (strategies IIT,IV and V) perform less good, we assume that this strategy is in general best strategy for any mixture of two processes. 131 - I-Passive - I1- Active-Passive """ 111- Measured Variance - _. IV - Heuristic - V - Correlation Maximization Bs ""'" '''''''''' "0",,,,,,,, - .... _ Figure 4: Comparison of the five discussed strategies, the passive and the active-passive strategies are actually on top of each other. This comparison showed that these two strategies are the best strategies. 5 Concluding Remarks Adaptive scale selection for mean shift based mode seeking in a framework of a mixture of two processes is investigated and the best scale selection strategy is the active-passive strategy. It is based on the important discovery of the linear relation between the optimal scale fraction 'I' after a number of iterations r. Some questions are still open. First of all the logic of this linear relation is not clear. And second the performance is just considered for a density function, which corresponds to a case with an infinite number of samples. The influence of the number of samples on scale selection is also important, especially in case of small samples sizes, because of the increased probability that spurious modes occur. References [I] Y.Z. Cheng. Mean shift, mode seeking, and clustering. IEEE TPAM1, 17(8):790-799, August 1995. [2] D. Comaniciu. An algorithm for data-driven bandwidth selection. IEEE TPAM I, 25(2):281 288,2003. [3J 1). Comaniciu and P. Meer. Mean shift analysis and applications. In ICCV, pages 1197-1203, 1999. [4] D. Comaniciu and P. Meer. Mean shift: A robust approach toward feature space analysis. IEEE TPAMI, 24(5):603-619,2002. [5] K. Fukunaga and L. Hostetier. The estimation of the gradient of a density function, with applications in pattern recognition. IEEE TIT, 21 (1):32-40, 1975. [6] L. D. Griffin and M. Lillholm. Mode estimation using pessimistic scale space tracking. In Scale-Space, pages 266-280,2003. [7] B. M. ter Haar Romeny. Front-End Vision and Multi-Scale Image Analysis: Multi-Scale Computer Vision Theory and Applications, written in Mathematica. Kluwer Academic Publishers, 2003. [8] M. van Staalduinen, E. Backer, and J.C.A. van del' Lubbe. Robust dominant mode estimation. In ASCI, pages 409-416, Heijen, The Netherlands, June 2005. [9] J. van de Weijer and R. van den Boomgaard. Local mode filtering. In CVPR (2), pages 428-433, 200 I. 132 NEW RESULTS FOR RELAY CHANNELS Edward C. van der Meulen and Peter Vanroose Katholieke Universiteit Leuven AB IS Training & Consulting Celestijnenlaan 200 B Diestsevest 32 B-300l Leuven, Belgium B-3000 Leuven, Belgium Edward.vanderMeulen@wis.kuleuven.be P.Vanroose@ieee.org For two examples of the discrete memoryless relay channel we evaluate the block Markov lower bound and upper bounds of Cover and El Gamal (1979). For one of these channels this gives the capacity, while for the other channel this gives weaker bounds than known before. Next we consider a particular 4-terminal deterministic relay networkfor which we es- tablisli capacity. We also develop a uniquely decodable code strategy for this channel, thereby obtaining a constructive lower bound for its capacity. 1 The relay channel Multi-user information theory was initiated by Shannon in his landmark 1961 paper [1J. Multiuser communication channels are characterized by the fact that more than just one sender-receiver pair is using the channel. All users cooperate in order to achieve an overall good transmission, thus maximizing the overall transmission capacity. The relay channel is a three-terminal channel with two channel inputs and two outputs, but the relay input and output are controlled by a single relay terminal. The only task of this relay terminal is to help transmission of information between the two other terminals, hence there is only one information stream going through the channel. RELAY TERMINAL XR YR RELAY X y ENCODER CHANNEL DECODER \ The symbols X and Y will be used to denote the channel input and output respectively, and XR and YR to denote the relay input and output to the channel. A particular (discrete memoryless) 133 relay channel is completely described by its (finite) input alphabets &:" and &:"R, its output alphabets '!Y and '!9R, and its transition probability matrix PYYRlxXR. 2 Upper and lower bounds The relay channel was introduced by van der Meulen [2] in 1971. A general single-letter characterization for its capacity is still not known. The following upper and lower bounds on the capacity of the general discrete memoryless (d.m.) relay channel were established in 1979 by Cover and El Gamal [3]: 't?.:::; max min {I(XXR ; Y) , I(X ; YYR 1XR)}, (I) PXXR (2) where the maxima are taken over all joint channel input probability assignments PXXR (X,XR). Upper bound (1) is called the max-fiow min-cut bound, or cut-set bound. Lower bound (2) is called the block-Markov lower bound and is achieved by a decode-and-forward strategy. A third lower bound on the capacity of the d.m. relay channel, given in [2] and [3], is: 't? :::::max max I(X ; Y 1XR = XR), (3) Px XR There exist two more lower bounds on the capacity of the d.m. relay channel, viz. the gener- alized block-Markov bound given by expression (4) in [4], and the so-called side-information bound given by Theorem 6 of [3]. The latter is based on the compress-and-forward technique which uses Wyner-Ziv source coding. It has not been attempted in this paper to evaluate the last two bounds; this is left for future research. 3 Two historic examples revisited In his 1971 paper [2], van der Meulen presents two nontrivial examples of relay channels (numbered 4 and 5) for which he gives upper and lower bounds to their capacity. Optimal- ity of these bounds has never been proved, nor were the Cover and El Gamal bounds ever evaluated, or for that matter the capacity of these two channels established. 134 Example 4: YYR YYR YYR YYR XXR 00 Ol 10 11 00 0.5 0 0 0.5 10 0 0.5 0.5 0 Ol 0 0 0 11 0 0 0 The Cover and El Gamal upper and lower bounds (I) and (2) evaluate to 0 :S "(?:S log2 (1.25) = 0.321928. These are not better than the 1971 results, since van der Meulen obtained an achievable rate of '~;ii22;/ = 0.243529, while the upper bound of 0.321928 is stated there as well (expression U in Table VII of [2]). The rate 0.243529 can be achieved by timesharing two simple strategies, viz.: first, information is sent from X to the pair (YR, Y) at rate 1, then XR sends to Y at rate 0.321928. This kind of relay communication has later been called "observe and forward" by Kramer, Gastpar and Gupta in their 2005 paper [6]. Example 5: YYR YYR YYR YYR XXR 00 01 10 11 00 1 0 0 0 10 0 0.5 0 0.5 01 0.5 0 0.5 0 11 0 0 0 For this channel the Cover and El Gamal upper and lower bounds (I) and (2) both evaluate to 0.772908. Hence capacity for this channel is established. The best achieved rate from 1971 was 0.5, again with a timesharing strategy, later called "decode and forward": first, X sends to YR at rate 1, thereby instructing the relay terminal what to send in the next transmission; next, the pair (X, XR) sends to Y at rate 1. No constructive channel coding strategy is known with a rate above 0.5 for this channel. 4 Capacity calculations for Example 4 Both the upper bound (1) and the lower bound (2) of Cover and El Gamal are defined by the maximization of a function of the combined channel/relay input probabilities which is the minimum of two mutual information expressions. Unfortunately the well-known numerical technique of Arimoto and Blahut cannot be used because a minimum of two functions is not differentiable in all points, notably not on the 135 intersection of the two mutual information functions involved. According to [5], the upper and lower bounds can be calculated as follows: • Find the global maximum of the first of the two mutual information expressions in- volved. If this maximum occurs for an input probability assignment for which the second mutual information expression is equal or larger, we are done. • Otherwise find the global maximum of the second expression. If this maximum occurs for an input probability assignment for which the first mutual information expression is equal or larger, we are done. • In all other cases, find the maximum of the first expression, but maximize only over those input probability assignments for which the two expressions are equal. Use the following abbreviations to simplify the expressions: PXXR(O, 0) =: p, PxxR(l, 0) =: q, PXXR(O, 1) =: r, PxxR(I, 1) =: s, p+q =: a. Obviously p +q+r+s = I and 1- a = r+s. Observe that the binary entropy function h(t) := -t log2 (t) - (I - t) log2 (1 - t) has as its derivative: log2 (( 1 - t) 1t). Since H(Y I XXR) = a and H(Y) = h(aI2), we obtain I(XXR ; Y) = h(aI2) - a. This expression is maximal when 110g2 ((2 - a) 1a) - 1 = 0, i.e., when a = 0.4, and that maximal value is h(0.2) - 0.4 = log2(1.25) = 0.321928. For the lower bound (2), the other expression is I(X ; YR 1XR) = H(YR 1XR) - H(YR I XXR), which equals 0 since both entropy expressions evaluate to a; hence this lower bound is O. For the upper bound (l), the other expression is I(X ; YYR 1XR) = H(YYR 1XR) - H(YYR I XXR). Since H(YYR 1XR) = a(1 +h(pla)) while H(YYR I XXR) = a, this evaluates to ah(pla). Since for p = q = 0.2 this expression is 0.4, which is larger than 0.321928, the latter is the upper bound. The lower bound (3) is easier to evaluate: maximize the maximum of the two expressions I(X ; Y I XR = 0) and I(X ; Y I XR = 1). Both expressions evaluate to 0, hence this lower bound gives no better results than expression (2). 5 Capacity calculations for Example 5 In addition to the abbreviations used in the previous section, set f3 := q + r. Since H(Y I XXR) = f3 and H(Y) = h(p + f3 12), we obtain I(XXR ; Y) = h(p + f3 12) - f3. This expression is maximal when f3 = 0 and p = 0.5, and that maximal value is 1. For the lower bound (2), H(YR 1XR) = ah(pla) + (1- a) h(rl(l- a)) while H(YR I XXR) is O. Since for f3 = 0 and p = 0.5 this evaluates to 0, we must go to the second step in the calculation algorithm. 136 The expression ah(p/a) + (1- a) h(r/(l- a)) is maximal for p = q = r = s = ~>viz. 1. For these values, I(XXR ; Y) equals 0.5, hence we need to continue with the third step. Since the channel definition is symmetric with respect to replacing all Is by Os and vice versa, an optimal input probability assignment must have p = sand q = r and hence a = ~ and 13 = I - 2p. Under these constraints, I(XXR ; Y) = h(1/2) - (I - 2p) = 2p and I(X ; YR 1XR) = h(2p). The intersection h(2p) = 2p yields p = 0.386454 and hence a capacity lower bound of 0.772908, which is the largest root of the equation h(t) = t. For the upper bound (I), and under the same constraint (p = sand q = r), I(X ; YYR 1XR) equals h(2p). Hence, upper and lower bounds coincide and the capacity equals 0.772908. Lower bound (3) equals max {I(X ; Y 1XR = 0) , I(X ; Y 1XR = I)}. With the same definition for 13 as before, I(X ; Y 1XR = 0) = H(Y I XR = 0) - H(Y I X ,XR = 0) = h(f3 /2) - 13· Maximizing for 13 gives log2 (1.25) = 0.321928, viz. for 13 = 0.4, cf. the calculations for Example 4. Also I(X ; Y 1XR = 1) evaluates to h(f3 /2) - 13, hence lower bound (3) is 0.321928, which is even worse than the constructive lower bound 0.5, as already observed in [2]. 6 A 4-terminal deterministic relay network The recent renewed interest in relay channels comes from practical applications like sen- sor networks. There the idea is that several terminals (sensors) receive information from a single source (like the weather condition. or the safety status of a building), and all try to communicate their piece of information to a single point of intelligence. In this setup, relay channels with more than one relay terminal could serve as a model. A good information-theoretic survey on relay networks can be found in [6]. Consider here one of the simplest non-trivial relay networks with 2 relay terminals Rand S, viz. a binary deterministic channel with transition functions given by y = Xs, Ys = XR' Xs, and YR =X'XR: X XR Xs YR Ys Y (po) 0 0 0 0 0 0 (PI) 0 0 1 0 0 1 (P2) 0 1 0 0 0 0 (P3) 0 I 1 0 1 1 (P4) 0 0 0 0 0 (Ps) 0 1 0 0 1 (P6) 0 0 0 (P7) 1 137 Capacity calculation According to [6], an upper bound for the capacity of a 4-terminal discrete memoryless de- terministic relay channel is given by which for our channel reduces to max min {h(a) , a h( 0"1a) , (1-13) h(( a - 0")/(1 -13)) + I3ILt , O"h(p3/0") +'l:h(p2/'l:)}, PO···P7 where Pi is the input probability assignment for row i of the transition table, 0" := P3 + P7, 'l: := P2 + P6, a := PI + P3 + ps + P7, 13 := 0"+ 'l: and a. is the 4-term binary entropy of (p21 13, P31 13 ,p61 13, P7 113)· Since none of the four functions attain a maximum for an assignment where the others are equal or larger, intersections must be taken. This becomes intractable without taking into account symmetry considerations. It suffices to maximize the expression over a, 0" and 'l: with 0" < a, 13 = 0" + r, P3 = P7 = 0"12 and P2 = P6 = 'l:12. This gives an optimum for 20" = 2'l: = a = 0.772908, viz. Yfj' ::; 0.772908. For a generallower bound on the capacity, Theorem 1 of [6] gives us which for the channel considered here reduces to max {min {'l:h(p2/'l:) + O"h(p31 0"), a h( 0"1 a), h( a)} , min {O, 13 h((p2 + P3)1 13), h( a)} } . Since the second minimum equals 0, we are left with the first part, which is almost identical to the upper bound expression. Actually, there is just one part missing in the minimization for this lower bound, hence the maximizing input probability assignment for the upper bound can be used here to give exactly the same value 0.772908. So we may conclude that