Quantifying Validation-Induced Optimism in Machine Learning for Food Spectroscopy: An Empirical Multi-Dataset Benchmark
Background: Evaluating machine-learning regression models in food spectroscopy using random row-wise cross-validation ignores hierarchical experimental structures (replicate scans, aliquot extractions, packaging batches, instruments, and harvest campaigns). While theoretical warnings caution against sample leakage, the chemometric literature lacks a multidataset empirical quantification of validation-induced optimism, its impact on model selection, and its underlying physical mechanisms. Methods: We executed an empirical multi-dataset benchmark across four benchmark food spectroscopy collections encompassing 12,706 source spectra/records, with 6,376 spectra evaluated in primary regression workflows: Cargill corn near-infrared (NIR; n = 240 spectra across 80 physical grain samples and 3 spectrometers; targets: moisture and protein), edible vegetable oils Raman (Gilbraith , 2024; n = 215 spectra across 52 distinct reference titration determinations; target: peroxide value), mango fruit dry matter NIR (Anderson , 2020; n = 4,233 calibration spectra across 5 cultivars and n = 1,448 external harvest season spectra; target: dry matter content), and Tecator meat NIR (n = 240 spectra with 24 duplicate pairs [48 rows participating in identical pairs], leaving 216 unique spectral profiles; targets: fat and moisture). Six regression algorithms—partial least squares (PLS), Ridge regression, support vector regression (SVR-RBF), Random Forest, XGBoost, and k-nearest neighbours (kNN, serving as a diagnostic sentinel)—were evaluated across four hierarchical validation tiers: Level 1 (random row-wise cross-validation), Level 2 (sample-aware group cross-validation, reference-valuegrouped validation, or deduplicated validation), Level 3 (cultivar-aware validation), and Level 4 (external instrument and seasonal holdout).
- Link
- https://doi.org/10.26434/chemrxiv.15009168/v1
- Found by
- Crossref
- Authors
- Ketney Otto
- Organizations
- Department of Agricultural Science and Food Engineering, Lucian Blaga University of Sibiu, Dr. I. Ratiu Street 7–9, Sibiu, Sibiu, Romania, 550012
- Categories
- benchmark, evaluation, dataset
- Published
- 2026-09-21
- Last seen by the radar
- 2026-09-23
- Citations
- 0
- Radar score
- 44.25 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark, dataset, evaluat; Primary record: Crossref