원시데이터 수집 시스템
선정목록으로

A max-cut approach to heterogeneity in cryo-electron microscopy

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Yariv Aizenbud — School of Mathematical Sciences, Tel Aviv University, Israel
  2. Yoel Shkolnisky — School of Mathematical Sciences, Tel Aviv University, Israel
DOI
10.1016/j.jmaa.2019.06.064
저널
Journal of Mathematical Analysis and Applications
발행년도
2019
발행기관
Elsevier BV
피인용수
8
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jmaa.2019.06.064
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2964094932

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 101,233자

본문 펼치기
# A max-cut approach to heterogeneity in cryo-electron microscopy #### Yariv Aizenbud 1 Yoel Shkolnisky 1 1School of Mathematical Sciences, Tel Aviv University, Israel October 4, 2019 Abstract The field of cryo-electron microscopy has made astounding advancements in the past few years, mainly due to advancements in electron detectors’ technology. Yet, one of the key open challenges of the field remains the processing of heterogeneous data sets, produced from samples containing particles at several different conformational states. For such data sets, the algorithms must include some classification procedure to identify homogeneous groups within the data, so that the images in each group correspond to the same underlying structure. The fundamental importance of the heterogeneity problem in cryo-electron microscopy has drawn many research efforts, and resulted in significant progress in classification algorithms for heterogeneous data sets. While these algorithms are extremely useful and effective in practice, they lack rigourous mathematical analysis and performance guarantees. In this paper, we attempt to make the first steps towards rigorous mathematical analysis of the heterogeneity problem in cryo-electron microscopy. To that end, we present an algorithm for processing heterogeneous data sets, and prove accuracy and stability bounds for it. We also suggest an extension of this algorithm that combines the classification and reconstruction steps. We demonstrate it on simulated data, and compare its performance to the state-of the-art algorithm in RELION. Keywords: cryo-electron microscopy, single particle, three-dimensional reconstruction, hetero geneity, classification, max-cut, graph partitioning. AMS Subject Classification: 92C55, 92E10, 68U10, 62H30 ### 1 Introduction The study of the molecular structure of complex proteins has drawn many efforts in the past few decades. Among the many structure determination methodologies available, cryo-electron mi croscopy (cryo-EM) single particle reconstruction (SPR) [9] has become the state-of-the-art tool for structure determination [2], mainly due to the introduction of direct electron detectors, as well as due improvements in the accompanying data processing algorithms [6]. These improve ments resulted in three-dimensional molecular models with unprecedented resolutions as high as 2.2 <sup>˚</sup> A [8]. The tremendous importance and impact of cryo-electron microscopy was unequivocally acknowledged by awarding the 2017 Nobel Prize in Chemistry to the pioneers of the field “for de veloping cryo-electron microscopy for the high-resolution structure determination of biomolecules in solution” [1]. The process of resolving the three-dimensional structure of a molecule using cryo-EM SPR typically consists of the following steps. First, a sample consisting of many copies of the investigated molecule is rapidly frozen and is imaged by an electron-microscope. This results in a large image of the sample, known as a micrograph, containing multiple randomly oriented and positioned particle images. The individual particle images are then segmented from this micrograph, resulting in a stack of images, where each image corresponds to a projection of one of the copies of the molecule in the sample. This process is repeated until a sufficiently large stack of raw images is obtained. The images in the stack are then clustered, aligned, and averaged, resulting in images of improved quality, known as class averages, which are used to remove low-quality raw images from the stack. Next, a low-resolution model of the molecule is generated from the class averages or the raw images themselves, and this model is refined using the stack of raw images into a high-resolution model [11, 30]. Algorithms for estimating a low-resolution model of the investigated molecule are often based on detecting common lines between pairs of images [37, 38, 32]. The underlying assumption of such algorithms is that all images were generated from exactly the same underlying molecule. Unfortunately, in many cases, it is impossible to purify a sample consisting of only a single type of molecule. In such cases, another step is required, which classifies the images into groups such that all images in the same group correspond to the same type of molecule. This problem is known as the heterogeneity problem. There are several approaches to address the heterogeneity problem. These approaches follow one of four paradigms: maximum-likelihood estimation (MLE) [28, 30, 29, 27, 40], covariance matrix estimation [4, 16, 21, 25, 5], reduction to semidefinite programming (SDP) [19], and graph partitioning [31, 15]. Out of the four, maximum-likelihood approaches are the most widely used and have proven very effective in practice. The idea behind maximum-likelihood approaches is to formulate a function that attains its minimum for the correct assignment of the images into the different classes (and orientations), and to search for this minimum using an optimization method such as expectation-maximization. The number of unknowns in the resulting optimization problem is typically very high. In addition to the huge search-space for the optimization, the function that is being minimized is highly non-convex, and it is therefore impossible to provide any guarantees regrading its convergence properties. There are results on convergence of the EM algorithm in some special cases [39], but those do not apply in practical settings. That being said, maximum-likelihood methods are currently considered state-of-the-art and are being widely applied to experimental data sets. The second approach to the heterogeneity problem consists of algorithms that are based on covariance matrix estimation [4, 16, 21, 25]. These algorithms consider the unknown three dimensional volumes of the molecules as realizations of a random variable, and attempt to ap proximate the covariance between any two voxels of the random variable. In [4], it is described how to use the (estimated) covariance matrix to reconstruct the different volumes. The main current limitation of these approaches is their computational complexity, as the covariance matrix that corresponds to a volume of size _L × L × L_ is of size _L_ <sup>3</sup> _× L_ <sup>3</sup>, and thus it is extremely computationally expensive to estimate it for large _L_ . Consequently, covariance-based methods typically require down-sampling the input images to a sufficiently low resolution. The resulting low-resolution volumes may be used to initialize the aforementioned MLE approaches. Recently, a method that uses MLE to directly approximate the principal components of the covariance matrix has been proposed in [36]. A third approach to the heterogeneity problem has been recently proposed in [19], based on the “Non-Unique Games” framework, which was presented and related to cryo-EM in [7]. The Non Unique Games framework provides a representation theoretic approach to studying problems of alignment over compact [7] and non-compact [24] groups. It offers convex relaxations for alignment problems, which are formulated as semidefinite programs (SDPs). Under certain circumstances, the framework guarantees global optimality of the solution. Although this approach seems to be very general, it is currently too computationally expensive and has not yet been applied to cryo-EM data. Finally, the fourth approach to the heterogeneity problem is based on devising a similarity measure for pairs of images, and then assigning the images into different classes based on that similarity measure [31, 15]. The algorithm we propose goes in this direction, in a way that allows us to analyze its properties and to derive some bounds on its accuracy. The idea behind our algorithm is to use a score function to measure the similarity between every pair of images, to construct a weighted graph whose weights are given by these similarities, and then to use a maximum _K_ -cut algorithm to determine which images belong to each class. Our score function assigns low score to images of the same underlying structure, assigns high score to images of different underlying structures, and is designed such that the numerical properties of the resulting algorithm can be explicitly stated and proved. In particular, unlike other works that use graph-based partitioning, in this paper we present an iterative algorithm that uses not only the information of common lines’ correlations but also uses the estimated imaging directions and their consistency with the common lines. Of particular relevance to our work is the algorithm in [31], named “multi-model reconstruc tion”, and so we discuss it in more details. The multi-model reconstruction algorithm takes as an input the projection images, as well as some initial “average model” and the number _K_ of different conformations present in the data. Then, it generates 98 reference images by projecting the initial model in 98 directions (the number 98 is determined by the chosen discretization of the space of three-dimensional orientations), and assigns each input image to one of the directions (by projection matching to the reference images). This results in a partition of the input images to 98 groups. Next, each of the 98 groups is partitioned into _K_ clusters, where the intuition is to partition the set of images assigned to each reference image according to the _K_ underlying structures. Then each of the 98 _K_ clusters is averaged to get 98 _K_ sub-class averages. The next step of the multi-model reconstruction algorithm is to partition the entire set of sub-class averages into _K_ clusters, by trying to group together all images that correspond to the same underlying structure. To that end, a graph is constructed, whose nodes correspond to the sub-class averages, and whose (weighted) edges encode the similarities between the sub-class averages as follows. For each pair of sub-class averages corresponding to different directions (out of the 98), the weight of the corresponding edge is set according to the similarity of the common lines between the sub-class averages (similar images have high weight between them). For each pair of sub-class averages of the same direction, the weight is set to zero (so that two sub-class averages that correspond to the same direction will not be “connected”). Spectral clustering on this graph results in the assignment of all images to _K_ groups, and each such group is used to generate an initial model of one of the conformations present in the data set. This process generates the _K_ starting points for subsequent iterative refinement. There are several key differences between the multi-model reconstruction algorithm of [31] and the one proposed in the current paper. First, the multi-model reconstruction algorithm requires an initial model for generating reference images, whereas the theoretical guarantees of the algorithm in the current paper are independent of any initial model. Second, the key step in the multi-model reconstruction algorithm of clustering the images assigned to the same reference image into _K_ clusters ignores relations between images assigned to different reference images. In contrast, our algorithm considers all images in the data set at once, without any such local per-view processing. Third, the multi-model reconstruction algorithm estimates the initial models for refinement in one step, while our algorithm iterates to improve its estimates. Last, [31] does not present any mathematical analysis to justify the convergence of the algorithm or to demonstrate its properties. This last point is the distinguishing property of our algorithm. It may therefore serve as a first step towards rigorous mathematical analysis of practical algorithms for the heterogeneity problem. The paper is organized as follows. In Section 2, we formulate the problem and set up the required notation. In Section 3, we review the required mathematical background. We describe the algorithm in details in Section 4, and prove its performance bounds in Section 5. We demonstrate the algorithm on simulated data and compare its performance with RELION [29] in Section 6. Some concluding remarks are given in Section 7. ### 2 Problem formulation We start by presenting the homogeneous setting of cryo-EM single particle reconstruction (SPR). Mathematically, a molecule is modeled as a function _φ_ : R <sup>3</sup> _→_ R. Each image _Pi_ generated by the electron microscope is produced by rotating the volume _φ_ by some unknown rotation _Ri_, projecting the rotated volume along the _z_ direction, and convolving the resulting two-dimensional image with the point spread function (PSF) _Hi_ of the microscope. This results in a clean projection image which is shifted by some unknown shift (∆ _xi,_ ∆ _yi_ ) _∈_ R <sup>2</sup> before the noise is added. Explicitly, we can write the forward model in cryo-EM SPR as - _∞_ _−∞_ _Pi_ <sup>_′_</sup> <sup>(</sup> <sup>_x, y_</sup> <sup>) =</sup> _Hi ∗_ _φ_ ( _Rir_ ) _dz_ _,_ _r_ = ( _x, y, z_ ) <sup>_T_</sup> _,_ _i_ = 1 _, . . ., N,_ (1) _Pi_ ( _x, y_ ) = _Pi_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>+ ∆</sup> <sup>_xi, y_</sup> <sup>+ ∆</sup> <sup>_yi_</sup> <sup>) + noise</sup> <sup>_._</sup> The point spread function _Hi_ and it’s Fourier transform, called the contrast transfer function (CTF), are known from the experimental settings or can be estimated. In this (homogeneous) setting, all images are assumed to correspond to exactly the same underlying molecule _φ_ . The goal of cryo-EM structure determination is to recover _φ_ given a finite set of its images _P_ 1 _, . . ., PN_ generated according to (1). In the discrete heterogeneous setting of cryo-EM structure determination considered here, we have _K_ underlying molecules _φ_ 1 _, . . ., φK_, and each two-dimensional image _Pi_ is generated according to (1) from one of _φ_ 1 _, . . ., φK_ . Explicitly, we use the following simplified model of heterogeneous cryo-EM SPR, _Pi_ ( _x, y_ ) = and, the noisy model _Pi_ <sup>_′_</sup> <sup>(</sup> <sup>_x, y_</sup> <sup>) =</sup> - _∞_ _−∞_ - _∞_ _−∞_ _φk_ ( _Rir_ ) _dz,_ _r_ = ( _x, y, z_ ) <sup>_T_</sup> _,_ _i_ = 1 _, . . ., N,_ (2) _φk_ ( _Rir_ ) _dz,_ _r_ = ( _x, y, z_ ) <sup>_T_</sup> _,_ _i_ = 1 _, . . ., N,_ (3) _Pi_ ( _x, y_ ) = _Pi_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>+ ∆</sup> <sup>_xi, y_</sup> <sup>+ ∆</sup> <sup>_yi_</sup> <sup>) + noise</sup> <sup>_,_</sup> where we ignore the CTF. This is in accordance with the common practice that ignores the CTF when estimating an initial model, and only applies phase-flipping to the images [10]. If an image _Pi_ was generated from _φk_ according to (3), then we denote _C_ ( _i_ ) = _k_, that is, the “class” of image _Pi_ is _k_ . We denote by _Gk_ the set of indices of all images that correspond to the molecule _φk_, namely _Gk_ = _{i | C_ ( _i_ ) = _k},_ _k_ = 1 _, . . ., K._ (4) Thus, _G_ 1 _, . . ., GK_ are disjoint sets whose union is equal to the set _{_ 1 _, . . ., N_ _}_ . Our goal is to estimate the sets _Gk_, _k_ = 1 _, . . ., K_, and the rotations _Ri_, _i_ = 1 _, . . ., N_ of (2), given only the images _P_ 1 _, . . ., PN_ . Once these sets and rotations have been estimated, the structures _φ_ 1 _, . . ., φK_ can be reconstructed using standard algorithms [14, 23]. In this work we assume that _K_ is known. This is a common assumption in many works addressing the heterogeneity problem [31, 30] and in all existing software packages. Some works, such as [4, 16], may allow to detect _K_ automatically. A consequence of the dependency on _K_ is that the heterogeneity is assumed to be discrete, namely, that the underlying structure assumes one of _K_ possible conformations. In contrast to this approach, some recent works try to tackle continuous heterogeneity, where the underlying structure exhibits a continuum of conformations [20]. ### 3 Partitioning a graph: max-cut In this section, we present the max-cut problem, its Goemans-Williamson approximation algorithm, and a particular case for which this algorithm is exact. This particular case is used later for the analysis of our algorithm. Let ( _V, E_ ) be a weighted graph, with a set of vertices _V_ and a set of edges _E_ . We denote the nodes in _V_ by _v_ 1 _, . . ., vN_, hence _|V |_ = _N_ . We assume that each edge ( _vi, vj_ ) _∈_ _E_ is associated with a real-valued positive weight _w_ ( _vi, vj_ ). Whenever ( _vi, vj_ ) _̸ ∈_ _E_, we set _w_ ( _vi, vj_ ) = 0. The weighted adjacency matrix _W_ of the graph ( _V, E_ ) is a matrix of size _N ×_ _N_ with entries _wij_ = _w_ ( _vi, vj_ ). For simplicity of notation, we identify the set _{v_ 1 _, . . ., vN_ _}_ with the set _{_ 1 _, . . ., N_ _}_ (via the trivial map _vi_ _�→_ _i_ ). A cut (sometimes called a 2-cut) is a partition of the set of vertices _V_ into two disjoint subsets, namely, into _G_ 1 and _G_ 2 such that _G_ 1 _∪_ _G_ 2 = _{_ 1 _, . . ., N_ _}_ and _G_ 1 _∩_ _G_ 2 = _∅_ . The weight of a cut is defined as _W_ ( _G_ 1 _, G_ 2) = _i∈G_ 1 _,j∈G_ 2 _wij._ (5) The maximum-cut (max-cut) problem is to find a cut whose weight is maximal among all possible cuts. Although this problem has been proven to be NP-complete, it has many approximation algorithms. The currently best approximation algorithm (and assuming the unique games con jecture [17, 13], also the best approximation algorithm possible with polynomial complexity) is a randomized algorithm by Goemans and Williamson [13]. This algorithm guarantees that the value of its returned cut is at least 0.87 of the optimal result with probability as high as required. For a precise formulation of the result see [13]. There is an analogous formulation of the max-cut problem for partitioning a graph into _K_ sub-graphs, which is called max _K_ -cut. In this case, a _K_ -cut is a partition of _V_ into _K_ disjoint sets, that is, into the sets _G_ 1 _, . . ., GK_ such that _K_ _k_ =1 _Gk_ = _V,_ _Gi ∩_ _Gj_ = _∅,_ _i̸_ = _j._ The weight of the cut in this case is defined as _W_ ( _G_ 1 _, . . ., GK_ ) = _K_ _k_ =1 _wij,_ (6) _i∈Gk,j̸∈Gk_ that is, the weight of the cut is the sum of all the edges whose endpoint vertices are in two different sets. Similarly to the Goemans-Williamson algorithm, there are algorithms [12] that can be applied in this case. The results in [12] also give lower bounds on the approximation for different values of _K_ . For some large values of _K_ the bounds are better than the 0.87 ratio of the _K_ = 2 case (e.g., as given in [12], for _K_ = 10 the approximation ratio is better than 0 _._ 92). Although the Goemans-Williamson algorithm finds only an approximate solution, there is a special family of graphs for which its solution is exact. Definition 1. _The_ _graph_ ( _V, E_ ) _is_ _bipartite_ _if_ _its_ _vertices_ _can_ _be_ _partitioned_ _into_ _two_ _disjoint_ _sets_ _such_ _that_ _every_ _edge_ _connects_ _a_ _vertex_ _in_ _the_ _first_ _set_ _to_ _a_ _vertex_ _in_ _the_ _second_ _set._ We next show in Lemma 2 that for a bipartite graph, the Goemans-Williamson algorithm finds the optimal cut (and not an approximation of it). This lemma is used later to analyze the properties of our algorithm. Lemma 2. _The_ _Goemans-Williamson_ _algorithm_ _finds_ _the_ _exact_ _solution_ _for_ _the_ _max-cut_ _problem_ _of_ _a_ _bipartite_ _graph._ The proof of this lemma is based on some detailes of the Goemans-Williamson algorithm, and is given in Appendix A. ### 4 Algorithm description Let _Pi_ and _Pj_ be two images generated according to (2) (using the same _φ_ ), and let the _n_ dimensional Fourier transform _F_ be defined by _f_ ˆ( _ξ_ ) = _F_ ( _f_ )( _ξ_ ) = _ξ_ _∈_ R <sup>_n_</sup> _._ R <sup>_n e−ix_</sup> <sup>_· ξf_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_dx,_</sup> If we denote by _P_ <sup>ˆ</sup> _i_ the two-dimensional Fourier transform of _Pi_ and by _φ_ <sup>ˆ</sup> the three-dimensional Fourier transform of _φ_, then, the Fourier projection-slice theorem [22] implies that _P_ <sup>ˆ</sup> _i_ is the re striction of _φ_ <sup>ˆ</sup> to the plane spanned by the first two columns of _Ri_ of (2). Explicitly, - _ωxRi_ <sup>(1)</sup> _i_ _,_ (7) _P_ ˆ _i_ ( _ωx, ωy_ ) = _φ_ ˆ _i_ <sup>(1)</sup> + _ωyRi_ <sup>(2)</sup> where _Ri_ <sup>(1)</sup> _i_ <sup>(1),</sup> <sup>_R_</sup> _i_ <sup>(2)</sup> _i_ <sup>(2),</sup> <sup>_R_</sup> _i_ <sup>(3)</sup> where _Ri_ <sup>(1),</sup> <sup>_R_</sup> _i_ <sup>(2),</sup> <sup>_R_</sup> _i_ <sup>(3)</sup> are the columns of the rotation matrix _Ri_ . As a consequence of (7), any two (Fourier-transformed) images _P_ <sup>ˆ</sup> _i_ and _P_ <sup>ˆ</sup> _j_ share a common line through the origin, namely, there exist unit vectors _cij, cji_ _∈_ R <sup>2</sup> such that _P_ <sup>ˆ</sup> _i_ ( _ξcij_ ) = _P_ <sup>ˆ</sup> _j_ ( _ξcji_ ) for any _ξ_ _∈_ R. The vectors _cij_ and _cji_ are given explicitly [33] by _,_ _cji_ = _<u>i</u>_ _<u>j</u>_ _∥Ri_ <sup>(3)</sup> _× Rj_ _Ri_ <sup>(3)</sup> _<u>i</u>_ <sup>(3)</sup> _× Rj_ <sup>(3)</sup> _i_ <sup>(3)</sup> _× Rj_ <sup>(3)</sup> _j_ <sup>(3)</sup> <sup>_∥_</sup> _<u>i</u>_ _<u>j</u>_ _∥Ri_ <sup>(3)</sup> _× Rj_ _Ri_ <sup>(3)</sup> _<u>i</u>_ <sup>(3)</sup> _× Rj_ <sup>(3)</sup> _i_ <sup>(3)</sup> _× Rj_ <sup>(3)</sup> _j_ <sup>(3)</sup> <sup>_∥_</sup> _cij_ = 1 0 0 0 1 0 _Ri_ <sup>_T_</sup> 1 0 0 0 1 0 _Rj_ <sup>_T_</sup> _._ (8) A simple method to estimate the common lines from the Fourier transform of projection images (3) is to find the two radial lines in the transformed images (passing through the origin) which have the highest correlation. This procedure is described in [34]. It is also described in [34] how to modify this procedure to handle the unknown shifts in (3). If we lift the vectors _cij_ and _cji_ to R <sup>3</sup> by zero padding, then it can be shown that for all _i_ and _j_ it holds that _Ricij_ = _Rjcji_ (see [32] for a detailed proof). Now, assume that we are given rotations _R_ ˜ _i_ and _R_ ˜ _j_, which are estimates of _Ri_ and _Rj_, as well as vectors _c_ ˜ _ij_ and _c_ ˜ _ji_, which are estimates of _cij_ and _cji_ . Then, we define a similarity score for any pair of images _i_ and _j_ by _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ . This score is 0 if the common lines and the rotations are correct, and is small for small errors in the common lines or in the rotations. The Least Unsquared Deviations (LUD) algorithm [38] finds rotations _R_ <sup>˜</sup> _i_, _i_ = 1 _, . . ., N_, that bring the score <sup>�</sup> _i,j_ <sup>_∥R_</sup> <sup>˜</sup> <sup>_ic_</sup> <sup>˜</sup> <sup>_ij −_</sup> <sup>_R_</sup> <sup>˜</sup> <sup>_jc_</sup> <sup>˜</sup> <sup>_ji∥_</sup> <sup>to a local minimum given only</sup> the common lines _c_ ˜ _ij_ . As the algorithm [38] assumes the homogeneous setting, namely, that all images were generated from the same underlying _φ_, it cannot be directly applied to the heterogeneous setting. However, it can be applied to each of the (unknown) sets _Gk_ of (4). Consider a graph ( _V, E_ ) whose _i_ ’th vertex corresponds to the image _Pi_, and where any two vertices are connected by an edge. Our goal is to partition the vertices of the graph ( _V, E_ ) into the sets _Gk_ of (4). Assume moreover that we are given weights for the edges _E_, and denote by _wij_ the weight of the edge between vertices _i_ and _j_ . In this case, according to (6), the weight of some cut _G_ <sup>˜</sup> = - _G_ ˜1 _, . . .,_ _G_ ˜ _K_ - is equal to - _G_ ˜1 _, . . .,_ _G_ ˜ _K_ is equal to _N_ _j_ =1 _i∈G_ <sup>˜</sup> _k_ _wij_ _−_     _wij,_  _wij_   (9) _W_ ( _G_ <sup>˜</sup> ) = = _K_ _k_ =1 _N_ _i∈G_ <sup>˜</sup> _k,j̸∈G_ <sup>˜</sup> _k_ _i,j∈G_ <sup>˜</sup> _k_ _wij_ = _K_ _k_ =1 _wij_ _−_ _i,j∈G_ <sup>˜</sup> _k_ _K_ _k_ =1 _wij_ = _C −_ _K_ - _k_ =1 _i,j∈G_ <sup>˜</sup> _k_ _i,j_ =1 where _C_ is the sum of all weights in the graph (independent of the partition). Thus, finding the cut that maximizes _W_ ( _G_ <sup>˜</sup> ) is equivalent to finding the cut that minimizes <sup>�</sup> _k_ <sup>_K_</sup> =1 _i,j∈G_ <sup>˜</sup> _k_ <sup>_wij_</sup> <sup>.</sup> <sup>If</sup> <sup>we</sup> cut that maximizes _W_ ( _G_ <sup>˜</sup> ) is equivalent to finding the cut that minimizes <sup>�</sup> _k_ <sup>_K_</sup> =1 _i,j∈G_ <sup>˜</sup> _k_ <sup>_wij_</sup> <sup>.</sup> <sup>If</sup> <sup>we</sup> now set _wij_ = _∥Ricij_ _−_ _Rjcji∥,_ (10) we get that _W_ ( _G_ <sup>˜</sup> ) _≥_ 0 for any partition _G_ <sup>˜</sup>, and that _W_ ( _G_ 1 _, . . ., GK_ ) = 0. In other words, the rotations _R_ 1 _, . . ., RN_ and the partition _G_ = _{G_ 1 _, . . ., GK}_ are obtained as a solution to the optimization problem _k_ =1 min (11) _G,_ ˜ ˜ _R_ <sup>_F_</sup> <sup>( ˜</sup> <sup>_G,_</sup> <sup>_R_</sup> <sup>˜)</sup> <sup>_,_</sup> where _F_ is defined by _i,j∈G_ <sup>˜</sup> _k_ _F_ ( _R,_ <sup>˜</sup> _G_ <sup>˜</sup> ) = _K_ _k_ =1 _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥._ (12) The formulation (11) is used since it results in a generalization of a proven technique (namely, the LUD) to the heterogeneous case. Moreover, the resulting algorithm for the heterogeneous case uses all images at once to estimate a partition. Note however, that the choice of weights given by (10) is not unique. For example, it can be replaced with any rotation invariant metric that is a function of _Ricij_ and _Rjcji_, with only minor changes to subsequent proofs. One such metric is the squared distance which is related to the algorithms in [32, 33]. We choose the LUD score in this paper since it uses only the common lines (and no prior model of the molecule), and it is robust to outliers [38]. Similarly, there are other possibilities for the objective function (11), such as the maximum-likelihood score. The main advantage of (11) is that it is amenable to a rigorous mathematical analysis due to its relations with the max-cut problem. Below, we first propose a “theoretical” algorithm that assumes to get as an input the estimated rotations _R_ <sup>˜</sup> _i_ of (3) (approximations of the rotations _Ri_ of (3)). This assumption is common in many existing algorithms, including [16, 31]. Given the estimated rotations and the estimated common lines, Algorithm 1 below builds the corresponding graph, and returns the classification found by the max- _K_ -cut algorithm. Note that the shifts (∆ _xi,_ ∆ _yi,_ 0) in (3) affect Algorithm 1 only through the procedure of detecting common lines, and are handled as described in [34]. In Section 5 we provide theoretical guarantees for this algorithm. Next we bound the computational complexity of Algorithm 1. In Algorithm 1 we first construct the weights matrix _W_ which costs _O_ ( _N_ <sup>2</sup> ) operations, and then solve the max-cut problem. The complexity of the Goemans-Williamson algorithm is dominated by the complexity of its underling SDP problem. Commonly used interior point methods have complexity of _O_ <sup>˜</sup> ( _N_ <sup>3</sup> <sup>_._</sup> <sup>5</sup> ) [3]. Thus, the complexity of Algorithm 1 is _O_ <sup>˜</sup> ( _N_ <sup>3</sup> <sup>_._</sup> <sup>5</sup> + _N_ <sup>2</sup> ) = _O_ <sup>˜</sup> ( _N_ <sup>3</sup> <sup>_._</sup> <sup>5</sup> ). Since the assumption of having accurate estimates _R_ <sup>˜</sup> _i_ does not always hold, and moreover, the optimization problem (11) is high-dimensional and non-convex, we propose the following descent procedure to find its minimum in practice. Start from an initial estimate for the classification _G_, <u>Algorithm</u> <u>1</u> <u>Classification</u> <u>of</u> <u>heterogeneous</u> <u>data</u> <u>sets</u> <u>from</u> <u>common</u> <u>lines</u> <u>and</u> <u>rotations</u> 1: Input: _{c_ ˜ _ij}_ <sup>_N_</sup> _i,j_ =1 Estimated common lines between all images _P_ 1 _, . . ., PN_ . _R_ ˜1 _, . . .,_ _R_ ˜ _N_ Estimated rotations of all the images. _K_ Number of groups. 2: Output: _G_ <sup>˜</sup> 1 _, . . .,_ _G_ <sup>˜</sup> _K_ Estimated partition of the images into homogeneous groups. 3: for _i_ = 1 to _N_ do 4: for _j_ = 1 to _N_ do 5: _Wij_ _←∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _jcji∥_ _▷W_ is the graph to partition. 6: end for 7: end for - 8: _G_ ˜1 _, . . .,_ _G_ ˜ _K_ _←_ max-K-cut( _W, K_ ) _▷_ Apply max- _K_ -cut. 9: _G_ <sup>˜</sup> = _{G_ <sup>˜</sup> 1 _, . . .,_ _G_ <sup>˜</sup> _K}_ 10: return _G_ <sup>˜</sup> 1 _, . . .,_ _G_ <sup>˜</sup> _K_ and minimize (11) by minimizing alternatingly over the set of rotation _R_ <sup>˜</sup> = _{R_ <sup>˜</sup> _i}i_ =1 _...N_ and the classification of the images _G_ <sup>˜</sup> as follows: 1. Find the minimizing _R_ <sup>˜</sup> for a given partition _G_ <sup>˜</sup> (known from the previous iteration), by applying the LUD algorithm [38] on each _G_ <sup>˜</sup> _k_, _k_ = 1 _, . . ., K_ . 2. Given the new rotations, find a partition _G_ <sup>˜</sup> 1 _, . . .,_ _G_ <sup>˜</sup> _K_ . This can be achieved approximately us ing the Frieze and Jerrum algorithm for Max- _K_ -Cut [12] (or, for _K_ = 2, using the Goemans Williamson algorithm [13]). Once the rotations _R_ <sup>˜</sup> have been estimated in step 1, minimizing (9) with weights given by (10) in step 2 is equivalent to maximizing (11). Note that the objective in (9) is exactly the one maximized by the solution to the max-cut problem applied to the graph ( _V, E_ ) defined above, with weights given by (10). Optimization algorithms for steps 1 and 2 (minimizations over the rotations and the partitions) provide only approximate solutions, and thus, the solution to (11) is also only approximate. Nevertheless, we show later (Theorem 8) that in some cases we can bound the quality of this approximate solution. A detailed description of the algorithm is given in Algorithm 2. As will be demonstrated in Section 6, Algorithm 2 favors balanced classes. The reason for that is as follows. For a balanced partition, the number of edges in the induced cut is larger than for unbalanced partitions. For high levels of noise, the variability of the weights of the edges becomes smaller (loosely speaking meaning that the weights become “similar to each other”). Thus, the score of the cut increases with the number of edges in it, which in turn implies favoring roughly balanced splits of the nodes. <u>Algorithm</u> <u>2</u> <u>Reconstruction</u> <u>from</u> <u>heterogeneous</u> <u>data</u> <u>sets</u> 1: Input: _{c_ ˜ _ij}_ <sup>_N_</sup> _i,j_ =1 Estimated common lines between all images _P_ 1 _, . . ., PN_ . _K_ Number of groups. 2: Output: _R_ <sup>˜</sup> 1 _, . . .,_ _R_ <sup>˜</sup> _N_ Estimated rotations of all the images. _G_ ˜1 _, . . .,_ _G_ ˜ _K_ Estimated partition of the images into homogeneous groups. _▷_ <u>Initialization</u> 3: _G_ <sup>˜(0)</sup> 1 _←{_ 1 _, . . ., N_ _}_ _▷_ Start from an initial guess. For example, all images in _G_ <sup>˜(1)</sup> 1 3: _G_ <sup>˜(0)</sup> 1 _←{_ 1 _, . . ., N_ _}_ _▷_ Start from an initial guess. For example, all images in _G_ <sup>˜(1)</sup> 1 <sup>.</sup> 4: for _k_ = 2 to _K_ do 5: _G_ ˜ <sup>(0)</sup> _k_ _←∅_ 5: _G_ ˜ <sup>(0)</sup> _k_ _←∅_ 6: end for 7: _n ←_ 0 _▷_ Iteration number. 8: repeat 9: _n ←_ _n_ + 1 _▷_ <u>LUD</u> <u>step</u> 10: for _k_ = 1 to _K_ do 11: _Ck_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _c_ ˜ _ij_ _|_ _i_ <sup>(</sup> _k_ <sup>_n−_</sup> <sup>1)</sup> _∧_ _j_ _∈_ _G_ <sup>˜(</sup> _k_ <sup>_n−_</sup> <sup>1)</sup> _k_ - _▷_ Construct common lines matrix for _G_ <sup>˜(</sup> _k_ <sup>_n−_</sup> <sup>1)</sup> . _k_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = - _c_ ˜ _ij_ _|_ _i ∈_ _G_ <sup>˜(</sup> _k_ <sup>_n−_</sup> <sup>1)</sup> _i_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_|_</sup> <sup>_i ∈_</sup> <sup>_G_</sup> <sup>˜</sup> _k_ <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> _k_ <sup>(</sup> <sup>_n_</sup> <sup>))</sup> _▷_ Find rotations for images in _G_ <sup>˜(</sup> _k_ <sup>_n_</sup> <sup>)</sup> 12: _{R_ <sup>˜</sup> _i_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _k_ <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> _}_ = LUD( _Ck_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> 12: _{R_ <sup>˜</sup> _i_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_|_</sup> <sup>_i ∈_</sup> <sup>_G_</sup> <sup>˜</sup> _k_ <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> _}_ = LUD( _Ck_ <sup>(</sup> <sup>_n_</sup> <sup>))</sup> _▷_ Find rotations for images in _G_ <sup>˜(</sup> _k_ <sup>_n_</sup> <sup>)</sup> using LUD [38]. 13: end for 14: _R_ ˜ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _{R_ ˜1 <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_R_</sup> <sup>˜</sup> _N_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_}_</sup> 14: _R_ ˜ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _{R_ ˜1 <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_R_</sup> <sup>˜</sup> _N_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_}_</sup> 15: if _F_ ( _R_ <sup>˜(</sup> <sup>_n_</sup> <sup>)</sup> _,_ _G_ <sup>˜(</sup> <sup>_n−_</sup> <sup>1)</sup> ) _> F_ ( _R_ <sup>˜(</sup> <sup>_n−_</sup> <sup>1)</sup> _,_ _G_ <sup>˜(</sup> <sup>_n−_</sup> <sup>1)</sup> ) then _▷F_ is defined in (12). 16: _R_ ˜ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _R_ ˜ <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> 17: end if _▷_ <u>max-cut</u> <u>step</u> <u>�</u> 18: _G_ ˜ <sup>(</sup> 1 <sup>_n_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_G_</sup> <sup>˜</sup> _K_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> - _←_ Algorithm 1( _{c_ ˜ _ij},_ _R_ <sup>˜(</sup> <sup>_n_</sup> <sup>)</sup> ) 19: _G_ ˜ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _{G_ ˜ <sup>(</sup> 1 <sup>_n_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_G_</sup> <sup>˜(</sup> _K_ <sup>_n_</sup> <sup>)</sup> <sup>_}_</sup> 20: if _F_ ( _R_ <sup>˜(</sup> <sup>_n_</sup> <sup>)</sup> _,_ _G_ <sup>˜(</sup> <sup>_n_</sup> <sup>)</sup> ) _> F_ ( _R_ <sup>˜(</sup> <sup>_n_</sup> <sup>)</sup> _,_ _G_ <sup>˜(</sup> <sup>_n−_</sup> <sup>1)</sup> ) then 21: _G_ ˜ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _G_ ˜ <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> 22: end if 23: until _▷δ_ is a small constant. ��� _F_ ( ˜ _R_ ( _n_ ) _,_ _G_ ˜( _n_ )) _−_ _F_ ( ˜ _R_ ( _n−_ 1) _,_ _G_ ˜( _n−_ 1))��� _≤_ _δ_ 24: return _R_ <sup>˜</sup> 1 <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_R_</sup> <sup>˜</sup> _N_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>and</sup> <sup>_G_</sup> <sup>˜</sup> 1 <sup>(</sup> <sup>_n_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_G_</sup> <sup>˜</sup> _K_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> ### 5 Convergence and error bounds For simplicity of the presentation, we assume in this section that _K_ = 2, as all arguments are easily extended to any _K_ . We will show that Algorithm 2 stops in finite time, and that it is stable around its optimum, namely, that for “good” initial conditions, Algorithm 1 finds an accurate class partition with high probability, or, equivalently, that when the initial partition and rotations are close to the optimum, step 18 of Algorithm 2 finds an accurate class partition with high probability. We start by establishing the finite-time convergence of Algorithm 2. Theorem 3. _The_ _score_ _F_ _in_ _Algorithm_ _2_ _converges_ _monotonically_ _to_ _a_ _minimum_ _or_ _to_ _a_ _saddle_ _point._ _Proof._ Since in each iteration of Algorithm 2 we do not increase the value of _F_ ( _R, G_ ) from (12), we have that _F_ ( _R_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _, G_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> ) _≥_ _F_ ( _R_ ( _n_ +1) _, G_ ( _n_ +1)), and thus _F_ ( _R_ ( _n_ ) _, G_ ( _n_ )) is monotonically non-increasing have that _F_ ( _R_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _, G_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> ) _≥_ _F_ ( _R_ ( _n_ +1) _, G_ ( _n_ +1)), and thus _F_ ( _R_ ( _n_ ) _, G_ ( _n_ )) is monotonically non-increasing and bounded by zero. ( _n_ +1) _, G_ Theorem 3 shows that Algorithm 2 converges, and moreover, that its underlying score (12) is monotonically non-increasing. Since the stopping criteria of Algorithm 2 is that the difference between the scores in successive steps is smaller than some value, this means that the algorithm terminates in finite time. Note that the convergence of the score _F_ of (12) does not necessarily imply that the rotations _R_ and the partition _G_ converge. For example, the rotations and the partition are not even unique for a given score, as the rotations are unique only up to a global rotation and handedness, and any permutation of the classes in the partition will give the same score. Next, we derive error bounds for Algorithm 1. We start by proving that if the common lines are detected correctly, and the rotations are assigned correctly, then the algorithm finds the correct partition _{G_ 1 _, G_ 2 _}_ . Theorem 4. _Suppose_ _that_ _the_ _rotations_ _R_ <sup>˜</sup> 1 _, . . .,_ _R_ <sup>˜</sup> _N_ _and_ _the_ _common_ _lines_ _c_ ˜ _ij_ _∈_ R <sup>2</sup> _in_ _the_ _input_ _of_ _Algorithm_ _1_ _are_ _correct_ _when_ _the_ _images_ _Pi_ _and_ _Pj_ _are_ _in_ _the_ _same_ _class,_ _and_ _are_ _uniformly_ _distributed_ _otherwise._ _Then_ _Algorithm_ _1_ _will_ _find_ _the_ _correct_ _class_ _partitioning._ _Proof._ For the correct rotations _R_ 1 _, . . ., RN_, we have that for any two images _Pi_ and _Pj_ in the same class it holds that _∥Ricij −_ _Rjcji∥_ = 0. For _Pi_ and _Pj_ in different classes, the score _∥Ricij −_ _Rjcji∥_ is a random variable that gets the value 0 with probability 0. Thus, if we consider the graph whose adjacency matrix _W_ is given by _Wij_ = _∥Ricij_ _−_ _Rjcji∥_, we get a bipartite graph, since all images from the same class are not connected (connected with weight 0) and images from different classes are connected with some random weight. By Lemma 2, the Goemans-Williamson algorithm returns the correct partition for this graph. In order to show that for common lines and rotations “close” to the correct ones Algorithm 1 still finds a partition that is “close” to the correct one, we need to define what are “close” common lines and rotations, as well as what are “close” partitions. Definition 5. _Let_ _cij_ _and_ _cji_ _be_ _the_ _correct_ _common_ _line_ _between_ _images_ _Pi_ _and_ _Pj,_ _as_ _defined_ _by_ (8) _._ _Let_ _c_ ˜ _ij_ _and_ _c_ ˜ _ji_ _be some estimates of cij_ _and cji,_ _respectively._ _We define the distance between_ _cij_ _and_ _c_ ˜ _ij_ _and_ _between_ _cji_ _and_ _c_ ˜ _ji_ _as_ _the_ _angle_ _between_ _them,_ _namely,_ _d_ ( _cij,_ ˜ _cij_ ) = arccos _⟨cij,_ ˜ _cij⟩,_ (13) _d_ ( _cji,_ ˜ _cji_ ) = arccos _⟨cji,_ ˜ _cji⟩,_ _where_ _⟨·,_ _· ⟩_ _is_ _the_ _standard_ _dot_ _product_ _in_ R <sup>2</sup> _(and_ arccos _is_ _measured_ _in_ _radians)._ Unless otherwise stated, all matrix norms below refer to the induced 2-norm _∥· ∥_ 2. Lemma 6. _If_ _∥R_ <sup>˜</sup> 1 _−_ _R_ 1 _∥_ _< ε_ _and_ _∥R_ <sup>˜</sup> 2 _−_ _R_ 2 _∥_ _< ε,_ _then_ _∥R_ <sup>˜</sup> 1 _R_ <sup>˜</sup> 2 _−_ _R_ 1 _R_ 2 _∥_ _<_ 2 _ε._ _Proof._ From the triangle inequality and the fact that _∥R∥_ = 1 for any _R_ _∈_ _SO_ (3), we get that _∥R_ <sup>˜</sup> 1 _R_ <sup>˜</sup> 2 _−_ _R_ 1 _R_ 2 _∥_ = _∥R_ <sup>˜</sup> 1 _R_ <sup>˜</sup> 2 _−_ _R_ <sup>˜</sup> 1 _R_ 2 + _R_ <sup>˜</sup> 1 _R_ 2 _−_ _R_ 1 _R_ 2 _∥≤∥R_ <sup>˜</sup> 1( _R_ <sup>˜</sup> 2 _−_ _R_ 2) _∥_ + _∥_ ( _R_ <sup>˜</sup> 1 _−_ _R_ 1) _R_ 2 _∥_ _<_ 2 _ε_ . Next, we define the quality of a partition of a heterogeneous data set. Definition 7. _A_ _partition_ _of_ _P_ 1 _, . . ., PN_ _into_ _the_ _K_ _sets_ _G_ <sup>˜</sup> _i, i_ = 1 _, . . ., K,_ _is_ _called_ _p-precise_ _for_ _class_ _k,_ _k_ = 1 _, . . ., K,_ _if_ ��� _G_ ˜ _k ∩_ _Gk_ ��� _/_ ��� _G_ ˜ _k_ ��� _≥_ _p,_ _where_ _Gk_ _is_ _defined_ _in_ (4) _,_ _and_ _|G|_ _is_ _the_ _number_ _of_ _elements_ _in_ _the_ _set_ _G._ _A_ _partition_ _is_ _p-precise_ _if_ _there_ _is_ _a_ _permutation_ _of_ _the_ _indexes_ 1 _, . . ., K_ _such_ _that_ _it_ _is_ _p-precise_ _for_ _all_ _k._ In other words, a partition of the images _P_ 1 _, . . ., PN_ is _p_ -precise if the ratio between the number of correct images in class _k_ and the total number of images assigned to class _k_ is at least _p_ . Note that the correct partition is 1-precise, and a random partition is about _K_ <u>1</u> <sup>-precise.</sup> Theorem 8 below shows that Algorithm 1 gives “good” results if started from a ”good” initial state. For ease of notation, Theorem 8 is proven for the case _K_ = 2, and we moreover assume that the correct partition satisfies _|G_ 1 _|_ = _|G_ 2 _|_ = _N/_ 2. Theorem 8. _Let_ _P_ 1 _, . . ., PN_ _be_ _N_ _images_ _comprising_ _a_ _heterogeneous_ _data_ _set_ _corresponding_ _to_ _K_ = 2 _._ _Let_ _cij_ _and_ _cji_ _be_ _the_ _common_ _lines_ _between_ _Pi_ _and_ _Pj,_ _and_ _let_ _c_ ˜ _ij_ _and_ _c_ ˜ _ji_ _be_ _some_ _estimate_ _of_ _cij_ _and_ _cji_ _used_ _as_ _the_ _input_ _to_ _Algorithm_ _1._ _Also,_ _let_ _Ri_ _be_ _the_ _rotation_ _corresponding_ _to_ _Pi_ _(see_ (3) _),_ _and_ _let_ _R_ <sup>˜</sup> _i_ _be_ _the_ _rotation_ _used_ _as_ _the_ _input_ _of_ _Algorithm_ _1._ _Let_ _ε >_ 0 _and_ _assume_ _that_ _1._ _∥Ri −_ _R_ <sup>˜</sup> _i∥≤_ _ε,_ _i_ = 1 _, . . ., N_ _._ _2._ _If_ _C_ ( _i_ ) = _C_ ( _j_ ) _then_ _d_ ( _cij,_ ˜ _cij_ ) _≤_ _ε,_ _i, j_ = 1 _, . . ., N_ _,_ _i̸_ = _j._ _3._ _If_ _C_ ( _i_ ) _̸_ = _C_ ( _j_ ) _then_ _c_ ˜ _ij,_ _i, j_ = 1 _, . . ., N_ _,_ _i̸_ = _j,_ _is_ _uniformly_ _distributed_ _and_ _independent_ _of_ _the_ _rotations._ _Then,_ _for_ _a_ _sufficiently_ _large_ _N_ _,_ _with_ _high_ _probability,_ _Algorithm_ _1_ _results_ _in_ _at_ _least_ 0 _._ 87 _−_ 3 _._ 555 _ε-_ _precise_ _partition_ _(according_ _to_ _Definition_ _7)._ Assumption 1 in Theorem 8 states that Algorithm 1 is initialized with rotations that are close to the true ones. Assumption 2 states that common lines between images of the same class are detected with small error. Assumption 3 states that common lines between images of different classes (that therefore have no common line) are uniformly random. This uniformity assumption enables us to put a rigorous bound on the classification error. In real world applications, this assumption is not necessarily valid. In case of non-uniform common lines errors, the proof will follow similarly, provided that it is possible to bound the expected value of the score between two images of different classes, and show that it is not “too small”. The proof of Theorem 8 consists of the following steps: 1. Give an upper bound for the weight _wij_ (defined in the beginning of Section 3) for two images of the same class (Lemma 9 below). 2. Estimate the distribution of the weight _wij_ for two images of different classes. 3. Show that the score (12) for the correct partition (with the given _c_ ˜ _ij_ and _R_ <sup>˜</sup> _i_ ) cannot be too small. 4. For any given cut, estimate the score as a function of the precision of the cut. 5. Estimate the maximal score (12) over all “bad” partitions. 6. Show that with high probability the maximal score over all “bad” partitions is lower then 0 _._ 87 times the score of the correct partition. 7. Since Goemans-Williamson algorithm guarantees a partition with score higher than 0.87 times the score of the correct partition, we deduce that the algorithm cannot return a “bad” partition. Lemma 9. _Following the assumptions of Theorem 8,_ _suppose that Pi_ _and Pj_ _are in the same class._ _Then,_ _for_ _ϵij_ = _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥,_ (14) _it_ _holds_ _that_ 0 _≤_ _ϵij_ _≤_ 4 _ε_ _Proof._ Due to the invariance of the 2-norm to orthogonal transformations, we have that _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ = _∥c_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _jc_ ˜ _ji∥_ = _∥c_ ˜ _ij_ _−_ _cij_ + _cij_ _−_ _R_ <sup>˜</sup> _i_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _jc_ ˜ _ji_ + ( ˜ _Ri_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _jcji −_ _R_ ˜ _i_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _jcji_ ) _∥_ _≤∥c_ ˜ _ij_ _−_ _cij∥_ + _∥cij_ _−_ _R_ <sup>˜</sup> _i_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _jc_ ˜ _ji_ + _R_ ˜ _i_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _jcji −_ _R_ ˜ _i_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _jcji∥_ _≤∥c_ ˜ _ij_ _−_ _cij∥_ + _∥cij_ _−_ ( _R_ <sup>˜</sup> _i_ <sup>_−_</sup> <sup>1</sup> = _∥c_ ˜ _ij_ _−_ _cij∥_ + _∥cij_ _−_ ( _R_ <sup>˜</sup> _i_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _j_ )( _Ri_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _j_ )( _Ri_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> <sup>_Rj_</sup> <sup>)</sup> <sup>_−_</sup> <sup>1</sup> <sup>_cij∥_</sup> <sup>+</sup> <sup>_∥c_</sup> <sup>˜</sup> <sup>_ji −_</sup> <sup>_cji∥_</sup> _i_ <sup>_−_</sup> <sup>1</sup> <sup>_Rj_</sup> <sup>)</sup> <sup>_cji∥_</sup> <sup>+</sup> <sup>_∥R_</sup> <sup>˜</sup> _i_ <sup>_−_</sup> <sup>1</sup> (15) _i_ <sup>_−_</sup> <sup>1</sup> <sup>_Rj_</sup> <sup>)</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_R_</sup> _i_ <sup>_−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> _R_ ˜ _j_ (˜ _cji −_ _cji_ ) _∥_ _≤_ 4 _ε,_ where the last inequality follows from assumptions 1 and 2 in Theorem 8, together with Lemma 6 and the fact that _Ri_ <sup>_−_</sup> <sup>1</sup> <sup>_Rjcji_</sup> <sup>=</sup> <sup>_cij_</sup> <sup>.</sup> _proof_ _of_ _Theorem_ _8._ Let ( _V, E_ ) be a graph whose vertex _vi_ _∈_ _V_ corresponds to the image _Pi_, _i_ = 1 _, . . ., N_, and whose (undirected) edge ( _vi, vj_ ) _∈_ _E_ has weight _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ . A score of a partition is the value of the function _F_ of (12), that is, the sum of the weights of all the edges that connect nodes from one class to nodes from other classes. For _Pi_ and _Pj_ in the same class, namely, _C_ ( _i_ ) = _C_ ( _j_ ), by Lemma 9 and using the notation in (14), we have that 0 _≤_ _ϵij_ _≤_ 4 _ε_ . Next, if _C_ ( _i_ ) _̸_ = _C_ ( _j_ ), we denote _Xij_ = _∥R_ <sup>˜</sup> _ic_ ˜ _ij −_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ . Also, we denote _Xij_ <sup>_′_</sup> <sup>=</sup> <sup>_∥Ric_</sup> <sup>˜</sup> <sup>_ij_</sup> <sup>_−_</sup> <sup>_Rjc_</sup> <sup>˜</sup> <sup>_ji∥_</sup> <sup>,</sup> that is, _Xij_ <sup>_′_</sup> <sup>is defined using the correct rotations.</sup> <sup>Note that both</sup> <sup>_Xij_</sup> <sup>and</sup> <sup>_X_</sup> _ij_ <sup>_′_</sup> <sup>are random variables.</sup> Next, if _C_ ( _i_ ) _̸_ = _C_ ( _j_ ), we denote _Xij_ = _∥R_ <sup>˜</sup> _ic_ ˜ _ij −_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ . Also, we denote _Xij_ <sup>_′_</sup> _ij_ <sup>_′_</sup> <sup>is defined using the correct rotations.</sup> <sup>Note that both</sup> <sup>_Xij_</sup> <sup>and</sup> <sup>_X_</sup> _ij_ <sup>_′_</sup> that is, _Xij_ <sup>_′_</sup> <sup>is defined using the correct rotations.</sup> <sup>Note that both</sup> <sup>_Xij_</sup> <sup>and</sup> <sup>_X_</sup> _ij_ <sup>_′_</sup> <sup>are random variables.</sup> Intuitively, we are going to show that _Xij_ <sup>_′_</sup> <sup>is “much larger” than</sup> <sup>_ϵij_</sup> <sup>with high probability, and that</sup> Intuitively, we are going to show that _Xij_ <sup>_′_</sup> <sup>is “much larger” than</sup> <sup>_ϵij_</sup> <sup>with high probability, and that</sup> _Xij_ is “close” to _Xij_ <sup>_′_</sup> <sup>.</sup> <sup>Thus, to maximize the cut of the graph (</sup> <sup>_V, E_</sup> <sup>), images</sup> <sup>_Pi_</sup> <sup>and</sup> <sup>_Pj_</sup> <sup>of the same</sup> _Xij_ is “close” to _Xij_ <sup>_′_</sup> <sup>.</sup> <sup>Thus, to maximize the cut of the graph (</sup> <sup>_V, E_</sup> <sup>), images</sup> <sup>_Pi_</sup> <sup>and</sup> <sup>_Pj_</sup> <sup>of the same</sup> class (satisfying _C_ ( _i_ ) = _C_ ( _j_ )) for which _ϵij_ is small should be assigned to the same subset of the partition. Since we assume that the common lines _c_ ˜ _ij_ and _c_ ˜ _ji_ for _i_ and _j_ such that _C_ ( _i_ ) _̸_ = _C_ ( _j_ ) are uniformly random and independent of the rotations, the weights _Xij_ <sup>_′_</sup> <sup>are</sup> <sup>i.i.d</sup> <sup>and</sup> <sup>distributed</sup> <sup>as</sup> the distance between two random unit vectors in R <sup>3</sup>, whose distribution is analyzed in [35]. Since we assume that the common lines _c_ ˜ _ij_ and _c_ ˜ _ji_ for _i_ and _j_ such that _C_ ( _i_ ) _̸_ = _C_ ( _j_ ) are uniformly random and independent of the rotations, the weights _Xij_ <sup>_′_</sup> <sup>are</sup> <sup>i.i.d</sup> <sup>and</sup> <sup>distributed</sup> <sup>as</sup> To bound _Xij_, we start by noting that _Xij_ = _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ = _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _Ric_ ˜ _ij_ + _Ric_ ˜ _ij_ _−_ _Rjc_ ˜ _ji_ + _Rjc_ ˜ _ji −_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥,_ (16) and that _∥Ric_ ˜ _ij_ _−_ _Rjc_ ˜ _ji∥−∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _Ric_ ˜ _ij∥−∥Rjc_ ˜ _ji −_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥≤_ _∥Ric_ ˜ _ij_ _−_ _Rjc_ ˜ _ji_ + _R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _Ric_ ˜ _ij_ + _Rjc_ ˜ _ji −_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ - �� <u>�</u> _Xij_ as in (16) with reordered terms = _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _Ric_ ˜ _ij_ + _Ric_ ˜ _ij_ _−_ _Rjc_ ˜ _ji_ + _Rjc_ ˜ _ji −_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥_ - �� <u>�</u> _Xij_ as in (16) _≤∥Ric_ ˜ _ij_ _−_ _Rjc_ ˜ _ji∥_ + _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _Ric_ ˜ _ij∥_ + _∥Rjc_ ˜ _ji −_ _R_ <sup>˜</sup> _jc_ ˜ _ji∥,_ _G_ ˜1 _G_ ˜2 _∼_ _ϵij_ _G_ 2 _G_ 1 _G_ 1 _,_ 2 _G_ 1 _,_ 1 _•_ ... _•_ _•_ _•_ ... _•_ _~~•~~_ _•_ ... _G_ 2 _,_ 2 _•_ _•_ _•_ ... _G_ 2 _,_ 1 _•_ _~~•~~_ Figure 1: Calculating the weight of a cut _G_ <sup>˜</sup> 1, _G_ <sup>˜</sup> 2. The weight of an edge between vertex _i_ in _G_ 1 _,_ 1 and vertex _j_ in _G_ 2 _,_ 1 is the random variable _ϵij_ . The weight of an edge between vertex _i_ in _G_ 1 _,_ 1 and vertex _j_ in _G_ 2 _,_ 2 is the random variable _Xij_ . where the first inequality is due to the reverse triangle inequality and the last is due to the triangle inequality. From assumption 1 in Theorem 8 it follows that _∥R_ <sup>˜</sup> _ic_ ˜ _ij_ _−_ _Ric_ ˜ _ij∥_ = _∥_ ( _R_ <sup>˜</sup> _i_ _−_ _Ri_ )˜ _cij∥≤_ _∥R_ <sup>˜</sup> _i −_ _Ri∥≤_ _ε_, and thus we have _X_ <sup>_′_</sup> _ij_ <sup>_′_</sup> <sup>_−_</sup> <sup>2</sup> <sup>_ε ≤_</sup> <sup>_Xij_</sup> <sup>_≤_</sup> <sup>_X_</sup> _ij_ <sup>_′_</sup> _ij_ <sup>_′_</sup> <sup>+ 2</sup> <sup>_ε._</sup> (17) Next, we analyze the score of an arbitrary partition of _V_, and show that with high probability the score of “bad” partitions is low and of “good” partitions is high. Thus, we get a bound for how “bad” the partition generated by Algorithm 1 can be. Let _G_ 1 and _G_ 2 be the sets defined in (4), and let _G_ <sup>˜</sup> 1 and _G_ <sup>˜</sup> 2 be some partition of the graph ( _V, E_ ). Also, recall that we assume that _K_ = 2 and that _|G_ 1 _|_ = _|G_ 2 _|_ = _N/_ 2. We denote _M_ = _N/_ 2. In our notation, _G_ 1 and _G_ 2 is the ground truth partition of the graph, and _G_ <sup>˜</sup> 1 and _G_ <sup>˜</sup> 2 is the cut returned by our algorithm. We denote _Gk,l_ = _G_ <sup>˜</sup> _k ∩_ _Gl,_ _k, l_ = 1 _,_ 2 _,_ (18) and so ��� _G_ ˜1 _∩_ _G_ 2���= _p_ 2 _M,_ (19) ��� _G_ ˜2 _∩_ _G_ 2���=(1 _−_ _p_ 2) _M,_ _|G_ 1 _,_ 1 _|_ = _|G_ 2 _,_ 1 _|_ = _|G_ 1 _,_ 2 _|_ = ��� _G_ ˜1 _∩_ _G_ 1���= _p_ 1 _M,_ _|G_ 2 _,_ 2 _|_ = ��� _G_ ˜2 _∩_ _G_ 1���=(1 _−_ _p_ 1) _M,_ where 0 _≤_ _p_ 1 _, p_ 2 _≤_ 1 and we have used the fact that _G_ 1 _∪_ _G_ 2 = _V_ and _G_ 1 _∩_ _G_ 2 = _∅_ . Note that _p_ 1 = 1 _,_ _p_ 2 = 0 and _p_ 1 = 0 _,_ _p_ 2 = 1 corresponds to the correct partition. We thus get that ��� _G_ ˜1��� = ( _p_ 1 + _p_ 2) _M,_ ��� _G_ ˜2��� = (2 _−_ _p_ 1 _−_ _p_ 2) _M._ Using the notation of (18), _G_ <sup>˜</sup> 1 is our “estimate” for _G_ 1, and the subsets _G_ 1 _,_ 1 and _G_ 1 _,_ 2 are the subsets of _G_ <sup>˜</sup> 1 that were assigned “correctly” and “incorrectly”, respectively. The case for _G_ 2 _,_ 1 and _G_ 2 _,_ 2 is analogous. The weight of a cut _{G_ <sup>˜</sup> 1 _,_ _G_ <sup>˜</sup> 2 _}_ corresponding to the parameters _p_ 1 and _p_ 2 can be expressed in terms of _Xij_ and _ϵij_ as follows. It equals to the sum of weights of edges between _G_ 1 _,_ 1 and _G_ 2 _,_ 1 (with weight _ϵij_ ), between _G_ 1 _,_ 1 and _G_ 2 _,_ 2 (with weight _Xij_ ), between _G_ 1 _,_ 2 and _G_ 2 _,_ 1 (with weight _Xij_ ), and between _G_ 1 _,_ 2 and _G_ 2 _,_ 2 (with weight _ϵij_ ). A graphical illustration of this setup is given in Figure 1. Formally, by denoting _S_ ( _p_ 1 _, p_ 2) = _W_ ( _G_ <sup>˜</sup> 1 _,_ _G_ <sup>˜</sup> 2) (see (5)), we have that ( _i,j_ ) _∈Bϵ_ _i∈G_ 1 _,_ 2   <sup>�</sup> _j∈G_ 2 _,_ 1 _Xij_ + _ϵij_ (20)   <sup>�</sup> _j∈G_ 2 _,_ 2 _S_ ( _p_ 1 _, p_ 2) = = _≤_ _i∈G_ 1 _,_ 1 ( _i,j_ ) _∈BX_ ( _i,j_ ) _∈BX_ ( _Xij_ <sup>_′_</sup> <sup>+ 2</sup> <sup>_ε_</sup> <sup>) +</sup> <sup>_|Bϵ|_</sup> <sup>4</sup> <sup>_ε,_</sup> (21) _ϵij_ + _j∈G_ 2 _,_ 2 _Xij_   + _ϵij_ + _Xij_ _j∈G_ 2 _,_ 1   where _BX_ = ( _G_ 1 _,_ 1 _× G_ 2 _,_ 2) _∪_ ( _G_ 1 _,_ 2 _× G_ 2 _,_ 1) _,_ _Bϵ_ = ( _G_ 1 _,_ 1 _× G_ 2 _,_ 1) _∪_ ( _G_ 1 _,_ 2 _× G_ 2 _,_ 2) _,_ (22) and (21) was derived using (15) and (17). Note that _|BX|_ = _M_ <sup>2</sup> ( _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2) _,_ _|Bϵ|_ = _M_ <sup>2</sup> ( _p_ 1(1 _−_ _p_ 1) + _p_ 2(1 _−_ _p_ 2)) _._ (23) By (20) and (17), the value of _S_ ( _p_ 1 _, p_ 2) for _p_ 1 = 0 and _p_ 2 = 1 (or symmetrically for _p_ 1 = 1 and _p_ 2 = 0) satisfies    _−_ 2 _εM_ <sup>2</sup> _,_ (24) _S_ (0 _,_ 1) _≥_  <sup>�</sup> ( _i,j_ ) _∈BX_ _Xij_ <sup>_′_</sup> where we have used the fact that in this case _|BX|_ = _M_ <sup>2</sup> and _|Bϵ|_ = 0. The expected value of the right hand side of (24) is _M_ <sup>2</sup> E( _X_ <sup>_′_</sup> ) _−_ 2 _εM_ <sup>2</sup>, where _X_ <sup>_′_</sup> denotes any of the i.i.d random variables _Xij_ <sup>_′_</sup> <sup>,</sup> <sup>and</sup> <sup>E</sup> <sup>denotes</sup> <sup>the</sup> <sup>expected</sup> <sup>value</sup> <sup>of</sup> <sup>a</sup> <sup>random</sup> <sup>variable.</sup> <sup>By</sup> <sup>Chebyshev’s</sup> <sup>inequality,</sup> <sup><u>1</u></sup> (25) _k_ <sup>2</sup> <sup>_._</sup> _P_ _S_ (0 _,_ 1) _< M_ <sup>2</sup> E( _X_ <sup>_′_</sup> ) _−_ 2 _εM_ <sup>2</sup> _−_ _kMσ_ ( _X_ <sup>_′_</sup> ) _<_ <sup><u>1</u></sup> _k_ _M_ we have Choosing _k_ = _√_ _S_ (0 _,_ 1) _≥_ _M_ <sup>2</sup> E( _X_ <sup>_′_</sup> ) _−_ 2 _εM_ <sup>2</sup> _−_ _M_ <sup>3</sup> <sup>_/_</sup> <sup>2</sup> _σ_ ( _X_ <sup>_′_</sup> ) _,_ (26) with probability that converges to 1 as _M_ _→∞_ . Note that the choice _k_ = _√_ with probability that converges to 1 as _M_ _→∞_ . Note that the choice _k_ = _M_ is rather arbitrary, as for our purpose _k_ can be any function of _M_ as long as _k/M_ _→_ 0 as _k_ _→∞_ . Next, we denote by _U_ _⊂_ [0 _,_ 1] <sup>2</sup> the set of pairs ( _p_ 1 _, p_ 2) such that _p_ 1 _M_ and _p_ 2 _M_ are integers, and for any 0 _≤_ _δ_ _≤_ 1, we denote by _Uδ_ the subset of _U_ such that _p_ 1 _≥_ _δ,_ 1 _−p_ 2 _≥_ _δ_ or 1 _−p_ 1 _≥_ _δ, p_ 2 _≥_ _δ_ (each ( _p_ 1 _, p_ 2) _∈_ _Uδ_ corresponds to a partition that is _δ_ -precise in (19)). GW returned score _≥_ 0 _._ 87 _×_ maximal score _≥_ 0 _._ 87 _S_ (0 _,_ 1) We will show that: 0 _._ 87 _S_ (0 _,_ 1) _>_ max(score of non- _δ_ precise partition)        _⇒_ GW return- _δ_ precise partition Figure 2: Illustration of the idea of the proof Since the Goemans-Williamson algorithm returns with high probability a cut whose score is at least 0.87 of the maximal cut, it returns (with high probability) a score higher than 0 _._ 87 times the score of _S_ (0 _,_ 1). Thus, if we show that the maximal score of a non- _δ_ -precise partition is less than 0.87 times the correct partition ( _S_ (0 _,_ 1)), then such a partition cannot be returned. In other words, with high probability Algorithm 1 returns a _δ_ -precise partition. An illustration of this argument is given in Figure 2. Formally, we need to show that - _P_ 0 _._ 87 _S_ (0 _,_ 1) _<_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>_S_</sup> <sup>(</sup> <sup>_p_</sup> <sup>1</sup> <sup>_, p_</sup> <sup>2)</sup> _≪_ 1 _._ (27) Thus, we will focus on finding the maximal _δ_ such that with high probability 0 _._ 87 _S_ (0 _,_ 1) _≥_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>_S_</sup> <sup>(</sup> <sup>_p_</sup> <sup>1</sup> <sup>_, p_</sup> <sup>2)</sup> <sup>_._</sup> (28) We next estimate the maximum score over all cuts with ( _p_ 1 _, p_ 2) _∈_ _U_ _\Uδ_ . Since there are 2 <sup>2</sup> <sup>_M_</sup> possible cuts ( _G_ <sup>˜</sup> 1 _,_ _G_ <sup>˜</sup> 2), we have that _|U_ _\Uδ| ≤|U_ _|_ = 2 <sup>2</sup> <sup>_M_</sup> (note that we assumed that _|G_ 1 _|_ = _|G_ 2 _|_ = _M_, but Algorithm 1 can return _G_ <sup>˜</sup> 1 and _G_ <sup>˜</sup> 2 of any size). Using (21) and Lemma 10 in Appendix B (with _a_ = 2) we get that ( _Xij_ <sup>_′_</sup> <sup>+ 2</sup> <sup>_ε_</sup> <sup>) +</sup> <sup>_|Bϵ|_</sup> <sup>4</sup> <sup>_ε_</sup> max _<_ max ( _p_ 1 _,p_ 2) _∈U_ _\Uδ_ <sup>_S_</sup> <sup>(</sup> <sup>_p_</sup> <sup>1</sup> <sup>_, p_</sup> <sup>2)</sup> ( _p_ 1 _,p_ 2) _∈U_ _\Uδ_ _<_ max ( _p_ 1 _,p_ 2) _∈U_ _\Uδ_ ( _i,j_ ) _∈BX_ - _M_ <sup>2</sup> [( _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2)(E( _X_ <sup>_′_</sup> ) + 2 _ε_ ) + ( _p_ 1(1 _−_ _p_ 1) + _p_ 2(1 _−_ _p_ 2))4 _ε_ ] ~~�~~ <u>log(</u> _<u>|U</u>_ _<u>\Uδ|</u>_ <u>)</u> +2 2 _<u>\Uδ|</u>_ <u>)</u> ~~<u>�</u>~~ _M_ <sup>2</sup> ( _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2) _<_ max ( _p_ 1 _,p_ 2) _∈U_ _\Uδ_ - _M_ <sup>2</sup> [( _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2)(E( _X_ <sup>_′_</sup> ) + 2 _ε_ ) + ( _p_ 1(1 _−_ _p_ 1) + _p_ 2(1 _−_ _p_ 2))4 _ε_ ] <u>�</u> 4 _M_ ~~�~~ ( _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2) + _M_ ) _∈_ _√_ (29) with probability that converges to 1 as _M_ _→∞_ . If we now require that 0 _._ 87 - _M_ <sup>2</sup> E( _X_ <sup>_′_</sup> ) _−_ 2 _εM_ <sup>2</sup> _−_ _kMσ_ ( _X_ <sup>_′_</sup> )� _≥_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>_M_</sup> <sup>2[(</sup> <sup>_p_</sup> <sup>1 +</sup> <sup>_p_</sup> <sup>2</sup> <sup>_−_</sup> <sup>2</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2)(E(</sup> <sup>_X_</sup> <sup>_′_</sup> <sup>) + 2</sup> <sup>_ε_</sup> <sup>) + (</sup> <sup>_p_</sup> <sup>1(1</sup> <sup>_−_</sup> <sup>_p_</sup> <sup>1) +</sup> <sup>_p_</sup> <sup>2(1</sup> <sup>_−_</sup> <sup>_p_</sup> <sup>2))4</sup> <sup>_ε_</sup> <sup>]</sup> _√_ 4 _M_ ~~�~~ ( _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2) _,_ (30) + _M_ then, by (26) and (29) we get that (28) holds, and so does (27), as required. Additionally, for a large enough _M_, we neglect all terms that are not _O_ ( _M_ <sup>2</sup> ) in (30), and thus we require 0 _._ 87 - _M_ <sup>2</sup> E( _X_ <sup>_′_</sup> ) _−_ 2 _εM_ <sup>2�</sup> _≥_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>_M_</sup> <sup>2[(</sup> <sup>_p_</sup> <sup>1 +</sup> <sup>_p_</sup> <sup>2</sup> <sup>_−_</sup> <sup>2</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2)(E(</sup> <sup>_X_</sup> <sup>_′_</sup> <sup>) + 2</sup> <sup>_ε_</sup> <sup>) + (</sup> <sup>_p_</sup> <sup>1(1</sup> <sup>_−_</sup> <sup>_p_</sup> <sup>1) +</sup> <sup>_p_</sup> <sup>2(1</sup> <sup>_−_</sup> <sup>_p_</sup> <sup>2))4</sup> <sup>_ε_</sup> <sup>]</sup> <sup>_._</sup> (31) To sum up the proof thus far, we showed above that if _δ_ is such that 0 _._ 87 _S_ (0 _,_ 1) _>_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>_S_</sup> <sup>(</sup> <sup>_p_</sup> <sup>1</sup> <sup>_, p_</sup> <sup>2)</sup> with probability (denoted henceforth by) _ρ_ that converges to 1 as _M_ _→∞_, then with prob ability _ρ_ Algorithm 1 returns a _δ_ -precise partition. We also showed that if (31) holds, then 0 _._ 87 _S_ (0 _,_ 1) _>_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>_S_</sup> <sup>(</sup> <sup>_p_</sup> <sup>1</sup> <sup>_, p_</sup> <sup>2)</sup> <sup>with</sup> <sup>probability</sup> <sup>_ρ_</sup> <sup>.</sup> <sup>Thus,</sup> <sup>for</sup> <sup>any</sup> <sup>_δ_</sup> <sup>such</sup> <sup>that</sup> <sup>(31)</sup> <sup>holds,</sup> <sup>Algo-</sup> rithm 1 returns a _δ_ -precise partition with probability _ρ_ that converges to 1 as _M_ _→∞_ . To find such a _δ_, we rewrite (31) as 0 _._ 87E( _X_ <sup>_′_</sup> ) _≥_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>(</sup> <sup>_p_</sup> <sup>1 +</sup> <sup>_p_</sup> <sup>2</sup> <sup>_−_</sup> <sup>2</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2)E(</sup> <sup>_X_</sup> <sup>_′_</sup> <sup>) +</sup> <sup>_ε_</sup> <sup>(6(</sup> <sup>_p_</sup> <sup>1 +</sup> <sup>_p_</sup> <sup>2)</sup> <sup>_−_</sup> <sup>4(</sup> <sup>_p_</sup> 1 <sup>2</sup> <sup>+</sup> <sup>_p_</sup> <sup>2</sup> 2 <sup>+</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2) + 1</sup> <sup>_._</sup> <sup>74)</sup> <sup>_,_</sup> and since (6( _p_ 1 + _p_ 2) _−_ 4( _p_ <sup>2</sup> 1 <sup>+</sup> <sup>_p_</sup> <sup>2</sup> 2 <sup>+</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2) + 1</sup> <sup>_._</sup> <sup>74)</sup> <sup>_≤_</sup> <sup>4</sup> <sup>_._</sup> <sup>74</sup> <sup>,</sup> <sup>we</sup> <sup>get,</sup> 0 _._ 87E( _X_ <sup>_′_</sup> ) _≥_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>(</sup> <sup>_p_</sup> <sup>1 +</sup> <sup>_p_</sup> <sup>2</sup> <sup>_−_</sup> <sup>2</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2)E(</sup> <sup>_X_</sup> <sup>_′_</sup> <sup>) + 4</sup> <sup>_._</sup> <sup>74</sup> <sup>_ε,_</sup> or 0 _._ 87 _−_ <sup><u>4</u></sup> <sup>_<u>.</u>_</sup> <sup><u>74</u></sup> <sup>_<u>ε</u>_</sup> max E( _X_ <sup>_′_</sup> ) <sup>_≥_</sup> ( _p_ 1 _,p_ 2) _∈U_ _\Uδ_ <sup>(</sup> <sup>_p_</sup> <sup>1 +</sup> <sup>_p_</sup> <sup>2</sup> <sup>_−_</sup> <sup>2</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2)</sup> <sup>_._</sup> Since E( _X_ <sup>_′_</sup> ) is the expectancy of the distance between two uniformly distributed random points on the unit sphere, which is equal to <sup><u>4</u></sup> 3 <sup>[35],</sup> <sup>we</sup> <sup>have,</sup> 0 _._ 87 _−_ 3 _._ 555 _ε ≥_ ( _p_ 1 _,p_ max2) _∈U_ _\Uδ_ <sup>(</sup> <sup>_p_</sup> <sup>1 +</sup> <sup>_p_</sup> <sup>2</sup> <sup>_−_</sup> <sup>2</sup> <sup>_p_</sup> <sup>1</sup> <sup>_p_</sup> <sup>2)</sup> <sup>_._</sup> (32) That is, for any _δ_ such that (32) holds, Algorithm 1 returns a _δ_ -precise partition with probability _ρ_ . It is easy to see that the set _Uδ_ = [0 _,_ 1] <sup>2</sup> _\_ ( _p_ 1 _, p_ 2) _∈_ [0 _,_ 1] <sup>2</sup> _|_ _p_ 1 _≥_ _δ,_ 1 _−_ _p_ 2 _≥_ _δ_ or 1 _−_ _p_ 1 _≥_ _δ, p_ 2 _≥_ _δ_ satisfies that _U_ _\Uδ_ _⊂Uδ_, and that the maximum of _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2 in _Uδ_ is _δ_ and is achieved on the boundary of _Uδ_ . Hence, max( _p_ 1 _,p_ 2) _∈U_ _\Uδ_ ( _p_ 1 + _p_ 2 _−_ 2 _p_ 1 _p_ 2) _≤_ _δ_ . Thus, for any _δ_ such that 0 _._ 87 _−_ 3 _._ 555 _ε_ _≥_ _δ_ we have that (32) holds, and so we have a _δ_ -precise partition, with probability _ρ_ that converges to 1 when _N_ _→∞_ . The largest _δ_ for which the latter condition holds is _δ_ = 0 _._ 87 _−_ 3 _._ 555 _ε_, and so Algorithm 1 returns a partition which is at least 0 _._ 87 _−_ 3 _._ 555 _ε_ precise. The proof of the more general case _|G_ 1 _|̸_ = _|G_ 2 _|_ follows the same steps, but with different constants appearing in the derivation starting with equation (23) and on. The case where _K̸_ = 2 would require to change the notation in (18) and the score _S_ in (20), but otherwise the proof remains conceptually the same. ### 6 Experimental Results In this section, we show results of Algorithm 2 for simulated data sets (Section 6.2), and compare its performance with RELION [30, 29] (Section 6.3). In both cases, the performance is measured by counting the correctly and incorrectly classified images. In the experiments we quantify the level of noise in the images using the Signal to Noise Ratio (SNR), defined by <u>var(</u> _<u>φav</u>_ <u>)</u> SNR = var( _noise_ ) <sup>_,_</sup> (33) where Φ _av_ is the average volume and var is the variance of a signal. Since the noise we add to the images is Gaussian with zero mean and standard deviation _σ_, the SNR (33) becomes SNR = <sup><u>Power(</u></sup> <sup>_<u>φav</u>_</sup> <sup><u>)</u></sup> _,_ _σ_ <sup>2</sup> or, for any given SNR level, the noise added to the images Gaussian with standard deviation _σ_ = ~~�~~ <u>Power(</u> _<u>φav</u>_ <u>)</u> _._ SNR In [16, 5], the authors define a “heterogeneous SNR” (SNR _het_ ) differently than (33). For the particular case described in Section 6.2, SNR _het_ _≈_ 0 _._ 5 SNR. #### 6.1 Implementation Notes While in the analysis of Algorithm 2 we use the Goemans-Williamson algorithm for the max-cut problem, for which the best performance bound for a polynomial time algorithm can be proven, its results can be improved in practice by applying the following simple heuristic: start with the output of the Goemans-Williamson algorithm as an initial guesses for the cut, make a local search around the guess, and return the best cut detected. This heuristic is described in Algorithm 3. This heuristic can be further improved by starting from multiple initial guesses, one of which is the output of the Goemans-Williamson algorithm. For simplicity of notation, Algorithm 3 is presented for the case of two classes. A similar algorithm for _K_ _>_ 2 is easily deduced. In the experiments below, after running the Goemans-Williamson algorithm, we ran Algorithm 3 with three initializations - one is the output of the GW algorithm and the other two are random initializations. Since Algorithm 3 only improves the score, these initializations guarantee a final cut with the same bound as Goemans-Williamsons algorithm for _K_ = 2 (or the Frieze-Jerrum algorithm for _K_ _>_ 2). We noticed that the naive approach of Algorithm 3 improves in some cases the results. All the experiments were executed in MATLAB on a computer with two Intel Xeon X5560 CPUs running at 2.8GHz and an nVidia GTX TITAN 1080 GPU. The GPU was used only for the common lines search. <u>Algorithm</u> <u>3</u> <u>The</u> <u>“flip”</u> <u>algorithm</u> <u>for</u> <u>the</u> <u>max-cut</u> <u>problem</u> 1: Input: _W_ weights matrix of size _N_ _× N_ . _v_ vector with values _±_ 1 that represent an initial classification. 2: Output: _v_ = ( _v_ 1 _, . . ., vN_ ) with _vi_ = 1 if node _i_ is assigned to class 1, and _vi_ = _−_ 1 otherwise. _▷_ <u>Initialization</u> 3: _score ←_ _v_ <sup>_t_</sup> _Wv_ _▷_ Equivalent to <sup>�</sup> _i,j_ : _vi̸_ = _vj_ <sup>_Wij_</sup> <sup>.</sup> 4: repeat 5: _score_ _~~i~~_ _mproved ←_ _false_ 6: for _i_ = 1 to _N_ do 7: _vi_ _←−vi_ _▷_ Flipping assignment of node _i_ . 8: if _v_ <sup>_t_</sup> _Wv_ _> score_ then 9: _score ←_ _v_ <sup>_t_</sup> _Wv_ 10: _score_ _~~i~~_ _mproved ←_ _true_ 11: else 12: _vi_ = _−vi_ 13: end if 14: end for 15: until _score_ _~~i~~_ _mproved_ == _false_ 16: <u>return</u> _<u>v</u>_ #### 6.2 Simulated molecules ( K = 2, 3 ) To evaluate the performance of Algorithm 2, we first applied it to simulated heterogeneous data sets at various levels of noise. The heterogeneous data sets for the experiment were generated as follows. First, we created two three-dimensional volumes (molecules) corresponding to two types of molecules. The first molecule was a known density map of the 50S subunit of the E. coli ribosome, and the second was its perturbed version created by adding a small ball. The two three-dimensional volumes were chosen deliberately to have similar structures. Visualizations of Figure 3: Volumes used in the _K_ = 2 simulated data experiment. (a) Without noise (b) SNR = 1 (c) SNR = 0.5 (d) SNR = 0.15 (e) SNR = 0.1 (f) SNR = 0.05 Figure 4: A clean projection image and its noisy realizations at different levels of noise. Each image is of size 65 _×_ 65 pixels. the three-dimensional volumes are given in Figure 3. Then, we generated 2500 noiseless projection images of each of the volumes, using uniformly distributed random orientations. The resulting 5000 images, each of size 65 _×_ 65 pixels, comprised our noiseless heterogeneous data set. Finally, for each level of noise, we added to each image in the noiseless data set additive white Gaussian noise at the given noise level, and applied our algorithm to the resulting noisy data set. Note that in this case the two classes have equal sizes with _N_ 1 = _N_ 2 = 2500. As mentioned above, we used for the max-cut step the Goemans-Williamson algorithm and then improved its output using Algorithm 3 with 3 initial starting points (see Section 6.1). The results of the experiments are summarized in Table 1. Each row in the table corresponds to an experiment at a fixed SNR, and shows the number of images assigned to each class, the percentage of correctly detected common lines (defined as common lines whose estimated locations deviate by up to 10 <sup>_◦_</sup> from their true locations known from the simulation), and the precision of the partition measured according to Definition 7. To illustrate the SNR values used, we show in Figure 4 a clean image and its noisy realizations at different levels of noise. In Figure 5 we show the reconstructed volumes using the noisy images and the estimated rotations and class partitions. In the next experiment, we used the same setup as above, except that this time the classes were unbalanced, with _N_ 1 = 4000 and _N_ 2 = 1000. The results of this experiment are summarized in Table 2. One can see from Tables 1 and 2 that the two classes returned by Algorithm 2 tend to Estimated SNR class Correct class % correct Class size Precision class 1 class 2 common lines class 1 2500 0 2500 1 1 91.48% class 2 0 2500 2500 class 1 2500 0 2500 0.5 1 76.15% class 2 0 2500 2500 class 1 2397 12 2409 0.15 0.960 38.07% class 2 103 2488 2591 class 1 2137 253 2390 0.1 0.861 23.46% class 2 363 2247 2610 class 1 2084 277 2361 0.05 0.846 15.86% class 2 416 2232 2639 class 1 1555 848 2403 0.02 0.636 3.11% class 2 945 1652 2597 2500 2500 Table 1: Results of Algorithm 2 for balanced classes. For each SNR, the table presents a confusion matrix that shows how many images were assigned correctly (e.g. images belonging to class 1 that were assigned to class 1) and incorrectly (images belonging to class 1 that were assigned to class 2 or vice versa). The “Class size” column shows the sizes of the estimated class 1 and 2 for each SNR. The precision column is calculated following Definition 7, and the “% correct common lines” is the percentage of the common lines detected within 10 <sup>_◦_</sup> of their correct location. Original SNR=0.15 SNR=0.1 SNR=0.05 SNR = 0.02 Class 1 Class 2 Figure 5: The two volumes reconstructed from the heterogeneous data set at different levels of noise. Note that the volumes were reconstructed directly from the noisy images. Even at SNR = 0.05 it is easy to identify the additional “ball” of Class 2 that does not appear in Class 1. Estimated SNR class Correct class Precision of % correct Class size Precision class 1 class 2 class 1 common lines class 1 3974 0 3974 1 1 0.98 90.48% class 2 26 1000 1026 class 1 3479 0 3479 0.5 1 0.66 73.71% class 2 521 1000 1521 class 1 2699 9 2708 0.15 0.99 0.43 39.15% class 2 1301 991 2292 class 1 2598 34 2632 0.1 0.99 0.41 29.40% class 2 1402 966 2368 class 1 2505 61 2566 0.05 0.98 0.39 16.65% class 2 1495 939 2434 class 1 2305 152 2457 0.02 0.94 0.33 4.79% class 2 1695 848 2543 4000 1000 Table 2: Results of Algorithm 2 for unbalanced classes. For a detailed description of the different columns see Table 1. be of similar size. We see in Table 2 that the estimated class 2 is always larger than its true size, and for higher noise levels it is very clear that the estimated classes tend to be of similar sizes. The intuition for this behavior is that for classes of similar size, the number of edges in the cut is maximal. This behavior can be alleviated by reconstructing a volume from the class to which more images were assigned, which results in a more accurate model for one of the volumes. Using this volume, we can get more accurate estimates for the rotations and common lines, which in turn will result in a better estimate of the partition. The running time of Algorithm 2 depends on its initialization and on the running times of the LUD algorithm, the max-cut algorithm, and the number of iterations used. In the experiments presented in this subsection, the total running time for the whole algorithm (including common lines search) for 5000 images was less then 12 hours allocated as follows: about 2 hours for the common lines search, 4 hours for the initial rotations assignment (this initial assignment is much slower then subsequent assignments, since all the images are in a single class), and about 2 more hours for each max-cut and rotations assignment steps. Finally, we tested the algorithm using simulated data with _K_ = 3 classes. In this case, the three volumes were a density map of the 50S subunit of the E. coli ribosome (the same volume used above for the experiment with _K_ = 2) and its two modified versions. Visualizations of the three volumes are shown in Figure 6. In this experiment we used _N_ 1 = _N_ 2 = _N_ 3 = 1500 and SNR = 0 _._ 15. The results are summarized in Table 3. It is noticeable that for the same noise levels, (a) Volume 1 (b) Volume 2 (c) Volume 3 Figure 6: Volumes used in the _K_ = 3 simulated data experiment. (a) is the original volume; (b) and (c) are the modified versions of (a). the precision for _K_ = 3 is lower than for _K_ = 2. One possible reason for this is that the bound provided by the Frieze-Jerrum algorithm for _K_ = 3 is worse than the bound for _K_ = 2. #### 6.3 Comparison with RELION We next compare the performance of Algorithm 2 to that of RELION [30, 29], which imple ments expectation-maximization algorithms for image and volume classification, and for three dimensional reconstruction. In particular, we demonstrate the well-known weakness of the expectation maximization approach of providing a solution which is optimal only locally, by showing that in some cases RELION returns very accurate results (outperforming Algorithm 2), while in other cases it fails even in “simple” settings. The first experiment uses simulated projections of yeast 80S ribosome-tRNA complexes. The two volumes used in this experiment are EMD-5976 and EMD-5977 from the Electron Microscopy Data Bank EMDB [18], corresponding to rotated and non-rotated conformations of the yeast 80S ribosome-tRNA complexes. According to the 0.5 threshold of the Fourier Shell Correlation (FSC), the two volumes agree to a resolution of is 19 _._ 27 <sup>˚</sup> A. The FSC curve between EMD-5976 and EMD 5977 is presented in Figure 7a. We generated 3000 projections from each of the volumes, each projection of size 100 _×_ 100 pixels, with pixel size of 3 _._ 78 <sup>˚</sup> A. White Gaussian noise was added to the images so that the resulting images have SNR of 0 _._ 5. The images, corresponding STAR file, and the clean volumes are available at `[http://www.math.tau.ac.il/~aizeny/projects_cryo_](http://www.math.tau.ac.il/~aizeny/projects_cryo_hetero.html)` `[hetero.html](http://www.math.tau.ac.il/~aizeny/projects_cryo_hetero.html)` . To apply Algorithm 2 to this dataset, we initialized it with rotations generated using RELION’s “refine3D” procedure, where the “Number of classes” parameter was set to 1. Given this initial ization, Algorithm 2 estimated a partition with precision 0 _._ 99: in class 1 there were 0 images of EMD-5976 and 2977 images of EMD-5977, and in class 2 there were 3000 images of EMD-5976 and 23 images of EMD-5977. The weights matrix _W_ from Step 8 of Algorithm 1 is shown in Figure 8 (values shown in gray-scale). In Figure 8a the images are ordered in some random order (to em phasize the block structure of Figure 8b), and in Figure 8b the images are sorted such that the first Correct class % correct SNR Class size Precision class 1 class 2 class 3 common lines class 1 1452 0 0 1452 1.00 class 2 35 1497 22 1554 0.963 72.11% class 3 13 3 1478 1494 class 1 1418 21 14 1513 0.50 class 2 70 1435 29 1534 0.935 63.61% class 3 12 44 1457 1513 class 1 1407 59 59 1525 0.15 class 2 18 1345 85 1448 0.888 38.14% class 3 75 96 1356 1527 class 1 644 484 391 1519 0.10 class 2 301 566 612 1479 0.33 12.15% class 3 555 450 497 1502 1500 1500 1500 Table 3: Results of Algorithm 2 for _K_ = 3 classes. Resolution=10.18A <u>75.6</u> <u>37.8</u> <u>25.2</u> <u>18.9</u> <u>15.1</u> <u>12.6</u> <u>10.8</u> <u>9.5</u> <u>8.4</u> <u>7.6</u> 0.013 0.026 0.040 0.053 0.066 0.079 0.093 0.106 0.119 0.132 1/A (b) FSC of EMD-0104 and EMD-0105 1 0.8 0.6 0.4 0.2 0 Resolution=19.27A 75.6 37.8 25.2 18.9 15.1 12.6 10.8 9.5 8.4 7.6 0.013 0.026 0.040 0.053 0.066 0.079 0.093 0.106 0.119 0.132 1/A (a) FSC of EMD-5976 and EMD-5977 1 0.8 0.6 0.4 0.2 0 Figure 7: FSC curves comparing the original volumes. 1000 2000 3000 4000 5000 6000 1000 2000 3000 4000 5000 6000 (a) 1000 2000 3000 4000 5000 6000 (b) 1000 2000 3000 4000 5000 6000 Figure 8: The weights matrix _W_ of Algorithm 2. In (a) The images are ordered randomly. In (b) images 1 - 3000 are from EMD-5977 and images 3001 - 6000 are from EMD-5976. Lighter shades correspond to larger weights. 3000 images are of EMD-5976 and the next 3000 are of EMD-5977. Based on the classification of Algorithm 2, we reconstructed two volumes using RELION. The two volumes were reconstructed with resolution of 8.5 <sup>˚</sup> A and 8.6 <sup>˚</sup> A compared to their corresponding volume from the EMDB, and with resolution of 19.8 <sup>˚</sup> A and 20.0 <sup>˚</sup> A compared to the other volume from the EMDB. The FSC curves are presented in Figure 9. The total running time of Algorithm 2 for this dataset on the platform described above is 6 hours and 40 minutes, out of which 6 hours and 20 minutes were required for finding the common lines between the images. To initialize RELION’s 3D classification algorithm for this dataset, we used the two ground truth volumes (used to simulate the projections). The classification estimated by RELION has precision of only 0 _._ 6: in class 1 there were 1781 images of EMD-5976 and 1175 images of EMD 5977, and in class 2 there were 1219 images of EMD-5976 and 1825 images of EMD-5977. During the tests we followed the common practice of running RELION with 25 classification iterations. Next we reconstructed the volumes corresponding to the two classes using RELION (based on the partition made by RELION). The two volumes were reconstructed with resolution of 9.9 <sup>˚</sup> A and 9.9 <sup>˚</sup> A compared with their ground truth, and with resolutions of 11.6 <sup>˚</sup> A and 11.4 <sup>˚</sup> A compared with the ground truth of the other class. In a second experiment, we used the same setting as above, but with EMD-0104 and EMD0105. The resolution between the two volumes is 10 _._ 18 <sup>˚</sup> A (so the volumes are more similar than the volumes in the previous experiment). The FSC curve between EMD-0104 and EMD-0105 is presented in Figure 7b. Algorithm 2 estimated a partition whose precision is 0 _._ 7. Note that the precision in this experiment is lower than the precision in the previous one (comparing EMD-5976 and EMD-5977), although we used the same number of images. Again, using the classification of Algorithm 2, we reconstructed two volumes using RELION. The two volumes were reconstructed 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Angstroms 75.6 37.8 25.2 18.9 15.1 12.6 10.8 9.5 8.4 7.6 ~~Alg. with EMD5976( 8.49A)~~ Alg. with EMD5977(19.79A) ~~RELION with EMD5976( 9.94A)~~ RELION with EMD5977(11.61A) 0.013 0.026 0.040 0.053 0.066 0.079 0.093 0.106 0.119 0.132 1/A 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Angstroms 75.6 37.8 25.2 18.9 15.1 12.6 10.8 9.5 8.4 7.6 ~~Alg. with EMD5976(20.03A)~~ Alg. with EMD5977( 8.63A) ~~RELION with EMD5976(11.44A)~~ RELION with EMD5977( 9.93A) 0.013 0.026 0.040 0.053 0.066 0.079 0.093 0.106 0.119 0.132 1/A (a) FSC curves of volume 1 compared to EMD-5976 and EMD-5977. (b) FSC curves of volume 2 compared to EMD-5976 and EMD-5977. Figure 9: FSC curves comparing the reconstructions made based on the partitions of Algorithm 2 and RELION. The green (solid) lines are the FSC curves with EMD-5976, and the red (dashed) lines are the FSC curves with EMD-5977. Lines with markers are FSC curves of RELION based volumes, and lines without markers FSC curves of Algorithm 2 based volumes. with resolution of 7.9 <sup>˚</sup> A and 8.3 <sup>˚</sup> A when compared with their ground truth, and with resolution of 9.5 <sup>˚</sup> A and 9.6 <sup>˚</sup> A when compared with the ground truth of the other class. The FSC curves are presented in Figure 10. In this case, RELION returned a partition whose precision is 0 _._ 93. We do not have an explanation for the improvement in the performance of RELION between the two experiments. Next, we reconstructed the two volumes using RELION (based on the partition made by RELION). Each volume was reconstructed with resolution of 7.6 <sup>˚</sup> A when compared with its ground truth, and with resolution of 10.6 <sup>˚</sup> A and 11.0 <sup>˚</sup> A when compared with the ground truth of the other class. Next, we show the dependency of the precision on the number of images in the two aforemen tioned experiments. We show in Tables 4 and 5 a summary of the results of applying Algorithm 2 and RELION’s classification in the same setting as above but with different numbers of projection images (the precision is shown for 4000, 6000, and 10000 projection images). It is noticeable that when the two structures in the heterogeneous dataset are “more different” (like in the experiment of EMD-5976 and EMD-5977) then a relatively small number of projection images suffices for a “good” partitioning by Algorithm 2, and adding more projection images increases the precision. When the two structures in the heterogeneous dataset are similar (like in the experiment of EMD 0104 and EMD-0105), more projection images are necessary to get a high precision, and increasing the number of projection images again improves the precision. In Table 5 we see inconsistency in the precision of the partition of RELION. For 6000 images the precision is worse than for 4000 images. It is also evident from Tables 4 and 5 that for the dataset of EMD-5976 and EMD-5977, Algorithm 2 preforms better than RELION for the tested 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Angstroms <u>75.6</u> <u>37.8</u> <u>25.2</u> <u>18.9</u> <u>15.1</u> <u>12.6</u> <u>10.8</u> <u>9.5</u> <u>8.4</u> <u>7.6</u> ~~Alg. with EMD0104( 9.50A)~~ Alg. with EMD0105( 7.88A) ~~RELION with EMD0104(10.58A)~~ RELION with EMD0105( 7.64A) 0.013 0.026 0.040 0.053 0.066 0.079 0.093 0.106 0.119 0.132 1/A 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Angstroms <u>75.6</u> <u>37.8</u> <u>25.2</u> <u>18.9</u> <u>15.1</u> <u>12.6</u> <u>10.8</u> <u>9.5</u> <u>8.4</u> <u>7.6</u> ~~Alg. with EMD0104( 8.27A)~~ Alg. with EMD0105( 9.65A) <u>RELION with EMD0104( 7.58A)</u> RELION with EMD0105(10.98A) 0.013 0.026 0.040 0.053 0.066 0.079 0.093 0.106 0.119 0.132 1/A (a) FSC curves of volume 1 compared to EMD-0104 and EMD-0105. (b) FSC curves of volume 1 compared to EMD-0104 and EMD-0105. Figure 10: FSC curves comparing the reconstructions made based on the partitions of Algorithm 2 and RELION. The green (solid) lines are the FSC curves with EMD-0104, and the red (dashed) lines are the FSC curves with EMD-0105. Lines with markers are FSC curves of RELION based volumes, and lines without markers FSC curves Algorithm 2 based volumes. Precision Volumes 4000 images 6000 images 10000 images EMD-5976 and EMD-5977 0.990 0.991 0.996 EMD-0104 and EMD-0105 0.69 0.70 0.87 Table 4: Results of Algorithm 2 for a different numbers of projections. sizes. On the other hand, in the experiment with EMD-0104 and EMD-0105, although Algorithm 2 improve significantly with the sample size, RELION outperforms Algorithm 2 for all sample sizes. Precision Volumes 4000 images 6000 images 10000 images EMD-5976 and EMD-5977 0.95 0.6 0.96 EMD-0104 and EMD-0105 0.63 0.93 0.99 Table 5: Results of RELION’s Classification for a different numbers of projections. ### 7 Conclusion We presented an algorithm for approximating the class partition of a heterogeneous cryo-EM image data set. We derived theoretical bounds for the algorithm, applied it on simulated data and compared its performance with RELION. As the proposed algorithm is based on the LUD algorithm [38], it is applicable only to molecules without symmetry. However, it can be easily combined with abinitio reconstruction algorithms for molecules with symmetry. Moreover, the LUD algorithm can be completely replaced with other orientation assignment algorithms such as [32], or RELION’s algorithm for orientation assignment. The proposed algorithm can also be supplied with confidence information regarding the score between each pair of images. Such confidence information is available as a byproduct of the algorithms [32, 26], and may further improve the robustness of our algorithm to noise. We noted above that the algorithm “favors” balanced partitions, and thus the case of unbal anced classes may result in less accurate output. This behavior is an inherent drawback of the max-cut problem. A possible future research direction to alleviate this problem is replacing the max-cut formulation with a different optimization problem. ### 8 Acknowledgments We would like to thank Dr. Joakim And´en for his remarks and corrections on a previous version of the paper, Prof. Niv Buchbinder and Prof. Amir Back for their advice regarding optimizations, and the reviewers for there comments. This research was supported by the European Research Council (ERC) under the European Unions Horizon 2020 research and innovation programme (grant agreement 723991 - CRYOMATH), by Award Number R01GM090200 from the NIGMS, by a Fellowship from Jyv¨askyl¨a University and the Clore Foundation. ### Appendix A Proof of Lemma 2 As shown in [13], the solution to the max-cut problem is given by the rank-1 matrix Σ that minimizes trace( _W_ Σ) such that Σ is positive semidefinite, Σ = _σσ_ <sup>_T_</sup> where _σ_ = ( _σ_ 1 _, . . ., σN_ ) <sup>_T_</sup>, and _σi_ _∈{_ +1 _, −_ 1 _}_ . The sign of _σi_ encodes the subset of the cut to which vertex _i_ belongs. Due to the constraint Σ = _σσ_ <sup>_T_</sup>, we have that Σ _ii_ = 1 for all _i_ (where Σ _ij_ are the entries of Σ). The GoemansWilliamson algorithm discards the rank-1 constraint as well as the constraint _σi_ _∈{−_ 1 _,_ 1 _}_, while keeping the constraints that Σ is positive semi-definite and that Σ _ii_ = 1. Thus, the GoemansWilliamson algorithm minimizes trace( _W_ Σ) for Σ positive semidefinite with Σ _ii_ = 1. We now show that the solution obtained by the Goemans-Williamson algorithm satisfies Σ _ij_ _∈_ [ _−_ 1 _,_ 1]. Since the Goemans-Williamson optimization problem optimizes over positive semidefinite matrices Σ, all the 2 _×_ 2 principal minors of Σ are non-negative, that is, det Σ <sup>_ij_</sup> _≥_ 0, where  Σ <sup>_ij_</sup> =  <sup>Σ</sup> <sup>_ii_</sup> Σ _ij_ Σ _ji_ Σ _jj_   _._ In other words, Σ _ii_ Σ _jj_ _−_ Σ _ij_ Σ _ji_ _≥_ 0. Since Σ _ii_ = 1, we get that 1 _−_ Σ _ij_ Σ _ji_ _≥_ 0, or, using the symmetry of Σ, 1 _−_ Σ <sup>2</sup> _ij_ <sup>_≥_</sup> <sup>0.</sup> <sup>Thus,</sup> <sup>_|_</sup> <sup>Σ</sup> <sup>_ij| ≤_</sup> <sup>1.</sup> Without loss of generality, assume that the adjacency matrix of the bipartite graph ( _V, E_ ), denoted by _W_, is a block matrix given by    _,_ (34) _W_ =  <sup>0</sup> <sup>_N_</sup> <sup>1</sup> <sup>_×N_</sup> <sup>1</sup> _AN_ 1 _×N_ 2 _A_ <sup>_T_</sup> _N_ <sup>_T_</sup> _N_ 2 _×N_ 1 0 _N_ 2 _×N_ 2 where _A_ is some _N_ 1 _× N_ 2 matrix with non-negative entries. Denote the elements of _A_ in (34) by _aij_ . Then, _N_ 2 _j_ =1 _N_ 1+ _N_ 2 _j_ =1 _N_ 1 _wij_ Σ _ji_ = _i_ =1 _N_ 2 _j_ =1 _N_ 1 _i_ =1 _aji_ Σ _j,N_ 1+ _i._ (35) trace( _W_ Σ) = _N_ 1+ _N_ 2 _i_ =1 _aij_ Σ _N_ 1+ _j,i_ + Since Σ _ij_ _∈_ [ _−_ 1 _,_ +1], we have that _N_ 1 _a_ = _−_ 2 _i_ =1 _N_ 2 _aij_ _≤_ trace( _W_ Σ) _._ (36) _j_ =1 Clearly, any cut _G_ 1, _G_ 2 of a graph ( _V, E_ ) can be encoded as a vector consisting of +1 and _−_ 1, whose _i_ ’th coordinate equals 1 if node _i_ is in _G_ 1, and equals _−_ 1 if node _i_ is in _G_ 2. In the case of the matrix _W_ in (34), we define _σ_ opt to consist of a block of 1’s of length _N_ 1 followed by a block of _−_ 1’s of length _N_ 2. It can be easily verified that the cut encoded by _σ_ opt corresponds to the matrix Σopt = _σ_ opt _σ_ opt <sup>_T_</sup> <sup>,</sup> <sup>which</sup> <sup>achieves</sup> <sup>the</sup> <sup>bound</sup> <sup>_a_</sup> <sup>in</sup> <sup>(36).</sup> <sup>Thus,</sup> <sup>Σopt</sup> <sup>is</sup> <sup>optimal</sup> <sup>out</sup> <sup>of</sup> <sup>all</sup> <sup>the</sup> positive semidefinite matrices. Since the Goemans-Williamson optimization problem is convex, there are no other minima points, and thus Goemans-Williamson algorithm will return _σ_ opt, which concludes the proof. ### Appendix B Distributions Lemma 10. _Let_ _X_ _be_ _a_ _random_ _variable_ _bounded_ _in_ [0 _, a_ ] _._ _Let_ _Xi_ <sup>_j_</sup> Lemma 10. _Let_ _X_ _be_ _a_ _random_ _variable_ _bounded_ _in_ [0 _, a_ ] _._ _Let_ _Xi_ <sup>_j_</sup> <sup>_be_</sup> <sup>_i.i.d._</sup> <sup>_random_</sup> <sup>_variables_</sup> <sup>_with_</sup> _the_ _same_ _distribution_ _as_ _<u>X.</u>_ _<u>Let</u>_ _Yj_ = <sup>�</sup> _i_ <sup>_N_</sup> =1 <sup>_j_</sup> <sup>_X_</sup> _i_ <sup>_j,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>_._</sup> <sup>_Then,_</sup> <sup>max1</sup> <sup>_≤j≤N Yi_</sup> <sup>_is_</sup> <sup>_bounded_</sup> <sup>_by_</sup> _i_ <sup>_N_</sup> =1 <sup>_j_</sup> <sup>_X_</sup> _i_ <sup>_j_</sup> _i_ <sup>_j,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_N_</sup> <sup>_._</sup> <sup>_Then,_</sup> <sup>max1</sup> <sup>_≤j≤N Yi_</sup> <sup>_is_</sup> <sup>_bounded_</sup> <sup>_by_</sup> max1 _≤j≤N Nj_ E( _X_ ) + _a_ ~~�~~ <u>log2</u> _<u>N</u>_ 22 _<u>N</u>_ ~~<u>�</u>~~ _Nj_ _with_ _probability_ _that_ _converges_ _to_ 1 _as_ _N_ _→∞._ _Proof._ Applying Hoeffding’s inequality to _Yj_ gives _−_ 2 _V ar_ ( _Yj_ ) _t_ <sup>2</sup> _P_ ( _Yj_ _−_ E( _Yj_ ) _≥_ _σ_ ( _Yj_ ) _t_ ) _≤_ _e_ _a_ <sup><u>2</u></sup> _Nj_ _._ Since _Yj_ is a sum of _Nj_ i.i.d. random variables, we get _P_ ( _Yj_ _≥_ E( _Yj_ ) + _σ_ ( _Yj_ ) _t_ ) _≤_ _e_ _<u>−</u>_ <u>2</u> _<u>V ar</u>_ <u>(</u> _<u>X</u>_ <u>)</u> _<u>t</u>_ <sup>2</sup> _a_ <sup><u>2</u></sup> = _e_ <sup>_−ct_</sup> <sup>2</sup> _,_ were _c_ = <sup><u>2</u></sup> <sup>_<u>V ar</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>)</u></sup> (note that _c ≤_ 1 because _X_ is bounded in [0 _, a_ ]). Thus _a_ <sup>2</sup> _P_ ( _Y_ 1 _<_ E( _Y_ 1) + _tσ_ ( _Y_ 1) _, . . ., YN_ _<_ E( _YN_ ) + _tσ_ ( _YN_ )) = _N_ _P_ ( _Yj_ _<_ E( _Yj_ ) + _tσ_ ( _Yj_ )) = _j_ =1 �1 _−_ _e_ <sup>_−ct_</sup> <sup>2�</sup> <sup>_N_</sup> _>_ 1 _−_ _Ne_ <sup>_−ct_</sup> <sup>2</sup> = 1 _−_ _e_ <sup>log2</sup> <sup>_N_</sup> <sup>ln 2</sup> <sup>_−ct_</sup> <sup>2</sup> _,_ (37) where the inequality in (37) follows from Bernoulli’s inequality. In particular, for _t_ = ~~�~~ log2 _N/c_ we have _P_ ( max1 _≤j≤N_ <sup>_Yj_</sup> <sup>_<_</sup> 1 <sup>max</sup> _≤j≤N_ <sup>E(</sup> <sup>_Yj_</sup> <sup>) +</sup> ~~�~~ log2 _N/c_ _σ_ ( _Yj_ )) _≥_ 1 _−_ _e_ <sup>(log2</sup> <sup>_N_</sup> <sup>)(ln 2</sup> <sup>_−_</sup> <sup>1)</sup> _._ Thus, _N_ lim _→∞_ <sup>_P_</sup> <sup>( max</sup> 1 _≤j≤N_ <sup>_Yj_</sup> <sup>_>_</sup> 1 <sup>max</sup> _≤j≤N_ <sup>E(</sup> <sup>_Yj_</sup> <sup>) +</sup> �log2 _N/c_ _σ_ ( _Yj_ )) _→_ 0 _._ Since _Yj_ = <sup>�</sup> _i_ <sup>_N_</sup> =1 <sup>_j_</sup> _i_ <sup>_N_</sup> =1 <sup>_j_</sup> <sup>_X_</sup> _i_ <sup>_j_</sup> _i_ <sup>_j_</sup> <sup>,</sup> <sup>we</sup> <sup>have</sup> E( _Yj_ ) = _Nj_ E( _X_ ) _,_ _σ_ ( _Yj_ ) = ~~�~~ _Njσ_ ( _X_ ) _,_ and thus, _N_ lim _→∞_ <sup>_P_</sup> <sup>( max</sup> 1 _≤j≤N_ <sup>_Yj_</sup> <sup>_>_</sup> 1 <sup>max</sup> _≤j≤N_ <sup>_Nj_</sup> <sup>E(</sup> <sup>_X_</sup> <sup>) +</sup> ~~�~~ log2 _N/c_ ~~�~~ _Njσ_ ( _X_ )) _→_ 0 _,_ or, substituting _c_, ### References _N_ lim _→∞_ <sup>_P_</sup> <sup>( max</sup> 1 _≤j≤N_ <sup>_Yj_</sup> <sup>_>_</sup> 1 <sup>max</sup> _≤j≤N_ <sup>_Nj_</sup> <sup>E(</sup> <sup>_X_</sup> <sup>) +</sup> <sup>_a_</sup> _N_ lim _→∞_ <sup>_P_</sup> <sup>( max</sup> 1 _≤j≤N_ ~~�~~ <u>log2</u> _<u>N</u>_ 2 - _Nj_ ) _→_ 0 _._ [1] The 2017 Nobel Prize in Chemistry - press release. `[http://www.nobelprize.org/nobel_](http://www.nobelprize.org/nobel_prizes/chemistry/laureates/2017/press.html)` `[prizes/chemistry/laureates/2017/press.html](http://www.nobelprize.org/nobel_prizes/chemistry/laureates/2017/press.html)` . [2] Method of the year 2015. _Nature_ _Methods_, 13:1, December 2015. [3] Farid Alizadeh. Interior point methods in semidefinite programming with applications to combinatorial optimization. _SIAM_ _journal_ _on_ _Optimization_, 5(1):13–51, 1995. [4] Joakim And´en, Eugene Katsevich, and Amit Singer. Covariance estimation using conjugate gradient for 3D classification in cryo-EM. In _IEEE_ _12th_ _International_ _Symposium_ _on_ _Biomed-_ _ical_ _Imaging_ _(ISBI)_, pages 200–204. IEEE, 2015. [5] Joakim And´en and Amit Singer. Structural variability from noisy tomographic projections. _SIAM_ _Journal_ _on_ _Imaging_ _Sciences_, 11(2):1441–1492, 2018. [6] Xiao-Chen Bai, Greg McMullan, and Sjors H. W. Scheres. How cryo-EM is revolutionizing structural biology. _Trends_ _in_ _biochemical_ _sciences_, 40(1):49–57, 2015. [7] Afonso S. Bandeira, Yutong Chen, and Amit Singer. Non-unique games over compact groups and orientation estimation in cryo-EM. _arXiv_ _preprint_ _arXiv:1505.03840_, 2015. [8] Alberto Bartesaghi, Alan Merk, Soojay Banerjee, Doreen Matthies, Xiongwu Wu, Jacqueline L. S. Milne, and Sriram Subramaniam. 2.2 <sup>˚</sup> A resolution cryo-EM structure of _β_ -galactosidase in complex with a cell-permeant inhibitor. _Science_, 348(6239):1147–1151, 2015. [9] Yifan Cheng, Nikolaus Grigorieff, Pawel A. Penczek, and Thomas Walz. A primer to single particle cryo-electron microscopy. _Cell_, 161(3):438–449, 2015. [10] Yao Cong and Steven J. Ludtke. Single particle analysis at high resolution. In _Methods_ _in_ _enzymology_, volume 482, pages 211–235. Elsevier, 2010. [11] Joachim Frank. _Three-Dimensional_ _Electron_ _Microscopy_ _of_ _Macromolecular_ _Assemblies:_ _Vi-_ _sualization_ _of_ _Biological_ _Molecules_ _in_ _Their_ _Native_ _State_ . Oxford, 2006. [12] Alan Frieze and Mark Jerrum. Improved approximation algorithms for MAX k-CUT and MAX BISECTION. _Algorithmica_, 18(1):67–81, 1997. [13] Michel X. Goemans and David P. Williamson. Improved approximation algorithms for max imum cut and satisfiability problems using semidefinite programming. _Journal_ _of_ _the_ _ACM_ _(JACM)_, 42(6):1115–1145, 1995. [14] Gabor T. Herman. _Fundamentals_ _of_ _Computerized_ _Tomography:_ _Image_ _Reconstruction_ _from_ _Projections_ . Springer, London, UK, 2nd edition, 2009. [15] Gabor. T. Herman and Miroslaw Kalinowski. Classification of heterogeneous electron micro scopic projections into homogeneous subsets. _Ultramicroscopy_, 108(4):327–338, 2008. [16] Eugene Katsevich, Alexander Katsevich, and Amit Singer. Covariance matrix estimation for the cryo-EM heterogeneity problem. _SIAM_ _Journal_ _on_ _Imaging_ _Sciences_, 8(1):126–185, 2015. [17] Subhash Khot and Nisheeth K. Vishnoi. On the unique games conjecture. In _FOCS_, volume 5, page 3, 2005. [18] Catherine L. Lawson, Ardan Patwardhan, Matthew L. Baker, Corey Hryc, Eduardo Sanz Garcia, Brian P. Hudson, Ingvar Lagerstedt, Steven J. Ludtke, Grigore Pintilie, Raul Sala, John D. Westbrook, Helen M. Berman, Gerard J. Kleywegt, and Wah Chiu. EMDataBank unified data resource for 3DEM. _Nucleic_ _Acids_ _Research_, 44(D1):D396–D403, 2016. [19] Roy R. Lederman and Amit Singer. A representation theory perspective on simultaneous alignment and classification. _arXiv_ _preprint_ _arXiv:1607.03464_, 2016. [20] Roy R. Lederman and Amit Singer. Continuously heterogeneous hyper-objects in cryo-EM and 3-D movies of many temporal dimensions. _arXiv_ _preprint_ _arXiv:1704.02899_, 2017. [21] Hstau Y. Liao, Yaser Hashem, and Joachim Frank. Efficient estimation of three-dimensional covariance and its application in the analysis of heterogeneous samples in cryo-electron mi croscopy. _Structure_, 23(6):1129–1137, 2015. [22] Frank Natterer. _The_ _Mathematics_ _of_ _Computerized_ _Tomography_ . Classics in Applied Mathe matics. SIAM, 2001. [23] Frank Natterer and Frank W¨ubbeling. _Mathematical Methods in Image Reconstruction_ . SIAM Monographs on Mathematical Modeling and Computation. SIAM, 2001. [24] Onur Ozyesil, Nir Sharon, and Amit Singer. Synchronization over cartan motion groups via contraction. _SIAM_ _Journal_ _on_ _Applied_ _Algebra_ _and_ _Geometry_, 2(2):207–241, 2018. [25] Pawel A. Penczek, Joachim Frank, and Christian M.T. Spahn. A method of focused classifi cation, based on the bootstrap 3D variance analysis, and its application to EF-G-dependent translocation. _Journal_ _of_ _structural_ _biology_, 154(2):184–194, 2006. [26] Gabi Pragier, Ido Greenberg, Xiuyuan Cheng, and Yoel Shkolnisky. A graph partitioning ap proach to simultaneous angular reconstitution. _IEEE_ _transactions_ _on_ _computational_ _imaging_, 2(3):323–334, 2016. [27] Ali Punjani, John L. Rubinstein, David J. Fleet, and Marcus A. Brubaker. cryoSPARC: algo rithms for rapid unsupervised cryo-EM structure determination. _Nature_ _methods_, 14(3):290, 2017. [28] Sjors H. W. Scheres. Maximum-likelihood methods in cryo-EM. Part II: application to exper imental data. _Methods_ _in_ _Enzymology_, 482:295, 2010. [29] Sjors H. W. Scheres. Processing of structurally heterogeneous cryo-EM data in RELION. In _Methods_ _in_ _Enzymology_, volume 579, pages 125–157. Elsevier, 2016. [30] Scheres, Sjors H. W. RELION: Implementation of a bayesian approach to cryo-EM structure determination. _Journal_ _of_ _Structural_ _Biology_, 180(3):519–530, 2012. [31] Maxim Shatsky, Richard J. Hall, Eva Nogales, Jitendra Malik, and Steven E. Brenner. Auto mated multi-model reconstruction from single-particle electron microscopy data. _Journal_ _of_ _Structural_ _Biology_, 170(1):98–108, 2010. [32] Yoel Shkolnisky and Amit Singer. Viewing directions estimation in cryo-EM using synchro nization. _SIAM_ _Journal_ _on_ _Imaging_ _Sciences_, 5(3):1088–1110, 2012. [33] Amit Singer and Yoel Shkolnisky. Three-dimensional structure determination from common lines in cryo-EM by eigenvectors and semidefinite programming. _SIAM_ _Journal_ _on_ _Imaging_ _Sciences_, 4(2):543–572, 2011. [34] Amit Singer and Yoel Shkolnisky. Center of mass operators for cryo-EM theory and imple mentation. In _Modeling_ _Nanoscale_ _Imaging_ _in_ _Electron_ _Microscopy_, pages 147–177. Springer, 2012. [35] Herbert Solomon. _Geometric probability_, volume 28 of _CBMS-NSF Regional Conference Series_ _in_ _Applied_ _Mathematics_, chapter 6, page 162. SIAM, 1978. [36] Hemant D. Tagare, Alp Kucukelbir, Fred J. Sigworth, Hongwei Wang, and Murali Rao. Di rectly reconstructing principal components of heterogeneous particles from cryo-EM images. _Journal_ _of_ _structural_ _biology_, 191(2):245–262, 2015. [37] Marin Van Heel and Joachim Frank. Use of multivariate statistics in analysing the images of biological macromolecules. _Ultramicroscopy_, 6(2):187–194, 1981. [38] Lanhui Wang, Amit Singer, and Zaiwen Wen. Orientation determination of Cryo-EM images using least unsquared deviations. _SIAM_ _Journal_ _on_ _Imaging_ _Sciences_, 6(4):2450–2483, 2013. [39] CF Jeff Wu. On the convergence properties of the EM algorithm. _The_ _Annals_ _of_ _statistics_, pages 95–103, 1983. [40] Yili Zheng, Qiu Wang, and Peter C. Doerschuk. Three-dimensional reconstruction of the statistics of heterogeneous objects from a collection of one projection image of each object. _JOSA_ _A_, 29(6):959–970, 2012.

섹션 본문 108문단 · 35,226자

(제목 없음)

1The field of cryo-electron microscopy has made astounding advancements in the past few years, mainly due to improvements in the hardware of the microscopes. Yet, one of the key open challenges of the field remains the processing of heterogeneous data sets, produced from samples containing particles at several different conformational states. For such data sets, one must first classify their images into homogeneous groups, where each group corresponds to the same underlying structure, followed by reconstruction of a three-dimensional model from each of the homogeneous groups. This task has been proven to be extremely difficult.In this paper we present an iterative algorithm for processing heterogeneous data sets that combines the classification and reconstruction steps. We prove accuracy and stability bounds on the algorithm, and demonstrate it on simulated as well as experimental data sets.

Introduction

2The study of the molecular structure of complex proteins has drawn many efforts in the past few decades. Among the many structure determination methodologies available, cryo-electron microscopy (cryo-EM) single particle reconstruction (SPR) [7] has become a widespread and powerful tool [6], due to recent improvements in instrumentation as well as in the accompanying data processing algorithms [4]. These improvements resulted in three-dimensional molecular models with unprecedented resolutions as high as 2.2Å [5].

3The process of resolving the three-dimensional structure of a molecule using cryo-EM SPR typically consists of the following steps. First, a sample consisting of many copies of the investigated molecule is rapidly frozen and is imaged by an electron-microscope. This results in a large image of the sample, known as a micrograph, containing several dozens of particle images. The individual particle images are then segmented from this micrograph, resulting in a stack of images, where each image corresponds to a projection of one of the copies of the molecule in the sample. This process is repeated until a sufficiently large stack of raw images is obtained. The images in the stack are then clustered, aligned, and averaged, resulting in images of improved quality, known as class averages. The class averages are used for obtaining a low resolution model of the molecule, which is then refined using the stack of raw images into a high resolution model [8,20].

