SGAC: A Graph Neural Network Framework for Imbalanced and Structure-Aware AMP Classification

Yingxu Wang, Victor Liang, Nan Yin, Siwei Liu, Eran Segal · OpenReview

Abstract

Classifying antimicrobial peptides (AMPs) from the vast array of peptides mined from metagenomic sequencing data is a significant approach to addressing the issue of antibiotic resistance. However, current AMP classification methods, primarily relying on sequence-based data, neglect the spatial structure of peptides, thereby limiting the accurate classification of AMPs. Additionally, the number of known AMPs is significantly lower than that of non-AMPs, leading to imbalanced datasets that reduce predictive accuracy for AMPs. To alleviate these two limitations, we first employ Omegafold to predict the three-dimensional spatial structures of AMPs and non-AMPs, constructing peptide graphs based on the amino acids' C$_\alpha$ positions. Building upon this, we propose a novel classification model named Spatial GNN-based AMP Classifier (SGAC). Our SGAC model employs a graph encoder based on Graph Neural Networks (GNNs) to process peptide graphs, generating high-dimensional representations that capture essential features from the three-dimensional spatial structure of amino acids. Then, to address the inherent imbalanced datasets, SGAC first incorporates Weight-enhanced Contrastive Learning, which clusters similar peptides while ensuring separation between dissimilar ones, using weighted contributions to emphasize AMP-specific features. Furthermore, SGAC employs Weight-enhanced Pseudo-label Distillation to dynamically generate high-confidence pseudo labels for ambiguous peptides, further refining predictions and promoting balanced learning between AMPs and non-AMPs. Experiments on publicly available AMP and non-AMP datasets demonstrate that SGAC significantly outperforms traditional sequence-based methods and achieves state-of-the-art performance among graph-based models, validating its effectiveness in AMP classification.

Introduction

As antibiotic resistance becomes a global health crisis, researchers are hunting for Antimicrobial Peptides (AMPs)—short proteins that act as natural "bullets" against bacteria. While metagenomic sequencing has given us millions of potential peptide sequences, finding the ones that actually work is like finding a needle in a haystack.

Most current AI tools treat peptides like strings of text (sequences). However, a peptide's function is dictated by its 3D fold, not just the order of its amino acids. Existing graph-based models that look at structure are often too computationally heavy or fail because the training data is heavily biased: there are thousands of known non-AMPs for every one confirmed AMP. SGAC (Spatial GNN-based AMP Classifier) addresses these limitations by looking at 3D shapes rather than just sequences and employing specialized learning techniques to overcome data imbalance.

Methods

The SGAC framework utilizes a multi-stage pipeline designed for efficiency and accuracy in classifying AMPs from large-scale metagenomic data.

Overview of the SGAC pipeline, from sequence corpus to final prediction via 3D structure prediction and graph encoding.
  1. Lightweight Structure Prediction: Instead of using resource-heavy models like AlphaFold2, SGAC employs OmegaFold to predict 3D coordinates from peptide sequences.
  2. Backbone-only Graphing: To maintain computational efficiency, peptides are represented as graphs where nodes correspond only to Cα atoms (the protein's "spine"). Edges connect atoms physically close in 3D space, capturing essential spatial topology.
  3. Graph Encoding and Learning: A Graph Isomorphism Network (GIN) serves as the backbone encoder. To handle class imbalance (approximately 1:7.5 in the dataset), two novel modules are introduced:
  4. Weight-enhanced Contrastive Learning (WCL): This module clusters structurally similar peptides in the latent space while pushing dissimilar ones apart, using adaptive weights to ensure the rare AMP class is not ignored.
  5. Weight-enhanced Pseudo-label Distillation (WPD): This enables learning from unlabeled data by assigning high-confidence "guesses" (pseudo-labels) to unknown peptides, refining the model's understanding of the minority class.

Results and Insights

SGAC was evaluated on a dataset of 65,971 peptides (7,697 AMPs and 58,274 non-AMPs). The model achieved state-of-the-art performance with an F1 score of 94.83% and a Matthews Correlation Coefficient (MCC) of 93.02%, significantly outperforming sequence-based baselines like BERT (F1: 71.33%) and LSTM (F1: 82.09%).

t-SNE visualization of the SGAC latent space, showing clear separation between AMPs (orange) and non-AMPs (blue).

Key insights from the study include:

  • Structure Beats Sequence: Spatial arrangement is a primary driver of antimicrobial activity. Even general Graph Neural Networks outperformed high-end sequence models, proving that 3D geometry is critical for functional identification.
  • Efficiency of Cα Modeling: Modeling only the backbone geometry captures the necessary spatial features while drastically reducing computational noise and memory requirements compared to all-atom models.
  • Robustness: SGAC maintained high accuracy across various peptide lengths (10–50 amino acids) and demonstrated real-world utility by accurately classifying 40 out of 55 true AMPs in a synthesized peptide case study.

Conclusion

SGAC demonstrates that integrating 3D structural information with imbalance-aware learning significantly improves AMP classification. While shape is a critical factor, the authors noted that misclassifications can occur when peptides are structurally similar but functionally distinct. Future work will explore integrating physicochemical properties (e.g., charge, hydrophobicity) and sequence motifs alongside 3D structure to further enhance predictive precision and distinguish between specific types of antimicrobial activity.

Summary updated

BibTeX
@misc{wang2024sgac,
  author = {Yingxu Wang and Victor Liang and Nan Yin and Siwei Liu and Eran Segal},
  title = {{SGAC: A Graph Neural Network Framework for Imbalanced and Structure-Aware AMP Classification}},
  year = {2024},
  eprint = {2412.16276},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16276},
}
Figure