radial basis functions: introduction and applicationswright/courses/m565/rbf_intro... · radial...

30
Radial Basis Functions: Introduction and Applications Grady Wright Dept. of Mathematics Boise State University

Upload: others

Post on 20-May-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial Basis Functions: Introduction and Applications

Grady WrightDept. of MathematicsBoise State University

Page 2: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Application: tsunami modeling and bathymetry● 2004 Indian Ocean Tsunami

● Chennai (Madras) Harbor, east coast of India

Page 3: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Application: bathymetry reconstruction and tsunami'sScattered bathymetry samples surrounding Madras Harbor

Page 4: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Application: bathymetry reconstruction and tsunami'sRBF reconstruction of Madras Harbor bathymetry from scattered samples

Page 5: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Application: cranioplastyX-ray CT scan Extracted depth map of hole

RBF reconstruction of skullRendering of skull with RBF prosthetic

Page 6: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Review of standard interpolation methodsProblem: Given discrete data, find a function that interpolates the data.

f

x

Page 7: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Review of standard interpolation methods

Piecewise linear:

Problem: Given discrete data, find a function that interpolates the data.

f

x

f

x

Page 8: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Review of standard interpolation methods

Piecewise linear: Piecewise cubic (spline):Problem: Given discrete data, find a function that interpolates the data.

f

x

f

x

f

x

Page 9: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Review of standard interpolation methods

Piecewise linear: Piecewise cubic (spline):

Global polynomial:

Problem: Given discrete data, find a function that interpolates the data.

f

x

f

x

f

x

Page 10: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Review of standard interpolation methods

Piecewise linear: Piecewise cubic (spline):

Global polynomial: Trigonometric: periodic data

Problem: Given discrete data, find a function that interpolates the data.

f

x

f

x

f

x

f

x

Page 11: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

A

Page 12: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

A

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 13: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

A

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 14: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

A

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 15: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

A

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 16: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

A

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 17: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

A

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 18: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Radial basis function (RBF) interpolationKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∣x−x j∣ , sxk= f k , k=1, , NInterpolant:

Expansion coeffcients:

Guaranteed positive-definite for appropriate φ (r)

[∣x1−x1∣ ∣x1−x2∣ ⋯ ∣x1−xN∣∣x2−x1∣ ∣x2−x2∣ ⋯ ∣x2−xN∣

⋮ ⋮ ⋱ ⋮∣xN−x1∣ ∣xN−x2∣ ⋯ ∣xN−xN∣

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 19: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Standard methods in higher dimensions● Tensor products: global polynomials, Fourier, splines

Regular grids Irregular grids Polar grids

Issues: geometric flexibilityBenefits: programming, increasing accuracy (smoothness), higher dimensions

Page 20: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Standard methods in higher dimensions● Tensor products: global polynomials, Fourier, splines

Regular grids Irregular grids Polar grids

Issues: geometric flexibilityBenefits: programming, increasing accuracy (smoothness), higher dimensions

● What happens to global methods for scattered data?

➢ Depending on the nodes, the interpolation problem may be ill-posed.

➢ There may be no solution, one solution, or an infinite number of solutions.

Page 21: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Standard methods in higher dimensions● Tensor products: global polynomials, Fourier, splines

Regular grids Irregular grids Polar grids

Issues: geometric flexibilityBenefits: programming, increasing accuracy (smoothness), higher dimensions

● Scattered data solution: use local methods (splines) and triangulations

Benefits: geometrically flexible

Issues: programming, increasing smoothness (accuracy), higher dimension

Page 22: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

Page 23: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 24: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 25: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 26: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 27: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 28: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] ,

Page 29: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

RBF interpolation in higher dimensionsKey idea: linear combination of translates and rotations of a single radial function:

s x =∑j=1

N

j∥x−x j∥ , sxk = f k , k=1, , NInterpolant:

Expansion coeffcients:

1-D: ∣x−x j∣ > 1-D: ∥x−x j∥2

[∥x1−x1∥ ∥x1−x2∥ ⋯ ∥x1−xN∥∥x2−x1∥ ∥x2−x2∥ ⋯ ∥x2−xN∥

⋮ ⋮ ⋱ ⋮∥xN−x1∥ ∥xN−x2∥ ⋯ ∥xN−xN∥

][ 1

2

⋮N]=[ f 1

f 2

⋮f N] , Guaranteed

positive-definite for appropriate φ (r)

Page 30: Radial Basis Functions: Introduction and Applicationswright/courses/m565/rbf_intro... · Radial basis function (RBF) interpolation Key idea: linear combination of translates and rotations

Quick overview of RBF properties

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 20

1

2

3

4

5

6

7

8

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2-0.5

0

0.5

1

1.5

2

2.5

3

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 20

0.5

1

1.5

2

2.5

3

3.5

4

4.5

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Piecewise smooth φ(r): Infinitely smooth φ(r):

cubic

r3

TP spline

r2 log r

multiquadric

1r2

Gaussian

e−r2

Inverse quadratic

11r2

0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 20

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8

2

linear

r

● Classes and examples of radial functions:

Algebraically accurate interpolants Spectrally accurate interpolants

● Well-posedness: Schoenberg (1938), Duchon (1977), Micchelli (1986)

● Error estimates: Duchon, Buhmann, Jetter, Madych, Narcowich, Nelson, Powell, Schaback, Ward, Wendland, Yoon, etc.