Hostname: page-component-cd9895bd7-gbm5v Total loading time: 0 Render date: 2024-12-22T10:07:57.527Z Has data issue: false hasContentIssue false

Fast principal component analysis for cryo-electron microscopy images

Published online by Cambridge University Press:  03 February 2023

Nicholas F. Marshall
Affiliation:
Department of Mathematics, Oregon State University, Corvallis, Oregon 97331, USA
Oscar Mickelin
Affiliation:
Program in Applied and Computational Mathematics, Princeton University, Princeton, New Jersey 08544, USA
Yunpeng Shi*
Affiliation:
Program in Applied and Computational Mathematics, Princeton University, Princeton, New Jersey 08544, USA
Amit Singer
Affiliation:
Program in Applied and Computational Mathematics, Princeton University, Princeton, New Jersey 08544, USA Department of Mathematics, Princeton University, Princeton, New Jersey 08544, USA
*
*Corresponding author. E-mail: [email protected]

Abstract

Principal component analysis (PCA) plays an important role in the analysis of cryo-electron microscopy (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-EM projection images affected by radial point spread functions 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\left({NL}^3+{L}^4\right) $ and space complexity $ O\left({NL}^2+{L}^3\right) $ . 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.

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press

Impact Statement

Singe particle reconstruction in cryo-electron microscopy (cryo-EM) is an increasingly popular technique for near-atomic imaging of biological macromolecules. Both technological and computational advances have driven the progress of the techniques, yet many computational obstacles still remain. We introduce a fast method to estimate the covariance matrix of noisy cryo-EM images, which is a central component of many computational cryo-EM techniques. As an application, we use the covariance matrix for image denoising and deconvolution of the microscope’s contrast transfer function. Our method provides orders of magnitude speedup compared to previous approaches, which opens the door to tackling more challenging datasets.

1. Introduction

We study the problem of computing a compressed representation of the covariance matrix of 2-D cryo-electron microscopy (cryo-EM) images for the purpose of performing principal component analysis (PCA). More precisely, we consider an image formation model where the measurement $ {g}_i $ is defined by

(1) $$ {g}_i={h}_i\ast {f}_i+{\varepsilon}_i\hskip1em \mathrm{for}\hskip1em i=1,\dots, N, $$

where $ {h}_i $ is a radial function, $ \ast $ denotes convolution, $ {f}_i $ is a ground-truth image, $ {\varepsilon}_i $ is the noise term, and $ N $ the total number of images. We emphasize that we assume $ {h}_i $ is radial, see Assumption A1.

We are motivated by single particle cryo-EM imaging, which is an important technique for determining the 3-D structure of macromolecules. In particular, the single particle reconstruction (SPR) problem asks to recover the 3-D structure of a macromolecule from noisy 2-D images of its tomographic projections along unknown viewing angles. In cryo-EM, the mathematical model is a special case of (1) and is of the form

(2) $$ {g}_i\left({x}^{\prime}\right)={h}_i\ast {\int}_{\mathrm{\mathbb{R}}}{\varphi}_i\left({R}_i^{-1}x\right){dx}_3+{\varepsilon}_i\left({x}^{\prime}\right),\hskip2em i=1,\dots, N, $$

where $ x=\left({x}^{\prime },{x}_3\right)\in {\mathrm{\mathbb{R}}}^2\times \mathrm{\mathbb{R}}\cong {\mathrm{\mathbb{R}}}^3 $ are 3-D spatial coordinates with $ {x}_3 $ representing the projection direction, $ {h}_i $ is the point spread function, $ {\varphi}_i:{\mathrm{\mathbb{R}}}^3\to \mathrm{\mathbb{R}} $ is the electrostatic potential of a molecule, $ {R}_i\in SO(3) $ is a 3-D rotation, and $ {\varepsilon}_i $ the noise term. In computational microscopy, it is typical to work with the Fourier transform of the point spread function, which is known as the contrast transfer function (CTF). In the simplest case, each measurement could correspond to a single fixed molecule potential function $ {\varphi}_i=\varphi $ ; however, in general, we may assume that each $ {\varphi}_i $ could be a random variable representing a mixture of molecules, conformational heterogeneity, cases where the images are not perfectly centered, or other measurement imperfections(Reference Liu and Frank1,Reference Penczek, Kimmel and Spahn2) .

In general, each measurement $ {g}_i $ can be associated with a different point spread function; however, in practice, a group of measurements, called a defocus group, can share a common point spread function. We assume that the measurements are grouped into $ M\le N $ defocus groups. Given $ {g}_i $ and $ {h}_i $ for $ i=1,\dots, N $ , our goal is to estimate the 2-D covariance function $ c:{\mathrm{\mathbb{R}}}^2\times {\mathrm{\mathbb{R}}}^2\to \mathrm{\mathbb{R}} $ of the images

(3) $$ c\left({x}^{\prime },{y}^{\prime}\right):= \unicode{x1D53C}\left[\left(f\left({x}^{\prime}\right)-\overline{f}\left({x}^{\prime}\right)\right)\left(f\left({y}^{\prime}\right)-\overline{f}\left({y}^{\prime}\right)\right)\right], $$

where $ f $ is a random variable from the same distribution as the images $ {f}_i $ , and $ \overline{f}\left({x}^{\prime}\right)=\unicode{x1D53C}\left[f\left({x}^{\prime}\right)\right] $ . We assume that the distribution of the images is invariant to in-plane rotations (which is typically the case in cryo-EM).

In cryo-EM, the random variable $ f $ is of the form $ f\left({x}^{\prime}\right)={\int}_{\mathrm{\mathbb{R}}}\Phi \left({R}^{-1}x\right){dx}_3 $ , where the random variable $ R $ is an unknown viewing angle, and the random variable $ \Phi $ is a molecule potential. There is generally no physical reason for a molecule to prefer one in-plane rotation to another so distributions of random variables of this form are generally invariant to in-plane rotations. In the field of cryo-EM processing, the covariance function $ c $ is simply referred to as the 2-D covariance.

1.1. Motivation

The 2D-covariance is an essential component of a number of computational techniques in cryo-EM; we survey a few of these below.

First, we are motivated by PCA, which is a ubiquitous technique in statistics, data science, and computational mathematics and has applications to dimensionality reduction, denoising, visualization, among others. The principal components (i.e., the top eigenvectors of the digitized covariance matrix) have a number of uses in the computational cryo-EM pipeline. The subspace corresponding to the top eigenvectors of the covariance matrix identifies salient features of the dataset which enables, for instance, improved methods for image classification and visualization, such as Multivariate Statistical Analysis(Reference Van Heel3Reference van Heel, Portugal and Schatz6). These techniques improve computational speed, since clustering becomes computationally easier in a space of reduced dimension, as well as accuracy, since dimensionality reduction by PCA amplifies the effective signal-to-noise ratio (SNR) because many coordinates for which noise dominates the signal are eliminated(Reference Zhao and Singer7).

Second, the covariance matrix has applications in the method of moments, a classical statistical inference method, applied to cryo-EM(Reference Kam8). In this method, the 2-D covariance is used to compute the similarly defined autocorrelation function of the underlying 3-D structure. Under further assumptions such as sufficient nonuniformity of the distribution of the viewing angles(Reference Sharon, Kileel, Khoo, Landa and Singer9) or sufficient sparsity of the molecular structure(Reference Bendory, Khoo, Kileel, Mickelin and Singer10), this autocorrelation function determines the 3-D density map either up to a finite list of possible structures or uniquely, respectively. This has been further developed into principled methods for ab initio estimation of cryo-EM structures(Reference Sharon, Kileel, Khoo, Landa and Singer9,Reference Bendory, Khoo, Kileel, Mickelin and Singer10) , with reduced risk of user-induced model bias in the initial model. Alternatively, when additional information is available, for instance, one(Reference Huang, Zehni, Dokmanić and Zhao11) or two(Reference Levin, Bendory, Boumal, Kileel and Singer12) noiseless projection images, or the 3-D structure of a related, homologous structure(Reference Bhamre, Zhang and Singer13,Reference Bhamre, Zhang and Singer14) , the 3-D density map is uniquely determined by the autocorrelation, without requiring any structural assumptions.

Third, the covariance matrix has applications in denoising and CTF-correcting projection images. Covariance Wiener Filtering (CWF)(Reference Bhamre, Zhang and Singer15) is an approach that uses the classic Wiener filtering framework with the estimated covariance matrix to solve the image deconvolution and denoising problem. The technique represents images in a lower dimensional subspace that is formed from PCA using the estimated covariance matrix. The method then applies Wiener filtering to correct the CTFs and denoise the images in this reduced subspace.

Compared to the standard PCA problem, the cryo-EM setting exhibits further computational challenges, since the estimation method also has to account for convolution with the point spread function, which destroys information of the resulting convolved function; see Section Section 2.2 for a more precise statement. On the other hand, the problem has additional symmetries making fast algorithms possible. In this paper, we present a new fast algorithm for estimating the covariance matrix that improves upon past approaches (especially when there are a large number of defocus groups) in terms of time and space complexity.

1.2. Main contribution

The main contribution of this paper is a new computational method for estimating the covariance Equation (3) from $ N $ measurements of the form Equation (1) encoded by $ L\times L $ digitized images. The presented fast method has time complexity $ O\left({NL}^3+{L}^4\right) $ independent of the number $ M\le N $ of defocus groups. This is in contrast to past methods, where this complexity scales poorly with $ M $ and involves $ O\left({MTL}^4+{NL}^3\right) $ operations(Reference Bhamre, Zhang and Singer15), where $ T $ is the number of iterations needed in a Conjugate Gradient step. Many modern cryo-EM experimental datasets fall into the computationally challenging regime where $ M $ scales with $ N $ .

Our fast method hinges on a new fast and accurate method for expanding $ L\times L $ images into the Fourier–Bessel basis, which provides a convenient way to handle convolution of radial functions (such as point spread functions) with images: namely, convolution with radial functions can be expanded as a diagonal operator operating on the basis coefficients(Reference Marshall, Mickelin and Singer16).

The Fourier–Bessel basis functions are harmonics on the disk: the standing waves associated with the resonant frequencies of a disk-shaped drum with a fixed boundary. More precisely, the harmonics on the disk are eigenfunctions of the Laplacian on the unit disk that satisfy Dirichlet boundary conditions. In computational mathematics, this basis is referred to as the Fourier–Bessel basis, since the basis functions can be expressed as a product of a Bessel function and a complex exponential; see Equation (6) for a definition.

Because of this simple structure, the covariance matrix of clean images can be estimated by a simple closed-form solution, without using the (computationally expensive) conjugate gradient method from previous approaches. Simultaneously, the covariance matrix retains its block diagonal structure, meaning that its diagonal blocks can be estimated separately and independently, which altogether makes PCA fast.

We present numerical results of covariance estimation on synthetic and experimental data. Additionally, we show how the estimated covariance matrix can be used to denoise images using CWF, and perform PCA to visualize eigenimages from experimental data. Code implementing the method is publicly available online.Footnote 1 Moreover, our approach has the potential to generalize to settings beyond cryo-EM, where PCA is used for signals estimated under more general group actions(Reference Bandeira, Blum-Smith, Kileel, Perry, Weed and Wein17).

The remainder of the article is organized as follows. In Section 2, we describe the computational method. In Section 3, we present numerical results for synthetic data. In Section 4 we present numerical results for experimental data. In Section 5, we discuss the results and possible extensions.

2. Methodology

2.1. Notation

For two $ M\times N $ -matrices $ A $ and $ B $ , we denote their Hadamard (or entrywise) product by $ A\odot B $ , the Hadamard division of $ A $ and $ B $ by $ A\oslash B $ and the $ \mathrm{\ell} $ th Hadamard power of $ A $ by $ {A}^{\odot \mathrm{\ell}} $ . These operations are defined elementwise by

(4) $$ {\left(A\odot B\right)}_{jk}={A}_{jk}{B}_{jk},\hskip1em {\left(A\oslash B\right)}_{jk}=\frac{A_{jk}}{B_{jk}},\hskip1em {\left({A}^{\odot \mathrm{\ell}}\right)}_{jk}={A}_{jk}^{\mathrm{\ell}}, $$

respectively. If $ w $ is an $ N $ -dimensional vector, then $ \operatorname{diag}(w) $ denotes the $ N\times N $ matrix with $ w $ along its diagonal, that is, $ \operatorname{diag}{(w)}_{jj}={w}_j $ , and zeros elsewhere. If $ f:{\mathrm{\mathbb{R}}}^2\to \mathrm{\mathbb{R}} $ is a radial function, we write $ f(x)=f\left(|x|\right) $ to mean that $ f $ can be expressed as a function only of the magnitude $ \mid x\mid $ of $ x $ .

For an integrable function $ f:{\mathrm{\mathbb{R}}}^2\to \mathrm{\mathbb{R}} $ , we denote the Fourier transform of $ f $ by $ \hat{f}:{\mathrm{\mathbb{R}}}^2\to \mathrm{\mathbb{C}} $ with the convention that

(5) $$ \hat{f}\left(\xi \right)=\frac{1}{2\pi }{\int}_{{\mathrm{\mathbb{R}}}^2}f(x){e}^{- ix\cdot \xi } dx. $$

2.2. Technical details

We make the following assumptions

  1. A1. We assume that the point spread functions $ {h}_i $ in the model Equation (1) are radial functions; this implies that their Fourier transform (the CTFs) are also radial. In systems where astigmatism is present and the point spread function deviates slightly from a radial function, our approach can be used as an initial approximation that could be refined using the Conjugate Gradient method.

  2. A2. We assume that the underlying images $ {f}_i $ in the model Equation (1) are i.i.d. random variables whose distribution is invariant to in-plane rotations.

  3. A3. We assume a technical condition on the Fourier transform of the point spread functions $ {h}_i $ in the model Equation (1). Namely, that the Fourier transforms $ {\hat{h}}_i $ of the $ {h}_i $ satisfy

$$ \underset{\mid \xi \mid, \mid \eta \mid \in \left[{\lambda}_{\mathrm{min}},{\lambda}_{\mathrm{max}}\right]}{\operatorname{inf}}\sum \limits_{i=1}^N{\left|{\hat{h}}_i\left(\xi \right)\right|}^2{\left|{\hat{h}}_i\left(\eta \right)\right|}^2\ge \delta, $$

where $ \delta >0 $ is fixed and $ \left[{\lambda}_{\mathrm{min}},{\lambda}_{\mathrm{max}}\right] $ is the interval of Fourier space used in the disk harmonic expansion, see Ref. (Reference Marshall, Mickelin and Singer16, Section 2.4).

Informally speaking, Assumption A3 can be interpreted as saying that for any pair of frequencies $ \xi $ and $ \eta $ there is a point spread function $ {h}_i $ such that neither $ {\hat{h}}_i\left(\xi \right) $ nor $ {\hat{h}}_i\left(\eta \right) $ are zero. Assumption A1 implies that $ {\hat{h}}_i\left(\xi \right)={\hat{h}}_i\left(|\xi |\right) $ is a radial function. Figure 1 shows the values of $ {\sum}_{i=1}^N{\left|{\hat{h}}_i\left(\xi \right)\right|}^2{\left|{\hat{h}}_i\left(\eta \right)\right|}^2 $ for each pair of radial frequency $ \xi, \eta $ in log scale, for 1081 distinct CTF images of size $ L=360 $ , whose defocus values range from 0.81 to 3.87 m, for an experimental dataset; see Section 4 for more details.

Figure 1. We visualize $ {\log}_{10}\left({\sum}_{i=1}^N{\left|{\hat{h}}_i\left(|\xi |\right)\right|}^2|{\hat{h}}_i\Big(|\eta {\left|\Big)\right|}^2\right) $ for each pair of radial frequencies $ \mid \xi \mid, \mid \eta \mid $ for the experimental dataset EMPIAR-10028(Reference Wong, Bai and Brown18) obtained from the Electron Microscopy Public Image Archive(Reference Iudin, Korir, Salavert-Torres, Kleywegt and Patwardhan19). All values are greater than $ -1 $ in the log scale.

This assumption is much weaker than assuming that for all $ i $ that $ \mid {\hat{h}}_i\mid $ does not vanish at any frequency. In the latter case, we could just use $ {h}_i $ to invert each equation to get access to the underlying functions $ {f}_i $ . If we had direct access to the underlying functions $ {f}_i $ , then we could approximate the covariance function $ c $ by the sample covariance

$$ {c}_N\left({x}^{\prime },{y}^{\prime}\right):= \frac{1}{N-1}\sum \limits_{i=1}^N\left[{f}_i\left({x}^{\prime}\right)-\tilde{f}\left({x}^{\prime}\right)\right]\cdot \left[{f}_i\left({y}^{\prime}\right)-\tilde{f}\left({y}^{\prime}\right)\right], $$

where $ \tilde{f}\left({x}^{\prime}\right)={\sum}_{i=1}^N\frac{1}{N}{f}_i\left({x}^{\prime}\right) $ is the sample mean. Indeed, $ {c}_N\left({x}^{\prime },{y}^{\prime}\right)\to c\left({x}^{\prime },{y}^{\prime}\right) $ by the law of large numbers. To clarify why it is useful for $ {\hat{h}}_i $ not to vanish, note that in the Fourier domain our measurement model can be expressed as

$$ {\hat{g}}_i={\hat{h}}_i{\hat{f}}_i+{\hat{\varepsilon}}_i, $$

where $ {\hat{g}}_i,{\hat{h}}_i,{\hat{f}}_i $ , and $ {\hat{\varepsilon}}_i $ denote the Fourier transforms of $ {g}_i,{h}_i,{f}_i, $ and $ {\varepsilon}_i $ , respectively. Since taking the Fourier transform changes convolution to point-wise multiplication, if each Fourier transform $ \mid {\hat{h}}_i\mid \ge \delta $ for some $ \delta >0 $ , then we could estimate $ c $ by first estimating $ {\hat{f}}_i $ from $ {\hat{g}}_i $ for $ i=1,\dots, N $ , and then using the sample covariance matrix. However, in practice, the CTF $ {\hat{h}}_i $ is approximately a radial function with many zero-crossings, which means that multiplication by $ {\hat{h}}_i $ destroys information in the corresponding frequencies, making the restoration from a single image ill-posed.

2.3. Fourier–Bessel

The main ingredient in our fast covariance estimation is a fast transform into a convenient and computationally advantageous basis, known as the Fourier–Bessel basis (which consists of the harmonics on the disk: eigenfunctions of the Laplacian on the disk that obey Dirichlet boundary conditions). This specific choice of basis has a number of beneficial properties:

  1. (i) it is orthonormal,

  2. (ii) it is ordered by frequency,

  3. (iii) it is steerable, that is, images can be rotated by applying a diagonal transform to the basis coefficients,

  4. (iv) it is easy to convolve with radial functions, that is, images can be convolved with radial functions by applying a diagonal transform to the basis coefficients.

These properties have made the Fourier–Bessel basis a natural choice in a number of imaging applications(Reference Zhao and Singer7, Reference Bhamre, Zhang and Singer15, Reference Rangan, Spivak, Andén and Barnett20Reference Zhao, Shkolnisky and Singer22) and will be central to the development of our fast covariance estimation method. In polar coordinates $ \left(r,\theta \right) $ in the unit disk $ \left\{\left(r,\theta \right):r\in \right[0,1\left),\theta \in \right[0,2\pi \left)\right\} $ , the Fourier–Bessel basis functions are defined by

(6) $$ {\psi}_{nk}\left(r,\theta \right)={\gamma}_{nk}{J}_n\left({\lambda}_{nk}r\right){e}^{in\theta}, $$

where $ {\gamma}_{nk} $ is a normalization constant, $ {J}_n $ is the $ n $ -th order Bessel function of the first kind (see Ref. Reference Lozier23, Section 10.2), and $ {\lambda}_{nk} $ is its $ k $ th smallest positive root; the indices $ \left(n,k\right) $ run over $ \mathrm{\mathbb{Z}}\times {\mathrm{\mathbb{Z}}}_{>0} $ .

Recent work(Reference Marshall, Mickelin and Singer16) has devised a new fast algorithm to expand $ L\times L $ -images into $ \sim {L}^2 $ Fourier–Bessel basis functions. Informally speaking, given $ \sim {L}^2 $ basis coefficients, the algorithm can evaluate the function on an $ L\times L $ grid in $ O\left({L}^2\log L\right) $ operations; the adjoint can be computed in the same number of operations, which makes iterative methods fast. Compared to previous expansion methods(Reference Zhao and Singer7,Reference Zhao, Shkolnisky and Singer22) , it enjoys both theoretically guaranteed accuracy and lower time complexity.

2.4. Key property of Fourier–Bessel basis

A key property of the Fourier–Bessel basis is that convolution with radial functions is diagonal transformations in any truncated basis expansion. More precisely, the following result holds (Ref. Reference Marshall, Mickelin and Singer16, Lemma 2.3): suppose that $ f={\sum}_{\left(n,k\right)\in I}{\alpha}_{nk}{\psi}_{nk} $ for some index set $ I $ , and $ h=h\left(|x|\right) $ is a radial function. Then,

(7) $$ {P}_{\mathrm{\mathcal{I}}}\left(f\ast h\right)=\sum \limits_{\left(n,k\right)\in I}{\alpha}_{nk}\hat{h}\left({\lambda}_{nk}\right){\psi}_{nk}, $$

where $ {P}_{\mathrm{\mathcal{I}}} $ denotes orthogonal projection onto the span of $ {\left\{{\psi}_{nk}\right\}}_{\left(n,k\right)\in I} $ , $ \hat{h} $ is the Fourier transform of $ h $ , and $ {\lambda}_{nk} $ is the $ k $ th positive root of $ {J}_n $ .

We emphasize that the weights of the diagonal transform in Equation (7) are not the coefficients of $ h $ in the disk harmonic expansion. Indeed, since $ h $ is radial, it follows from Equation (6) that the coefficients $ {\beta}_{nk} $ of $ h $ in the basis $ {\psi}_{nk} $ satisfy $ {\beta}_{nk}=0 $ when n ≠ 0. Computing the weights $ \hat{h}\left({\lambda}_{nk}\right) $ from the coefficients $ {\beta}_{nk} $ of $ h $ in the basis, would involve computing weighted sums of the Fourier transforms of the basis functions: $ \hat{h}\left({\lambda}_{nk}\right)={\sum}_{l\in \mathcal{J}}{\beta}_{0l}{\hat{\psi}}_{0l}\left({\lambda}_{nk}\right) $ , for some index set $ \mathcal{J} $ .

As an alternative to the disk harmonic basis expansion, one can consider simply taking the Fourier transform of (1), which also leads to a diagonal representation of the convolution operator. However, the discrete Fourier transform does not have the steerability property, which is essential for the covariance estimation. Another attempt could be to use the polar Fourier transform. However, this representation is not invariant to arbitrary in-plane rotations, but only to finitely many rotations as determined by the discretization spacing of the grid. These expansions are therefore unsuitable for the goal of this article and we instead use expansions into the Fourier–Bessel basis, although other steerable bases could be considered(Reference Landa and Shkolnisky24,Reference Landa and Shkolnisky25) . Table 1 summarizes the considerations that make the Fourier–Bessel basis a natural choice of basis.

Table 1. Summary of desirable properties of a few different basis candidates.

a The basis expansion from Cartesian grid representation can be completed within $ O\left({L}^2\right) $ operations up to log factors.

b The new expansion algorithm(Reference Marshall, Mickelin and Singer16) improves the previous computational method(Reference Zhao and Singer7) in terms of accuracy guarantees, computational complexity, and the fact that it derives weights such that radial convolution is a diagonal operation.

2.5. Block diagonal structure

The steerable property of the Fourier–Bessel basis implies that the 2D-covariance will be block diagonal in this basis. A full representation of an $ {L}^2\times {L}^2 $ matrix requires $ O\left({L}^4\right) $ elements, but this is reduced to $ O\left({L}^3\right) $ nonzero entries by the block diagonal structure. This block diagonal structure follows from the form of the basis functions and that the distribution of in-plane rotations is assumed to be uniform. Indeed, suppose that $ f={\sum}_{\left(n,k\right)\in I}{\alpha}_{nk}{\psi}_{nk}. $ For simplicity assume that $ f $ has mean zero; subtracting the mean will only change the radial components, since the other components corresponding to nonvanishing angular frequencies have zero mean by merely averaging over all possible in-plane rotations. By Assumption A2, the covariance function in polar coordinates satisfies

(8) $$ c\left(\left(r,\theta \right),\left({r}^{\prime },{\theta}^{\prime}\right)\right)=c\left(\left(r,\theta +\varphi \right),\left({r}^{\prime },{\theta}^{\prime }+\varphi \right)\right), $$

for all $ \varphi $ in $ \left[0,2\pi \right] $ . The covariance function in Equation (3) can be expanded in a double Fourier–Bessel basis expansion as

(9) $$ c\left(\left(r,\theta \right),\Big({r}^{\prime },{\theta}^{\prime}\Big)\right)=\sum \limits_{\left(n,k\right)\in I}\sum \limits_{\left({n}^{\prime },{k}^{\prime}\right)\in I}{C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)}{\psi}_{nk}\left(r,\theta \right)\overline{\psi_{n^{\prime }{k}^{\prime }}}\left({r}^{\prime },{\theta}^{\prime}\right), $$

