Orientation-invariant autoencoders learn robust representations for shape profiling of cells and organelles

James Burgess, Jeffrey Nirschl, Maria Clara Zanellati, Alejandro Lozano, Sarah Cohen, Serena YeungNature Communications 2024

Abstract

Cell and organelle shape are driven by diverse genetic and environmental factors and thus accurate quantification of cellular morphology is essential to experimental cell biology. Autoencoders are a popular tool for unsupervised biological image analysis because they learn a low-dimensional representation that maps images to feature vectors to generate a semantically meaningful embedding space of morphological variation. The learned feature vectors can also be used for clustering, dimensionality reduction, outlier detection, and supervised learning problems. Shape properties do not change with orientation, and thus we argue that representation learning methods should encode this orientation invariance. We show that conventional autoencoders are sensitive to orientation, which can lead to suboptimal performance on downstream tasks. To address this, we develop O2-variational autoencoder (O2-VAE), an unsupervised method that learns robust, orientation-invariant representations. We use O2-VAE to discover morphology subgroups in segmented cells and mitochondria, detect outlier cells, and rapidly characterise cellular shape and texture in large datasets, including in a newly generated synthetic benchmark.

Introduction

In high-throughput microscopy, quantifying the morphology—size, shape, and structure—of cells is critical for understanding biological phenomena such as genetic mutations or drug effects. Autoencoders have become a standard unsupervised tool for this task, compressing high-dimensional images into a low-dimensional "embedding space" where biologically similar shapes should naturally cluster.

However, a significant limitation of standard autoencoders is their sensitivity to orientation. If an image of a spindle-shaped cell is rotated, a conventional model often perceives it as a distinct object, introducing "orientation noise" as a confounding variable. While researchers frequently attempt to "pre-align" images to a canonical axis, this process is error-prone and often fails for complex or multi-channel images. The authors of this study propose that the neural network architecture itself should inherently understand that a cell’s identity is invariant to rotation and reflection.

Methodology: The O2-Variational Autoencoder

The researchers developed the O2-variational autoencoder (O2-VAE) to address these challenges through two primary innovations:

  1. O(2)-Equivariant Layers: Instead of standard convolutional layers, O2-VAE utilizes "steerable" CNN layers. These are mathematically constrained so that rotations in the input image result in predictable rotations in the internal feature maps. A final spatial pooling layer then converts these equivariant features into an invariant feature vector—an embedding that remains identical regardless of the input's orientation.
  2. Fourier-Space Realignment: Since the encoder discards orientation information to achieve invariance, the decoder lacks the information needed to orient the reconstructed image correctly. To facilitate training, the authors implemented a fast realignment step using Fourier-space cross-correlation. This step efficiently identifies the optimal rotation to align the reconstructed output with the original input, allowing for an accurate loss calculation.
Overview of the O2-VAE architecture for orientation-invariant shape space learning.

Experimental Setup and Datasets

The O2-VAE was evaluated using a combination of synthetic and real-world biological datasets:

  • PCST (Profiling Cell Shape and Texture): A new synthetic benchmark featuring 15,000 images with varied eccentricity, contour irregularity, and texture.
  • Allen Cell Collection: Segmented images of human induced pluripotent stem cells (hiPSCs) and their organelles (mitochondria, nuclei).
  • Human Protein Atlas (HPA): Segmented images from four human cell lines.
  • MEF Dataset: Mouse embryonic fibroblasts used to study the effects of Lamin A on nuclear shape.
  • HeLa Kyoto: Nuclei images captured during mitosis.

Results and Downstream Analysis

The removal of orientation as a confounding factor led to significant improvements in several downstream biological analysis tasks.

Downstream analysis tasks enabled by the O2-VAE representation, including clustering, visualization, and outlier detection.

Improved Clustering and Robustness

On the synthetic PCST benchmark, a standard VAE exhibited a 58% error rate when clustering rotated versions of the same shape. In contrast, O2-VAE reduced this error to just 7.4%. Across real-world datasets like the hiPSC and HPA collections, O2-VAE consistently demonstrated lower embedding errors compared to models relying on global pre-alignment.

Biological Discovery

The model's robustness enabled new biological insights. For example, in the MEF dataset, O2-VAE revealed that Lamin A deficiency is linked to a reduction in filopodia-like structures—a subtle morphological change that traditional shape-analysis methods had overlooked. Additionally, the model successfully separated mitotic cells from interphase cells in an unsupervised manner with 89% accuracy, reaching 99% for late-stage mitosis.

Organelle Interaction Profiling

The researchers applied O2-VAE to categorize mitochondrial shapes into "superclasses" (e.g., puncta, small tubes, large networks). This allowed them to quantify how specific mitochondrial morphologies correlate with contact rates to other organelles, such as lysosomes and the endoplasmic reticulum.

Conclusion and Future Work

O2-VAE represents a significant advancement in unsupervised shape profiling by embedding orientation invariance directly into the model architecture. While the model excels at capturing shape, the authors noted that its texture modeling—though improved over standard VAEs—could be further refined. Future work will explore integrating O2-VAE with more advanced architectures like Vector Quantized VAEs (VQ-VAEs) to enhance texture resolution and extending the framework to 3D microscopy data, where orientation invariance is even more critical.

Source Paper: Burgess, J., Nirschl, J.J., Zanellati, MC. et al. Orientation-invariant autoencoders learn robust representations for shape profiling of cells and organelles. Nat Commun 15, 1022 (2024). https://doi.org/10.1038/s41467-024-45362-4

Summary updated

BibTeX
@inproceedings{burgess2024orientation,
  author = {James Burgess and Jeffrey Nirschl and Maria Clara Zanellati and Alejandro Lozano and Sarah Cohen and Serena Yeung},
  title = {{Orientation-invariant autoencoders learn robust representations for shape profiling of cells and organelles}},
  booktitle = {Nature Communications},
  year = {2024},
  doi = {10.1038/s41467-024-45362-4},
}
Figure