BioCluster

Technical confounding

Acquisition artifacts

Is clustering tracking biology, or something technical -- clinical site, scanner, staining batch? For PathMNIST, this is directly testable using its real NCT-CRC-HE-100K vs. CRC-VAL-HE-7K site split. This analysis may matter more than any headline clustering score (Section 18 of the project scope).
RepresentationCramer's V vs. labelCramer's V vs. sitep (site)Site association detectedSite stronger than label
PCA on pixels0.4430.2720.0000yesno
Handcrafted color/texture0.3730.1400.0000yesno
HOG0.2720.1460.0000yesno
ResNet50 (ImageNet-supervised)0.5420.1620.0000yesno
DINO ViT-S/160.6700.1600.0000yesno
DINOv2 ViT-S/140.6990.1350.0000yesno
Computed on the union of PathMNIST's train (NCT-CRC-HE-100K) and test (CRC-VAL-HE-7K) subsamples, clustered jointly at k = number of annotated tissue classes. Cramer's V measures association strength (0 = none, 1 = perfect); p-value is from a chi-squared test of independence between cluster assignment and the site variable. This axis is not available for BloodMNIST -- no site/scanner metadata is exposed in its public release (see Datasets).

Does clustering input choice change the answer?

Hypothesis H4: clustering directly on 2D UMAP coordinates should recover meaningfully less external structure than clustering on full (or PCA-reduced) feature space. This table runs the identical clustering pipeline on three different inputs derived from the same features.

DatasetRepresentationClustering inputDimensionsExternal ARIExternal NMI
pathmnistPCA on pixelsfull feature space500.2400.411
pathmnistPCA on pixelspca 10d100.2240.408
pathmnistPCA on pixelsumap 2d used as clustering input20.2500.431
pathmnistHandcrafted color/texturefull feature space560.1830.288
pathmnistHandcrafted color/texturepca 10d100.1830.288
pathmnistHandcrafted color/textureumap 2d used as clustering input20.1590.267
pathmnistHOGfull feature space12960.0760.153
pathmnistHOGpca 10d100.0880.203
pathmnistHOGumap 2d used as clustering input20.0510.110
pathmnistResNet50 (ImageNet-supervised)full feature space20480.3450.513
pathmnistResNet50 (ImageNet-supervised)pca 10d100.3450.509
pathmnistResNet50 (ImageNet-supervised)umap 2d used as clustering input20.5130.638
pathmnistDINO ViT-S/16full feature space3840.5250.669
pathmnistDINO ViT-S/16pca 10d100.5490.676
pathmnistDINO ViT-S/16umap 2d used as clustering input20.5770.724
pathmnistDINOv2 ViT-S/14full feature space3840.5500.685
pathmnistDINOv2 ViT-S/14pca 10d100.5550.666
pathmnistDINOv2 ViT-S/14umap 2d used as clustering input20.5920.735
bloodmnistPCA on pixelsfull feature space500.3300.430
bloodmnistPCA on pixelspca 10d100.3060.406
bloodmnistPCA on pixelsumap 2d used as clustering input20.2850.378
bloodmnistHandcrafted color/texturefull feature space560.1030.224
bloodmnistHandcrafted color/texturepca 10d100.1030.224
bloodmnistHandcrafted color/textureumap 2d used as clustering input20.1380.208
bloodmnistHOGfull feature space12960.2260.339
bloodmnistHOGpca 10d100.2040.328
bloodmnistHOGumap 2d used as clustering input20.2270.333
bloodmnistResNet50 (ImageNet-supervised)full feature space20480.1720.281
bloodmnistResNet50 (ImageNet-supervised)pca 10d100.1800.285
bloodmnistResNet50 (ImageNet-supervised)umap 2d used as clustering input20.2420.344
bloodmnistDINO ViT-S/16full feature space3840.3150.441
bloodmnistDINO ViT-S/16pca 10d100.2770.408
bloodmnistDINO ViT-S/16umap 2d used as clustering input20.4810.572
bloodmnistDINOv2 ViT-S/14full feature space3840.2020.269
bloodmnistDINOv2 ViT-S/14pca 10d100.1840.254
bloodmnistDINOv2 ViT-S/14umap 2d used as clustering input20.2970.383

A detected site association is not an error

If a representation clusters partly along acquisition site, that is a real property of the representation and the data, not a bug in this analysis. It means some fraction of latent structure reflects technical variation rather than tissue biology -- exactly the kind of finding a benchmark like this exists to surface.