Generative inpainting of incomplete Euclidean distance matrices of trajectories generated by a fractional Brownian motion

Alexander Lobashev, Dmitry Guskov, Kirill Polovnikov

Abstract

Fractional Brownian motion (fBm) exhibits both randomness and strong scale-free correlations, posing a challenge for generative artificial intelligence to replicate the underlying stochastic process. In this study, we evaluate the performance of diffusion-based inpainting methods on a specific dataset of corrupted images, which represent incomplete Euclidean distance matrices (EDMs) of fBm across various memory exponents (H). Our dataset reveals that, in the regime of low missing ratios, data imputation is unique, as the remaining partial graph is rigid, thus providing a reliable ground truth for inpainting. We find that conditional diffusion generation effectively reproduces the inherent correlations of fBm paths across different memory regimes, including sub-diffusion, Brownian motion, and super-diffusion trajectories, making it a robust tool for statistical imputation in cases with high missing ratios. Moreover, while recent studies have suggested that diffusion models memorize samples from the training dataset, our findings indicate that diffusion behaves qualitatively differently from simple database searches, allowing for generalization rather than mere memorization of the training data. As a biological application, we utilize our fBm-trained diffusion model to impute microscopy-derived distance matrices of chromosomal segments (FISH data), which are incomplete due to experimental imperfections. We demonstrate that our inpainting method outperforms standard bioinformatic methods, suggesting a novel physics-informed generative approach for the enrichment of high-throughput biological datasets.

The Challenge of EDM Completion

In fields ranging from robotics to genomics, Euclidean Distance Matrices (EDMs) serve as critical mathematical maps representing pairwise distances between points in a trajectory. However, real-world data—particularly in biological experiments like Fluorescence In Situ Hybridization (FISH)—is often plagued by missing entries due to experimental limitations. While "rigid" matrices with few missing values can be uniquely reconstructed using classical geometry, high "missing ratios" pose a significant challenge for traditional linear algebra and optimization methods. This study explores whether generative AI can learn the underlying "physics" of stochastic processes to accurately perform EDM completion.

Methods and Workflow

The researchers utilized Denoising Diffusion Probabilistic Models (DDPMs) to treat EDMs as images for inpainting. The workflow involves three primary stages:

  1. Unconditional Training: Training a DDPM on a large synthetic dataset of trajectories generated by fractional Brownian motion (fBm), a random walk with "memory" where steps are correlated.
  2. Inpainting (Conditional Generation): Using the trained model to fill in masked areas of incomplete matrices. The model uses its learned intuition of fBm physics to predict the missing distances.
  3. Validation: Benchmarking against classical methods like FISTA (a low-rank completion algorithm) and nearest-neighbor interpolation.
Overview of the diffusion-based inpainting pipeline, from fBm trajectory synthesis to conditional matrix imputation.

Physical Consistency and Key Results

The model was tested across three physical regimes defined by the Hurst exponent ($H$): sub-diffusion ($H=1/3$), normal Brownian motion ($H=1/2$), and super-diffusion ($H=2/3$). These exponents represent different physical behaviors, from compact to extended structures.

Physical characteristics of fBm-generated EDMs across different Hurst exponents, showing the model's ability to capture power-law correlations and scaling relationships.

Key findings include:

  • Superior Accuracy: At missing ratios up to 90%, diffusion-based inpainting maintained low Fréchet Inception Distance (FID) scores, meaning the generated matrices were statistically indistinguishable from real ones.
  • Biological Breakthrough: When applied to chromosomal FISH data, the fBm-trained model achieved a Root Mean Square Error (RMSE) of ~84 nm, significantly outperforming nearest-neighbor (~111 nm) and ensemble mean (~147 nm) methods.
  • Generalization vs. Memorization: The model demonstrated true generalization rather than mere memorization. Calculations suggest a simple database search would require $10^{78}$ samples—more than the number of atoms in the observable universe—to match the diffusion model's accuracy.

Discussion and Future Directions

The study demonstrates that diffusion models can effectively capture the fractal nature and power-law correlations of fBm. However, limitations remain. The current model assumes "known" distances are noise-free, which is rarely the case in experimental settings. Furthermore, while fBm is a robust model for many states, active biological processes (like those driven by motor proteins) may require more complex, non-fractal statistical models. Future work will focus on handling measurement noise and scaling to larger matrix dimensions through patch-based processing.

Summary updated

BibTeX
@inproceedings{lobashev2025generative,
  author = {Alexander Lobashev and Dmitry Guskov and Kirill Polovnikov},
  title = {{Generative 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