Articles | Volume 27, issue 20
https://doi.org/10.5194/hess-27-3823-2023
https://doi.org/10.5194/hess-27-3823-2023
Research article
 | 
27 Oct 2023
Research article |  | 27 Oct 2023

Forecasting estuarine salt intrusion in the Rhine–Meuse delta using an LSTM model

Bas J. M. Wullems, Claudia C. Brauer, Fedor Baart, and Albrecht H. Weerts
Abstract

Estuarine salt intrusion causes problems with freshwater availability in many deltas. Water managers require timely and accurate forecasts to be able to mitigate and adapt to salt intrusion. Data-driven models derived with machine learning are ideally suited for this, as they can mimic complex non-linear systems and are computationally efficient. We set up a long short-term memory (LSTM) model to forecast salt intrusion in the Rhine–Meuse delta, the Netherlands. Inputs for this model are chloride concentrations, water levels, discharges and wind speed, measured at nine locations. It forecasts daily minimum, mean and maximum chloride concentrations up to 7 d ahead at Krimpen aan den IJssel, an important location for freshwater provision. The model forecasts baseline concentrations and peak timing well but peak height is underestimated, a problem that becomes worse with increasing lead time. Between lead times of 1 and 7 d, forecast precision declines from 0.9 to 0.7 and forecast recall declines from 0.7 to 0.5 on average. Given these results, we aim to extend the model to other locations in the delta. We expect that a similar setup can work in other deltas, especially those with a similar or simpler channel network.

Dates
1 Introduction

Salt intrusion occurs in estuaries around the world (Apel et al.2020; Augustijn et al.2011; Qiu and Wan2013; Rohmer and Brisset2017; Shaha et al.2013; Xue et al.2009). In an estuary, high-density seawater protrudes underneath freshwater from the river. Daily tidal motions, wind-driven dispersion and variations in coastal swell and river discharge change the position and shape of the saltwater–freshwater interface (Savenije2012). During periods of prolonged drought and storms, saltwater intrudes further inland than under ordinary conditions. This can hamper freshwater availability, especially in densely populated deltas such as the Hudson (Lerczak et al.2009), Rhine (Van den Brink et al.2019) and Changjiang (Xue et al.2009).

In some areas, salt intrusion has been causing problems for years. In the Changjiang delta, a salt intrusion event in 1999 caused drinking water abstraction to be paused for 25 d (Xue et al.2009). Other deltas may also be prone to such problems, as rising sea levels due to climate change are expected to increase salt intrusion and put a strain on freshwater supply, especially in areas that will experience drier summers and heavier storms (Van den Brink et al.2019; Huismans et al.2019; Beijk et al.2017). While storms only last hours, they can cause elevated chloride concentrations for weeks (Huismans et al.2018). As a recent example, in the summer of 2022, a prolonged drought hit Europe. As a result, the discharge of the river Rhine was severely reduced for months and chloride concentrations in the tidally influenced part of the river (near Lekhaven; see Fig. 1) exceeded 8000 mg L−1 (Rijkswaterstaat2022). The yearly average of tidal maximum chloride concentration over 2022 was above 3500 mg L−1, which occurs on average once in 24 years based on data of the 20th century (Beersma et al.2005).

In some intensively managed delta areas, surface water is transferred from the larger (sometimes tidally influenced) rivers to smaller waterways through inlets, so it can be used to ensure suitable groundwater levels, flow velocity and water quality for local land use (Brauer2014). This gives water managers tools to limit the consequences of salt intrusion for freshwater availability (Prinsen and Becker2011). Inlets from the larger waterways to smaller channels can be closed to prevent saltwater from reaching agricultural areas. Alternatively, freshwater can be diverted from areas with a surplus to areas with saltwater intrusion. There, it can either be used to supplement the freshwater intake or to push the freshwater–saltwater interface back seawards (Augustijn et al.2011). These decisions are usually made based on observations and operational rules (Pezij et al.2019).

While operational rules are suitable for mitigation of freshwater availability problems on a short timescale, some of the larger-scale measures take several days to implement. To use these mitigation tools in a timely fashion, it would be useful to have a multi-day forecast of chloride concentrations at some critical locations (Hauswirth et al.2021). This would give water managers more time to implement measures. A physical or conceptual model can be used for that, but one-dimensional hydraulic models struggle to represent the three-dimensional nature of the salt intrusion processes, while three-dimensional models are too computationally demanding to run on operational timescales (Warmink et al.2011; Buschman2018; Huismans et al.2016). Generalized conceptual models can capture some of the estuarine dynamics and are especially valuable when data availability is limited, but they are difficult to apply in multi-branched estuaries (Savenije1986; Gisen et al.2015; Sun et al.2020).

A data-driven model, derived using machine learning, might be used as an alternative approach to this forecasting problem. Once trained, data-driven models have been reported to be successful in capturing non-linear systems (Kratzert et al.2018), and have a runtime of milliseconds to seconds per time step once trained (Haasnoot et al.2014; Hauswirth et al.2021; Zounemat-Kermani et al.2020). Machine learning approaches have successfully been applied to describe hydrological extremes (e.g. Hauswirth et al.2021), shoreline evolution (e.g. Calkoen et al.2021) and rainfall–runoff processes (e.g. Kratzert et al.2018). There have also been some successes in salt intrusion forecasting (Hu et al.2019; Rohmer and Brisset2017; Zhou et al.2020), but the complexity of the multi-branched and strongly managed Rhine–Meuse delta has proven difficult to model with this approach, at least on hourly timescales (Korving and Visser2021).

The aim of this study is to test the possibilities of data-driven modelling of chloride concentrations in the Rhine–Meuse delta. As a starting point for such a data-driven model, we create a model to forecast chloride concentrations at one location on a daily basis. This model should be able to predict the occurrence of salt intrusion peaks several days to a week in advance. From there, further improvements can be made by extending the model to other locations and making it suitable for higher temporal resolutions. If we are able to create useful forecasts for this delta, a similar approach could be applied to other complex deltas. Furthermore, if this approach is successful for a multi-branched and intensively managed estuary, we expect it to work for a single-channel, more natural estuary as well.

In this paper we present a method to forecast salt intrusion in the surface waters of the Rhine–Meuse delta using a machine learning approach. We will (1) identify a location for which a forecast would be especially helpful, (2) select the observations required to make the prediction and (3) design a suitable model architecture. We will then (4) optimize the model using suitable criteria and (5) test the model on a separate dataset. Finally, we will (6) assess the importance of each input observation for the predicted output and relate this to estuarine processes.

2 Material and methods

We designed a machine learning model to forecast chloride concentrations near a critical junction in the Rhine–Meuse delta. We started by exploring the study area and identifying a location for which a salt intrusion forecast is needed (Sect. 2.1). We retrieved observations of possibly relevant variables and did an exploratory analysis (Sect. 2.2). We set up a machine learning model to predict concentrations 1 d ahead and optimized it using suitable performance metrics (Sect. 2.3). We then ran it to predict concentrations up to 7 d ahead and used a separate dataset for testing. Finally, we performed a sensitivity analysis (Sect. 2.4).

2.1 Study area

The Rhine–Meuse delta is located in the Netherlands and comprises roughly half the country (Fig. 1). Near the cities of Arnhem and Nijmegen, the river Rhine splits into three branches: the IJssel, Waal and Nederrijn/Lek. While the IJssel flows north and discharges into the IJsselmeer, the Lek and Waal flow west and flow into the Hollandsch Diep, Haringvliet and Nieuwe Waterweg, around the cities of Dordrecht and Rotterdam. The Meuse enters the country near Maastricht and flows parallel to the Waal before discharging into the Hollandsch Diep. In the eastern part of the country, weirs are often used to regulate water levels and discharges. This includes some large weirs in the Nederrijn/Lek, at Driel (near Arnhem) and Hagestein. In the lower-lying, flatter western part of the country, the larger waterways cannot be managed in such a way. Water levels in the smaller channels and ditches between fields are intensively managed with weirs and are supplied with river water through inlets.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f01

Figure 1Map of the study area, indicating measurement locations that were considered for this study. Only measurement locations that were used in the model are labelled. Map created with QGIS (2022) using data from PDOK (2022), Rijkswaterstaat (2022) and KNMI (2022).

