scieee AI-readable full text Open interactive document viewer

Simple Solution for Designing the Piecewise Linear Scalar Companding Quantizer for Gaussian Source

Nikolic, Jelena; Peric, Zoran; Velimirovic, Lazar

Abstract

To overcome the difficulties in determining an inverse compressor function for a Gaussian source, which appear in designing the nonlinear optimal companding quantizers and also in the nonlinear optimal companding quantization procedure, in this paper a piecewise linear compressor function based on the first derivate approximation of the optimal compressor function is proposed. We show that the approximations used in determining the piecewise linear compressor function contribute to the simple solution for designing the novel piecewise linear scalar companding quantizer (PLSCQ) for a Gaussian source of unit variance. For the given number of segments, we perform optimization procedure in order to obtain optimal value of the support region threshold which maximizes the signal to quantization noise ratio (SQNR) of the proposed PLSCQ. We study how the SQNR of the considered PLSCQ depends on the number of segments and we show that for the given number of quantization levels, SQNR of the PLSCQ approaches the one of the nonlinear optimal companding quantizer with the increase of the number of segments. The presented features of the proposed PLSCQ indicate that the obtained model should be of high practical significance for quantization of signals having Gaussian probability density function.

Full text

194 J. NIKOLIĆ, Z. PERIĆ, L. VELIMIROVIĆ, SIMPLE SOLUTION FOR DESIGNING THE PIECEWISE LINEAR SCALAR … Simple Solution for Designing the Piecewise Linear Scalar Companding Quantizer for Gaussian Source Jelena NIKOLIĆ 1, Zoran PERIĆ 1, Lazar VELIMIROVIĆ 2 1 Dept. of Telecommunications, Faculty of Electronic Engineering, Univ. of Niš, A. Medvedeva 14, 18000, Niš, Serbia 2 Mathematical Institute of the Serbian Academy of Sciences and Arts, Kneza Mihaila 36, 11001 Belgrade, Serbia [email protected], [email protected], [email protected] Abstract. To overcome the difficulties in determining an inverse compressor function for a Gaussian source, which appear in designing the nonlinear optimal companding quantizers and also in the nonlinear optimal companding quantization procedure, in this paper a piecewise linear compressor function based on the first derivate approximation of the optimal compressor function is proposed. We show that the approximations used in determining the piecewise linear compressor function contribute to the simple solution for designing the novel piecewise linear scalar companding quantizer (PLSCQ) for a Gaussian source of unit variance. For the given number of segments, we perform optimization procedure in order to obtain optimal value of the support region threshold which maximizes the signal to quantization noise ratio (SQNR) of the proposed PLSCQ. We study how the SQNR of the considered PLSCQ depends on the number of segments and we show that for the given number of quantization levels, SQNR of the PLSCQ approaches the one of the nonlinear optimal companding quantizer with the increase of the number of segments. The presented features of the proposed PLSCQ indicate that the obtained model should be of high practical significance for quantization of signals having Gaussian probability density function. Keywords Piecewise linear scalar companding quantizer, support region threshold optimization, compressor function. 1. Introduction A great interest in quantization is generally motivated by the evolution to digital communications, i.e. more specifically, by the tradeoff between lowering the bit rate and maintaining the quality of the quantized signal. Many other constrains can be considered, such as complexity and delay [1]. In this paper there is a restriction with respect to the complexity since our goal is to provide a very simple quantizer solution having a smaller complexity than the widely used nonlinear companding quantizer. For a fixed number of quantization levels N, or equivalently a fixed bit rate R [bit/sample] = log2N [1], reproduction levels and partition regions or cells of a quantizer can be determined according to a different criteria. Generally, the primary goal of a quantizer design is to obtain minimal possible distortion, i.e. maximal possible signal to quantization noise ratio (SQNR). Lloyd and Max developed an algorithm for designing an optimal quantizer having a minimal possible distortion [2]. However, this algorithm is too time consuming for the large number of quantization levels we are interested in. One solution which overcomes this problem providing the performance close to the optimal one is defined by the nonlinear optimal companding quantizer model [1]. However, it is well known that designing nonlinear optimal companding quantizers for a Gaussian source is very complex due to the difficulties in determining the inverse optimal compressor function [1], [3], [4]-[6]. Also, from the aspect of hardware, it is very difficult to pair the characteristics of diodes that are used for the implementation of a compressor and an expandor [1]. Moreover, the software implementation of companding quantizers meets many difficulties. With these models, in accordance with the condition of the nearest neighbors, for the quantization of each sample, N distortion estimate is carried out, so that for each input sample a complete search of the code book is performed [1]. Accordingly, there is an evident need for simplifying the design procedure of companding quantizers, where the goal is to preserve performance as much as possible. One of the manners to achieve this goal is based on the linearization of the compressor function and the resulting quantizers are known as piecewise linear scalar companding quantizers (PLSCQs). In PLSCQ the support region consists of several segments, each of which containing several uniform quantization cells and uniformly distributed reproduction levels [1]. The fact that these quantizers are piecewise linear and hence, conceptually and implementationally simpler then the nonuniform quantizers [1] justifies their widespread application. For instance, to achieve high-quality quantized speech signals, the contemporary public switched telephone networks utilize the PLSCQ proposed by the G.711 Recommendation [7]. G.711 quantizer has the advantages of low complexity and delay with high-quality reproduced RADIOENGINEERING, VOL. 22, NO. 1, APRIL 2013 195 speech, but requires a relatively high bit rate. Namely, G.711 Recommendation defines a symmetric PLSCQ by 8 bits of resolution (R = 8 bit/sample) and L = 8 positive segments increased in length by a factor of 2 for each successive segments having 16 cells [1], [7]. The G.711 quantizers, based on the piecewise linear approximation to the A-law and μ-law compressor functions, divide the support region into a 2L = 16 unequal segments with equal number of cells. Along with the support region partition, according to the mentioned piecewise linear compressor functions, there are some novel propositions of the support region partition, i.e. of the PLSCQ design. For instance, the robustness conditions of the PLSCQ based on a piecewise linear approximation to the optimal compressor function are analyzed in [8]. A comprehensive analysis of SQNR behavior in the wide range of variances for the PLSCQ designed for the Laplacian source of unit variance according to the piecewise linear approximation to the optimal compressor function is reported in [9]. Unlike the PLSCQ proposed in [9], where the number of cells is assumed to be constant per segments and where the segments are determined by the equidistant partition of the optimal compressor function, the number of cells per segments has been optimized in [3], for the case of a Gaussian source of unit variance. This contributes to the SQNR increase. As reported in [3], one of the reasons of often considering the Gaussian source is that the first approximation to the short-time-averaged probability density function (PDF) of speech amplitudes is provided by the Gaussian PDF. Also, one reason for studying the Gaussian source is that it naturally arises in numerous applications. For example, the prediction error signal in a differential pulse-code modulation (DPCM) coder for moving pictures is well-modeled as Gaussian [10]. Discrete Fourier transform coefficients and holographic data are often considered to be the output of a Gaussian source [11]. Finally, since a properly chosen filtering technique applied to non-Gaussian source produces sequences which are approximately independent and Gaussian, a quantizer designed for the Gaussian source can also be applied to other sources, providing the similar performance [12]. The difference between the quantizer model we propose in this paper and the one described in [3] is in the manner of determining the number of cells per segments and in the realization structure. With the quantizer model proposed in this paper the number of cells per segments is determined according to the piecewise linear compressor function, whereas with the quantizer model described in [3], the method of Lagrange multipliers is used in order to optimize the number of cells per segments. In fact, the quantizer described in [3] is not a piecewise linear scalar companding quantizer, as the one we propose, but instead a piecewise uniform scalar quantizer, which can be considered as a set of uniform quantizers, where the number of uniform quantizers is equal to the number of segments. What we propose in this paper is a novel model of PLSCQ having the piecewise linear compressor function determined by the first derivate approximation of the optimal compressor function at the point on the middle of the segments. The novel model is very simple to design, even for the case of a Gaussian source, since it does not require determining the solutions of the complex system of integral equations, as in the case of nonlinear optimal companding quantizers. In addition, due to the piecewise linear property of the compressor function, with this model there are no difficulties with pairing the characteristics of diodes that are used for the implementation of a compressor and an expandor. The rest of this paper is organized as follows. Section 2 presents a detailed description of the novel PLSCQ. The achieved numerical results for the Gaussian source of unit variance are discussed in Section 3. Finally, Section 4 is devoted to the conclusions which summarize the contribution achieved in the paper. 2. Design of the Novel Piecewise Linear Scalar Companding Quantizer for Gaussian Source The optimal compressor function c(x) by which the maximum of SQNR is achieved for the reference variance σ2 of an input signal x is defined as [1]:           max 0 3/1 || 0 3/1 max ||, )( )( sgn)( max xx dttp dttp xxxc x x (1) where xmax denotes the support region threshold of the optimal companding quantizer and p(t) is a symmetric PDF. As already mentioned, there are some difficulties when designing the companding quantizers in the case of a Gaussian source. Accordingly, our goal is to obtain a piecewise linear compressor function which provides the simple quantizer design even for the case of a Gaussian source, with performance close to the one of the nonlinear optimal companding quantizer. In the rest of the paper we assume symmetry about zero in the PLSCQ design. This symmetry is an intuitively expected result when the input has a PDF that is symmetrical about zero. The Gaussian PDF, we consider here, is indeed symmetrical about zero. Namely, without loss of generality, we assume that information source is Gaussian source with memoryless property, the unit variance and zero mean value. The PDF of this source is given by [1]:          2 exp 2 12 x xp  . (2) We propose a PLSCQ with N levels and 2L segments, having equidistant segment thresholds determined by: L x ixseg imax , seg i seg ixx  , Li ,...,1,0, (3) 196 J. NIKOLIĆ, Z. PERIĆ, L. VELIMIROVIĆ, SIMPLE SOLUTION FOR DESIGNING THE PIECEWISE LINEAR SCALAR … Δ 2 Δ 2 Δ 1 Δ 1 x 1,1 x 1,2 -y N/2 y N/2 y 2,13 y 2,1 y 1,1 y 1,2 max 2xx seg  seg x1 0 seg x1  seg xx 2 max  y 1,50 x 2,12 x 2,1 Δ 1 overload region overload region II segment N 2 /2=13 I segment N 1 /2=50 -II segment N 2 /2=13 -I segment N 1 /2=50 support region granular region x 1,49 Fig. 1. Support region partition of the proposed PLSCQ for the case where the total number of levels is N = 128 and L = 2: xLseg = xmax is support region threshold; xiseg, i = 0, 1,..., L, are segment thresholds; i  , i = 1,..., L, are cell lengths; xi,j, i = 1,..., L, j = 1,..., Ni, are cell thresholds; yi,j, i = 1,..., L, j = 1,..., Ni, are reproduction levels. where obviously for the support region threshold it holds xmax = xL seg . Let Ni / 2 be the number of cells within the corresponding i-th segment (see Fig. 1). Cell lengths of the considered PLSCQ are equal within the segment whereas they may be different from segment to segment: i seg L i seg i seg i iNL x N xx 2 2 Δ1  ,Li ,...,1. (4) As mentioned above, we assume symmetry in the PLSCQ design and accordingly, we define the parameters of the PLSCQ that correspond to the L positive segments. Denote by yi,j the j-th reproduction level within the i-th segment (seg i x1,seg i x]. In the case where the current amplitude value of the input signal falls in the j-th cell within the i-th segment (xi,j-1, xi,j], where: i seg i ji jxx Δ 1 , , Li ,...,1,i Nj ,...,1, (5) the quantization rule provides its coping onto the near allowed value yi,j, defined by:  i seg iji j xy Δ 2 12 1,   , Li ,...,1,i Nj ,...,1. (6) In other words, the cell thresholds and the reproduction levels of the considered PLSCQ are defined as xk = xi,j, yk = yi,j, i = 1,..., L, j = 1,..., Ni, k = 1,..., (N - 2) / 2, where for the outermost reproduction level, as in [4], the centroid condition is assumed in the design process:       seg L seg L x x N dttp dttpt y2/ . (7) Our model is based on the first derivate approximation of the optimal compressor function (1) at the points on the middle of the segments. These points are given by:  L xi s seg L i2 12  ,Li ,...,1  . (8) The first derivate of the optimal compressor function (1) at si, i = 1,…, L, for the case 0 ≤ x≤seg L x, is:    dttp spx sc seg L x i seg L i   0 3/1 3/1 ', Li ,...,1, (9) where xmax is substituted by seg L x. Obviously, we have L different slopes of the piecewise linear compressor function, which are determined by the c'(si), i = 1,…, L. In order to define a novel piecewise linear compressor function we can assume the following approximations:   L x spdttp seg L i jj xseg i    1 1 3/1 0 3/1 1 ,Li ,,2 , (10)     i seg i x x spxxdttp seg i 3/1 1 3/1 1     ,seg i seg ixxx  1, (11)    L x spdttp seg L L ii xseg L  1 3/1 0 3/1 , (12) that yields:     i seg i seg L i jj x spxx L x spdttp 3/1 1 1 1 3/1 0 3/1      , (13)          L i seg L i seg seg L L x sp spxx xxc 1 31 1 31 0 1, (14)             L i seg L i i seg i i j seg L j seg Li L x sp spxx L x sp xxc 1 31 31 1 1 1 31 ,Li ,,2.(15) ci(x), i = 1,…, L, defined by (14) and (15) is a novel piecewise linear compressor function (see Fig. 2), which is a continuous function because it holds: RADIOENGINEERING, VOL. 22, NO. 1, APRIL 2013 197   seg ii seg ii xcxc 1 , 1,,1  Li . (16) We assume that the total number of cells per segments in the first quadrant is:     L i iN N 12 2 2. (17) Accordingly, we can define the following:    22 Δ N xc seg LL , (18)  Δ 2 1 i seg ii seg ii N xcxc  ,Li ,,1 . (19) Combining (18) and (19) enables determining the number of cells per segments for the proposed PLSCQ model:          seg LL seg ii seg iii xc xcxc N N1 2 2 2    . (20) The granular distortion Dg and the overload distortion Do of the proposed PLSCQ can be determined by using the basic definition for the granular distortion of the PLSCQ given in [1]:   L i i i gPD 1 2 12 Δ 2, (21)                             22 2 1 )( 1 1 seg i seg i x x i x erf x erfdttpP seg i seg i (22) where Δi is given by (4), and by using the following closed-form formula derived in [4]:            2 exp 12 2 2 3 2 2/ seg L seg L x No x x dttpytD seg L  . (23) c4(x) c3(x) c2(x) c1(x) c4(x s eg 4) c3(xseg 3) c2(xseg 2) xseg 4 xseg 1xseg 3 c1(xseg 1) xseg 2 piecewise linear compressor function nonlinear optimal compressor function Fig. 2. Piecewise linear compressor function and nonlinear optimal compressor function for the number of segments 2L = 8. By determining the total distortion D, that is equal to the sum of the granular distortion Dg (21) and the overload distortion Do (23), one can also determine the SQNR of the proposed PLSCQ by using the basic definition for the SQNR [1]:                  DDD og 1 log10 1 log10dBSQNR 1010 . (24) In this paper, the analysis of numerical results is conducted using SQNR rather than distortion. 3. Numerical Results Numerical results presented in this section are obtained for the case L = 1, L = 2, L = 4 and L = 8, and for number of quantization levels N = 128, as it has been observed in [9]. By designing the PLSCQ for the Gaussian source of unit variance and for the support region threshold defined as in [4]:              NN N Nxx seg Lln2 3ln ln4 lnln 1ln6 max  , (25) we have determined the SQNR characteristic of the proposed PLSCQ, denoted as PLSCQ(1) in Fig. 3. In addition, for the same N = 128, by assuming different support region thresholds, we have numerically determined the values of the optimal support region thresholds seg x1= 3.50, seg x2= 3.80, seg x4= 3.98 and seg x8= 4.03 that minimize the PLSCQ distortion (i.e. that maximize SQNR) for the cases when L = 1, L = 2, L = 4 and L = 8, respectively. By assuming these support region thresholds we have determined the SQNR characteristic, denoted as PLSCQ(2) in Fig. 3. Namely, one way to determine how well the nonlin ear optimal companding quantizer and the PLSCQ match is to compare the SQNR characteristics for the same input statistics and the number of quantization levels, but for a different number of segments (see Fig. 3). Regarding 12345678 34 35 36 37 38 SQNR [dB] L PLSCQ(1) PLSCQ(2) nonlinear optimal companding quantizer Fig. 3. Dependency of SQNR on the number of segments for the PLSCQ(1) and PLSCQ(2) and the nonlinear optimal companding quantizer. such obtained SQNR characteristics one can conclude that starting from L = 1 to L = 8 the SQNR characteristics of the 198 J. NIKOLIĆ, Z. PERIĆ, L. VELIMIROVIĆ, SIMPLE SOLUTION FOR DESIGNING THE PIECEWISE LINEAR SCALAR … PLSCQ approaches to the one of the nonlinear optimal companding quantizer, where for L < 4, the PLSCQ(2) outperforms the PLSCQ(1). Observe that in the case of L = 1, the considered PLSCQ is a uniform quantizer, as the one reported in [13]. This notice justifies the large SQNR degradation of 3.17 dB and 2.54 dB, which we have observed for L = 1 in respect to the nonlinear optimal companding quantizer, in the case of the PLSCQ(1) and PLSCQ(2), respectively. In addition, observe that by increasing L to L = 2, for the same N = 128, the SQNR of the PLSCQ(1) and PLSCQ(2) is increased for 1.93 dB and 1.51 dB, respectively. Eventually, for L = 8, the SQNR of the proposed PLSCQ approaches the one of the nonlinear optimal companding quantizer, where the difference in SQNR amounts to 0.12 dB. For the given N = 128 and L = 8, with the PLSCQ designed in [9] for the Laplacian source of unit variance, we have achieved much greater difference in SQNR that amounts to 1 dB. Moreover, for N = 128 and L = 8, the SQNR of the PLSCQ(2) agrees well with that of the quantizer proposed in [3]. However, the goal in [3] was to provide the gain in SQNR when compared to the uniform quantizer, where in this paper we have proposed a simple solution for designing the PLSCQ where we have managed to achieve the SQNR very close to the one of the nonlinear optimal companding quantizer. 4. Summary and Conclusion In this paper, a novel solution of the piecewise linear scalar companding quantizer (PLSCQ) designed for the Gaussian source of unit variance has been proposed. The novel PLSCQ has been designed according to the piecewise linear compressor function which is determined by the first derivate approximation of the optimal compressor function at the points on the middle of the segments. It has been shown that designing the proposed PLSCQ for a Gaussian source is very simple because determining the solutions of the complex system of integral equations is not required as it is in the case with designing the nonlinear optimal companding quantizers for the same source. Moreover, it has been shown that for the observed number of quantization levels, the SQNR of the proposed PLSCQ approaches very close to the one of the nonlinear optimal companding quantizer, where better convergency is achieved in the case when the support region threshold of the PLSCQ is optimized than in the case when it is formula-evaluated for the nonlinear optimal companding quantizer. All aforementioned points out the reasons why our PLSCQ model is suitable for use in many applications for the quantization of signals with Gaussian distribution. Acknowledgements This work is partially supported by Serbian Ministry of Education and Science (Project TR32035) and by Serbian Ministry of Education and Science through Mathematical Institute of Serbian Academy of Sciences and Arts (Project III44006). References [1] JAYANT, N., NOLL, P. Digital Coding of Waveforms, Principles and Applications to Speech and Video. New Jersey: Prentice Hall, 1984. [2] MAX., J. Quantizing for minimum distortion. IRE, Trans. Inform Theory, 1960, vol. IT-6, p. 7 - 12. [3] VELIMIROVIĆ, L., PERIĆ, Z., NIKOLIĆ, J. Design of novel piecewise uniform scalar quantizer for Gaussian memoryless source. Radio Science, 2012, vol. 47, RS2005, p. 1 - 6. [4] SANGSIN NA Asymptotic formulas for variance-mismatched fixed-rate scalar quantization of a Gaussian source. IEEE Trans. Signal Processing, 2011, vol. 59, no. 5, p. 2437 - 2441. [5] PERIĆ, Z., NIKOLIĆ, J., MOSIĆ, A., PANIĆ, S. A switchedadaptive quantization technique using μ-law quantizers. Information Technology and Control, 2010, vol. 39, no. 4, p. 317 - 320. [6] PERIĆ, Z., NIKOLIĆ, J., ESKIĆ, Z., KRSTIĆ, S., MARKOVIĆ, N. Design of novel scalar quantizer model for Gaussian source. Information Technology and Control, 2008, vol. 37, no. 4, p. 321 to 325. [7] ITU-T, Recommendation G.711. Pulse Code Modulation (PCM) of Voice Frequencies. 1988. [8] KAZAKOS, D., MAKKI, K. Robust companders. In Proceedings of the 6th WSEAS International Conf. on Telecommunications and Informatics. Dallas (Texas), 2007, p. 32 - 35. [9] NIKOLIĆ, J., PERIĆ, Z., ANTIĆ, D., JOVANOVIĆ, A., DENIĆ, D. Low complex forward adaptive loss compression algorithm and its aplication in speech coding. Journal of Electrical Engineering, 2011, vol. 62, no. 1, p. 19 - 24. [10] VOGEL., P. Analytical coding of Gaussian sources. IEEE Trans. Inform. Theory, 1994, vol. 40, p. 1639 - 1645. [11] SWASZEK, P., THOMAS, B. Multidimensional spherical coordinates quantization. IEEE Trans. Inform. Theory, 1983, vol. IT-29, p. 570 - 576. [12] POPAT, K., ZEGER, K. Robust quantization of memoryless sources using dispersive FIR filters. IEEE Trans. Commun., 1992, vol. 40, no. 11, p. 1670 - 1674. [13] THOMPSON, A., EMERSON, D., SCHWAB, F. Convenient formulas for quantization efficiency. Radio Science, 2007, vol. 42, RS3022, p. 1 - 5. About Authors ... Jelena NIKOLIĆ was born in Prokuplje, Serbia, in 1978. She received the B.S., M.S. and Ph.D. degrees in Electrical Engineering from the Faculty of Electronic Engineering, University of Niš, Serbia in 2003, 2006 and 2011, respectively. She is currently a teaching assistant at the Dept. of Telecommunications at the same Faculty. Her current research interests include the source coding and signal processing. She has published over 60 papers from this area. She is a member of the Editorial Board of the Journal of Advanced Computer Science and Technology. RADIOENGINEERING, VOL. 22, NO. 1, APRIL 2013 199 Zoran PERIĆ was born in Niš, Serbia, in 1964. He received the B.S. degree in Electronics and Telecommunications from the Faculty of Electronic Engineering, Niš, Serbia, Yugoslavia, in 1989, and M.S. degree in Telecommunications from the University of Niš, in 1994. He received the Ph.D. degree from the University of Niš, also, in 1999. He is currently a Professor at the Department of Telecommunications and vicedean of the Faculty of Electronic Engineering, University of Niš, Serbia. His current research interests include the information theory, source and channel coding and signal processing. He is particularly working on scalar and vector quantization techniques in speech and image coding. He was author and coauthor in over 150 papers in digital communications. Dr Perić has been a member of the Editorial Board of Journal Electronics and Electrical Engineering. Lazar VELIMIROVIĆ was born in Prokuplje, Serbia, in 1983. He received the M.S. degree in Electrical Engineering from the Faculty of Electronic Engineering, University of Niš, Serbia, in 2008. He is currently employed as a researcher at the Mathematical Institute of the Serbian Academy of Sciences and Arts, Belgrade, Serbia.