61
P. P. Vaidyanathan California Institute of Technology, Pasadena, CA The mathematician Ramanujan, and digital signal processing SAM-2016, Rio, Brazil

The mathematician Ramanujan, and digital signal processing

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The mathematician Ramanujan, and digital signal processing

P. P. Vaidyanathan California Institute of Technology, Pasadena, CA

The mathematician Ramanujan, and digital signal processing

SAM-2016, Rio, Brazil

Page 2: The mathematician Ramanujan, and digital signal processing

1887 - 1920

Worked with Hardy in 1914 - 1919 1877 - 1947

Self-educated mathematician from India Grew up in poverty in Tamil Nadu His genius was discovered by G. H. Hardy

Page 3: The mathematician Ramanujan, and digital signal processing

Outline •  Ramanujan sums (RS): 1918 •  Representing periodic signals •  New integer bases, integer projections

•  Ramanujan periodic dictionaries

•  Conclusions •  Bounds on period estimation

Page 4: The mathematician Ramanujan, and digital signal processing

Ramanujan-sum representation:

DFT representation:

period

data size N

or a divisor of N period N Example: N = 32; q = 1, 2, 4, 8, 16, 32

period q Every period is represented! Example: N = 32; q = 1, 2, 3, 4, 5, … 32

Very few periods represented

Motivation Consider a periodic signal

Page 5: The mathematician Ramanujan, and digital signal processing

32 point DFT

32 point DFT

(Re part) First, how much can DFT do? Sinusoid example:

(Re part)

Page 6: The mathematician Ramanujan, and digital signal processing

Identifying periods: Not the same as spectrum estimation

DFT, MUSIC, etc., will work, but are not necessarily best …

ω

arbitrary line spectrum

ω fundamental

periodic case

Ramanujan offers something new

fewer parameters of interest

Page 7: The mathematician Ramanujan, and digital signal processing

Hidden periodic components

Does not “look” periodic

Sparse representation? Ramanujan offers something new

period = 12

period = 16

Page 8: The mathematician Ramanujan, and digital signal processing

•  Pitch identification acoustics (music, speech, … ) •  Time delay estimation in sensor arrays •  Medical applications •  Genomics and proteomics •  Radar •  Astronomy

Importance of periodic components

Page 9: The mathematician Ramanujan, and digital signal processing

means k and q are coprime

= gcd of k and q

qth root of unity

Notations

= Euler’s totient function

: d is a divisor (or factor) of q

Page 10: The mathematician Ramanujan, and digital signal processing

The phi-function (Euler’s totient):

Page 11: The mathematician Ramanujan, and digital signal processing

Ramanujan sum (1918)

q = positive integer

has period exactly q

Euler’s totient

sum over coprime frequencies only

Page 12: The mathematician Ramanujan, and digital signal processing

6

Equivalent definition using DFT

Page 13: The mathematician Ramanujan, and digital signal processing

Primitive frequencies, all with SAME period q

φ(q) frequency components: primitive frequencies

Frequency and period in Ramanujan sum

each term has period exactly q

0

DFT grid

Page 14: The mathematician Ramanujan, and digital signal processing

Other ways to write Ramanujan sum:

Orthogonality:

Page 15: The mathematician Ramanujan, and digital signal processing

Theorem: Ramanujan sum is integer valued! Examples: very useful from a

computational perspective

Page 16: The mathematician Ramanujan, and digital signal processing

Ramanujan-sum representation:

Ramanujan sum

•  What did Ramanujan do with Ramanujan sums?

•  What did DSP people do with them?

•  What did PP do with them?

•  Does it solve the limitations of DFT?

•  New directions

Page 17: The mathematician Ramanujan, and digital signal processing

Ramanujan expanded arithmetic functions (1918)

Sum-of-divisors:

Euler-totient:

von Mangoldt function:

Number-of-divisors:

Page 18: The mathematician Ramanujan, and digital signal processing

Some references from DSP …

Page 19: The mathematician Ramanujan, and digital signal processing

References for this talk

http://systems.caltech.edu/dsp/students/srikanth/Ramanujan/

Page 20: The mathematician Ramanujan, and digital signal processing

Signal duration N = 2^8 = 256

x(n) = x(n) =

An example with

sparse representation

not sparse

Page 21: The mathematician Ramanujan, and digital signal processing

x(n) =

Again, signal duration N = 2^8 = 256

Another example with

x(n) =

sparse representation

not sparse

Page 22: The mathematician Ramanujan, and digital signal processing

PPV, 2014, IEEE SP Trans.

each period is represented by a 1D subspace only

Reason for the problem:

Consider the space spanned by

Every nonzero signal in this space has period EXACTLY q

We call this the Ramanujan subspace

We will use the entire susbpace to represent period q components of x(n)

What to do about it?

Page 23: The mathematician Ramanujan, and digital signal processing

Ramanujan subspace is spanned by:

•  This space has dimension exactly!

•  This space is also spanned by:

Theorem (PPV, SP Trans. 2014):

•  orthogonal for

Page 24: The mathematician Ramanujan, and digital signal processing

Basis for Ramanujan subspace

complex basis

real integer basis cyclic basis

from DFT

Page 25: The mathematician Ramanujan, and digital signal processing

•  Integer basis using Ramanujan sum

Any length N signal can be represented as

Theorem:

•  Doubly indexed basis

•  Orthogonal periodic components

periodic components in

PPV, SP Trans. 2014

Page 26: The mathematician Ramanujan, and digital signal processing

Orthogonal projection onto

Orthogonal Periodic Components

Integer projection operators will find

Periodic components of x(n), period

Page 27: The mathematician Ramanujan, and digital signal processing

= orthogonal projection matrix onto Theorem:

Define ;

Integer Projection Operator

circulant

Page 28: The mathematician Ramanujan, and digital signal processing

Summary of the decomposition

orthogonality

total orthogonality

has period exactly

in

Page 29: The mathematician Ramanujan, and digital signal processing

Example of Ramanujan space projections

Periodic, orthogonal, projections

Page 30: The mathematician Ramanujan, and digital signal processing

Recall signals in have period q (can’t be smaller).

Consider a sum where

This has period (can’t be smaller).

Theorem (LCM property):

Page 31: The mathematician Ramanujan, and digital signal processing

periodic input, period = 64

Example 1

Page 32: The mathematician Ramanujan, and digital signal processing

Method 1:

Page 33: The mathematician Ramanujan, and digital signal processing

Method 2:

Page 34: The mathematician Ramanujan, and digital signal processing

projection = 0

nonzero projections

Period = lcm(1, 2, 4, 8, 16, 32, 64) = 64

Projections onto Ramanujan spaces

Page 35: The mathematician Ramanujan, and digital signal processing

DFT plot

Page 36: The mathematician Ramanujan, and digital signal processing

Ex. 2: Hidden periodic components

period = 12

period = 16

Does not “look” periodic

Page 37: The mathematician Ramanujan, and digital signal processing

(3, 4, 12), (4, 16) union of

periods: 12 and 16

(3, 4, 12, 16) projection indices

index k energy 1.0000 0.0000 2.0000 0.0000 3.0000 24.0000 4.0000 48.0000 6.0000 0.0000 8.0000 0.0000 12.0000 24.0000 16.0000 48.0000 24.0000 0.0000 48.0000 0.0000

Projections onto spaces

Page 38: The mathematician Ramanujan, and digital signal processing

More stuff … •  Dictionary methods •  2D versions

•  Time-period plane •  Ramanujan filter banks •  Medical applications

•  DNA microsatellites, proteins

Page 39: The mathematician Ramanujan, and digital signal processing

S. Tenneti, P. P. Vaidyanathan

Dictionaries for periodicity

2N

Any period < N can be identified

Ramanujan dictionary

Page 40: The mathematician Ramanujan, and digital signal processing

S. Tenneti, P. P. Vaidyanathan

Hidden periods: 3, 7, 11

DFT does not reveal much

Ramanujan method

periods are clear!

Page 41: The mathematician Ramanujan, and digital signal processing

S. Tenneti, P. P. Vaidyanathan

Hidden periods: 7, 10

DFT Ramanujan Dictionary

integer computations

complex computations

more errors

Page 42: The mathematician Ramanujan, and digital signal processing

Theoretical bound:

Theoretical bound, N hidden periods

Assume period is known to belong to this set:

Min. # of samples for period estimation

S. Tenneti, P. P. Vaidyanathan

Page 43: The mathematician Ramanujan, and digital signal processing

Dictionary method:

Dictionary method, N hidden periods

Assume period is known to belong to this set:

S. Tenneti, P. P. Vaidyanathan

Page 44: The mathematician Ramanujan, and digital signal processing

t

Time-localization

Need a more fundamental approach to time-period plane

Page 45: The mathematician Ramanujan, and digital signal processing

Time

Peri

od

7, 10, 15

S. Tenneti, P. P. Vaidyanathan, ICASSP 2015

Page 46: The mathematician Ramanujan, and digital signal processing

Track period as a function of time

inverse chirp signal

sample spacing

S. Tenneti, P. P. Vaidyanathan, ICASSP 2015

Page 47: The mathematician Ramanujan, and digital signal processing

small l

large l

Ex: q = 9

Can use FIR filter banks in practice:

Page 48: The mathematician Ramanujan, and digital signal processing

Ramanujan filter bank output

chirp signal

l = 5 S. Tenneti, P. P. Vaidyanathan

Page 49: The mathematician Ramanujan, and digital signal processing

Ramanujan filter bank

Page 50: The mathematician Ramanujan, and digital signal processing

STFT, window 256 STFT window 32

Fourier transform does not work

Page 51: The mathematician Ramanujan, and digital signal processing

STFT window size 256

Page 52: The mathematician Ramanujan, and digital signal processing

STFT window size 32

Page 53: The mathematician Ramanujan, and digital signal processing

Protein repeats

Ramanujan filter bank

CS and Bio-Info methods

Page 54: The mathematician Ramanujan, and digital signal processing

Ramanujan filter bank

CS and Bio-Info methods

Page 55: The mathematician Ramanujan, and digital signal processing

Time- period plane

α-helix insertion loop

Pentapeptide

period 5

Page 56: The mathematician Ramanujan, and digital signal processing

5th filter in RFB insertion loops

Page 57: The mathematician Ramanujan, and digital signal processing

2D Ramanujan space decompositions

ICASSP 2015

Page 58: The mathematician Ramanujan, and digital signal processing

original 2

4

1 2

2 3

Page 59: The mathematician Ramanujan, and digital signal processing

History of Number theory in EE …

Coding in digital communications

Acoustics in buildings Array processing

Early DSP: NTT, Winograd …

Page 60: The mathematician Ramanujan, and digital signal processing

So, Hardy is wrong!

The ‘real’ mathematics of the ‘real’ mathematicians is almost wholly ‘useless’.

G. H. Hardy 1877 - 1947

Applied mathematics, which is ‘useful’, is trivial.

The ‘real mathematician’ has his conscience clear.

Mathematics is a harmless and innocent occupation.

Page 61: The mathematician Ramanujan, and digital signal processing

Thank you!