Determining Concentration from Raman Spectroscopy with Manifold Learning and Y-shaped Conformal Autoencoders
Authors: Anna Taka, Eleni D. Koronaki, Ioannis G. Kevrekidis, Eike Cramer, Joern Viell, Alexander Mitsos
Organizations: Process Systems Engineering (AVT.SVT), RWTH Aachen University, Forckenbeckstr. 51, 52074 Aachen, Germany · Luxembourg Institute of Science and Technology (LIST), 5 Av. des Hauts-Fourneaux, 4362 Esch-Belval Esch-sur-Alzette, Luxembourg · Department of Chemical and Biomolecular Engineering and Department of Applied Mathematics and Statistics, Whiting School of Engineering, John Hopkins University, 3400 North Charles Street, Baltimore, MD 21218, USA · Department of Chemical Engineering, University College London, Gower St, London WC1E 6BT, United Kingdom · JARA-CSD, 52056 Aachen, Germany · Institute of Climate and Energy Systems, Energy Systems Engineering (ICE-1), Forschungszentrum Jülich GmbH, 52425 Jülich, Germany
Monitoring of chemical processes is crucial in chemical engineering, motivating sophisticated process analytical technology (PAT). In-line analytics are advantageous, with Raman spectroscopy being an established and reliable tool in various applications, from which many properties can be determined. We recently [Koronaki et al., AIChEJ 2024] proposed determining polymer particle size from Raman spectroscopic data, by combining Diffusion Maps (a manifold learning method) with a Y-shaped Conformal Autoencoder Neural Network. Herein, we extend this workflow to predict liquid concentrations, allowing also for multiple target predictions from the same model. We apply the methods on two datasets consisting of Raman measurements and concentration measurements: one from microgel polymerization and one from citric acid dissociation. The single-target concentration prediction results, where one target is determined from each model at a time, are accurate. Comparing against dedicated methods such as Indirect Hard Modeling (IHM) is not straightforward, due to the different validation strategies and the considered spectra range; nevertheless, it is fair to say that IHM performs slightly better than the proposed workflow. We further compare this approach with other regression methods, such as artificial neural networks, extreme gradient boosting and partial least squares, and the results show that the Conformal Autoencoders achieve higher predictive performance, demonstrating that the workflow can also be used for concentration determination. Finally we find that single-target concentration predictions are more accurate than the multiple target predictions for both case studies.
Figures & tables
Fig. 1 : The Y-shaped Conformal Autoencoder combines a conformal autoencoder with a neural network, thus consisting of three connected subnetworks: the encoder, the decoder, and the estimator. The encoder maps the inputs to the autoencoder latent variables, the decoder does the reverse mapping, from the autoencoder latent variables to the inputs, and the estimator maps from a subset of the autoencoder latent variables that affect the outputs to the desired targets.
Fig. 2 : Low-dimensional parametrization of Raman spectra found with DMAPs, (a) for the first case study and (b) for the second case study. For both case studies, on the left we see the Raman spectra measured for all the samples: each line presents the measured spectrum of one sample. On the right we see the parametrization of the low-dimensional underlying manifold found with DMAPs. In both representations we see that there are some offset points: this is due to the value of the kernel scale.
Fig. 3 : Scree plot of the eigenvalues of the matrix from DMAPs on the spectra of the first case study (a) and for the second case study (b). For both case studies, the first eigenvalue is equal to one and the corresponding eigenvector is constant, thus we do not consider it for the selection.
Fig. 4 : Reconstructed spectra representation and parity plot from the selected parametrization, (a) for the first case study and (b) for the second case study. On the left we see the parity plots, where the gray dots (aligned through the diagonal line) represent the training datapoints for both case studies and the colored ones represent the testing datapoints. On the right we see the reconstructed spectra from the selected parametrization, where each line represents the spectrum of each reconstructed datapoint, for both case studies.
Case study
Target
Value range
VCL
0.000−1.470
microgel synthesis
PVCL
0.000−2.220
(\mathrm{wt%})
H2O
97.52−100.0
CA
0.000−0.0211
CA -
0.000−0.01110
citric acid dissociation
CA 2-
0.000−0.008300
Table 1: Targets value range. Water has the highest concentration values on both case studies.
Fig. 5 : Polymer concentration predictions with Y-AE (a), ANN (b), XGB (c), and PLS (d). The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. PLS gives the best prediction results with very few latent variables: this indicates that the spectroscopic data lie on a linear low-dimensional manifold. The predictions from Y-AE and ANN are on the same range.
Fig. 6 : Concentration predictions of citric acid with Y-AE (a), ANN (b),XGB (c), and PLS. The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. Y-AE gives the highest prediction results, while the predictions from PLS and XGB are on the same range.
Fig. S1 : Water concentration predictions with Y-AE (a), ANN (b), XGB (c), and PLS (d). The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. PLS gives the highest prediction results with very few latent variables: this indicates that the spectroscopic data lie on a linear low-dimensional manifold. The predictions from Y-AE and ANN are on the same range.
Fig. S2 : Monomer concentration predictions with Y-AE (a), ANN (b), XGB (c), and PLS (d). The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. PLS gives the highest prediction results with very few latent variables: this indicates that the spectroscopic data lie on a linear low-dimensional manifold. The predictions from Y-AE and ANN are on the same range.
Fig. S3 : Concentration predictions of CA - with Y-AE (a), ANN (b),XGB (c), and PLS. The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. Y-AE gives the highest prediction results, while the predictions from PLS and XGB are on the same range.
Fig. S4 : Concentration predictions of CA 2- with Y-AE (a), ANN (b),XGB (c), and PLS. The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. Y-AE gives the highest prediction results, while the predictions from PLS and XGB are on the same range.
Fig. S5 : Concentration predictions of CA 3- with Y-AE (a), ANN (b),XGB (c), and PLS. The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. Y-AE gives the highest prediction results, while the predictions from PLS and XGB are on the same range.
Fig. S6 : Concentration predictions of water with Y-AE (a), ANN (b),XGB (c), and PLS. The gray dots represent the training datapoints, while the colored ones represent the testing datapoints. Y-AE gives the highest prediction results, while the predictions from PLS and XGB are on the same range.
Fig. S7 : Uncertainty quantification study plots from the separate target prediction with Y-AE for the first case study, for water (a), monomer (b), and polymer (c). There is a higher discrepancy for the predicted test datapoints compared to the predicted train datapoints, because the test datapoints are new data for the models. The predictions from the ten models are on the same range.
Fig. S8 : Uncertainty quantification study plots from the separate target prediction with ANN for the first case study, for water (a), monomer (b), and polymer (c). There is a higher discrepancy for the predicted test datapoints compared to the predicted train datapoints, because the test datapoints are new data for the models. The predictions from the ten models are on the same range.
Fig. S9 : Uncertainty quantification study plots from the simultaneous target prediction with Y-AE for the first case study, for water (a), monomer (b), and polymer (c). There is a higher discrepancy for the predicted test datapoints compared to the predicted train datapoints, because the test datapoints are new data for the models. The predictions from the ten models are on the same range.
Fig. S10 : Uncertainty quantification study plots from the separate target prediction with Y-AE for the second case study, for citric acid (a), CA - (b), CA 2- (c), CA 3- (d), and water (e). There is a higher discrepancy for the predicted test datapoints compared to the predicted train datapoints, because the test datapoints are new data for the models.
Fig. S11 : Uncertainty quantification study plots from the separate target prediction with ANN for the second case study, for citric acid (a), CA - (b), CA 2- (c), CA 3- (d), and water (e). There is a higher discrepancy for the predicted test datapoints compared to the predicted train datapoints, because the test datapoints are new data for the models.
Fig. S12 : Uncertainty quantification study plots from the simultaneous target prediction with Y-AE for the second case study, for citric acid (a), CA - (b), CA 2- (c), CA 3- (d), and water (e). There is a higher discrepancy for the predicted test datapoints compared to the predicted train datapoints, because the test datapoints are new data for the models.
Fig. S13 : The residuals between the eigenvector sets after the local regression for the first case study. ψ1 and ψ3 have the highest residual values, followed by ψ7 , ψ17 and so forth.
Fig. S14 : Low-dimensional underlying manifold based on the residuals between the eigenvector sets for the first case study. There are again two clusters, since the kernel scale is high, but the larger cluster is more spread than on the manifold where we considered the eigenvalue decay.
Fig. S15 : The residuals between the eigenvector sets after the local regression for the second case study. ψ1 and ψ9 have the highest residual values, followed by ψ8 , ψ10 and so forth.
Fig. S16 : Low-dimensional underlying manifold based on the residuals between the eigenvector sets for the second case study. There are again two clusters, since the kernel scale is high, but the smaller cluster has only one datapoint and the larger cluster is more spread, and we cannot see a correlation between the two eigenvectors, as we see on the manifold where we considered the eigenvalue decay.
Fig. S17 : The residuals between the eigenvector sets after the local regression for the second case study with a different kernel scale. ψ1 and ψ9 have the highest residual values, followed by ψ8 , ψ12 and so forth.
Fig. S18 : Four-dimensional parametrization of the manifold based on the residuals between the eigenvector sets for the second case study. There are two clusters, with the large cluster being less spread compared to the one in Fig. S16 , since the kernel scale here is lower.
Fig. S19 : Five-dimensional parametrization of the underlying manifold based on the decay of the eigenvalues. This parametrization is the input on the Y-AE for the simultaneous prediction of the targets.
Fig. S20 : Predictions results from the interpolation with the Nyström extension, (a) for the first case study and (b) for the second case study. The gray dots represent the training datapoints, while the colored ones represent the testing datapoints.
Raman spectroscopy enables label-free molecular characterization across materials science, analytical chemistry, biomedicine, and industrial process monitoring. However, machine learning for high-dimensional spectroscopy remains constrained by limited labeled data and a mismatch between the physical organization of spectra and feature-agnostic models. Tabular foundation models such as TabPFN predict in context without parameter updates, but on wide spectra feature subsampling preserves channel coverage while losing joint visibility: in the five widest tasks, every channel was covered, yet only 4.4% of random channel pairs co-occurred in any forward pass. We present RamanPFN, a general-purpose spectral foundation framework for unified in-context inference through physics-guided spectral learning, which encodes the additive mixing of constituent spectra and the locality of vibrational bands. Global Compositional Unmixing decomposes distributed, multi-band mixture signatures into shared non-negative bases to couple covarying peaks across the full spectrum, while Local Vibrational Subspace Encoding extracts orthogonal modes within contiguous spectral neighborhoods to preserve peak morphology, intensity fluctuations, and peak shifts. Posterior marginalization over admissible unmixings unifies both scales into in-context prediction without updating the model. Across 74 public Raman datasets exceeding 330,000 spectra, RamanPFN outperformed 26 methods spanning chemometrics, spectral neural networks, deep tabular learners, and tabular foundation models on 129 regression targets, reducing backbone RMSE by 13.2%. We demonstrate across TabPFN-3, TabICLv2, and Kumo-Tabular that this advantage generalizes to both regression and classification tasks, reducing regression error by 12.3%-25.7% and multiclass log loss by 42.4%-63.5% to enable data-efficient quantitative analysis and sample identification.
Xingyu Pan, Huan Wang, Jinjia Guo +3
Beihang University, Beijing, China · Cleer Science, Beijing, China
A lightweight and reproducible denoising pipeline for high-throughput Raman spectroscopy is presented. The approach relies on a one-dimensional convolutional autoencoder trained using a Noise2Noise strategy, requiring neither external spectral libraries nor high signal-to-noise reference spectra for training. From a reduced training subset composed of repeated short-exposure acquisitions, the model learns to reconstruct Raman spectra while efficiently suppressing stochastic noise. The method is evaluated on a heterogeneous mineral sample, using both quantitative spectral fidelity metrics (RMSE, SNR, SSIM) and task-oriented criteria based on unsupervised K-means classification. Results demonstrate that integration times as short as 5 ms per spectrum, which are typically insufficient for reliable interpretation, yield denoised spectra with high fidelity to the reference data while preserving chemically coherent maps. This work provides a practical trade-off between spectral quality and acquisition speed, enabling fast, adaptable Raman workflows compatible with routine laboratory use. It also offers a transferable framework for other one-dimensional spectroscopic modalities.
David Martin-Calle, Cesar Alvarez Llamas, Vincent Motto- Ros +3
ILM,UCBL,CNRS · Universit´e Claude Bernard Lyon 1, CNRS, Institut Lumi`ere Mati`ere, F-69622 Villeurbanne, France · ILM,UCBL,CNRS,IUF +1
Rapid and reliable identification of pharmaceutical residues is important for safeguarding public health, ensuring food safety, and enabling practical Raman-based screening. In this study, we propose HyMLRaman, a hybrid Raman spectroscopy framework that combines deep spectral feature extraction, generative models, and classical machine-learning classifiers to identify six pharmaceutical compounds, including amoxicillin, chloramphenicol, ciprofloxacin, tetracycline, ibuprofen, and paracetamol. Raman spectra are converted into spectral images and encoded with several deep neural-network backbones, among which EfficientNet-B3 yields the most effective representation. The resulting 1536-dimensional embeddings are then used to train downstream classifiers, including SVM, KNN, logistic regression, random forest, XGBoost, and ANN, using stratified 10-fold cross-validation. The hybrid EfficientNet-B3--SVM configuration achieves the strongest baseline performance, reaching 96.31% accuracy and a macro-F1 score of 96.36%, outperforming the standalone CNN baseline. To address limited-data conditions, a generative model, a DDPM-based feature augmentation, is introduced in a PCA-reduced EfficientNet-B3 latent space. The low-data ablation results show that DDPM augmentation provides selective benefits, particularly for KNN with reduced training fractions, and that its effect remains classifier-dependent. Finally, an application-level Raman Pharmaceutical Analyzer demonstrates the feasibility of embedding the trained model into an interactive Raman analysis workflow. These results suggest that HyMLRaman provides a practical and interpretable route for rapid Raman-based pharmaceutical screening.
Quach Thi Thai Binh, Ton Nu Quynh Trang, Thang B. Phan +2
Faculty of Physics and Physics Engineering University of Science Ho Chi Minh City 700000 Viet Nam · Vietnam National University Ho Chi Minh City 700000 Viet Nam · Advanced Materials Technology Institute Vietnam National University Ho Chi Minh City (formerly Affiliated with Center for Innovative Materials and Architectures) Ho Chi Minh City 700000 Viet Nam +2