Structure-aware machine learning strategies for antimicrobial peptide discovery

Machine Learning


Identifying key features between membrane-active and protein-binding peptides

Machine learning (ML) models primarily rely on several factors, including the quality of their input data and independent features. First, we carefully curated 1,057 peptide sequences from four public databases (DBAASP v341, APD342, PDBe43, CPPsite 2.044) before labeling each sequence with one of the following classes: membrane-disrupting peptides (MDPs, n = 415), membrane-penetrating peptides (MPPs, n = 334), and protein-binding peptides (PBPs, n = 308). The first two classes formed the membrane-active peptides (MAPs, N = 749). Before building models, it was essential to identify and select critical properties that may distinguish between membrane-active peptides and protein-binding peptides. Therefore, we measured 8,537 sequence-derived properties: 20 amino acid fractions, 400 dipeptides, 8000 tripeptides, and 117 physicochemical properties from different sources for all peptides.

We first compared the differences in amino acid composition (AAC) between MDPs, MPPs, and PBPs. In Fig. 2A, membrane-penetrating peptides (MPPs, in peach yellow) showed higher contents in proline (0.12) and arginine (0.22) than membrane-disrupting peptides (MDPs, in teal green), which are characteristic of peptides with non-lytic mechanisms, such as cell-penetrating peptides. Both MPPs and MDPs displayed elevated levels of lysine, reminiscent of MAPs. Membrane-disrupting and protein-binding peptides (PBPs, raspberry red) contained many small and aliphatic residues, i.e., alanine, glycine, leucine, and valine. PBPs are enriched in polar and negatively charged residues, i.e., serine, threonine, glutamic and aspartic acids. These polar and charged amino acids indicate the hydrogen bonds and ionic interactions the peptides form with larger protein domains. In contrast, lysine and arginine in MDPs and MPPs suggested that the peptides primarily interacted with negatively charged lipid heads across cell membranes. We repeated the exercise by comparing the composition of dipeptides (DPC) and tripeptides (TPC) across MDPs, MPPs, and PBPs. Due to their enormous proportions of dipeptides (400) and tripeptides (8000), we only kept the crucial differences between membrane-active and protein-binding peptides, as illustrated in Fig. 2B. The presence of positively charged dipeptides “KK”, “RP”, and “RR” in MPPs (in peach yellow) further supported their roles in interacting with lipid membranes. Proline-rich dipeptides “RP” and “PP” are also distinctive features of these membrane-active peptides. Membrane-disrupting peptides (in teal green) are characterized by high levels of alanine-rich and leucine/isoleucine-rich dipeptides—“AG”, “AL”, “IL”, “KI”, “LA”. Finally, protein-binding peptides (in raspberry red) presented the polar and negatively charged dipeptides—“EA”, “EE”, “EK”, “EL”, “ER”, “GS”, “LE”, “LQ”, “LT”, “PS”, “SD”, “SE”, “SS”, “TL”, “TP” and “TS”, crucial to their interactions with larger protein domains. The same analysis was conducted across the 8000 tripeptides; none appeared relevant between the three peptide classes.

Figure 2
figure 2

Comparative analyses of amino acid composition (A), dipeptide composition (B), and global physicochemical properties (C) between membrane-disrupting peptides (MDPs, teal green), membrane-penetrating peptides (MPPs, peach yellow), and protein-binding peptides (PBPs, raspberry red).

Considering the differences in amino acid and dipeptide compositions between the three classes, we measured 117 global physicochemical properties for the 1,057 sequences, 76 properties with the R package Peptide (v.2.4.1)46, 33 with the Python package modlAMP (v.3.7.3)47, and 8 with DBAASP v341. The properties are defined in Lists S1-S3. Many of these features encoded for the same peptide property (e.g., hydrophobicity); therefore, we performed correlation analyses using the Pearson correlation coefficient using the datasets from 2 or 3 classes (Figs. S1, S2). Several properties like hydrophobicity scales presented strong positive (in red) or negative correlation (in blue) with one another, suggesting highly redundant information. We eliminated all properties showing a correlation coefficient > 0.90, reducing the number of global physicochemical properties to 53 for the two classes and 57 for the three classes. Moreover, we eliminated irrelevant properties by keeping those that differ between membrane-active and protein-binding peptides. We conducted pairwise statistical analyses across two datasets (MDPs and MPPs, MAPs and PBPs)—see Fig. S3. The first pair should indicate properties linked to membrane activity, whereas the second pair should lead to properties for membrane or protein recognition.

We identified 49 significant properties between MDPs and MPPs, and 56 significant properties between MAPs and PBPs, summarized in Table S1. Two of the 49 properties (i.e., the hydrophobic moment and the hydrophobicity index on the Wilson scale) are exclusively associated with membrane activity, distinguishing between MDPs and MPPs—see properties 1 and 2 in Table S1. The other 47 properties played a role in discerning between membrane-active and protein-binding peptides. Nine properties (i.e., the prevalence of basic and aromatic residues, differences in charged residues, the linear moment, the isoelectric point (pI), and hydrophobicity indices from different scales) participated in differentiating between MAPs and PBPs—see properties 3–11 in Table S1. We illustrated some of these differences in Figs. 2 and S4. Higher isoelectric points, electrophilicity indices, and net charges of membrane-active peptides evoked their abundant basic residues and dipeptides. Membrane-disrupting peptides (in teal green) are generally more hydrophobic than membrane-penetrating peptides (in peach yellow); they displayed higher means for most indices or scales linked to hydrophobicity. These observations are somehow associated with the nature of the peptides, which reside longer within cell membranes before aggregating to form pores. Finally, protein-binding peptides (in raspberry red) are heavier and contain more acidic, aliphatic, and aromatic residues than MPPs, explaining their lower pI (Fig. 2). They also showed higher means for penetration depth and in vitro aggregation propensity (Fig. S4).

Building baseline binary and ternary classification models

Multiple global physicochemical properties or residues and dipeptides could differentiate between membrane-active and protein-binding peptides, endorsing the development of machine-learning predictors for membrane disruption, membrane penetration, and protein recognition. We selected 12 binary classification algorithms to predict the membrane activity of peptide sequences between MDPs and MPPs and 9 ternary classification algorithms to distinguish between the MAP classes and PBPs. We also corrected the imbalance between the two or three classes (MDPs, MPPs, and PBPs) by duplicating or generating synthetic sequences from the minority class(es) using the three oversampling methods ROSE (Random Over-Sampling Examples)66, SMOTE (Synthetic Minority Oversampling Technique)65, and ADASYN (Adaptive Synthetic Sampling)67. Our best initial results are summarized in Table 1. Additional performances of all classifiers under the three oversampling methods are listed in Supporting Information Tables S2–S4 for binary classification and Tables S5–S7 for ternary classification.

Table 1 Performances (mean accuracies in percentage) of 12 binary and 9 ternary classification algorithms to distinguish between membrane-disrupting peptides (MDPs, 415) and membrane-penetrating peptides (MPPs, 334), and protein-binding peptides (PBPs, 308) using either 49 or 56 sequence-based physicochemical descriptors under the different oversampling methods.

Overall, binary and ternary models based on the Random Forest Classification (RFC) algorithm outperformed all other classification models, irrespective of the oversampling technique employed. Table 1 showed that combining RFC with the ROSE method led to the highest prediction accuracies to distinguish between the two classes (88.0% and 83.3%) and three classes (86.7% and 83.5%) for training and testing datasets, respectively. Other classifiers based on tree-based algorithms, including Gradient Boosting (GBC), Adaptive Boosting (ABC), Extra Tree (ETC), and Decision Tree (DT) followed suit. GBC-based predictors achieved the second-highest performances with cross-validated training accuracies of 86.7% and 85.5% for binary and ternary classification. DT-based models showed the lowest performances between classifiers using tree-based algorithms. ABC-based binary and ETC-based ternary classifiers displayed intermediate accuracies. With other algorithms, models based on K-nearest neighbor (KNN) and Support Vector Classification (SVC) with polynomial kernel demonstrated relatively good performances in binary classification tasks, with training accuracies ranging between 82.7 and 85.2%. These observations support the recent statement that tree-based models RFC and GBC performed very well in classifying tabular data72. Previous studies have previously demonstrated that tree-based models outperformed other algorithms in classification or regression tasks using modlAMP descriptors49,73,74,75 or other features76.

