Next Article in Journal
Electrochemical Oxidation of Monosaccharides at Nanoporous Gold with Controlled Atomic Surface Orientation and Non-Enzymatic Galactose Sensing
Previous Article in Journal
UAV Autonomous Tracking and Landing Based on Deep Reinforcement Learning Strategy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Wastewater Quality Estimation through Spectrophotometry-Based Statistical Models

by
Daniel Carreres-Prieto
1,*,
Juan T. García
1,*,
Fernando Cerdán-Cartagena
2 and
Juan Suardiaz-Muro
3
1
Department of Mining and Civil Engineering, Universidad Politécnica de Cartagena, 30202 Cartagena, Spain
2
Department of Information and Communications Technologies, Universidad Politécnica de Cartagena, 30202 Cartagena, Spain
3
Department of Electronic Technology, Universidad Politécnica de Cartagena, 30202 Cartagena, Spain
*
Authors to whom correspondence should be addressed.
Sensors 2020, 20(19), 5631; https://doi.org/10.3390/s20195631
Submission received: 23 August 2020 / Revised: 28 September 2020 / Accepted: 29 September 2020 / Published: 1 October 2020
(This article belongs to the Section Physical Sensors)

Abstract

:
Local administrations are increasingly demanding real-time continuous monitoring of pollution in the sanitation system to improve and optimize its operation, to comply with EU environmental policies and to reach European Green Deal targets. The present work shows a full-scale Wastewater Treatment Plant field-sampling campaign to estimate COD, BOD5, TSS, P, TN and NO3N in both influent and effluent, in the absence of pre-treatment or chemicals addition to the samples, resulting in a reduction of the duration and cost of analysis. Different regression models were developed to estimate the pollution load of sewage systems from the spectral response of wastewater samples measured at 380–700 nm through multivariate linear regressions and machine learning genetic algorithms. The tests carried out concluded that the models calculated by means of genetic algorithms can estimate the levels of five of the pollutants under study (COD, BOD5, TSS, TN and NO3N), including both raw and treated wastewater, with an error rate below 4%. In the case of the multilinear regression models, these are limited to raw water and the estimate is limited to COD and TSS, with less than a 0.5% error rate.

1. Introduction

Urban sanitation systems involve sewer networks (SNs) and wastewater treatment plants (WWTPs). Integrated and joint management of these is mandatory to overcome issues arising from stormwater runoff episodes which, in short periods, overload the system in terms of pollutants and flowrates as well as those coming from the dry-weather daily variation of pollution load. Rainfall runoff collected and conveyed through combined sewers has an important influence on the efficiency of the entire treatment process [1,2,3,4]. Urban sanitation systems must comply with EU policies to halt the deterioration in the status of EU water bodies and the environment: Water Framework Directive (WFD, 2000/60/EC), Groundwater Directive (GWD, 2006/118/EC), Environmental Quality Standards Directive (EQS, 2008/105/EC), Directive 91/271/EEC or the Urban Wastewater Directive (UWWTD), Directive 2006/7/EC or the EU Bathing Water (Directive 2006/7/EC) and Marine Strategy Framework Directive (Directive 2008/56/EC). Continuous, real-time, reliable information about the pollutants in the input sewage is of great interest to improve and optimize the operation of the sanitation systems, to fulfill EU environmental policies and to reach European Green Deal targets [5].
Developing sensors for the continuous monitoring of wastewater parameters is a major scientific and technical challenge due to the variability of wastewater characteristics as well as the extreme physical-chemical conditions the sensors are subjected to [6,7]. Optical techniques including UV–Vis spectroscopy and near-infrared spectroscopy NIR have been used to reliably characterize solids, organic matter and nitrates in wastewater for over a decade [8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]. UV–Vis refers to the interaction between samples and radiation in the 200–780-nm wavelength range at single or multiple wavelengths to estimate a number of parameters [19]. It is fast, non-destructive and environment-friendly since it does not require chemicals to be added. It is coupled with multivariate data analysis such as partial least squares (PLS) regression to generate a regression model based on spectral data to estimate the water quality parameters [8,26,27,28]. Several studies have shown good agreement in online continuous monitoring of chemical organic demand (COD) using UV–Vis spectroscopy [8,11,16,17,18,20,22,23,24,25]. Total suspended solids (TSS) has also been predicted through UV–Vis and NIR [11,17,18,22,23,24]. Nitrates (NO3N) achieved results with UV–Vis with an error of ~25% and correlation coefficients of 0.87 [24]. Other works have presented the second derivative UV–Vis spectroscopy absorption spectrum for NO3N calibration [10]. There are continuous sensors and analyzers capable of operating online with UV spectrophotometry that can be used to monitor nitrate and nitrite concentration in water samples [14,22]. Promising and long-term measurements have been developed in several cities, namely Linz [21], Graz, Ecully and Vienna [23], addressing online UV–VIS sensors for long-term sewer monitoring.
Statistical techniques have become necessary tools to establish correlations between optical sensors signals and the continuous monitoring of wastewater quality. Linear regression (LR) and other machine learning techniques such as support vector machine (SVM), evolutionary algorithm method (EVO) and artificial neural networks (ANNs) have been used for the mathematical treatment of spectral absorbance patterns to estimate five-day biochemical oxygen demand (BOD5) and chemical oxygen demand (COD) values of wastewater samples [11,12,13,17,19,25]. From the absorbance response curves measured in an extensive range of wavelengths, specific measured values are used and combined through statistical techniques to generate a relation between pollutant concentration and absorbance or transmittance. The slope transmittance calculation and other mathematical operations such as the second derivative are also used for the estimation of biochemical loads [10,15,27].
Deploying spectroscopic-based sensors throughout the sewerage system to monitor the pollution load in real time requires an enormous amount of equipment that must therefore meet the requirement of being cost-effective. The literature already describes the availability of compact and low-cost UV–Vis spectrophotometers to monitor WWTP processes [29,30,31,32,33,34,35,36,37,38,39,40]. In addition, the installation of storm water storage and sedimentation tanks is usually economically unacceptable, thus a monitoring system to optimize the management of the sewer network is the most cost-effective and, probably, the most ecological variant as well [16]. Despite this scenario, the number of online studies remains relatively limited due to certain drawbacks such as the variability of sample composition and other matrix effects (particle size and moisture content) that complicate the absorbance response correlation [19].
The present work shows a full-scale WWTP study for the estimation of chemical oxygen demand (COD), biological oxygen demand at five days (BOD5), total suspended solids (TSS), phosphorus (P), total nitrogen (TN) and nitrate nitrogen (NO3N) by means of site-specific multivariate linear regressions (MLR) and machine learning genetic algorithms (GA) from the absorbance and transmittance in the UV–near visible and visible 380–700 nm wavelength range. A campaign of around 1200 analytical determinations in the lab was carried out in the Cabezo Beaza WWTP (Region of Murcia, Spain), during the period from June 2019 to April 2020. The samples were collected from the Influent Wastewater (Raw water) and Effluent treated water of the WWTP. They consisted of six classes of contaminant analysis (COD, BOD5, TSS, P, TN and NO3N). Each class had a size of approximately 200 samples. About half of the samples corresponded to the input of the WWTP (raw water) and the rest to the output (treated water). The equipment used for the transmittance characterization in the UV–near visible and visible range is cost-effective, own developed and has been previously calibrated [29]. This is an offline research study, considered as the first step to reaching a continuous and online monitoring system, at sanitation-system scale, which allows assisting in the control of the pollutants that reach the treatment plant, as well as contributing to the improvement of the treatment processes carried out.
The rest of the article is organized as follows: Section 2shows all the materials and methods used for the development of the research work. It describes the characteristics of the experimental campaign carried out, indicating the conditions for data collection, the number of samples analyzed and the polluting parameters under study. It also includes a description of the equipment developed for the process of characterizing the samples, as well as the different calculation procedures used to obtain the models for estimating the pollutant load from the spectrophotometric data. In Section 3, the characteristics of the analyzed water, both raw and treated, are described, as well as the different models for the estimation of the pollutant load obtained by the multivariable linear regression models, as well as the genetic algorithm. The results and comparisons of the models are also presented. Finally, Section 4 discusses the considerations reached at the end of the research work.

2. Materials and Methods

2.1. Experimental Campaign

Samples were collected in the waterline of the Cabezo Beaza WWTP at two different sampling points, in the period June 2019 to April 2020:
  • Influent wastewater at the entrance of the WWTP: raw water
  • Treated water, at the exit of the secondary settler, prior to the third treatment: secondary wastewater
Responding to the requirements of the inspection sampling campaigns by the supervisory administration (Wastewater Administration of Murcia Region, ESAMUR), the samples were integrated, i.e., they were taken homogeneously during 24 h in a 5-L volume, by means of an accumulated sample of 200 mL/h. After this, they were collected around 7:00 AM daily and tested almost simultaneously. Once in the laboratory of the plant, the samples used in the present research were not pre-treated through any filtering process, with the intention of reproducing the conditions of automatic sampling for the continuous monitoring sensors. Tests at the WWTP lab were in correspondence with Standard Methods (SM) and International Organization for Standardization (ISO), as described in Table 1. Standard methods were developed by members of the Standard Methods Committee (SMC) with the mutual publication of the American Public Health Association (APHA), American Water Works Association (AWWA) and the Water Environment Federation (WEF).
To develop the statistical models to estimate the pollutant load from the spectrophotometric data between 380 and 700 nm, it was necessary to obtain two datasets for each of the samples: the input data, based on the spectrophotometric analysis of the samples, and the analytical values of the pollutant load measured by the WWTP’s laboratory (output data).

2.2. Spectrophotometric Device

Figure 1 shows a schematic view of the spectrophotometry equipment based on LED technology (Figure 1a) and an image of the equipment (Figure 1b), which we developed to analyze the spectral response of wastewater samples. This device was previously calibrated with a commercial spectrophotometer in the UV–near visible and visible wavelength range 380–700 nm and the results were presented in previous research [29]. This is a cost-effective piece of equipment which, to reduce its size and to improve its portability, uses no optical element such as lenses, diffraction matrix, or monochromators. The interior of the proposed assembly was constructed entirely in black thermoplastic PLA with a 3D printer, while the outer casing is made of white PLA, although the color of the casing does not affect the operation of the device.
From the results of the research conducted in [29] on the use of LED technology, the device can model 81 wavelengths within 380–700 nm using only 33 limited-bandwidth LEDs. To select the working LED, the equipment has a motorized system consisting of a panel that slides vertically, which has all the light-emitting diodes, so that they can be aligned with the sample being analyzed.
The light from the LED passes through the sample via a 6-mm-diameter channel to the sensor [30]. The sensor S1223, whose accuracy was previously studied, was chosen for the analysis of the samples [29,31]. The tests carried out revealed that the most accurate results were obtained when the sensor (Figure 1a, right) was as close as possible to the sample without touching it, and the light source (Figure 1a, left) [32,33,34,35,36,37,38,39,40] was at a distance of about 23.77 mm with regard to the test tube. All samples were stored in standard 12 mm × 12 mm × 50 mm plastic test tubes of the SEOH brand [41], designed for spectrophotometry purposes.

