Next Article in Journal
Groundwater Recharge Assessment for Small Karstic Catchment Basins with Different Extents of Anthropogenic Development
Previous Article in Journal
Soil Organic Carbon Depletion in Managed Temperate Forests: Two Case Studies from the Apennine Chain in the Emilia-Romagna Region (Northern Italy)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Graph-Based Deep Learning Model for Forecasting Chloride Concentration in Urban Streams to Protect Salt-Vulnerable Areas

by
Victor Oliveira Santos
1,
Paulo Alexandre Costa Rocha
1,2,*,
Jesse Van Griensven Thé
1,3 and
Bahram Gharabaghi
1,*
1
School of Engineering, University of Guelph, 50 Stone Rd E, Guelph, ON N1G 2W1, Canada
2
Mechanical Engineering Department, Technology Center, Federal University of Ceará, Fortaleza 60020-181, CE, Brazil
3
Lakes Environmental, 170 Columbia St. W, Waterloo, ON N2L 3L3, Canada
*
Authors to whom correspondence should be addressed.
Environments 2023, 10(9), 157; https://doi.org/10.3390/environments10090157
Submission received: 2 August 2023 / Revised: 1 September 2023 / Accepted: 6 September 2023 / Published: 12 September 2023

Abstract

:
In cold-climate regions, road salt is used as a deicer for winter road maintenance. The applied road salt melts ice and snow on roads and can be washed off through storm sewer systems into nearby urban streams, harming the freshwater ecosystem. Therefore, aiming to develop a precise and accurate model to determine future chloride concentration in the Credit River in Ontario, Canada, the present work makes use of a “Graph Neural Network”–“Sample and Aggregate” (GNN-SAGE). The proposed GNN-SAGE is compared to other models, including a Deep Neural Network-based transformer (DNN-Transformer) and a benchmarking persistence model for a 6 h forecasting horizon. The proposed GNN-SAGE surpassed both the benchmarking persistence model and the DNN-Transformer model, achieving RMSE and R2 values of 51.16 ppb and 0.88, respectively. Additionally, a SHAP analysis provides insight into the variables that influence the model’s forecasting, showing the impact of the spatiotemporal neighboring data from the network and the seasonality variables on the model’s result. The GNN-SAGE model shows potential for use in the real-time forecasting of water quality in urban streams, aiding in the development of regulatory policies to protect vulnerable freshwater ecosystems in urban areas.

1. Introduction

In cold temperate regions of the globe, during winter, deicing substances are often used on roads to improve drivability and road safety, reducing accidents by up to 87% [1,2,3]. Most commonly, inorganic salts (NaCl, CaCl2, MgCl2, KCl) are the main tool for ice melting in these regions [3,4]. Their use can be traced back to the United States at the end of the 1930s, and since then, they have been adopted by other countries in the following decades [3,5]. As urbanization has increased, motor vehicles have become more common as a transportation option, leading to an exponential increase in salt usage for road safety improvement [5]. The United States and Canada disperse as much as 24.5 million and 8 million tons of road salt (mainly NaCl), respectively [6,7,8,9]. While this has a positive impact on road safety during winter, the usage of salt has been shown to have negative consequences, such as the corrosion of automobiles and road infrastructure degradation [9,10,11].
A plethora of studies have shown that road-applied salt for ice melting is one major anthropogenic sources of increased chloride (Cl) concentration in soil and water bodies, causing their salinization, more notably so in high urbanized regions, which can reach chloride concentrations as high as 1344 mg/L [2,4,5,12]. The road salt enters the freshwater ecosystems via highway runoff, resulting in high chloride concentrations [4,13]. The high chloride concentration impairs the freshwater aquatic biota by reducing food availability and decreasing biodiversity [2,14,15,16,17].
Many municipalities have installed real-time water quality monitoring stations to accurately assess the environmental impacts of winter road maintenance and reduce road salt application in salt-vulnerable areas. The implementation of low-impact development with the physical modeling of enhanced roadside drainage systems was proposed in previous work as a viable approach to manage chloride concentration for salt-vulnerable areas [18,19]. However, due to the large quantity of data collected at a high frequency, real-time monitoring stations’ data are most efficiently analyzed by advanced deep learning models, providing accurate water quality forecasts. When compared to physical-based forecasting models, the data-driven paradigm, such as machine learning (ML) and deep learning (DL) approaches, have been favored by scientists due to their simpler implementation, faster processing times, and inherent capacity to identify complex relationships in the data [20,21,22,23].
Different applications of ML models on water quality can be found in the literature. In [24], experimental results pertaining to a Water quality index (WQI) estimation for the Bhavani River, India, showed that the applied artificial neural network (ANN) configuration outperformed their benchmarking models, providing superior accuracy and error values. A similar result was found in another work [25], where ANN was employed for WQI forecasting in Warta River, Poland. Their best-assessed ANN configuration used five hidden neurons in a multilayer perceptron (MLP) structure, returning a root mean square error (RMSE) value of 0.64, proving itself as an essential tool for surface water quality determination. The application of the ML paradigm to groundwater level has been explored in the literature [26]. In this paper, the authors proposed combining wavelet transform (WT) with well-established stand-alone ML models, such as ANN, adaptative neuro-fuzzy inference system (ANFIS), group method of data handling (GMDH), and a least squares support vector machine (LSSVM) to determine groundwater level for the Zarand–Saveh aquifer in Iran for up to 3 months in advance. The results showed that the best model resulted from a combination of WT and LSSVM, achieving RMSE values of 0.05 m and 0.18 m for 1 month and 3 months in advance, outperforming the other assessed models for the same forecasting horizons. In [27], several ML techniques were studied for the application of irrigation water quality for the arid location of the Nfifikh and Cherrate watersheds in Morocco to predict 10 different water quality indexes, including chloride. The results proved that ML can efficiently forecast water quality, with the random forest (RF) model being the most suitable model for chloride prediction in their study.
Future chloride concentration estimates can also benefit from the data-driven paradigm. In [28], the authors propose a data-driven approach to determine future chloride levels in Florida, USA, for groundwater supply. Their approach showed robust performance when forecasting chloride, reaching RMSE and coefficient of determination (R2) values of 28 mg/L and 0.90, respectively. Another data-driven model was implemented by the authors of [21]. Their proposed methodology, real-time chloride forecasting in Grand River, Canada, used an ensemble learning model combining multilayer perceptron MLP and stepwise cluster analysis (SCA). The proposed MLP-SCA achieved good results regarding RMSE (11.58 mg/L) and R2 (0.90). A regression tree-based ML model was suggested by Poor and Ullman [29] for the determination of future levels of nitrate and chloride in the Willamette River, USA. Their analysis increased the R2 values for chloride by 33% when compared to the multiple linear regression model, achieving a final value of 0.75. Their results proved that tree models could handle the complex nonlinearity within the assessed data.
Overall, the data-driven approach shows great potential when applied to the hydrology/environment research area. However, some authors believe there is a deficiency in understanding the application of the deep learning paradigm for predicting chloride levels. To address this problem, the present work proposes to use a cutting-edge approach combining graph theory and DL to assess future chloride concentrations based on spatiotemporal data for the Credit River located in Ontario, Canada. This work expects to contribute to the field by carrying out the following tasks:
  • Building a state-of-the-art model for chloride concentration, allowing for more accurate and precise results.
  • Conducting an analysis of the contribution of different time lags for the forecasted chloride concentration.
  • Conducting an analysis of the importance of different input variables.