where $ {C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)} $ is the covariance matrix in the Fourier–Bessel basis. Combining Equations (8) and (9) and integrating $ \varphi $ over $ \left[0,2\pi \right] $ gives

(10) $$ {\displaystyle \begin{array}{c}c\left(r,\theta \right),\left({r}^{\prime },{\theta}^{\prime}\right)\Big)=\frac{1}{2\pi }{\int}_0^{2\pi }c\left(\left(r,\theta +\varphi \right),\left({r}^{\prime },{\theta}^{\prime }+\varphi \right)\right) d\varphi \\ {}=\sum \limits_{\left(n,k\right)\in I}\sum \limits_{\left({n}^{\prime },{k}^{\prime}\right)\in I}{C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)}\frac{1}{2\pi }{\int}_0^{2\pi }{\psi}_{nk}\left(r,\theta +\varphi \right)\overline{\psi_{n^{\prime }{k}^{\prime }}}\left({r}^{\prime },{\theta}^{\prime }+\varphi \right) d\varphi \\ {}=\sum \limits_{\left(n,k\right)\in I}\sum \limits_{\left({n}^{\prime },{k}^{\prime}\right)\in I}{C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)}{\psi}_{nk}\left(r,\theta \right)\overline{\psi_{n^{\prime }{k}^{\prime }}}\left({r}^{\prime },{\theta}^{\prime}\right)\frac{1}{2\pi }{\int}_0^{2\pi }{e}^{i\left(n-{n}^{\prime}\right)\varphi } d\varphi \\ {}=\sum \limits_{\left(n,k\right)\in I}\sum \limits_{\left({n}^{\prime },{k}^{\prime}\right)\in I}{\delta}_{n={n}^{\prime }}{C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)}{\psi}_{nk}\left(r,\theta \right)\overline{\psi_{n^{\prime }{k}^{\prime }}}\left({r}^{\prime },{\theta}^{\prime}\right),\end{array}} $$

