Fast Principal Component Analysis for Cryo-EM Images

Nicholas F. Marshall, Oscar Mickelin, Yunpeng Shi, Amit Singer

TL;DR

Researchers have developed a new, high-speed method for performing Principal Component Analysis (PCA) on cryo-electron microscopy (cryo-EM) images. By leveraging the Fourier-Bessel basis, the algorithm achieves up to a 100x speedup over existing methods while remaining computationally efficient even as the number of unique microscope defocus settings increases.

What Problem Does This Paper Address?

Cryo-EM is a powerful technique for determining the 3D structures of macromolecules, but it produces massive amounts of extremely noisy 2D projection images. To make sense of this data, researchers use PCA for denoising, classification, and building initial 3D models.

However, cryo-EM images aren't just noisy; they are distorted by the microscope's Contrast Transfer Function (CTF), which depends on the "defocus" level used during imaging. Because different images are often taken at different defocus levels, estimating a clean covariance matrix (the heart of PCA) becomes a massive computational headache. Previous state-of-the-art methods, like Covariance Wiener Filtering (CWF), struggle to scale when datasets contain thousands of different defocus groups, often leading to prohibitive runtimes or memory crashes.

Methods

The authors introduce a fast covariance estimation algorithm that hinges on a specific mathematical choice: the Fourier-Bessel basis (also known as harmonics on the disk).

Standard Fourier transforms are great, but they don't play well with the rotations and radial distortions inherent in cryo-EM. The Fourier-Bessel basis, however, has several "superpowers" for this specific problem:

  1. Steerability: Rotating an image is as simple as applying a diagonal transform to the basis coefficients.
  2. Diagonal Convolution: Most importantly, convolving an image with a radial function (like a CTF) becomes a simple diagonal operation in this basis.
TABLE 1. Summary of desirable properties of a few different basis candidates.

By working in this domain, the authors derived a closed-form least-squares solution for the covariance matrix. This eliminates the need for the expensive iterative "Conjugate Gradient" steps used in previous methods. Their algorithm (Algorithm 1) expands images into the basis, computes CTF effects as simple vectors, and estimates the covariance matrix in a block-diagonal fashion, which drastically reduces the number of calculations needed.

Datasets

The authors evaluated their method using both synthetic and real-world experimental data:

  • Synthetic Data: 10,000 images generated from a 3D volume of the SARS-CoV-2 (Omicron) spike complex (EMD-32743), with added colored noise and varying defocus levels.
  • Experimental Data (EMPIAR-10028): A dataset of the Plasmodium falciparum 80S ribosome, containing over 105,000 images across 1,081 defocus groups.
  • Experimental Data (EMPIAR-10081): A dataset of the human HCN1 ion channel. This is a particularly challenging case with nearly 56,000 images and over 53,000 distinct defocus groups (nearly one per image).

Key Insights and Ideas

  • Breaking the Defocus Bottleneck: The most significant insight is that by using the Fourier-Bessel basis, the computational complexity becomes independent of the number of defocus groups. This is a game-changer for modern high-resolution datasets where defocus is varied frequently.
  • Exploiting Rotational Invariance: Because molecules are randomly oriented in the ice, the underlying distribution is invariant to in-plane rotations. In the Fourier-Bessel domain, this forces the covariance matrix to be block-diagonal. Instead of solving one massive matrix problem, the algorithm solves many much smaller ones, saving immense time and memory.
  • Radial Frequency Stability: The authors demonstrate that their technical assumptions—specifically that the combined CTFs don't "vanish" at any frequency—hold true for real experimental data, ensuring the method is robust in practice.
We visualize the log-scale sum of squared CTFs for each pair of radial frequencies for the EMPIAR-10028 dataset.

Key Results

  • Massive Speedups: On the EMPIAR-10081 dataset (the one with 53k+ defocus groups), the new method was over 300 times faster than the traditional CWF method (163 seconds vs. nearly 50,000 seconds).
  • Memory Efficiency: The old method actually failed to run on larger image sizes (L=256) for the HCN1 dataset due to memory constraints, while the new "fast-CWF" ran seamlessly.
  • Higher Quality Eigenimages: The PCA results from the new method were cleaner and better preserved the physical symmetries of the molecules compared to traditional real-space PCA, which often introduced circular artifacts due to imperfect CTF correction.

Limitations and Future Work

The current method assumes that the CTFs are radial (perfectly circular). While this is a standard approximation, real-world microscopes often have astigmatism, which makes the CTF slightly oval. The authors suggest their method can serve as an excellent "initial guess" that can then be refined with more complex iterative steps to account for astigmatism.

Additionally, the current software implementation does not yet fully exploit multi-core parallel processing. Future work could involve optimizing the code for GPUs or high-performance computing clusters to handle even larger datasets (millions of images) in minutes.

Summary updated

Abstract

Principal component analysis (PCA) plays an important role in the analysis of cryo-EM images for various tasks such as classification, denoising, compression, and ab-initio modeling. We introduce a fast method for estimating a compressed representation of the 2-D covariance matrix of noisy cryo-electron microscopy projection images that enables fast PCA computation. Our method is based on a new algorithm for expanding images in the Fourier-Bessel basis (the harmonics on the disk), which provides a convenient way to handle the effect of the contrast transfer functions. For $N$ images of size $L\times L$, our method has time complexity $O(N L^3 + L^4)$ and space complexity $O(NL^2 + L^3)$. In contrast to previous work, these complexities are independent of the number of different contrast transfer functions of the images. We demonstrate our approach on synthetic and experimental data and show acceleration by factors of up to two orders of magnitude.
BibTeX
@misc{marshall2022fast,
  author = {Nicholas F. Marshall and Oscar Mickelin and Yunpeng Shi and Amit Singer},
  title = {{Fast Principal Component Analysis for Cryo-EM Images}},
  year = {2022},
  eprint = {2210.17501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.17501},
}
Figure