The Nieuwe Waterweg forms an open connection of the river system to the North Sea. While many other estuaries in the delta have been (partially) closed off, this waterway was kept open to ensure easy access for ships to the port of Rotterdam. It connects to the lower reaches of the Rhine–Meuse system, called the Nieuwe Maas and Oude Maas, in which the tide causes daily variations in chloride concentrations. Occasionally, the saltwater intrudes further upstream and reaches the Hollandsche IJssel, a small branch within the delta that is important for freshwater provision to agricultural channels and drinking water companies in the west of the country (Prinsen and Becker2011; Van den Brink et al.2019). In order to keep this branch fresh, water managers can divert water from the river Waal or from the IJsselmeer towards this area (Haasnoot et al.2014; Prinsen and Becker2011). However, to do this effectively, they require predictions of salt concentrations several days ahead. A timely forecast would provide them with support for decision-making in a complex area with many stakeholders. We selected Krimpen aan den IJssel for this forecast, as it is located at the junction of the Nieuwe Maas and Hollandsche IJssel branches and has a sufficiently long record of measurements.

2.2 Data

2.2.1 Data collection

We obtained data for this research from Rijkswaterstaat (2022) and KNMI (2022). These data are published daily, which makes them suitable for operational forecasting. We selected the following variables from the years 2011–2020: discharge (m3 s−1), water level (cm a.m.s.l. – above mean sea level), wind speed (m s−1) and chloride concentration (mg L−1). Chloride is measured at one, two or three depths, depending on the location. We used discharge observations from Lobith and Tiel, for which stage–discharge relationships are available, and Hagestein, where a weir is present. For the western part of the study area, we obtained water levels in the large waterways as a proxy for discharges and pressure differences between branches. For the wind speed, we used measurements at Rotterdam, in the middle of our study area. The daily mean wind speed was decomposed into an east–west and a north–south component, using the wind direction. We used the years 2011–2017 to train the model and the years 2018–2020 to test its performance.

2.2.2 Time series exploration

We explored a large number of time series. This section summarizes the main findings of that exploration, with some examples shown in Fig. 2.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f02

Figure 2Example time series for January–March (a, c, e, g, i) and July–September (b, d, f, h, j) of the year 2017. Daily mean chloride concentrations at Krimpen aan den IJssel (a, b) and Lekhaven (c, d) are shown. Note that the peaks in chloride at Lekhaven in January are reflected at Krimpen aan den IJssel, while this effect is absent or much weaker in the other months. In this section, we relate this to changes in daily mean water level at Hoek van Holland (e, f), daily mean discharge at Lobith (g, h) and daily mean wind speed at Rotterdam (i, j).

Download

Salt intrusion events are quite rare. In the total 10-year period considered, there were 127 d where chloride concentrations at Krimpen aan den IJssel exceeded 300 mg L−1, which is twice the drinking water limit. Of these 127 d, 75 occurred in 2018.

Chloride peaks propagate upstream. Steady rises in chloride concentration at downstream locations sometimes precede upstream rising concentrations (e.g. Fig. 2a and b, September 2017). However, downstream rising concentrations most often coincide with only minor concentration increases upstream (e.g. Fig. 2a and b, May, June 2017). Instead, the biggest peaks show very pronounced spikes that are much steeper than the steady background concentration increase. These spikes coincide with increased water levels during periods of relatively high wind speed (e.g. Fig. 2c and e, January 2017).

The water levels in the Nieuwe Waterweg and Nieuwe Maas branches are strongly linearly correlated. Water levels at Krimpen aan den IJssel are correlated with those at Hoek van Holland with a Pearson coefficient of 0.72. For points between these two locations, correlations are between 0.76 and 1. Water levels at Dordrecht, which is located on the Oude Maas, deviate more from the other locations. A more complete overview of water level correlations can be found in Appendix A.

Some of the larger peaks in chloride concentration coincided with high water levels at Hoek van Holland (e.g. Fig. 2a and c, January 2017). This could be caused by a storm surge, possibly coupled to a spring tide. However, there are also many examples where water levels at Hoek van Holland and wind speeds at Rotterdam are high, but no increase in chloride is observed (e.g. Fig. 2a, c and e, November, December 2017).

Salt intrusion events are often coupled to low river discharges (Fig. 2a and d, January 2017), but this is not always the case.

2.3 Model design

Figure 3 shows how we designed the long short-term memory (LSTM) model. Preprocessing steps are explained in Sect. 2.3.1. After preprocessing, we created the machine learning model architecture (Sect. 2.3.3) and assessed its performance on the training dataset using the metrics described in Sect. 2.3.4. We then adapted the model hyperparameters in steps until an optimum had been reached. The final model was then used on the test dataset (Sect. 2.3.5). Finally, we performed a sensitivity analysis (Sect. 2.4).

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f03

Figure 3Workflow for design and analysis of the LSTM model. Preprocessing steps are shown in the top row. After preprocessing, we set up the machine learning model architecture and trained it on the training dataset. We then created an ensemble forecast with the trained model and calculated its performance on the training dataset. We calculated performance metrics and adapted model hyperparameters step by step to find an optimum. The final model was then applied to the test dataset. Finally, we perfromed a sensitivity analysis.

Download

2.3.1 Preprocessing

We tried to keep data preprocessing to a minimum, to reduce computation time and make it easy to use new data. We removed extreme outliers and physically impossible values from the raw data. For every day with measurements, we then calculated daily minimum, mean and maximum for each of the variables. We then used linear interpolation to fill in any gaps in the daily features. Finally, we split the dataset into training data (2011–2017) and test data (2018–2020).

2.3.2 Feature selection

We selected a subset of the available features to set up the machine learning model. Reducing the number of features in a machine learning model helps to speed up its training and prevent overfitting. A first selection of features was made based on the observations in Sect. 2.2.2. A second selection was made with a feature selection algorithm. The full set of features and the subset used for model building are listed in Table 1.

Table 1Overview of features used for chloride prediction at Krimpen aan den IJssel. A check mark (✓) indicates whether a feature has been retained after Boruta analysis.

Download Print Version | Download XLSX

Since a number of cases showed increasing trends in chloride concentration over a 1-week period, we used chloride observations up to 7 d back to predict concentrations on a given day. For Krimpen aan den IJssel, this concerns measurements at the location itself and the downstream location of Lekhaven (see also Fig. 1 for locations). All measurements depths (two for Krimpen aan den IJssel; three for Lekhaven) were retained in this part of the selection procedure. The same 7 d window was used for the other variables. The strong correlation between water levels at different locations suggests that it is safe to exclude most stations without losing unique information. Therefore, we used water levels from four locations: Krimpen aan den IJssel, Dordrecht and the two downstream locations of Hoek van Holland and Vlaardingen to account for pressure differences between the northern and southern parts of the estuary which drive flow between the branches. Discharges from three upstream locations are included: Lobith, where the Rhine enters the Netherlands and for which forecasts are derived; Tiel, representative of the Waal branch; Hagestein, representative of the Nederrijn/Lek branch. We used observations of wind speed at a single station, Rotterdam, which is located in the middle of our study area. For chloride and water level, daily minima, means and maxima are included to account for the rapid subdaily fluctuation. For discharge, we only use the daily mean, as subdaily fluctuations are small.

We performed a second feature selection using the Boruta algorithm (Kursa and Rudnicki2010; Homola et al.2022). With this algorithm, a linear regression model is fitted using decision trees. The fitting process consists of several iterations. At each iteration, some of the features are replaced by shadow features, which are randomized copies of the original features, effectively replacing information for that feature with noise. The algorithm then tests if removing this information made the model perform any worse. A feature is supposed to be more important when the prediction quality deteriorates when that feature is replaced. This way, the features are ranked by relevance. We did this three times, with daily minimum, mean and maximum chloride concentrations at Krimpen aan den IJssel at a depth of −4.00 m a.m.s.l. as target variables. Results of the Boruta analysis showed that for most variables, four or five time steps are relevant for prediction of the output variables. Which time steps these are exactly varies. We decided to retain only time steps ranging from t−4 to t+1. The time step t+1 is only used for discharge, water level and wind speed. This mimics a situation where these variables have already been forecast using another model which does not include salt intrusion forecasting. In addition, some variables were omitted altogether since they do not provide information that the retained variables do not already provide. Finally, we only used daily means of water levels for all locations except Krimpen aan den IJssel. A more detailed motivation for the choices we made can be found in Appendix B. The final selection of variables is given in Table 1.

2.3.3 Model architecture