where $ {\delta}_{n={n}^{\prime }} $ is a Dirac function that is equal to $ 1 $ if $ n={n}^{\prime } $ and zero otherwise, and we note that the second to last equality uses the fact that $ {\psi}_{nk}\left(r,\theta \right)={\gamma}_{nk}{J}_n\left({\lambda}_{nk}r\right){e}^{in\theta} $ . Since the coefficients $ {C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)} $ in the expansion Equation (9) are unique, it follows from Equation (10) that $ {C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)}=0 $ when . Hence, the covariance matrix $ {C}_{\left( nk,{n}^{\prime }{k}^{\prime}\right)} $ has a block diagonal structure whose blocks consist of the indices $ \left( nk,n{k}^{\prime}\right) $ for a given value of $ n $ . In the following section, we show how these properties enable a fast method to estimate the covariance matrix.

2.6. Covariance estimation

In the Fourier–Bessel basis, Equation (1) is written as

(11) $$ {G}_i={H}_i\odot {F}_i+{E}_i, $$

where $ {G}_i $ , $ {F}_i $ , and $ {E}_i $ are coefficient vectors of $ {g}_i,{f}_i,{\varepsilon}_i $ in the Fourier–Bessel basis, respectively and $ {H}_i $ is the vector encoding the convolution operator of Section 2.4, that is, with components $ \hat{h_i}\left({\lambda}_{nk}\right) $ . The vectors are b-dimensional column vectors, where $ b=O\left({L}^2\right) $ is the number of basis coefficients. We use this simple structure to obtain a closed-form expression for the sample covariance matrix of the $ {F}_i $ . We estimate this matrix by minimizing the discrepancy between the sample covariance and the population covariance; more precisely, the estimated covariance matrix $ \tilde{C} $ is computed by solving the least squares-problem

