Ordinary Least Squares and its applications

Similar documents
Tensor Visualization. CSC 7443: Scientific Information Visualization

Diffusion Tensor Imaging (DTI): An overview of key concepts

Lecture 8 Analyzing the diffusion weighted signal. Room CSB 272 this week! Please install AFNI

Diffusion Tensor Imaging I: The basics. Jennifer Campbell

PhD THESIS. prepared at INRIA Sophia Antipolis

Bayesian multi-tensor diffusion MRI and tractography

Wavelet Frames on the Sphere for Sparse Representations in High Angular Resolution Diusion Imaging. Chen Weiqiang

Fast and Accurate HARDI and its Application to Neurological Diagnosis

Orientation Distribution Function for Diffusion MRI

Diffusion Imaging II. By: Osama Abdullah

MRI beyond Fourier Encoding: From array detection to higher-order field dynamics

Basics of Diffusion Tensor Imaging and DtiStudio

Diffusion Weighted MRI. Zanqi Liang & Hendrik Poernama

DIFFUSION MAGNETIC RESONANCE IMAGING

醫用磁振學 MRM 擴散張量影像 擴散張量影像原理. 本週課程內容 MR Diffusion 擴散張量造影原理 擴散張量造影應用 盧家鋒助理教授國立陽明大學生物醫學影像暨放射科學系

Applications of Spin Echo and Gradient Echo: Diffusion and Susceptibility Contrast

Anisotropy of HARDI Diffusion Profiles Based on the L 2 -Norm

Spectral Graph Wavelets on the Cortical Connectome and Regularization of the EEG Inverse Problem

Estimation of Non-Negative ODFs using the Eigenvalue Distribution of Spherical Functions

Advanced Topics and Diffusion MRI

A generalized CSA-ODF model for Fiber Orientation Mapping

Extracting Quantitative Measures from EAP: A Small Clinical Study using BFOR

Higher Order Cartesian Tensor Representation of Orientation Distribution Functions (ODFs)

Medical Visualization - Tensor Visualization. J.-Prof. Dr. Kai Lawonn

On the Blurring of the Funk Radon Transform in Q Ball Imaging

Quantum Theory of Angular Momentum and Atomic Structure

Generalizing Diffusion Tensor Model Using Probabilistic Inference in Markov Random Fields

A Riemannian Framework for Denoising Diffusion Tensor Images

Tensor Field Visualization. Ronald Peikert SciVis Tensor Fields 9-1

Predictive Diagnosis of Alzheimer s Disease using Diffusion MRI

Contrast Mechanisms in MRI. Michael Jay Schillaci

IMA Preprint Series # 2256

A DARK GREY P O N T, with a Switch Tail, and a small Star on the Forehead. Any

DWI acquisition schemes and Diffusion Tensor estimation

An Analytical Model of Water Diffusion and Exchange in White Matter from Diffusion MRI and Its Application in Measuring Axon Radii

Bessel Fourier Orientation Reconstruction: An Analytical EAP Reconstruction Using Multiple Shell Acquisitions in Diffusion MRI

Symmetric Positive-Definite Cartesian Tensor Orientation Distribution Functions (CT-ODF)

Index. p, lip, 78 8 function, 107 v, 7-8 w, 7-8 i,7-8 sine, 43 Bo,94-96

H atom solution. 1 Introduction 2. 2 Coordinate system 2. 3 Variable separation 4

Diffusion tensor imaging (DTI):

Physics 228 Today: Ch 41: 1-3: 3D quantum mechanics, hydrogen atom

Physics of MR Image Acquisition

IV. Electronic Spectroscopy, Angular Momentum, and Magnetic Resonance

Connection to Laplacian in spherical coordinates (Chapter 13)

Sketch of the MRI Device

Diffusion Magnetic Resonance Imaging Part 1: Theory & Methods

How does this work? How does this method differ from ordinary MRI?

What Visualization Researchers Should Know About HARDI Models

Cortical diffusion imaging

Quantum Mechanics in 3-Dimensions

Characterizing Non-Gaussian Diffusion by Using Generalized Diffusion Tensors

Notes: Most of the material presented in this chapter is taken from Jackson, Chap. 2, 3, and 4, and Di Bartolo, Chap. 2. 2π nx i a. ( ) = G n.

Applications of Eigenvalues & Eigenvectors

Introduction to MRI. Spin & Magnetic Moments. Relaxation (T1, T2) Spin Echoes. 2DFT Imaging. K-space & Spatial Resolution.

Diffusion imaging of the brain: technical considerations and practical applications

HST.583 Functional Magnetic Resonance Imaging: Data Acquisition and Analysis Fall 2006

Overview of Spatial Statistics with Applications to fmri

BME I5000: Biomedical Imaging

IMPROVED IMAGING OF BRAIN WHITE MATTER USING DIFFUSION WEIGHTED MAGNETIC RESONANCE IMAGING HA-KYU JEONG. Dissertation. Submitted to the Faculty of the

Multiple Integrals and Vector Calculus: Synopsis

From Diffusion Data to Bundle Analysis

EL-GY 6813/BE-GY 6203 Medical Imaging, Fall 2016 Final Exam

Getting started: CFD notation

Diffusion-Weighted MRI may be used to measure the apparent diffusion coefficient of water in tissue.

NMR Advanced methodologies to investigate water diffusion in materials and biological systems

Two-step Anomalous Diffusion Tensor Imaging

Principles of Nuclear Magnetic Resonance Microscopy

Bloch Equations & Relaxation UCLA. Radiology

Multiple Integrals and Vector Calculus (Oxford Physics) Synopsis and Problem Sets; Hilary 2015

Physics 342 Lecture 23. Radial Separation. Lecture 23. Physics 342 Quantum Mechanics I

The Hydrogen atom. Chapter The Schrödinger Equation. 2.2 Angular momentum

A Probability Review

Exercises for Multivariable Differential Calculus XM521

Supporting Information

LOWELL JOURNAL. MUST APOLOGIZE. such communication with the shore as Is m i Boimhle, noewwary and proper for the comfort

H. Salehian, G. Cheng, J. Sun, B. C. Vemuri Department of CISE University of Florida

Lecture 4 Quantum mechanics in more than one-dimension

Electromagnetic Theory I

20 The Hydrogen Atom. Ze2 r R (20.1) H( r, R) = h2 2m 2 r h2 2M 2 R

Two Posts to Fill On School Board

3 Constitutive Relations: Macroscopic Properties of Matter

Rotational Motion. Chapter 4. P. J. Grandinetti. Sep. 1, Chem P. J. Grandinetti (Chem. 4300) Rotational Motion Sep.

Parameter estimation using macroscopic diffusion MRI signal models

Artificial Intelligence & Neuro Cognitive Systems Fakultät für Informatik. Robot Dynamics. Dr.-Ing. John Nassour J.

Lecture 11 Spin, orbital, and total angular momentum Mechanics. 1 Very brief background. 2 General properties of angular momentum operators

Diffusion tensor imaging: brain pathway reconstruction

Diffusion MRI Anisotropy: Modeling, Analysis and Interpretation

SPHERICAL POLAR FOURIER EAP AND ODF RECONSTRUCTION VIA COMPRESSED SENSING IN DIFFUSION MRI. Academy of Sciences, China

Diffusion Tensor Imaging I. Jennifer Campbell

1 Diffusion Tensor. x 1, , x n

Tight-Binding Model of Electronic Structures

12. Stresses and Strains

PEAT SEISMOLOGY Lecture 2: Continuum mechanics

Solution of Matrix Eigenvalue Problem

Recent Advances in Diffusion MRI Modeling: Angular and Radial Reconstruction

D-eigenvalues of diffusion kurtosis tensors

Diffusion MRI for Brain Connectivity Mapping and Analysis

IMA Preprint Series # 2298

PEAT SEISMOLOGY Lecture 12: Earthquake source mechanisms and radiation patterns II

Part II: Magnetic Resonance Imaging (MRI)

Transcription:

Ordinary Least Squares and its applications Dr. Mauro Zucchelli University Of Verona December 5, 2016 Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 1 / 48

Contents 1 Introduction to Ordinary Least Squares 2 OLS examples: fitting of a straight line 3 OLS examples: fitting of Wavelet coefficients 4 Diffusion MRI 5 Diffusion Tensor Imaging 6 Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 2 / 48

