Physics-Informed Neural Networks for Soil Water Retention Curves
Overview
Implements a physics-informed one-dimensional convolutional neural network (CNN1D-PINN) for estimating the complete soil water retention curve (SWRC) as a continuous function of matric potential, from soil texture, organic carbon, bulk density, and depth. The network architecture ensures strict monotonic decrease of volumetric water content with increasing suction by construction, through cumulative integration of non-negative slope outputs (monotone integral architecture). Four physics-based residual constraints adapted from Norouzi et al. (2025) doi:10.1029/2024WR038149 are embedded in the loss function: (S1) linearity at the dry end (pF in [5, 7.6]); (S2) non-negativity at pF = 6.2; (S3) non-positivity at pF = 7.6; and (S4) a near-zero derivative in the saturated plateau region (pF in [-2, -0.3]). Includes tools for data preparation, model training, dense prediction, performance metrics, texture classification, and publication-quality visualisation.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK7 OK2026-03-27
Documentation
- Help pages
- 54 (7 internal)includes a package overview page
- Examples that run
- 59%17 run in a plain check · 12 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 78%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 6%
Downloads
Repository
Stars over time
Releases over time
7 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/hugomachadorodrigues/soilflux on 2026-08-23.
Show all practicesHide 2 practices
Dependencies
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.5Latest2026-03-26 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-26
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 18 KB / 1 file
- Download size
- 3.4 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("soilFlux")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.5281/zenodo.18990856.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.