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.
Sep 18, 2026·Quach Thi Thai Binh, Ton Nu Quynh Trang, Thang B. Phan +2Raman Spectroscopy
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