Grey-scale soil orgC model report

Grey-scale-corrected model experiment, held-out validation, external baselines, and image-processing quality control.

Executive summary

  1. How do citizen-science orgC estimates compare with laboratory results?
  2. How does the direct grey-corrected SOC formula perform as a non-trained baseline?
  3. Which grey-scale image model is selected by repeated cross-validation, and how does it perform on the untouched final test set?
  4. Are grey-scale detection, correction, soil ROI, and colour outputs visually plausible?
Model training and selection are performed only by run_model_experiment.py. This report does not retrain models and does not use final-test performance to select the winner.

Grey-scale model experiment

The shared experiment contains 537 usable grey-scale samples: 486 development samples and 51 untouched final-test samples.

Models are selected by repeated five-fold cross-validation on development data. Final-test metrics are not used for selection.

Selected modelmodel_3_Lab_polynomial_ridge
CV RMSE3.474
CV MAE1.932
Test RMSE2.215
Test MAE1.677
Test R²0.601

The selected model improves held-out RMSE over the mean baseline by 1.295 orgC units.

The interpolated-Munsell model has 0.143 higher mean CV RMSE than the selected model.

All candidate models

modelfeaturestrain_ntest_ncv_RMSE_meancv_RMSE_sdcv_MAE_meancv_MAE_sdcv_R2_meantest_RMSEtest_MAEtest_bias_pred_minus_labtest_R2test_pearson_r
model_3_Lab_polynomial_ridge (selected by CV)L + a + b486513.4741.0451.9320.2770.2912.2151.6770.1990.6010.778
model_5_gradient_boostingL + a + b + munsell_value_interp + munsell_chroma_interp + munsell_hue_sin + munsell_hue_cos + munsell_nearest_deltaE + munsell_weighted_deltaE + deltaE2000486513.5871.0111.9200.2960.2212.2781.599-0.1620.5780.764
model_2_LabL + a + b486513.5971.0812.0930.2690.2392.4621.9040.2270.5080.716
model_4_Munsell_interpolatedmunsell_value_interp + munsell_chroma_interp + munsell_hue_sin + munsell_hue_cos + munsell_nearest_deltaE + munsell_weighted_deltaE486513.6181.1422.0240.2900.2472.8082.0640.1410.3600.621
model_1_LL486513.6581.0572.1420.2590.2062.3941.8900.2590.5350.741
baseline_meanL486514.2261.2912.4710.326-0.0253.5112.4060.105-0.001-0.000

Metrics overview

scenarionpearson_rCCC_agreementbias_mean_estimate_minus_labMAERMSER2_direct_predictionbland_altman_lower_95bland_altman_upper_95
Laboratory vs citizen-science estimate5310.2890.100-1.0942.0604.3440.011-9.3427.154
Laboratory vs direct grey-reference SOC heuristic4550.5450.3621.4522.7314.0500.178-5.9668.870
Held-out final test: model_3_Lab_polynomial_ridge510.7780.7580.1991.6772.2150.601-4.1684.566

Error comparison

MAE and RMSE for the citizen baseline, direct grey-corrected heuristic, and selected held-out model. Consult n because sample sets may differ.

Laboratory vs citizen-science estimate

External baseline only; it is not used to train or select image models.

n531
Pearson r0.289
CCC0.100
Bias-1.094
MAE2.060
RMSE4.344
R²0.011

Commentary

Laboratory value against estimate; dashed line is 1:1.
Agreement plot; y-axis is estimate minus laboratory.
Residual pattern against laboratory orgC.

Laboratory vs direct grey-reference SOC heuristic

Formula-based estimate for photographs acquired in the grey-reference mode; no supervised training is involved.

n455
Pearson r0.545
CCC0.362
Bias1.452
MAE2.731
RMSE4.050
R²0.178

Commentary

Laboratory value against estimate; dashed line is 1:1.
Agreement plot; y-axis is estimate minus laboratory.
Residual pattern against laboratory orgC.

Held-out final test: model_3_Lab_polynomial_ridge

Selected solely by the lowest repeated-CV RMSE among non-baseline models; test metrics were not used for selection.

n51
Pearson r0.778
CCC0.758
Bias0.199
MAE1.677
RMSE2.215
R²0.601

Commentary

Laboratory value against estimate; dashed line is 1:1.
Agreement plot; y-axis is estimate minus laboratory.
Residual pattern against laboratory orgC.

Largest final-test errors

These cases should be prioritised for image-QC review and investigation of non-colour soil factors.

SampleCodeIDimagelab_valuepredicted_valueresidualabsolute_error
DWZDDWZD-2970DWZD.jfif9.2453.308-5.9375.937
NZNPNZNP-4793NZNP.JPG14.7398.952-5.7875.787
DFEGDFEG-5724DFEG.jfif8.8954.487-4.4084.408
DCZZDCZZ-2268DCZZ.jfif1.0835.1324.0494.049
FXTBFXTB-5745FXTB.jpg8.5894.628-3.9613.961
WTMWWTMW-8913WTMW.jpg4.5880.647-3.9413.941
PBGUPBGU-5744PBGU.jpg2.3395.9173.5783.578
CFFSCFFS-8444CFFS.jpg1.3734.8813.5083.508
NGURNGUR-1817NGUR.jpg0.8064.2583.4523.452
XGXKXGXK-3754XGXK.jfif12.57915.6813.1023.102

How to interpret MAE and RMSE

MAE is average absolute error; RMSE penalises large errors more strongly. Lower is better. Comparisons are most meaningful on the same sample set.

scenarioMAERMSERMSE_MAE_ratiointerpretation
Laboratory vs citizen-science estimate2.0604.3442.108Large errors are influential.
Laboratory vs direct grey-reference SOC heuristic2.7314.0501.483Some larger errors are present.
Held-out final test: model_3_Lab_polynomial_ridge1.6772.2151.321Some larger errors are present.

Image-processing quality control

Automatically selected examples are restricted to grey-reference photographs and prioritise samples with complete diagnostic artefacts.

Sample GMZY

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

Sample HGCM

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

Sample CZNX

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

Sample XGXK

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

Sample XWPS

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

Sample CDFW

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

Sample RPGV

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

Sample DYXB

QC assets: 5/5 expected QC artefacts available

Soil ROI
Soil ROI. The rectangle should contain representative soil only.
Detected grey-scale rectangle
Detected grey-scale rectangle. The rectangle should surround the full 11-patch scale.
Extracted grey-scale ROI
Extracted grey-scale ROI. The crop should contain the darkest-to-lightest patches with little paper or text.
Before/after correction
Before/after correction. Correction should neutralise colour cast without clipping or distortion.
Colour/Munsell card
Colour/Munsell card. Visual check of ROI colour, Lab estimate, closest Munsell chip, and direct SOC heuristic.

How to present the current status