Using Bayes’ theorem to infer the material parameters of human tissue
Jack S. Hale Collaborators: Patrick E. Farrell, Stéphane P. A. Bordas
- 1
University of Ghent, Bayesian Afternoon Seminar
Using Bayes theorem to infer the material parameters of human - - PowerPoint PPT Presentation
Jack S. Hale Collaborators: Patrick E. Farrell, Stéphane P. A. Bordas
University of Ghent, Bayesian Afternoon Seminar
inversion approach.
the equations.
covariance.
2
3
4
Source: Phillips
5
6
7
Q: What can we infer about the parameters inside the domain, just from displacement observations on the
Q: Which parameters am I most uncertain about?
8
9
πposterior(x | y) ∝ πlikelihood(y | x)πprior(x)
Parameter Map
E ∼ N(0, Γnoise)
X ∼ N(¯ x, Γprior)
πposterior(x|y) ∝ exp
2||y − G(u)||2
Γ−1
noise
− 1 2||x − ¯ x||Γ−1
prior
10
Inverse Problems: A Bayesian perspective. Stuart, Acta Numerica (2010). Contribution: Bayesian inverse problems in an infinite- dimensional setting. When is a Bayesian inverse problem well-posed?
11
The displacements y for a given material parameter x are defined by a the minimum point
L(y, x) =
where the energy density functional ψ is defined through the following equations: ψ(u, x) = x 2(Ic d) x ln(J) + λ 2 ln(J)2, F = ∂φ ∂X = I + y, C = FTF, IC = tr(C), J = detF.
12
Even once discretised (Finite Element Method)
Colin27 brain atlas
20% extension test, 16 Core Xeon, 1.12 million cells, ~29 secs.
going to work.
13
classical optimisation. Using derivatives of posterior in parameter-space (Girolami).
covariance updates (Flath 2012, Spantini 2015).
14
πposterior(x | y) ∝ πlikelihood(y | x)πprior(x)
x∈Rn πposterior(x | y)
15
16
− ln πposterior(x|y) = 1 2||y − Ax||2
Γ−1
noise
+ 1 2||x − x0||Γ−1
prior
17
g(xMAP) := x
2y Ax2
Γ1
noise
+ 1 2x x02
Γ1
prior
= ATΓ1
noise(y Axmap) + Γ1 prior(xmap x0)
= 0
xMAP =
prior − ATΓ−1 noiseA
−1 (ATΓnoisey + Γpriorx0)
18
MAP estimate. Bound-constrained Quasi-Newton BLMVM with More-Thuente line search and ‘correct’ Riesz map.
19
prior − ATΓ−1 noiseA
xMAP =
prior − ATΓ−1 noiseA
−1 (ATΓnoisey + Γpriorx0)
(After a fair bit of manipulation…)
20
21
22
posterior ∼ N(xMAP, H−1(xMAP))
xMAP xCM cov(x | y)
H−1(xMAP)
collection of free software for the automated, efficient solution of differential equations using the finite element method.
derives the discrete adjoint, tangent linear and higher-
high-level description of the forward model.
23
http://fenicsproject.org http://www.dolfin-adjoint.org
Wells, Logg, Rognes, Kirby and many, many others… Farrell, Funke, Ham and Rognes. 2015 Wilkinson Prize for Numerical Software.
24
The displacements y for a given material parameter x are defined by a the minimum point
L(y, x) =
where the energy density functional ψ is defined through the following equations: ψ(u, x) = x 2(Ic d) x ln(J) + λ 2 ln(J)2, F = ∂φ ∂X = I + y, C = FTF, IC = tr(C), J = detF.
from dolfin import * mesh = UnitSquareMesh(32, 32) U = VectorFunctionSpace(mesh, "CG", 1) V = FunctionSpace(mesh, "CG", 1) # solution u = Function(U) # test functions v = TestFunction(U) # incremental solution du = TrialFunction(U) x = interpolate(Constant(1.0), V) lmbda = interpolate(Constant(100.0), V) dims = mesh.type().dim() I = Identity(dims) F = I + grad(u) C = F.T*F J = det(F) Ic = tr(C) phi = (x/2.0)*(Ic - dims) - x*ln(J) + (lmbda/ 2.0)*(ln(J))**2 Pi = phi*dx # gateux derivative with respect to u in direction v F = derivative(Pi, u, v) # and with respect to u in direction du J = derivative(F, u, du) u_h = Function(U) F_h = replace(F, {u: u_h}) J_h = replace(J, {u: u_h}) solve(F_h == 0, u_h, bcs, J=J_h)
The displacements y for a given material parameter x are defined by a the minimum point
L(y, x) =
where the energy density functional ψ is defined through the following equations: ψ(u, x) = x 2(Ic d) x ln(J) + λ 2 ln(J)2, F = ∂φ ∂X = I + y, C = FTF, IC = tr(C), J = detF.
26
27
28
Q: What can we infer about the parameters inside the domain, just from displacement observations on the
Q: Which parameters am I most uncertain about?
29
30
Critical idea: Observations are only informative on a low-dimensional subspace of the parameter space, relative to the prior. Spantini et al. (arXiV)
d2
F(A, B) =
ln2(σi) Awi = Bσiwi
Förstner metric
31
Matrix-free Krylov-Schur (SLEPc).
32
33
Matches trends from Flath et al. p424 for linear parameter to observable maps.
Γpost
34
Direction in parameter space least constrained by the
35
36
37
Direction in parameter space most constrained by the
38
39
40
41
Full Hessian. 4000+ actions. Low-rank update. 292 actions. Huge savings in computational cost. Scales with model dimension because observations stay the same.
recovered parameters in soft tissue.
relatively easy, solving them is tougher!
using Hamiltonian MCMC. Requires derivatives.
derivations of equations, 3D problems.
42