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
| Paper | Question it answers | Headline |
|---|---|---|
| Guo et al. 2026 | Which 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. 2026 | Does 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. 2026 | Can 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. 2026 | Can 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. 2026 | What 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 asking | Method | What you get | Where it fails |
|---|---|---|---|
| Which variables matter overall? | Gini / impurity importance, permutation importance, mean absolute SHAP | One ranked bar chart per model | Credit 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 colour | An 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 underneath | PDP 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 surrogate | Additive bars that sum from the baseline to this prediction | A 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 maps | Attribution 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 boundary | Only 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 number | Uncertainty is not explanation: a tight interval around a physically wrong prediction is still wrong, and vice versa. |
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.
| Rung | Paper | XAI layer | Decision it is meant to support | What is still unexplained |
|---|---|---|---|---|
| 1. Describe | Guo 2026 | TreeSHAP on XGBoost (TN) and RF (TP); mean |SHAP| bars, SHAP dependence curves, QRF intervals | Which environmental variables a grassland nutrient survey should monitor | Why the association exists; the 80/20 split is random, so the map's skill at unsampled locations is asserted rather than measured. |
| 2. Justify | Achu 2026 | TreeSHAP on RF, four models (GUB1/SUB1 with soil, GUB2/SUB2 topography only) | Whether a costly multi-depth soil sampling campaign is worth repeating elsewhere | Explanation and accuracy move together here, but the gain is measured in one 645 km2 basin. |
| 3. Quantify | Shawon 2026 | SHAP plus integrated gradients on a quantile CNN-LSTM, per depth | Irrigation scheduling where a missed dry spell costs yield | Neither method handles the temporal dependence explicitly; IG's baseline is a modelling choice. |
| 4. Deploy | Rafi 2026 | Twelve local/global formats from permutation importance, SHAP, LIME, Morris screening and ELI5, plus counterfactuals, on a Raspberry Pi | A farmer deciding what to plant this season, on a screen in the field | Whether twelve explanations help or overload; accuracy is 99% on a dataset whose sampling design is not described as field-realistic. |
| 5. Act | Dwivedi 2026 | SHAP global and local, plus DiCE counterfactuals; TabNet attention as an intrinsic-ish layer | Which remediation would move a specific slope out of the high-susceptibility class | Counterfactuals on slope angle and elevation are illustrative, not feasible; the 70/30 split is random, so the map inherits spatial optimism. |
🎓 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 for | Then check |
|---|---|---|
| Rank variables for a monitoring programme | Mean |SHAP| or permutation importance | That correlated variables are not double-counted, and that the ranking is stable across seeds |
| Explain one decision to a non-modeller | SHAP local waterfall, or a counterfactual | That the explanation is in units the decision-maker uses (kg m-2, percent yield, class) |
| Find a threshold worth testing in the field | SHAP dependence plot | That the threshold sits inside the observed data range and is not an artefact of binning |
| Compare two models fairly | Same explainer, same background set, same split | That the difference is not just a different baseline |
| Justify a new measurement or sensor | Ablation plus SHAP on both models | That accuracy and explanation move together — otherwise the new variable is decoration |
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
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
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.
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.
The numbers that matter
- samples — 97 total; 80 calibration / 17 validation (random split)
- predictors — 15 in the methods text (7 climate, 2 vegetation, 4 soil, 2 topographic); Fig. 3 caption says 16
- TN R2 / RMSE / RPD — XGBoost 0.71 / 0.32 / 1.87; Cubist 0.70 / 0.35 / 1.80; RF 0.61 / 0.37 / 1.60; SVM 0.59 / 0.38 / 1.56
- TP R2 / RMSE / RPD — RF 0.62 / 0.035 / 1.64; SVM 0.56 / 0.039 / 1.49; Cubist 0.46 / 0.044 / 1.35; XGBoost 0.46 / 0.043 / 1.34
- TN descriptive — mean 0.74, SD 0.59 (table 0.6), range 0.09–2.51 kg m−2, CV 0.81
- TP descriptive — mean 0.21, SD 0.06, range 0.07–0.34 kg m−2, CV 0.29
- stocks — TN 3.57 × 10^8 t at 0.84 kg m−2; TP 0.88 × 10^8 t at 0.21 kg m−2
- uncertainty — QRF 90% PI (5th–95th pct, 100 runs); TN > 1.2 kg m−2 in east/southeast; TP < 0.04 kg m−2 in southwest
- XGBoost settings — 300 trees, learning rate 0.01, max depth 4
- SHAP library — Python 3.9 'shap' package; R 4.5.2 caret for the models
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.
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
Paper 2 of 5
Rung 2 — SHAP as evidence: does a new variable block actually earn its place?
Catena matters: Enhancing landslide prediction with soil profile characteristics and explainable AI
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.
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.
The numbers that matter
- landslides — 372
- basin — 645 km2, 446–2683 m a.s.l.
- soil pits — 65 (Atterberg: 65 surface, 40 at 110 cm, 40 at 210 cm)
- slope units — 4017 (min area 20,000 m2; 4.5×10^3–1.03×10^6 m2)
- RF settings — mtry 6, ntree 3000
- AUROC — GUB1 0.902, SUB1 0.912, GUB2 0.897, SUB2 0.902
- accuracy — GUB1 0.858, SUB1 0.862, GUB2 0.826, SUB2 0.767
- mean susceptibility — GUB1 0.36 (0.20), SUB1 0.37 (0.19), GUB2 0.44 (0.23), SUB2 0.41 (0.22)
- mean difference — −0.051 (SD 0.217) GUB; −0.049 (SD 0.209) SUB
- area decreased — 59% of pixels, 58% of slope units
- SHAP dominance — ~70% soil, ~30% topographic
- depth by group — ~1.15 m topographic vs ~5.5 m soil
- volume by group — 778–17,580 m3 vs 1345–594,727 m3
- top-10 GUB1 — slope, FCY110, CIA, TWI, FCY210, Kunsat, LLT210, LLT10, PSI10, PWP110
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.
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
Paper 3 of 5
Rung 3 — explanation inside a deep model, with uncertainty attached
Explainable Quantile CNN-LSTM model for uncertainty-aware multi-layer soil moisture prediction in tropical cocoa plantations
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.
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.
The numbers that matter
- R2 by zone (CNN-LSTM) — Zone 1 0.944-0.973 (mean 0.958) | Zone 2 0.911-0.975 (mean 0.941) | Zone 3 0.915-0.967 (mean 0.944)
- R2 by model (all-zone avg) — LR 0.801, CNN 0.844, XGBoost 0.875, LSTM 0.895, CNN-LSTM 0.948
- RMSE / MAPE — RMSE 0.39-0.789; MAPE 0.003-0.023 (0.3-2.3%)
- PICP — 50% band 0.491-0.529; 80% band 0.790-0.828
- Pinball / MPIW / Winkler (80%) — pinball 0.158-0.465; MPIW80 1.251-2.868; Winkler80 1.870-8.287
- window — lag 7 = 3.5 h at 30-min sampling; lag 9 marginally better but rejected
- site — 3 zones (1.16, 1.10, 1.13 acres), 6 probes each, depths 5/30/55/80/105 cm
- periods — train 12/07/2018-11/22/2019; test 11/22/2019-12/31/2019
- n (derived, not printed) — approx. 16,847 training steps; approx. 1,872 test steps per zone
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.
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
Paper 4 of 5
Rung 4 — explanation as a product: twelve formats on a farmer's screen
Explainable AI-Integrated Real-Time Portable Crop Recommendation System Based on Internet of Things for Precision Agriculture
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.
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.
The numbers that matter
- classes — 26 (22 public + 4 local vegetables)
- features — 7 (N, P, K, T, moisture, pH, EC)
- train/test rows — 31,601 / 7901
- RF hyperparameters — 100 trees, unlimited depth, Gini
- RF accuracy (Table 1) — 0.9904
- RF accuracy (abstract) — 98.61% test, 99.26% train
- RF CV mean — 0.9881 (5-fold), 0.9882 (10-fold), 0.9880 (repeated)
- permutation top feature — moisture 0.4207
- Morris top feature — EC mu* 0.4946
- SHAP sample size — 100 rows
- sensor accuracy — +/-3% full scale
- aggregation window — W = 6 (1 h at 10-min sampling)
- noise augmentation — sigma = 0.05 (5% of feature SD)
- 1D-CNN CV — 0.0 across all metrics (failed)
- field top-1 confidence — 53.17% (jute)
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.
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
Paper 5 of 5
Rung 5 — explanation as action: counterfactuals, not just attributions
Explainable AI (xAI) for Landslide Susceptibility Modeling: A Comparative Analysis of Machine Learning and Deep Learning Approaches
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.
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.
The numbers that matter
- inventoried landslide points — 7,710
- train / validation split, random — 70:30
- raster resolution — 3 m
- RF validation accuracy — 0.97
- LR validation accuracy — 0.94
- RF CE loss — 0.09
- LR CE loss — 0.16
- RF true positives — 2011
- RF false negatives — 38
- TabKANet false positives (most of the five) — 122
- Site-1 failure probability — 63.2%
- Site-2 failure probability — 69.3%
- Site-3 failure probability — 64%
- Site-3 slope before counterfactual (to 15.3 deg) — 37.3
- Site-1 NDVI before counterfactual (to 0.829) — 0.725
- Site-1 NDVI after counterfactual — 0.829
- LR intercept — 0.297
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.
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
🔀 All 5 side by side
| Paper | Rung | XAI layer | Headline result | What it actually proves |
|---|---|---|---|---|
| Guo 2026 | 1. Describe | TreeSHAP on XGBoost (TN) and RF (TP); mean |SHAP| bars and SHAP dependence | TN: 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 2026 | 2. Justify | TreeSHAP on RF; four models with and without depth-wise soil properties, grid and slope units | AUROC 0.912 (SUB1) vs 0.897 (GUB2); mean susceptibility 0.37 vs 0.44 | That 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 2026 | 3. Quantify | SHAP plus integrated gradients on a quantile CNN-LSTM, per soil depth | Average 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 2026 | 4. Deploy | Permutation importance, SHAP, LIME, Morris screening, ELI5 and counterfactuals: 12 formats | RF test accuracy 98.61% (train 99.26%) over 26 crops, 7 soil parameters, on a Raspberry Pi 5 | That 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 2026 | 5. Act | SHAP global and local plus DiCE counterfactuals across LR, RF, MLP, TabNet and TabKANet | RF accuracy 0.97 (2011 TP, 38 FN); slope and elevation the top SHAP contributors | That 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
- All five treat prediction as necessary and insufficient: each adds an explanation layer before the output is handed to anyone who has to act on it. None of them stops at accuracy.
- All five use post-hoc attribution on a fitted model — SHAP in every paper — and four of the five also report a second, different explanation instrument (SHAP dependence, integrated gradients, LIME, Morris screening, or counterfactuals). The convergence on SHAP is a convergence on one library, not on one theory.
- All five report the same shape of finding: a small number of variables carry most of the model's behaviour, and the ranking is broadly plausible to a domain expert. Plausibility is doing a lot of work in all five papers, and none of them tests an implausible ranking as a control.
- All five interpret attributions ecologically — 'NPP drives TN', 'slope drives landslides' — while at most one of them states plainly that SHAP quantifies association, not causation. Guo et al. do state it; the others leave it implicit in the discussion.
Where the 5 pull in different directions
- Global versus local does not commute. Dwivedi et al. show a case where the factor ranked most important globally is not the factor dominating the local prediction — the paper says so explicitly. Guo et al.'s page-level story is purely global, so its thresholds read as universal when they are sample-averaged.
- Rafi et al. treat explanation as a trust technology: twelve formats are presented as the cure for farmer distrust. Dwivedi et al. and Guo et al. treat explanation as an analyst's instrument. Same mathematics, opposite theory of use — and no paper in the folder measures whether an explanation changed anyone's decision.
- Uncertainty appears in only one paper. Shawon et al. attach prediction intervals to every forecast; Guo et al. use QRF for spatial uncertainty; the other three publish point predictions with a single accuracy number. An explanation without an interval says 'this is why' about a number that may itself be wrong.
- Counterfactual actionability is asserted, not tested. Dwivedi et al. generate what-if recipes for terrain variables that a manager cannot change, and Rafi et al. generate soil-amendment recipes that a farmer can — the same method, two very different claims about usefulness, neither evaluated.
📖 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
- 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?
- 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.
- 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?
- 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.
- 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.
- 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.
- 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?