Spectra Lab
Journey · real run, 9 Oct 2026

Move a model to a second instrument: bias and slope before and after

Correct a model for a second instrument with a few samples. The second instrument is simulated from real spectra and labelled everywhere.

Step 1 · The problem

Two instruments read the same fruit differently

What we measured

We built a model on instrument A, then asked it about the same unseen-season fruit as measured by a second instrument.

What we found

No cleared two-instrument dataset exists yet, so instrument B is simulated: the real unseen-season spectra with a gain of 1.06, an offset of 0.03 and a baseline tilt added by us.

What to do

Read every figure here as a demonstration of the method, not as a result for a real pair of instruments.

Spectra
15202512.51517.52022.525Reference dry matter (%)Predicted dry matter (%)dashed line: predicted equals reference

Instrument B, simulated, no correction: bias +1.13, slope 0.87, typical error 1.53 % dry matter.

SIMULATED. Simulated instrument B: the real unseen-season spectra with a gain of 1.06, an offset of 0.03 and a baseline tilt added by us. Model built on instrument A. Source: Spectra Lab engine run, 9 Oct 2026, mango teaching subset (CC BY 4.0).

Step 2 · Measure

Read the bias and the slope

What we measured

Bias and slope of predicted against reference, on A and on simulated B.

What we found

On A the bias is -0.21. On B it jumps to +1.13 and the typical error goes from 1.06 to 1.53.

What to do

Use the buttons above to switch between A, B and B corrected.

Same widget as above.

Step 3 · Correct

Fit a slope and bias on a few samples measured on B

What we measured

A correction fitted on 10, 20 or 40 reference samples measured on B and scored on the rest, 500 random draws.

What we found

With 20 samples the typical error drops from 1.53 to 1.08 (middle 80 % of draws: 1.01 to 1.16). The bias goes to +0.00.

What to do

Bias is the easy part. The slope stays near 0.87 because the model itself shrinks, on A as well.

00.511.5Typical error, % dry matter1.531.1210 samples1.531.0820 samples1.531.0640 samplesB, no correctionB, corrected

SIMULATED. Simulated instrument B: the real unseen-season spectra with a gain of 1.06, an offset of 0.03 and a baseline tilt added by us. Source: Spectra Lab engine run, 9 Oct 2026, mango teaching subset (CC BY 4.0).

Step 4 · Pick the pipeline

Derivatives hide offsets, not gain

What we measured

The same test with 1st-derivative spectra.

What we found

Bias on B is +0.89, smaller than raw (+1.13) but not gone; the gain still scales the derivative. After correction the error is 1.03.

What to do

Do not assume a derivative makes the model portable. Check on both instruments.

SIMULATED. Simulated instrument B: the real unseen-season spectra with a gain of 1.06, an offset of 0.03 and a baseline tilt added by us.

Step 5 · Planned

Standardization on real instrument pairs

What we measured

Not yet: direct and piecewise direct standardization on real spectra from two instruments.

What we found

We are waiting on permission to publish a public three-instrument dataset.

What to do

Join the list and we write when calibration transfer opens in the Lab.

Planned · not built

Calibration transfer

Get early access