Next Article in Journal
Analysis of Socio-Hydrological Evolution Processes Based on a Modeling Approach in the Upper Reaches of the Han River in China
Next Article in Special Issue
Water Quality and Microbiological Contamination across the Fish Marketing Chain: A Case Study in the Peruvian Amazon (Lagoon Yarinacocha)
Previous Article in Journal
Investigation of Biofilm Growth within a Monodisperse Porous Medium under Fluctuating Water Level Assessed by Means of MRI
Previous Article in Special Issue
F-Specific RNA Bacteriophage Transport in Stream Water: Hydro-Meteorological Controls and Association with Suspended Solids
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort

by
Manel Naloufi
1,2,*,
Françoise S. Lucas
2,
Sami Souihi
3,
Pierre Servais
4,
Aurélie Janne
5 and
Thiago Wanderley Matos De Abreu
3,*
1
Direction de la Propreté et de l’Eau, Service Technique de l’Eau et de l’Assainissement, 27 rue du Commandeur, 75014 Paris, France
2
Laboratoire Eau, Environnement et Systèmes Urbains (Leesu), Université Paris-Est Créteil, École des Ponts ParisTech, 61 Avenue du Général de Gaulle, CEDEX, Créteil, 94010 Paris, France
3
Image, Signal and Intelligent Systems (LiSSi) Laboratory, University of Paris-Est Créteil Val de Marne, 122 rue Paul Armangot, Vitry sur Seine, 94400 Paris, France
4
Ecology of Aquatic Systems, Université Libre de Bruxelles, 50 Av. Franklin Roosevelt, 1050 Brussels, Belgium
5
Syndicat Marne Vive, Maison de la Nature, 77 quai de la Pie, Saint-Maur-des-Fossés, 94100 Paris, France
*
Authors to whom correspondence should be addressed.
Water 2021, 13(18), 2457; https://doi.org/10.3390/w13182457
Submission received: 16 July 2021 / Revised: 1 September 2021 / Accepted: 3 September 2021 / Published: 7 September 2021

Abstract

:
Exposure to contaminated water during aquatic recreational activities can lead to gastrointestinal diseases. In order to decrease the exposure risk, the fecal indicator bacteria Escherichia coli is routinely monitored, which is time-consuming, labor-intensive, and costly. To assist the stakeholders in the daily management of bathing sites, models have been developed to predict the microbiological quality. However, model performances are highly dependent on the quality of the input data which are usually scarce. In our study, we proposed a conceptual framework for optimizing the selection of the most adapted model, and to enrich the training dataset. This frameword was successfully applied to the prediction of Escherichia coli concentrations in the Marne River (Paris Area, France). We compared the performance of six machine learning (ML)-based models: K-nearest neighbors, Decision Tree, Support Vector Machines, Bagging, Random Forest, and Adaptive boosting. Based on several statistical metrics, the Random Forest model presented the best accuracy compared to the other models. However, 53.2 ± 3.5% of the predicted E. coli densities were inaccurately estimated according to the mean absolute percentage error (MAPE). Four parameters (temperature, conductivity, 24 h cumulative rainfall of the previous day the sampling, and the river flow) were identified as key variables to be monitored for optimization of the ML model. The set of values to be optimized will feed an alert system for monitoring the microbiological quality of the water through combined strategy of in situ manual sampling and the deployment of a network of sensors. Based on these results, we propose a guideline for ML model selection and sampling optimization.

1. Introduction

Worldwide the heat wave episodes have recently intensified the development of aquatic recreational activities in megapoles, increasing the interactions between citizens and freshwater in urban context [1]. Indeed, many cities, such as Paris, London, or Berlin, promote the opening of bathing areas and organize open water swimming competitions in their rivers. However, the development of these activities increases the risk of exposure of bathers to waterborne pathogens, which could result in gastrointestinal diseases, eye infections or skin irritations [2,3,4].
In highly urbanized areas, the microbiological quality of surface waters is strongly degraded by different diffuse and point sources of contamination that may bring high pathogen flow into the rivers [5,6,7,8]. Fecal contaminations due to sewer discharges, animal feces, and rain runoff are among the main factors impacting the quality of surface waters [9]. As the climate change is expected to modify precipitation patterns, with higher frequency of extreme events, these new conditions should negatively impact the water quality [10]. Currently, the water quality is mainly assessed using a collection of water samples for biological and chemical analysis in the laboratory and/or highly accurate sensors at fixed position. The regulatory monitoring of the bathing waters is based on the enumeration of culturable fecal indicator bacteria, Escherichia coli and intestinal enterococci (e.g., European Bathing directive 2006/7/EC). Such surveys are costly, time-consuming, and labor-intensive, as a consequence weekly or monthly sampling strategies are routinely implemented with additional event-based sampling [11,12].
For the daily management of urban bathing sites, models could also be used instead of collecting additional samples to check the microbial quality of the water after each short-term pollution event [11]. However, building, training, and validation of predictive models require high accuracy data that are difficult and expensive to collect [13]. Environmental stressors such as physico-chemical, hydrological, and meteorological variables are often used as input data in models to predict the concentration of fecal indicator bacteria as real-time measurement of these parameters provides cost effective and high quality data [14,15,16]. Among the different predictive models, machine learning tools have been proved to predict surface water quality in rivers with high accuracy in different situations, including traditional machine learning models or ensemblist methods [17,18,19]. However, due to the small size of most stakeholder datasets, the performance of the model can be low (see, e.g., in [17,20]). The determination of the minimum sampling size and the appropriate sampling strategy required for building, training, and validation of models is thus crucial [11].
Several strategies to improve the input dataset of machine learning models exist, however their usefulness for rationalizing the data acquisition for water quality prediction still needs to be evaluated. First, the most relevant observations during the learning process of the models could be identified in order to maximize the information gain [21]. Second, the weakness in the training dataset could be determined in order to identify which and how much additional data are needed to improve the model performance. For instance, active learning is a method that gives flexibility to identify which instances need to be added to the training set [22]. Another popular strategy is to use uncertainty sampling, to identify the point where the prediction is uncertain in the model [23]. Third, another way to enhance the amount of training data is to deploy on site a large number of low cost sensors. Each individual sensor may present a slightly greater error margin than the costly high precision equipment, however the multitude of sensors allows to build a dense network which in average is capable of providing enough information for the machine learning models [24]. However, enrichment of training datasets with high quality data of extreme events is particularly important in the context of climate change with the expected rise of temperature and increase in the frequency and intensity of storm events [12]. Therefore, the objective of this study is to explore these three strategies to improve the input datasets for training and testing machine learning models, particularly study the relevance of the active learning strategy. The ultimate goal is to provide a conceptual framework and an operating mode to assist the stakeholders in the daily management of the bathing sites. The framework thus includes (i) a guideline for selecting from a toolbox of six machine learning models, the one most adapted to their bathing site context and (ii) a strategy to improve the training and testing of their model via the sub-optimization of the sampling strategies. The Marne River (Paris Area, France) was considered as a use case. Indeed, several municipalities wish to open bathing sites on the border of the Marne river by 2022. Environmental stressor dataset used to predict E. coli concentrations were acquired from the Syndicat Marne Vive.
Using this database, we tested the following strategy:
(1)
We propose to compare the performance of six machine-learning models, including three traditional models and three ensemblist models, to predict the concentrations of the fecal indicator bacteria Escherichia coli. To train and test the models, meteorological data and river flow data should be aggregated with physico-chemical data.
(2)
For the chosen model, we propose to set up an alert system on the performance of the model in order to optimize the data collection. This alert should consist in identifying under which conditions the model fails to make the prediction and thus alerting the managers to carry out on site analysis in order to enrich the database.
(3)
The usefulness of a network of low-cost sensors for sampling optimization as a complementary strategy to improve the dataset is discussed.

2. Materials and Methods

2.1. Study Site and Water Quality Data Collection

From mid-June to mid-September for 5 years (2015, 2017–2020) samplings were carried out weekly or bi-weekly by the Syndicat Marne Vive (SMV) on 18 stations (SMV0 to SMV17) in the lower Marne River (France) (Figure 1). For each sampling sites the following parameters were measured: E. coli concentrations (Most Probable Number or MPN/100 mL), temperature (°C), turbidity (FTU), conductivity (µS/cm), Total Suspended Solids or TSS (mg/L), NH 4 + (mg of N/L), Total Kjeldahl Nitrogen or TKN (mg of N/L), number of dry days after the last rainfall, 24 h cumulative rainfall of the day (mm), 24 h cumulative rainfall of the previous day (mm), and the river flow (m 3 /s) measured at Gournay-sur-Marne (Paris area, France). The sampling protocole for surface water was carried out according to the French standard FD T 90-523-1 (2008) for physicochemical parameters and according to the 2006/7/EC directive for E. coli concentrations. Microbiological and physico-chemical measurements were respectively carried out by Aquamesures and Eurofins (2015) and the Val de Marne Departmental Environmental Health Laboratory (2017–2020) following the French standard methods NF EN ISO 9308-3, NF EN ISO 7027-1, NF EN 27888, NF EN 872, NF T 90-015-2, NF EN 25663.
Rainfall data were obtained from the network of rain gauges of the Departmental Councils of Val-de-Marne (station CHAM23, MAIS32), Seine-Saint-Denis (station NE-17), and the City of Paris (station PL14). For each sampling point, the meteorological data of the nearest measuring station were used. For the year 2020, rainfall data of the stations SMV5 to SMV13 were not yet available. Flow data measured at the Gournay-sur-Marne station were retrieved from the Banque Hydro (http://www.hydro.eaufrance.fr/, accessed on 28 April 2021).

2.2. Data Preparation

A total of 1696 measures were obtained after data cleaning which consisted of removing the entries with missing and aberrant values. The ID of the station (ordered from upstream to downstream) and the ten measured physico-chemical and hydro-meteorological parameters were used as inputs for our modeling. The output of the models was the concentration of E. coli. Then, the dataset was divided randomly in two parts: the training set (90%, 1526 observations) and the test set (10%, 170 observations).
In order to keep all the input parameters with the same degree of influence on the final outcomes, we performed a Z-score standardization for each feature of the datasets (inputs and output) [20]. The training dataset was used for the standardization in order to block access to the values of the test set during the training of the models.

2.3. Machine-Learning Models

In order to evaluate the performance of the estimation of E. coli concentration by the machine learning models, three traditional machine-learning models (KNN (K-nearest neighbors [25]), DT (Decision tree [26]), and SVM (Support vector machines [27])) and three ensemblist learning models (bagging [28], RF (Random forest [29]), and AdaBoost (adaptive boosting [30])), that combines several base models, were selected and used in this study. All the models were carried out in python 3.7.10 with the Scikit-learn packages [31]. The GridSearchCV technique was applied to select the hyperparameter that gives the most optimal model by 5-fold cross-validation, over a parameter grid. A 10-fold cross-validation was used to train and to estimate the performance of each model, by randomly generating 10 different subsets of the training and test datasets.

2.3.1. KNN

The k-nearest neighbor method consists in considering the k-nearest samples in the training dataset as an input to predict each new observation [32]. For each test datum, the closeness to all the training data is calculated with an Euclidean distance. This allows finding the k observations closest in input space to assign the test datum to a class label, and the output value of each class label is used to estimate the value to predict. The value of k thus varied from 1 to 30 with a step of 2, depending on the dataset.

2.3.2. SVM

The support vector machine goal is to find the optimal hyper-plan from which the distance to all the data point is minimum, it can be applied to classification and regression problems. It consists in transforming the training data representation space into a higher dimensional space, infinite in some cases, and in constructing a hyperplane or set of hyperplanes in a high dimensional space [32]. The idea is to find a solution to flatten the projections of the training points in space without moving too far away from the training points.

2.3.3. DT

Tree-based models are used to estimate a quantitative variable or classify observations by reapeatedly separating data into mutually exclusive groups. The tree-based method slices the variable space and recursively partitions each variable into subsets based on the values of the input variable and then fits a model in each of them [32].

2.3.4. Bagging

Bagging, also known as bootstrap aggregation, uses portions of the data and combines them by generating random subsets of the data through sampling, with repositioning [33]. The prediction is obtained by averaging the outcomes of all models. The goal is to reduce the overfitting of predictions in the model.

2.3.5. RF

Random forests combine multiple DT at training time. Each tree uses a sample obtained by bootstrap. Given a training set with N measures, the bootstrap aggregation randomly selects N samples with replacement of the training set [20]. Then, a subset of features is randomly selected, in order to construct a collection of decision trees with controlled variance, and fits trees to these samples. The results of the predictions from each tree are averaged [32].

2.3.6. Adaboost

Adaboost repeatedly uses a regression tree developed sequentially on a training sample with weights for each observation adjusted as they are developed [34]. It starts with fitting a regression to the original dataset and then adjusts the weights of the variables based on the error of the prediction. Thus, subsequent regressors focus more on poorly fitted or poorly predicted observations [32]. Finally, the results from each weak machine learning model are combined using the weighted median.

2.4. Models Evaluation

In order to select the model that performs the best in predicting E. coli concentration, the testing phase was carried out with 10 random trials for each model with the 10 test datasets. The prediction performances of each model was evaluated by four statistical metrics. They included root mean square error (RMSE) [19], mean absolute error (MAE) [15], the ratio of performance to deviation (RPD) [35], and mean absolute percentage error (MAPE) [36,37]. These metrics are calculated as follows:
RMSE = 1 N i = 1 N ( y i y i ) 2
MAE = 1 N i = 1 N | y i y i |
RPD = SD RMSE
SD = i = 1 N ( y i y ¯ ) 2 N
In these formulas, ( y i ) is the measured value, ( y i ) is the predicted value, (N) is the total number of samples, and (SD) is the standard deviation of the tested dataset ( y ¯ is the mean of the measured values). The smaller the RMSE or the MAE, the more stable is the predictive capacity of the model. RPD values < 1.4 indicate that the model is not reliable. For RPD values between 1.4 and 2, the model is moderately accurate and when the value is higher than 2 the model presents a high level of predictive ability [35]. Mean absolute percentage error (MAPE), which measures the goodness of fit, was also applied.
MAPE = | y i y i | y i 100
The lower the MAPE value, the more accurate is the prediction [38]. Values <50% can be evaluated as “reasonable” even good if <20%. MAPE values greater than 50%, are indicative of an “inaccurate” prediction. A MAPE value of 50% indicates an overestimation or an underestimation of 50% with regard to the measured value.

2.5. Identification of the Weakness Parts of the Dataset

The MAPE values calculated during the 10 trials were used to separate the predicted values in two datasets: the reasonable (MAPE < 50%) and inaccurate estimations of the E. coli densities (MAPE ≥ 50%), generated by the best model on the Marne River dataset. In order to determine the physico-chemical and hydro-meteorological parameters that potentially influenced the predictive capacity of the best model, a spearman-correlation analysis was performed between the physico-chemical or hydro-meteorological parameters and the predicted values of E. coli (V3.5.1 [39]). All Spearman coefficients (r s ) were tested for their significance based on 5% error. Then, the correlation coefficients obtained with the reasonably and inaccurately predicted concentrations were compared using a unpaired two sided t-test in order to identify the set of hydro-meteorological and physico-chemical parameters that are influent in the model (significant r s ) and that need improvement (t-test, p-value < 0.01), or parameters that are less influent (nonsignificant r s ) but could be worth checking after improvement (t-test p-value < 0.01). Next, we identified for each parameter that could be improved (t-test p-value < 0.01), which data were weakly represented in the dataset. For each parameter, the 10 test sets have been merged together. The set of values contributing to the reasonable dataset were identified and the set of values that gave at least one inaccurate prediction were removed and inspected to identify which additional data are needed to improve the model. This allowed us to identify the set of values that give at least a reasonable or good prediction for our dataset. The guideline for selecting the best model for E. coli concentration prediction among the six machine learning models, and the strategy to identify a set of parameters and values range needed to optimize the sampling strategies are displayed in the Figure 2. The python and R script of the framework are available on GitHub (https://github.com/naloufi-manel/ML-performance-microbial-quality.git, accessed on 15 July 2021).

3. Results and Discussion

3.1. The Dataset Used in This Study

The Marne River dataset was characterized by a high heterogeneity concerning the number of observations per station (13 to 47 entries). The summary sample statistics of the dataset are reported in Table A1 in Appendix A. The temperature and the conductivity displayed a fair representativeness (Figure 3). However, most parameters presented a skewed distribution and the presence of upper and lower outliers (Figure 3). Indeed, for each parameter (except the temperature and the conductivity) a range of values were rarely measured and therefore not well represented in the dataset. This indicates that our dataset is not yet representative of all possible measurements.
The concentration of E. coli (4337.61 ± 25,983.50 MPN/100 mL) measured during the 5 summers in the Marne river ranged from 19 to 820,670 MPN/100 mL. Three pollution events producing very high concentrations of E. coli could be identified. For instance, the maximum E. coli value (820,670 MPN/100 mL), corresponds to high values of turbidity, TSS and TKN levels (respectively, 28 FTU, 33 mg/L, and 2.6 mg of N/L) compared to the majority of the measurements. Extreme pollution events are often under-represented in the datasets due to their low frequency. For instance rainfalls >10 mm which lead to peaks of pollution occur less than 20 days per years in Quebec region [40]. However, removing extreme values from the dataset can lead to a decrease in the predictive capacity of the model during events with high pollution. Chen et al. [20] have shown that a better performance could be achieved after increasing the training data for each of the learning models. Considering the biased distribution of most parameters in the Marne River dataset, it may be necessary to add additional measurements to increase the size of the database and improve the training of the ML models. This would provide a better representation of the set of possible values. However, the high cost of field sampling and laboratory analyses for monitoring microbiological quality (about 100 € according to the Syndicat Marne Vive) requires an optimization of the collection in order to identify the necessary measures to efficiently complete the datasets.

3.2. ML-Based E. coli Prediction Comparison

Various machine learning models have been used previously to predict water quality and their predictive performance was compared to other models by assessing their ability for prediction (see, e.g., in [15,18,41]). In this study, we compared the performance of six machine learning-based algorithms (KNN, DT, SVM, Bagging, RF, and AdaBoost) to predict E. coli concentration in an urban river, to identify the best suited model. We performed a trial-and-error procedure, using the RMSE, MAE, and RPD metrics to evaluate the performance of each model. Average values of these statistics metrics for each random trial are available in Table A2. The RF model exhibited the highest prediction power among all the models with the weakest error (average value 0.37 ± 0.20 for RMSE and 0.09 ± 0.02 for MAE) followed by KNN and Bagging (respectively 0.41 ± 0.28 and 0.38 ± 0.19 for RMSE and 0.09 ± 0.03 and 0.14 ± 0.06 for MAE) (Figure 4).
An analysis of the accuracy and reliability of the model was also performed using the RPD metrics (Figure 4C). Three models (KNN, Bagging and RF) were estimated as moderately accurate and presented acceptable results. The 3 other models were not reliable, with an RPD < 1.4 (Figure 4). For the RF model, the RDP value was close to 2 (1.91 ± 1.65), indicating that the model had a high predictive capacity. In conclusion, the RF model gave better E. coli concentration estimation compared to other machine learning models. This result is in agreement with Bui et al. [15] but in disagreement with the results of Chen et al. [20]. Both studies compared the performances of DT models with RF models in their ability to predict water quality. We also checked if the performance of the models will increase by compacting the sampling sites together, however without the station ID the performance of all models slightly decreased (data not shown).
Our results confirm that Ensemblist learning models have a better performance compared to traditional models (e.g., KNN and SVM). This conclusion is in agreement with some previous studies (see, e.g., in [15,42]). However, we must keep in mind that the performance of a model depends on external uncertainty conditions [20]. Thus, for each specific dataset, several algorithms should be tested in order to find the models with the best fitting to E. coli concentrations. Indeed, Mälzer et al. [18] found that the performance of models could differ from one site to another along the Ruhr River in Germany. For this reason, we proposed this set of six machine learning models as a basic toolbox to be used.

3.3. Limits of ML-Based E. coli Estimation

Identifying observations with uncertain predictions is an approach to determine the set of data requiring optimization and thus find a way to optimize the collection and to efficiently complete our training set, allowing for a better prediction in the future by re-running the model with the newly collected measurements. Indeed, recent studies have shown that increasing the quality and quantity of the dataset by adding complementary measures allows to effectively increase the training set and to improve prediction accuracy [20,43].
To further analyze the performance, the MAPE indice, which measures the goodness of fit and examines the performance of models based on their tendency to estimate the E. coli concentration, was calculated for all testing trials. For 46.7 ± 3.5% of the predicted values generated by the RF model, the percentage of the absolute error was less than 50%, which indicates that the estimates were reasonable or even good. The remaining 53.2 ± 3.5% of the predicted values were associated with MAPE values equal or exceeding 50%, corresponding to inaccurate estimates. These results indicate that the RF-based model did not properly predict E. coli values in all contexts and that our dataset is not sufficient to efficiently train the RF-based model. Figure 5 indicates uncertainty in the prediction for some of the E. coli measurements.

3.4. Identification of the Weaknesses in the Dataset

Different methods can be used to improve the input datasets. Some studies focuses on finding the best combination of input variables to improve the algorithm’s predictions (see, e.g., in [15,44]). However, weak features also represent a powerful source of information, that can be used in combination with the features that are adequate for learning the target concept [45]. Thus, in our study, we propose to use the second strategy. For this purpose, the prediction limits and biases of the RF-based model were further examined in order to identify among the physicochemical and hydro-meteorological variables the weaknesses in the training and testing datasets.
We hypothesized that the variability induced by the low representativeness of some parameters can affect the predictive capacity of the model. In order to identify the key parameters allowing a reasonable estimation of E. coli concentrations and those leading to an inaccurate estimation, the predicted values were separated in two datasets (inaccurate and reasonable estimations) based on the MAPE indice 50% threshold. Then, an analysis of the relationship between the different physico-chemical and hydro-meteorological variables and the predicted values was carried out on the inaccurate and reasonable datasets. We assumed that a significant difference in the coefficient correlation between the two datasets would point out the variables that had an impact on the outcome of the model but needed optimization. To compare the correlation coefficients obtained with the reasonable and inacurrate datasets, a t-test was used (n = 10). The p-values obtained are displayed in (Table 1).
Turbidity, TSS, and NH 4 + were important predictors (significant r s above 0.40), and no significant differences in the two datasets occurred (t-test, p ≥ 0.05, Table 1). We classified these parameters as having an impact of the RF-model output, with no urgent need for additional data. The river flow also contributed to the model output (significant r s > 0.40), but there was a significant difference between the two datasets (t-test, p < 0.01, Table 1). It was thus considered as an important parameter that needs additional data. Finally, the water temperature, the conductivity, the 24 h cumulative rainfall of the previous day (Table 1, t-test, p < 0.01), as well as for the number of dry days after the last rain and 24 h cumulative rainfall of the day (Table 1, t-test, p < 0.05) showed weak correlations with E. coli values, but a difference between the two datasets. As it is not certain if these weak correlations are an artifact due to the skewed distribution of these parameters or if these parameters are just bad predictors, we decided to further explore the parameters with a highly significant difference in the correlation obtained with the reasonable and inaccurate estimates. Thus, for the river flow, temperature, the conductivity, and the 24 h cumulative rainfall of the previous day (t-test, p < 0.01), it was considered that additional data were needed to provide the dataset with enough information to reduce the uncertainty in the model’s estimates. The reasons for this uncertainty may be that the measurements have not yet been tested and it is not yet known whether the model will be able to reasonably estimate the E. coli concentration, or that the distribution of the data is skewed and the correlation of some environmental variables with the E. coli concentration is not yet obvious.
The next step was to identify the value ranges of the four parameters that needed extra measurements to efficiently complete the training and testing datasets. A deeper understanding of the behavior of these parameters in the model should help optimizing the sampling process while minimizing additional cost and efforts of sample collection and analysis. The temperature is the parameter for which the reasonable predicted values of E. coli densities covered pretty well the whole range of values (17.6–26.5 °C) (Figure 6). For the conductivity (data range: 430–657 µS/cm) and the flow (data range: 4–101 (m 3 /s)) the distribution of the reasonable estimates was not regularly disseminated along the data range, and the 24 h cumulative rainfall of the day there was only 4 reasonable values in the (data range: 0–35.4 mm) (Figure 6). The Figure 6, is a valuable tool to identify which data are missing in the data range, and thus help to determine where the sampling efforts should be carried out.
In our study, the RF-based model produced a versatile modeling in prediction. Based on this observation, we were able to identify a set of parameters and values needed to complete the dataset. An alert system based on the analysis of the reasonable and inaccurate estimates would be a valuable tool for stakeholders to optimize their sampling and measurement efforts. However, manual sampling and laboratory analysis may be too costly and labor-intensive to realistically implement the training dataset. A network of sensors allowing continuous monitoring of physico-chemical parameters and the monitoring of rainfalls as well as dry weather, could help in optimizing the sampling. Such approach may help developing models able to adapt under environmental perturbations such as accidental pollution or heavy rainfalls (>30 mm), which are usually under-represented in the datasets due to their scarcity, and/or the fact that weekly/monthly routine survey often miss such events.

4. Automated Data Collection

From the results, it is clear that the machine learning models are capable of delivering interesting results, as long as one can provide enough good-quality data. Thus, the use of data sensors in addition to manual collection should be investigated as means of feeding these models. Concerning the water quality parameters that we have investigated in this work, there are a myriad of sensors that could perform their collection with acceptable data quality. Those sensors may vary in price, accuracy, usage, and lifespan, among other characteristics, as they were extensively studied in [46,47]. Therefore, to incorporate sensors as a permanent brick in the data collection system, further studies must be conducted to determine their optimal and sub-optimal numbers to be deployed on a given site, the expected accuracy and the available budget for their acquisition. In this direction, Abegaz et al. [46] have thoroughly discussed the nature of different sensors (piezoelectric, optical, etc.) and how they fit for different use cases, while Kruse [47] provides interesting inputs concerning their usages for different use cases.
One strategy for monitoring the bathing water quality and deciding when to open or close a bathing site is to use online measurement systems that detect Beta-D-Galactosidase or Beta-D-Glucuronidase activity. For instance, the ColiMinder automated measurement system (Vienna Water Monitoring, VWM GmbH) [48], ALERT system (Fluidion) [49], Colifast ALARM™ [50], and TECTA-B16 (Endetec, Veolia) [51] have been demonstrated to be useful to monitor E. coli in rivers, but the price of these devices may be economically prohibitive for numerous cities, as one unit may cost up to tens of thousand of euros. Alternatively, the use of sensing technologies to measure proxies or surrogate parameters procures high frequency, precise, and accurate data. Based on electrodes, fluorescence, colorimetry, wet analytical chemistry, or flow cytometry techniques, these devices are deployed at fixed strategic locations [52]. However, these sensors are often costly (∼10 K euros unit price), for instance, multiparameter sensors such as Proteus Multi-parameter Water Quality Sensor based on tryptophane-like fluorescent detection or sensor platforms measuring physico-chemical proxies (such as YSI, Sea-Bird or NKE instrument) are often used to monitor water quality.
One interesting way of integrating a network of sensors to data collection is to build an Internet of Things (IoT) network, mixing high-quality (expensive) and medium-quality (cheaper) devices capable of delivering real-time analysis. In comparison, cheaper sensors can be used to deliver good enough approximations of the correct data. For instance, the KnowFlow platform [24], based on Arduino computers and IoT long-range communication, can be a significant addition to the network. A recent review of low-cost sensors is provided by Wang et al. [53].
Concerning the deployment of these heterogeneous sensors, some approaches exist to maximize the quantity and quality of gathered data. The collection system may rely on (i) deterministic deployment, where sensors position is calculated before the collection begins, based on the environmental and economic conditions [54]; (ii) random deployment, in the case where areas are hard to achieve and to position sensors [55]; or (iii) hybrid deployment, a mix of aforementioned approaches, which is used indicated to very large networks, covering vastly heterogeneous areas [56]. Some studies have investigated this topic, with a further analysis on the advantages of IoT networks to enhance data collection [57,58]. For instance, in [57] the authors proposed a methodology to derive the optimal placement of sensors in an aquatic environment, based on a “divide-and-conquer” approach, which could reduce the complexity of this task for large scenarios.
The deployment of sensors will heavily depend on the battery lifespan of devices, as much as on their communication range. Therefore, IoT-based measurement networks should be based on Low-Power Wide-Area Networks (LPWAN) technologies, as LoRaWAN, Sigfox, or NB-IoT. Such technologies allow communications range up to kilometers and ensure very low energy consumption, when compared to 4G, Wi-Fi, or Bluetooth networks [59]. Users can also consider the utilization of new 5G cellular technology, which is adapted for large-scale sensor networks and IoT communications [60].
One remaining challenge to enhance the use of IoT networks for water quality assessment is the real-data collection and visualization mechanisms. For example, Grafana allows users to analyze sensor metrics through dashboards, messaging and alerts in real time [61]. The Elastic stack application allows a deeper analysis of data logs and provides so-called intelligent dashboards, capable of adapting screens to environmental, economic or user contexts (e.g., what a researcher sees is not what a common user would see) [62]. In [58], the authors developed an IoT-based system within a town, capable of sensing the environmental parameters and effectively delivering real-time information on water quality. This clearly shows that the automation of the collection process is possible and viable for the estimation of water quality in urban sites [63].
Although the use IoT network composed of heterogeneous sensors is an interesting solution to enhance surveillance systems, the use of low-quality devices must be taken with caution due to their less accurate results. Therefore, the calibration of sensors remains an important issue to be investigated. As discussed in [46], the errors, margins, and durability of devices vary a lot. Therefore, an automated data collection must take into account a mechanism to estimate which sensors are no longer in optimal operation conditions, which is more likely to happen to low-quality models. One simple solution consists in compare their output to nearby high-quality devices and analyze when important deviations occur. More complex solutions would consist in estimating their lifespan based on already collected data to perform changes preemptively.

5. Conclusions

In this paper, we proposed a framework and statistical indicators to select among a toolbox of six supervised learning algorithms (KNN, SVM, DT, RF, Bagging, and AdaBoost) the most suitable model for the prediction of fecal indicator bacteria in an urban river. This framework was successfully applied to the Marne River (Greater Paris, France). Nevertheless, with regard to the actual dataset, E. coli concentration could not be predicted in all contexts (53.2 ± 3.5% of inaccurate predicted values). This result illustrates well the fact that predicting the microbial quality of surface waters in urban rivers remains complex. Refining the models to be able to adapt to environmental changes represents a future challenge in the context of the global change which may increase the frequency of extreme rainfalls and floods [40]. Further amelioration and testing of predictive models is needed to reproduce and predict the temporal and spatial dynamic of fecal indicators in changing and complex aquatic environments. As our dataset was not representative of all the possible values in the data range, some values have not yet been trained or tested by the RF-based model. For these values, it is not clear yet whether our model is able to estimate the E. coli concentration in a reasonable way at the moment. To address this problem, we proposed a strategy and tools to help improving the quality and quantity of the training data. The distribution of the accurate values along the data range of each parameter seems an appropriate approach to identify which additional data are needed for which parameter, in order to achieve a good predictive efficiency.
Acquiring additional data is usually costly because it is a manual process that requires human action. As a consequence, our proposed approach aims to optimize the sampling process. It requires focusing on the following points: (i) How and where to use of microbiological high-quality monitoring systems to feed itself. (ii) How to install low cost physico-chemical sensors on an IoT network for the prediction of microbiological quality. (iii) When to perform sampling by human operators when the model fails to correctly estimate the E. coli concentration and the microbiological quality of surface water?
Overall, the proposed framework will help rationalize and optimize the sampling effort, thus saving time and cost of microbiological analyses.

Author Contributions

All authors contributed to the manuscript: Conceptualization, S.S., T.W.M.D.A. and F.S.L.; methodology, M.N., S.S. and T.W.M.D.A.; formal analysis, M.N.; resources, A.J.; data curation, M.N., A.J., P.S. and F.S.L.; writing—original draft preparation, M.N.; writing—review and editing, F.S.L., S.S., T.W.M.D.A., A.J. and P.S.; supervision, T. Abreu, S.S. and F.S.L.; project administration, A.J.; funding acquisition, A.J. This manuscript is the final scientific paper of P.S. who suddenly died on August 2021 at the age of 64 years old. During his career, he considerably contributed to the field of aquatic microbial ecology, specially the study of microbial quality of surface waters. This paper is thus specially dedicated to Pierre Servais, who diligently and meticulously contributed to improve the manuscript while he was courageously fighting a cancer. All authors have read and agreed to the published version of the manuscript.

Funding

Data were acquired through the annual budget of the Syndicat Marne Vive. Manel Naloufi phD grant is provided by the City of Paris and the French Association Nationale de la Recherche et de la Technologie.

Data Availability Statement

Datasets are deposited in the CapGeo database of a working group directed by the City of Paris to study the water quality of the Seine and the Marne river. This dataset is not yet openly accessible.

Acknowledgments

We thank the Departmental Councils of Val-de-Marne and of Seine-Saint-Denis (France) and the city of Paris for their contribution to the dataset. We are grateful to Lamine Amour for his constructive preliminary work. We are grateful to Miguel Gillon-Ritz for his sound advices and for the access to CapGeo database (City of Paris, Direction de la Propreté et de l’Eau—Service Technique de l’Eau et de l’Assainissement). We thank Miguel Gillon-Ritz and Marion Delarbre for their kind welcome and supervision at the Service Technique de l’Eau et de l’Assainissement (City of Paris).

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. Descriptive statistics of the parameters.
Table A1. Descriptive statistics of the parameters.
ParametersMeanStandard DeviationMinimumMaximum
Water temperature21.771.5917.6026.50
Conductivity537.3656.09430.00657.00
Turbidity7.917.330.12132.00
TSS9.769.130.90190.00
NH 4 + 0.120.070.031.11
TKN0.721.080.1533.70
Number of dry days4.805.720.0027.00
24 h cumulative rainfall of the day0.972.900.0026.00
24 h cumulative rainfall of the previous day1.864.690.0035.40
River flow41.6810.594.00101.00
Table A2. Average and standard deviation of the statistic metrics (RMSE, MAE, RDP) obtained with each model during the ten testing trials.
Table A2. Average and standard deviation of the statistic metrics (RMSE, MAE, RDP) obtained with each model during the ten testing trials.
ModelKNNRFDTSVMAdaBoostBagging
RMSE0.41 ± 0.280.37 ± 0.200.54 ± 0.290.53 ± 0.480.53 ± 0.280.38 ± 0.19
MAE0.09 ± 0.030.09 ± 0.020.14 ± 0.050.13 ± 0.050.10 ± 0.030.14 ± 0.06
RDP1.60 ± 0.491.91 ± 1.651.12 ± 0.361.32 ± 0.221.28 ± 0.621.77 ± 1.62
Figure A1. Correlation analysis between water quality parameters and E. coli concentration estimated by RF for (A) reasonable estimation and (B) inaccurate estimation of E. coli (n = 10).
Figure A1. Correlation analysis between water quality parameters and E. coli concentration estimated by RF for (A) reasonable estimation and (B) inaccurate estimation of E. coli (n = 10).
Water 13 02457 g0a1

References

  1. Jang, C.S. Using probability-based spatial estimation of the river pollution index to assess urban water recreational quality in the Tamsui River watershed. Environ. Monit. Assess. 2015, 188, 1–17. [Google Scholar] [CrossRef] [PubMed]
  2. Davies-Colley, R.; Valois, A.; Milne, J. Faecal pollution and visual clarity in New zealand rivers: Correlation of key variables affecting swimming suitability. J. Water Health 2018, 16, wh2018214. [Google Scholar] [CrossRef] [PubMed]
  3. Soller, J.A.; Schoen, M.E.; Bartrand, T.; Ravenscroft, J.E.; Ashbolt, N.J. Estimated human health risks from exposure to recreational waters impacted by human and non-human sources of faecal contamination. Water Res. 2010, 44, 4674–4691. [Google Scholar] [CrossRef]
  4. Mallin, M.A.; Williams, K.E.; Esham, E.C.; Lowe, R.P. Effect of human development on bacteriological water quality in coastal watersheds. Ecol. Appl. 2000, 10, 1047–1056. [Google Scholar] [CrossRef]
  5. Passerat, J.; Ouattara, N.K.; Mouchel, J.M.; Rocher, V.; Servais, P. Impact of an intense combined sewer overflow event on the microbiological water quality of the Seine River. Water Res. 2011, 45, 893–903. [Google Scholar] [CrossRef]
  6. Dueker, M.E.; O’Mullan, G.; Martínez, J.M.; Juhl, A.; Weathers, K. Onshore Wind Speed Modulates Microbial Aerosols along an Urban Waterfront. Atmosphere 2017, 8, 215. [Google Scholar] [CrossRef] [Green Version]
  7. Droppo, I.G.; Liss, S.N.; Williams, D.; Nelson, T.; Jaskot, C.; Trapp, B. Dynamic Existence of Waterborne Pathogens within River Sediment Compartments. Implications for Water Quality Regulatory Affairs. Environ. Sci. Technol. 2009, 43, 1737–1743. [Google Scholar] [CrossRef]
  8. Garcia-Armisen, T.; Servais, P. Partitioning and Fate of Particle-Associated E. coli in River Water. Water Environ. Res. Res. Publ. Water Environ. Fed. 2009, 81, 21–28. [Google Scholar] [CrossRef]
  9. Ahmed, W.; Hamilton, K.; Toze, S.; Cook, S.; Page, D. A review on microbial contaminants in stormwater runoff and outfalls: Potential health risks and mitigation strategies. Sci. Total Environ. 2019, 692, 1304–1321. [Google Scholar] [CrossRef]
  10. Whitehead, P.G.; Wilby, R.L.; Battarbee, R.W.; Kernan, M.; Wade, A.J. A review of the potential impacts of climate change on surface water quality. Hydrol. Sci. J. 2009, 54, 101–123. [Google Scholar] [CrossRef]
  11. WHO. World Health Organization. 2018. Available online: https://www.who.int/docs/default-source/wash-documents/who-recommendations-on-ec-bwd-august-2018.pdf (accessed on 16 July 2021).
  12. Weiskerger, C.J.; Phanikumar, M.S. Numerical Modeling of Microbial Fate and Transport in Natural Waters: Review and Implications for Normal and Extreme Storm Events. Water 2020, 12, 1876. [Google Scholar] [CrossRef]
  13. Jovanovic, D.; Gelsinari, S.; Bruce, L.; Hipsey, M.; Teakle, I.; Barnes, M.; Coleman, R.; Deletic, A.; Mccarthy, D.T. Modelling shallow and narrow urban salt-wedge estuaries: Evaluation of model performance and sensitivity to optimise input data collection. Estuar. Coast. Shelf Sci. 2019, 217, 9–27. [Google Scholar] [CrossRef]
  14. Nnane, D.E.; Ebdon, J.E.; Taylor, H.D. Integrated analysis of water quality parameters for cost-effective faecal pollution management in river catchments. Water Res. 2011, 45, 2235–2246. [Google Scholar] [CrossRef]
  15. Bui, D.T.; Khosravi, K.; Tiefenbacher, J.; Nguyen, H.; Kazakis, N. Improving prediction of water quality indices using novel hybrid machine-learning algorithms. Sci. Total Environ. 2020, 721, 137612. [Google Scholar] [CrossRef]
  16. Banda, T.; Kumarasamy, M. Application of Multivariate Statistical Analysis in the Development of a Surrogate Water Quality Index (WQI) for South African Watersheds. Water 2020, 12, 1584. [Google Scholar] [CrossRef]
  17. Ghahramani, Z. Probabilistic machine learning and artificial intelligence. Nature 2015, 521, 452–459. [Google Scholar] [CrossRef]
  18. Mälzer, H.J.; aus der Beek, T.; Müller, S.; Gebhardt, J. Comparison of different model approaches for a hygiene early warning system at the lower Ruhr River, Germany. Int. J. Hyg. Environ. Health 2016, 219, 671–680. [Google Scholar] [CrossRef] [PubMed]
  19. Qiu, X.; Ren, Y.; Suganthan, P.N.; Amaratunga, G.A. Empirical Mode Decomposition based ensemble deep learning for load demand time series forecasting. Appl. Soft Comput. 2017, 54, 246–255. [Google Scholar] [CrossRef]
  20. Chen, K.; Chen, H.; Zhou, C.; Huang, Y.; Qi, X.; Shen, R.; Liu, F.; Zuo, M.; Zou, X.; Wang, J.; et al. Comparative analysis of surface water quality prediction performance and identification of key water parameters using different machine learning models based on big data. Water Res. 2020, 171, 115454. [Google Scholar] [CrossRef] [PubMed]
  21. Qian, P.; Chen, Y.; Kuo, J.W.; Zhang, Y.D.; Jiang, Y.; Zhao, K.; Al Helo, R.; Friel, H.; Baydoun, A.; Zhou, F.; et al. mDixon-Based Synthetic CT Generation for PET Attenuation Correction on Abdomen and Pelvis Jointly Using Transfer Fuzzy Clustering and Active Learning-Based Classification. IEEE Trans. Med. Imaging 2020, 39, 819–832. [Google Scholar] [CrossRef]
  22. Zhu, J.; Zhang, J.; Wu, Q.; Jia, Y.; Zhou, B.; Wei, X.; Yu, P.S. Constrained Active Learning for Anchor Link Prediction Across Multiple Heterogeneous Social Networks. Sensors 2017, 17, 1786. [Google Scholar] [CrossRef]
  23. Bouneffouf, D. Exponentiated Gradient Exploration for Active Learning. Computers 2016, 5, 1. [Google Scholar] [CrossRef] [Green Version]
  24. Public Lab KnowFLow. Available online: https://www.eea.europa.eu/publications/european-bathing-water-quality-in-2018 (accessed on 30 June 2021).
  25. Cover, T.; Hart, P. Nearest neighbor pattern classification. IEEE Trans. Inf. Theory 1967, 13, 21–27. [Google Scholar] [CrossRef]
  26. Swain, P.H.; Hauska, H. The decision tree classifier: Design and potential. IEEE Trans. Geosci. Electron. 1977, 15, 142–147. [Google Scholar] [CrossRef]
  27. Vapnik, V.N. The Nature of Statistical Learning Theory; Springer: New York, NY, USA, 1995. [Google Scholar]
  28. Breiman, L. Bagging predictors. Mach. Learn. 1996, 24, 123–140. [Google Scholar] [CrossRef] [Green Version]
  29. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Green Version]
  30. Freund, Y.; Schapire, R. Experiments with a New Boosting Algorithm. In Proceedings of the Thirteenth International Conference on International Conference on Machine Learning, Bari, Italy, 3–6 July 1996; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1996; pp. 148–156. [Google Scholar]
  31. 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]
  32. Hastie, T. The Elements of Statistical Learning Data Mining, Inference, and Prediction, 2nd ed.; Springer Series in Statistics; Springer: New York, NY, USA, 2009. [Google Scholar]
  33. Barboza, F.; Kimura, H.; Altman, E. Machine learning models and bankruptcy prediction. Expert Syst. Appl. 2017, 83, 405–417. [Google Scholar] [CrossRef]
  34. Shrestha, D.; Solomatine, D. Experiments with AdaBoost.RT, an Improved Boosting Scheme for Regression. Neural Comput. 2006, 18, 1678–1710. [Google Scholar] [CrossRef]
  35. Wang, X.; Zhang, F.; Ding, J. Evaluation of water quality based on a machine learning algorithm and water quality index for the Ebinur Lake Watershed, China. Sci. Rep. 2017, 7, 1–18. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  36. Lewis, C.D. Industrial and Business Forecasting Methods: A Practical Guide to Exponential Smoothing and Curve Fitting/Colin D. Lewis; Butterworth Scientific: London, UK, 1982; p. 143. [Google Scholar]
  37. Yan, J.; Gao, Y.; Yu, Y.; Xu, H.; Xu, Z. A Prediction Model Based on Deep Belief Network and Least Squares SVR Applied to Cross-Section Water Quality. Water 2020, 12, 1929. [Google Scholar] [CrossRef]
  38. Lu, H.; Ma, X. Hybrid decision tree-based machine learning models for short-term water quality prediction. Chemosphere 2020, 249, 126169. [Google Scholar] [CrossRef]
  39. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2018. [Google Scholar]
  40. Sylvestre, É.; Burnet, J.B.; Smeets, P.; Medema, G.; Prévost, M.; Dorner, S. Can routine monitoring of E. coli fully account for peak event concentrations at drinking water intakes in agricultural and urban rivers? Water Res. 2020, 170, 115369. [Google Scholar] [CrossRef]
  41. Avila, R.; Horn, B.; Moriarty, E.; Hodson, R.; Moltchanova, E. Evaluating statistical model performance in water quality prediction. J. Environ. Manag. 2018, 206, 910–919. [Google Scholar] [CrossRef]
  42. Ahmed, U.; Mumtaz, R.; Anwar, H.; Shah, A.A.; Irfan, R.; García-Nieto, J. Efficient Water Quality Prediction Using Supervised Machine Learning. Water 2019, 11, 2210. [Google Scholar] [CrossRef] [Green Version]
  43. Pachepsky, Y.A.; Allende, A.; Boithias, L.; Cho, K.; Jamieson, R.; Hofstra, N.; Molina, M. Microbial Water Quality: Monitoring and Modeling. J. Environ. Qual. 2018, 47, 931–938. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  44. Hameed, M.; Sharqi, S.S.; Yaseen, Z.M.; Afan, H.A.; Hussain, A.; Elshafie, A. Application of artificial intelligence (AI) techniques in water quality index prediction: A case study in tropical region, Malaysia. Neural Comput. Appl. 2017, 28, 893–905. [Google Scholar] [CrossRef]
  45. Muslea, I.; Minton, S.; Knoblock, C.A. Active Learning with Multiple Views. J. Artif. Intell. Res. 2006, 27, 203–233. [Google Scholar] [CrossRef]
  46. Abegaz, B.W.; Datta, T.; Mahajan, S.M. Sensor technologies for the energy-water nexus—A review. Appl. Energy 2018, 210, 451–466. [Google Scholar] [CrossRef]
  47. Kruse, P. Review on water quality sensors. J. Phys. D Appl. Phys. 2018, 51, 203002. [Google Scholar] [CrossRef] [Green Version]
  48. Cazals, M.; Stott, R.; Fleury, C.; Proulx, F.; Prévost, M.; Servais, P.; Dorner, S.; Burnet, J.B. Near real-time notification of water quality impairments in recreational freshwaters using rapid online detection of β-D-glucuronidase activity as a surrogate for Escherichia coli monitoring. Sci. Total Environ. 2020, 720, 137303. [Google Scholar] [CrossRef]
  49. Angelescu, D.; Huynh, V.; Hausot, A.; Yalkin, G.; Plet, V.; Mouchel, J.; Guérin-Rechdaoui, S.; Azimi, S.; Rocher, V. Autonomous system for rapid field quantification of Escherichia coli in surface waters. J. Appl. Microbiol. 2019, 126, 332–343. [Google Scholar] [CrossRef] [PubMed]
  50. Tryland, I.; Eregno, F.E.; Braathen, H.; Khalaf, G.; Sjølander, I.; Fossum, M. On-line monitoring of Escherichia coli in raw water at Oset drinking water treatment plant, Oslo (Norway). Int. J. Environ. Res. Public Health 2015, 12, 1788–1802. [Google Scholar] [CrossRef] [Green Version]
  51. Bramburger, A.J.; Brown, R.S.; Haley, J.; Ridal, J.J. A new, automated rapid fluorometric method for the detection of Escherichia coli in recreational waters. J. Great Lakes Res. 2015, 41, 298–302. [Google Scholar] [CrossRef]
  52. Rode, M.; Wade, A.J.; Cohen, M.J.; Hensley, R.T.; Bowes, M.J.; Kirchner, J.W.; Arhonditsis, G.B.; Jordan, P.; Kronvang, B.; Halliday, S.J.; et al. Sensors in the Stream: The High-Frequency Wave of the Present. Environ. Sci. Technol. 2016, 50, 10297–10307. [Google Scholar] [CrossRef] [Green Version]
  53. Wang, Z.A.; Moustahfid, H.; Mueller, A.V.; Michel, A.P.M.; Mowlem, M.; Glazer, B.T.; Mooney, T.A.; Michaels, W.; McQuillan, J.S.; Robidart, J.C.; et al. Advancing Observation of Ocean Biogeochemistry, Biology, and Ecosystems With Cost-Effective in situ Sensing Technologies. Front. Mar. Sci. 2019, 6, 519. [Google Scholar] [CrossRef]
  54. Nguyen, P.; Ferry, N.; Erdogan, G.; Song, H.; Lavirotte, S.; Tigli, J.Y.; Solberg, A. Advances in deployment and orchestration approaches for IoT-a systematic review. In Proceedings of the 2019 IEEE International Congress on Internet of Things (ICIOT), San Diego, CA, USA, 25–30 June 2019; pp. 53–60. [Google Scholar]
  55. Priyadarshi, R.; Gupta, B.; Anurag, A. Deployment techniques in wireless sensor networks: A survey, classification, challenges, and future research issues. J. Supercomput. 2020, 76, 7333–7373. [Google Scholar] [CrossRef]
  56. Senouci, M.R.; Mellouk, A. Deploying Wireless Sensor Networks: Theory and Practice; Elsevier: Amsterdam, The Netherlands, 2016. [Google Scholar]
  57. Ciaponi, C.; Creaco, E.; Nardo, A.D.; Natale, M.D.; Giudicianni, C.; Musmarra, D.; Santonastaso, G.F. Optimal sensor placement in a partitioned water distribution network for the water protection from contamination. Proceedings 2018, 2, 670. [Google Scholar] [CrossRef] [Green Version]
  58. Ramesh, M.V.; Nibi, K.; Kurup, A.; Mohan, R.; Aiswarya, A.; Arsha, A.; Sarang, P. Water quality monitoring and waste management using IoT. In Proceedings of the IEEE Global Humanitarian Technology Conference (GHTC), San Jose, CA, USA, 19–22 October 2017; pp. 1–7. [Google Scholar]
  59. Mekki, K.; Bajic, E.; Chaxel, F.; Meyer, F. A comparative study of LPWAN technologies for large-scale IoT deployment. ICT Express 2019, 5, 1–7. [Google Scholar] [CrossRef]
  60. Rahimi, H.; Zibaeenejad, A.; Safavi, A.A. A novel IoT architecture based on 5G-IoT and next generation technologies. In Proceedings of the 2018 IEEE 9th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), Vancouver, BC, Canada, 1–3 November 2018; pp. 81–88. [Google Scholar]
  61. Betke, E.; Kunkel, J. Real-time I/O-monitoring of HPC applications with SIOX, elasticsearch, Grafana and FUSE. In International Conference on High Performance Computing; Springer: Cham, Switzerland, 2017; pp. 174–186. [Google Scholar]
  62. Protopsaltis, A.; Sarigiannidis, P.; Margounakis, D.; Lytos, A. Data visualization in internet of things: Tools, methodologies, and challenges. In Proceedings of the 15th International Conference on Availability, Reliability and Security, Virtual Event, Ireland, 25–28 August 2020; pp. 1–11. [Google Scholar]
  63. Chen, Y.; Han, D. Water quality monitoring in smart city: A pilot project. Autom. Constr. 2018, 89, 307–316. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Marne River water quality monitoring stations. The light gray stars indicate the SMV sampling stations and the dark gray stars indicate the location of the rain gauges used (SMV).
Figure 1. Marne River water quality monitoring stations. The light gray stars indicate the SMV sampling stations and the dark gray stars indicate the location of the rain gauges used (SMV).
Water 13 02457 g001
Figure 2. Guideline to provide and select an adapted model for water quality prediction and for the identification of a set of data to optimize the sampling strategies.
Figure 2. Guideline to provide and select an adapted model for water quality prediction and for the identification of a set of data to optimize the sampling strategies.
Water 13 02457 g002
Figure 3. Distribution of the data for each variable. The median is indicated as a solid black line inside each boxplot, outliers are indicated as black dots. On the ordinates are the values taken by each variable with the units specified in parenthesis.
Figure 3. Distribution of the data for each variable. The median is indicated as a solid black line inside each boxplot, outliers are indicated as black dots. On the ordinates are the values taken by each variable with the units specified in parenthesis.
Water 13 02457 g003
Figure 4. Evaluation of the prediction performances of the 6 machine learning models during the 10 trials. On the abscissa the model is indicated and on the ordinate the value of the statistical metrics are displayed (dimensionless): (A) RMSE, (B) MAE, and (C) RPD.
Figure 4. Evaluation of the prediction performances of the 6 machine learning models during the 10 trials. On the abscissa the model is indicated and on the ordinate the value of the statistical metrics are displayed (dimensionless): (A) RMSE, (B) MAE, and (C) RPD.
Water 13 02457 g004
Figure 5. Relationship between the E. coli concentration predicted by the RF-based model and the measured concentration. The white circles indicate the values. The red line indicates theoretical values corresponding to an accurate prediction of the model compared to the measured values for the ten testing trials. Blue lines indicate the 50% confidence interval.
Figure 5. Relationship between the E. coli concentration predicted by the RF-based model and the measured concentration. The white circles indicate the values. The red line indicates theoretical values corresponding to an accurate prediction of the model compared to the measured values for the ten testing trials. Blue lines indicate the 50% confidence interval.
Water 13 02457 g005
Figure 6. Visualization of the values that need enrichment in the dataset for the temperature, conductivity, 24 h cumulative rainfall of the previous day and the river flow. The abscissa displays the value range of each parameter. Predicted values giving a reasonable estimation are visualized with solid black bars, white spaces represent the values that need further enrichment in the dataset.
Figure 6. Visualization of the values that need enrichment in the dataset for the temperature, conductivity, 24 h cumulative rainfall of the previous day and the river flow. The abscissa displays the value range of each parameter. Predicted values giving a reasonable estimation are visualized with solid black bars, white spaces represent the values that need further enrichment in the dataset.
Water 13 02457 g006
Table 1. Correlation coefficients (average r s ± SD) for the relationship between the values of E. coli predicted by the RF model (reasonable and inaccurate) and the environmental variables. Significant coefficients are indicated with a * (coefficient significance test p < 0.05). Significant differences between the correlation coefficients of the two datasets are indicated as t-test p-values < 0.01. MAPE values were used to identify reasonable (less than 50%) and inaccurate (over 50%) estimations of E. coli concentrations obtained with the RF model during the ten testing trials.
Table 1. Correlation coefficients (average r s ± SD) for the relationship between the values of E. coli predicted by the RF model (reasonable and inaccurate) and the environmental variables. Significant coefficients are indicated with a * (coefficient significance test p < 0.05). Significant differences between the correlation coefficients of the two datasets are indicated as t-test p-values < 0.01. MAPE values were used to identify reasonable (less than 50%) and inaccurate (over 50%) estimations of E. coli concentrations obtained with the RF model during the ten testing trials.
ParametersReasonable Predictions r s Inaccurate Predictions r s p-Value
Water temperature−0.17 ± 0.05−0.28 * ± 0.070.001
Conductivity−0.05 ± 0.11−0.18 ± 0.090.009
Turbidity0.42 * ± 0.070.39 * ± 0.080.43
TSS0.43 * ± 0.090.40 * ± 0.040.42
NH 4 + 0.54 * ± 0.060.48 * ± 0.070.05
TKN−0.03 ± 0.080.001 ± 0.060.26
Number of dry days−0.10 ± 0.09−0.01 ± 0.090.02
24 h cumulative rainfall of the day0.09 ± 0.10−0.02 ± 0.110.02
24 h cumulative rainfall of the previous day0.17 ± 0.080.03 ± 0.100.002
River flow0.54 * ± 0.090.39 * ± 0.090.001
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Naloufi, M.; Lucas, F.S.; Souihi, S.; Servais, P.; Janne, A.; Wanderley Matos De Abreu, T. Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort. Water 2021, 13, 2457. https://doi.org/10.3390/w13182457

AMA Style

Naloufi M, Lucas FS, Souihi S, Servais P, Janne A, Wanderley Matos De Abreu T. Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort. Water. 2021; 13(18):2457. https://doi.org/10.3390/w13182457

Chicago/Turabian Style

Naloufi, Manel, Françoise S. Lucas, Sami Souihi, Pierre Servais, Aurélie Janne, and Thiago Wanderley Matos De Abreu. 2021. "Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort" Water 13, no. 18: 2457. https://doi.org/10.3390/w13182457

APA Style

Naloufi, M., Lucas, F. S., Souihi, S., Servais, P., Janne, A., & Wanderley Matos De Abreu, T. (2021). Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort. Water, 13(18), 2457. https://doi.org/10.3390/w13182457

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