Introduction to Ordinary Least Squares Contents 1 Introduction to Ordinary Least Squares 2 OLS examples: fitting of a straight line 3 OLS examples: fitting of Wavelet coefficients 4 Diffusion MRI 5 Diffusion Tensor Imaging 6 Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 3 / 48

Introduction to Ordinary Least Squares OLS and Wavelet transform Every mother Wavelet ψ(t) generate a basis which can be used to represent any function f (t) ψ j,n (t) = f = 1 ψ(r 2j n 2 j 2 j ) (1) c j,n ψ j,n (2) j= n= c j,n = f, ψ j,n = f (t)ψ j,n (t)dt (3) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 4 / 48

Introduction to Ordinary Least Squares OLS and Wavelet transform There are several ways to calculate the Wavelet coefficients c j,n Calculate the scalar product f, ψ j,n Utilizing the DWT The coefficients can be also found using the Ordinary Least Squares (OLS) method Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 5 / 48

Introduction to Ordinary Least Squares Ordinary Least Squares Given a generic function y(x) and a basis B we can represent y as y(x i ) = c n B n (x i ) (4) n=0 For practical reason this summation is often truncated to the order N N y(x i ) = c n B n (x i ) (5) n=0 This problem has an equivalent matrix representation Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 6 / 48

Introduction to Ordinary Least Squares Ordinary Least Squares y is a vector s 1 where s is the number of samples c is a vector N 1 B is a matrix s N B 0 (x 0 ) B 1 (x 0 )... B n (x 0 ) B 0 (x 1 ) B 1 (x 1 )... B n (x 1 ) B =...... B 0 (x s ) B 1 (x s )... B n (x s ) (6) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 7 / 48

Introduction to Ordinary Least Squares Ordinary Least Squares The vector y can be calculated as The goal of OLS is finding the vector c that minimize s (y(x i ) i=0 or, using the matrix notation, as y = Bc (7) N c n B n (x i )) 2 (8) n=0 arg min y Bc 2 (9) c Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 8 / 48

Introduction to Ordinary Least Squares Ordinary Least Squares In order to find c it is necessary to perform some algebraic operations y Bc 2 = = (y Bc) T (y Bc) = = (y T c T B T )(y Bc) = = y T y y T Bc c T B T y + c T B T Bc = = y T y 2c T B T y + c T B T Bc (10) Note: This is equivalent to the second order equation y 2 2c(by) + c 2 b 2 (11) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 9 / 48

Introduction to Ordinary Least Squares Ordinary Least Squares In order to find c it is necessary to perform some algebraic operations y Bc 2 = = (y Bc) T (y Bc) = = (y T c T B T )(y Bc) = = y T y y T Bc c T B T y + c T B T Bc = = y T y 2c T B T y + c T B T Bc (10) Note: This is equivalent to the second order equation y 2 2c(by) + c 2 b 2 (11) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 9 / 48

Introduction to Ordinary Least Squares Ordinary Least Squares Since this equation is convex, it presents only one point in which the derivative is zero and this point is a minimum We can calculate the derivative by calculating the gradient c c (y T y 2c T B T y + c T B T Bc) = 2B T y + 2B T Bc And find the minimum 2B T y + 2B T Bc = 0 B T Bc = B T y c = (B T B) 1 B T y (12) (13) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 10 / 48

Introduction to Ordinary Least Squares Ordinary Least Squares OLS guarantees to provide the minimum error y Bc 2 This is true also when the observations y are corrupted with Gaussian noise y noise = N (y, σ) (14) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 11 / 48

OLS examples: fitting of a straight line Contents 1 Introduction to Ordinary Least Squares 2 OLS examples: fitting of a straight line 3 OLS examples: fitting of Wavelet coefficients 4 Diffusion MRI 5 Diffusion Tensor Imaging 6 Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 12 / 48

OLS examples: fitting of a straight line Case one: straight line Linear regression problem The data consist of s observations of y R, function of the independent variable x The goal is to find the straight line y = rx + q that better approximates the data Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 13 / 48

OLS examples: fitting of a straight line Case one: straight line The problem can be also viewed as y = Bc (15) where c = [r, q] T and resulting in y s x 0 1 B =.. (16) x s 1 y 0 r x 0 + q. =. (17) r x s + q Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 14 / 48

OLS examples: fitting of a straight line Case one: straight line The problem can be solved using OLS c = (B T B) 1 B T y (18) The line coefficients r and q are respectively c[0] and c[1] y fit = c[0] x + c[1] (19) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 15 / 48

