Skip to content

xaiHydro

0.1.0Package record

Explainable AI Tools for Hydro-Climate Modelling

0packages depend
407downloads / year
1.5%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.1.0

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

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OKNow
  • OK6 OK2026-09-25
Advisories

none known

Documentation

In release 0.1.0
READMEYes · 422 wordsVignettesYes · 2 · dynamicNEWSYes · 67% structured · mentions 0.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Description cites a JSS article
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

407
CRAN downloads in the past year
Rank #25,129 · ~1/day · ~34/mo
Daily download trend is not available in this view yet.
40730 days
40790 days
4071 year
Compare downloads with other packages →
Also on5 r2u1 autocran

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing xaiHydro adds 44 packages (17 with compiled code, 38 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, patchwork 3.2 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
  • 0.1.0Latest
    2026-09-24 · current release
  • R
    R 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")
Islam, S., Ali, S., & Kaushal, R. (2026). xaiHydro: Explainable AI Tools for Hydro-Climate Modelling (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for xaiHydro version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy