38
Inverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section for Scientific Computing What it’s like to do research Heian Shrine, Kyoto

Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Inverse ProblemsDo the Impossible – Solve the Impossible

Per Christian HansenProfessor, Villum InvestigatorSection for Scientific Computing

What it’s like to do researchHeian Shrine, Kyoto

Page 2: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20192/31 P. C. Hansen – Inverse Problems

About Me …

• Numerical analysis & inverse problems – regularization algorithms, matrix computations, image deblurring, signal processing, Matlab software, …

• Head of the Villum Investigator projectComputational Uncertainty Quantification for Inverse Problems.

• Author of several Matlab software packages.

• Author of four books (one more underway).

ComputedTomography

ScientificComputing

& JustEnough Theory

Page 3: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20193/31 P. C. Hansen – Inverse Problems

In an inverse problem we estimate a quantity that is not directly observable, using indirect measurements and the forward model.

Some examples on the next pages.

What is an Inverse Problem?

In a forward problem, we use a mathematical model to compute the output from a “system” given the input.

Page 4: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20194/31 P. C. Hansen – Inverse Problems

Example: TomographyImage reconstruction from projections.

Medical imaging

Materials science

100 µm

Page 5: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20195/31 P. C. Hansen – Inverse Problems

Example: Rotational Image Deblurring

Application: “star camera” used in satellite navigation.

Page 6: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20196/31 P. C. Hansen – Inverse Problems

Inverse Problem and Mathematics

Inverse problems

Why mathematics is important

• A solid foundation for formulation of inverse problems.

• A framework for developing computational algorithms.

• A “language” for defining and expressing the properties of the solutions: existence, uniqueness, stability, reliability, …

Page 7: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20197/31 P. C. Hansen – Inverse Problems

Some Formulations

Page 8: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20198/31 P. C. Hansen – Inverse Problems

A Few Simple Examples

Page 9: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 20199/31 P. C. Hansen – Inverse Problems

Eigenvalue Analysis for Symmetric Kernel

Page 10: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201910/31 P. C. Hansen – Inverse Problems

A Tricky Example …

Page 11: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201911/31 P. C. Hansen – Inverse Problems

… With No Solution

Page 12: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201912/31 P. C. Hansen – Inverse Problems

Inverse Problems Are Ill Posed

Hadamard’s definition of a well-posed problem (early 20th century)

1. Existence: the problem must have a solution.

2. Uniquness: the solution must be unique.

3. Stability: it must depend continuously on data and parameters.

If the problem violates any of these requirements, it is ill posed.

Inverse problems are, by nature, always ill posed.

And yet, we have a strong desire – and a need – to solve them …

Page 13: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201913/31 P. C. Hansen – Inverse Problems

Hadamard 1 (existence) and 2 (uniqueness)

Case 1

Case 2

Page 14: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201914/31 P. C. Hansen – Inverse Problems

Hadamard 3 (stability)

Page 15: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201915/31 P. C. Hansen – Inverse Problems

Eigenvalue Analysis for Symmetric Kernel

Page 16: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201916/31 P. C. Hansen – Inverse Problems

Eigenvalue Analysis for Symmetric Kernel

Test problem – gravity from Regularization Tools (Hansen, 2007):

With no noise in the data,the Picard condition is satisfied.

When noise is present, the Picard condition is not satisfied.The solution coefficients diverge.

Page 17: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201917/31 P. C. Hansen – Inverse Problems

Dealing with the Instability RegularizationThe ill conditioning of the problem makes it impossible to compute a “naive” solution to the inverse problem:

Incorporate prior information about the solution via regularization:

Page 18: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201918/31 P. C. Hansen – Inverse Problems

Eigenvalue Analysis of Tikhonov Regularizer

These modifiedcoefficients satisfy the Picard condition.

Stabilization accomplished!

Page 19: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201919/31 P. C. Hansen – Inverse Problems

Case: Total Variation (TV)

Page 20: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201920/31 P. C. Hansen – Inverse Problems

Case: Directional TV (DTV)Kongskov, Dong, Knudsen, Directional total generalized variation regularization, 2019.

Blurred and noisy Directional TVTV and similar methods

Page 21: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201921/31 P. C. Hansen – Inverse Problems

Case: Regularization with Sparsity Prior

Page 22: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201922/31 P. C. Hansen – Inverse Problems

Case: Sparse CT Reconstruction

Artificial sparse test images.Left to right: 5%, 10%, 20%,40%, 60%, 80% nonzeroes.

Phase diagram: the recovery fraction of reconstructed images at a given sparsity ab-ruptly changes from 0 to 1, once a critical number of measurements is reached. Agrees with the theoretical phase transition for random matrices (Donoho, Tanner 2009).

Jørgensen, Sidky, H, Pan, Empirical Average-Case Relation Between Under-sampling and Sparsity in X-Ray CT, 2015.

