Post-Hoc Recovery Evaluation: Measuring Agent Recovery After Unsafe Tool Execution
A research project that makes recovery a first-class evaluation object: injecting controlled, sandboxed unsafe-execution events into agent benchmarks and measuring...
A research-grade chemometrics project that predicts soil properties like organic carbon and pH from diffuse-reflectance spectra using the EU’s public LUCAS topsoil spectral library — uncertainty-aware regression with honest lab-reference boundaries.

A research project that estimates measurable soil properties — organic carbon, pH, texture fractions — from diffuse-reflectance spectra using the European Union’s LUCAS topsoil spectral library. The workflow is chemometrics: preprocess the reflectance spectra, transform wavelength features, train regression models, and report per-property errors with uncertainty — always against laboratory reference values, which remain the ground truth this kind of model can approximate but never replace. It is the site’s most research-oriented machine-learning Idea: a rigorous, notebook-first project for people who want their regression skills tested by a genuinely hard, genuinely useful scientific problem.
>Estimation, not prescription. The model estimates selected soil properties from spectral measurements. It does not recommend fertilizers, chemical amendments, or treatment dosages, and it makes no claims of guaranteed soil improvement. Laboratory analysis remains the reference method; spectral prediction is a fast, cheap screening complement whose errors must be understood before anyone acts on a single number it produces.
Conventional soil analysis is slow and expensive: samples are collected in the field, shipped to laboratories, and processed with wet-chemistry methods that can take weeks per batch. Soil sensing by diffuse reflectance spectroscopy offers a fast, comparatively cheap alternative — shine light across a wavelength range, record how the soil reflects it, and infer properties from the spectral signature. The approach is established in the research literature, and the EU’s Land Use/Cover Area frame Survey (LUCAS) has published one of the world’s largest harmonized collections of topsoil samples with both laboratory-measured properties and corresponding spectra. What’s missing for most learners is a walkable path through it: how to preprocess spectra defensibly, how to avoid the validation traps that inflate published accuracies, and how to report uncertainty so results mean something to a soil scientist. The gap between “there is a giant public spectral library” and “I have a validated, honestly-reported prediction model” is this project.
Spectral regression is chemometrics — a century-old discipline with hard-won rules about preprocessing and validation. The pipeline below follows those rules while using modern ML tools.
Download a LUCAS topsoil data package from the European Soil Data Centre (free after registration), which pairs soil property measurements (organic carbon, pH, particle-size fractions, and others) with the corresponding reflectance spectra. Inspect before modeling: wavelength range and resolution, sample counts, property distributions, geographic coverage of the sampling sites, and — critically — the documented measurement protocols. Provenance is part of the science: record which data package version you used and when.
Spectral datasets carry real-world noise: anomalous spectra (sensor glitches, moisture artifacts), samples with missing or censored property values, and sites measured under different conditions. Build a quality-inspection step that flags spectra with implausible reflectance values, reports missing-value patterns per property, and visualizes a random sample of spectra so you can see what typical and atypical look like. Decide and document exclusion rules before you look at any model results — otherwise quality filtering quietly becomes accuracy tuning.
Raw reflectance carries scattering and baseline effects that swamp the chemical signal. Classical chemometric preprocessing exists precisely for this: continuum removal or standard normal variate (SNV) transforms to separate absorption features from scattering baselines; Savitzky–Golay smoothing and its derivative filters to sharpen absorption features; and band selection or resampling to reduce redundancy. Apply preprocessing fitted on training data only where any parameters are learned, and treat the preprocessing choice itself as an experiment — different transforms measurably change which properties are predictable.
Random sample-level splits overstate performance when nearby sampling sites share geology, climate, and parent material. The honest default is a spatially aware evaluation: at minimum, group samples by region so that spatially clustered neighbors do not straddle train and test; ideally, hold out entire regions. Report both a random split and a spatial split — the gap between the two numbers is itself a scientific finding about geographic generalization.
For each target property, train regression models on the preprocessed spectra. Classical chemometrics starts with partial least squares regression (PLSR) — the domain’s workhorse, interpretable and strong on collinear spectra. Compare it against modern baselines: ridge regression on transformed features, random forests, gradient boosting, and optionally a small neural network. Keep the per-property discipline: organic carbon, pH, and clay behave very differently spectrally, and a single pooled model hides that. Dimensionality reduction (PCA) and feature selection across wavelengths are legitimate experiments here — spectra are highly collinear, and the wavelength-region importance you recover is interpretable science (clay minerals, organic matter, and iron oxides all have known absorption features).
Report per-property error metrics (RMSE, MAE, bias, and the ratio of performance to deviation common in soil-science literature) on the held-out split — never on resubstitution of training samples. Add uncertainty: prediction intervals via bootstrapped models or quantile regression, and residual analysis against properties not modeled (does organic-carbon error grow on sandy samples?). Publish the errors next to the analytical precision of the laboratory reference method itself, because “close to the lab” is the meaningful yardstick, and the lab is not perfect either.
The research deliverable is not just a model but an understanding: which wavelength regions drove predictions, which properties were predictable and which were not, how spatially portable the model is, and where it fails. Document preprocessing parameters, package versions, and split definitions so another researcher can reproduce the study exactly. This is the part that turns a good project into a citable one.
A minimal but complete MVP:
Explicitly out of MVP: multi-property joint models, transfer across instruments, field-moisture corrections, and mapping predictions spatially. All are natural extensions.
The site’s agricultural Ideas answer different questions with different data. The AI Crop Yield Estimator from Field & Weather Data forecasts how much a field will produce from field, soil, and weather history — a forecasting task on environmental time series. The GMO Trait Analysis Explorer for Agricultural Researchers explores curated trait and identifier records — a data-exploration tool over structured biological annotations. This project predicts laboratory-measurable soil properties from spectral signatures — chemometric regression where the features are wavelengths and the ground truth is wet-chemistry analysis. Different inputs (spectra, not weather or trait tables), different model class (calibrated regression against lab references, not forecasting or record browsing), and a research audience of soil scientists rather than farm planners. All three share the agriculture domain and the honesty-about-uncertainty discipline, which is precisely why they cross-link as a family.
| Tool type | Approach | Limitation |
|———–|———-|————|
| Commercial soil-spectral services | Vendor models with proprietary calibrations | Opaque; errors and coverage undisclosed; costly per sample |
| Research lab pipelines | In-house chemometrics | Not reproducible outside the lab; rarely documented for learners |
| Generic regression tutorials | Standard ML on toy datasets | No spectral physics, no chemometric discipline, no reference-method context |
| Lab analysis alone | Wet chemistry per sample | Slow and expensive at survey scale; the reference, not the screener |
This project’s differentiators: a fully reproducible pipeline on the largest harmonized public soil spectral library, classical-to-modern model comparison under identical validation, spatially honest evaluation, uncertainty reporting, and an explicit no-prescription boundary.
Browse more Research Ideas · Advanced Ideas
A research project that makes recovery a first-class evaluation object: injecting controlled, sandboxed unsafe-execution events into agent benchmarks and measuring...
A research project that answers the question every failed agent run raises: which step broke it? Building an attributed corpus...
A research project that audits the measurement instruments themselves: applying the ABC validity-checklist methodology to agent-security benchmarks to find task-validity...
Looking for something more accessible? Try these:
Published on September 12, 2026
A team of developers, researchers, and innovators who review and publish practical ideas for builders and creators.
Published on September 12, 2026
A team of developers, researchers, and innovators who review and publish practical ideas for builders and creators.