Raman and infrared spectra record how chemical bonds in a sample vibrate. Each bond type, such as a lipid carbonyl or a protein backbone amide, produces bands at characteristic frequencies. Biologists increasingly use single-cell Raman spectra to tell strains, growth phases, or drug responses apart. The interpretation step lags behind the classification step: once a classifier separates two conditions, analysts pick the most important wavenumbers and look them up in band-assignment tables ("1740 cm⁻¹, lipid ester"). Genomics faced the same problem with long lists of differentially expressed genes. It answered with enrichment analysis, which asks whether genes sharing a known biological role are over-represented among the changed ones. This proposal brings that question to spectra: are the bands belonging to a chemical class (lipids, nucleic acids, carotenoids, carbohydrates) jointly shifted between two conditions, more than chance and more than other classes?
The obvious transplant is to run a hypergeometric test (the standard gene-list over-representation test) on "significant wavenumbers". We argue it is statistically wrong for spectra. Neighbouring wavenumbers are strongly correlated, a single broad band spans dozens of channels, bands from different classes overlap, and band positions move with hydrogen bonding, protonation, or ion coordination. Each of these breaks the independence and fixed-membership assumptions behind gene-set tests. The core claim is that a set test built for these properties gives calibrated, class-level conclusions where naive transplanted over-representation analysis produces inflated false positives. Such a test operates on deconvolved peaks rather than channels, uses correlation-aware p-value combination, and lets each set member's position shift within a tolerance.
What exists, and what is missing
Two lines of spectroscopy work supply the building blocks, and both stop short of set-level inference. Condensing Raman spectrum for single-cell phenotype analysis (rDisc) condenses spectra with more than 1,000 channels into fewer than 20 physically meaningful peaks while keeping 0.95 classification accuracy. It feeds those peaks only to classifiers. Interpretable Classification of Bacterial Raman Spectra With Knockoff Wavelets controls false discoveries at 10% when selecting individual wavelet features and relates them by hand to carotenoids and lipids in S. aureus. It never tests a class of bands as a unit. Probabilistic Signal Estimation for Vibrational Spectroscopy with a Flexible Non-Stationary Gaussian Process Baseline Model supplies the deconvolution method we reuse. It fits peaks jointly with a background curve that cannot "eat" them and returns posterior uncertainty over peak heights and positions. That uncertainty is what a downstream test needs.
On the enrichment side, LIPEA: Lipid Pathway Enrichment Analysis shows that over-representation analysis transfers to non-gene chemistry, but only for named mass-spectrometry species with database identifiers. Spectral bands have none. Integrative pathway enrichment analysis of multivariate omics data (ActivePathways) supplies the second reused method: Brown's extension of Fisher's p-value combination, which accounts for correlation among combined tests. Its use there is across omic layers for gene identifiers. We apply it within a spectral set whose members are correlated bands. Enrichment Map motivates one design concern: overlapping sets produce redundant hits. Overlapping bands make this worse in spectra than in genomics.
The constraining evidence comes from Towards high-accuracy bacterial taxonomy identification using phenotypic single-cell Raman spectroscopy data. It shows that growth phase shifts spectra enough to change classification accuracy by up to 3%. Any enrichment claim about strain or treatment must therefore condition on phase, or it will mostly rediscover growth state.
Core Claim
A band-set test with three properties will keep its false-positive rate at the nominal level on null contrasts and retain power on planted and known-composition contrasts. First, it works on deconvolved peak heights with their posterior uncertainty. Second, it combines member-band evidence with Brown's correlation correction, using the empirical covariance of peak heights. Third, it treats set membership as a position window with a learned shift tolerance rather than a fixed channel. Naive hypergeometric analysis over channels will not hold its false-positive rate. Simpler band-area t-tests will lose power on classes whose signal is spread thinly across several weak bands.
Research Program
The first deliverable is a small, versioned functional-group ontology. Each chemical class is a set of band windows assembled from standard assignment conventions, for example lipids at ester C=O near 1740, CH₂ deformation near 1440 and CH stretches near 2850 cm⁻¹. Each window carries a centre, a tolerance, and a provenance note. Overlapping windows are recorded explicitly rather than hidden.
The second deliverable is the test. Peaks are fitted per spectrum with the non-stationary Gaussian process deconvolution. Each peak then receives a per-condition contrast statistic that incorporates posterior variance. Within a class, member p-values are combined. With $p_j$ the p-value of member band $j$ in a set of size $m$, the statistic $T = -2\sum_j \log p_j$ is referred to a scaled chi-square whose scale and degrees of freedom come from the covariance of the $-2\log p_j$ terms. That covariance is estimated from peak-height correlations across cells. This is Brown's method, and without the correction $T$ would be compared to $\chi^2_{2m}$ as if bands were independent.
We report the result in two forms. The self-contained test asks whether this class changed at all. The competitive test asks whether it changed more than random band sets of matched size and position spread, calibrated by permuting condition labels at the level of biological replicate rather than individual cell. Shift tolerance is handled by matching each fitted peak to the nearest window centre, with a matching cost. A separate "shift" statistic tests whether a class's band positions moved, as distinct from its heights changing. This makes coordination and hydrogen-bonding changes testable at the class level. Overlapping-class redundancy is reduced by conditional testing: a class is reported as independently enriched only if it remains significant after removing bands shared with a more significant class.
Baselines
The naive reference point is direct transplanted over-representation analysis. It runs a per-channel Wilcoxon test with Benjamini–Hochberg correction, calls significant channels the "study set", treats all channels as background, and applies the hypergeometric test to each class's channels. Of all the options, this is the one a practitioner would most plausibly try first, and the proposal predicts it fails on calibration. It runs on identical preprocessed spectra.
The strongest targeted competitor is the band-area test. It integrates intensity over each class's windows after the same preprocessing, sums the integrals into one class score, and applies a t-test or mixed model with replicate as a random effect. This is what an expert spectroscopist would do, and for well-separated single-band classes it may be optimal.
The strongest existing selection method is knockoff-wavelet selection from the knockoff paper at its published 10% false-discovery level. Selected features are mapped to classes, and the class is counted as enriched if its selected-feature share exceeds its background share. On its own task that pipeline reports 5.1% test error on the 30-class isolate benchmark. No reported result was found on Lacuna for any spectral enrichment method's false-positive rate or power, so calibration and power are established fresh here for every method. The original rDisc peak list combined with naive over-representation analysis is a further baseline. It isolates whether physically discretized peaks alone fix the problem.
Two ablations isolate the key ingredients. The first removes Brown's correction and assumes independent bands. The second removes shift tolerance and uses fixed windows. Every method gets the same data splits, the same replicate-level permutation budget of 10,000 permutations, and the same preprocessing. The one exception is that the band-area baseline is also run with airPLS to give it its customary pipeline. Beating a baseline means holding the false-positive rate at or below the nominal 5% where it does not, or having matched calibration and higher power at fixed planted amplitude.
Why not just…?
Why not just integrate band areas and t-test each class? This is the real threat, and the experiments are designed to settle it. For a class dominated by one strong isolated band, we expect band-area testing to match our method. Our advantage should appear in three situations: classes whose signal is split across several weak bands, overlapping classes where summed areas double-count shared intensity, and shifted bands that drift out of fixed integration windows. If band-area testing matches our power in the spike-in experiments across all three regimes, the contribution shrinks to the calibration study and the ontology, and we will say so.
Why not just train a classifier and read off important features? The taxonomy benchmark paper shows that linear classifiers already reach 96.1% accuracy, and knockoffs give feature-level error control. Neither yields a calibrated statement about a class of bonds. Feature importance answers "which channels help prediction," which is not the same question as "did lipids change," because correlated channels split importance arbitrarily. The knockoff-to-class mapping baseline tests this directly.
Why not just use mass spectrometry with LIPEA? For identified metabolites that would be the better tool. Mass spectrometry is destructive, however, does not work on living single cells at Raman acquisition speeds of 0.01–30 s, and cannot see bond-environment shifts such as the protonation studied in Spectroscopic Studies on the Protonation to Compounds Containing Groups or the ion coordination in Understanding of the ion transport in blended TPU‑PEO polymer electrolytes. The two approaches are complementary, and we do not claim replacement.
Why not just use PCA loadings? rDisc's authors note that principal components mix positive and negative contributions across unrelated wavenumbers, so loadings do not correspond to classes. PCA also underperformed supervised reduction on the taxonomy benchmark. We do not pursue it as a main baseline.
Proposed Experiments
Calibration comes first, using the 17,208-spectrum, 36-strain, four-phase single-cell benchmark from the taxonomy paper. Within a single strain and phase, cells are randomly split into pseudo-conditions while respecting replicate structure where available, which creates true null contrasts. For each method we report the rate of false class calls across all classes. The decisive check is whether naive over-representation analysis and the independence ablation exceed 5% while the full method does not.
Power is measured by planting signal into these same null splits. Pseudo-Voigt peaks, using the lineshape from the Gaussian process paper, are added at one class's band positions with graded amplitude, a random position jitter, and either one-band or spread-across-bands allocation. Power curves and false calls on non-planted overlapping classes then compare the band-area, knockoff-mapping, and fixed-window variants.
Known composition is tested on the Corn NIR benchmark, which has 80 spectra with measured moisture, oil, protein, and starch. The near-infrared sets are combination and overtone windows for O–H, C–H, and N–H. Contrasting top and bottom terciles of each constituent should flag the matching class. Before interpreting off-target hits, we check whether the constituents are themselves correlated across samples. The same Gaussian process preprocessing that reported a starch RMSEP of 0.111 against 0.169 for airPLS confirms that our deconvolution reproduces published preprocessing quality.
Two biological consistency checks follow. On the 60,000-spectrum dried-bacteria benchmark, the methicillin-resistant versus susceptible S. aureus contrast tests whether the method independently flags the carotenoid and lipid classes that the knockoff paper reached by manual inspection. On the growth-phase labels, exponential versus stationary contrasts within each strain test whether enriched classes are consistent across strains. A strain-specific enriched class that survives conditioning on phase is reported as a candidate finding, not a validated one. Because the ontology is built from the same assignment conventions used to interpret results, we will also report how robust conclusions are to perturbing window centres and tolerances. A finding that disappears under a 10 cm⁻¹ perturbation is not a finding.
References
- Condensing Raman spectrum for single-cell phenotype analysis
- Interpretable Classification of Bacterial Raman Spectra with Knockoff Wavelets
- Probabilistic signal estimation for vibrational spectroscopy with a flexible non-stationary Gaussian process baseline model
- LIPEA: Lipid Pathway Enrichment Analysis
- Integrative pathway enrichment analysis of multivariate omics data
- Enrichment Map: A Network-Based Method for Gene-Set Enrichment Visualization and Interpretation
- Towards high-accuracy bacterial taxonomy identification using phenotypic single-cell Raman spectroscopy data
- Spectroscopic Studies on the Protonation to Compounds Containing Groups
- Correction to: Understanding of the ion transport in blended TPU‑PEO polymer electrolytes