(12) $$ \tilde{C}=\underset{C}{\arg \hskip0.1em \min}\sum \limits_{i=1}^N{\left\Vert \left({G}_i-{H}_i\odot \tilde{\mu}\right){\left({G}_i-{H}_i\odot \tilde{\mu}\right)}^T-\left(C\odot \left({H}_i{H}_i^T\right)+{\sigma}^2I\right)\right\Vert}_F^2. $$

where $ \tilde{\mu} $ is defined by

(13) $$ \tilde{\mu}=\underset{\mu }{\arg \hskip0.1em \min}\sum \limits_{i=1}^N\parallel {G}_i-{H}_i\odot \mu {\parallel}^2, $$

whose solution is

(14) $$ \tilde{\mu}=\left(\sum \limits_{i=1}^N{H}_i\odot {G}_i\right)\oslash \left(\sum \limits_{i=1}^N{H}_i^{\odot 2}\right). $$

The least squares-solution of Equation (12) can be determined by the following system of linear equations

(15) $$ \left(\sum \limits_{i=1}^N{H}_i^{\odot 2}{\left({H}_i^{\odot 2}\right)}^T\right)\odot \tilde{C}=\sum \limits_{i=1}^N\left({H}_i{H}_i^T\right)\odot {B}_i-{\sigma}^2\sum \limits_{i=1}^N \operatorname {diag}\left({H}_i^{\odot 2}\right), $$

