Denoising diffusion probabilistic models for generation of realistic fully-annotated microscopy image datasets

Dennis Eschweiler, Rüveyda Yilmaz, Matisse Baumann, Ina Laube, Rijo Roy, Abin Jose, Daniel Brückner, Johannes Stegmaier · DOI

Abstract

Deep learning has revolutionized microscopy image analysis, but the high demand for annotated data remains a significant bottleneck. This paper introduces a pipeline utilizing Denoising Diffusion Probabilistic Models (DDPMs) to generate high-fidelity, fully-annotated synthetic microscopy datasets. By training on unlabeled real-world images, the DDPM learns to translate simple geometric simulations into realistic biological textures. Models trained exclusively on these synthetic datasets achieve segmentation performance comparable to generalist models trained on massive, manually annotated datasets, offering a scalable solution to the data scarcity problem in biological imaging.

Introduction

The segmentation of cells and nuclei is a cornerstone of modern biological research, enabling quantitative analysis of complex tissues. While deep learning models like Cellpose have significantly improved analysis, their performance is often limited by the "annotation bottleneck." Microscopy data varies drastically across organisms, staining protocols, and imaging hardware, necessitating labor-intensive manual annotation for each new dataset. Traditional data augmentation and simple simulations often fail to capture the complex noise and texture profiles of real biological samples, leading to a performance gap when models are applied to real data. This study addresses this gap by using generative AI to bridge the divide between simple simulations and realistic image data.

Methodology: Bridging Simulations and Reality

The proposed pipeline leverages Denoising Diffusion Probabilistic Models (DDPMs) to bridge the gap between simple simulations and realistic microscopy images. Unlike standard DDPMs that generate images from pure noise, this approach uses a sketch-to-image translation process.

Overview of the DDPM-based pipeline. (a) The diffusion model is trained on unlabeled real data and then applied to simulated annotations. (b) The generation process starts from a noisy version of a sketch at an intermediate timestep.

The process involves three key stages:

  1. Unsupervised Texture Learning: A diffusion model is trained on a collection of unlabeled real microscopy images to learn the specific "style"—including noise, texture, and light distribution—of the target dataset.
  2. Controlled Generation: Instead of starting from pure Gaussian noise, the generation begins at an intermediate timestep ($t_{start}$) with a noisy version of a geometric "sketch" or simulation. By optimizing $t_{start}$ and applying Gaussian smoothing to the sketches, the model generates realistic textures that strictly adhere to the input geometry.
  3. Downstream Training: The resulting synthetic image-mask pairs, where the "label" (the sketch) perfectly matches the generated image, are used to train standard segmentation models from scratch.

Experimental Setup and Datasets

The versatility of the DDPM pipeline was tested across diverse biological contexts, including 3D Meristem (Arabidopsis thaliana), 3D Embryos (Caenorhabditis elegans and Tribolium castaneum), and various 2D cell cultures. The researchers used publicly available benchmarks, such as the Cell Tracking Challenge, to compare their synthetic results against human-annotated "gold standards."

Key Results and Insights

The study found that the generative process can effectively "fix" minor inaccuracies in input sketches, softening sharp edges to match biological reality. A critical finding was the "sweet spot" for the starting timestep (typically $t_{start} = 400$); at this level, the model balances adherence to the sketch with the generation of realistic textures.

Visual comparison of real and synthetic samples across different organisms and the resulting segmentation performance. Violin plots show that models trained on synthetic data (orange) achieve IoU scores comparable to generalist models (blue).

Key quantitative findings include:

  • Comparable Accuracy: Segmentation models trained on just 200 synthetic images reached Intersection-over-Union (IoU) levels statistically comparable to generalist models trained on vast, diverse real-world datasets.
  • High Realism: Synthetic data achieved high Peak Signal-to-Noise Ratio (PSNR) scores, indicating a close match to the visual characteristics of real target images.
  • Annotation-Free Workflow: For several datasets, the pipeline produced state-of-the-art results without requiring any human-labeled pixels for the specific target domain.

Conclusion and Future Work

While the DDPM pipeline offers a powerful alternative to manual annotation, some limitations remain. The model can struggle with extremely low-contrast regions where noise may obscure structural information. Additionally, while 2D+t data was handled by treating time as a third dimension, future iterations could benefit from more explicit temporal conditioning to reduce textural flickering. Despite the computational cost of training diffusion models, the significant reduction in expert labor makes this approach a compelling solution for high-throughput biological imaging.

Summary updated

BibTeX
@article{eschweiler2024denoising,
  author = {Dennis Eschweiler and Rüveyda Yilmaz and Matisse Baumann and Ina Laube and Rijo Roy and Abin Jose and Daniel Brückner and Johannes Stegmaier},
  title = {{Denoising diffusion probabilistic models for generation of realistic fully-annotated microscopy image datasets}},
  journal = {PLOS Computational Biology},
  year = {2024},
  doi = {10.1371/journal.pcbi.1011890},
}
Figure