Algorithm Search⌘K

Algorithmresearch

D-bar method

Also called D-bar reconstruction for EIT.

Reconstruct a 2D conductivity from boundary data through scattering transforms and a d-bar equation, a direct nonlinear method for EIT.

Time
O(m c^2 + n^2 K m^2) totalO(m^2) per_iteration
Space
O(m^2 + n^2) extra
Where
K = the number of fixed-point iterations for one point z; c = the number of electrodes or boundary Fourier modes; m = the number of grid points k in the disk |k| <= R; n = the side of the n x n grid of points z where the conductivity is wanted
Properties
deterministicdirect in gammanot in placeiterativeparallel over pointsiterativeregularized by cutoff
Origin
Samuli Siltanen, Jennifer L. Mueller, David Isaacson, 2000

The D-bar method computes a conductivity in a plane domain directly from boundary measurements, without fitting a forward model by iterations. It solves the Calderon problem in two dimensions, the mathematical core of electrical impedance tomography (EIT). The method follows Nachman's 1996 uniqueness proof. From the Dirichlet-to-Neumann map Λγ\Lambda_\gamma it computes a scattering transform t(k)\mathbf{t}(k) of a complex parameter kk. Then for each point zz it solves a linear integral equation in kk, the d-bar equation, and reads off γ(z)=μ(z,0)2\gamma(z) = \mu(z, 0)^2. The practical form, from Siltanen, Mueller and Isaacson (2000), uses the approximation texp⁡\mathbf{t}^{\exp} and cuts it off at ∣k∣≤R|k| \le R. The cutoff is the regularization: a small RR gives a smooth, stable image, and a large RR gives detail and amplifies the noise.

In plain words

You drive currents through electrodes on the edge of a body and measure the voltages. You want the conductivity inside. The relation is nonlinear, and most methods guess an image, simulate the measurements, and correct the guess many times.

The D-bar method does not guess. It first turns all the boundary data into one function of a complex frequency, the scattering transform. Then, for each point inside the body, it solves one linear equation in the frequency variable. The value of the solution at frequency zero gives the conductivity at that point. The points do not depend on each other, so they can be done in parallel.

The data are noisy, and the noise grows at high frequencies. So the method uses only the frequencies in a disk. A small disk gives a blurred but stable image. A larger disk gives more detail and more noise.

The problem

The input is the Dirichlet-to-Neumann map Λγ\Lambda_\gamma of a real conductivity γ>0\gamma > 0 on the unit disk Ω\Omega, with γ=1\gamma = 1 near the boundary. Λγ\Lambda_\gamma maps the boundary voltage ff to the current γ ∂u/∂ν\gamma\, \partial u / \partial \nu, where ∇⋅(γ∇u)=0\nabla \cdot (\gamma \nabla u) = 0 in Ω\Omega and u=fu = f on ∂Ω\partial\Omega. In practice Λγ\Lambda_\gamma is a c×cc \times c matrix in the basis of trigonometric functions or of electrode patterns, with noise. The output is γ(z)\gamma(z) at the points z=x1+ix2z = x_1 + i x_2 of an n×nn \times n grid.

Write ez(k)=exp⁡(i(kz+kz‾))e_z(k) = \exp(i(kz + \overline{kz})) for k∈Ck \in \mathbb{C}. Nachman's scattering transform is t(k)=∫∂Ωeikˉzˉ(Λγ−Λ1)ψ(⋅,k) ds\mathbf{t}(k) = \int_{\partial\Omega} e^{i \bar k \bar z} (\Lambda_\gamma - \Lambda_1)\psi(\cdot, k)\, ds, where ψ(z,k)≈eikz\psi(z, k) \approx e^{ikz} are special solutions that need a boundary integral equation of their own. The approximation

texp⁡(k)=∫∂Ωeikˉzˉ(Λγ−Λ1) eikz ds(z)\mathbf{t}^{\exp}(k) = \int_{\partial\Omega} e^{i \bar k \bar z} (\Lambda_\gamma - \Lambda_1)\, e^{ikz}\, ds(z)

replaces ψ\psi by eikze^{ikz} and needs only the data. For a radial conductivity, Λγeinφ=λ∣n∣einφ\Lambda_\gamma e^{i n \varphi} = \lambda_{|n|} e^{i n \varphi}, and

texp⁡(k)=2π∑n≥1(−1)n∣k∣2n(n!)2(λn−n).\mathbf{t}^{\exp}(k) = 2\pi \sum_{n \ge 1} (-1)^n \frac{|k|^{2n}}{(n!)^2} (\lambda_n - n).

The weights ∣k∣2n/(n!)2|k|^{2n}/(n!)^2 grow very fast with ∣k∣|k|, which is how the noise in λn\lambda_n reaches texp⁡\mathbf{t}^{\exp}.

The truncated d-bar equation for one point zz is