We set up a LSTM to predict chloride concentrations up to 7 d ahead using the variables in Table 1. An LSTM is a specific type of neural network model designed by Hochreiter and Schmidhuber (1997). While in an ordinary neural network model, variables are fed into nodes and given weights, an LSTM cell takes a sequence as input and can learn not only the weight to be given to such a sequence but also the time steps, which are useful to remember for the prediction of a new value. This makes LSTMs especially suitable for applications with a sequential nature, such as language processing and time series analysis. Indeed, in an exploratory analysis we found that the LSTM model's predictions were closer to observed values than those of a feedforward neural network or a multivariate linear regression model using the same input features.

We set up the model using the tensorflow and keras packages in Python (for documentation, see Abadi et al.2015; Chollet2015). We used scikit-learn (Pedregosa et al.2011) for preprocessing. Measurements of chloride concentration for t−4 up to t0, as well as measurements of discharge, water level and wind speed for t−4 up to t+1, were used as input, as indicated in Table 1. For each variable in the training dataset, we calculated mean μ and standard deviation σ and then converted each value x to its normalized value z using

(1) z = x - μ σ .

The same scaling, with μ and σ derived from the training dataset, was applied to the test dataset.

The structure of the LSTM model is shown in Fig. 4. Because the chloride input time series are five steps long and the water level, discharge and wind time series are six steps long, we split the data into two groups. The first group contains all chloride concentrations and the second group contains the other three variables (i.e. water level, discharge and wind speed) that are hereafter also referred to as “quantity variables”. The chloride time series and the quantity time series are fed to separate LSTM layers, which are used to recognize developments in the variables over time. The LSTM layer contains many parameters, such as the weight given to each input feature and the time steps for which this feature must be retained. Each of these parameters is optimized in the machine learning algorithm (Sect. 2.3.5). The outputs of these LSTM layers are then concatenated and fed into a dense layer, which applies weights to these intermediate outputs to end up with the chloride concentration at Krimpen aan den IJssel at t+1. As a protection against overfitting, a dropout layer is added between the LSTM layers and the concatenation layer. A dropout layer randomly sets some inputs to zero at each iteration of the training procedure, thereby making it less likely for the model to obtain a perfect fit for the training dataset and forcing it to account for some noise. This makes the model more likely to perform well in a new situation.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f04

Figure 4Schematic overview of the machine learning model. Quantity variables are water level, discharge and wind speed.

Download

The model is trained to predict chloride concentrations on t+1, which is the first forecast. The forecast is then added to the record of chloride concentrations and used to forecast the next time step. The length of time series used to make a forecast remains the same, so to make a forecast for t+2, chloride concentrations from t−3 to t+1 are used. This procedure is repeated to forecast chloride concentrations up to t+7. We chose this approach rather than training separate models for each lead time as the latter approach might lead to feature weights suddenly shifting from one time step to the next, which makes the results hard to interpret.

2.3.4 Performance metrics

Root mean square error (RMSE) is a measure of the deviations between the predicted and observed values of a variable. It is calculated as

(2) RMSE = 1 n i = 1 n y ^ i - y i 2 ,

in which yi is the ith observation of the target variable, y^i is the model estimate of the target variable and n is the number of observations.

Forecast quality can be expressed in the metrics precision and recall. For this, an event threshold is defined at a daily mean chloride concentration of 300 mg L−1, which is twice the drinking water limit (Van den Brink et al.2019), as an indicator for severe salt intrusion. When the model predicts [Cl] above 300 mg L−1 for a certain day, this is defined as a warning. Each day on which the observed value for [Cl] exceeds 300 mg L−1 is defined as an event. Consecutive days with chloride concentrations above the threshold are considered multiple events. Precision and recall can then be calculated as

(3) Precision = | Events Warnings | | Warnings |

and

(4) Recall = | Events Warnings | | Events | ,

where |Events| indicates the number of events, |Warnings| the number of warnings and |Events  Warnings| the number of events for which a warning was issued. A high precision indicates that the warnings issued by a model are often justified. High recall indicates that events are often captured by the model.

The performance of the LSTM in terms of these metrics is compared to a persistence forecast, which functions as a baseline. The assumption of a persistence forecast is that future chloride concentrations are the same as on the current day, i.e. [Cl]t0=[Cl]t+1=[Cl]t+7.

2.3.5 Model tuning and testing

We further optimized the general model architecture described in Sect. 2.3.3 by tuning several hyperparameters (Table 2). The sizes of both LSTM layers were adjusted in steps, and model performance in terms of RMSE, precision and recall was recorded. The same was done for the presence and size of an extra hidden layer, and for the dropout parameter. Finally, weights were given to the twelve output variables of the model. When a variable's weight is larger, the learning algorithm penalizes errors in the prediction of that variable more than that of other variables.

Table 2Tuned hyperparameters for the LSTM model.

n/a stands for not applicable.

Download Print Version | Download XLSX

For each set of hyperparameters, we trained three models. Each model starts with different initial parameter weights, which are random. These weights are then applied to the input variables to calculate the output variables. The quality of the model is calculated as a mean squared error. The parameter weights are then adjusted and the calculations are redone. For this adjustment, we used the Adam optimizer (Kingma and Ba2017), which is able to determine the optimal size of an adjustment step. The models were trained to predict chloride concentrations 1 d ahead. We then used them to create a forecast up to 7 d ahead, as described in Sect. 2.3.3. RMSE, precision and recall at t+1, t+4 and t+7 were recorded for each model training run, yielding nine values for each metric per set of hyperparameters. By comparing these metrics, we determined the optimal values for the hyperparameters (Table 2). A full overview of tuned hyperparameters and metrics can be found in Appendix C.

The hyperparameter setup in Table 2 was then re-used for training an ensemble of 15 models, as the ensemble mean RMSE was shown not to change markedly anymore when ensemble size was increased further. The ensemble is created by fitting the model multiple times, with slightly different initial parameter weights each time. Each model from the ensemble was then used to forecast chloride concentrations in the testing period.

2.4 Sensitivity analysis

We performed a sensitivity analysis on the ensemble of models to investigate how variations in the input variables impact the predicted value of mean daily chloride concentration. To do this, we perturbed each input variable in the test dataset by adding 0.2 (in normalized units) to all values of that variable while keeping the values of the other variables the same. This way every variable is increased by an amount that is within its normal range but markedly higher than the normal situation. Choosing a higher value for the deviation might show clearer dependencies but would be a further departure from what is physically realistic. It might also lead to impossibilities such as negative chloride concentrations. The model ensemble was then rerun for each perturbed variable separately. We then calculated the average difference in chloride concentration between the original dataset and the perturbed dataset. This gives an indication of the sensitivity of mean daily chloride concentration to changes in each of the other variables. We want to stress that many of these changes are not physically realistic, as most variables we consider would not change independently of the others. However, it gives an indication of the weight the model gives to each variable. In a linear regression model, we would simply use weight parameters to show this, but the complex structure of the LSTM model makes weights difficult to interpret. Therefore, we chose this method to show a general relation between model input and output.

3 Results

3.1 Model performance on training dataset

Figure 5a, c and e show the forecasts made for the year 2011, during which a number of high chloride concentration peaks occurred in autumn. This includes the highest value in the training dataset, measured on 28 November 2011. The forecast values follow the observations closely and continue to do so for lead times over 3 d, which indicates that the model architecture is complex enough to capture complexities in the dataset. The largest peaks, however, are still often underestimated. Predictions of the full training dataset (2011–2017) match the observations well and have no systematic bias (Fig. 5b, d and f). When we define an event as a day with chloride concentrations > 300 mg L−1, we see that these are generally well captured for the training dataset, although some ensemble members overestimate low peaks, e.g. in June 2011. As expected, RMSE increases with lead time, but precision and recall remain roughly the same (Fig. 6). The curves of precision and recall show some irregularities, because the total number of events is quite small – only 40 d in a 7-year dataset. This model is able to create a 7 d forecast in 13 s on an Intel i5 Core Processor. The 15-member ensemble shown here takes 3 min to run on the same computer. For comparison, the 1D hydraulic model set up for this area, SOBEK 3 (Deltares2019) takes 8 min to make a 7 d forecast of the Rhine–Meuse estuary.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f05

Figure 5Model performance for the training period (2011–2017). Panels (a), (c) and (e) show a collection of forecasts of ClKr400Mean made with lead times of (a) 1 d, (c) 4 d and (e) 7 d for the year 2011, along with observed values. The predicted value is given as an ensemble prediction for each day of the year, created with the lead time mentioned. Median and range of the ensemble prediction are shown. Panels (b), (d) and (f) show predicted vs. observed values for the full training dataset with lead times of 1, 4 and 7 d respectively. For each day in the training dataset, a vertical line indicates the range of predicted values by the ensemble members. A figure showing all ensemble members separately can be found in Fig. D1.