unde

rsam

plin

g

Full recovery

No recovery

Page 23: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201923/31 P. C. Hansen – Inverse Problems

Case: Training Images as Regularizer

Training imagesare patches fromhigh-res image.

Dictionary patcheslearned via nonneg.matrix factorization.

Reconstructioncomputed from highly underdet. problem.

Dictionary Sparsity prior on dictionary elements

Soltani, Kilmer, H, A tensor-based dictionary learning approach to tomographic image reconstruction, 2016.Soltani, Andersen, H, Tomographic image reconstruction using training images, 2017.

Page 24: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201924/31 P. C. Hansen – Inverse Problems

Case: When the Training Images are WrongSoltani, Andersen, H, Tomographic image reconstruction using training images, 2017.

Exact image The ‘‘best’’ reconstruction based on a wrong dictionary

created from the peppers training image.

Peppermatches?

Page 25: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201925/31 P. C. Hansen – Inverse Problems

Algorithm Development – Iterative MethodsLarge-scale problems A x = b.How to solve them efficiently?→ Iterative methods!

Page 26: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201926/31 P. C. Hansen – Inverse Problems

Convergence Explained

Page 27: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201927/31 P. C. Hansen – Inverse Problems

Nonconvergence!

Nonconvergence due to eigenvalues of BA with negative real part

Page 28: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201928/31 P. C. Hansen – Inverse Problems

The Fix

Dong, H, Hochstenbach, Riis; SISC, 2019.

I am really proud of this paper.

Page 29: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201929/31 P. C. Hansen – Inverse Problems

Nonconvergende Convergence

Page 30: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201930/31 P. C. Hansen – Inverse Problems

Beyond Sharp Reconstructions

Classical method.

Figure creditto E. Sidky

TV regularization needs only 10%of full X-ray dose.

But how reliableare the spots?

algorithm-error

x = argmin { ||K f – g || + regularization(x) }

data-errormodel-error regularization-error

All kinds of errors have influence on the solution:

UQ = uncertainty quantificationis the end-to-end study of theimpact of all forms of error anduncertainty in the data and models.

Page 31: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201931/31 P. C. Hansen – Inverse Problems

Applied UQ

UQ gives insight about the reliability of the result.

63% 8%12% 17%

Traditionally: one result.How trustworthy is it?

Black hole?

Page 32: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201932/31 P. C. Hansen – Inverse Problems

Research Initiative

Computational Uncertainty Quantificationfor Inverse Problems

VisionComputational UQ becomes an essential part of solving

inverse problems in science and engineering.

• Develop the mathematical, statistical and computational framework.

• Create a modeling framework and a computational platform for non-experts.

Page 33: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201933/31 P. C. Hansen – Inverse Problems

UQ: Gaussian Data Errors and Gaussian Prior

Page 34: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201934/31 P. C. Hansen – Inverse Problems

UQ in Image Deblurring

A solution (MAP estimator).Measured blurred image.

UQ shows uncertainty in each pixel; white denotes high uncertainty.

Page 35: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201935/31 P. C. Hansen – Inverse Problems

Case: UQ with Non-Negative Prior

If the prior or likelihood is non-Gaussian, we must sample the posterior: we generate many random instances of the regularized solution with the specified likelihood and prior.

We have an analytical expression for the prior, but no analytical expres-

sion for the posterior.

Bardsley, Hansen, MCMC Algorithms for Non-negativity Constrained Inverse Problems, 2019.

Mean of samples MAP estimate

Hist. of reg. parameters Standard deviation

Positron Emission Tomography.Solutions sampled by a newPoisson Hierarchical Gibbs Sampler.

Page 36: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201936/31 P. C. Hansen – Inverse Problems

Case: UQ for Model Discrepancies

Measured data

Physical model

Model discrep-

ancy

Data errors= + +

Cannot include all possible

aspects

Accounts forknown unknowns & unknown unknowns

Known statistics

Described by a Gaussian process

”Naive” point source model Point source & model discrep.Actual field

Dong, Riis, Hansen, Modeling of sound fields, joint with DTU Elektro, 2019.

Page 37: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201937/31 P. C. Hansen – Inverse Problems

HD-Tomo: High-Definition Tomography

The following examples are from the project HD-Tomo, which was funded by an ERC Advanced Research Grant, 2012–17.

Page 38: Matlab Examples as a Means for Experimental …pcha/MeetDTU.pdfInverse Problems Do the Impossible – Solve the Impossible Per Christian Hansen Professor, Villum Investigator Section

Meet DTU, Dec. 201938/31 P. C. Hansen – Inverse Problems

Example: Fault InspectionUse X-ray scanning to compute cross-sectional images of oil pipes on the seabed.Detect defects, cracks, etc. in the pipe.

Defect!

Reinforcing bars