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

FSCC: Few-Shot Learning for Macromolecule Classification Based on Contrastive Learning and Distribution Calibration in Cryo-Electron Tomography

관련 화학·수지 · (20) 페놀수지

기본 정보

저자
  1. Shan Gao — High Performance Computer Research Center, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China|||University of Chinese Academy of Sciences, Beijing, China
  2. Xiangrui Zeng — Computational Biology Department, School of Computer Science, Carnegie Mellon University, Pittsburgh, PA, United States
  3. Min Xu — Computational Biology Department, School of Computer Science, Carnegie Mellon University, Pittsburgh, PA, United States
  4. Fa Zhang — High Performance Computer Research Center, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China
DOI
10.3389/fmolb.2022.931949
저널
Frontiers in Molecular Biosciences
발행년도
2022
발행기관
Frontiers Media
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3389/fmolb.2022.931949
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4284675769

평가 내용

관련도
관련
사업분야
화학·수지 · (20) 페놀수지
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '화학·수지 > 페놀수지' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Cryo-electron tomography (Cryo-ET) is an emerging technology for three-dimensional (3D) visualization of macromolecular structures in the near-native state. To recover structures of macromolecules, millions of diverse macromolecules captured in tomograms should be accurately classified into structurally homogeneous subsets. Although existing supervised deep learning–based methods have improved classification accuracy, such trained models have limited ability to classify novel macromolecules that are unseen in the training stage. To adapt the trained model to the macromolecule classification of a novel class, massive labeled macromolecules of the novel class are needed. However, data labeling is very time-consuming and labor-intensive. In this work, we propose a novel few-shot learning method for the classification of novel macromolecules (named FSCC). A two-stage training strategy is designed in FSCC to enhance the generalization ability of the model to novel macromolecules. First, FSCC uses contrastive learning to pre-train the model on a sufficient number of labeled macromolecules. Second, FSCC uses distribution calibration to re-train the classifier, enabling the model to classify macromolecules of novel classes (unseen class in the pre-training). Distribution calibration transfers learned knowledge in the pre-training stage to novel macromolecules with limited labeled macromolecules of novel class. Experiments were performed on both synthetic and real datasets. On the synthetic datasets, compared with the state-of-the-art (SOTA) method based on supervised deep learning, FSCC achieves competitive performance. To achieve such performance, FSCC only needs five labeled macromolecules per novel class. However, the SOTA method needs 1100 ∼ 1500 labeled macromolecules per novel class. On the real datasets, FSCC improves the accuracy by 5% ∼ 16% when compared to the baseline model. These demonstrate good generalization ability of contrastive learning and calibration distribution to classify novel macromolecules with very few labeled macromolecules.

본문 52,145자

본문 펼치기
Edited by: William C. Cho, QEH, Hong Kong SAR, China Reviewed by: JJ Fernandez, Spanish National Research Council (CSIC), Spain Yonggang Lu, Lanzhou University, China *Correspondence: Min Xu [mxu1@cs.cmu.edu](mailto:mxu1@cs.cmu.edu) Fa Zhang [zhangfa@ict.ac.cn](mailto:zhangfa@ict.ac.cn) Specialty section: This article was submitted to Molecular Diagnostics and Therapeutics, a section of the journal Frontiers in Molecular Biosciences Received: 29 April 2022 Accepted: 23 May 2022 Published: 05 July 2022 Citation: Gao S, Zeng X, Xu M and Zhang F (2022) FSCC: Few-Shot Learning for Macromolecule Classification Based on Contrastive Learning and Distribution Calibration in Cryo Electron Tomography. Front. Mol. Biosci. 9:931949. doi: [10.3389/fmolb.2022.931949](https://doi.org/10.3389/fmolb.2022.931949) ORIGINAL [RESEARCH](https://www.frontiersin.org/journals/molecular-biosciences#editorial-board) published: 05 July 2022 doi: [10.3389/fmolb.2022.931949](https://doi.org/10.3389/fmolb.2022.931949) # FSCC: Few-Shot Learning for Macromolecule Classification Based on Contrastive Learning and Distribution Calibration in Cryo-Electron Tomography Shan Gao <sup>1,2</sup>, Xiangrui Zeng <sup>3</sup>, Min Xu <sup>3</sup> - and Fa Zhang <sup>1</sup> 1High Performance Computer Research Center, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China, <sup>2</sup> University of Chinese Academy of Sciences, Beijing, China, <sup>3</sup> Computational Biology Department, School of Computer Science, Carnegie Mellon University, Pittsburgh, PA, United States Cryo-electron tomography (Cryo-ET) is an emerging technology for three-dimensional (3D) visualization of macromolecular structures in the near-native state. To recover structures of macromolecules, millions of diverse macromolecules captured in tomograms should be accurately classified into structurally homogeneous subsets. Although existing supervised deep learning–based methods have improved classification accuracy, such trained models have limited ability to classify novel macromolecules that are unseen in the training stage. To adapt the trained model to the macromolecule classification of a novel class, massive labeled macromolecules of the novel class are needed. However, data labeling is very time-consuming and labor-intensive. In this work, we propose a novel few-shot learning method for the classification of novel macromolecules (named FSCC). A two-stage training strategy is designed in FSCC to enhance the generalization ability of the model to novel macromolecules. First, FSCC uses contrastive learning to pre-train the model on a sufficient number of labeled macromolecules. Second, FSCC uses distribution calibration to re-train the classifier, enabling the model to classify macromolecules of novel classes (unseen class in the pre-training). Distribution calibration transfers learned knowledge in the pre-training stage to novel macromolecules with limited labeled macromolecules of novel class. Experiments were performed on both synthetic and real datasets. On the synthetic datasets, compared with the state-of-the-art (SOTA) method based on supervised deep learning, FSCC achieves competitive performance. To achieve such performance, FSCC only needs five labeled macromolecules per novel class. However, the SOTA method needs 1100 ~ 1500 labeled macromolecules per novel class. On the real datasets, FSCC improves the accuracy by 5% ~ 16% when compared to the baseline model. These demonstrate good generalization ability of contrastive learning and calibration distribution to classify novel macromolecules with very few labeled macromolecules. Keywords: few-shot learning, cryo-ET, macromolecule classification, contrastive learning, distribution calibration 1 INTRODUCTION Biological processes in cells are dominated by complex networks of molecular assemblies and their interactions. Analyzing the native structure and spatial distribution of molecular assemblies is essential for revealing the macromolecular mechanism of cellular processes. Cryo-electron tomography (cryo-ET) is an emerging technique for three-dimensional (3D) visualization of macromolecular structures (Lučić et al., 2013; Wan and Briggs, 2016). Compared to other 3D visualization methods such as X-ray (Blanchet and Svergun, 2013), cryo-ET has the advantage of revealing the structure of macromolecular structures in a near-native state at the sub-molecular resolution. Many important native macromolecular structures have been discovered using cryo-ET, such as SARS-Cov-2 that caused the COVID-19 pandemic (Liu et al., 2020). In principle, the cellular tomograms imaged by cryo-ET can capture millions of macromolecules with diverse structures. To recover structures of macromolecules, diverse macromolecules in tomograms should be detected (Melia and Bharat, 2018), classified (Gao et al., 2021), aligned and averaged (Zeng et al., 2021), and called subtomogram averaging (STA) (Bharat and Scheres, 2016). Macromolecule classification aims to classify diverse macromolecules into structurally homogeneous subsets accurately. The input to macromolecule classification is a subtomogram, a subvolume of the tomogram. Each subtomogram contains a complete macromolecule. The accuracy of macromolecule classification directly affects the performance of downstream tasks. Because misclassified macromolecules can introduce wrong structures, it further increases the difficulty in alignment. However, macromolecule classification remains challenging due to the low signal-to-noise ratio (SNR), a large variety of macromolecular structures, and small size of macromolecules. One pioneering method for macromolecule classification is the template search (Yu and Frangakis, 2011). Given the template structure, this method calculates the cross-correlation coefficient between each subvolume of the tomogram and the template structure through a sliding window. When the crosscorrelation coefficient is higher than a threshold, the target macromolecule is been identified. Though this method has been successfully applied to identify some large macromolecules (Böhm et al., 2000), the performance highly depends on the template structure. When the targets and template structures are from different organisms or have different conformations, these targets can be missed (Moebel et al., 2021). To avoid relying on template structures, templatefree classification methods have been developed (Jonić, 2016; Xu et al., 2019; Martinez-Sanchez et al., 2020). For example, Xu et al. (Xu et al., 2019) proposed an iterative clustering process to group macromolecules that have the same macromolecular structures. Although this template-free method can classify novel macromolecules, iterative clustering in 3D is time-consuming. This makes the method only suitable for small datasets and has limited application in practical scenarios. Recently, the SHREC contest (Gubins et al., 2020) caused a surge in supervised deep learning–based subtomogram classification methods (Himes and Zhang, 2018; Harastani and Jonic, 2021; Moebel et al., 2021; Pyle and Zanetti, 2021). For example, Xu et al. proposed the DoG-3D-CNN (Gubins et al., 2019) method to classify subtomograms after filtering image noise with a difference of Gaussian (DoG) filter (Wang et al., 2012). Considering that the subtomogram is a 3D image, to extract more features from depth dimension, Gao et al. proposed 3D-dilated-Densenet (Gao et al., 2020). 3D-dilated-Densenet improves the classification performance of macromolecules of small size. Despite improving classification accuracy and decreasing the processing time, the abovementioned supervised deep learning–based methods often have one major bottleneck: trained models have limited ability to classify novel macromolecules that are unseen in the training stage. To adapt the trained model to macromolecule classification of a novel class (unseen class in the training stage), massive labeled macromolecules of the novel class are required to retrain the model. This is inefficient and undesirable in practice tasks as labeling macromolecules is time-consuming and laborious (Oda and Kikkawa, 2013). Furthermore, due to complicated structures and distortion caused by missing wedge and noise, it is hard to label macromolecules with naked eyes even by experts. In this study, we propose a novel few-shot learning method for macromolecule classification of novel classes (named FSCC) (Figure 1). Combined with contrastive learning and distribution calibration, a two-stage training strategy is designed in FSCC to enhance the generalization ability of the model to novel macromolecules. First, FSCC uses contrastive learning (Khosla et al., 2020) to pre-train the model on a sufficient number of labeled macromolecules. This comes from the intuition that good generalization requires capturing the similarity between subtomograms in the same class and contrasting them with subtomograms in other classes. With contrastive learning, FSCC can pull together macromolecules belonging to the same class in the embedding space and separate macromolecules from different classes. Second, FSCC retrains the model to classify novel macromolecules. Specifically, FSCC freezes the parameters of the feature extractor of the pretrained model. Then, based on distribution calibration (Yang et al., 2021b), FSCC retrains the classifier with a limited number of labeled macromolecules from novel classes. Distribution calibration is a kind of domain adaption method (Sun and Saenko, 2016). It can bridge the distribution gap between the source domain and target domain. Distribution calibration has been widely applied in high-level computer vision tasks such as object detection (Saito et al., 2019) and image retrieval (Su et al., 2019). In FSCC, the data distribution learned from a few macromolecules can be a biased distribution, which leads the model to become overfitted, whereas in the first pre-train stage, the data distribution learned from sufficient macromolecules is more accurate, which can alleviate such an overfitting problem. Thus, FSCC calibrates the distribution of the novel class by transferring the distribution statistics from the class with a sufficient number of macromolecules. After distribution calibration, FSCC samples an adequate number of features from the calibrated distribution to augment the inputs to the classifier. FIGURE 1 | Framework of FSCC. FSCC follows a two-stage training strategy. The first training stage is a pre-training stage. FSCC pre-trains the model on a sufficient number of labeled macromolecules of base classes by contrastive learning. The second training stage is a classifier re-training stage. Here, FSCC re-trains the classifier with very few labeled macromolecules of novel class. To augment the inputs of the classifier, FSCC calibrates the distribution of novel classes and samples adequate features from calibrated distribution to re-train the classifier. To demonstrate the performance of FSCC, we tested FSCC on synthetic and real datasets. The results show that different from existing supervised deep learning–based macromolecule classification methods, FSCC has good generalization ability to novel macromolecules. FSCC can accurately classify novel macromolecules with very few labeled macromolecules. On synthetic datasets, FSCC achieves competitive performance when compared to the state-of-the-art (SOTA) method based on supervised deep learning. Specifically, on the synthetic dataset SHREC21, the F1-score of FSCC is 0.75, while the F1score of SOTA is 0.73. To achieve such performance, FSCC uses only five labeled macromolecules per novel class. However, the SOTA method uses 1100 ~ 1500 labeled macromolecules per novel class. On the real datasets, FSCC improves the accuracy by 5% ~ 16% compared to the baseline model based on two-stage training. These demonstrate the good generalization ability of contrastive learning and calibration distribution to novel macromolecules. 2 METHODS 2.1 Two-Stage Training Framework 2.1.1 Problem Definition of Few-Shot Macromolecule Classification Before introducing the framework of FSCC, we first briefly introduce the problem definition of the few-shot macromolecule classification. In the standard few-shot classification scenario (Li et al., 2021), there are two kinds of macromolecule datasets: a base dataset D <sup>base</sup> and a novel dataset D <sup>novel</sup> . Let C <sup>base</sup> be the set of classes covered by D <sup>base</sup> and let C <sup>novel</sup> be the set of classes covered by D <sup>novel</sup>, then we have C <sup>base</sup> ⋂C <sup>novel</sup> = ∅. The goal of the few-shot classification method is to use a model trained on D <sup>base</sup> to classify novel macromolecules of D <sup>novel</sup>, given limited labeled macromolecules from D <sup>novel</sup> . Here, in one few-shot classification task, the limited labeled macromolecules are defined as the support set and the unlabeled macromolecules, which are needed to be classified and are defined as the query set. The classes of the query set and support set are the same at the one few-shot task. According to the number of classes covered by the few-shot classification task and the number of labeled macromolecules per class in the support set, the few-shot task is named N-way-K-shot tasks. Nway-K-shot means there are N novel classes, and each class has K labeled macromolecules. Generally, N is set as 5 and K is set as 1 or 5. 2.1.2 The Framework of FSCC FSCC designs a two-stage training strategy: pre-training stage and classifier re-training stage to enhance the generalization ability of the model to novel macromolecules (Figure 1). In the pretraining stage, given a sufficient number of labeled macromolecules (xb, yb) from D <sup>base</sup>, where xb is a In×n×n 3D subtomogram image and yb ∈ C <sup>base</sup>, FSCC trains a feature extractor fθ and a classifier C(·|Wb) to predict the class of macromolecules y^b. A good feature extractor fθ should learn an embedding such that the features of macromolecules of the same class are close to each other, while the features of macromolecules of different classes are far apart. To learn such a feature extractor fθ, FSCC designs a weighted loss LCE �− <sup><u>1</u></sup> M <sup><u>1</u></sup> M <sup>�</sup> i�1 yi,c · logy^i,c, (2) i�1 Cb c�1 FIGURE 2 | Conceptualization of cross-entropy loss LCE (eq. (2)) and FSCC loss L (eq. (1)). There are two kinds of extracted features of classes A and B. When adopting cross-entropy loss LCE to train the model, the interclass distance is close. Instead, when adopting the loss of FSCC L, the inter-class distance increases, while intra-class distance reduces. function L (Eq. (1)) based on contrastive learning (Jaiswal et al., 2020) (Subsection 2.2). This weighted loss function L contains two kinds of loss. The first one LCE (Eq. (2)) is a penalty of misclassified macromolecules. The other is class similarity–based loss LSCL (Eq. (3)) which aims to find the similarities between the macromolecules of the same class and contrast them with macromolecules from other classes. To enable the pre-trained model to classify novel macromolecules, given a few labeled macromolecules (xn, yn) from D <sup>novel</sup>, FSCC freezes parameters of the feature extractor fθ and retrains the classifier C(·|Wn). Training the classifier with very few labeled macromolecules is a challenge because the feature distribution learned from very few labeled macromolecules (xn, yn) can be a biased distribution (Yang et al., 2021a). This biased distribution cannot accurately reflect the ground-truth distribution of macromolecules of novel classes. Actually, the estimated distribution of the base dataset D <sup>base</sup> with a sufficient number of labeled macromolecules is more accurate than that of the novel dataset D <sup>novel</sup> with limited labeled macromolecules. Previous work has proved that semantically similar images have similar feature distributions (Burke, 2018). Thus, FSCC performs distribution calibration on extracted features of the input novel macromolecule xn with learned knowledge from the base dataset D <sup>base</sup> . The detailed description of distribution calibration is given in Subsection 2.3. After calibration distribution, FSCC samples adequate features from calibrated distribution to augment the input for the classifier. 2.2 Supervised Contrastive Learning FSCC designs a weighted loss function L of the cross-entropy (CE) loss LCE and the supervised contrastive learning (SCL) loss LSCL to pre-train the model. L is defined as L � LCE + λLSCL, (1) where λ is a weight coefficient of LSCL. We suggest that λ is 0.05 based on the experimental results (Subsection 3.3.2). Cross-entropy loss LCE (Eq. (2)) is a commonly used loss function in existing supervised deep learning–based macromolecule classification methods. LCE is defined as where M is the number of input subtomograms in the mini-batch; i means the i-th macromolecule in this mini-batch; c means the class ID of base classes; yi,c denotes the ground-truth label of input subtomograms, and y^i,c denotes the predicted class. Though CE loss LCE is good at learning the inter-class information, it only focuses on misclassified macromolecules, while ignoring the similarity between macromolecules from the same class. Therefore, the learned features of the same classes present scattered shape if the model is trained with only cross-entropy loss LCE (Figure 2). Contrastive learning is one of the methods that have been widely used in self-supervised learning to enhance the generalization ability of the model recently (Jaiswal et al., 2020). The idea of contrastive learning is to find the similarities of samples of the same class by contrasting them with samples from other classes. In our task, with the label information, FSCC introduces supervised contrastive learning loss LSCL to cluster macromolecules from the same class, while simultaneously pushing apart macromolecules from different classes. The supervised contrastive learning loss LSCL is defined as N LSCL - i�1 N j�1 <u>1</u> N −Nyi − 1 <sup>�</sup> j�1 I�yi - yj� exp�fθ(xi) · fθ�xj��τ� - log, (3) - <sup>N</sup> k�1 <sup>Ii≠k exp</sup> - <sup>fθ</sup> ( <sup>xi</sup> ) · fθ(xk)�τ� where (xi, yi)(i = 1, 2, . . ., N) is the labeled macromolecules in one mini-batch; Nyi is the number of subtomograms that have the same label as yi; fθ is the feature extractor of the model; and τ is a hyper-parameter that controls the separation of different classes. Referring the original contrastive learning loss, we set τ to 0.07 (Khosla et al., 2020). To ensure that the mini-batch macromolecules cover a different class of macromolecules, FSCC randomly samples a uniform number of macromolecules from each base class C <sup>base</sup> . However, training the model with only supervised contrastive learning loss LSCL can lead to slow convergence of the model. Therefore, in order to converge faster, FSCC designed a combined loss function of cross-entropy loss LCE and contrastive learning loss LSCL (Figure 2). 2.3 Distribution Calibration To apply the pre-trained model to classify novel macromolecules, we fix the parameters of the feature extractor fθ and re-train the classifier C(·|Wn) with a limited number of labeled macromolecules of novel classes C <sup>novel</sup> . The feature distribution learned from very few labeled macromolecules can be a biased distribution, which can make the model to be overfitted (Yang et al., 2021a). Actually, as the base dataset D <sup>base</sup> contains a sufficient number of labeled macromolecules, the learned feature distribution of base dataset D <sup>base</sup> is more accurate than that of the novel dataset D <sup>novel</sup> . Previous works have proven that semantically similar images have similar distributions when the feature distribution follows a Gaussian distribution (Burke, 2018). Thus, to obtain a more accurate distribution of the novel dataset D <sup>novel</sup>, FSCC calibrates the distribution of the novel dataset D <sup>novel</sup> by transferring the distribution statistics of the base dataset D <sup>base</sup> to the novel dataset D <sup>novel</sup> . The distribution calibration consists of four steps (Algorithm 1). In step 1, FSCC computes the mean and co-variance to describe the nearly-Gaussian feature distribution of each base class in C <sup>base</sup> . The mean μ and co-variance Σ of each base class i are defined as follows: μi - <sup>n</sup> <u>j�</u> <sup>i</sup> <u>1</u> <sup>vj</sup> ni , ∀i ∈ Cb, (4) Algorithm 1. The training of the classifier in FSCC. 3 EXPERIMENTS AND RESULTS 3.1 Data Preparation To demonstrate the effectiveness of FSCC, it was tested on synthetic datasets and real datasets. We first introduce the synthetic datasets. There are two synthetic public datasets, which were released by SHREC in 2019 and 2021 (Gubins et al., 2019). For convenience, we named these two synthetic datasets SHREC19 and SHREC21. The raw SHREC dataset contains 10 reconstructed 3D tomograms and ground-truth information that record the localization and class of each macromolecule. The size of the 3D tomogram is 512 × 512 × 512 (1 voxel equals 1 nm). It contains thousands of macromolecules that are uniformly distributed. According to the molecular weight, macromolecules are grouped into large, medium, and small sizes by SHREC (Figure 3). We extract all subtomograms from 10 tomograms based on the ground-truth information. The extracted subtomogram is at the size of 32 × 32 × 32. Figure 4 shows an example of subtomograms of SHREC data. For SHREC19, there are 12 classes of macromolecules and 20785 macromolecules. The class distribution of macromolecules is uniform. Each class contains ~1700 macromolecules. As published by SHREC, the SNR of SHREC19 is 0.02. For SHREC21, there are 13 classes of macromolecules and 16291 macromolecules. Each class contains ~1300 macromolecules. In the N-way-K-shot classification tasks (N is set as 5), we randomly divided the SHREC data into the base dataset D <sup>base</sup> and novel dataset D <sup>novel</sup>, with five classes of macromolecules. For SHREC19, there are seven classes of macromolecules as the base dataset D <sup>base</sup> . For SHREC21, there are eight classes of macromolecules as the base dataset D <sup>base</sup> . Both the base dataset D <sup>base</sup> and novel dataset D <sup>novel</sup> cover macromolecules of small, medium, and large sizes. There are two real datasets in our work (Table 1). One real dataset covers seven classes of macromolecular structures published by Gao et al. (2020). For convenience, we name this dataset Dataset1. In Dataset1, there are 400 macromolecules, and each is reconstructed from the 2D tilt series with a size of 28 × 28 × 28. Another real dataset is generated by Guo et al. (2018). For convenience, we name this dataset Dataset2. Dataset2 covers five classes of macromolecular structures. Each class contains 200 macromolecules (28 × 28 × 28). As the real datasets contain a limited number of classes, the base dataset D <sup>base</sup> only contains a few class number of macromolecules if we set the number of novel classes (N) as 5 in the few-shot classification task. Thus, instead of ni <u>1</u> ni Σi - ni − 1 <sup>�</sup> j�1 �vj − μi���vj − μi��⊤, ∀i ∈ Cb, (5) j�1 where vj is a feature vector of the j-th macromolecules from the base class i and ni is the total number of macromolecules in base class i. In step 2, to make the feature distribution of the novel dataset D <sup>novel</sup> follow Gaussian distribution, FSCC transforms the feature vector v �[v1, . . ., vm] <sup>⊤</sup> of macromolecules of novel class C <sup>novel</sup> with the Tukey ladder of powers (Tukey, 1977). The computation is processed in each single dimension. The transformed feature vector ~v �[v~1, . . ., ~vm] <sup>⊤</sup> is defined as v <sup>λ</sup>, if λ ≠ 0 ~v - -, (6) log(v) if λ � 0 where λ is a hyperparameter that controls correcting the distribution. As suggested in the previous work, we set λ as 0.5 (Yang et al., 2021a). In step 3, to search similar base classes to a novel class, FSCC computes the Euclidean metric between the transformed feature ~v and the mean of base class μi of each base class i ∈ Cb (Eq. (7)). With a distance set Sdistance, FSCC selects the k base classes that has a minimum distance to the transformed feature ~v (Eq. (8)). Sdistance - �����μi − ~v����2, ∀i ∈ Cbase�, (7) �i|����μi − ~v����2 ∈ mink(Sdistance)�, (8) Sselected - �i|����μi − ~v where mink(·) means selecting the k minimum distance from the distance set Sdistance. Sselected covers the k nearest base classes to the transformed feature v~ of the novel class. In step 4, with the selected nearest k base classes Sselected, FSCC computes the statistics of the calibrated distribution of the novel class C <sup>novel</sup> (Eq. (9)–10). With the calibrated mean μ′ and co-variance Σ′ for each novel class, FSCC samples features from calibrated distribution to enrich the input for the classifier. μ′ � <sup>�i∈Snui</sup> <sup>+ ~v</sup> . (9) k + 1 Σ′ � <sup>�i∈SnΣi</sup> . (10) k FIGURE 3 | Density map and molecular weight (kDa) of each PDB ID in SHREC data. The top row is the PDB ID. The bottom row is the molecular weight (kDa). From left to right, the molecular weight of PDB decreases. FIGURE 4 | Example subtomograms of SHREC data. (A) Consecutive slices of a subtomogram of PDB ID 1bxn in SHREC19. (B) Consecutive slices of a subtomogram of PDB ID 1bxn in SHREC21. setting N to 5 as in the synthetic dataset, we equally divide the classes of the real dataset into base class D <sup>base</sup> and novel class D <sup>novel</sup> . For Dataset1, we randomly split the dataset into the base dataset D <sup>base</sup> with four classes of macromolecular structures and the novel dataset D <sup>novel</sup> with three classes of macromolecules. For Dataset2, we randomly split the dataset into the base dataset D <sup>base</sup> with three classes of macromolecular structures and the novel dataset D <sup>novel</sup> with two classes of macromolecules. 3.2 Implementation Details The architecture of FSCC is named as Conv-6 (Figure 5). The input of Conv-6 is a 3d subtomogram xi, and the output is the class ID y^ of macromolecules. In Conv-6, the feature extractor fθ comprises six ConvBlocks, and the classifier is the fully connected layer. Each ConvBlock is a composition of a 3d convolution layer, a batch normalization layer, a ReLu, and a 3d pooling layer. FSCC is implemented with Pytorch and trained on the GTX 2080ti GPU. In the pre-training stage, we train the Conv-6 with all macromolecules from the base dataset D <sup>base</sup> . The optimizer is Adam; the initial value of the learning rate is 0.05. When training with the synthetic datasets, the batch size is 128 and the training epoch is 5. When training with the real datasets, due to the small number of labeled macromolecules, to make the model converge, we set the batch size as 32 and the training epoch as 50. In the fine-tuning stage, we fixed the parameters of the feature extractor of Conv6 fθ and re-trained the classifier C(·|Wn) with very few limited macromolecules of novel class C <sup>novel</sup> . In each few-shot classification task, we have N × K limited labeled macromolecules (support set) to train the classifier and N × Q unlabeled macromolecules (query set) to predict. N is equal to the number of novel class C <sup>novel</sup> . K is generally set to 1 or 5. For FIGURE 5 | Architecture of FSCC Conv-6. In Conv-6, the feature extractor fθ comprises six ConvBlocks and the classifier is the fully connected layer. the synthetic datasets, N is 5. For the real dataset Dataset1, N is 3 and Dataset2 N is 2. All macromolecules in the support set and query set are randomly sampled from the novel dataset D <sup>novel</sup> . The classes of the query set and support set are the same at one few-shot classification task. To demonstrate the stability of FSCC, we tested it on randomly sampled 100 few-shot classification tasks. The performance of FSCC reflects in the mean classification accuracy (Eq. (12)) and F1 score (Eq. (11)) for these 100 tasks. In Eq. (12) and Eq. (11)), TP means true positive, TN means true negative, FN means false negative, and FP means false positive. <u>TP + TN</u> accuracy � TP + FN + FP + TN <sup>.</sup> (11) TABLE 1 | Macromolecular structures covered in real datasets. The first line shows the macromolecular structures in Dataset1. The second line macromolecular structures in Dataset2. Dataset Name Dataset1 Rabbit muscle aldolase Dataset2 Mitochondrial membrane Ribosome 26S proteasome Double capped proteasome Base dataset Novel dataset Glutamate dehydrogenase DNAB helicasehelicase T20S proteasome Apoferritin Hemagglutinin Insulin-bound insulin receptor TRiC TABLE 2 | Classification performance of FSCC and SOTA methods on the synthetic dataset. The classification performance is measured by classification accuracy, followed by the number of labeled training macromolecules in parentheses. Methods SHREC19 SHREC21 5-Way-5-Shot 5-Way-1-Shot 5-Way-5-Shot 5-Way-1-Shot Baseline (Chen et al., 2019) 73.14 ± 0.47%(50) 65.12 ± 0.74%(10) 71.36 ± 1.19%(50) 59.15 ± 1.70%(10) Baseline++ (Chen et al., 2019) 75.32 ± 0.37%(50) 66.65 ± 0.67%(10) 73.64 ± 1.04%(50) 65.19 ± 1.02%(10) FSCC (ours) 77.03 ± 1.21% (5) 70.56 ± 1.61% (1) 76.07 ± 1.03% (5) 68.24 ± 1.03% (1) <u>2TP</u> F1 � 2TP + FN + FP <sup>.</sup> (12) 3.3 Results on Synthetic Data 3.3.1 The Classification Results on Synthetic Datasets Here, we show the classification performance of FSCC on the synthetic datasets (Table 2). We tested FSCC and two popular fine-tuning–based methods on the few-shot classification task with SHREC19 and SHREC21. These two methods are named Baseline (Chen et al., 2019) and Baseline++ (Chen et al., 2019) in the original. Baseline and Baseline++ use the same architecture network (Figure 5) as the FSCC and adopt a two-stage training strategy. Baseline is a standard fine-tuning method. Baseline++ is the same as the original Baseline, except for the training of the classifier. Baseline++ trains the classifier base on cosine distance similarity to explicitly reduce intra-class variations. The pretraining strategy of Baseline and Baseline++ is the same as that of FSCC. In the fine-tuning stage, Baseline and Baseline++ re-train the classifier with 10 epochs. In each epoch, Baseline and Baseline++ randomly sample N × K labeled macromolecules to re-train the classifier. Thus, Baseline and Baseline++ methods use 10 × K labeled macromolecules of novel macromolecules per class. Concretely, Baseline and Baseline++ use 50 labeled macromolecules per class when adapting the model to 5-way5-shot classification tasks of novel macromolecules and 10 labeled macromolecules per class when adapting the model to 5-way-1shot tasks of novel macromolecules. In contrast to Baseline and Baseline++ methods, FSCC can re-train the classifier in one fewshot classification task. This means FSCC only needs five labeled macromolecules on 5-way-5-shot classification tasks of novel macromolecules and one labeled sample on the 5-way-1-shot classification tasks. In Table 2, we report the classification performance and the number of labeled macromolecules of each novel class that are needed in the fine-tuning stage. The classification performance is demonstrated by the mean and variance of classification accuracy (Eq. (12)) on 100 few-shot classification tasks. The number of labeled macromolecules is shown in parentheses after the classification accuracy. Due to the 5-way-5-shot task providing more labeled macromolecules than that of the 5-way-1-shot task, the classification performance of FSCC on the 5-way-5-shot task is higher than that of the 5-way-1shot task. Compared with Baseline and Baseline++ methods, on SHREC19, our method improves the accuracy by 3.86% when there are five labeled macromolecules per class and 5.44% when there is one labeled sample per class. On SHREC21, our method improves the accuracy by 4.71% when there are five labeled macromolecules per class and 9.09% when there is one labeled sample per class. We also compared FSCC with the state-of-the-art (SOTA) performance of supervised deep learning–based methods on SHREC19 and SHREC21. Table 3 shows the F1-score (Eq. (11)) and the number of labeled training macromolecules for each class of macromolecules of FSCC and SOTA. From the average F1 score, we can see that FSCC can achieve the classification performance of SOTA methods with five labeled macromolecules per novel class. However, the SOTA method uses a significantly larger number of 1100 ~ 1500 labeled macromolecules per novel class. It is worth emphasizing that the SOTA results are published by the SHREC contest. SHREC publics the F1-score of each macromolecule of many popular supervised deep learning–based methods. Here, the SHREC–SOTA means the highest F1 score of each class of macromolecule. Thus, SHREC–SOTA comes from different supervised deep learning–based methods. For most methods, there has been no access to source code or pretrained models. Table 3 only reports the performance of macromolecular structures from novel class C <sup>novel</sup> . In SHREC19 and SHREC21, the PDB ID of macromolecules in the novel class is 1u6g, 3cf3, 3gl1, 3qm1, 4d8q, and 4v49. 4d8q is only covered in SHREC19, and 4v49 is only covered in SHREC21. According to the molecular weight, 3g1 and 3qm1 are macromolecules of small size, 1u6g and 3cf3 are macromolecules of medium size, and 4d8q and 4v4g are macromolecules of large size. The result shows that for both methods, macromolecules of large size are easy to be classified. When the size decreases, the classification accuracy also decreases. The SHREC contest contains localization and classification tasks. In SHREC19, SOTA methods first localized the macromolecules and then classified them. Thus, the macromolecules may not be in the center of the input subtomograms. This makes sense that FSCC has higher classification accuracy because the input subtomograms are extracted according to the ground-truth localization. In SHREC21, SOTA methods adopt the end-to-end pixel classification–based model to obtain the class of macromolecular structures. For macromolecules of large size, the classification accuracy of FSCC is close to SOTA methods. Even for macromolecules of small size such as 3qm1, FSCC improves the classification performance by 0.31. This is because FSCC classifies novel macromolecules according to the statistic of macromolecules of the base class. In the base dataset, 1s3x is similar to 3qm1. Thus, the feature vectors of 1s3x are similar to those of 3qm1, which leads FSCC to classify 3qm1 with higher accuracy than SOTA. 3.3.2 Ablation Studies FSCC contains two key components: contrastive learning (Subsection 2.2) and distribution calibration (Subsection 2.3). Here, we performed an ablation study on SHREC19 to explore the contribution of each key component. In Table 4, there are four CNN models tested in the ablation study. First, we tested the base CNN model (Baseline) without contrastive learning and distribution calibration. Second, we added distribution calibration to the Baseline to test the contribution of distributed calibration. Third, we added contrastive learning to the Baseline to test the contribution of contrastive learning. Compared to Baseline, distribution calibration improves by 5.65% on 5-way-1-shot classification tasks. The aim of the distribution calibration is to calibrate the biased distribution learned from very few labeled macromolecules of novel class. Therefore, in the case of fewer labeled macromolecules, it is reasonable that the distribution calibration can more significantly improve the accuracy of image classification. The last model is our FSCC model. These results show the contribution of contrastive learning and distribution calibration to the fewshot macromolecule classification. In FSCC, we adopted cross-entropy loss and contrastive learning loss in the pre-training stage. The total loss function is shown in Eq. (1). Here, λ is a hyperparameter to control the component of supervised contrastive learning loss LSCL. On the SHREC19 and SHREC21 datasets, we test the relationship between the classification performance and the value of λ (Figure 6). To ensure that the cross-entropy loss and the supervised contrastive loss are of the same order of magnitude, the λ is set to 0.01, 0.05, 0.07, and 0.1. The results show that except for 5-way-1-shot on SHREC19, λ = 0.05 has the best test accuracy across all experimental settings. The test accuracy for the 5-way-1-shot task on SHREC19 differs by TABLE 4 | Ablation study on 5-way-5-shot and 5-way-1-shot classification tasks with SHREC19. Calibrated distribution Contrastive learning 5-Way-5-Shot 5-Way-1-Shot No No 73.14 ± 0.47% 65.12 ± 0.74% Yes No 75.97 ± 0.89% 70.77 ± 0.19% No Yes 74.32 ± 0.12% 68.44 ± 0.14% Yes Yes 77.12 ± 0.21% 70.59 ± 0.61% FIGURE 6 | Relationship between classification accuracy with the weight value λ of the supervised contrastive loss LSCL. TABLE 5 | Classification performance of FSCC on real datasets. The classification performance is measured by classification accuracy, followed by the number of labeled training macromolecules in parentheses. Dataset1 Dataset2 3-Way-5-Shot 3-Way-1-Shot 2-Way-5-Shot 2-Way-1-Shot Baseline 69.96 ± 1.41%(50) 64.44 ± 1.91%(10) 67.60 ± 0.94%(50) 65.27 ± 0.95%(10) Baseline++ 69.22 ± 1.33%(50) 65.44 ± 0.85%(10) 68.17 ± 1.06%(50) 66.93 ± 1.74%(10) FSCC 86.80 ± 1.27% (5) 70.40 ± 1.82% (1) 80.70 ± 1.28% (5) 73.03 ± 1.49% (1) 1.29% when λ equals 0.01 and 0.05. According to all hyperparameter experiments of λ, we recommend that the λ can be set as 0.05. 3.4 Results on Real Data Here, we tested FSCC on two real datasets. Table 5 shows the classification performance and training macromolecules of FSCC and baseline models (Baseline and Baseline++) on Dataset1 and Dataset2. The classification performance is represented by the mean and variance of the classification accuracy of randomly constructed 100 few-shot classification tasks. As the real datasets only cover a few classes of macromolecular structures and hundreds of macromolecules per class, the stability of the feature extractor of all pre-trained models is poor. This results in a variance of classification accuracy greater than 1%. In addition, the insufficient labeled macromolecules of the base class lead to poor generalization ability of Baseline and Baseline++. Thus, the classification performance of Baseline and Baseline++ is poor to novel macromolecules. Compared with Baseline methods, for Dataset1, FSCC significantly improves classification accuracy by 16.84% on 3-way-1-shot classification tasks and 5.96% on 3-way5-shot classification tasks. For Dataset2, FSCC significantly improves classification accuracy by 13.1% on 2-way-1-shot classification tasks and 7.76% on 2-way-5-shot classification tasks. 4 DISCUSSION AND CONCLUSION The classification of subtomograms is a key step to recover macromolecular structures captured by cryo-ET. Although supervised deep learning–based methods have improved the classification accuracy, they have limited ability to classify novel macromolecules. To adapt the model to a novel class of macromolecules, the trained model needed to be re-trained with massive labeled macromolecules of the novel class. However, it is inefficient and undesirable in practice as labeling the sample is timeconsuming and laborious. In this work, we proposed a few-shot learning-based macromolecule classification method named FSCC. Different from the existing supervised deep learning–based methods, FSCC can classify novel macromolecules with very few labeled macromolecules. Based on a two-step training strategy, FSCC first pre-trained the model with supervised contrastive learning on the base dataset with a sufficient number of labeled macromolecules. Supervised contrastive learning can help enhance the generalization ability and stability of the model. Then, FSCC re-trains the classifier with distribution calibration to enable the model to classify novel macromolecules. The results on synthetic datasets demonstrate that compared to SOTA of supervised deep learning–based methods, FSCC can achieve competitive performance given only five labeled macromolecules per novel class. However, the SOTA method needs 1100 ~ 1500 labeled training macromolecules per novel class. On the synthetic dataset SHREC19 (SNR = 0.02), compared to the popular finetuning–based few-shot classification method, FSCC improves classification accuracy by 3.89% on 5-way-5-shot tasks and by 5.44% on 5-way-1-shot tasks. On real datasets, compared to popular fine-tuning–based few-shot classification methods, FSCC improves classification accuracy by 5% ~ 7% when there are five labeled macromolecules per class of novel macromolecules. FSCC significantly improves classification accuracy by 13% ~ 16% when there is only one labeled sample per class of novel macromolecules. REFERENCES Bharat, T. A. M., and Scheres, S. H. W. (2016). Resolving Macromolecular Structures from Electron Cryo-Tomography Data Using Subtomogram Averaging in Relion. Nat. Protoc. 11, 2054–2065. [doi:10.1038/nprot.2016.124](https://doi.org/10.1038/nprot.2016.124) Blanchet, C. E., and Svergun, D. I. (2013). Small-angle X-Ray Scattering on Biological Macromolecules and Nanocomposites in Solution. Annu. Rev. Phys. Chem. 64, 37–54. [doi:10.1146/annurev-physchem-040412-110132](https://doi.org/10.1146/annurev-physchem-040412-110132) Böhm, J., Frangakis, A. S., Hegerl, R., Nickell, S., Typke, D., and Baumeister, W. (2000). Toward Detecting and Identifying Macromolecules in a Cellular Context: Template Matching Applied to Electron Tomograms. Proc. Natl. Acad. Sci. U.S.A. 97, 14245–14250. [doi:10.1073/pnas.230282097](https://doi.org/10.1073/pnas.230282097) Burke, W. W. (2018). The Rise and Fall of the Growth of Organization Development: What Now? Consult. Psychol. J. Pract. Res. 70, 186–206. [doi:10.1037/cpb0000116](https://doi.org/10.1037/cpb0000116) Chen, W.-Y., Liu, Y.-C., Kira, Z., Wang, Y.-C. F., and Huang, J.-B. (2019). A Closer Look at Few-Shot Classification. arXiv Prepr. arXiv:1904.04232. Gao, S., Han, R., Zeng, X., Cui, X., Liu, Z., Xu, M., et al. (2020). “Dilated-densenet for Macromolecule Classification in Cryo-Electron Tomography,” in International Symposium on Bioinformatics Research and Applications (Berlin, Germany: Springer), 82–94. [doi:10.1007/978-3-030-57821-3_8](https://doi.org/10.1007/978-3-030-57821-3_8) Gao, S., Han, R., Zeng, X., Liu, Z., Xu, M., and Zhang, F. (2021). Macromolecules Structural Classification with a 3d Dilated Dense Network in Cryo-Electron Tomography. IEEE/ACM Trans. Comput. Biol. Bioinforma. 19, 209–219. Gubins, I., Chaillet, M. L., van der Schot, G., Veltkamp, R. C., Förster, F., Hao, Y., et al. (2020). Shrec 2020: Classification in Cryo-Electron Tomograms. Comput. Graph. 91, 279–289. [doi:10.1016/j.cag.2020.07.010](https://doi.org/10.1016/j.cag.2020.07.010) Gubins, I., van der Schot, G., Veltkamp, R. C., Förster, F., Du, X., Zeng, X., et al. (2019). Classification in Cryo-Electron Tomograms. SHREC’19 Track. Guo, Q., Lehmer, C., Martínez-Sánchez, A., Rudack, T., Beck, F., Hartmann, H., et al. (2018). In Situ structure of Neuronal C9orf72 Poly-ga Aggregates Reveals Proteasome Recruitment. Cell. 172, 696–705. [doi:10.1016/j.cell.2017.12.030](https://doi.org/10.1016/j.cell.2017.12.030) Harastani, M., and Jonic, S. (2021). “Comparison between Hemnma-3d and Traditional Classification Techniques for Analyzing Biomolecular Continuous Shape Variability in Cryo Electron Subtomograms,” in 2021 4th International Conference on Bio-Engineering for Smart Technologies DATA AVAILABILITY STATEMENT The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding authors. AUTHOR CONTRIBUTIONS SG proposed the methods, performed and analyzed the experiments, and wrote the article. XZ collected data. MX modified the article. All authors contributed to the article and approved the submitted version. FUNDING The research is supported by the National Key Research and Development Program of China (No. 2021YFF0704300 and No. 2017YFA0504702), the Strategic Priority Research Program of the Chinese Academy of Sciences (No. XDA16021400), and the NSFC project grants (61932018, 6207244162072280, and 62072283). (BioSMART) (Créteil, France: IEEE), 01–04. [doi:10.1109/biosmart54244.](https://doi.org/10.1109/biosmart54244.2021.9677643) [2021.9677643](https://doi.org/10.1109/biosmart54244.2021.9677643) Himes, B. A., and Zhang, P. (2018). Emclarity: Software for High-Resolution Cryo Electron Tomography and Subtomogram Averaging. Nat. Methods 15, 955–961. [doi:10.1038/s41592-018-0167-z](https://doi.org/10.1038/s41592-018-0167-z) Jaiswal, A., Babu, A. R., Zadeh, M. Z., Banerjee, D., and Makedon, F. (2020). A [Survey on Contrastive Self-Supervised Learning. Technologies 9, 2. doi:10.3390/](https://doi.org/10.3390/technologies9010002) [technologies9010002](https://doi.org/10.3390/technologies9010002) Jonić, S. (2016). Cryo-electron Microscopy Analysis of Structurally Heterogeneous [Macromolecular Complexes. Comput. Struct. Biotechnol. J. 14, 385–390. doi:10.](https://doi.org/10.1016/j.csbj.2016.10.002) [1016/j.csbj.2016.10.002](https://doi.org/10.1016/j.csbj.2016.10.002) Khosla, P., Teterwak, P., Wang, C., Sarna, A., Tian, Y., Isola, P., et al. (2020). Supervised Contrastive Learning. Adv. Neural Inf. Process. Syst. 33, 18661–18673. Li, X., Sun, Z., Xue, J.-H., and Ma, Z. (2021). A Concise Review of Recent Few-Shot Meta-Learning Methods. Neurocomputing 456, 463–468. [doi:10.1016/j.](https://doi.org/10.1016/j.neucom.2020.05.114) [neucom.2020.05.114](https://doi.org/10.1016/j.neucom.2020.05.114) Liu, C., Mendonça, L., Yang, Y., Gao, Y., Shen, C., Liu, J., et al. (2020). The Architecture of Inactivated Sars-Cov-2 with Postfusion Spikes Revealed by Cryo-Em and Cryo-Et. Structure 28, 1218–1224. [doi:10.1016/j.str.2020.10.001](https://doi.org/10.1016/j.str.2020.10.001) Lučić, V., Rigort, A., and Baumeister, W. (2013). Cryo-electron Tomography: the Challenge of Doing Structural Biology In Situ. J. Cell. Biol. 202, 407–419. Martinez-Sanchez, A., Kochovski, Z., Laugks, U., Meyer zum Alten Borgloh, J., Chakraborty, S., Pfeffer, S., et al. (2020). Template-free Detection and Classification of Membrane-Bound Complexes in Cryo-Electron Tomograms. Nat. Methods 17, 209–216. [doi:10.1038/s41592-019-0675-5](https://doi.org/10.1038/s41592-019-0675-5) Melia, C. E., and Bharat, T. A. M. (2018). Locating Macromolecules and Determining Structures inside Bacterial Cells Using Electron Cryotomography. Biochimica Biophysica Acta (BBA) - Proteins Proteomics 1866, 973–981. [doi:10.1016/j.bbapap.2018.06.003](https://doi.org/10.1016/j.bbapap.2018.06.003) Moebel, E., Martinez-Sanchez, A., Lamm, L., Righetto, R. D., Wietrzynski, W., Albert, S., et al. (2021). Deep Learning Improves Macromolecule Identification [in 3d Cellular Cryo-Electron Tomograms. Nat. Methods 18, 1386–1394. doi:10.](https://doi.org/10.1038/s41592-021-01275-4) [1038/s41592-021-01275-4](https://doi.org/10.1038/s41592-021-01275-4) Oda, T., and Kikkawa, M. (2013). Novel Structural Labeling Method Using Cryo Electron Tomography and Biotin-Streptavidin System. J. Struct. Biol. 183, 305–311. [doi:10.1016/j.jsb.2013.07.003](https://doi.org/10.1016/j.jsb.2013.07.003) Pyle, E., and Zanetti, G. (2021). Current Data Processing Strategies for Cryo Electron Tomography and Subtomogram Averaging. Biochem. J. 478, 1827–1845. [doi:10.1042/bcj20200715](https://doi.org/10.1042/bcj20200715) Saito, K., Ushiku, Y., Harada, T., and Saenko, K. (2019). “Strong-weak Distribution Alignment for Adaptive Object Detection,” in Proceedings of the IEEE/CVF [Conference on Computer Vision and Pattern Recognition, 6956–6965. doi:10.](https://doi.org/10.1109/cvpr.2019.00712) [1109/cvpr.2019.00712](https://doi.org/10.1109/cvpr.2019.00712) Su, Y., Li, Y., Nie, W., Song, D., and Liu, A.-A. (2019). Joint Heterogeneous Feature Learning and Distribution Alignment for 2d Image-Based 3d Object Retrieval. IEEE Trans. Circuits Syst. Video Technol. 30, 3765–3776. Sun, B., and Saenko, K. (2016). “Deep Coral: Correlation Alignment for Deep Domain Adaptation,” in European conference on computer vision (Berlin, Germany: Springer), 443–450. [doi:10.1007/978-3-319-49409-8_35](https://doi.org/10.1007/978-3-319-49409-8_35) Tukey, J. (1977). Addison-wesley Series in Behavioral Science: Quantitative Methods. Reading: Addison-Wesley. Wan, W., and Briggs, J. A. G. (2016). Cryo-electron Tomography and Subtomogram Averaging. Methods Enzym. 579, 329–367. [doi:10.1016/bs.](https://doi.org/10.1016/bs.mie.2016.04.014) [mie.2016.04.014](https://doi.org/10.1016/bs.mie.2016.04.014) Wang, S., Li, W., Wang, Y., Jiang, Y., Jiang, S., and Zhao, R. (2012). An Improved [Difference of Gaussian Filter in Face Recognition. J. Multim. 7, 429–433. doi:10.](https://doi.org/10.4304/jmm.7.6.429-433) [4304/jmm.7.6.429-433](https://doi.org/10.4304/jmm.7.6.429-433) Xu, M., Singla, J., Tocheva, E. I., Chang, Y.-W., Stevens, R. C., Jensen, G. J., et al. (2019). De Novo structural Pattern Mining in Cellular Electron Cryotomograms. Structure 27, 679–691. [doi:10.1016/j.str.2019.01.005](https://doi.org/10.1016/j.str.2019.01.005) Yang, S., Liu, L., and Xu, M. (2021a). Free Lunch for Few-Shot Learning: Distribution Calibration. arXiv Prepr. arXiv:2101.06395. Yang, S., Wu, S., Liu, T., and Xu, M. (2021b). “Bridging the Gap between Few Shot and Many-Shot Learning via Distribution Calibration,” in IEEE Transactions on Pattern Analysis and Machine Intelligence. [doi:10.1109/](https://doi.org/10.1109/tpami.2021.3132021) [tpami.2021.3132021](https://doi.org/10.1109/tpami.2021.3132021) Yu, Z., and Frangakis, A. S. (2011). Classification of Electron Sub-tomograms with Neural Networks and its Application to Template-Matching. J. Struct. Biol. 174, 494–504. [doi:10.1016/j.jsb.2011.02.009](https://doi.org/10.1016/j.jsb.2011.02.009) Zeng, Y., Howe, G., Yi, K., Zeng, X., Zhang, J., Chang, Y.-W., et al. (2021). “Unsupervised Domain Alignment Based Open Set Structural Recognition of Macromolecules Captured by Cryo-Electron Tomography,” in 2021 IEEE International Conference on Image Processing (ICIP) (Anchorage, AK, USA: IEEE), 106–110. [doi:10.1109/icip42928.2021.9506205](https://doi.org/10.1109/icip42928.2021.9506205) Conflict of Interest: The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. Publisher’s Note: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher. Copyright © 2022 Gao, Zeng, Xu and Zhang. This is an open-access article distributed under the terms of the Creative Commons [Attribution](https://creativecommons.org/licenses/by/4.0/) License (CC [BY). The use, distribution or reproduction in other forums is permitted, provided the](https://creativecommons.org/licenses/by/4.0/) original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

섹션 본문 39문단 · 35,829자

(제목 없음)

1Cryo-electron tomography (Cryo-ET) is an emerging technology for three-dimensional (3D) visualization of macromolecular structures in the near-native state. To recover structures of macromolecules, millions of diverse macromolecules captured in tomograms should be accurately classified into structurally homogeneous subsets. Although existing supervised deep learning-based methods have improved classification accuracy, such trained models have limited ability to classify novel macromolecules that are unseen in the training stage. To adapt the trained model to the macromolecule classification of a novel class, massive labeled macromolecules of the novel class are needed. However, data labeling is very time-consuming and labor-intensive. In this work, we propose a novel few-shot learning method for the classification of novel macromolecules (named FSCC). A two-stage training strategy is designed in FSCC to enhance the generalization ability of the model to novel macromolecules. First, FSCC uses contrastive learning to pre-train the model on a sufficient number of labeled macromolecules. Second, FSCC uses distribution calibration to re-train the classifier, enabling the model to classify macromolecules of novel classes (unseen class in the pre-training). Distribution calibration transfers learned knowledge in the pre-training stage to novel macromolecules with limited labeled macromolecules of novel class. Experiments were performed on both synthetic and real datasets. On the synthetic datasets, compared with the state-of-the-art (SOTA) method based on supervised deep learning, FSCC achieves competitive performance. To achieve such performance, FSCC only needs five labeled macromolecules per novel class. However, the SOTA method needs 1100~1500 labeled macromolecules per novel class. On the real datasets, FSCC improves the accuracy by 5%~16% when compared to the baseline model. These demonstrate good generalization ability of contrastive learning and calibration distribution to classify novel macromolecules with very few labeled macromolecules.

INTRODUCTION

2Biological processes in cells are dominated by complex networks of molecular assemblies and their interactions. Analyzing the native structure and spatial distribution of molecular assemblies is essential for revealing the macromolecular mechanism of cellular processes. Cryo-electron tomography (cryo-ET) is an emerging technique for three-dimensional (3D) visualization of macromolecular structures (Lučić et al., 2013;Wan and Briggs, 2016). Compared to other 3D visualization methods such as X-ray (Blanchet and Svergun, 2013), cryo-ET has the advantage of revealing the structure of macromolecular structures in a near-native state at the sub-molecular resolution. Many important native macromolecular structures have been discovered using cryo-ET, such as SARS-Cov-2 that caused the COVID-19 pandemic .

3In principle, the cellular tomograms imaged by cryo-ET can capture millions of macromolecules with diverse structures. To recover structures of macromolecules, diverse macromolecules in tomograms should be detected (Melia and Bharat, 2018), classified (Gao et al., 2021), aligned and averaged , and called subtomogram averaging (STA) (Bharat and Scheres, 2016). Macromolecule classification aims to classify diverse macromolecules into structurally homogeneous subsets accurately. The input to macromolecule classification is a subtomogram, a subvolume of the tomogram. Each subtomogram contains a complete macromolecule. The accuracy of macromolecule classification directly affects the performance of downstream tasks. Because misclassified macromolecules can introduce wrong structures, it further increases the difficulty in alignment. However, macromolecule classification remains challenging due to the low signal-to-noise ratio (SNR), a large variety of macromolecular structures, and small size of macromolecules.

4One pioneering method for macromolecule classification is the template search (Yu and Frangakis, 2011). Given the template structure, this method calculates the cross-correlation coefficient between each subvolume of the tomogram and the template structure through a sliding window. When the crosscorrelation coefficient is higher than a threshold, the target macromolecule is been identified. Though this method has been successfully applied to identify some large macromolecules (Böhm et al., 2000), the performance highly depends on the template structure. When the targets and template structures are from different organisms or have different conformations, these targets can be missed (Moebel et al., 2021). To avoid relying on template structures, templatefree classification methods have been developed (Jonić, 2016;Xu et al., 2019;Martinez-Sanchez et al., 2020). For example, Xu et al. (Xu et al., 2019) proposed an iterative clustering process to group macromolecules that have the same macromolecular structures. Although this template-free method can classify novel macromolecules, iterative clustering in 3D is time-consuming. This makes the method only suitable for small datasets and has limited application in practical scenarios.

5Recently, the SHREC contest (Gubins et al., 2020) caused a surge in supervised deep learning-based subtomogram classification methods (Himes and Zhang, 2018;Harastani and Jonic, 2021;Moebel et al., 2021;Pyle and Zanetti, 2021). For example, Xu et al. proposed the DoG-3D-CNN (Gubins et al., 2019) method to classify subtomograms after filtering image noise with a difference of Gaussian (DoG) filter (Wang et al., 2012). Considering that the subtomogram is a 3D image, to extract more features from depth dimension, Gao et al. proposed 3D-dilated-Densenet (Gao et al., 2020). 3D-dilated-Densenet improves the classification performance of macromolecules of small size. Despite improving classification accuracy and decreasing the processing time, the abovementioned supervised deep learning-based methods often have one major bottleneck: trained models have limited ability to classify novel macromolecules that are unseen in the training stage. To adapt the trained model to macromolecule classification of a novel class (unseen class in the training stage), massive labeled macromolecules of the novel class are required to retrain the model. This is inefficient and undesirable in practice tasks as labeling macromolecules is time-consuming and laborious (Oda and Kikkawa, 2013). Furthermore, due to complicated structures and distortion caused by missing wedge and noise, it is hard to label macromolecules with naked eyes even by experts.

6In this study, we propose a novel few-shot learning method for macromolecule classification of novel classes (named FSCC) ( Figure 1). Combined with contrastive learning and distribution calibration, a two-stage training strategy is designed in FSCC to enhance the generalization ability of the model to novel macromolecules. First, FSCC uses contrastive learning (Khosla et al., 2020) to pre-train the model on a sufficient number of labeled macromolecules. This comes from the intuition that good generalization requires capturing the similarity between subtomograms in the same class and contrasting them with subtomograms in other classes. With contrastive learning, FSCC can pull together macromolecules belonging to the same class in the embedding space and separate macromolecules from different classes. Second, FSCC retrains the model to classify novel macromolecules. Specifically, FSCC freezes the parameters of the feature extractor of the pretrained model. Then, based on distribution calibration (Yang et al., 2021b), FSCC retrains the classifier with a limited number of labeled macromolecules from novel classes. Distribution calibration is a kind of domain adaption method (Sun and Saenko, 2016). It can bridge the distribution gap between the source domain and target domain. Distribution calibration has been widely applied in high-level computer vision tasks such as object detection (Saito et al., 2019) and image retrieval (Su et al., 2019). In FSCC, the data distribution learned from a few macromolecules can be a biased distribution, which leads the model to become overfitted, whereas in the first pre-train stage, the data distribution learned from sufficient macromolecules is more accurate, which can alleviate such an overfitting problem. Thus, FSCC calibrates the distribution of the novel class by transferring the distribution statistics from the class with a sufficient number of macromolecules. After distribution calibration, FSCC samples an adequate number of features from the calibrated distribution to augment the inputs to the classifier.

7To demonstrate the performance of FSCC, we tested FSCC on synthetic and real datasets. The results show that different from existing supervised deep learning-based macromolecule classification methods, FSCC has good generalization ability to novel macromolecules. FSCC can accurately classify novel macromolecules with very few labeled macromolecules. On synthetic datasets, FSCC achieves competitive performance when compared to the state-of-the-art (SOTA) method based on supervised deep learning. Specifically, on the synthetic dataset SHREC21, the F1-score of FSCC is 0.75, while the F1score of SOTA is 0.73. To achieve such performance, FSCC uses only five labeled macromolecules per novel class. However, the SOTA method uses 1100~1500 labeled macromolecules per novel class. On the real datasets, FSCC improves the accuracy by 5%~16% compared to the baseline model based on two-stage training. These demonstrate the good generalization ability of contrastive learning and calibration distribution to novel macromolecules.

Problem Definition of Few-Shot Macromolecule Classification

8Before introducing the framework of FSCC, we first briefly introduce the problem definition of the few-shot macromolecule classification. In the standard few-shot classification scenario (Li et al., 2021), there are two kinds of macromolecule datasets: a base dataset D base and a novel dataset D novel . Let C base be the set of classes covered by D base and let C novel be the set of classes covered by D novel , then we have C base ⋂C novel = ∅. The goal of the few-shot classification method is to use a model trained on D base to classify novel macromolecules of D novel , given limited labeled macromolecules from D novel . Here, in one few-shot classification task, the limited labeled macromolecules are defined as the support set and the unlabeled macromolecules, which are needed to be classified and are defined as the query set. The classes of the query set and support set are the same at the one few-shot task. According to the number of classes covered by the few-shot classification task and the number of labeled macromolecules per class in the support set, the few-shot task is named N-way-K-shot tasks. Nway-K-shot means there are N novel classes, and each class has K labeled macromolecules. Generally, N is set as 5 and K is set as 1 or 5.

The Framework of FSCC

9FSCC designs a two-stage training strategy: pre-training stage and classifier re-training stage to enhance the generalization ability of the model to novel macromolecules ( Figure 1). In the pretraining stage, given a sufficient number of labeled macromolecules (x b , y b ) from D base , where x b is a I n×n×n 3D subtomogram image and y b ∈ C base , FSCC trains a feature extractor f θ and a classifier C(·|W b ) to predict the class of macromoleculesŷ b . A good feature extractor f θ should learn an embedding such that the features of macromolecules of the same class are close to each other, while the features of macromolecules of different classes are far apart. To learn such a feature extractor f θ , FSCC designs a weighted loss (1)) based on contrastive learning (Jaiswal et al., 2020) (Subsection 2.2). This weighted loss function L contains two kinds of loss. The first one L CE (Eq. (2)) is a penalty of misclassified macromolecules. The other is class similarity-based loss L SCL (Eq. (3)) which aims to find the similarities between the macromolecules of the same class and contrast them with macromolecules from other classes.