The remainder of this work is structure as follows: In Section 2, the methodology used is presented, followed by Section 3, where the achieved results are shown. In Section 4, there is a discussion of the results, and Section 5 closes the work and contains our conclusions.

2. Materials and Methods

2.1. Credit River: Characteristics and Dataset

The Credit River is located in Southern Ontario, Canada, just west of Toronto. Its source is located in Orangeville, and the rivers flows until reaching Lake Ontario in a 90 km trajectory [30,31]. The Credit River has a total drainage area of 93,000 ha, and its land composition is split as follows: 35% for agriculture, 27% for urban use, and the remaining 38% comprises natural habitats. The area has an estimated population of 1 million people [32,33,34]. The river is important for environmental conservation due to its rich aquatic biodiversity and its role as a vital water source for the local population [30,35]. A map showcasing the location of the Credit River watershed and its tributaries is presented in Figure 1, where the red mark represents the reference station, i.e., where the chloride concentration is being forecasted, namely “Credit River @ MGCC”, while the green marks show the location of the neighboring stations that provide spatiotemporal data.
However, the highly urbanized Credit River watershed environment adds elevated pollutant concentrations to the river, risking human and animal lives. The present work proposes the use of a graph-based model called GNN-SAGE to estimate future pollutant concentrations (mainly chloride) in the Credit River. Unlike traditional ML and DL paradigms, graph-based models such as GNN-SAGE can process multi-spatiotemporal data, satisfactorily identifying the underlying relationship between the input variables and the target variable when used in forecasting applications [36,37]. Its ability to extract spatiotemporal information from data is critical in the current study due to chloride concentration relying on both temporal and spatial features.
The dataset used for this study contains historical data concerning the Credit River from 2016 to 2020. The historical data have a time resolution of 15 min. With the exception of precipitation (which was summed), all the variables were resampled to 1 h intervals to calculate the average value for each one of them before being fed to the assessed models. The stations distributed along the river’s course measure values for the water’s physical-chemical characteristics and weather attributes. Figure 2 shows the correlation between each attribute in matrix form.
Figure 2 depicts the correlation matrix, with darker blue colors indicating highly correlated attributes, and darker red showing a high negative correlation. Figure 2 shows a strong positive correlation between chloride levels and water conductivity. Against common sense, this may indicate a collinear relationship between these two attributes, meaning that the conductivity information may be already provided to the model by the chloride data, which can hamper the model’s performance by increasing its variance [38,39]. Air and water temperatures have a moderately negative correlation with chloride, while dissolved oxygen has a positive correlation. Although the remaining attributes have a weak correlation, these variables may add important information to the model due to the movement of salt dissolved in the river, helping its modeling and, consequently, future chloride concentrations, as suggested by the SHAP analysis presented in this work.
The dataset was split into two stages: training and validation. The training stage was performed using data from 2016 to 2019, and the validation stage was conducted using data from 2020, as shown in Figure 3. In the figure, the blank spaces represent gaps in the historical data, which were not used in the training phase.

2.2. Benchmarking Model

The performances of the Deep Neural Network-based transformer (DNN-Transformer) and the Graph Neural Network Sample and Aggregate (GNN-SAGE) paradigms were evaluated using the benchmarking persistence model. Persistence is a simple forecasting model used as a minimal benchmarking tool. It states that the following attribute measurement is the same as the latest [40,41]. This approach can achieve good results for short forecasting horizons. However, its performance deteriorates for further future horizons as the model cannot track the influence of the dynamics of external factors impacting future values [42,43].

2.3. DNN-Transformer

