Inferensys

Glossary

Contact Prediction

Contact prediction is the computational task of determining which pairs of amino acid residues in a protein sequence are in spatial proximity within the folded three-dimensional structure.
Product manager reviewing autonomous task execution dashboard on laptop, completed tasks visible, casual work session.
RESIDUE-RESIDUE PROXIMITY INFERENCE

What is Contact Prediction?

Contact prediction is the computational task of determining which pairs of amino acid residues within a protein sequence are in close spatial proximity in its folded three-dimensional structure, typically using evolutionary coupling analysis or deep learning.

Contact prediction is the task of identifying residue pairs that are spatially proximal in a protein's native fold, typically defined by a distance threshold of 8 Å between Cβ atoms. This inference is primarily driven by evolutionary coupling analysis of multiple sequence alignments, where co-evolving residues are statistically identified, or by deep learning models that integrate sequence, evolutionary, and structural priors to directly predict contact maps.

Predicted contacts serve as critical constraints for ab initio protein structure prediction, transforming a combinatorial optimization problem into a tractable distance geometry task. Modern methods, including trRosetta and AlphaFold2, have reframed contact prediction as a distogram estimation problem, predicting binned distance distributions rather than binary contacts, which provides richer geometric information for downstream three-dimensional coordinate reconstruction.

SPATIAL PROXIMITY INFERENCE

Key Characteristics of Contact Prediction

Contact prediction identifies which amino acid residue pairs in a protein sequence are in spatial proximity within the folded three-dimensional structure, serving as a critical intermediate constraint for de novo protein structure prediction.

01

Binary Contact Classification

The foundational formulation of contact prediction as a binary classification task where residue pairs are labeled as contacting or non-contacting based on a distance threshold.

  • Standard threshold: Cβ-Cβ distance ≤ 8 Å (angstroms) defines a contact
  • Sequence separation: Typically ignores pairs with fewer than 6 residues between them to avoid trivial local contacts
  • Output: An L×L contact probability map where L is sequence length
  • Evaluation metric: Precision@L measures the fraction of top-L predicted contacts that are correct

Early methods used coevolutionary coupling analysis from multiple sequence alignments, while modern deep learning approaches directly predict contacts from single sequences.

≤ 8 Å
Contact Distance Threshold
L × L
Output Map Dimensions
02

Coevolutionary Coupling Analysis

A classical approach that detects compensatory mutations in multiple sequence alignments (MSAs) to infer residue-residue contacts.

  • Direct Coupling Analysis (DCA): Uses maximum entropy models to disentangle direct from indirect correlations
  • Mutual Information (MI): Measures the interdependence between amino acid distributions at two positions
  • Corrected MI: Subtracts background phylogenetic noise using average product correction

Coevolutionary signals arise because structurally interacting residues must mutate in tandem to maintain protein stability. This principle underlies methods like GREMLIN, PSICOV, and CCMpred, which were state-of-the-art before deep learning.

Direct Coupling
Key Statistical Method
03

Deep Learning Contact Predictors

Modern contact prediction leverages deep residual convolutional networks and transformers trained on known protein structures from the Protein Data Bank (PDB).

  • Input features: Amino acid sequence, position-specific scoring matrices (PSSMs), and MSA-derived coevolutionary statistics
  • Architecture: Dilated residual networks with large receptive fields capture long-range dependencies
  • Key models: RaptorX-Contact, DeepContact, and TripletRes use 2D residual blocks
  • AlphaFold's contribution: Replaced discrete contact prediction with continuous distogram prediction (distance distributions between all residue pairs)

These methods achieve >70% precision on top-L/5 long-range contacts for soluble proteins, dramatically improving ab initio folding accuracy.

>70%
Top-L/5 Precision
PDB
Training Data Source
04

Distance vs. Contact Prediction

A critical evolution from discrete contact maps to continuous distance predictions that provide richer structural constraints.

  • Contact prediction: Binary yes/no at 8 Å threshold — loses information about precise geometry
  • Distance prediction: Estimates actual distance in angstroms between residue pairs
  • Distogram prediction: Classifies distances into bins (e.g., 2-4 Å, 4-6 Å, ..., >20 Å) for probabilistic modeling
  • Advantage: Distance distributions enable more accurate gradient-based folding simulations and resolve ambiguities in densely packed regions

AlphaFold2 and RoseTTAFold use distogram heads as core outputs, treating structure prediction as a spatial regression problem rather than binary classification.

64 bins
Typical Distogram Resolution
05

Residue-Residue Coevolution Features

The input features that capture evolutionary coupling information from multiple sequence alignments remain essential for high-accuracy contact prediction.

  • Covariance matrix (21C × 21C): Raw amino acid pair frequencies at each position pair
  • Coupling parameters: Regularized inverse covariance from pseudolikelihood maximization
  • APC-corrected scores: Average product correction removes entropic background bias
  • Shannon entropy per column: Measures conservation at individual positions

These features are stacked as 2D input channels alongside 1D sequence features and processed by deep networks. Even single-sequence methods implicitly learn to approximate coevolutionary patterns from massive pre-training on protein families.

21C × 21C
Covariance Feature Dimensions
06

Contact Prediction as Folding Constraints

Predicted contacts serve as spatial restraints that guide protein folding simulations by constraining the conformational search space.

  • Distance geometry: Converts contact maps into 3D coordinates using metric matrix embedding
  • Simulated annealing: Uses contacts as energy potentials in molecular dynamics to fold proteins from extended chains
  • Constraint satisfaction: Each satisfied contact reduces the degrees of freedom in the folding landscape
  • Resolution hierarchy: Long-range contacts (|i-j| > 24) are most informative for determining overall topology

Accurate contact prediction at 1/5 × L long-range contacts is sufficient to reconstruct the correct fold for most globular proteins, demonstrating the power of sparse spatial constraints.

|i-j| > 24
Long-Range Contact Definition
L/5
Sufficient Contact Count
CONTACT PREDICTION

Frequently Asked Questions

Clear, technical answers to the most common questions about predicting spatial proximity between amino acid residues in protein structures.

Contact prediction is the computational task of determining which pairs of amino acid residues in a protein sequence are in spatial proximity within the folded three-dimensional structure, typically defined as having their Cβ atoms (or Cα for glycine) within 8 Ångströms of each other. The output is a binary contact map—a symmetric L×L matrix where each cell indicates whether residues i and j are in contact. This prediction serves as a critical intermediate constraint for ab initio protein folding algorithms, transforming a one-dimensional sequence into a set of distance restraints that guide the reconstruction of the full tertiary structure. Modern deep learning approaches, particularly those leveraging evolutionary coupling analysis from multiple sequence alignments, have elevated contact prediction accuracy to levels where de novo structure prediction is now feasible for many proteins without homologous templates.

ARCHITECTURES & METHODS

Notable Contact Prediction Systems

A survey of the deep learning systems that revolutionized the ability to predict residue-residue proximity from sequence data, transforming computational structural biology.

01

AlphaFold2

DeepMind's breakthrough system that frames contact prediction as an end-to-end structure prediction problem. It uses a novel Evoformer architecture to process Multiple Sequence Alignments (MSAs) and template structures, iteratively refining a pair representation that encodes residue-residue relationships. The pair representation is then used to predict a distogram—a probabilistic distribution of distances between all Cβ atoms—which is fed into a structure module for 3D coordinate generation. AlphaFold2's key innovation was the integration of contact prediction directly into the structure generation pipeline, rather than treating it as a standalone intermediate step.

92.4 GDT
Median CASP14 Accuracy
< 1Å
Median Backbone RMSD
04

DeepMetaPSICOV

A two-stage approach that first uses DeepCov—a fully convolutional network operating on raw covariance matrices from MSAs—to predict coarse contacts, then refines them with MetaPSICOV, which integrates the deep learning predictions with classical coevolutionary features (PSICOV, CCMpred, FreeContact) and structural features (solvent accessibility, secondary structure) using a shallow neural network. This ensemble strategy demonstrated that combining deep learning with traditional statistical coupling analysis could outperform either approach alone, achieving top performance in CASP12.

TASK BOUNDARIES

Contact Prediction vs. Related Structural Prediction Tasks

Distinguishing the specific scope, input, and output of contact prediction from adjacent protein structure prediction tasks.

FeatureContact PredictionDistance Prediction3D Coordinate RegressionSecondary Structure Prediction

Primary Objective

Binary classification of residue-residue proximity

Regression of precise inter-residue distance in Ångströms

Regression of atomic Cartesian coordinates

Classification of local backbone torsional states

Typical Input

MSA, raw sequence, or PLM embeddings

MSA, raw sequence, or PLM embeddings

MSA, pairwise features, templates

Raw sequence or MSA

Typical Output

L×L binary probability map (contact at threshold, e.g., 8Å)

L×L distance distribution or real-valued distance matrix

N×3 atomic coordinate tensor

L×Q classification (helix, sheet, coil)

Spatial Resolution

Coarse: Binary proximity

Medium: Real-valued distance

Fine: Atomic coordinates

Coarse: Local secondary structure motif

Key Threshold

Cβ-Cβ distance < 8Å

Primary Use Case

Folding constraints for structure prediction

Direct input to energy minimization

Final 3D structure model

Annotation and fold recognition

Evaluation Metric

Precision of top L/k contacts

Mean Absolute Error (MAE) in Å

TM-score, RMSD, lDDT-Cα

Q3 accuracy, Q8 accuracy

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.