Daily Journal Reading · 2026-11-30

Explainable AI, end to end: from attribution to action

Five models that all predict something about soil or slopes, and five different jobs for the explanation layer — ranking drivers, justifying a new variable block, living inside a deep probabilistic net, reaching a farmer on an edge device, and turning 'why is this risky' into 'what would have to change'.

5 papers · full abstracts · deep read · visual figures · prepared for Damar

The one idea that ties all 5 papers together

Every paper today predicts a soil or hazard variable with a model nobody can read, and every paper adds an XAI layer so that someone can act on the prediction. Read in this order, the five papers are the same question asked five ways. Guo et al. use SHAP to rank environmental drivers of soil total N and P across 97 grassland sites, with XGBoost reaching R2 0.71 for TN and RF 0.62 for TP. Achu et al. use TreeSHAP as evidence in an argument rather than as decoration: adding soil-profile properties measured at 10, 110 and 210 cm lifts AUROC to 0.912 on slope units and pulls the mean susceptibility index down from 0.44 to 0.37, i.e. it removes over-prediction. Shawon et al. take the explanation inside the network — SHAP and integrated gradients on a quantile CNN-LSTM that predicts moisture at five depths with an average R2 of 0.948 — so the explanation has to agree with the uncertainty band. Rafi et al. ship twelve explanation formats on a Raspberry Pi at the edge of a field, where the explanation is the product. Dwivedi et al. go one step past attribution to counterfactuals: not which factor dominated, but what value of which factor would flip the decision. The thread is that an explanation is never 'the truth about the world'; it is a second model, fitted to the first, and its value depends entirely on what decision it is meant to support.

⏱ 60-second orientation

PaperQuestion it answersHeadline
Guo et al. 2026Which environmental variables drive soil TN and TP across Qinghai grasslands?SHAP on four ML models (97 sites); XGBoost R2 0.71 for TN, RF R2 0.62 for TP
Achu et al. 2026Does adding multi-depth soil-profile data beat a DEM-only landslide model?TreeSHAP on RF, grid vs slope units; AUROC 0.912 (SUB1) vs 0.897 (GUB2)
Shawon et al. 2026Can a deep model predict root-zone moisture at five depths and say how sure it is?Quantile CNN-LSTM, average R2 0.948, SHAP + integrated gradients by depth
Rafi et al. 2026Can an inexpensive field device recommend a crop and explain itself?IoT + edge RF on 26 crops, 98.61% test accuracy, 12 explanation formats
Dwivedi et al. 2026What would have to change for a site to stop being landslide-prone?Five models + SHAP + DiCE counterfactuals; RF accuracy 0.97, first statewide LS map for Minnesota

The XAI toolbox — which question each method actually answers

Today's five papers use seven or eight different explanation methods, and the most common reading error is to treat them as interchangeable. They are not: each one answers a different question, returns a different kind of object, and fails in its own way. Use this table as the map for the rest of the page.

Question you are askingMethodWhat you getWhere it fails
Which variables matter overall?Gini / impurity importance, permutation importance, mean absolute SHAPOne ranked bar chart per modelCredit is split arbitrarily among correlated variables; impurity importance is biased toward high-cardinality features; none of it says direction.
Which direction, and for which cases?SHAP summary / beeswarm (TreeSHAP, KernelSHAP)One dot per sample per feature: SHAP value on x, feature value in colourAn association inside the model, not an effect in the world; magnitudes are in model-output units and depend on the background set.
At what value does the effect change sign?SHAP dependence plot, partial dependence plot (PDP)A curve of effect against feature value, with the data distribution underneathPDP averages over the marginal distribution and can evaluate combinations no soil ever had; the thresholds are the model's, not nature's.
Why did the model say this for THIS pixel or site?SHAP local (waterfall / force), LIME local surrogateAdditive bars that sum from the baseline to this predictionA local fit can be faithful and still wrong about the system; under collinearity the split between two correlated features is unstable between runs.
Why did a deep network do that?Integrated gradients, saliency, attention mapsAttribution per input feature (IG) or per timestep (attention)Integrated gradients is defined relative to a baseline you choose — zeros, the mean soil, a reference profile — and a different baseline gives a different explanation.
What would change the decision?Counterfactual explanation (Wachter; DiCE)Alternative input vectors that cross the decision boundaryOnly useful if the changed variables are actionable; terrain and climate are not. Distance metrics are arbitrary unless you weight them by cost.
How sure is the model where it matters?Quantile regression, quantile regression forest (QRF)Per-pixel prediction intervals, not a single numberUncertainty is not explanation: a tight interval around a physically wrong prediction is still wrong, and vice versa.
Note the asymmetry that runs through all five papers: the first three rows describe the model, the fifth row describes an input, and only the sixth row describes a decision. Most published 'XAI' stops at row two.

The day as a ladder — what each paper asks the explanation to do

The papers are ordered by what the explanation is for, not by topic. Reading them in this sequence turns five case studies into one progression: describe, justify, quantify, deploy, act.

RungPaperXAI layerDecision it is meant to supportWhat is still unexplained
1. DescribeGuo 2026TreeSHAP on XGBoost (TN) and RF (TP); mean |SHAP| bars, SHAP dependence curves, QRF intervalsWhich environmental variables a grassland nutrient survey should monitorWhy the association exists; the 80/20 split is random, so the map's skill at unsampled locations is asserted rather than measured.
2. JustifyAchu 2026TreeSHAP on RF, four models (GUB1/SUB1 with soil, GUB2/SUB2 topography only)Whether a costly multi-depth soil sampling campaign is worth repeating elsewhereExplanation and accuracy move together here, but the gain is measured in one 645 km2 basin.
3. QuantifyShawon 2026SHAP plus integrated gradients on a quantile CNN-LSTM, per depthIrrigation scheduling where a missed dry spell costs yieldNeither method handles the temporal dependence explicitly; IG's baseline is a modelling choice.
4. DeployRafi 2026Twelve local/global formats from permutation importance, SHAP, LIME, Morris screening and ELI5, plus counterfactuals, on a Raspberry PiA farmer deciding what to plant this season, on a screen in the fieldWhether twelve explanations help or overload; accuracy is 99% on a dataset whose sampling design is not described as field-realistic.
5. ActDwivedi 2026SHAP global and local, plus DiCE counterfactuals; TabNet attention as an intrinsic-ish layerWhich remediation would move a specific slope out of the high-susceptibility classCounterfactuals on slope angle and elevation are illustrative, not feasible; the 70/30 split is random, so the map inherits spatial optimism.
Read down the last column: every paper is honest about its model and vague about its generalisation. That is the pattern worth carrying into your own work.

🎓 How explainable AI actually works — the mechanics behind today's figures

This section is the reason the page is figure-heavy. Below is the machinery behind every explanation you will see today, in the order you need it: what an explanation is, how SHAP computes credit, how to read a beeswarm and a dependence curve without fooling yourself, how gradient methods and attention differ from attribution, how counterfactuals turn an explanation into an action, and what none of these methods can give you.

1. An explanation is a second model, fitted to the first

A random forest or a CNN is a function f(x) that maps a feature vector to a number. An explanation is a different, simpler object e(x) chosen so that it is readable by a human and close to f near the point of interest. Nothing about that construction makes e true: it makes e faithful to f. This is why the literature separates intrinsic interpretability (a model whose form is readable — a linear model, a small tree, a rule list, the coefficients in Congress et al.'s Fig. 8a) from post-hoc explanation (a separate procedure applied after fitting, which is what SHAP, LIME, integrated gradients and counterfactuals all are). Every paper today is post-hoc: the model is fitted first, then interrogated. The practical consequence is that the explanation inherits every flaw of the model and adds its own approximation error on top — and the two are usually reported as one number.

2. SHAP: fair credit for a coalition, borrowed from game theory

Shapley values come from cooperative game theory: if a team of players produces a payout, how much did each player contribute? The answer Shapley proposed is the average marginal contribution of that player over every possible order in which the team could have been assembled. In a model, the players are the features and the payout is the prediction. For a feature i, you imagine adding i to every subset S of the other features, measure how much the prediction moves, and average those moves weighted by how many orderings produce each subset. Three properties follow, and they are the reason SHAP became the default: local accuracy (the SHAP values plus a baseline add up exactly to this prediction), missingness (a feature that is absent gets zero), and consistency (if a model changes so that a feature matters more, its SHAP value cannot fall). Achu et al. print the estimator explicitly as their Eq. 11 and use the 'Shapely' spelling that appears in their abstract.

3. TreeSHAP and KernelSHAP are not the same instrument

Exact Shapley values require evaluating the model on every subset of features — exponential in the number of inputs, hopeless beyond about fifteen. Two approximations dominate. TreeSHAP exploits the structure of decision trees to compute the same values in polynomial time, which is why it is exact for the random forests and boosted trees in Guo et al. and Achu et al. KernelSHAP is model-agnostic: it samples coalitions, fits a weighted linear regression, and returns approximate values — which is what is available for the MLP, TabNet and TabKANet models in Dwivedi et al., and for the CNN-LSTM in Shawon et al. The subtle part, and the one almost never reported, is the background set: 'the feature is absent' has to be simulated by replacing it with values from a reference sample, and the choice of that sample (training mean, a random draw of 100 rows, zeros) changes the numbers. When you compare SHAP rankings across two papers, you are comparing two choices of baseline as much as two models.

4. How to read a beeswarm — and the three ways people misread it

A SHAP summary plot puts one dot per sample per feature. The horizontal axis is the SHAP value, i.e. how much that feature pushed this prediction away from the baseline in model-output units. The colour is the feature's own value (red high, blue low). The rows are ordered by mean absolute SHAP, which is why the top row is 'the most important variable' — important meaning the largest average movement of the output, not the largest effect in the field. Three standard misreadings: first, reading the width of the cloud as confidence, when vertical spread is mostly interaction with other features; second, comparing bar lengths across papers that used different baselines and different output scales (log-odds here, kg m-2 there); third, treating a red cluster on the positive side as 'high values cause high risk' when it only means 'in this model and this dataset, high values pushed the prediction up'. Keep the sentence 'in this model' attached to every clause you write from a beeswarm.

5. Dependence plots and PDP: thresholds are real, causality is not

A SHAP dependence plot takes one feature, plots its value on x and its SHAP value on y, one dot per sample, often coloured by a second feature to expose interaction. A partial dependence plot does something different: it averages the model's prediction over the observed distribution of all the other features while forcing this one to each value on the grid. Both answer 'how does the model respond as this variable moves', and both are how Guo et al. read thresholds — the point where bulk density switches from a negative to a positive contribution, or where elevation's influence turns over. The trap is specific to PDP: averaging over the marginal distribution means the model is being asked about combinations of variables that never co-occur (high elevation with a tropical mean annual temperature, say), and a flexible model will answer confidently in that empty region. SHAP dependence avoids this by keeping real samples, at the cost of a noisier curve. Neither is a dose–response experiment.

6. Deep models: gradients, baselines, and why attention is not an explanation

For a network, attribution usually means integrated gradients: pick a baseline input x', integrate the gradient of the output along the straight path from x' to the actual input x, and attribute the difference f(x) − f(x') to the features in proportion to that integral. It satisfies completeness (the attributions sum to the output difference) and sensitivity, but it is defined only relative to the baseline — zeros, the mean soil profile, a physically 'neutral' spectrum — and the baseline is the researcher's choice, not a property of the data. Dwivedi et al. use TabNet and TabKANet, whose attentive transformer produces feature-selection masks at each decision step; those masks look like explanations and are frequently reported as such, but they are a learned routing device inside the model, with no axiom forcing them to reflect contribution. That is why the paper still runs SHAP on those models instead of quoting the attention weights as its explanation.

7. Counterfactuals: from 'why' to 'what would have to change'

Attribution tells you what the model used; a counterfactual tells you what would have to be different for the answer to change. Formally you search for an alternative input x' that crosses the decision boundary while staying close to x. Wachter et al.'s formulation minimises the distance to x subject to the new prediction hitting the desired class; DiCE, used by Congress et al., adds two terms — one penalising large changes, one penalising similarity between the returned alternatives — so that you get k distinct, minimal, valid 'what-ifs'. The output is not a ranking but a recipe, which is exactly what a remediation decision needs. The catch is feasibility: a counterfactual that says 'lower the slope angle by 6 degrees' is a statement about the model, not an engineering option, and DiCE has no notion of which variables a manager can actually move. Dwivedi et al. are careful to call theirs a preliminary guide, and that hedge is the honest part of the paper.

8. What no explanation can give you

Four limits apply to everything on this page. (i) An explanation is not a causal claim: SHAP quantifies how the fitted function uses a feature, and Guo et al. say so explicitly — 'model-based associations rather than direct evidence of ecological causality'. (ii) It is not a validation: a model can be explained beautifully and still be wrong where it is extrapolating, which is why the split design in each paper matters more than its beeswarm. (iii) It is not stable by construction: correlated predictors share credit arbitrarily, and two runs of the same pipeline with a different seed can reorder the middle of the ranking. (iv) It is not free: KernelSHAP and LIME cost per-instance sampling, and the number of explanations in a paper is usually a compute budget, not a design decision. The useful habit is to ask, for every figure: which of these four does this figure survive?

If you want to…Reach forThen check
Rank variables for a monitoring programmeMean |SHAP| or permutation importanceThat correlated variables are not double-counted, and that the ranking is stable across seeds
Explain one decision to a non-modellerSHAP local waterfall, or a counterfactualThat the explanation is in units the decision-maker uses (kg m-2, percent yield, class)
Find a threshold worth testing in the fieldSHAP dependence plotThat the threshold sits inside the observed data range and is not an artefact of binning
Compare two models fairlySame explainer, same background set, same splitThat the difference is not just a different baseline
Justify a new measurement or sensorAblation plus SHAP on both modelsThat accuracy and explanation move together — otherwise the new variable is decoration
A useful discipline: for every explanation you publish, name the object (global ranking, local attribution, marginal curve, counterfactual), the baseline, and the split. Three nouns, and the reader can reproduce the argument.

Abstracts alone are 1,805 words, reproduced verbatim so you can quote them. Figures, deep-read notes and translations add roughly another 20 minutes per paper.

Paper 1 of 5
Rung 1 — the canonical case: SHAP ranks the drivers of soil N and P

Guo et al. (2026) · Land 15, 843 · doi:10.3390/land15050843

The Driving Forces and Spatial Predictions of Soil Total Nitrogen and Soil Total Phosphorus Using Machine Learning and Explainable AI: A Case Study of Grasslands in Qinghai Province, China

In one line: SHAP turns four black-box models into a direction-signed, ranked driver list for grassland TN and TP, and the ecology it reports is plausible — but the whole chain sits on 97 samples, one random 80/20 split, and in-sample attributions. The TN and TP rankings also come from two different algorithms (XGBoost vs RF), so part of the headline 'TN is driven by vegetation, TP by elevation' contrast is a model contrast, not a soil contrast.
Abstract — verbatim, as printed205 words

Soil total nitrogen (TN) and soil total phosphorus (TP) are key soil quality indicators and provide critical ecological functions in the grasslands. This study analyzed the driving factors of TN/TP in the grasslands of Qinghai Province based on Shapley additive interpretation (SHAP) analysis. Four machine learning methods, namely random forest (RF), XGBoost 3.2.0, support vector machine, and Cubist, were used to establish spatial prediction models for TN/TP. Vegetation factors (Net Primary Production and Normalized Difference Vegetation Index) and precipitation-related factors (Aridity Index and Mean Annual Precipitation) were the most important variables for TN, indicating plant productivity and precipitation are strongly associated with TN accumulation. Elevation and temperature-related factors (Mean Annual Temperature and evapotranspiration) were the most important variables for TP, demonstrating that elevation-mediated temperature was the major factor affecting the TP accumulation. XGBoost and RF were the optimal models for TN and TP, respectively. TN exhibited a decreasing spatial trend from east to west, while the northwestern and southwestern areas showed relatively higher and lower TP, respectively. Total TN and TP stocks were estimated to be 3.57 × 108 t and 0.88 × 108 t, respectively. This study provides data support and suggestions for sustainable soil nutrient management in the grasslands on the Qinghai-Tibet Plateau.

Deep understanding — the parts worth slowing down for

What they actually did

Ninety-seven topsoil samples (0–30 cm) were collected across Qinghai grasslands in July–August 2023, five 5 × 5 m quadrat subsamples bulked per site, analysed for TN by Kjeldahl and TP colorimetrically, and converted to areal density (kg m−2) using core bulk density, a fixed 30 cm depth and a >2 mm fragment fraction from SoilGrids. Fifteen predictors in four blocks — seven climate, two vegetation, four soil, two topographic — were averaged over 2010–2023 and resampled to 1 km. Four algorithms (RF, XGBoost 3.2.0, SVM-RBF, Cubist) were fitted in R 4.5.2/caret with grid search on a single random 80% calibration set (n = 80); the held-out 17 samples scored R², RMSE and RPD. The winner per property — XGBoost for TN (R² 0.71, RPD 1.87), RF for TP (R² 0.62, RPD 1.64) — was applied to the 1 km stacks to map density, and quantile regression forest produced a per-pixel 90% prediction interval (5th–95th percentile spread over 100 runs). SHAP, run separately in Python 3.9 on those two fitted models, produced the importance bars, beeswarms and dependence plots that carry the driver argument. Stocks are mean predicted density times grassland area: 0.84 kg m−2 and 3.57 × 10^8 t for TN, 0.21 kg m−2 and 0.88 × 10^8 t for TP.

The XAI layer — what was explained, and how

Shapley values were computed with the Python shap package (stated only as 'the SHAP package, Python 3.9') on the best model per property: XGBoost for TN and RF for TP. Those models were trained separately in R 4.5.2 through caret ('rf', 'xgbTree', 'svmRadial', 'cubist') with grid-searched hyperparameters — XGBoost used 300 trees, learning rate 0.01, max depth 4 — and the paper never says whether the Python explanation re-fitted the model or loaded the R object. No background/reference set, no TreeSHAP-versus-KernelSHAP choice and no data split are reported for the explanation, so the values must be read as in-sample attributions over the calibration sites. Units are the target's own: SHAP values and mean absolute SHAP values are in kg m−2, which is why the TN importance axis runs to about 0.12 and the TP axis only to about 0.014. The 'partial dependence' panels are not grid-marginalised PDPs but per-sample scatter of Shapley value against raw feature value, with a smoothed trend and confidence band overlaid; the printed breakpoints (MAP 506.94 mm, AI 0.63, silt 42.77%) are where that smoother crosses zero.

Why the explanation works — and where it overfits

The framing works because the target is a slowly cumulating property: 14-year climate and vegetation means on a 1 km grid are a defensible predictor set, tree ensembles capture the nonlinearity and interaction that a correlation matrix cannot, and Shapley values give an additive decomposition (prediction = base value + sum of feature contributions) that is auditable per sample. The resulting split — productivity and precipitation for TN, elevation and temperature for TP — reproduces textbook soil geochemistry, which is why it reads as insight rather than arithmetic. The failure mode is that the model may be learning geography rather than process: 97 sites over 722,300 km2, a strong east–west precipitation gradient and a strong elevational gradient mean a tree model can reach R² 0.71 largely by partitioning space. SHAP then has no way to say 'this is spatial autocorrelation'; it hands the credit to whichever correlated layer — MAP or AI, MAT or ET — the trees happened to split on, and the dependence curves look ecologically coherent either way. That is the overfit here: not a bad fit, but a well-fitting map of location dressed as a set of environmental mechanisms.

What is genuinely new

Almost nothing is new methodologically. SHAP plus RF/XGBoost for soil nutrients is a standard recipe by 2026, and the 'two-step' design — best-ML mean prediction plus QRF uncertainty — is a combination of two existing tools rather than an invention; the paper's own introduction concedes both components are established. What is genuinely added is a case: paired 1 km TN and TP stock maps with per-pixel intervals for Qinghai grasslands from one sampling campaign, and an explicit side-by-side driver contrast for two nutrients that are usually modelled separately. Against the obvious baseline — its own Figure 3 correlation matrix, where the strongest linear correlates are NDVI/NPP/AI/MAP for TN (0.21–0.71) and elevation for TP (−0.68) — SHAP buys direction, nonlinearity and a joint ranking, and nothing more; the top three (NPP, NDVI, MAP) are the same ones the correlation matrix already flagged. The baselines the paper did not run matter more: no regression-kriging or multiple-linear comparator (the classical benchmark its own introduction cites), no spatial cross-validation, no permutation or ALE cross-check of the ranking, and no variance partitioning to separate climate from vegetation.

Where the number comes from — and where it leaks

R² 0.71 comes from 17 samples and one random draw, so the gap to Cubist (0.70) and RF (0.61) is not a ranking — a 17-point test set cannot resolve it, and no confidence interval or repeated split is reported. The stock headline is mean predicted density times grassland area: 0.84 kg m−2 × 0.5667 × 722,300 km² gives 3.44 × 10^8 t, whereas the printed 3.57 × 10^8 t implies a mask of about 4.25 × 10^5 km², i.e. a slightly larger grassland extent than the stated 56.67%; TP behaves the same (0.86 vs 0.88 × 10^8 t from 0.21 kg m−2). Neither total carries an error term, though the TN RMSE of 0.32 kg m−2 is 38% of the 0.84 kg m−2 mean — a 10% systematic bias moves the stock by 0.36 × 10^8 t, more than the difference the paper is proud of. The SHAP breakpoints (506.94 mm, 42.77%, 0.63) are three-significant-figure readings off a smoother through 97 dots, and the TP uncertainty contour of 0.04 kg m−2 is 19% of the 0.21 kg m−2 mean for a model whose RMSE is already 0.035.

🧭 Read the figures in this order: Open Figure 4 first because it is the global attribution the entire driver argument rests on, then Figures 5 and 7 for the marginal-effect readings, Figure 6 to see the ranking flip when the model class changes for TP, Figure 3 as the naive baseline SHAP is sold against, and Figure 8 last as the spatial product with its separate uncertainty layer.
data
97 topsoil samples (0–30 cm) from Qinghai Province grasslands, July–August 2023, spanning alpine meadow, alpine steppe, temperate steppe and desert steppe; 15 environmental predictors averaged 2010–2023 and resampled to 1 km.
instruments
Kjeldahl digestion for TN (g/kg); UV-spectrophotometer colorimetry for TP (g/kg); bulk density by 100 cm3 core; coarse fragments from SoilGrids250m v2.0; SRTM v4.1 for elevation and TWI; WorldClim and RESDC for climate; NPP/NDVI from the National Tibetan Plateau Data Center.
model
RF, XGBoost 3.2.0 (300 trees, lr 0.01, depth 4), SVM-RBF and Cubist in R 4.5.2/caret with grid search; QRF for per-pixel 90% prediction intervals; SHAP in Python 3.9 on the selected XGBoost (TN) and RF (TP).
validation
One random 80/20 split of the 97 samples (n = 80 calibration, n = 17 validation). No spatial blocking, no repeated cross-validation, no independent site or region held out.
metrics
R², RMSE (kg m−2) and RPD on the 17 held-out samples; QRF 90% prediction interval width per pixel.
Figure 4
Figure 4 SHAP beeswarm and mean-absolute-SHAP bar chart for the XGBoost TN model👀 Look at: The NPP row of the beeswarm: high-NPP (red) points sit far right of zero while low-NPP (blue) points sit left, and NPP's spread is wider than any other row — read against the x-axis scale, which is in kg m−2 of predicted TN, so the biggest single lever moves a prediction by a large fraction of the 0.74 kg m−2 mean.🔬 What the XAI is doing here: This is the canonical global attribution object: for every one of the sampled sites the model's prediction is decomposed into a base value plus one Shapley value per feature, and the horizontal position of each dot is that site's own contribution in kg m−2. The colour is not a second statistic — it is the raw feature value binned into a Low–High ramp, so a colour gradient along the x-axis is the visual signature of a monotone effect, and a mixed colour at one x position means the effect depends on other features. The bar panel collapses the same numbers to mean absolute SHAP, which ranks influence while throwing away sign, so a variable can top the bars while pushing predictions both ways. What it cannot tell you: whether NPP causes TN, or whether the ranking survives at an unsampled site or under another algorithm — the explanation is a statement about one fitted function, and the paper never states which data it was evaluated on.Figure 4. SHAP variable importance scores for TN derived from the optimal XGBoost model. The x-axis shows the mean absolute SHAP value, quantifying the average contribution of each environmental…tap the figure to open it full size
Figure 5
Figure 5 SHAP dependence plots of TN Shapley values against NPP, NDVI, MAP, BD, AI and silt👀 Look at: Panel (c), MAP: the smoothed red curve climbs, peaks and then falls back through zero, with a printed vertical marker at the crossing — the model has learned an optimum in precipitation, not a monotone effect, and the zero-crossing is where the paper's 506.94 mm 'threshold' comes from.🔬 What the XAI is doing here: Each dot is one soil sample: x is the measured value of that feature, y is that sample's Shapley value for that feature in the TN model — not the predicted TN, and not a marginal prediction. The red line is a smoother fitted through those dots with a band, and the red vertical marker is where the smoother crosses zero, i.e. where the feature stops adding to the prediction; that is how the paper's 506.94 mm MAP and 42.77% silt 'thresholds' were produced. Because the y-axis is an attribution, the plots add up across panels to each prediction's deviation from the base value, which is what makes them readable as a decomposition. What they are not: a ceteris-paribus partial dependence computed on a grid with other features held fixed — with correlated predictors the scatter carries the influence of the twins, so a bend can belong to MAP or to aridity index.Figure 5. Partial dependence plots of average Shapley values versus NPP (a), NDVI (b), MAP (c), BD (d), AI (e) and Silt (f) for TN. Each dot represents a single soil sample.tap the figure to open it full size
Figure 6
Figure 6 SHAP beeswarm and mean-absolute-SHAP bar chart for the random forest TP model👀 Look at: The elevation row tops both panels, and then the x-axis scale: the whole TP ranking sits inside about ±0.015 kg m−2, roughly a tenth of the TN spread in Figure 4 — the top TP 'driver' moves a prediction by a fraction of the 0.21 kg m−2 mean, which is the honest measure of how weak this explanation is.🔬 What the XAI is doing here: Same object as Figure 4 but attached to a different fitted function — a random forest for TP, chosen because it beat XGBoost (0.62 vs 0.46 R²) on the 17-sample hold-out, which means the TP ranking and the TN ranking are products of two different model classes and are not strictly comparable. Shapley values here are still per-sample additive contributions in kg m−2, but tree ensembles with deep interactions make the coalition average depend on how correlated features are handled, and the paper does not say which variant was used. The beeswarm's vertical thickness is just sample density jittered for visibility, so a fat row means many sites share that attribution, not that the effect is strong. It cannot tell you whether elevation is a driver or a proxy for temperature, parent material and grazing history that all vary along the same gradient.Figure 6. SHAP-derived variable importance scores for TP. The x-axis shows the mean absolute SHAP value, quantifying the average contribution of each environmental variables to TP model predictions.tap the figure to open it full size
Figure 7
Figure 7 SHAP dependence plots of TP Shapley values against elevation, ET, isothermality, BD, MAT and AI👀 Look at: Panels (a) and (e) as a pair: elevation falls and MAT rises over the same sites, with similar curvature — the model is describing one temperature gradient through two correlated variables, which is exactly the attribution ambiguity to watch for.🔬 What the XAI is doing here: These are the TP counterpart of Figure 5: per-sample Shapley value on the y-axis against the raw feature on the x-axis, a smoother and band, and markers at sign changes — every dot is a real site, so the density of dots shows where the model has data and where it is extrapolating. Read them as 'how the fitted RF moves its TP prediction as this variable changes at fixed model context', not as a controlled experiment: no other variable is held fixed, so the visible trend mixes the feature's own effect with its correlations. The panels also show the range problem — the smoother's confidence band widens at both ends of each axis, where a handful of sites carry the curve, and the BD panel's non-monotone dip-then-rise is the classic signature of a tree ensemble fitting two subgroups rather than a physical threshold. None of this identifies a mechanism; it identifies where the model's response surface bends.Figure 7. Partial dependence plots of average Shapley values versus Elevation (a), ET (b), Isothermality (c), BD (d), MAT (e) and AI (f) for TP. Each dot represents a single soil sample.tap the figure to open it full size
Figure 3
Figure 3 Pearson correlation matrix of TN, TP and the environmental variables👀 Look at: The TN column against the TP column: TN's strongest cells are the vegetation and precipitation block while TP's strongest cell is elevation — and then look at the MAP–AI and MAT–ET cells inside the matrix, which are near-solid blocks; those are the pairs whose SHAP credit is not separable.🔬 What the XAI is doing here: This is the pre-model baseline, not an XAI object: each cell is a pairwise Pearson r over the 97 samples with p-value stars, computed with no model in the loop, so it measures marginal linear association only and cannot see interactions or thresholds. Its role in the argument is rhetorical — the authors use it to show that 'almost all variables correlate with TN' and then argue that correlation cannot apportion independent contribution, which is the licence for SHAP. Read the colour bar as signed r, and read the blank/near-white cells as linear independence at this sample size rather than absence of effect. What it structurally cannot do: separate overlapping predictors (the near-collinear climate block), represent a non-monotone response, or tell you what the model actually uses — which is precisely why the SHAP ranking can disagree with it.Figure 3. Pearson correlation matrix among TN, TP, and 16 environmental variables. Blue and red indicate positive and negative correlations, respectively. '***' denotes p < 0.001.tap the figure to open it full size
Figure 8
Figure 8 Predicted TN density map (a) and QRF 90% prediction-interval width map (b)👀 Look at: Compare where panel (a) is red (>2 kg m−2, Qilian Mountains and around Qinghai Lake) with where panel (b) is red (>1.2 kg m−2, the south-central/eastern belt): the highest predicted stocks and the widest intervals are not the same places, and the northwest desert is confidently low.🔬 What the XAI is doing here: Panel (a) is not an explanation at all — it is the fitted XGBoost function evaluated on 1 km rasters, a prediction surface, and its credibility rests entirely on the 0.71 R² from 17 points. Panel (b) is an uncertainty object of a different kind: a quantile regression forest gives a conditional distribution per pixel, and the map plots the 90% interval width (95th minus 5th percentile) accumulated over 100 runs, so red means 'the model's own ensemble disagrees here', usually where training sites are sparse. The two panels come from different algorithms, so (b) is not the error bar of (a); it is an independent estimate of how thin the local data are. What it cannot tell you: whether the interval covers the true value (no coverage test is reported), or whether the map's east–west gradient is a prediction or a re-drawing of the precipitation raster it was trained on.Figure 8. Spatial pattern (a) and spatial uncertainty (b) of TN stock (kg m−2) at 0–30 cm depth in the grasslands of Qinghai Province. Uncertainty is the 90% prediction interval from QRF.tap the figure to open it full size

The numbers that matter

What it does not prove

  • A single random 80/20 split with 17 validation points means 'XGBoost beats Cubist by 0.01 R²' is unsupported, and no spatial cross-validation was run at all.
  • SHAP is reported for the selected model with no stated data split or background set, so the attributions are most plausibly in-sample and describe an in-sample fit rather than drivers that hold at unsampled sites.
  • The TN and TP explanations come from different algorithms (XGBoost vs RF), so the TN-vs-TP driver contrast is confounded with the model choice.
  • With MAP and AI (and MAT and ET) nearly collinear, individual Shapley credits are not identifiable; swapping one twin for the other could reorder the ranking.
  • The uncertainty map is a QRF interval for a different model than the map it accompanies, so panel (b) is not the uncertainty of panel (a).
  • Stocks are density times area with no error propagation, and the implied grassland area behind 3.57 × 10^8 t exceeds the stated 56.67% grassland share.
Research translation

What this teaches me

An attribution layer is only as trustworthy as the split it was computed on: here the explanation is global, in-sample and model-specific, so it answers 'what does this fitted model use?' and not 'what drives TN in Qinghai'. The honest reading of a SHAP bar chart is a hypothesis about the model's behaviour, which then has to survive a second algorithm and a spatially separated test.

How it connects to my research

This is the same trap as wavelength importance in spectral models: with 300+ correlated bands — or here MAP and AI, MAT and ET — Shapley credit is split arbitrarily, so a top-ten variable list is not an identifiable ranking. The fix he already owns is the experimental one: spatially blocked or library-held-out validation, a second model, and a stability check across folds, which would show whether the driver order is a property of the soil or of one 80/20 draw.

One actionable takeaway

Before publishing any SHAP ranking, re-run it on a spatially blocked split and on the runner-up algorithm and report what reorders — if the top five hold, call them drivers; if not, call them model artefacts.

Paper 2 of 5
Rung 2 — SHAP as evidence: does a new variable block actually earn its place?

Achu et al. (2026) · Engineering Geology 364, 108599 · doi:10.1016/j.enggeo.2026.108599

Catena matters: Enhancing landslide prediction with soil profile characteristics and explainable AI

In one line: Adding a 34-variable multi-depth soil block to a 10-variable DEM set moves AUROC only from 0.902 to 0.912 in slope units and 0.897 to 0.902 on the grid, so the SHAP evidence is far stronger than the accuracy evidence. The catch: that gain is the same size as the grid-versus-slope-unit choice, no confidence interval or significance test is given, and the test split is never described.
Abstract — verbatim, as printed262 words

Landslide activity is driven by complex interactions among geo-environmental factors, yet most machine-learning-based landslide susceptibility models primarily rely on topographic variables derived from digital elevation models (DEMs), often neglecting the role of depth-dependent soil profile characteristics. This study addresses this gap and advances landslide predictive capabilities by integrating soil geotechnical and hydrological properties at multiple soil profile depths using a Random Forest (RF) model framework coupled with the Shapely additive explanations (SHAP)-based explainable artificial intelligence (XAI) for model interpretability. Demonstrated in the Muthirapuzha River Basin (MRB) of the southern Western Ghats (SWG), India, the study compares both grid unit-based (GUB) and slope unit-based (SUB) mapping approaches. Results suggest that integrating soil properties at multiple depths (10 cm, 110 cm, and 210 cm) significantly improves model accuracy and minimises overestimation compared to a model relying solely on topographic variables. Key predictors included field capacity (FCY), chemical index of alteration (CIA), liquid limit (LLT), and unsaturated hydraulic conductivity (Kunsat), alongside topographic factors, such as slope angle and topographic wetness index (TWI). SUB approach outperforms GUB in terms of area under the receiver operating characteristic curve (AUROC) and provides a better understanding of landslide depth and volume. SHAP values and waterfall plots are critical in interpreting model predictions and elucidating feature contributions, enhancing their potential for site-specific landslide risk assessments. The consistency of variable importance rankings across mapping units further reinforces the robustness of the selected predictors. This study highlights the critical role of soil profile characteristics in landslide susceptibility modelling and advocates integrating XAI techniques to enable transparent, physically meaningful predictions in mountainous regions.

Deep understanding — the parts worth slowing down for

What they actually did

The setting is the 645 km2 Muthirapuzha catchment in the southern Western Ghats (446–2683 m a.s.l.), where 372 landslides were compiled from Geological Survey of India archives and from field surveys since 2018. Soil was sampled at 65 locations at three depths — 10 cm (surface), 110 cm (regolith) and 210 cm (weathered zone) — for texture, porosity, bulk density, Atterberg limits, field capacity, wilting point and Kunsat, with Ksat at 10 cm, specific gravity at 110 cm and XRF-based CIA at the ~220 cm rock interface; Atterberg limits came from 65 surface samples but only 40 each at 110 and 210 cm. Every soil property was interpolated to a 30 m grid by IDW (power 2, 12 neighbours), which is the step that turns 65 pits into basin-wide predictors. The same inventory was modelled twice: on 30 m pixels (GUB) and on 4017 slope units from GRASS r.slopeunits (minimum area 20,000 m2, circular variance 0.19, clean size 10,000 m2, threshold 100,000; units 4.5 × 10^3 to 1.03 × 10^6 m2). Four Random Forests (mtry 6, ntree 3000, grid-searched) were fitted: GUB1 and SUB1 with the 10 topographic predictors plus the depth-wise soil block, GUB2 and SUB2 with topography alone. AUROC, recall, precision, specificity, F1 and accuracy were computed on what the paper calls independent test data.

The XAI layer — what was explained, and how

TreeSHAP (the exact polynomial-time algorithm for tree ensembles, not Kernel SHAP) is applied to the 3000-tree forests: each feature's contribution is the Shapley value of the conditional expectation of the RF output, obtained by walking every tree and accumulating the change in expected value along each root-to-leaf path. mtry = 6 and ntree = 3000 are stated for all four models, but the background/reference set, the number of explained instances and whether SHAP ran on training or on the independent test rows are never reported. Global importance is drawn as a beeswarm ordered top-to-bottom, with the x-axis the SHAP value and colour the feature's own value (blue low to red high); the caption fixes only the sign convention, positive meaning toward higher susceptibility. Local attribution is shown as waterfall plots for two named landslides, and Fig. 9 aggregates the rank-2 and rank-3 feature of every landslide's waterfall into a transition diagram before and after the soil block entered.

Why the explanation works — and where it overfits

The design is a clean block ablation: same inventory, same algorithm, same hyperparameters, only the feature block and the mapping unit change, so a metric difference is attributable to the block or the unit rather than to model choice. Pairing it with SHAP converts a performance claim into a mechanism claim — Fig. 9 does not say 'soil matters', it says 'for this landslide the second-ranked feature was TWI before and FCY110 after', which is a falsifiable statement about individual predictions and is the paper's best evidence. The failure mode is that the framework cannot separate discrimination from calibration. The soil block drops mean predicted susceptibility from 0.44 to 0.36 on the grid while AUROC moves 0.897 to 0.902, and 0.902 to 0.912 in slope units; a model that mostly became less pessimistic has been read as a model that became more accurate, and 'overestimation' is never defined against the observed landslide proportion. The second failure is spatial: the soil layers are IDW surfaces from 65 points, so a landslide near a sampled pit inherits sharper soil values than one far away, and with no spatial holdout the forest can learn interpolation artefacts rather than soil physics.

What is genuinely new

Against the standard DEM-only landslide model the addition is real but narrow: a depth-resolved geotechnical block (ten properties at three depths plus Kunsat, Ksat, SGY110 and CIA, i.e. 34 soil variables against 10 topographic ones) from primary field sampling rather than secondary texture maps. Reichenbach et al.'s 5.2% figure is the gap being filled, and 65 pits at three depths is more than most such studies attempt. The second novelty is methodological: running one block under grid and slope units and reporting that the better unit flips with the block (slope units for soil-inclusive, grid for topographic-only) is a testable claim about unit-predictor interaction rather than another case study. What is missing is the ablation that would make 'depth-wise' mean anything. Nobody runs a 10 cm-only model, so the 110 and 210 cm horizons are never shown to add anything over surface soil; nobody runs soil without topography, so the block never has to stand alone; and nobody collapses 34 soil variables into one texture or clay variable, so parsimony is untested. A permutation-importance or single-feature-drop test would have cost nothing and separated 'more variables' from 'better variables'.

Where the number comes from — and where it leaks

Every headline number comes from one test partition whose construction is never described: no sample counts, no positive-to-negative ratio, no statement that test polygons are spatially disjoint from training landslides. The AUROC gains are 0.005 (GUB2 0.897 to GUB1 0.902) and 0.010 (SUB2 0.902 to SUB1 0.912) with no confidence interval, no DeLong test and no seed variation, and the topographic-only SUB2 already reaches 0.902 — exactly the soil-inclusive GUB1 — so the mapping-unit choice is worth as much as the entire soil block. Table 2 makes the calibration problem explicit: SUB2 has AUROC 0.902 but accuracy 0.767, a threshold far from any sensible operating point. The overestimation claim rests on mean predicted susceptibility 0.44 and 0.41 against 0.36 and 0.37, and on mean differences of −0.051 (SD 0.217) and −0.049 (SD 0.209): an effect of about a quarter of a standard deviation, and '59% of pixels decreased' is what such a shift with that spread mechanically produces. Finally, Table 3's within-group df of 45 and 38 imply 47 and 40 landslides in the depth and volume tests — about 12% of the 372 — while the 70/30 soil-versus-topographic split is stated for the whole inventory.

🧭 Read the figures in this order: Open Figure 10 first — the beeswarm is the object the whole argument rests on — then Figure 9 to see which landslides had their explanation rewritten, Figure 11 for the shape of those effects, Figure 12 for one local case and the depth/volume check, Figure 2 for where SHAP sat in the pipeline, and Figure 6 last as the map the explanation is supposed to justify.
data
372 mapped landslides in the 645 km2 Muthirapuzha River Basin, Western Ghats, Kerala (446–2683 m a.s.l.); 65 soil sampling locations; 30 m analysis grid; 4017 slope units.
instruments
SRTM DEM derivatives in SAGA GIS; Landsat 8 OLI (4 March 2024) for LU/LC; GSI 1:50,000 lithology; Survey of India sheets and OSM for streams and roads. Laboratory: sieve and hydrometer, Casagrande apparatus, pressure plate, Mini Disk Infiltrometer (disk radius 2.25 cm, suction 0.5–0.6 cm), constant-head Ksat, XRF for CIA.
model
Random Forest, mtry = 6, ntree = 3000, grid-searched; four models — GUB1 and SUB1 (topographic + depth-wise soil), GUB2 and SUB2 (topographic only).
validation
A single 'independent test dataset' per model. Size, sampling design and spatial separation from the training landslides are not reported; no cross-validation folds, no spatial block holdout, no repeated seeds. OOB error is described in the theory section but no OOB value is given.
metrics
AUROC, recall, precision, specificity, F1, accuracy; plus mean and SD of predicted susceptibility, pixelwise differences between models, and one-way ANOVA on landslide depth and log-normalised volume.
Figure 10
Figure 10 SHAP beeswarm summary of the soil-inclusive models, GUB1 (a) and SUB1 (b)👀 Look at: The FCY110 row — red points pile to the right of zero and blue to the left, so the forest learned a monotone 'wetter mid-profile, more susceptible' rule; then the TWI row, where the paper reports the colour order inverting, low TWI to the right.🔬 What the XAI is doing here: Two SHAP beeswarm summaries produced by TreeSHAP on the 3000-tree forests: each dot is one prediction, its x-position is that feature's SHAP value for that prediction, its colour is the feature's own value on a blue(low)-to-red(high) scale, and rows are ordered by global importance. Read a row three ways — position (direction of push), colour order (monotone or not) and spread (how much the feature moves individual predictions at all). It cannot give you the shape of the effect (that is the dependence figure's job), any interaction partner (only one colour is used), or any stability estimate: there are no error bars on the importance order and no repeat across seeds, so 'FCY110 is second' is a point estimate from one fitted forest. The scale of the SHAP values is also unstated — probability or log-odds is never specified, so the magnitudes are not comparable to anything outside this figure.Fig. 10. SHAP summary plots for (a) GUB1 and (b) SUB1 models. Positive values indicate prediction toward higher susceptibility, while negative values indicate prediction toward low susceptibility.tap the figure to open it full size
Figure 9
Figure 9 Chord diagram of rank-2 (a) and rank-3 (b) predictors migrating from topographic to soil attributes👀 Look at: The ribbons crossing from TWI, Road and the curvature nodes into FCY110 and CIA: those crossings are the paper's actual claim, and the absence of any printed count on the ribbons is what stops you checking how many landslides moved.🔬 What the XAI is doing here: This is an aggregation of local explanations, not a global importance plot: for every landslide the waterfall ranking is read off before and after the soil block enters, and a ribbon connects the predictor holding rank 2 (panel a) or rank 3 (panel b) in the topographic model to whichever predictor holds that rank in the soil model. Read it as a migration matrix — self-loops are landslides whose explanation did not change, cross-links are landslides whose explanation was rewritten — with ribbon width standing for a count of landslides, though no numbers are printed on the flows. It cannot tell you effect size or direction: a feature can climb from rank 3 to rank 2 while contributing almost nothing, and rank is a within-prediction ordering, so it says nothing about how strongly any landslide is predicted. Because the same 372 landslides are re-explained in both models, every weakness of the underlying forest propagates into the diagram.Fig. 9. Transformation of (a) second- and (b) third-ranked predictors of each landslide from topographic to soil attributes after inclusion of depth-wise soil attributes.tap the figure to open it full size
Figure 12
Figure 12 Slope units classified by dominant SHAP block, two local waterfall explanations, and depth/volume by group👀 Look at: The pie, not the map: 69.7% soil against 30.3% topographic (read off the pie) is a sum over 34 soil variables versus 10 topographic ones, so the split partly measures block size; then panel (d), where the soil-dominated group sits near 5.5 m against about 1.15 m.🔬 What the XAI is doing here: Panel (a) is a per-unit classification built from local SHAP: for each landslide's SUB1 prediction the soil-related contributions are summed, the topographic ones summed, and the slope unit coloured by whichever block wins. Panels (b) and (c) show the underlying object — a waterfall decomposition running from the base value E[f(X)] to the individual f(x), each bar a feature's push with its contribution printed beside it. Panels (d) and (e) are the one external check, plotting measured depth and log-normalised volume for the two SHAP-defined groups. It cannot establish causation, and the aggregation itself is suspect: the paper does not say whether the block sums are signed or absolute, and summing signed attributions across a correlated block (FCY110 + FCY210 + CIA + LLT) double-counts shared information, which favours whichever block has more correlated members — here, soil. At print resolution the waterfall's printed contributions are too small to read, so only bar direction is usable from that panel.Fig. 12. (a) Spatial distribution of slope units with landslides dominated by topographical and soil attributes, SHAP waterfall plots for the (b) Kundala and (c) Munnar College landslides; (d-e) depth and volume by group.tap the figure to open it full size
Figure 11
Figure 11 SHAP dependence plots for the top predictors, GUB1 and SUB1👀 Look at: Panel (a), slope: the SHAP cloud sits near −0.15 below about 10°, steps up to roughly zero between 10 and 15°, then creeps to +0.10 by 45° — a step, not a ramp, which is what a split in the trees looks like.🔬 What the XAI is doing here: Small-multiple dependence plots: the feature's measured value on x, its SHAP value on y, so each dot is the same per-prediction attribution as in the beeswarm but now plotted against the feature itself. This is the marginal-effect view — it shows whether an attribution rises linearly, saturates, or switches sign at a threshold, which the summary plot cannot show, and the vertical scatter at a given x is the un-modelled interaction. Read knees and plateaus rather than individual points: the slope step at 10–15°, FCY110 climbing to about 30% and levelling, TWI falling as it rises. It cannot tell you that a knee is physical — it is where the forest's splits sit — and with a single colour and no interaction index, any dependence on a second feature is invisible; the caption's lettering (a–e for GUB1, f–j for SUB1) also contradicts the body text's 'top six variables in each model', so cite panels by feature name.Fig. 11. SHAP dependency plots for top predictors in (a-e) GUB1 and (f-j) SUB1 models.tap the figure to open it full size
Figure 2
Figure 2 Methodology flow: inventory and two feature blocks through mapping units and RF to SHAP and k-means👀 Look at: The single SHAP box that both feature blocks and both mapping-unit paths feed into: one attribution stage serving four models, with no branch showing which model or which split it was run on.🔬 What the XAI is doing here: This is the analysis architecture, not a result, and it fixes the provenance of everything downstream: inventory plus two feature blocks, a mapping-unit choice, Random Forest, validation, then SHAP, with k-means clustering sitting beside SHAP rather than inside it. Read the arrows as the answer to 'what is being explained' — the attributions attach to the RF box, and the clustering is a second, unsupervised view of the same predictors rather than part of the attribution. It cannot tell you anything quantitative: no sample counts, no split sizes, no background-set size, and no indication whether SHAP ran on training or test rows, so the diagram is silent on the one detail that decides whether the attributions are trustworthy. It also hides the asymmetry that matters most — the topographic-only models get no SHAP panel in the main text, only in the supplement.Fig. 2. Overall methodology illustrating data acquisition, processing, model development, and SHAP-based interpretation used in this study.tap the figure to open it full size
Figure 6
Figure 6 Predicted susceptibility maps for GUB1, SUB1, GUB2 and SUB2👀 Look at: Compare the east of (a) with (c): the text puts the big reductions there (Fig. 7c–d), so the eastern half is where the soil block should visibly cool the map — check whether it does, and how much of the cooling is just a lighter shade of the same pattern.🔬 What the XAI is doing here: Four predicted-probability surfaces, each the forest's output rasterised back onto its own mapping unit — 30 m pixels for (a) and (c), 4017 polygons for (b) and (d) — on a continuous 0.01–0.99 ramp with the inventory dots overlaid. This is not an explanation but the object the explanations are about, and the comparison that carries the argument is (a)/(b) against (c)/(d): soil-inclusive maps concentrate high susceptibility in the wet west, topographic-only maps smear moderate values across the terrain. Read it for spatial texture only; a smoother map may be better calibrated or more over-fitted, and the eye cannot separate those, which is why the paper's own AUROC table contradicts the impression that (a) is obviously better than (c). It cannot show uncertainty either — no per-pixel variance, no ensemble spread, and no marking of where slope-unit aggregation has averaged away within-unit heterogeneity.Fig. 6. Predicted landslide susceptibility maps: (a) GUB1, (b) SUB1, (c) GUB2 and (d) SUB2.tap the figure to open it full size

The numbers that matter

What it does not prove

  • The test set is never described — no size, no class balance, no evidence that test landslides are spatially separated from training landslides — so the reported AUROC values cannot be separated from spatial autocorrelation in the inventory and in the IDW soil surfaces.
  • The soil block buys 0.005–0.010 AUROC with no interval and no significance test, while switching from grid to slope units alone moves AUROC from 0.897 to 0.902; the paper's own numbers contain the counter-claim that the mapping unit matters as much as the soil data.
  • No surface-only (10 cm) soil model is run, so the claim that depth-wise sampling matters is untested — the same result might come from 10 cm properties alone.
  • The depth and volume comparison rests on 47 and 40 landslides (implied by Table 3 df), roughly 12% of the inventory, with group membership defined post hoc from the model's own SHAP sums.
  • The 70/30 soil-versus-topographic split aggregates SHAP across 34 soil variables against 10 topographic ones, so block size alone biases the comparison; no per-feature normalisation or interaction-aware attribution is attempted.
Research translation

What this teaches me

A new variable block earns its place through a matched ablation — same split, same model, block in versus block out — and SHAP's real contribution here is the local rank shift it exposes rather than the global bar order. Attributions explain the fitted decision rule; they never license the physical mechanism that gets attached to them.

How it connects to my research

The parallel to spectral work is exact: a second block of depth-resolved or multi-sensor covariates either survives a paired test on a spatial holdout or it is decoration, and the 0.005–0.010 AUROC move here is the size of gain that a random extra block often produces. The block-summing in Figure 12 is a direct warning for multi-source spectral models, where 2000 correlated bands will always out-sum ten environmental covariates, and for TabPFN comparisons where a new covariate block shifts accuracy without any test of where the shift comes from.

One actionable takeaway

Before adding any predictor block this week, run the matched ablation on a spatially held-out split and report the metric delta with an interval, not the mean-shift story.

Paper 3 of 5
Rung 3 — explanation inside a deep model, with uncertainty attached

Shawon et al. (2026) · Scientific Reports 16, 16994 · doi:10.1038/s41598-026-48517-z

Explainable Quantile CNN-LSTM model for uncertainty-aware multi-layer soil moisture prediction in tropical cocoa plantations

In one line: A clean five-depth, three-zone soil-moisture forecaster whose interval diagnostics are its real contribution, but the 0.948 headline is mostly 30-minute persistence and the explanation layer is asserted rather than specified: no SHAP explainer, no background set, no integrated-gradients baseline, and no sign anywhere in the printed attributions.
Abstract — verbatim, as printed283 words

Accurate prediction of multi-layer soil moisture within the root zone is critical for cocoa plantations, where water availability directly influences root development, nutrient uptake, flowering and yield stability. In tropical systems, strong rainfall variability, heterogeneous soils, and delayed subsurface responses make depth-resolved moisture forecasting particularly challenging. This study proposes an improved Quantile Convolutional Neural Networks (CNN)-Long Short-Term Memory (LSTM) framework for robust and interpretable multi-layer soil moisture prediction. The model integrates CNN for localized temporal feature extraction with stacked LSTM long short-term memory networks for sequential dependency modelling, while incorporating quantile regression to provide probabilistic forecasts. Autocorrelation-guided lag optimization identified lag-7 temporal window as optimal. Zone 1 data were used exclusively for training and validation, whereas Zones 2 and 3 were reserved for independent testing to ensure spatial generalization and robustness. The proposed model achieved consistently high predictive accuracy across five soil depths (5–105 cm), with an overall average R2 of 0.948, low RMSE (0.39–0.79 across layers), and MAPE generally below 3%. Independent testing in Zones 2 and 3 demonstrated minimal performance degradation, confirming strong transferability under varying field conditions. For uncertainty quantification, quantile regression produced reliable 50 and 80% prediction intervals. Low mean pinball loss values, Prediction Interval Coverage Probability (PICP) close to nominal levels, moderate Mean Prediction Interval Width (MPIW), and favorable Winkler scores indicate well-calibrated and sharp probabilistic forecasts. Explainability analysis using SHapley Additive exPlanations (SHAP) and Integrated Gradients Attribution (IGA) revealed coherent depth-dependent climatic controls, transitioning from short-term atmospheric drivers in shallow layers to slower-varying seasonal influences in deeper horizons. Overall, this research delivers a robust, uncertainty-aware, and interpretable quantile deep learning framework for multi-layer soil moisture forecasting, supporting smart irrigation and climate-adaptive water management in tropical precision agriculture.

Deep understanding — the parts worth slowing down for

What they actually did

Six solar-powered IoT probes per zone, in three zones (1.16, 1.10 and 1.13 acres) of one cocoa plantation at Bagan Datuk, Perak, log volumetric water content at 5, 30, 55, 80 and 105 cm every 30 minutes alongside temperature, relative humidity, rainfall, wind speed, wind gust, solar irradiance and dew point. The six traces are averaged per zone, gaps linearly interpolated, every variable normalised on Zone-1 statistics, and calendar descriptors (day of week, day of year, week of month, week of year, month, quarter, plus sin-cos pairs) appended, giving 21 features per timestep. Autocorrelation across lags motivates a 7-step window, which at 30-minute sampling is 3.5 h. Each of the five layers then gets its own network: a (7 x 21) input, four Conv1D layers (128/64/32/64 filters, kernel 3, ReLU), a GlobalMaxPooling1D branch running in parallel with five 50-unit LSTMs (recurrent dropout 0.1), a concatenation, Dense 128, and a single linear output. Training uses Zone 1 only, 90/10 train-validation, 12/07/2018 to 11/22/2019, about 16,850 half-hour steps, with checkpointing on validation loss; Zones 2 and 3 (11/22 to 12/31/2019, about 1,870 steps each) are never fitted. SHAP and integrated gradients are then applied to the frozen networks.

The XAI layer — what was explained, and how

The explanations are attached to the frozen per-layer networks, not to the interval outputs. SHAP is described only as 'SHAP': no library, no explainer class (KernelSHAP, DeepSHAP, GradientSHAP), no background or reference set, and no number of evaluation samples are named. Because the printed bars are labelled as feature-by-lag pairs (M1_Lag_1, Dew_Point_Lag_3), the attribution object is evidently the flattened 7 x 21 = 147-element window rather than a per-timestep map, and values are plotted as mean absolute SHAP in normalised output units. The IG side is thinner still: the paper gives the textbook definition (gradients integrated along a straight path from a baseline to the input, scaled by the input difference) and nothing else - no baseline vector, no interpolation-step count, no statement of whether the integral runs over the flattened window. Fig. 15 renders the result as a feature-by-lag matrix of average absolute attribution, so both methods are compared after being collapsed to unsigned magnitude. The Linear Regression comparison (1.037 vs 0.125) is run as a third, informal check, pitting standardised attributions against unstandardised slopes.

Why the explanation works — and where it overfits

The framing works because it turns an awkward fact - soil moisture sampled every 30 minutes is close to a random walk - into a defensible story with three add-ons: a hybrid network, quantile intervals, and two attributions stapled to the same frozen weights. The hold-out is genuinely spatial at zone level and genuinely untouched, and the paper is candid that layers were modelled independently to prevent cross-layer leakage and that two collinear predictors were dropped before fitting and before any XAI. The interval diagnostics are the strongest part: PICP 0.49-0.53 at the 50% band and 0.79-0.83 at the 80% band on unseen zones is calibration evidence, not assertion. The failure mode is that the target is dominated by its own lag-1. Fig. 6 shows R2 already at 0.64-0.90 with a one-step window, and mean absolute SHAP for the own-layer lag-1 term sits at 1.037 in M1, so most of the 0.948 is persistence and the deep stack is credited with skill it did not create. A second overfit is narrative: depth-dependent climatic control is read off unsigned importance bars that cannot express direction.

What is genuinely new

Against the obvious baseline - carry the last half-hour value forward, or fit the identical 7 x 21 window with ridge regression - the paper runs nothing. Table 3 supplies the nearest proxy: Linear Regression on the same lag-7 inputs reaches all-zone average R2 0.801, XGBoost 0.875, standalone CNN 0.844, standalone LSTM 0.895, and the proposed quantile CNN-LSTM 0.948. The honest increment is therefore roughly 0.15 R2 over a linear autoregression on the same features, worth having but not the leap the abstract implies. What is actually new is the combination rather than any single component: depth-resolved output at five horizons from 5 to 105 cm instead of surface-only, a strict zone hold-out instead of a random split, 50% and 80% intervals scored with pinball loss, PICP, MPIW and Winkler, and two independent attribution families applied to the same network. The comparison that would settle the claim is absent: a persistence baseline and a competing uncertainty route - conformalised residuals, quantile regression forest, or MC-dropout - under this protocol. The authors concede this in the discussion, noting alternative UQ baselines were out of scope.

Where the number comes from — and where it leaks

0.948 is the mean of the five per-layer across-zone averages in Table 3, and it reproduces exactly (0.9476). The leak sits one line above: the text reports an average R2 of 0.972 for Zone 1, but the five Zone-1 cells (0.973, 0.964, 0.955, 0.944, 0.953) average 0.958; 0.972 is the M1 row's across-zone average, transcribed into the wrong column. Second, the intervals. Coverage near nominal is expected, not earned, when bands are fitted and scored on the same held-out zone, and the 80% band is defined by q = 0.8, the 80th percentile, which is not a central 80% interval (that needs q = 0.1 and 0.9). MPIW is quoted in moisture-% units that are never defined. Third, the attributions. Mean absolute SHAP for own-layer lag-1 is 1.037 in M1 and roughly 1.05-1.23 in the other panels (read off Fig. 14); the paper then compares 1.037 against a Linear Regression coefficient of 0.125, standardised attribution against unstandardised slope, having conceded the scales differ. No SHAP explainer, background sample, or IG baseline is named anywhere.

🧭 Read the figures in this order: Open Fig. 3 first because it fixes what 'feature' means for every attribution that follows, then Figs. 14 and 15 as a pair (same 147 inputs, two aggregation rules, both unsigned), and only then Fig. 6, which quietly explains why so much of the accuracy is not the network's doing.
data
One cocoa plantation at Bagan Datuk, Perak, Malaysia; three zones (1.16, 1.10, 1.13 acres); six solar-powered IoT multi-depth probes per zone in a star layout, averaged to one trace per zone; depths 5, 30, 55, 80 and 105 cm at 30-minute resolution; 12/07/2018 to 12/31/2019.
instruments
Custom IoT multi-depth probes with solar panel and telemetry, calibrated against oven-dried soil (R2 = 0.957 against volumetric water content); co-located sensors for temperature, relative humidity, rainfall, wind speed, wind gust, solar irradiance and dew point.
model
Per-layer quantile CNN-LSTM: 7 x 21 input, four Conv1D (128/64/32/64 filters, kernel 3, ReLU), GlobalMaxPooling1D branch in parallel with five 50-unit LSTMs (recurrent dropout 0.1), concatenate, Dense 128, linear output; pinball-loss quantile heads for 50% and 80% intervals (parameterisation not stated).
validation
Zone 1 only for training (90%) and validation (10%); Zones 2 and 3 held out entirely with no retraining or rescaling; lag fixed at 7 from a lag 1-9 sweep.
metrics
MSE, RMSE, MAE, MAPE, R2; mean pinball loss, PICP, MPIW and Winkler score at 50% and 80% nominal coverage.
Figure 3
Figure 3 Architecture of the improved CNN-LSTM, from the 7 x 21 input to the single linear output👀 Look at: The fork after the fourth Conv1D: one branch is GlobalMaxPooling1D, the other the five-LSTM stack, rejoined at Concatenate - a bypass that lets one strong convolution activation reach the dense head without passing through the lag-7 window at all.🔬 What the XAI is doing here: This is not an explanation but the object every explanation is taken with respect to, and it fixes what the word 'feature' means downstream: a (feature, lag) cell, not 'rainfall'. Every SHAP bar in Fig. 14 and every integrated-gradients cell in Fig. 15 is an allocation over these 147 inputs (21 features x 7 timesteps) of one scalar output. Two things to hold onto: the GlobalMaxPooling1D branch never appears in Table 2, so the published layer inventory and the drawing disagree; and a 7-step input through four kernel-3 valid convolutions shrinks the sequence, yet Table 2 tabulates output windows of 2, 4, 6 and 8. What the diagram cannot tell you is which branch carries the prediction - only ablation would.Fig. 3. Architecture of the proposed improved CNN-LSTM model.tap the figure to open it full size
Figure 14
Figure 14 Mean absolute SHAP value per input, one ranked bar panel for each of the five depths👀 Look at: The top bar in every panel is the own-layer lag-1 term (1.037 in panel a, rising to about 1.23 in panel d): the network's single most important input is the previous value of the thing it is predicting.🔬 What the XAI is doing here: Despite the caption's promise of 'directional effects', what is printed is the unsigned version: horizontal bars of mean |SHAP value| per input, features ranked top-down, one panel per depth, no colour bar and no dot cloud. Mechanically each bar is a Shapley value averaged in absolute value over an unstated sample of input windows, so it answers 'how much does this feature move the prediction on average', never 'which way'. Because the bars are labelled as feature-by-lag pairs, the unit being ranked is a flattened window cell, which is why dew point at three different lags occupies three separate rows. A bar of length 1.0 in normalised output units means that cell shifts the prediction by roughly one standard deviation. What it cannot tell you: sign, interaction, or whether the ranking reflects the model rather than collinearity between own-layer lags and dew point.Fig. 14. SHAP summary plots illustrating feature importance across soil depths: (a-e) correspond to layers (M1-M5), showing global feature contributions and directional effects.tap the figure to open it full size
Figure 15
Figure 15 Integrated-gradients attribution as a feature-by-lag matrix for each depth👀 Look at: The rightmost column, t-1: attribution darkens there and fades toward t-7, so the network reads its most recent input hardest - the persistence signature again, now with a lag axis.🔬 What the XAI is doing here: Integrated gradients for input i is the integral of the model's gradient along the straight path from a reference input x' to the actual window x, scaled by (x_i - x'_i); it satisfies completeness, meaning the attributions sum to F(x) - F(x') for that baseline. The baseline is never stated - the methods say only 'a baseline' - and since all variables were normalised on Zone-1 statistics, a zero vector would mean the average window, a choice that materially changes what any cell means. Cells hold the average attribution magnitude per (feature, lag), printed and shaded on a 0-1 blue-white-red ramp labelled Avg |Attribution|, so the sign is gone again and the diverging palette is decorative rather than semantic. Because the baseline is unpublished, the completeness check cannot be run. What it cannot tell you: whether the attribution is causal, or whether a different reference input would have reordered the rows.Fig. 15. Integrated gradients attribution (IGA) results: (a-e) represent layers (M1-M5), respectively, showing aggregated feature contributions across depths.tap the figure to open it full size
Figure 7
Figure 7 Observed versus predicted moisture at five depths in Zone 1, with 50% and 80% quantile bands👀 Look at: Panel (a) near sample 600: the 80% band flares exactly where the observed series spikes and at least one observation leaves it - the interval width is being learned per timestep, not held fixed.🔬 What the XAI is doing here: The bands are the quantile layer made visible: two nested intervals per timestep, drawn from conditional quantiles produced by a pinball-loss objective on the same network, not posterior draws from a Bayesian model and not conformal sets. Read vertical width rather than the central line - a band that breathes with the input is the evidence that the uncertainty head learned something beyond a constant margin, and the nesting of the 50% band inside the 80% band is a monotonicity check that this figure passes by construction. What it cannot tell you is calibration: coverage is a property of the whole test set, not of one visible excursion, and a band wide enough everywhere would also look convincing here. The x-axis is 'Data Sample', not a date, so the reader cannot place the spikes in a season.Fig. 7. Time-series comparison between observed and predicted soil moisture in Zone 1: (a-e) correspond to layers M1-M5, including 50 and 80% quantile-based prediction intervals.tap the figure to open it full size
Figure 8
Figure 8 True-versus-predicted scatter for the five depths in Zone 1, against the 1:1 line👀 Look at: Panel (d), M4, the lowest-R2 depth: the point cloud is visibly looser than in (a) or (e) and spreads off the 1:1 line at the low end of the true range - dispersion the single number R2 = 0.944 does not signal.🔬 What the XAI is doing here: A diagnostic rather than an attribution: each dot is one timestep from Zone 1 (training and validation, not the independent zones), x is observed moisture, y is predicted, and the dashed 1:1 line is the only reference drawn. It shows what a scalar metric hides - a cloud that fans at one end of the range means the model regresses toward the mean where the target is extreme, and curvature would mean errors that R2's symmetric-noise assumption does not describe. No R2, RMSE or interval is printed inside the panels, so the plot cannot be reconciled with Table 3 by eye; you have to trust that the same rows produced both. What it cannot tell you is which input produced the spread: the attributions are global, and no local explanation is offered for a single point on the dry tail.Fig. 8. Scatter plots of true values versus predicted soil moisture, (a-e) layers (M1-M5) in Zone 1. The dashed 1:1 line indicates perfect agreement.tap the figure to open it full size
Figure 6
Figure 6 Heatmap of R2 against lag length and soil layer in Zone 1, the evidence behind the lag-7 choice👀 Look at: The M5 row at Lag 1, the palest cell (about 0.64): a single-timestep window already explains most of the variance at 105 cm, so 'lag optimisation' is a shallow optimum on an already-high plateau rather than a discovery.🔬 What the XAI is doing here: A validation-design object, not an explanation: a 5x5 grid of R2 from refitting the network at each window length, with every cell printed and coloured, so the reader can see whether the chosen hyperparameter sits on a peak or a plateau. It sits on a plateau, which is the useful negative result - the reported skill is not manufactured by the lag choice. Read it as a sensitivity surface and notice what is marginalised out: each cell aggregates over the whole validation period, so a lag that is bad only during dry spells would be invisible. What it cannot tell you is why any cell has the value it does; nothing here separates the lagged target's contribution from the meteorological inputs, and no interval of uncertainty is attached to any cell.Fig. 6. Heatmap of lag value vs. soil layer in terms of R2 in zone 1.tap the figure to open it full size

The numbers that matter

What it does not prove

  • Zones 2 and 3 are tested only from 11/22 to 12/31/2019, a 39-day window that starts the moment training ends, so the 'spatial' test is entangled with a temporal extrapolation into one wet-season transition and never covers a full annual cycle in an unseen zone.
  • Averaging six probes per zone before modelling removes within-zone variance, so the transfer demonstrated is between three blocks of a single plantation, not across soils, sites or agro-climatic zones.
  • No persistence or climatology baseline is reported, so the share of R2 0.948 that is 30-minute autocorrelation is unknown - Fig. 6 already shows R2 0.64-0.90 from a one-step window.
  • The SHAP explainer, background set and sample size, and the integrated-gradients baseline, are never stated, so neither attribution figure can be reproduced or audited.
  • The quantile machinery is underspecified: Table 2 lists one linear output unit, the text never says whether separate models were fitted per quantile, and the 80% interval is defined by q = 0.8, a percentile rather than a central 80% band.
Research translation

What this teaches me

An explanation layer bolted onto a deep probabilistic model inherits every ambiguity of the model and adds its own: with no named explainer, background set or IG baseline, an attribution is a picture rather than evidence. The reusable move here is the sanity check the authors did run - attributions against linear coefficients - and the one they skipped, attributions against a persistence baseline.

How it connects to my research

His models sit on the linear end (PLSR on spectra) in a domain where collinearity is the norm, so the SHAP-versus-coefficient divergence is exactly the diagnostic he needs when a CNN or TabPFN beats PLSR on OSSL: is the gain nonlinearity, or variance a linear model could also take? The zone hold-out is a template for spectral transfer - fit on one library, test on a physically separate one, never re-normalise on the test side.

One actionable takeaway

Before trusting any SHAP or integrated-gradients panel, ask what the reference input was, and always print the persistence baseline next to it, because that is the number the deep model has to beat.

Paper 4 of 5
Rung 4 — explanation as a product: twelve formats on a farmer's screen

Rafi et al. (2026) · Advances in Agriculture 2026, 1219945 · doi:10.1155/aia/1219945

Explainable AI-Integrated Real-Time Portable Crop Recommendation System Based on Internet of Things for Precision Agriculture

In one line: A real RS485 probe, a Raspberry Pi 5 and a live web dashboard do recommend a crop and explain it, so the 'shipped' half of the claim is genuine. The explanation half is breadth without validation: five methods rank the same seven features differently, and the one field reading shown returns jute at 53.17% confidence rather than the 98.61% the abstract advertises.
Abstract — verbatim, as printed357 words

Purpose: Climate unpredictability, soil degradation, and resource scarcity are the main challenges of precision agriculture. Conventional crop recommendation systems lack of real-time adaptability and transparency. Most machine learning-based agricultural systems operate as black boxes, hindering farmer trust and adoption. This research addresses these critical gaps by developing an explainable artificial intelligence (XAI)-integrated, real-time, portable crop recommendation system that utilize Internet of Things (IoT)-based soil parameter monitoring with interpretable decision support for precision agriculture. Method: A custom IoT sensor network consists of an RS485 multiparameter soil sensor, an Arduino Uno R3 data logger, and a Raspberry Pi-5 edge-computing unit measures seven parameters (N, P, K, temperature, moisture, pH, and electrical conductivity [EC]). Data preprocessing includes K-nearest neighbor (KNN) imputation, Z-score normalization, and synthetic minority oversampling technique (SMOTE) augmentation. Twelve conventional machine learning classifiers were initially tested from which four (KNN, random forest [RF], XGBoost, and MLP) were shortlisted for in-depth benchmarking across 26 crop types. The RF model was selected for edge deployment due to its superior accuracy. A comprehensive explainability framework spanning 12 distinct local and global explanation formats derived from five complementary techniques (permutation importance, SHapley Additive exPlanations [SHAP], local interpretable model-agnostic explanations [LIME], Morris sensitivity analysis, and explain like i’m 5 [ELI5]) plus counterfactual reasoning provides both local and global interpretability. The model was trained on 31,601 samples and validated on 7901 samples, with inference performed in real time on the edge and exhibited through a deployed web application. Results: RF model had demonstrated the best training accuracy of 99.26% and test accuracy of 98.61%. moisture (0.4207), phosphorus (0.2906), and potassium (0.2848) ranked among the top five in permutation importance. SHAP demonstrated class-specific visualizations for all 26 crops. LIME estimated the contributions of individual features to the local predictions. The Morris sensitivity was identified as globally sensitive for EC, pH, and temperature. The counterfactual explanations resulted in practical soil amendment recommendations. Conclusion: The first comprehensive XAI-IoT portable crop recommendation system solves the transparency problem in AI integrated agriculture with 98.61% accuracy. It integrates 12 complementary explainability methods, turning black-box predictions into acceptable, interpretable decisions, boosting farmers’ confidence and encouraging small farmers to adopt precision agriculture.

Deep understanding — the parts worth slowing down for

What they actually did

A single RS485 five-in-one probe (pH, N, P, K, moisture, EC; IP68, plus/minus 3% of full scale) is polled over Modbus RTU by an Arduino Uno R3, handed by serial link to a Raspberry Pi 5, and smoothed with a 6-sample moving average - one hour at 10-minute sampling. The training corpus is not from that probe: it is a 22-crop public crop-recommendation table with the rainfall column swapped for EC and four Dinajpur vegetables added (balsam apple, cauliflower, chili, cucumber) to reach 26 classes. KNN imputation (K = 5), z-scoring, SMOTE and Gaussian noise (sigma = 0.05) yield 31,601 training and 7901 test rows. Twelve classifiers are screened, four (KNN, RF, XGBoost, MLP) are benchmarked under 5-fold, 10-fold and repeated CV, and the 100-tree unlimited-depth RF wins at 0.9904 accuracy and is serialized for edge inference. At runtime the Pi takes the live 7-vector, predicts, and the web app renders SHAP, LIME, a counterfactual and a probability list per request, with admin endpoints to hot-reload the model or re-point the sensor API.

The XAI layer — what was explained, and how

Everything is post hoc on the trained RF, computed after the model was frozen, with no retraining and no faithfulness check. SHAP uses the exact tree path-dependent algorithm of Section 3.4.2 on 100 samples across the 7 features and 26 classes, so each per-class plot has a background expectation E[f(X)] of about 0.04-0.05 - the mean predicted probability of that class over the explanation sample - and bars sum to f(x) minus that base. LIME draws perturbed neighbours around one sensor vector, weights them by a Gaussian kernel on Euclidean distance (equation 24), discretizes each feature into bins ('Phosphorus > 65.40', '2.04 < EC <= 2.59') and fits a weighted linear model whose coefficients are the plotted weights. Permutation importance is the accuracy drop when one column is shuffled on validation data, averaged over K repeats, and ELI5 reports the same quantity with standard deviations. Morris computes elementary effects along r trajectories through the 7-dimensional input box and reports signed mean mu, mean absolute mu* and interaction variability sigma. All inputs are z-scored, so every attribution is per standard deviation, not per mg/kg.

Why the explanation works — and where it overfits

The framing works because it attacks a real and correctly identified failure: a farmer told 'grow jute' by a black box has no way to check the advice, and a seven-input model is small enough that a per-feature bar chart is genuinely readable. Shipping it on a Pi with a browser dashboard also converts an abstract interpretability claim into something a reviewer can see, and each individual method is standard, correctly named and cited. The failure mode is that breadth is mistaken for evidence. Twelve formats is a menu, not a validation: the methods are computed on different samples (100 SHAP rows versus the full validation set for permutation), answer different questions (attribution versus sensitivity versus nearest flip), and the paper reports their disagreement as if it were triangulation. Nothing tests whether a farmer reading the SHAP panel would act differently, whether the bars are stable across resamples, or whether the explanation tracks the model at all - so the layer demonstrates that explanations can be generated on a device, not that they explain.

What is genuinely new

Against the prior XAI-for-crop-recommendation literature the authors themselves review - single-technique LIME dashboards on static benchmark tables, Streamlit demos, a GAN-synthesized contrastive study, an IoT survey with no explainability layer - the delta is real and threefold: a physically built RS485/Modbus sensing circuit with field photographs, inference on a Raspberry Pi 5 rather than a cloud notebook, and a publicly reachable web app that generates explanations on demand from a live sensor payload. The breadth claim (five techniques, twelve formats) is also wider than the one- or two-method comparators. What is missing is the baseline that would make the breadth meaningful. A single depth-3 decision tree on the same seven features is itself an explanation, printable on one page and auditable by an agronomist; their own logistic regression already reaches 0.9489, so the entire XAI apparatus is explaining the last four accuracy points of a random forest. There is also no ablation of the explanation layer - no test of whether SHAP adds anything over the raw feature values a farmer can already read off the sensor screen - and no head-to-head faithfulness comparison among the five methods.

Where the number comes from — and where it leaks

The headline accuracy is reported four incompatible ways for one model: 99.26% training and 98.61% test in the abstract (p1), 0.9904 accuracy with 0.9898 F1 in Table 1 (p6), and 0.986 as the dashboard's own status line (Fig. 16). MLP is 98.33% in the results prose (p12) but 0.9819 in Table 1. The 31,601/7901 split is exactly 80/20 of 39,502 rows, and SMOTE plus noise is described as producing those totals - so synthetic rows interpolated between neighbours were generated before the split and can sit on both sides of it; the pre-augmentation row count is never given, so the expansion factor cannot be audited. EC replaces rainfall in the feature set, but how 31,601 EC values were obtained is never stated; the probe contributed no labelled training rows, only inference inputs. The single field reading in Fig. 1(d) returns jute at 53.17% with rice at 29.31% (read off Fig. 1d), which is the only field accuracy in the paper and is never discussed. Algorithm 1 is a binary AdaBoost with sign() and 100 stumps, left over from another study, not the 26-class RF that is deployed.

🧭 Read the figures in this order: Start with Fig. 2 for the pipeline, then Fig. 1 to see the device and its 53.17% payload, then Fig. 16 to see the same explanation shipped to a screen, and only then Figs. 7, 8 and 11 to compare how the three attribution methods rank the same seven features.
data
31,601 training and 7901 test rows, 7 features (N, P, K, temperature, moisture, pH, EC), 26 crop classes: the 22-class public crop-recommendation taxonomy with rainfall replaced by EC plus balsam apple, cauliflower, chili and cucumber added. KNN imputation (K = 5), z-score standardization, SMOTE and Gaussian noise (sigma = 0.05). Labels are crop names from the reference table, not measured yields or lab chemistry.
instruments
RS485 five-in-one soil probe (pH 3-9, NPK 0-2999 mg/kg, moisture 0-100%, EC 0-20,000 uS/cm, -40 to +80 C, IP68, plus/minus 3% FS) polled over Modbus RTU by an Arduino Uno R3 (ATmega328, 16 MHz), serial link to a Raspberry Pi 5; ESP32 wireless link shown in Fig. 1(a); 6-sample moving-average filter (W = 6).
model
Random forest, 100 trees, unlimited depth, min_samples_split 2, Gini; compared with KNN (K = 5), XGBoost (100 trees, lr 0.1, depth 6, lambda 1) and MLP (100-50, ReLU, Adam); 8 further classifiers screened only (logistic regression, linear/RBF SVM, decision tree, Gaussian NB, LDA, QDA, 1D-CNN).
validation
Stratified 80-20 hold-out plus 5-fold, 10-fold and repeated CV on the same augmented pool; no spatial, temporal or site hold-out, no leave-one-farm-out, and no field-labelled test set. Statistical comparison by McNemar, Wilcoxon signed-rank and paired t-test at alpha = 0.05.
metrics
Accuracy, macro precision/recall/F1, one-vs-rest ROC-AUC, MCC, geometric mean, Brier score, log loss, Cohen's kappa; confusion matrices, ROC, precision-recall and cumulative-gain curves; CV mean/std/min/max.
Figure 2
Figure 2 Schematic of the portable system: sensors to Pi 5 to classifier to explanation to farmer message👀 Look at: Follow the chain from 'Data preprocessing' through 'ML model training' to 'Crop classification and recommendation', then watch the 'Explanation generated explainable AI' box: it hangs off the classifier and has no arrow of its own to 'Messages to farmers', whose feed comes from 'Wireless connectivity' - so the diagram never draws the explanation's last mile.🔬 What the XAI is doing here: This is an architecture diagram of where the explanation sits, not an explanation itself: 'Explanation generated / explainable AI' is drawn as a post-hoc stage that consumes the classifier's output and hands a formatted message back, which is exactly the deployment pattern the paper claims (inference and attribution both on the Pi, no cloud round-trip). Read it as a data-flow claim about latency and trust boundaries - the explanation never leaves the edge device, so it costs no extra bandwidth, but it also means the farmer's screen can only show what the Pi computed in that request. What the diagram cannot tell you is which XAI method runs at that node, on how many background rows, or whether the formatted message is the SHAP panel, the LIME panel or the counterfactual table; the caption names none of them.Schematic diagram of proposed portable crop recommendation system.tap the figure to open it full size
Figure 1
Figure 1 The physical device: circuit, field photo, live sensor stream and live decision payload👀 Look at: Panel (d): the payload is jute at 53.17% with rice at 29.31% - a 24-point margin on a live field reading, from a model advertised at 98.61% accuracy; panel (c) shows the seven raw inputs that produced it (N 69.29, P 34.55, K 35.83 mg/kg, 22.098 C, pH 6.147, EC 2.364 dS/m, moisture just under 68%).🔬 What the XAI is doing here: This is the deployed explanation's *absence*: panel (d) is a softmax histogram - five class probabilities and nothing else - so on the device itself the 'explanation' a farmer sees first is a bar chart of alternatives, with no attribution, no base value and no per-feature contribution. That matters because the two panels together are a natural local explanation setup: seven measured inputs in (c), one probability vector in (d), and the SHAP/LIME panels are one screen away in Fig. 16. The 53.17 versus 29.31 split is precisely the case where a local attribution earns its keep (which feature is holding jute back?), and precisely what the payload does not carry. It also shows the model is not confident on real sensor data, which no table in the paper reports.Developed portable crop recommendation system. (a) Circuit diagram. (b) Field implementation. (c) Live sensor stream from IoT setup. (d) Live decision payload from IoT setup.tap the figure to open it full size
Figure 7
Figure 7 Per-class SHAP beeswarm for balsam apple, cauliflower, chili and cucumber👀 Look at: In every panel the EC row sits at the top with its dots spread widest along the x-axis (roughly -0.10 to +0.30 in panel a), while phosphorus and potassium sit near zero - the opposite of Table 3, where moisture ranks first and EC sixth; the y-axis names are clipped at the left margin of the printed figure, so read the order off the caption and the text.🔬 What the XAI is doing here: Each dot is one sample's SHAP value phi_j for one feature, measured in the units of that class's model output (probability scale here, so the x-axis runs -0.1 to +0.3 rather than the usual log-odds), and the colour is the feature's own value, red high and blue low - so a red cluster to the right of zero means high values push the class up. Values are exact TreeSHAP, computed for 100 rows, and plotted separately per class because a 26-class forest has 26 outputs and an attribution only means something relative to one of them. Read the vertical spread as heterogeneity (wide spread means the feature matters differently for different soils) and the colour gradient as the direction of the marginal effect. It cannot tell you causality, it cannot separate two collinear nutrients, and with only 100 rows the tail dots are noise rather than a real subpopulation.SHAP beeswarm analysis of (a) Balsam apple, (b) cauliflower, (c) chili, and (d) cucumber.tap the figure to open it full size
Figure 8
Figure 8 SHAP waterfall for four single samples, base value to final prediction👀 Look at: In panel (a) the seven bars (+0.199, +0.199, +0.198, +0.181, +0.100, +0.027, +0.024) sum to exactly 0.928, and E[f(X)] 0.044 plus 0.928 gives f(x) 0.972 - check that identity in any panel; it is the whole point of the plot.🔬 What the XAI is doing here: This is the local additive decomposition: start at E[f(X)], the mean predicted probability of this class over the 100-row background sample, and add one bar per feature until you reach f(x) for this single sensor row. Each bar is a Shapley value from exact TreeSHAP, red pushing toward the class and blue away, and by construction the bars sum to f(x) minus the base - that is the 'local accuracy' axiom, and it is why the plot looks more authoritative than a LIME bar chart that has no such guarantee. The number printed left of each feature (-1.11 = phosphorus, 0.762 = moisture) is the feature value in z-score units, consistent with the standardization in Section 3.2.3, so a negative phosphorus is a below-mean soil, not a negative concentration. What it cannot tell you is whether this sample is typical: no population is shown, only one row against a mean.SHAP waterfall visualization of (a) sample 0, (b) sample 5, (c) sample 10, and (d) sample 15.tap the figure to open it full size
Figure 11
Figure 11 LIME local feature weights over binned soil conditions👀 Look at: Every label on the y-axis is a discretized rule, not a variable - 'Phosphorus > 65.40', '5.71 < pH <= 6.28', '2.04 < EC <= 2.59' - and in panel (b) the largest positive weight sits on 'EC > 3.21' while potassium and nitrogen pull left; note the caption promises four samples while the text says three.🔬 What the XAI is doing here: Mechanically this is a local surrogate: perturb one sensor vector into a neighbourhood, weight each neighbour by a Gaussian kernel on Euclidean distance (equation 24), label the perturbations with the forest, and fit a weighted linear model on binary indicators for the binned conditions - the coefficients of that ridge are the bars, green for support and red for opposition. Because the surrogate is linear over discrete bins, the bars are readable as 'this condition, in this range, added this much', which is friendlier to a farmer than a per-standard-deviation SHAP value; the cost is that the bin edges (65.40, 47.10, 3.21) are arbitrary quantiles of the perturbation sample and change the explanation. The panel set is also diagnostic of a failure: these are Apple predictions for rows whose true classes are pomegranate, orange and grapes, so the surrogate is faithfully explaining a wrong answer, and nothing in the plot flags that.LIME feature weights of (a) sample 1, (b) sample 2, (c) sample 3, and (d) sample 4.tap the figure to open it full size
Figure 16
Figure 16 Realtime Crop Intelligence Dashboard: the explanation the farmer actually sees👀 Look at: The 'Realtime XAI' tab stacks four panels for one live instance - Live SHAP, Live LIME, Counterfactual Comparison and the predicted crop card (jute, with rice as the counterfactual) - and the header states the model bundle, 7 features, 26 classes and test accuracy 0.986; check that SHAP ranks potassium and moisture highest while LIME ranks potassium and nitrogen highest for the same row.🔬 What the XAI is doing here: This is the product surface and the only place where the explanation reaches a user: four explanation objects computed per request from the live 7-vector, side by side, with no shared scale between them. The SHAP panel is a local attribution (signed contribution to jute's probability), the LIME panel is a surrogate coefficient set, and the counterfactual panel is a different object entirely - the nearest feature change that flips jute to rice, which is the only panel that tells a farmer what to do rather than why. Because the panels come from different computations, they can and do disagree, and the dashboard gives no arbitration, no confidence band on the bars and no indication of which method the authors consider authoritative. It also shows the deployed model's stated accuracy (0.986) as a static header, not the per-prediction uncertainty, so a 53%-confidence field reading looks as trustworthy as a 99% one.Real-time crop prediction dashboard with explainability visualizations.tap the figure to open it full size

The numbers that matter

What it does not prove

  • No spatial, temporal or site hold-out: the split is a random 80/20 and SMOTE plus Gaussian noise is described as producing the 31,601/7901 totals, so synthetic rows interpolated between neighbours can sit on both sides of the split and inflate the 99% figures.
  • The training corpus is a public 22-crop table with EC substituted for rainfall; where 31,601 EC values came from is never stated, and the field probe supplied inference inputs only - there is no labelled field data anywhere in the paper.
  • Accuracy is quoted four ways (99.26 train, 98.61 test, 0.9904 in Table 1, 0.986 on the dashboard) and the one real field reading is 53.17% top-1 with rice at 29.31%, yet no field accuracy is ever measured or discussed.
  • No farmer or extension officer took part: the authors concede the 12 formats were never evaluated with end users, so the trust-and-adoption claim remains an untested hypothesis.
  • No explanation is checked for fidelity or stability - no deletion/insertion test, no seed variance, no comparison of the five rankings - and Algorithm 1 describes a binary AdaBoost rather than the 26-class random forest actually deployed.
Research translation

What this teaches me

Explanation breadth is not explanation validity. When SHAP, permutation importance, Morris and LIME rank the same seven features four different ways, the ranking is telling you about the method's reference distribution and sample, not about the soil.

How it connects to my research

The same trap awaits spectral models: 2,000 collinear wavelengths make SHAP credit-splitting far worse than seven soil variables, and the choice of background set silently sets every attribution. The 53.17% field payload is also the cleanest reminder that a cross-validated 0.99 on augmented data says nothing about a single real measurement.

One actionable takeaway

Before adding a second XAI method to any model, run one deletion/insertion faithfulness test on the first - if the explanation is not stable, a menu of five will only produce five disagreements.

Paper 5 of 5
Rung 5 — explanation as action: counterfactuals, not just attributions

Dwivedi et al. (2026) · Earth Systems and Environment 10, 9331-9363 · doi:10.1007/s41748-026-01114-6

Explainable AI (xAI) for Landslide Susceptibility Modeling: A Comparative Analysis of Machine Learning and Deep Learning Approaches

In one line: A genuine first: Minnesota's statewide landslide-susceptibility map at a nominal 3 m, five learners compared, SHAP for attribution and - new to landslide work - DiCE counterfactuals naming the feature values that would move three field sites into the stable class. The catch is that the 0.97 accuracy comes from a random split of points sampled within 500 m neighbourhoods, and the counterfactual table prints target values with no post-edit probability, no cost and no feasibility test, so 'smallest change' means smallest in the model's scaled feature space, not on site.
Abstract — verbatim, as printed698 words

A landslide is a geo-hazard that occurs due to the dislocation of soil or rock mass from the parent mass in the direction of gravitational force. More than $6.7 million is spent annually in the Midwest region on infrastructural repairs due to slope failures and landslides. Identifying landslide-susceptible zones can improve urban management and help prioritize areas requiring immediate remediation. However, no full regional-scale landslide susceptibility (LS) map is available for Minnesota (MN), which is a formerly glaciated region. Hence, this study addresses this gap by leveraging machine learning (ML) and deep learning (DL), combined with explainable artificial intelligence (xAI), to develop a high-resolution LS map. Additionally, the study demonstrates how counterfactuals can be used as a preliminary tool for identifying mitigation measures. Five quantitative methods, namely, Logistic regression, Random Forest (RF), Multi-layer perceptron, TabNet, and TabKANet, were trained on a balanced dataset of landslide and non-landslide points. The total dataset was divided into training (70%) and validation (30%) subsets. The validation accuracy and field verification of the LS map demonstrate the superiority of RF and TabKANet. SHapley Additive exPlanations (SHAP) was employed to address the limitations of past studies in practically interpreting the model’s decision. The SHAP model indicates that slope, elevation, land use and land cover, and rainfall have the greatest impact on model predictability globally in the MN map. However, the field validation study also emphasized that the dominant factors at the global scale may not necessarily govern local slope failures, where localized conditions such as drainage concentration or anthropogenic factors can play a more critical role. Overall, this study demonstrates how integrating xAI with ML and DL enhances both accuracy and interpretability, offering a transparent, data-driven framework for making landslide risk-informed decisions and for its global application in geotechnical hazard management. Received: 8 December 2025 / Revised: 27 February 2026 / Accepted: 1 March 2026 / Published online: 18 March 2026 © The Author(s) 2026 Explainable AI (xAI) for Landslide Susceptibility Modeling: A Comparative Analysis of Machine Learning and Deep Learning Approaches Ambikesh Dwivedi1 · Surya Sarat Chandra Congress2 · Raul Velasquez3 · Prince Kumar4 · Ujwalkumar Patil5 1 3 ===== PAGE 2 ===== A. Dwivedi et al. 1 Introduction Slope instability is a common geological hazard in hilly terrain. When the slope dimensions are significant, the resulting large failure is termed a landslide (Hungr et al. 2014). Landslides involve the downslope movement of soil or rock masses under gravity, often resulting in casualties and substantial property damage each year (Froude and Petley 2018; Mirus et al. 2020; Dwivedi et al. 2024). These events pose serious threats to infrastructure, roads, and hillside developments (Singh et al. 2024). Walkinshaw (1992) reported an annual repair cost of $2.7 million in 1990 for Minnesota, Graphical Abstract The graphical abstract illustrates a workflow in which explainable artificial intelligence (xAI) serves as the central component of a clear, trustworthy landslide susceptibility (LS) map for Minnesota, a state that faces recurring slope failures. However, there is no full-scale LS available for the state. To address this gap, data on landslide causative factors were collected, along with a comprehensive landslide inventory compiled from various sources, and these were used to build a high-resolution LS map. Five machine learning (ML) and deep learning (DL) methods, namely, logistic regression (LR), random forest (RF), multi-layer perceptron (MLP), TabNet, and TabKANet, were trained for LS modeling. TabKANet, a modified version of TabNet, was used for the first time in the literature to develop an LS map. The obtained results highlight the excellent performance of RF and TabKANet during validation and field verification. To enhance the interpretability of the LS map produced using black-box ML and DL methods, xAI, specifically SHapley Additive exPlanations (SHAP), was used. The SHAP analysis shows that slope angle and elevation of the area were the top influencing factors. Furthermore, for the first time, the present analysis uses counterfactuals in landslide analysis to explore mitigation measures that can be adopted in the field to stabilize a landslide-prone area. Overall, the study not only delivers Minnesota’s first detailed LS map but also introduces an xAI-centered framework that can help state and federal agencies make informed decisions when dealing with potentially catastrophic landslide hazards.

Deep understanding — the parts worth slowing down for

What they actually did

Five binary classifiers were fitted to point samples rather than to pixels. Positives were 7,710 inventoried landslides from the Delong et al. (2022) compilation - mapped from 1 m LiDAR at 1:4,000, mixing historical records and field-verified events, complete to 2021 - labelled 1; an equal number of non-landslide points was generated under a 500 m buffer rule and labelled 0. Ten predictors were assembled: FAO soil, PRISM 30-year rainfall and temperature at 800 m, a seven-class water-table depth, MnDNR 3 m bare-earth DTM derivatives (slope, curvature, elevation, aspect), ESRI LULC at 10 m and Sentinel-2 NDVI at 10 m. Everything was reprojected to NAD83/UTM 15N, resampled to a common 3 m grid (nearest neighbour for categorical, bilinear for continuous), class-encoded where needed and standard-scaled. VIF and TOL screening passed all ten factors. The pooled points were split 70:30 at random, with no spatial blocking, and five models were trained: LR, RF with grid-search CV, a 10-30-2 MLP, TabNet with feature and attentive transformers, and TabKANet with KAN spline embeddings and two transformer layers. Validation used CE loss, accuracy, precision, recall, F1 and a confusion matrix; the best model swept the 3 m grid into a probability surface cut into five zones. SHAP ran globally on the validation set; DiCE counterfactuals ran at three field sites.

The XAI layer — what was explained, and how

Global attribution applies the exact Shapley expression in Eq. 10 and ranks features by mean absolute SHAP over the whole validation set; the paper says only 'the Python library', with no version, no TreeSHAP versus KernelSHAP choice, no background dataset and no nsamples. With ten features an exact enumeration is 1,024 coalitions per instance, which makes exact computation plausible for the tree model but is never stated for the two deep models. Dependence plots are RF-only and drawn on validation instances, with each dot one validation point and a marginal histogram under each panel. Local plots (Fig. 12) are per-site decompositions that sum from a printed base value E[f(X)] to that site's f(x). Counterfactuals use DiCE: an optimisation over mutable features only (LULC, WTDS, NDVI at Sites 1-2; LULC, NDVI, slope at Site 3) that minimises prediction loss toward the opposite class plus lambda1 times distance from the original row plus a lambda2 diversity term; the distance norm, k, lambda values, search algorithm and the counterfactual's own predicted probability are all unreported.

Why the explanation works — and where it overfits

The framing works because a counterfactual converts a ranking into a target with a number attached: not 'slope matters most' but 'this site stays unstable until the slope drops to 15.3 degrees'. That is the step from attribution to action, and it is the right shape for an agency choosing between drainage, vegetation and re-grading. The mechanism it leans on is thin, though. DiCE searches a space in which LULC is a categorical jump between built area and crops and WTDS is a seven-class ordinal; the distance penalty treats a one-class water-table step, a 0.10 NDVI increment and a 22 degree cut as commensurable, so 'smallest change' means smallest in the model's scaled geometry, not cheapest on site. Worse, the model's top drivers at these sites are proxies - LULC 'built area' and TAAR - and the counterfactual is allowed to rewrite LULC while the highway stays exactly where it is. The failure mode is recommendation drift: the explanation optimises a decision boundary and is reported as a remediation plan, with no cost, no feasibility test and no re-prediction after the edit.

What is genuinely new

Against the two prior Minnesota products - Bradley et al. (2021), an 805 m buffer along trunk highways with thirteen factors in LR, and Triplett et al. (2025), LR across five regions covering 41% of the state - the claims are coverage (all 87 counties on a nominal 3 m grid), model class (five learners, TabKANet used in landslide work for the first time) and explanation (global SHAP across four models, local SHAP at three sites, DiCE counterfactuals). The first two are real if unremarkable; the third is the actual contribution, because no earlier landslide-susceptibility paper prints a counterfactual table. What is missing is the baseline that would make the comparison bite. There is no spatially blocked or leave-one-region-out run, so 'RF beats LR by three points of accuracy' is measured on points that share a 500 m neighbourhood. There is no test of the counterfactual as an intervention: the row is never fed back through the model to report the new probability, and no threshold is checked against an actually repaired slope. The paper also never scores its map against Triplett's in the overlapping 41%, which was the one free external check available.

Where the number comes from — and where it leaks

The headline 0.97 is a random-split score. Table 4 sums to 4,212 validation points, 2,049 landslides and 2,163 non-landslides, which implies a 14,040-point pool, i.e. 7,020 per class, not the 7,710 positives the inventory section claims. Roughly 690 landslide points, about 9%, vanish between inventory count and confusion matrix, and the '30%' validation share is really 27.3% of the stated 15,420. Because the negatives were generated from 500 m buffer polygons around the positives - the text says 'within the area' and never clarifies inside versus outside - and the split was random, neighbouring points sit on both sides of it, so the test set is spatially inside the training set; that is the number the paper never measures and the one that would collapse. The 3 m claim leaks the same way: climate inputs are 800 m, LULC and NDVI 10 m, and the authors themselves call the fine grid 'a computational framework rather than a representation of physical precision'. Finally the site probabilities: 63.2%, 69.3% and 64% on a balanced sample where the base rate is 0.5 and the SHAP base value is about 0.49 - margins of 0.13 to 0.19, thin ground for a remediation recommendation.

🧭 Read the figures in this order: Open Fig. 12 first, because the three f(x) values it prints are the exact numbers Table 5 is trying to move, then Table 5 for the targets - the two together are the argument, and everything else is context.
data
7,710 inventoried landslides (Delong et al. 2022 compilation: 1 m LiDAR at 1:4,000, historical archives, field verification; complete to 2021) plus an equal number of generated non-landslide points under a 500 m buffer rule, labelled 1/0; ten causative factors on a 3 m grid over all 87 Minnesota counties (225,163 km2).
instruments
MnDNR 3 m LiDAR bare-earth DTM (slope, curvature, elevation, aspect); PRISM 30-year annual rainfall and temperature at 800 m; seven-class water-table depth from the Minnesota Natural Resource Atlas; FAO soil map; ESRI LULC at 10 m; Sentinel-2 NDVI (June 2015-February 2018 composite) at 10 m; field validation by UAV imagery and Google Earth historical scenes at three sites.
model
LR; RF (grid-search CV); MLP (1 hidden layer, 30 ReLU neurons, 10-30-2); TabNet (feature transformer + attentive transformer, sparsemax masks, tuned steps/gamma/lambda_sparse); TabKANet (KAN B-spline embeddings, 2 transformer layers, GLU + PolyLoss + label smoothing). Ten inputs, binary output, standard-scaled.
validation
Random 70:30 point split (no spatial blocking, no region holdout); confusion matrix plus CE loss, accuracy, precision, recall, F1 on the 30%; three field sites (Site-1 and Site-2 on U.S. Highway 75 at Climax, Site-3 on TH-13 in Dakota County) held out of training and used for qualitative map check and local explanation; VIF < 10 and TOL > 0.1 used to screen collinearity.
metrics
Accuracy (RF 0.97, LR 0.94, MLP/TabNet/TabKANet 0.96), CE loss (0.09 to 0.16), per-class precision/recall/F1, TP/FN/TN/FP counts, and qualitative field agreement at three sites; no AUC, no calibration, no spatial cross-validation.
Figure 1
Figure 1 Sequential methodology flow, with SHAP and counterfactuals as parallel branches off model validation👀 Look at: The two arrows leaving 'Model Validation' into SHAP and into Counterfactuals and rejoining at 'Risk Estimation' - the paper's claim that attribution and action are two outputs of one fitted model, so a biased classifier biases both.🔬 What the XAI is doing here: This is the wiring diagram of the explanation layer, not an explanation itself, and it is worth reading as a contract: SHAP and counterfactuals are drawn as siblings downstream of the same validation block, which means both consume the same fitted model and the same 70:30 split. That placement carries a consequence the figure cannot show - any leakage or overfit in the classifier propagates identically into the attribution and into the recommended action, and nothing in the pipeline re-checks the explanation against data the model has not seen. It also implies a single model, while the paper actually generates SHAP beeswarms for four models and counterfactuals for an unnamed one.Fig. 1 Sequential flow diagram of the methodology adopted in the present studytap the figure to open it full size
Figure 8
Figure 8 Three attribution families side by side: LR coefficients, RF Gini importance, and SHAP beeswarms for four models👀 Look at: Panels (c) to (f): slope, elevation and LULC keep the top three places in all four models but swap order between panels - the agreement is about membership, not rank, which is exactly as much as a Shapley ranking can promise.🔬 What the XAI is doing here: Three different explanation objects share one figure and they are not interchangeable: (a) is LR's coefficient vector, signed and linear in log-odds; (b) is RF's mean decrease in Gini impurity, unsigned and biased toward continuous features with many split points; (c)-(f) are SHAP beeswarms where every dot is one validation instance and its horizontal position is that instance's Shapley value for the row's feature, computed with Eq. 10 against a background expectation. The beeswarms are the only panel that carries sign and dispersion together, with colour encoding the feature's own value (blue low, red high), so a red cloud to the right of the slope row says high slope pushed those particular instances toward landslide. Agreement between the panels is corroboration rather than a test, because Gini measures impurity removed inside the forest while SHAP measures marginal contribution to the prediction - two different quantities that happen to rank the same three features.Fig. 8 Influence of causative factors on landslide occurrence analysis: (a) feature coefficients from LR, (b) feature importance from RF, SHAP explanations for: (c) RF, (d) MLP, (e) TabNet, (f) TabKANettap the figure to open it full size
Figure 9
Figure 9 SHAP dependence plots for all ten causative factors, RF only, drawn on validation instances👀 Look at: Panel (a): the slope cloud rises to roughly 30 degrees and then flattens, with the grey histogram underneath giving the density of validation points - that histogram is what decides whether the plateau rests on data or on emptiness.🔬 What the XAI is doing here: Each panel is a dependence plot: x is the feature's raw value for one validation instance, y is that instance's Shapley value for the same feature, and the grey histogram along the bottom is the marginal distribution of the feature - the part most readers skip and the part that decides whether a trend rests on thousands of points or a dozen. The colour ramp appears to repeat the feature's own value, which adds no information; a real interaction plot would colour by a second variable, and nothing here tests whether slope's effect depends on curvature - the paper reads curvature separately in panel (e). Read the shape rather than any single dot: the monotone rise then plateau in (a), the downward trend in (b) and the class-wise offsets in (c) are model behaviour on the validation sample, not physics. Marginal Shapley values on correlated predictors split credit between slope, curvature and elevation, so none of these curves is a causal response curve and none can be turned into a design rule without re-fitting.Fig. 9 SHAP dependence plot for causative factors: (a) slope, (b) elevation, (c) LULC, (d) TAAT, (e) curvature, (f) TAAR, (g) soil, (h) NDVI, (i) WTDS, (j) aspecttap the figure to open it full size
Figure 12
Figure 12 Local SHAP decompositions for the three field sites, with the predicted probability printed per panel👀 Look at: Panel (a)'s bar order: 'Aspect = 99.2' sits above 'TAAR = 468.6 mm', so the text's claim that LULC and TAAR are the top two holds only at Sites 2 and 3 - check the ranking before believing the sentence.🔬 What the XAI is doing here: Each panel is one local Shapley decomposition: signed bars that add from the model's base value E[f(X)], printed on the axis, up to that site's own score f(x) of 0.632, 0.693 and 0.64 - the numbers the text quotes as 63.2, 69.3 and 64%. Red pushes toward landslide, blue away, and bar length is the feature's Shapley value for this instance only, computed with Eq. 10 against a background expectation, not by perturbing the raster, so nothing here says what happens if you actually cut the slope. Read the ordering rather than the digits: 'LULC = built area' dominates everywhere (about +0.18, +0.17, +0.15), but at Site-1 aspect at -0.14 outranks TAAR at +0.13, which contradicts the blanket 'LULC and TAAR were the top two' claim. The panels never name the model that produced them, and all three scores sit only 0.13 to 0.19 above the 0.5 decision line, so the decomposition is being asked to explain a fairly weak margin.Fig. 12 SHAP local explanation (a) Site-1, (b) Site-2, (c) Site-3tap the figure to open it full size
Table 5
Table 5 DiCE counterfactual target values for the three field validation sites👀 Look at: The dash under 'Slope angle' for Sites 1-2 against 15.3 degrees for Site 3, and the fact that only post-change values are printed - the 22 degree cut at Site 3 is visible only because Fig. 12 happens to print 37.3 as the starting point.🔬 What the XAI is doing here: This is DiCE output, so the table is the end point of a search, not a sensitivity sweep: for each site the algorithm optimises only over the features declared mutable - LULC, WTDS and NDVI at Sites 1-2, LULC, NDVI and slope at Site 3 - while aspect, elevation, curvature, soil, TAAR and TAAT are frozen, and it looks for feature vectors whose predicted class crosses from landslide to non-landslide. 'Smallest change' is not a physical minimum; it is the lambda1 times distance term in the paper's Eq. 12, traded off against prediction loss toward the target class and a lambda2 diversity term, and the paper never states the distance norm, the number k of candidates or which candidate was kept. Read the cells as targets, not instructions: Site-1 needs one water-table class (3-6 m to 6-9 m) plus NDVI 0.725 to 0.829, Site-3 needs a 22 degree slope cut plus LULC 5 plus NDVI 0.859, and those two are not comparable units of effort on any construction site. What the table cannot tell you is the margin - it prints no post-counterfactual probability, so a site landing at 0.49 and one landing at 0.05 look identical here.Table 5 Counterfactuals for the field validation sitestap the figure to open it full size
Figure 10
Figure 10 Statewide landslide-susceptibility zonation for Minnesota from the five models👀 Look at: The legend's five classes with no numeric breaks printed beside them - the zoning is a thresholding of the 0-1 probability surface that the paper never defines, so the map cannot be rebuilt from the model.🔬 What the XAI is doing here: This is not an attribution object but the classifier's decision surface after thresholding: five zone classes cut from the same 0-1 probability raster, one panel per model, so the only thing changing across panels is where each model places its boundaries. Because the class breaks are never given - equal interval, quantile or natural breaks - the colours cannot be reconstructed from the probabilities, and two maps drawn on different breaks would disagree visually while being the same model. Read the disagreement rather than the colours: the simpler models return large continuous blocks of a single class across whole regions, while the attention-based models break the surface into small patches, and that patchiness is a property of the decision boundary, not evidence of better physics. Nothing on the map carries a per-pixel uncertainty or a distance-to-training-data layer, so a red pixel in a data gap looks exactly like a red pixel beside 200 mapped landslides.Fig. 10 LSZ map of Minnesota obtained from: (a) LR, (b) MLP, (c) RF, (d) TabNet, (e) TabKANettap the figure to open it full size

The numbers that matter

What it does not prove

  • A random 70:30 split of points drawn from the same 500 m neighbourhoods means 0.97 is a same-place score, not a transfer score; nothing here estimates how the map behaves in a county with no inventory.
  • The three 'field validation' sites sit on two highways, were all predicted unstable by all five models, and confirm only that the map is not inverted - not that the five susceptibility classes are calibrated or ordered correctly.
  • The zone breaks that turn the 0-1 probability surface into very low to very high are never stated, so the published LSZ classes cannot be reproduced from the model.
  • The counterfactuals are never re-scored: no post-edit probability is reported, so a site pushed to 0.49 and one pushed to 0.05 are indistinguishable in Table 5, and no intervention cost or engineering feasibility is attached.
  • Fig. 12 does not name the model behind the local SHAP bars, and the counterfactual search does not name its distance norm or k, so neither the attribution nor the 'smallest change' claim is reproducible from the text.
Research translation

What this teaches me

An explanation that ends in a ranking is a description; one that ends in a reachable feature value is a decision. The paper shows the move is mechanically cheap - one DiCE call on the fitted model, with an explicit list of which features may not be touched - and it also shows where the move goes soft: the target is minimal in the model's scaled space, not in money, time or slope mechanics, and nobody re-predicts after the edit to prove the site flips.

How it connects to my research

The three failure points are the ones he already audits in spectral work: a random split over spatially autocorrelated samples (his OSSL folds), a 3 m grid built from 800 m and 10 m inputs (his resampling of climate covariates onto a soil-spectral lattice), and an attribution read as mechanism (his SHAP on TabPFN). The counterfactual idea transfers directly - for a soil-spectroscopy classifier the counterfactual is the minimum spectral or covariate edit that moves a sample across a class boundary, and it inherits exactly the same caveat about what 'minimum' is measured in.

One actionable takeaway

Before trusting any counterfactual table, ask for two numbers it usually omits: the post-edit predicted probability and the distance metric - if both are missing, it is a suggestion, not an action.

🔀 All 5 side by side

Paper Rung XAI layer Headline result What it actually proves
Guo 20261. DescribeTreeSHAP on XGBoost (TN) and RF (TP); mean |SHAP| bars and SHAP dependenceTN: R2 0.71, RMSE 0.32 kg m-2, RPD 1.87 (XGBoost). TP: R2 0.62, RMSE 0.035 kg m-2, RPD 1.64 (RF)That a nutrient map can be built from 97 sites and that vegetation and precipitation dominate TN while elevation and temperature dominate TP — in this model, on this random split.
Achu 20262. JustifyTreeSHAP on RF; four models with and without depth-wise soil properties, grid and slope unitsAUROC 0.912 (SUB1) vs 0.897 (GUB2); mean susceptibility 0.37 vs 0.44That adding soil-profile data changes both accuracy and the spatial pattern, and that SHAP can show which variables displaced the topographic ones — not that the pattern is right off-site.
Shawon 20263. QuantifySHAP plus integrated gradients on a quantile CNN-LSTM, per soil depthAverage R2 0.948; RMSE 0.39-0.79 across five depths; MAPE generally below 3%That depth-resolved moisture can be forecast with calibrated intervals and that the drivers shift from short-term atmospheric to seasonal with depth — on one plantation, three zones.
Rafi 20264. DeployPermutation importance, SHAP, LIME, Morris screening, ELI5 and counterfactuals: 12 formatsRF test accuracy 98.61% (train 99.26%) over 26 crops, 7 soil parameters, on a Raspberry Pi 5That a full explanation stack can run on edge hardware and reach a user — not that any of the twelve formats improves a farmer's decision.
Dwivedi 20265. ActSHAP global and local plus DiCE counterfactuals across LR, RF, MLP, TabNet and TabKANetRF accuracy 0.97 (2011 TP, 38 FN); slope and elevation the top SHAP contributorsThat a statewide susceptibility map can be produced and that a counterfactual names a change that would flip a site's class — not that the change is feasible or that the map generalises spatially.

Where all 5 agree

Where the 5 pull in different directions

📖 The day's vocabulary

Explainable AI (XAI)
Any method that produces a human-readable account of why a fitted model made a prediction. Post-hoc methods explain after fitting; intrinsic methods use a model whose form is already readable.
Post-hoc explanation
An explanation computed from a trained model without changing it — SHAP, LIME, integrated gradients, counterfactuals.
Shapley value
The average marginal contribution of a feature over all orderings in which features could be added to the model; the game-theory quantity SHAP estimates.
SHAP
SHapley Additive exPlanations: an additive attribution where the feature contributions plus a baseline sum exactly to the prediction.
TreeSHAP
An exact, polynomial-time SHAP algorithm for tree ensembles; what Guo et al. and Achu et al. use.
KernelSHAP
A model-agnostic SHAP approximation that samples feature coalitions and fits a weighted linear model; used where the model is not a tree ensemble.
Background / reference set
The sample used to simulate 'this feature is absent' in SHAP. Different background sets give different SHAP values for the same model and the same case.
Beeswarm (summary) plot
One dot per sample per feature: x is the SHAP value, colour is the feature value, rows are ordered by mean absolute SHAP.
Dependence plot
SHAP value against the actual value of one feature, one dot per sample; shows thresholds and interactions.
Partial dependence plot (PDP)
The model's average prediction as one feature is swept over a grid while the others are averaged over their observed distribution; can evaluate unrealistic combinations.
Permutation importance
Drop in model score when one feature's values are randomly shuffled; model-agnostic but unstable under correlated features.
Gini / impurity importance
How much a feature reduced impurity inside a tree ensemble; free to compute, biased toward high-cardinality variables, no direction.
LIME
Local Interpretable Model-agnostic Explanations: fit a simple surrogate around one prediction by sampling perturbed neighbours.
Morris screening
A global sensitivity method that varies one factor at a time over a grid of trajectories and ranks factors by elementary effects; cheap, coarse.
Integrated gradients (IG)
A gradient-based attribution that integrates the gradient along a path from a chosen baseline input to the actual input; satisfies completeness relative to that baseline.
Attention weights
Learned weights that route information inside a transformer; often shown as explanations but with no axiom tying them to contribution.
Counterfactual explanation
An alternative input that crosses the decision boundary with minimal change — a 'what would have to be different' statement.
DiCE
Diverse Counterfactual Explanations: generates k valid, minimal, mutually distinct counterfactuals by optimising validity, proximity and diversity.
Quantile regression
Predicting conditional quantiles instead of the mean, giving prediction intervals; the uncertainty layer in Shawon et al.
Quantile regression forest (QRF)
A random forest that returns the full conditional distribution of the response, used by Guo et al. to map spatial uncertainty.
PICP / MPIW
Prediction Interval Coverage Probability and Mean Prediction Interval Width: whether the intervals contain the truth as often as promised, and how wide they are.
Spatial cross-validation
Holding out spatially separated blocks rather than random rows, so the test set is not adjacent to the training set; only Shawon et al. approximate this with held-out zones.

🧠 Journal-club questions for your own notes

  1. Achu et al. report AUROC 0.912 with soil properties and 0.897 without, and mean susceptibility falling from 0.44 to 0.37. Which of those two changes would convince you the new variables are doing real work, and what would you need to see to rule out that the gain is just more parameters?
  2. Guo et al. use a random 80/20 split on 97 sites and then map the result across a province. State in one sentence what that map's error at an unsampled location actually is, and what split you would run instead.
  3. Shawon et al. explain a quantile model with SHAP and integrated gradients. If the SHAP ranking and the IG ranking disagreed for the deepest layer, which would you trust, and what would the disagreement itself tell you?
  4. Rafi et al. present twelve explanation formats as a solution to farmer distrust. Name one experiment that would test whether any of them helps, and say what the outcome measure would be.
  5. Dwivedi et al. generate counterfactuals on slope angle and elevation. Rewrite one of those as a counterfactual a highway engineer could actually act on, and say what data it would require.
  6. Pick the paper whose explanation you find least convincing. Name the specific figure that fails, and say whether the failure is in the method, the baseline, the split, or the interpretation.
  7. Your own spectral models: if you ran TreeSHAP today on a TabPFN or PLSR ensemble, what would the background set be, and what would 'a soil spectrum with this wavelength absent' even mean?