μ(z,k)=1+14π2∫∣k′∣≤Rtexp⁡(k′) e−z(k′) μ(z,k′)‾(k−k′) k′‾ dA(k′).\mu(z, k) = 1 + \frac{1}{4\pi^2} \int_{|k'| \le R} \frac{\mathbf{t}^{\exp}(k')\, e_{-z}(k')\, \overline{\mu(z, k')}}{(k - k')\, \overline{k'}} \, dA(k').

It is the integral form of ∂ˉkμ=14πkˉ t(k)e−z(k) μ‾\bar\partial_k \mu = \frac{1}{4\pi \bar k}\, \mathbf{t}(k) e_{-z}(k)\, \overline{\mu} with μ−1→0\mu - 1 \to 0 at infinity, because 1/(πk)1/(\pi k) is a fundamental solution of ∂ˉk\bar\partial_k. The equation is real-linear in μ\mu, not complex-linear, because of the conjugate. The reconstruction is γR(z)=Re⁡μ(z,0)2\gamma_R(z) = \operatorname{Re} \mu(z, 0)^2.

The algorithm

  1. D-BAR(λ_1..λ_c, Z, R, h, ε, K) ▷ radial data: λ_n are the DN eigenvalues
  2. 1G ← the points k = h(i + i' j) with |k| ≤ R, with k = 0 first
  3. 2t_k ← 2π Σ_n (-1)^n |k|^(2n) (λ_n - n) / (n!)^2 for each k in G ▷ t^exp
  4. 3for each point z in Z do
  5. 4w_k ← h² t_k e_{-z}(k) / (4π² conj(k)) for k ≠ 0, and w_0 ← 0
  6. 5μ ← 1 at every point of G
  7. 6repeat at most K times
  8. 7μ_k ← 1 + Σ_{k' ≠ k} w_k' conj(μ_k') / (k - k') for each k in G
  9. 8until the largest change of μ is below ε
  10. 9γ(z) ← Re μ_0²
  11. 10return γ

Line L2 is the only line that sees the data. For data that are not radial, L2 expands eikze^{ikz} and eikˉzˉe^{i\bar k \bar z} in the boundary basis and applies the measured matrix of Λγ−Λ1\Lambda_\gamma - \Lambda_1, at a cost of O(c2)O(c^2) per point kk. Line L4 sets the weight of k=0k = 0 to 0: near 0, texp⁡(k)=O(∣k∣2)\mathbf{t}^{\exp}(k) = O(|k|^2), so texp⁡(k)/kˉ→0\mathbf{t}^{\exp}(k)/\bar k \to 0. Line L7 is the midpoint rule on cells of side hh, with the cell k′=kk' = k left out; that cell holds the singularity, and for a smooth integrand it contributes O(h)O(h). Each point zz is independent of the others.

Example

Take the radial conductivity γ(r)=1+0.2exp⁡(1−1/(1−(r/0.6)2))\gamma(r) = 1 + 0.2 \exp(1 - 1/(1 - (r/0.6)^2)) for r<0.6r < 0.6 and γ=1\gamma = 1 for r≥0.6r \ge 0.6. It is smooth, equal to 1 near the boundary, and has the peak γ(0)=1.2\gamma(0) = 1.2. The DN eigenvalues, from a Runge-Kutta solve of the radial equation, are λ1=1.0275936\lambda_1 = 1.0275936, λ2=2.0104328\lambda_2 = 2.0104328 and λ3=3.0033316\lambda_3 = 3.0033316; the excess λn−n\lambda_n - n falls by a factor of about 3 for each nn. Line L2 gives texp⁡=−0.0423\mathbf{t}^{\exp} = -0.0423 at ∣k∣=0.5|k| = 0.5, −0.1576-0.1576 at ∣k∣=1|k| = 1, −0.4658-0.4658 at ∣k∣=2|k| = 2 and −0.5917-0.5917 at ∣k∣=3|k| = 3. It is real and radial, as it must be for radial data.

With R=3R = 3 and h=0.3h = 0.3 the grid has 317 points, and the contraction factor of the loop is q=0.085q = 0.085, so the loop converges fast from μ=1\mu = 1. The results (a measurement):

r=∣z∣r = \lvert z \rvert 0 0.2 0.4 0.6 0.8
true γ\gamma 1.2 1.1765 1.0899 1 1
R=2R = 2 1.0933 1.0863 1.0675 1.0427 1.0185
R=3R = 3 1.1765 1.1490 1.0856 1.0242 0.9906

At z=0z = 0 there is a closed form: for a real radial transform, μ(0,k)\mu(0, k) depends only on ∣k∣|k|, and γR(0)=exp⁡(−1π∫0Rtexp⁡(s)/s ds)\gamma_R(0) = \exp(-\frac{1}{\pi}\int_0^R \mathbf{t}^{\exp}(s)/s\, ds) (a theorem, proved in the correctness section). It gives 1.0957 for R=2R = 2 and 1.1765 for R=3R = 3, which the grid matches to 4 digits. As RR grows, the closed form gives 1.2327 at R=4R = 4, 1.2460 at R=5R = 5, 1.2285 at R=6R = 6 and 1.1994 at R=8R = 8. The small cutoffs smooth the peak, and the larger ones overshoot a little and come back (a measurement on noise-free data).

Correctness

Three statements are theorems. First, for a radial conductivity the series in line L2 is exactly texp⁡\mathbf{t}^{\exp}: expand eikze^{ikz} on the circle in powers of eiφe^{i\varphi}, apply the eigenvalues, and integrate against eikˉzˉe^{i \bar k \bar z}; only the matching modes survive. Second, at z=0z = 0 with a real radial t\mathbf{t}, the truncated equation has the solution μ(0,k)=m(∣k∣)\mu(0, k) = m(|k|) with m(r)=exp⁡(−12π∫rRt(s)/s ds)m(r) = \exp(-\frac{1}{2\pi}\int_r^R t(s)/s\, ds); the proof is that the mean of k′/(k−k′)k'/(k - k') over a circle ∣k′∣=s|k'| = s is 0 for s<∣k∣s < |k| and −1-1 for s>∣k∣s > |k|. Third, the loop L6 to L8 is a contraction in the sup norm when q=max⁡k∑k′≠k∣wk′∣/∣k−k′∣<1q = \max_k \sum_{k' \ne k} |w_{k'}|/|k - k'| < 1, so it has one fixed point and converges to it with the rate qq, even though the map is only real-linear. For the continuous equation, Rsup⁡∣k∣≤R∣t(k)∣/∣k∣<2πR \sup_{|k| \le R} |\mathbf{t}(k)|/|k| < 2\pi is enough. In the example q=0.085q = 0.085 at R=3R = 3. The full proofs are in the correctness file.

What is not a theorem: that γR\gamma_R is close to γ\gamma. Nachman's theorem says that with the exact t\mathbf{t} and no cutoff, μ(z,0)2=γ(z)\mu(z, 0)^2 = \gamma(z) for conductivities with two derivatives in LpL^p, p>1p > 1. Knudsen, Lassas, Mueller and Siltanen (2009) proved that a cutoff RR chosen from the noise level makes the method with the exact t\mathbf{t} a regularization strategy: the result tends to γ\gamma as the noise tends to 0. The approximation texp⁡\mathbf{t}^{\exp} agrees with t\mathbf{t} for small ∣k∣|k| and differs for large ∣k∣|k|. Its use is a heuristic, supported by measurements such as the table above.

Proof: What the D-bar code computes, and why its fixed-point loop convergesfull

We use the notation of the page. Ω\Omega is the unit disk, z=x1+ix2z = x_1 + i x_2, and γ\gamma is a conductivity with γ=1\gamma = 1 near ∂Ω\partial\Omega. Λγ\Lambda_\gamma is the Dirichlet-to-Neumann map, ez(k)=exp⁡(i(kz+kz‾))e_z(k) = \exp(i(kz + \overline{kz})), and for k∈Ck \in \mathbb{C}

texp⁡(k)=∫∂Ωeikˉzˉ(Λγ−Λ1)eikz ds(z).\mathbf{t}^{\exp}(k) = \int_{\partial\Omega} e^{i \bar k \bar z} (\Lambda_\gamma - \Lambda_1) e^{i k z} \, ds(z).

The truncated D-bar equation with cutoff RR is

μ(z,k)=1+14π2∫∣k′∣≤Rt(k′) e−z(k′) μ(z,k′)‾(k−k′) k′‾ dA(k′),(1)\mu(z, k) = 1 + \frac{1}{4\pi^2} \int_{|k'| \le R} \frac{\mathbf{t}(k')\, e_{-z}(k')\, \overline{\mu(z, k')}}{(k - k')\, \overline{k'}} \, dA(k'), \tag{1}

and the output is γR(z)=Re⁡μ(z,0)2\gamma_R(z) = \operatorname{Re} \mu(z, 0)^2.

Three facts are cited and not proved here. (a) Nachman 1996: for γ\gamma with two derivatives in LpL^p, p>1p > 1, the exact scattering transform t\mathbf{t} (with the special solutions ψ\psi in place of eikze^{ikz}) has no exceptional points, equation (1) with R=∞R = \infty and t\mathbf{t} has a unique solution with μ(z,⋅)−1\mu(z, \cdot) - 1 vanishing at infinity, and γ(z)=μ(z,0)2\gamma(z) = \mu(z, 0)^2. (b) Knudsen, Lassas, Mueller and Siltanen 2009: cutting t\mathbf{t} at a radius RR chosen from the noise level gives a regularization strategy. (c) The function 1/(πk)1/(\pi k) is a fundamental solution of ∂ˉk=12(∂k1+i∂k2)\bar\partial_k = \frac12(\partial_{k_1} + i \partial_{k_2}), so u(k)=1π∫F(k′)/(k−k′) dA(k′)u(k) = \frac{1}{\pi}\int F(k')/(k - k')\, dA(k') solves ∂ˉu=F\bar\partial u = F for a continuous FF of compact support; this is how (1) comes from the D-bar equation ∂ˉkμ=14πkˉt(k)e−z(k)μ‾\bar\partial_k \mu = \frac{1}{4\pi \bar k} \mathbf{t}(k) e_{-z}(k) \overline{\mu}. The code uses texp⁡\mathbf{t}^{\exp}, not t\mathbf{t}, so (a) does not apply to its output; the page treats that gap as a heuristic with measurements.

Theorem 1 (the scattering transform of a radial conductivity). Let γ\gamma be radial, so that Λγeinφ=λ∣n∣einφ\Lambda_\gamma e^{i n \varphi} = \lambda_{|n|} e^{i n \varphi} on ∂Ω\partial\Omega with λ0=0\lambda_0 = 0 and λn\lambda_n real. Then

texp⁡(k)=2π∑n≥1(−1)n∣k∣2n(n!)2(λn−n),\mathbf{t}^{\exp}(k) = 2\pi \sum_{n \ge 1} (-1)^n \frac{|k|^{2n}}{(n!)^2} (\lambda_n - n),

a real function of ∣k∣|k|, provided the sum converges absolutely (it does when ∣λn−n∣≤Cn|\lambda_n - n| \le C n, which holds for the conductivities of the page).

Proof. On ∂Ω\partial\Omega, z=eiφz = e^{i\varphi}, and eikz=∑m≥0(ik)mm!eimφe^{ikz} = \sum_{m \ge 0} \frac{(ik)^m}{m!} e^{i m \varphi}, a series that converges uniformly with all derivatives. Λ1eimφ=∣m∣eimφ\Lambda_1 e^{i m \varphi} = |m| e^{i m \varphi}, so

(Λγ−Λ1)eikz=∑m≥1(ik)mm!(λm−m)eimφ.(\Lambda_\gamma - \Lambda_1) e^{ikz} = \sum_{m \ge 1} \frac{(ik)^m}{m!} (\lambda_m - m) e^{i m \varphi}.

Also eikˉzˉ=∑n≥0(ikˉ)nn!e−inφe^{i \bar k \bar z} = \sum_{n \ge 0} \frac{(i \bar k)^n}{n!} e^{-i n \varphi}. Multiply the two series and integrate over φ∈[0,2π)\varphi \in [0, 2\pi) with ds=dφds = d\varphi. Only the products with n=mn = m survive, each with the factor 2π2\pi:

texp⁡(k)=2π∑m≥1(ik)m(ikˉ)m(m!)2(λm−m)=2π∑m≥1(−1)m∣k∣2m(m!)2(λm−m).\mathbf{t}^{\exp}(k) = 2\pi \sum_{m \ge 1} \frac{(ik)^m (i \bar k)^m}{(m!)^2} (\lambda_m - m) = 2\pi \sum_{m \ge 1} \frac{(-1)^m |k|^{2m}}{(m!)^2} (\lambda_m - m).

The exchange of sum and integral is allowed because both series converge absolutely and uniformly in φ\varphi. Each term is real and depends on ∣k∣|k| only. □\square

For γ=1\gamma = 1 every λn−n\lambda_n - n is 0, so texp⁡=0\mathbf{t}^{\exp} = 0, equation (1) gives μ=1\mu = 1, and the output is exactly 1. The code computes the sum with the terms ∣k∣2n/(n!)2|k|^{2n}/(n!)^2 built by the recursion τn=τn−1∣k∣2/n2\tau_n = \tau_{n-1} |k|^2 / n^2.

Theorem 2 (the center value for a radial real transform). Let t\mathbf{t} be real, radial (t(k)=t(∣k∣)\mathbf{t}(k) = t(|k|)), continuous on [0,R][0, R], with ∣t(s)∣≤Cs2|t(s)| \le C s^2 near 0. Let

m(r)=exp⁡(−12π∫min⁡(r,R)Rt(s)s ds),r≥0.m(r) = \exp\Big(-\frac{1}{2\pi}\int_{\min(r, R)}^{R} \frac{t(s)}{s}\, ds\Big), \qquad r \ge 0.

Then μ(0,k)=m(∣k∣)\mu(0, k) = m(|k|) solves (1) at z=0z = 0, and the output of the method at the center is

γR(0)=m(0)2=exp⁡(−1π∫0Rt(s)s ds).\gamma_R(0) = m(0)^2 = \exp\Big(-\frac{1}{\pi}\int_0^R \frac{t(s)}{s}\, ds\Big).

If the solution of (1) is unique (for example under the condition of Theorem 3), this is the value the method returns.

Proof. The integral defining mm is finite because t(s)/s=O(s)t(s)/s = O(s) near 0. At z=0z = 0, e−z=1e_{-z} = 1. Put μ(0,k′)=m(s)\mu(0, k') = m(s) with s=∣k′∣s = |k'|, a real function, so μ‾=m\overline{\mu} = m. With 1/k′‾=k′/s21/\overline{k'} = k'/s^2, the right side of (1) is

1+14π2∫0Rt(s) m(s)s2 s ds∫02πk′k−k′ dθ,k′=seiθ.1 + \frac{1}{4\pi^2} \int_0^R \frac{t(s)\, m(s)}{s^2} \, s \, ds \int_0^{2\pi} \frac{k'}{k - k'} \, d\theta, \qquad k' = s e^{i\theta}.

For the inner integral write k′k−k′=−1+kk−k′\frac{k'}{k - k'} = -1 + \frac{k}{k - k'}. If s<∣k∣s < |k|, then 1k−k′=1k∑j≥0(k′/k)j\frac{1}{k - k'} = \frac{1}{k}\sum_{j \ge 0} (k'/k)^j and the mean over θ\theta is 1/k1/k, so the mean of k′/(k−k′)k'/(k - k') is 0. If s>∣k∣s > |k|, then 1k−k′=−1k′∑j≥0(k/k′)j\frac{1}{k - k'} = -\frac{1}{k'}\sum_{j \ge 0} (k/k')^j, every term has mean 0, and the mean of k′/(k−k′)k'/(k - k') is −1-1. (The circle s=∣k∣s = |k| has measure 0.) So the right side is

1−12π∫min⁡(∣k∣,R)Rt(s) m(s)s ds.1 - \frac{1}{2\pi} \int_{\min(|k|, R)}^{R} \frac{t(s)\, m(s)}{s} \, ds.

On [0,R][0, R], m′(s)=m(s)t(s)/(2πs)m'(s) = m(s) t(s)/(2\pi s) and m(R)=1m(R) = 1, so the integral is 2π∫min⁡(∣k∣,R)Rm′(s) ds=2π (1−m(min⁡(∣k∣,R)))2\pi \int_{\min(|k|,R)}^{R} m'(s)\, ds = 2\pi\,(1 - m(\min(|k|, R))), and for ∣k∣>R|k| > R it is 0 with m(∣k∣)=1m(|k|) = 1. In both cases the right side equals m(∣k∣)m(|k|). So μ(0,⋅)=m(∣⋅∣)\mu(0, \cdot) = m(|\cdot|) solves (1), and Re⁡μ(0,0)2=m(0)2\operatorname{Re} \mu(0, 0)^2 = m(0)^2. □\square

By Theorem 1, texp⁡\mathbf{t}^{\exp} of a radial conductivity satisfies the hypotheses, with t(s)≈−2πs2(λ1−1)t(s) \approx -2\pi s^2 (\lambda_1 - 1) near 0. The function gamma0_reference evaluates the formula by Simpson's rule; it is the reference against which the tests check the grid solver at z=0z = 0.

Theorem 3 (the discrete fixed-point loop). Let k1,…,kNk_1, \dots, k_N be the grid points, and let wl=h24π2t(kl)e−z(kl)/kl‾w_l = \frac{h^2}{4\pi^2} \mathbf{t}(k_l) e_{-z}(k_l) / \overline{k_l} for kl≠0k_l \ne 0 and wl=0w_l = 0 for kl=0k_l = 0 (lines L2 and L4). Define the map TT on CN\mathbb{C}^N by

T(v)j=1+∑l≠jwl vl‾kj−klT(v)_j = 1 + \sum_{l \ne j} \frac{w_l\, \overline{v_l}}{k_j - k_l}

(line L7), and let q=max⁡j∑l≠j∣wl∣/∣kj−kl∣q = \max_j \sum_{l \ne j} |w_l| / |k_j - k_l|. If q<1q < 1, then TT has exactly one fixed point v∗v^*, the iterates v(0)=(1,…,1)v^{(0)} = (1, \dots, 1), v(i+1)=T(v(i))v^{(i+1)} = T(v^{(i)}) satisfy ∥v(i)−v∗∥∞≤qi∥v(0)−v∗∥∞\|v^{(i)} - v^*\|_\infty \le q^i \|v^{(0)} - v^*\|_\infty, and when the loop stops at line L8 with ∥v(i+1)−v(i)∥∞<ε\|v^{(i+1)} - v^{(i)}\|_\infty < \varepsilon, the returned vector v=v(i+1)v = v^{(i+1)} has residual ∥T(v)−v∥∞<qε\|T(v) - v\|_\infty < q \varepsilon and error ∥v−v∗∥∞<qε/(1−q)\|v - v^*\|_\infty < q \varepsilon / (1 - q).

Proof. TT is not complex-linear because of the conjugate, but T(u)−T(v)T(u) - T(v) has entries ∑l≠jwl(ul−vl)‾/(kj−kl)\sum_{l \ne j} w_l \overline{(u_l - v_l)}/(k_j - k_l), whose modulus is at most ∑l≠j∣wl∣∣ul−vl∣/∣kj−kl∣≤q∥u−v∥∞\sum_{l \ne j} |w_l| |u_l - v_l| / |k_j - k_l| \le q \|u - v\|_\infty. So TT is a contraction of the complete metric space (CN,∥⋅∥∞)(\mathbb{C}^N, \|\cdot\|_\infty), and the Banach fixed-point theorem gives the unique fixed point and the rate ∥v(i)−v∗∥=∥T(v(i−1))−T(v∗)∥≤q∥v(i−1)−v∗∥\|v^{(i)} - v^*\| = \|T(v^{(i-1)}) - T(v^*)\| \le q \|v^{(i-1)} - v^*\|. For the stopping test, ∥T(v(i+1))−v(i+1)∥=∥T(v(i+1))−T(v(i))∥≤q∥v(i+1)−v(i)∥<qε\|T(v^{(i+1)}) - v^{(i+1)}\| = \|T(v^{(i+1)}) - T(v^{(i)})\| \le q \|v^{(i+1)} - v^{(i)}\| < q\varepsilon, and ∥v−v∗∥≤∥v−T(v)∥+∥T(v)−T(v∗)∥≤qε+q∥v−v∗∥\|v - v^*\| \le \|v - T(v)\| + \|T(v) - T(v^*)\| \le q\varepsilon + q \|v - v^*\| gives the error bound. □\square

The same argument works for the continuous equation (1) in the sup norm on ∣k∣≤R|k| \le R, with

qcont=14π2sup⁡k∫∣k′∣≤R∣t(k′)∣∣k−k′∣ ∣k′∣ dA(k′)≤R2πsup⁡0<∣k′∣≤R∣t(k′)∣∣k′∣,q_{\text{cont}} = \frac{1}{4\pi^2} \sup_k \int_{|k'| \le R} \frac{|\mathbf{t}(k')|}{|k - k'|\,|k'|}\, dA(k') \le \frac{R}{2\pi} \sup_{0 < |k'| \le R} \frac{|\mathbf{t}(k')|}{|k'|},

because among sets of area πR2\pi R^2 the integral of the decreasing function 1/∣k−k′∣1/|k - k'| is largest on the disk of radius RR centered at kk, where it is 2πR2\pi R. So (1) has a unique bounded solution whenever Rsup⁡∣t(k′)∣/∣k′∣<2πR \sup |\mathbf{t}(k')|/|k'| < 2\pi. This is a sufficient condition only. The code does not check qq; if the loop does not settle in the given number of iterations it raises an error instead of returning a value. In the smooth example of the page, q=0.085q = 0.085 at z=0z = 0 with R=3R = 3 and h=0.3h = 0.3 (a measurement of this run).

What the code returns. Put together: line L2 computes texp⁡\mathbf{t}^{\exp} exactly up to the truncation of the series at the number of given eigenvalues (Theorem 1). Lines L5 to L8 compute the unique solution of the discrete equation to the stated tolerance when q<1q < 1 (Theorem 3). The discrete equation is the midpoint rule for (1) with the singular cell left out; for a continuous integrand the left-out cell contributes O(h)O(h), and the test of the Cauchy transform of e−∣k∣2e^{-|k|^2} shows this first-order error. At z=0z = 0 with a radial conductivity, the result converges to the closed form of Theorem 2 as h→0h \to 0. That γR\gamma_R is close to γ\gamma is not a theorem for texp⁡\mathbf{t}^{\exp}: it rests on facts (a) and (b) for the exact t\mathbf{t} and on the measurements on the page.

Complexity

In the real-RAM model, let mm be the number of grid points with ∣k∣≤R|k| \le R, so m≈πR2/h2m \approx \pi R^2/h^2, let cc be the number of boundary modes, n2n^2 the number of points zz, and KK the number of iterations for one point. Line L2 costs O(mc)O(m c) for radial data and O(mc2)O(m c^2) for a full matrix. One iteration of line L7 costs O(m2)O(m^2) with the direct sum, as in the code, so one point costs O(Km2)O(K m^2) and all points O(n2Km2)O(n^2 K m^2). The Cauchy matrix takes O(m2)O(m^2) memory. The sum in line L7 is a discrete convolution with the kernel 1/k1/k, so on a periodic grid it costs O(mlog⁡m)O(m \log m) with the fast Fourier transform; practical codes do this and solve the real-linear system with GMRES on the real and imaginary parts. KK is the number of iterations to reach the tolerance; by the contraction theorem it is at most log⁡(1/ε)/log⁡(1/q)\log(1/\varepsilon)/\log(1/q) up to a constant when q<1q < 1, but qq is not known in advance.

Properties

  • Direct in the conductivity. There is no forward solver and no outer iteration over γ\gamma. The only iteration is the linear solve for each zz. This is a property of the method.
  • Parallel over the points. Each zz is a separate linear problem with the same texp⁡\mathbf{t}^{\exp}.
  • Regularized by the cutoff. The radius RR is the only regularization parameter. It is a nonlinear low-pass filter, because the cutoff acts on t\mathbf{t}, not on γ\gamma.
  • Smooth output. With a cutoff, the result is smooth, and sharp edges come out blurred.
  • Exact for the background. For γ=1\gamma = 1, texp⁡=0\mathbf{t}^{\exp} = 0 and the result is exactly 1 at every point, for every RR.
  • Two dimensions only. The method uses the complex structure of the plane. Related methods in 3D use the special solutions of Sylvester and Uhlmann; they work differently and are still a research subject.

Variants and improvements

  • The full scattering transform. Compute ψ(⋅,k)\psi(\cdot, k) on the boundary from Nachman's boundary integral equation, then t\mathbf{t}. This is the form with a convergence proof; it costs a boundary solve for each kk.
  • Nonlinear low-pass filtering with a noise-based RR. Knudsen, Lassas, Mueller and Siltanen choose RR as a function of the noise level and prove that this is a regularization strategy. In practice RR is often chosen by looking at where texp⁡\mathbf{t}^{\exp} starts to blow up, which is a heuristic.
  • Other domains and electrodes. Real data come from a few electrodes on a domain that is not a disk. Then Λγ\Lambda_\gamma is known only on electrode patterns, and the domain is mapped to a disk or treated by a boundary correction. See Chapter 15 of Mueller and Siltanen.
  • Complex conductivities and partial data. There are D-bar methods for admittivities σ+iωε\sigma + i\omega\varepsilon and for data on part of the boundary. They need different scattering transforms.
  • Linearized forms. Replacing μ\mu by 1 in the integral gives a one-step reconstruction that is linear in texp⁡\mathbf{t}^{\exp}, in the spirit of Calderon's linearization. It is faster; that it is less accurate for high contrast is a heuristic expectation, because it drops the nonlinear part.

When to use it

Use the D-bar method for absolute imaging of a planar conductivity, when you want a direct method without a forward solver and with one clear regularization parameter. It is fast for many points and gives a good starting image for iterative methods such as the Gauss-Newton algorithm with Tikhonov regularization. For 3D bodies, or when a detailed electrode model is needed, an iterative method with a finite element forward solver is the usual choice.

Pitfalls

  • A large cutoff with noise. The weights ∣k∣2n/(n!)2|k|^{2n}/(n!)^2 amplify noise in λn\lambda_n very fast. For the conductivity of the example with peak 1.5 instead of 1.2, Gaussian noise of standard deviation 0.003 on each λn\lambda_n changes γR(0)\gamma_R(0) by 0.01 at R=2R = 2 and by more than 1 at R=5R = 5 (a measurement, seed 3). Choose RR from the noise level.
  • A large cutoff without noise. texp⁡\mathbf{t}^{\exp} is not t\mathbf{t}. For two layers, γ=2\gamma = 2 for r<0.5r < 0.5 and γ=1\gamma = 1 outside, the center value is 1.776 at R=2R = 2, 2.610 at R=3R = 3 and 3.074 at R=4R = 4, against the true value 2 (a measurement on exact data). High contrast and jumps make texp⁡\mathbf{t}^{\exp} wrong at large ∣k∣|k| first.
  • The point k=0k = 0. The factor 1/kˉ1/\bar k is singular there. Use texp⁡(k)/kˉ→0\mathbf{t}^{\exp}(k)/\bar k \to 0 and give k=0k = 0 the weight 0, or shift the grid so that 0 is not a cell center and interpolate.
  • Forgetting the conjugate. The equation has μ‾\overline{\mu}, so it is not a complex-linear system. A complex solver applied to μ\mu directly gives wrong results; split into real and imaginary parts.
  • A conductivity that is not 1 at the boundary. The theory assumes γ=1\gamma = 1 near ∂Ω\partial\Omega. If the boundary value is γ0≠1\gamma_0 \ne 1, divide the data by γ0\gamma_0 first. Even a tail of size 10−410^{-4} at the boundary makes λn−n\lambda_n - n grow about linearly with nn (a first-order estimate), and this spoils texp⁡\mathbf{t}^{\exp} for large ∣k∣|k|.
  • No convergence check. The fixed-point loop converges only when the map is a contraction or close to it. Check the change, cap the iterations, and stop with an error, as the code does.

Implementations

The Python code takes the DN eigenvalues λ1,λ2,…\lambda_1, \lambda_2, \dots of a radial conductivity, a list of points zz, the cutoff RR and the grid spacing hh. It stores the full Cauchy matrix, so it is meant for grids of a few hundred points. It also has two helpers for test data: the closed-form eigenvalues of a two-layer conductivity, and a solver for any radial γ(r)\gamma(r) that integrates the Riccati equation dw/ds=n2γ−w2/γdw/ds = n^2 \gamma - w^2/\gamma for w=rγU′/Uw = r\gamma U'/U in s=log⁡rs = \log r with the classical Runge-Kutta method. The tests check the eigenvalues 13/1113/11 and 98/4798/47 of the two-layer case and the agreement of the two solvers, the series for texp⁡\mathbf{t}^{\exp} against a direct quadrature of the boundary integral, the first-order Cauchy transform of e−∣k∣2e^{-|k|^2} against (1−e−∣z∣2)/z(1 - e^{-|z|^2})/z, the exact result for γ=1\gamma = 1, the residual of the fixed point and the closed form at z=0z = 0, the rotation symmetry and the accuracy on the smooth example, and the growth of the noise with RR.

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

d_bar_method.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/d-bar-method/. The authors are listed in prov/Q00HZV.jsonl.
"""The D-bar method for the conductivity problem on the unit disk, with the
scattering transform t^exp of Siltanen, Mueller and Isaacson.

The data are the Dirichlet-to-Neumann map of a conductivity gamma that is 1
near the boundary. For a radial gamma this map is diagonal in the Fourier
basis e^{i n phi}, with eigenvalues lambda_n (lambda_n = n for gamma = 1).

1. The approximate scattering transform, for k in the complex plane,

       t^exp(k) = int e^{i conj(k) conj(z)} (Lambda_gamma - Lambda_1) e^{i k z} ds(z)
                = 2 pi sum_{n >= 1} (-1)^n |k|^(2n) (lambda_n - n) / (n!)^2     (radial gamma).

2. For each point z, solve the truncated D-bar equation in k,

       mu(z, k) = 1 + 1/(4 pi^2) int_{|k'| <= R} t(k') e_{-z}(k') conj(mu(z, k')) / ((k - k') conj(k')) dk',

   with e_z(k) = exp(i (k z + conj(k z))), on a grid of cell centers with
   spacing h, by fixed-point iteration. The singular cell k' = k is left
   out, which is the principal value of the integral over that cell.

3. gamma(z) = Re mu(z, 0)^2.

Complex numbers are Python complex values; z = x1 + i x2.
"""

import cmath
import math


def layered_dn_eigenvalues(rho, gamma_in, gamma_out, nmax):
    """lambda_1..lambda_nmax of the DN map on the unit disk for gamma = gamma_in on
    r < rho and gamma_out on rho < r < 1."""
    m = (gamma_out - gamma_in) / (gamma_out + gamma_in)
    out = []
    for n in range(1, nmax + 1):
        q = m * rho ** (2 * n)
        out.append(gamma_out * n * (1 - q) / (1 + q))
    return out


def radial_dn_eigenvalues(gamma, nmax, ds=0.005, s0=-8.0):
    """lambda_1..lambda_nmax of the DN map on the unit disk for a radial gamma(r).

    For u = U(r) e^{i n phi}, w = r gamma U'/U satisfies, in s = log r,
    dw/ds = n^2 gamma - w^2 / gamma, with w = n gamma(0) near r = 0, and
    lambda_n = w(r = 1). Classical Runge-Kutta from s = s0 to s = 0.
    """
    steps = int(round(-s0 / ds))
    out = []
    for n in range(1, nmax + 1):
        def f(s, w):
            g = gamma(math.exp(s))
            return n * n * g - w * w / g
        s, w = s0, n * gamma(math.exp(s0))
        for _ in range(steps):
            k1 = f(s, w)
            k2 = f(s + ds / 2, w + ds / 2 * k1)
            k3 = f(s + ds / 2, w + ds / 2 * k2)
            k4 = f(s + ds, w + ds * k3)
            w += ds / 6 * (k1 + 2 * k2 + 2 * k3 + k4)
            s += ds
        out.append(w)
    return out


def t_exp_radial(lams, k):
    """t^exp(k) for a radial conductivity with DN eigenvalues lams[n - 1] = lambda_n."""
    a = abs(k) ** 2
    total = 0.0
    term = 1.0  # |k|^(2n) / (n!)^2, built step by step
    for n, lam in enumerate(lams, start=1):
        term *= a / (n * n)
        total += (-1) ** n * term * (lam - n)
    return 2 * math.pi * total


def k_grid(R, h):
    """The cell centers h (i + i' j) with |k| <= R, with k = 0 first."""
    n = int(math.floor(R / h + 1e-9))
    pts = [complex(i * h, j * h) for i in range(-n, n + 1) for j in range(-n, n + 1)]
    pts = [k for k in pts if abs(k) <= R + 1e-12]
    pts.sort(key=lambda k: (abs(k), k.real, k.imag))
    return pts


def cauchy_matrix(grid):
    """The entries 1 / (k - k') for k, k' on the grid, 0 on the diagonal."""
    return [[(1 / (k - kp) if k != kp else 0j) for kp in grid] for k in grid]


def cauchy_transform(grid, h, values, inv=None):
    """(1/pi) int F(k') / (k - k') dk' on the grid, by the midpoint rule without the self cell."""
    inv = inv if inv is not None else cauchy_matrix(grid)
    c = h * h / math.pi
    return [c * sum(a * v for a, v in zip(row, values)) for row in inv]


def d_bar(lams, points, R, h, iters=200, tol=1e-12, return_mu=False):
    """Reconstruct gamma at the points z (complex numbers in the unit disk).

    lams are the DN eigenvalues lambda_1, lambda_2, ... of a radial
    conductivity; R is the cutoff of the scattering transform and h the grid
    spacing. Returns the list of gamma(z), or of (gamma(z), mu on the grid,
    the grid, the weights w) if return_mu is true.
    """
    grid = k_grid(R, h)  # @line L1
    tvals = [t_exp_radial(lams, k) for k in grid]  # @line L2
    inv = cauchy_matrix(grid)
    c = h * h / (4 * math.pi * math.pi)
    out = []
    for z in points:  # @line L3
        w = [(c * tv * cmath.exp(-2j * (kp * z).real) / kp.conjugate() if kp != 0 else 0j)
             for kp, tv in zip(grid, tvals)]  # @line L4
        mu = [1 + 0j] * len(grid)  # @line L5
        for _ in range(iters):  # @line L6
            cm = [wi * m.conjugate() for wi, m in zip(w, mu)]
            new = [1 + sum(a * b for a, b in zip(row, cm)) for row in inv]  # @line L7
            change = max(abs(a - b) for a, b in zip(new, mu))
            mu = new
            if change < tol:  # @line L8
                break
        else:
            raise RuntimeError("the fixed-point iteration did not converge")
        gz = (mu[0] * mu[0]).real  # @line L9
        out.append((gz, mu, grid, w) if return_mu else gz)
    return out  # @line L10


def gamma0_reference(lams, R, steps=4000):
    """gamma(0) from the truncated equation with a radial real t, in closed form:
    exp(-(1/pi) int_0^R t(s) / s ds), by Simpson's rule."""
    def f(s):
        return t_exp_radial(lams, s) / s if s > 0 else 0.0
    hs = R / steps
    acc = f(0.0) + f(R)
    for i in range(1, steps):
        acc += (4 if i % 2 else 2) * f(i * hs)
    return math.exp(-(acc * hs / 3) / math.pi)
test_d_bar_method.py 119 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/d-bar-method/. The authors are listed in prov/Q00HZV.jsonl.

import cmath
import math
import random

from d_bar_method import (
    cauchy_transform,
    d_bar,
    gamma0_reference,
    k_grid,
    layered_dn_eigenvalues,
    radial_dn_eigenvalues,
    t_exp_radial,
)


def _bump(amp, a=0.6):
    # A smooth radial conductivity that is exactly 1 for r >= a, as the method assumes near the boundary.
    def gamma(r):
        q = r / a
        return 1 + amp * math.exp(1 - 1 / (1 - q * q)) if q < 1 else 1.0
    return gamma


def test_dn_eigenvalues():
    lams = layered_dn_eigenvalues(0.5, 2.0, 1.0, 2)
    assert abs(lams[0] - 13 / 11) < 1e-14
    assert abs(lams[1] - 98 / 47) < 1e-14
    assert radial_dn_eigenvalues(lambda r: 3.0, 4) == [3.0, 6.0, 9.0, 12.0]
    step = radial_dn_eigenvalues(lambda r: 2.0 if r < 0.5 else 1.0, 6)
    for a, b in zip(step, layered_dn_eigenvalues(0.5, 2.0, 1.0, 6)):
        assert abs(a - b) < 1e-3
    # A higher conductivity inside gives lambda_n > n, and the excess decays like rho^(2n).
    smooth = radial_dn_eigenvalues(_bump(0.5), 8)
    excess = [lam - n for n, lam in enumerate(smooth, start=1)]
    assert all(e > 0 for e in excess)
    assert all(b < a for a, b in zip(excess, excess[1:]))


def test_t_exp_series_matches_boundary_integral():
    # t^exp(k) = int e^{i conj(k) conj(z)} (Lambda_gamma - Lambda_1) e^{i k z} ds(z) on |z| = 1,
    # with the DN maps applied mode by mode to samples of e^{i k z}.
    lams = layered_dn_eigenvalues(0.5, 2.0, 1.0, 40)
    N, M = 128, 40
    phis = [2 * math.pi * p / N for p in range(N)]
    for k in (0.7 + 0.2j, -1.5 + 1.1j, 2.5j):
        f = [cmath.exp(1j * k * cmath.exp(1j * p)) for p in phis]
        coef = {m: sum(v * cmath.exp(-1j * m * p) for v, p in zip(f, phis)) / N for m in range(-M, M + 1)}
        g = [sum(c * (lams[abs(m) - 1] - abs(m)) * cmath.exp(1j * m * p) for m, c in coef.items() if m)
             for p in phis]
        direct = sum(cmath.exp(1j * (k * cmath.exp(1j * p)).conjugate()) * gv for p, gv in zip(phis, g))
        direct *= 2 * math.pi / N
        assert abs(direct - t_exp_radial(lams, k)) < 1e-9
        assert abs(direct.imag) < 1e-9


def test_cauchy_transform_of_gaussian():
    # (1/pi) int e^{-|w|^2} / (z - w) dA(w) = (1 - e^{-|z|^2}) / z, the bounded solution of dbar u = e^{-|z|^2}.
    errs = []
    for h in (0.3, 0.15):
        grid = k_grid(4.5, h)
        vals = [math.exp(-abs(k) ** 2) for k in grid]
        targets = [min(grid, key=lambda k: abs(k - z)) for z in (0.3 + 0.15j, 0.75 - 0.45j, -1.2 + 0.6j)]
        inv = [[(1 / (z - kp) if z != kp else 0j) for kp in grid] for z in targets]
        got = cauchy_transform(grid, h, vals, inv)
        errs.append(max(abs(u - (1 - math.exp(-abs(z) ** 2)) / z) for u, z in zip(got, targets)))
    assert errs[1] < 5e-3
    assert errs[1] < 0.6 * errs[0]


def test_constant_conductivity_is_exact():
    lams = [float(n) for n in range(1, 20)]
    assert all(t_exp_radial(lams, k) == 0 for k in (0.5, 2 + 1j, 3j))
    for gz in d_bar(lams, [0j, 0.3 + 0.4j, -0.7], 2.0, 0.4):
        assert abs(gz - 1) < 1e-14


def test_fixed_point_residual_and_center_value():
    lams = layered_dn_eigenvalues(0.5, 1.5, 1.0, 40)
    for z in (0j, 0.4 - 0.2j):
        gz, mu, grid, w = d_bar(lams, [z], 3.0, 0.3, return_mu=True)[0]
        assert grid[0] == 0
        cm = [wi * m.conjugate() for wi, m in zip(w, mu)]
        for k, m in zip(grid, mu):
            s = sum(wi / (k - kp) for wi, kp in zip(cm, grid) if kp != k)
            assert abs(m - 1 - s) < 1e-10
        if z == 0:
            # Radial real t: the grid is symmetric under conjugation, so mu(0, 0) is real,
            # and gamma(0) has the closed form of the reference.
            assert abs(mu[0].imag) < 1e-12
            ref = gamma0_reference(lams, 3.0)
            assert abs(gz - ref) < 5e-3 * ref


def test_smooth_conductivity_rotation_and_accuracy():
    gamma = _bump(0.2)
    lams = radial_dn_eigenvalues(gamma, 30)
    zs = [0j, 0.2, 0.2j, 0.4, -0.4j, 0.8]
    got = d_bar(lams, zs, 3.0, 0.3)
    # Radial data give a radial reconstruction: the grid is symmetric under rotation by 90 degrees.
    assert abs(got[1] - got[2]) < 1e-10
    assert abs(got[3] - got[4]) < 1e-10
    for z, gz in zip(zs, got):
        assert abs(gz - gamma(abs(z))) < 0.05
    # A small cutoff smooths the peak; from R = 3 to R = 8 the center value stays near the true 1.2.
    assert gamma0_reference(lams, 2.0) < 1.1
    assert all(abs(gamma0_reference(lams, R) - 1.2) < 0.05 for R in (3.0, 4.0, 5.0, 6.0, 8.0))


def test_noise_limits_the_cutoff():
    lams = radial_dn_eigenvalues(_bump(0.5), 30)
    rng = random.Random(3)
    noisy = [lam + rng.gauss(0, 3e-3) for lam in lams]
    # The noise enters t^exp(k) with the weights |k|^(2n) / (n!)^2, which grow fast with |k|:
    # a small cutoff R hides it, a large one amplifies it.
    assert abs(gamma0_reference(noisy, 2.0) - gamma0_reference(lams, 2.0)) < 0.05
    assert abs(gamma0_reference(noisy, 5.0) - gamma0_reference(lams, 5.0)) > 0.8

History

Calderon posed the problem in 1980. Nachman (1996) proved uniqueness in the plane for conductivities with two derivatives, with a constructive proof: the conductivity comes from the solution of a d-bar equation in the complex parameter kk. Siltanen, Mueller and Isaacson (2000) implemented this proof as an algorithm and introduced the approximation texp⁡\mathbf{t}^{\exp}. Mueller and Siltanen (2003) studied the method on noisy data and used the cutoff as the regularization. Knudsen, Lassas, Mueller and Siltanen (2009) proved that the cutoff, chosen from the noise level, gives a regularization strategy. The method has since been used on data from real EIT devices.

References

  1. A. I. Nachman, Global uniqueness for a two-dimensional inverse boundary value problem, Annals of Mathematics 143(1), 1996, pp. 71 to 96 (the scattering transform, the d-bar equation in k, and gamma = mu(z, 0)^2)
  2. S. Siltanen, J. Mueller and D. Isaacson, An implementation of the reconstruction algorithm of A Nachman for the 2D inverse conductivity problem, Inverse Problems 16(3), 2000, pp. 681 to 699, with the corrigendum in Inverse Problems 17, 2001, p. 1561 (the first implementation, and the approximation t^exp)
  3. J. L. Mueller and S. Siltanen, Direct reconstructions of conductivities from boundary measurements, SIAM Journal on Scientific Computing 24(4), 2003, pp. 1232 to 1266 (the method on simulated noisy data, with the cutoff as a regularization)
  4. K. Knudsen, M. Lassas, J. L. Mueller and S. Siltanen, Regularized D-bar method for the inverse conductivity problem, Inverse Problems and Imaging 3(4), 2009, pp. 599 to 624 (a cutoff chosen from the noise level gives a regularization strategy)
  5. J. L. Mueller and S. Siltanen, Linear and Nonlinear Inverse Problems with Practical Applications, SIAM, 2012, Chapter 15, A regularized D-bar method for direct EIT, and Chapter 16 (general locator)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.per_iteration
  • a full proof of time.total
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example