10To enable the pre-trained model to classify novel macromolecules, given a few labeled macromolecules (x n , y n ) from D novel , FSCC freezes parameters of the feature extractor f θ and retrains the classifier C(·|W n ). Training the classifier with very few labeled macromolecules is a challenge because the feature distribution learned from very few labeled macromolecules (x n , y n ) can be a biased distribution (Yang et al., 2021a). This biased distribution cannot accurately reflect the ground-truth distribution of macromolecules of novel classes. Actually, the estimated distribution of the base dataset D base with a sufficient number of labeled macromolecules is more accurate than that of the novel dataset D novel with limited labeled macromolecules. Previous work has proved that semantically similar images have similar feature distributions (Burke, 2018). Thus, FSCC performs distribution calibration on extracted features of the input novel macromolecule x n with learned knowledge from the base dataset D base . The detailed description of distribution calibration is given in Subsection 2.3. After calibration distribution, FSCC samples adequate features from calibrated distribution to augment the input for the classifier.

Supervised Contrastive Learning

11FSCC designs a weighted loss function L of the cross-entropy (CE) loss L CE and the supervised contrastive learning (SCL) loss L SCL to pre-train the model. L is defined as

12where λ is a weight coefficient of L SCL . We suggest that λ is 0.05 based on the experimental results (Subsection 3.3.2). Cross-entropy loss L CE (Eq. (2)) is a commonly used loss function in existing supervised deep learning-based macromolecule classification methods. L CE is defined as