In the original Transformer structure [44], the encoder embeds data to a context vector using positional encoding and stacks a multi-head attention mechanism, determining how the provided input attends to each other. The encoder output is then fed to the decoder, which generates the most probable forthcoming word for NLP applications [44]. Transformer-based models have exhibited superior or comparative performance during comparisons with recurrent neural networks when applied to different areas, such as speech recognition [45], computer vision [46,47], and time series forecasting [48].
The present study adapted the transformer structure to the proposed regression problem of forecasting chloride concentration using the PyTorch and Scikit-Learn libraries for Python [49,50] (the library’s documentation can be accessed at https://pytorch.org/ and https://scikit-learn.org/stable/, accessed on 28 August 2023). The applied architecture for the transformer encoder and the DNN-Transformer architecture are presented in Figure 4 and Figure 5, respectively.
Figure 4 shows that the transformer uses just the encoder structure for the present study. There, the input data are normalized before being fed to the multi-head structure, which is composed of 16 attention-heads, each one with a key dimension equal to 32. After that, the processed data are again normalized with residual information from the original input dataset and then passed to the feed-forward structure, composed of convolutional layers activated by Leaky ReLu [51], using a 25% dropout. The DNN-Transformer structure, depicted in Figure 5, is composed of two encoders followed by an average pooling layer. A dense layer with 8192 neurons follows the model, which finally outputs the predicted chloride concentration.

2.4. GNN-SAGE

The GNN-SAGE was first proposed [52] as a general inductive framework for handling large graph structures. In this approach, nodes are equally sampled around an area of interest during the sampling phase. Afterward, the spatiotemporal information retrieved from these nodes is aggregated by an aggregate operator [53]. This generates an embedding vector representing the node of interest that is also able to generalize unknown data, disregarding the graph’s topology and structure [41,52,54]. The GNN-SAGE model’s structure enables it to capture complex spatiotemporal patterns between a node and its neighbors, enhancing its forecasting performance compared to traditional ML and DL methods. This results in cutting-edge outcomes when applied to various time series problems [42,43]. The GNN-SAGE model was implemented using Pytorch and Scikit-Learn for Python, and its structure in the context of this study is presented in Figure 6.
As shown in Figure 6, the spatiotemporal data are fed to the first SAGE convolutional layer using 10% Leaky ReLu as the activation layer and a 10% dropout rate. The convolution process is repeated four times, identifying and extracting relevant structure patterns in the data. After that, the processed data are passed to a sequence of two dense layers using 10% Leaky ReLu, where the forecasted chloride concentration is finally output by the model.

2.5. SHAP Analysis

Shapley Additive Explanations (SHAP) is a way to provide insight into how ML models work [55]. The SHAP analysis, based on game theory, calculated the contribution of each input parameter used by the model for forecasting and was implemented into the present work after the model had been trained using the SHAP library (the SHAP library documentation can be read at https://shap.readthedocs.io/en/latest/, accessed on 28 August 2023) by evaluating the model for each situation where one of the independent variables is not used. This way, SHAP can identify relationships among the input data, identifying their influence, importance, and correlation over the model’s output [41,42,43,55]. The determination of the influence of each variable provides deeper insight into how the model provides its results, being a viable option to explain the analyzed ML paradigm locally. The employment of SHAP analysis by those with expertise in different knowledge areas, such as pharmaceutical [56], engineering [57], and social sciences [58], renders it a valuable tool for researchers. In Figure 7, we present a flow chart outlining the tasks performed during our study.

3. Results

3.1. Size of Time Window Effect

Figure 8 presents the results for the effect of different time window sizes, i.e., the number of time lags applied as inputs on both the GNN-SAGE and DNN-Transformer models. For this analysis, it was decided that only chloride information would be used.
Figure 8 shows the RMSE for different numbers of time lags for the proposed DNN-Transformer and GNN-SAGE models. Increasing the time window size proved to be beneficial for the graph-based model up to 12 h. Beyond that threshold, the results started to deteriorate. For the DNN-Transformer, incorporating past information enhanced the model’s performance for up to 18 h, where more time lag values started to harm the model’s performance.
The GNN-SAGE and DNN-Transformer models outperformed persistence, yielding improvements of 12.4% and 11.7%. For the graph-based approach, the best result was obtained using 12 h of past data, reaching an RMSE value of 59.73 ppm, while the DNN-Transformer needed 18 h to provide its best outcomes for an RMSE of 60.24 ppm. Compared to the DNN-Transformer, the proposed GNN-SAGE improved its forecasting by 0.8% for that situation. Based on the results presented in Figure 8, we used 12 time lags for all input variables, including chloride concentrations, to determine future Cl values.

3.2. Chloride Concentration for 6 h Ahead Forecasting Horizon

The impact of the input variables used on chloride forecasting was evaluated through a step-by-step analysis for a 6 h ahead forecast horizon. At first, in order to forecast future chloride concentrations, the model’s sole input was past chloride concentrations. After each test, more input variables were introduced into the model. If the inclusion of a variable improved the model’s performance, it was kept as an input; otherwise, it was discarded. This procedure was repeated until all the input variables described in Figure 2 were assessed, resulting in a selection of variables that only returned the best forecasting values in terms of RMSE. The results for this test are shown in Figure 9, where the lighter the color, the better the error achieved by the model.
In Figure 9, the best result was achieved when combining chloride and solar radiation, resulting in an RMSE of 57.86 ppm. Adding more than two variables showed no improvement over the transformer performance, indicating that the model could not extract the spatiotemporal information from the additional inputs. Solar radiation, on the other hand, appears capable of providing temporal information in terms of seasonality, both yearly and daily, improving the model’s forecasting capacity. The results for forecasting chloride concentrations 6 h in advance are presented in Figure 10.
Figure 10 presents a scatter plot for the transformer model and the marginal distributions for the actual and forecasted concentration values. The graph shows good agreement between the measured and actual chloride values, as evidenced the clustered points around the regression line, which reached a coefficient of determination of 82%, and by both marginal distributions having similar distributions. The DNN-Transformer model reached an RMSE value of 57.86 ppm and an MBE of −1.97 ppm, suggesting a slight underestimation of the forecasted values.
The results regarding the variable testing for the proposed GNN-SAGE model are presented in Figure 11.
As shown in Figure 11, the model’s forecasting ability improved with the inclusion of additional variables. For this case, the best solution was reached using chloride, water temperature, precipitation, flow, and solar radiation, resulting in an RMSE of 51.16 ppm.
The decrease in the DNN-Transformer model’s performance can be explained by the fact that it could not identify and extract the spatiotemporal information underlying the dataset. This ultimately prevented the model’s generalization of the problem, returning inferior results than the GNN-SAGE. The proposed model, however, could extract and identify the spatiotemporal relationship between input and output variables, improving its generalization and, consequently, its forecasting due to its better understanding of the graph-structured data [37], as verified in previous studies [41,42,43]. Figure 12 shows a scatter plot for the GNN-SAGE model.
Figure 12 demonstrates that the forecasted and actual data are in good agreement once more. Compared to the deep learning transformer approach, the proposed SAGE model could cluster the points even closer to the regression line, with a more similar marginal distribution of its data and an improved coefficient of determination of 88%. The graph-based paradigm had RMSE and MBE errors of 51.16 ppm and −0.64 ppm, respectively. Compared to the RMSE errors of persistence and the DNN-Transformer, the GNN-SAGE model increased forecasting by 25% and 12%, respectively. These findings show that the GNN-SAGE model can produce more accurate and precise results than the benchmarking models. The superior results for the graph model can be seen in Figure 13 and Figure 14.
The continuous line in Figure 13 represents the observed chloride values, while the dashed line represents the predicted values. It is possible to visualize that both the DNN-Transformer and the proposed SAGE models can adequately identify the peaks during the assessed period. However, the GNN-SAGE provides more accurate results. While analyzing the period between 15 February 2020 and 1 March 2020, GNN-SAGE closely followed the concentration peak, providing results near to the actual observed chloride concentration values and surpassing the transformer’s performance for the same period. Figure 14 presents a closer look at the assessed period.
Figure 14 shows model performance forecasting the chloride concentration at a range narrower than in Figure 13. From this, it is easier to verify that the SAGE model was better at identifying the concentration peaks, as seen for the dates of the 11 and 13 of February 2020. The proposed model reduced the lag between the actual and forecasted values. This lag is known in the literature and can be attributed to the need for more spatiotemporal data for extended time windows as the leading forecasting time increases [59,60,61]. However, the proposed model reduced this gap when applied to different time series forecasting problems, providing more accurate and reliable predictions in longer-horizon forecasts [42,43].

3.3. SHAP Analysis Results

The results of the SHAP analysis are presented in Figure 15. The results are organized in descending order, where the closer to the top, the more important the attribute is for the forecasted value. The rightmost bar in the figure represents the correlation between the variable and the output value. A higher correlation indicates a higher feature value. Furthermore, negative SHAP values indicate that the attribute had a negative influence over the forecasting and vice versa.
In Figure 15, it is possible to state that data from the reference station “Credit River @ MGCC” make a major contribution to the determination of the chloride concentration. Figure 15 also shows that the top three most influential variables for the model’s forecasting are the chloride concentrations from the reference station. Moreover, the SHAP results show that neighboring stations contribute to the model’s output. These stations provided important information regarding water temperature, which is the fourth most influential attribute; solar radiation, which may provide seasonality information; and flow. This states the importance of spatiotemporal information coming from the surroundings of the reference station in improving the model’s forecasting [41,42,43,62].

4. Discussion

The GNN-SAGE model proposed in this research has proven to be a reliable tool for estimating future chloride concentrations in the Credit River. Based on graph theory and deep learning, its structure can satisfactorily identify and extract complex spatiotemporal dependencies in data collected from the neighboring stations. Its superior performance for time series applications has been well documented in the literature, where this approach consistently produces state-of-the-art results with respect to forecasting [42,43]. The same behavior was observed in the present work, where the GNN-SAGE paradigm outperformed both persistence and DNN-Transformer models, achieving RMSE and R2 values of 51.16 ppb and 0.88, a substantial improvement over the other assessed models.
The GNN-SAGE approach also reduced the lag between the forecasted and actual measured chloride concentrations, a common phenomenon in time series forecasting as larger forecasting windows require more data [59,60,61]. The narrowing of this prediction gap is fundamental for providing more accurate and precise future chloride concentrations, allowing for better decision-making and policy development by stakeholders and environmental agencies.
The SHAP analysis we conducted provided an insightful examination of the GNN-SAGE model. Its results showed that the forecasting of Cl depends on local and neighboring concentration ion levels. The SHAP analysis also depicts water temperature and solar radiation as other essential variables in chloride forecasting, showcasing the seasonal behavior of chloride.
We compared the results of chloride forecasting found in the literature with those obtained using GNN-SAGE. However, it is important to note that directly comparing different predictive models can be challenging. Each study has its own methodology and unique characteristics, making it difficult to draw direct comparisons between the models. Furthermore, since WQI forecasting using machine learning has been much more frequently explored than direct chloride prediction, not as many works are available for comparison using this approach. Table 1 compiles metric values for the proposed GNN-SAGE model, and the results found in the literature are presented in Table 2.
In [21], chloride concentration was estimated for a 1 h forecasting horizon for the Grand River, Ontario, Canada. The authors of this study proposed an ML model combining multiple-layer perceptron with stepwise cluster analysis for this task. Their approach is based on ensemble learning, which has been proven to boost time series forecasting results [22]. When comparing the GNN-SAGE model to their results, it is evident that the graph-based approach delivers better error values for a longer horizon (51.16 ppb) but has a slightly lower R2 value of 0.88. This indicates that GNN-SAGE can provide more accurate results than traditional approaches such as SCA-MLP. Another ML learning model is proposed in [29], where the authors employed the regression tree paradigm to estimate future chloride concentrations in the Willamette River watershed in the USA. This work is an improvement over the author’s previous study [63], where they first proposed chloride forecasting using multiple regression analysis. Comparing both studies, the tree-based model outperformed the former approach, increasing R2 from 0.64 to 0.85. The proposed GNN-SAGE architecture surpasses the results found in both studies, providing a superior coefficient of determination of 0.88, meaning an improvement of 3.5% over the regression tree forecasting was achieved. In [28], a data-driven approach was used to evaluate future chloride concentrations in Deltona, Florida. Unlike the other studies mentioned, the authors proposed estimating Cl concentration for groundwater supply. The used model resulted in an RMSE of 28.00 mg/L and R2 of 0.90. Similarly to the results found in [21], GNN-SAGE once again reduced the RMSE error for the chloride estimation, also exhibiting a slightly reduced coefficient of determination. Again, this suggests the superior performance of the GNN-SAGE over this data-driven approach for chloride forecasting.
The Integrated catchment for Cl simulation (INCA-Cl) is a physical-based model for determining future chloride concentrations with daily temporal resolution. It is a dynamic, mass-balance approach that aims to verify the temporal changes in the river’s flow path [65]. In [64], INCA-Cl was also used to predict chloride concentrations in Ethiopia. In their work, the physical model reached an average R2 value of 0.45 for monthly Cl concentration, indicating inferior performance when compared to the GNN-SAGE result of 0.88. Additionally, it is important to note that one of the main advantages of using ML and DL paradigms over physical-based approaches is its simpler implementation. The INCA-Cl model, for example, needs simulated data for hydrological and soil modeling, as well as a geographical information system file to delineate the watershed sub-catchments before running the model [64,65,66]. On the other hand, the GNN-SAGE model only requires the measured parameters, as depicted in Figure 2. Also, the INCA-Cl model is not suitable for real-time chloride monitoring due to its daily temporal resolution. In contrast, the GNN-SAGE model can perform intra-hour forecasting, providing instantaneous and punctual values, which is more sophisticated than globally integrated values over time.
By using spatiotemporal information, the GNN-SAGE enhances the concept of temporal auto-regression to a spatiotemporal paradigm, using the measuring station data that have an effect over the target parameter (chloride). Our results show that the GNN-SAGE model is able to properly forecast extreme events for chloride concentration for the assessed forecasting horizon of 6 h. When compared with previous works found in the literature, the proposed GNN-SAGE model offers superior performance for determining future chloride values. Considering both RMSE and R2 metrics, GNN-SAGE was able to overcome traditional ML applications such as MLP, regression trees, and data-driven FOS. For the physical-based INCA-Cl, GNN-SAGE offers a simpler implementing approach and is able to provide intra-hour predictions for chloride concentrations with real-time chloride monitoring applications. Overall, the GNN-SAGE model has been shown to be a superior approach for chloride forecasting.

5. Conclusions

Our developed GNN-SAGE model was used to predict chloride concentrations. Our GNN-SAGE model was trained with historical data from 2016 to 2020 collected from stations distributed along the Credit River course. The model was subsequently tested using different data inputs. The best configuration for the proposed graph model was reached using past chloride concentration data, water temperature data, precipitation data, flow data, and solar radiation data, together with a time lag of 12 h, as input variables.
To assess the proposed model, the DNN-Transformer and the benchmarking persistence models were also evaluated for chloride forecasting. When compared to the other two models for a 6 h forecasting horizon, the GNN-SAGE model outperformed expectation both in terms of RMSE and R2 evaluation metrics, achieving values of 51.16 ppb and 0.88, respectively. A SHAP analysis was also conducted for this study to gain better insight into the model’s forecasting. The results of our SHAP analysis provided an understanding of how spatiotemporal data from neighboring stations majorly affect the GNN-SAGE results. The SHAP analysis indicated that seasonality plays an important part in chloride estimation and that flow, water temperature, and solar radiation are also relevant attributes.
A comparison of the GNN-SAGE model with results from the literature revealed that it delivers state-of-the-art performance for estimating chloride levels, achieving superior RMSE values and comparable R2 values. This comparison deems the proposed GNN-SAGE as a reliable tool for chloride forecasting, providing accurate and precise estimations of Cl up to 6 h in advance.
Future works may address some of the model’s limitations, such as its geographical limitations. To overcome this hindrance, the model can be trained and validated in different rivers with different watershed sizes and hydrological structures. Also, the model’s performance can be verified on further forecasting horizons, which would give further insight into the model’s functioning and allow for different decision-making strategies regarding chloride pollution.
The accurate predictions provided by the GNN-SAGE model show potential for real-time water quality management, aiding in developing regulatory guidelines for adaptive road salt management plans to better protect vulnerable aquatic freshwater ecosystems in urban streams from extreme events.

Author Contributions

Conceptualization, J.V.G.T. and B.G.; methodology, P.A.C.R., J.V.G.T. and B.G.; software, P.A.C.R.; validation, P.A.C.R., J.V.G.T. and B.G.; formal analysis, P.A.C.R.; investigation, P.A.C.R., J.V.G.T. and B.G.; resources, J.V.G.T. and B.G.; data curation, J.V.G.T. and B.G.; writing—original draft preparation, V.O.S. and P.A.C.R.; writing—review and editing, V.O.S., P.A.C.R., J.V.G.T. and B.G.; visualization, V.O.S. and P.A.C.R.; supervision, J.V.G.T. and B.G.; project administration, J.V.G.T. and B.G.; funding acquisition, B.G. and J.V.G.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research study was funded by the Natural Sciences and Engineering Research Council of Canada (NSERC) Alliance, grant No. 401643, in association with Lakes Environmental Software Inc., and by the Conselho Nacional de Desenvolvimento Científico e Tecnológico—Brasil (CNPq), grant no. 303585/2022-6.

Data Availability Statement

The original dataset can be retrieved from https://cvc.ca/real-time-monitoring/ (accessed on 26 July 2023). The algorithms and datasets used can be downloaded from https://drive.google.com/drive/folders/136RH-G-nPVScO7Ln7OOC0WEYl3kk5kDW and https://drive.google.com/drive/folders/13Ef-_EklzJze8pZx1oIDoQFKU304d7NF, respectively (accessed on 28 August 2023).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Beck, H.E.; Zimmermann, N.E.; McVicar, T.R.; Vergopolan, N.; Berg, A.; Wood, E.F. Present and Future Köppen-Geiger Climate Classification Maps at 1-Km Resolution. Sci. Data 2018, 5, 180214. [Google Scholar] [CrossRef]
  2. Arnott, S.E.; Celis-Salgado, M.P.; Valleau, R.E.; DeSellas, A.M.; Paterson, A.M.; Yan, N.D.; Smol, J.P.; Rusak, J.A. Road Salt Impacts Freshwater Zooplankton at Concentrations below Current Water Quality Guidelines. Environ. Sci. Technol. 2020, 54, 9398–9407. [Google Scholar] [CrossRef]
  3. Hintz, W.D.; Fay, L.; Relyea, R.A. Road Salts, Human Safety, and the Rising Salinity of Our Fresh Waters. Front. Ecol. Environ. 2022, 20, 22–30. [Google Scholar] [CrossRef]
  4. Oswald, C.J.; Giberson, G.; Nicholls, E.; Wellen, C.; Oni, S. Spatial Distribution and Extent of Urban Land Cover Control Watershed-Scale Chloride Retention. Sci. Total Environ. 2019, 652, 278–288. [Google Scholar] [CrossRef] [PubMed]
  5. Valleau, R.E.; Paterson, A.M.; Smol, J.P. Effects of Road-Salt Application on Cladocera Assemblages in Shallow Precambrian Shield Lakes in South-Central Ontario, Canada. Freshw. Sci. 2020, 39, 824–836. [Google Scholar] [CrossRef]
  6. Environment Canada. Five-Year Review of Progress: Code of Practice for the Environmental Management of Road Salts; Environment Canada: Ottawa, ON, Canada, 2012; p. 95.
  7. U.S. Geological Survey. Mineral Commodity Summaries 2019; U.S. Geological Survey: Reston, VA, USA, 2019; 200p. [CrossRef]
  8. Prosser, R.S.; Rochfort, Q.; McInnis, R.; Exall, K.; Gillis, P.L. Assessing the Toxicity and Risk of Salt-Impacted Winter Road Runoff to the Early Life Stages of Freshwater Mussels in the Canadian Province of Ontario. Environ. Pollut. 2017, 230, 589–597. [Google Scholar] [CrossRef] [PubMed]
  9. Szklarek, S.; Górecka, A.; Wojtal-Frankiewicz, A. The Effects of Road Salt on Freshwater Ecosystems and Solutions for Mitigating Chloride Pollution—A Review. Sci. Total Environ. 2022, 805, 150289. [Google Scholar] [CrossRef]
  10. Zítková, J.; Hegrová, J.; Anděl, P. Bioindication of Road Salting Impact on Norway Spruce (Picea Abies). Transp. Res. Part Transp. Environ. 2018, 59, 58–67. [Google Scholar] [CrossRef]
  11. Xiong, R.; Chu, C.; Qiao, N.; Wang, L.; Yang, F.; Sheng, Y.; Guan, B.; Niu, D.; Geng, J.; Chen, H. Performance Evaluation of Asphalt Mixture Exposed to Dynamic Water and Chlorine Salt Erosion. Constr. Build. Mater. 2019, 201, 121–126. [Google Scholar] [CrossRef]
  12. Kane, D.D.; Manning, N.F.; Johnson, L.T. When It Snows It Pours: Increased Chloride Concentrations in the Cuyahoga River during the Last Half Century. J. Gt. Lakes Res. 2022, 48, 1573–1586. [Google Scholar] [CrossRef]
  13. Wallace, A.M.; Biastoch, R.G. Detecting Changes in the Benthic Invertebrate Community in Response to Increasing Chloride in Streams in Toronto, Canada. Freshw. Sci. 2016, 35, 353–363. [Google Scholar] [CrossRef]
  14. Giri, S. Water Quality Prospective in Twenty First Century: Status of Water Quality in Major River Basins, Contemporary Strategies and Impediments: A Review. Environ. Pollut. 2021, 271, 116332. [Google Scholar] [CrossRef] [PubMed]
  15. MacKenzie, K.M.; Singh, K.; Binns, A.D.; Whiteley, H.R.; Gharabaghi, B. Effects of Urbanization on Stream Flow, Sediment, and Phosphorous Regime. J. Hydrol. 2022, 612, 128283. [Google Scholar] [CrossRef]
  16. Dugan, H.A.; Skaff, N.K.; Doubek, J.P.; Bartlett, S.L.; Burke, S.M.; Krivak-Tetley, F.E.; Summers, J.C.; Hanson, P.C.; Weathers, K.C. Lakes at Risk of Chloride Contamination. Environ. Sci. Technol. 2020, 54, 6639–6650. [Google Scholar] [CrossRef]
  17. Beibei, E.; Zhang, S.; Driscoll, C.T.; Wen, T. Human and Natural Impacts on the U.S. Freshwater Salinization and Alkalinization: A Machine Learning Approach. Sci. Total Environ. 2023, 889, 164138. [Google Scholar] [CrossRef]
  18. Gu, C.; Cockerill, K.; Anderson, W.P.; Shepherd, F.; Groothuis, P.A.; Mohr, T.M.; Whitehead, J.C.; Russo, A.A.; Zhang, C. Modeling Effects of Low Impact Development on Road Salt Transport at Watershed Scale. J. Hydrol. 2019, 574, 1164–1175. [Google Scholar] [CrossRef]
  19. Tabrizi, S.E.; Pringle, J.; Moosavi, Z.; Amouzadeh, A.; Farghaly, H.; Trenouth, W.R.; Gharabaghi, B. Protecting Salt Vulnerable Areas Using an Enhanced Roadside Drainage System (ERDS). Water 2022, 14, 3773. [Google Scholar] [CrossRef]
  20. Costa Rocha, P.A.; Johnston, S.J.; Oliveira Santos, V.; Aliabadi, A.A.; Thé, J.V.G.; Gharabaghi, B. Deep Neural Network Modeling for CFD Simulations: Benchmarking the Fourier Neural Operator on the Lid-Driven Cavity Case. Appl. Sci. 2023, 13, 3165. [Google Scholar] [CrossRef]
  21. Zhang, Q.; Li, Z.; Zhu, L.; Zhang, F.; Sekerinski, E.; Han, J.-C.; Zhou, Y. Real-Time Prediction of River Chloride Concentration Using Ensemble Learning. Environ. Pollut. 2021, 291, 118116. [Google Scholar] [CrossRef]
  22. Carneiro, T.C.; Rocha, P.A.C.; Carvalho, P.C.M.; Fernández-Ramírez, L.M. Ridge Regression Ensemble of Machine Learning Models Applied to Solar and Wind Forecasting in Brazil and Spain. Appl. Energy 2022, 314, 118936. [Google Scholar] [CrossRef]
  23. Marinho, F.P.; Rocha, P.A.C.; Neto, A.R.R.; Bezerra, F.D.V. Short-Term Solar Irradiance Forecasting Using CNN-1D, LSTM, and CNN-LSTM Deep Neural Networks: A Case Study with the Folsom (USA) Dataset. J. Sol. Energy Eng. 2023, 145, 041002. [Google Scholar] [CrossRef]
  24. Nair, J.P.; Vijaya, M.S. River Water Quality Prediction and Index Classification Using Machine Learning. J. Phys. Conf. Ser. 2022, 2325, 012011. [Google Scholar] [CrossRef]
  25. Kulisz, M.; Kujawska, J. Application of Artificial Neural Network (ANN) for Water Quality Index (WQI) Prediction for the River Warta, Poland. J. Phys. Conf. Ser. 2021, 2130, 012028. [Google Scholar] [CrossRef]
  26. Samani, S.; Vadiati, M.; Nejatijahromi, Z.; Etebari, B.; Kisi, O. Groundwater Level Response Identification by Hybrid Wavelet–Machine Learning Conjunction Models Using Meteorological Data. Environ. Sci. Pollut. Res. 2022, 30, 22863–22884. [Google Scholar] [CrossRef]
  27. El Bilali, A.; Taleb, A. Prediction of Irrigation Water Quality Parameters Using Machine Learning Models in a Semi-Arid Environment. J. Saudi Soc. Agric. Sci. 2020, 19, 439–451. [Google Scholar] [CrossRef]
  28. El-Jaat, M.; Hulley, M.; Tétreault, M. Evaluation of the Fast Orthogonal Search Method for Forecasting Chloride Levels in the Deltona Groundwater Supply (Florida, USA). Hydrogeol. J. 2018, 26, 1809–1820. [Google Scholar] [CrossRef]
  29. Poor, C.J.; Ullman, J.L. Using Regression Tree Analysis to Improve Predictions of Low-Flow Nitrate and Chloride in Willamette River Basin Watersheds. Environ. Manag. 2010, 46, 771–780. [Google Scholar] [CrossRef]
  30. Allen, B.; Mandrak, N.E. Historical Changes in the Fish Communities of the Credit River Watershed. Aquat. Ecosyst. Health Manag. 2019, 22, 316–328. [Google Scholar] [CrossRef]
  31. McGovarin, S.; Nishikawa, J.; Metcalfe, C.D. Vitellogenin Induction in Mucus from Brook Trout (Salvelinus Fontinalis). Bull. Environ. Contam. Toxicol. 2022, 108, 878–883. [Google Scholar] [CrossRef]
  32. Rosenfield, M.F.; Miedema Brown, L.; Anand, M. Increasing Cover of Natural Areas at Smaller Scales Can Improve the Provision of Biodiversity and Ecosystem Services in Agroecological Mosaic Landscapes. J. Environ. Manag. 2022, 303, 114248. [Google Scholar] [CrossRef]
  33. Singh, A.; Murison, L.; McBean, E. Characteristics of Nearshore Water Quality of Lake Ontario Coast under Credit Valley Conservation Jurisdiction, Ontario, Canada. J. Gt. Lakes Res. 2022, 48, 326–335. [Google Scholar] [CrossRef]
  34. Socio-Demographic Profile of the Credit River Watershed. Available online: https://cvc.ca/document/socio-demographic-profile-of-the-credit-river-watershed/ (accessed on 27 July 2023).
  35. Chu, C.; Minns, C.K.; Lester, N.P.; Mandrak, N.E. An Updated Assessment of Human Activities, the Environment, and Freshwater Fish Biodiversity in Canada. Can. J. Fish. Aquat. Sci. 2015, 72, 135–148. [Google Scholar] [CrossRef]
  36. Wilson, T.; Tan, P.-N.; Luo, L. A Low Rank Weighted Graph Convolutional Approach to Weather Prediction. In Proceedings of the 2018 IEEE International Conference on Data Mining (ICDM), Singapore, 17–20 November 2018; pp. 627–636. [Google Scholar]
  37. Zhang, S.; Tong, H.; Xu, J.; Maciejewski, R. Graph Convolutional Networks: A Comprehensive Review. Comput. Soc. Netw. 2019, 6, 11. [Google Scholar] [CrossRef]
  38. Dawoud, I.; Abonazel, M.R. Robust Dawoud–Kibria Estimator for Handling Multicollinearity and Outliers in the Linear Regression Model. J. Stat. Comput. Simul. 2021, 91, 3678–3692. [Google Scholar] [CrossRef]
  39. Chan, J.Y.-L.; Leow, S.M.H.; Bea, K.T.; Cheng, W.K.; Phoong, S.W.; Hong, Z.-W.; Chen, Y.-L. Mitigating the Multicollinearity Problem and Its Machine Learning Approach: A Review. Mathematics 2022, 10, 1283. [Google Scholar] [CrossRef]
  40. Yang, D.; Kleissl, J.; Gueymard, C.A.; Pedro, H.T.C.; Coimbra, C.F.M. History and Trends in Solar Irradiance and PV Power Forecasting: A Preliminary Assessment and Review Using Text Mining. Sol. Energy 2018, 168, 60–101. [Google Scholar] [CrossRef]
  41. Oliveira Santos, V.; Costa Rocha, P.A.; Scott, J.; Van Griensven Thé, J.; Gharabaghi, B. Spatiotemporal Analysis of Bidimensional Wind Speed Forecasting: Development and Thorough Assessment of LSTM and Ensemble Graph Neural Networks on the Dutch Database. Energy 2023, 278, 127852. [Google Scholar] [CrossRef]
  42. Oliveira Santos, V.; Costa Rocha, P.A.; Scott, J.; Van Griensven Thé, J.; Gharabaghi, B. A New Graph-Based Deep Learning Model to Predict Flooding with Validation on a Case Study on the Humber River. Water 2023, 15, 1827. [Google Scholar] [CrossRef]
  43. Oliveira Santos, V.; Costa Rocha, P.A.; Scott, J.; Van Griensven Thé, J.; Gharabaghi, B. Spatiotemporal Air Pollution Forecasting in Houston-TX: A Case Study for Ozone Using Deep Graph Neural Networks. Atmosphere 2023, 14, 308. [Google Scholar] [CrossRef]
  44. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar]
  45. Dong, L.; Xu, S.; Xu, B. Speech-Transformer: A No-Recurrence Sequence-to-Sequence Model for Speech Recognition. In Proceedings of the 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Calgary, AB, Canada, 15–20 April 2018; pp. 5884–5888. [Google Scholar]
  46. Bi, J.; Zhu, Z.; Meng, Q. Transformer in Computer Vision. In Proceedings of the 2021 IEEE International Conference on Computer Science, Electronic Information Engineering and Intelligent Control Technology (CEI), Fuzhou, China, 24–26 September 2021; pp. 178–188. [Google Scholar]
  47. Parvaiz, A.; Khalid, M.A.; Zafar, R.; Ameer, H.; Ali, M.; Fraz, M.M. Vision Transformers in Medical Computer Vision—A Contemplative Retrospection. Eng. Appl. Artif. Intell. 2023, 122, 106126. [Google Scholar] [CrossRef]
  48. Wu, S.; Xiao, X.; Ding, Q.; Zhao, P.; Wei, Y.; Huang, J. Adversarial Sparse Transformer for Time Series Forecasting. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2020; Volume 33, pp. 17105–17115. [Google Scholar]
  49. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2019; Volume 32. [Google Scholar]
  50. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  51. Liew, S.S.; Khalil-Hani, M.; Bakhteri, R. Bounded Activation Functions for Enhanced Training Stability of Deep Neural Networks on Visual Pattern Recognition Problems. Neurocomputing 2016, 216, 718–734. [Google Scholar] [CrossRef]
  52. Hamilton, W.; Ying, Z.; Leskovec, J. Inductive Representation Learning on Large Graphs. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
  53. Zhou, J.; Cui, G.; Hu, S.; Zhang, Z.; Yang, C.; Liu, Z.; Wang, L.; Li, C.; Sun, M. Graph Neural Networks: A Review of Methods and Applications. AI Open 2020, 1, 57–81. [Google Scholar] [CrossRef]
  54. Labonne, M. Hands-On Graph Neural Networks Using Python; Packt Publishing: Birmingham, UK, 2023. [Google Scholar]
  55. Lundberg, S.M.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
  56. Akbar, S.; Ali, F.; Hayat, M.; Ahmad, A.; Khan, S.; Gul, S. Prediction of Antiviral Peptides Using Transform Evolutionary & SHAP Analysis Based Descriptors by Incorporation with Ensemble Learning Strategy. Chemom. Intell. Lab. Syst. 2022, 230, 104682. [Google Scholar] [CrossRef]
  57. Abdulalim Alabdullah, A.; Iqbal, M.; Zahid, M.; Khan, K.; Nasir Amin, M.; Jalal, F.E. Prediction of Rapid Chloride Penetration Resistance of Metakaolin Based High Strength Concrete Using Light GBM and XGBoost Models by Incorporating SHAP Analysis. Constr. Build. Mater. 2022, 345, 128296. [Google Scholar] [CrossRef]
  58. Bai, R.; Lam, J.C.K.; Li, V.O.K. What Dictates Income in New York City? SHAP Analysis of Income Estimation Based on Socio-Economic and Spatial Information Gaussian Processes (SSIG). Humanit. Soc. Sci. Commun. 2023, 10, 60. [Google Scholar] [CrossRef]
  59. Ding, Y.; Zhu, Y.; Feng, J.; Zhang, P.; Cheng, Z. Interpretable Spatio-Temporal Attention LSTM Model for Flood Forecasting. Neurocomputing 2020, 403, 348–359. [Google Scholar] [CrossRef]
  60. Dazzi, S.; Vacondio, R.; Mignosa, P. Flood Stage Forecasting Using Machine-Learning Methods: A Case Study on the Parma River (Italy). Water 2021, 13, 1612. [Google Scholar] [CrossRef]
  61. Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2021; Volume 34, pp. 22419–22430. [Google Scholar]
  62. Baïle, R.; Muzy, J.-F. Leveraging Data from Nearby Stations to Improve Short-Term Wind Speed Forecasts. Energy 2023, 263, 125644. [Google Scholar] [CrossRef]
  63. Poor, C.J.; McDonnell, J.J.; Bolte, J. Testing the Hydrological Landscape Unit Classification System and Other Terrain Analysis Measures for Predicting Low-Flow Nitrate and Chloride in Watersheds. Environ. Manag. 2008, 42, 877–893. [Google Scholar] [CrossRef]
  64. Jin, L.; Whitehead, P.G.; Bussi, G.; Hirpa, F.; Taye, M.T.; Abebe, Y.; Charles, K. Natural and Anthropogenic Sources of Salinity in the Awash River and Lake Beseka (Ethiopia): Modelling Impacts of Climate Change and Lake-River Interactions. J. Hydrol. Reg. Stud. 2021, 36, 100865. [Google Scholar] [CrossRef]
  65. Jin, L.; Whitehead, P.; Siegel, D.I.; Findlay, S. Salting Our Landscape: An Integrated Catchment Model Using Readily Accessible Data to Assess Emerging Road Salt Contamination to Streams. Environ. Pollut. 2011, 159, 1257–1265. [Google Scholar] [CrossRef] [PubMed]
  66. Gutchess, K.; Jin, L.; Ledesma, J.L.J.; Crossman, J.; Kelleher, C.; Lautz, L.; Lu, Z. Long-Term Climatic and Anthropogenic Impacts on Streamwater Salinity in New York State: INCA Simulations Offer Cautious Optimism. Environ. Sci. Technol. 2018, 52, 1339–1347. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Credit River watershed map. The red mark shows the location of the reference station, and the green marks are the neighboring stations.
Figure 1. Credit River watershed map. The red mark shows the location of the reference station, and the green marks are the neighboring stations.
Environments 10 00157 g001
Figure 2. Correlation matrix for the measure attributes at Credit River.
Figure 2. Correlation matrix for the measure attributes at Credit River.
Environments 10 00157 g002
Figure 3. Dataset split for the training and validation stages. The gaps in the image represent the lack of data for the period.
Figure 3. Dataset split for the training and validation stages. The gaps in the image represent the lack of data for the period.
Environments 10 00157 g003
Figure 4. Transformer encoder architecture.
Figure 4. Transformer encoder architecture.
Environments 10 00157 g004
Figure 5. DNN-Transformer architecture.
Figure 5. DNN-Transformer architecture.
Environments 10 00157 g005
Figure 6. GNN-SAGE architecture.
Figure 6. GNN-SAGE architecture.
Environments 10 00157 g006
Figure 7. Flow chart of the present study.
Figure 7. Flow chart of the present study.
Environments 10 00157 g007
Figure 8. Influence of different numbers of time lags in the models’ performance.
Figure 8. Influence of different numbers of time lags in the models’ performance.
Environments 10 00157 g008
Figure 9. The effect of different input variables on the DNN-Transformer performance.
Figure 9. The effect of different input variables on the DNN-Transformer performance.
Environments 10 00157 g009
Figure 10. Scatter plot with the forecasted and measured chloride concentrations for 6 h in advance (obtained using the DNN-Transformer).
Figure 10. Scatter plot with the forecasted and measured chloride concentrations for 6 h in advance (obtained using the DNN-Transformer).
Environments 10 00157 g010
Figure 11. The effect of different input variables on the GNN-SAGE performance.
Figure 11. The effect of different input variables on the GNN-SAGE performance.
Environments 10 00157 g011
Figure 12. Scatter plot with the forecasted and measured chloride concentrations for 6 h in advance (both obtained using GNN-SAGE).
Figure 12. Scatter plot with the forecasted and measured chloride concentrations for 6 h in advance (both obtained using GNN-SAGE).
Environments 10 00157 g012
Figure 13. Comparison between forecasted and real values for (a) DNN-TRANSFORMER and (b) GNN-SAGE models for the whole validation dataset.
Figure 13. Comparison between forecasted and real values for (a) DNN-TRANSFORMER and (b) GNN-SAGE models for the whole validation dataset.
Environments 10 00157 g013
Figure 14. Same as Figure 13 for a narrower range, comprising the period from 1 February 2020 to 15 February 2020 for the (a) DNN-Transformer and (b) GNN-SAGE models.
Figure 14. Same as Figure 13 for a narrower range, comprising the period from 1 February 2020 to 15 February 2020 for the (a) DNN-Transformer and (b) GNN-SAGE models.
Environments 10 00157 g014
Figure 15. SHAP analysis results for forecasting using the GNN-SAGE model.
Figure 15. SHAP analysis results for forecasting using the GNN-SAGE model.
Environments 10 00157 g015
Table 1. Summary of performance metrics for forecasting using the GNN-SAGE model for a time window that is 6 h ahead.
Table 1. Summary of performance metrics for forecasting using the GNN-SAGE model for a time window that is 6 h ahead.
Metric6 h Ahead
RMSE (m)51.16 ppb
R20.88
MBE−0.64 ppb
Forecast Skill0.24
Table 2. Literature values for chloride prediction.
Table 2. Literature values for chloride prediction.
ModelMetric ValueAuthor
SCA-MLPRMSE (R2)
11.58 mg/L (0.90) for 1 h forecasting horizon
Zhang et al.
[21]
FOSRMSE (R2)
28.00 mg/L (0.90)
El-Jaat et al.
[28]
Regression treeR2
0.85
Poor and Ullman
[29]
Multiple regression analysisR2
0.64
Poor et al.
[63]
Integrated catchment for Cl simulation (INCA-Cl)R2
0.45 average for monthly simulated Cl concentration
Jin et al.
[64]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Oliveira Santos, V.; Costa Rocha, P.A.; Thé, J.V.G.; Gharabaghi, B. Graph-Based Deep Learning Model for Forecasting Chloride Concentration in Urban Streams to Protect Salt-Vulnerable Areas. Environments 2023, 10, 157. https://doi.org/10.3390/environments10090157

AMA Style

Oliveira Santos V, Costa Rocha PA, Thé JVG, Gharabaghi B. Graph-Based Deep Learning Model for Forecasting Chloride Concentration in Urban Streams to Protect Salt-Vulnerable Areas. Environments. 2023; 10(9):157. https://doi.org/10.3390/environments10090157

Chicago/Turabian Style

Oliveira Santos, Victor, Paulo Alexandre Costa Rocha, Jesse Van Griensven Thé, and Bahram Gharabaghi. 2023. "Graph-Based Deep Learning Model for Forecasting Chloride Concentration in Urban Streams to Protect Salt-Vulnerable Areas" Environments 10, no. 9: 157. https://doi.org/10.3390/environments10090157

APA Style

Oliveira Santos, V., Costa Rocha, P. A., Thé, J. V. G., & Gharabaghi, B. (2023). Graph-Based Deep Learning Model for Forecasting Chloride Concentration in Urban Streams to Protect Salt-Vulnerable Areas. Environments, 10(9), 157. https://doi.org/10.3390/environments10090157

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop