SpecLLM: LLM-based VNIR spectral interpretation
Michał Romaszewski, Anna Strzoda, Marzena Halama, Przemysław Głomb, Piotr Masłowski
Key points
From the paper's conclusion- We evaluate prototype-based substance classification in two complementary scenes from an open-access VNIR hyperspectral blood dataset.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Local subspace encoding for spectral prediction: from TabPFN to operator-adaptive calibrationarXiv · 2026
- Do Multimodal Models Decide Consistently on Equivalent Optical Spectra?arXiv · 2026
- j-IR-vis: Vision model for infrared spectroscopy embeddings.The Journal of chemical physics · 2026
- Transformer Models in Vibrational Spectroscopy: A Review.Molecules (Basel, Switzerland) · 2026
- LLMs in the Laboratory: Benchmarking Conversational AI for Multivariate Analysis of NMR Spectroscopic Data.Analytical chemistry · 2026
- Wavenumber-Aware Deep Learning for Robust Analysis of Raman SpectraarXiv · 2026