LLMs read compact spectra better—but a random forest still won
A Polish study translated visible and near-infrared spectra into human-readable features. The format beat raw numerical prompts across tested models, but the best LLM fell sharply in a harder scene and never surpassed a conventional classifier.
The short version
3 key points
- What changed
- The experiment used two scenes from one open hyperspectral blood dataset, with 300 spectra per class for training prototypes and 100 per class for testing across seven controlled-scene and six environmental-scene classes.
- Why it matters
- Scientists could inspect a shorter account of the spectral evidence passed into a language model, but forensic or clinical users would face serious consequences from confident misclassification. The present evidence supports supervised research tooling, not autonomous substance identification.
- What to watch
- Evaluation across instruments, sessions and laboratories; deterministic or repeated decoding; masked expert studies; calibration; other spectral modalities; and comparisons in workflows where readable evidence has measurable value beyond classification accuracy.
The useful step was feature extraction, not conversational wording
Researchers in Poland tested whether general-purpose language models can work with visible and near-infrared spectra after a deterministic encoder turns each 113-band signal into summary statistics and prominent peaks and valleys. Those features were supplied as natural language or structured JSON and compared with full spectra written as CSV, JSON or XML. The task was to distinguish blood from visually similar substances in two scenes from one open hyperspectral dataset. Each class contributed 300 training spectra and 100 test spectra: seven classes in a controlled fabric scene and six in a more complex scene with wood, metal, plastic and mixed backgrounds.[1]
Who it affects
Scientists could inspect a shorter account of the spectral evidence passed into a language model, but forensic or clinical users would face serious consequences from confident misclassification. The present evidence supports supervised research tooling, not autonomous substance identification.[1]
Keep in mind
One open VNIR dataset and two scenes; within-scene spatial splits rather than new physical samples; one query per spectrum; limited repeated-split evidence; no expert-usefulness or rationale-faithfulness study; no token or end-to-end latency measurement.
Source analysis · 1 linked source. Original source date: 17 October 2026.
Continue the story
Read next
Science & Research
Why do medical journals record AI use so differently?
A study of 97,916 medical articles found that AI transparency statements rose sharply, but publisher workflow explained much of the pattern. Missing declarations cannot be treated as proof that authors used no AI.
3 min · 1 source
Science & Research
Can a general-purpose LLM search crystal compositions?
In a closed computational benchmark, GPT-5.4 recovered 95.65% of 3,740 low-energy Elpasolite targets within 5,000 proposals. Iterative evaluator feedback drove the result; no new material was synthesised, and the approximate energy labels are not proof of stability or usefulness.
2 min · 2 sources
Read more The full report, methods and context
The useful step was feature extraction, not conversational wording
Researchers in Poland tested whether general-purpose language models can work with visible and near-infrared spectra after a deterministic encoder turns each 113-band signal into summary statistics and prominent peaks and valleys. Those features were supplied as natural language or structured JSON and compared with full spectra written as CSV, JSON or XML. The task was to distinguish blood from visually similar substances in two scenes from one open hyperspectral dataset. Each class contributed 300 training spectra and 100 test spectra: seven classes in a controlled fabric scene and six in a more complex scene with wood, metal, plastic and mixed backgrounds.[1]
Compact descriptions helped LLMs, but not enough to beat a specialist baseline
Across Llama-4-Scout, Qwen-14B and gpt-oss-20b, natural-language features improved multiclass balanced accuracy over raw CSV by 12.8 to 33.9 percentage points when malformed outputs counted as wrong. The paired confidence intervals excluded zero in all six model–scene comparisons. Yet the closer comparison—natural language against JSON containing the same statistics and extrema—was significant in only two of six cells after correction, with no consistent winner. That means extracting relevant spectral structure did most of the work; prose itself was not established as superior.
The best natural-language LLM result was gpt-oss-20b at 76.77% balanced accuracy in the controlled scene. In the environmental scene, Qwen-14B reached 52.30% and gpt-oss-20b 51.15%. A random forest trained on the raw spectra reached 99.86% and 88.33% respectively. Compact prompts were shorter—the natural-language representation averaged 4,534 characters across 700 saved controlled-scene prompts, 21% fewer than raw CSV—but token counts and end-to-end latency were not measured.[1]
The distinction that matters
What changed between the strongest comparisons
The study separates the value of extracting spectral features from the value of expressing them as prose.
Raw prompt
Send 113 numerical bands to an LLM
Long input and weaker classification
Compact prompt
Extract statistics, peaks and valleys
12.8–33.9 points above raw CSV
Specialist model
Train random forest on full spectra
99.86% and 88.33% balanced accuracy
Readable inputs are not the same as validated explanations
The method exposes which wavelengths, extrema and statistics entered the prompt, which could help scientists inspect evidence or connect a spectrum to a text-based search and tool workflow. It does not prove that an LLM's generated rationale faithfully describes its internal reasoning. The researchers did not run a blinded expert-usefulness study or a causal faithfulness test, and model-reported confidence was overconfident and weakly related to correctness. Each spectrum was queried once under sampling defaults, so decoding variability was not measured.
Training and test patches were spatially separated with guard zones, but all spectra came from the same two physical scenes and one dataset. The experiment did not test new samples, acquisition sessions, instruments, laboratories or spectral modalities such as Raman or infrared. For laboratory staff, the immediate implication is practical: a compact textual interface may be useful when spectral evidence must enter an LLM workflow, but it should not replace a conventional classifier when labelled data and predictive accuracy are the goal. Cross-session replication, expert trials and deterministic decoding would materially strengthen the case.[1]
Watch the background, then check the evidence

Illustrative photo · not a video frame
Google DeepMind · 1 min 52 sec · Background explainer
Protein folding explained
YouTube loads only when you choose; playback starts when you press play.
A short introduction to why a protein’s shape matters. It provides background for understanding what AI structure prediction contributes to biological research.
Evidence check: This is the developer’s explanation. Predicting a structure does not by itself establish a treatment’s safety or benefit for patients.
Published 2020-11-30. Source checked 14 October 2026. Check captions on the publisher’s video page.
Explore current researchEvidence check
One open VNIR dataset and two scenes; within-scene spatial splits rather than new physical samples; one query per spectrum; limited repeated-split evidence; no expert-usefulness or rationale-faithfulness study; no token or end-to-end latency measurement.
Reporting basis: Source analysis. Original source date: 17 October 2026.
Explore the full source and evidence record
What this means for people
- Scientists could inspect a shorter account of the spectral evidence passed into a language model, but forensic or clinical users would face serious consequences from confident misclassification. The present evidence supports supervised research tooling, not autonomous substance identification.
Global context
The study was conducted by Polish research institutes using an openly archived dataset and code. Spectral instruments, sample preparation and background materials vary across laboratories and applications, so transfer to environmental monitoring, medicine, food testing or forensics requires new physical samples and local validation.
What the evidence does not yet show
- One open VNIR dataset and two scenes; within-scene spatial splits rather than new physical samples; one query per spectrum; limited repeated-split evidence; no expert-usefulness or rationale-faithfulness study; no token or end-to-end latency measurement.
What to watch next
- Evaluation across instruments, sessions and laboratories; deterministic or repeated decoding; masked expert studies; calibration; other spectral modalities; and comparisons in workflows where readable evidence has measurable value beyond classification accuracy.
Living evidence record
Impact record IAI-0UNK933
Evidence stage
Studied
Confidence
Supported
Reporting basis
Source analysis
Independent or research support
Present
Record status
Monitoring
Last checked
17 October 2026
Source trail
1 direct source across 1 source type.
People impact
Documented in this record.
Uncertainty
Limits and next checks are explicit.
Stages describe the evidence available—not whether a technology is good or bad. See the public method.
Single-source reporting disclosure
This record analyses one direct source. It can establish what Scientific Reports published or reported, but it is not independent corroboration of every performance claim or predicted outcome. The confidence label will change only when broader evidence is added.
Evidence trail
Sources used for this report
Links checked 17 October 2026
Research question, topics and regions
Whether compact feature descriptions help general-purpose LLMs classify measured VNIR spectra
Topics: Spectroscopy · Large language models · Hyperspectral imaging · Scientific workflows · Model comparison
Regions: Poland · Europe · Global
This report is labelled source analysis. We summarise and analyse source material in our own words; company statements remain attributed claims until independently supported. Translated summaries preserve the meaning of the original source and link back to it. Read our editorial standards.
The Impact Brief · Free
Keep following the stories that matter to you.
Get our weekday briefing on what changed and why it matters. Choose your topics below.
Reader commentary
What does this mean where you are?
Tell us what you have seen at work, in your community or in everyday life. A question is welcome too. No account is needed; we review notes before publishing them.
Explore commentary across the portal →Published reader notes
0No published reader notes yet. You can start the evidence-led discussion above.
Prefer a private correction or response? Contact the newsroom.