Oversampling methods ROSE, SMOTE, and ADASYN are widely used to address the class imbalance in classification tasks. ROSE selects and duplicates sequences from the minority class (e.g., MPPs in binary classifiers)66. In SMOTE, the method generates synthetic sequences interpolated from the minority class65. ADASYN is an extension of the SMOTE oversampling method that adapts the number of synthetic sequences generated from the minority class based on varying degrees of imbalance67. The performances of our classifiers appeared to consistently follow the same order; RFC-based models outperformed all other classifiers, followed by GBC-based and KNN-based models, regardless of the classification task and oversampling method. Binary models (Tables S2–S4) and ternary models (Tables S5–S7) using the oversampling method ROSE yielded the best results through tenfold cross-validation. The performances of classifiers using SMOTE and ADASYN remained relatively close. For example, our best binary classifier using the RFC algorithm showed cross-validated training accuracies of 88.0% with ROSE and 86.5% with both SMOTE and ADASYN methods (Tables S2–S4). ROSE randomly selects minority class(es) sequences and generates new synthetic samples within the space. This randomness helps mitigate biases in the target minority class(es)66 that may arise with the other two oversampling methods. This feature was sufficient to achieve a good balance. In general, our classifiers showed a good fit, with training accuracy slightly higher than testing accuracy. In some cases, the models using Logistic Regression (LR) and SVC with radial basis function, linear or sigmoid kernels presented training accuracies lower than testing accuracies under any oversampling method (Table 1, Tables S2–S7). Therefore, we considered binary and ternary classifiers using the RFC algorithm, our models of choice, to further advance our study.

Feature importances extracted from tree-based algorithms are essential for model interpretability and improvement in predictive science. In our hands, they provided valuable insights into the underlying relationships between peptide descriptors and their mechanisms of action (i.e., classes). We can visualize the most relevant descriptors for our binary and ternary RFC models in Fig. 5 and Tables S8, S9. In Fig. 5A (model 1.0), elements of hydrophobicity (hydrophobic ratio, H. index), size (molecular weight), amphiphilicity (aliphatic amino acids, % tiny residues, flexibility, ABHPRK), and charge (charge density, electrophilicity) were among the key features separating membrane-disrupting peptides (MDPs) from membrane-penetrating peptides (MPPs). This is consistent with recent studies highlighting the role played by amphiphilicity in the membrane activity of α-helical AMPs34,35. In Fig. 5B (model 2.0), molecular weight and charge density were the most critical descriptors to differentiate the two classes mentioned above and PBPs. Differences in isoelectric points and hydrogen bonding played minor roles between the two or three classes. These observations are reminiscent of the differences in Figs. 2C and S4.

Auditing the datasets for structural bias

Aware of the possible over-representation of α-helical peptides in our models, we evaluated the structural diversity of the peptide datasets. We recently developed a fast and reliable approach to estimate the structural landscape of any sizable peptide dataset, using protein structure predictors, PEP2D and AlphaFold2 (AF2)29. Many of the sequences in our datasets contained 50 or more residues, guiding our preferences for AF2. Thus, we predicted the tridimensional structures of all peptide sequences using the ColabFold environment with AF2 in batch mode through 3 recycles68. A few structures were incorrectly predicted and were ignored, leading to a final model dataset of 412 MDPs, 326 MPPs, and 307 PBPs. Our resulting predicted structures were submitted to STRIDE70 to assign the secondary structure states—% helix (H), % sheet (E), and % coil (C). We displayed the global and class-specific structural compositions of our model and external validation datasets in Fig. 3. To ease readership and countability, we divided the ternary plots into 4 structural regions, namely (I) predominantly helical peptides, (II) predominantly stranded (β-sheet) peptides, (III) predominantly coiled peptides, and (IV) mixed structures. The sizes of peptide subsets across structural regions and classes are summarized in a table (Fig. 4A).

Figure 3
figure 3

The structural landscapes of our model and external validation datasets. (A) Ternary plot illustrating the structural compositions of the model (purple) and external validation (orange) datasets using AlphaFold2 + STRIDE secondary structure predictions for the 3 states helix (H), sheet (E), and coil (C), expressed in percentages. The following five examples, colored in purple, serve as structural markers: (1) human LL-37 (PDB ID: 2K6O), (2) synthetic mytilin (2EEM), (3) θ-defensin BTD-2 (2LYE), (4) cactus-derived Ep-AMP1 (2MFS), and (5) tritrpticin (1D6X). The plot has been partitioned into 4 structural regions (I–IV). (B) and (C) Ternary plots showing the structural compositions of each subset—MDPs (teal green), MPPs (peach yellow), and PBPs (raspberry red)—in the model and external validation datasets, respectively.

Figure 4
figure 4

(A) Repartitions of the predicted AF2 + STRIDE structures within structural regions (I-IV) for the model and external validation datasets across the three classes; membrane-disrupting peptides (MDPs), membrane-penetrating peptides (MPPs), and protein-binding peptides (PBPs). (B,C) Confusion matrices of the external validation as a whole and its subsets (I-IV), according to binary and ternary classifiers (models 1.0 and 2.0), respectively.

In Fig. 3A, we observed the structural landscapes of the model dataset with 1046 peptides (purple) and the external validation dataset, including 262 AF2 + STRIDE predictions (orange). Both datasets are distributed across three of the four structural regions (I, III, and IV), none displaying predicted stranded (β-sheet) peptides (II). For the model dataset, most predictions assumed helical structures with varying coiled levels in the region (I), i.e., 564 peptides (53.9%), followed by 346 coiled peptides (III: 33.1%) and 136 mixed structures (IV: 13.0%). The external validation set presented nearly the exact proportions of α-helices (I: 91, 34.7%) and coils (III: 102, 38.9%), and mixed structures accounted for the rest (IV: 69, 26.4%). In Fig. 3B,C, we reported the respective structural compositions of model and external validation datasets per class—MDPs (teal green), MPPs (peach yellow), and PBPs (raspberry red). Ternary plots in Fig. 3B confirmed that most sequences in the model dataset would fold into α-helical peptides (564, 53.9%) and coils (346, 33.1%). A minority of sequences adopted mixed structures (136, 13.0%). In Fig. 4A, structural region (I) presented α-helices among its three classes with 265 MDPs (64.3%), 114 MPPs (34.9%) and 185 PBPs (60.3%). A quarter of MDP sequences (108, 26.2%), more than half of MPPs (188, 57.7%), and some PBPs (50, 16.3%) would be predicted as coiled structures (III). Finally, the three classes also included sequences that would fold into mixed structures: 39 MDPs (9.5%), 25 MPPs (7.7%), and 72 PBPs (23.4%).

These observations suggested that our classification models (Table 1) might predict the mechanisms of action of peptide sequences that would likely fold into α-helices or coils with greater accuracy. We tested this hypothesis by splitting the external validation dataset according to its secondary structures (Fig. 3C) and comparing the performances of RFC models against the whole dataset and its structural subsets (I, III, and IV). The external validation dataset also contained sequences that would adopt folds located in regions (I) and (III), counting 91 α-helices (34.7%) and 102 coiled structures (38.9%) among its three classes (Fig. 4A). In contrast, the dataset was devoid of mixed structures with MDP activity. Most mixed structures were within the class PBPs (64, 92.7%) and few MPPs (5). The results showed the confusion matrices resulting from the binary and ternary classification of 129 peptides in Fig. 4B,C. We defined the misclassification rate as the fraction of incorrectly labeled sequences. For example, in Fig. 4B, our binary classifier (model 1.0) correctly classified 88 peptides as either MDPs (54) or MPPs (34), leading to a misclassification rate of 0.318 (41 out of 129) on the complete dataset. In the same figure, the misclassification rate among α-helical peptides (subset I) was lower, with a value of 0.265, whereas the fraction of misclassified coiled sequences (subset III) reached 0.422. Four-fifths of mixed structures were correctly classified in subset IV. In Fig. 4C, our ternary classifier (model 2.0), roughly a third (0.305) of all sequences were misclassified. The misclassification rate peaked at 0.560 in subset I, predominantly from α-helical MPPs (21 out of 51 misclassified peptides). Among coiled and mixed structures (subsets III and IV), most PBPs (52 out of 57, 45 out of 64) were correctly labeled; the misclassified rates of 0.421 and 0.347 resulted from misclassified membrane-active peptides. The structural imbalance between model subsets partly explained these values; most MDPs were α-helices (265), and half of the PBPs (72) folded into mixed structures, as depicted in Figs. 3B and 4A. Consequently, our models correctly assigned most α-helical MDPs and most coiled and mixed PBPs from the external datasets (Figs. 4B and 4C). In contrast, most coiled peptides in the external validation were misclassified (Fig. 4B: 13 out of 24, Fig. 4C: 20 out of 24) despite 188 coiled MPPs in the model sets. Both imbalances among structures and classes affected the model performances.

Mitigating the structural bias by subset selection and data reduction

