# Constrained non-negative matrix factorization enabling real-time insights of textitin situ and high-throughput experiments

arXiv: https://arxiv.org/abs/2104.00864 · HTML: https://mlsanity.com/paper/2104.00864/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 3 of its 51 references that are in the map.
- First posted on arXiv 2 Apr 2021.

## Builds on (most cited first, 3 of 3)

- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [Unsupervised Phase Mapping of X-ray Diffraction Data by Nonnegative Matrix Factorization Integrated with Custom Clustering](https://mlsanity.com/paper/1802.07307/) (2018)
- [A fast two-stage algorithm for non-negative matrix factorization in streaming data](https://mlsanity.com/paper/2101.08431/) (2021)

## Abstract (arXiv)

Non-negative Matrix Factorization (NMF) methods offer an appealing unsupervised learning method for real-time analysis of streaming spectral data in time-sensitive data collection, such as textitin situ characterization of materials. However, canonical NMF methods are optimized to reconstruct a full dataset as closely as possible, with no underlying requirement that the reconstruction produces components or weights representative of the true physical processes. In this work, we demonstrate how constraining NMF weights or components, provided as known or assumed priors, can provide significant improvement in revealing true underlying phenomena. We present a PyTorch based method for efficiently applying constrained NMF and demonstrate this on several synthetic examples. When applied to streaming experimentally measured spectral data, an expert researcher-in-the-loop can provide and dynamically adjust the constraints. This set of interactive priors to the NMF model can, for example, contain known or identified independent components, as well as functional expectations about the mixing of components. We demonstrate this application on measured X-ray diffraction and pair distribution function data from textitin situ beamline experiments. Details of the method are described, and general guidance provided to employ constrained NMF in extraction of critical information and insights during textitin situ and high-throughput experiments.
