Machine Learning Enhances Algorithms for Quantifying Non-Equilibrium Dynamics in Correlation Spectroscopy Experiments to Reach Frame-Rate-Limited Time Resolution

Tatiana Konstantinova, Lutz Wiegart, Maksim Rakitin, Anthony M. DeGennaro, Andi Barbour · DOI

Abstract

Analysis of X-ray Photon Correlation Spectroscopy (XPCS) data for non-equilibrium dynamics often requires manual binning of age regions of an intensity-intensity correlation function. This leads to a loss of temporal resolution and accumulation of systematic error for the parameters quantifying the dynamics, especially in cases with considerable noise. Moreover, the experiments with high data collection rates create the need for automated online analysis, where manual binning is not possible. Here, we integrate a denoising autoencoder model into algorithms for analysis of non-equilibrium two-time intensity-intensity correlation functions. The model can be applied to an input of an arbitrary size. Noise reduction allows to extract the parameters that characterize the sample dynamics with temporal resolution limited only by frame rates. Not only does it improve the quantitative usage of the data, but it also creates the potential for automating the analytical workflow. Various approaches for uncertainty quantification and extension of the model for anomalies detection are discussed.

Introduction

X-ray Photon Correlation Spectroscopy (XPCS) is a vital technique for studying the microscopic dynamics of materials. By analyzing the scattering patterns of coherent X-rays, researchers can track how atoms and molecules move over time. When studying "non-equilibrium" systems—materials that evolve as they age, such as curing polymers or metallic glasses—scientists utilize the Two-Time Correlation Function (2TCF).

However, raw 2TCF data is inherently noisy. Traditionally, to extract meaningful physical parameters, researchers must "bin" the data, averaging multiple time regions together. This manual process creates a "binning bottleneck": it cleans the signal but acts as a blur filter, destroying temporal resolution and potentially masking rapid dynamical changes. As high-brightness sources like the National Synchrotron Light Source II (NSLS-II) generate data at increasing rates, manual binning becomes a significant barrier to real-time analysis.

Methods: Deep Learning for Denoising

To overcome these limitations, researchers at Brookhaven National Laboratory developed a workflow integrating a Convolutional Neural Network-Encoder-Decoder (CNN-ED) denoising autoencoder. Unlike traditional filters, this model is trained to identify and preserve the underlying structural patterns of material dynamics while discarding stochastic noise.

The CNN-ED denoising workflow, featuring down-mapping for arbitrary input sizes and reflection across the diagonal to reconstruct the full 2TCF.

A key technical challenge was handling experimental data of varying sizes, as the CNN model has a fixed 100x100 input. The authors implemented a "down-and-up mapping" technique: a large 2TCF is subsampled (down-mapped), denoised, and then reconstructed (up-mapped) to its original scale. This allows the model to be applied to any experiment regardless of the total number of frames collected.

Key Results and Data Density

The impact of this ML-enhanced approach is most evident in its ability to extract parameters at the detector's maximum frame rate. In a case study involving 3D-printed Lithium Titanate, traditional manual binning yielded only 19 data points for analysis. In contrast, the denoising workflow extracted 7,854 points from the same dataset, revealing fine-grained details of the material's drift velocity that were previously invisible.

Comparison of physical parameters extracted from raw (blue) and denoised (red) 2TCF data. The denoised approach provides significantly higher data density and stability within the identified trust regions (yellow).

As shown in the parameter plots, the denoised data (red lines) allows for stable fitting of relaxation rates (Γ) and compression constants (α) across the entire experiment. The researchers also introduced "trust regions" (yellow highlights) to automatically flag where the extracted parameters are most reliable based on the speed of the observed dynamics.

Uncertainty Quantification and Automation

To ensure the AI does not "hallucinate" features, the team developed two validation methods. First, they monitor the model's latent space—an 8-dimensional compressed representation of the data. If an experiment's coordinates fall outside the cluster of "normal" training data, the system flags an anomaly. Second, residual analysis is performed to confirm that the discarded noise contains no physical trends.

Conclusion

By shifting the role of machine learning to a pre-processing step, the researchers maintain scientific interpretability; the denoised output is still fitted using standard physics-based equations. This workflow reaches the "ultimate target" of experimental resolution—frame-rate-limited analysis—and paves the way for autonomous beamlines capable of real-time experimental steering.

Summary updated

BibTeX
@misc{konstantinova2022machine,
  author = {Tatiana Konstantinova and Lutz Wiegart and Maksim Rakitin and Anthony M. DeGennaro and Andi Barbour},
  title = {{Machine Learning Enhances Algorithms for Quantifying Non-Equilibrium Dynamics in Correlation Spectroscopy Experiments to Reach Frame-Rate-Limited Time Resolution}},
  year = {2022},
  eprint = {2201.07889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.07889},
}
Figure