ContraNovo: A Contrastive Learning Approach to Enhance De Novo Peptide Sequencing

Zhi Jin, Sheng Xu, Xiang Zhang, Tianze Ling, Nanqing Dong, Wanli Ouyang, Zhiqiang Gao, Cheng Chang, Siqi Sun

Introduction

In proteomics, de novo peptide sequencing is the critical process of determining a protein's primary structure directly from mass spectrometry (MS) data without relying on a reference database. This is essential for discovering novel proteins and identifying post-translational modifications. While recent deep learning models have improved accuracy by treating sequencing as a sequence-to-sequence translation task, they often suffer from two main issues: they ignore the unique physical relationship between a spectrum's peaks and the peptide's mass, and they struggle to distinguish amino acids with nearly identical masses (e.g., Glutamine vs. Lysine).

Methodology

ContraNovo addresses these limitations through a transformer-based encoder-decoder architecture enhanced by contrastive learning and mass-aware decoding. The model aims to "bridge the gap" between spectral features and peptide fragments using a more physically grounded architecture.

The ContraNovo architecture integrates contrastive learning between spectra and peptide embeddings with a mass-aware decoder.

Contrastive Learning

Inspired by CLIP, ContraNovo uses a contrastive loss function to learn a joint embedding space. This forces the model to recognize that similar spectra should map to similar peptides, helping it extract shared features that traditional models might miss. This "many-to-one" relationship mapping makes feature extraction more robust against noise in individual spectra.

Mass-Aware Decoding

Unlike previous models that only use amino acid indices, ContraNovo's decoder is fed prefix and suffix mass sums. This provides the model with a "mass budget," allowing it to check if its predicted amino acids physically fit the remaining mass of the peptide chain. During inference, the decoder's output is compared against a specialized lookup table—which concatenates amino acid indices with physical masses—using cosine similarity to identify the correct residue.

Experimental Results

The researchers evaluated ContraNovo on primary benchmarks including MassIVE-KB and the 9-Species datasets. ContraNovo consistently outperformed baseline models like DeepNovo, PointNovo, and CasaNovoV2 across all tested species.

Precision-recall curves on human data demonstrate ContraNovo's superior performance over the previous state-of-the-art, CasaNovoV2.

Key performance metrics include:

  • Precision Gains: On the 9-species-V1 dataset, ContraNovo improved average amino acid precision by 4.6% and peptide-level precision by 8.2% over CasaNovoV2.
  • Human Data Performance: The model showed a remarkable 17.6% improvement in peptide-level precision on human data, suggesting strong generalization to complex biological samples.
  • Resolution Improvements: By aligning spectral features with precise mass embeddings, ContraNovo achieved a 13.8% improvement in identifying tricky pairs like Phenylalanine (F) and Oxidized Methionine (M(ox)).

Conclusion

ContraNovo represents a significant leap forward by treating mass not just as a feature, but as the core identity of the peptide. By forcing the model to calculate masses during decoding and leveraging contrastive learning for robust feature extraction, it sets a new standard for de novo sequencing. Future work may involve self-supervised pre-training on even larger, unlabeled spectral libraries to further explore the "dark matter" of unknown post-translational modifications.

Summary updated

BibTeX
@inproceedings{jin2024contranovo,
  author = {Zhi Jin and Sheng Xu and Xiang Zhang and Tianze Ling and Nanqing Dong and Wanli Ouyang and Zhiqiang Gao and Cheng Chang and Siqi Sun},
  title = {{ContraNovo: A Contrastive Learning Approach to Enhance De Novo Peptide Sequencing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i1.27765},
}
Figure