Download

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f06

Figure 6Performance metrics vs. lead time for the training period. Panels show (a) RMSE, (b) precision and (c) recall. Performance of each model in the ensemble is plotted as a single line. Performance of the persistence forecast is shown for reference. For the training dataset, the LSTM ensemble consistently outperforms the reference forecast.

Download

3.2 Model performance on test dataset

Figure 7a, c and e show forecasts made for the year 2018, the first year of the test dataset (2018–2020). Forecast values resemble observed concentrations closely for background concentrations (<150 mg L−1), with RMSE below 20 mg L−1. However, the highest peaks ([Cl] > 1000 mg L−1) are often underestimated and the lower peaks are often overestimated, which accounts for the higher RMSE for the whole dataset (Fig. 8). This is confirmed by Fig. 7b, d and f. RMSE increases with lead time, while precision and recall decrease (Fig. 8). Forecast quality decreases fast as lead time increases from 1 to 3 d but decreases more slowly after that (compare Figs. 7 and 8). The general tendency of the LSTM models to underestimate peaks leads to higher precision but sometimes lower recall than the persistence forecast. In terms of RMSE, the LSTM outperforms the persistence forecast from t+2 onwards. The RMSE is a factor of 4–6 higher for the test dataset than for the training dataset; precision is lower from t+3 onwards and recall is significantly lower.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f07

Figure 7Model performance for the test period (2018–2020). Panels (a), (c) and (e) show a collection of forecasts of ClKr400Mean made with lead times of (a) 1 d, (c) 4 d and (e) 7 d for the year 2018, along with observed values. The predicted value is given as an ensemble prediction for each day of the year, created with the lead time mentioned. Median and range of the ensemble prediction are shown. Panels (b), (d) and (f) show predicted vs. observed values for the full test dataset with lead times of 1, 4 and 7 d respectively. For each day in the training dataset, a vertical line indicates the range of predicted values by the ensemble members. A figure showing all ensemble members separately can be found in Fig. D2.

Download

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f08

Figure 8Performance metrics for the test period. Panels show (a) RMSE, (b) precision and (c) recall. Performance of each model in the ensemble is plotted as a single line. Performance of the persistence forecast is shown for reference. Compared to the reference, the model is on average closer to the observed concentration (a), and when events are predicted, these usually occur in practice (b). However, many of the LSTM models miss many events compared to the reference (c).

Download

3.3 Sensitivity analysis

The sensitivity analysis yields a positive correlation between past and predicted chloride concentrations (Fig. 9), indicating a certain persistence of the pre-existing situation. Furthermore, chloride concentration has a strong negative correlation with discharge at Lobith and Tiel and a strong positive correlation with water level at Hoek van Holland. This confirms the general understanding that the position of a salt wedge is determined by tidal motion and river discharge. There is also a small negative correlation with water level at Dordrecht and a small positive correlation with discharge at Hagestein. Only a slight positive correlation is found with southerly and westerly wind speed, even though the results of the Boruta analysis (Sect. 2.3.2) show that a less good fit would be achieved if it were left out.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f09

Figure 9Results of the sensitivity analysis. Each row indicates the yearly average increase in daily mean chloride concentration at Krimpen aan den IJssel −4.00 m a.m.s.l. when the input parameter indicated in the graph is increased by 0.2 normalized units. Boxes and whiskers show the ensemble spread and green bars show the ensemble median. Input variables are chloride concentration (Cl), water level (H), discharge (Q) and wind speed (Wind). Subscripts indicate the location (Krimpen.a.d.IJ is Krimpen aan den IJssel and Hoek.v.H. is Hoek van Holland), daily statistic, depth below mean sea level (chloride only) and direction (wind only, EW is east–west and NS is north–south). Variables are explained in Table 1. All values are expressed in normalized units.

Download

4 Discussion

4.1 Interpretation of results

The results in Sect. 3.1 indicate that it is possible to create an LSTM model to predict chloride concentrations at Krimpen aan den IJssel. With the current set of variables, we were able to come close to an optimal set of hyperparameters, as can be seen from the good fit of the predictions to the training dataset. However, performance on the test dataset is less good. As can be seen from the results in Sect. 3.2 (Fig. 7), most LSTM models tend to especially underestimate the largest peaks in mean daily chloride concentration. Adjustment of the hyperparameters did not enable us to capture these peaks better. In addition, peaks of intermediate height are frequently overestimated, although the error in that case is smaller than for the very high peaks. For operational water management, the error in the intermediate peaks is likely to have more consequences than the error in the largest peaks, since these intermediate chloride concentrations make up the transition from a normal situation to a situation where water managers might need to intervene on a larger scale than just closing an inlet for a brief period of time. The threshold value of 300 mg L−1 has been chosen to reflect such situations. We see indeed that values of precision and recall are both affected by the errors in peak prediction (Fig. 8). Recall is affected more than precision, which is in line with the general tendency for underestimation. This means that by relying completely on this model, water managers would be more likely to miss a problematic situation than to take unnecessary action. This is probably not desirable, as the consequences of a missed event are typically more problematic than the consequences of a false alarm (Warmink et al.2017).

Most results of the sensitivity analysis (Sect. 3.3, Fig. 9) are in line with general expectations of this river system. Higher river discharge dilutes the saltwater present at Krimpen aan den IJssel and pushes the salt wedge back towards the sea, whereas higher sea levels increase the potential for saltwater to intrude landward (Savenije2012; Sun et al.2020). This is in line with the findings of Cai et al. (2015) and Liu et al. (2017), who find that the salt intrusion length in the Yangtze River is proportional to tidal amplitude at the seaward boundary and inversely proportional to river discharge. Shaha et al. (2013) find a similar dominance of tidal range and discharge for the Sumjin River estuary. The negative correlation between chloride concentration at Krimpen aan den IJssel and water level at Dordrecht seems to indicate that high water levels at Dordrecht are associated with increasing flow from the Beneden-Merwede through the Noord towards the Nieuwe Maas (Fig. 1). The positive correlation of chloride concentration and discharge at Hagestein is somewhat surprising, as it is mostly a component of discharge at Lobith. Indeed, most chloride peaks coincide with periods of low discharge at Hagestein. However, Hagestein is a managed location with a weir that plays a role in dividing discharge over the Rhine branches. In periods of drought, when chloride concentrations have already started rising, water is sometimes diverted through the Nederrijn/Lek branch, causing discharge at Hagestein to be relatively high with respect to discharge at Lobith (Hydrologic et al.2015). We therefore suggest that the models have captured a positive correlation between chloride concentrations and the fraction of Rhine water that flows through the Nederrijn/Lek branch. The very small positive correlation between chloride and southerly and westerly wind speed confirms the observations in Sect. 2.2.2 and Fig. 2, where we also found no consistent relation between wind speed and chloride concentration. This shows that wind speed on its own does not make a difference but may still influence chloride concentrations through its interactions with other variables. When we compare this to the work of Xue et al. (2009), who found that wind direction plays a significant role in the salinity distribution of the Changjiang estuary, we find that the specific shape of a delta can influence the importance of various variables, a phenomenon that is also suggested by the idealized study of Jongbloed et al. (2022).

4.2 Limitations and outlook

The shorter runtime of the machine learning model allows users to run simulations as an ensemble well ahead of time. The current version of the model only works for one location, but if we can capture multiple locations in the delta while keeping runtime in the same order of magnitude, we can do many more predictions, including simulations of extreme scenarios. The larger number of scenarios that can be investigated gives water managers more opportunities to take mitigating measures and ensure freshwater availability. It is difficult to simulate the effect of management decisions, because they are not included explicitly in the training dataset. However, if the effect of a management decision on water level and discharge is known, the simulated water level and discharge could be used as inputs for the model. We still have to implement the model in a forecasting system to assess how well this would work.

Machine learning models are known to have their limits when it comes to forecasting extreme events: since these events are rare by nature, a model that is trained on a long time series will have far more examples of regular than of extreme conditions (Carbajal and Bellos2018). The model is therefore likely more skilful in forecasting baselines than in forecasting (extreme) peaks. We observe this phenomenon in our results for the test dataset (Sect. 3.2). As 2018 was a very dry year (Buitink et al.2020), the chloride concentrations reached levels that had not been observed in our training dataset. Our model was therefore less skilful than desired, especially at predicting the highest peaks (>1000 mg L−1). This is a problematic situation, since climate change is expected to increase sea level and decrease river discharge in spring, summer and fall for our study area, which makes the occurrence of such peaks more likely (Lenderink and Beersma2015; Van den Brink et al.2019). If used for operational forecasting, this model is therefore likely to deal with unprecedented situations more frequently in the future. To tackle this issue, we would propose to update the training dataset and retrain the model yearly, adding new, possibly more extreme, observations to the record and make the model better suited to forecast extreme situations in the future.