To tackle the effects imbalanced structural regions have upon the performances of our models, we developed new binary and ternary classifiers that could predict the three mechanisms of action (MDPs, MPPs, and PBPs), invariably from their structural diversity. These models were either trained from specific structural subsets—predicted α-helices (1.1 and 2.1), predominantly coils (1.3 and 2.3), and mixed structures (1.4 and 2.4)—or the structural subsets I, III, and IV in their training sets were balanced out, giving the new training sets V, and the models 1.5 and 2.5. In the latter, we processed by randomly reducing the number of folding sequences to (loose) α-helices from the primary peptide class(es). We repeated the procedure five times; the final classes were selected by majority vote (mode). All three classes were balanced using the ROSE oversampling method. The performances of all models are summarized in Table 2 (binary models 1.1–1.5) and Table 3 (ternary models 2.1–2.5). We added our reference models 1.0 and 2.0 performance metrics for direct comparison.

Table 2 Performance of RF binary classifiers to distinguish between membrane-disrupting and membrane-penetrating peptides using 49 sequence-based physicochemical descriptors under the ROSE method.
Table 3 Performance of RF ternary classifiers to distinguish between membrane-disrupting and membrane-penetrating and protein-binding peptides using 56 sequence-based physicochemical descriptors under the ROSE method.

We noted that most structure-specific models outperformed their unspecific parent classifiers (models 1.0 and 2.0). For example, the α-helix-specific binary classifier (1.1) presented respective training and testing accuracies of 95.5% and 89.5%, far better than model 1.0 with 88.0% and 83.3% accuracy values. This improvement was also observed across the other performance metrics, i.e., precision, recall, F1, MCC, CK, and ROC AUC values. Likewise, the coil-specific binary classifier (1.3) was slightly improved, with training and testing accuracies of 90.5% and 83.3%. On the contrary, model 1.4, trained on a handful of peptide sequences with AF2-predicted mixed structures, demonstrated poorer performance—see Table 2. Looking at model 1.5, removing representative sequences from subset I (AF2-predicted α-helices) at random led to information loss in the training process, translating to lower accuracies of 85.4% and 83.2%. However, the recall indicated stronger sensitivity. The other classification metrics also supported this observation. The structure-specific models 2.1–2.4 outperformed their parent ternary classifier 2.0—see Table 3. Unlike model 1.4, the ternary model 2.4 trained on many PBP sequences with AF2-predicted mixed structures, leading to better classification metrics.

A benefit of building predictive models from random forest and other tree-based algorithms is the built-in estimation of feature importances. We hypothesized that importance scores of physicochemical properties as features would be sensitive to the structural awareness of our models. For example, the critical features involved in classifying α-helical sequences would differ from those classifying coiled or β-stranded membrane-active peptides. We measured the importance scores of 49 physicochemical properties for binary models 1.0–1.5 and 56 properties for ternary models 2.0–2.5 in Tables S8 and S9, respectively. To ease readership, we showed the 10 most common features and their importance scores (colored circles) in Fig. 5A,B.

Figure 5
figure 5

Predictions and feature importances of top-performing structure-aware models. Heatmaps showing the importances of key physicochemical descriptors (rows) in (A) our best binary classifiers (1.0–1.5) and (B) our best ternary classifiers (2.0–2.5). Confusion matrices of the external validation as a whole and its subsets (I, III, IV), according to binary models 1.1–1.5 (C) and ternary models 2.1–2.5 (D).

In Fig. 5A, we recall that hydrophobicity (hydrophobic ratio, H. index), size (molecular weight), amphiphilicity (aliphatic amino acids, % tiny residues, flexibility, ABHPRK), and charge (charge density, electrophilicity) were among these features that distinguish membrane-disrupting peptides (MDPs) from membrane-penetrating peptides (MPPs). With model 1.1, the two global peptide descriptors cougar and charge density were essential to classify α-helical MDPs and MPPs, with importance scores (IS) of 0.053 and 0.043—Table S8. In contrast, flexibility was the main physicochemical property to classify coiled membrane-active peptides (model 1.3—ISflexibility 0.094). Finally, hydrophobicity, size, and amphiphilicity played important roles in membrane-active peptides with AF2-predicted mixed structures. Structure-agnostic model 1.5 shared at least the 10 most important features as parent model 1.0 with importance scores in the same order of magnitude, except for the ABHPRK property (ISABHPRK 0.030 vs. 0.044, Table S8). Diminishing α-helical sequences in the training process reduced the predictive power of model 1.5, but it did not induce changes in feature importance. In other words, structure-specific models and their feature importance are sensitive to the (partial or complete) proportions of structural subsets (I-IV), supporting our hypothetical statement.

In Fig. 5B, ternary model 2.0 estimated that molecular weight and charge density were the two most essential descriptors to differentiate MDPs, MPPs, and PBPs, with respective importance scores of 0.069 and 0.052 (Table S9). Other elements related to charge (electrophilicity, hydrogen bonding, charge density), hydrophobicity (Janin scale, ASHR), and amphiphilicity played minor roles among the three classes. Not surprisingly, molecular weight (0.065) and charge density (0.084) were crucial for classifying α-helical MDPs, MPPs, and PBPs in model 2.1, with ~ 54% sequences in model 2.0 predicted to adopt α-helices. Hydrophobicity and elements of charge and molecular weight (to a lesser degree of importance—0.035) distinguished coiled membrane-active and protein-binding peptides (model 2.3). Finally, size (molecular weight) is the leading property that separates membrane-active and protein-affine mixed structures (model 2.4—ISMW 0.071). Like model 1.5, structure-agnostic model 2.5 shared the same essential features as its parent model (2.0), such as molecular weight, acidic residues, and charge density, with respective scores of 0.059, 0.047, and 0.039 (Table S9). Unlike model 1.5, removing α-helical sequences in the training process did not induce a loss in predictive power.

We evaluated the performances of the structure-specific models (1.1–1.4, 2.1–2.4) and structure-agnostic models (1.5 and 2.5) against structural subsets of the external validation dataset (I, III, and IV) and its “balanced” form (V), as detailed in Fig. 5C,D. From the confusion matrices, we derived the five key performance indicators—accuracy, precision, recall, specificity, and F1 score, as per Eqs. (S3)–(S6) and (S9), and we compiled the results in Table S10. Overall, our analysis of the external validation subsets revealed three distinct trends in class predictions based on the structure awareness of the models: an increase, a decrease, or no change.

Narrowing the training process to sequences folded into α-helices has improved model 1.1 predictive power, compared to model 1.0 (Table 2). Applying these models to the α-helical external validation subset (I) also increased across all binary classification metrics, indicative of the correct assignment of MDPs and MPPs, i.e., precision, recall, and F1 scores of 0.804, 0.891 and 0.845 (model 1.1—Fig. 5C and Table S10). Similarly, the ternary model 2.4 learned to classify peptides folding into AF2-predicted mixed structures, particularly PAP sequences. Consequently, the many PAP sequences within the external validation subset (IV) were correctly identified with a classification accuracy of 80.4% (model 2.4—Fig. 5D and Table S10). These two examples illustrated that training and external validation subsets share structures and classes to ensure the correct classification of sequences.

Without shared structures and classes, the external validation subsets would score identical metrics or lead to misclassification. For example, the application of binary model 1.4 to subset IV resulted in the same accuracy of 80.0% despite an improved training process to classify AF2-predicted mixed structures (models 1.0 and 1.4—Tables 2 and S10). This result is associated with the quasi-absence of MDP/MPP sequences within the external validation subset (IV); see Figs. 3C and 4A. Likewise, many sequences from subsets (I) and (III) were misclassified, as indicated by the lower accuracies and recall values in Table S10, despite the improved performances of structure-specific models 1.3, 2.1, and 2.3. The other classification metrics (precision, specificity, and F1) vary from the imbalance between structural subsets and classes. As such, model 1.3 to subset (III) incorrectly assigned MDPs (actual positives) and misclassified many MPPs (actual negatives) as MDPs, leading to higher precision, lower specificity, and lower F1 scores from the underrepresented coiled MDPs. Applying model 2.3 to subset (III) struggled to distinguish between MDPs and MPPs classes due to the abundance of coiled PBPs, leading to lower precision, recall, specificity, and F1 score—see Fig. 5D and Table S10. Conversely, the abundance of α-helical MDPs over the other two classes in the subset (I) drove higher precision, specificity, and F1 scores. In other words, few MDPs (positives) were misidentified, so more α-helical sequences from underrepresented MPPs and PBPs could be predicted correctly (model 2.1—Table S10).

Finally, removing random α-helical sequences during training resulted in sub-optimal models 1.5 and 2.5 with similar or reduced performances, see Tables 2 and 3. Applying these models to the balanced subset (V) showed identical or worsened classification metrics (models 1.5 and 2.5—Table S10). In Fig. 3B, removing several α-helical sequences randomly would lead to more balanced yet less informative structural landscapes of MDPs and MPPs. In contrast, mixed structures would dominate among PBPs. Consequently, removing sequences has accentuated class and structural imbalances. Our ternary model 2.5 is less effective at identifying between the three classes and structural subsets (I-IV).



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *