Stratify or Die: Rethinking Data Splits in Image Segmentation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jami, Naga Venkata Sai Jitin, Altstidl, Thomas, Mueller, Jonas, Li, Jindong, Zanca, Dario, Eskofier, Bjoern, Leutheuser, Heike
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916970096492544
author Jami, Naga Venkata Sai Jitin
Altstidl, Thomas
Mueller, Jonas
Li, Jindong
Zanca, Dario
Eskofier, Bjoern
Leutheuser, Heike
author_facet Jami, Naga Venkata Sai Jitin
Altstidl, Thomas
Mueller, Jonas
Li, Jindong
Zanca, Dario
Eskofier, Bjoern
Leutheuser, Heike
contents Random splitting of datasets in image segmentation often leads to unrepresentative test sets, resulting in biased evaluations and poor model generalization. While stratified sampling has proven effective for addressing label distribution imbalance in classification tasks, extending these ideas to segmentation remains challenging due to the multi-label structure and class imbalance typically present in such data. Building on existing stratification concepts, we introduce Iterative Pixel Stratification (IPS), a straightforward, label-aware sampling method tailored for segmentation tasks. Additionally, we present Wasserstein-Driven Evolutionary Stratification (WDES), a novel genetic algorithm designed to minimize the Wasserstein distance, thereby optimizing the similarity of label distributions across dataset splits. We prove that WDES is globally optimal given enough generations. Using newly proposed statistical heterogeneity metrics, we evaluate both methods against random sampling and find that WDES consistently produces more representative splits. Applying WDES across diverse segmentation tasks, including street scenes, medical imaging, and satellite imagery, leads to lower performance variance and improved model evaluation. Our results also highlight the particular value of WDES in handling small, imbalanced, and low-diversity datasets, where conventional splitting strategies are most prone to bias.
format Preprint
id arxiv_https___arxiv_org_abs_2509_21056
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Stratify or Die: Rethinking Data Splits in Image Segmentation
Jami, Naga Venkata Sai Jitin
Altstidl, Thomas
Mueller, Jonas
Li, Jindong
Zanca, Dario
Eskofier, Bjoern
Leutheuser, Heike
Computer Vision and Pattern Recognition
Random splitting of datasets in image segmentation often leads to unrepresentative test sets, resulting in biased evaluations and poor model generalization. While stratified sampling has proven effective for addressing label distribution imbalance in classification tasks, extending these ideas to segmentation remains challenging due to the multi-label structure and class imbalance typically present in such data. Building on existing stratification concepts, we introduce Iterative Pixel Stratification (IPS), a straightforward, label-aware sampling method tailored for segmentation tasks. Additionally, we present Wasserstein-Driven Evolutionary Stratification (WDES), a novel genetic algorithm designed to minimize the Wasserstein distance, thereby optimizing the similarity of label distributions across dataset splits. We prove that WDES is globally optimal given enough generations. Using newly proposed statistical heterogeneity metrics, we evaluate both methods against random sampling and find that WDES consistently produces more representative splits. Applying WDES across diverse segmentation tasks, including street scenes, medical imaging, and satellite imagery, leads to lower performance variance and improved model evaluation. Our results also highlight the particular value of WDES in handling small, imbalanced, and low-diversity datasets, where conventional splitting strategies are most prone to bias.
title Stratify or Die: Rethinking Data Splits in Image Segmentation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2509.21056