Pixel-level Counterfactual Contrastive Learning for Medical Image Segmentation
Organizations: Department of Computing, Imperial College London, UK
Abstract
Image segmentation relies on large annotated datasets, which are expensive and slow to produce. Silver-standard (AI-generated) labels are easier to obtain, but they risk introducing bias. Self-supervised learning, needing only images, has become key for pre-training. Recent work combining contrastive learning with counterfactual generation improves representation learning for classification but does not readily extend to pixel-level tasks. We propose a pipeline combining counterfactual generation with dense contrastive learning via Dual-View (DVD-CL) and Multi-View (MVD-CL) methods, along with supervised variants that utilize available silver-standard annotations. A new visualisation algorithm, the Color-coded High Resolution Overlay map (CHRO-map) is also introduced. Experiments show annotation-free DVD-CL outperforms other dense contrastive learning methods, while supervised variants using silver-standard labels outperform training on the silver-standard labeled data directly, achieving 94% DSC on challenging data. These results highlight that pixel-level contrastive learning, enhanced by counterfactuals and silver-standard annotations, improves robustness to acquisition and pathological variations.
Figures & tables
| d/ ( ) | K-means-purity ( ) | |
| DVD-CL | 0.83 | 0.6979 |
| MVD-CL | 1.39 | 0.6391 |
| S-DVD-CL | 17.07 | 0.9581 |
| S-MVD-CL | 12.16 | 0.9705 |
| Pre-training Method | DSC ( ) | |||||
| None | 87.05 4.34 | 93.59 1.28 | 84.76 1.28 | 21.9 8.0 | 5.39 2.05 | |
| Unsupervised | SimCLR [ 3 ] | 90.90 2.94 | 96.71 0.28 | 88.61 4.15 | 11.9 5.3 | 3.64 1.63 |
| VADeR [ 5 ] | 92.26 2.66 | 97.22 0.16 | 90.33 3.68 | 10.4 3.7 | 2.79 1.14 | |
| DVD-CL ( ours ) | 92.76 2.23 | 97.36 0.14 | 91.08 3.18 | 10.5 3.6 | 2.86 1.04 | |
| MVD-CL ( ours ) | 92.27 2.73 | 97.18 0.25 | 90.36 3.79 | 9.1 4.9 | 2.61 1.16 | |
| Supervised | CheXMask | 93.65 2.33 | 97.81 0.20 | 92.02 3.23 | 7.3 1.8 | 2.46 1.26 |