where

(16) $$ {B}_i=\left({G}_i-{H}_i\odot \tilde{\mu}\right){\left({G}_i-{H}_i\odot \tilde{\mu}\right)}^T. $$

It follows that

(17) $$ \tilde{C}=\left(\sum \limits_{i=1}^N\left[{B}_i\odot \left({H}_i{H}_i^T\right)-{\sigma}^2\operatorname{diag}\left({H}_i^{\odot 2}\right)\right]\right)\oslash \left(\sum \limits_{i=1}^N{H}_i^{\odot 2}{\left({H}_i^{\odot 2}\right)}^T\right). $$

As discussed in Section 2.5, the covariance matrix is block diagonal in the Fourier–Bessel basis. More precisely, the only nonzero elements $ \tilde{C}\left( nk,{n}^{\prime }{k}^{\prime}\right) $ of the matrix $ \tilde{C} $ are those with $ n={n}^{\prime } $ . Therefore, the matrices in Equations (16) and (17) need only be calculated for this subset of indices. Since there is a total of $ O\left({L}^3\right) $ of these indices, this reduces the computational complexity compared to computing with the full matrices.

Note that the covariance matrix estimated from (Equation 17) may not be positive semidefinite due to subtraction of the term $ {\sigma}^2\operatorname{diag}\left({H}_i^{\odot 2}\right) $ . Therefore, when running the method in practice it is beneficial to use an eigenvalue shrinkage method. The computational cost of eigenvalue shrinkage for a matrix with our block structure is $ O\left({L}^4\right) $ (Reference Bhamre, Zhang and Singer15, Reference Donoho, Gavish and Johnstone26). For completeness, we include this computational cost of eigenvalue shrinkage in our overall computational complexity. Informally speaking, the idea of eigenvalue shrinkage is to replace the term $ {\sum}_{i=1}^N\left[{B}_i\odot \left({H}_i{H}_i^T\right)-{\sigma}^2\operatorname{diag}\left({H}_i^{\odot 2}\right)\right] $ in Equation (17) by $ {\sum}_{i=1}^N\left[{B}_i\odot \left({H}_i{H}_i^T\right)\right] $ , and then shrink and truncate the eigenvalues in a systematic way before Hadamard division(Reference Donoho, Gavish and Johnstone26). The steps of the algorithm are summarized in Algorithm 1.

Algorithm 1 Fast covariance estimation method.

Input: Observed images $ {g}_i $ , radial functions $ {h}_i $ , $ i=1,\dots, N $ .

Output: Estimated covariance matrix $ \tilde{C} $ in the domain of the Fourier–Bessel basis

  1. 1. Expand observed images $ {g}_i $ into the Fourier–Bessel basis, with resulting coefficient vector $ {G}_i $

  2. 2. Compute the vectors $ {H}_i $ with components $ \hat{h_i}\left({\lambda}_{nk}\right) $ , representing the action of the CTFs in the Fourier–Bessel basis

  3. 3. Compute sample mean $ \tilde{\mu} $ from Equation (14)

  4. 4. Use Equation (16) to compute the elements $ {B}_i\left( nk,n{k}^{\prime}\right) $ for all $ n,k,{k}^{\prime } $

  5. 5. Use Equation (17) to compute the elements of the sample covariance matrix $ \tilde{C}\left( nk,n{k}^{\prime}\right) $ for all $ n,k,{k}^{\prime } $ , refined using eigenvalue shrinkage

The complexity of step 1 of the algorithm is $ O\left({NL}^2\log L\right) $ . The complexity of step 2 is $ O\left({ML}^2\log L\right) $ . The complexity of step 3 is $ O\left({NL}^2\right) $ , since the number of basis coefficients is $ O\left({L}^2\right) $ . The complexity of step 4 is $ O\left({NL}^3\right) $ , since there are at most $ O\left({L}^3\right) $ nonzero elements with indices $ \left( nk,n{k}^{\prime}\right) $ . The complexity of step 5 is $ O\left({NL}^3+{L}^4\right) $ , where the additional term $ \mathcal{O}\left({L}^4\right) $ comes from the computational complexity of eigenvalue shrinkage. Thus, the total complexity of the algorithm is $ O\left({NL}^3+{L}^4\right) $ .

We now show how this can be used in an application to image denoising. Given an estimate of the covariance matrix $ \tilde{C} $ , the CWF approach estimates the $ {F}_i $ by a linear Wiener filter(Reference Bhamre, Zhang and Singer15),

(18) $$ {\tilde{F}}_i=\tilde{\mu}+\tilde{C} \operatorname {diag}\left({H}_i\right){\left(\tilde{C}\odot \left({H}_i{H}_i^T\right)+{\sigma}^2I\right)}^{-1}\left({G}_i-{H}_i\odot \tilde{\mu}\right), $$

See Ref. Reference Bhamre, Zhang and Singer15 for more details.

3. Synthetic Data Results

We compare the timings of our fast method to previous approaches(Reference Bhamre, Zhang and Singer15), for synthetic images generated from the 3-D volume of SARS-CoV-2 (Omicron) spike complexes(Reference Guo, Gao and Li27) (EMD-32743), from the online EM data bank(Reference Lawson, Patwardhan and Baker28). The original volume has size $ 512 $ in each dimension, with pixel size 0.832 Å. We downsample the original volume to size $ L\times L\times L $ , with $ L=\mathrm{32,128} $ and 512, respectively, and show the computational times. To generate the synthetic noisy images, we first generate 10,000 clean projection images of the 3-D volume from random and uniformly distributed viewing directions. We next divide the set of clean images into a number of defocus groups, where the defocus values range from 1 μm to 4 μm. For all CTFs, we set the voltage as 300 kV and the spherical aberration as 2 mm. After convolving the images with their CTFs, we add colored noise with power spectral density $ 1/\left( rL/20+1\right) $ up to a constant scale, where $ r\in \left[0,1\right] $ is the radial frequency. For both the previous method and ours, the CTFs and the noisy images are whitened before estimating the covariance. A few sample clean and noisy images are shown in Figure 5. All experiments were carried out on a machine with 750 GB memory and 72 Intel Xeon E7–8880 v3 CPUs running at 2.30GHz. We note that our implementation heavily relies on packages such as FINUFFT(Reference Barnett29,Reference Barnett, Magland and Klinteberg30) , NumPy(Reference Harris, Millman and van der Walt31), and SciPy(Reference Virtanen, Gommers and Oliphant32), which are not fully optimized for parallel computing. The implementation of our fast method and the code of CWF(Reference Bhamre, Zhang and Singer15) both effectively use only around 20 cores at runtime. Due to the complexity of modern computational architectures, performing a fair comparison can be challenging, but we have made every effort to do so. Both our code and the CWF code(Reference Bhamre, Zhang and Singer15) take input images in a tensor format, and used vectorized operations whenever possible to avoid for-loops. The primary factor determining performance is not the specific implementation of the code, but rather the underlying computational complexities. Improving the parallelization is a technical direction for future work.