4Algorithms for estimating a low resolution model of the investigated molecule are often based on detecting common lines between pairs of images [22,25,27]. The underlying assumption of such algorithms is that all images were generated from exactly the same underlying molecule. Unfortunately, in many cases it is impossible to purify a sample consisting of only a single type molecule. In such cases another step is required, which classifies the images into groups such that all images in the same group correspond to the same underlying structure. This problem is known as the heterogeneity problem.

5There were several previous attempts to address the heterogeneity problem. These attempts typically follow one of three approaches. The first approach consists of algorithms that are based on maximum likelihood estimation (MLE) [19]. The idea of such algorithms is to formulate a function that attains a minimum for the correct assignment of the images into the different classes, and to search for its minimum. As this function is highly nonlinear and very high dimensional, these algorithms critically depend on their initialization, converge only locally, and are overwhelmingly computationally expensive. The second approach is based on approximating the covariance between the voxels of the different volumes [13,14,17]. The resulting covariance matrix describes the differences between the different volumes. The drawback of this method is the high computational complexity needed to approximate the covariance matrix, which becomes prohibitive for volumes of high resolution. The third approach is based on building a similarity measure between pairs of images, and then dividing the images into different classes based on that similarity measure [12,21].

6In this paper we propose an algorithm to address the heterogeneity problem that follows the third approach, and analyze its properties. In particular, we derive bounds on the accuracy of our algorithm. The presented algorithm takes N two-dimensional images generated from one of K different underlying structures, and returns a three-dimensional reconstruction for each of the K structures. We also show that the performance of the algorithm improves (under certain assumptions) not only as the quality of the images improves, but also as the number of images grows. The idea of the algorithm is to use a score to measure the similarity between every two images from the N input images. The important feature of the score is that it gives a low score to images of the same underlying structure, and gives a high score to images of different underlying structures. After calculating the score for every pair of images, we use a maximum k-cut algorithm to determine which of the two-dimensional images belong to each class. Unlike other works that used this approach, in this paper we present an iterative algorithm that uses not only the information of common lines' correlations but also uses the estimated imaging directions and their consistency with the common lines.