Another application of machine learning is to use a machine learning model as a model emulator (Carbajal and Bellos2018). In this application, another model, often a physical model, is run with a large range of conditions, and its results are then supplied to a machine learning algorithm. The algorithm learns the original model's behaviour in terms of inputs and outputs, without considering its internal mechanics. This yields a simplified model, which may not be as accurate as the original, especially in unprecedented situations, but which tends to be much faster (Silva et al.2021; Gettelman et al.2021). Having identified the input and output variables needed to set up a salt intrusion model, we could train a similar model with the input and output variables of a three-dimensional model of the Rhine–Meuse delta, which is currently under development. This would allow us to mimic a wide range of possible conditions with the machine learning model, without having to resort to extrapolation. If successful, the result would be an approximation of a physical model that could run fast enough for operational use, making it suitable for interactive simulations in, for instance, a serious game or digital twin. In a serious game, a study area is represented in a board or computer game environment, which allows stakeholders to try out different strategies in a safe environment, learning about each other's interests. A digital twin has some of these characteristics as well but aims to be more realistic and usable in real time, which makes it more suitable as a simulation and management tool. A model emulator could also be useful to simulate extreme situations that are underrepresented in the existing record, as discussed in the previous section.

Our results show that a reasonable prediction of chloride concentrations up to 7 d ahead can be achieved at one location using this model: although the error in peak height is quite large, timing and occurrence of peaks are well-captured. We therefore expect that a similar model setup can be successful for other locations in the delta for which salt intrusion is a similar threat to freshwater availabiltiy, such as the junction of the Oude Maas and Spui and the confluence of the Noord and Lek (Fig. 1) (Van den Brink et al.2019). Extending the analysis is likely to teach us more about the dependencies in this system, which can in turn help to improve the existing model.

To improve the model, we are also considering adding some physical constraints, such as mass balances in a control section. Bertels and Willems (2023) applied such an approach to the Scheldt estuary and achieved notably better results than with a purely data-driven model. However, the large number of branches in the Rhine–Meuse delta may make application of a mass balance approach quite challenging.

In Sect. 3.1 we show that this model is much faster than the 1D physical model SOBEK. On the other hand, SOBEK is run for the entire delta area, whereas the machine learning model focusses on a single output location. When the model is extended to comprise multiple locations within the study area, runtime will increase. However, if we focus on a limited number of stations, we still expect the machine learning model to be significantly faster than the physical model, since the machine learning model performs forward calculations rather than solving differential equations.

In the current model setup, water levels, discharges and wind speeds at t+1 are used to forecast chloride concentrations at t+1. In an actual operational setting, these values would be retrieved from other models, with their own uncertainties. These uncertainties then propagate to the chloride concentration forecast. In our analysis, we used a historical dataset to fit and test the model, using the actual observations at t+1. This way we have uniform data of a constant uncertainty with which we can derive and evaluate a model. However, this also means that the model's performance as described in Sect. 3 is higher than it would be in an actual operational context. Setting the model up to function in a forecasting system, using the outputs of other models as inputs, is a follow-up step in our research.

In this study, we have made forecasts of daily mean, minimum and maximum chloride concentrations. We have chosen daily values to limit error accumulation when creating a 7 d forecast. However, there are many regions where operational water managers need predictions with a higher temporal resolution, e.g. to determine at what time of day certain inlets should be opened or closed (Pezij et al.2019; Tian2015). We will therefore attempt to train the model to make predictions on shorter timescales, for which variables different than those used in this analysis might be needed.

This model was developed for a delta with a complex geography. Nevertheless, we could develop a data-driven model with a total of 12 input variables (counting the minimum, mean and maximum as features of a single variable, and doing the same for the east–west and north–south component of the wind speed). We could have added more variables, but time series exploration and Boruta analysis showed that these would be redundant. We can therefore conclude that the number of measurement stations needed to train a model like this is not very high. A sufficiently long record with few gaps is still needed, however. With a training period of 7 years, satisfactory results can be achieved. We therefore suggest that this approach can be extended to other deltas where an adequate measurement setup exists or where it is being developed. Especially in deltas with a single branch, a smaller number of stations would probably suffice, although it is important that the location of the stations does not change. Since a machine learning approach does not require a full understanding of the system's internal mechanics but relies on patterns in the data, it should not be a problem if the system functions somewhat differently than the one we studied. For example, a study of the Merrimack River revealed a similar dependency on wind, discharge and seawater level, although the relative contributions of these factors were different (Ralston et al.2010). Therefore, we expect that most of the features used for this model can be applied in other study areas. However, it is possible that other quantities, such as precipitation sums or offshore water levels, need to be added to obtain a satisfactory solution. The timescale considered may also play a role in the variables that are needed. For example, a study of the La Comté River showed that a 3 h prediction of salinity can be made with just seawater level and river discharge (Rohmer and Brisset2017). On the other hand, Lu et al. (2021) found a dependency on the number of sunspots when analysing salt intrusion in the Pearl River delta on a monthly timescale.

5 Conclusions

We used a machine learning approach with a long short-term memory network to set up a data-driven model for forecasting chloride concentrations at Krimpen aan den IJssel, located in the Rhine–Meuse delta. Using observations of chloride concentration, water level, discharge and wind speed at a total of nine locations, we were able to forecast daily minimum, mean and maximum chloride concentrations up to 7 d ahead. The baseline concentrations (<150 mg L−1) are predicted well by this model (RMSE < 20 mg L−1). The timing of chloride peaks is also predicted well but their magnitude is underestimated. This deviation increases quite quickly between lead times of 1 and 4 d, and more slowly at even longer lead times. A sensitivity analysis shows a positive correlation with antecedent chloride concentrations and seawater level and a negative correlation with discharge through the main river branches. We expect that the quality of this model can be improved with lessons learnt at other locations, which will allow us to construct a more comprehensive forecasting tool for the Rhine–Meuse delta. A similar approach is likely to be successful for other deltas, especially those that have a comparable or simpler geography than our study area.

Appendix A: Correlation of water levels

Figure A1 shows the Pearson correlation values between water levels at several locations in the study area. It is visible that water levels at Dordrecht deviate from the other locations. Water levels at Hoek van Holland, Measlantkering, Maassluis, Vlaardingen and Rotterdam are very similar, which is why we only retain Hoek van Holland and Vlaardingen.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f10

Figure A1Pearson correlation coefficient for water levels in the study area.

Download

Appendix B: Boruta analysis

As mentioned in Sect. 2.3.2, we ran the Boruta feature selection algorithm (Homola et al.2022) on the daily minimum, mean and maximum chloride concentrations at Krimpen aan den IJssel for t+1. We started by creating a random forest model to predict the output feature. Then, in each iteration, one of the indicated features (e.g. daily maximum water level at Hoek van Holland at t−6) was randomly shuffled, and a new model was derived. Performance of this new model (mean squared error) was then compared to that of the original model. If the new model performed worse than the original model, shuffling the input feature created a significant amount of noise, indicating this feature is important for prediction of the output feature. Making this comparison for every input feature, the algorithm then ranked the features as 1 (important), 2 (moderately important or inconclusive) or anything higher (unimportant). We show this in Tables B1B3 as + (important), 0 (moderately important or inconclusive) and  (unimportant). The algorithm was run with a significance level of 0.05 and a target to retain 70 % of features.

Comparing Tables B1B3, no single cutoff point between important and unimportant features emerges. However, based on the number of important time steps for each variable, we draw the following conclusions.

  • No more than five time steps of any variable are needed to make a prediction for t+1.

  • t−6 is often found to be important, while t−5 and t−4 are often found to be inconclusive. We expect the number of time steps used to determine a trend to be more important than the actual time step and therefore choose a continuous series of measurements from t−4 to t0.

  • Minimum, mean and maximum chloride concentrations at Krimpen aan den IJssel and Lekhaven are all important for predicting any one of the output features.

  • Minimum, mean and maximum water levels at Krimpen aan den IJssel are important for predicting chloride concentrations. For the other stations, one daily statistic of water level appears to suffice, so we only keep the daily mean.

  • All discharge stations are important for predicting chloride concentrations.

  • Daily mean wind speed in both directions is important for predicting chloride concentrations.

