IFC-SSL-Bench: Benchmarking Self-Supervised Learning for Annotation-Efficient Multispectral Imaging Flow Cytometry
Authors: Angelo Jovin Yamachui Sitcheu, Roxana-Teodora Fetescu, Thomas Lautenschlager, Nils Friederich, Linus Schilpp, Stephan Allgeier, Luca Deininger, Daniel Hübschmann, Ralf Mikut
Organizations: Institute for Automation and Applied Informatics, Karlsruhe Institute of Technology, Eggenstein-Leopoldshafen, Germany · Institute of Biological and Chemical Systems, Karlsruhe Institute of Technology, Eggenstein-Leopoldshafen, Germany · Department of Biosystems Science and Engineering, ETH Zürich, Basel, Switzerland · Heidelberg Institute for Stem Cell Technology and Experimental Medicine, HI-STEM gGmbH, Heidelberg, Germany · Innovation and Service Unit for Bioinformatics and Precision Medicine, German Cancer Research Center, Heidelberg, Germany · German Cancer Consortium, DKTK, Heidelberg, Germany · Division of Translational Precision Medicine, Institute of Human Genetics, Heidelberg University, Heidelberg, Germany · Computational Oncology Group, Molecular Precision Oncology Program, National Center for Tumor Diseases Heidelberg and German Cancer Research Center, Heidelberg, Germany
Imaging Flow Cytometry (IFC) generates large multispectral datasets, yet the need for expert annotations bottlenecks the development of supervised deep learning models. While Self-Supervised Learning (SSL) offers a solution, its application to IFC remains fragmented and lacks systematic benchmarking. To address this, we present IFC-SSL-Bench, a modular framework for evaluating SSL in IFC. We benchmark six SSL approaches across four backbones on two heterogeneous datasets. By assessing downstream classification performance across annotation regimes of the training sets (1%-100%), we quantify annotation efficiency and identify optimal configurations for high-dimensional biological imaging. SSL matches the performance of fully supervised baselines trained on 100% of annotated data while using as little as 5% of annotations for morphological classification, with advantages in low-data regimes below 5%. Across both datasets, the contrastive approach MoCo-v2 paired with ConvNeXt backbones emerged as the top-performing configuration, with ConvNeXtV1-T best for immunological synapse classification and ConvNeXtV2-T for morphological classification. We identify a clear pattern in transfer dynamics: ImageNet initialization benefits morphological classification, consistent with its visual similarity to natural images, whereas random initialization better captures the more domain-specific immunological synapse classification. SSL elevates class-specific F1-scores by over 35 percentage points for structurally complex classes at 1% of annotated data. We synthesize these insights into a unified set of guidelines for deploying self-supervised workflows in high-throughput IFC, and release the benchmark as a resource for future work.
Figures & tables
Figure 1: Overview of the modular SSL benchmarking framework. The pipeline is organized into three core modules: 1, data preparation. This module covers the dataset split generation, channel selection, and domain-specific transformations. 2, the learning module, which consists of the self-supervised pretraining and supervised baseline. Six self-supervised objectives spanning three families of invariance-based SSL are pretrained on the unannotated set: contrastive (SimCLR, MoCo-v2, MoCo-v3), asymmetric ( BYOL , DINO), and redundancy reduction ( BT ). In parallel, the annotated set is used to train end-to-end supervised baselines for each backbone, weight initialization, and annotated data fraction ( 1% , 5% , 10% , 25% , 50% , and 100% ). 3, downstream analysis evaluates the pretrained encoders on image classification at the same annotated data fractions as the supervised baselines through four evaluation protocols ( kNN , linear probing, XGBoost, and full finetuning) quantified by macro F1 scores. This quantitative analysis is complemented by a qualitative assessment of the learned representations. Scale bars in the multichannel sample images represent 5μm .
Figure 2: Overview of IFC datasets and distribution of annotated and unannotated subsets. (A) Representative multichannel imagery and class distribution of the annotated RBC dataset [ 20 ] . For each class, three imaging channels are shown alongside the sample counts for training, validation, and testing splits. (B) Distribution of the RBC unannotated subset across acquisition batches (bags (CE) and timepoints (Day)). Stacked bars represent the sample volume per CE, partitioned by day. (C) Representative multichannel imagery and class distribution of the annotated ISF dataset [ 25 , 57 ] . Training, validation, and testing counts are indicated per class. (D) Distribution of the ISF unannotated subset across four independent experiments. Stacked bars illustrate donor diversity within each experiment, showing the contribution of individual donors to the total unannotated pool. Scale bars in (A) and (C) represent 5μm .
Backbone
RBC
ISF – 5CH
ResNet50 – θRnd
0.875±0.030
0.870±0.007
ResNet50 – θIN
0.920±0.006
0.752±0.021
ConvNeXtV1 – T – θRnd
0.839±0.006
0.802±0.018
ConvNeXtV1 – T – θIN
0.921±0.005
0.889±0.007
ConvNeXtV2 – T – θRnd
0.816±0.019
0.848±0.002
ConvNeXtV2 – T – θIN
0.922±0.011
0.877±0.011
Table 1: Test set macro F1-scores of the supervised end-to-end baselines (mean ± std) on 100% annotated data fraction. θIN and θRnd denote initialization from ImageNet-supervised weights and random initialization, respectively. The best-performing supervised baseline for each dataset is bolded .
Figure 3: Test set performance of supervised baselines for both datasets ( RBC and ISF – 5CH) across backbone variants, annotated data fractions, and weights initialization strategies
Figure 4: Benchmarking self-supervised representations for the ISF – 5CH dataset. (A) Ranking of combinations of SSL methods and backbones across downstream evaluation protocols. Heatmaps display the rank of 48 model combinations (six SSL methods times four backbones times two initialization strategies) across kNN , linear probing, and XGBoost protocols for each annotated fraction of Dann . Each cell is split to compare initialization θRnd (left/green, 24 ranks) vs. θIN (right/blue, 24 ranks). Darker hues indicate superior ranking (rank 1). Markers identify the corresponding backbone architecture for the specific configuration. (B) SSL method performance ranking for each backbone from each annotated fraction based on linear probing evaluation. Markers with bolded edges represent θIN and normal edges θRnd . (C) Architectural robustness and initialization bias: Comparison of average backbone rank after linear probing between initializations θRnd and θIN . Error bars indicate the inter SSL method standard deviation. (D) Finetuning trajectories of top-ranked configurations. For each initialization mode ( θRnd or θIN ) and evaluation protocol, the best-performing SSL -backbone pairing as indicated in Table 2 was selected. (E) Finetuning performance gain between the best supervised baseline at 100% of Dann ( ViT – S/16 – θIN ) and the best SSL combination (ConvNeXtV1 – T – θRnd with MoCo-v2). The table displays the absolute improvements ( pp delta) in overall macro-F1-score along with the single class showing the most substantial improvement for each annotated fraction of Dann . Fractions on the x-axis in panels (B) , (C) , and (D) are displayed on a logarithmic scale for clarity in low-data regimes. Ranks (1 = top performer) per annotated fraction ( 1%\mbox−−100% ) in (B) and (C) were calculated based on test set macro F1-scores using a linear probing protocol.
Backbone
Method
kNN
Linear probing
XGBoost
θRnd
θIN
θRnd
θIN
θRnd
θIN
ResNet50
SimCLR
0.633±0.011
0.639±0.007
0.845±0.020
0.799±0.006
0.832±0.005
0.824±0.005
MoCo-v2
0.710±0.012
0.740±0.013
0.844±0.015
0.831±0.005
0.849±0.006
0.859±0.012
MoCo-v3
0.722±0.006
0.760±0.018
0.852±0.009
0.856±0.014
0.850±0.010
0.867±0.012
DINO
0.495±0.018
0.299±0.017
0.717±0.005
0.433±0.023
0.688±0.010
0.449±0.006
BT
0.662±0.013
0.599±0.003
0.857±0.010
0.807±0.013
0.840±0.010
0.820±0.001
Table 2: Evaluation of the SSL methods on the fully annotated ISF – 5CH dataset: Test set macro F1-scores (mean ± std) for kNN evaluation, linear probing, and XGBoost. θIN and θRnd denote initialization from ImageNet-supervised weights and random initialization, respectively. For each evaluation protocol and weight initialization, the best score per backbone is underlined , and the best score across all backbones is highlighted in bold .
Figure 5: Benchmarking self-supervised representations for the RBC dataset. (A) Ranking of combinations of SSL methods and backbones across downstream evaluation protocols. Heatmaps display the rank of 48 model combinations (six SSL methods times four backbones times two initialization strategies) across kNN , linear probing, and XGBoost protocols for each annotated fraction. Each cell is split to compare initialization θRnd (left/green, 24 ranks) vs. θIN (right/blue, 24 ranks). Darker hues indicate superior ranking (rank 1). Markers identify the corresponding backbone architecture for the specific configuration. (B) SSL method performance ranking for each backbone from each annotated fraction based on linear probing evaluation. Markers with bolded edges represent θIN and normal edges θRnd . (C) Architectural robustness and initialization bias: Comparison of average backbone rank after linear probing between initializations θRnd and θIN . Error bars indicate the inter SSL method standard deviation. (D) Finetuning trajectories of top-ranked configurations. For each initialization mode ( θRnd or θIN ) and evaluation protocol, the best-performing SSL -backbone pairing as indicated in Table 3 was selected. (E) Finetuning performance gain between the best supervised baseline at 100% of Dann (ConvNeXtV2 – T – θIN ) and the best SSL combination for each annotated fraction from (E) . The table displays the absolute improvements (percentage point delta) in overall macro-F1-score along with the single class showing the most substantial improvement for each annotated fraction of Dann . Fractions on the x-axis in panels (B) , (C) , and (D) are displayed on a logarithmic scale for clarity in low-data regimes. Ranks (1 = top performer) per annotated fraction ( 0.1%\mbox−−100% ) in (B) and (C) were calculated based on test set macro F1-scores using a linear probing protocol.
Backbone
Method
kNN
Linear probing
XGBoost
θRnd
θIN
θRnd
θIN
θRnd
θIN
ResNet50
SimCLR
0.579±0.037
0.796±0.002
0.752±0.018
0.873±0.008
0.698±0.013
0.891±0.008
MoCo-v2
0.461±0.026
0.829±0.020
0.651±0.001
0.865±0.010
0.641±0.026
0.901±0.014
MoCo-v3
0.481±0.032
0.843±0.025
0.585±0.175
0.857±0.013
0.663±0.055
0.902±0.004
DINO
0.558±0.006
0.701±0.027
0.754±0.030
0.829±0.003
0.755±0.011
0.826±0.013
BT
0.593±0.006
0.814±0.009
0.774±0.014
0.891±0.012
0.722±0.007
0.904±0.004
Table 3: Evaluation of the SSL methods on the fully annotated RBC dataset: Test set macro F1-scores (mean ± std) for kNN evaluation, linear probing, and XGBoost. θIN and θRnd denote initialization from ImageNet-supervised weights and random initialization, respectively. For each evaluation protocol and weight initialization, the best score per backbone is underlined , and the best score across all backbones is highlighted in bold .
Figure 6: Latent space visualization of the pretrained backbones on full Duna for the (A) ISF – 5CH and (B) RBC datasets. We selected for each initialization strategy ( θIN or θRnd ) the best SSL combination after linear probing evaluation and color-coded test samples with annotations. ARI stands for Adjusted Rand Index and NMI for Normalized Mutual Information . Scale bars in illustratives images of (B) represent 5μm . Experiments in (A) represent the individual experiments as described in [ 57 , 25 ] .
ConvNeXtV1 – T – θRnd + MoCo-v2
ViT – S/16 – θIN + DINO
Grouping
n
k
ARI
NMI
ARI
NMI
Annotated class
1,169
9
0.078
0.182
0.111
0.259
Experiment
1,169
4
0.811
0.792
0.212
0.349
Class within experiment
Experiment 1
252
9
0.188
0.353
0.201
0.413
Experiment 2
139
9
0.160
0.398
0.306
0.533
Table 4: Assessing the cluster structure of the learned representations on the ISF – 5CH dataset with ARI and NMI . Unsupervised k -means clustering of embeddings with k set to the number of groups and n representing the number of images. Class within experiment is computed separately for each experiment; the weighted mean averages over experiments proportionally to the number of images. The random control repeats the within-experiment analysis on size-matched random groupings ( 10 repetitions).
Backbone
# Parameters
Blocks
Kernel/Patch size
ResNet50
∼23.5 M
16
3×3
ConvNeXtV1 – T
∼27.9 M
18
7×7
ConvNeXtV2 – T
∼27.9 M
18
7×7
ViT – S/16
∼21.7 M
12
16×16
Table 5: Overview of the benchmarked backbone architectures. Parameter counts expressed in millions.
Backbone
BloodMNIST
MedMNIST ResNet50 [ 6 ]
0.950
MedMNIST ResNet18 [ 6 ]
0.963
ResNet50 – θRnd
0.987±0.000
ResNet50 – θIN
0.990±0.000
ConvNeXtV1 – T – θRnd
0.947±0.000
ConvNeXtV1 – T – θIN
0.990±0.000
Table 6: Accuracies of the supervised end-to-end baselines (mean ± std) on the BloodMNIST dataset. θIN and θRnd denote initialization from ImageNet-supervised weights and random initialization, respectively. We report accuracies here for consistency with the MedMNIST convention [ 6 ] . The best-performing supervised baseline for each dataset is bolded .
Hyperparameter
Baseline
Finetuning
Image size
224×224
224×224
Batch size
128
128
Epochs
200
200
Learning Rate (LR) end-to-end
1e−3
–
LR backbone
–
1e−4
LR head
–
1e−3
Table 7: Hyperparameters used for supervised trainings. The batch size was accordingly adjusted to eight when the training set had less then 128 samples. " – " indicates unavailability.
Figure S1: Supervised baseline evaluation under varying initialization, data constraints, and domain-specific transformation. (A) Transfer learning effect ( Δ Macro F1 score = Macro F1 score θRnd− Macro F1 score θIN ) measured as the difference in macro F1-score between random initialization ( θRnd ) and ImageNet-supervised ( θIN ) across different annotated fractions for the ISF – 5CH and RBC datasets. (B) Macro F1-score under extreme data scarcity ( 0.1% annotated fraction) on the RBC dataset, comparing all backbone architectures across both initialization strategies. (C) Impact of the domain specific Logicle transformation on the ISF – 5CH dataset. The baseline is ConvNeXtV1 – T θRnd trained end-to-end on 100% of Dann .
Augmentation technique
Two-view
DINO
Global image size
224×224
224×224
Local image size
–
96×96
Number of views (global, local)
2,0
2,6
Horizontal flip probability
0.5
0.5
Vertical flip probability
0.5
0.5
Global crop scale
0.08−1
0.4−1
Table 8: List of data augmentation parameters for self-supervised pretraining. The methods using a two-view strategy are SimCLR, MoCo-v2 & v3, BYOL, and BT . DINO uses a multi-crop strategy and the probability of applying Gaussian blur follows the original publication (probability of 1.0 for the first global crop, 0.1 for the second global crop and 0.5 for all local crops). " – " indicates unavailability.
Parameters
SimCLR
MoCo-v2
MoCo-v3
BYOL
BT
DINO
Common
Batch size
128
Embed. dim
256
Epochs
200
Optimization Batch Normalization (BN)
Optimizer
LARS
SGD
SGD
LARS
LARS
SGD
Table 9: Hyperparameters used during self-supervised pretrainings. Common values to all methods are centralized (under MoCo-v3). " – " indicates unavailability. Pretraining on the ISF – 5CH dataset occurred for only 10 epochs.
Figure S2: Comparative analysis of SSL strategies across backbones and annotated fractions for the kNN evaluation protocol on the ISF – 5CH dataset. Each cell displays the test set mean macro F1-score ± standard deviation across three runs for a specific backbone, SSL method, and weights initialization strategy. The left (green) and right (blue) halves of each cell represent random initialization ( θRnd ) and ImageNet pretraining ( θIN ) respectively, with color intensity mapped to absolute performance [0,1] . To highlight relative performance, we underline the leading SSL method within each specific backbone. Bold entries denote the globally optimal SSL configuration across all evaluated backbones for a given data fraction and initialization mode. Bottom rows indicate the median SSL performance per fraction and initialization. Values have been rounded to two decimal places to enhance legibility relative to Table 2 . Furthermore, font colors within cells dynamically switch between black and white based on background intensity to ensure maximum readability of the results.
Figure S3: Comparative analysis of SSL strategies across backbones and annotated fractions for the linear probing evaluation protocol on the ISF – 5CH dataset. Each cell displays the test set mean macro F1-score ± standard deviation across three runs for a specific backbone, SSL method, and weights initialization strategy. The left (green) and right (blue) halves of each cell represent random initialization ( θRnd ) and ImageNet pretraining ( θIN ) respectively, with color intensity mapped to absolute performance [0,1] . To highlight relative performance, we underline the leading SSL method within each specific backbone. Bold entries denote the globally optimal SSL configuration across all evaluated backbones for a given data fraction and initialization mode. Bottom rows indicate the median SSL performance per fraction and initialization. Values have been rounded to two decimal places to enhance legibility relative to Table 2 . Furthermore, font colors within cells dynamically switch between black and white based on background intensity to ensure maximum readability of the results.
Figure S4: Comparative analysis of SSL strategies across backbones and annotated fractions for the XGBoost evaluation protocol on the ISF – 5CH dataset. Each cell displays the test set mean macro F1-score ± standard deviation across three runs for a specific backbone, SSL method, and weights initialization strategy. The left (green) and right (blue) halves of each cell represent random initialization ( θRnd ) and ImageNet pretraining ( θIN ) respectively, with color intensity mapped to absolute performance [0,1] . To highlight relative performance, we underline the leading SSL method within each specific backbone. Bold entries denote the globally optimal SSL configuration across all evaluated backbones for a given data fraction and initialization mode. Bottom rows indicate the median SSL performance per fraction and initialization. Values have been rounded to two decimal places to enhance legibility relative to Table 2 . Furthermore, font colors within cells dynamically switch between black and white based on background intensity to ensure maximum readability of the results.
Figure S5: Comparative analysis of SSL strategies across backbones and annotated fractions for the kNN evaluation protocol on the RBC dataset. Each cell displays the test set mean macro F1-score ± standard deviation across three runs for a specific backbone, SSL method, and weights initialization strategy. The left (green) and right (blue) halves of each cell represent random initialization ( θRnd ) and ImageNet pretraining ( θIN ) respectively, with color intensity mapped to absolute performance [0,1] . To highlight relative performance, we underline the leading SSL method within each specific backbone. Bold entries denote the globally optimal SSL configuration across all evaluated backbones for a given data fraction and initialization mode. Bottom rows indicate the median SSL performance per fraction and initialization. Values have been rounded to two decimal places to enhance legibility relative to Table 3 . Furthermore, font colors within cells dynamically switch between black and white based on background intensity to ensure maximum readability of the results.
Figure S6: Comparative analysis of SSL strategies across backbones and annotated fractions for the linear probing evaluation protocol on the RBC dataset. Each cell displays the test set mean macro F1-score ± standard deviation across three runs for a specific backbone, SSL method, and weights initialization strategy. The left (green) and right (blue) halves of each cell represent random initialization ( θRnd ) and ImageNet pretraining ( θIN ) respectively, with color intensity mapped to absolute performance [0,1] . To highlight relative performance, we underline the leading SSL method within each specific backbone. Bold entries denote the globally optimal SSL configuration across all evaluated backbones for a given data fraction and initialization mode. Bottom rows indicate the median SSL performance per fraction and initialization. Values have been rounded to two decimal places to enhance legibility relative to Table 3 . Furthermore, font colors within cells dynamically switch between black and white based on background intensity to ensure maximum readability of the results.
Figure S7: Comparative analysis of SSL strategies across backbones and annotated fractions for the XGBoost evaluation protocol on the RBC dataset. Each cell displays the test set mean macro F1-score ± standard deviation across three runs for a specific backbone, SSL method, and weights initialization strategy. The left (green) and right (blue) halves of each cell represent random initialization ( θRnd ) and ImageNet pretraining ( θIN ) respectively, with color intensity mapped to absolute performance [0,1] . To highlight relative performance, we underline the leading SSL method within each specific backbone. Bold entries denote the globally optimal SSL configuration across all evaluated backbones for a given data fraction and initialization mode. Bottom rows indicate the median SSL performance per fraction and initialization. Values have been rounded to two decimal places to enhance legibility relative to Table 3 . Furthermore, font colors within cells dynamically switch between black and white based on background intensity to ensure maximum readability of the results.
School of Artificial Intelligence, National Center for Applied Mathematics in Hubei, Hubei Key Laboratory of Computational Science, Wuhan University, Wuhan, China. · Department of Applied Mathematics, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong Kong SAR, China. · Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong Kong SAR, China.