Recurrent neural network analysis of single trajectories switching between anomalous diffusion states
Alvaro Lanza, Xiang Qu, Stefano Bo
TL;DR
This work tackles inferring time-varying anomalous diffusion parameters from short single trajectories that switch between diffusive states. It presents sequandi, an LSTM-based method that outputs a time-resolved $\hat{\alpha}(t)$ and $\hat{K}(t)$ along with a changepoint detector $\hat{t}^{\textrm{CP}}$, enabling simultaneous parameter estimation and state-change localization. The approach is trained on a large, mixed dataset inspired by AnDi2024 and validated on benchmark and test sets, achieving competitive point-wise accuracy (e.g., $\text{MAE}_{\alpha(t)}\approx0.19$ and $\text{MSLE}_{K(t)}\approx0.02$) and CP-detection performance (e.g., $\text{JSC}_{\textrm{CP}}\approx0.58$). Compared against the classical CPDA algorithm, sequandi often yields superior changepoint detection with fewer false positives, while still preserving high fidelity in time-resolved diffusion parameters. The work advances practical analysis of complex diffusion in biology and materials, and points to future improvements via transformers and 3D extensions.
Abstract
Diffusive dynamics abound in nature and have been especially studied in physical, biological, and financial systems. These dynamics are characterised by a linear growth of the mean squared displacement (MSD) with time. Often, the conditions that give rise to simple diffusion are violated, and many systems, such as biomolecules inside cells, microswimmers, or particles in turbulent flows, undergo anomalous diffusion, featuring an MSD that grows following a power law with an exponent $α$. Precisely determining this exponent and the generalised diffusion coefficient provides valuable information on the systems under consideration, but it is a very challenging task when only a few short trajectories are available, which is common in non-equilibrium and living systems. Estimating the exponent becomes overwhelmingly difficult when the diffusive dynamics switches between different behaviours, characterised by different exponents $α$ or diffusion coefficients $K$. We develop a method based on recurrent neural networks that successfully estimates the anomalous diffusion exponents and generalised diffusion coefficients of individual trajectories that switch between multiple diffusive states. Our method returns the $α$ and $K$ as a function of time and identifies the times at which the dynamics switches between different behaviours. We showcase the method's capabilities on the dataset of the 2024 Anomalous Diffusion Challenge.
