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.
Glossary
Contact Prediction

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Contact Prediction vs. Related Structural Prediction Tasks
Distinguishing the specific scope, input, and output of contact prediction from adjacent protein structure prediction tasks.
| Feature | Contact Prediction | Distance Prediction | 3D Coordinate Regression | Secondary 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 |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Master the core computational and biological principles that underpin contact prediction, from evolutionary coupling analysis to the deep learning architectures that revolutionized protein folding.
Multiple Sequence Alignment (MSA)
The foundational input for most contact prediction methods. An MSA stacks evolutionarily related protein sequences to reveal co-evolutionary patterns. Residue pairs that mutate in tandem often indicate spatial proximity. The depth and quality of the MSA directly dictate prediction accuracy; shallow alignments for orphan proteins remain a critical failure mode. Tools like HHblits and JackHMMER are used to build these profiles.
Direct Coupling Analysis (DCA)
A statistical inference framework that disentangles direct evolutionary couplings from transitive noise in an MSA. Unlike raw correlation, DCA uses a maximum entropy model (Potts model) to isolate residue-residue interactions, generating a contact score matrix. This approach, implemented in tools like CCMpred and FreeContact, was the gold standard before deep learning.
Co-Evolutionary Signal
The biological phenomenon where interacting residues impose selective pressure on each other. A mutation in one position is compensated by a mutation in its binding partner to maintain structural integrity. Contact prediction algorithms function by detecting these correlated mutation patterns across the tree of life, assuming that structural contacts are the primary driver of this signal.
Residue-Residue Distance Geometry
Modern predictors like AlphaFold and trRosetta have moved beyond binary contact classification (contact/no contact) to predict full distance distributions. Instead of a 2D contact map, they output a distogram—a probability distribution over distance bins (e.g., 2-4Å, 4-6Å) for every residue pair. This richer signal provides direct constraints for 3D structure generation.
Protein Language Model Embeddings
A paradigm shift enabling single-sequence contact prediction. Models like ESM-2 learn structural information from raw sequences without requiring MSAs. By analyzing attention patterns in the transformer, contacts emerge implicitly. This bypasses the MSA bottleneck, allowing fast prediction for metagenomic and orphan proteins where evolutionary data is scarce.
Precision-Recall in Contact Evaluation
The standard metrics for benchmarking contact predictors, evaluated on the L × L contact map. - Precision: Fraction of predicted contacts that are true. - Recall: Fraction of true contacts recovered. - Long-range contacts (sequence separation > 24 residues) are weighted most heavily, as short-range contacts are trivially predicted by secondary structure.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us