7The paper is organized as follows. In Section 2, we formulate the problem and set up the required notation. In Section 3, we review the required mathematical background. We describe the algorithm in details in Section 4, and prove its performance bounds in Section 5. We demonstrate the algorithm on simulated and experimental data in Section 6. Some concluding remarks are given in Section 7.

Problem formulation

8We start by presenting the homogeneous setting of cryo-EM single particle reconstruction. Mathematically, a molecule is modeled as a function φ(x, y, z) describing the electric potential of the molecule. Under an ideal model, each image P i generated by the electron microscope is given by

9where R i ∈ SO (3) is an unknown rotation, which describes the orientation of the molecule φ at the moment of imaging. In this (homogeneous) setting, all images are assumed to correspond to exactly the same underlying molecule φ. The goal of cryo-EM structure determination is to recover φ given a finite set of its images P 1 , . . . , P N generated according to (1).

10In the heterogeneous setting of cryo-EM structure determination, we have K underlying molecules φ 1 , . . . , φ K , and each 2D image P i is generated according to (1) from one of φ 1 , . . . , φ K . Specifically, if image P i was generated from φ k according to (1), then we denote C(P i ) = k, that is, the "class" of image P i is k. We denote by G k the indices of all images that correspond to the molecule φ k , namely

11Thus, G 1 , . . . , G K are disjoint sets whose union is equal to the set {1, . . . , N }. Our goal is to estimate the sets G k , k = 1, . . . , K, and the rotations R i , i = 1, . . . , N . Once these sets and rotations are estimated, the structures φ 1 , . . . , φ K can be reconstructed using standard algorithms [11,16]. In this work we assume that K is known.

