Docsity

Introduction to Data Compression - Lecture Slides | ECE 8833, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Spring 2004 ECE-8833 B. H. Juang Copyright 2004 Lecture #1, Slide #1
ECE 8833
Data Compression and Modeling
Lecture 1:
Introduction to Data Compression
School of Electrical and Computer Engineering
Georgia Institute of Technology
Spring, 2004
ECE-8833 B. H. Juang Copyright 2004
Spring 2004 Lecture #1, Slide #2
Signal & Coding
• Signal
– Continuous-time or discrete-time function
– Scalar- or vector-valued
– Any information-bearing representations
• Coding (due to Shannon)
– Source coding: conversion of signal into efficient
digital representation for conservation of resources
needed for transmission or storage of the signal.
– Channel coding or error control coding:
transformation of signal (or data) so as to permit
reliable communication in presence of noise or
distortion.
ECE-8833 B. H. Juang Copyright 2004
Spring 2004 Lecture #1, Slide #3
Morse Code Alphabet
Y -.--
Z --..
0 -----
1 .----
2 ..---
3 ...--
4 ....-
5 .....
I ..
J .---
K -.-
L .-..
M --
N -.
O ---
P .--.
6 -....
7 --...
8 ---..
9 ----.
Fullstop .-.-.-
Comma --..--
Query ..--..
Q --.-
R .-.
S ...
T -
U ..-
V ...-
W .--
X -..-
A .-
B -...
C -.-.
D -..
E .
F ..-.
G --.
H ....
ECE-8833 B. H. Juang Copyright 2004
Spring 2004 Lecture #1, Slide #4
A Framework for Data Compression
Encoder Decoder
Transmission
Or Storage
Media
(Channel)
Source User
Source coder
Channel coder
Source decoder
Channel decoder
Channel
Comparison of source
signal and reproduced
signal to determine
Quality or Fidelity
bits bits
pf3
pf4
pf5

Partial preview of the text

Download Introduction to Data Compression - Lecture Slides | ECE 8833 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

ECE-8833 B. H. Juang

Copyright 2004

Lecture #1, Slide #

ECE 8833

Data Compression and Modeling

Lecture 1:

Introduction to Data Compression

School of Electrical and Computer Engineering

Georgia Institute of Technology

Spring, 2004

ECE-8833 B. H. Juang

Copyright 2004

Spring 2004

Lecture #1, Slide #

Signal & Coding

•^

Signal– Continuous-time or discrete-time function– Scalar- or vector-valued– Any information-bearing representations

-^

Coding (due to Shannon)– Source coding: conversion of signal into efficient

digital representation for conservation of resourcesneeded for transmission or storage of the signal.

  • Channel coding or error control coding:

transformation of signal (or data) so as to permitreliable communication in presence of noise ordistortion.

ECE-8833 B. H. Juang

Copyright 2004

Lecture #1, Slide #

Morse Code Alphabet

Y^

-.-- Z^

--.. 0

----- 1

.---- 2

..--- 3

...-- 4

....- 5

.....

I^

.. J^

.--- K^

-.- L^

.-.. M

-- N^

-. O

--- P^

.--.

6

-.... 7

--... 8

---.. 9

----. Fullstop

.-.-.-

Comma

--..--

Query

..--..

Q^

--.- R^

.-. S^

... T^

- U^

..- V^

...- W

.-- X^

-..-

A^

.- B^

-... C^

-.-. D^

-.. E^

. F^

..-. G

--. H^

....

ECE-8833 B. H. Juang

Copyright 2004

Spring 2004

Lecture #1, Slide #

A Framework for Data Compression

Encoder

Decoder

TransmissionOr Storage

Media (Channel)

Source

User

Source coder

Channel coder

Source decoder

Channel decoder

Channel

Comparison of sourcesignal and reproducedsignal to determine

Quality or Fidelity

bits

bits

ECE-8833 B. H. Juang

Copyright 2004

Lecture #1, Slide #

Data Compression

•^

Various practical concepts related to time:– Time compression– Time scale modification with or without changing

the signal characteristics

  • Garvey, W.D. "

The intelligibility of speeded speech

." Journal

of Experimental Psychology, 45:102-108, 1953.

•^

Our interest:– Encoding or representation of information for

storage or transmission at the lowest cost inresources (bandwidth, storage area, etc.) andwithout significant loss of information uponreconstruction.

ECE-8833 B. H. Juang

Copyright 2004

Spring 2004

Lecture #1, Slide #

Coding as a Task

•^

Representation of analog signal for digital transmissionor storage; often integrated with A/D conversion

-^

Compression of digital information to reducetransmission or storage requirement; compression canalso be realized in analog domain

-^

efficiency is defined in terms of bandwidth or storagerequired for the delivery of a fixed amount ofinformation such as a second of speech, a video frame

-^

Result of coding is a sequence of digital, often binary,symbols

-^

The sequence of digital symbols may or may not haveexplicit “delimiter.”

