Root Cause Analysis of Hydrogen Bond Separation in Spatio-Temporal Molecular Dynamics using Causal Models

Rahmat K. Adesunkanmi, Ashfaq Khokhar, Goce Trajcevski, Sohail MuradarXiv 2025 · DOI

Introduction

Molecular Dynamics Simulations (MDS) are indispensable tools in drug discovery and materials science, providing high-resolution insights into atomic interactions. However, these simulations generate vast amounts of spatio-temporal data, making it difficult for researchers to identify and understand critical events like the formation or breaking of hydrogen bonds (HB). While traditional methods can detect that a bond has separated based on distance thresholds, they fail to explain why the separation occurred.

This paper introduces a novel framework that combines Variational Autoencoders (VAEs) with causal graphical models to perform Root Cause Analysis (RCA) on hydrogen bond separation. By treating bond breaking as a system intervention, the proposed method identifies the specific "culprit" atoms whose trajectories drive the disruption of chemical bonds.

Methodology

The core of the framework is an architecture inspired by Neural Relational Inference (NRI) and Structural Causal Models (SCM). The system is structured as a VAE designed to learn the underlying physical laws of the molecular system while identifying causal relationships.

The VAE-based architecture for causal discovery and dynamics prediction.

1. Causal Discovery (The Encoder)

The encoder, $q_\phi(a | r)$, processes atomic trajectories to infer a latent causal graph. Unlike standard Graph Neural Networks (GNNs), this model classifies interactions into three distinct edge types: non-causal, hydrogen bond persistence, and hydrogen bond separation. This categorization allows the model to distinguish between stable states and transitional events.

2. Dynamics Prediction (The Decoder)

The decoder, $p_\theta(r | a)$, utilizes the inferred graph to predict future atomic positions. By employing separate GNNs for different interaction types, the decoder ensures that the predicted dynamics respect the specific physics associated with different bond states.

3. Root Cause Analysis (RCA)

The researchers frame the transition from a stable bond to a separated state as a change in the system's mechanism. They utilize KL-divergence to measure the shift in the joint distribution of the causal models. By decomposing this divergence, the framework can rank individual atoms based on their contribution to the bond-breaking event. A "group lasso" penalty is applied during training to ensure the model identifies a sparse, interpretable set of influential variables.

Experimental Setup and Datasets

The model was validated using atomic trajectories from MDS studies focused on chiral separation—a critical process in the pharmaceutical industry for isolating specific drug enantiomers.

3D visualization of the molecular dynamics simulation for chiral separation.

The dataset tracks 35 atoms within a drug molecule over 10,000 time steps as they interact with polymer surfaces in a 3D environment. The experiments focused on both tracking single sets of hydrogen bond atoms and monitoring multiple simultaneous interactions.

Key Results

The framework demonstrated high predictive accuracy and successful causal identification:

  • Predictive Performance: For short-to-medium trajectories ($T=5$), the model achieved a Mean Square Error (MSE) as low as 0.0019. While errors compounded over longer horizons, the model remained effective up to $T=50$.
  • Identification of Culprit Atoms: The RCA successfully pinpointed specific atoms (e.g., C2_10 and H6_10) with high KL-divergence scores (up to 10.40). Visual analysis confirmed that these specific atoms moved toward donor/acceptor sites in a manner that directly disrupted the hydrogen bonds.
  • Causal Insights: The results suggest that bond breaking is not a random event but a consequence of specific, identifiable shifts in atomic distributions, which the model can detect before the physical separation occurs.

Discussion and Future Work

While the framework provides a powerful tool for automated RCA in molecular systems, several challenges remain. The current model assumes Gaussian distributions for RCA metrics, which may not capture the full complexity of non-linear molecular behavior. Additionally, the computational cost of inferring fully connected causal graphs poses scalability issues for larger protein-ligand systems involving thousands of atoms.

Future research will focus on improving the long-term stability of the auto-regressive decoder and testing the model's ability to perform "zero-shot" inference on unseen molecular structures by leveraging the physical laws learned during training.

Summary updated

BibTeX
@misc{adesunkanmi2025root,
  author = {Rahmat K. Adesunkanmi and Ashfaq Khokhar and Goce Trajcevski and Sohail Murad},
  title = {{Root Cause Analysis of Hydrogen Bond Separation in Spatio-Temporal Molecular Dynamics using Causal Models}},
  year = {2025},
  eprint = {2508.12500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.12500},
}
Figure