DOE OSTI · 3374575
MapsTorch : automatic differentiation for X-ray fluorescence data analysis
Abstract
X-ray fluorescence (XRF) is a popular spectroscopy technique for elemental analysis. Spectrum fitting and parameter tuning are at the core of XRF analysis and are conventionally manually intensive, especially for synchrotron experiments involving large amounts of diverse samples. This work introduces the automatic differentiation (AD) technique to XRF and an open-source package called MapsTorch. By transforming an analytical model of the XRF spectrum into a differentiable computation graph with AD, MapsTorch enables robust optimization of parameters and elemental intensities. We evaluate MapsTorch by conducting computational experiments on a large number of historical synchrotron XRF datasets and compare its performance with the currently practiced fitting tool NLopt. The results show that MapsTorch consistently achieves high-quality fits and often leads to better fitting quality than NLopt, particularly in tasks such as initial spectrum fitting and elemental intensity refinement. The robust performance of MapsTorch paves the way for developing automated and high-throughput XRF data analysis workflows to handle the increasing data volumes expected from next-generation synchrotron facilities.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Yin, Xiangyu [Argonne National Laboratory (ANL), Argonne, IL (United States)], Di, Zichao [Argonne National Laboratory (ANL), Argonne, IL (United States)], Antipova, Olga [Argonne National Laboratory (ANL), Argonne, IL (United States)], Chen, Si [Argonne National Laboratory (ANL), Argonne, IL (United States)], Jiang, Yi [Argonne National Laboratory (ANL), Argonne, IL (United States)], Glowacki, Arthur [Argonne National Laboratory (ANL), Argonne, IL (United States)]. 2026-01-01. MapsTorch : automatic differentiation for X-ray fluorescence data analysis. https://doi.org/10.1107/s160057752501032x
Cite the original work for its findings. Save a collection to share your selection of sources.