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

Unsupervised Cryo-EM Data Clustering through Adaptively Constrained K-Means Algorithm

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Yaofang Xu — Department of Biophysics, School of Basic Medical Sciences, Peking University Health Science Center, Beijing, China
  2. Jiayi Wu — State Key Laboratory of Artificial Microstructure and Mesoscopic Physics, Institute of Condensed Matter Physics, School of Physics, Center for Quantitative Biology, Peking University, Beijing, China
  3. Changcheng Yin — Department of Biophysics, School of Basic Medical Sciences, Peking University Health Science Center, Beijing, China
  4. Youdong Mao — Intel Parallel Computing Center for Structural Biology, Dana-Farber Cancer Institute, Department of Microbiology and Immunobiology, Harvard Medical School, Boston, MA, United States of America|||State Key Laboratory of Artificial Microstructure and Mesoscopic Physics, Institute of Condensed Matter Physics, School of Physics, Center for Quantitative Biology, Peking University, Beijing, China
DOI
10.1371/journal.pone.0167765
저널
PLoS ONE
발행년도
2016
발행기관
Public Library of Science
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0167765
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2519792875

평가 내용

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

초록

In single-particle cryo-electron microscopy (cryo-EM), K-means clustering algorithm is widely used in unsupervised 2D classification of projection images of biological macromolecules. 3D ab initio reconstruction requires accurate unsupervised classification in order to separate molecular projections of distinct orientations. Due to background noise in single-particle images and uncertainty of molecular orientations, traditional K-means clustering algorithm may classify images into wrong classes and produce classes with a large variation in membership. Overcoming these limitations requires further development on clustering algorithms for cryo-EM data analysis. We propose a novel unsupervised data clustering method building upon the traditional K-means algorithm. By introducing an adaptive constraint term in the objective function, our algorithm not only avoids a large variation in class sizes but also produces more accurate data clustering. Applications of this approach to both simulated and experimental cryo-EM data demonstrate that our algorithm is a significantly improved alterative to the traditional K-means algorithm in single-particle cryo-EM analysis.

본문 60,798자