2.3. Regression Models

2.3.1. Multivariate Linear Regression

A multivariate linear regression (MLR) model is proposed where the entire evaluation of the transmittance and absorbance spectra within 380–700 nm is used. As input variables, both the transmittance and the absorbance values obtained by the 81 wavelengths supported by the developed equipment were used, giving rise to 162 variables.
To be able to validate the models calculated with data not used during their collection, the data were divided into two groups: training data (for the development of the models) and test data (for the validation of the models). These data were divided at random with proportions of 66% and 34%, respectively.
The MLR model was developed with the IBM SPSS Statistics software, using a model fitting based on partial least squares [42]. A prior step to the calculation of any model is to determine the existence of outliers. A box and whiskers diagram was built to determine the existence of outliers and subsequently eliminate them. To make a multivariate model, the data must follow a normal distribution, i.e., that the P-value is greater than 0.1 (90% confidence interval) calculated with the Kolmogorov–Smirnov and Shapiro–Wilk tests. If it does not follow a normal distribution, the Box–Cox transformation [43] should be carried out.
Once the data follow a normal distribution, SPSS tools are used to perform the analysis, selecting the “Stepwise” [44] calculation option, which allows for more optimized calculation models. Therefore, the wavelengths (regressors) present in each of the MLR models were automatically selected by SPSS according to the following methodology.
The process starts by introducing the regressor whose P-value is highest within the range 0.05 and 0.1 (input and output criteria, respectively). In the following interaction, SPSS reintroduces the regressor with the highest p-value (within the range) and then reevaluates the model to check if any of the regressors introduced are no longer significant and/or there is multicollinearity in the model, i.e., that there are regressors correlated with each other in the model. This process is repeated with all possible combinations of regressors.
Once SPSS has calculated the models, those whose coefficient of determination R-square ( R 2 ¯ ) is greater are selected and a check is made to ensure that the model does not include correlated variables, by checking that the Variance inflation factor is less than 7.

2.3.2. Genetic Algorithms

Another statistical technique used in the present work is the genetic algorithm. This was developed to calculate correlation models between the input variables (spectrophotometric data) and output variables (contaminating parameters) of water samples.
Within the category of genetic algorithm, a type of model known as “symbolic regression” was implemented, which is a type of regression analysis that seeks the space of mathematical expressions to find the model that best fits a certain dataset. The calculation model was developed in Python using the following libraries: TensorFlow [45], NumPy [46,47] and gpLearn [48]. Before processing the data, outliers were removed using Box and Whisker analysis for the response variable. Symbolic regression works through a system of “trees” composed of interconnected nodes. Each of these nodes can be composed of a variable (transmittance and absorbance values for each of the 81 wavelengths, i.e., 162 variables) or operators/functions (addition, subtraction, division, multiplication, trigonometric functions, etc.)
The process of finding a model that correlates the input variables with the output variables is based on an evolutionary process. As a starting point, we used both multivariate linear regression models calculated for the pollutant parameters as well as randomly initialized functions based on certain restrictions of length and type of operators. This evolutionary model has 100 generations, where 1000 different trees are generated in each generation, with a mutation rate of 15% by the subtree swapping method [49,50,51,52,53,54]. Each tree is generated starting with an addition node, from which a random number of nodes are derived, which can be constants, variables or operations. The nodes consisting of operations will have new descending nodes, which can once again be constants, variables or operations. The branching process of the tree continues until all the terminations are constant or variable or the total length and/or depth of the tree is exceeded. Each randomly generated tree is tested with the input data (absorbance/transmittance) in order to check how close the response variable (the pollutant load, e.g., COD) is to the values calculated by the WWTP. The trees closest to this result will be mutated (combined) to generate another 1000 trees, and the process is repeated until 100 generations are completed.
Each time the model calculation process is started, the GA takes the training data at random in the first iteration and based on that selection calculates the model. To guarantee the validity of the models presented, a cross-validation process was carried out, consisting of the repeated execution of the model generation process, in order to obtain different estimation models for each parameter. In all cases, the models presented a very similar level of accuracy, although their mathematical expressions (coefficients) were different. Therefore, in the present manuscript, only one of the multiple calculation models is shown, since all of them are equally valid.
It is important to point out that the data were subjected to the same process of detection and elimination of outliers described in Section 2.3.1 for MLR before being analyzed.
The symbolic regression (genetic algorithm), is based on the development of a neural network, which must be trained and tested. As training data, we used 66% of the input data, taken at random, while the remaining data were used to test the validity of the calculated models, also taken at random.
This ratio was chosen according to the design criteria in [55,56], which recommend a ratio of 70%:30% when dividing the data. However, to achieve a more generalist model, that is, one that does not depend so much on the input data used, we decided to use the ratio 66%:34%.
The formulas generated by the algorithm can have a variable extension, include all types of operations, both arithmetic and trigonometric, exponential, or logarithmic functions, as well as more or fewer parameters.

2.3.3. Model Comparison

To be able to make a comparison between the two types of models (MLR and GA), several parameters were calculated: the Root-Mean-Square Deviation (RMSD) [57] and the error index, Er, through Equations (1) and (2):
R M S D = 1 n i n ( X r e f e r e n c e i X E s t i m a t e d i ) 2 ,
E r ( % ) = i n ( X r e f e r e n c e i X E s t i m a t e d i ) i n X r e f e r e n c e i 100 ,
where n is the number of samples; and X r e f e r e n c e and X E s t i m a t e d are the values of the polluting parameters (COD, BOD5, TSS, P, TN and NO3N) obtained by the analytical methods used by the wastewater treatment plant and by the calculation models, respectively. It is necessary to point out that negative error value denote that the calculated models tend to provide lower than expected estimates, as opposed to positive values.

2.4. Data Platform

To enable the relations between the transmittance/absorbance data provided by the LED-Spectrophotometer and pollutant parameters measured by the wastewater treatment plants to be determined, all the information generated has been stored in a single website [58], so that it can be easily downloaded in CSV format for further analysis.
Each of the stored samples contains information on the date and time of its analysis, identification of the equipment used to measure it, identification of the wastewater plant that carried out the analysis, and the spectrophotometric data and polluting parameters calculated by the treatment plants. Figure A1 (Appendix A) shows a view of the web platform for data storage.

2.5. Comparison with Commercial Equipment

Due to the difficulty of carrying out real-time analysis of wastewater quality, many researchers have developed analysis systems based on indirect measurements of the pollutant load, such as turbidity.
Systems such as those presented in [59,60] are able to carry out the analysis of turbidity of samples through the use of LED technology and low-cost photosensors. The equipment described in [59] consists of a probe that allows the measurement of transmittance and lateral light scattering generated by a set of LEDs of different wavelengths, using two broad-spectrum photodiodes. This allows them to measure the degree of opacity of water samples with great precision, in addition to measuring other parameters such as chlorophyll, which is very useful for analyzing water quality.
Other equipment, such as those presented [61,62], go a step further and combine turbidity analysis with other sensors that allow measuring the amount of nitrates, dissolved oxygen, or conductivity of the samples, among others. These parameters are very useful when trying to know the water quality in a fast way and in real time.
This research work sought to develop a simpler system, where external sensors are not required to carry out an analysis of water quality, in order to obtain a smaller and cheaper equipment. To do this, unlike previous systems that make use of measurements of the turbidity of the samples, that is, one or a small number of wavelengths, the system presented in this research work determined, from a wider range of wavelengths (380–700 nm), the values of COD, BOD5, TSS, P, TN and NO3N with a high precision and without the need to rely on external parameters such as conductivity or temperature.
In contrast to the previous systems, it is worth mentioning the s::can’s [63] system. This system is capable of analyzing multiple parameters of contaminants from the spectral response of water samples taken in real time, in a similar way to the system presented in this research work. However, although this equipment is capable of generating a wider emission spectrum, it is based on xenon lamps. These lamps have high energy consumption and require the use of diffraction gratings to diffract the light beam before reaching the CCD sensor, which are responsible for its almost 500-mm length. This also increases the cost of the equipment and significantly increases its dimensions. The equipment developed in this research work is based on the use of LED diodes, where, as was verified in previous works [29], the use of optical elements is not required to function.

3. Result and Discussion

3.1. Transmittance Characterization and Sampling Analysis

A wastewater plant carries out analyses at different points in its treatment process to check how the treatment process is working. At each of these points, the pollutant load changes, as do the biological matter and inorganic particles present in the water, which react at certain wavelengths. Spectrophotometric analysis can also be used to observe these variations at each point in a wastewater plant.
Spectrophotometry is based on the amount of light that passes through the samples at certain wavelengths, which depends on the physical-chemical characteristics of the samples.
In treated water, the concentrations of organic and inorganic matter are very low, which means that all the wavelengths of the visible spectrum can pass through more easily, giving rise to a more horizontal emission spectrum, without significant changes. It is this absence of variations in the spectral response that makes it difficult to find patterns that allow the pollutant load to be estimated from spectrophotometric data.
The tests carried out showed that the greater is the pollutant load, the easier it is to find correlations between transmittance/absorbance data and the pollutant concentration measured in the treatment plants.
Taking into account how transmittance data evolve with respect to the pollution concentration, it is essential to find the correlations between them. Section 3.1.1 and Section 3.1.2 show an example of the spectrophotometric response of the samples, together with their respective pollutant parameters, at each of the main analysis points in the wastewater treatment plant, in order to show how the pollutant load affects the transmittance and absorbance results.

3.1.1. Wastewater (Raw Water)

