Spectrochimica acta. Part B, Atomic spectroscopy

A Monte Carlo-Driven Genetic Algorithm and Digital Twin Approach for Quantitative X-ray Fluorescence Spectroscopy.

Allison O'Brien, Samuel Webb, Rebecca Abergel

University of California, Berkeley, CA, USA. · SLAC National Accelerator Laboratory, Menlo Park, CA, USA.

Computational

Key points

From the paper's conclusion
  • This work demonstrates genetic algorithm-driven optimization with MC simulations as a powerful digital twin framework for XRF, enhancing both experimental planning and post-experimental analysis.

Abstract

Traditional X-ray fluorescence (XRF) quantification approaches often rely on spectral fitting and simplified attenuation models, which can introduce systematic errors for thick, heterogeneous, or geometry-dependent samples. Here we present a genetic algorithm (GA) framework, coupled with Monte Carlo (MC) radiation transport, that applies evolutionary optimization to both composition estimation and experimental parameter selection. Using Geant4 simulations as physics-accurate references, the GA iteratively optimizes elemental fractions and beam conditions based on spectral agreement. The composition GA consistently converges for simulated samples containing up to seven elements, outperforming random sampling and maintaining accuracy in low-information scenarios. An experiment-planning GA improves spectral quality by adjusting excitation energy, yielding more than an 80% increase in peak signal-to-noise ratio. Combined in a digital twin approach, the two stages reduce mean absolute error by 14.5% while refining experimental setup. Parallelization studies on high performance computing systems demonstrate that optimized multiprocessing and multithreading halve runtime, enabling scalability to larger problem sizes. This work demonstrates genetic algorithm-driven optimization with MC simulations as a powerful digital twin framework for XRF, enhancing both experimental planning and post-experimental analysis.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers