Abstract
Nuclear instance segmentation and classification are pivotal in digital pathology for disease diagnosis and prognosis. However, the scarcity of high-quality annotated datasets remains a significant bottleneck. This paper presents IM-Diffusion, a novel data augmentation framework leveraging diffusion models to synthesize diverse, high-fidelity pathological images. By introducing a Nuclear Migration Module (NMM) to simulate realistic cell layouts and an Internuclear-regions Inpainting Module (IIM) to refine contact zones, IM-Diffusion generates complex training samples that significantly enhance model performance. Experimental results on the CoNSeP and GLySAC benchmarks demonstrate state-of-the-art accuracy, particularly in identifying rare cell types, where it outperforms existing methods by a substantial margin.
Introduction
In the field of digital pathology, the precise identification and classification of cell nuclei—known as nuclear instance segmentation—is a foundational task for downstream clinical analysis. Deep learning models have shown great promise in automating this process, yet their success is heavily dependent on large-scale, accurately labeled datasets. Generating such annotations is a labor-intensive process requiring expert knowledge, creating a "data bottleneck" that hinders the development of robust models.
While generative adversarial networks (GANs) have been employed to synthesize training data, they often struggle with training instability and "mode collapse," leading to a lack of morphological diversity. More importantly, existing augmentation techniques frequently fail to capture the intricate spatial relationships and varied layouts of nuclei found in real tissue. To address these challenges, we propose the Instance Migration Diffusion (IM-Diffusion) framework, which "remixes" existing labels to create biologically plausible and diverse synthetic training data.
Methodology
The IM-Diffusion framework consists of two core components designed to enhance the realism and diversity of synthetic pathological images: the Nuclear Migration Module (NMM) and the Internuclear-regions Inpainting Module (IIM).
Nuclear Migration Module (NMM)
The NMM simulates the physical movement of nuclei within tissue to generate novel spatial configurations. Inspired by the physics of viscoelastic materials, the module applies a size-dependent mobility rule: smaller nuclei, such as lymphocytes, exhibit higher mobility under mechanical stress compared to larger nuclei. By shifting nuclei based on their size and employing a "z-ordering" logic to prevent unrealistic overlaps, the NMM creates diverse and biologically plausible layouts from existing labels.
Internuclear-regions Inpainting Module (IIM)
Once a new layout is established, the IIM focuses on the "contact zones" between nuclei—areas where segmentation models typically struggle. The module utilizes an Internuclear Mapping Component to identify these dense regions and a Structural Generation Component to perform structure-aware inpainting. This ensures that the generated images possess realistic textures and clear boundaries in areas of high nuclear density, providing the training model with challenging "hard examples."
The refined labels are then processed by a pre-trained Semantic Diffusion Model (SDM), which synthesizes the final high-quality pathological images.
Experimental Results
The effectiveness of IM-Diffusion was evaluated on two benchmark datasets: CoNSeP (41 images at 40x magnification) and GLySAC (59 images at 40x magnification). The framework achieved state-of-the-art results across both datasets, significantly outperforming baseline models and previous augmentation methods like GradMix and DiffMix.
On the CoNSeP dataset, IM-Diffusion reached a mean Aggregated Jaccard Index (mAJI) of 48.0% and a mean F1 (mF1) score of 64.8%. A particularly noteworthy achievement is the model's performance on minority cell classes; in the "miscellaneous" category, IM-Diffusion improved classification accuracy by 95.42% over the baseline. This highlights the framework's ability to mitigate class imbalance by effectively manipulating and replicating rare instances in new synthetic layouts.
Conclusion
IM-Diffusion represents a significant advancement in data augmentation for digital pathology. By integrating physics-informed migration and structure-aware inpainting within a diffusion-based framework, it generates high-quality, diverse synthetic data that directly addresses the challenges of nuclear instance segmentation. While diffusion models entail higher computational costs compared to GANs, the substantial gains in accuracy and the ability to handle rare cell types make IM-Diffusion a powerful tool for developing more robust diagnostic models. Future work will explore the application of this framework to other complex tissue structures, such as glands and vasculature.
Summary updated