13where M is the number of input subtomograms in the mini-batch; i means the i-th macromolecule in this mini-batch; c means the class ID of base classes; y i,c denotes the ground-truth label of input subtomograms, andŷ i,c denotes the predicted class. Though CE loss L CE is good at learning the inter-class information, it only focuses on misclassified macromolecules, while ignoring the similarity between macromolecules from the same class. Therefore, the learned features of the same classes present scattered shape if the model is trained with only cross-entropy loss L CE (Figure 2). Contrastive learning is one of the methods that have been widely used in self-supervised learning to enhance the generalization ability of the model recently (Jaiswal et al., 2020). The idea of contrastive learning is to find the similarities of samples of the same class by contrasting them with samples from other classes. In our task, with the label information, FSCC introduces supervised contrastive learning loss L SCL to cluster macromolecules from the same class, while simultaneously pushing apart macromolecules from different classes. The supervised contrastive learning loss L SCL is defined as

14where (x i , y i )(i = 1, 2, . . . , N) is the labeled macromolecules in one mini-batch; N yi is the number of subtomograms that have the same label as y i ; f θ is the feature extractor of the model; and τ is a hyper-parameter that controls the separation of different classes. Referring the original contrastive learning loss, we set τ to 0.07 (Khosla et al., 2020). To ensure that the mini-batch macromolecules cover a different class of macromolecules, FSCC randomly samples a uniform number of macromolecules from each base class C base . However, training the model with only supervised contrastive learning loss L SCL can lead to slow convergence of the model. Therefore, in order to converge faster, FSCC designed a combined loss function of cross-entropy loss L CE and contrastive learning loss L SCL (Figure 2).

