Diffusion-based inpainting of incomplete Euclidean distance matrices of trajectories generated by a fractional Brownian motion

Alexander Lobashev, Kirill Polovnikov · DOI

Abstract: Fractional Brownian motion (fBm) features both randomness and strong scale-free correlations, challenging generative models to reproduce the intrinsic memory characterizing the underlying stochastic process. Here we examine a zoo of diffusion-based inpainting methods on a specific dataset of corrupted images, which represent incomplete Euclidean distance matrices (EDMs) of fBm at various memory exponents $H$. Our dataset implies uniqueness of the data imputation in the regime of low missing ratio, where the remaining partial graph is rigid, providing the ground truth for the inpainting. We find that the conditional diffusion generation readily reproduces the built-in correlations of fBm paths in different memory regimes (i.e., for sub-, Brownian and super-diffusion trajectories), providing a robust tool for the statistical imputation at high missing ratio. Furthermore, while diffusion models have been recently shown to memorize samples from the training database, we demonstrate that diffusion behaves qualitatively different from the database search and thus generalize rather than memorize the training dataset. As a biological application, we apply our fBm-trained diffusion model for the imputation of microscopy-derived distance matrices of chromosomal segments (FISH data) - incomplete due to experimental imperfections - and demonstrate its superiority over the standard approaches used in bioinformatics.

Introduction

In structural biology and polymer physics, 3D trajectories—such as the folding of a DNA strand—are often represented as Euclidean Distance Matrices (EDMs). These matrices capture the pairwise distances between every point in a sequence, providing a comprehensive map of the structure's geometry. However, experimental techniques like Fluorescence In Situ Hybridization (FISH) frequently produce incomplete data, resulting in "holes" or missing entries in the EDM due to experimental limitations.

The EDM completion problem: A full distance matrix (left) and its corrupted, sparse version (right) which requires reconstruction.

The challenge of EDM completion is particularly acute when the missing ratio is high. While low missing ratios allow for unique mathematical solutions through graph rigidity, high ratios lead to an under-determined problem with infinite possible reconstructions. Traditional methods, such as low-rank matrix completion, often fail to capture the intrinsic physical "memory" and statistical correlations of the underlying stochastic processes.

Methods and Datasets

The researchers approached EDM completion as an image inpainting task, utilizing Denoising Diffusion Probabilistic Models (DDPMs). Specifically, they evaluated several conditional variants: Denoising Diffusion Restoration Models (DDRM), Denoising Diffusion Null-Space Models (DDNM), and RePaint.

The models were trained on a massive synthetic dataset of 200,000 trajectories generated by fractional Brownian motion (fBm). Unlike standard Brownian motion, fBm incorporates long-range correlations characterized by the Hurst exponent ($H$). The dataset spanned three regimes: sub-diffusion ($H=1/3$), normal diffusion ($H=1/2$), and super-diffusion ($H=2/3$).

Statistical properties of the fBm training data: (a) Sample EDMs for different Hurst exponents, (b) normalized distance distributions, and (c) scaling behavior of the mean squared displacement.

To validate the model's biological utility, it was also tested on real-world FISH microscopy data of human chromosome 21 segments.

Key Insights and Results

A critical finding of the study is the model's ability to generalize rather than simply memorize the training data. The authors demonstrated that the diffusion model's performance far exceeds what could be achieved by a simple database search, effectively learning the underlying "physics" of the stochastic processes.

The diffusion-based approach, particularly the DDRM variant, showed significant improvements over classical benchmarks:

  • Synthetic Benchmarks: DDRM achieved lower Root Mean Square Error (RMSE) and superior Fréchet Inception Distance (FID) scores compared to FISTA (low-rank completion) and nearest-neighbor interpolation.
  • Biological Application: On chromosomal FISH data, the fBm-trained DDRM model reached an RMSE of 84.2 nm, a substantial improvement over the standard Ensemble Mean (147.4 nm) and Nearest Neighbor (111.4 nm) approaches.
  • Physical Consistency: The reconstructed matrices preserved the low-rank property (rank $\approx 5$) necessary for valid 3D point representations.

Discussion and Future Directions

While the results are promising, several challenges remain. The current model assumes that known distances are noise-free, whereas experimental data is typically both incomplete and noisy. Future iterations will need to address simultaneous denoising and inpainting. Additionally, while fBm is an excellent model for certain chromosome states, "wild-type" chromosomes exhibit non-fractal features like Topologically Associating Domains (TADs) and loops. Incorporating these complex biological structures into the training simulations will be a key step toward more accurate chromosomal reconstructions.

Summary updated

BibTeX
@inproceedings{lobashev2025diffusion,
  author = {Alexander Lobashev and Kirill Polovnikov},
  title = {{Diffusion-based inpainting of incomplete Euclidean distance matrices of trajectories generated by a fractional Brownian motion}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41598-025-97893-5},
}
Figure