OLS examples: fitting of Wavelet coefficients Contents 1 Introduction to Ordinary Least Squares 2 OLS examples: fitting of a straight line 3 OLS examples: fitting of Wavelet coefficients 4 Diffusion MRI 5 Diffusion Tensor Imaging 6 Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 16 / 48

OLS examples: fitting of Wavelet coefficients Case two: wavelet coefficients Given a function f (t) we want to represent it using a family of wavelets up to the orders J and N f (t) = J N j= J n= N c j,n ψ j,n (t) (20) In this case the representations will not be perfect, because of the truncation of the infinite series Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 17 / 48

OLS examples: fitting of Wavelet coefficients Case two: wavelet coefficients We can view the problem as f = Ψc (21) where c are the wavelet coefficients and ψ J, N (t 0 )... ψ J,N (t 0 ) Ψ =..... (22) ψ J, N (t s )... ψ J,N (t s ) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 18 / 48

OLS examples: fitting of Wavelet coefficients Case two: wavelet coefficients The problem can be solved using OLS as c = (Ψ T Ψ) 1 Ψ T f (23) Depending on the number of samples and coefficients, the square matrix Ψ T Ψ could not be invertible In this case it is necessary to introduce some regularization, conditioning the diagonal of the matrix c = (Ψ T Ψ + λ1) 1 Ψ T f (24) where 1 is the identity matrix of size n c n c and λ is a small positive number Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 19 / 48