Figure 2 shows a sample of wastewater taken at the intake of the treatment plant (raw water). Table 2 contains the characteristics of the sample shown in Figure 2. The lower is the transmittance graph, the higher is the contaminant load of the samples, because of their higher turbidity [64,65]. Between 380 and 700 nm, the graph shows an upward slope, which is much steeper between 380 and 558 nm, and then tends to level out [66]. The transmittance graph from 558 nm upwards is typically constant in all the samples, and the transmittance value did not exceed 50% in any case. Therefore, attention should be paid to the region between 380 and 558 nm. A small variation in the transmittance value at 380 nm between different samples involves a large variation in COD, BOD5, TSS and TN values [67,68]. Others such as conductivity [69] and PH [70] bear no relation to variations in transmittance and absorbance.
This variation in slope is due to the greater sensitivity of organic matter to ultraviolet light. At low wavelengths in the UV near-visible range, close to 380 nm, organic matter absorbs more radiation and therefore less light is able to pass through the sample (lower transmittance). As the wavelengths are moved away from the ultraviolet/blue area, the organic matter absorbs less light and the change in transmittance is less significant.

3.1.2. Treated Water

In the case of treated water (Figure 3 and Table 3), that is, effluent water obtained at the treatment plant outlet, the transmittance values are much higher than those shown in Figure 2, as the pollutant load is low in terms of COD, BOD5 [71] and TSS. The water at the outlet of the treatment plant has a very high level of transmittance, close to 90% between 445 and 700 nm, where it behaves horizontally, unlike raw water (Figure 2) where the transmittance values seemed to stabilize from 558 nm. Furthermore, the changes in the slope of the graph are only evident in the area close to ultraviolet/blue, given that this is where organic matter is most sensitive.

3.2. Regression Models

To find the relations between the contaminating parameters and the spectrophotometric data [8,17], two different approaches have been proposed: one based on MLR analysis [72] and the other by calculating GA [73]. To simplify the equations shown, the following nomenclature is used: T is transmittance, A is absorbance and the sub-index indicates the wavelength used for its calculation, for instance T380 details that this is the transmittance value measured at 380 nm.
It is necessary to emphasize that the coefficients of the different models presented are specific for the device and the wastewater samples used for its calculation. Therefore, these coefficients should be adjusted to the characteristics of the equipment and the peculiarities of the water in the area where the analysis is carried out.

3.2.1. Multivariate Linear Regressions

Multivariate linear regression models [74,75,76] provide correlations from a set of input variables. However, this method is only valid for datasets that follow a normal distribution [74] (or can be transformed into one). Initially, the tests focused on finding such expressions for a dataset composed of both raw and treated water samples. However, the degree of variability between the two subsets of data composed of both raw and treated water samples was so high that the resulting datasets did not follow a normal distribution, nor was normalization possible despite eliminating outliers.
To illustrate this point more clearly, Figure S1 presents histograms of combined raw and treated water samples for all of the pollutant parameters under study, where each of the histograms shown contains two differentiated zones: one zone on the right that has an approximately normal distribution, which corresponds to the raw water data, and a dominant class (or classes) in terms of frequency in the left region, which corresponds to the treated water samples. This is especially visible in Figure S1a–c,f. Therefore, the combination of raw and treated water data cannot be used for the development of MLR models since they do not follow a normal distribution.
The studies carried out showed that it is only possible to apply this type of model achieving an acceptable minimum degree of adjustment when calculating COD, BOD5 and TSS corresponding to raw water. The rest of the parameters, namely P, TN and NO3N, cannot be calculated using that method, since, in most cases, either the data could not be standardized or the resulting model had a low level of correlation (lower 50%). The different multivariate linear regression models obtained for the calculation of COD, BOD5 and TSS for wastewater (raw water) are shown in the following subsections. The results of the normality tests using the Kolmogorov–Smirnov and Shapiro–Wilk tests as well as the atypical ones detected are shown in Table S1.

Chemical Oxygen Demand (COD)

The multivariate linear regression model for calculating COD is shown in Equation (3). This model provided a goodness of fit of 77.4% for the training data. The number of samples used for the calculation of the MLR model was 101, out of a total of 108 samples, after eliminating outliers. From this, 69 samples were used in developing the model, while the remaining samples were used for testing it.
C O D ( m g / l ) = c 0 c 1 · T 380 + c 2 · T 580 c 3 · T 555 + c 4 · T 521 R 2 ¯ = 77.4 %
  • c0 = 844.247657
  • c1 = 1752.845
  • c2 = 5665.418
  • c3 = 7189.785
  • c4 = 8046.775
Figure 4 shows a comparison between the COD values obtained at the wastewater treatment plant (blue), the COD values provided by the model shown in Equation (3), both using the training data (red), i.e., the dataset used for building the model up, and the testing dataset (yellow), which is the data that were been used for developing the model.
In general terms, the calculated values are quite close to the expected data.

Biological Oxygen Demand at 5 Days (BOD5)

The multivariate linear regression model for calculating BOD5 is shown in Equation (2). This model provided a goodness of fit of 61.9% for the training data. The model has a low adjustment compared to the previous model. The number of samples used for the calculation of the model was 86, out of a total of 108 samples, after eliminating outliers, so that 70 samples were used in developing the model, while the remaining samples were used for testing it.
B O D 5 ( m g / l ) = c 0 c 1 · A 515 + c 2 · A 425 c 3 · T 555 R 2 ¯ = 61.9 %
  • c0 = 2171.855
  • c1 = 7898.15
  • c2 = 4755.737
  • c3 = 2906.184
Figure S2 shows a comparison between the BOD5 values provided by the model in Equation (4) (red, the dataset used for building the model up, and yellow, the testing dataset) and the values obtained at the wastewater treatment plant (blue).
In general terms, the calculated values present an appreciable scatter when compared with the reference data.

Total Suspended Solids (TSS)

The multivariate linear regression model for calculating TSS is shown in Equation (5). This model provided a goodness of fit of 72.2% for the training data. The number of samples used for the calculation of the MLR model was 92, out of a total of 108 samples, after eliminating outliers, so that 69 samples were used in developing the model, while the remaining samples were used for testing it.
T S S ( m g / l ) = c 0 c 1 · T 380 c 2 · A 425 c 3 · A 656 R 2 ¯ = 72.2 %
  • c0 = 2428.586
  • c1 = 5060.755
  • c2 = 2928.048
Figure S3 shows a comparison between the TSS values provided by the model in Equation (5) (red, the dataset used for building the model up, and yellow, the testing dataset) and the values obtained at the wastewater treatment plant (blue). As can be seen, in general terms, the model fits the expected TSS values quite well.
As was already observed in the MLR of the COD, the calculated values are quite close to the expected data.
To show the relationship between each of the variables used in the respective models (Equations (3)–(5)) with respect to the pollutant parameter under study, the Supplementary Materials include scatter diagrams for COD (Figure S4), BOD5 (Figure S5) and TSS (Figure S6).

3.2.2. Genetic Algorithms

The MLR models, as shown in the previous section, might be suitable to quantify the pollution load influent to the WWTP, i.e., raw wastewater, in terms of COD and TSS. In contrast, MLR models have difficulties in modeling the behavior of samples with low COD and BOD5 levels, i.e., COD lower than 55 mg/L and BOD5 lower than 15 mg/L, which is the WWTP effluent. This is due to the fact that the transmittance/absorbance fluctuations in the UV–near visible spectrum are less significant than those observed in the wastewater. This is observed in Figure 3, where the transmittance graph resembles an almost horizontal line.
We aimed to develop a model that could be applied to both raw and treated water, which would overcome the limitations of MLR models and have a good level of accuracy in the estimates. For that reason, we developed a genetic algorithm, more specifically symbolic regression models. For each of the calculated models, 66% of the samples were used as the training data and the remaining 34% were used to validate the data. It is necessary to highlight that the data used for training and testing were selected randomly.
The following subsections show the results obtained by the algorithms, for each of the parameters analyzed: COD, BOD5, TSS, P, TN and NO3N. Each of them is followed by its correlation formula, as well as a comparison with the expected values of the polluting parameters.

Chemical Oxygen Demand (COD)

The model for calculating COD from spectrophotometric data is shown in Equation (6). This model presented an average Pearson goodness-of-fit for nonlinear regressions of 90.95%, with a similar adjustment in the training data (95.07%) and the test data (90.93%). In total, 188 samples out of 196, taken from different treatment plants and days, as well as input water (raw water) and output water (treated water), were used for the calculation. The optimal model was achieved in the generation number 84 of a maximum of 100.
C O D ( m g / l ) = [ ( ( c 0 · A 594 c 1 · A 557 ) + ( c 2 · A 380 c 3 · A 521 ) ) + ( ( c 4 · A 425 c 5 · A 575 ) + ( c 6 · A 445 c 7 · A 520 ) ) ] · c 8 + c 9
  • c0 = 2.4268
  • c1 = 2.7910
  • c2 = 2.5317
  • c3 = 2.6341
  • c4 = 2.3278
  • c5 = 2.6879
  • c6 = 2.4569
  • c7 = 2.7717
  • c8 = 1191.8
  • c9 = −263.45
This model is based on eight wavelengths for its calculation, namely 380, 425, 445, 520, 521, 570, 575 and 594 nm, more specifically from the absorbance data. However, not all variables (wavelengths) are equally relevant. As shown in Table 4, 380, 425, 445 and 594 nm are the most relevant variables, with an impact factor close to 17%, while the remaining variables are at around 5%.
It is important to note that the wavelengths with the highest impact index were those belonging to the violet zone of the visible spectrum (380–450 nm), which was to be expected, since organic matter is far more sensitive to those wavelengths. Likewise, it was also observed that the wavelengths close to red showed a greater interaction with the water samples. This suggests that the use of near-infrared wavelengths would provide better characterization of the samples.
As shown in Figure 5, the estimates provided by the model (both for training (red) and test (orange) data) fit precisely with the expected results (Blue). We can see that for very high values of COD (>1600 mg/L) the estimates tend to be lower than expected. However, the results could be adequate to provide an early warning system. However, at low values of COD [77], the model is able to provide a fairly certain estimation from spectrophotometric data, which was not possible with linear models.
Table A1 in Appendix B shows 15 random records, which include the absorbance values obtained for each of the variables used in the model (Equation (6)), as well as the expected COD values (Reference) and those calculated by the model (Estimated).
It can be seen that the results calculated are very similar to those expected, even when the COD level is low. The model obtained by means of the genetic algorithm was able to precisely estimate COD values from the data provided by the spectrophotometer.

Biological Oxygen Demand at 5 Days (BOD5)

To calculate the model for BOD5, 162 samples were used out of a total of 196 samples after eliminating outliers—a lower number than before—due to two aspects: the existence of outliers and measurements where BOD5 data were not available. The calculated model is shown in Equation (7). This model showed an average Pearson goodness-of-fit of 90.71% (training data) and 90% for test data (88.23% average). In addition, the model is valid for water samples with high levels of pollution (raw water) as well as with low levels of pollution (treated water). The optimal model was achieved in the 98th generation.
B O D 5 ( m g / l ) = [ c 0 · A 574 · c 1 · T 585 c 2 · A 655 c 3 · T 415 · c 4 · T 585 · c 5 · A 445 c 6 · A 655 c 7 · T 415 ] · c 8 + c 9
  • c0 = 2.0733
  • c1 = 1.3974
  • c2 = −1.0226
  • c3 = 1.2453
  • c4 = 1.3974
  • c5 = −0.1356
  • c6 = −1.0226
  • c7 = 1.2453
  • c8 = −10078
  • c9 = −18.784
This model is based on five wavelengths for its calculation: 415, 445, 574, 585 and 655 nm. However, not all variables (wavelengths) are equally relevant. As can be seen in Table 5, the most relevant wavelengths are those closest to the violet area [78], although the wavelengths close to red have a similar level of importance, although in smaller proportions.
Figure 6 shows the estimations of the genetic algorithm. As can be seen, the adjustment is acceptable, although in general terms the results seem to be a little lower than expected, but this fluctuation is not significant.
Table A2 (Appendix B) shows 15 records taken at random, where the results obtained by the model are very similar to those that were expected. Each record contains the spectrophotometric data as well as the expected (reference) values calculated by the model.

Total Suspended Solids (TSS)

Equation (8) shows the model calculated for total suspended solids. This model presented an average Pearson goodness-of-fit of 87.47% (94.67% with the training data and 90% with the test data). In total, 172 samples were used out of the 196 samples, after eliminating outliers.
T S S ( m g / l ) = c 0 · A 574 + c 1 · T 558 c 2 · T 485 · ( c 3 · T 565 c 4 · T 380 + c 5 · T 632 ) · c 6 + c 7
  • c0 = −0.062545
  • c1 = 2.6249
  • c2 = 3.4131
  • c3 = 2.5468
  • c4 = 3.3361
  • c5 = 0.46423
  • c6 = 782.89
  • c7 = −779.73
The model makes use of six variables (wavelengths): transmittance at 380, 485, 558, 565 and 632 nm and absorbance at 574 nm. However, the most relevant are 380 and 485 nm, as shown in Table 6. Likewise, we observe that, as wavelengths approach the infrared spectrum, the relative weight of these variables decreases significantly, as is the case with 632 nm.
This shows that particles in suspension are far more sensitive to wavelengths close to violet than to other wavelengths.
Figure 7 shows the results obtained with the calculated model. As can be seen, the fit is adequate, even at high TSS levels.
Similar to the previous cases, Table A3 (Appendix B) shows 15 cases chosen at random, in order to verify the good performance of the model, even at low levels of TSS.

Phosphorus (P)

The model calculated for P is shown in Equation (9). The model presented an average Pearson goodness-of-fit of 74.01% (74.28% with the training data and 78.33% with the test data), with the optimum being raised at generation 38 of a maximum of 100. In total, 175 data were used for its calculation.
P ( m g / l ) = [ ( c 0 · T 430 c 1 · T 585 c 2 · T 650 ) · ( c 3 · T 425 c 4 · T 585 ) · ( c 5 · T 450 c 6 · T 650 ) · c 7 + c 8 ]
  • c0 = 1.53
  • c1 = 0.8773
  • c2 = 1.1618
  • c3 = 1.5294
  • c4 = 0.8773
  • c5 = 2.2034
  • c6 = 1.1618
  • c7 = −40.766
  • c8 = 9.0573
The calculated model uses five wavelengths: 425, 430, 450, 585 and 650 nm. Once again, the most representative wavelengths were those closest to the violet zone [79], as shown in Table 7. As with the total suspended solids model, the weight of the wavelengths decreases as it approaches the infrared portion of the spectrum.
The model generated to estimate phosphorus levels from spectrophotometric data has a lower adjustment compared to the previous models and presents systematic inaccuracies for higher concentrations. The calculated model was only able to accurately estimate p values lower than or equal to 9 mg/L. This characteristic can be seen in Figure S7, where the estimated values are never higher than that value. Table A4 (Appendix B) shows 15 cases chosen at random, in order to verify the performance of the model.

Total Nitrogen (TN)

The model for Total Nitrogen (TN) is shown in Equation (10). This model had an average Pearson goodness-of-fit of 79.93% (85.91% with the training data and 85.91% with the test data), having been calculated from 175 samples out of the total of 196 after eliminating outliers. The optimum was raised at generation 87.
T N ( m g / l ) = [ ( c 0 · T 655 c 1 · T 585 ) · ( c 2 · T 640 c 3 · T 510 ) · ( c 4 · T 557 c 5 · T 585 ) · ( c 6 · T 640 c 7 · T 500 ) · c 8 + c 9 ]
  • c0 = 1.3315
  • c1 = 0.85214
  • c2 = 2.1725
  • c3 = 1.6762
  • c4 = 1.4023
  • c5 = 0.85214
  • c6 = 2.1725
  • c7 = 1.6605
  • c8 = −1271.6
  • c9 = 83.172
The model makes use of six wavelengths: 500, 510, 557, 585, 640 and 655 nm. As shown in Table 8, the most representative wavelengths used to calculate the nitrogen content of water were those closest to infrared. This has already been highlighted in [80], where nitrogen has a higher correlation with wavelengths close to the infrared spectrum [81].
Figure S8 shows the results provided by the model described in 10. As can be seen, the formula works well within a certain range of nitrogen values between 20 and 75 mg/L, but worsens slightly outside that range, albeit not significantly.
Within that range, the results provided by the model were very close to the reference values, as shown in Table A5 (Appendix B).

Nitrate Nitrogen (NO3N)

Nitrogen nitrate in water can be calculated from Equation (11). The model presented an average Pearson goodness-of-fit of 81.26% (81.26% with the training data and 83.46% with the test data). In total, 175 samples were used for calculation out of 196 samples after eliminating outliers. The optimum was raised at generation 81 of 100.
N O 3 N ( m g / l ) = ( c 0 · A 560 · c 1 · A 560 c 2 · A 607 · c 3 · A 624 · c 4 · A 428 · c 5 · T 385 c 6 · A 607 · c 7 · A 645 · c 8 + c 9 )
  • c0 = 2.2576
  • c1 = 2.2576
  • c2 = −0.53193
  • c3 = 1.5017
  • c4 = 0.66989
  • c5 = 2.277
  • c6 = −0.53193
  • c7 = −0.50608
  • c8 = −0.010536
  • c9 = −0.12637
The model uses the following six wavelengths: 385, 428, 560, 607, 624 and 645 nm. The tests showed that NO3N has a higher correlation with wavelengths close to 600 nm, as shown in Table 9.
Figure S9 shows the results obtained for different water samples. Considering that the vertical scale in the figure is shown in 2 mg/L intervals, the discrepancies between the calculated values and the reference values are not significant.
Table A6 (Appendix B) shows 15 cases chosen at random, where the high degree of similarity between the data provided by the model and the values calculated in the wastewater treatment plants can be observed.

3.2.3. Decision Support System Proposal

To carry out an in-depth analysis of the different models calculated, the RMSE and Error Rate E(%) were calculated following Equations (1) and (2), respectively. The results are shown in Table 10.
As shown in Table 10, the COD error value provided by the MLR model (−0.096%) is lower than that obtained by the genetic algorithm (−2.374%). Nevertheless, we must take into account that a different number of samples was used; GA takes treated water into account; thus, although it is true that the MLR model showed better performance than that provided by the genetic algorithm, its use is limited to raw water.
Thus, if the samples which we seek to obtain the COD value for are only samples of raw water, then the MLR model presents the best results. However, if we want to carry out the study on both types of water (raw and treated), then the genetic algorithm must be used to calculate the COD. The genetic algorithm presented the best performance for the remaining parameters.
Looking into the contribution of the wavelengths to the statistical models, not all wavelengths have the same weight in the models, as shown in Table 4, Table 5, Table 6, Table 7, Table 8 and Table 9. In general terms, those wavelengths closer to violet have a greater weight, which is understandable considering that organic matter reacts more to UV than to other wavelengths. On the other hand, wavelengths close to IR also have a greater importance in the calculation of inorganic parameters such as TN.
In addition, although in general terms the models calculated by means of the genetic algorithms present a better performance, it is necessary to emphasize that these models make use of a greater number of variables (wavelengths) than the models of linear regression. This implies a greater time of analysis and an increase of the load of the system as well as the price of the equipment since more LEDs is necessary. Therefore, the choice of the model will depend on the application.
Table 11 shows the different wavelengths used for the calculation of the six pollutant parameters, where each cell shows the degree of importance of that wavelength in its calculation, accompanied by a color code, for greater clarity of the reader: green (high relevance), blue (medium-high relevance), orange (medium-low relevance) and red (low relevance). The coefficients shown were determined automatically by the SPSS software and gpLearn from the P-value of the variables introduced in the different models.
As shown in Table 11, the contaminating parameters related to organic matter, such as COD and BOD5, show a greater interaction with wavelengths close to violet and with a lower extent with wavelengths in the order of 500–550 nm (green).
On the other hand, the parameters more related to inorganic matter such as total nitrogen (TN) are more sensitive to wavelengths close to the infrared (IR); in fact, the TN is calculated using NIRS techniques (near infrareds) [82,83].
At this point, it is necessary to make a comparison between the wavelengths present in the MLR and GA models. As shown in Table 11, the wavelengths selected by both methodologies are similar, especially in the ultraviolet zone, where, for example, the wavelength of 380 nm is present for both COD and BOD5 in both types of models (MLR and GA). On the other hand, it is necessary to take into account that GA models are valid for both raw and treated water and therefore it is logical to think that the number of wavelengths used is greater than that required to model only raw water. Despite this, there are similarities between both types of models.

4. Conclusions

In this paper, we show different models that enable us to estimate the concentration of COD, BOD5, TSS, P, TN and NO3N from the absorbance and transmittance measures of the water samples, within the range of 380–700 nm. These models can be used to estimate the pollutant load of both the incoming water (raw water) and the outgoing water (treated water), without the need for any pre-treatment or chemicals.
The research focused on two types of models: multivariate linear regression and genetic algorithm. The tests carried out determined that the models calculated by means of genetic algorithms are able to obtain valid estimates principally for five of the pollutants under study (COD, BOD5, TSS, TN and NO3N), including both raw and treated waste water in the adjustments, with an error rate below 4% in all the models. In the case of the MLR models, their adequacy is limited to COD and TSS, while BOD5 presents a poor fit. In contrast to GA, the MLR models presented better error rates than those calculated by genetic algorithms, with an error rate of less than 0.5% for COD and TSS. However, MLR models are limited to raw water samples. The variability of wastewater samples makes it difficult for MLR models to find a single valid model for both influent (raw water) and effluent (treated) wastewater. However, models calculated by means of genetic algorithms have proven to be reliable enough to find common patterns among the different types of samples, in order to achieve a valid calculation model for all types of wastewater (raw and treated).
The current research also provides a clearer view of the effect that each of the UV–near visible and visible wavelengths (380–700 nm) have on the estimation of each of the polluting parameters. As shown in Table 11, the wavelengths having the greatest effect on the calculation are those corresponding to the UV–near visible (380–400 nm) and near-infrared (600–700 nm) zones, with a relevance (impact) of 17–20% in the model calculation, while the zone between 500 and 600 nm is the least relevant, with an impact of around 5%, albeit with some exceptions, such as TSS (around 10%).
COD, BOD5, TSS and P depend mainly on the UV zone for their calculation, representing (in the case of models calculated with the GA) around 52%, 40%, 70% and 40%, respectively. On the other hand, TN and NO3N depend mainly on the IR zone.
In this research work, a completely different approach was sought to what is followed by systems such as those described in [59,60,61,62], which base their operation on the analysis of the turbidity of wastewater samples, that is, on a turbidimeter. A turbidimeter analyzes the samples at a single wavelength (typically belonging to the infrared spectrum). In contrast, the system developed and described in this manuscript makes use of 81 different wavelengths. This allows a much more precise knowledge of the physical-chemical and bacteriological properties of the samples, since wavelengths close to UV are of great importance to know the behavior of organic matter, while wavelengths close to red (or infrared) enable analyzing the behavior of inorganic matter with high precision. Therefore, the use of multiple wavelengths makes it possible to obtain adequate estimates of the pollution load of wastewater.
This research can serve as a starting position for future continuous real-time monitoring of the whole sanitation system that includes the deployment of simpler, smaller and more cost-effective equipment for the study of the pollutant load in sewage networks, capable of obtaining valuable information from the spectrophotometry-based statistical models and providing early warning. This distribution of this equipment along the networks can be especially useful during rain episodes, when the pollution load of sanitation networks tends to rise, and represents a danger to the environment. Therefore, having rapid information on this type of parameters is essential for preventing and reducing environmental disasters.

Supplementary Materials

The following are available online at https://www.mdpi.com/1424-8220/20/19/5631/s1, Figure S1: Histogram of combined raw and treated water samples. (A) COD, (B) BOD5, (C) TSS, (D) P, (E) TN and (F) NO3N, Table S1: Basic characteristics of raw water data sets for MLR study, Figure S2: Comparison between BOD5 values measured by the wastewater treatment plant and the values calculated from spectrophotometric data by multivariate linear regression model, for waste water (raw water), Figure S3: Comparison between TSS values measured by the wastewater treatment plant and the values calculated from spectrophotometric data by multivariate linear regression model, for waste water (raw water), Figure S4: Scatter plot of the variables used in the MLR model for calculating COD with respect to: (A) Transmittance at 380 nm, (B) Transmittance at 521 nm, (C) Transmittance at 555 nm and (D) Transmittance at 580 nm, Figure S5: Scatter plot of the variables used in the MLR model for calculating BOD5 with respect to: (A) Transmittance at 555 nm, (B) Absorbance at 425 nm and (C) Absorbance at 515 nm, Figure S6: Scatter plot of the variables used in the MLR model for calculating TSS with respect to: (A) Transmittance at 380 nm, (B) Absorbance at 425 nm and (C) Absorbance at 655 nm, Figure S7: Comparison between P values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (9), Figure S8: Comparison between TN values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (10), Figure S9: Comparison between NO3N values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (11).

Author Contributions

Investigation, D.C.-P. and J.T.G.; Data curation, D.C.-P.; Formal analysis, D.C.-P., J.T.G., F.C.-C. and J.S.-M.; Funding acquisition, D.C.-P., J.T.G. and J.S.-M.; Methodology, D.C.-P., J.T.G., F.C.-C. and J.S.-M.; Software, D.C.-P. and F.C.-C.; Supervision, D.C.-P., J.T.G., F.C.-C. and J.S.-M.; Validation, J.T.G., F.C.-C. and J.S.-M.; and Writing—original draft, D.C.-P. and J.T.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Seneca Foundation of the Región de Murcia (Spain) and “Hidrogea, Gestión Integral de Aguas de Murcia S.A.”.

Acknowledgments

The authors wish to thank the financial support received from the Seneca Foundation of the Región de Murcia (Spain) through the program devoted to training novel researchers in areas of specific interest for the industry and with a high capacity to transfer the results of the research generated, entitled: “Subprograma Regional de Contratos de Formación de Personal Investigador en Universidades y OPIs” (Mod. B, Ref. 20320/FPI/17).

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Figure A1. Web platform for data storage. Details of a stored sample (Wastewater. Raw Water).
Figure A1. Web platform for data storage. Details of a stored sample (Wastewater. Raw Water).
Sensors 20 05631 g0a1

Appendix B

Table A1. Example cases for COD estimation.
Table A1. Example cases for COD estimation.
Abs. λ380 nmAbs. λ425 nmAbs. λ445 nmAbs. λ520 nmAbs. λ521 nmAbs. λ570 nmAbs. λ575 nmAbs. λ594 nmCOD
ReferenceEstimated
0.68490.61500.55840.42860.41900.36860.37120.35321072.0001019.642
0.65950.59250.50680.40890.39970.33870.34090.3317947.000989.649
0.14680.10290.09700.07120.06640.06460.06450.069354.00084.371
0.69480.60920.54780.42060.41120.35230.35480.34781042.0001143.886
0.65140.58520.54390.45050.44050.38540.38820.3758672.000608.425
0.22380.17760.15390.13100.12560.11380.11390.1141167.000114.573
0.70420.61470.56760.41480.40550.35540.35790.34561192.0001256.427
0.14380.11030.09730.07420.06930.07040.07020.072352.00048.711
0.72680.65680.61070.46910.45870.40330.40630.39141206.0001039.073
0.86570.77630.73500.56060.54810.45990.46380.44461412.0001352.363
0.14870.10880.09450.07530.07040.06740.06720.069953.00056.831
0.15560.11810.09920.07940.07450.08040.08040.084250.00046.730
0.13630.09490.08070.06390.05910.06280.06260.066333.00033.484
0.15040.10960.09170.07410.06930.07020.07010.066244.00033.788
0.15250.11590.09480.07700.07210.07350.07340.071756.00042.996
Table A2. Example cases for BOD5 estimation.
Table A2. Example cases for BOD5 estimation.
Trans. λ415 nmTrans. λ585 nmAbs. λ445 nmAbs. λ574 nmAbs. λ655 nmBOD5
ReferenceEstimated
0.766290.873220.101620.060020.055249.0006.420
0.244030.455560.553250.344260.27607460.000618.008
0.273230.485920.491080.318020.25519560.000546.023
0.220750.429560.589690.369590.29248720.000656.963
0.200250.388340.617100.430810.35095600.000581.177
0.758520.857320.098790.067320.060937.0007.909
0.309640.523750.451070.292010.23394580.000493.581
0.742030.847620.114730.075720.0735410.00015.819
0.285820.505670.469520.307870.23439500.000558.014
0.770970.870220.083420.067750.051897.0004.297
0.280260.481730.478560.322730.26617480.000495.409
0.767580.864840.091590.065330.062596.0005.035
0.747070.852660.099230.077170.0749910.00011.608
0.742250.853330.107530.074000.055207.00014.561
0.756610.866870.097440.068490.068766.0008.296
Table A3. Example cases for TSS estimation.
Table A3. Example cases for TSS estimation.
Trans. λ380 nmTrans. λ485 nmTrans. λ558 nmTrans. λ565 nmTrans. λ632 nmAbs. λ574 nmTSS
ReferenceEstimated
0.718050.852930.864360.856790.853850.0670714.00016.465
0.173210.317150.381690.376710.426950.41352556.000532.238
0.711760.858180.870890.863280.880860.0613110.00034.512
0.449540.607520.644430.638040.672290.19692196.000105.120
0.235550.379540.438100.432810.472630.35013280.000326.214
0.701130.835590.848090.840600.861020.0707714.00022.257
0.186720.328750.392320.387280.441350.39805516.000474.119
0.276330.442800.502790.497160.545840.29201304.000317.133
0.208260.360280.439380.434090.486460.34426516.000529.615
0.193140.337230.405940.400830.465340.36959516.000496.820
0.266500.422520.478330.472830.531020.30422324.000295.014
0.664670.805780.822540.815190.820970.0877223.00027.927
0.196690.334660.387860.382850.423780.39400348.000366.015
0.684310.850710.836580.829160.874370.086305.0006.355
0.725550.857060.862910.855350.867430.064146.0008.570
Table A4. Example cases for P estimation.
Table A4. Example cases for P estimation.
Trans. λ425 nmTrans. λ430 nmTrans. λ450 nmTrans. λ585 nmTrans. λ650 nmP
ReferenceEstimated
0.763480.788030.798070.845470.862870.4000.879
0.757750.778380.788470.868380.865152.6002.443
0.245370.265670.293880.431650.481038.2009.064
0.767570.793790.803620.859660.878700.7001.494
0.296210.331020.354100.505670.5424011.5009.028
0.252780.278210.303490.447760.493077.2009.070
0.795400.810320.794940.860410.865121.1000.103
0.763580.831640.794580.875310.865251.4001.136
0.303290.337450.361990.497130.5405110.0008.951
0.223780.249290.279530.440880.4764711.0009.106
0.178400.195340.222030.354990.3875410.8009.088
0.257010.286590.319360.447960.4873311.3009.057
0.753610.792870.797410.863150.861910.7001.743
0.296370.326940.358530.497600.556418.7009.008
0.173560.183910.214430.351220.415319.9009.050
Table A5. Example cases for TN estimation.
Table A5. Example cases for TN estimation.
Trans. λ500 nmTrans. λ510 nmTrans. λ557 nmTrans. λ585 nmTrans. λ640 nmTrans. λ655 nmTN
ReferenceEstimated
0.827570.803970.821130.855840.863750.8694025.00022.087
0.449550.458710.505390.523750.558270.5835273.00060.330
0.367690.382700.434920.447760.482370.5131366.00067.600
0.365310.374890.427880.455560.487420.5295858.00066.548
0.868720.841080.872940.868150.883650.8785015.40018.737
0.321280.322170.370640.395100.437040.4807265.00071.143
0.859050.837390.853680.849080.875660.8675217.20021.488
0.432820.439770.482900.497600.533490.5688768.00063.238
0.286150.293350.334060.360800.387410.4375792.00075.947
0.867670.840510.860050.879770.891050.8690225.00021.501
0.857700.829660.848100.857380.864800.8681225.00028.133
0.338330.344400.384700.410560.432000.4809766.00073.640
0.857270.823560.838820.853700.868600.8629517.80026.685
0.278230.274400.343220.344760.377270.4277368.00074.717
0.874070.841570.890420.852260.875650.8785017.10017.848
Table A6. Example cases for NO3N estimation.
Table A6. Example cases for NO3N estimation.
Trans. λ385 nmAbs. λ428 nmAbs. λ560 nmAbs. λ607 nmAbs. λ624 nmAbs. λ645 nmNO3N
ReferenceEstimated
0.74270.09390.08250.05780.05950.062112.00014.538
0.70510.09720.06310.05630.06340.055710.6009.169
0.73580.09810.05820.05400.05020.056211.10011.164
0.12330.82440.53450.49480.46400.46150.3000.085
0.72730.10790.07230.06850.07190.063110.6007.199
0.26770.46230.31420.28380.26790.25990.3000.703
0.26350.48700.31120.29080.27430.26730.4000.637
0.75000.09400.06780.06100.06360.056211.7009.151
0.72430.07380.06530.05270.06240.05806.3008.508
0.22790.55920.39870.36260.34480.33070.3000.388
0.25600.49100.34220.31390.30040.29170.3000.523
0.28240.46250.30370.27980.25730.24840.5000.790
0.73620.10000.06940.06210.06010.053812.20010.685
0.20620.56320.37060.33780.32530.31500.5000.393
0.17680.67450.42400.38510.35990.34980.3000.311

References

  1. Puertas, J.; Suárez, J.; Anta, J. Gestión de las Aguas Pluviales. Implicaciones en el Diseño de los Sistemas de Saneamiento y Drenaje Urbano. In Monografía M98; CEDEX: Madrid, Spain, 2008. [Google Scholar]
  2. Ward, S.; Butler, D. Compliance with the Urban Waste Water Treatment Directive: European Union City Responses in Relation to Combined Sewer Overflow Discharges; Thames Water: London, UK, 2009. [Google Scholar]
  3. Naves, J.; Anta, J.; Suárez, J.; Puertas, J. Hydraulic, wash-off and sediment transport experiments in a full-scale urban drainage physical model. Sci. Data 2020, 7, 1–13. [Google Scholar] [CrossRef] [PubMed]
  4. Anta, J.; Pena, E.; Suarez, J.; Cagiao, J. A BMP selection process based on the granulometry of runoff solids in a separate urban catchment. Water SA 2007, 32, 419–428. [Google Scholar] [CrossRef] [Green Version]
  5. Bourgeois, W.; Burgess, J.; Stuetz, R. On-line monitoring of wastewater quality: A review. J. Chem. Technol. Biotechnol. 2001, 76, 337–348. [Google Scholar] [CrossRef]
  6. Melendez-Pastor, I.; Almendro-Candel, M.B.; Pedreno, J.N.; Gómez, I.; Lillo, M.G.; Hernández, E.I. Monitoring Urban Wastewaters’ Characteristics by Visible and Short Wave Near-Infrared Spectroscopy. Water 2013, 5, 2026–2036. [Google Scholar] [CrossRef]
  7. Brzezińska, A.; Zawilski, M.; Sakson, G. Assessment of pollutant load emission from combined sewer overflows based on the online monitoring. Environ. Monit. Assess. 2016, 188, 1–10. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Chen, B.; Wu, H.; Li, S.F.Y. Development of variable pathlength UV–vis spectroscopy combined with partial-least-squares regression for wastewater chemical oxygen demand (COD) monitoring. Talanta 2014, 120, 325–330. [Google Scholar] [CrossRef] [PubMed]
  9. Gondal, M.A.; Hussain, T. Determination of poisonous metals in wastewater collected from paint manufacturing plant using laser-induced breakdown spectroscopy. Talanta 2017, 71, 73–80. [Google Scholar] [CrossRef]
  10. Ferree, M.; Shannon, R.D. Evaluation of a second derivative UV/visible spectroscopy technique for nitrate and total nitrogen analysis of wastewater samples. Water Res. 2001, 35, 327–332. [Google Scholar] [CrossRef]
  11. Qin, X.; Gao, F.; Chen, G. Wastewater quality monitoring system using sensor fusion and machine learning techniques. Water Res. 2012, 46, 1133–1144. [Google Scholar] [CrossRef]
  12. Lepot, M.; Torres, A.; Höfer, T.; Caradot, N.; Gruber, G.; Aubin, J.-B.; Bertrand-Krajewski, J.-L. Calibration of UV/Vis spectrophotometers: A review and comparison of different methods to estimate TSS and total and dissolved COD concentrations in sewers, WWTPs and rivers. Water Res. 2016, 101, 519–534. [Google Scholar] [CrossRef]
  13. Wolf, C.; Gaida, D.; Stuhlsatz, A.; Ludwig, T.; McLoone, S.F.; Bongards, M. Predicting organic acid concentration from UV/vis spectrometry measurements—A comparison of machine learning techniques. Trans. Inst. Meas. Control. 2011, 35, 5–15. [Google Scholar] [CrossRef] [Green Version]
  14. Drolc, A.; Vrtovšek, J. Nitrate and nitrite nitrogen determination in waste water using on-line UV spectrometric method. Bioresour. Technol. 2010, 101, 4228–4233. [Google Scholar] [CrossRef] [PubMed]
  15. Korshin, G.V.; Sgroi, M.; Ratnaweera, H. Spectroscopic surrogates for real time monitoring of water quality in wastewater treatment and water reuse. Curr. Opin. Environ. Sci. Heal. 2018, 2, 12–19. [Google Scholar] [CrossRef]
  16. Hoppe, H.; Messmann, S.; Giga, A.; Gruening, H. A real-time control strategy for separation of highly polluted storm water based on UV–Vis online measurements—From theory to operation. Water Sci. Technol. 2011, 63, 2287–2293. [Google Scholar] [CrossRef] [PubMed]
  17. Brito, R.S.; Pinheiro, H.M.; Ferreira, F.; Matos, J.S.; Lourenço, N.D. In situUV-Vis spectroscopy to estimate COD and TSS in wastewater drainage systems. Urban Water J. 2013, 11, 261–273. [Google Scholar] [CrossRef]
  18. Launay, M.A.; Dittmer, U.; Steinmetz, H. Organic micropollutants discharged by combined sewer overflows–characterisation of pollutant sources and stormwater-related processes. Water Res. 2016, 104, 82–92. [Google Scholar] [CrossRef]
  19. Mesquita, D.; Quintelas, C.; Amaral, A.L.P.D.; Ferreira, E.C. Monitoring biological wastewater treatment processes: Recent advances in spectroscopy applications. Rev. Environ. Sci. Bio/Technol. 2017, 16, 395–424. [Google Scholar] [CrossRef] [Green Version]
  20. Fleischmann, N.; Langergraber, G.; Weingartner, A.; Hofstaedter, F.; Nusch, S.; Maurer, P. On-Line and in-Situ Measurement of Turbidity and COD in Wastewater Using UV/VIS Spectrometry. Available online: https://www.s-can.at/ (accessed on 30 September 2020).
  21. Hochedlinger, M.; Hofbauer, P.; Wandl, G.; Meyer, S.; Rauch, W.; Kroiss, H.; Heindl, M. Online UV-Vis measurements–The basis for future pollution based sewer real time control in Linz. In Proceedings of the 2nd International IWA Conference on Sewer Operation and Maintenance, Vienna, Austria, 26–28 October 2006. [Google Scholar]
  22. Van den Broeke, J. On-line and in-situ UV/vis spectroscopy. AWE Int. 2007, 55–59. [Google Scholar]
  23. Gruber, G.; Bertrand-Krajewski, J.L.; Beneditis, J.D.; Hochedlinger, M.; Lettl, W. Practical aspects, experiences and strategies by using UV/VIS sensors for long-term sewer monitoring. Water Pract. Technol. 2006, 1. [Google Scholar] [CrossRef]
  24. Sarraguça, M.C.; Paulo, A.; Alves, M.M.; Dias, A.; Lopes, J.; Ferreira, E.C. Quantitative monitoring of an activated sludge reactor using on-line UV-visible and near-infrared spectroscopy. Anal. Bioanal. Chem. 2009, 395, 1159–1166. [Google Scholar] [CrossRef] [Green Version]
  25. Fogelman, S.; Zhao, H.; Blumenstein, M.; Zhang, S. Estimation of oxygen demand levels using UV–vis spectroscopy and artificial neural networks as an effective tool for real-time, wastewater treatment control. In Proceedings of the 1st Australian Young Water Professionals Conference, Sydney, Australia, 15–17 February 2006; pp. 15–17. [Google Scholar]
  26. Del Río Cambeses, H. Estudio de los Flujos de Contaminación Movilizados en Tiempo de Lluvia y Estrategias de Gestión en un Sistema de Saneamiento y Drenaje unitario de una Cuenca Urbana Densa de la España Húmeda. Ph.D. Thesis, Universidade da Coruña, A Coruña, Spain, 2011. [Google Scholar]
  27. García, J.T.; Espín-Leal, P.; Vigueras-Rodriguez, A.; Castillo, L.G.; Carrillo, J.M.; Martinez-Solano, P.; Nevado-Santos, S. Urban Runoff Characteristics in Combined Sewer Overflows (CSOs): Analysis of Storm Events in Southeastern Spain. Water 2017, 9, 303. [Google Scholar] [CrossRef]
  28. García, J.T.; Espín-Leal, P.; Vigueras-Rodriguez, A.; Carrillo, J.M.; Castillo, L.G. Synthetic Pollutograph by Prediction Indices: An Evaluation in Several Urban Sub-Catchments. Sustainability 2018, 10, 2634. [Google Scholar] [CrossRef] [Green Version]
  29. Carreres-Prieto, D.; García, J.T.; Cerdán-Cartagena, F.; Suardíaz, J. Spectroscopy Transmittance by LED Calibration. Sensors 2019, 19, 2951. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  30. Benavides, M.; Mailier, J.; Hantson, A.-L.; Muñoz, G.; Vargas, A.; Van Impe, J.F.; Wouwer, A.V. Design and Test of a Low-Cost RGB Sensor for Online Measurement of Microalgae Concentration within a Photo-Bioreactor. Sensors 2015, 15, 4766–4780. [Google Scholar] [CrossRef] [PubMed]
  31. Carreres-Prieto, D.; García, J.T.; Cerdán-Cartagena, F.; Suardíaz, J. Performing Calibration of Transmittance by Single RGB-LED within the Visible Spectrum. Sensors 2020, 20, 3492. [Google Scholar] [CrossRef] [PubMed]
  32. Bozhynov, V.; Soucek, P.; Barta, A.; Urbanova, P.; Bekkozhayeva, D. Visible Aquaphotomics Spectrophotometry for Aquaculture Systems. In Proceedings of the Agreement Technologies; Springer Science and Business Media LLC: Berlin, Germany, 2018; pp. 107–117. [Google Scholar]
  33. Wego, A. Accuracy simulation of an LED based spectrophotometer. Optik 2013, 124, 644–649. [Google Scholar] [CrossRef]
  34. Schnable, J.G.; Grochowski, P.J.; Wilhelm, L.; Harding, C.; Kiefer, M.; Orr, R.S. Portable LED-array VIS–NIR spectrophotometer/nephelometer. Field Anal. Chem. Technol. 1998, 2, 21–28. [Google Scholar] [CrossRef]
  35. Rocha, F.R.P.; Martelli, P.B.; Reis, B.F. Simultaneous in-line concentration for spectrophotometric determination of cations and anions. J. Braz. Chem. Soc. 2004, 15, 38–42. [Google Scholar] [CrossRef] [Green Version]
  36. Venugopalan, H. UVC LEDs enable cost-effective spectroscopic instruments. Laser Focus World 2015, 51, 81–85. [Google Scholar]
  37. De la Torre, C.; Muñiz, R.; Pérez, M.A. A new, low-cost, on-line RGB colorimeter for wine industry based on optical fibers. In Proceedings of the XIX IMEKO World Congress, Lisbon, Portugal, 6–11 September 2009; pp. 6–11. [Google Scholar]
  38. Sampedro, Ó.; Salgueiro, J.R. Turbidimeter and RGB sensor for remote measurements in an aquatic medium. Measurements 2015, 68, 128–134. [Google Scholar] [CrossRef]
  39. Lima, M.B.; Andrade, S.I.; Neta, M.S.S.; Barreto, I.S.; Almeida, L.F.; De Araújo, M.C.U. A Micro-Flow-Batch Analyzer using Webcam for Spectrophotometric Determination of Ortho -phosphate and Aluminium(III) in Tap Water. J. Braz. Chem. Soc. 2014, 25, 898–906. [Google Scholar] [CrossRef]
  40. Suzuki, Y.; Aruga, T.; Kuwahara, H.; Kitamura, M.; Kuwabara, T.; Kawakubo, S.; Iwatsuki, M. A simple and portable colorimeter using a red-green-blue light-emitting diode and its application to the on-site determination of nitrite and iron in river-water. Anal. Sci. 2004, 20, 975–977. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  41. SEOH Standard Cuvette Polystyrene Macro 3.5mL. UNSPSC Code: 41121813. Available online: https://uedata.amazon.com/SEOH-Standard-Cuvette-Polystyrene-Macro/dp/B00T5A64PQ (accessed on 30 September 2020).
  42. Field, A. Discovering Statistics Using IBM SPSS Statistics; Sage: Thousands Oaks, CA, USA, 2013. [Google Scholar]
  43. Osborne, J. Improving your data transformations: Applying the Box-Cox transformation. Pract. Assess. Res. Eval. 2010, 15, 12. [Google Scholar]
  44. Mundry, R.; Nunn, C.L. Stepwise Model Fitting and Statistical Inference: Turning Noise into Signal Pollution. Am. Nat. 2009, 173, 119–123. [Google Scholar] [CrossRef]
  45. Abadi, M.; Barham, P.; Chen, J.; Chen, Z.; Davis, A.; Dean, J.; Kudlur, M. Tensorflow: A system for large-scale machine learning. In Proceedings of the 12th {USENIX} Symposium on Operating Systems Design and Implementation ({OSDI} 16), Savannah, GA, USA, 2–4 November 2016; pp. 265–283. [Google Scholar]
  46. Oliphant, T.E. A Guide to NumPy. Available online: https://ecs.wgtn.ac.nz/foswiki/pub/Support/ManualPagesAndDocumentation/numpybook.pdf (accessed on 30 September 2020).
  47. Van Der Walt, S.J.; Colbert, S.C.; Varoquaux, G. The NumPy Array: A Structure for Efficient Numerical Computation. Comput. Sci. Eng. 2011, 13, 22–30. [Google Scholar] [CrossRef] [Green Version]
  48. Available online: https://gplearn.readthedocs.io/en/stable/ (accessed on 31 July 2020).
  49. Angeline, P.J. Subtree crossover: Building block engine or macromutation. Genet. Program. 1997, 97, 9–17. [Google Scholar]
  50. Poli, R. General Schema Theory for Genetic Programming with Subtree-Swapping Crossover. In Proceedings of the Computer Vision; Springer Science and Business Media LLC: Berlin, Germany, 2001; Volume 2038, pp. 143–159. [Google Scholar]
  51. Harik, G.; Lobo, F.G.; Goldberg, D. The compact genetic algorithm. IEEE Trans. Evol. Comput. 1999, 3, 287–297. [Google Scholar] [CrossRef] [Green Version]
  52. Augusto, D.A.; Barbosa, H.J.C. Symbolic regression via genetic programming. In Proceedings of the Sixth Brazilian Symposium on Neural Networks, Rio de Janeiro, Brazil, 25 November 2000; Volume 1, pp. 173–178. [Google Scholar]
  53. Vladislavleva, E. Model-Based Problem Solving through Symbolic Regression via Pareto Genetic Programming; CentER, Tilburg University: Tilburg, The Netherlands, 2008. [Google Scholar]
  54. Back, T. Optimal mutation rates in genetic search. In Proceedings of the Fifth International Conference on Genetic Algorithms, San Mateo, CA. USA, 17–21 July 1993. [Google Scholar]
  55. Hagan, M.T.; Demuth, H.B.; Beale, M. Neural Network Design. Available online: https://hagan.okstate.edu/NNDesign.pdf (accessed on 30 September 2020).
  56. Osowski, S. Sieci Neuronowe W Ujęciu Algorytmicznym; Wydawnictwa Naukowo-Techniczne: Warsaw, Poland, 1996. [Google Scholar]
  57. Coutsias, E.; Seok, C.; Dill, K.A. Using quaternions to calculate RMSD. J. Comput. Chem. 2004, 25, 1849–1857. [Google Scholar] [CrossRef]
  58. Available online: http://espectrofotometro.ingeniatic.com/ (accessed on 30 September 2020).
  59. Murphy, K.; Heery, B.; Sullivan, T.; Zhang, D.; Paludetti, L.; Lau, K.T.; Diamond, D.; Costa, E.; O’Connor, N.E.; Regan, F. A low-cost autonomous optical sensor for water quality monitoring. Talanta 2015, 132, 520–527. [Google Scholar] [CrossRef]
  60. Parra, L.; Rocher, J.; Escrivá, J.; Lloret, J. Design and development of low cost smart turbidity sensor for water quality monitoring in fish farms. Aquac. Eng. 2018, 81, 10–18. [Google Scholar] [CrossRef]
  61. Lambrou, T.P.; Anastasiou, C.C.; Panayiotou, C.G.; Polycarpou, M.M. A Low-Cost Sensor Network for Real-Time Monitoring and Contamination Detection in Drinking Water Distribution Systems. IEEE Sens. J. 2014, 14, 2765–2772. [Google Scholar] [CrossRef]
  62. Menon, G.S.; Ramesh, M.V.; Divya, P. A low cost wireless sensor network for water quality monitoring in natural water bodies. In Proceedings of the 2017 IEEE Global Humanitarian Technology Conference (GHTC), San Jose, CA, USA, 19–22 October 2017; pp. 1–8. [Google Scholar]
  63. S: Scan Devide. Available online: https://www.s-can.at/es (accessed on 22 September 2020).
  64. Von Sperling, M. Wastewater Characteristics, Treatment and Disposal. Water Intell. Online 2015, 6. [Google Scholar] [CrossRef]
  65. Eriksson, E.; Auffarth, K.; Henze, M.; Ledin, A. Characteristics of grey wastewater. Urban. Water 2002, 4, 85–104. [Google Scholar] [CrossRef]
  66. Bustillo-Lecompte, C.; Mehrvar, M. Slaughterhouse wastewater characteristics, treatment, and management in the meat processing industry: A review on trends and advances. J. Environ. Manag. 2015, 161, 287–302. [Google Scholar] [CrossRef]
  67. Eremektar, G.; Selçuk, H.; Meric, S. Investigation of the relation between COD fractions and the toxicity in a textile finishing industry wastewater: Effect of preozonation. Desalination 2007, 211, 314–320. [Google Scholar] [CrossRef]
  68. Güngör-Demirci, G.; Demirer, G.N. Effect of initial COD concentration, nutrient addition, temperature and microbial acclimation on anaerobic treatability of broiler and cattle manure. Bioresour. Technol. 2004, 93, 109–117. [Google Scholar] [CrossRef]
  69. Hwang, Y.; Lee, J.-K.; Lee, C.; Jung, Y.; Cheong, S.; Lee, C.; Ku, B.; Jang, S. Stability and thermal conductivity characteristics of nanofluids. Thermochim. Acta 2007, 455, 70–74. [Google Scholar] [CrossRef]
  70. Luo, J.; Ding, L. Influence of pH on treatment of dairy wastewater by nanofiltration using shear-enhanced filtration system. Desalination 2011, 278, 150–156. [Google Scholar] [CrossRef]
  71. Papadopoulos, A.; Parissopoulos, G.; Papadopoulos, F.; Karteris, A. Variations of COD/BOD5 ratio at different units of a wastewater stabilization pond pilot treatment facility. In Proceedings of the 7th International Conference on Environmental Science and Technology Ermoupolis, Ermoupolis, Greece, 3–6 September 2001; pp. 16–19. [Google Scholar]
  72. Golfinopoulos, S.K.; Arhonditsis, G.B. Multiple regression models: A methodology for evaluating trihalomethane concentrations in drinking water from raw water characteristics. Chemosphere 2002, 47, 1007–1018. [Google Scholar] [CrossRef]
  73. Cho, J.; Sung, K.S.; Ha, S.R. A river water quality management model for optimising regional wastewater treatment using a genetic algorithm. J. Environ. Manag. 2004, 73, 229–242. [Google Scholar] [CrossRef]
  74. Myers, R.H.; Myers, R.H. Classical and Modern Regression with Applications; Duxbury Press: Belmont, CA, USA, 1990; Volume 2. [Google Scholar]
  75. Zellner, A.; Chetty, V.K. Prediction and decision problems in regression models from the Bayesian point of view. J. Am. Stat. Assoc. 1965, 60, 608–616. [Google Scholar] [CrossRef]
  76. Bottenberg, R.A.; Ward, J.H. Applied multiple linear regression. PsycEXTRA Dataset 1963, 63. [Google Scholar]
  77. Zhang, M.; Tay, J.H.; Qian, Y.; Gu, X.S. Coke plant wastewater treatment by fixed biofilm system for COD and NH3-N removal. Water Res. 1998, 32, 519–527. [Google Scholar] [CrossRef]
  78. Brookman, S. Estimation of biochemical oxygen demand in slurry and effluents using ultra-violet spectrophotometry. Water Res. 1997, 31, 372–374. [Google Scholar] [CrossRef] [Green Version]
  79. Chen, H.; Shi, J.-L.; Yang, Y.; Li, Y.; Yan, D.-S.; Shi, C.-S. Violet-blue photoluminescent properties of mesoporous zirconia modified with phosphoric acid. Appl. Phys. Lett. 2002, 81, 2761–2763. [Google Scholar] [CrossRef]
  80. Fredin, L.; Nelander, B.; Ribbegård, G. Infrared spectrum of the water dimer in solid nitrogen. I. Assignment and force constant calculations. J. Chem. Phys. 1977, 66, 4065–4072. [Google Scholar] [CrossRef]
  81. Dalal, R.C.; Henry, R.J. Simultaneous Determination of Moisture, Organic Carbon, and Total Nitrogen by Near Infrared Reflectance Spectrophotometry. Soil Sci. Soc. Am. J. 1986, 50, 120–123. [Google Scholar] [CrossRef]
  82. Reeves, J.B., III; Van Kessel, J.S. Near-infrared spectroscopic determination of carbon, total nitrogen, and ammonium-N in dairy manures. J. Dairy Sci. 2000, 83, 1829–1836. [Google Scholar] [CrossRef]
  83. Shi, T.; Cui, L.; Wang, J.; Fei, T.; Chen, Y.; Wu, G. Comparison of multivariate methods for estimating soil total nitrogen with visible/near-infrared spectroscopy. Plant. Soil 2012, 366, 363–375. [Google Scholar] [CrossRef]