ECE-8833 B. H. Juang

Copyright 2004

Lecture #1, Slide #

From Shannon Information Theory

-^

If the minimum achievable source coding rate of a givensource is strictly below the capacity of the channel, then thesource can be transmitted reliably by appropriate encoding-decoding; implicitly, reliable transmission can beaccomplished by separate source and channel coding.

-^

If the source coding rate is strictly greater than the channelcapacity, then reliable transmission is impossible; but, wecan still strive to reduce the negative impact of the rateexcess by joint source-channel coding.

-^

Memoryless block source codes can achieve minimumaverage distortion for a constrained rate, in the absence ofcomplexity constraint – i.e. source coding subject to afidelity criterion.

ECE-8833 B. H. Juang

Copyright 2004

Spring 2004

Lecture #1, Slide #

Issues in Source Coding

•^

Coding algorithm design

-^

[Bit] rate and distortion relationship; lossy or losslesscoding

-^

Implementation complexity

-^

Memory and delay requirement

-^

Robustness in performance against source variation

-^

Choice and significance of performance metric

-^

Impact of errors in code upon fidelity performancePractical coding algorithms often involve detailedtradeoffs among these issues.

ECE-8833 B. H. Juang

Copyright 2004

Lecture #1, Slide #

Two Components of Information

•^

Structure – deterministic component; may or may notbe known; may or may not be easily represented

-^

Entropy – random component; never knowncompletely in real world

cos(

(^

t V t A t X

Many (incomplete) ways to view it:•^

Treat every time sample as the outcome of anindependent random experiment

-^

Treat the amplitude of the sinusoid as random variable

-^

Treat the phase as random variable

-^

Treat the signal not as a sinusoid but a general randomprocess

ECE-8833 B. H. Juang

Copyright 2004

Spring 2004

Lecture #1, Slide #

Defining a Source – Parallel to Pr Space

•^

Sample space, observation space, or signal spacebuilt upon a symbol set

-^

Let

be a signal sequence

generated by the source. A sequence of length

n

so

generated can be considered as an outcome of acombined experiment with the observation spaceformed by the cartesian product of the originalalphabet:

Mi i

A

1

{^

=

which is also called an alphabet without loss ofgenerality, the symbols

are referred to as letters,

and

m

the size of the alphabet.

i α ) , , , ,

(^

3 2 1

n X

X X X^

L

= X

A X A A A A

j

i

n^

∈ = × × × =

and

L

Again, the experiments may not be independent.

ECE-8833 B. H. Juang

Copyright 2004

Lecture #1, Slide #

Source Entropy

•^

The average self-information of such a length-

n

sequence is

-^

The entropy of the source (per symbol) is defined as

-^

In the lack of complete knowledge of the experiment,assumptions are often made to facilitate entropycalculation; e.g., iid, Markov, …

)

, ,

,

Pr( log

)

, ,

,

Pr(

2

1

1

2

2

1

2

1

1

1

1

2

1

n

n

n

i

n

i

i

m i

m i

m i

i

n

i

i

n

X

X

X

X

X

X

G

α

α

α

α

α

α

=

=

=

=

=

=

− =^

=^

=^

=

L L

L G^ n

S H

n

n^

∞→ =^

lim ) (

ECE-8833 B. H. Juang

Copyright 2004

Spring 2004

Lecture #1, Slide #

Source Entropy

•^

If

are iid (independent & identically distributed),

with

X

denoting a generic random variable as

=

=

=^

=^

= =^

=^

=

=

=

−

= • = = = − =

=

=

=

  • = = = − =

m i

i

i

n k

i k

m i

m i

m i

i n

i

i

i n

i

i

m i

m i

m i

i n

i

i

n

X

X

n

X

X

X

X

X

X

X

X

X

X

G

k

n

n n

n

n

1

1

1

1

1

2

1

2

1

1

1

1

2

1

)

Pr( log)

Pr(

)

Pr( log )

Pr( )

Pr()

Pr(

)

, ,

,

Pr( log

)

, ,

,

Pr(

1

2

2

1

2

1

1

2

2

1 α

α

α

α

α

α

α

α

α

α

α

α

L

L

L L

L

i X

∞→

=

=

−

=

m i

n

n^

i X

i X

G n

S H

1

)

Pr( log)

Pr(

lim ) (

i X

If the condition of iid is assumed, rather than a givenfact, then the above

H

( S

)^

is called 1

st^

order entropy.

ECE-8833 B. H. Juang

Copyright 2004

Spring 2004

Lecture #1, Slide #

Source Entropy

•^

True source entropy– defined over the true probability space (and the true

probability measure of the source, structureincluded); a characteristic quantity of the source.

•^

Estimated source entropy– Source distribution is usually not completely or

precisely known (particularly in sequences resultedfrom non-independent combined experiments);

  • Source entropy is normally calculated using an

estimated source distribution with certain assumedconditions;

  • A “better” distribution estimate often leads to lower

estimated entropy.