PathoPainter: Augmenting Histopathology Segmentation via Tumor-Aware Inpainting

Publication date

2026

Authors

Liu, Hong
Yang, Haosen
Huijben, Evi M.C.
Schuiveling, MarkORCID 0000-0002-2631-7271
Su, Ruisheng
Pluim, Josien P WORCID 0000-0001-7327-9178ISNI 000000014097262X
Veta, Mitko

Editors

Gee, James C.
Hong, Jaesung
Sudre, Carole H.
Golland, Polina
Park, Jinah
Alexander, Daniel C.
Iglesias, Juan Eugenio
Venkataraman, Archana
Kim, Jong Hyo

Advisors

Supervisors

Document Type

Part of book

Collections

Open Access logo

License

taverne

Abstract

Tumor segmentation plays a critical role in histopathology, but it requires costly, fine-grained image-mask pairs annotated by pathologists. Thus, synthesizing histopathology data to expand the dataset is highly desirable. Previous works suffer from inaccuracies and limited diversity in image-mask pairs, both of which affect training segmentation, particularly in small-scale datasets and the inherently complex nature of histopathology images. To address this challenge, we propose PathoPainter, which reformulates image-mask pair generation as a tumor inpainting task. Specifically, our approach preserves the background while inpainting the tumor region, ensuring precise alignment between the generated image and its corresponding mask. To enhance dataset diversity while maintaining biological plausibility, we incorporate a sampling mechanism that conditions tumor inpainting on regional embeddings from a different image. Additionally, we introduce a filtering strategy to exclude uncertain synthetic regions, further improving the quality of the generated data. Our comprehensive evaluation spans multiple datasets featuring diverse tumor types and various training data scales. As a result, segmentation improved significantly with our synthetic data, surpassing existing segmentation data synthesis approaches, e.g., 75.69% → 77.69% on CAMELYON16. The code is available at https://github.com/HongLiuuuuu/PathoPainter.

Keywords

Data augmentation, Diffusion models, Histopathology segmentation, Taverne, Theoretical Computer Science, General Computer Science

Citation

Liu, H, Yang, H, Huijben, E M C, Schuiveling, M, Su, R, Pluim, J P W & Veta, M 2026, PathoPainter : Augmenting Histopathology Segmentation via Tumor-Aware Inpainting. in J C Gee, J Hong, C H Sudre, P Golland, J Park, D C Alexander, J E Iglesias, A Venkataraman & J H Kim (eds), Medical Image Computing and Computer Assisted Intervention, MICCAI 2025 - 28th International Conference, 2025, Proceedings. Lecture Notes in Computer Science, vol. 15975 LNCS, Springer Science and Business Media Deutschland GmbH, pp. 408-417, 28th International Conference on Medical Image Computing and Computer Assisted Intervention, MICCAI 2025, Daejeon, Korea, Republic of, 23/09/25. https://doi.org/10.1007/978-3-032-05325-1_39, conference