Hyperspectral unmixing for Raman spectroscopy via physics-constrained autoencoders

Dimitar Georgiev, Álvaro Fernández-Galiana, Simon Vilms Pedersen, Georgios Papadopoulos, Ruoxiao Xie, Molly M. Stevens, Mauricio Barahona · DOI

This paper presents a novel framework for hyperspectral unmixing in Raman spectroscopy (RS) using physics-constrained autoencoders. By embedding the physical principles of chemical mixing directly into neural network architectures, the researchers achieved superior accuracy, robustness to noise, and computational efficiency compared to traditional chemometric methods.

TL;DR

The authors developed a suite of autoencoder neural networks that treat the encoder as an abundance estimator and the decoder as a physical mixing function. These models significantly outperform standard algorithms like VCA and N-FINDR, particularly in noisy or non-linear scenarios, and successfully identified subtle biochemical markers like cholesterol in complex 3D cell imaging data.

What Problem Does This Paper Address?

Raman spectroscopy is a powerful tool for "fingerprinting" molecules, but real-world samples are rarely pure. They are typically complex mixtures where signals from different species overlap. The goal of hyperspectral unmixing is to decompose these mixed signals into two parts: the "endmembers" (the pure spectra of individual components) and their "abundances" (the proportion of each component at every pixel).

Traditional methods, often borrowed from remote sensing, face several hurdles in RS:

  1. Linearity Assumptions: Most assume components mix linearly, which fails when light scatters multiple times (non-linear mixing).
  2. Noise Sensitivity: RS data is often plagued by "cosmic spikes," detector noise, and baseline fluctuations.
  3. Pure Pixel Requirement: Many algorithms assume that at least one pixel in the image contains a perfectly pure sample of each component, which is rarely true in biology.
  4. Scalability: Modern 3D volumetric scans generate hundreds of thousands of spectra, making iterative geometric algorithms computationally prohibitive.

Methods

The researchers turned to Autoencoders (AEs)—a type of neural network that learns to compress and then reconstruct data. In this framework, the "bottleneck" or latent space represents the fractional abundances, and the decoder represents the mixing process.

Overview of the autoencoder architecture for hyperspectral unmixing. The encoder (E) extracts abundances (z), while the decoder (D) models the mixing process to reconstruct the input.

Key Innovations: * Physics-Inspired Constraints: To ensure the results make physical sense, the authors enforced non-negativity for both endmembers and abundances. They also used a softmax activation to ensure abundances sum to one (the "sum-to-one constraint"). * Architectural Diversity: They tested four encoder types: Dense (fully connected), Convolutional (to capture spectral correlations), Transformer (using attention mechanisms for long-range dependencies), and a hybrid Convolutional Transformer. * Flexible Decoders: Unlike standard tools, the AE decoder can be easily swapped to model different mixing laws, such as the bilinear "Fan model," allowing the network to handle complex light-matter interactions.

Datasets

The models were validated across three distinct tiers of data:

  1. Synthetic Mixtures: 11 datasets ranging from "ideal" linear mixtures to "realistic" scenarios with heavy noise, baseline shifts, cosmic spikes, and bilinear mixing.
  2. Experimental Sugar Solutions: A library of 240 controlled mixtures of glucose, sucrose, fructose, and maltose, captured at both high and low signal-to-noise ratios (SNR).
  3. Biological Volumetric Data: A 3D Raman scan of a human leukemia monocytic (THP-1) cell, providing a high-dimensional test case for organelle identification.

Key Insights and Ideas

  • Self-Supervision is Key: Because the AE learns by trying to reconstruct its own input, it doesn't require "ground truth" labels, which are almost impossible to obtain for real biological samples.
  • Inductive Bias Matters: By forcing the decoder to follow the math of a mixing model (e.g., $x = M\alpha$), the network is prevented from learning "black box" solutions and instead finds physically meaningful spectra.
  • Beyond Pure Pixels: The AEs proved much better than traditional methods at identifying endmembers even when those components were highly mixed in every single pixel of the dataset.
  • Biological Sensitivity: In the THP-1 cell analysis, the AE identified cholesterol—a critical component for cell membrane stability—which the standard VCA+NNLS approach missed entirely.

Key Results

  • Accuracy: On synthetic "realistic" data, AEs consistently achieved lower error rates (measured by Spectral Angle Divergence for endmembers and Mean Squared Error for abundances) than the baselines.
  • Efficiency: Even when running on a standard laptop CPU without GPU acceleration, all AE models were faster than the conventional N-FINDR and VCA pipelines for large datasets (Figure 3).
  • Robustness: In low-SNR sugar experiments, the AEs maintained high accuracy while traditional methods' performance degraded significantly.
  • Qualitative Improvement: In cell imaging, the "Deep Dense AE" produced much cleaner, more distinct maps of organelles like the nucleus and lipid bodies compared to the noisy results of standard methods.
Comparison of cell organelle reconstruction. The AE models provide clearer spatial distribution and identify cholesterol, which is missing in the VCA+NNLS results.

Limitations and Future Work

The authors note that the number of endmembers ($n$) still typically needs to be specified by the user beforehand. While they mention that sparsity constraints could eventually allow the model to learn $n$ automatically, this remains a challenge.

Future work includes exploring even more complex decoders, integrating denoising objectives directly into the training process, and extending the framework to other spectroscopic techniques like infrared (IR) spectroscopy.

Summary updated

Abstract

Raman spectroscopy is widely used across scientific domains to characterize the chemical composition of samples in a non-destructive, label-free manner. Many applications entail the unmixing of signals from mixtures of molecular species to identify the individual components present and their proportions, yet conventional methods for chemometrics often struggle with complex mixture scenarios encountered in practice. Here, we develop hyperspectral unmixing algorithms based on autoencoder neural networks, and we systematically validate them using both synthetic and experimental benchmark datasets created in-house. Our results demonstrate that unmixing autoencoders provide improved accuracy, robustness and efficiency compared to standard unmixing methods. We also showcase the applicability of autoencoders to complex biological settings by showing improved biochemical characterization of volumetric Raman imaging data from a monocytic cell.
BibTeX
@inproceedings{georgiev2025hyperspectral,
  author = {Dimitar Georgiev and Álvaro Fernández-Galiana and Simon Vilms Pedersen and Georgios Papadopoulos and Ruoxiao Xie and Molly M. Stevens and Mauricio Barahona},
  title = {{Hyperspectral unmixing for Raman spectroscopy via physics-constrained autoencoders}},
  booktitle = {AI4X 2025 Oral},
  year = {2025},
  url = {https://openreview.net/forum?id=mt7uxFupb3},
}
Figure