Distribution Calibration

15To apply the pre-trained model to classify novel macromolecules, we fix the parameters of the feature extractor f θ and re-train the classifier C(·|W n ) with a limited number of labeled macromolecules of novel classes C novel . The feature distribution learned from very few labeled macromolecules can be a biased distribution, which can make the model to be overfitted (Yang et al., 2021a). Actually, as the base dataset D base contains a sufficient number of labeled macromolecules, the learned feature distribution of base dataset D base is more accurate than that of the novel dataset D novel . Previous works have FIGURE 2 | Conceptualization of cross-entropy loss L CE (eq. (2)) and FSCC loss L (eq. (1)). There are two kinds of extracted features of classes A and B. When adopting cross-entropy loss L CE to train the model, the interclass distance is close. Instead, when adopting the loss of FSCC L, the inter-class distance increases, while intra-class distance reduces.

16Frontiers in Molecular Biosciences | www.frontiersin.org July 2022 | Volume 9 | Article 931949 proven that semantically similar images have similar distributions when the feature distribution follows a Gaussian distribution (Burke, 2018). Thus, to obtain a more accurate distribution of the novel dataset D novel , FSCC calibrates the distribution of the novel dataset D novel by transferring the distribution statistics of the base dataset D base to the novel dataset D novel . The distribution calibration consists of four steps (Algorithm 1). In step 1, FSCC computes the mean and co-variance to describe the nearly-Gaussian feature distribution of each base class in C base . The mean μ and co-variance Σ of each base class i are defined as follows:

17where v j is a feature vector of the j-th macromolecules from the base class i and n i is the total number of macromolecules in base class i.

18In step 2, to make the feature distribution of the novel dataset D novel follow Gaussian distribution, FSCC transforms the feature vector v [v 1 , . . . , v m ] ⊤ of macromolecules of novel class C novel with the Tukey ladder of powers (Tukey, 1977). The computation is processed in each single dimension. The transformed feature

19where λ is a hyperparameter that controls correcting the distribution. As suggested in the previous work, we set λ as 0.5 (Yang et al., 2021a). In step 3, to search similar base classes to a novel class, FSCC computes the Euclidean metric between the transformed featureṽ and the mean of base class μ i of each base class i ∈ C b (Eq. (7)). With a distance set S distance , FSCC selects the k base classes that has a minimum distance to the transformed featurẽ v (Eq. (8)).

20where mink(·) means selecting the k minimum distance from the distance set S distance . S selected covers the k nearest base classes to the transformed featureṽ of the novel class.

21In step 4, with the selected nearest k base classes S selected , FSCC computes the statistics of the calibrated distribution of the novel class C novel (Eq. (9)-10). With the calibrated mean μ′ and co-variance Σ′ for each novel class, FSCC samples features from calibrated distribution to enrich the input for the classifier.

