Abstract
Analyzing chemical compositions from Laser-Induced Breakdown Spectroscopy (LIBS) data on Mars presents significant challenges due to high dimensionality and inherent noise. This paper introduces a framework combining Non-negative Matrix Factorization (NMF) with Normalizing Flows to perform neural density estimation in a reduced latent space. This approach enables the generation of synthetic spectra and provides robust uncertainty quantification (UQ) for chemical predictions. Our results demonstrate high predictive accuracy across major oxides and statistically well-calibrated error bars, facilitating more reliable geochemical analysis in planetary exploration.
Introduction
The ChemCam instrument aboard the Mars rover Curiosity utilizes Laser-Induced Breakdown Spectroscopy (LIBS) to determine the elemental composition of Martian rocks. By vaporizing small targets with a laser, the instrument captures the resulting light emission as high-dimensional spectra. Each reading typically contains over 5,000 features, representing a complex signature of the target's chemistry.
Despite the success of machine learning in predicting chemical concentrations from these spectra, two primary obstacles persist. First, the "curse of dimensionality" makes it computationally intractable to model the full probability distribution of the data, hindering outlier detection and data synthesis. Second, standard regression models often provide only point estimates, lacking the "error bars" or uncertainty quantification essential for high-stakes space exploration.
Methodology
To address these challenges, we developed a multi-stage analytical pipeline:
Dimensionality Reduction
We employed Non-negative Matrix Factorization (NMF) to compress the 5,606-feature spectra into a 15-dimensional latent space. NMF was selected over traditional methods like PCA because spectral data is inherently non-negative; the resulting latent components are thus more physically interpretable as additive spectral signatures.
Neural Density Estimation
Within the 15D latent space, we implemented a Normalizing Flow (specifically RealNVP). This generative model learns a bijective mapping between the complex latent distribution and a simple Gaussian distribution. This allows for efficient density estimation and the ability to "invert" the model to generate realistic synthetic spectra for data augmentation and testing.
Predictive Modeling and Uncertainty Quantification
We trained eight shallow neural networks to map the latent representations to the weight percentages of major oxides (e.g., $SiO_2$, $MgO$, $CaO$). To quantify uncertainty, we utilized bootstrapping—repeatedly training models on different data subsets. This process allows us to differentiate between model uncertainty and inherent data noise, providing calibrated confidence intervals for every prediction.
Results
The framework was evaluated on a dataset of 426 LIBS spectra generated under simulated Martian conditions.
Predictive Performance
The regression models achieved high accuracy across all target oxides. As shown in the parity plots below, $R^2$ scores ranged from 0.71 to 0.98. Notably, predictions for $MgO$ and $CaO$ were exceptionally precise, both achieving $R^2 \geq 0.95$.
Computational Efficiency and Calibration
A significant advantage of performing density estimation in the latent space is speed; the model can be constructed in less than 60 seconds on a standard CPU. Furthermore, the uncertainty estimates proved to be statistically robust. Validation tests indicated that the 95% confidence intervals achieved near-nominal coverage (e.g., 98.5% for $TiO_2$), meaning the predicted error bars are highly reliable for scientific interpretation.
Discussion and Conclusion
By combining dimensionality reduction with generative normalizing flows, we have established a lightweight yet powerful framework for LIBS spectral analysis. This method not only improves predictive reliability through calibrated uncertainty but also opens doors for synthetic data generation and future out-of-distribution detection. While currently demonstrated on a focused dataset, the scalability of this NMF-Flow pipeline suggests broad applicability across other high-dimensional spectroscopic fields in geology and astronomy.
Summary updated