Explainable AI Tools for Hydro-Climate Modelling
Overview
Provides a unified workflow for applying Explainable Artificial Intelligence (XAI) methods to hydro-climate predictive models. Functions implement a permutation-based Monte Carlo SHAP estimator (Strumbelj and Kononenko (2014) doi:10.1007/s10115-013-0679-x; Lundberg and Lee (2017) doi:10.48550/arXiv.1705.07874), a self-contained locally weighted linear surrogate LIME (Ribeiro et al. (2016) doi:10.1145/2939672.2939778), and Partial Dependence Plots with Accumulated Local Effects (Friedman (2001) doi:10.1214/aos/1013203451; Apley and Zhu (2020) doi:10.1111/rssb.12377) with hydrology-specific visualisations and interpretation utilities. Supports any model object compatible with the 'DALEX' explainer interface (Biecek (2018) doi:10.18637/jss.v097.i01), including random forests, gradient boosting, and neural networks trained on streamflow, drought indices, flood risk, or evapotranspiration data. Hydrology-standard performance metrics Nash-Sutcliffe Efficiency (NSE, Nash and Sutcliffe (1970) doi:10.1016/0022-1694(70)90255-6) and Kling-Gupta Efficiency (KGE, Gupta et al. (2009) doi:10.1016/j.jhydrol.2009.08.003) are computed alongside standard regression metrics. Designed to accompany the book chapter: Islam, S., Dheeraj, A., Ali, S., Kaushal, R. and Venkatesh, G. (2026). Explainable Artificial Intelligence for Hydro-Climatic Modelling: Methods, Applications, and Implementation Using the xaiHydro R Package. In Chandniha, S. K. et al. (Eds.), Hydro-Climate Analytics: Remote Sensing, AI and Geospatial Modelling. Springer.
Authors
- **Sadikul Islam** [aut, cre] — ICAR-IISWC Dehradun; sadikul.islamiasri@gmail.com
- **Shakir Ali** [aut] — ICAR-IISWC Dehradun
- **Rajesh Kaushal** [aut] — ICAR-IISWC Dehradun
Changes in this release
Authors updated
- Added Shakir Ali as co-author (
aut) in DESCRIPTION, all R file headers, xaiHydro-package.R, .onAttach() message, and README.md. - All three authors now listed throughout the package.
Forbidden files removed (CRAN compliance)
- Deleted
LICENSE,LICENSE.md(GPL-3 needs no external file). - Deleted
.Rhistory,.Rproj.user/(RStudio user files must not be shipped).
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
- No GitHub URLs in DESCRIPTION or README.
Book chapter citation updated
- Description field and package-level documentation now reference the full five-author book chapter: Islam, Dheeraj, Ali, Kaushal & Venkatesh (2026), Springer Hydro-Climate Analytics volume.
New reference added
- Zounemat-Kermani & Kheimi (2026) systematic review (180 studies, 9 domains, Water Resources Management) added to xaiHydro-package.R @references.
Bug fixes carried forward from development
- hydro_importance(): loss_function default changed from character "rmse" to DALEX::loss_root_mean_square (DALEX >= 2.4 API change).
- hydro_residuals(): recomputes predictions directly from explainer$y and explainer$predict_function to avoid DALEX version-dependent column names.
- hydro_lime(): .lime_r2() helper safely extracts R-squared across iml versions (0.10 and 0.11+) returning NA_real_ when unavailable.
- plot_breakdown_hydro(): make.unique() prevents duplicate factor level error.
- .Rbuildignore updated to exclude .Rhistory and .Rproj.user.
From NEWS.md in the release
Install
Health
- OK13 OKNow
- OK6 OK2026-09-25
Documentation
- Help pages
- 17 (1 internal)includes a package overview page
- Examples that run
- 19%3 run in a plain check · 13 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 100%
Downloads
Dependencies
Code & Tests
People & History
- 0.1.0Latest2026-09-24 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-09-24
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 73 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("xaiHydro")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.