Demonstration of an AI-driven workflow for dynamic x-ray spectroscopy
Ming Du, Mark Wolfman, Chengjun Sun, Shelly D. Kelly, Mathew J. Cherukara
TL;DR
The paper tackles the bottleneck of slow XANES data acquisition by introducing a knowledge-infused Bayesian optimization framework that actively samples energies based on domain knowledge of XANES spectral structure. By integrating a gradient-and-residue–aware acquisition function and edge-aware reweighting into a Gaussian process Bayesian-optimization backbone, the method achieves accurate spectrum reconstruction with only 15–20% of the points used in conventional scans, and precise edge and white-line energy estimates within sub-eV to tens-of-meV accuracy. Its effectiveness is demonstrated across simulated single-spectrum and dynamic XANES scenarios as well as a live beamline test on battery and catalyst materials, including an autonomous NMC111 measurement campaign that significantly speeds up data collection. The approach reduces under- or over-sampling near absorption edges, improves time resolution for dynamic experiments, and enables more automated, autonomous XANES workflows with explicit uncertainty quantification. This work thus advances efficient, adaptive, and automated XANES experiments at modern synchrotron facilities.
Abstract
X-ray absorption near edge structure (XANES) spectroscopy is a powerful technique for characterizing the chemical state and symmetry of individual elements within materials, but requires collecting data at many energy points which can be time-consuming. While adaptive sampling methods exist for efficiently collecting spectroscopic data, they often lack domain-specific knowledge about XANES spectra structure. Here we demonstrate a knowledge-injected Bayesian optimization approach for adaptive XANES data collection that incorporates understanding of spectral features like absorption edges and pre-edge peaks. We show this method accurately reconstructs the absorption edge of XANES spectra using only 15-20% of the measurement points typically needed for conventional sampling, while maintaining the ability to determine the x-ray energy of the sharp peak after absorption edge with errors less than 0.03 eV, the absorption edge with errors less than 0.1 eV; and overall root-mean-square errors less than 0.005 compared to compared to traditionally sampled spectra. Our experiments on battery materials and catalysts demonstrate the method's effectiveness for both static and dynamic XANES measurements, improving data collection efficiency and enabling better time resolution for tracking chemical changes. This approach advances the degree of automation in XANES experiments reducing the common errors of under- or over-sampling points in near the absorption edge and enabling dynamic experiments that require high temporal resolution or limited measurement time.
