/dsm-soil:hybrid-process-ml-socfrom dsm-soil
Designs hybrid soil-organic-carbon models fusing process models (RothC/CENTURY) with ML (Random Forest/QRF) for spatiotemporal SOC prediction. Activates on queries about hybrid soil carbon modeling, POML, or space-time SOC.
Ships in dsm-soil. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Forged from the DSM knowledge wiki (19 sources). The wiki is the source of truth. Key pages: hybrid-po-ml, process-vs-empirical-models, rothc, random-forest, rothc-calibration, carbon-inputs, spatiotemporal-dsm. Builds on the rothc-temporal-modelling and soil-map-validation skills.
Across the whole soil-carbon literature, one split recurs:
Neither alone is enough for space-time SOC. The answer is to fuse them.
This skill is the flagship instance of soil-science-informed ML (SoilML): POML injects a process model's mechanistic knowledge into ML training. The same posture — guide the data- driven model with soil science — underlies covariate choice, loss design, and interpretation across DSM.
Use the process model's simulations as augmented training data for the ML model — not merely as a covariate. The final fitted model then embeds the space-time soil–environment relationship.
overall_loss = wp · Loss(ŷ, ŷ_PO)_unsampled-years + (1−wp) · Loss(ŷ, y_obs)_sampling-years
Loss_obs pulls the model toward real measurements (sampling years).Loss_PO pulls it toward the process model's plausible trajectory (other years).wp ∈ [0,1] — the weight on the process model. wp=0 = plain RF; wp=1 = an
RF that just mimics RothC. Sweep it and pick by cross-validation; the optimum is
often below the 0.5 default (≈0.3 in the reference study). Rescale per-point PO weights
by n_obs / n_sim so the larger simulated set doesn't swamp the observations.Result in the reference case: hybrid RMSE 0.29 vs ML 0.36 vs RothC 0.53; CCC 0.88; +19% over ML — and a smooth, realistic temporal trend ML alone could not produce.
Coupling is expensive. There is a cheaper design that answers a different — and often more urgent — question, and it should be considered first.
Wang 2024 ran a random forest, a k-means + MLR model and the MIMICS process model independently over Australian SOC stocks, validated each out-of-sample, and reported the average and the spread.
| Fusion (POML, above) | Parallel comparison | |
|---|---|---|
| Coupling | process output feeds the ML model | none |
| Output | one prediction | an average, and a range |
| Aim | a better single answer | an honest answer |
| Cost | a coupled implementation | run both, compare |
⭐ The result that makes it worth doing first: all four models validated at R² > 0.8 out-of-sample, and their continental SOC-stock estimates still ranged from 24.29 to 38.15 t ha⁻¹ — a 57% spread. Site-level accuracy did not certify the aggregate at all.
Use it to decide whether fusion is warranted. If the paradigms already agree, coupling buys little. If they disagree by 57%, you have learned something important before writing any coupling code — and you have a defensible uncertainty statement that no single model can produce. → predictive-uncertainty · uncertainty-aggregation
⭐ And a calibration finding that transfers to any process model over a heterogeneous region: MIMICS optimised by environmental drivers beat the same model optimised by plant functional type, especially in non-forest soils. PFT grouping is the land-surface default and it is a vegetation taxonomy standing in for the drivers of a soil process. Group your sites by what drives the process. → rothc-calibration
wp at the default instead of sweeping it.Core: Zhang et al. 2024 (POML — the reference realization). Foundation: Lai 2026 (the "RothC
for time, ML for space" thesis + national RothC), Ma 2026 (CenW), the RothC application
cluster (Balugani/Pesce/Afzali/Kaushal — calibration, variants, climate), and the ML/DSM
cluster (Wadoux, Jafari, Shi, Hengl, Tian, Sarkar, Rohmer, Carbajal, Parvizi, Mousavi). Full
citations in the wiki sources/.
Portable build from the DSM knowledge wiki (the source of truth). Obsidian cross-references were flattened for standalone use; regenerate with build.ps1.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ccarbajal16/soil-dsm-skills --plugin dsm-soil12 skills in this plugin
/digital-soil-mapping-workflowRun a digital soil mapping (DSM) project end to end — from framing the target and assembling scorpan covariates, through sampling design, model selection, handling spatial autocorrelation, training, and producing a map with calibrated uncertainty. Use when planning or reviewing any project that predicts a soil property (SOC, texture, pH, …) across space (and optionally time) from environmental covariates. Triggers: "digital soil mapping", "DSM", "predict soil property from covariates", "soil map", "scorpan", "which model for soil mapping", "covariates for soil", "map SOC / soil carbon"./ensemble-ml-for-soilDecide whether to combine machine-learning models at all, and if so how — by measuring the gain available before building any combiner. Covers the ambiguity/diversity ceiling, the weighting spectrum (simple average, R²-weighted, Bates–Granger, AIC/BIC, NNLS/SuperLearner, Granger–Ramanathan, learned meta-models, attention, per-pixel selection), out-of-fold stacking under spatial CV, cross-fitting the combiner, voting for classification, and significance testing of the margin. Use when someone proposes an ensemble, reports an ensemble gain, or asks whether their averaging scheme is "too simple". Triggers: "ensemble machine learning", "model stacking", "stacked generalisation", "SuperLearner", "meta-learner", "meta-model", "weighted average ensemble", "R2-weighted ensemble", "simple average ensemble", "Bates-Granger", "Granger-Ramanathan", "NNLS weights", "non-negative least squares", "caretStack", "mlr3pipelines stacking", "voting ensemble", "hard voting", "soft voting", "blending", "bagging vs boosting vs stacking", "ensemble gain", "does stacking help", "combine RF and XGBoost", "which model to combine", "base learner diversity", "error correlation", "out-of-fold predictions", "level-one dataset", "landmap", "MACHISPLIN", "spatial ensemble", "per-pixel model selection", "combine my model with SoilGrids"./ml-for-soil-predictionChoose, tune, and reason about machine-learning models for predicting soil properties (SOC, texture, pH, …) — Random Forest, Quantile Regression Forests, gradient boosting, and deep learning — including per-pixel uncertainty and interpretability. Use when the task is the ML modelling craft itself: which algorithm, how to tune it, how to get honest uncertainty, whether deep learning is worth it, why an ML model underperforms. Triggers: "random forest for soil", "QRF", "which ML model", "deep learning soil", "CNN / ANN soil carbon", "hyperparameters", "feature importance / SHAP", "prediction interval", "ML model gives bad R²"./rothc-temporal-modellingSet up, initialize, calibrate, validate, and interpret the RothC (Rothamsted Carbon) model — and CENTURY-family process models — for simulating soil organic carbon stock and its change over time. Use when modelling SOC dynamics under management or climate scenarios, initializing RothC pools (spin-up), calibrating decay constants, choosing carbon inputs, adapting RothC to a region/practice, or judging whether a RothC result is trustworthy. Triggers: "RothC", "CENTURY / CenW", "soil carbon model", "carbon pools DPM/RPM/BIO/HUM/IOM", "spin-up / initialize SOC pools", "calibrate RothC", "SOC under climate change", "carbon input estimation", "first-order decay"./soc-stock-mrvQuantify, report, and verify soil-organic-carbon stock and its change over time for carbon markets / MRV (Monitoring, Reporting, Verification) — computing SOC stock, estimating change and its uncertainty at the field/project support, and applying the uncertainty deduction that determines creditable tons. Use when a task involves soil carbon crediting, an MRV framework (VM0042, VT0014), SOC stock-change detectability, or reporting SOC with defensible uncertainty. Triggers: "SOC MRV", "soil carbon credits", "carbon farming verification", "SOC stock change", "uncertainty deduction", "how much SOC can we credit", "monitoring reporting verification soil carbon"./soil-fertility-mappingProduce national/regional maps of multiple soil fertility properties and nutrients from harmonized legacy data with machine learning, and integrate them into a composite Soil Fertility Index (SFI) with honest, propagated uncertainty. Use when the goal is a multi-property fertility product (texture, pH, CEC, OC, N, P, K, Ca, BD) at broad scale — a GSNmap-style national soil-nutrient assessment, a fertility/soil-quality index, or region-specific management diagnosis. Triggers: "soil fertility map", "soil fertility index", "SFI", "nutrient mapping", "GSNmap", "map N P K", "soil quality index", "national soil property maps", "map CEC / pH / texture".Other plugins' skills for the same job