본문 펼치기
a11111 OPEN ACCESS Citation: Xu Y, Wu J, Yin C-C, Mao Y (2016) Unsupervised Cryo-EM Data Clustering through Adaptively Constrained K-Means Algorithm. PLoS ONE 11(12): e0167765. doi:10.1371/journal. pone.0167765 Editor: Carmen San Martin, Centro Nacional de Biotecnologia (CNB-CSIC), SPAIN Received: September 7, 2016 Accepted: November 18, 2016 Published: December 13, 2016 Copyright: © 2016 Xu et al. This is an open access [article distributed under the terms of the Creative](http://creativecommons.org/licenses/by/4.0/) [Commons Attribution License, which permits](http://creativecommons.org/licenses/by/4.0/) unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data Availability Statement: All relevant data are within the paper and its Supporting Information files. Funding: This work was funded by a grant of the Thousand Talents Plan of China (YM), by a grant from National Natural Science Foundation of China 91530321 (YM), by the Intel Parallel Computing Center program (YM). The cryo-EM experiments were performed in part at the Center for Nanoscale Systems at Harvard University, a member of the National Nanotechnology Coordinated Infrastructure Network (NNCI), which is supported by the National Science Foundation under NSF RESEARCH ARTICLE # Unsupervised Cryo-EM Data Clustering through Adaptively Constrained K-Means Algorithm Yaofang Xu <sup>1</sup> , Jiayi Wu <sup>2</sup> , Chang-Cheng Yin <sup>1</sup> *, Youdong Mao <sup>2,3</sup> * 1 Department of Biophysics, School of Basic Medical Sciences, Peking University Health Science Center, Beijing, China, 2 State Key Laboratory of Artificial Microstructure and Mesoscopic Physics, Institute of Condensed Matter Physics, School of Physics, Center for Quantitative Biology, Peking University, Beijing, China, 3 Intel Parallel Computing Center for Structural Biology, Dana-Farber Cancer Institute, Department of Microbiology and Immunobiology, Harvard Medical School, Boston, MA, United States of America - youdong_mao@dfci.harvard.edu (YM); ccyin@hsc.pku.edu.cn (CY) ## Abstract In single-particle cryo-electron microscopy (cryo-EM), K-means clustering algorithm is widely used in unsupervised 2D classification of projection images of biological macromole cules. 3D _ab initio_ reconstruction requires accurate unsupervised classification in order to separate molecular projections of distinct orientations. Due to background noise in single particle images and uncertainty of molecular orientations, traditional K-means clustering algorithm may classify images into wrong classes and produce classes with a large variation in membership. Overcoming these limitations requires further development on clustering algorithms for cryo-EM data analysis. We propose a novel unsupervised data clustering method building upon the traditional K-means algorithm. By introducing an adaptive con straint term in the objective function, our algorithm not only avoids a large variation in class sizes but also produces more accurate data clustering. Applications of this approach to both simulated and experimental cryo-EM data demonstrate that our algorithm is a significantly improved alterative to the traditional K-means algorithm in single-particle cryo-EM analysis. Introduction Single-particle reconstruction in cryo-electron microscopy (cryo-EM) is a powerful technology to determine three-dimensional structures of biological macromolecular complexes in their native states [1]. Recent advances in direct electron detector and high-performance computing enabled 3D structural determination of biological macromolecular complexes at a near-atomic resolution [2–4]. The goal of single-particle reconstruction is to recover the 3D structure of a macromolecule from a large number of 2D transmission images, in which the macromolecules assume random, unknown orientations. Due to high sensitivity of biological samples to radiation damage by electron beam, cryoEM data are often acquired with very limited electron doses (10–50 electron/Å <sup>2</sup> ), which makes the cryo-EM images extremely noisy. To determine the relative orientations of molecular projections, a crucial step is to classify 2D projection images in an unsupervised fashion such that PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 1 / 19 award no. 1541959. The cryo-EM facility was funded through the NIH grant AI100645, Center for HIV/AIDS Vaccine Immunology and Immunogen Design (CHAVI-ID). The data processing was performed in part in the Sullivan supercomputer, which is funded in part by a gift from Mr. and Mrs. Daniel J. Sullivan, Jr. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Competing Interests: The authors have declared that no competing interests exist. Adaptively Constrained K-Means the images in the same class come from similar orientations of projection [5, 6]. For each class, images are aligned, centered and averaged to produce class averages with enhanced signal-tonoise ratio (SNR). Generating 2D class averages is important for both common-line based 3D _ab initio_ reconstruction [7–14] and some modern methods [15, 16]. Unsupervised classification is also useful for a quick evaluation on structural heterogeneity and quality of samples before entering time-consuming 3D refinement steps [17, 18]. If ignoring conformational dynamics of imaged macromolecules, the intrinsic difference among projection images mainly comes from two sources: projection direction and in-plane rotation. Prior to classification, single-particle images must be aligned to minimize the differences in their translation and in-plane rotation. There are two popular approaches for initial classification of 2D projection images, namely, multi-reference alignment (MRA) [19] and reference-free alignment (RFA) [20]. In MRA, a 2D image alignment step and a data-clustering step are performed iteratively until convergence. In the 2D image alignment step, each image is rotated and shifted incrementally with respect to each reference. All possible correlations between a rotated, translated image and a reference are computed. The distance between an image and a reference is defined as the minimum of all correlation values between them. Based on these distances, in the data-clustering step, traditional K-means clustering is used to classify all images into many classes. An implementation of the MRA strategy can be found in SPARX [21]. In RFA, all images are first aligned globally, which attempts to find rotations and translations for all images that minimize the sum of squared deviation from their mean. These aligned images are used as the input for data-clustering algorithms. This strategy was implemented in SPIDER [22]. Moreover, upon the suggestion of Jean-Pierre Bretaudière, multivariate statistical analysis (MSA) was introduced into cryo-EM [6, 23, 24]. MSA reduces the dimensionality of images by projecting them into a subspace spanned by several eigenvectors, which are also called features. Reducing dimensionality not only accelerates computing but also denoises projection images. The resulting features can also be used as the references for image alignment. For example, EMAN2 combines MSA with MRA (MSA/MRA) (see its script e2refine2d.py) [25]. It first generates translational and rotational invariants for initial classification. Then, a MSA step is iterated with a MRA step, in which images are aligned to those features and classified by the Kmeans algorithm, until a pre-defined number of iterations is reached. Another approach to eliminate in-plane rotation is the use of rotationally invariant transformation (RIT), which transforms two images into the same invariant map if they only differ with respect to in-plane rotation. Then the transformed images are classified and averaged as there is no more in-plane rotation. However, finding such a transform is not trivial. Several attempts have been made [26]. The disadvantage is that the invariant transformation only preserves amplitude information, which may cause misclassification in the later steps. Recently, a new RIT approach was proposed [27] to preserve both amplitude and phase information. After RIT, the difference between each pair of invariant maps is used to measure the difference between the corresponding images. Then each image is denoised by averaging all the images in its neighbor. Thus, the _n_ input images are transformed into _n_ denoised images that are used to compute an _ab initio_ model. Moreover, a Covariance Weiner Filter was recently developed to do CTF correction and denoising on individual images directly [28], making it possible to examine particles without 2D classification. However, this method does not negate the necessity of unsupervised data clustering. Despite the aforementioned progress in data science, the traditional K-means algorithm remains one of the most popular data clustering approaches for single-particle cryo-EM, not only in 2D classification but also in the modern 3D analysis method [29]. However, the traditional K-means algorithm has certain limitations. A class average with a higher SNR correlates PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 2 / 19 Adaptively Constrained K-Means preferably with noise in the high-frequency domain, resulting in attraction of more images into high-SNR classes. Therefore, when used with MRA, traditional K-means clustering tends to misclassify single-particle images to classes with more members [30]. Moreover, some classes may be depleted during iterations. Reseeding empty classes may tentatively remedy this problem. However, it can also break the balance of class sizes among distinct classes, resulting in the coexistence of both oversized and undersized classes. The same issue was also found in multireference maximum-likelihood classification, implemented in XMIPP and RELION [31–33]. To avoid class size getting improperly large, several approaches were proposed [22, 30, 31, 34]. First, a modified traditional K-means was implemented in SPIDER for data clustering, pf f i f f i f f i f f i f f i f f i f f i f f i f f where the objective function is multiplied with a factor s _=_ ðs � 1Þ. Here, s is class size. ‘–’ is pf f i f f i f f i f f i f f i f f i f f i f f i f f s _=_ ðs � 1Þ f f f f f f f f f where the objective function is multiplied with a factor s _=_ ðs � 1Þ. Here, s is class size. ‘–’ is adopted when an image is compared with its own class average; and ‘+’ is adopted when the image is compared to other class averages. For very large classes, this factor is almost 1, whereas it is well below one for small classes. Therefore, it tends to classify more images to small classes. This modification does avoid generating empty classes, but it does not exclude over-sized classes or ones containing only one image (We refer this modified traditional K-means in SPIDER as the traditional K-means in the later context, when there is no ambiguity). Second, an algorithm called equally-sized group K-means (EQK-means) was developed to control the sizes of classes [34], which was implemented in SPARX. In each iteration of EQK-means, every class is forced to have the same number of image members, which avoids the attraction of images to high-SNR classes. Therefore, the resulting class averages may achieve comparable SNRs. However, given that the experimental projection directions can be hardly evenly distributed, it is problematic to produce equally sized classes. Classes in denser angular areas should be assigned with more image members than classes in sparser areas. Third, a modified MRA approach using the CL2D algorithm [30] was implemented in XMIPP [33], which classifies images hierarchically. At each hierarchical level, images are classified with a control of class size by dividing large classes into many smaller classes. The hierarchical approach conducts classification at each level and may require more CPU time than non-hierarchical approaches. In addition, outside of the cryo-EM field, there were several studies on K-means clustering with size constraints. Banerjee _et al_ . proposed a method with three steps [35]. The algorithm is started by clustering a sampled subset of an original dataset. Then the remaining data are populated to the initial clusters satisfying the cluster size constraint motivated by stable marriage problem. Last, the clustering is refined by moving one point or a pair of data points that keep the size constraint. An equivalent implementation of this algorithm in SPA is EQK-means [34], where it starts clustering by randomly selecting k centroids and populates the remaining data by using distance matrix. Zhu _et al_ . also proposed a size-constrained algorithm [36]. In their algorithm, the data are first clustered by existing clustering algorithms. The size constraint is then enforced when minimizing the difference between the old partition matrix and the new partition matrix. To find a more balanced clustering results, Malinen _et al_ . proposed a method solving the assignment problem by Hungarian algorithm [37]. With the size constraint, it can find a good solution with a cost of _O_ ( _n_ <sup>3</sup> ) complexity. All the above algorithms were developed for direct marketing, document clustering, energy aware sensor networks, etc., with predefined cluster sizes from known information. However, in SPA one expects the clustering to be approximately uniform so that the SNRs of different classes are comparable. In fact, we do not know the exact number of particles that a class should have. In this study, we introduce a novel data clustering approach, named adaptively constrained K-means algorithm (ACK-means), for unsupervised cryo-EM image classification. Different from EQK-means that enforces an equal size on all classes or other clustering algorithms with predefined class sizes, ACK-means controls the class size with an adaptive balance between PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 3 / 19 Adaptively Constrained K-Means class size and classification accuracy. Thus, ACK-means can in principle avoid an excessive growth of class size while producing a more accurate angular assignment. Our study suggests that ACK-means is a significantly improved alternative to the traditional K-means for cryoEM data clustering. Methods A brief review on the traditional K-means algorithm Let _X_ = { _x_ 1, _x_ 2,. . ., _x_ _n_ } represent a set of projection images to be classified. Each class is represented by a centroid _μ_ _j_, for _j_ = 1, 2,. . ., _k_ . The goal is to partition _X_ into _k_ classes so that the following objective function is minimized: X _dissim_ ð _x_ _i;_ _μ_ _j_ Þ _;_ _p_ i¼ _j_ _J_ _k_ ¼ X _k_ _j_ ¼1 where _dissim_ (�,�) is a function measuring the dissimilarity between images _x_ _i_ and _μ_ _j_ . The partitioning is denoted by an assignment vector _p_ = ( _p_ 1, _p_ 2,. . ., _pn_ ), which assigns image _x_ _i_ to the _pi_ th class. The commonly used dissimilarity measure is the Euclidian distance [38]. In most MRA approaches, the dissimilarity is defined as a minimum over all possible relative rotations and translations of an image with respect to another. To solve this minimization problem globally is NP-hard [39]. As a local minimum solution, the traditional K-means algorithm was first developed by MacQueen [40]. He gave the name “K-means” to the algorithm that assigns each image to the class of the nearest centroid. This can be formulated in the following: 1. Initialization step : Determine _k_ initial centroids (seed points) f _μj_ g <sup>_k_</sup> _j_ ¼1 <sup>by randomly select-</sup> ing _k_ images from _X_ ; 2. Assignment step : For each image, assign it to the class specified by the most similar centroid; _pi_ ¼ arg min _dissim_ ð _xi_ _;_ _μ_ _j_ Þ j 3. Update step : Recalculate the centroid by the image mean in each class: _μ_ _j_ ¼ _mean_ ðf _x_ _i_ : _pi_ ¼ _j_ gÞ 4. Repeat (2) and (3) until there are no more changes of membership. Adaptive constraint To introduce an adaptive constraint to K-means clustering, we add an additional term to the objective function as shown in the following expression: X _k_ _dissim_ ð _xi_ _;_ _μj_ Þ þ l _ss_ <sup>T</sup> _:_ ð1Þ X _J_ ¼ _j_ ¼1 _p_ i¼ _j_ PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 4 / 19 Adaptively Constrained K-Means The first term is the sum of dissimilarity between image _x_ _i_ and centroid _μ_ _j_ . In the second term, _s_ is a vector, whose element _si_ denotes the number of images belonging to the _i_ -th class; and _λ_ is a non-negative parameter. Note that the sum of all the elements of _s_ is the total number of images, which is a constant _n_ . According to the Cauchy-Schwarz inequality, the second term is minimized only when _s_ 1 = _s_ 2 = . . . = _sk_ . Therefore, by introducing the second term, we establish a competition between the dissimilarity and the balance of class sizes. If we set _λ_ = 0, no constraint is exercised on class sizes and minimizing expression (1) has the same effect as that is achieved by the traditional K-means algorithm. If _λ_ = +1, all classes would have the same size. As _λ_ is changed from 0 to +1, more weight is given on the balance of class sizes. It allows us to tune the class sizes adaptively by regulating the strength of the constraint, as opposed to the EQK-means algorithm that enforces equally sized classes [34]. For this reason, we call the second term an adaptive constraint. Thus, the proposed algorithm allows more images to update their memberships in a large class than in a small class during the optimization of the objective function. For a given set of centroids, _n_ images are assigned to _k_ classes one by one through minimizing the objective function (1). Suppose that at the end of the previous iteration, image _x_ _i_ is assigned to class _pi_ and that the class size vector is _s_ = ( _s_ 1, _s_ 2,. . ., _sk_ ). In the current iteration, the class size vector is first recalculated as _s_ <sup>0</sup> by omitting _x_ _i_ . Almost all the elements of _s_ <sup>0</sup> is the same as _s_, except _s_ <sup>0</sup> _pi_ <sup>¼</sup> <sup>_s_</sup> _pi_ <sup>�</sup> <sup>1. Then image</sup> <sup>_x_</sup> <sup>i is reassigned to class</sup> <sup>_pi_</sup> <sup>by solving the following mini-</sup> mization: X _k_ _j_ <sup>f</sup> <sup>_dissim_</sup> <sup>ð</sup> <sup>_x_</sup> <sup>_i;_</sup> <sup>_μ_</sup> <sup>_j_</sup> <sup>Þ þ l</sup> <sup>�</sup> 2g _pi_ ¼ arg min _j_ ½ _s_ <sup>0</sup> <sup>0</sup> _h_ <sup>þ d</sup> _hj_ <sup>�</sup> _h_ ¼1 _j_ <sup>f</sup> <sup>_dissim_</sup> <sup>ð</sup> <sup>_x_</sup> <sup>_i;_</sup> <sup>_μ_</sup> <sup>_j_</sup> <sup>Þ þ 2l</sup> <sup>_s_</sup> _j_ <sup>0</sup> _j_ <sup>f</sup> <sup>_dissim_</sup> <sup>ð</sup> <sup>_x_</sup> <sup>_i;_</sup> <sup>_μ_</sup> <sup>_j_</sup> <sup>Þ þ 2l</sup> <sup>_s_</sup> _j_ <sup>0</sup> X _k_ ¼ arg min _j_ _j_ <sup>0</sup> <sup>þ l þ l</sup> _s_ <sup>0</sup> _h_ <sup>2</sup> <sup>0</sup> _h_ <sup>2g</sup> _h_ ¼1 ¼ arg min _j_ _j_ <sup>0g</sup> <sup>_;_</sup> where _δhj_ is the Kronecker delta function. When all the images are reassigned, we end up with a new assignment vector _p_ describing the updated partition in the current iteration. To further minimize the objective function (1), we update the _k_ centroids by averaging images in the same class. This process is iterated until there are no more changes in membership. Characteristic dissimilarity Due to background noise and variation in molecular projections, the scale of pixel intensities in single-particle images is expected to vary from case to case. To keep the competition between the two terms of Eq (1) at the same magnitude, one needs a larger _λ_ for an image dataset with large dissimilarities than that with small dissimilarities. Therefore, we developed a strategy to tune the value of _λ_ that is applicable to varying scales. One quantity reflecting data scaling is the maximum value of dissimilarity between any pairs of images in given dataset. However, computing all the dissimilarities between any image pair is extremely time-consuming and practically prohibited. Instead, because we already computed dissimilarities between images and centroids during image assignment to different classes, we can construct a quantity called “characteristic dissimilarity” from these values. In each iteration, we randomly select 10 images. For each one of them, we find its smallest and largest dissimilarities among the _k_ dissimilarities with _k_ centroids. The difference between the largest and smallest dissimilarities is calculated for each image, and is then averaged together to make characteristic dissimilarity _dc_ . PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 5 / 19 Adaptively Constrained K-Means Hence, we rewrite 2 _λ_ as: _<u>dc</u>_ 2l ¼ b b _n=k_ c <sup>_;_</sup> where _β_ is a free parameter in the range from 0 to +1. So we decompose 2 _λ_ into two parameters. The first parameter _dc_ describes the change of pixel intensity scaling, whereas the second parameter _β_ decides the weight on the class size whose value is independent of data scaling. The constant b _n_ / _k_ c is the class size if all images are partitioned equally. Hence, if the partition of all classes is ideally balanced, D _s_ <sup>0</sup> _j_ <sup>_=_</sup> <sup>b</sup> <sup>_n=_</sup> <sup>kc represents the fraction of membership-changed</sup> images in the _j_ -th class. Given 0 _< β <_ +1, images are partitioned in accordance to dissimilarity while the class sizes are monitored by the adaptive constraint. Note that the only parameter to be considered during the application of ACK-means is _β_ . The smaller _β_ is, the less balance of class sizes. Our experiments show that ACK-means can generate satisfying results with _β_ = 0.5 (see below). In this case, if _dc_ is the diameter of the area occupied by the data, then _βdc_ is the radius. Implementation algorithm The algorithm of adaptively constrained K-means is implemented in the following pseudo code. ``` Algorithm : ACK-means Input: ``` f _xi_ g _ni_ ¼ 1 <sup>`: Set of data points.`</sup> f _xi_ g _ni_ ¼ 1 <sup>`: Set of data points.`</sup> _k_ `: Number of classes.` ``` σ 0 : The minimum fraction of data points that are changed membership. β : The weight on the adaptive constraintterm. ``` `1: Initializecentroids` f _μj_ g _kj_ ¼ 1 <sup>`by randomly selecting`</sup> <sup>_k_</sup> <sup>`data points from input`</sup> _j_ ¼ 1 <sup>`by randomly selecting`</sup> <sup>_k_</sup> <sup>`data points from input`</sup> ``` data. 2: Compute p according to pi = arg min j dissim ( xi, μj ). ``` `3: Update` f _μj_ g _ki_ ¼ 1 <sup>`by averaging data points in the same class.`</sup> ``` 4: while σ > σ 0 do ``` `5:` `Randomly select 10 images` f _rm_ g 10 _m_ ¼ 1 <sup>`and compute`</sup> <sup>_`tm`_</sup> <sup>`for`</sup> <sup>_m_</sup> <sup>`= 1:10 according to:`</sup> _dissim_ ð _rm_ _;_ _μj_ Þ � min _j_ _j_ _tm_ ¼ max min _dissim_ ð _xm_ _;_ _μj_ Þ _j_ 10 `6:` `Compute` _`dc`_ `according to` _dc_ ¼ <sup>P</sup> _m_ ¼ 1 10 `6:` `Compute` _`dc`_ `according to` _dc_ ¼ <sup>P</sup> _m_ ¼ 1 `7:` `Compute` _`λ`_ `according to` _λ_ ¼ _β_ b <sup>_<u>d</u>_</sup> _n_ <sup>_<u>c</u>_</sup> _=_ <sup>_<u>=</u>_</sup> _k_ <sup><u>2</u></sup> _tm_ _=_ 10 `7:` `Compute` _`λ`_ `according to` _λ_ ¼ _β_ b <sup>_<u>d</u>_</sup> _n_ <sup>_<u>c</u>_</sup> _=_ <sup>_<u>=</u>_</sup> _k_ <sup><u>2</u></sup> c <sup>~~`.`~~</sup> ``` 8: Save the old assignmentvector according to p old = p ``` `9:` `for` _i_ `= 1:` _n_ `do` `10:` `Compute` `s` <sup>0</sup> `according to` _s_ <sup>0</sup> _l_ <sup>¼ P</sup> m 6¼ i <sup>_δ_</sup> _pm_ _;_ _l_ <sup>0</sup> _l_ <sup>¼ P</sup> `10:` `Compute` `s` <sup>0</sup> `according to` _s_ <sup>0</sup> _l_ <sup>¼ P</sup> m 6¼ i <sup>_δ_</sup> _pm_ _;_ _l_ `11:` `Update` _`pi`_ `according to` _pi_ ¼ arg min _j dissim_ ð _xi_ _;_ _μj_ Þ þ 2 _λsj_ <sup>0</sup> ``` 12: end for ``` `13:` `Update` f _μj_ g _ki_ ¼ 1 <sup>`by averaging data points in the same class.`</sup> _i_ ¼ 1 <sup>`by averaging data points in the same class.`</sup> P _n_ _i_ ¼ 1 `14:` `Compute` _`σ`_ `according to` _σ_ ¼ 1 - <u>1</u> _n_ ``` 15: end while Return: assignmentvector p . ``` _δpoldi_ _;_ _pi_ Note that we exercise no assumption regarding classification and initialize the algorithm as what the traditional K-means does. To ensure an unsupervised nature of the classification, _k_ images are randomly selected from the dataset as the initial centroids. This guarantees that PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 6 / 19 Adaptively Constrained K-Means there is at least one member in each class. Then, each of the rest images is assigned to the class whose centroid is the nearest to the image. To devise a termination criterion for the algorithm, we set a threshold parameter _σ_ 0 (usually set as 0.01) here. If the fraction of data points changing their membership in the current iteration decreases to this threshold, the algorithm is terminated. Since adding the adaptive term costs computational time linear to the number of images, the complexity of ACK-means is at the same level as the traditional K-means, namely, _O_ ( _kntdis_ + 10 _k_ <sup>2</sup> ). However, EQK-means sorts all the distances after they are computed. The complexity of EQK-means is _O_ ( _kntdis_ + _k_ <sup>2</sup> _n_ <sup>2</sup> ), where _tdis_ is the time for computing the dissimilarity between a pair of images. In the MRA approach, images are aligned before their distances are computed. The alignment process may cost considerable time depending on the dimension of images. Thus, in MRA _kntdis_ contributes substantially to the complexity. In the MSA/MRA or RFA approach, images are well aligned before entering clustering algorithm, the calculation of _tdis_ is faster. Generally, ACK-means shares the complexity of the traditional K-means. Benchmark with simulated data The density map of Escherichia coli 70S ribosome [41] was used to generate 10,000 simulated projection images (S1 Fig). Most protein structures are of lower symmetry or asymmetric. Therefore, some orientations are expected to appear more frequently than others in vitreous ice. To emulate this phenomenon, we uniformly chose 100 orientations covering half a sphere. Each orientation is regarded as a Gaussian center, around which 100 projections were generated with a Gaussian distribution. Due to electron lens aberrations and defocusing, we further modified the projection images with the contrast transfer function (CTF). The projections were then additively contaminated with Gaussian noise at different SNR = 1/3, 1/10, 1/30 (S2 Fig), which allowed us to investigate the proposed algorithm at different noise level. The input projections to all experiments were CTF-corrected by phase flipping [42]. To examine the performance of our algorithm, we compared the results of classifying the 10,000 simulated images into 100 classes by using ACK-means with those from other existing approaches. For the standard MRA, we compared ACK-means against traditional K-means and EQK-means algorithms implemented in SPARX. The script isac.py in SPARX is part of a method called ISAC (Iterative Stable Alignment and Clustering) proposed in [34], consisting of the standard MRA part, followed by analysis within classes. The within-class analysis traces the change of membership of images and selects stably classified images that do not change their membership in each iteration. To focus on the effect of different data clustering algorithms, only the MRA part is used in our test. To see the influence of ACK-means in MRA with MSA (MRA/MSA), we replaced the traditional K-means with ACK-means of e2refine.py in EMAN2 and compared their performance. For RFA, we followed the protocol of SPIDER [41] and compared the classification results of the traditional K-means with those of ACKmeans. Results Simulated data Since all the original angles of the input projections are known, the angular difference between any pair of projections in each class, also termed “angular distances”, can be computed. The statistical behavior of the angular distances can be used to measure the quality of the corre ! sponding class [30]. A class assigned with _n_ image members has _n_ 2 pairs of angular PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 7 / 19 Adaptively Constrained K-Means distances. We used two plots to compare the results from different algorithms. The first plot is the histogram distribution of the angular distances from all classes [30]. A better algorithm is expected to exhibit a distribution curve with a sharper, higher peak at lower angular distances. The second plot ranks the sizes of all classes to show the balance of classification. As shown in Fig 1, we compared the unsupervised classification results by ACK-means on the simulated data with a SNR of 0.1 with those obtained by several existing K-means implementations: the traditional K-means and EQK-means in the standard MRA approach implemented in SPARX [21, 34], the traditional K-means in the MRA/MSA approach implemented in EMAN2 [25], and the one in the RFA approach implemented in SPIDER [22]. In the MRA approach, although EQK-means avoids the attraction of dissimilar images by delivering equally sized classes, it exhibits reduced angular accuracy of classification (Fig 1A and 1B). By contrast, ACK-means makes little compromise on the balance of class size, yet improves the classification accuracy. In both MRA and MRA/MSA approaches, ACK-means gives rise to a prominent improvement in both the classification accuracy and the balance of class sizes (Fig 1A–1D). However, in the RFA approach, although the improvement of classification accuracy is not obvious (Fig 1E), ACK-means still generates more balanced class sizes (Fig 1F). The three experiments behave differently as SNR is changed (S3 and S4 Figs). Since MRA has the strongest effect of attraction of dissimilar particles over other approaches, the attraction effect becomes much stronger with decreasing SNR. By contrast, the performance of ACKmeans in controlling the class size adaptively does not degrade with decreasing SNR (Fig 1A and 1B; S3A, S3B, S4A and S4B Figs). In the MRA/MSA approach, ACK-means outperforms the traditional K-means at moderately low SNR level (Fig 1C and S3C Fig). However, at lower SNR (0.033), their difference in the histogram disappears (S4AC Fig). This is likely because alignment errors introduced in the early step cannot be eliminated by ACK-means in the later step. In the RFA approach, ACK-means generates similar classification accuracy with the traditional K-means at all noise levels (Fig 1E, S3E and S4E Figs). This result confirms that the classification accuracy is bound by the alignment error. In all cases, ACK-means gives rise to a well-balanced classification (S4D Fig). We also compared the classification results of ACK-means under different approaches with those of the maximum-likelihood-based 2D classification in RELION [31] (S5 Fig). ACKmeans in both MRA and RFA outperforms the results by RELION at all noise levels tested (S5A, S5B, S5E and S5F Fig). However, the MRA/MSA approach does not improve over RELION at a higher noise level (S5C and S5D Fig). In all the cases tested, RELION generates many classes with no or few particles, which might prevent the resulting class averages from supporting initial reconstructions with sufficient quality. To examine the convergence behavior of the ACK-means algorithm, we recorded the fraction of images changing membership in each iteration relative to the previous iteration. The curve generated from the above experiments in the MRA approach is plotted in Fig 2. Other approaches have similar results. All three algorithms converge exponentially in a similar way. The ACK-means and the traditional K-means uses less iterations to achieve the same degree of convergence as does EQK-means. We also examined the total run time for the above experiments with simulated data to show the time cost of theses algorithms in different approaches (Table 1). For each iteration, the ACK-means algorithm used slightly more time than others, which is nonetheless affordable. Experimental cryo-EM data Three real experimental datasets were used to examine our ACK-means algorithm in this study. We compared the results of our algorithm against the traditional K-means PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 8 / 19 Adaptively Constrained K-Means PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 9 / 19 Adaptively Constrained K-Means Fig 1. Comparison of classification results of simulated data with SNR = 1/10. The First column (panels a, c and e) is the normalized histogram of angular distances. More accurate classification produces curve with higher peak concentrated at lower angular distance. The second column (panels b, d and f) shows the class sizes arranged in an ascend order. The most balanced classification has a horizontal line in this plot. (a) and (b) are from experiments using different clustering algorithms in MRA approach under SPARX. (c) and (d) are from experiments using different clustering algorithms in MRA/MSA approach under EMAN2. (e) and (f) are from experiments using different clustering algorithms in RFA approach under SPIDER. In all graphs, <u>red curves present the results from the ACK-means algorithm.</u> doi:10.1371/journal.pone.0167765.g001 implementations in SPARX, EMAN2 and SPIDER, as well as EQK-means in SPARX. Since it is impossible to know the true projection angles of individual single particles, we evaluate the classification results by inspecting the quality of 2D class averages visually. Case 1: GroEL. The first dataset consists of 5,000 particles selected from a GroEL dataset of 26 micrographs, whose pixel size is 2.10 Å/pixel. The size of particles is 140 × 140 pixels [43]. These particles were first phase-flipped and then classified into 25 classes by different algorithms. As shown in Fig 3, a set of 2D class averages were computed with the traditional K-means (Fig 3A), EQK-means (Fig 3B) and ACK-means (Fig 3C) through the MRA protocol in SPARX. The traditional K-means did not control class sizes and produced more blurred classes than other two algorithms (Fig 3A). Although EQK-means and ACK-means both produced balanced results, EQK-means generated two worst class averages among all class averages (Fig 3B). For the MRA/MSA approach in EMAN2, class averages from the traditional Kmeans (Fig 4A) and ACK-means (Fig 4B) were compared. ACK-means generated clearer class averages with balanced sizes. Furthermore, comparison between the traditional K-means (Fig Fig 2. Convergence of K-means, EQK-means and ACK-means in MRA. The three algorithms behave similarly <u>as iteration increases, converging very fast at the first several iterations.</u> doi:10.1371/journal.pone.0167765.g002 PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 10 / 19 Adaptively Constrained K-Means Table 1. The running time of different algorithms in different approaches. Approach MRA, SPARX (48 cores) MSA/MRA, EMAN2 (1 core) <u>RFA, SPIDER (1 core)</u> Algorithm EQK-means K-means ACK-means K-means ACK-means K-means <u>ACK-means</u> Time (in hour) 0.3h 0.25h 0.45h 7h 12h 0.8h <u>1.3h</u> doi:10.1371/journal.pone.0167765.t001 5A) and ACK-means (Fig 5B) were made with the RFA approach in SPIDER. Both the traditional K-means and ACK-means generated class averages of comparable quality, but the latter substantially improved the balance of class sizes, avoiding both oversized and empty classes. Case 2: Inflammasome. We used 281 particles of inflammasome to benchmark our algorithm [44]. The data were collected with a pixel size of 1.72 Å/pixel and an acceleration voltage of 200 kV. The particles have a size of 160 × 160 pixels. These particles were pre-selected such that only side views with different lengths, corresponding to different oligomeric states of inflammasome, were included in the dataset. After phase-flipped, the dataset was classified into 20 classes using different algorithms. In the MRA approach with SPARX, the class averages were generated by the traditional K-means (Fig 6A), EQK-means (Fig 6B) and ACKmeans (Fig 6C). Without the constraint on class sizes, many classes in the traditional K-means were not assigned with enough particles, producing blurred class averages (Fig 6A). Although many class averages of EQK-means and ACK-means are similar, some classes of EQK-means present misaligned features, indicating the failure of classifying different particles. Similarly, when compared in the MRA/MSA approach with EMAN2, ACK-means produced generally improved classification results than did the traditional K-means (Fig 7A and 7B). We further compared our approach with the traditional K-means in the RFA approach implemented in SPIDER. The traditional K-means generated many classes with only one particle (Fig 8A). By contrast, this was well avoided in the results from unsupervised classification by our ACKmeans algorithm (Fig 8B). Case 3: Proteasome. Finally, we used a dataset containing proteasomal RP (regulatory particle) and RP-CP (regulatory particle associated with core particle) subcomplex [45]. The total number of particle is 3,960, with pixel size 2.00 Å/pixel and particle size 160 × 160 pixels. All particles were pre-processed by phase-flipping and classified into 40 classes. For the MRA approach in SPARX, the class averages generated by the traditional K-means, EQK-means and ACK-means are shown in Fig 9A–9C, respectively. The traditional K-means (Fig 9A) generated many blurred classes because of no constraint on class sizes. ACK-means (Fig 9C) and EQK-means (Fig 9B) yielded comparable results. For the MRA/MSA approach in EMAN2 and RFA approach in SPIDER, we compared the class averages of traditional K-means (Figs 10A and 11A) and ACK-means (Figs 10B and 11B). Class averages of ACK-means show more classes with clear details. Additionally, the traditional K-means in SPIDER generated 3 classes with only one particle. Discussion In this study, we propose a new data-clustering algorithm, which generates adaptively balanced, unsupervised classification, preventing the attraction of dissimilar particles into classes of large sizes or higher SNRs. This allows significant improvement in unsupervised image classification over the traditional K-means algorithm. Meanwhile, by controlling class sizes adaptively, our approach also improves angular accuracy of image clustering as compared to EQKmeans, allowing more particles to be assigned to a class if the operation can improve classification accuracy. PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 11 / 19 Adaptively Constrained K-Means Fig 3. 2D class averages of GroEL using the traditional K-means (a), EQK-means (b) and ACK-means (c) in MRA approach from SPARX . <u>Class size is shown at the left bottom of each class average. ACK-means (b) is the best by having the most number of clear classes.</u> doi:10.1371/journal.pone.0167765.g003 We tested our algorithm with both simulated and real experimental datasets. The projection orientations of simulated data were generated with both dense and sparse angular areas to imitate realistic situation. We found that our ACK-means algorithm consistently outperforms the traditional K-means in all cases. In MRA, traditional K-means suffers from attracting dissimilar particles into classes with more particles. It does not control class sizes and often generates many classes of very few image members, resulting in blurred class averages. ACK-means and EQK-means both generate balanced class averages, whereas ACK-means gives rise to improved classification accuracy, allowing more details to be recovered in class averages. In contrast to EQK-means that avoids the growing of class sizes by forcing each class to have the Fig 4. 2D class averages of GroEL using the traditional K-means (a) and ACK-means (b) in MRA/MSA from EMAN2. Class size is shown at <u>the left bottom of each class average. Their performance is similar, but ACK-means (b) has the more number of clear classes.</u> doi:10.1371/journal.pone.0167765.g004 PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 12 / 19 Adaptively Constrained K-Means Fig 5. 2D class averages of GroEL using the traditional K-means (a) and ACK-means (b) in RFA from SPIDER. Class size is shown at the left bottom of each class average. The quality of class averages from both algorithms is comparable, but ACK-means (b) substantially improved the <u>balance of class sizes.</u> doi:10.1371/journal.pone.0167765.g005 same size, ACK-means monitors class sizes adaptively when determining the class assignment of particles. In the tests with the simulated and experimental GroEL dataset, we found little improvement on the accuracy of classification by ACK-means against the traditional K-means in the RFA approach in SPIDER. However, in the tests with the experimental inflammasome and RP Fig 6. 2D class averages of Inflammasome using the traditional K-means (a), EQK-means (b) and ACK-means (c) in MRA from SPARX. Class size is shown at the left bottom of each class average. The traditional K-means generated many blurred class averages and <u>EQK-means produced some class averages with misaligned features.</u> doi:10.1371/journal.pone.0167765.g006 PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 13 / 19 Adaptively Constrained K-Means Fig 7. 2D class averages of Inflammasome using the traditional K-means (a), and ACK-means (b) MRA/MSA from EMAN2. Class <u>size is shown at the left bottom of each class average. ACK-means generated improved results as compared to the traditional K-means.</u> doi:10.1371/journal.pone.0167765.g007 datasets, we observed prominent differences between the two algorithms. Although the traditional K-means was modified by a factor in SPIDER, it still generated many classes with only one image. By contrast, ACK-means produced balanced classes with more informational class averages. Interestingly, we further combined ACK-means with our recently proposed statistical manifold learning algorithm [45] and found a significant improvement in the RFA approach (data not shown). It bodes well for the future development of improved data clustering protocols that integrate both ACK-means and manifold learning approaches. In summary, the ACK-means algorithm takes into account both the classification accuracy and the balance of class sizes. It presents a significantly improved alternative to the traditional K-means as a data-clustering algorithm for cryo-EM data analysis. Fig 8. 2D class averages of inflammasome using the traditional K-means (a), and ACK-means (b) in RFA from SPIDER. Class size is shown at the left bottom of each class average. There are many classes in (a) with only one particle. Traditional K-means generated <u>many classes with only one particle, which is avoided in the results from ACK-means.</u> doi:10.1371/journal.pone.0167765.g008 PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 14 / 19 Adaptively Constrained K-Means Fig 9. 2D class averages of RP using the traditional K-means (a) and ACK-means (b) in MRA from SPARX. Class size is shown at the left bottom of <u>each class average. There are many blurred classes in (a) generated by the traditional K-means.</u> doi:10.1371/journal.pone.0167765.g009 Fig 10. 2D class averages of RP using the traditional K-means (a) and ACK-means (b) in MRA/MSA from EMAN2. Class size is shown at the left <u>bottom of each class average. Classes generated by ACK-means (a) are clearer than those by the traditional K-means (a).</u> doi:10.1371/journal.pone.0167765.g010 Fig 11. 2D class averages of RP using the traditional K-means (a) and ACK-means (b) in RFA from SPIDER. Class size is shown at the left bottom of each class average. The traditional K-means (a) generated some poor classes with only one particle. The performance of ACK-means (b) is better than the <u>traditional K-means.</u> doi:10.1371/journal.pone.0167765.g011 Supporting Information [S1 Fig. Simulated projections of](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0167765.s001) _Escherichia coli_ 70S ribosome. For each noise level, six orientations are shown. (a) SNR = 1/3. (b) SNR = 1/10. (c) SNR = 1/30. (TIF) PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 15 / 19 Adaptively Constrained K-Means [S2 Fig. Comparison of classification results of ACK-means on simulated data with differ-](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0167765.s002) ent _β_ and at different noise levels. The first column (panels a, c and e) is the normalized histogram of angular distances. The second column (panels b, d and f) is the size of classes which is arranged in ascend order. The most balanced classification has a horizontal line in this plot. The experiments are conducted by the MRA approach in SPARX. (a) and (b) SNR = 1/3. (c) and (d) SNR = 1/10. (e) and (f) SNR = 1/30. (TIF) [S3 Fig. Comparison of classification results of simulated data with SNR = 1/3.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0167765.s003) The first column (panels a, c and e) is the normalized histogram of angular distances. The second column (panels b, d and f) is size of classes which is arranged in ascend order. The most balanced classification has a horizontal line in this plot. (a) and (b) are for experiments using different clustering algorithms in the MRA approach under SPARX. (c) and (d) are for experiments using different clustering algorithms in the MRA/MSA approach under EMAN2. (e) and (f) are for experiments using different clustering algorithms in the RFA approach under SPIDER. In all graphs, red curves present the results from the ACK-means algorithm. (TIF) [S4 Fig. Comparison of classification results of simulated data with SNR = 1/30.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0167765.s004) The first column (panels a, c and e) is the normalized histogram of angular distances. The second column (panels b, d and f) is size of classes which is arranged in ascend order. The most balanced classification has a horizontal line in this plot. (a) and (b) are for experiments using different clustering algorithms in the MRA approach under SPARX. (c) and (d) are for experiments using different clustering algorithms in the MRA/MSA approach under EMAN2. (e) and (f) are for experiments using different clustering algorithms in the RFA approach under SPIDER. In all graphs, red curves present the results from the ACK-means algorithm. (TIF) [S5 Fig. Comparison of classification results of ACK-means in different approaches with](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0167765.s005) RELION. The first column (panels a, c and e) is the normalized histogram of angular distances. The second column (panels b, d and f) is the size of classes which is arranged in ascend order. The most balanced classification has a horizontal line in this plot. (a) and (b) are from ACK-means in MRA and RELION. (c) and (d) are for ACK-means in MRA/MSA and RELION. (e) and (f) are for ACK-means in RFA and RELION. Many classes generated by RELION have no or few particles. (TIF) Acknowledgments The authors thank D. Yu, Y. Zhu, Y. Wang, and Q. Ouyang for helpful discussion, as well as HTC Beijing for supporting. The cryo-EM experiments were performed in part at the Center for Nanoscale Systems at Harvard University, a member of the National Nanotechnology Coordinated Infrastructure Network (NNCI), which is supported by the National Science Foundation under NSF award no. 1541959. The cryo-EM facility was funded through the NIH grant AI100645, Center for HIV/AIDS Vaccine Immunology and Immunogen Design (CHAVI-ID). The data processing was performed in part in the Sullivan supercomputer, which is funded in part by a gift from Mr. and Mrs. Daniel J. Sullivan, Jr. Author Contributions Conceptualization: YX CCY YM. PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 16 / 19 Adaptively Constrained K-Means Data curation: YX JW YM. Formal analysis: YX CCY YM. Funding acquisition: CCY YM. Investigation: YX YM. Methodology: YX YM. Project administration: YX CCY YM. Resources: YX JW CCY YM. Software: YX JW CCY YM. Supervision: CCY YM. Validation: YX YM. Visualization: YX. Writing – original draft: YX YM. Writing – review & editing: YX CCY YM. References 1. Frank J. Three-dimensional electron microscopy of macromolecular assemblies: visualization of biological molecules in their native state: Oxford University Press; 2006. 2. Bai XC, McMullan G, Scheres SH. How cryo-EM is revolutionizing structural biology. Trends in bio[chemical sciences. 2015; 40(1):49–57. doi: 10.1016/j.tibs.2014.10.005 PMID: 25544475](http://dx.doi.org/10.1016/j.tibs.2014.10.005) 3. Bartesaghi A, Merk A, Banerjee S, Matthies D, Wu X, Milne JL, et al. 2.2 Å resolution cryo-EM structure of β-galactosidase in complex with a cell-permeant inhibitor. Science. 2015; 348(6239):1147–51. doi: [10.1126/science.aab1576 PMID: 25953817](http://dx.doi.org/10.1126/science.aab1576) 4. Fischer N, Neumann P, Konevega AL, Bock LV, Ficner R, Rodnina MV, et al. Structure of the E. coli ribosome-EF-Tu complex at <3 A resolution by Cs-corrected cryo-EM. Nature. 2015; 520(7548):567– [70. doi: 10.1038/nature14275 PMID: 25707802](http://dx.doi.org/10.1038/nature14275) 5. Frank J, van Heel M. Correspondence analysis of aligned images of biological particles. Journal of [molecular biology. 1982; 161(1):134–7. PMID: 7154073](http://www.ncbi.nlm.nih.gov/pubmed/7154073) 6. van Heel M, Frank J. Use of multivariate statistics in analysing the images of biological macromolecules. [Ultramicroscopy. 1981; 6(2):187–94. PMID: 7268930](http://www.ncbi.nlm.nih.gov/pubmed/7268930) 7. Elmlund D, Elmlund H. SIMPLE: Software for ab initio reconstruction of heterogeneous single-particles. [J Struct Biol. 2012; 180(3):420–7. doi: 10.1016/j.jsb.2012.07.010 PMID: 22902564](http://dx.doi.org/10.1016/j.jsb.2012.07.010) 8. Elmlund H, Elmlund D, Bengio S. PRIME: probabilistic initial 3D model generation for single-particle [cryo-electron microscopy. Structure. 2013; 21(8):1299–306. doi: 10.1016/j.str.2013.07.002 PMID:](http://dx.doi.org/10.1016/j.str.2013.07.002) [23931142](http://www.ncbi.nlm.nih.gov/pubmed/23931142) 9. Elmlund D, Davis R, Elmlund H. Ab initio structure determination from electron microscopic images of [single molecules coexisting in different functional states. Structure. 2010; 18(7):777–86. doi: 10.1016/j.](http://dx.doi.org/10.1016/j.str.2010.06.001) [str.2010.06.001 PMID: 20637414](http://dx.doi.org/10.1016/j.str.2010.06.001) 10. Crowther RA, DeRosier DJ, Klug A. The Reconstruction of a Three-Dimensional Structure from Projections and its Application to Electron Microscopy. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences. 1970; 317(1530):319–40. 11. Van Heel M. Angular reconstitution: a posteriori assignment of projection directions for 3D reconstruc[tion. Ultramicroscopy. 1987; 21(2):111–23. PMID: 12425301](http://www.ncbi.nlm.nih.gov/pubmed/12425301) 12. Goncharov A, Gelfand M. Determination of mutual orientation of identical particles from their projections by the moments method. Ultramicroscopy. 1988; 25(4):317–27. 13. Penczek PA, Zhu J, Frank J. A common-lines based method for determining orientations for N> 3 particle projections simultaneously. Ultramicroscopy. 1996; 63(3):205–18. PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 17 / 19 Adaptively Constrained K-Means 14. Van Heel M, Orlova E, Harauz G, Stark H, Dube P, Zemlin F, et al. Angular reconstitution in threedimensional electron microscopy: historical and theoretical aspects. Scanning Microscopy. 1997; 11:195–210. 15. Vargas J, Alvarez-Cabrera AL, Marabini R, Carazo JM, Sorzano CO. Efficient initial volume determina[tion from electron microscopy images of single particles. Bioinformatics. 2014; 30(20):2891–8. doi: 10.](http://dx.doi.org/10.1093/bioinformatics/btu404) [1093/bioinformatics/btu404 PMID: 24974203](http://dx.doi.org/10.1093/bioinformatics/btu404) 16. Jaitly N, Brubaker MA, Rubinstein JL, Lilien RH. A Bayesian method for 3D macromolecular structure inference using class average images from single particle electron microscopy. Bioinformatics. 2010; [26(19):2406–15. doi: 10.1093/bioinformatics/btq456 PMID: 20702397](http://dx.doi.org/10.1093/bioinformatics/btq456) 17. Elad N, Clare DK, Saibil HR, Orlova EV. Detection and separation of heterogeneity in molecular complexes by statistical analysis of their two-dimensional projections. J Struct Biol. 2008; 162(1):108–20. [doi: 10.1016/j.jsb.2007.11.007 PMID: 18166488](http://dx.doi.org/10.1016/j.jsb.2007.11.007) 18. Zhang W, Kimmel M, Spahn CM, Penczek PA. Heterogeneity of large macromolecular complexes [revealed by 3D cryo-EM variance analysis. Structure. 2008; 16(12):1770–6. doi: 10.1016/j.str.2008.10.](http://dx.doi.org/10.1016/j.str.2008.10.011) [011 PMID: 19081053](http://dx.doi.org/10.1016/j.str.2008.10.011) 19. van Heel M, Marina S-M. Characteristic views of E. coli and B. stearothermophilus 30S ribosomal sub[units in the electron microscope. The EMBO Journal. 1985; 4(9):2389–95. PMID: 3908096](http://www.ncbi.nlm.nih.gov/pubmed/3908096) 20. Penczek P, Radermacher M, Frank J. Three-dimensional reconstruction of single particles embedded [in ice. Ultramicroscopy. 1992; 40(1):33–53. PMID: 1580010](http://www.ncbi.nlm.nih.gov/pubmed/1580010) 21. Hohn M, Tang G, Goodyear G, Baldwin P, Huang Z, Penczek PA, et al. SPARX, a new environment for [Cryo-EM image processing. Journal of structural biology. 2007; 157(1):47–55. doi: 10.1016/j.jsb.2006.](http://dx.doi.org/10.1016/j.jsb.2006.07.003) [07.003 PMID: 16931051](http://dx.doi.org/10.1016/j.jsb.2006.07.003) 22. Frank J, Radermacher M, Penczek P, Zhu J, Li Y, Ladjadj M, et al. SPIDER and WEB: processing and visualization of images in 3D electron microscopy and related fields. Journal of structural biology. 1996; [116(1):190–9. doi: 10.1006/jsbi.1996.0030 PMID: 8742743](http://dx.doi.org/10.1006/jsbi.1996.0030) 23. Van Heel M, Frank J. Classification of particles in noisy electron micrographs using correspondence analysis. Pattern Recognition in Practice I Gelsema ES, Kanal L (eds) North-Holland Publishing, Amsterdam. 1980:235–43. 24. Van Heel M. Multivariate statistical classification of noisy images (randomly oriented biological macro[molecules). Ultramicroscopy. 1984; 13(1–2):165–83. PMID: 6382731](http://www.ncbi.nlm.nih.gov/pubmed/6382731) 25. Tang G, Peng L, Baldwin PR, Mann DS, Jiang W, Rees I, et al. EMAN2: an extensible image processing [suite for electron microscopy. Journal of structural biology. 2007; 157(1):38–46. doi: 10.1016/j.jsb.2006.](http://dx.doi.org/10.1016/j.jsb.2006.05.009) [05.009 PMID: 16859925](http://dx.doi.org/10.1016/j.jsb.2006.05.009) 26. Schatz M, Van Heel M. Invariant classification of molecular views in electron micrographs. Ultramicro[scopy. 1990; 32(3):255–64. PMID: 2382314](http://www.ncbi.nlm.nih.gov/pubmed/2382314) 27. Zhao Z, Singer A. Rotationally invariant image representation for viewing direction classification in cryo[EM. J Struct Biol. 2014; 186(1):153–66. PubMed Central PMCID: PMC4014198. doi: 10.1016/j.jsb.](http://dx.doi.org/10.1016/j.jsb.2014.03.003) [2014.03.003 PMID: 24631969](http://dx.doi.org/10.1016/j.jsb.2014.03.003) 28. Bhamre T, Zhang T, Singer A. Denoising and covariance estimation of single particle cryo-EM images. [J Struct Biol. 2016; 195(1):72–81. doi: 10.1016/j.jsb.2016.04.013 PMID: 27129418](http://dx.doi.org/10.1016/j.jsb.2016.04.013) 29. Penczek PA, Kimmel M, Spahn CM. Identifying conformational states of macromolecules by eigenanalysis of resampled cryo-EM images. Structure. 2011; 19(11):1582–90. PubMed Central PMCID: [PMC3255080. doi: 10.1016/j.str.2011.10.003 PMID: 22078558](http://dx.doi.org/10.1016/j.str.2011.10.003) 30. Sorzano C, Bilbao-Castro J, Shkolnisky Y, Alcorlo M, Melero R, Caffarena-Ferna´ndez G, et al. A clustering approach to multireference alignment of single-particle projections in electron microscopy. Jour[nal of structural biology. 2010; 171(2):197–206. doi: 10.1016/j.jsb.2010.03.011 PMID: 20362059](http://dx.doi.org/10.1016/j.jsb.2010.03.011) 31. Scheres SH. RELION: implementation of a Bayesian approach to cryo-EM structure determination. [Journal of structural biology. 2012; 180(3):519–30. doi: 10.1016/j.jsb.2012.09.006 PMID: 23000701](http://dx.doi.org/10.1016/j.jsb.2012.09.006) 32. Scheres SH, Valle M, Nunez R, Sorzano CO, Marabini R, Herman GT, et al. Maximum-likelihood multireference refinement for electron microscopy images. Journal of molecular biology. 2005; 348(1):139– [49. doi: 10.1016/j.jmb.2005.02.031 PMID: 15808859](http://dx.doi.org/10.1016/j.jmb.2005.02.031) 33. de la Rosa-Trevin JM, Oton J, Marabini R, Zaldivar A, Vargas J, Carazo JM, et al. Xmipp 3.0: an improved software suite for image processing in electron microscopy. J Struct Biol. 2013; 184(2):321– [8. doi: 10.1016/j.jsb.2013.09.015 PMID: 24075951](http://dx.doi.org/10.1016/j.jsb.2013.09.015) 34. Yang Z, Fang J, Chittuluru J, Asturias FJ, Penczek PA. Iterative stable alignment and clustering of 2D [transmission electron microscope images. Structure. 2012; 20(2):237–47. doi: 10.1016/j.str.2011.12.](http://dx.doi.org/10.1016/j.str.2011.12.007) [007 PMID: 22325773](http://dx.doi.org/10.1016/j.str.2011.12.007) 35. Banerjee A, Ghosh J. Scalable Clustering Algorithms with Balancing Constraints. Data Mining and Knowledge Discovery. 2006; 13(3):365–95. PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 18 / 19 Adaptively Constrained K-Means 36. Zhu S, Wang D, Li T. Data clustering with size constraints. Knowledge-Based Systems. 2010; 23 (8):883–9. 37. Malinen MI, Fra¨nti P. Balanced K-Means for Clustering. In: Fra¨nti P, Brown G, Loog M, Escolano F, Pelillo M, editors. Structural, Syntactic, and Statistical Pattern Recognition: Joint IAPR International Workshop, S+SSPR 2014, Joensuu, Finland, August 20–22, 2014 Proceedings. Berlin, Heidelberg: Springer Berlin Heidelberg; 2014. p. 32–41. 38. Frank J. Three-dimensional electron microscopy of macromolecular assemblies: visualization of biological molecules in their native state. 2nd ed. Oxford; New York: Oxford University Press; 2006. xiv, 410 p. p. 39. Aloise D, Deshpande A, Hansen P, Popat P. NP-hardness of Euclidean sum-of-squares clustering. Machine Learning. 2009; 75(2):245–8. 40. MacQueen J, editor Some methods for classification and analysis of multivariate observations. Proceedings of the fifth Berkeley symposium on mathematical statistics and probability; 1967: Oakland, CA, USA. 41. Shaikh TR, Gao H, Baxter WT, Asturias FJ, Boisset N, Leith A, et al. SPIDER image processing for single-particle reconstruction of biological macromolecules from electron micrographs. Nature protocols. [2008; 3(12):1941–74. doi: 10.1038/nprot.2008.156 PMID: 19180078](http://dx.doi.org/10.1038/nprot.2008.156) 42. Penczek PA. Image Restoration in Cryo-Electron Microscopy. 2010. p. 35–72. 43. Ludtke SJ, Chen DH, Song JL, Chuang DT, Chiu W. Seeing GroEL at 6 A resolution by single particle [electron cryomicroscopy. Structure. 2004; 12(7):1129–36. doi: 10.1016/j.str.2004.05.006 PMID:](http://dx.doi.org/10.1016/j.str.2004.05.006) [15242589](http://www.ncbi.nlm.nih.gov/pubmed/15242589) 44. Zhang L, Chen S, Ruan J, Wu J, Tong AB, Yin Q, et al. Cryo-EM structure of the activated NAIP2NLRC4 inflammasome reveals nucleated polymerization. Science. 2015; 350(6259):404–9. PubMed [Central PMCID: PMC4640189. doi: 10.1126/science.aac5789 PMID: 26449474](http://dx.doi.org/10.1126/science.aac5789) 45. Wu J, Ma YB, Condgon C, Brett B, Chen S, Ouyang Q, et al. Unsupervised single-particle deep classification via statistical manifold learning. arXiv. 2016:1604.04539 [physics.data-an]. PLOS ONE | DOI:10 1371/journal pone 0167765 December 13 2016 19 / 19

섹션 본문 66문단 · 25,830자

(제목 없음)

1In single-particle cryo-electron microscopy (cryo-EM), K-means clustering algorithm is widely used in unsupervised 2D classification of projection images of biological macromolecules.3D ab initio reconstruction requires accurate unsupervised classification in order to separate molecular projections of distinct orientations.Due to background noise in single-particle images and uncertainty of molecular orientations, traditional K-means clustering algorithm may classify images into wrong classes and produce classes with a large variation in membership.Overcoming these limitations requires further development on clustering algorithms for cryo-EM data analysis.We propose a novel unsupervised data clustering method building upon the traditional K-means algorithm.By introducing an adaptive constraint term in the objective function, our algorithm not only avoids a large variation in class sizes but also produces more accurate data clustering.Applications of this approach to both simulated and experimental cryo-EM data demonstrate that our algorithm is a significantly improved alterative to the traditional K-means algorithm in single-particle cryo-EM analysis.

Introduction

2Single-particle reconstruction in cryo-electron microscopy (cryo-EM) is a powerful technology to determine three-dimensional structures of biological macromolecular complexes in their native states (1).Recent advances in electron-counting detector and high-performance computing enabled 3D structural determination of biological macromolecular complexes at a near-atomic resolution (2)(3)(4).

3The goal of single-particle reconstruction is to recover the 3D structure of a macromolecule from a large number of 2D transmission images, in which the macromolecule assumes random, unknown orientations.

4Due to high sensitivity of biological samples to radiation damage by electron beam, cryo-EM data are often acquired with very limited electron doses (10-50 electron/Å 2 ), which makes the cryo-EM images extremely noisy.To determine the relative orientations of molecular projections, a crucial step is to classify 2D projection images in an unsupervised fashion such that images in the same class come from similar orientations of projection (5,6).For each class, images are aligned, centered and averaged to produce class averages with enhanced signal-to-noise ratio (SNR).Generating 2D class averages is important for both common-line based 3D ab initio reconstruction (7)(8)(9)(10)(11)(12)(13)(14) and some modern methods (15,16).Unsupervised classification is also useful for a quick evaluation on structural heterogeneity and quality of samples before entering time-consuming 3D refinement steps (17,18).

5If ignoring conformational dynamics of imaged macromolecules, the intrinsic difference among projection images mainly comes from two sources: projection direction and in-plane rotation.Prior to classification, single-particle images must be aligned to minimize the differences in their translation and in-plane rotation.There are two popular approaches for initial classification of 2D projection images, namely, multi-reference alignment (MRA) (19) and reference-free alignment (RFA) (20).In MRA, a 2D image alignment step and a data-clustering step are performed iteratively until convergence.

6In the 2D image alignment step, each image is rotated and shifted incrementally with respect to each reference.All possible correlations between the rotated, translated image and the reference are computed.The distance between an image and a reference is defined as the minimum of all correlation values between them.Based on these distances, in the data-clustering step, traditional K-means clustering is used to classify all images into different classes.An implementation of the MRA strategy is found in SPARX (21).In RFA, all images are first aligned globally, which attempts to find rotations and translations for all images that minimize the sum of squared deviation from their mean.These aligned images are used as the input for data-clustering algorithms.This strategy was implemented in SPIDER (22).

7Moreover, upon the suggestion of Jean-Pierre Bretaudière, multivariate statistical analysis (MSA) was introduced into cryo-EM (6,23,24).MSA reduces the dimensionality of images by projecting them into a subspace spanned by several eigenvectors, which are also called features.Reducing dimensionality not only accelerates computing but also denoises projection images.The resulting features can also be used as the references for image alignment.For example, EMAN2 combines MSA with MRA (MSA/MRA) (see its script e2refine2d.py)(25).It first generates translational and rotational invariants for initial classification.Then, a MSA step is iterated with a MRA step, in which images are aligned to those features and classified by the K-means algorithm, until a pre-defined number of iterations is reached.

8Despite rapid progress in data science, the traditional K-means algorithm remains one of the most popular data clustering approaches for single-particle cryo-EM.However, the traditional K-means algorithm has certain limitations.A class average with a higher SNR correlates preferably with noise in the high-frequency domain, resulting in attraction of more images into high-SNR classes.Therefore, when used with MRA, traditional K-means clustering tends to misclassify single-particle images to classes with more members (26).Moreover, some classes may be depleted during iterations.Reseeding empty classes may tentatively remedy this problem.However, it can also break the balance of class sizes among distinct classes, resulting in the coexistence of both oversized and undersized classes.The same issue was also found in multi-reference maximum-likelihood classification, implemented in XMIPP and RELION (27)(28)(29).

9To avoid class size getting improperly large, several approaches were proposed (22,26,27,30).

10First, a modified traditional K-means was implemented in SPIDER for data clustering, where the objective function is multiplied with a factor s/(s ± 1).Here, s is class size.'-' is adopted when an image is compared with its own class; and '+' is adopted when the image is compared to other classes.

11For very large classes, this factor is almost 1, whereas it is well below one for small classes.Therefore, it tends to classify more images to small classes.This modification does avoid empty class in the traditional K-means, but it does not exclude over-sized classes or ones containing only one image (We refer this modified traditional K-means in SPIDER as the traditional K-means in later context, when there is no ambiguity.).Second, an algorithm called equal-sized group K-means (EQK-means) was developed to control the sizes of classes (30), which was implemented in SPARX.In each iteration of EQK-means, every class is forced to have the same number of image members, which avoids the attraction of images to high-SNR classes.Therefore, the resulting class averages may achieve comparable SNRs.However, given that the experimental projection directions cannot be absolutely evenly distributed, it is problematic to produce equally sized classes.Classes in denser angular areas should be assigned with more image members than classes in sparser areas.Third, a modified MRA approach using the CL2D algorithm (26) was implemented in XMIPP (29), which classifies images hierarchically.At each hierarchical level, images are classified with a control of class size by dividing large classes into more classes.The hierarchical approach conducts classification at each level and may require more CPU time than non-hierarchical approaches.

12In this study, we introduce a novel data clustering approach, named adaptively constrained Kmeans algorithm (ACK-means), for unsupervised cryo-EM image classification.Different from EQKmeans that enforces an equal size on all classes, ACK-means controls the class size with an adaptive balance between class size and classification accuracy.Thus, ACK-means can in principle avoid an excessive growth of class size while producing a more accurate angular assignment.Our study suggests that ACK-means is a significantly improved alternative to the traditional K-means for cryo-EM data clustering.

A brief review on the traditional K-means algorithm

13Let = + , -, … , / represent a set of projection images to be classified.Each class is represented by a centroid 1 , for j = 1, 2,…, k.The goal is to partition into k classes so that the following objective function is minimized:

14where (•,•) is a function measuring the dissimilarity between images ?and 1 .The partitioning result is denoted by an assignment vector = + , -, … , / , which assigns image ? to the ?-th class.The most commonly used dissimilarity measure is the Euclidian distance (31).In most MRA approaches, the dissimilarity is defined as a minimum over all possible relative rotations and translations of an image with respect to another.

15To solve this minimization problem globally is NP-hard (32).As a local minimum solution, the traditional K-means algorithm was first developed by MacQueen (33).He gave the name "K-means"

16to the algorithm that assigns each image to the class of the nearest centroid.This can be formulated in the following:

17( 2) and ( 3) until there are no more changes of membership.

Adaptive constraint

18To introduce an adaptive constraint to K-means clustering, we add an additional term to the objective function as shown in the following expression:

19:

20The first term is the sum of dissimilarity between image ?and centroid 1 .In the second term, is a vector, whose element ?denotes the number of images belonging to the i-th class; and is a nonnegative parameter.

21Note that the sum of all the elements of s is the total number of images, which is a constant n.

22According to Cauchy-Schwarz inequality, the second term is minimized only when

23Therefore, by introducing the second term, we establish a competition between dissimilarity and the balance of class sizes.If we set = 0, no constraint is exercised on class size and minimizing ( 1) is exactly the same as the traditional K-means algorithm.If = +∞, all classes would have the same size.As is changed from 0 to +∞, more weight is given on the balance of class size.It allows us to tune the class sizes adaptively by regulating the strength of the constraint, as opposed to the EQKmeans algorithm that enforces equally sized classes (30).For this reason, we call the second term an adaptive constraint.Thus, the proposed algorithm allows more images to update their membership in a large class than in a small class during the optimization of the objective function.

24For a given set of centroids, n images are assigned to k classes one by one through minimizing the objective function (1).Suppose at the end of the previous iteration, image ? is assigned to class ?and the class size vector is = ( + , -, … , B ).Then, in the current iteration, the class size vector is first recalculated as s ] by omitting ? .Almost all the elements of ] is the same as , except : ] = : ^− 1.Then x O is reassigned to class ?by solving the following minimization:

