scieee AI-readable full text Open interactive document viewer

Statistical analysis for global tractography

Puig Castro, Alba

Abstract

[ANGLÈS] Tractography is a promising modeling technique to satisfy the increasing need for tracing the white matter pathways within the brain in a non invasive way. Therefore, better ways for doing tractography are currently under development. In concrete, global tractography is leading among local methods because the entire pathway is estimated at once, rather than step-by-step. In this work an analysis of a new method for doing global tractography is presented. This method is based on the idea presented in “Global fiber reconstruction becomes practical (by Reisert et al.)" that uses Simulated Annealing (SA), an energy minimization technique that starts with a high temperature and decreases it slowly until the final optimal configuration is found. It is also based on the idea presented in “A Bayesian framework for global tractography (de Jbabdi et al.)" of using explicit parametrization of the connection between brain regions. More specifically it uses Catmull-Rom (C-R) splines to join the two gray matter regions. Different experiments are reported with the aim of evaluating the goodness of the method and improving its quality. First, C-R curve is in fact a good option for the parametrized curve needed in the algorithm. Second, both moving the knots randomly and following a gaussian distribution around the current configuration enable to reach the steady state after a reasonable number of iterations. Third, choosing randomly the fiber to be modified in the following iteration is better than choosing always the fiber accountable for the biggest part of the total cost. Fourth, the value taken by the different parameters of the method should depend on the input data. Then, when changing the knots of a fiber in each iteration the placement of the knots can and should be restricted in the sense that we only want to take into account realistic configurations. Before starting the SA algorithm we make sure that the new configuration lies on the white matter and the angle between knots satisfies some requirements. Finally, the introduction of different penalizing terms (length and curvature) in the calculation of the final cost has been studied. Even thought the weight of these penalizing terms still needs to be decided, making a correct use of these penalizations can help reaching the steady state faster. The different experimental results presented here confirm that the method still needs to be improved in order to fit the requirements to be applied to the real data. However, after improving the method, the final result could be a big step in tractography.

Full text

Statistical analysis for global tractography A thesis submitted for the degree of Telecommunications Engineering Author: Alba Puig Castro Supervised by: Prof. Jean-Philippe Thiran, LTS 5, EPFL Prof. Ferran Marqués, ETSETB, UPC Alia Lemkaddem, PhD Student at LTS 5 Year: 2013 Statistical analysis for global tractography iii Abstract Tractography is a promising modeling technique to satisfy the increasing need for tracing the white matter pathways within the brain in a non invasive way. Therefore, better ways for doing tractography are currently under development. In concrete, global tractography is leading among local methods because the entire pathway is estimated at once, rather than step-by-step. In this work an analysis of a new method for doing global tractography is presented. This method is based on the idea presented in “Global fiber reconstruction becomes practical (by Reisert et al.)" that uses Simulated Annealing (SA), an energy minimization technique that starts with a high temperature and decreases it slowly until the final optimal configuration is found. It is also based on the idea presented in “A Bayesian framework for global tractography (de Jbabdi et al.)" of using explicit parametrization of the connection between brain regions. More specifically it uses Catmull-Rom (C-R) splines to join the two gray matter regions. Different experiments are reported with the aim of evaluating the goodness of the method and improving its quality. First, C-R curve is in fact a good option for the parametrized curve needed in the algorithm. Second, both moving the knots randomly and following a gaussian distribution around the current configuration enable to reach the steady state after a reasonable number of iterations. Third, choosing randomly the fiber to be modified in the following iteration is better than choosing always the fiber accountable for the biggest part of the total cost. Fourth, the value taken by the different parameters of the method should depend on the input data. Then, when changing the knots of a fiber in each iteration the placement of the knots can and should be restricted in the sense that we only want to take into account realistic configurations. Before starting the SA algorithm we make sure that the new configuration lies on the white matter and the angle between knots satisfies some requirements. Finally, the introduction of different penalizing terms (length and curvature) in the calculation of the final cost has been studied. Even thought the weight of these penalizing terms still needs to be decided, making a correct use of these penalizations can help reaching the steady state faster. The different experimental results presented here confirm that the method still needs to be improved in order to fit the requirements to be applied to the real data. However, after improving the method, the final result could be a big step in tractography. iv Statistical analysis for global tractography Statistical analysis for global tractography v Resum La tractografia és una tècnica prometedora que intenta satisfer la necessitat creixent de marcar els camins de la matèria blanca en el cervell de forma no invasiva. Per tant, actualment s’estan desenvolupant contínuament millores en els procediments de tractografia. En concret, la tractografia global lidera per sobre dels mètodes locals degut al fet que s’estima el camí sencer en comptes d’estimar-lo pas a pas. En aquest treball s’analitza un nou mètode per fer tractografia global. Aquest mètode es basa en la idea presentada a “Global fiber reconstruction becomes practical (de Reisert i al.)"que utiliza Simulated Annealing (SA), una tècnica de minimització de l’energia que s’inicia amb una temperatura elevada que decreix lentament fins a obtenir la configuració òptima final. També es basa en la idea presentada a “A Bayesian framework for global tractography (de Jbabdi i al.)"d’utilitzar una parametrització explícita de la connexió entre regions del cervell. Concretament utilitza les corbes de Catmull-Rom (C-R) per unir dos regions de matèria gris. Diferents experiments són analitzats amb la finalitat d’evaluar la bondat del mètode i millorar-ne la qualitat. Primer, la corba C-R és útil com a corba parametritzada. Segon, quan movem els nodes aleatòriament o seguint una distribució gaussiana les dues opcions permeten arribar al cost mínim al cap d’un nombre raonable d’iteracions. Tercer, a cada iteració és millor escollir aleatòriament la fibra a modificar que escollir la fibra responsable de la major part del cost total. Quart, els valors que han de prendre els diferents paràmetres depenen de les dades d’entrada. Després, al modificar els nodes d’una fibra a cada iteració cal restringir la posició d’aquests en la matèria blanca, i restringir també l’angle entre nodes. Finalment, s’ha estudiat la introducció de diferents termes penalitzadors (longitud i curvatura) en el càlcul del cost final, amb un resultat positiu. Els diferents resultats experimentals presentats aquí confirmen que el mètode encara ha de ser millorat per tal de satisfer els requeriments i poder ser aplicats a dades reals d’entrada. Tot i així, una vegada millorat el model, el resultat final podria ser un gran pas en el camp de la tractografia. vi Statistical analysis for global tractography Statistical analysis for global tractography vii Resumen Tractografía es una técnica prometedora que intenta satisfacer la necesidad creciente de trazar los caminos de la matéria blanca en el cerebro de manera no invasiva. Por lo tanto, actualmente se están desarrollando continuamente mejoras en los procedimientos de tractografía. En concreto, la tractografía global lidera por encima de los métodos locales debido a que se estima el camino entero a la vez en lugar de estimarlo paso a paso. En este trabajo se analiza un nuevo método para hacer tractografía global. Este método se basa en la idea presentada en “Global fiber reconstruction becomes practical (de Reisert et al.)"que utiliza Simulated Annealing (SA), una técnica de minimización de la energía que empieza con una temperatura alta que decrece lentamente hasta conseguir la configuración óptima final. También se basa en la idea presentada en “A Bayesian framework for global tractography (de Jbabdi et al.)"de utilizar una parametrización explícita de la conexión entre regiones del cerebro. Concretamente, utiliza las curvas de Catmull-Rom (C-R) para unir dos regiones de materia gris. Diferentes experimentos son analizados con la finalidad de evaluar la bondad del método y mejorar la calidad. Primero, la curva C-R es útil como curva parametrizada. Segundo, cuando movemos los nodos aleatoriamente o siguiendo una distribución gausiana las dos opciones permiten llegar al coste mínimo después de un número razonable de iteraciones. Tercero, en cada iteración es mejor escoger aleatoriamente la fibra a modificar que escoger la fibra responsable de la mayor parte del coste total. Cuarto, el valor que deben tomar los distintos parámetros depende de los datos de entrada. Después, al modificar los nodos de una fibra en cada iteración debe restringirse la posición de estos en la materia blanca, y restringir también el ángulo entre nodos. Finalmente, se ha estudiado la introducción de distintos términos penalizadores (longitud y curvatura) en el cálculo del coste final, con un resultado positivo. Los distintos resultados experimentales presentados aquí confirman que el método todavía debe ser mejorado para satisfacer los requerimientos y poder ser aplicados a datos reales de entrada. Aún así, una vez mejorado el modelo, el resultado final podría ser un gran paso en tractografía. viii Statistical analysis for global tractography Acknowledgements There are a number of people without whom this thesis might not have been written, and to whom I am greatly indebted. First of all I would like to thank Professor Jean-Philippe Thiran, the director of my master thesis, for accepting me in the Signal Processing Laboratory 5 (LTS5), just by having some references and my CV. It has been a great honor to become part of the "Diffusion Group". I would also like to thank Alia Lemkaddem for helping me on making this project become true. She answered hundreds of doubts and spent tens of hours in meetings, sharing her knowledge and experience. Not only did she do that, but also had nice words every time I was disoriented. I will never forget her saying: "If we knew it, we wouldn’t be doing research". A special "thank you" also to Alessandro Daducci for helping me in the beginning on getting familiar with the code. Finally, I would like to thank all the people not only from my research group but also from other groups for their contribution to the project. For instance, the insights that Ricard Delgado and Ferran Mazaira gave me were of useful help. I cannot miss the opportunity of thanking Professor Ferran Marqués, director of Escola Tècnica Superior d’Enginyeria de Telecomunicació de Barcelona (ETSETB) from Universitat Politècnica de Catalunya (UPC). He was the engine that made everything work. You managed to motivate me with this project, and gave me the contact to apply for a Master Thesis position in the École Polytechnique Fédérale de Lausanne. To all my new friends in Lausanne who made my stay in Switzerland one of the best memories ever. In concrete, thanks to Bel Mias, Pere Farrero, Pep Soldevila, Dani Aldeguer, Dimitrios Manolas, Ana Olasolo and Ignasi Canales not only for listening to me, but also for laughing, eating, running, and going out with me. I could not have found better friends than you. Thanks! Thank you to Pere for creating unforgettable memories out of this Erasmus experience. He has taught me not only about love but also about sincerity and patience. Feelings are not the only thing that matters; it is even more important to be capable of sharing them xvi Statistical analysis for global tractography Chapter 1 State of the art 1.1 Introduction In the brain, the axons of the neurons form fiber tracts which impose directionality (anisotropy) on measurements of water diffusion. Tractography is a 3D modeling technique that appeared to satisfy the increasing need for tracing the white matter pathways within the brain, in a non invasive way, for medical purposes. During the past decade, diffusion-weighted magnetic resonance (MR) imaging was deeply investigated. In concrete, diffusion-based tractography offers an enormous potential for the study of human brain anatomy. This technique is based on the assumption that the dominant direction of water motion aligns with the predominant orientation of the fibers in an imaging voxel. This anisotropic diffusion is leaded by the restriction that axonal membrane and the well-aligned protein fibers within an axon have on the water diffusion, making it move perpendicular to the fiber orientation. 1.1.1 Medical applications for diffusion-based tractography - Stroke [21]: Tractography can be used in patients with stroke to visualize damage. By using tractography, one can detect an increase in diffusivity at the site of an infarct [19]. Apart from that, it can also be useful to assess the degree to which structural damage to motor-output pathways predicts functional reorganization [10]. - Multiple sclerosis [21]: Tractography can help assessing the pathological process in the white matter pathways 2 Statistical analysis for global tractography [17]. Moreover, it introduces quantitative measures that indicate what causes the disability [20]. - Epilepsy [21]: Tractography can assess the pathology on the white matter tracts of chronic epilepsy and evaluate the structural changes that have been caused by surgical procedures and to predict the effects of surgery [18]. It has also permitted an investigation of the reorganization of the language functions of patients with epilepsy [11]. - Neurodegenerative diseases, such as Alzheimer or Parkinson [21]: There is always an axonal degeneration accompanying the loss of neurons in neurodegenerative diseases. With diffusion tensor imaging changes in the brain can be detected at an early stage [13], and with tractography these changes can be associated to specific tracts [13]. - Neurosurgery [21]: Tractography can be used to identify initial sites for electrocortical stimulation, which enables the surgeon to localize the eloquent cortex quicker. It can also help in neurosurgical planning and neuronavigation [3]. - Spinal cord disorders [21]: Tractography can help to identify inflammatory diseases of the spinal cord [12]. However, it is less applied to the spinal cord because of being such a small structure [5]. 1.2 The notion of water diffusion Molecular diffusion [23] stands for the notion that each molecule existent in a fluid is randomly displaced when the molecule is agitated by thermal energy. The motion of water molecules in a glass is totally random within the glass. The displacement distribution is the function that describes the global behavior of a population of water molecules contained in an imaging voxel. For free water molecules the displacement distribution is typically a Gaussian function. In 1D, for each displacement distance r, a histogram can be constructed by counting the number of water molecules that have been displaced this distance rgiven a time interval. In order to understand the histogram in multiple dimensions it is useful to color-code the probability. Following this idea it is possible to represent 3D diffusion as a 3D image with the probability of Statistical analysis for global tractography 3 displacement in the three intersecting planes. This 3D diagram can look like the one showed in Figure 1.1: Figure 1.1: Diffusion probability density function within a voxel The same concept can be applied to biological tissues instead of free water molecules in a glass. Tissues are porous structures made up of some connected compartments defining a network. Thus, compartments and other molecular obstacles in biological tissues restrict the movement of the water molecules. In concrete, neuronal tissue consists in aligned and packed axons that are surrounded by glial cells and are grouped in bundles. Because of the cell membrane and other properties, water molecules have a difficult way moving in a perpendicular orientation to the axonal orientation. When water displacement parallel to the fiber is greater than in other directions, the prevailing condition is anisotropy. To characterize diffusion a 6D image is needed because it should contain the position p of the voxel (a 3D vector), and for each position the 3D displacement distribution should be stored (another 3D vector). Therefore, the 6D image contains the three position variables and the three displacement variables. The main issue then is how to represent 6D data in only three dimensions. The main objective is to determine the direction of the most rapid diffusion, so it can be useful to consider an orientation distribution function (ODF) [23] and plot it for each voxel. 1.3 Diffusion weighted imaging techniques There are different types of diffusion magnetic resonance (MR) imaging techniques [23], some of them simpler than others. Depending on how accurate the results should be there 4 Statistical analysis for global tractography are different techniques that can be used. The chronicle evolution goes as follows: Initially there was the mapping of apparent diffusion coefficient values. Then Diffusion Tensor Imaging (DTI) appeared. Its evolution was the q-ball imaging. A big step was made with Diffusion Spectrum Imaging (DSI). From the different local reconstruction techniques it is possible to compute scalar maps or do tractography. 1.3.1 Local reconstruction Diffusion-weighted MR Imaging Diffusion-Weighted Imaging (DWI) is the result of applying a single pulsed gradient sequence in one gradient direction. The information obtained from this method is the diffusion measurement in one direction. DWI is commonly used in investigations of stroke [27]. The advantage of this technique is that the acquisition time is short. The main drawback is that it gives very limited information. Diffusion Tensor Imaging Diffusion Tensor Imaging (DTI) [7] is used when one is interested in the orientation of axonal bundles in which diffusion is expected to be anisotropic. The result of this procedure is an estimated diffusion tensor (3x3 matrix that fully characterizes diffusion in 3D space). A lot of mathematical properties can be extracted from this diffusion tensor. For instance, the mean diffusion is computed by averaging the diagonal elements of the matrix. In order to get the direction of the maximum diffusion (the principal direction of diffusion) the eigenvectors and eigenvalues of the tensor must be computed. The eigenvector that corresponds to the largest eigenvalue is the principal direction of diffusion. Depending on the value of the three eigenvalues, the diffusion shape will be planar, cigar or spherical [6]. This model is useful when there is only one bundle of fibers, and picks up the good fiber orientation. However, it does not detect well crossings or kissings. Have a look at figures 1.3 and 1.4 to see an example of fibers crossing and kissing. Diffusion Spectrum Imaging Diffusion Spectrum Imaging (DSI) manages to identify crossings with the correct angular resolution, so it is better when having a complex network of fibers. It allows a posterior Statistical analysis for global tractography 5 more realistic mapping of connectivity. However, compared to DTI,DSI clearly needs more acquisition time. Q-Ball Imaging This technique tries to pick up the best from the last two techniques: DTI and DSI [8]. Q-Ball imaging is a faster technique than diffusion spectrum imaging but can distinguish multiple crossing fibers within a single voxel. The principle on which Q-Ball is based is performing a dense sampling of the signal within a sphere with constant high b value in q-space. The result is an estimated map of orientation distribution function (ODF) values. 1.3.2 Scalar maps From the different types of diffusion imaging we can calculate the widely used scalar maps like apparent diffusion coefficient (ADC) or Fractional anisotropy (FA) and also extract other contrasts reflecting different features of the diffusion probability density function (pdf). ADC and Trace The apparent diffusion coefficient (ADC), represents the trace of tensors. It considers a 3D isotropic Gaussian distribution and replaces the coefficient D by the parameter ADC, which is computed with the following formula: ADC =−bln(DW I bo) where Diffusion-Weighted Imaging (DWI) is the intensity from the diffusion-weighted image for a specific b value, and bois a reference image without diffusion weighting. It gives the estimated diffusion coefficient. The drawback is that ADC depends too much on the direction of diffusion encoding. FA, GFA The Fractional anisotropy (FA) is a commonly used parameter to characterize anisotropy in the brain. Bright pixels represent areas where the anisotropy is high, and thus the areas where brain white matter is concentrated. 6 Statistical analysis for global tractography The Generalized fractional anisotropy (GFA) are higher order models using spherical harmonics and orientation distribution function (ODF) used to define newer and richer estimates of the anisotropy. GFA computations use samples of the ODF to evaluate the anisotropy in diffusion. 1.3.3 Diffusion MR Tractography Tractography is a method used to clarify the architecture of the neuronal tissues by integrating pathways of maximum diffusion. It considers numerous intersections between fibers that can be resolved. Its results depend on the tracking algorithm used. 1.4 Tractography There are different ways for approaching tractography: local and global methods. 1.4.1 Local tractography Local methods construct fibers path-by-path, without allowing the possibility that the fibers influence each other. They allow the reconstruction of long neuronal pathways in small successive steps by following the local direction of the fiber in a given voxel. The advantage of local methods is that they are faster than global methods. On the contrary, the main drawback is that minor errors in the determination of a local step may significantly affect the final path, making the method unstable. Local tractography is basically used for exploratory analyses, where the anatomy of a connection is not known or the connection may not be present in all subjects. There are some general factors that need to be considered when doing tractography: - Termination criteria: It is logical not to continue a fiber tract if we have arrived at gray matter because it is a region with very low anisotropy, and therefore it is more sensitive to noise errors. Quantitatively, one can set a lower threshold for the Fractional anisotropy (FA), for example 0.2. A second useful criterion is to limit the angle change between voxels. A good option is to set a threshold that prohibits a sharp turn between path-connected pixels. - Effect of noise: Statistical analysis for global tractography 7 It can be that the 3D vector field obtained by Diffusion Tensor Imaging (DTI) or similar contains noise. This would mean that the calculated direction of maximum diffusion may differ from the real direction and these noise errors would propagate through the entire reconstructed path. To reduce the effect of the noise different techniques such as smoothing or interpolation can be implemented [26]. Although they reduce the effective resolution, they manage to lower the noise by averaging vector information along neighboring voxels. - Branching: Some white matter tracts are known to bifurcate at some point, what is named as branching (See figure 1.2). Figure 1.2: Fibers branching (converging or diverging depending on the sense of the fiber) Thus, there is a need of being able to split a line into two. A good approach to consider this situation is to initiate the tracking from all voxels within the brain and keep the results that penetrate the voxel of interest (the voxel that contains the branching). This way one is using all voxels in the brain as seed voxels instead of using the voxel of interest as a seed voxel. - Crossing and kissing: Fibre crossing (See figure 1.3) and fiber kissing (See figure 1.4) are important problems for most existing Diffusion Tensor Imaging (DTI) based tractography algorithms. For that reason it is important to have a method that contemplates and resolves the fact of having fibers kissing or crossing. Figure 1.3: Fibers crossing Figure 1.4: Fibers kissing 8 Statistical analysis for global tractography Local deterministic tractography Deterministic tractography methods are primarily based upon streamline algorithms where the local tract direction is defined by the major eigenvector of the diffusion tensor. These approaches have been used to map out white matter anatomical connections in the human brain. The most intuitive tracking algorithms are the classical deterministic Streamline (STR) tracking algorithms [25]. The accuracy and variance of the tract reconstruction is a function of the algorithm, the Signal to noise ratio (SNR), the Diffusion Tensor (DT) eigenvalues, and the tract length. Crossing white matter tracts create significant challenges for the tract reconstruction. The most intuitive approach was to connect voxels by propagating a line from the seed voxel following the local vector orientation [26]. The main issue was that, because voxels are discrete entities, the resultant propagation might not completely reflect the vector information. The idea was then to get a continuous tracking line, which was called FACT (fiber assignment by continuous tracking), and consisted in converting the discrete voxel in a continuous number field. An evolution of this simple linear approach was an interpolation approach: to propagate a line with a small, predefined step size, following the orientation defined by the distanceaveraged vector or something more complicated such as the diffusion tensors. Local probabilistic tractography Because the measurements come from voxels that are much larger than axons, each point in the brain may have many connections. Furthermore, since the measurements also contain errors, and our models can never be perfectly accurate, even if there was only one connection we would always be uncertain as to its exact pathway. The goal of probabilistic tractography is to obtain a connectivity index along a white matter pathway that reflects fibre organization and is sensitive to pathological abnormalities contributing to disability. Probabilistic tractography techniques are normally based on Probabilistic Index of Connectivity (PICo) [9], DT,orientation distribution function (ODF),persistent angular structure (PAS), etc. and not on the principal direction or extracted maxima alone. An example of local probabilistic tractography is the fast marching technique. It is an energy minimization technique that consists in calculating successively the front propagation Statistical analysis for global tractography 9 with higher speed and then follow the gradient of steepest path [26]. 1.4.2 Global tractography While local tractography is basically used for exploratory analyses, where the anatomy of a connection is not known or the connection may not be present in all subjects, global tractography is mainly used to reconstruct a connection between two end regions. The global methods try to reconstruct the fiber paths simultaneously while finding the configuration that minimizes the difference between the measured data and the reconstruction. This approach defines both end regions where the pathway is thought to terminate and searches the space of all possible connections between these two regions for the connection that best fits the data. Thus, the entire pathway is estimated at once, rather than step-by-step. This global approach reduces the sensitivity to local noise and modeling errors. Marco Reisert proposed in “Global fiber reconstruction becomes practical" [16] a new realization of global fiber tracking. This method consists in building the fibers with small line elements. It is also based on the principle of the association between the directions of fast diffusion and the direction of a fiber bundle present in a given voxel. This new approach differed from the rest in that all the neuronal pathways and the totality of the signal were taken into account simultaneously. The method included three main steps: creation of a trial fiber configuration, calculation of the corresponding diffusion-weighted signal, and adjustment of the trial configuration to the experimentally measured signal to minimize the difference. The elements that formed the reconstructed fibers were small straight cylinders with variable length, position and orientation. The method consisted in the following procedure: initially there are cylinders randomly distributed in white matter. The reconstructed chains will have starting and ending points in the desired position. It is usually wanted that chains start and end at the boundary with gray matter. After the interaction between the cylinders a long chain with low branching probability is built. In order to get the similarity between the reconstructed signal and the measured one an external field is created. This field is the responsible of forcing the cylinders to take concrete orientations and densities locally. In order to redefine the parameters of the cylinders until the best configuration is found, a method called “Gibbs tracking” is implemented. 16 Statistical analysis for global tractography Moreover we propose some restrictions based on the prior anatomical knowledge. First, the information in the brain follows the path with the shortest length, or what is the same, the path that reaches the destiny most straight forward. And second, the real connections do not do big turns. The hope is that with this method the reconstruction can be equal or more exact than with Gibbs tracking but having a smaller computation time. Furthermore, there is also the hope that it will prevent fibers from ending in the white matter. 2.1.1 Initial given setup When this project started at the beginning of February there was an already existing setup that has become the basis of my own work. I was given the method mentioned above (containing the Simulated Annealing (SA) algorithm) adapted to the Bezier curve. The implementation that was given for the Bezier curve had the following features: The Bezier curve was defined by giving 4 initial knots with components in the 3 axis, and the points of the curve were then calculated for a 3rd order spline. To calculate the length of the curve, an approximation was made: [dist(knot(0), knot(1)) + dist(knot(1), knot(2)) + dist(knot(2), knot(3))] + [dist(knot(0), knot(3)] 2 where the distance was calculated as usually: dist(knot(0),knot(1)) = q(knot(1).x −knot(0).x)2+ (knot(1).y −knot(0).y)2+ (knot(1).z −knot(0).z)2 In our case it is interesting to have equispaced evaluations of the points of the curve. To achieve this aim there was a reparametrization by the arc-length. Another already existing implementation was the Simulated Annealing (SA) code. Before running the code the initialization of the fibers must be given. This means that one should decide the number of fibers to launch (this number will be maintained during the whole execution) and the initial setup of the fibers by describing the knots for each curve. There were two possibilities already implemented for the initialization: initializing the knots randomly or choose the configuration taken by the shortest path. For the simulated annealing the cost is defined as the difference between the signal from the current fiber configuration and the ground truth. The other existing thing was the ground truth to test the correct behavior of the algorithm. This first ground truth was called "the toy example". This toy example consisted in 10 horizontal fibers and 6 vertical ones. Statistical analysis for global tractography 17 In figure 2.1 I am showing the toy example ground truth. Figure 2.1: The toy example as ground truth 2.2 Problem formulation The method needs to be formulated so that it becomes practical and comprehensible. Our global method must be first tried with a simple ground truth, second with a phantom and finally with real data. We are using the ground truth to check if the algorithm is working well. We denote the set of points that define the spline as knots. Changing one of these knots the curve is modified. For that reason, the knots corresponding to each state need to be stored so that in case we accept the step we are able to reconstruct the path given the knots. First of all some variables need to be defined: 1. Number of fibers: The algorithm is setting up the amount of fibers that will be present during the reconstruction. 2. The maximum number of iterations that the algorithm will be doing before finishing with the last accepted fiber configuration. To choose this parameter we need to make sure that we reach the stable state to be sure that we have arrived at the local minima. 3. The curve parameters: - Segment length: this variable refers to the space between two consecutive sample points that are taken to construct the curve with segments given the knots. 18 Statistical analysis for global tractography - Number of knots: In the Bezier curve we are taking 4 control points (knots) in order to draw the curve. More points could be required, being the number of points a multiple of 3x+ 1. To summarize, given the configuration for the initial parameters, the algorithm is executed for a limited number of times and gives a cost for each iteration. Taking all the accepted costs it is possible to study the method itself: on the one hand it is possible to do a statistical study to discover how does the cost evolve depending on the values for the parameters. On the other hand it is possible to see how good is the chosen type of spline and compare the results between splines. Apart from all that, it is also possible to understand how does the cost depend on the decisions that are made in the algorithm or on the number of knots defining the curve. 2.3 Project objectives The final objective after this project is to characterize the uncertainty of the global solution given by this new algorithm. Before arriving to this step, it is important to define other objectives that allow us to reach the main question for any new implemented method: is it better than the already existing ones? The first objective is to choose between two possible realizations of the curve: the Catmull- Rom (C-R) curve and the Bezier curve. This should be first implemented in the toy example and, after deciding which curve is satisfying our needs in a better way, I will check whether or not this decision works fine with a more complicated ground truth: the FiberCup phantom. The FiberCup phantom is intended to provide a common dataset with known ground truth along with an evaluation methodology to compare and challenge tractography algorithms. The phantom that I am using looks like the figure 2.2. Second, the topic of how to move the knots needs to be addressed. Questions such as "How to move a knot wisely?" or "Are there smarter ways apart from randomly or following a gaussian distribution" should be answered. Third, we should decide how are we are going to choose the fiber that we are moving in each iteration. Questions such as: "Are we going to choose any fiber with the same probability?" or "Do we want to give any type of preference to a concrete fiber that may allow us to convergence to the minimum cost in a faster way?". Fourth, we should study the influence that each of the parameters has on the evolution Statistical analysis for global tractography 19 Figure 2.2: The FiberCup phantom of the costs. Finally, I will discuss the improvements when adding regularization terms similar to the length, which is already implemented. I am using the curvature to differentiate between type of curves. This will also be implemented in the toy example first and then will be checked for the FiberCup phantom. 20 Statistical analysis for global tractography Chapter 3 Project task descriptions 3.1 On the toy example 3.1.1 Catmull-Rom Curve vs Bezier curve To benchmark the two possible implementations of the curve, we need to first define the criteria to compare them. In this case, a better implementation is the one that gives a minor cost and gives a more realistic path (no loops, big curvatures or going back and forth). So, to decide which curve do we prefer we need to do the following: - Check the array of accepted costs, and see which type of curve reaches a smaller minimum cost. - Check the amount of time needed before reaching the stable state (the accepted costs moving around the global minimum). - Check which of the two is the best configuration of fibers after reaching the end: see which one has a reconstructed path more similar to the ground truth or the phantom. The best configuration is the one that has the most straight path for all the fibers. All this will be made using the toy example as ground truth. In a second section it will be applied to the FiberCup phantom to check if it still works. 22 Statistical analysis for global tractography 3.1.2 How to move the knots In each step of the Simulated Annealing (SA) we choose a fiber and a knot from this selected fiber, we move it and recompute the parametrization and the new cost of the curve. But there are some ways to move the knot depending on our prior knowledge. In other words, if we know that we are starting from a good solution it is reasonable to think that we do not want the knots to move in a completely aleatory way but close to the place where they are currently located. On the contrary, if we start from a random configuration, it sounds better to allow the knots move randomly until they get closer to the optimal solution because this will be faster than remaining in the surroundings in each step. Thus, we consider different ways to move the knots, compare them with the aleatory movement and decide which one is the most effective. To decide the new position we need to assign probability to each position and then pick up a position taken into account the probability. When choosing the option of moving the knots randomly we are actually distributing the total probability equally among all the possible positions. I have studied the most known probability distributions and select the ones that can intuitively fit our requirements. Because I am looking for a continuous distribution to cover all the space that simulates the brain, I am directly discarding probability distributions such as the Bernoulli distribution (pp. 31-33 [14]), the Binomial distribution (pp. 43-47 [14]), the Geometric distribution (pp. 106-108 [14]), I have also discarded the Beta distribution (pp. 34-42 [14]) because of two reasons: the first one is that it has as support a semi-infinite interval, what means that we would need to truncate it to fit into our finite space. The second reason is that when the two parameters of the Beta are large enough, it can be considered as a Normal distribution, which is the second case that we have not discarded. As we do not want to allow points to move on the infinite space but just inside the brain, we exclude all the distributions with infinite support, and also those supported on semiinfinite intervals such as the Chi-squared (pp. 52-57 [14]) or the Gamma (pp. 98-104 [14]) distributions. From those of finite support, we take the continuous uniform distribution on [0,1], and the truncated normal distribution on [0,1] (pp. 145-151 [14]), since most of the other distributions of finite support can be approximated to a normal distribution. I am studying the differences between choosing one or the other one. Statistical analysis for global tractography 23 3.1.3 How to choose the fiber Also in the Simulated Annealing (SA) algorithm, the fiber should be chosen before choosing the knot. Here we consider two possibilities: to choose the fiber randomly with a uniform probability spread between all the existing fibers, or to choose the fiber accountable for the biggest part of the cost. In the second option, we should compute which fiber is responsible for which amount of the total cost and then identify the worst one. The process to find the “worse fiber" is the following: Firstly, at the same time that we sum the contribution to the signal of each fiber consecutively, we store this contribution in a variable for each voxel of each fiber. Then, I compute and store the cost related to each voxel of each fiber defined as the difference between the signal of the ground truth and the signal stored for the voxel of the fiber. Posteriorly I look for the voxel of the fiber responsible for the maximum cost and identify the fiber to whom this voxel belongs. This is the fiber that will be moved at the next iteration. 3.1.4 Study the variability of the parameters As we have already said, the method requires to set up the value of all the initial parameters. In order to decide which are the best values first we need to study the variability of the different parameters and how does the value of a parameter affect the final array of costs. In the first place I will analyze qualitatively the array of accepted costs taking different values for a parameter, all else being equal. I will run the same experiment for each of the parameters. Quantitatively, I will analyze if it makes sense to adjust a model to model the cost depending on the values of the parameter. Finally, to set up the optimal configuration for all the parameters at the same time, I will study if it makes sense to extract a linear model from the data, evaluate the quality of the model and decide how good does the model adjust to the data. If we get an expression for the model we will be able to apply a method of minimization. The parameters that I will be studying are the following ones: - Segmentation length: It is the distance between two points of the curve. It is also the size of the segment that cuts the point. These segments altogether form the curve that we then paint. - SA_beta: it is the coefficient of the term that penalizes the fiber cost if it has a big 24 Statistical analysis for global tractography length. Defining a big value we increase the influence of the length in the total cost. - SA_C: It is the inverse of the temperature in the Simulated Annealing (SA) algorithm. - signal_SIGMA: This parameter is taken from the idea defined in [16]. It describes how much each segment of the spline influences the neighborhood. - b: This parameter is related to the data that we take as input to reconstruct the paths. It is the value of diffusion. This parameter is needed to simulate the Diffusion-Weighted Imaging (DWI) signal. In general one acquires the data with a certain b, but in our current method we are simulating the data, so we are choosing it initially. -Signal to noise ratio (SNR) : This parameter is also related to the data. It indicates the level of a desired signal to the level of background noise. 3.2 On the FiberCup phantom 3.2.1 Catmull-Rom goodness The Catmull-Rom (C-R) curve usefulness over the Bezier curve in our research has already been demonstrated for the toy example ground truth. In this new phantom the property of having the curve passing through the control points (or knots) is crucial. If the curve does not interpolate the knots, it is not possible to discard any setup at the moment of choosing a new configuration for the knots. My intention is to discard any configuration that can be known in advance to be outside the white matter before starting the Simulated Annealing (SA) algorithm and use an iteration to reject the named configuration. With C-R if a knot is placed outside the white matter we can ensure that the path does not fit the reality, since we know in advance that in reality the information cannot pass outside the white matter. Here I want to check that in fact for the FiberCup phantom the C-R curve still fits the requirements set up in the research. To check the correct behavior of the C-R curve I want to make sure that the curve is staying in the white matter and it does not make loops or goes back and forth again. To achieve this aim we need to implement similar restrictions to the ones I used for the toy example ground truth. Statistical analysis for global tractography 25 3.2.2 How to initialize the fibers The fibers should be initialized inside the white matter so that the initial cost is something not too far away from a plausible minimum cost. I first try the option of setting up an initial configuration for the fiber that has all the knots inside the white matter but without any criteria. Second, I try the option of first doing some manual trials taking the cost for different configurations of the initial knots, and after having enough samples take the configuration accountable for the minor cost and see the evolution of the cost starting from that point. I should remark that the process of finding this initial configuration is just an approximation for finding the optimum fiber. 3.2.3 Choosing the knots at each iteration For this first attempt to study the method on the FiberCup phantom, I have decided to move only the middle knots of the Catmull-Rom (C-R) curve. I want to point out that out of the 6 control points that define a C-R curve of 3rd degree, the first and the last ones are not forming part of the curve, and the second and the fifth ones are the real extremes of the curve drawn between the points. Thus, the middle points that I am moving are just the two central points out of the six. The extremes and the outer knots are placed in the grey matter. The first and the second control points are in the same position, one on the other one, and the same for the two last control points. Every time that we start a new iteration of the Simulated Annealing (SA) algorithm we recompute a new position for these two middle points. We do not continue through the algorithm until the new configuration satisfies the restrictions imposed by the angle between three consecutive knots and the ones imposed by the bounding box [4]. By doing the selection outside the SA loop placed next, I skip counting the false selections of the knots as rejected configurations. Thus, it is more likely to have configurations that are accepted because I have already made the preselection outside the loop in charge of accepting or rejecting the current setup of the fibers. Next I am going to present the restriction boundaries that I have taken based on the values of the angle between three consecutive knots. Since the extreme knots are not interpolated and it makes no sense to define an angle in 32 Statistical analysis for global tractography Figure 4.1: Catmull-Rom curves. Example of a final configuration that has a loop present in one fiber intersections between adjacent parts of the curve (we consider a part of the curve as the fragment of the curve which is comprised between 2 consecutive knots). 2. Change the parametrization from the arc-length reparametrization to the centripetal parametrization. With this new parametrization one can avoid self-intersections in the same part of the curve. However, this does not help to solve the looping issue because we do not have loops in the same part of the spline. 3. Define a bounding box [4] like the one in the figure 4.3 With this bounding box we avoid non-adjacent segment intersections. Statistical analysis for global tractography 33 Figure 4.2: Angle between the 3 consecutive knots The centripetal parametrization is not helping to solve the issue because there are no self-intersections in the part of the curve existing between two consecutive knots. Both the angle restriction between three consecutive knots and the bounding box restriction are useful. The restrictions should be defined from the beginning and will be the responsible for accepting more or less configurations depending on how restricted I choose the limiting values. If the algorithm is too much fixed and it has not enough freedom to reach the desired steady state because the method reaches the maximum number of allowed iterations without accepting enough iterations. For this reason I changed the approach and created a penalization term instead of impose too strong restrictions. This term is the value of curvature of the fiber. To calculate the curvature of a fiber I have used the idea taken from [15] which gives the expression for the curvature taking the second derivatives. We have also added a penalization term for the length whose aim is to worse any curves with longer length respect to the shorter ones, by giving a higher cost and thus refusing it more likely. I have arbitrarily set the weight for this penalization term at 0.2. It is reasonable because the cost goes between 2 and 100. 34 Statistical analysis for global tractography Figure 4.3: Bounding box for a part of the Catmull-Rom curve We need to remark that If we choose a good initial configuration, with a penalization for a higher length, the cost is practically not evolving, and the initial setup is practically invariable. As a result, we prefer Bezier curve because to fix the issue with the loops we need to restrict too much the cost. 4.2 How to move the knots The first option that I have tested is to have an aleatory initialization of the fibers. Moving the knots totally randomly (see figure 4.4) or with a Gaussian distribution (see figure 4.5) in each iteration offer the same results. Thus, both options for moving the knots are good because the steady state at which both arrive is quite similar. Statistical analysis for global tractography 35 Figure 4.4: Accepted costs beginning with a random position of the knots when having a uniform probability distribution The second option is to set up different probabilities for each point in the space. Following this criteria, it is more likely that the knot will move in a surrounding area than at any other point of the space. On the other hand, I have studied the case when we have a smart initialization at the beginning. The results show that the goodness of the algorithm depends on the initial setup of the knots. If the initial position of the knots is similar enough to the real path, then the algorithm reaches well the steady state applying the Gaussian distribution (see figure 4.6). With the uniform probability distribution, the cost is already very good at the beginning 4.2.1 How to choose the fiber I have tried two ways for choosing the fiber. The first option is to randomly choose one fiber. The second option is to take the fiber accountable for the worst proportion of the 36 Statistical analysis for global tractography Figure 4.5: Accepted costs beginning with a random position of the knots when having a Gaussian probability distribution cost. After experimenting I discovered that choosing the worst fiber is not really good because sometimes it happens the following: The eye sees it clear which fiber is the worst when knowing the ground truth, but the algorithm detects another configuration as the worse one (See figure 4.7). 4.2.2 Study the variability of the parameters The data that we are using to study the variability of the parameters is not a single run of the method, but performing 10 runs of the algorithm fixed all the variables, taking the array of accepted costs for each of the 10 runs, and cutting the array at the beginning to have the same number of elements in all 10 vectors. Therefore, one should not forget the limitations of the results taken from the study. For the segmentation_length parameter, the results are presented in figure 4.8. From the 10e3 iterations that the algorithm does, the number of accepted costs oscillates Statistical analysis for global tractography 37 Figure 4.6: Accepted costs beginning with a smart position of the knots when having a uniform probability distribution between 500 and 800. From the graphic we can agree that at the beginning there is no clear relationship between the length of the segmentation and the costs at the beginning. The main reason is that to take the mean of the 10 arrays of accepted costs we need to take the length of the array that contains less values. We have cut the initial terms of the larger arrays, and that’s why at the beginning we are computing the mean of values proceeding from a different iteration. When the cost reaches the steady state, we can see that the value of the segmentation_length is not making any big difference in the minimum cost. It may seem that the higher the segmentation_length, the higher the minimum cost, but because we don’t have the same amount of accepted costs in each mean curve it is not possible to compare them exactly. In conclusion, there is not a better value for the segment_length between 0 and 1. We want the length of the segment to be less than 1 because the voxel’s size is 1 x 1 x 1. For the signal_SIGMA, the results are presented in figure 4.9. 38 Statistical analysis for global tractography Figure 4.7: The upper fiber has lower cost than the second fiber even though intuitively we know that the second one is more likely. As we see in the graphic, with low values for SIGNAL_sigma we reach a minimum cost more or less the same that with higher values for the SIGNAL_sigma. For the SA_beta, the results are presented in figure 4.10. Here it makes no sense to analyze the minimum cost at the steady state because it is strongly influenced by the penalization term for the length. The higher the value of the SA_beta, the bigger importance has the penalization term and the less importance has the difference between the real signal and the reconstructed signal. Therefore, there is a limitation on how big is the SA_beta. Statistical analysis for global tractography 39 Figure 4.8: Mean curve for the accepted costs depending on the value for the segmentation_length For the SA_C, the results are presented in figure 4.11. We need to start with a temperature high enough to make sure that we reach the cooler state. If we start from a too low temperature, we may get stacked in a local minima. In this case the bigger the value of SA_C, the higher the number of irregularities. In the figure 4.12 we can see that for a SA_C=2, the fibers are crossing each other in the final state. In concrete, with a value of SA_C higher than 1, the algorithm accept bad fibers more likely. In general, the value for SA_C should be decided depending on the experiment that is taking place. In some experiments we will not have the risk to get stacked in a local minima and then we will be able to start from a lower temperature. For the bparameter, the results are the ones in figure 4.13. With this figure 4.13 we can check that the higher the b, the higher the total number of accepted iterations. With a b > 2500, like we usually have, the behavior of our method works perfectly fine. 40 Statistical analysis for global tractography Figure 4.9: Mean curve for the accepted costs depending on the value for the signal_SIGMA For the SNR parameter, the results are shown in figure 4.14. The graphic shows that there is no significant difference between having an Signal to noise ratio (SNR) between 75 and more. However, for a SNR lower than 50, the result is worse and the minimum cost is higher, what means that the final reconstruction is less similar to the real configuration of fibers but still reaches the steady state. We normally have an SNR between 20 and 30, so we still have a convergence to the minimum cost. 4.3 On the Fiber-Cup phantom 4.3.1 Catmull-Rom goodness If I do not set any penalizations nor restrictions I get the same problems that the ones I was facing with the toy example. Figure 4.15 shows a run that gave a loop that could not be undone. Figure 4.16 shows a fiber that goes back and forward again. Statistical analysis for global tractography 41 Figure 4.10: Mean curve for the accepted costs depending on the value for the SA_BETA This shows us the need of imposing restrictions and adding penalization terms to control that the fibers follow realistic paths. Moreover, if we study the values that we get for the final accepted cost in different trials, I see that it does not manage to decrease too much. Most of the times it does not lower to less than 700. But this gives no clues when compared to having penalizations, because any penalization inflates the final cost and makes it incomparable to the ones coming from other initial conditions. 4.3.2 How to initialize the fibers Like in the case of the toy example, both cases (starting with the optimum and starting with another random configuration with the knots inside the white matter) offer a convergence to a minimum cost. However, like in the previous section, without penalizations and restrictions we do not manage to converge to a good solution with a limiting number of iterations defined in the Simulated Annealing (SA) algorithm. 48 Statistical analysis for global tractography Figure 4.17: Example of a final configuration with a loop Statistical analysis for global tractography 49 Figure 4.18: Example of a final configuration with SA_Beta = 2 that goes forth and back again 50 Statistical analysis for global tractography Figure 4.19: Example of a final configuration with SA_Beta = 10 that goes forth and back again Statistical analysis for global tractography 51 Figure 4.20: Example of a final configuration with SA_curv = 1000 that goes back and forth again 52 Statistical analysis for global tractography Chapter 5 Conclusions and future work In this project I have presented an analysis of a new method for doing global tractography. I have also illustrated its potential by experimenting with different parameters, penalizations and restrictions. From this research we can make the following conclusions: First, Catmull-Rom (C-R) curve is in fact a good option for the parametrized curve needed in the algorithm. Second, both moving the knots randomly and following a gaussian distribution around the current configuration enable to reach the steady state after a reasonable number of iterations. Third, choosing randomly the fiber to be modified in the following iteration is better than choosing always the fiber accountable for the biggest part of the total cost. Fourth, the value taken by the different parameters of the method should depend on the input data. Fifth, when changing the knots of a fiber in each iteration the placement of the knots can and should be restricted in the sense that we only want to take into account realistic configurations. Before starting the Simulated Annealing (SA) algorithm we make sure that the new configuration lies on the white matter and the angle between knots satisfies some requirements. Finally, the introduction of different penalizing terms (length and curvature) in the calculation of the final cost has been studied. Even thought the weight of these penalizing terms still needs to be decided, making a correct use of these penalizations can help reaching the steady state faster. The different experimental results presented in this work confirm that the method still needs to be improved in order to fit the requirements to be applied to the real data. However, after improving the method, the final result could be a big step in tractography. Future work This work is just a milestone in the road of improving the idea of the method until it can be demonstrated that either this method is better than all the previous ones, or the method should be abandoned for specific reasons or problems. 54 Statistical analysis for global tractography After the study that I have made of moving the middle knots of each fiber, it might be useful to give freedom to the outer control points within the grey matter where they are placed. To have deeper control on the curve it would be interesting to add more points to define the curve. In the case of having the C-R for example, we need minimum 6 control points to define 3 independent parts of the curve. From here, each extra knot that we add will mean an extra part in the curve. Thus, when moving a knot, the curve will move less because moving a knot affects only to the four closest parts of the curve. So, now moving a control point implies changes in all the evaluated points in the curve; later, moving a control point would make changes to a smaller portion of the curve, making the changes more locally. Regarding the curvature, at the moment the curvature is implemented as an average of the curvatures of all the evaluations of the curve. However, it would be better to analyze and compare the curvatures of the points individually and not to use the notion of an averaged curvature. The problem is that depending on the configuration we have different length for the curve, which means that we have a different number of evaluations for the same fiber in both configurations. Thus, it is not possible to compare point[50] from fiber[1] in the new configuration with point[50] from fiber[1] in the optimum configuration because it is possible that the curves have a different number of points, and hence we can end up comparing a middle point of the current configuration with the ending point of the optimum configuration. Another possibility to get the most of the curvature is to compare the curvature of each point that belongs to the fiber jfrom the new configuration with the curvature of the closest point of the of the fiber jfrom the optimum configuration. Here there is a procedure to achieve the results: for each point of each curve in the new configuration, take the coordinates of the point, and calculate the distance between him and the points of the optimum configuration and decide which one is the nearest point. It is not necessary to calculate the distance with all the points of the optimum curve: having the index iof the new point in the array of points in the C-R curve, we can take only the points of the optimum curve that have an index close to this one. For example, we can calculate the distance between point ifrom the fiber jof the new configuration and points i−10, ..., i−2,i−1,i,i+ 1,i+ 2, ..., i+ 10, from the fiber jof the optimum configuration. Once we have the closest point we compute the difference between curvatures, we repeat the procedure for all the points in the curve and then we sum all the differences. The result will be the penalization term that will be added to the cost during the SA algorithm. This has a drawback, and it is that we are comparing points that are at different positions of the curve. So, it can be the case that we take the point when we have a zig-zag, and Statistical analysis for global tractography 55 compare it with a point in the optimum configuration that is in a planar zone. There is an alternative: use the information about the curvature of more than just one control point. If we do it for the two nearest control points (let’s call them A1 and A2 (see figure 5.1)), once we have them we calculate the difference between the curvature in B1 (the optimum) and the one from A1(from the new configuration), and then the difference between the curvature in B1 and the one in A2, then sum the two differences weighted by the distance between the point and the optimum point: λ1(kA1−kB1) + λ2(kA2−kB1) where λ1and λ2are coefficients proportionals to the distance between A1 and B1, and between A2 and B1 respectively. Finally we should calculate the penalization as the sum of all these terms for all the points of the optimum configuration. The idea of taking the information from more than one control point is that, by weighting the differences according to the distance to the optimum point, we are taking into account the information of a bigger neighborhood. Thus, we are making smaller mistakes in this case. Figure 5.1: Curves with optimum (B’s) and new configuration (A’s). Example taking into account the two closest points. Another notion that can be used to compare two curves is shape comparison: One option is to do a Procrustes analysis. This method consists in comparing two sets of data. Simply put, the method is based on matching corresponding points from each of the two data sets. The idea applied to our work is to evaluate the difference between the shape of two curves by computing the Procrustes distance which, in case that both have the same extreme control points, is equivalent to calculate the sum of the squared distances (SSD). 56 Statistical analysis for global tractography The equation to compute the Procrustes distance is the following: d=q(u1−x1)2+ (v1−y1)2+... where (u, v)are the coordinates of a rotated point, ((x1, y1),(x2, y2), ...)are the points of the first curve and ((w1, z1),(w2, z2), ... are the points from the second curve. Another option for doing shape comparison is to use dynamic time warping [1]. It is an algorithm for measuring similarity between two sequences which may vary in time or speed. In our case, we can use it to solve the question of curve matching. In paper [1] you can find what is a good measure of similarity between curves and how to compute it efficiently. They describe algorithms for computing the continuous warping distance. Finally, there is another measure of similarity between curves called Fréchet distance. This measure takes into account the location and ordering of the points along the curves. In mathematical notation, the Fréchet distance F(A, B)is: F(A, B) = inf α,β max t∈[0,1] {d(A(α(t)), B(β(t)))} where Aand Bare two given curves, αand βrepresent all the possible reparametrizations and dis the distance function. A popular illustration of the Fréchet distance is as follows: Suppose a man is walking a dog. Assume the man is walking on one curve and the dog on another curve. Both can adjust their speeds but are not allowed to move backwards. The Fréchet distance of the two curves is then the minimum length of leash necessary to connect the man and the dog. A(α(t)) is the position of the dog and B(β(t)) is the position of the man at time t. The length of the leash between them at time tis the distance between A(α(t)) and B(β(t)). Taking the infimum over all possible reparametrizations of [0,1] corresponds to choosing the walk along the given paths where the maximum leash length is minimized. The restriction that αand βbe non-decreasing means that neither the dog nor its owner can backtrack. Bibliography [1] Efrat A., Fan Q., and Venkatasubramanian S. Curve matching, time warping, and light fields: New algorithms for computing similarity between curves. [2] Kreher BW., Mader I., and Kiselev VG. Gibbs tracking: a novel approach for the reconstruction of neuronal pathways. Wiley InterScience, 2008. [3] Nimsky C., Ganslandt O., Hastreiter P., and al. Preoperative and intraoperative diffusion tensor imaging-based fiber tracking in glioma surgery. Neurosurgery, 2005. [4] Yuksel C., Schaefer S., and Keyser J. On the parameterization of catmull-rom curves. ACM, 2009. [5] Clark CA. and Werring DJ. Diffusion tensor imaging in spinal cord: methods and applications. NMR Biomed, 2002. [6] Westin CF., Maier SE., Mamata H, Nabavi A, Jolesz FA, and Kikinis R. Processing and visualization for diffusion tensor mri. Med Image Anal, 2002. [7] Le Bihan D., Mangin JF., Poupon C., and al. Diffusion tensor imaging concepts and applications. J Magn Reson Imaging, 2001. [8] Tuch DS., Reese TG., Wiegell MR., and Wedeen V.J. Diffusion mri of complex neural architecture. Neuron, 2003. [9] Parker GJ., Haroon HA., and Wheeler-Kingshott CA. A framework for a streamlinebased probabilistic index of connectivity (pico) using a structural interpretation of mri diffusion measurements. NeuroImage, 2003. [10] Johansen-Berg H. Structural plasticity: rewiring the brain. Curr Biol, 2007. [11] Powell HW., Parker GJ., Alexander DC., and al. Abnormalities of language networks in temporal lobe epilepsy. NeuroImage, 2007.