22μ′ i∈Sn u i +ṽ k + 1 .

23Σ′ i∈Sn Σ i k .

24Algorithm 1. The training of the classifier in FSCC.

Data Preparation

25To demonstrate the effectiveness of FSCC, it was tested on synthetic datasets and real datasets. We first introduce the synthetic datasets. There are two synthetic public datasets, which were released by SHREC in 2019 and 2021 (Gubins et al., 2019). For convenience, we named these two synthetic datasets SHREC19 and SHREC21. The raw SHREC dataset contains 10 reconstructed 3D tomograms and ground-truth information that record the localization and class of each macromolecule. The size of the 3D tomogram is 512 × 512 × 512 (1 voxel equals 1 nm). It contains thousands of macromolecules that are uniformly distributed. According to the molecular weight, macromolecules are grouped into large, medium, and small sizes by SHREC (Figure 3). We extract all subtomograms from 10 tomograms based on the ground-truth information. The extracted subtomogram is at the size of 32 × 32 × 32. Figure 4 shows an example of subtomograms of SHREC data. For SHREC19, there are 12 classes of macromolecules and 20785 macromolecules. The class distribution of macromolecules is uniform. Each class contains~1700 macromolecules. As published by SHREC, the SNR of SHREC19 is 0.02. For SHREC21, there are 13 classes of macromolecules and 16291 macromolecules. Each class contains~1300 macromolecules. In the N-way-K-shot classification tasks (N is set as 5), we randomly divided the SHREC data into the base dataset D base and novel dataset D novel , with five classes of macromolecules. For SHREC19, there are seven classes of macromolecules as the base dataset D base . For SHREC21, there are eight classes of macromolecules as the base dataset D base . Both the base dataset D base and novel dataset D novel cover macromolecules of small, medium, and large sizes. There are two real datasets in our work ( Table 1). One real dataset covers seven classes of macromolecular structures published by Gao et al. (2020). For convenience, we name this dataset Dataset1. In Dataset1, there are 400 macromolecules, and each is reconstructed from the 2D tilt series with a size of 28 × 28 × 28. Another real dataset is generated by Guo et al. (2018). For convenience, we name this dataset Dataset2. Dataset2 covers five classes of macromolecular structures. Each class contains 200 macromolecules (28 × 28 × 28). As the real datasets contain a limited number of classes, the base dataset D base only contains a few class number of macromolecules if we set the number of novel classes (N) as 5 in the few-shot classification task. Thus, instead of Frontiers in Molecular Biosciences | www.frontiersin.org July 2022 | Volume 9 | Article 931949 setting N to 5 as in the synthetic dataset, we equally divide the classes of the real dataset into base class D base and novel class D novel . For Dataset1, we randomly split the dataset into the base dataset D base with four classes of macromolecular structures and the novel dataset D novel with three classes of macromolecules. For Dataset2, we randomly split the dataset into the base dataset D base with three classes of macromolecular structures and the novel dataset D novel with two classes of macromolecules.

Implementation Details

26The architecture of FSCC is named as Conv-6 ( Figure 5). The input of Conv-6 is a 3d subtomogram x i , and the output is the class IDŷ of macromolecules. In Conv-6, the feature extractor f θ comprises six ConvBlocks, and the classifier is the fully connected layer. Each ConvBlock is a composition of a 3d convolution layer, a batch normalization layer, a ReLu, and a 3d pooling layer. FSCC is implemented with Pytorch and trained on the GTX 2080ti GPU. In the pre-training stage, we train the Conv-6 with all macromolecules from the base dataset D base . The optimizer is Adam; the initial value of the learning rate is 0.05. When training with the synthetic datasets, the batch size is 128 and the training epoch is 5. When training with the real datasets, due to the small number of labeled macromolecules, to make the model converge, we set the batch size as 32 and the training epoch as 50. In the fine-tuning stage, we fixed the parameters of the feature extractor of Conv6 f θ and re-trained the classifier C(·|W n ) with very few limited macromolecules of novel class C novel . In each few-shot classification task, we have N × K limited labeled macromolecules (support set) to train the classifier and N × Q unlabeled macromolecules (query set) to predict. N is equal to the number of novel class C novel . K is generally set to 1 or 5. For the synthetic datasets, N is 5. For the real dataset Dataset1, N is 3 and Dataset2 N is 2. All macromolecules in the support set and query set are randomly sampled from the novel dataset D novel . The classes of the query set and support set are the same at one few-shot classification task. To demonstrate the stability of FSCC, we tested it on randomly sampled 100 few-shot classification tasks. The performance of FSCC reflects in the mean classification accuracy (Eq. (12)) and F1 score (Eq. (11)) for these 100 tasks. In Eq. (12) and Eq. (11)

The Classification Results on Synthetic Datasets

27Here, we show the classification performance of FSCC on the synthetic datasets ( Table 2). We tested FSCC and two popular fine-tuning-based methods on the few-shot classification task with SHREC19 and SHREC21. These two methods are named Baseline (Chen et al., 2019) and Baseline++ (Chen et al., 2019) in the original. Baseline and Baseline++ use the same architecture network ( Figure 5) as the FSCC and adopt a two-stage training strategy. Baseline is a standard fine-tuning method. Baseline++ is the same as the original Baseline, except for the training of the classifier. Baseline++ trains the classifier base on cosine distance similarity to explicitly reduce intra-class variations. The pretraining strategy of Baseline and Baseline++ is the same as that of FSCC. In the fine-tuning stage, Baseline and Baseline++ re-train the classifier with 10 epochs. In each epoch, Baseline and Baseline++ randomly sample N × K labeled macromolecules to re-train the classifier. Thus, Baseline and Baseline++ methods use 10 × K labeled macromolecules of novel macromolecules per class. Concretely, Baseline and Baseline++ use 50 labeled macromolecules per class when adapting the model to 5-way-5-shot classification tasks of novel macromolecules and 10 labeled macromolecules per class when adapting the model to 5-way-1shot tasks of novel macromolecules. In contrast to Baseline and Baseline++ methods, FSCC can re-train the classifier in one fewshot classification task. This means FSCC only needs five labeled macromolecules on 5-way-5-shot classification tasks of novel macromolecules and one labeled sample on the 5-way-1-shot classification tasks. In Table 2, we report the classification performance and the number of labeled macromolecules of each novel class that are needed in the fine-tuning stage. The classification performance is demonstrated by the mean and variance of classification accuracy (Eq. (12)) on 100 few-shot classification tasks. The number of labeled macromolecules is shown in parentheses after the classification accuracy. Due to the 5-way-5-shot task providing more labeled macromolecules than that of the 5-way-1-shot task, the classification performance of FSCC on the 5-way-5-shot task is higher than that of the 5-way-1shot task. Compared with Baseline and Baseline++ methods, on SHREC19, our method improves the accuracy by 3.86% when there are five labeled macromolecules per class and 5.44% when there is one labeled sample per class. On SHREC21, our method improves the accuracy by 4.71% when there are five labeled macromolecules per class and 9.09% when there is one labeled sample per class.

28We also compared FSCC with the state-of-the-art (SOTA) performance of supervised deep learning-based methods on SHREC19 and SHREC21. Table 3 shows the F1-score (Eq. (11)) and the number of labeled training macromolecules for each class of macromolecules of FSCC and SOTA. From the average F1 score, we can see that FSCC can achieve the classification performance of SOTA methods with five labeled macromolecules per novel class. However, the SOTA method uses a significantly larger number of 1100~1500 labeled macromolecules per novel class. It is worth emphasizing that the SOTA results are published by the SHREC contest. SHREC publics the F1-score of each macromolecule of many popular supervised deep learning-based methods. Here, the SHREC-SOTA means the highest F1 score of each class of macromolecule. Thus, SHREC-SOTA comes from different supervised deep learning-based methods. For most methods, there has been no access to source code or pretrained models. Table 3 only reports the performance of macromolecular structures from novel class C novel . In SHREC19 and SHREC21, the PDB ID of macromolecules in the novel class is 1u6g, 3cf3, 3gl1, 3qm1, 4d8q, and 4v49. 4d8q is only covered in SHREC19, and 4v49 is only covered in SHREC21. According to the

SHREC19 SHREC21

295-Way-5-Shot 5-Way-1-Shot 5-Way-5-Shot 5-Way-1-Shot

30Baseline (Chen et al., 2019) 73.14 ± 0.47%(50) 65.12 ± 0.74%(10) 71.36 ± 1.19%(50) 59.15 ± 1.70%(10) Baseline++ (Chen et al., 2019) 75.32 ± 0.37% (50) 66.65 ± 0.67% (10) 73.64 ± 1.04% (50) 65.19 ± 1.02%(10) FSCC (ours) 77.03 ± 1.21% (5) 70.56 ± 1.61% (1) 76.07 ± 1.03% (5) 68.24 ± 1.03% (1) Frontiers in Molecular Biosciences | www.frontiersin.org July 2022 | Volume 9 | Article 931949 molecular weight, 3g1 and 3qm1 are macromolecules of small size, 1u6g and 3cf3 are macromolecules of medium size, and 4d8q and 4v4g are macromolecules of large size. The result shows that for both methods, macromolecules of large size are easy to be classified. When the size decreases, the classification accuracy also decreases. The SHREC contest contains localization and classification tasks. In SHREC19, SOTA methods first localized the macromolecules and then classified them. Thus, the macromolecules may not be in the center of the input subtomograms. This makes sense that FSCC has higher classification accuracy because the input subtomograms are extracted according to the ground-truth localization. In SHREC21, SOTA methods adopt the end-to-end pixel classification-based model to obtain the class of macromolecular structures. For macromolecules of large size, the classification accuracy of FSCC is close to SOTA methods. Even for macromolecules of small size such as 3qm1, FSCC improves the classification performance by 0.31. This is because FSCC classifies novel macromolecules according to the statistic of macromolecules of the base class. In the base dataset, 1s3x is similar to 3qm1. Thus, the feature vectors of 1s3x are similar to those of 3qm1, which leads FSCC to classify 3qm1 with higher accuracy than SOTA.

Ablation Studies

31FSCC contains two key components: contrastive learning (Subsection 2.2) and distribution calibration (Subsection 2.3).

32Here, we performed an ablation study on SHREC19 to explore the contribution of each key component. In Table 4, there are four CNN models tested in the ablation study. First, we tested the base CNN model (Baseline) without contrastive learning and distribution calibration. Second, we added distribution calibration to the Baseline to test the contribution of distributed calibration. Third, we added contrastive learning to the Baseline to test the contribution of contrastive learning. Compared to Baseline, distribution calibration improves by 5.65% on 5-way-1-shot classification tasks. The aim of the distribution calibration is to calibrate the biased distribution learned from very few labeled macromolecules of novel class. Therefore, in the case of fewer labeled macromolecules, it is reasonable that the distribution calibration can more significantly improve the accuracy of image classification. The last model is our FSCC model. These results show the contribution of contrastive learning and distribution calibration to the fewshot macromolecule classification. In FSCC, we adopted cross-entropy loss and contrastive learning loss in the pre-training stage. The total loss function is shown in Eq. (1). Here, λ is a hyperparameter to control the component of supervised contrastive learning loss L SCL . On the SHREC19 and SHREC21 datasets, we test the relationship between the classification performance and the value of λ ( Figure 6). To ensure that the cross-entropy loss and the supervised contrastive loss are of the same order of magnitude, the λ is set to 0.01, 0.05, 0.07, and 0.1. The results show that except for 5-way-1-shot on SHREC19, λ = 0.05 has the best test accuracy across all experimental settings. The test accuracy for the 5-way-1-shot task on SHREC19 differs by

Results on Real Data

33Here, we tested FSCC on two real datasets. Table 5 shows the classification performance and training macromolecules of FSCC and baseline models (Baseline and Baseline++) on Dataset1 and Dataset2. The classification performance is represented by the mean and variance of the classification accuracy of randomly constructed 100 few-shot classification tasks. As the real datasets only cover a few classes of macromolecular structures and hundreds of macromolecules per class, the stability of the feature extractor of all pre-trained models is poor. This results in a variance of classification accuracy greater than 1%. In addition, the insufficient labeled macromolecules of the base class lead to poor generalization ability of Baseline and Baseline++. Thus, the classification performance of Baseline and Baseline++ is poor to novel macromolecules. Compared with Baseline methods, for Dataset1, FSCC significantly improves classification accuracy by 16.84% on 3-way-1-shot classification tasks and 5.96% on 3-way-5-shot classification tasks. For Dataset2, FSCC significantly improves classification accuracy by 13.1% on 2-way-1-shot classification tasks and 7.76% on 2-way-5-shot classification tasks.

DISCUSSION AND CONCLUSION

34The classification of subtomograms is a key step to recover macromolecular structures captured by cryo-ET. Although supervised deep learning-based methods have improved the classification accuracy, they have limited ability to classify novel macromolecules. To adapt the model to a novel class of macromolecules, the trained model needed to be re-trained with massive labeled macromolecules of the novel class. However, it is inefficient and undesirable in practice as labeling the sample is timeconsuming and laborious. In this work, we proposed a few-shot learning-based macromolecule classification method named FSCC. 4 | Ablation study on 5-way-5-shot and 5-way-1-shot classification tasks with SHREC19.

Calibrated distribution

35Contrastive learning 5-Way-5-Shot 5-Way-1-Shot FIGURE 6 | Relationship between classification accuracy with the weight value λ of the supervised contrastive loss L SCL .

36TABLE 5 | Classification performance of FSCC on real datasets. The classification performance is measured by classification accuracy, followed by the number of labeled training macromolecules in parentheses.

Dataset1 Dataset2

373-Way-5-Shot 3-Way-1-Shot 2-Way-5-Shot 2-Way-1-Shot Different from the existing supervised deep learning-based methods, FSCC can classify novel macromolecules with very few labeled macromolecules. Based on a two-step training strategy, FSCC first pre-trained the model with supervised contrastive learning on the base dataset with a sufficient number of labeled macromolecules. Supervised contrastive learning can help enhance the generalization ability and stability of the model. Then, FSCC re-trains the classifier with distribution calibration to enable the model to classify novel macromolecules. The results on synthetic datasets demonstrate that compared to SOTA of supervised deep learning-based methods, FSCC can achieve competitive performance given only five labeled macromolecules per novel class. However, the SOTA method needs 1100~1500 labeled training macromolecules per novel class. On the synthetic dataset SHREC19 (SNR = 0.02), compared to the popular finetuning-based few-shot classification method, FSCC improves classification accuracy by 3.89% on 5-way-5-shot tasks and by 5.44% on 5-way-1-shot tasks. On real datasets, compared to popular fine-tuning-based few-shot classification methods, FSCC improves classification accuracy by 5%~7% when there are five labeled macromolecules per class of novel macromolecules. FSCC significantly improves classification accuracy by 13%~16% when there is only one labeled sample per class of novel macromolecules.

DATA AVAILABILITY STATEMENT

38The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding authors.

AUTHOR CONTRIBUTIONS

39SG proposed the methods, performed and analyzed the experiments, and wrote the article. XZ collected data. MX modified the article. All authors contributed to the article and approved the submitted version.

참고문헌 35건

  1. Novel structural labeling method using cryo-electron tomography and biotin–streptavidin system Journal of Structural Biology · Elsevier BV · 2013 10.1016/j.jsb.2013.07.003
  2. An Improved Difference of Gaussian Filter in Face Recognition Journal of Multimedia · Academy Publisher · 2012 10.4304/jmm.7.6.429-433
  3. Classification of electron sub-tomograms with neural networks and its application to template-matching Journal of Structural Biology · Elsevier BV · 2011 10.1016/j.jsb.2011.02.009
  4. Cryo-electron tomography: The challenge of doing structural biology in situ The Journal of Cell Biology · Rockefeller University Press · 2013 10.1083/jcb.201304193
  5. Toward detecting and identifying macromolecules in a cellular context: Template matching applied to electron tomograms Proceedings of the National Academy of Sciences · National Academy of Sciences · 2000 10.1073/pnas.230282097
  6. Small-Angle X-Ray Scattering on Biological Macromolecules and Nanocomposites in Solution Annual Review of Physical Chemistry · Annual Reviews · 2012 10.1146/annurev-physchem-040412-110132
  7. De Novo Structural Pattern Mining in Cellular Electron Cryotomograms Structure · Elsevier BV · 2019 10.1016/j.str.2019.01.005
  8. Cryo-Electron Tomography and Subtomogram Averaging Methods in enzymology on CD-ROM/Methods in enzymology · Academic Press · 2016 10.1016/bs.mie.2016.04.014
  9. Resolving macromolecular structures from electron cryo-tomography data using subtomogram averaging in RELION Nature Protocols · Nature Portfolio · 2016 10.1038/nprot.2016.124
  10. Cryo-electron Microscopy Analysis of Structurally Heterogeneous Macromolecular Complexes Computational and Structural Biotechnology Journal · Elsevier BV · 2016 10.1016/j.csbj.2016.10.002
  11. In Situ Structure of Neuronal C9orf72 Poly-GA Aggregates Reveals Proteasome Recruitment Cell · Cell Press · 2018 10.1016/j.cell.2017.12.030
  12. Locating macromolecules and determining structures inside bacterial cells using electron cryotomography Biochimica et Biophysica Acta (BBA) - Proteins and Proteomics · Elsevier BV · 2018 10.1016/j.bbapap.2018.06.003
  13. The rise and fall of the growth of organization development: What now? Consulting psychology journal · American Psychological Association · 2018 10.1037/cpb0000116
  14. emClarity: software for high-resolution cryo-electron tomography and subtomogram averaging Nature Methods · Nature Portfolio · 2018 10.1038/s41592-018-0167-z
  15. Classification in cryo-electron tomograms HAL (Le Centre pour la Communication Scientifique Directe) · Centre National de la Recherche Scientifique · 2019 10.2312/3dor.20191061
  16. A Closer Look at Few-shot Classification arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1904.04232
  17. Deep CORAL: Correlation Alignment for Deep Domain Adaptation Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-49409-8_35
  18. Strong-Weak Distribution Alignment for Adaptive Object Detection 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00712
  19. Joint Heterogeneous Feature Learning and Distribution Alignment for 2D Image-Based 3D Object Retrieval IEEE Transactions on Circuits and Systems for Video Technology · Institute of Electrical and Electronics Engineers · 2019 10.1109/tcsvt.2019.2942688
  20. Template-free detection and classification of membrane-bound complexes in cryo-electron tomograms Nature Methods · Nature Portfolio · 2020 10.1038/s41592-019-0675-5
  21. SHREC 2020: Classification in cryo-electron tomograms Computers & Graphics · Elsevier BV · 2020 10.1016/j.cag.2020.07.010
  22. Dilated-DenseNet for Macromolecule Classification in Cryo-electron Tomography Lecture notes in computer science · Springer Science+Business Media · 2020 10.1007/978-3-030-57821-3_8
  23. The Architecture of Inactivated SARS-CoV-2 with Postfusion Spikes Revealed by Cryo-EM and Cryo-ET Structure · Elsevier BV · 2020 10.1016/j.str.2020.10.001
  24. A concise review of recent few-shot meta-learning methods Neurocomputing · Elsevier BV · 2020 10.1016/j.neucom.2020.05.114
  25. A Survey on Contrastive Self-Supervised Learning MDPI (MDPI AG) · Multidisciplinary Digital Publishing Institute (Switzerland) · 2020 10.3390/technologies9010002
  26. Free Lunch for Few-shot Learning: Distribution Calibration arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2101.06395
  27. Macromolecules Structural Classification With a 3D Dilated Dense Network in Cryo-Electron Tomography IEEE/ACM Transactions on Computational Biology and Bioinformatics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tcbb.2021.3065986
  28. Bridging the Gap between Few-Shot and Many-Shot Learning via Distribution Calibration 2021 10.36227/techrxiv.14380697.v1
  29. Current data processing strategies for cryo-electron tomography and subtomogram averaging Biochemical Journal · Portland Press · 2021 10.1042/bcj20200715
  30. Unsupervised Domain Alignment Based Open Set Structural Recognition of Macromolecules Captured By Cryo-Electron Tomography 2022 IEEE International Conference on Image Processing (ICIP) · 2021 10.1109/icip42928.2021.9506205
  31. Deep Learning Improves Macromolecule Identification in 3D Cellular Cryo-Electron Tomograms bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2020 10.1101/2020.04.15.042747
  32. Comparison between HEMNMA-3D and Traditional Classification Techniques for Analyzing Biomolecular Continuous Shape Variability in Cryo Electron Subtomograms 2021 10.1109/biosmart54244.2021.9677643
  33. Bridging the Gap Between Few-Shot and Many-Shot Learning via Distribution Calibration IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2021 10.1109/tpami.2021.3132021
  34. Supervised Contrastive Learning arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.11362
  35. Deep Learning Improves Macromolecule Identification in 3D Cellular Cryo-Electron Tomograms 2021 10.1038/s41592-021-01275-4