Figure 1. View of the developed LED spectrophotometry equipment: (a) schematic view of the assembly; and (b) equipment developed for spectrophotometric analysis.
Figure 1. View of the developed LED spectrophotometry equipment: (a) schematic view of the assembly; and (b) equipment developed for spectrophotometric analysis.
Sensors 20 05631 g001
Figure 2. Spectrophotometric data for wastewater sample (raw water).
Figure 2. Spectrophotometric data for wastewater sample (raw water).
Sensors 20 05631 g002
Figure 3. Spectrophotometric data and pollutant parameters for treated samples.
Figure 3. Spectrophotometric data and pollutant parameters for treated samples.
Sensors 20 05631 g003
Figure 4. Comparison between COD values measured by the wastewater treatment plant and the values calculated from spectrophotometric data by multivariate linear regression model, for waste water (raw water).
Figure 4. Comparison between COD values measured by the wastewater treatment plant and the values calculated from spectrophotometric data by multivariate linear regression model, for waste water (raw water).
Sensors 20 05631 g004
Figure 5. Comparison between COD values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (6).
Figure 5. Comparison between COD values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (6).
Sensors 20 05631 g005
Figure 6. Comparison between BOD5 values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (7).
Figure 6. Comparison between BOD5 values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (7).
Sensors 20 05631 g006
Figure 7. Comparison between TSS values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (8).
Figure 7. Comparison between TSS values measured by the wastewater treatment plant and the values calculated from spectrophotometric data, according to Equation (8).
Sensors 20 05631 g007
Table 1. Pollutant parameters supported by the equipment.
Table 1. Pollutant parameters supported by the equipment.
VariableDescriptionTest Standard/Procedure
DBO5Respirometric methodSM 5210 D
CODDichromate method with UV–VIS spectroscopyISO 6060:1989
TSSSettleable solidsSM 2540 F
NO3NDimethylphenol spectrometric methodISO 7890-1
TNPersulfate digestion with UV–VIS spectroscopySM 4500–NC
TPAscorbic Acid Method complemented with UV–VIS spectroscopySM 4500-P B
Table 2. Pollutant parameters for wastewater sample (raw water).
Table 2. Pollutant parameters for wastewater sample (raw water).
Polluting ParametersValue
COD763 mg/L
BOD5500 mg/L
TSS304 mg/L
Phosphorus (P)9.1 mg/L
Total Nitrogen (TN)74 mg/L
NO3N0.5 mg/L
PH7.59
Conductivity2770 µS/cm
Table 3. Pollutant parameters for wastewater sample (raw water).
Table 3. Pollutant parameters for wastewater sample (raw water).
Polluting ParametersValue
COD52 mg/L
BOD59 mg/L
TSS14 mg/L
Phosphorus (P)2.5 mg/L
Total Nitrogen (TN)16.6 mg/L
NO3N10.3 mg/L
PH7.56
Conductivity2580 µS/cm
Table 4. Impact indices of model variables genetic algorithm COD.
Table 4. Impact indices of model variables genetic algorithm COD.
VariableImpact
A380 nm17.021%
A425 nm17.652%
A445 nm17.691%
A520 nm5.670%
A521 nm5.417%
A570 nm5.067%
A575 nm4.966%
A594 nm17.015%
Table 5. Impact indices of model variables genetic algorithm BOD5.
Table 5. Impact indices of model variables genetic algorithm BOD5.
VariableImpact
T415 nm21.211%
A445 nm18.522%
A574 nm18.030%
T585 nm13.924%
A655 nm15.312%
Table 6. Impact indices of model variables genetic algorithm TSS.
Table 6. Impact indices of model variables genetic algorithm TSS.
VariableImpact
T380 nm34.059%
T485 nm34.975%
A574 nm0.018%
T558 nm11.166%
T565 nm10.600%
T632 nm1.552%
Table 7. Impact indices of model variables genetic algorithm P.
Table 7. Impact indices of model variables genetic algorithm P.
VariableImpact
T425 nm19.057%
T430 nm19.035%
T450 nm18.130%
T585 nm12.355%
T650 nm7.024%
Table 8. Impact indices of model variables genetic algorithm TN.
Table 8. Impact indices of model variables genetic algorithm TN.
VariableImpact
T500 nm7.254%
T510 nm6.639%
T557 nm19.502%
T585 nm9.426%
T640 nm18.765%
T655 nm19.714%
Table 9. Impact indices of model variables genetic algorithm NO3N.
Table 9. Impact indices of model variables genetic algorithm NO3N.
VariableImpact
T385nm8.257%
A428nm14.054%
A560nm16.613%
A607nm20.243%
A624nm11.210%
A645nm11.924%
Table 10. Root-mean-square deviation (RMSD) and index error (Er) models.
Table 10. Root-mean-square deviation (RMSD) and index error (Er) models.
ModelNumber SamplesParameterRMSD Er (%)
Multivariate Linear Regression
(Raw water only)
101COD95,910−0.096%
86BOD5134,372−5.540%
92TSS62,1970.295%
Genetic Algorithm
(Raw and treated water)
188COD137,048−2.374%
162BOD569,051−0.173%
172TSS67,1590.621%
175P2037−2.634%
175TN11,7830.147%
175NO3N2323−3.928%
Table 11. Summary of wavelength relevance in the statistical models to characterize pollutant parameters calculated through GA.
Table 11. Summary of wavelength relevance in the statistical models to characterize pollutant parameters calculated through GA.
Multivariate Linear RegressionGenetic Algorithms
CODBOD5TSSCODBOD5TSSPTNNO3N
380 nm32.834% 30.291%17.021% 34.059%
385 nm 8.257%
415 nm 21.211%
425 nm 26.488%29.334%17.652% 19.057%
428 nm 14.054%
430 nm 19.035%
445 nm 17.691%18.522%
450 nm 18.130%
485 nm 34.975%
500 nm 7.254%
510 nm 6.639%
515 nm 18.780%
520 nm 5.670%
521 nm14.794% 5.417%
555 nm14.207%12.411%
557 nm 19.502%
558 nm 11.166% 9.426%
560 nm 16.613%
565 nm 10.600%
570 nm 5.067%
574 nm 18.030%≈0%
575 nm 4.966%
580nm13.283%
585 nm 13.924% 12.355%
594 nm 17.015%
607 nm 20.243%
624 nm 11.210%
632 nm 1.552%
640 nm 18.765%
645 nm 11.924%
650 nm 7.024%
655 nm 15.312% 19.714%
656 nm 11.875%

Share and Cite

MDPI and ACS Style

Carreres-Prieto, D.; García, J.T.; Cerdán-Cartagena, F.; Suardiaz-Muro, J. Wastewater Quality Estimation through Spectrophotometry-Based Statistical Models. Sensors 2020, 20, 5631. https://doi.org/10.3390/s20195631

AMA Style

Carreres-Prieto D, García JT, Cerdán-Cartagena F, Suardiaz-Muro J. Wastewater Quality Estimation through Spectrophotometry-Based Statistical Models. Sensors. 2020; 20(19):5631. https://doi.org/10.3390/s20195631

Chicago/Turabian Style

Carreres-Prieto, Daniel, Juan T. García, Fernando Cerdán-Cartagena, and Juan Suardiaz-Muro. 2020. "Wastewater Quality Estimation through Spectrophotometry-Based Statistical Models" Sensors 20, no. 19: 5631. https://doi.org/10.3390/s20195631

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