Skip to main content

Rapid, Reproducible, and Robust Environmental Modeling for Decision Support: Worked Examples and Open-Source Software Tools

Cover image for Research Topic "Rapid, Reproducible, and Robust Environmental Modeling for Decision Support: Worked Examples and Open-Source Software Tools"
122kviews
Editorial13 September 2023
Editorial: Rapid, reproducible, and robust environmental modeling for decision support: worked examples and open-source software tools
Jeremy T. White, Michael N. Fienen, Catherine R. Moore and Anneli Guthke

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% This is just an example/guide for you to refer to when submitting manuscripts to Frontiers, it is not mandatory to use Frontiers .cls files nor frontiers.tex %

% This will only generate the Manuscript, the final article will be typeset by Frontiers after acceptance.

% %

% %

% When submitting your files, remember to upload this *tex file, the pdf generated with it, the *bib file (if bibliography is not within the *tex) and all the figures.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% Version 3.4 Generated 2022/06/14 %%%

%%% You will need to have the following packages installed: datetime, fmtcount, etoolbox, fcprefix, which are normally inlcuded in WinEdt. %%%

%%% In http://www.ctan.org/ you can find the packages and how to install them, if necessary. %%%

%%% NB logo1.jpg is required in the path in order to correctly compile front page header %%%

\documentclass[utf8]{FrontiersinHarvard} % for articles in journals using the Harvard Referencing Style (Author-Date), for Frontiers Reference Styles by Journal: https://zendesk.frontiersin.org/hc/en-us/articles/360017860337-Frontiers-Reference-Styles-by-Journal

%\documentclass[utf8]{FrontiersinVancouver} % for articles in journals using the Vancouver Reference Style (Numbered), for Frontiers Reference Styles by Journal: https://zendesk.frontiersin.org/hc/en-us/articles/360017860337-Frontiers-Reference-Styles-by-Journal

%\documentclass[utf8]{frontiersinFPHY_FAMS} % Vancouver Reference Style (Numbered) for articles in the journals "Frontiers in Physics" and "Frontiers in Applied Mathematics and Statistics"

%\setcitestyle{square} % for articles in the journals "Frontiers in Physics" and "Frontiers in Applied Mathematics and Statistics"

\usepackage{url,hyperref,lineno,microtype,subcaption}

\usepackage{natbib}

\bibliographystyle{unsrtnat}

\linenumbers

% Leave a blank line between paragraphs instead of using \\

\def\keyFont{\fontsize{8}{11}\helveticabold }

\def\firstAuthorLast{White {et~al.}} %use et al only if is more than 1 author

\def\Authors{Jeremy T. White\,$^{1,*}$, Michael N. Fienen\,$^{2}$ and Catherine R. Moore\,$^{3}$ and Anneli Guthke\,${4}$}

% Affiliations should be keyed to the author's name with superscript numbers and be listed as follows: Laboratory, Institute, Department, Organization, City, State abbreviation (USA, Canada, Australia), and Country (without detailed address information such as city zip codes or street names).

% If one of the authors has a change of address, list the new address below the correspondence details using a superscript symbol and use the same symbol to indicate the author in the author list.

\def\Address{$^{1}$Intera Geosciences, Perth, WA, Australia \\

$^{2}$U.S. Geological Survey, Upper Midwest Water Science Center, Madison, WI, USA\\

$^{3}$GNS Science, Wellington, NZ\\

$^{4}$Stuttgart Center for Simulation Science, Cluster of Excellence EXC 2075, University of Stuttgart, Stuttgart, Germany}

% The Corresponding Author should be marked with an asterisk

% Provide the exact contact address (this time including street name and city zip code) and email of the corresponding author

\def\corrAuthor{Corresponding Author}

\def\corrEmail{jwhite@intera.com}

\begin{document}

\onecolumn

\firstpage{1}

\title[Editorial]{Editorial: Rapid, Reproducible, and Robust Environmental Modeling for Decision Support: Worked Examples and Open-Source Software Tools}

\author[\firstAuthorLast ]{\Authors} %This field will be automatically populated

\address{} %This field will be automatically populated

\correspondance{} %This field will be automatically populated

\extraAuth{}% If there are more than 1 corresponding author, comment this line and uncomment the next one.

%\extraAuth{corresponding Author2 \\ Laboratory X2, Institute X2, Department X2, Organization X2, Street X2, City X2 , State XX2 (only USA, Canada and Australia), Zip Code2, X2 Country X2, email2@uni2.edu}

\maketitle

