From STEM-EDXS data to phase separation and quantification using physics-guided NMF

Adrien Teurtrie, Nathanaël Perraudin, Thomas Holvoet, Hui Chen, Duncan T. L. Alexander, Guillaume Obozinski, C. Hébert · DOI

TL;DR

Researchers have developed a "physics-guided" machine learning algorithm that significantly improves how we map chemical phases in materials at the nanoscale. By embedding the laws of X-ray physics directly into a Non-negative Matrix Factorization (NMF) framework, the team achieved a tenfold increase in mapping accuracy and enabled direct chemical quantification, even in extremely noisy datasets where standard methods fail.

What Problem Does This Paper Address?

Scanning Transmission Electron Microscopy with Energy-Dispersive X-ray Spectroscopy (STEM-EDXS) is a mouthful, but it’s a vital tool for seeing where atoms are in a sample. However, it has three major "headaches":

  1. Noise: X-ray counts are often very low to avoid damaging the sample, leading to "grainy" data.
  2. Spectral Mixing: Different elements often emit X-rays at nearly identical energy levels, making their peaks overlap.
  3. Spatial Mixing: Because samples have thickness, the electron beam might pass through multiple different minerals or phases at once, blurring the boundaries.

Standard statistical tools like NMF or Independent Component Analysis (ICA) try to "unmix" this data, but they are "physics-blind." They treat the data as just numbers, often leading to results that are mathematically possible but physically impossible (like negative chemical concentrations or artifacts that look like noise).

Methods

The authors introduce ESpM-NMF, implemented in the open-source Python packages espm and emtables. The core innovation is a shift from the standard $Y \approx DH$ (Data $\approx$ Dictionary $\times$ Abundance) to a more structured model: $Y \approx GWH$.

  • $G$ (The Physics Dictionary): Instead of letting the algorithm guess what an X-ray spectrum looks like, the researchers pre-compute a matrix $G$ based on the known physics of characteristic X-ray emissions and "Bremsstrahlung" (background radiation).
  • $W$ (The Chemical Recipe): This learnable matrix represents the amount of each spectral feature in a phase. By enforcing a "sum-to-one" constraint here, the algorithm's output becomes a direct chemical quantification.
  • $H$ (The Spatial Map): This represents where the phases are.
  • Poisson Likelihood: Unlike standard NMF which often assumes Gaussian noise, this model uses Poisson statistics—the gold standard for counting discrete events like X-ray detections.
  • Regularization: They added Laplacian smoothing (to ensure maps aren't unnecessarily jagged) and logarithmic sparsity (to encourage the model to find distinct phases rather than a messy blur).

Datasets

The researchers validated their approach using two distinct types of data:

  1. Simulated Geology Data: They created synthetic datasets inspired by Earth’s deep mantle (Bridgmanite, Ferropericlase, and Ca-perovskite). They tested both high-signal and ultra-low-signal scenarios (as low as 18 counts per spectrum).
  2. Experimental Nanoparticles: They used real-world data of FePt@Fe3O4 (iron-platinum core with an iron-oxide shell) nanoparticles. This is a classic "unmixing" challenge because iron is present in both the core and the shell.

Key Insights and Ideas

  • Physics as a Filter: By forcing the algorithm to use a dictionary ($G$) built from physical laws, the model becomes immune to "noise artifacts." It simply won't create a peak where physics says one shouldn't exist.
  • Direct Quantification: Usually, you unmix data first and then do a separate step to calculate chemical percentages. Here, the "unmixing" and "quantification" happen simultaneously. The weights in $W$ are the atomic percentages.
  • The Power of Prior Knowledge: The model allows researchers to "fix" certain values. For example, if you know a specific mineral cannot contain Silicon, you can set that value to zero in the matrix $W$, guiding the algorithm toward the correct physical solution.

Key Results

  • 10x Accuracy Boost: On high-signal synthetic data, the physics-guided approach improved the quality of abundance maps by a factor of ten compared to standard NMF.
  • Success in the Dark: In low-signal tests (where data is mostly noise), standard NMF and ICA completely failed to identify the three distinct phases. ESpM-NMF successfully recovered all three.
  • Real-World Validation: When applied to the FePt@Fe3O4 nanoparticles, the unconstrained model initially struggled to separate the iron in the core from the iron in the shell. However, by introducing a small amount of prior knowledge (the Fe/Pt ratio of the core), the algorithm perfectly separated the core and shell phases, matching previous state-of-the-art results but with much higher interpretability.

Limitations and Future Work

The authors acknowledge a few "simplifying assumptions" that could be refined:

  • Thin Foil Approximation: The model assumes the sample is thin enough that X-ray absorption is minimal. In very thick samples, this could lead to errors of a few percent.
  • Linearity vs. Mass-Thickness: To keep the math efficient (linear), the model assumes mass-thickness doesn't vary wildly across the sample. Breaking this assumption would make the optimization much more complex.
  • Generalization: While built for EDXS, the authors suggest this "linearized physics" approach could be adapted to other spectroscopy techniques, like EELS (Electron Energy Loss Spectroscopy).

Summary updated

Abstract

We present the development of a new algorithm which combines state-of-the-art energy-dispersive X-ray (EDX) spectroscopy theory and a suitable machine learning formulation for the hyperspectral unmixing of scanning transmission electron microscope EDX spectrum images. The algorithm is based on non-negative matrix factorization (NMF) incorporating a physics-guided factorization model. It optimizes a Poisson likelihood, under additional simplex constraint together with user-chosen sparsity-inducing and smoothing regularizations, and is based on iterative multiplicative updates. The fluorescence of X-rays is fully modeled thanks to state-of-the-art theoretical work. It is shown that the output of the algorithm can be used for a direct chemical quantification. With this approach, it is straightforward to include a priori knowledge on the specimen such as the presence or absence of certain chemical elements in some of its phases. This work is implemented within two open-source Python packages, espm and emtables, which are used here for data simulation, data analysis and quantification. Using simulated data, we demonstrate that incorporating physical modeling in the decomposition helps retrieve meaningful components from spatially and spectrally mixed phases, even when the data are very noisy. For synthetic data with a higher signal, the regularizations yield a tenfold increase in the quality of the reconstructed abundance maps compared to standard NMF. Our approach is further validated on experimental data with a known ground truth, where state-of-the art results are achieved by using prior knowledge about the sample. Our model can be generalized to any other scanning spectroscopy techniques where underlying physical modeling can be linearized.
BibTeX
@article{teurtrie2024from,
  author = {Adrien Teurtrie and Nathanaël Perraudin and Thomas Holvoet and Hui Chen and Duncan T. L. Alexander and Guillaume Obozinski and C. Hébert},
  title = {{From STEM-EDXS data to phase separation and quantification using physics-guided NMF}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2024},
  doi = {10.1088/2632-2153/ad9192},
}
Figure