NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A deep learning framework for nucleus segmentation using image style transfer

Réka Hollandi, Ábel Szkalisity, Tímea Tóth, Ervin Tasnádi, Csaba Molnár, Botond Mathe, István Grexa, József Molnár, Árpád Bálind, Mate Gorbe, Mária Kovács, Ede Migh, Allen Goodman, Tamás Balassa, Krisztián Koós, Wenyu Wang, Norbert Bara, Ferenc Kovács, Lassi Paavolainen, Tivadar Danka, András Kriston, Anne E. Carpenter, Kevin Smith, Péter HorváthbioRxiv 2019

Abstract

Single cell segmentation is typically one of the first and most crucial tasks of image-based cellular analysis. We present a deep learning approach aiming towards a truly general method for localizing nuclei across a diverse range of assays and light microscopy modalities. We outperform the 739 methods submitted to the 2018 Data Science Bowl on images representing a variety of realistic conditions, some of which were not represented in the training data. The key to our approach is to adapt our model to unseen and unlabeled data using image style transfer to generate augmented training samples. This allows the model to recognize nuclei in new and different experiments without requiring expert annotations.

Introduction

Nucleus segmentation—identifying the boundaries of cell nuclei in microscopy images—is a fundamental task in computational biology that remains notoriously difficult to automate due to domain shift. A model trained on fluorescent images often fails when applied to histology slides (H&E stains) because the visual "style" (colors, textures, and backgrounds) differs drastically. Traditionally, overcoming this required experts to manually annotate thousands of new images for every new experiment. This paper introduces a framework designed to adapt to unseen imaging modalities without requiring new manual labels.

The nucleAIzer Framework

The proposed framework, implemented in the tool nucleAIzer, utilizes a multi-stage pipeline to achieve robust generalization:

  1. Pre-segmentation & Normalization: An initial Mask R-CNN estimates nucleus sizes. Because deep learning models perform optimally when targets are a consistent size, all images are rescaled to a "goldilocks" zone of approximately 40 pixels in diameter.
  2. Style Clustering: Unlabeled target images are grouped into "styles" (e.g., specific stains or microscope settings) using a similarity neural network.
  3. Image Style Transfer: For each identified style, a pix2pix generative adversarial network (GAN) is trained to transform simple binary masks (representing nucleus shapes) into realistic-looking microscopy images of that specific style.
  4. Data Augmentation: Approximately 100,000 artificial nucleus masks are generated via simulation and "painted" using the trained style transfer models, creating a massive, perfectly labeled synthetic dataset for the new modality.
  5. Final Segmentation & Refinement: A final Mask R-CNN is trained on a mix of real and synthetic data, followed by a U-Net for fine-grained boundary correction to separate touching nuclei.
Overview of the nucleAIzer framework, showing the multi-stage pipeline (a) and the style transfer augmentation process (b).

Experimental Results

The method was primarily benchmarked against the 2018 Data Science Bowl (DSB), which features thousands of images across diverse conditions. Additional testing was performed on the BBBC039 fluorescence dataset and various histology sets.

Key Findings

  • Competition Success: The framework achieved a post-competition score of 0.633 on the DSB Stage 2 set, surpassing the official winning score of 0.631 among 739 submitted methods.
  • Cross-Modality Performance: On histology images, the approach scored 0.499, nearly doubling the performance of traditional pixel-classification tools like ilastik (0.319).
  • Ablation Study: Comparing the "AUTOstyle" (synthetic data) approach against a version without style transfer showed that GAN-based augmentation provides a significant edge, particularly in "out-of-domain" scenarios where training data does not match the test data.
Comparison of the proposed method's performance (0.633) against other top-performing models in the 2018 Data Science Bowl.

Discussion and Conclusion

The core innovation of this work is the use of style as a bridge. By using GANs to bridge the gap between abstract shapes and realistic textures, the authors effectively automated the role of the expert annotator. Furthermore, the results demonstrate that scale-normalization is a critical, yet often overlooked, factor in neural network performance for biological imaging.

While training separate style transfer networks for every new modality introduces computational overhead, the workflow is highly effective for adapting to new experiments. Future work may extend this "style transfer for augmentation" workflow to other biological structures, such as mitochondria or cell membranes, provided their basic morphologies can be simulated.

Summary updated

BibTeX
@misc{hollandi2019deep,
  author = {Réka Hollandi and Ábel Szkalisity and Tímea Tóth and Ervin Tasnádi and Csaba Molnár and Botond Mathe and István Grexa and József Molnár and Árpád Bálind and Mate Gorbe and Mária Kovács and Ede Migh and Allen Goodman and Tamás Balassa and Krisztián Koós and Wenyu Wang and Norbert Bara and Ferenc Kovács and Lassi Paavolainen and Tivadar Danka and András Kriston and Anne E. Carpenter and Kevin Smith and Péter Horváth},
  title = {{A deep learning framework for nucleus segmentation using image style transfer}},
  year = {2019},
  doi = {10.1101/580605},
  howpublished = {bioRxiv},
}
Figure