Complex-Valued Retrievals From Noisy Images Using Diffusion Models

Nadav Torem, Roi Ronen, Yoav Y. Schechner, Michael Elad

Abstract

In diverse microscopy modalities, sensors measure only real-valued intensities. Additionally, the sensor readouts are affected by Poissonian-distributed photon noise. Traditional restoration algorithms typically aim to minimize the mean squared error (MSE) between the original and recovered images. This often leads to blurry outcomes with poor perceptual quality. Recently, deep diffusion models (DDMs) have proven to be highly capable of sampling images from the a-posteriori probability of the sought variables, resulting in visually pleasing high-quality images. These models have mostly been suggested for real-valued images suffering from Gaussian noise. In this study, we generalize annealed Langevin Dynamics, a type of DDM, to tackle the fundamental challenges in optical imaging of complex-valued objects (and real images) affected by Poisson noise. We apply our algorithm to various optical scenarios, such as Fourier Ptychography, Phase Retrieval, and Poisson denoising. Our algorithm is evaluated on simulations and biological empirical data.

Introduction

Optical microscopy faces two fundamental hurdles. First, light is a complex-valued field possessing both amplitude and phase, yet sensors can only measure real-valued intensities. Recovering this lost phase information is a classic inverse problem known as phase retrieval. Second, sensors are plagued by Poisson noise (photon noise), which is signal-dependent—the brighter the pixel, the higher the noise variance.

Traditional algorithms usually minimize the Mean Squared Error (MSE). While mathematically convenient, this often results in "blurry" images lacking fine details. Recently, Deep Diffusion Models (DDMs) have revolutionized image restoration by sampling from the actual posterior probability of an image, leading to sharper, more realistic results. However, most DDMs are designed for real-valued images and stationary Gaussian noise. This work bridges that gap, bringing diffusion models to the complex-valued, Poisson-noisy world of scientific imaging.

Methods: Stochastic Recovery via Diffusion

The proposed approach utilizes Annealed Langevin Dynamics (ALD), a type of diffusion model that iteratively refines a noisy starting point into a clean image by following the gradient of the log-probability (the "score").

Schematic of the imaging system and the iterative stochastic recovery process using Annealed Langevin Dynamics.

To adapt this for microscopy, two key innovations were introduced:

  1. Handling Poisson Noise: Unlike Gaussian noise, Poisson noise variance depends on the underlying signal. The authors developed a "relaxed" model that approximates the likelihood gradient. By treating the noise as if its variance is proportional to the current noisy estimate rather than the unknown ground truth, the math becomes tractable as the algorithm converges.
  2. Complex-Valued Score Matching: The ALD framework was generalized to handle complex variables. For phase retrieval and Fourier ptychography, analytical expressions for the likelihood gradient were derived using modified Bessel functions, allowing the model to navigate the non-linear relationship between the complex field and measured intensity.

The algorithm balances two forces: a pre-trained Deep Neural Network (DNN) acting as a "prior" and a "likelihood" term ensuring the reconstruction matches the actual noisy measurements.

Experimental Results

The method was evaluated on synthetic face datasets (CelebA, FFHQ) and real biological data, including two-photon microscopy of BPAE cells and Fourier Ptychography of human bone cells.

Comparison of the proposed recovery method against BM3D on noisy biological cell images.

Key Performance Metrics

  • Poisson Denoising: On the CelebA dataset, the proposed method achieved an FID of 2.70, significantly better than the MMSE baseline (3.60) and the previous state-of-the-art DPS (5.47), indicating superior perceptual quality.
  • Phase Retrieval: In recovering natural images from intensity-only measurements, the method reached a PSNR of 33.1 dB, outperforming specialized deep learning methods like prDeep (28.4 dB) and classical algorithms like HIO (22.2 dB).
  • Real-World Robustness: The model successfully denoised real two-photon microscopy data, improving PSNR from 26 dB to 33 dB and SSIM from 0.67 to 0.92, while maintaining sharp cellular structures that other methods blurred.

Uncertainty Quantification

Because the method is stochastic, running it multiple times allows for the creation of a variance map. This map identifies regions where the model is "unsure," providing a vital tool for scientific integrity in image interpretation.

Discussion and Future Work

While highly effective, the method is computationally intensive, requiring approximately 1,000 DNN evaluations per image. Future work will focus on optimizing this speed and extending the framework to more complex physical phenomena, such as coherent illumination with speckle or partial coherence. Additionally, extreme low-light scenarios involving SPAD-based imaging present a new frontier for noise statistics that the current model has yet to address.

Summary updated

BibTeX
@inproceedings{torem2022complex,
  author = {Nadav Torem and Roi Ronen and Yoav Y. Schechner and Michael Elad},
  title = {{Complex-Valued Retrievals From Noisy Images Using Diffusion Models}},
  booktitle = {Workshops @ ICCV},
  year = {2022},
}
Figure