OLS examples: fitting of Wavelet coefficients Case two: wavelet coefficients Considering two families of wavelets Haar wavelet 0, if t < 0 t 1 ψ(t) = 1, if 0 t < 1 (25) 2 1, if 1 2 t < 1 Mexican hat ψ(t, σ) = ) ) 2 1 (1 t2 2 σπ 4 σ 2 exp ( t2 2σ 2 (26) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 20 / 48

OLS examples: fitting of Wavelet coefficients Case two: wavelet coefficients Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 21 / 48

Diffusion MRI Contents 1 Introduction to Ordinary Least Squares 2 OLS examples: fitting of a straight line 3 OLS examples: fitting of Wavelet coefficients 4 Diffusion MRI 5 Diffusion Tensor Imaging 6 Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 22 / 48

Diffusion MRI The neuron The most fundamental component of the nervous system is the neuron The neuron can be subdivided in two parts: the cellular body (soma) and the axon The axons connect the different neurons in the brain Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 23 / 48

Diffusion MRI White Matter organization The neuron bodies are mainly clustered in the outer region of the brain, the brain cortex or Gray Matter The cortex is subdivided in functional regions (e.g. motor cortex) The axons are grouped in bundles that which connect the different region of the brain and form the White Matter Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 24 / 48

Diffusion MRI Magnetic Resonance Imaging Magnetic Resonance Imaging (MRI) is one of the only non-invasive technique which enables to characterize soft tissues in-vivo With traditional MRI techniques it is possible to obtain clear images of the principal brain tissues However with standard MRI resolution it is impossible to observe the white matter fibers which diameter is in the range of the micrometers Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 25 / 48

Diffusion MRI Diffusion Magnetic Resonance Imaging The goal of Diffusion MRI is to characterize the brain tissue microstructure by observing the water molecules diffusion profile By studying the principal direction of diffusion in each voxel it is possible to estimate the local orientation of the WM fibers Propagating the local information for all the voxels it is possible to reconstruct streamlines that generally follows the WM topography Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 26 / 48

Applied RF Diffusion MRI Diffusion MRI: Pulse Gradient Spin Echo Diffusion Gradient G δ Δ δ The diffusion signal is measured as a function of the b-value b = ( δ/3)(γδg) 2 Received RF We can define q = γδg, the q-value 2π And the effective diffusion time τ = δ/3 b = 4π 2 τq 2 Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 27 / 48

Diffusion MRI Diffusion MRI By changing the b-value and the direction of the pulse it is possible to measure the diffusion dependent MR signal In DMRI the signal is attenuated more in the direction where the water molecules are more free to diffuse Higher b-values corresponds to higher signal attenuation more signal from low diffusion areas Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 28 / 48

Diffusion MRI Diffusion MRI By changing the b-value and the direction of the pulse it is possible to measure the diffusion dependent MR signal In DMRI the signal is attenuated more in the direction where the water molecules are more free to diffuse Higher b-values corresponds to higher signal attenuation more signal from low diffusion areas Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 28 / 48

Diffusion MRI Diffusion MRI By changing the b-value and the direction of the pulse it is possible to measure the diffusion dependent MR signal In DMRI the signal is attenuated more in the direction where the water molecules are more free to diffuse Higher b-values corresponds to higher signal attenuation more signal from low diffusion areas Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 28 / 48

Diffusion MRI Diffusion MRI b = 0s/mm 2 b = 1000s/mm 2 b = 2000s/mm 2 Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 29 / 48

Diffusion MRI Diffusion MRI b = 1000s/mm 2 b = 1000s/mm 2 b = 1000s/mm 2 Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 30 / 48

Diffusion MRI Diffusion MRI: sampling schemes Single Shell Two Shell Cartesian Grid A higher number of points is generally better in order to characterize the diffusion process There are physical limitations (time, gradient strength, noise) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 31 / 48

Diffusion MRI Diffusion Ensemble Average Propagator The diffusion signal E(q) is linked to the probability density function of the water molecules displacement P(r) P(r) = E(q)e 2πiq r dq q R 3 This pdf is also called Ensemble Average Propagator (EAP) The EAP holds two important properties P(r) 0 r r R 3 P(r)dr = 1 Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 32 / 48

Diffusion MRI EAP-derived indices: ODF By averaging the radial part of the EAP it is possible to obtain the diffusion orientation profile of the water molecules displacement This is also known as Orientation Distribution Function (ODF) ODF (u) = 0 P(ru)r 2 dr Where u is a unit vector representing a direction Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 33 / 48

Diffusion MRI EAP reconstruction models In order to calculate the EAP from the diffusion signal it is necessary to calculate its Fourier transform If the signal is sampled in a Cartesian grid it is possible to use the Fast Fourier Transform (FFT) More generally, since the signal is generally sampled in a non-uniform manner, it is necessary to fit a mathematical model to the signal The mathematical models used in DMRI are called reconstruction models Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 34 / 48

Diffusion MRI EAP reconstruction models In order to calculate the EAP from the diffusion signal it is necessary to calculate its Fourier transform If the signal is sampled in a Cartesian grid it is possible to use the Fast Fourier Transform (FFT) More generally, since the signal is generally sampled in a non-uniform manner, it is necessary to fit a mathematical model to the signal The mathematical models used in DMRI are called reconstruction models Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 34 / 48

Diffusion MRI EAP reconstruction models In order to calculate the EAP from the diffusion signal it is necessary to calculate its Fourier transform If the signal is sampled in a Cartesian grid it is possible to use the Fast Fourier Transform (FFT) More generally, since the signal is generally sampled in a non-uniform manner, it is necessary to fit a mathematical model to the signal The mathematical models used in DMRI are called reconstruction models Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 34 / 48

Diffusion MRI EAP reconstruction models In order to calculate the EAP from the diffusion signal it is necessary to calculate its Fourier transform If the signal is sampled in a Cartesian grid it is possible to use the Fast Fourier Transform (FFT) More generally, since the signal is generally sampled in a non-uniform manner, it is necessary to fit a mathematical model to the signal The mathematical models used in DMRI are called reconstruction models Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 34 / 48

Diffusion Tensor Imaging Contents 1 Introduction to Ordinary Least Squares 2 OLS examples: fitting of a straight line 3 OLS examples: fitting of Wavelet coefficients 4 Diffusion MRI 5 Diffusion Tensor Imaging 6 Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 35 / 48

Diffusion Tensor Imaging Diffusion Tensor Imaging The most widely used reconstruction model is the Diffusion Tensor Imaging (DTI) DTI models the diffusion signal as a multivariate Gaussian function E(q) = exp( 4π 2 τq T Dq) Where D is a 3 3 symmetric matrix The DTI EAP can be calculated as P(r) = 1 (4πτ) 3 D exp rt D 1 r 4τ Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 36 / 48

Diffusion Tensor Imaging DTI fitting using OLS In order to model the diffusion signal using DTI it is necessary to fit the diffusion tensor D D x,x D x,y D x,z D = D x,y D y,y D y,z (27) D x,z D y,z D z,z The signal equation can be rewritten as ln(e(b)) b E(b) = exp( bu T Du) = u T Du (28) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 37 / 48

Diffusion Tensor Imaging DTI fitting using OLS ln(e(b)) b = [ ] D x,x D x,y D x,z u x u x u y u z D x,y D y,y D y,z u y D x,z D y,z D z,z u z = u 2 xd x,x + 2u x u y D x,y + 2u x u z D x,z + + 2u y u z D y,z + u 2 y D y,y + u 2 z D z,z (29) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 38 / 48

Diffusion Tensor Imaging DTI fitting using OLS ln(e(b)) b = [ ] D x,x D x,y D x,z u x u x u y u z D x,y D y,y D y,z u y D x,z D y,z D z,z u z = u 2 xd x,x + 2u x u y D x,y + 2u x u z D x,z + + 2u y u z D y,z + u 2 y D y,y + u 2 z D z,z (29) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 38 / 48

Diffusion Tensor Imaging DTI fitting using OLS We can recast the problem using OLS where the observations are and the coefficients vector and the matrix basis are ln(e(b i )) b i D x,x D x,y c = D x,z D y,z D y,y D z,z u 2 0x 2u 0x u 0y 2u 0x u 0z 2u 0y u 0z u 2 0y u 2 0z u 2 1x 2u 1x u 1y 2u 1x u 1z 2u 1y u 1z u 2 1y u 2 1 z M =..... u 2 s x 2u s x u s y 2u s x u s z 2u s y u s z u 2 s y u 2 s z (30) (31) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 39 / 48

Diffusion Tensor Imaging DTI fitting using OLS The coefficients can be retrieved using OLS as ( c = (M T M) 1 M T ln(e(b)) ) b (32) In theory only 6 samples are necessary to fit DTI coefficients In general, because of the noise, at least 30 samples are used in clincal practice OLS can be used for fitting the diffusion tensor only when all the sample are acquired using a single b-value Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 40 / 48

Diffusion Tensor Imaging DTI limitations Fiber configuration DTI ellipsoid Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 41 / 48

Real Spherical Harmonics Contents 1 Introduction to Ordinary Least Squares 2 OLS examples: fitting of a straight line 3 OLS examples: fitting of Wavelet coefficients 4 Diffusion MRI 5 Diffusion Tensor Imaging 6 Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 42 / 48

Real Spherical Harmonics Spherical Harmonics The diffusion signal at a given b-value and the ODF are symmetric function on the sphere Spherical Harmonics (SH) are a useful basis for representing spherical functions SH can be viewed as the equivalent of the complex exponential e iφ on the sphere Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 43 / 48

Real Spherical Harmonics Real Spherical Harmonics where Ŷ m l Y m l = 2 Re(Ŷ l m ), if -l m < 0 Ŷl 0, if m=0 2 Img(Ŷ l m ), if 0 < m l is the normalized SH basis, written as Ŷ m l (θ, φ) = (33) (2l + 1)(l m)! Pl m (cos θ)e imφ (34) 4π(l + m)! with θ, φ the polar representation of u, and Pl m Polynomial the associated Legendre Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 44 / 48

Real Spherical Harmonics Real Spherical Harmonics Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 45 / 48

Real Spherical Harmonics Real Spherical Harmonics We can fit the diffusion signal at a given b-value and in a given direction u as N l E(b, u) = c l,m Y l,m (u) (35) l=0, even m= l where the coefficients c l,m are obtained as c = (Y T Y) 1 Y T E(b, u) (36) with Y defined as Y 0,0 (u 0 ) Y 2, 2 (u 0 )... Y N,N (u 0 ) Y 0,0 (u 1 ) Y 2, 2 (u 1 )... Y N,N (u 1 ) Y =...... Y 0,0 (u s ) Y 2, 2 (u s )... Y N,N (u s ) (37) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 46 / 48

Real Spherical Harmonics Spherical Harmonics as interpolation basis We can recover the diffusion signal in u as E(b, u) = Yc (38) The coefficients c described the signal in the full S 2 space and not only in the set of points u used for the fitting E(b, û) = Ŷc (39) Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 47 / 48

Real Spherical Harmonics Fin The End Dr. Mauro Zucchelli Ordinary Least Squares and its applications December 5, 2016 48 / 48