Based on these conclusions, we selected the features in Table 1.

Table B1Results of the Boruta feature selection process for daily minimum chloride concentration at Krimpen aan den IJssel at t+1. A plus (+) indicates that the indicated feature is important for predicting the output feature, while a minus () indicates that it is not important. A zero (0) indicates that the importance of the feature is moderate or uncertain. n indicates that the feature is not applicable as an input feature.

Download Print Version | Download XLSX

Table B2Results of the Boruta feature selection process for daily mean chloride concentration at Krimpen aan den IJssel at t+1. A plus (+) indicates that the indicated feature is important for predicting the output feature, while a minus () indicates that it is not important. A zero (0) indicates that the importance of the feature is moderate or uncertain. n indicates that the feature is not applicable as an input feature.

Download Print Version | Download XLSX

Table B3Results of the Boruta feature selection process for daily maximum chloride concentration at Krimpen aan den IJssel at t+1. A plus (+) indicates that the indicated feature is important for predicting the output feature, while a minus () indicates that it is not important. A zero (0) indicates that the importance of the feature is moderate or uncertain. n indicates that the feature is not applicable as an input feature.

Download Print Version | Download XLSX

Appendix C: Hyperparameter tuning overview

Table C1 shows the combinations of hyperparameters that were evaluated as described in Sect. 2.3.5. We also show the results of testing in terms of RMSE (Table C2), precision (Table C3), recall (Table C4) and F1 score (harmonic mean of precision and recall; Table C5). Based on the results of this tuning process, model 21 was chosen as the final setup (Table 2).

Table C1Hyperparameters that were tried in the model tuning process described in Sect. 2.3.5. Each model number corresponds to a set of hyperparameters with which three randomly initialized model were trained. The basic structure of the model is given in Table 4. The column “output weight” indicates the weight given to the following output parameters: ClKr400Min, ClKr400Mean, ClKr400Max, ClKr550Min, ClKr550Mean, ClKr550Max, ClLkh250Min, ClLkh250Mean, ClLkh250Max, ClLkh700Min, ClLkh700Mean and ClLkh700Max. The definitions of these variables are found in Table 1. Results of the training run are in Tables C2C5. Model 21 (values in bold) was selected as the best performing model (Table 2).

Download Print Version | Download XLSX

Table C2RMSE for three randomly initialized models per hyperparameter setup. Every run shows the results of one model. Model numbers correspond to the hyperparameter sets in Table C1. RMSE was calculated for three lead times: t+1, t+4 and t+7. RMSE can range from 0 (perfect) to infinity (wrong). Model 21 (values in bold) was selected as the best performing model (Table 2).

Download Print Version | Download XLSX

Table C3Precision for three randomly initialized models per hyperparameter setup. Every run shows the results of one model. Model numbers correspond to the hyperparameter sets in Table C1. Precision was calculated for three lead times: t+1, t+4 and t+7. Precision can range from 0 (wrong) to 1 (perfect). Model 21 (values in bold) was selected as the best performing model (Table 2).

Download Print Version | Download XLSX

Table C4Recall for three randomly initialized models per hyperparameter setup. Every run shows the results of one model. Model numbers correspond to the hyperparameter sets in Table C1. Recall was calculated for three lead times: t+1, t+4 and t+7. Recall can range from 0 (wrong) to 1 (perfect). Model 21 (values in bold) was selected as the best performing model (Table 2).

Download Print Version | Download XLSX

Table C5F1 score for three randomly initialized models per hyperparameter setup. Every run shows the results of one model. The F1 score is the harmonic mean of precision and recall. Model numbers correspond to the hyperparameter sets in Table C1. F1 score was calculated for three lead times: t+1, t+4 and t+7. F1 can range from 0 (wrong) to 1 (perfect). Model 21 (values in bold) was selected as the best performing model (Table 2).

Download Print Version | Download XLSX

Appendix D: Results of ensemble members

Figures D1 and D2 show the forecasts and fits for the training dataset (2011–2017) and test dataset (2018–2020) as separate ensemble members.

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f11

Figure D1Model performance for the training period (2011–2017). Panels (a), (c) and (e) show a collection of forecasts of ClKr400Mean made with lead times of (a) 1 d, (c) 4 d and (e) 7 d for the year 2011, along with observed values. The predicted value is given as an ensemble prediction for each day of the year, created with the lead time mentioned. For each ensemble member, a separate line is plotted. Panels (b), (d) and (f) show predicted vs. observed values for the full training dataset with lead times of 1, 4 and 7 d respectively. For each day in the training dataset, a single dot represents the prediction of a single ensemble member. This figure is summarized in Fig. 5.

Download

https://hess.copernicus.org/articles/27/3823/2023/hess-27-3823-2023-f12

Figure D2Model performance for the training period (2018–2020). Panels (a), (c) and (e) show a collection of forecasts of ClKr400Mean made with lead times of (a) 1 d, (c) 4 d and (e) 7 d for the year 2011, along with observed values. The predicted value is given as an ensemble prediction for each day of the year, created with the lead time mentioned. For each ensemble member, a separate line is plotted. Panels (b), (d) and (f) show predicted vs. observed values for the full training dataset with lead times of 1, 4 and 7 d respectively. For each day in the training dataset, a single dot represents the prediction of a single ensemble member. This figure is summarized in Fig. 7.

Download

Code and data availability

Data and software are available on the 4TU repository, using https://doi.org/10.4121/21944249 (Wullems et al.2023a) for the data and https://doi.org/10.4121/21946724 (Wullems et al.2023b) for the software. Raw data can be found on https://www.knmi.nl/nederland-nu/klimatologie/daggegevens (KNMI2022) and https://waterinfo.rws.nl/#!/kaart/Waterbeheer/ (Rijkswaterstaat2022). The software will undergo further development in future. The most recent version can be found on https://doi.org/10.5281/zenodo.10017846 (Wullems et al.2023c).

Author contributions

AHW designed the general goals as part of the SALTI Solutions research project, which were further refined by all authors. Data were obtained by BJMW using a script designed by FB. BJMW designed the models and performed the data analysis with frequent consultation from the other authors. FB contributed to improvements of the models. BJMW wrote this paper and created the figures. CCB, FB and AHW reviewed the paper and figures. AHW secured the necessary financial support for this project and handled its administration. CCB and AHW are supervising BJMW in their PhD programme.

Competing interests

At least one of the (co-)authors is a member of the editorial board of Hydrology and Earth System Sciences. The peer-review process was guided by an independent editor, and the authors also have no other competing interests to declare.

Disclaimer

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Acknowledgements

We thank our research partners and stakeholders in the SALTI Solutions project for their advice and feedback during the development of the research methodology and evaluation of the results. Julie Pietrzak, Jaap Kwadijk, Meinard Tiessen, Wouter Kranenburg, Jos Boontjes-Witkamp, Meinte Blaas and Vincent Beijk played an important role in this process. Thanks to Ymkje Huismans, Hans Korving, Klaas-Jan van Heeringen and Vincent Vuik for the information they provided about the study area. Thanks to Jan Verkade for providing instructions on probabilistic forecasting. The online machine learning courses of Andrew Ng and Sreenivas Bhattiprolu were very helpful for model design. We also thank several colleagues at the Hydrology and Quantitative Water Management group for proofreading parts of this article. Finally, we are grateful for the detailed and constructive feedback of two anonymous reviewers.

Financial support

This research has been supported by the Nederlandse Organisatie voor Wetenschappelijk Onderzoek (grant no. Perspectief 18–32).

Review statement

This paper was edited by Damien Bouffard and reviewed by two anonymous referees.

References

Abadi, M., Agarwal, A., Barham, P., Brevdo, E., Chen, Z., Citro, C., Corrado, G. S., Davis, A., Dean, J., Devin, M., Ghemawat, S., Goodfellow, I., Harp, A., Irving, G., Isard, M., Jia, Y., Jozefowicz, R., Kaiser, L., Kudlur, M., Levenberg, J., Mane, D., Monga, R., Moore, S., Murray, D., Olah, C., Schuster, M., Shlens, J., Steiner, B., Sutskever, I., Talwar, K., Tucker, P., Vanhoucke, V., Vasudevan, V., Viegas, F., Vinyals, O., Warden, P., Wattenberg, M., Wicke, M., Yu, Y., and Zheng, X.: TensorFlow: large-scale machine learning on heterogeneous distributed systems, arxiv [preprint], https://doi.org/10.48550/arXiv.1603.04467, 2015. a