25where a1 is the Kronecker delta function.When all the images are reassigned, we end up with a new assignment vector describing the partition in the current iteration.For the given partitioning, to further minimize the objective function (1), we update the k centroids by averaging images in the same class.This process is iterated until there are no more changes in membership.

Characteristic dissimilarity

26Due to background noise and variation in molecular projections, the scale of pixel intensities in singleparticle images is expected to vary from case to case.To keep the competition between the two terms of equation ( 1) at the same magnitude, one needs a larger for an image dataset with large dissimilarities than that with small dissimilarities.Therefore, we developed a strategy to tune the value of that is applicable to varying scales.One quantity reflecting data scaling is the maximum value of dissimilarity between any pairs of images in a given dataset.However, computing all the dissimilarities between any image pair is extremely time-consuming and practically prohibited.Instead, because we already computed dissimilarities between images and centroids during image assignment to different classes, we can construct a quantity called "characteristic dissimilarity" from these values.

27In each iteration, we randomly select 10 images.For each one of them, we find its smallest and largest dissimilarities among the k dissimilarities with k centroids.The difference between the largest and smallest dissimilarities is calculated for each image, and is then averaged together to make characteristic dissimilarity g .Hence, we rewrite 2λ as:

28where is a free parameter in the range from 0 to +∞.So we decompose 2 into two parameters.The first parameter g describes the change of pixel intensity scaling, whereas the second parameter decides the weights on class size whose value is independent of data scaling.The constant / is the class size if all images are partitioned equally.Hence, if the partition of all classes are ideally balanced, Δ 1 ] / /k represents the fraction of changed images in the j-th class.Given 0 < < +∞, images are partitioned according to dissimilarity while class size is monitored by the adaptive constraint.Note that the only parameter to be considered during the application of ACK-means is .