Partitioning a graph: max-cut

12In this section we present the max-cut problem, its Goemans-Williamson approximation algorithm, and a particular case for which this algorithm is exact. This particular case is used later for the analysis of our algorithm.

13Let (V, E) be a weighted graph, with a set of vertices V and a set of edges E. We denote the nodes in V by v 1 , . . . , v N , so that |V | = N . We assume that each edge

14The adjacency matrix W of the graph (V, E) is a matrix of size N × N with entries w ij = w(v i , v j ). For simplicity of notation, we identify the set {v 1 , . . . , v N } with the set {1, . . . , N } (via the trivial map v i → i). A cut (sometimes called a 2-cut) is a partition of the set of vertices V into two disjoint subsets , namely, into G 1 and G 2 such that G 1 ∪ G 2 = {1, . . . , N } and G 1 ∩ G 2 = ∅. The weight of a cut is defined as

15The maximum-cut (max-cut) problem is to find a cut whose weight is maximal among all possible cuts. Although this problem has been proven to be NP-complete, it has many approximation algorithms. The currently best approximation algorithm (and assuming the unique games conjecture, also the best approximation possible with polynomial complexity) is a randomized algorithm by Goemans and Williamson [10]. This algorithm guarantees that the value of its returned cut is at least 0.87 of the optimal result. There is an analogous formulation to the max-cut problem for partitioning a graph into K sub-graphs, which is called max K-cut. In this case, a K-cut is a partition of V into K disjoint sets, that is, into the sets G 1 , . . . , G K such that

16The weight of the cut in this case is defined as

17that is, the weight of the cut is the sum of all the edges whose endpoint vertices are in two different sets. Similar to the Goemans-Williamson algorithm, there are algorithms [9] that can be applied in this case, which result, for some values of K, in even better approximation bounds than for the K = 2 case. Although the Goemans-Williamson algorithm finds only an approximate solution, there is a special family of graphs for which its solution is exact.

18Definition 1. The graph (V, E) is bipartite if its vertices can be divided into two disjoint sets such that every edge connects a vertex in the first set to one in the second set.

19We next show in Lemma 2 that for a bipartite graph, the Goemans-Williamson algorithm finds the optimal cut (and not an approximation of it). This lemma is used later to analyze the properties of our algorithm.

20Lemma 2. The Goemans-Williamson algorithm finds the exact solution for the max-cut problem of a bipartite graph.

21Proof. As shown in [10], the solution to the max-cut problem is given by the rank-1 matrix Σ that minimizes trace(W Σ) such that Σ is positive semidefinite, Σ = σσ T where σ = (σ 1 , . . . , σ N ) T , and σ i ∈ {+1, −1}. The sign of σ i represents the subset of the cut in which vertex i is included. The Goemans-Williamson algorithm discards the rank-1 assumption, that is, minimizes trace(W Σ) for Σ positive semidefinite with σ ii = 1.

22Without loss of generality, assume that the adjacency matrix of the bipartite graph (V, E), denoted by W , is a block matrix with the structure

23Since σ ij ∈ {+1, −1}, if we denote the elements of A in (5) by a ij , we have that

24Any cut G 1 , G 2 of a graph (V, E) can be encoded as a vector consisting of +1 and −1, whose i'th coordinate equals 1 if node i is in G 1 , and equals −1 if node i is in G 2 . In the case of the matrix W in (5), we define σ opt to consist of a block of 1's of length N 1 followed by a block of −1's of length N 2 . It can be easily verified that the cut encoded by σ opt achieves the bound a in (6) and is thus optimal. We denoteΣ = σ opt σ opt T . We now show thatΣ is the minimum of the Goemans-Williamson optimization problem (i.e., without the rank-1 restriction). Since the Goemans-Williamson optimization problem optimizes over positive semidefinite matrices Σ, all the 2 × 2 main minors of Σ are non-negative, that is, det Σ ij ≥ 0, where

25In other words, σ ii σ jj − σ ij σ ji ≥ 0. Since σ ii = 1 we get that 1 − σ ij σ ji ≥ 0 or, using the symmetry

26Since the entries of Σ are less than or equal to 1, the least possible value of (7) is

27which is achieved byΣ.

Algorithm description

28Let P i and P j be two images generated according to (1) (using the same φ). If we denote byP i the two-dimensional Fourier transform of P i and byφ the three-dimensional Fourier transform of φ, then, the Fourier projection-slice theorem [15] implies thatP i is the restriction ofφ to the plane spanned by the first two columns of R i of (1). Explicitly,

29where R

30(1)

31are the columns of the rotation matrix R i . As a consequence of (8), any two (Fourier-transformed) imagesP i andP j share a common line through the origin, namely, there exist direction vectors c ij , c ji ∈ R 2 such thatP i (ξc ij ) =P j (ξc ji ) for any ξ ∈ R. The vectors c ij and c ji are given explicitly by [23]

32If we further lift the vectors c ij and c ji to R 3 by zero padding, then it can be shown that for all i and j it holds that R ij c ij = R ji c ji (see [22] for a detailed proof). Now assume that we are given rotationsR i andR j , which are estimates of R i and R j , as well as vectorsc ij andc ji , which are estimates for c ij and c ji . Then, we define a similarity score for any pair of images i and j by R icij −R jcji . This score is 0 if the common lines and the rotations are correct, and is small for small errors in the common lines or in the rotations. The LUD algorithm [27] finds rotationsR i , i = 1, . . . , N that bring the score i,j R icij −R jcji to a local minimum.

33As the algorithm [27] assumes the homogeneous setting, namely, that all images were generated from the same underlying φ, it cannot be applied directly to the heterogeneous setting. However, it can be applied to each of the (unknown) sets G k of (2).

34Consider a graph (V, E) whose i'th vertex corresponds to image P i , and where any two vertices are connected by an edge. Our goal is to partition the vertices of the graph (V, E) into the sets G k of (2). Assume moreover that we are given weights for the edges E, and denote by w ij the weight of the edge between vertices i and j. In this case, according to (4), the weight of some cut G = G 1 , . . . ,G K is equal to

35where C is the sum of all weights in the graph (independent of the partition). Thus, finding the cut that maximizes W (G) is equivalent to finding the cut minimizing K k=1 i,j∈G k w ij . If we now set

36we get that W (G) ≥ 0 for any partitionG, and that W (G 1 , . . . , G K ) = 0. In other words, the rotations R 1 , . . . , R N and the partition G = {G 1 , . . . , G K } are obtained as the solution to the optimization problem

37Since the optimization problem in (12) is high-dimensional and non-convex, we propose the following descend procedure to find its minimum. Start from an initial estimate for R and G, and minimize (12) by minimizing alternatingly overR andG as follows:

381. Find the minimizingR for a given partitionG (known from the previous iteration), by applying the LUD algorithm [27] on each ofG k , k = 1, . . . , K.

392. Given the new rotations, find a partitionG 1 , . . . ,G K . This can be achieved approximately using the Goemans-Williamsons algorithm [10].

40Once the rotationsR have been estimated in step 1, minimizing (12) in step 2 is equivalent to maximizing (10) with weights given by (11). However, the objective in (10) is exactly the one maximized by the solution to the max-cut problem applied to the graph (V, E) defined above, with weights given by (11). Optimization algorithms for steps 1 and 2 (minimizations over the rotations and the partitions) provide only approximate solutions, and thus, the solution to (12) is also only approximate. Nevertheless, we show later (Theorem 8) that in some cases we can bound the quality of this approximate solution. A detailed description of the algorithm is given in Algorithm 1.

41Algorithm 1 Reconstruction from heterogeneous data sets 1: Input: c ij Common lines between all images P 1 , . . . , P N . K Number of groups. 2: Output:R 1 , . . . ,R N Estimated rotations of all the images.

42G 1 , . . . ,G K Estimated partition of the images into homogeneous groups. Initialization

43Start from an initial guess. For example, all images inG

44Iteration number. 8: repeat 9: n ← n + 1 LUD step 10: for k = 1 to K do 11:

45Find rotations for images inG (n) k using LUD [27]. 13:

46Where F is defined in (13). 15:R (n) =R (n−1) 16: end if 17: end for max-cut step 18: for i = 1 to N do 19: for j = 1 to N do 20:

47W is the graph to partition.

48Apply max K-cut. 24:

49The algorithm converges. 29: returnR

Convergence and error bounds

50For simplicity of the presentation, we assume in this section that K = 2, as all arguments are easily extended to any K. We will show that Algorithm 1 converges, and that it is stable around its optimum, namely, that when the initial partition and rotations are close to the optimum, step 23 of Algorithm 1 finds a good class partition with high probability.

51We start by establishing the convergence of Algorithm 1.

52Theorem 3. Algorithm 1 converges.

53Proof. We denote the objective function from (12) by

54Since in each iteration of Algorithm 1 we do not increase the value of F (R, G), we have that F (R (n) , G (n) ) ≥ F (R (n+1) , G (n+1) ), and thus F (R (n) , G (n) ) is monotonically non-increasing and bounded by zero.

55Next, we derive error bounds for Algorithm 1. We start by proving that if the common lines are detected correctly, and the rotations are assigned correctly, then the algorithm finds the correct partition {G 1 , G 2 }.

56Theorem 4. Suppose that the common lines c ij ∈ R 2 in Algorithm 1 are correct when the images P i and P j are in the same class, and are uniformly distributed otherwise. If the rotations R 1 , . . . , R N in step 12 of Algorithm 1 are assigned correctly, then Algorithm 1 will find the correct class partitioning when executing step 23.

57Proof. For the correct rotations R 1 , . . . , R N , we have that for any two images P i and P j in the same class it holds that R i c ij − R j c ji = 0. For P i and P j in different classes, the score R i c ij − R j c ji is a random variable that gets the value 0 with probability 0. Thus, if we consider the graph whose adjacency matrix W is given by W ij = R i c ij − R j c ji , we get a bipartite graph, since all the images from the same class are not connected and images from different classes are connected with some random weight. By Lemma 2, the Goemans-Williamson algorithm returns the correct partition for this graph.

58In order to show that for common lines and rotations "close" to the correct ones, Algorithm 1 still finds a partition that is "close" to the correct one, we need to define what are "close" common lines and rotations, as well as what are "close" partitions.

59Definition 5. Let c ij and c ji be the correct common line between images P i and P j , as defined by (9). Letc ij andc ji be some estimate of c ij and c ji , respectively. We define the distance between c ij andc ij as the angle between them, namely,

60where · , · is the standard dot product in R 2 .

61Unless otherwise stated, all norms below refer to the induced 2-norm · 2 .

62Proof. From the triangle inequality and the fact that R = 1 for any R ∈ SO(3), we get that

63Next, we define the quality of a partition of a heterogeneous data set.

64Definition 7. A partition of P 1 , . . . , P N into the setsG 1 ,G 2 is called p-precise for class k, k = 1, 2,

65, and |G| is the number of elements in the set G. A partition is p-precise if it is p-precise for all k.

66In other words, a partition of the images P 1 , . . . , P N is p-precise if the ratio between the number of correct images in class k and the total number of images assigned to class k is at least p. Note that the correct class partition is 1-precise, and a random class partition is about 1 K -precise. Theorem 8 below shows that step 23 of Algorithm 1 gives "good" results if we start from a "good" initial state. For ease of notation, Theorem 8 is proven for the case K = 2 , and we moreover assume that the correct partition satisfies |G 1 | = |G 2 | = N/2. Theorem 8. Let P 1 , . . . , P N be N images comprising a heterogeneous data set corresponding to K = 2. Let c ij be the common line between P i and P j , and letc ij be some estimate of c ij used as the input to Algorithm 1. Also, let R i be the rotation corresponding to P i (see (1)), and letR i be the rotation estimated in step 12 of Algorithm 1. Let ε > 0 and assume that 1. R i −R i ≤ ε, i = 1, . . . , N .

672. If C(P i ) = C(P j ) then d(c ij ,c ij ) ≤ ε, i, j = 1, . . . , N .

683. If C(P i ) = C(P j ) thenc ij is uniformly distributed and independent of the rotations, i, j = 1, . . . , N .

69Then, for sufficiently large N , with high probability, step 23 in Algorithm 1 results in at least 0.87 − 63 4 ε-precise partition (according to Definition 7). Assumption 1 in Theorem 8 states that the algorithm finds rotations that are close to the true ones. Assumption 2 states that common lines between images of the same class are detected with small error. Assumption 3 states that common lines between images of different classes (that therefore have no common line) are random, namely, we don't make consistent errors when detecting common lines that do not exist.

70Proof. Let (V, E) be a graph whose vertex v i ∈ V corresponds to image P i , i = 1, . . . , N , and whose (undirected) edge (v i , v j ) ∈ E has weight R icij −R jcji . If P i and P j are in the same class, namely, C(P i ) = C(P j ), we denote ij = R icij −R jcji . Then,

71where the last inequality follows from assumptions 1 and 2 in Theorem 8, together with Lemma 6. In other words, 0 ≤ ij ≤ 4ε.

72Next, if C(P i ) = C(P j ), we denote X ij = R icij −R jcji . Also, we denote X ij = R icij −R jcji , that is, X ij is defined using the correct rotations. Note that both X ij and X ij are random variables. Intuitively, we are going to show that X ij is "much larger" than ij with high probability, and that X ij is "close" to X ij . Thus, to maximize the cut of the graph (V, E), images P i and P j of the same class (satisfying C(P i ) = C(P j )) for which ij is small, should be assigned to the same subset of the partition.

73Since we assume that the common linesc ij for i and j such that C(P i ) = C(P j ) are uniformly random and independent of the rotations, the weights X ij are i.i.d and distributed as the distance between two random unit vectors in R 3 , whose distribution is specified in Lemma 9 in Appendix A.

74Note that,

From assumption 1 in Theorem 8 it follows that R

75Next, we analyze the score of an arbitrary partition of V and show that with high probability the score of "bad" partitions is low and of "good" partitions is high. Thus, we get a bound for how "bad" the partition generated by Algorithm 1 can be. Let G 1 and G 2 be the sets defined in (2), Figure 1: Calculating the weight of a cutG 1 ,G 2 . The weight of an edge between vertex i in G 1,1 and vertex j in G 2,1 is the random variable ij . The weight of an edge between vertex i in G 1,1 and vertex j in G 2,2 is the random variable X ij . and letG 1 andG 2 be some partition of the graph (V, E). Also, recall that we assume that K = 2 and that |G 1 | = |G 2 | = N/2. We denote M = N/2. Intuitively, G 1 and G 2 is the ground truth partition of the graph, andG 1 andG 2 is the cut returned by our algorithm. We denote

76and so

77where 0 ≤ p 1 , p 2 ≤ 1 and we have used the fact that G 1 ∪ G 2 = V and G 1 ∩ G 2 = ∅. We thus get that G 1 = (p 1 + p 2 )M, G 2 = (2 − p 1 − p 2 )M.

78Using the notation of (17),G 1 is our "estimate" for G 1 , and the subsets G 1,1 and G 1,2 are the subsets ofG 1 that were assigned "correctly" and "incorrectly", respectively. The case for G 2,1 and G 2,2 is analogous. The weight of a cutG 1 andG 2 corresponding to parameters p 1 and p 2 , respectively, can be expressed in terms of X ij and ij as follows. It equals to the sum of weights of edges between G 1,1 and G 2,1 (with weight ij ), between G 1,1 and G 2,2 (with weight X ij ), between G 1,2 and G 2,1 (with weight X ij ), and between G 1,2 and G 2,2 (with weight ij ). A graphical illustration of this setup is given in Figure 1. Formally, by denoting S(p 1 , p 2 ) = W (G 1 ,G 2 ) (see (3)), we have that

79where

80and (20) was derived using (15) and (16). Note that

81By (19) and (16), the value of S(p 1 , p 2 ) for p 1 = 0 and p 2 = 1 (or symmetrically for p 1 = 1 and p 2 = 0) satisfies

82where we have used the fact that in this case |B X | = M 2 and |B | = 0. The expected value of the right hand side of (23) is M 2 E(X ) − 2εM 2 , where X denotes any of the i.i.d random variables X ij , and its variance is M 2 V ar(X ). By Chebyshev's inequality,

83This means that for large enough k, with high probability,

84that is, we have a lower bound for the weight of the correct partition. Next, we denote by U ⊂ [0, 1] 2 the set of (p 1 , p 2 ) such that p 1 M and p 2 M are integers, and for any 0 ≤ δ ≤ 1, we denote by U δ the subset of U such that p 1 ≥ δ, 1 − p 2 ≥ δ or 1 − p 1 ≥ δ, p 2 ≥ δ (each (p 1 , p 2 ) ∈ U δ corresponds to a partition that is δ-precise in (18)).

85In order to ensure that step 23 of Algorithm 1 returns a δ-precise partition with high probability, it is enough to require that with high probability the maximal score of a non-δ-precise partition is less than 0.87 of the correct partition, that is,

86or, alternatively, we will find the maximal δ such that with high probability 0.87S(0, 1) ≥ max (p 1 ,p 2 )∈U \U δ S(p 1 , p 2 ). (27) We next estimate the maximum weight over all the cuts with (p 1 , p 2 ) ∈ U \U δ . Since there are 2 2M possible cuts (G 1 ,G 2 ), we have that |U \U δ | ≤ |U | = 2 2M (note that we assumed that |G 1 | = |G 2 | = M , but Algorithm 1 can returnG 1 andG 2 of any size). Using (20) and Lemma 10 in Appendix A we get that with high probability

87then, by (25) and (28) we get that (27) holds, and so does (26) as well, as required. Additionally, for large enough M , we neglect all the terms that are not O(M 2 ) in (29), and thus we require

88To sum up, we showed in (26) that if δ is such that 0.87S(0, 1) > max (p 1 ,p 2 )∈U \U δ S(p 1 , p 2 ), then with high probability step 23 of Algorithm 1 returns a δ-precise partition. We also showed that if (30) holds then 0.87S(0, 1) > max (p 1 ,p 2 )∈U \U δ S(p 1 , p 2 ) holds with high probability. Thus for any δ such that (30) holds, step 23 of Algorithm 1 returns a δ-precise partition with high probability. To find such a δ, we rewrite (30) as 0.87E(X ) ≥ max (p 1 ,p 2 )∈U \U δ (p 1 + p 2 − 2p 1 p 2 )E(X ) + ε(6(p 1 + p 2 ) + 4(p 2 1 + p 2 2 − p 1 p 2 ) + 1.74), and since (6(p 1 + p 2 ) + 4(p 2 1 + p 2 2 − p 1 p 2 ) + 1.74) ≤ 21 , we get,

89or using Lemma 9 in Appendix A,

90That is, for any δ such that (31) holds, for large enough M , step 23 of Algorithm 1 returns with high probability a δ-precise partition.

91It is easy to see that the set

92satisfies that U \U δ ⊂ U δ , that the maximum of p 1 + p 2 − 2p 1 p 2 on U δ is achieved on the boundary, and that the maximal value is δ. Thus, max (p 1 ,p 2 )∈U \U δ (p 1 + p 2 − 2p 1 p 2 ) ≤ δ. Thus, for any δ such that 0.87 − 63 4 ε ≥ δ we have that (31) holds, and so for large enough N , with high probability, we have a δ-precise partition. The largest δ for which the latter condition holds is δ = 0.87 − 63 4 ε, and so step 23 of Algorithm 1 returns a partition which is at least 0.87 − 63 4 ε precise.

Experimental Results

93In this section we show results of Algorithm 1 on both simulated and experimental data sets. For simulated data, it is easy to measure the accuracy of the algorithm for different noise levels. However, in the case of experimental data, since we do not know the correct class partition, the quality of the results is assessed by the Fourier shell correlation [26] of the reconstructed volumes.

94All the experiments were executed in MATLAB on a computer with two Intel Xeon X5560 CPUs running at 2.8GHz and an nVidia GTX TITAN GPU. The total running time for the whole algorithm running on 5000 images was around 50 hours.

Implementation Notes

95While in the analysis of Algorithm 1 we use the Goemans-Williamson algorithm for the max-cut problem, for which a performance bound can be proven, this algorithm has memory complexity of O(N 4 ). Thus, for large N (larger than 1000) it is impractical. Instead, we use a simpler algorithm for the max-cut problem that starts with 8 initial guesses for the cut, makes a local search around each guess, and returns the best cut detected. Although this naive algorithm does not guarantee an 87% approximation bound as the Goemans-Williamson algorithm, it is no worse in practice.

96The running time of Algorithm 1 depends on the running times of the LUD algorithm, the max-cut algorithm, and the number of iterations used. In the experiments presented below, we used 8 iterations of the algorithm, which was more than enough for convergence.

Simulated data sets with two molecules

97To evaluate the performance of Algorithm 1, we first applied it to simulated heterogeneous data sets at various levels of noise. The heterogeneous data sets for the experiment were generated as follows. First, we created two three-dimensional volumes (molecules) corresponding to two types of molecules. The first molecule was a known density map of the 50S subunit of the E. coli ribosome, and the second was its perturbed version created by adding a small sphere. The two three-dimensional volumes were chosen deliberately to have similar structures. Visualizations of the three-dimensional volumes are given in Figure 2. Then, we generated 2500 noiseless projections of each of the volumes, using uniformly distributed random orientations. The resulting 5000 projections, each of size 65 × 65 pixels, consisted our noiseless heterogeneous data set. Finally, for each level of noise, we added to each image in the noiseless data set additive white Gaussian noise at the given noise level, and applied our algorithm to the resulting noisy data set. As mentioned above, we used 8 iterations in our algorithm. Note that in this case the two classes have equal size with N 1 = N 2 = 2500.

98The results of the algorithm are summarized in Table 1. Each row in the table corresponds to an experiment at a fixed SNR, and shows the number of images assigned to each class, the parentage of correctly detected common lines (defined as common lines that deviate by up to 10 • from the true common lines known from the simulation), and the precision of the partition measured according to Definition 7. To illustrate the SNR values used, we show in Figure 3 a clean image and its noisy realizations at different levels of noise. In Figure 4 we show the reconstructed volumes using the noisy images and the estimated rotations and class partitions.

99In the next experiment, we used the same setup as above, except that this time the classes were unbalanced, with N 1 = 4000 and N 2 = 1000. The results of this experiment are summarized in Table 2. One can see from Tables 1 and 2 that the two classes returned by Algorithm 1 tend to be of similar size. We can see in Table 2 that the estimated class 2 is always larger than its true size, and for higher noise levels it is very clear that the estimated classes tend to be of similar sizes. The intuition for this behavior is that for classes of similar size, the number of edges in the cut is maximal. Moreover, this behavior is advantageous when the number of images of one of the molecules is much larger than of the other (e.g., without loss of generality N 1 N 2 ). In this case, for high noise levels, since the partition will result in two classes of comparable sizes, the estimated class 2 will contain many incorrectly assigned images. However, in class 1 there will be less than Class 2 Figure 4: The two volumes reconstructed from the heterogeneous data set at different levels of noise.

100N 1 images, yet not many incorrect ones.

Real data set

101For a real data experiment, we used the data [1] provided by the EMDB test image data [2]. This data set consists of 10,000 images of the 70S subunit of the E. coli ribosome with and without Elongation factor G (EF-G). Each image is of size 130 × 130 pixels, with pixel size of 2.82Å. The data set was preprocessed by the ASPIRE software package [3], by downsampling all images to size 89 × 89 pixels (in order to improve their SNR), prewhitening the background noise in each image, and normalizing the noise in each image to zero mean and unit variance. After preprocessing, we randomly split the 10,000 images into two disjoint groups of 5000 images each. The reconstructions from these two disjoint groups would be compared below for validating their correctness. Next, for each group independently, we estimated class averages by averaging each image with its 20 nearest images (after proper rotational and translational alignment). A sample of the class averages from each of the two groups in shown in Figure 5. From each of the two groups we then selected the best 3000 class averages. We denote the sets of 3000 class averages corresponding to groups 1 and 2 by S 1 and S 2 , respectively. We then applied Algorithm 1 twice -once to the class averages in S 1 and once to the class averages in S 2 . In principle, the original data set is expected to contain two rather homogeneous classes. However, since the data set inevitably contains images of poor quality, some of the resulting class averages may be of poor quality as well. In particular, these class averages may not correspond to any of the underlying structures. We therefore applied Algorithm 1 with K = 3 classes, corresponding to the two underlying classes as well as a class of poor-quality averages ("garbage" class averages). We show in Table 3 the number of images in each class in the partition of S 1 and S 2 . In order to measure the quality of the results, we used the Fourier shell correlation (FSC) curves [26] between the reconstructions from the sets S 1 and S 2 . As the output of Algorithm 1 for each of the sets S 1 and S 2 consists of three volumes, we show in Figure 6 the FSC curves between the matching pairs of volumes reconstructed from S 1 and S 2 (which are supposed to be two different reconstructions of volumes from the same class), while in Figure 7 we show the FSC curves between volumes corresponding to different classes. In Table 4 we show the FSC between all the reconstructions from S 1 and S 2 . As one can see, the matching volumes reconstructed from S 1 and S 2 show greater similarity than the mismatching volumes.

Conclusion

102We presented a new algorithm for approximating the class partition of a heterogeneous image data set in cryo-EM. We derived theoretical bounds for the algorithm, and applied it on both simulated and experimental data sets. For simulated data, the algorithm finds accurate partitions, Table 4: FSC between the volumes reconstructed from the experimental data. even under extreme levels of noise. As the proposed algorithm is based on the LUD [27], it is applicable only to molecules without symmetries. However, it can be easily combined with abinitio reconstruction algorithms for molecules with symmetries. Moreover, the LUD can be completely replaced with another orientation assignment algorithm such as [22], in which case the score used for comparing images should be revised. The proposed algorithm can also be incorporated with confidence information regarding the score between each pair of images. This score is available as a byproduct of the algorithms [18,22], and may further improve the robustness of our algorithm to noise.

103Appendix A Distributions Lemma 9. Let X be the random variable corresponding to the distance between two uniformly distributed random points on the unit sphere. Then the PDF of X is f (r) = r/2, and its expectancy is E(X) = 4 3 .

104The proof is given in [24].

105Lemma 10. Let Y i ∼ N (µ i , σ i ) be independent normally distributed random variables. Then, for N sufficiently large, max 1≤i≤N Y i is bounded with high probability by max 1≤i≤N µ i +2

106Thus,

107where the inequality in (32) follow from Bernoulli's inequality. In particular, for t = 2 √ log N we have P ( max

108log N e log N (log 2 e−2) .

참고문헌 42건

  1. Maximum-likelihood methods in cryo-EM. Part II: application to experimental data Europe PMC (PubMed Central) · European Bioinformatics Institute · 2010 10.1016/s0076-6879(10)82012-9
  2. Center of Mass Operators for Cryo-EM—Theory and Implementation Nanostructure science and technology · Springer Nature · 2012 10.1007/978-1-4614-2191-7_6
  3. Classification of Structural Heterogeneity by Maximum-Likelihood Methods Methods in enzymology on CD-ROM/Methods in enzymology · Academic Press · 2010 10.1016/s0076-6879(10)82012-9
  4. Modeling Nanoscale Imaging in Electron Microscopy Nanostructure science and technology · Springer Nature · 2012 10.1007/978-1-4614-2191-7
  5. Fundamentals of Computerized Tomography: Image Reconstruction from Projections 2009
  6. On the Unique Games Conjecture 2005 10.1109/sfcs.2005.61
  7. Efficient Estimation of Three-Dimensional Covariance and its Application in the Analysis of Heterogeneous Samples in Cryo-Electron Microscopy Structure · Elsevier BV · 2015 10.1016/j.str.2015.04.004
  8. Improved approximation algorithms for MAXk-CUT and MAX BISECTION Algorithmica · Springer Science+Business Media · 1997 10.1007/bf02523688
  9. Single Particle Analysis at High Resolution Methods in enzymology on CD-ROM/Methods in enzymology · Academic Press · 2010 10.1016/s0076-6879(10)82009-9
  10. 2.2 Å resolution cryo-EM structure of β-galactosidase in complex with a cell-permeant inhibitor Science · American Association for the Advancement of Science · 2015 10.1126/science.aab1576
  11. Covariance estimation using conjugate gradient for 3D classification in CRYO-EM 2022 IEEE 19th International Symposium on Biomedical Imaging (ISBI) · 2015 10.1109/isbi.2015.7163849
  12. Interior Point Methods in Semidefinite Programming with Applications to Combinatorial Optimization SIAM Journal on Optimization · Society for Industrial and Applied Mathematics · 1995 10.1137/0805002
  13. Classification of heterogeneous electron microscopic projections into homogeneous subsets Ultramicroscopy · Elsevier BV · 2007 10.1016/j.ultramic.2007.05.005
  14. Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming Journal of the ACM · Association for Computing Machinery · 1995 10.1145/227683.227684
  15. A Primer to Single-Particle Cryo-Electron Microscopy Cell · Cell Press · 2015 10.1016/j.cell.2015.03.050
  16. Viewing Direction Estimation in Cryo-EM Using Synchronization SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2012 10.1137/120863642
  17. Use of multivariate statistics in analysing the images of biological macromolecules Ultramicroscopy · Elsevier BV · 1981 10.1016/0304-3991(81)90059-0
  18. On the Convergence Properties of the EM Algorithm The Annals of Statistics · Institute of Mathematical Statistics · 1983 10.1214/aos/1176346060
  19. The Mathematics of Computerized Tomography Medical Physics · Wiley · 2002 10.1118/1.1429631
  20. Mathematical Methods in Image Reconstruction 2001 10.1137/1.9780898718324
  21. How cryo-EM is revolutionizing structural biology Trends in Biochemical Sciences · Elsevier BV · 2014 10.1016/j.tibs.2014.10.005
  22. A method of focused classification, based on the bootstrap 3D variance analysis, and its application to EF-G-dependent translocation Journal of Structural Biology · Elsevier BV · 2006 10.1016/j.jsb.2005.12.013
  23. Three-Dimensional Structure Determination from Common Lines in Cryo-EM by Eigenvectors and Semidefinite Programming SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2011 10.1137/090767777
  24. RELION: Implementation of a Bayesian approach to cryo-EM structure determination Journal of Structural Biology · Elsevier BV · 2012 10.1016/j.jsb.2012.09.006
  25. Three-dimensional reconstruction of the statistics of heterogeneous objects from a collection of one projection image of each object Journal of the Optical Society of America A · Optica Publishing Group · 2012 10.1364/josaa.29.000959
  26. Automated multi-model reconstruction from single-particle electron microscopy data Journal of Structural Biology · Elsevier BV · 2010 10.1016/j.jsb.2010.01.007
  27. EMDataBank unified data resource for 3DEM Nucleic Acids Research · Oxford University Press · 2015 10.1093/nar/gkv1126
  28. Non-unique games over compact groups and orientation estimation in cryo-EM arXiv (Cornell University) · Cornell University · 2015
  29. A Graph Partitioning Approach to Simultaneous Angular Reconstitution IEEE Transactions on Computational Imaging · Institute of Electrical and Electronics Engineers · 2016 10.1109/tci.2016.2557076
  30. Processing of Structurally Heterogeneous Cryo-EM Data in RELION Methods in enzymology on CD-ROM/Methods in enzymology · Academic Press · 2016 10.1016/bs.mie.2016.04.012
  31. A Representation Theory Perspective on Simultaneous Alignment and Classification arXiv (Cornell University) · Cornell University · 2016
  32. cryoSPARC: algorithms for rapid unsupervised cryo-EM structure determination Nature Methods · Nature Portfolio · 2017 10.1038/nmeth.4169
  33. Continuously heterogeneous hyper-objects in cryo-EM and 3-D movies of many temporal dimensions. arXiv (Cornell University) · Cornell University · 2017
  34. Synchronization over Cartan Motion Groups via Contraction SIAM Journal on Applied Algebra and Geometry · Society for Industrial and Applied Mathematics · 2018 10.1137/16m1106055
  35. Structural Variability from Noisy Tomographic Projections SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2018 10.1137/17m1153509
  36. Covariance Matrix Estimation for the Cryo-EM Heterogeneity Problem SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2015 10.1137/130935434
  37. Orientation Determination of Cryo-EM Images Using Least Unsquared Deviations SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2013 10.1137/130916436
  38. Geometric Probability. Journal of the Royal Statistical Society Series A (General) · Wiley · 1979 10.2307/2982497
  39. The Mathematics of Computerized Tomography 2001 10.1137/1.9780898719284
  40. 2016 IEEE 13th International Symposium on Biomedical Imaging (ISBI) 2022 IEEE 19th International Symposium on Biomedical Imaging (ISBI) · 2016 10.1109/isbi31200.2016
  41. Directly reconstructing principal components of heterogeneous particles from cryo-EM images Journal of Structural Biology · Elsevier BV · 2015 10.1016/j.jsb.2015.05.007
  42. Three-dimensional electron microscopy of macromolecular assemblies : visualization of biological molecules in their native state Oxford University Press eBooks · Oxford University Press · 2005