← Back to the archive
preprintDemonstration bundle2026archive_only

Reproducible PLS calibration of protein content from near-infrared spectra

Gregory Beurier, nirs4all ecosystem
CIRAD
Demonstration bundle

A worked, end-to-end example of the nirs4all reproduction-document publisher. A partial least-squares model is calibrated on near-infrared spectra to predict protein content, using a min–max scaling and standard-normal-variate preprocessing chain. The deposited .n4a bundle carries the archived pipeline and fitted artifacts. A separately declared browser companion demonstrates the preprocessing and PLS on an included synthetic dataset using approximate NIPALS PLS and its own deterministic folds. Its live scores are independent of the published values; method references remain available in the bibliography.

NIRSPLSpreprocessingreproducibilitychemometrics
nirs4all
1.76
RMSE (5-fold CV)
0.69
R² (5-fold CV)
1.81
RPD (5-fold CV)
120
samples
100
wavelengths

Owner documents

Archive deposit; current reading and execution have not been evaluated.

Protocol as published

Split5-fold cross-validation (out-of-fold predictions)
Cross-validation5-fold
Scoring metricRMSE / R² / RPD
Fold strategyweighted_average
Complete published results — static text

Resultsas published

1.76
RMSE
5-fold CV
0.69
R²
5-fold CV
1.81
RPD
5-fold CV

Dataset

DatasetSynthetic NIRS protein calibration set
Targetprotein (% w/w)
Samples120
Wavelengths100
NoteSynthetic, deterministic (seed = 42). Included only to demonstrate the live replay; a real paper would reference a DOI-pinned nirs4all-datasets entry.
included spectra0.7790.6080.4370.2660.0948100017502500included spectra / nm

Live replay — approximate browser companionin your browser

ready pure-JS reference engine · NIPALS PLS · 5-fold OOF
📂 Run on your own dataset

Run this approximate browser companion on your data, entirely in your browser. Upload a CSV (rows = samples; one column is the target, the rest are the spectrum) — for vendor spectra files, open the full nirs4all-web app. Nothing is uploaded to a server.

Full in-browser data app: nirs4all-web →

Runs the separately declared reference preprocessing + model on the dataset under leakage-safe 5-fold cross-validation, recomputing out-of-fold predictions and scores entirely in your browser. Synthetic demonstration dataset (deterministic, seed=42, 120 samples) included so the deposited pipeline can be re-run live; no redistribution constraints.

Approximate. This is an independent pure-JS reference engine (NIPALS PLS) with a deterministic 5-fold split. It demonstrates the declared browser plan; it does not execute the deposited .n4a or reproduce its exact implementation, folds, or published scores. Current owner reading and native execution remain separate.

Bibliography3 references

  1. [1]Pedregosa, F. et al. (2011) Scikit-learn: Machine Learning in Python (implementation reference). Journal of Machine Learning Research 12, 2825–2830. https://jmlr.org/papers/v12/pedregosa11a.htmlAffine rescaling of each feature to a fixed range (default [0, 1]); a standard feature-conditioning step.
  2. [2]Barnes, R. J.; Dhanoa, M. S.; Lister, S. J. (1989) Standard Normal Variate Transformation and De-trending of Near-Infrared Diffuse Reflectance Spectra. Applied Spectroscopy 43(5), 772–777. 10.1366/0003702894202201Per-spectrum centring and scaling that removes multiplicative scatter and baseline offset row by row.
  3. [3]Wold, S.; Sjöström, M.; Eriksson, L. (2001) PLS-regression: a basic tool of chemometrics. Chemometrics and Intelligent Laboratory Systems 58(2), 109–130. 10.1016/S0169-7439(01)00155-1Projects spectra onto a small number of latent variables that maximise covariance with the target, then regresses.

Licensing

Manuscript
CC-BY-4.0
Reproduction bundle
CeCILL-2.1 OR AGPL-3.0-or-later
Dataset
synthetic — no constraints

Deposited manuscripts keep their publisher's copyright; datasets keep their own license / DOI terms. The reproduction code and page are dual-licensed open-source.

Provenance & downloads

Reading statusarchive_only
Reading detailArchive deposit; current reading and execution have not been evaluated.
Raw downloadable file SHA-256c1d99c12d44233ddcb43c9643cfb7b0237c308dbee7fdaca406eefea54b3dff0
ExecutionNot evaluated; Papers does not load fitted objects
Sourcenirs4all (examples/exports) @ D02_base_model

Raw historical copies do not establish current admission. Owner documents are read-only evidence. Use separately supplied frozen reproduction instructions.

Cite this

Cite the paper (below) for the science; cite this reproduction page / the deposited .n4a by its bundle fingerprint when referencing the exact pipeline.

@article{beurier2026,
  author = {Gregory Beurier and nirs4all ecosystem},
  title = {Reproducible PLS calibration of protein content from near-infrared spectra},
  journal = {Demonstration bundle},
  year = {2026}
}
CITATION.cff
cff-version: 1.2.0
message: "If you use this reproduction bundle, please cite the associated paper."
title: "Reproducible PLS calibration of protein content from near-infrared spectra"
abstract: "A worked, end-to-end example of the nirs4all reproduction-document publisher. A partial least-squares model is calibrated on near-infrared spectra to predict protein content, using a min–max scaling and standard-normal-variate preprocessing chain. The deposited .n4a bundle carries the archived pipeline and fitted artifacts. A separately declared browser companion demonstrates the preprocessing and PLS on an included synthetic dataset using approximate NIPALS PLS and its own deterministic folds. Its live scores are independent of the published values; method references remain available in the bibliography. "
authors:
  - family-names: "Beurier"
    given-names: "Gregory"
    affiliation: "CIRAD"
  - name: "nirs4all ecosystem"
identifiers:
  - type: other
    value: "sha256-file:c1d99c12d44233ddcb43c9643cfb7b0237c308dbee7fdaca406eefea54b3dff0"
    description: "Exact downloadable file SHA-256; not scientific identity"
keywords:
  - "NIRS"
  - "PLS"
  - "preprocessing"
  - "reproducibility"
  - "chemometrics"
references:
  - type: article
    title: "Scikit-learn: Machine Learning in Python (implementation reference)"
    authors:
      - family-names: "Pedregosa"
        given-names: "F. et al."
    journal: "Journal of Machine Learning Research 12, 2825–2830"
    year: 2011
  - type: article
    title: "Standard Normal Variate Transformation and De-trending of Near-Infrared Diffuse Reflectance Spectra"
    authors:
      - family-names: "Barnes"
        given-names: "R. J."
      - family-names: "Dhanoa"
        given-names: "M. S."
      - family-names: "Lister"
        given-names: "S. J."
    journal: "Applied Spectroscopy 43(5), 772–777"
    year: 1989
    doi: "10.1366/0003702894202201"
  - type: article
    title: "PLS-regression: a basic tool of chemometrics"
    authors:
      - family-names: "Wold"
        given-names: "S."
      - family-names: "Sjöström"
        given-names: "M."
      - family-names: "Eriksson"
        given-names: "L."
    journal: "Chemometrics and Intelligent Laboratory Systems 58(2), 109–130"
    year: 2001
    doi: "10.1016/S0169-7439(01)00155-1"
Generated by n4a-papers 0.2.5 · 2026-11-20