CytoDiff: AI-Driven Cytomorphology Image Synthesis for Medical Diagnostics

Jan Carreras Boada, Rao Muhammad Umer, Carsten Marr
7/7/2025
cs.CVcs.CLcs.LG

Official code: JanCarreras24/CytoDiff (14 stars, last commit 2026-02-28). 1 more implementation below.

Abstract

Biomedical datasets are often constrained by stringent privacy requirements and frequently suffer from severe class imbalance. These two aspects hinder the development of accurate machine learning models. While generative AI offers a promising solution, producing synthetic images of sufficient quality for training robust classifiers remains challenging. This work addresses the classification of individual white blood cells, a critical task in diagnosing hematological malignancies such as acute myeloid leukemia (AML). We introduce CytoDiff, a stable diffusion model fine-tuned with LoRA weights and guided by few-shot samples that generates high-fidelity synthetic white blood cell images. Our approach demonstrates substantial improvements in classifier performance when training data is limited. Using a small, highly imbalanced real dataset, the addition of 5,000 synthetic images per class improved ResNet classifier accuracy from 27\% to 78\% (+51\%). Similarly, CLIP-based classification accuracy increased from 62\% to 77\% (+15\%). These results establish synthetic image generation as a valuable tool for biomedical machine learning, enhancing data coverage and facilitating secure data sharing while preserving patient privacy. Paper code is publicly available at https://github.com/JanCarreras24/CytoDiff.

View on arXivView PDF

Code Implementations(2)

AI-driven generation and classification of synthetic cytomorphology images for medical diagnostics using diffusion models.

141TeX, ShellAug 6, 20257 months ago

Codebase for my Final Degree Project, focused on generating and classifying blood cell images.

00TeX, ShellApr 1, 20251 years ago

Similar Papers

Cite this paper

@article{boada2025cytodiff,
  title  = {CytoDiff: AI-Driven Cytomorphology Image Synthesis for Medical Diagnostics},
  author = {Jan Carreras Boada and Rao Muhammad Umer and Carsten Marr},
  year   = {2025},
  eprint = {2507.05063},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.05063v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.05063.svg)](https://codeofpaper.com/paper/2507.05063)

Discussion