5028

Estimating uncertainty in diffusion MRI models using generative deep learning
Frank Zijlstra1,2 and Peter T While1,2
1Department of Radiology and Nuclear Medicine, St. Olav's University Hospital, Trondheim, Norway, 2Department of Circulation and Medical Imaging, NTNU - Norwegian University of Science and Technology, Trondheim, Norway

Synopsis

Keywords: Machine Learning/Artificial Intelligence, Diffusion/other diffusion imaging techniques, Model fitting, uncertainty, IVIM

Uncertainty is an important aspect of fitting quantitative models to diffusion MRI data, which is often overlooked. This study presents a method for estimating uncertainty intrinsic to a model using a generative deep learning approach (Denoising Diffusion Probabilistic Models (DDPM)). We numerically validate that the approach provides accurate uncertainty estimates, and demonstrate its use in providing signal-specific uncertainty estimates. Furthermore, we show that DDPM can be used as a fitting method that estimates uncertainty, and show both ADC and IVIM fitting on an in vivo brain scan. This shows promise for DDPM, as both an investigate tool and fitting method.

Purpose

Quantitative model fitting is a common procedure in diffusion MRI1. Quantitative parameters can be reproduced across scanners and institutions2 and therefore could form a reliable basis for detecting pathology.

Uncertainty is often overlooked in model fitting. Ignoring uncertainty carries the risk of misinterpreting fitted parameters. Whereas uncertainty leads to noise amplification in conventional fitting, supervised deep learning models exhibit bias as uncertainty increases. Bootstrap methods3-5 are a common approach to assessing uncertainty during fitting. These methods rely on repeated fitting and can be slow, and biased by the fitting method itself.

Here, we propose a method for estimating the intrinsic uncertainty of model fitting, based on a Denoising Diffusion Probabilistic Model (DDPM)6, a state-of-the-art generative deep learning model popular in image generation7,8. Our method is agnostic to the fitting method, and instead assesses the intrinsic uncertainty of the model function. Furthermore, DDPM can be applied as a fitting method.

In this study, we demonstrate our DDPM model on fitting a mono-exponential diffusion model and an intravoxel incoherent motion (IVIM) model9, on both synthetic data and an in vivo scan. We validated DDPM uncertainty estimates using a numerical approach.

Methods

DDPM model
The DDPM model is trained to draw random samples from a conditional probability density function (pdf) $$$f(p|s)$$$ (probability of parameters $$$p$$$, given signal $$$s$$$), illustrated in Figure 1. It was trained with synthetic data generated from the model function ($$$s=M(p)+noise$$$). Training was run for 1000 epochs of 500 batches with batch size 128, and took ~9.5 hours per model on a single CPU core.

DDPM inference was accelerated by a factor ten10. For inference on single signals, we drew 10000 samples using the DDPM model, taking 3s on a RTX A6000 GPU. For inference on $$$246\times246$$$ images, we drew 100 samples per pixel, taking 10s per sample.

Numerical validation
To numerically approximate a sample from the pdf $$$f(p|s)$$$, we simulated a large quantity of $$$(p,s)$$$ pairs. For a given signal, we find the nearest neighbours in signal-space among these simulations, where the associated parameters ($$$p$$$) approximate a sample from the pdf.

Experiments
We applied DDPM to diffusion MRI fitting of a trace ADC signal ($$$b=[0,500]$$$) and an IVIM signal with 16 b-values11. Signals with Rician noise ($$$\text{SNR}=100$$$ for $$$S_0=1$$$) were generated for ADC:
$$s_{\{xx,yy,zz\}}=S_{0}\cdot~exp(-b\cdot~D_{\{xx,yy,zz\}})$$
And IVIM:
$$s_{\{xx,yy,zz\}}=S_0\cdot~((1-f)\cdot~exp(-b\cdot~D_{\{xx,yy,zz\}})+f\cdot~exp(-b\cdot~D^*)$$
$$$S_0$$$ was sampled in the range $$$[0,1]$$$, $$$D_{\{xx,yy,zz\}}$$$ in $$$[0,\text{3e-3}]$$$, $$$f$$$ in $$$[0,0.5]$$$, and $$$D^*$$$ in $$$[\text{3e-3},\text{100e-3}]$$$. For b-values except 0 the trace signal was calculated. The training targets were the simulated parameters and $$$ADC=(D_{xx}+D_{yy}+D_{zz})/3$$$, instead of $$$D_{\{xx,yy,zz\}}$$$.

For comparison, we performed non-linear least squares (LSQR) fitting and fitting with a supervised neural network. We estimated uncertainty for signals with a single noise realization, with 10000 random noise realizations (i.e. a repeated bootstrap), and fitting of a brain scan of a volunteer (acquired in accordance with institutional guidelines).

Results

Figure 2 shows the estimated uncertainty for two specific signals per model. The uncertainty estimates from DDPM and the numerical method matched closely, with DDPM showing a minor bias towards more probable regions.

Figure 3 shows the uncertainty as estimated by a repeated bootstrap. DDPM yielded the broadest distribution of samples, consistent with Figure 2, whereas LSQR and supervised fitting showed some bias.

Figures 4 and 5 show fitting on an in vivo image of the brain. The ADC fitting showed little uncertainty, with minor differences among the methods. In IVIM, however, DDPM uncovered substantial uncertainty in the $$$f$$$ and $$$D^*$$$ maps.

Discussion

We demonstrated that DDPM provides accurate uncertainty estimates with respect to a numerical simulation in both ADC and IVIM fitting, and that it can visualize and assess uncertainty for specific signals. The DDPM uncertainty estimate is specific for the observed noise of a single signal, requires no additional samples like a bootstrapping approach would, and is not dependent on a specific fitting method.

In IVIM, using DDPM either as an investigative tool (Figures 2 and 3), or as a fitting method (Figure 5), showed that uncertainty in $$$f$$$ and $$$D^*$$$ is correlated, and that the $$$D^*$$$ estimate was unreliable in most parts of the brain.

DDPM could investigate far more non-linear behaviour than shown, limited primarily by the training data. Synthetic data can be manipulated to investigate expected changes in uncertainty, e.g. using variable SNR, or introducing spatial correlations. Real data can also be used for training.

A main limitation of our proposed method is training time. While our implementation was not optimized for speed, it is unlikely to become fast enough to allow iterative investigations, e.g. optimizing acquisition parameters. Furthermore, sampling using DDPM models is relatively slow, drawing a single sample takes 100 times longer than using a conventional neural network, which needs to be repeated to accurately estimate uncertainty.

Especially when fitting with DDPM, this repeated sampling presents an interesting visualization problem. Many random samples per pixel need to be condensed into a few images, which may not capture the complexity of the underlying uncertainty.

The DDPM approach presents a novel method of assessing uncertainty in highly non-linear models. In quantitative MRI, and diffusion MRI in particular, this provides a valuable investigative tool in model fitting and experimental design.

Acknowledgements

This work was supported by the Research Council of Norway (FRIPRO Researcher Project 302624).

References

1. Alexander DC. Modelling, Fitting and Sampling in Diffusion MRI. In: Visualization and Processing of Tensor Fields: Advances and Perspectives. Mathematics and Visualization. Berlin, Heidelberg: Springer; 2009. pp. 3–20

2. Grech-Sollars M, Hales PW, Miyazaki K, et al. Multi-centre reproducibility of diffusion MRI parameters for clinical sequences in the brain. NMR Biomed. 2015;28:468–485

3. Efron B. Bootstrap Methods: Another Look at the Jackknife. Ann. Stat. 1979;7:1–26

4. Jones DK. Determining and visualizing uncertainty in estimates of fiber orientation from diffusion tensor MRI. Magn. Reson. Med. 2003;49:7–12

5. Whitcher B, Tuch DS, Wisco JJ, Sorensen AG, Wang L. Using the wild bootstrap to quantify uncertainty in diffusion tensor imaging. Hum. Brain Mapp. 2008;29:346–362

6. Ho J, Jain A, Abbeel P. Denoising Diffusion Probabilistic Models. arXiv:2006.11239, 2020

7. Saharia C, Chan W, Chang H, et al. Palette: Image-to-Image Diffusion Models. arXiv:2111.05826, 2022

8. Rombach R, Blattmann A, Lorenz D, Esser P, Ommer B. High-Resolution Image Synthesis with Latent Diffusion Models. arXiv:2112.107152, 2022

9. Le Bihan D, Breton E, Lallemand D, Aubin ML, Vignaud J, Laval-Jeantet M. Separation of diffusion and perfusion in intravoxel incoherent motion MR imaging. Radiology 1988;168:497–505

10. Lu C, Zhou Y, Bao F, Chen J, Li C, Zhu J. DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps. 2022

11. Federau C, O’Brien K, Meuli R, Hagmann P, Maeder P. Measuring brain perfusion with intravoxel incoherent motion (IVIM): Initial clinical experience. J. Magn. Reson. Imaging 2014;39:624–632

Figures

Figure 1. Overview of the Denoising Diffusion Probabilistic Model (DDPM). The DDPM attempts to invert a forward diffusion process, which takes a true output (here $$$S_0$$$ and $$$ADC$$$) and repeatedly adds Gaussian noise. The inverse step is modeled by a 5-layer MLP, conditioned on the measured signal and timestep $$$t$$$. The MLP is trained to approximate the previous timestep (i.e. the added noise). The center graph shows the inverse process for 10 samples, starting from pure Gaussian noise and converging on samples from the pdf $$$f(p|s)$$$.

Figure 2. Uncertainty estimates for single signals with a single noise realization, using the DDPM model and the numerical estimate. For ADC (A), plots of $$$S_0$$$ vs $$$ADC$$$ are shown, where each point is a sample from the pdf $$$f(S_0,ADC|s)$$$, where $$$s$$$ is the shown signal (red = without noise, black = with noise). From IVIM (B), plots of $$$S_0$$$ vs $$$ADC$$$, and $$$f$$$ vs $$$D^*$$$ are shown. For both fitting problems, we show one signal with little uncertainty, and one signal with substantial uncertainty, showing both non-Gaussian and correlated uncertainty.

Figure 3. Results of a repeated bootstrap with 10000 signal realizations (black lines) for a given ground truth (red line), using the DDPM model, least squares fitting (LSQR), and a supervised neural network. Two ground truths are shown for ADC (A) and IVIM (B). DDPM shows the broadest distribution of parameters, consistent with Figure 2. Both LSQR and supervised fitting show bias towards the center of the distribution, which may not be representative of the true underlying uncertainty. Also note numerical instability in the ADC estimates of LSQR.

Figure 4. ADC fitting of an in vivo brain scan for least squares, supervised neural network, and DDPM fitting. For DDPM, the mean, 5th/95th percentiles, and standard deviation of the 100 samples from the pdf are shown to visualize the underlying uncertainty. Observe slightly higher uncertainty in the $$$ADC$$$ estimates of the white matter, which coincides with low $$$S_0$$$ (i.e. lower SNR).

Figure 5. IVIM fitting of an in vivo brain scan for least squares, supervised neural network, and DDPM fitting. For DDPM, the mean, 5th/95th percentiles, and standard deviation of the 100 samples from the pdf are shown to visualize the underlying uncertainty. Observe substantial uncertainty in the $$$f$$$ and $$$D^*$$$ maps, which shows as noise in the LSQR estimate, is hidden by the supervised model, and assessed in-depth by the DDPM model.

Proc. Intl. Soc. Mag. Reson. Med. 31 (2023)
5028
DOI: https://doi.org/10.58530/2023/5028