Skip to content Skip to navigation

Connexions

You are here: Home » Content » Adaptive Quantization

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • NSF Partnership display tagshide tags

    This module is included inLens: NSF Partnership in Signal Processing
    By: Sidney BurrusAs a part of collection: "An Introduction to Source-Coding: Quantization, DPCM, Transform Coding, and Sub-band Coding"

    Click the "NSF Partnership" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

  • Featured Content display tagshide tags

    This module is included inLens: Connexions Featured Content
    By: ConnexionsAs a part of collection: "An Introduction to Source-Coding: Quantization, DPCM, Transform Coding, and Sub-band Coding"

    Click the "Featured Content" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • UniqU content

    This module is included inLens: UniqU's lens
    By: UniqU, LLCAs a part of collection: "An Introduction to Source-Coding: Quantization, DPCM, Transform Coding, and Sub-band Coding"

    Click the "UniqU content" link to see all content selected in this lens.

  • Lens for Engineering

    This module is included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
Download
x

Download module as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...
Reuse / Edit
x

Module:

Add to a lens
x

Add module to:

Add to Favorites
x

Add module to:

 

Adaptive Quantization

Module by: Phil Schniter. E-mail the author

Summary: Motivated by the practical problem of non-stationary sources, adaptation of the uniform quantizer's stepsize is discussed. In particular, adaptive quantization based on forward estimation (AQF) and backward estimation (AQB) are discussed, in both block-based and recursive forms.

  • Previously have considered the case of stationary source processes, though in reality the source signal may be highly non-stationary. For example, the variance, pdf, and/or mean may vary significantly with time.
  • Here we concentrate on the problem of adapting uniform quantizer stepsize Δ to a signal with unknown variance. This is accomplished by estimating the input variance σ^x(n)σ^x(n) and setting the quantizer stepsize appropriately:
    Δ(n)=2φxσ^x(n)L.Δ(n)=2φxσ^x(n)L.
    (1)
    Here φx is a constant that depends on the distribution of the input signal x whose function is to prevent input values greater than σx(n)σx(n) from being clipped by the quantizer (see Figure 1); comparing to non-adaptive step size relation Δ=2xmax/LΔ=2xmax/L, we see that φxσ^x(n)xmaxφxσ^x(n)xmax.
    Figure 1: Adaptive quantization stepsize δ(n)=2φxσ^x/Lδ(n)=2φxσ^x/L
     this figure contains one cartesian graph and one distribution function aligned above and below with a common vertical axis. The cartesian graph has horizontal axis x and vertical axis Q(x) (capital Q). Along the vertical axis of the graph are eight evenly-spaced dots centered at the origin, with the distance between them labeled 1. There are also nine hash marks on the horizontal axis, also centered at the origin, with the distance between them labeled Δ = (2Φ_x σhat_x)/L. The graph contains one curve composed of seven steps of equal length and height that correspond to the distances between the dots and hash marks. Below this graph is a distribution function of a normal bell curve. The vertical axis is aligned with the above graph, but this vertical axis is labeled p_x(x). The horizontal axis is labeled x. There are two horizontal values marked along the positive side of the bell curve. The first is σhat^x, at an unspecific point along the horizontal axis. The second is  shown to be even with the rightmost hash mark of the above graph, and is labeled Φ_xσhat_x.
  • As long as the reconstruction levels {yk}{yk} are the same at encoder and decoder, the actual values chosen for quantizer design are arbitrary. Assuming integer values as in Figure 1, the quantization rule becomes
    y(n)=x(n)Δ(n)-12midrise,x(n)Δ(n)-12midtread.y(n)=x(n)Δ(n)-12midrise,x(n)Δ(n)-12midtread.
    (2)
  • AQF and AQB: Figure 2 shows two structures for stepsize adaptation: (a) adaptive quantization with forward estimation (AQF) and (b) adaptive quantization with backward estimation (AQB). The advantage of AQF is that variance estimation may be accomplished more accurately, as it is operates directly on the source as opposed to a quantized (noisy) version of the source. The advantage of AQB is that the variance estimates do not need to be transmitted as side information for decoding. In fact, practical AQF encoders transmit variance estimates only occasionally, e.g., once per block.
    Figure 2: (a) AQF and (b) AQB
    This figure contains two flowcharts, parts a and b. Part a is to the left, and it begins with a long arrow pointing to the right at a box Q. This arrow is labeled x(n). This line also splits below to a second row of the flowchart, and points with a second arrow at a box labeled Variance Estimator. To the right of this box is a dashed line that splits, both pointing up at the aforementioned box Q and also to the right at the caption, channel. To the right of the q-box is an arrow pointing to the right, labeled y(n), at an identical caption, channel. To the right of the upper channel is another arrow labeled y(n) pointing to the right at a box labeled Q^-1. To the right of the lower channel is a dashed line that points up at the aforementioned Q^-1 box. To the right of this box is an arrow labeled x-tilde(n) that points ambiguously to the right towards the second flowchart. Part b is a flow chart that begins with a shorter arrow, labeled x(n), that points to the right at a box labeled Q. Following this box is an arrow pointing to the right labeled y(n), although before the termination of this arrow, the arrow splits down and to the left at a box labeled Variance Estimator. This box is followed by a dashed line with an arrow pointing back at the Q-box. To the right of the arrow labeled y(n) is a caption, channel, which is followed by a much longer arrow also labeled y(n) that points at a box labeled Q^-1. This arrow splits before its completion and moves down and to the right, pointing at a second box labeled Variance Estimator. To the right of this box is a dashed line that points back up at the box labeled Q^-1. To the right of this box is a final arrow, labeled x-tilde(n), pointing ambiguously to the right.
  • Block Variance Estimation: When operating on finite blocks of data, the structures in Figure 2 perform variance estimation as follows:
    BlockAQF:σ^x2(n)=1Ni=1Nx2(n-i)BlockAQB:σ^x2(n)=1Ni=1Ny(n-i)·Δ(n-i)2BlockAQF:σ^x2(n)=1Ni=1Nx2(n-i)BlockAQB:σ^x2(n)=1Ni=1Ny(n-i)·Δ(n-i)2
    (3)
    N is termed the learning period and its choice may significantly impact quantizer SNR performance: choosing N too large prevents the quantizer from adapting to the local statistics of the input, while choosing N too small results in overly noisy AQB variance estimates and excessive AQF side information. Figure 3 demonstrates these two schemes for two choices of N.
    Figure 3: Block AQF and AQB estimates of σx(n)σx(n) superimposed on |x(n)||x(n)| for N=128,32N=128,32. SNR acheived: (a) 22.6 dB, (b) 28.8 dB, (c) 21.2 dB, and (d) 28.8 dB.
    This figure consists of four graphs, each plotting a solid and dashed line along an axis. The graphs all look similar with relatively mellow sections of peaks throughout the first two-thirds of the graph, and a higher, more variable mountainous region in the latter third. Both graphs of N=128 have very similar dashed and solid lines. Both graph of N=32 have very similar solid lines, but the dashed line for AQB is much more volatile. The solid lines in the graphs of N=32 are much more volatile than those in the graphs of N=128.
  • Recursive Variance Estimation: The recursive method of estimating variance is as follows
    RecursiveAQF:σ^x2(n)=ασ^x2(n-1)+(1-α)x2(n-1)RecursiveAQB:σ^x2(n)=ασ^x2(n-1)+(1-α)y(n-1)·Δ(n-1)2.RecursiveAQF:σ^x2(n)=ασ^x2(n-1)+(1-α)x2(n-1)RecursiveAQB:σ^x2(n)=ασ^x2(n-1)+(1-α)y(n-1)·Δ(n-1)2.
    (4)
    where α is a forgetting factor in the range 0<α<10<α<1 and typically near to 1. This leads to an exponential data window, as can be seen below. Plugging the expression for σ^x2(n-1)σ^x2(n-1) into that for σ^x2(n)σ^x2(n),
    σ^x2(n)=αασ^x2(n-2)+(1-α)x2(n-2)+(1-α)x2(n-1)=α2σ^x2(n-2)+(1-α)x2(n-1)+αx2(n-2).σ^x2(n)=αασ^x2(n-2)+(1-α)x2(n-2)+(1-α)x2(n-1)=α2σ^x2(n-2)+(1-α)x2(n-1)+αx2(n-2).
    (5)
    Then plugging σ^x2(n-2)σ^x2(n-2) into the above,
    σ^x2(n)=α2ασ^x2(n-3)+(1-α)x2(n-3)+(1-α)x2(n-1)+αx2(n-2)=α3σ^x2(n-3)+(1-α)x2(n-1)+αx2(n-2)+α2x2(n-3).σ^x2(n)=α2ασ^x2(n-3)+(1-α)x2(n-3)+(1-α)x2(n-1)+αx2(n-2)=α3σ^x2(n-3)+(1-α)x2(n-1)+αx2(n-2)+α2x2(n-3).
    (6)
    Continuing this process N times, we arrive at
    σ^x2(n)=(1-α)i=1Nαi-1x2(n-i)+αNσ^x2(n-N).σ^x2(n)=(1-α)i=1Nαi-1x2(n-i)+αNσ^x2(n-N).
    (7)
    Taking the limit as NN, α<1α<1 ensures that
    σ^x2(n)=(1-α)i=1αi-1x2(n-i).σ^x2(n)=(1-α)i=1αi-1x2(n-i).
    (8)
    Figure 4: Exponential AQF and AQB estimates of σx(n)σx(n) superimposed on |x(n)||x(n)| for λ=0.9,0.99λ=0.9,0.99. (a) 20.5 dB, (b) 28.0 dB, (c) 22.2 dB, (d) 24.1 dB.
    This figure consists of four graphs, each plotting a solid and dashed line along an axis. The graphs all look similar with relatively mellow sections of peaks throughout the first two-thirds of the graph, and a higher, more variable mountainous region in the latter third. Both AQF and AQB for lambda=0.9 have highly volatile dashed and solid lines, with the peaks of AQB even more sharp than those of AQF. For lambda=0.99, the solid lines have a much smoother appearance in both AQF and AQB, and the dashed lines have not changed much from lambda=0.9.

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.