[Paper Review] It's easy to fool yourself: Case studies on identifying bias and confounding in bio-medical datasets
This paper investigates how deep learning models in biomedical imaging can inadvertently learn spurious signals from confounding variables such as experimental batch, image focus quality, and cell density. Using case studies on SMA and ALS datasets, the authors identify biases through unsupervised clustering, model interpretability (GradCAM), and performance analysis, revealing that models achieve high accuracy not by detecting disease-related features but by exploiting technical artifacts in data acquisition and processing.
Confounding variables are a well known source of nuisance in biomedical studies. They present an even greater challenge when we combine them with black-box machine learning techniques that operate on raw data. This work presents two case studies. In one, we discovered biases arising from systematic errors in the data generation process. In the other, we found a spurious source of signal unrelated to the prediction task at hand. In both cases, our prediction models performed well but under careful examination hidden confounders and biases were revealed. These are cautionary tales on the limits of using machine learning techniques on raw data from scientific experiments.
Motivation & Objective
- To investigate how confounding variables in biomedical imaging datasets can lead to misleading model performance in deep learning applications.
- To identify hidden biases in high-throughput microscopy data arising from experimental design, image acquisition, and processing pipelines.
- To evaluate the role of unsupervised embeddings and model interpretability techniques in detecting spurious signals in cell image classification.
- To demonstrate that high model accuracy can be achieved not through biological signal, but via systematic artifacts such as focus quality gradients and plate location.
- To advocate for rigorous scrutiny of model behavior and data provenance in machine learning applications for biomedical discovery.
Proposed method
- Applied t-SNE to visualize unsupervised CNN embeddings (from ImageNet-pretrained InceptionV4) to detect clustering by experimental batch or plate location.
- Used a pre-trained CNN to assess image focus quality, assigning a ranked probability score (0–1) to each site image.
- Trained supervised models including logistic regression on hand-engineered features (e.g., cell density, image statistics) and fully supervised CNNs for classification.
- Employed GradCAM to generate saliency maps and visualize attention regions in the CNN, identifying whether models focused on biologically relevant or artifact-driven features.
- Conducted cross-validation with 5-fold splits, leaving one batch out per fold, to evaluate generalization and detect data leakage across batches.
- Analyzed performance differences across folds to detect dependence on lab source or batch-specific factors, especially in zero-shot generalization settings.
Experimental results
Research questions
- RQ1To what extent do deep learning models in cell image analysis learn confounding variables such as experimental batch or plate location instead of biologically relevant disease markers?
- RQ2How do image acquisition artifacts—such as focus quality gradients across a 96-well plate—affect model performance and generalization?
- RQ3Can unsupervised clustering of CNN embeddings reveal hidden data biases not apparent from label distributions?
- RQ4To what extent do hand-engineered features like cell density or image statistics explain model performance, and are they confounding factors?
- RQ5How can model interpretability techniques like GradCAM expose the true source of predictive signal in deep learning models on biomedical data?
Key findings
- In the SMA Main dataset, models achieved high ROC AUC performance across 12 cross-validation folds, but the single fold with worse-than-random performance corresponded to cases where healthy and disease cell lines were sourced from the same lab, indicating model dependence on lab-specific factors.
- Unsupervised t-SNE clustering of CNN embeddings revealed strong clustering by experimental batch in both the SMA and ALS datasets, indicating that batch effects dominate the feature space.
- In the ALS dataset, a model based solely on cell density achieved comparable ROC AUC to the fully supervised CNN, suggesting that cell density was a dominant confounding signal.
- Partial dependency plots confirmed that cell density was a key confounder, with the model’s prediction strongly influenced by the number of cells per site image.
- GradCAM saliency maps showed that the model focused on empty regions in the image when classifying TDPwt lines, indicating attention to spatial artifacts rather than cellular morphology.
- A z-stack confocal imaging approach significantly improved focus quality compared to single-plane widefield imaging, resolving a major source of image-level bias in the original SMA Main dataset.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.