Apel, H., Khiem, M., Quan, N. H., and Toan, T. Q.: Brief communication: seasonal prediction of salinity intrusion in the Mekong delta, Nat. Hazards Earth Syst. Sci., 20, 1609–1616, https://doi.org/10.5194/nhess-20-1609-2020, 2020. a

Augustijn, D. C. M., Van den Berg, M., De Bruine, E., and Korving, H.: Dynamic control of salt intrusion in the Mark-Vliet river system, The Netherlands, Water Resour. Manage., 25, 1005–1020, https://doi.org/10.1007/s11269-010-9738-1, 2011. a, b

Beersma, J. J., Buishand, T. A., De Goederen, S., and Jacobs, P.: Zout, zouter, zoutst: statistiek van de externe verzilting in midden-west Nederland, Government 199-III, KNMI, De Bilt, https://cdn.knmi.nl/system/data_center_publications/files/000/066/381/original/publ_199iii_zout.pdf?1495620538 (last access: 2 January 2023), 2005. a

Beijk, V., Coonen, M., Van den Heuvel, R., and Treurniet, M. M.: Smart watermanagement – case nederrijn-lek, in: Netherlands Centre for River Studies (NCR): Book of abstracts NCR days 2017, edited by: Hoitink, A., De Ruijsscher, T., Geertsema, T., Makaske, B., Wallinga, J., Candel, J., and Poelman, J., Zalsman Innovative Print, Kampen, Wageningen, https://ncr-web.org/publications/ncr-days-2017-book-of-abstracts/ (last access: 7 November 2022), 2017. a

Bertels, D. and Willems, P.: Physics-informed machine learning method for modelling transport of a conservative pollutant in surface water systems, J. Hydrol., 619, 129354, https://doi.org/10.1016/j.jhydrol.2023.129354, 2023. a

Brauer, C.: Modelling rainfall-runoff processes in lowland catchments, PhD thesis, Wageningen University, Wageningen, https://edepot.wur.nl/296285 (last access: 31 October 2022), 2014. a

Buitink, J., Swank, A. M., van der Ploeg, M., Smith, N. E., Benninga, H.-J. F., van der Bolt, F., Carranza, C. D. U., Koren, G., van der Velde, R., and Teuling, A. J.: Anatomy of the 2018 agricultural drought in the Netherlands using in situ soil moisture and satellite vegetation indices, Hydrol. Earth Syst. Sci., 24, 6021–6031, https://doi.org/10.5194/hess-24-6021-2020, 2020. a

Buschman, F.: Aanpassing, herkalibratie en verificatie SOBEK 3 model van de Rijn-Maasmonding, Tech. Rep. 11202220-006-ZWS-0012, Deltares, https://publicwiki.deltares.nl/display/NW/Achtergrond (last access: 20 October 2023), 2018. a

Cai, H., Savenije, H. H., Zuo, S., Jiang, C., and Chua, V. P.: A predictive model for salt intrusion in estuaries applied to the Yangtze estuary, J. Hydrol., 529, 1336–1349, https://doi.org/10.1016/j.jhydrol.2015.08.050, 2015. a

Calkoen, F., Luijendijk, A., Rivero, C. R., Kras, E., and Baart, F.: Traditional vs. machine-learning methods for forecasting sandy shoreline evolution using historic satellite-derived shorelines, Remote Sens., 13, 934, https://doi.org/10.3390/rs13050934, 2021. a

Carbajal, J. P. and Bellos, V.: An overview of the role of machine learning in hydraulic and hydrological modeling, engrXiv [preprint], https://doi.org/10.31224/osf.io/wgm72, 2018. a, b

Chollet, F.: Keras: the Python deep learning API, https://keras.io/ (last access: 27 June 2023), 2015. a

Deltares: SOBEK 3 – next generation hydro software – Deltares public wiki, https://publicwiki.deltares.nl/display/nghs/SOBEK+3 (last access: 27 June 2023), 2019. a

Gettelman, A., Gagne, D. J., Chen, C.-C., Christensen, M. W., Lebo, Z. J., Morrison, H., and Gantos, G.: Machine learning the warm rain process, J. Adv. Model. Earth Syst., 13, e2020MS002268, https://doi.org/10.1029/2020MS002268, 2021. a

Gisen, J. I. A., Savenije, H. H. G., and Nijzink, R. C.: Revised predictive equations for salt intrusion modelling in estuaries, Hydrol. Earth Syst. Sci., 19, 2791–2803, https://doi.org/10.5194/hess-19-2791-2015, 2015. a

Haasnoot, M., Van Deursen, W., Guillaume, J., Kwakkel, J., Van Beek, E., and Middelkoop, H.: Fit for purpose? Building and evaluating a fast, integrated model for exploring water policy pathways, Environ. Model. Softw., 60, 99–120, https://doi.org/10.1016/j.envsoft.2014.05.020, 2014. a, b

Hauswirth, S. M., Bierkens, M. F., Beijk, V., and Wanders, N.: The potential of data driven approaches for quantifying hydrological extremes, Adv. Water Resour., 155, 104017, https://doi.org/10.1016/j.advwatres.2021.104017, 2021. a, b, c

Hochreiter, S. and Schmidhuber, J.: Long Short-Term Memory, Neural Comput., 9, 1735–1780, https://doi.org/10.1162/neco.1997.9.8.1735, 1997. a

Homola, D., Bernico, M., Tallent, E., Ingvar-Y, Christ, M., Massaron, L., Bittremieux, W., Miner, L., Arsenkhy, Glover, A., Tamayo, S., Baum, A., Stein, D., Mao771, Mottl, D., Pfannschmidt, L., Zoj613, Wu, L., and Biesinger, D.: Boruta_py, GitHub [code], https://github.com/scikit-learn-contrib/boruta_py (last access: 27 June 2023), 2022. a, b

Hu, J., Liu, B., and Peng, S.: Forecasting salinity time series using RF and ELM approaches coupled with decomposition techniques, Stochastic Environ. Res. Risk A., 33, 1117–1135, https://doi.org/10.1007/s00477-019-01691-1, 2019. a

Huismans, Y., Buschman, F., Wesselius, C., Daniels, J., and Kuijper, K.: Modelleren van zoutverspreiding met SOBEK 3 en SOBEK-RE, Tech. rep., Deltares, https://publications.deltares.nl/1230077_003.pdf (last access: 7 December 2022), 2016. a

Huismans, Y., Van der Wijk, R., Fujisaki, A., and Sloff, K.: Zoutindringing in de Rijn-Maasmonding, Tech. Rep. 11200589-001-ZWS-0010, Deltares, https://publications.deltares.nl/11200589_001_0010.pdf (last access: 7 December 2022), 2018. a

Huismans, Y., Groenenboom, J., Zijl, F., and Van der Wijk, R.: Voorspellen optreden nalevering bij Bernisse, Tech. Rep. 11203734-008-ZWS-0003, Deltares, https://publications.deltares.nl/11200589_001_0010.pdf (last access: 23 November 2022), 2019. a

Hydrologic, Rijkswaterstaat, Waterschap Hollandse Delta, Waterschap Brabantse Delta, Hoogheemraadschap van Delfland, Hoogheemraadschap van Schieland en de Krimpenerwaard, Hoogheemraadschap van Rijnland, and Hoogheemraadschap De Stichtse Rijnlanden: Inventarisatie slim watermanagement Rijn-Maasmonding, Tech. rep., Hydrologic, https://www.slimwatermanagement.nl/publish/pages/158579/rmm_2015_rapport_inventarisatie_slim_wm_rijn-maasmonding.pdf (last access: 19 January 2023), 2015. a

Jongbloed, H., Schuttelaars, H. M., Dijkstra, Y. M., Donkers, P. B., and Hoitink, A. J. F.: Influence of wind on subtidal salt intrusion and stratification in well-mixed and partially stratified estuaries, J. Phys. Oceanogr., 52, 3139–3158, https://doi.org/10.1175/JPO-D-21-0291.1, 2022. a

Kingma, D. P. and Ba, J.: Adam: a method for stochastic optimization, arxiv [preprint], http://arxiv.org/abs/1412.6980 (last access: 27 June 2023), 2017. a

KNMI: KNMI (Royal Netherlands Meteorological Institute) – Daggegevens van het weer in Nederland, KNMI [data set], https://www.knmi.nl/nederland-nu/klimatologie/daggegevens (last access: 17 April 2023), 2022. a, b, c

Korving, H. and Visser, M.: Data-gedreven anticiperen op droogte, Tech. Rep. 11205273-004-BGS-0002, Deltares, https://puc.overheid.nl/rijkswaterstaat/doc/PUC_642114_31/1/ (last access: 7 December 2022), 2021. a

Kratzert, F., Klotz, D., Brenner, C., Schulz, K., and Herrnegger, M.: Rainfall–runoff modelling using Long Short-Term Memory (LSTM) networks, Hydrol. Earth Syst. Sci., 22, 6005–6022, https://doi.org/10.5194/hess-22-6005-2018, 2018. a, b

Kursa, M. B. and Rudnicki, W. R.: Feature selection with the Boruta package, J. Stat. Softw., 36, 1–13, https://doi.org/10.18637/jss.v036.i11, 2010. a

Lenderink, G. and Beersma, J.: The KNMI'14 WH,dry scenario for the Rhine and Meuse basins, Tech. Rep. WR-2015-02, KNMI, https://www.knmi.nl/kennis-en-datacentrum/publicatie/the-knmi-14-wh-dry-scenario-for-the-rhine-and-meuse-basins#:~:text=Averaged ver the Rhine area,respectively 20 and 33 (last access: 20 October 2023), 2015. a

Lerczak, J. A., Geyer, W. R., and Ralston, D. K.: The temporal response of the length of a partially stratified estuary to changes in river flow and tidal amplitude, J. Phys. Oceanogr., 39, 915–933, https://doi.org/10.1175/2008JPO3933.1, 2009. a

Liu, B., Liao, Y., Yan, S., and Yan, H.: Dynamic characteristics of saltwater intrusion in the Pearl River estuary, China, Nat. Hazards, 89, 1097–1117, https://doi.org/10.1007/s11069-017-3010-4, 2017. a

Lu, P., Lin, K., Xu, C.-Y., Lan, T., Liu, Z., and He, Y.: An integrated framework of input determination for ensemble forecasts of monthly estuarine saltwater intrusion, J. Hydrol., 598, 126225, https://doi.org/10.1016/j.jhydrol.2021.126225, 2021. a

PDOK: Home – PDOK (Public Data On Maps), https://www.pdok.nl/ (last access: 17 April 2023), 2022. a

Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., and Cournapeau, D.: Scikit-learn: machine learning in Python, J. Mach. Learn. Res., 12, 2825–2830, 2011. a

Pezij, M., Augustijn, D. C., Hendriks, D. M., and Hulscher, S. J.: The role of evidence-based information in regional operational water management in the Netherlands, Environ. Sci. Policy, 93, 75–82, https://doi.org/10.1016/j.envsci.2018.12.025, 2019. a, b

Prinsen, G. F. and Becker, B. P. J.: Application of SOBEK hydraulic surface water model in the Netherlands Hydrological modelling Instrument, Irrig. Drain., 60, 35–41, https://doi.org/10.1002/ird.665, 2011. a, b, c

QGIS: Welcome to the QGIS project!, https://www.qgis.org/en/site/ (last access: 12 September 2022), 2022. a

Qiu, C. and Wan, Y.: Time series modeling and prediction of salinity in the Caloosahatchee river estuary: time series modeling of estuarine salinity, Water Resour. Res., 49, 5804–5816, https://doi.org/10.1002/wrcr.20415, 2013. a

Ralston, D. K., Geyer, W. R., and Lerczak, J. A.: Structure, variability, and salt flux in a strongly forced salt wedge estuary, J. Geophys. Res., 115, C06005, https://doi.org/10.1029/2009JC005806, 2010. a

Rijkswaterstaat: Waterbeheer (expert) – Rijkswaterstaat waterinfo, Rijkswaterstaat [data set], https://waterinfo.rws.nl/#!/kaart/Waterbeheer/ (last access: 27 June 2023), 2022. a, b, c, d

Rohmer, J. and Brisset, N.: Short-term forecasting of saltwater occurrence at La Comté river (French Guiana) using a kernel-based support vector machine, Environ. Earth Sci., 76, 246, https://doi.org/10.1007/s12665-017-6553-5, 2017. a, b, c

Savenije, H.: A one-dimensional model for salinity intrusion in alluvial estuaries, J. Hydrol., 85, 87–109, https://doi.org/10.1016/0022-1694(86)90078-8, 1986. a

Savenije, H. H. G.: Salinity and tides in alluvial estuaries, in: 2.6 Edn., Elsevier publications, Delft, https://salinityandtides.com/ (last access: 12 July 2022), 2012. a, b

Shaha, D. C., Cho, Y.-K., and Kim, T.-W.: Effects of river discharge and tide driven sea level variation on saltwater intrusion in Sumjin river estuary: an application of finite-volume coastal ocean model, J. Coast. Res., 287, 460–470, https://doi.org/10.2112/JCOASTRES-D-12-00135.1, 2013. a, b

Silva, S. J., Ma, P.-L., Hardin, J. C., and Rothenberg, D.: Physically regularized machine learning emulators of aerosol activation, Geosci. Model Dev., 14, 3067–3077, https://doi.org/10.5194/gmd-14-3067-2021, 2021. a

Sun, Z., Fan, J., Yan, X., and Xie, C.: Analysis of critical river discharge for saltwater intrusion control in the upper south branch of the Yangtze river estuary, J. Geogr. Sci., 30, 823–842, https://doi.org/10.1007/s11442-020-1757-0, 2020. a, b

Tian, X.: Model predictive control for operational water management: a case study of the Dutch water system, PhD thesis, Delft University of Technology, Delft, https://doi.org/10.4233/UUID:ADED9B65-677D-42BC-AF93-969199AA1F77, 2015. a

Van den Brink, M., Huismans, Y., Blaas, M., and Zwolsman, G.: Climate change induced salinization of drinking water inlets along a tidal branch of the Rhine river: impact assessment and an adaptive strategy for water resources management, Climate, 7, 49, https://doi.org/10.3390/cli7040049, 2019. a, b, c, d, e, f

Warmink, J. J., Van der Klis, H., Booij, M. J., and Hulscher, S. J. M. H.: Identification and quantification of uncertainties in a hydrodynamic river model using expert opinions, Water Resour. Manage., 25, 601–622, https://doi.org/10.1007/s11269-010-9716-7, 2011. a

Warmink, J. J., Brugnach, M., Vinke-de Kruijf, J., Schielen, R. M. J., and Augustijn, D. C. M.: Coping with uncertainty in river management: challenges and ways forward, Water Resour. Manage., 31, 4587–4600, https://doi.org/10.1007/s11269-017-1767-6, 2017.  a

Wullems, B., Brauer, C., Baart, F., and Weerts, A.: Data underlying the publication: Forecasting estuarine salt intrusion in the Rhine-Meuse delta using an LSTM model, 4TU Research Data [data set], https://doi.org/10.4121/21944249, 2023a. a

Wullems, B., Brauer, C., Baart, F., and Weerts, A.: Code underlying the publication: Forecasting estuarine salt intrusion in the Rhine-Meuse delta using an LSTM model, 4TU Research Data [code], https://doi.org/10.4121/21946724, 2023b. a

Wullems, B., Brauer, C., Baart, F., and Weerts, A.: Machine learning model for predicting salt concentrations in the Rhine-Meuse delta, Zenodo [code], https://doi.org/10.5281/zenodo.10017846, 2023. a

Xue, P., Chen, C., Ding, P., Beardsley, R. C., Lin, H., Ge, J., and Kong, Y.: Saltwater intrusion into the Changjiang river: a model-guided mechanism study, J. Geophys. Res., 114, C02006, https://doi.org/10.1029/2008JC004831, 2009. a, b, c, d

Zhou, F., Liu, B., and Duan, K.: Coupling wavelet transform and artificial neural network for forecasting estuarine salinity, J. Hydrol., 588, 125127, https://doi.org/10.1016/j.jhydrol.2020.125127, 2020. a

Zounemat-Kermani, M., Matta, E., Cominola, A., Xia, X., Zhang, Q., Liang, Q., and Hinkelmann, R.: Neurocomputing in surface water hydrology and hydraulics: a review of two decades retrospective, current status and future prospects, J. Hydrol., 588, 125085, https://doi.org/10.1016/j.jhydrol.2020.125085, 2020. a

Download
Short summary
In deltas, saltwater sometimes intrudes far inland and causes problems with freshwater availability. We created a model to forecast salt concentrations at a critical location in the Rhine–Meuse delta in the Netherlands. It requires a rather small number of data to make a prediction and runs fast. It predicts the occurrence of salt concentration peaks well but underestimates the highest peaks. Its speed gives water managers more time to reduce the problems caused by salt intrusion.