{\bf Editorial on the Research Topic

\href{https://www.frontiersin.org/research-topics/22582/rapid-reproducible-and-robust-environmental-modeling-for-decision-support-worked-examples-and-open-source-software-tools}{Rapid, Reproducible, and Robust Environmental Modeling for Decision Support: Worked Examples and Open-Source Software Tools}}\footnote{Any use of trade, firm, or product names is for descriptive purposes only and does not imply endorsement by the U.S. Government.}

To provide support for resource management decision making, computational modeling workflows in environmental simulations need to be efficient, reproducible, and robust with regard to informing assessments of the risk of unwanted outcomes. Each of these three attributes is difficult to achieve in practice; aspirations to simultaneously achieve all of them are truly lofty. Too often, modeling analyses are inefficient, the workflow is largely opaque and unknown, and the important simulated outcomes lack the context of uncertainty and/or risk. This Research Topic called for papers that demonstrate rapid, reproducible and/or robust modeling through worked examples and software tools (a preference for open source). The worked examples should demonstrate how the researcher aspired to be rapid, reproducible, and robust; we were interested in the process and approach as much as the results. We aim to stimulate discussion based on lessons learned and results presented, for other researchers and practitioners to build on. We particularly welcomed descriptions of trials and tribulations: What was difficult? What didn’t work? How were these issues overcome?

Generally, we identified three categories of contributions:

\begin{itemize}

\item New open-source software tools designed to facilitate aspects of environmental, hydrological and geophysical modeling;

\item New approaches to enable better decision support with modeling;

\item Demonstrations/case studies of rapid, reproducible, and robust modeling.

\end{itemize}

These contributions came from a wide range of author backgrounds and institutions. This diversity shows that there is broad interest from academia, industry, and government agencies in rapid, reproducible, and robust modeling workflows. We continue to help promote such methods through convening dedicated sessions at international conferences.

{\bf Open-source software to support modeling}:

\href{https://doi.org/10.3389/feart.2022.903965}{\citet{Leaf_2022}} present Modflow-setup, a workflow toolset to automate the construction of numerical groundwater models for the MODFLOW platform from original geospatial and tabular datasets. The open-source, online code base is extensible through collaborative version control.

\href{https://doi.org/10.3389/feart.2022.884766}{\citet{Moges_2022}} call for reproducible model benchmarking and diagnostics, which will find wide acceptance in modeling communities only through standardized methods and ready-to-use toolkits. Using the Jupyter platform, they have introduced HydroBench: an open-source toolset for objectively benchmarking hydrological models that can further be developed by the hydrological community.

\href{https://doi.org/10.3389/feart.2022.907533}{\citet{Larsen_2022}} present pyGSFLOW, a Python toolset to transparently and reproducibly prepare input for and postprocess output of the integrated surface-water/groundwater model GSFLOW.

\href{https://doi.org/10.3389/feart.2022.907614}{\citet{James_2022}} provide a new standard for geophysical data formats, termed GS Convention, to improve the interoperability, transferability, and long-term archival of such data. Their open-source toolset GSPy provides methods and workflows to build the respective standardized files.

\href{https://doi.org/10.3389/feart.2022.916198}{\citet{Morvillo_2022}} present VisU-HydRA, a Python toolbox to compute exceedance probabilities and resilience measures as a basis for assessing the risk of groundwater contamination. It comes with a step-by-step tutorial to ensure reproducibility of the workflow.

\href{https://doi.org/10.3389/feart.2022.884075}{\citet{Schorpp_2022}} introduce ArchPy, a python toolset for automating the construction of Quaternary geological models. This is an important step toward including these uncertainties in subsurface modeling workflows in a transparent and reproducible way, because the traditional approach required multiple manual steps using different software, which rendered updates with new data or automation almost intractable.

\href{https://doi.org/10.3389/feart.2022.975156}{\citet{Pryet_2022}} present a scripted workflow that facilitates the use of reverse particle tracking in applied groundwater modeling as an efficient surrogate to more computationally demanding advection-diffusion transport modeling for well susceptibility evaluation.

\href{https://doi.org/10.3389/feart.2022.1026479}{\citet{Mudunuru_2022}} present an approach to improve the calibration of large-scale integrated hydrological models such as SWAT via deep-learning techniques. Compared to more traditional approaches, the proposed routine is more efficient and achieves higher skill scores in calibration. %They demonstrate this approach on a model of the American River watershed.

{\bf New approaches to support model-based decision making}:

\href{https://doi.org/10.3389/feart.2022.867379}{\citet{Hugman_2022}} discuss the challenge of choosing the right amount of model complexity for decision-making and propose a methodology that allows expert knowledge of system properties to inform the parameters of a structurally simple model. They demonstrate navigating the conflicting and competing objectives of simple and complex model designs on a case study of predictive modeling to support the management of a stressed coastal aquifer. %in the Algarve region of Portugal.

\href{https://doi.org/10.3389/feart.2022.786223}{\citet{Elshall_2022}} present a method for prescreening-based subset selection with decision relevant metrics to exclude non-representative model runs from the prediction ensemble. Following the FAIR (Findability, Accessibility, Interoperability, and Reuse) Guiding Principles for scientific data management and stewardship, they developed and shared interactive Colab notebooks for data analysis. %They demonstrate the proposed approach to predicting the occurrence of large-scale harmful algal blooms associated with red tides.

\href{https://doi.org/10.3389/feart.2022.979823}{\citet{Moore_2022}} present a sequential conditioning approach to account for geostatistical model uncertainty, which is shown to have a decisive impact on representing the connectivity of high permeability pathways in contaminant transport assessment.

\href{https://doi.org/10.3389/feart.2022.1079287}{\citet{Manewell_2023}} investigate spatial averaging functions to infer aquifer properties from aquifer test drawdowns under heterogeneity and feature boundaries. This helps to characterize and robustly estimate aquifer property heterogeneity in hydrogeological site investigation.

{\bf Case studies of Rapid, Reproducible, and Robust Workflows }:

\href{https://doi.org/10.3389/feart.2022.972305}{\citet{Kitlasten_2022}} present a scripted, reproducible workflow to analyze the impact of ensemble size and vertical resolution on groundwater age predictions for New Zealand.

\href{https://doi.org/10.3389/feart.2022.904271}{\citet{Standen_2022}} demonstrate a scripted and open-source application of decision-support modeling for managed aquifer recharge scenarios to mitigate aquifer contamination from saltwater intrusion in the Algarve region of Portugal.

\href{https://doi.org/10.3389/feart.2023.1111065}{\citet{Chambers_2023}} present a decision-support modeling analysis of the potential for increased groundwater flooding as a result of projected sea-level rise in the low-lying South Dunedin region of New Zealand. They incorporate risk into the analysis proving valuable new information to decision makers.

\href{https://doi.org/10.3389/feart.2022.907609}{\citet{Brakenhoff_2022}} present a fully repeatable demonstration of large-scale transfer-function-noise modeling to differentiate contributions to observed groundwater level variations in a region of the Netherlands. Differentiating pumping and climate sources on water level impacts has important implications in how to manage water resources.

\href{https://doi.org/10.3389/feart.2022.886304}{\citet{De_Sousa_2023}} present a surface-water/groundwater modeling analysis of a semi-arid closed-basin in southwest Australia, and demonstrate efficient, at-scale application of several advanced analyses.

\href{https://doi.org/10.3389/feart.2023.1168609}{\citet{Benavides_H_glund_2023}} report a fully-scripted decision-support modeling analysis within the context of contaminated groundwater discharging to surface-water. Innovative techniques are used to assimilate thermal measurements to better resolve patterns of surface-water/groundwater exchange, leading to improved modeling predictions, and ultimately decision support.

The editors are grateful to all of the authors for providing valuable contributions in the space of rapid, reproducible, and robust modeling. We hope that you enjoy reading these contributions. We also hope that in reading these contributions some of you may feel inspired to engage with the open-source community of your modeling field.

{\bf Conflict of Interest}

Author Jeremy White is/was employed by Intera, INC., a for-profit environmental consulting organization with no mechanism of direct financial benefit arising from Dr. White's involvement in this research topic. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

\medskip

\bibliography{all_articles}

\end{document}

1,718 views

2 citations

Quantifying uncertainty in the temporal disposition of groundwater inundation under sea level rise projections
Over the next century, coastal regions are under threat from projected rising sea levels and the potential emergence of groundwater at the land surface (groundwater inundation). The potential economic and social damages of this largely unseen, and often poorly characterised natural hazard, are substantial. To support risk-based decision making in response to this emerging hazard, here we present Bayesian modelling framework to map the spatial distribution and temporal variability in the uncertainty of groundwater level rises and inundation, under Intergovernmental Panel on Climate Change (IPCC) projections of Sea Level Rise (SLR). Such probabilistic mapping assessments, which acknowledge the spatial uncertainty of groundwater flow model predictions, in addition to the inherent deep uncertainty of the IPCC-SLR projections themselves, are still almost always lacking. The results presented herein demonstrate the value of history matching for increasing the spatial confidence of posterior groundwater level rise and inundation projections, whilst exploring a model’s capacity to predict changes (rather than absolute values) in relation to a decision threshold. The latter may have profound (decision-making) implications for the extremely large number of at-risk, coastal communities and ecosystems, which are typically data poor.

4,444 views

13 citations

Scalable deep learning for watershed model calibration
Watershed models such as the Soil and Water Assessment Tool (SWAT) consist of high-dimensional physical and empirical parameters. These parameters often need to be estimated/calibrated through inverse modeling to produce reliable predictions on hydrological fluxes and states. Existing parameter estimation methods can be time consuming, inefficient, and computationally expensive for high-dimensional problems. In this paper, we present a fast, accurate, and robust method to calibrate the SWAT model (i.e., 20 parameters) using scalable deep learning (DL). We developed DL-enabled inverse models based on convolutional neural networks to assimilate observed streamflow data and estimate the SWAT model parameters. Scalable hyperparameter tuning is performed using high-performance computing resources to identify the top 50 optimal neural network architectures. We used ensemble SWAT simulations to train, validate, and test the DL models. We estimated the parameters of the SWAT model using observed streamflow data and assessed the impact of measurement errors on SWAT model calibration. We tested and validated the proposed scalable DL methodology on the American River Watershed, located in the Pacific Northwest-based Yakima River basin. Our results show that the DL model-based calibration is better than two popular parameter estimation methods (i.e., the generalized likelihood uncertainty estimation [GLUE] and the dynamically dimensioned search [DDS], which is a global optimization algorithm). For the set of parameters that are sensitive to the observations, our DL method yield narrower ranges than the GLUE method but broader ranges than values produced using the DDS method within the sampling range even under high relative observational errors. The SWAT model calibration performance using the DL, GLUE, and DDS methods are compared using R2 and a set of efficiency metrics, including Nash-Sutcliffe, logarithmic Nash-Sutcliffe, Kling-Gupta, modified Kling-Gupta, and non-parametric Kling-Gupta scores, computed on the observed and simulated watershed responses. Our results show that the DL calibration leads to more accurate low and high streamflow predictions than the GLUE and DDS sets. Our research demonstrates that the proposed DL method has high potential to improve our current practice in calibrating large-scale integrated hydrologic models.

6,400 views

17 citations

Modflow-setup: Robust automation of groundwater model construction
In an age of both big data and increasing strain on water resources, sound management decisions often rely on numerical models. Numerical models provide a physics-based framework for assimilating and making sense of information that by itself only provides a limited description of the hydrologic system. Often, numerical models are the best option for quantifying even intuitively obvious connections between human activities and water resources impacts. However, despite many recent advances in model data assimilation and uncertainty quantification, the process of constructing numerical models remains laborious, expensive, and opaque, often precluding their use in decision making. Modflow-setup aims to provide rapid and consistent construction of MODFLOW groundwater models through robust and repeatable automation. Common model construction tasks are distilled in an open-source, online code base that is tested and extensible through collaborative version control. Input to Modflow-setup consists of a single configuration file that summarizes the workflow for building a model, including source data, construction options, and output packages. Source data providing model structure and parameter information-- including shapefiles, rasters, NetCDF files, tables, and other (geolocated) sources to MODFLOW models are read in and mapped to the model discretization, using Flopy and other general open-source scientific Python libraries. In a few minutes, an external array-based MODFLOW model amenable to parameter estimation and uncertainty quantification is produced. This paper describes the core functionality of Modflow-setup, including a worked example of a MODFLOW 6 model for evaluating pumping impacts to a lake in central Wisconsin, USA.

9,861 views

27 citations

TECHNOLOGY AND CODE
30 September 2022
HydroBench: Jupyter supported reproducible hydrological model benchmarking and diagnostic tool
Edom Moges, 5 more and Laurel G. Larsen

5,214 views

7 citations

In 2018-2020, meteorological droughts over Northwestern Europe caused severe declines in groundwater heads with significant damage to groundwater-dependent ecosystems and agriculture. The response of the groundwater system to different hydrological stresses is valuable information for decision-makers. In this paper, a reproducible, data-driven approach using open-source software is proposed to quantify the effects of different hydrological stresses on heads. A scripted workflow was developed using the open-source Pastas software for time series modeling of heads. For each head time series, the best model structure and relevant hydrological stresses (rainfall, evaporation, river stages, and pumping at one or more well fields) were selected iteratively. A new method was applied to model multiple well fields with a single response function, where the response was scaled by the distances between the pumping and observation wells. Selection of the best model structure was performed through reliability checking based on four criteria. The time series model of each observation well represents an independent estimate of the contribution of different hydrological stresses to the head and is based exclusively on observed data. The approach was applied to estimate the drawdown caused by nearby well fields to 250 observed head time series measured at 122 locations in the eastern part of the Netherlands, a country where summer droughts can cause problems, even though the country is better known for problems with too much water. Reliable models were obtained for 126 head time series of which 78 contain one or more well fields as a contributing stress. The spatial variation of the modeled responses to pumping at the well fields show the expected decline with distance from the well field, even though all responses were modeled independently. An example application at one well field showed how the head response to pumping varies per aquifer. Time series analysis was used to determine the feasibility of reducing pumping rates to mitigate large drawdowns during droughts, which depends on the magnitude and response time of the groundwater system to changes in pumping. This is salient information for decision-makers.

6,718 views

22 citations

Automated Hierarchical 3D Modeling of Quaternary Aquifers: The ArchPy Approach
When modeling groundwater systems in Quaternary formations, one of the first steps is to construct a geological and petrophysical model. This is often cumbersome because it requires multiple manual steps which include geophysical interpretation, construction of a structural model, identification of geostatistical model parameters, facies and property simulations. Those steps are often carried out in different software, which makes the automation intractable or very difficult. A non automated approach is time consuming and makes the model updating difficult when new data is available or when some geological interpretations are modified. Furthermore, conducting a cross-validation procedure to assess the overall quality of the models and quantifying the joint structural and parametric uncertainty is tedious. To address these issues, we propose a new approach and a Python module, ArchPy, to automatically generate realistic geological and parameter models. One of its main features is that the modeling operates in a hierarchical manner. The input data consists of a set of borehole data and a stratigraphic pile. The stratigraphic pile describes formally and in a compact manner how the model should be constructed. It contains the list of the different stratigraphic units and their order in the pile, their conformability (eroded or onlap), the surface interpolation method (e.g. kriging, sequential Gaussian simulation (SGS), multiple-point statistics (MPS), etc.), the filling method for the lithologies (e.g. MPS, sequential indicator simulation (SIS), etc.) and the petrophysical properties (e.g. MPS, SGS, etc.). Then, the procedure is automatic. In a first step, the stratigraphic unit boundaries are simulated. Secondly, they are filled with lithologies and finally the petrophysical properties are simulated inside the lithologies. All these steps are straightforward and automated once the stratigraphic pile and its related parameters have been defined. Hence, this approach is extremely flexible. The automation provides a framework to generate end-to-end stochastic models and then the proposed method allows for uncertainty quantification at any level and may be used for fully inversion. In this work, ArchPy is illustrated using data from an alpine Quaternary aquifer in the Upper Aare plain (south-east of Bern, Switzerland).

6,940 views

21 citations

Complex or Simple—Does a Model Have to be One or the Other?
ORIGINAL RESEARCH
9 May 2022
Complex or Simple—Does a Model Have to be One or the Other?
Rui Hugman and John Doherty
The primary tasks of decision-support modelling are to quantify and reduce the uncertainties of decision-critical model predictions. Reduction of predictive uncertainty requires assimilation of information. Generally, this information resides in two places: (1) expert knowledge emerging from site characterization and (2) field measurements of present and historical system behavior. The former is uncertain and should therefore be expressed stochastically in a model. The range of parameter and predictive possibilities can then be constrained through history-matching. Implementation of these Bayesian principles places conflicting demands on the level of model structural complexity. A high level of structural complexity can facilitate expression of expert knowledge by establishing model details that are recognizable by site experts, and through supporting model parameters that bear a close relationship to real-world hydraulic properties. However, such models often run slowly and are numerically delicate; history-matching therefore becomes difficult or impossible. In contrast, if endowed with enough parameters, structurally simple models facilitate the achievement of a good fit between model outputs and field measurements. However the values with which parameters are endowed may bear a looser relationship with real-world properties and therefore are less receptive to information born of expert knowledge. The model design process is therefore one of compromise. In this paper we describe a methodology that reduces the cost of compromise by allowing expert knowledge of system properties to inform the parameters of a structurally simple model. The methodology requires the use of a complementary model of strategic, but not excessive, structural complexity that is stochastic, fast-running and requires no history-matching. We demonstrate the approach using a real-world case in which modelling is used to support management of a stressed coastal aquifer. We empirically validate the approach using a synthetic model.

5,946 views

13 citations

ORIGINAL RESEARCH
25 January 2022
Prescreening-Based Subset Selection for Improving Predictions of Earth System Models With Application to Regional Prediction of Red Tide
Ahmed S. Elshall, 5 more and Mathew Maltrud

2,904 views

3 citations