Distance matrix prediction transforms normalized Hi-C contact frequencies into physical Euclidean distances between every pair of genomic loci. This conversion applies biophysical models—typically an inverse power-law relationship—to translate interaction probabilities into spatial restraints, generating a symmetric matrix where each entry represents the predicted nanometer-scale separation between two DNA segments in three-dimensional space.
Glossary
Distance Matrix Prediction

What is Distance Matrix Prediction?
Distance matrix prediction is the computational inference of a pairwise Euclidean distance matrix that represents the 3D spatial proximity of all genomic loci, serving as a critical intermediate step in reconstructing chromosome structures from Hi-C interaction frequency data.
The predicted distance matrix serves as the direct input for downstream 3D genome reconstruction algorithms, such as multidimensional scaling or manifold-based optimization. Accurate distance inference is essential for resolving chromatin loop anchors, identifying topologically associating domain (TAD) boundaries, and modeling how structural variants disrupt normal enhancer-promoter proximity in disease contexts.
Key Characteristics of Distance Matrix Prediction
Distance matrix prediction is the computational inference of pairwise Euclidean distances between all genomic loci, serving as the critical bridge between interaction frequency data and three-dimensional structural reconstruction.
From Contact Frequency to Physical Distance
The core transformation converts Hi-C interaction frequencies into Euclidean distance estimates using inverse power-law relationships. Since contact probability decays approximately as 1/d^α in polymer physics, models learn to map normalized contact counts to spatial distances.
- Polymer physics constraints enforce realistic distance distributions
- Distance-dependent decay curves calibrate the frequency-to-distance mapping
- Ensemble averaging accounts for cell population heterogeneity
- Output is a symmetric N×N matrix where each entry represents the 3D distance between loci i and j
Distance Geometry Optimization
Beyond MDS, distance geometry frameworks formulate structure determination as a constrained optimization problem. The goal is to find 3D coordinates that minimize the discrepancy between predicted and target distances while satisfying physical constraints.
- Semidefinite programming relaxations provide global convergence guarantees
- Gradient descent on stress functions iteratively refines coordinates
- Bound smoothing tightens feasible distance ranges before optimization
- Excluded volume constraints prevent non-physical chain crossings
Uncertainty Quantification in Distance Estimates
Each pairwise distance prediction carries inherent uncertainty due to population heterogeneity and experimental noise. Modern approaches output distance distributions rather than point estimates, enabling probabilistic structure reconstruction.
- Bayesian neural networks produce posterior distance distributions
- Ensemble methods capture model uncertainty across multiple predictions
- Conformal prediction provides statistically valid confidence intervals
- Uncertainty correlates with genomic regions of high structural variability
Loss Functions for Distance Regression
Training distance prediction models requires specialized loss functions that respect the geometric constraints of 3D space. Standard MSE is often augmented with structure-aware penalties.
- Stress functions measure preservation of distance rank order
- Triplet losses enforce triangle inequality constraints (
d_ij + d_jk ≥ d_ik) - Spectral losses match eigenvalue distributions of predicted and true distance matrices
- Stratum-adjusted losses account for genomic distance-dependent error patterns
Graph Neural Network Distance Decoders
GNN-based architectures predict distances by learning pairwise relationships directly from the chromatin interaction graph. Message passing between genomic loci nodes captures both local neighborhood structure and long-range dependencies.
- Edge prediction heads output scalar distances for each node pair
- Attention mechanisms weight the influence of neighboring loci
- Equivariant layers ensure predictions respect rotational and translational symmetry
- Graph topology reflects the Hi-C contact map adjacency structure
Frequently Asked Questions
Clarifying the computational inference of pairwise spatial proximity maps that serve as the mathematical bridge between raw interaction frequencies and reconstructed 3D chromosome structures.
A distance matrix in 3D genomics is a symmetric, pairwise matrix where each entry represents the estimated Euclidean distance (typically in nanometers) between two genomic loci in three-dimensional space. It is predicted by computationally transforming a Hi-C contact map, which measures interaction frequencies, into spatial distances using an inverse relationship: high interaction frequency implies close spatial proximity, while low frequency implies greater distance. Deep learning models, such as Graph Neural Networks (GNNs) and convolutional architectures, are trained to infer this matrix directly from linear DNA sequence and epigenomic features, bypassing the need for experimental Hi-C data. The prediction pipeline often involves a sequence-to-contact model like Akita, followed by an optimization algorithm that converts the predicted contact probabilities into a distance matrix satisfying metric constraints. This matrix is the critical intermediate representation used to reconstruct the consensus 3D chromosome structure via multidimensional scaling (MDS) or polymer physics-informed optimization.
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
Explore the core concepts, algorithms, and validation techniques that underpin the computational inference of 3D genomic spatial proximity from interaction data.
Hi-C Contact Map
A genome-wide matrix quantifying the interaction frequencies between all pairs of genomic loci. This is the primary experimental input and prediction target for 3D genome folding models. Contact probability is typically normalized to account for systematic biases like GC content and mappability.
- Stored in scalable formats like Cooler for efficient out-of-core computation.
- Serves as the raw data from which a distance matrix is ultimately derived via optimization.
3D Genome Reconstruction
The computational process of converting a Hi-C contact matrix into a consensus 3D structure. This involves inferring a pairwise Euclidean distance matrix from contact frequencies, often using an inverse relationship (e.g., distance ∝ contact^(-1)).
- Constraints from polymer physics ensure physically plausible structures.
- DNA FISH serves as a gold-standard experimental validation for the predicted spatial distances.
Stratum-Adjusted Correlation Coefficient (SCC)
A reproducibility metric specifically designed for Hi-C data that measures the similarity between two contact maps while accounting for the distance-dependent signal. This is the standard benchmark for evaluating distance matrix prediction accuracy.
- Unlike simple correlation, SCC controls for the expected background contact frequency decay.
- Essential for comparing predicted structures against experimental replicates.
Genomic Distance Normalization
A statistical correction applied to Hi-C contact maps to account for the expected background contact frequency decay as a function of linear genomic distance. This normalization is critical for isolating biologically significant interactions.
- Enables the detection of chromatin loops and TADs.
- The normalized matrix is the direct input for inferring the true spatial distance matrix.
Graph Neural Network (GNN) for Chromatin
A deep learning architecture that represents genomic loci as nodes and their interactions as edges. GNNs predict 3D genome structures by learning relational patterns from DNA sequence and epigenomic features.
- Directly predicts the pairwise distance matrix by message passing between loci.
- Models like Akita use convolutional architectures, but GNNs offer a natural inductive bias for relational data.
Polymer Physics-Informed Neural Network
A deep learning model that integrates principles of polymer physics to generate physically plausible 3D genome structures. These networks constrain the predicted distance matrix to obey physical laws.
- Incorporates excluded volume constraints to prevent loci from occupying the same space.
- Uses contact probability decay functions derived from polymer theory to regularize predictions.

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