Figure 2 shows the time required to estimate the covariance matrices as a function of the number of defocus groups. Note that the runtime for the previous approach for the largest image and defocus group sizes is infeasibly large and that our fast method exhibits a speedup of up to three orders of magnitude.

Figure 2. Timing comparison for covariance matrix estimation of 10,000 images of size $ L\times L $ . The old method(Reference Bhamre, Zhang and Singer15) timing for $ L=512 $ and defocus count $ {10}^4 $ is extrapolated due to time and memory constraints.

Figure 3 shows the top six principal components estimated by our method and by traditional PCA using $ {10}^4 $ raw images, where $ L=128 $ , $ \mathrm{SNR}=0.1 $ and $ M=100 $ defocus groups, compared to traditional PCA on $ {10}^6 $ images. We use the sample covariance matrix of phase-flipped images in real space for the traditional PCA. For all methods, we use $ \lambda $ to denote $ 100 $ times the eigenvalues of the eigenimages. The eigenimages from the traditional PCA look much noisier than ours, and contain artifacts that are due to imperfect CTF correction (see, e.g., the circular artifacts in top three eigenimages in Figure 3). The eigenimages from the traditional PCA also fail to preserve the symmetries (see, e.g., 6th eigenimage in Figure 3) that are present in our eigenimages, since they do not utilize the steerable basis and rotation-augmented images.

Figure 3. Top six eigenimages computed by traditional PCA on $ {10}^6 $ clean images (top panel), our new method on $ {10}^4 $ raw images (middle panel), and traditional PCA on $ {10}^4 $ phase-flipped images (bottom panel). The signal-to-noise ratio for the images for the new method and traditional PCA was 0.1.

Figure 4 shows the quality of covariance estimation and image denoising when $ L=128 $ and using $ M=100 $ defocus groups. The quality of the covariance estimation is measured by the relative error in each angular frequency, which is defined as

(19) $$ {\mathrm{err}}_n=\parallel {C}_n-{\tilde{C}}_n{\parallel}_F/\parallel {C}_n{\parallel}_F, $$

where $ {C}_n $ and $ {\tilde{C}}_n $ are respectively the $ n $ th diagonal blocks of the clean and estimated covariance matrix, corresponding to all indices of the form $ \left( nk,n{k}^{\prime}\right) $ . The clean covariance matrix was approximated by the sample covariance matrix of $ {10}^6 $ clean projection images. The performance of image denoising is measured by the Fourier ring correlation (FRC) between the clean and denoised images. Namely, for the $ i $ th pair of clean and denoised images $ {I}_i^c $ and $ {I}_i^d $ , we first compute their Fourier coefficient vectors $ {\boldsymbol{f}}_{i,r}^c,\hskip0.3em {\boldsymbol{f}}_{i,r}^d $ at radial frequency $ r $ by the nonuniform FFT(Reference Dutt and Rokhlin33Reference Lee and Greengard35), where $ 1\le i\le N $ and $ 0\le r\le {r}_{\mathrm{max}} $ . We then compute their averaged correlation for each $ r $ :

$$ \mathrm{FRC}(r)=\frac{1}{N}\sum \limits_{i=1}^N\frac{\left\langle {\boldsymbol{f}}_{i,r}^c,{\boldsymbol{f}}_{i,r}^d\right\rangle }{\parallel {\boldsymbol{f}}_{i,r}^c\parallel \parallel {\boldsymbol{f}}_{i,r}^d\parallel }, $$

where $ \left\langle \cdot, \cdot \right\rangle $ denotes the inner product between two complex vectors. The FRC is a real-valued quantity due to a symmetry property that arises since the images $ {I}_i^c,{I}_i^d $ are real-valued.

Figure 4. Relative estimation error of the covariance matrix (left) and the Fourier ring correlation between the denoised and clean images (right).

In addition to the speedups of Figure 2, the left panel of Figure 4 demonstrates a slight increase in the estimation quality of our proposed algorithm, compared to the previous approach. This is possibly caused by improved accuracy in the Fourier–Bessel basis approximation as well as improved accuracy by using the closed-form expression Equation (17) compared to the approximate conjugate gradient step of previous approaches. Similarly, on the right panel, the Fourier ring correlation between the denoised and clean images shows a slight performance increase. Figure 5 shows sample denoised images for different values of the SNR where $ L=128 $ and $ M=100 $ . As a comparison, we show images denoised using the approach of this paper and the CWF method(Reference Bhamre, Zhang and Singer15).

Figure 5. Clean, noisy and denoised images. The covariance estimation used $ N=10,000 $ images, and parameters $ L=128 $ and $ M=100 $ .

4. Experimental Data Results

We conclude by using our method on two experimental datasets obtained from the Electron Microscopy Public Image Archive(Reference Iudin, Korir, Salavert-Torres, Kleywegt and Patwardhan19), namely EMPIAR-10028(Reference Wong, Bai and Brown18) and EMPIAR-10081(Reference Rangan, Spivak, Andén and Barnett36). EMPIAR-10028 is a dataset of the Plasmodium falciparum 80S ribosome bound to the antiprotozoan drug emetine whose 3-D reconstruction is available in the EM data bank as EMD-2660(Reference Wong, Bai and Brown18). The dataset contains 105247 motion corrected and picked particle images, from 1081 defocus groups, of size $ 360\times 360 $ with 1.34 Å pixel size. EMPIAR-10081 is a dataset of the human HCN1 hyperpolarization-activated cyclic nucleotide-gated ion channel, whose 3-D reconstruction can be found in the EM data bank as EMD-8511(Reference Lee and MacKinnon36). The dataset contains 55,870 motion corrected and picked particle images, from 53,384 defocus groups, of size $ 256\times 256 $ with 1.3 Å pixel size.

Computational times are shown in Table 2, showing a speedup of more than two orders of magnitude for the datasets with the largest number of distinct CTFs. Note that regular CWF on EMPIAR-10081 encounters memory issues and cannot be run to completion, whereas our fast method runs seamlessly. The old CWF has much higher space complexity $ O\left({ML}^3\right) $ for covariance estimation than that of our method $ O\left({L}^3\right) $ . The reason is that the old CWF represents CTFs using block diagonal matrices (each takes $ O\left({L}^3\right) $ memory). Moreover, the old CWF loads all these block diagonal CTFs at once in memory so as to define the linear operator for the conjugate gradient method. Our method circumvents the need to store all CTFs at once due to our closed-form solution, and therefore we can read CTFs in batches. Moreover, each CTF has diagonal representation in our method, which means much lower space complexity $ O\left({L}^2\right) $ . The $ O\left({L}^3\right) $ space complexity for our method is only for storing a single covariance matrix.

Table 2. Timing comparison in seconds for EMPIAR-10028 (top) and EMPIAR-10081 (bottom).

Note. For EMPIAR-10081, when $ L=256 $ , the old CWF method(Reference Bhamre, Zhang and Singer15) encounters memory issues and cannot be run until completion. $ {T}_{\mathrm{ffb}} $ , the time required to expand all images in the Fourier–Bessel basis (step 1 in Algorithm 1); $ {T}_{\mathrm{ctf}} $ , the time to compute a matrix representation of the application of the point spread function (step 2 in Algorithm 1); $ {T}_{\mathrm{cov}} $ , the time to estimate the covariance matrix (steps 3–5 in Algorithm 1); $ {T}_{\mathrm{denoise}} $ , the time to denoise the number of images indicated in the main text (2014 images for EMPIAR-10028 and 502 images for EMPIAR-10081); $ {T}_{\mathrm{total}} $ , the total computational time.

For EMPIAR-10081, storing the CTFs for the old method takes approximately $ 50,000\times \left({256}^3/6\right)\times 8/{10}^9\approx 1118 $  GB which is above the 750 GB memory limit of our machine. For the new method, storing the covariance matrix takes $ \left({256}^3/6\right)\times 8/{10}^9\approx 0.02 $  GB and storing the CTFs takes $ 1000\times {256}^2\times 8/{10}^9\approx 0.52 $  GB (with batch size 1000) that can be even handled by a common laptop.

In order to obtain a comparison, we therefore additionally downsample these images to $ L=128 $ where the original CWF can successfully run. On EMPIAR-10028, we used all images for covariance estimation, and denoised the 2014 images from $ 0 $ th, $ 50 $ th, $ 100 $ th, …, $ 1000 $ th defocus groups. On EMPIAR-10081, we used all images for covariance estimation, and denoised the 502 images from $ 0 $ th, $ 100 $ th, $ 200 $ th, …, $ 50,000 $ th defocus groups. For both old and new methods, the covariance matrices are further refined to correct image contrast variations(Reference Shi and Singer21). Sample visualization results are shown in Figures 6 and 7. The old CWF method cannot handle the full resolution recovery for EMPIAR-10081 (with about 50,000 distinct CTFs) due to its high space complexity. Moreover, the old CWF method does not return satisfying restored images for downsampled low resolution images. The reason is that for EMPIAR-10081, almost all images belong to different defocus groups, and the estimated noise power spectrum from a single image is too noisy. Therefore, EMPIAR-10081 is a failure case for the old CWF method in terms of both accuracy and computation time. In contrast, our method assumes radially symmetric noise power spectrum and estimates it using NUFFT over concentric rings with different radii, and averages over each ring. This averaging process largely reduces the noise in the estimated power spectrum.

Figure 6. Denoised images (EMPIAR-10028). The method used $ N=105,247 $ images, from $ M=1081 $ defocus groups, of size $ 360\times 360 $ . The clean images are obtained by aligning $ 1000 $ clean projection images (from uniformly distributed viewing directions) with phase-flipped raw images.

Figure 7. Denoised images (EMPIAR-10081). The method used $ N=55,870 $ images, from $ M=53,384 $ defocus groups, of size $ 256\times 256 $ . The clean images are obtained by aligning 1000 clean projection images (from uniformly distributed viewing directions) with phase-flipped raw images.

5. Discussion

Covariance estimation and PCA of cryo-EM images are key ingredients in many classic cryo-EM methods including multivariate statistical analysis(Reference Van Heel3Reference van Heel, Portugal and Schatz6) and Kam’s method for ab initio modeling(Reference Kam8). We propose a fast method to estimate the covariance matrix of noisy cryo-EM images, and then illustrate its application to simultaneously correct for the CTFs and denoise the images. The approach relies on recent improvements to algorithms for expanding images in the Fourier–Bessel basis(Reference Marshall, Mickelin and Singer16), and has time complexity $ O\left({NL}^3+{L}^4\right) $ which is independent of the number of defocus groups. Our new approach is both significantly faster and more memory-efficient compared to the previous CWF method(Reference Bhamre, Zhang and Singer15) and we apply our method to large experimental datasets with many distinct CTFs with speedups by factors up to more than two orders of magnitude. Our approach could potentially be extended to higher-dimensional data and to the setting where images are distorted by CTFs which are not exactly radial, using either analytical correction terms or iterative numerical steps.

Acknowledgments

We are grateful to Kenny Huang for running some numerical experiments in the initial stage of this project.

Competing Interests

The authors declare no competing interests exist.

Authorship Contributions

N.F.M., O.M., Y.S., and A.S. conceived the project. N.F.M., O.M., and Y.S. designed the algorithms. Y.S. wrote the software and performed the experiments. All authors wrote the article and approved the final submission.

Funding Statement

N.F.M. was supported in part by NSF DMS-1903015 and was visiting the Institute for Pure and Applied Mathematics (IPAM) when part of this research was performed, which was supported by NSF DMS-1925919. A.S. was supported by grants from the AFOSR FA9550-20-1-0266; the Simons Foundation Math+X Investigator Award; NSF BIGDATA Award IIS-1837992; NSF DMS-2009753; and NIH/NIGMS 1R01GM136780–01.

Data Availability Statement

Replication data and code can be found at https://github.com/yunpeng-shi/fast-cryoEM-PCA.

Footnotes

References

Liu, W & Frank, J (1995) Estimation of variance distribution in three-dimensional reconstruction. i. Theory. JOSA A 12(12), 26152627.CrossRefGoogle ScholarPubMed
Penczek, PA, Kimmel, M & Spahn, CM (2011) Identifying conformational states of macromolecules by eigen-analysis of resampled cryo-em images. Structure 19(11), 15821590.CrossRefGoogle ScholarPubMed
Van Heel, M (1984) Multivariate statistical classification of noisy images (randomly oriented biological macromolecules). Ultramicroscopy 13(1–2), 165183.CrossRefGoogle ScholarPubMed
Van Heel, M & Frank, J (1981) Use of multivariates statistics in analysing the images of biological macromolecules. Ultramicroscopy 6(1), 187194.Google ScholarPubMed
van Heel, M, Portugal, R and Schatz, M (2009) Multivariate Statistical Analysis in Single Particle (Cryo) Electron Microscopy. An Electronic Textbook: Electron Microscopy in Life Science. 3D-EM Network of Excellence. London.Google Scholar
van Heel, M, Portugal, RV, Schatz, M, et al. (2016) Multivariate statistical analysis of large datasets: Single particle electron microscopy. Open J Stat 6(04), 701.CrossRefGoogle Scholar
Zhao, Z & Singer, A (2014) Rotationally invariant image representation for viewing direction classification in cryo-EM. J Struct Biol 186(1), 153166.CrossRefGoogle ScholarPubMed
Kam, Z (1980) The reconstruction of structure from electron micrographs of randomly oriented particles. J Theor Biol 82(1), 1539.CrossRefGoogle ScholarPubMed
Sharon, N, Kileel, J, Khoo, Y, Landa, B & Singer, A (2020) Method of moments for 3D single particle ab initio modeling with non-uniform distribution of viewing angles. Inverse Probl 36(4), 044003.CrossRefGoogle Scholar
Bendory, T, Khoo, Y, Kileel, J, Mickelin, O & Singer, A (2022) Autocorrelation analysis for cryo-EM with sparsity constraints: improved sample complexity and projection-based algorithms. Preprint, arXiv:2209.10531.Google Scholar
Huang, S, Zehni, M, Dokmanić, I & Zhao, Z (2022) Orthogonal matrix retrieval with spatial consensus for 3D unknown-view tomography. Preprint, arXiv:2207.02985.Google Scholar
Levin, E, Bendory, T, Boumal, N, Kileel, J & Singer, A (2018) 3D ab initio modeling in cryo-EM by autocorrelation analysis. In 2018 IEEE 15th International Symposium on Biomedical Imaging (ISBI), pp. 15691573. IEEE.CrossRefGoogle Scholar
Bhamre, T, Zhang, T & Singer, A (2015) Orthogonal matrix retrieval in cryo-electron microscopy. In 2015 IEEE 12th International Symposium on Biomedical Imaging (ISBI), pp. 10481052. IEEE.CrossRefGoogle Scholar
Bhamre, T, Zhang, T & Singer, A (2022) Anisotropic twicing for single particle reconstruction using autocorrelation analysis. U.S. Patent No. 11,227,403. arXiv:1704.07969.Google Scholar
Bhamre, T, Zhang, T & Singer, A (2016) Denoising and covariance estimation of single particle cryo-EM images. J Struct Biol 195(1), 7281.Google ScholarPubMed
Marshall, NF, Mickelin, O & Singer, A (2022) Fast expansion into harmonics on the disk: a steerable basis with fast radial convolutions. Preprint, arXiv:2207.13674.Google Scholar
Bandeira, AS, Blum-Smith, B, Kileel, J, Perry, A, Weed, J & Wein, AS (2017) Estimation under group actions: recovering orbits from invariants. Preprint, arXiv:1712.10163.Google Scholar
Wong, W, Bai, X-c, Brown, A, et al. (2014) Cryo-EM structure of the plasmodium falciparum 80S ribosome bound to the anti-protozoan drug emetine. eLife 3, e03080.CrossRefGoogle Scholar
Iudin, A, Korir, PK, Salavert-Torres, J, Kleywegt, GJ & Patwardhan, A (2016) EMPIAR: a public archive for raw electron microscopy image data. Nat Methods 13(5), 387388.CrossRefGoogle ScholarPubMed
Rangan, A, Spivak, M, Andén, J & Barnett, A (2020) Factorization of the translation kernel for fast rigid image alignment. Inverse Probl 36(2), 024001.CrossRefGoogle Scholar
Shi, Y & Singer, A (2022) Ab-initio contrast estimation and denoising of Cryo-EM images. Comput Methods Programs Biomed 224, 107018.Google ScholarPubMed
Zhao, Z, Shkolnisky, Y & Singer, A (2016) Fast steerable principal component analysis. IEEE Trans Comput Imaging 2(1), 112.CrossRefGoogle ScholarPubMed
Lozier, D (2003) NIST Digital Library of Mathematical Functions. http://dlmf.nist.gov/, Release 1.1.5 of 2022-03-15.Google Scholar
Landa, B & Shkolnisky, Y (2017) Approximation scheme for essentially bandlimited and space-concentrated functions on a disk. Appl Comput Harmon Anal 43(3), 381403.CrossRefGoogle Scholar
Landa, B & Shkolnisky, Y (2017) Steerable principal components for space-frequency localized images. SIAM J Imaging Sci 10(2), 508534.CrossRefGoogle ScholarPubMed
Donoho, DL, Gavish, M & Johnstone, IM (2018) Optimal shrinkage of eigenvalues in the spiked covariance model. Ann Stat 46(4), 1742.CrossRefGoogle ScholarPubMed
Guo, H, Gao, Y, Li, T, et al. (2022) Structures of omicron spike complexes and implications for neutralizing antibody development. Cell Reports 39(5), 110770.CrossRefGoogle ScholarPubMed
Lawson, CL, Patwardhan, A, Baker, ML, et al. (2016) EMDataBank unified data resource for 3DEM. Nuc Acids Res 44(D1), D396D403.CrossRefGoogle ScholarPubMed
Barnett, AH (2021) Aliasing error of the $ \exp \left(\beta \sqrt{1-{z}^2}\right) $ kernel in the nonuniform fast Fourier transform. Appl Comput Harmon Anal 51, 116.CrossRefGoogle Scholar
Barnett, AH, Magland, J & Klinteberg, L (2019) A parallel nonuniform fast Fourier transform library based on an “exponential of semicircle” kernel. SIAM J Sci Comput 41(5), C479C504.CrossRefGoogle Scholar
Harris, CR, Millman, KJ, van der Walt, SJ, et al. (2020) Array programming with NumPy. Nature 585(7825), 357362.CrossRefGoogle ScholarPubMed
Virtanen, P, Gommers, R, Oliphant, TE, et al. (2020) SciPy 1.0: fundamental algorithms for scientific computing in python. Nat Methods 17, 261272.CrossRefGoogle ScholarPubMed
Dutt, A & Rokhlin, V (1993) Fast Fourier transforms for nonequispaced data. SIAM J Sci Comput 14(6), 13681393.CrossRefGoogle Scholar
Greengard, L & Lee, J-Y (2004) Accelerating the nonuniform fast Fourier transform. SIAM Review 46(3), 443454.CrossRefGoogle Scholar
Lee, J-Y & Greengard, L (2005) The type 3 nonuniform FFT and its applications. J Comput Phys 206(1), 15.CrossRefGoogle Scholar
Lee, C-H & MacKinnon, R (2017) Structures of the human HCN1 hyperpolarization-activated channel. Cell 168(1–2), 111120.CrossRefGoogle ScholarPubMed
Figure 0

Figure 1. We visualize $ {\log}_{10}\left({\sum}_{i=1}^N{\left|{\hat{h}}_i\left(|\xi |\right)\right|}^2|{\hat{h}}_i\Big(|\eta {\left|\Big)\right|}^2\right) $ for each pair of radial frequencies $ \mid \xi \mid, \mid \eta \mid $ for the experimental dataset EMPIAR-10028(18) obtained from the Electron Microscopy Public Image Archive(19). All values are greater than $ -1 $ in the log scale.

Figure 1

Table 1. Summary of desirable properties of a few different basis candidates.

Figure 2

Figure 2. Timing comparison for covariance matrix estimation of 10,000 images of size $ L\times L $. The old method(15) timing for $ L=512 $ and defocus count $ {10}^4 $ is extrapolated due to time and memory constraints.

Figure 3

Figure 3. Top six eigenimages computed by traditional PCA on $ {10}^6 $ clean images (top panel), our new method on $ {10}^4 $ raw images (middle panel), and traditional PCA on $ {10}^4 $ phase-flipped images (bottom panel). The signal-to-noise ratio for the images for the new method and traditional PCA was 0.1.

Figure 4

Figure 4. Relative estimation error of the covariance matrix (left) and the Fourier ring correlation between the denoised and clean images (right).

Figure 5

Figure 5. Clean, noisy and denoised images. The covariance estimation used $ N=10,000 $ images, and parameters $ L=128 $ and $ M=100 $.

Figure 6

Table 2. Timing comparison in seconds for EMPIAR-10028 (top) and EMPIAR-10081 (bottom).

Figure 7

Figure 6. Denoised images (EMPIAR-10028). The method used $ N=105,247 $ images, from $ M=1081 $ defocus groups, of size $ 360\times 360 $. The clean images are obtained by aligning $ 1000 $ clean projection images (from uniformly distributed viewing directions) with phase-flipped raw images.

Figure 8

Figure 7. Denoised images (EMPIAR-10081). The method used $ N=55,870 $ images, from $ M=53,384 $ defocus groups, of size $ 256\times 256 $. The clean images are obtained by aligning 1000 clean projection images (from uniformly distributed viewing directions) with phase-flipped raw images.