The Brain Diffusion model¶
This use case collects brain diffusion tensors of a region of interest, as
estimated voxel-wise from open Human Connectome Project diffusion data
(DataLad). Each tensor is a symmetric positive definite matrix of size 3,
stored through its upper-triangular part t11, t12, t13, t22, t23, t33.
The tensors are modelled by a Riemannian Gaussian on SPD(3) following Said
et al., “Gaussian Distributions on Riemannian Symmetric Spaces: Statistical
Learning with Structured Covariance Matrices”, IEEE Trans. Inf. Theory, 2017.
The dataset is a reduced synthetic stand-in (400 tensors drawn with
RiemannianGaussian): the reference Frechet mean
is [[1.1, 0.1, 0.0], [0.1, 0.9, 0.05], [0.0, 0.05, 1.0]] with unit tangent
covariance.
Workflow¶
Fit
RiemannianGaussianFactoryon the tensors (Frechet mean, tangent covariance).Compare the estimated mean and covariance with the model of Said et al.
References¶
Human Connectome Project, open diffusion data (DataLad).
Said et al., IEEE Trans. Inf. Theory, 2017 (reference model).
Load the use case¶
We can load this model from the use cases module as follows :
>>> from openturns.usecases.brain_diffusion import BrainDiffusion
>>> m = BrainDiffusion()
>>> # Load the 400 diffusion tensors (upper-triangular 6-vectors)
>>> data = m.tensors
API documentation¶
- class BrainDiffusion
Brain diffusion tensors of a region of interest (reduced synthetic stand-in).
Symmetric positive definite matrices of size 3 mimicking voxel-wise diffusion tensors estimated from open Human Connectome Project diffusion data (DataLad). Each row is a tensor stored as its upper-triangular part
t11, t12, t13, t22, t23, t33. The reference Frechet mean is[[1.1, 0.1, 0.0], [0.1, 0.9, 0.05], [0.0, 0.05, 1.0]]with unit tangent covariance, following the model of Said et al. (2017). The sample was drawn withRiemannianGaussian(seed 67890).- Attributes:
- tensors
Sample 400 diffusion tensors (upper-triangular 6-vectors).
- tensors
Methods
Reference Frechet mean tensor (flattened upper-triangular part).
Examples
>>> from openturns.usecases import brain_diffusion >>> data = brain_diffusion.BrainDiffusion().tensors >>> print(data.getSize(), data.getDimension()) 400 6
- getReferenceMean()
Reference Frechet mean tensor (flattened upper-triangular part).
OpenTURNS