29The smaller is, the less we consider the balance of class sizes.Our experiments show that ACKmeans can generate satisfying results with = 0.5 (see below).In this case, if g is the diameter of the area occupied by the data, then g is the radius.

Implementation algorithm

30The algorithm of adaptively constrained K-means is implemented in the following pseudo code.

Algorithm: ACK-means

31Input:

32< : Set of data points.

33k : Number of classes.

34: The minimum fraction of data points that are changed membership.

𝜷:

35The weight on the adaptive constraint term.Note that we exercise no assumption regarding classification and initialize the algorithm as what the traditional K-means does.To ensure an unsupervised nature of the classification, k images are selected randomly from the dataset as the initial centroids.This guarantees that there is at least one member in each class.Then, each of the rest images is assigned to the class whose centroid is the nearest to the image.To devise a termination criterion for the algorithm, we set a threshold parameter σ Š here.If the number of data points changing their membership in the current iteration decreases to this threshold, the algorithm is terminated.

Benchmark with simulated data

36The density map of Escherichia coli 70S ribosome (34) was used to generate 10,000 simulated projection images (S1 Fig) .In reality, most protein structures are of lower symmetry or asymmetric.

37Therefore, some orientations are expected to appear more frequently than others in vitreous ice.In order to emulate this phenomenon, we uniformly chose 100 orientations covering half a sphere.Each orientation is regarded as a Gaussian center, around which 100 projections were generated with a Gaussian distribution.Due to electron lens aberrations and defocusing, we further modified the projection images with the contrast transfer function (CTF).The projections were then additively contaminated with Gaussian noise at different SNR = 1/3, 1/10, 1/30 (S2 Fig), which allowed us to investigate the proposed algorithm at different noise level.The input projections to all experiments were CTF-corrected by phase flipping (35).

38To examine the performance of our algorithm, we compared the results of classifying the 10,000 simulated images into 100 classes by using ACK-means with those from other existing approaches.

39For the standard MRA, we compared ACK-means against traditional K-means and EQK-means algorithms implemented in SPARX.The script isac.py in SPARX is part of a method called ISAC (Iterative Stable Alignment and Clustering) proposed in (36), consisting of the standard MRA part, followed by analysis within classes.The within-class analysis traces the change of membership of images and selects stably classified images that do not change their membership in each iteration.To focus on the effect of different data clustering algorithms, only the MRA part is used in our test.To see the influence of ACK-means in MRA with MSA (MRA/MSA), we replaced the traditional K-means with ACK-means of e2refine.py in EMAN2 and compared their performance.For RFA, we followed the protocol of SPIDER (34) and compared the classification results of the traditional K-means (precisely, it is a modified traditional K-means, but we refer it as the traditional K-means without ambiguity) with those of ACK-means.

Simulated data

40Since all the original angles of the input projections are known, the angular difference between any pair of projections in each class, also termed "angular distances", can be computed.The statistical behavior of the angular distances can be used to measure the quality of the corresponding class (26).by ACK-means on the simulated with a SNR of 0.1 with those obtained by several existing K-means implementations: the traditional K-means and EQK-means in the standard MRA approach implemented in SPARX (21,30), the traditional K-means in the MRA/MSA approach implemented in EMAN2 ( 25), and the one in the RFA approach implemented in SPIDER (22).

