Manuscript Offprint
arXiv:2610.32505BAARC: Uncertainty-Driven Adaptive Partial Spectral Measurement to Full Reconstruction for Material Classification
ARTICLE INFO
Keywords:
Adaptive Sensing
Raman Spectroscopy
Uncertainty Quantification
Bayesian Deep Learning
Partial-to-Full Reconstruction
Spectral Classification
Abstract
Spectroscopic instruments with limited wavenumber coverage require accurate scan positioning or multiple measurements to complete the material analysis. This often requires prerequisite knowledge about the material under diagnosis to measure the spectral regions with distinguishing peaks. In our study, we simulate a Bayesian Adaptive Acquisition with Reconstruction-driven Classification (BAARC) framework for Raman spectral measurements, using masked training to learn spectral features that dynamically drive laser channel selection until the material is identified. We present a jointly trained two-level framework that takes progressive partial measurements of small wavenumber patches across the complete spectral range and, at each step, first attempts to reconstruct the full spectra until the model uncertainty is low. Secondly, material classification is performed at each reconstruction step until stoppage. Uncertainty quantification during reconstruction steps helps determine the measurement position of our next patch, while combining it with classification uncertainty determines measurement termination. By closing the loop between hardware acquisition and deep probabilistic modeling, the proposed system minimizes physical measurement steps while maintaining both spectral fidelity and diagnostic accuracy. Experimental evaluations demonstrate that our framework achieves high-accuracy sample identification using only a fraction of full-spectrum channels, offering a scalable solution for real-time, high-throughput spectroscopic instruments.
Despite these advancements, SRS microscopy faces a fundamental trade-off between spectral coverage, acquisition speed, and sample viability. Acquiring a full spectrum across a wide wavenumber range requires continuous laser tuning, prolonging total measurement times, increasing hardware complexity, and elevating the risk of phototoxicity in biological samples (Yu et al., 2024; Pence et al., 2021; Mohn et al., 2025; Lin et al., 2017). As a result, practical constraints often force experimentalists to acquire only partial or sparse spectral bands. Similar limitations arise across many spectroscopic modalities, such as hyperspectral imaging (Gao and Smith, 2014), near-infrared spectroscopy, and diffuse reflectance spectroscopy (Andries and Martin, 2013), where only a fraction of the available spectral information can be acquired within a given measurement budget.
Rather than relying on uniform, exhaustive scanning, recent advances in machine learning enable a transition toward information-driven, adaptive acquisition (Luo et al., 2022; Denzler and Brown, 2002; Denzler et al., 2003). While real-time uncertainty propagation and active sensing have been successfully applied in dynamic tracking and active vision tasks (Trummer et al., 2010, 2009), existing Raman spectroscopy methods predominantly rely on static acquisition grids. Instead of measuring every wavenumber directly, a physical system can dynamically select high-information spectral coordinates based on real-time feedback from prior measurements (Gehm and Kinast, 2008). In chemical and biological applications, reconstructing the full spectrum from partial observations is vital as it preserves physical interpretability, allowing domain experts to perform standard peak assignments and compare spectra against established reference libraries.
To the best of our knowledge, this work introduces the first uncertainty-based, closed-loop adaptive sensing approach that uses spectral reconstruction for target classification. We call this the Bayesian Adaptive Acquisition with Reconstruction-driven Classification (BAARC) framework. From partial scans of a spectrum, a completely reconstructed spectrum with its prediction uncertainty is obtained. It has been shown previously that sensing in a high-uncertainty region optimally increases information
*Corresponding author
adithya.ashok@uni-jena.de (A.A.C. Valapil)
Adithya Ashok C.V. et al.
Page 1 of 15 gain (Krause et al., 2008; Houlsby et al., 2011). Our autonomous measurement control follows this by measuring the next high uncertainty region at each measurement step, as shown in Figure 1. The reconstruction of each step is used for classification along with its uncertainty. Both uncertainties are used as stoppage conditions in our framework, automatically halting physical measurement the moment confidence in sample identification stabilizes. Bayesian uncertainty quantification offers a principled criterion for both guiding laser selection toward ambiguous spectral regions and determining when measurement can be safely halted.
We evaluate BAARC using experimentally acquired Raman benchmark datasets (RRUFF (Lafuente et al., 2015), COVID-19 (Yin et al., 2021), Marine Pathology (Yu et al., 2021), and Bacteria (Ho et al., 2019)) to simulate hardware-in-the-loop constrained acquisition. This setting provides a controlled environment for investigating adaptive sensing strategies using various baselines (Monte Carlo Dropout (MCD) (Gal and Ghahramani, 2016), Neural Process (NP) (Garnelo et al., 2018b,a), and Deep Gaussian Process (DGP) (Tran et al., 2015; Wilson et al., 2016)) while retaining realistic spectral complexity. Our results demonstrate that the proposed framework often requires only about 50% of the spectrum in effect to achieve the performance of a classifier trained on the full spectrum. The effectiveness of our adaptive sensing methodology is benchmarked against budget-matched random scans over the spectrum.
The key contributions of our framework include combining a dual-level reconstruction and classification model with uncertainty-based adaptive sensing and measurement termination for spectral acquisition techniques like SRS, where spectral coverage is limited. With BAARC, we effectively reduce the amount of spectral coverage and measurement time without compromising on the material classification performance. By shifting from uniform sampling to real-time, information-driven acquisition, this approach establishes a scalable paradigm for high-throughput spectroscopic measurement.
2. Theoretical Background
In this section, we discuss the theoretical motivation and major concepts behind our BAARC framework.
2.1. Sequential Sensing and Bayesian Experimental Design
Adaptive measurement of spectral channels is an intelligent data-acquisition technique in which a system dynamically updates its next measurement parameters (such as location, resolution, or integration time) based on real-time feedback from prior measurements. We formulate this adaptive spectral sampling process as a continuous-space Bayesian Optimal Experimental Design (BOED) (Lindley, 1956) task. BOED provides a mathematical framework to plan future measurements such that they yield the maximum possible information about an unknown system.
Let represent a full continuous spectrum over wavenumbers with coordinates , and let denote the subset of spectral channels physically measured up to step . The partially observed spectrum is represented by . At each step , the system seeks to select an unmeasured spectral coordinate that maximizes the expected information gain regarding the true underlying spectral manifold . The next measurement patch of width is measured along .
In exact Bayesian inference, updating the posterior distribution over unobserved coordinates after acquiring each new wavenumber requires evaluating intractable high-dimensional integrals. To enable real-time hardware execution, our framework uses approximation methods with neural architectures (Garnelo et al., 2018b; Gal and Ghahramani, 2016). For every input, these models output a predictive mean alongside point-wise reconstruction variance .
2.2. Selection of Spectral Patches
Finding the global optimal sequence of measured wavenumber patches to maximize information gain is a combinatorial search problem. Since neighboring and chemically related spectral channels are often strongly correlated, information obtained from one region of the spectrum can reduce uncertainty in other regions. Consequently, the utility of measuring a given spectral channel depends on the set of channels that have already been observed.
According to (Krause et al., 2008), maximizing information gain over a submodular set function via a sequential greedy choice provides a strict performance lower bound. It is shown that a greedy acquisition strategy can achieve at least of the information gain obtained by the optimal offline measurement sequence. Motivated by these results, we employ predictive reconstruction variance as a computationally efficient surrogate for information gain and select the next spectral coordinate according to
This acquisition strategy follows the principle of uncertainty reduction commonly used in Bayesian active learning and experimental design, where measurements are preferentially acquired in regions exhibiting high predictive variance (Cohn et al., 1996; Yang and Loog, 2018). Although predictive variance is not identical to information gain, it provides a practical approximation that prioritizes spectral locations where the model is expected to benefit most from additional observations.
2.3. Autonomous Scan Termination
While reconstruction variance guides spectral laser positioning, it also helps in determining when to halt physical acquisition. However, empirical evidence in our experiments shows that we primarily require a task-specific confidence evaluation. One way is to use standard predictive entropy, as it measures total uncertainty from measurement noise and epistemic uncertainty. Mathematically, the classification uncertainty can be framed as the Shannon Entropy (H) of the
Adithya Ashok C.V. et al.
Page 2 of 15 downstream class probability distribution , where y is the target class:
As the system actively measures highly informative parts of the spectrum, the entropy drops. The measurement loop can terminate the instant , where is an acceptable error tolerance.
To explicitly isolate epistemic uncertainty (the model's lack of knowledge), we incorporate mutual information adapted from the Bayesian Active Learning by Disagreement (BALD) (Houlsby et al., 2011) framework. The mutual information between the predicted class label y and the model parameters , given the observed channels, is expressed as:
where the first term is the total predictive entropy across parameter samples, and the second term represents the expected conditional entropy. Here we are subtracting the average of all individual entropies across model passes from the entropy of the averaged prediction. Thresholding this mutual information to a low value provides an information-theoretic indication that further laser probing will not significantly alter the classification decision, leading to autonomous scan termination.
3. Related Work
Sparse Acquisition. To mitigate the slow acquisition times inherent to full-spectrum scanning, classical techniques rely on sparse sampling to measure predefined fixed patches (Mobli et al., 2012). Raman spectra are concentrated in sparse peaks on smooth baselines, with strong correlations between neighboring wavenumbers. Sparse-acquisition methods exploit exactly this structure to recover full spectra from far fewer measurements. Several sparse sampling methods have been applied across various spectroscopic applications (Aledda et al., 2023; Lin et al., 2021; Zhang et al., 2020). Later, dynamic sparse sampling techniques substantially accelerated chemical imaging by acquiring spectral data from only a highly informative fraction of coordinates rather than raster-scanning the entire sample field of view (Zhang et al., 2018). However, this remained a supervised approach for Raman imaging. In the domain of SRS, Pence et al. (Pence et al., 2021) proposed a multi-window sparse spectral sampling approach, demonstrating that predefined, disjoint spectral windows could significantly reduce acquisition time while preserving chemical contrast. While these methods successfully compress data, they are fundamentally static and non-adaptive. Because the measurement protocol is fixed prior to the experiment, the system cannot react to the specific chemical signature being observed, potentially wasting measurement time on background noise or uninformative spectral regions.
Deep Spectral Masking and Reconstruction. With the rise of deep learning, masked modeling has become a powerful tool for spectral inference. Masked autoencoders (He et al., 2021) were previously applied for reconstructing missing spectral bands (Ren et al., 2025; Zhu et al., 2023). They apply self-supervised learning by randomly masking portions of spectral data and training a neural network to reconstruct the missing parts. Moreover, Wu et al. (Wu et al., 2024) developed the TeaNet pipeline, demonstrating that applying fixed, random masks to spectra during training forces the neural network to learn highly discriminative features, ultimately improving downstream classification. However, these methods operate purely in an offline setting. They utilize static, predetermined random masks as a data augmentation or pre-training strategy on already-acquired datasets, rather than dynamically driving physical measurements.
Adaptive Sensing in Spectroscopy. The concept of dynamically updating instrument parameters during acquisition was first proposed by Gehm and Kinast (Gehm and Kinast, 2008) to optimize spectral imaging, a concept recently operationalized by machine learning. For example, Mou et al. (Mou et al., 2022) applied Deep Reinforcement Learning (DRL) for hyperspectral band selection. However, such DRL approaches are typically task-specific, focusing strictly on classification accuracy while discarding the generative capacity to reconstruct the physical signal. Alternatively, Bayesian active learning has been applied to analytical chemistry, such as Nabika et al.'s (Nabika et al., 2024) framework for X-ray Photoelectron Spectroscopy (XPS), which focuses on explicit mathematical model selection for spectral curve-fitting. While Bayesian Active Learning by Disagreement (BALD) (Houlsby et al., 2011) is widely used in standard machine learning to select informative data points for labeling (Freytag et al., 2014), existing active spectroscopic methods generally remain confined to rigid parameter assumptions or single-task objectives.
In contrast to the aforementioned literature, our BAARC framework bridges the gap between physical signal recovery and task-specific classification through an online, hardware-in-the-loop active sensing architecture. Unlike static protocols (Candes and Wakin, 2008; Pence et al., 2021) or offline masking strategies (Zhu et al., 2023; Wu et al., 2024), our algorithm dynamically determines which physical wavenumber to measure next based on the real-time structural ambiguity of the sample. Furthermore, avoiding the limitations of single-task adaptive methods (Mou et al., 2022; Nabika et al., 2024), we deploy a dual-engine system, utilizing submodular spatial variance (Cohn et al., 1996; Yang and Loog, 2018) to actively guide signal acquisition, while simultaneously monitoring predictive entropy and epistemic mutual information to autonomously terminate the scan once confident classification is achieved.
4. Methods
Our methodology used in BAARC is illustrated in Figure 1. We input partial measurements or masked spectra to the
Adithya Ashok C.V. et al.
Page 3 of 15

Figure 1: BAARC measurement pipeline shows how partial measurement of spectral patches is guided using uncertainty-driven stoppage conditions. Starting with the central patch at the initial step s = 0, each progressive measurement step leads to full spectral reconstruction, which is used for effective classification. The uncertainty metrics are used for the stoppage condition and selecting the next measurement patch.
reconstruction head in our model. Using masked training, we inpaint and complete the spectrum. This enables the classifier head to evaluate the spectrum globally rather than requiring separate models for different measurement patches based on where the measurement is done. We implement a joint training procedure for the reconstruction and classification heads. Both heads output quantified uncertainties, which are subsequently used for adaptive measurement and stopping conditions as detailed below. As introduced in Section 2, we implement uncertainty using variance, entropy, and mutual information by modeling various techniques as discussed later in Subsection 4.3. The various hyperparameter sets in our adaptive sensing procedure and is discussed in Section 5.
4.1. Spectral Masking
To simulate partial spectral acquisition, we generate structured masks that remove continuous spectral regions rather than randomly masking individual and isolated wavenumber channels. For a given true spectrum , we define a binary mask , where is the unmasked or denotes a measured wavenumber and denotes a masked or missing region. The observed spectrum is given by:
With each measurement step , is added to the set of previously measured patches, forming .
4.2. Unified Reconstruction and Classification Model
Our model is trained on masked spectra to reconstruct a complete spectrum and subsequently classify it. This architecture is inspired by the TeaNET pipeline (Wu et al., 2024). Our model has a reconstruction head and a classification head . We observed that decoupling these models leads to overfitting toward a single class, when reconstructing spectra with fine class differences (see Appendix D). Therefore, we train the models jointly. We enforce reconstruction of the measured spectra as a masked overlay of observed spectra and predicted spectra:
A gated multi-layer perceptron (gMLP) (Liu et al., 2021) architecture serves as the backbone for the reconstruction head. This is then modified based on the chosen uncertainty measures as discussed later in the next subsection. Through experimentation, we find that normal linear layers are more effective than convolutional layers for the reconstruction task and therefore constitute the architecture selection. Our classifier head uses a set of sequential linear layers.
For k classes, the classification logits are derived as:
For optimization of our model, we use a combined loss function by weighting ( ) reconstruction loss (see Subsection 4.3 for specific model) and cross-entropy for classification:
4.3. Uncertainty quantification for active sensing
We quantify uncertainty separately for the reconstruction and classification processes. For reconstruction and uncertainty quantification, we compare three architectures: Monte Carlo Dropout (MCD) (Gal and Ghahramani, 2016), Neural Process (NP) (Garnelo et al., 2018b,a), and Deep Gaussian Process (DGP) (Tran et al., 2015; Wilson et al., 2016) as discussed below. For classification, we use only MCD, as it has low computational complexity and provides a fixed downstream architecture for easy comparison.
Adithya Ashok C.V. et al.
Page 4 of 15
Monte Carlo Dropout (MCD). MCD randomly deactivates neurons during training and testing, enforcing a distribution over neural network weights. By adding them as dropout layers, the model stops memorizing the data by creating a different random path through the network each time. We perform T stochastic forward passes by keeping the dropout layers active during inference, allowing variability in the results. The mean of these predictions serves as the reconstructed spectrum, and the epistemic uncertainty is captured by the predictive variance ( ) at each wavenumber i across the T passes. For classification, we compute the Shannon Entropy (H) (Shannon, 1948; Mishra and Ayyub, 2019) of the averaged predictive probability distribution. As discussed in Section 2, Mutual Information (MI) can additionally be utilized for the same, however, our experiments indicated that both measures follow a similar trend in this domain of work (see Appendix A). Therefore, we only use it optionally.
For MCD the reconstruction loss in Equation 7 is mean square error (MSE):
Deep Gaussian Process (DGP). A standard Gaussian Process (GP) defines a non-parametric prior over continuous spectra. However, calculating exact GP posterior uncertainty over a full spectrum of wavenumber channels requires inverting an covariance matrix, which is computationally expensive (). To overcome this bottleneck, our DGP framework integrates a mask-aware gMLP encoder with a Variational Gaussian Process (VGP) (Tran et al., 2015; Wilson et al., 2016). The gMLP encoder acts as a feature compressor, mapping high-dimensional sparse observations into a low-dimensional latent embedding. The VGP then operates over this latent space using a Matérn kernel, which models physical correlations between wavenumbers. To accelerate inference, the VGP uses a small, learnable set of landmark pseudo-measurements () called inducing points (). By evaluating covariance exclusively across these landmark points, the matrix inversion cost drops to .
The DGP parameters and inducing locations are trained jointly with a loss term in Equation 7 by maximizing the Variational Evidence Lower Bound (ELBO):
where f is the curve function for every spectrum and used in the log-likelihood is the variational distribution over all of these function values. The and are the prior and estimates over inducing variables, and denotes the Kullback-Leibler divergence. Despite inducing point optimizations, drawing posterior samples across iterative sampling steps still introduces noticeable computational overhead compared to purely neural architectures.
Neural Process (NP). To preserve the non-parametric flexibility of Gaussian Processes without incurring matrix inversion latency, we implement a Latent Neural Process framework (Garnelo et al., 2018b,a). NPs include Bayesian inference directly into a deep neural network, enabling single forward-pass uncertainty estimation. In NP terminology, the input spectrum is split into two subsets: the set of physically measured wavenumber coordinates and their corresponding intensities are context points (C), and the full set of spectral coordinates that the model must reconstruct are target points (T). A gMLP context encoder aggregates the context points C into a global latent representation . During training, a parallel target encoder observes the complete spectrum T to produce a target latent posterior . A lightweight neural decoder then takes the latent sample z alongside target wavenumber coordinates to output both the mean spectral intensity and a predictive variance in a single deterministic pass.
The NP is trained with a loss term in Equation 7 by minimizing the negative log-likelihood of target reconstruction combined with a latent KL-divergence penalty:
By forcing the context latent distribution to match the target distribution , the NP learns to infer full-spectrum details and spatially resolved variance directly from sparse physical measurements without requiring iterative posterior sampling during inference.
4.4. Simulated adaptive sensing strategy
Following the acquisition of an initial central spectral patch (simulating a narrow-band SRS measurement), the model reconstructs and classifies the spectrum. Acquisition continues recursively until both reconstruction and classification uncertainties fall below predefined thresholds ( and respectively).
High-variance regions indicate high reconstruction uncertainty and are prioritized for physical measurement. High entropy indicates that the currently measured patches lack sufficient discriminative features to confidently identify the class. To prevent premature termination due to model overconfidence, we enforce a minimum number of measurement steps ( ).
To start sensing, we select the central patch in the spectrum as our first patch at s = 0. At each acquisition step s, the greedy optimization logic proceeds as follows:
-
Identify the unmeasured coordinate with the maximum reconstruction variance: .
-
Update the mask m by integrating the newly acquired spectral patch of width p centered at the identified target .
-
Perform a forward pass to update the reconstructed spectrum and classification probabilities.
Adithya Ashok C.V. et al.
Page 5 of 15

(a)

(b)
Figure 2: Threshold selection for stoppage condition in adaptive sensing: prediction of 5 COVID-19 spectra are plotted with (a) Maximum variance ( ) and (b) Entropy (H) against percentage of spectrum measured over the steps. At each step, more spectral patches are added, progressively increasing the measured percentage. We see that the falsely predicted spectral classes (red) are corrected to the true class (green) with aggregation of steps. The last false classification is used to select the cutoff.
- Repeat steps 1-3 until the maximum reconstruction variance satisfies , the classification entropy satisfies , and the step count satisfies .
Once these criteria are met, the physical scan autonomously terminates, and the final sample class is predicted. The sensing procedure can be clearly observed from the measurement steps illustrated in Appendix F. The specific threshold values are empirically calibrated depending on the underlying dataset and model configuration (detailed in Section 5).
5. Evaluation Setup
In this section, we present our evaluation of the models across various datasets. This also includes certain hyperparameter selection for the models' various thresholding values across our pipeline.
Datasets. We use four publicly available Raman benchmark datasets RRUFF (Lafuente et al., 2015), COVID-19 (Yin et al., 2021), Marine Pathology (Yu et al., 2021), and Bacteria (Ho et al., 2019) for this study. They vary widely in the number of classes, data size, spectral range, and signal-to-noise ratio (SNR). A dataset summary is given in Appendix B.
Preprocessing and data preparation. Raw Raman spectra are corrected for baseline drift using asymmetric least-squares (ALS) (Guo et al., 2023). Training samples are generated with the random masking strategy described in Subsection 4.1: for each spectrum, we uniformly sample a mask covering 30-70% of the wavenumber range, so that the model learns to reconstruct chemical peaks in the unmeasured region and, implicitly, the spectral manifold that links one region of the spectrum to another.
Training. The unified reconstruction-classification model is trained until both classification accuracy and reconstruction loss decrease, with hyperparameters listed in Appendix C. For the Bacteria dataset, we additionally fine-tune the classification head for 250 epochs, following the protocol of (Ibtehaz et al., 2023; Lu et al., 2024). The loss weights in Equation 7 are set to and . Most hyperparameters (learning rate, batch size, kernel width, etc.) are shared across all dataset-model pairs. The few dataset-specific values are also listed in Appendix C.
Sensing protocol and uncertainty quantification. In SRS with multi-channel detectors, a region in the spectrum is detected, capturing the local shape. We simulate these wavenumber scans over a spectral range or patch width in our experiments. At every step, the model performs stochastic forward passes to estimate the MCD-based predictive uncertainty.
Stopping criteria. Sensing halts when the reconstruction uncertainty , the classification entropy , and the step count are satisfied.
Threshold Selection. Figure 2 illustrates the stopping-criterion selection for the COVID-19 / MCD pair, with an example showing the variation of five validation spectral sets. At each 4% measurement step, the model produces a prediction. We mark it green (correct) or red (incorrect). The last red prediction along the variance axis occurs at (Subfigure 2(a)), so we set , comfortably below this value to avoid false stops. For classification entropy (Subfigure 2(b)), the minimum achievable value is . We set , which is below this floor and ensures that the entropy criterion is not the binding constraint before . In practice, we select a larger
Adithya Ashok C.V. et al.
Page 6 of 15
Example 1: COVID-19 - True label = '0'

Example 2: COVID-19 - True label = '1'

Figure 3: Comparison of full, adaptive, and random scans for two selected examples from the COVID-19 dataset where we have three class labels (0, 1, and 2). Examples 1 and 2 belong to true labels 1 and 0, respectively. The measured regions for adaptive and random scans are shaded. The adaptive scan makes the correct prediction with fewer than 50% of the measured spectra, whereas the random scan fails in both examples.
validation set ( spectra) for each dataset-model pair and perform the same analysis to find the thresholds. The actual values are in Appendix C.
Using our model pipeline, we compare three modes of measurement simulations: (i) Full: We use 100% or complete spectra for classification, (ii) Adaptive: We follow our active learning strategy as mentioned above in this section and (iii) Random: We measure the next patch randomly, checking if the percentage of measured spectra is more than the average percentage of measured spectral length in the adaptive scenario. After this stoppage criterion is met, classification is done on the randomly sampled data. In this study, we compare our results with those of the respective full-spectrum mode, assuming the model is optimized for classification as well as reconstruction. The reconstructions over each measurement step are illustrated in Appendix F.
6. Results
The adaptive measurement paradigm is compared with the classification of full-spectrum and randomly measured spectra as shown in Figure 4. In Table 1, we detail the performances of MCD, NP, and DGP models for all four datasets.
We first examine two example measurements from the COVID-19 dataset using the MCD model, as shown in Figure 3. We can see that adaptive measurement predicts the correct label as the full prediction. In the two examples we show, the random prediction uses the same amount of data as the adaptive, but predicts the wrong class. The scanning mode also affects the reconstruction, as is evident qualitatively in the figures. However, when quantitatively analyzed, the adaptive and random scan had similar reconstruction errors and correlation values (see Appendix E). This is because fine differences in peaks are rarely captured by quantitative metrics, but these details become evident for fine-grained classification. Therefore, even though ours is a dual-objective model, we primarily focus on the downstream classification task rather than on optimal reconstruction. However, the quantitative analysis shows that NP achieves the most accurate reconstruction, with the highest correlation and lowest loss. This shows the possibility of an intermediate spectrum before classification, which the user can refer to during analysis.
For the Marine pathology dataset, we see that MCD requires only 43% of the full spectral scan to achieve accuracy over 98%. However, NP measures 10% more data and achieves the highest accuracy with the lowest performance deviation, while DGP measures 7% more data than MCD. From misclassifications in Table 1, it is clear from all three models that the random scan performs the worst, especially for MCD and DGP. From Figure 4, we see that the least amount of data is measured for this dataset, yet it achieves high adaptive performance across all models.
For the COVID-19 dataset, we see that our adaptive measurement technique using MCD achieves nearly the same accuracy as full-spectrum classification while measuring 58% of the spectrum. This shows the potential to achieve optimal classification by identifying relevant regions during spectral measurement. In our analysis, we found that the same spectra are misclassified by both the full and adaptive scanning techniques on this dataset. MCD is also at least 10% better in accuracy than NP and DGP. However, adaptive measurement is much better than random measurement overall.
The RRUFF dataset is the most divergent, with 1310 classes. Here, we see that our MCD model accurately classifies all points (over 6-fold CV) when the full spectrum is provided. In adaptive measurement, misclassifications occurred at a rate of only 15, with half of the spectra measured on average, while 1171 spectra were misclassified in random
Adithya Ashok C.V. et al.
Page 7 of 15
| Dataset: | Marine pathology (Total=570) | COVID-19 (Total=93) | RRUFF (Total=3554) | Bacteria (Total=3000) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | Measurement : | Full | Adaptive | Random | Full | Adaptive | Random | Full | Adaptive | Random | Full | Adaptive | Random |
| MCD | Misclassifications | ||||||||||||
| Measured (%) | |||||||||||||
| Accuracy (%) | |||||||||||||
| DGP | Misclassifications | ||||||||||||
| Measured (%) | |||||||||||||
| Accuracy (%) | |||||||||||||
| NP | Misclassifications | ||||||||||||
| Measured (%) | |||||||||||||
| Accuracy (%) | |||||||||||||
Table 1
Comparison of classification performance (6-fold CV) of adaptive sensing pipeline with full and random scans for four datasets: Marine pathology (Yu et al., 2021), COVID-19 (Yin et al., 2021), RRUFF (Lafuente et al., 2015), and Bacteria (Ho et al., 2019) with models MC Dropout, Neural Process, and Deep Gaussian Process. As metrics, we report the misclassifications out of the total, the percentage of data measured, and the classification accuracy for three runs with each dataset-model pair. Considering our dual objective of least measured with best accuracy for adaptive close to full scan, we bold the best performing model values.

Figure 4: Our dual objectives: accuracy and measured data(%) are plotted for each dataset to better understand the optimal scenario. The colors blue, orange, and grey represent full, adaptive, and random scan modes, respectively. The shapes represent the models MCD, NP, and DGP. The plot also shows deviations along both axes, as reported in Figure 4. The high-performing models appear towards the top-right corner with high accuracy and low data measured. For example, adaptive scan using MCD (orange circle) performs best across all datasets, as it is plotted towards the highest accuracy and lowest measured data.
measurement. A difference of less than 1% between the full-adaptive case and about 25% between the adaptive-random case (except NP) again justifies the strength of adaptive sensing and uncertainty-aware spectral inpainting, along with the classifier. It should be noted that NP and DGP measured 80% of the data to achieve this performance, while MCD achieved the highest performance using only 50% of the data.
The Bacteria dataset is the largest, with over 60000 spectra, and has 30 classes. All models are instructed to be fine-tuned with the given fine-tuning batch (Ibtehaz et al.,
Adithya Ashok C.V. et al.
Page 8 of 15
2023; Lu et al., 2024). The weakest performance is observed here. For the adaptive model, the classification accuracy of MCD is 66% with measuring 60% of the data. Note that NP performs better at 70% accuracy but requires 84% of the data, and the performance difference between adaptive and full scan for MCD and NP is only 4%.
7. Discussion
Overall, all three adaptive models across all four datasets demonstrate that adaptive sensing is far superior to random scanning and often approaches the performance of a full scan with significantly less data. The adaptive scan performance complements the full-scan classification accuracy, supporting our major assumption that adaptive sensing is well-suited only to scenarios where full-spectral classification is possible. Apart from their lowest performance, random scans are often observed to have a high standard deviation.
From Figure 4, we can see that MCD performs best across all datasets, appearing at the top-right corner of the plot. Moreover, when simplicity of implementation and low computation time are also taken into account, MCD clearly performs best among the baselines, followed by NP and DGP. It is also clear that MCD required significantly less data to achieve peak performance than the others and had comparatively coarse or relaxed adaptive hyperparameters. We also shortly explore the credibility of our intermediate reconstructed spectra from the model. This is relevant to a spectroscopist as it gives insight for further analysis rather than just a classification output. Here, we found that NP performed best.
One major limitation in our pipeline is that, during adaptive sensing, the model often does not measure the whole spectrum, leading to potential false predictions. However, in most cases, we see that false predictions occur even when the full-spectrum classifier also fails, despite having the full spectrum. To better understand these underlying classification failures, future work will extend our simulation experiments into real hardware environments. This transition will allow us to evaluate how real-time artifacts and distribution shifts impact measurement accuracy and classifier performance.
8. Conclusion
We introduced a closed-loop adaptive spectral measurement pipeline called BAARC, useful in scenarios with limited spectral coverage. It demonstrates that uncertainty-aware incremental measurement of spectral patches, along with stoppage conditioning, achieves classification performance close to that of full spectral acquisition while requiring only about 50% of the total bandwidth. Our adaptive strategy significantly outperforms random-sampling baselines, validating the effectiveness of our uncertainty-driven scans for identifying discriminative chemical features. This helps with data measurement systems, e.g., real-world SRS scanning, where high-intensity lasers can cause sample degradation in live-cell imaging or with sensitive marine samples when long exposure times are required. It minimizes the laser exposure by stopping the laser as soon as the classifier is confident, preserving the sample for longitudinal studies. The availability of high-quality, classifiable training data is critical to our method, and therefore, we use four different benchmark Raman spectral data sets for demonstration. Future work will explore applying this framework to different optimization criteria across applications such as other spectroscopy systems (Aledda et al., 2023; Zhang et al., 2018), atomic force microscopy (Zhang et al., 2026), and mass spectrometry (Hosogane et al., 2025) that demand adaptive sensing. By leveraging the inherent spectral redundancy of chemical manifolds, we can achieve "intelligent" spectrometers that optimize measurement effort based on the sample's complexity.
Code availability
The code will be made available later after publishing.
Acknowledgement
This study was funded by the European Union’s Horizon Europe research and innovation program for the project uCAIR with Grant Agreement No. 101135175.
References
Aledda, M., Kohler, A., Zimmermann, B., Patel, N., Shapaval, V., Tafintseva, V., 2023. Sparse wavelengths data in mid-infrared spectroscopy: Modelling approaches and channel sampling. Journal of Biophotonics 16, e202300049. doi:https://doi.org/10.1002/jbio.202300049.
Andries, E., Martin, S., 2013. Sparse methods in spectroscopy: An introduction, overview, and perspective. Applied Spectroscopy 67, 579–593. doi:10.1366/13-07021.
Candes, E., Wakin, M., 2008. An introduction to compressive sampling. IEEE Signal Processing Magazine 25, 21–30. doi:10.1109/msp.2007.914731.
Cheng, J.X., Xie, X.S., 2003. Coherent anti-stokes raman scattering microscopy:, instrumentation, theory, and applications. The Journal of Physical Chemistry B 108, 827–840. doi:10.1021/jp035693v.
Cohn, D.A., Ghahramani, Z., Jordan, M.I., 1996. Active learning with statistical models. Journal of Artificial Intelligence Research 4, 129–145. doi:10.1613/jair.295.
Denzler, Zobel, Niemann, 2003. Information theoretic focal length selection for real-time active 3d object tracking, in: Proceedings Ninth IEEE International Conference on Computer Vision, pp. 400–407 vol.1. doi:10.1109/ICCV.2003.1238372.
Denzler, J., Brown, C., 2002. Information theoretic sensor data selection for active object recognition and state estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence 24, 145–157. doi:10.1109/34.982896.
Freytag, A., Rodner, E., Denzler, J., 2014. Selecting Influential Examples: Active Learning with Expected Model Output Changes. Springer International Publishing. p. 562–577. doi:10.1007/978-3-319-10593-2_37.
Gal, Y., Ghahramani, Z., 2016. Dropout as a bayesian approximation: Representing model uncertainty in deep learning, in: Balcan, M.F., Weinberger, K.Q. (Eds.), Proceedings of The 33rd International Conference on Machine Learning, PMLR, New York, New York, USA. pp. 1050–1059. URL: https://proceedings.mlr.press/v48/gal16.html.
Gao, L., Smith, R.T., 2014. Optical hyperspectral imaging in microscopy and spectroscopy - a review of data acquisition. Journal of Biophotonics 8, 441–456. doi:10.1002/jbio.201400051.
Garnelo, M., Rosenbaum, D., Maddison, C., Ramalho, T., Saxton, D., Shanahan, M., Teh, Y.W., Rezende, D., Eslami, S.M.A., 2018a. Conditional
Adithya Ashok C.V. et al.
Page 9 of 15 neural processes, in: Dy, J., Krause, A. (Eds.), Proceedings of the 35th International Conference on Machine Learning, PMLR. pp. 1704–1713. URL: https://proceedings.mlr.press/v80/garnelo18a.html.
Garnelo, M., Schwarz, J., Rosenbaum, D., Viola, F., Rezende, D.J., Eslami, S.M.A., Teh, Y.W., 2018b. Neural processes. doi:10.48550/ARXIV.1807.01622.
Gehm, M.E., Kinast, J., 2008. Adaptive spectroscopy: towards adaptive spectral imaging, in: Rahman, Z.u., Reichenbach, S.E., Neifeld, M.A. (Eds.), Visual Information Processing XVII, SPIE. p. 69780I. doi:10.1117/12.779174.
Guo, Y., Jin, W., Wang, W., He, Y., Qiu, S., 2023. Baseline correction for raman spectra using a spectral estimation-based asymmetrically reweighted penalized least squares method. Applied Optics 62, 4766. doi:10.1364/ao.489478.
He, K., Chen, X., Xie, S., Li, Y., Dollár, P., Girshick, R., 2021. Masked autoencoders are scalable vision learners. doi:10.48550/ARXIV.2111.06377.
Ho, C.S., Jean, N., Hogan, C.A., Blackmon, L., Jeffrey, S.S., Holodniy, M., Banaei, N., Saleh, A.A., Ermon, S., Dionne, J., 2019. Rapid identification of pathogenic bacteria using raman spectroscopy and deep learning. Nature communications 10, 4927. doi:https://doi.org/10.1038/s41467-019-12898-9.
Hosogane, T., Santana, L.S., Eling, N., Moch, H., Bodenmiller, B., 2025. Compressed sensing expands the multiplexity of imaging mass cytometry. Nature Communications 16. doi:10.1038/s41467-025-66629-4.
Hou, P.Y., Ager, J., Mougin, J., Galerie, A., 2011. Limitations and advantages of raman spectroscopy for the determination of oxidation stresses. Oxidation of Metals 75, 229–245. doi:10.1007/s11085-011-9235-9.
Houlsby, N., Huszár, F., Ghahramani, Z., Lengyel, M., 2011. Bayesian active learning for classification and preference learning. ArXiv abs/1112.5745. doi:https://doi.org/10.48550/arXiv.1112.5745.
Ibtehaz, N., Chowdhury, M.E.H., Khandakar, A., Kiranyaz, S., Rahman, M.S., Zughaier, S.M., 2023. Ramannet: a generalized neural network architecture for raman spectrum analysis. Neural Computing and Applications doi:10.1007/s00521-023-08700-z.
Krafft, C., Schie, I.W., Meyer, T., Schmitt, M., Popp, J., 2016. Developments in spontaneous and coherent raman scattering microscopic imaging for biomedical applications. Chemical Society Reviews 45, 1819–1849. doi:10.1039/c5cs00564g.
Krause, A., Singh, A., Guestrin, C., 2008. Near-optimal sensor placements in gaussian processes: Theory, efficient algorithms and empirical studies. Journal of Machine Learning Research 9, 235–284. doi:https://doi.org/10.1145/1390681.1390689.
Lafuente, B., Downs, R.T., Yang, H., Stone, N., 2015. 1. The power of databases: The RRUFF project. DE GRUYTER. p. 1–30. doi:10.1515/9783110417104-003.
Lin, E., Bai, Z., Yuan, Y., Chen, Z., Yang, Y., Huang, Y., Chen, Z., 2021. A general reconstruction method for multidimensional sparse sampling nuclear magnetic resonance spectroscopy. The Journal of Physical Chemistry Letters 12, 10622–10630. doi:10.1021/acs.jpclett.1c03063.
Lin, H., Liao, C.S., Wang, P., Kong, N., Cheng, J.X., 2017. Spectroscopic stimulated raman scattering imaging of highly dynamic specimens through matrix completion. Light: Science & Applications 7, 17179–17179. doi:10.1038/lsa.2017.179.
Lindley, D.V., 1956. On a measure of the information provided by an experiment. The Annals of Mathematical Statistics 27, 986–1005. doi:10.1214/aoms/1177728069.
Liu, H., Dai, Z., So, D.R., Le, Q.V., 2021. Pay attention to mlps, in: Neural Information Processing Systems. doi:https://doi.org/10.48550/arXiv.2105.08050.
Lu, X.Y., Wang, C.Y., Tang, H., Qin, Y.F., Cui, L., Wang, X., Liu, G.K., Ren, B., 2024. Patch-based convolutional encoder: A deep learning algorithm for spectral classification balancing the local and global information. Analytical Chemistry doi:10.1021/acs.analchem.3c03889.
Luo, R., Popp, J., Bocklitz, T., 2022. Deep learning for raman spectroscopy: A review. Analytica 3, 287–301. doi:https://doi.org/10.3390/analytica3030020.
Maker, P.D., Terhune, R.W., 1965. Study of optical effects due to an induced polarization third order in the electric field strength. Physical Review 137, A801–A818. doi:10.1103/physrev.137.a801.
Mishra, S., Ayyub, B.M., 2019. Shannon entropy for quantifying uncertainty and risk in economic disparity. Risk Analysis 39, 2160–2181. doi:10.1111/risa.13313.
Mobli, M., Maciejewski, M.W., Schuyler, A.D., Stern, A.S., Hoch, J.C., 2012. Sparse sampling methods in multidimensional nmr. Phys. Chem. Chem. Phys. 14, 10835–10843. doi:10.1039/c2cp40174f.
Mohn, K.J., Dong, B., Mahapatra, S., Singh, I.K., Lomont, J.P., Wan, B., Zhang, C., 2025. Spontaneous or stimulated? investigating raman's detection limits in aqueous environments. The Journal of Physical Chemistry B 129, 9446–9456. doi:10.1021/acs.jpcb.5c04308.
Mou, L., Saha, S., Hua, Y., Bovolo, F., Bruzzone, L., Zhu, X.X., 2022. Deep reinforcement learning for band selection in hyperspectral image classification. IEEE Transactions on Geoscience and Remote Sensing 60, 1–14. doi:10.1109/TGRS.2021.3067096.
Müller, M., Zumbusch, A., 2007. Coherent anti-stokes raman scattering microscopy. Wiley 8, 2156–2170. doi:10.1002/cphc.200700202.
Nabika, T., Nagata, K., Mizumaki, M., Katakami, S., Okada, M., 2024. Bayesian active learning with model selection for spectral experiments. Scientific Reports 14. doi:10.1038/s41598-024-54329-w.
Pence, I.J., Kuzma, B.A., Brinkmann, M., Hellwig, T., Evans, C.L., 2021. Multi-window sparse spectral sampling stimulated raman scattering microscopy. Biomedical Optics Express 12, 6095. doi:10.1364/boe.432177.
Polli, D., Kumar, V., Valensise, C.M., Marangoni, M., Cerullo, G., 2018. Broadband Coherent Raman Scattering Microscopy. Laser & Photonics Reviews 12, 1800020. doi:10.1002/lpor.201800020.
Raman, C.V., 1928a. A change of wave-length in light scattering. Nature 121, 619–619. doi:https://doi.org/10.1038/121619b0.
Raman, C.V., 1928b. A new radiation. Indian Journal of physics 2. doi:10.1007/BF03052651.
Ranjan, R.R., Sirleto, L., 2024. Stimulated raman scattering microscopy: A review. Photonics 11, 489. doi:https://doi.org/10.3390/photonics11060489.
Ren, P., Zhou, R.G., Li, Y., 2025. A self-supervised learning method for raman spectroscopy based on masked autoencoders. Expert Systems with Applications 292, 128576. doi:https://doi.org/10.1016/j.eswa.2025.128576.
Shannon, C.E., 1948. A mathematical theory of communication. The Bell system technical journal 27, 379–423. doi:https://doi.org/10.1002/j.1538-7305.1948.tb01338.x.
Shen, Y.R., 1975. Stimulated Raman Scattering. Springer Berlin Heidelberg. p. 275–328. doi:10.1007/978-3-540-37568-5_7.
Tran, D., Ranganath, R., Blei, D.M., 2015. The variational gaussian process. arXiv: Machine Learning doi:https://doi.org/10.48550/arXiv.1511.06499.
Trummer, M., Munkelt, C., Denzler, J., 2009. Extending GKLT Tracking—Feature Tracking for Controlled Environments with Integrated Uncertainty Estimation. Springer Berlin Heidelberg. p. 460–469. doi:10.1007/978-3-642-02230-2_47.
Trummer, M., Munkelt, C., Denzler, J., 2010. Online next-best-view planning for accuracy optimization using an extended e-criterion, in: 2010 20th International Conference on Pattern Recognition, pp. 1642–1645. doi:10.1109/ICPR.2010.406.
Wilson, A.G., Hu, Z., Salakhutdinov, R., Xing, E.P., 2016. Deep kernel learning, in: Gretton, A., Robert, C.C. (Eds.), Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, PMLR, Cadiz, Spain. pp. 370–378. URL: https://proceedings.mlr.press/v51/wilson16.html.
Wu, Y., Liu, J., Wang, Y., Gibson, S., Osadchy, M., Fang, Y., 2024. Reconstructing randomly masked spectra helps dnns identify discriminant wavenumbers. IEEE Transactions on Pattern Analysis and Machine Intelligence 46, 3845–3861. doi:10.1109/tpami.2023.3347617.
Yang, Y., Loog, M., 2018. A variance maximization criterion for active learning. Pattern Recognition 78, 358–370. doi:10.1016/j.patcog.2018.01.017.
Adithya Ashok C.V. et al.
Page 10 of 15
Yin, G., Li, L., Lu, S., Yin, Y., Su, Y., Zeng, Y., Luo, M., Ma, M., Zhou, H., Orlandini, L., Yao, D., Liu, G., Lang, J., 2021. An efficient primary screening of covid-19 by serum raman spectroscopy. Journal of Raman Spectroscopy 52, 949–958. doi:10.1002/jrs.6080.
Yu, Q., Yao, Z., Zhou, J., Yu, W., Zhuang, C., Qi, Y., Xiong, H., 2024. Transient stimulated raman scattering spectroscopy and imaging. Light Sci. Appl. 13, 70. doi:https://doi.org/10.1038/s41377-024-01412-6.
Yu, S., Li, X., Lu, W., Li, H., Fu, Y.V., Liu, F., 2021. Analysis of raman spectra by using deep learning methods in the identification of marine pathogens. Analytical Chemistry 93, 11089–11098. doi:10.1021/acs.analchem.1c00431.
Zhang, S., Song, Z., Godaliyadda, G.M.D.P., Ye, D.H., Chowdhury, A.U., Sengupta, A., Buzzard, G.T., Bouman, C.A., Simpson, G.J., 2018. Dynamic sparse sampling for confocal raman microscopy. Analytical Chemistry 90, 4461–4469. doi:10.1021/acs.analchem.7b04749.
Zhang, W., Hao, L., He, X., 2026. Real-time adaptive scanning for atomic force microscopy using trigger-enhanced trajectory control. Measurement 264, 120347. doi:10.1016/j.measurement.2026.120347.
Zhang, Y., Zhang, Z., Zhao, Y., Dian, R., Cheng, Y., Qin, X., Wang, H., 2020. Adaptive compressed sensing of raman spectroscopic profiling data for discriminative tasks. Talanta 211, 120681. doi:10.1016/j.talanta.2019.120681.
Zhu, L., Wu, J., Biao, W., Liao, Y., Gu, D., 2023. Spectralmae: Spectral masked autoencoder for hyperspectral remote sensing image reconstruction. Sensors 23, 3728. doi:10.3390/s23073728.
Adithya Ashok C.V. et al.
Page 11 of 15
Supplementary Material
A. Mutual Information as classification uncertainty
In Fig. 2 for threshold selection, we show how Entropy, as a measure of classification uncertainty, changes for the COVID-19 dataset. We can identify a similar change when using MI, as shown in Fig. A.1, compared with Subfigure 2(b). However, the threshold values are different.

Figure A.1: Change in MI with percentage of measured spectrum for 5 COVID-19 spectra. This plot connects to the threshold selection process as discussed in Appendix 5.
B. Dataset Summary
In Table B.1 we show summary of dataset used in our experiments.
| Dataset | RRUFF | COVID-19 | Marine Pathology | Bacteria |
|---|---|---|---|---|
| Wavenumber range () | 76 - 1403 | 400 - 2112 | 600 - 1800 | 382-1800 |
| No. of class | 1310 | 3 | 9 | 30 |
| Dimensionality | 1328 | 900 | 1200 | 1000 |
| Training/Tuning data | 7644 | 297 | 455 | 54000/27000 |
| Testing data | 3554 | 93 | 570 | 3000 |
| Application | Minerals Identification | Disease Diagnosis | Disease Diagnosis | Disease Diagnosis |
Table B.1: Summary of datasets.
C. Hyperparameters and Thresholds
The below Table C.1 shows hyperparameters ( Epochs, Learning rate) and threshold values ( Reconstruction threshold, Classification threshold) for every dataset-model setting.
| Dataset | RRUFF | COVID-19 | Marine Pathology | Bacteria |
|---|---|---|---|---|
| MCD | ||||
| DGP | ||||
| NP |
Table C.1: All hyperparameter settings and threshold values for each dataset-model pair are listed, where changes from default values as discussed in the main paper can be noted.
D. Different models
Here, we show why combined training of reconstruction and classification models is necessary and show the advantage of adaptive sensing. To demonstrate this, we use a jointly trained TeaNet model and a separately trained model as in Table D.1. We use a much more aggressive random fixed mask of 80% on the spectra to demonstrate the drawback. We clearly see that, even though the reconstruction performance of the jointly trained model is lower due to its joint optimization criterion, its classification performance is consistent. The main insight is obtained from the classification performance on the COVID-19 dataset. Unlike other datasets, this dataset shows fine changes in specific regions of the spectra (Yin et al., 2021). With the masking, the model's predictions always converge to a single class. This overfitting behavior of the reconstruction model affects the classification done on it. This is evident from COVID-19 results. It has 3 classes in total, with test set class distribution of 30, 31, and 32 for classes 0 (healthy), 1 (suspected), and 2 (COVID-19), respectively. We see that class 1 is always predicted, resulting in 33.33% accuracy across all runs. To avoid this, we use joint training. In adaptive sensing, this behavior is rarely observed because the sensing methodology prioritizes measuring such contrasting regions.
| Models | RRUFF | COVID-19 | Marine Pathology |
|---|---|---|---|
| Joint Rec MSE | |||
| Separate Rec MSE | |||
| Joint Clf Accuracy | |||
| Separate Clf Accuracy |
Table D.1: Comparison of joint training vs separately trained model.
E. Reconstruction performance
In Table E.1, we quantitatively compare the reconstruction of adaptive and random models across various models, using MSE for error and correlation for similarity between the reconstruction and the ground truth. We see that adaptive and random perform similarly across most models, which contradicts the qualitative analysis focusing on fine-grained classification. This is also evident from our classification analysis. However, from the Table E.1 we can gather that NP has the highest performance over all datasets and DGP has the least reconstruction performance.
| Dataset: | Marine pathology | COVID-19 | RRUFF | Bacteria | |||||
|---|---|---|---|---|---|---|---|---|---|
| Model | Measurement: | Adaptive | Random | Adaptive | Random | Adaptive | Random | Adaptive | Random |
| MCD | MSE | ||||||||
| Corr | |||||||||
| DGP | MSE | ||||||||
| Corr | |||||||||
| NP | MSE | ||||||||
| Corr | |||||||||
Table E.1: Reconstruction performance of adaptive and random sensing pipeline for four datasets: Marine pathology (Yu et al., 2021), COVID-19 (Yin et al., 2021), RRUFF (Lafuente et al., 2015), and Bacteria (Ho et al., 2019) with models MC Dropout, Neural Process, and Deep Gaussian Process. We compare the MSE and the correlation between the intermediate reconstructed spectra and the complete actual spectra.
Adithya Ashok C.V. et al.
Page 13 of 15
F. Reconstruction steps
Fig. F.1 to Fig. F.4 show how reconstruction changes with measurement steps for the Marine Pathology dataset. Here, we show some intermediate steps before making a final decision, along with the reconstruction uncertainty as variance across the spectra. The region with the highest variance observed in one step will be measured next. The model barely predicts the correct peaks in step one, and this changes by the end of seven steps. Later, we refine our reconstructions with additional measurement steps. We can also see the uncertainty values changing at each step. One major finding from this example is that at step seven, our model already predicts class 0, the true class. However, we see that the model is confused at step 11, which is later corrected in step 12 as the uncertainty (Entropy) drops significantly.
Step 1 - DataUsed: 4.0%, Pred: Marine Class 3, Entropy: 0.485, MI: 0.0661, Max.Var: 0.0084

Figure F.1: Measurement step 1
Step 7 - DataUsed: 21.0%, Pred: Marine Class 5, Entropy: 0.083, MI: 0.0105, Max.Var: 0.0029

Figure F.2: Measurement step 7
Adithya Ashok C.V. et al.
Page 14 of 15
Step 11 - DataUsed: 34.6%, Pred: Marine Class 2, Entropy: 0.763, MI: 0.1869, Max.Var: 0.0017

Figure F.3: Measurement step 11
Step 12 - DataUsed: 36.7%, Pred: Marine Class 0, Entropy: 0.032, MI: 0.0042, Max.Var: 0.0022

Figure F.4: Measurement step 12
Adithya Ashok C.V. et al.
Page 15 of 15