Visible and near-infrared (VNIR) spectroscopy identifies materials from characteristic spectral bands, and spectroscopists interpret spectra by features such as peak positions and intensities. Recent machine-learning and foundation models for hyperspectral data are highly effective but return numerical outputs or latent representations rather than such feature-level descriptions. Meanwhile, LLM-based spectral approaches have mostly provided raw numerical sequences. We present a method for making spectroscopic data accessible to large language models (LLMs) through compact, feature-based representations. Instead of supplying full spectra as comma-separated values (CSV), JavaScript Object Notation (JSON), or extensible markup language (XML), the proposed approach extracts summary statistics and discriminative extrema. It serialises them as either natural language or structured JSON. We evaluate prototype-based substance classification in two complementary scenes from an open-access VNIR hyperspectral blood dataset. For the selected models, compact feature representations were substantially more effective than raw numerical encodings, but less effective than a Random Forest operating on raw spectra. The natural-language format provides a human-readable, inspectable serialisation of compact spectral evidence and reduces prompt length compared with full-spectrum encodings. We also compared natural language and JSON feature representations and found them broadly comparable.
No takes yet. Share an insight, caveat, or question.
Romaszewski et al. (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: