Presentation is loading. Please wait.

Presentation is loading. Please wait.

2011 COURSE IN NEUROINFORMATICS MARINE BIOLOGICAL LABORATORY WOODS HOLE, MA Introduction to Spline Models or Advanced Connect-the-Dots Uri Eden BU Department.

Similar presentations


Presentation on theme: "2011 COURSE IN NEUROINFORMATICS MARINE BIOLOGICAL LABORATORY WOODS HOLE, MA Introduction to Spline Models or Advanced Connect-the-Dots Uri Eden BU Department."— Presentation transcript:

1 2011 COURSE IN NEUROINFORMATICS MARINE BIOLOGICAL LABORATORY WOODS HOLE, MA Introduction to Spline Models or Advanced Connect-the-Dots Uri Eden BU Department of Mathematics and Statistics August 16, 2011 Slide acknowledgements: D. Keren, Dept. of Computer Sci, Haifa U.

2 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (ms) Trial

3 Motivating Problem Compute a smooth firing rate function from repeated spike train data Firing Rate (Hz) Time (sec)

4 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz)

5 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz)

6 Problem Statement Given a set of control points, P i, known to be on a curve, find a parametric function that interpolates or approximates the curve.

7 For interpolating 2 points we need a polynomial of degree 1. Polynomial interpolation (x 1,y 1 ) (x 2,y 2 )

8 For interpolating 2 points we need a polynomial of degree 1. Polynomial interpolation (x 1,y 1 ) (x 2,y 2 )

9 For interpolating 2 points we need a polynomial of degree 1. For interpolating 3 points we need a polynomial of degree 2. In general, for interpolating n points, we need a polynomial of degree n-1. Polynomial interpolation (x 1,y 1 ) (x 2,y 2 )

10 Polynomial interpolation Let’s try it on our example control points: Time (sec) Firing Rate (Hz)

11 Polynomial interpolation Let’s try it on our example control points: Time (sec) Firing Rate (Hz)

12 Polynomial interpolation Disadvantages: –Coefficients are difficult to interpret geometrically –No local operations – adjusting parameters to change one region will change all others –If polynomial degree is high: Resulting function will have unwanted fluctuations Numerical precision problems may arise. –If polynomial degree is low, the resulting curve will not interpolate the points

13 Spline interpolation Another approach: Polynomial splines –Advantages: Rich, flexible representation Geometrically meaningful coefficients –Local, piecewise, low-degree, polynomial curves with continuous, smooth joints

14 Spline interpolation Simplest Example: Zeroth order ‘spline’ –Constant function between control points –Simple mathematical representation Local (x i+1,y i+1 ) (x i,y i )

15 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz)

16 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz) Local but not continuous

17 Spline interpolation Simple Example: Linear ‘spline’ –Linear combination of the two nearest control points –Simple mathematical representation where

18 Spline interpolation Simple Example: Linear ‘spline’

19 Spline interpolation Simple Example: Linear ‘spline’

20 Spline interpolation Simple Example: Linear ‘spline’

21 Spline interpolation Simple Example: Linear ‘spline’

22 Spline interpolation Simple Example: Linear ‘spline’

23 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz)

24 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz) Local and continuous, but not smooth

25 Spline interpolation Cubic Splines –Let be cubic functions. –Produces continuous, differentiable curves –Need to decide how to model derivatives at control points Natural Splines: Derivative is zero at endpoints Cardinal Splines: Derivative determined by nearby control points Hermitian Splines: Derivatives determined by separate parameters

26 Spline interpolation Cardinal splines –Linear combination of 4 nearest control points –Features: Derivatives determined by adjacent points Shape controlled by tension parameter,

27 Spline interpolation Cardinal splines

28 Spline interpolation Cardinal splines –Basis/blending functions for cardinal spline with s = 0.5.

29 Spline interpolation Cardinal splines

30 Spline interpolation Cardinal splines

31 Spline interpolation Cardinal splines

32 Spline interpolation Cardinal splines

33 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz)

34 Motivating Problem Compute a smooth firing rate function from repeated spike train data Time (sec) Firing Rate (Hz)

35 Fitting Spline Models To define a spline model, we must specify –Control point locations (x-coordinates) –Tension parameter Often these are selected ad-hoc, but adaptive Bayesian procedures (e.g. BARS) to determine optimal values typically produce better results.

36 Fitting Spline Models Under a specified noise model, the spline parameters (heights of control points) can be estimated by maximum likelihood. –E.g. If, where is Gaussian white noise, and is a spline function, the ML estimator,, can be found by simple linear regression. –For spike data, ML spline parameters can be estimated using point process models.

37 Conclusions Splines offer one approach to modeling smooth functional relationships in neuroscience data. Cubic splines are local 3 rd degree polynomials that are piecewise continuous and differentiable. Under common noise distributions, spline models can be fit easily using ML methods. Goodness of spline model fits depends on selection of control point locations and tension parameters.


Download ppt "2011 COURSE IN NEUROINFORMATICS MARINE BIOLOGICAL LABORATORY WOODS HOLE, MA Introduction to Spline Models or Advanced Connect-the-Dots Uri Eden BU Department."

Similar presentations


Ads by Google