Continue a study
Trace a fork to its starting step, recover the stated reason for a choice, and see which question is still open. Failed and blocked attempts stay in the history.
Walkthrough decisionNo decision selected
Human-in-the-loop chemometrics
Design spectral experiments with an LLM in plain language. The harness checks the validation rules, and you decide what to try next from the recorded evidence.
Raw PLS 0.01299 · Smoothed PLS 0.01301 RMSECV
Researcher's question“Can we predict moisture from a corn sample’s near-infrared spectrum? How well will the model do on samples it has never seen?”
One corn sample can yield several scans. To evaluate prediction on new samples, all scans from a given sample must fall on the same side of each training–validation split. If the sample appears on both sides, the model has already seen it during training and the error can look too low.
See how the harness blocks a fit →The researcher asks whether smoothing helps. The LLM proposes raw spectra as the baseline and specifies the treatments and validation settings. Once the researcher authorizes execution, the agent submits the protocol to the harness.
Following your choice, the LLM proposes SNV + PLS on the same folds and retains the raw baseline. The three recorded errors belong to the earlier comparison.
The harness checks the actual sample IDs on both sides of each fold. If an ID appears in both training and validation, it blocks the fit and returns the conflict to the agent.
Multiplicative scatter correction (MSC) needs a reference spectrum. In each fold, it must be estimated from the training samples and then applied to the validation spectra. A reference estimated from all samples blocks the fit.
The engine computes the cross-validation errors. The LLM agent explains how the methods compared. In the corn study, smoothing barely changed the error. The researcher can keep the baseline, inspect the folds or branch from an earlier step. These errors come from development cross-validation. Performance on a new batch needs its own evaluation.
Review the three recorded errors, then choose a next step.
View the recorded errors ↑Scientific rules · Corn moisture study
Does smoothing improve corn moisture prediction? The LLM proposes comparing raw and smoothed spectra on the same folds. First, inspect a split the harness would reject.
Scans A and B of C-01 fall on opposite sides, as do the scans of C-02. Validation would reuse samples seen in training.
Each sample’s scans now stay on one side. The sample-independence check passes.
51 development samples · RMSECV on five sample-grouped folds
Decision recorded in this walkthrough. View handoff record →
51 development samples · 5-fold grouped CV · PLS
| View a method | RMSECV | LV |
|---|---|---|
| 0.01299 | 13 | |
| 0.01301 | 13 | |
| 0.02712 | 14 |
All three PLS fits used the same samples and folds. Each considered 1–15 latent variables under the one-standard-error rule. RMSECV measures development error. SG denotes Savitzky–Golay. Curves are schematic. Errors are from the ChemomHarness Application Note, Fig. 3A.
Research handoff
Both routes keep their own study records. The marked point is just one example; exports are available at other eligible points.
Trace a fork to its starting step, recover the stated reason for a choice, and see which question is still open. Failed and blocked attempts stay in the history.
Walkthrough decisionNo decision selected
Inspect the model’s data and exact folds, preprocessing settings and software versions. With the required materials, a new agent can rerun a supported method and compare its predictions with the recorded ones.
For supported models, apply the fitted processing chain and fixed model to compatible spectra in a separate Python environment. The package uses the saved parameters.
Algorithm plug-ins
Researchers install and enable a plug-in for the step they want to extend. The LLM can call it in an authorized plan. The harness checks the data scope for that step and records the plug-in version.
This plug-in takes the median at each wavelength across one fold’s training spectra. It saves that spectrum and subtracts it from every validation scan in the fold.
Switch between validation samples A and B to see their centered spectra. Both use the same saved median. The study records the fitted center and plug-in version for each fold.
Open spectral data
Start with moisture or protein. Choose a grain, tell the workbench what you want to predict, then inspect the spectra and compare models.
sensAIfood · Dataset v2 · CC BY 4.0