41In the MRA approach, although EQK-means avoids the attraction of dissimilar images by

Experimental cryo-EM data

42Three real experimental datasets were used to examine our ACK-means algorithm in this study.We compared the results of our algorithm against the traditional K-means implementations in SPARX, EMAN2 and SPIDER, as well as EQK-means in SPARX.Since it is impossible to know the true projection angles of individual single particles, we evaluate the classification results by inspecting the quality of 2D class averages visually.

Case 1: GroEL

43The first dataset consists of 5,000 particles selected from a GroEL dataset of 26 micrographs, whose pixel size is 2.10 Å/pixel.The size of particles is 140 × 140 pixels (37).These particles were first

Case 2: Inflammasome

44We used 281 particles of inflammasome to benchmark our algorithm (38).The data were collected

Case 3: Proteasome

45Finally, we used a dataset containing proteasomal RP (regulatory particle) and RP-CP (regulatory particle associated with core particle) subcomplex (39).The total number of particle is 3,960, with pixel size 2.00 Å/pixel and particle size 160 × 160 pixels.All particles are pre-processed by phase-

DISCUSSION

46In this study, we propose a new data-clustering algorithm, which generates adaptively balanced, unsupervised classification, preventing the attraction of dissimilar particles into classes of large sizes or higher SNRs.This allows significant improvement in unsupervised image classification over the traditional K-means algorithm.Meanwhile, by controlling class sizes adaptively, our approach also improves angular accuracy of image clustering as compared to EQK-means, allowing more particles to be assigned to a class if the operation can improve classification accuracy.

47We tested our algorithm with both simulated and real experimental datasets.The projection orientations of simulated data were generated with both dense and sparse angular areas to imitate realistic situation.

48We found that our ACK-means algorithm consistently outperforms the traditional K-means in all cases.

49In MRA, traditional K-means suffers from attracting dissimilar particles into classes with more

1 )( 2 )( 3 )

50Initialization step: Determine k initial centroids (seed points) 1<+ B by randomly selecting k images from ; Assignment step: For each image, assign it to the class specified by the most similar centroid; ?= arg min I ( , ) Update step: Recalculate the centroid by the image mean in each class:

A

51class assigned with n image members has 2 pairs of angular distances.We used two plots to compare the results from different algorithms.The first plot is the histogram distribution of angular distances from all the classes (26).A better algorithm is expected to exhibit a distribution curve with a sharper, higher peak at lower angular distances.The second plot ranks the sizes of all classes to show the balance of classification.As shown in Fig 1, we compared the unsupervised classification results

52Figs).This result confirms that the classification accuracy is bound by the alignment error.In all cases,

53phase-flipped and then classified into 25 classes by different algorithms.As shown in Fig 2, a set of 2D class averages were computed with the traditional K-means (Fig 2a), EQK-means (Fig 2b) and ACK-means (Fig 2c) through the MRA protocol in SPARX.The traditional K-means cannot monitor class sizes and produced more blurred classes than other two algorithms (Fig 2a).Although EQKmeans and ACK-means both produced balanced results, EQK-means generated the two worst class averages among all class averages (Fig 2b).For the MRA/MSA approach in EMAN2, class averages from the traditional K-means (Fig 3a) and ACK-means (Fig 3b) were compared.ACK-means generated clearer class averages with balanced sizes.Furthermore, comparison between the traditional K-means (Fig 4a) and ACK-means (Fig 4b) were made with the RFA approach in SPIDER.Both the traditional K-means and ACK-means generated class averages of comparable quality, but the later substantially improved the balance of class sizes, avoiding both oversized and empty classes.

54with a pixel size of 1.72 Å/pixel and an acceleration voltage of 200 kV.The particles have a size of 160 × 160 pixels.These particles were pre-selected such that only side views with different lengths, corresponding to different oligomeric states of inflammasome, were included in the dataset.After phase-flipped, the dataset was classified into 20 classes using different algorithms.In the MRA approach with SPARX, the class averages were generated by the traditional K-means (Fig5a), EQKmeans (Fig 5b) and ACK-means (Fig 5c).Without the constraint on class sizes, many classes in the traditional K-means were not assigned with enough particles, producing blurred class averages (Fig. 5a).Although many class averages of EQK-means and ACK-means are similar, some classes of EQKmeans present misaligned features, indicating the failure of classifying different particles.Similarly, when compared in the MRA/MSA approach with EMAN2, ACK-means produced generally improved classification results than the traditional K-means (Figs 6a and 6b).We further compared our approach with the traditional K-means in the RFA approach implemented in SPIDER.The traditional K-means generated many classes with only one particle (Fig 7a).By contrast, this was well avoided in the results from unsupervised classification by our ACK-means algorithm (Fig 7b).

55flipping and classified into 40 classes.For the MRA approach in SPARX, the class averages generated by the traditional K-means, EQK-means and ACK-means are shown in Figs 8a-8c, respectively.The traditional K-means (Fig 8a) generated many blurred classes as a result of no constraint on class sizes.ACK-means (Fig 8c) and EQK-means (Fig 8b) have comparable results.For the MRA/MSA approach in EMAN2 and RFA approach in SPIDER, we compared the class averages of traditional K-means (Figs 9a and 10a) and ACK-means (Figs 9b and 10b).Class averages of ACK-means show more classes with clear details.Additionally, the traditional K-means in SPIDER generated 3 classes with only one particle.

56particles.It does not control class sizes and often generates many classes of very few image members, resulting in blurred class averages.ACK-means and EQK-means both generate balanced class averages, whereas ACK-means gives rise to improved classification accuracy, allowing more details recovered in class averages.In contrast to that EQK-means avoids the growing of class sizes by forcing each class to have the same size, ACK-means monitors class sizes adaptively when determining the class assignment of particles.In the tests with the simulated and experimental GroEL data, we found little improvement on the accuracy of classification by ACK-means against the traditional K-means in the RFA approach in SPIDER.However, in the test with the experimental inflammasome and RP data, we observed prominent differences between the two algorithms.Although the traditional K-means was modified by a factor in SPIDER, it still generated many classes with only one image.By contrast, ACK-means produced balanced classes with more informational class averages.Interestingly, we further combined ACK-means with our recently proposed statistical manifold learning algorithm(39) and found a significant improvement in the RFA approach (data not shown).It bodes well for the future development of improved data clustering protocols that integrate both ACK-means and manifold learning approaches.In summary, the ACK-means takes into account both the classification accuracy and the balance of class sizes.It presents a significantly improved alternative to the traditional Kmeans as a data-clustering algorithm for cryo-EM analysis.

Fig 1 .

57Fig 1.Comparison of classification results of simulated data with SNR = 1/10.

Fig 2 .

58Fig 2. 2D class averages of GroEL using the traditional K-means (a), EQK-means (b) and ACK-

Fig 3 .

59Fig 3. 2D class averages of GroEL using the traditional K-means (a) and ACK-means (b) in

Fig 4 .

60Fig 4. 2D class averages of GroEL using the traditional K-means (a) and ACK-means (b) in RFA

Fig 5 .

61Fig 5. 2D class averages of Inflammasome using the traditional K-means (a), EQK-means (b) and

Fig 6 .

62Fig 6. 2D class averages of Inflammasome using the traditional K-means (a), and ACK-means(b)

Fig 7 .

63Fig 7. 2D class averages of Inflammasome using the traditional K-means (a), and ACK-means(b)

Fig 8 .

64Fig 8. 2D class averages of RP using the traditional K-means (a) and ACK-means (b) in MRA

Fig 9 .

65Fig 9. 2D class averages of RP using the traditional K-means (a) and ACK-means(b) in

Fig 10 .

66Fig 10. 2D class averages of RP using the traditional K-means (a) and ACK-means(b) in RFA

참고문헌 44건

  1. Image Restoration in Cryo-Electron Microscopy Methods in enzymology on CD-ROM/Methods in enzymology · Academic Press · 2010 10.1016/s0076-6879(10)82002-6
  2. Characteristic views of E. coli and B. stearothermophilus 30S ribosomal subunits in the electron microscope. The EMBO Journal · Springer Nature · 1985 10.1002/j.1460-2075.1985.tb03944.x
  3. 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
  4. Angular reconstitution: A posteriori assignment of projection directions for 3D reconstruction Ultramicroscopy · Elsevier BV · 1987 10.1016/0304-3991(87)90078-7
  5. Scalable Clustering Algorithms with Balancing Constraints Data Mining and Knowledge Discovery · Springer Science+Business Media · 2006 10.1007/s10618-006-0040-z
  6. SPIDER image processing for single-particle reconstruction of biological macromolecules from electron micrographs Nature Protocols · Nature Portfolio · 2008 10.1038/nprot.2008.156
  7. A common-lines based method for determining orientations for N &gt; 3 particle projections simultaneously Ultramicroscopy · Elsevier BV · 1996 10.1016/0304-3991(96)00037-x
  8. Correspondence analysis of aligned images of biological particles Journal of Molecular Biology · Elsevier BV · 1982 10.1016/0022-2836(82)90282-0
  9. Maximum-likelihood Multi-reference Refinement for Electron Microscopy Images Journal of Molecular Biology · Elsevier BV · 2005 10.1016/j.jmb.2005.02.031
  10. Ab Initio Structure Determination from Electron Microscopic Images of Single Molecules Coexisting in Different Functional States Structure · Elsevier BV · 2010 10.1016/j.str.2010.06.001
  11. Heterogeneity of Large Macromolecular Complexes Revealed by 3D Cryo-EM Variance Analysis Structure · Elsevier BV · 2008 10.1016/j.str.2008.10.011
  12. Structure of the E. coli ribosome–EF-Tu complex at &lt;3 Å resolution by Cs-corrected cryo-EM Nature · Nature Portfolio · 2015 10.1038/nature14275
  13. Identifying Conformational States of Macromolecules by Eigen-Analysis of Resampled Cryo-EM Images Structure · Elsevier BV · 2011 10.1016/j.str.2011.10.003
  14. Use of multivariate statistics in analysing the images of biological macromolecules Ultramicroscopy · Elsevier BV · 1981 10.1016/0304-3991(81)90059-0
  15. SPIDER and WEB: Processing and Visualization of Images in 3D Electron Microscopy and Related Fields Journal of Structural Biology · Elsevier BV · 1996 10.1006/jsbi.1996.0030
  16. SIMPLE: Software for ab initio reconstruction of heterogeneous single-particles Journal of Structural Biology · Elsevier BV · 2012 10.1016/j.jsb.2012.07.010
  17. Determination of mutual orientation of identical particles from their projections by the moments method Ultramicroscopy · Elsevier BV · 1988 10.1016/0304-3991(88)90006-x
  18. Iterative Stable Alignment and Clustering of 2D Transmission Electron Microscope Images Structure · Elsevier BV · 2012 10.1016/j.str.2011.12.007
  19. Three-dimensional reconstruction of single particles embedded in ice Ultramicroscopy · Elsevier BV · 1992 10.1016/0304-3991(92)90233-a
  20. Invariant classification of molecular views in electron micrographs Ultramicroscopy · Elsevier BV · 1990 10.1016/0304-3991(90)90003-5
  21. Xmipp 3.0: An improved software suite for image processing in electron microscopy Journal of Structural Biology · Elsevier BV · 2013 10.1016/j.jsb.2013.09.015
  22. How cryo-EM is revolutionizing structural biology Trends in Biochemical Sciences · Elsevier BV · 2014 10.1016/j.tibs.2014.10.005
  23. NP-hardness of Euclidean sum-of-squares clustering Machine Learning · Springer Science+Business Media · 2009 10.1007/s10994-009-5103-0
  24. Seeing GroEL at 6 Å Resolution by Single Particle Electron Cryomicroscopy Structure · Elsevier BV · 2004 10.1016/j.str.2004.05.006
  25. Detection and separation of heterogeneity in molecular complexes by statistical analysis of their two-dimensional projections Journal of Structural Biology · Elsevier BV · 2007 10.1016/j.jsb.2007.11.007
  26. EMAN2: An extensible image processing suite for electron microscopy Journal of Structural Biology · Elsevier BV · 2006 10.1016/j.jsb.2006.05.009
  27. 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
  28. Data clustering with size constraints Knowledge-Based Systems · Elsevier BV · 2010 10.1016/j.knosys.2010.06.003
  29. PRIME: Probabilistic Initial 3D Model Generation for Single-Particle Cryo-Electron Microscopy Structure · Elsevier BV · 2013 10.1016/j.str.2013.07.002
  30. Some methods for classification and analysis of multivariate observations 1967
  31. The reconstruction of a three-dimensional structure from projections and its application to electron microscopy Proceedings of the Royal Society of London A Mathematical and Physical Sciences · Royal Society · 1970 10.1098/rspa.1970.0119
  32. A Bayesian method for 3D macromolecular structure inference using class average images from single particle electron microscopy Bioinformatics · Oxford University Press · 2010 10.1093/bioinformatics/btq456
  33. Rotationally invariant image representation for viewing direction classification in cryo-EM Journal of Structural Biology · Elsevier BV · 2014 10.1016/j.jsb.2014.03.003
  34. SPARX, a new environment for Cryo-EM image processing Journal of Structural Biology · Elsevier BV · 2006 10.1016/j.jsb.2006.07.003
  35. ANGULAR RECONSTITUTION IN THREE-DIMENSIONAL ELECTRON MICROSCOPY: HISTORICAL AND THEORETICAL ASPECTS 1997
  36. Efficient initial volume determination from electron microscopy images of single particles Bioinformatics · Oxford University Press · 2014 10.1093/bioinformatics/btu404
  37. A clustering approach to multireference alignment of single-particle projections in electron microscopy Journal of Structural Biology · Elsevier BV · 2010 10.1016/j.jsb.2010.03.011
  38. Cryo-EM structure of the activated NAIP2-NLRC4 inflammasome reveals nucleated polymerization Science · American Association for the Advancement of Science · 2015 10.1126/science.aac5789
  39. Denoising and covariance estimation of single particle cryo-EM images Journal of Structural Biology · Elsevier BV · 2016 10.1016/j.jsb.2016.04.013
  40. Multivariate statistical classification of noisy images (randomly oriented biological macromolecules) Ultramicroscopy · Elsevier BV · 1984 10.1016/0304-3991(84)90066-4
  41. Unsupervised single-particle deep classification via statistical manifold learning. 2016
  42. Three-dimensional reconstruction of single particles embedded in ice WORLD SCIENTIFIC eBooks · World Scientific · 2018 10.1142/9789813234864_0015
  43. Three-dimensional electron microscopy of macromolecular assemblies : visualization of biological molecules in their native state Oxford University Press eBooks · Oxford University Press · 2005
  44. Balanced K-Means for Clustering Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-662-44415-3_4