Next Article in Journal
Bayesian Nonparametric Modeling for Predicting Dynamic Dependencies in Multiple Object Tracking
Next Article in Special Issue
The Use of Drone Photo Material to Classify the Purity of Photovoltaic Panels Based on Statistical Classifiers
Previous Article in Journal
On-Demand Charging Management Model and Its Optimization for Wireless Renewable Sensor Networks
Previous Article in Special Issue
Attention Autoencoder for Generative Latent Representational Learning in Anomaly Detection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multisensor Data Fusion for Localization of Pollution Sources in Wastewater Networks

by
Krystian Chachuła
*,
Tomasz Michał Słojewski
and
Robert Nowak
Faculty of Electronics and Information Technology, Warsaw University of Technology, 00-665 Warsaw, Poland
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(1), 387; https://doi.org/10.3390/s22010387
Submission received: 19 October 2021 / Revised: 22 December 2021 / Accepted: 30 December 2021 / Published: 5 January 2022

Abstract

:
Illegal discharges of pollutants into sewage networks are a growing problem in large European cities. Such events often require restarting wastewater treatment plants, which cost up to a hundred thousand Euros. A system for localization and quantification of pollutants in utility networks could discourage such behavior and indicate a culprit if it happens. We propose an enhanced algorithm for multisensor data fusion for the detection, localization, and quantification of pollutants in wastewater networks. The algorithm processes data from multiple heterogeneous sensors in real-time, producing current estimates of network state and alarms if one or many sensors detect pollutants. Our algorithm models the network as a directed acyclic graph, uses adaptive peak detection, estimates the amount of specific compounds, and tracks the pollutant using a Kalman filter. We performed numerical experiments for several real and artificial sewage networks, and measured the quality of discharge event reconstruction. We report the correctness and performance of our system. We also propose a method to assess the importance of specific sensor locations. The experiments show that the algorithm’s success rate is equal to sensor coverage of the network. Moreover, the median distance between nodes pointed out by the fusion algorithm and nodes where the discharge was introduced equals zero when more than half of the network nodes contain sensors. The system can process around 5000 measurements per second, using 1 MiB of memory per 4600 measurements plus a constant of 97 MiB, and it can process 20 tracks per second, using 1.3 MiB of memory per 100 tracks.

1. Introduction

Due to industrialization, society must take care of waste disposal and the efficient operation of sewage treatment plants. Breakdowns in these areas are a growing threat, so it is crucial to continuously monitor utility networks and react as soon as possible. It is achievable to design pollutant tracking systems that use a very simplified model of substance flow. An appropriate detection accuracy is obtained by fusing data from many sensors of different types. Sensor technology constantly improves and, due to developments in the Internet of Things (IoT) space, provided measurements are easier to access for processing than ever.
Researchers’ interest in exploring methods for the detection, localization, and quantification of pollutants in wastewater networks (WWNs) and water distribution systems (WDSs) has grown considerably in recent years, especially regarding sensor technology [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]. Questionable policies regarding waste disposal are prevalent in today’s industry [17,18]. This is why we see more and more incidents connected to WWNs [13,19,20,21].
The characteristics of WWNs and the volatility of pollutants make localization and quantification immensely challenging. The reasons for the difficulty of this task come from the randomness of the injection process involving the type of pollutants, the injection point, the injection amount, time, duration, etc. [22] Moreover, some physical properties of the wastewater are less predictable or more difficult to measure precisely than others.
The need for data fusion in this field is supported by the fact that a simple monitoring system where anomalies are detected independently for each sensor would be lacking at least four desirable features. The first one is marking discharges observed by multiple sensors as more significant than those detected by only a single sensor. The second is the quantification of pollutants by considering the sum of deviations in measurement series connected to a single discharge event. Another one would be the deduplication of alarms by clustering similar observations. The last one is discovering the flow path of the pollutant that leads to easier source localization. Data fusion has also proved to be a viable technique for knowledge discovery in other fields such as bearing fault identification [23].
We propose an enhanced data fusion algorithm for the detection, localization, and quantification of pollutants in WWNs. This article extends the system depicted in Chachuła et al. [24], where we proposed the preliminary and very limited version of the data fusion algorithm. The algorithm presented in Chachuła et al. [24] represents the sewage network as a directed tree. In this structure, there is one and only one path from any point of the sewage network to sink. Our new algorithm represents the sewage network by a directed acyclic graph (DAG), which corresponds to the structure of real WWNs. Therefore, we can now perform fusion in sewage networks presented in the literature.

Related Work

In the previous algorithm ([24]), pollutant quantification was based on a fixed per-quantity threshold. This assumption is not valid if we observe sensor calibration drift, or the water level in the network changes. Both of these phenomena occur in real sewage networks. In our new algorithm, we use adaptive peak detection.
We also improved our implementation. Even though the current algorithm is more complex than the previous one, we can process 5000 measurements and 20 tracks per second, which is 50 times faster than previously.
Presented improvements broaden possible use cases of the algorithm and bring it closer to being ready for deployment in real scenarios.
Buras and Solano Donado [25] used random forest classifiers to detect and identify pollutants in wastewater and the XGBoost algorithm for predicting the distance from the source to the sensor. However, the proposed models did not quantify the pollutants.
In 2021, Yan et al. [22] proposed an improved genetic algorithm for the pollution source localization in water supply networks. They formulated assumptions about the behavior of pollutants in water, which are also used in this article. Those assumptions were:
  • The pollutant does not react with other substances.
  • The pollutant gradually dilutes with the water flow.
  • The running speed of the pollutant is consistent with the flow velocity of the pipe segment.
  • Pollutants are injected into the network only through the nodes.
  • The probability of injection for all nodes is equal.
  • The sensors can monitor water properties in real-time.
The second assumption does not mean that we estimate the dilution of pollutants. We consider this phenomenon by considering the sum of deviations of samples from the background value in the measurement series. This way, we account for highly diluted targets causing low, long deviations and concentrated ones, high, short deviations.
The assumption about equal discharge probability in every node does not come without drawbacks. There are areas in networks of real cities, such as industrial districts or residential areas known for illegal activities, with higher probabilities of polluting discharges. However, this information may be difficult to access, as it is connected to law enforcement or simply nonexistent, as is the case in artificial networks used in simulations. This article considers a worst-case scenario, where such knowledge is unavailable, and assumes an identical probability of discharge in every node.
In 2013, Sidhu et al. [26] experimented with using microbial and chemical source tracking for the detection of viruses and chemical compounds in urban stormwater runoff. They state the benefits of monitoring the network for human enteric viruses and drugs, which include more reliable public health risk assessments.
In 2016, Yang et al. [27] focused on combating drug abuse by developing a novel sewage sensor for use in wastewater-based epidemiology. They demonstrated that this sensor could be used for the on-site real-time monitoring of wastewater by unskilled personnel.
Varon et al. [28] localized and quantified a large, persistent methane source using coarse and fine satellite instruments. They used a fusion strategy, where the coarse images were used for localization and fine images—for quantification.
Macas and Wu [29] introduced a framework based on an autoencoder for the detection of anomalies in water treatment systems.
In 2020, Montalvo-Cedillo et al. [30] highlighted the significance of combined sewer overflow events in the contamination of receiving bodies such as rivers. They analyzed multiple wastewater parameters to evaluate the behavior of three different sewage discharges into a river.
Jalal and Ezzedine [31] built and compared two models, a support vector machine and a decision tree, to detect anomalies in WDSs. Their evaluation was based on a real dataset retrieved from a water treatment station.
This article’s goal is to describe the improved multisensor data fusion framework, present the results of various evaluation methods, and interpret them to assess the algorithm’s applicability in real-world scenarios.

2. Methods

We represent the sewage network by a directed acyclic graph (DAG) G ( V , E ) . Edges e E represent wastewater pipes, and nodes v V represent buildings and junctions. The direction of edges corresponds with the direction of the water flow. In some nodes, there are sensors measuring different properties of wastewater. The sensors could be the same type (measure the same property) or different types. Measured properties of wastewater are referred to as entities. Introducing some amount of a pollutant (target) to a node is called a discharge event. Such an event could cause peaks in measurement series provided by sensors along the flow paths if the event refers to the compound that changes a property that is being measured by the sensor.
Edges have two variable attributes: o e , the time needed for the water to flow through the whole pipe, and  g e , which is the dispersion factor. The dispersion factor is calculated by dividing the expected peak height at the end of the pipe by the expected peak height at the start of the pipe.
The data fusion algorithm is a loop of six steps: resampling, peak detection, pollution quantification, downstream propagation, tracking, and event generation. See Figure 1. It processes measurements in real-time, and the steps presented in Figure 1 are repeated for successive, equally spaced points in time as dictated by the sampling period.
Our algorithm supports sensors located in different places and sampling at different rates. The algorithm’s first step (resampling) converts sensor output (measurements) into a unified discrete-time domain. This conversion is achieved either by mean aggregation (if there are several sensor samples in the single algorithm period) or linear interpolation (if a sensor samples slower than the algorithm period). This step’s details and mathematical formulas were presented in Chachuła et al. [24].
The peak detection algorithm classifies measurements into either peaks or background. This step filters sensor output (measurements), to reduce the amount of needed computation. We present the details of this step in Section 2.1.
In the pollution quantification step, measurements marked by peak detection as significant are analyzed further to approximate amounts of pollutants. This step transforms observations in the measurement domain (sensor, entity, time, value, uncertainty) into observations in the target domain (target, node, time, amount, confidence) called detections. Our method, that extends the approach presented in Chachuła et al. [24], is shown in detail in Section 2.3.
Downstream propagation approximates the amount of substance (pollutant) in every node, even if the node has no sensor. This step also smooths out the tracks, which are our estimation of the state of a pollutant flowing through the network. The tracking algorithm, uses the Kalman filter, which finds tracks’ state by clustering detections. Downstream propagation was explained in Chachuła et al. [24], and tracking is extended as presented in Section 2.2.
Event generation creates potential events based on tracks. It is the final step of the algorithm, and its primary purpose is to report only tracks with a large number of supporting (associated) detections. For such tracks, an event represents the discharge of a compound into a graph node. This step focuses the user on essential changes in the sewage network. Event generation is depicted in detail in Chachuła et al. [24].

2.1. Adaptive Peak Detection

The peak detection module classifies measurements into three classes: background, up peaks, down peaks. The background class contains measurements of value similar to other measurements from the same series. The up peak class is a set of consecutive measurements of value that stands out from the background in the positive direction and down peaks—in the negative direction.
The module’s task is to detect measurements that belong to peaks. Detected peaks are used to determine the time of discharge events, and the amount of substance discharged is calculated from the peak area. The implemented algorithm is a modification of an algorithm created by Palshikar [32]. We modified it to work with streams of measurements and to detect both up peaks and down peaks.
In our previous solution [24], we did not use adaptive peak detection. The pollutants were detected by comparing measured values to a fixed background level. If the deviation from the background was greater than a fixed threshold, target presence observations (detections) were created based on this measurement. Such an approach works only if the background level is constant and signal to noise ratio is very high. However, in real conditions, the background level varies with time, and currently available sensor technology produces measurements with high noise levels [1]. Using such fixed thresholds in real scenarios was difficult, as the characteristics of real measurements are complex. We created an adaptive peak detection module to enable the data fusion algorithm to produce correct results in real cases.
We denote the set of measurements belonging to a single series as M = { x 1 , x 2 , , x N } , where x i is a value measured at the discrete time i. The module works with streams of measurements. This means that, at the moment of analyzing a measurement from time j, we only know the values of the measurements M j = { x 1 , x 2 , , x j } . Palshikar ’s algorithm is based on assigning a peak score to each of the measurements. This score is the value of function S ( M j ) . In this algorithm, it is proposed that each point for which S ( M j ) θ is considered a peak, where θ is some predetermined or calculated threshold.
However, we are looking for both positive and negative peaks and only store a limited number of measurements from the past. The assumption that for S ( M j ) θ the point is part of up peak and for S ( M j ) θ it is part of a down peak, could in many cases cause detection of a false up peak after the occurrence of a true down peak or detection of a false down peak after the occurrence of true up peak. For this reason, we calculate two functions S + ( M j ) and S ( M j ) . The first one is the score of an up peak, and the second one is the score of a down peak. It may happen that at the same time, both S + ( M j ) θ + and S ( M j ) θ . In such a case, such a point could be classified as a component of both an up peak and a down peak.
To solve this problem, it is not enough to take the greater of | S + ( M j ) | and | S ( M j ) | . If such a solution was used, a similar problem would be as in the case of using one S ( M j ) function. Therefore, each of the measurements is given the attribute p 1 , 0 , 1 (Algorithm 1 lines 5–11).
p ( x j ) = 1 , if S ( M j ) θ and S + ( M j ) < S ( M j ) 1 , if S + ( M j ) θ + and S + ( M j ) S ( M j ) 0 , otherwise
If we divide the set of all measurements into subsets T l = x i , x i + 1 , , x i + m such that p ( x i ) = p ( x i + 1 ) = = p ( x i + m ) and at the same time p ( x i 1 ) p ( x i ) , p ( x i + m + 1 ) p ( x i ) . As the peak consists of two slopes, we merge two consecutive sets of points T l , T l + 1 such that t ( T l ) = { 1 , 1 } and t ( T l + 1 ) = { 1 , 1 } in such a way that each of the sets T l is linked to at most one other set.
So if the currently analyzed measurement x j belongs to T l and T l 1 has not been combined with T l 2 , then if r ( T l ) = 1 , and  r ( T l 1 ) = 1 , then the set T l 1 T l is classified a down peak, because there is a descending slope first and then a rising slope, and if r ( T l ) = 1 , r ( T l 1 ) = 1 , then the set T l 1 T l is classified as an up peak because it contains the rising slope first and then the descending slope. Function r ( T l ) is value of function p ( x i ) for each x i T l .
Algorithm 1: Peak detection.
Sensors 22 00387 i001
The value of the thresholds θ + and θ could be constant. However, we applied a solution in which they adapt to measurement values. Their values depend on the standard deviation of the function values S + ( M j ) and S ( M j ) . We used thresholds [32] adapted to the problem of detecting both up peaks and down peaks.
θ + = ( h · s + ) + m +
θ = ( h · s ) + m
s + is the standard deviation of function S + ( M j ) , and m is the mean of this function. Similarly, s and m are the standard deviation and the mean of function S ( M j ) . h is a user-specified positive constant that determines the sensitivity of detection. The smaller h is, the more sensitive the algorithm is.
Our solution works with stream measurements. We calculate the standard deviation and mean using only a limited number of past measurements. To calculate the standard deviation, we used the Welford algorithm [33], designed to calculate the approximate value of the standard deviation for data streams.
s n = s n 1 + n 1 n ( x n x ¯ n 1 ) 2
An important element of the entire algorithm is the peak score function. The function we use is the maximum difference between the value of the analyzed measurement [32] and the values of the previous k measurements, where k is a user-specified parameter of the detection algorithm.
S + ( M j ) = m a x x j x j 1 , x j x j 2 , , x j x j k
S ( M j ) = m a x x j 1 x j , x j 2 x j , , x j k x j
A low value of the parameter k favors the detection of peaks of short duration.

2.2. Tracking in DAGs

The aim of tracking is to follow the state of pollutants. When a pollutant is discharged into the network, it starts flowing in the direction of edges starting in the discharge node. During tracking, detections along the flow paths are clustered so that these caused by a single discharge event are part of a single track cluster.
We use the Kalman filter in the tracking algorithm. The Kalman filter is typically used in metric space, such as R 3 . Our algorithm does not use geographical positions of sensors and pollution because we represent sewage networks by DAGs. The average position of pollution used in tracking is a real number (one-dimensional position), defined as the distance from the start point of the track. We cannot use the distance to a sink node because there is no guarantee that a single sink exists in a DAG. Therefore we represent the target position as a pair of two values: the starting node and time offset. The starting node is the node where the track was created. The time offset is the sum of time offsets on the path between the starting node and the node where the target was last observed.
In our previous algorithm [24], when we only considered networks that are directed trees, we represented positions as a single number, the distance from the sink. The current solution allows representing all possible flow paths from the starting node. This is necessary in DAGs that can contain nodes with more than one outgoing edge. The Kalman filter state contains position and the first derivative of the position. The filter is two-dimensional and has improved the precision of track modeling.
First, let us focus on modeling a track as a linear dynamic system. We assume velocity d ˙ of the track is constant with the possibility of correction via measurements. The decision to model this velocity as a constant is supported by the fact that pollutants are observed only in network nodes. This results in short bursts of observations separated by long periods with no observations. The constant velocity with high observation noise covariance results in linear interpolation of the track’s position between nodes.
The position d changes according to the wastewater velocity. This relationship is presented in Equation (7).
d ˙ k + 1 = d ˙ k
d k + 1 = d k + d ˙ k
A general equation representing the state of a linear dynamic object without input or offsets but with transition and observation noise is presented in Equation (9). z k is the object’s output, or in this case, the position d of the track as mentioned above. Q and R are transition covariance and observation noise covariance, respectively.
x k + 1 = A x k + ϵ k + 1 1
z k = C x k + ϵ k 2
ϵ k + 1 1 N ( 0 , Q )
ϵ k 2 N ( 0 , R )
Let x k be the state of a track.
x k = d d ˙
Then Equation (7) can be rewritten as Equation (9) with the following transition matrix A (Equation (14)) and observation matrix C (Equation (15)). The observation matrix indicates that only d can be directly observed.
A = 1 1 0 1
C = 1 0
We propose that the state vector is extended by adding first-order derivatives to this vector (Equation (13)). The track’s state is not constant. Its position changes at a constant rate equal to the velocity of wastewater. Such a modification causes the filter to represent the state of tracks more accurately.

2.3. Better Amount Approximation with Flow Rate

The flow rate of wastewater has an impact on detected amounts of pollutants. Due to dispersion [25], in high flow rate conditions, the peaks are smaller and wider. This means that a larger part of the peaks is indistinguishable from noise, causing quantification error to increase. We wanted to take this effect into account when approximating amounts of detected targets. We introduced an additional dynamic property of the network’s nodes—attenuation. Attenuation c is a real number that indicates how much smaller detected amounts a ^ in this node are in comparison to the real expected amounts a. This relationship is presented in Equation (16).
a ^ = c · a ; c ( 0 , 1 ]
The equation can be rearranged to calculate actual amounts based on detected amounts like in Equation (17) This is used in the quantification step after applying the amount function [24].
a = a ^ c

3. Results

In order to evaluate our improved algorithm, we conducted a set of experiments. Those experiments were based on three different sewage networks. First one we called the diamond network (Figure 2a). It is a simple artificial DAG that we included to show scenarios occurring only in the DAG and not in the graphs, which are trees. In such networks, the single discharge event creates more than one pollutant (of the same type) that follows different paths. The second network is the city network (Figure 2b). It is a sewer network of an undisclosed sub-catchment area of a European city. The same network was used by Buras and Solano Donado in [25]. We included this network to compare our methods to those presented in their work and to provide a realistic simulation scenario by using a real network. The third network is the example network number 2 included with the EPANET software (Figure 2c). Please note we used a modified EPANET network in our previous work [24]. This network had to be simplified to be a tree by removing a small number of edges. Now, we use this network in its original form. See Appendix A for detailed renders of these networks.

3.1. Exponential Signal Generator

In numerical experiments based on simulated data, we use a collection of signal generators. A signal generator generates a single measurement series. A measurement series is a stream of measurements of a given entity in a given node. The signal generator stores information such as the peak value, area, delay, and internal state.
After analyzing measurement series from a real sewage network, we concluded that an exponential function could be a good approximation of a real signal. Similar approach was used in Yan et al. [22]. We provided an exponential signal generator that use function f ( k ) defined in Equation (18). The exponential peak is a result of a single discharge event.
f ( k ) = a × b k ; k = 0 , 1 , 2 , b ( 0 , 1 )
Based on the method presented in [24], the sum of deviations from the background value represents the amount of compound discharged. Considering the whole peak (as k ), we can calculate this sum as presented in Equation (19).
k = 0 | f ( k ) | = | a | 1 b
The b m i n (Equation (20)) is a value of b that guarantees the sum of deviations is at least A, assuming a fixed a. This means that b [ b m i n , 1 ) can be chosen arbitrarily to achieve the desired curvature.
b m i n = 1 | a | A
After choosing b, the generator needs a number of samples N, after which the desired sum A is achieved. Using Equation (21), we can calculate N as seen in Equation (22).
A = k = 0 N | f ( k ) | = | a | b N + 1 1 b 1
N = log b A a b 1 + 1 1

3.2. Success Rate

We measured success rate by running multiple random simulations with a variable number of sensors on every network and counting those, where the result matched the discharge node and compound. We performed 20,000 simulations using all three networks depicted in Figure 2a–c. The results are presented in Figure 3.
The success rate depends tightly on the number of sensors present in the network. We observed a one-to-one relationship between the network coverage and the success rate. This result corresponds with previous findings in Chachuła et al. [24], but this time we performed a lot more simulations to get more precise results.

3.3. Distance Error

To assess the accuracy of event localization, we measured the distance (in meters) between nodes pointed out by the fusion algorithm and nodes where the simulated discharge was introduced. The results for each network are presented in Figure 4.
Localization error is highly sensitive to network coverage. An important observation is that, regardless of the network, we achieved the median of zero error when sensors were present in more than half of the nodes. This is a significant improvement from the results presented in Buras and Solano Donado [25], where the median distance error in the city network ranged from 4 to 11 m and sensors were present in every node of the network.

3.4. Sensor Success Rate

We introduced a metric of the importance of specific sensor locations. The following plots were created by running multiple simulations with random sensor placement and random discharge nodes (we used uniform distribution here). Every node was assigned a number, which is a fraction of all simulations with a sensor in a given node, where event reconstruction was successful. The results for each network are presented in Figure 5.
For the diamond network (Figure 5a) 100 % success rate is achieved when a sensor is present in node n 4 (node labels are presented in Figure 2a) because all of the wastewater flows through this node. Sensor readings in nodes n 2 and n 3 are not influenced by discharges into node n 4 , as they are upstream. The consequence of this is that sensors in nodes n 2 and n 3 have around 90 % success rate. Sensors in node n 1 have lowest success rate equal to 84 % . The reason for this is that sensors in this location are able to detect discharges only in node n 1 .
In other networks we can see similar trends. The final sink–nodes are able to detect all of the discharges. The further upstream, the lower the success rate, because of the fact that sensors can only observe discharges that happen upstream from them. Looking at Figure 5a,b we can see irregularities, which are caused by the greater number of nodes requiring more random simulations to achieve smooth and clear results. An important remark is that in these two networks, sensor importance never dropped below 88 % and its dispersion is low. This result means that in real networks, decisions about sensor placement should rely on additional knowledge such as the probability of discharge in different nodes.

3.5. Sensor Distance Error

An additional sensor importance metric is the sensors’ share in the overall distance error. This was measured by computing the average non-zero distance between the actual discharge node and the reconstructed discharge node. The average was calculated for every sensor that was present in a given simulation. The results for each network are presented in Figure 6.
The maps of sensor importance and distance error highlight the preferred location of sensors. In reality, it is practical to deploy only a few sensors in the network. Extensive simulations can hint at important locations to aid in optimal sensor placement. Our simulations indicate that sensor placement is always a trade-off between success rate and distance error. Sensors placed far downstream have a large chance of detecting discharges, as they are more often on the flow path of the pollutants. Sensors placed further upstream minimize distance error with a cost of success rate.

3.6. Peak Detection

We ran the peak detection on a variety of measurement series. We tested the module’s operation on both real data (Figure 7) and simulated data (Figure 8, Figure 9 and Figure 10). Real measurements were taken by Micromole sensors [1], and simulated measurements were generated by the aforementioned exponential signal generator.
In Figure 8, we can see that the algorithm correctly classifies imperfect peaks with emerging outliers. Moreover, the module can cope with different peak heights (Figure 10a) and when both types of peaks are present in a single series of measurements, as is presented in Figure 10b.
The peak detection module adapts to the characteristics of the measurements. The sensitivity of the peak detection is lower when the variance of the measurements is greater. Moreover, we observed that the peak detector could not cope with outliers when they are in the initial phase of a peak. In this case, a single peak is treated as two separate peaks.
We developed the presented algorithm to work online and analyze current data from sensors. The algorithm represents the state of the sewage network for a given time point and produces the most probable events. Such assumption eliminates the possibility of analyzing the time series from sensors offline (using historical data) and then finding the events using optimization algorithms, e.g., by simulating many times the network states and comparing the simulation results with measured values ([22]).

3.7. Attenuation in Quantification

To assess how errors in attenuation data influence the pollutant amount error, we ran multiple random simulations with Gaussian disturbance to the attenuation attribute. Figure 11 depicts this relationship. We can observe that the greater the disturbance, the greater the error, which is expected. Looking at the scale of the error, we concluded that the accuracy of target amounts is very sensitive to errors in attenuation. However, the approximation of detected amounts is rough in the first place, as the behavior of compounds in wastewater is hard to model. For the purposes of this study, achieving quantification error within an order of magnitude is considered a success.

3.8. Multipath Tracking

The characteristics of directed acyclic graphs can cause an apparent doubling of events in certain cases. If the diamond network (Figure 2a) is considered, there are two paths of different lengths between nodes n1 and n4. The first path: n1n2n4, has length equal to 120 and the second path: n1n3n4 has length equal to 157. This means that if a discharge event happens in n1 at time k, then five peaks will be observed in the network: in n1 at t, in n2 at t + 60 , in n3 at t + 90 , in n4 at t + 120 and in n4 at t + 157 . An example of this behavior can be seen in Figure 12.
This event doubling can make tracking difficult if two events happen in succession. In such cases, choosing a correct clustering threshold is crucial. See Figure 13, where a threshold of 20 s was used.
In our opinion, working online and generating the most probable set of events using available information main advantage is allowing to react and alarm as soon as possible. However, there is a risk of false alarms. Moreover, the set of events can change when new information is available.
In the literature, the flow in sewage and water network is modeled by Poisson distribution [22]. Such distribution is achieved when we assume the single household uses the network as a rectangular pulse process with random time and intensity. In the real data available for as this is true, we also observe Poisson distribution in our systems; however, in our algorithm, we decide not to model the flow in the network. We just use measured data from sensors and we assume that the flow is provided by the sensors on an ongoing basis and is constant within the calculation cycle. This assumption simplifies the model. We consider this assumption as valid because the measuring cycle is short.

3.9. Resource Usage

The performance and resource usage were evaluated by running a simulation with a variable number of significant measurements and a constant number of tracks. These experiments show how quickly and efficiently the algorithm processes measurements. Tests were run on a fourth-generation Intel Core processor. In Figure 14a, we can see that, on average, the system can process around 5000 significant measurements per second with a constant component of 1 s. We also measured the maximum resident memory of the process (Figure 14b), which stabilizes at around 1 MiB per 4600 significant measurements plus a constant of 97 MiB.
We also repeated these experiments with a constant number of significant measurements and a variable number of tracks. In Figure 15, we presented the results. The relationship between the number of tracks and CPU time is linear. In this scenario, the CPU time required for processing additional 20 tracks is approximately 5 s. Memory requirements for additional tracks are approximately 1.3 MiB per 100 tracks.
Resource usage was significantly improved compared to the previous iteration of the algorithm in Chachuła et al. [24]. Adjusting implementation details caused the system to be able to process measurements 50 times faster. The memory requirements were previously not measured directly, but we consider the result of 1 MiB per 4600 significant measurements a success for a proof-of-concept system. The constant 97 MiB overhead is notable but practical compared to the memory available in modern systems. We calculated and then observed that the time and memory complexity of the proposed data fusion algorithm is linear with respect to the number of detections and tracks. However, memory complexity with respect to the number of tracks is problematic to observe, as each track introduces a very small memory overhead. At this scale, processes such as garbage collection play a significant role.

4. Discussion

Resampling introduces sampling error if measurements are not periodic or the period is different from the sampling period. We developed our algorithm to detect pollution in the sewage network, and according to domain experts, we should process the changes of measured values every minute. Our system calculates the sewage network state every second. Therefore, the resampling error is negligible. We assume that the period will be small enough to introduce a minimal error in real scenarios. Moreover, we used simulated data, and we assumed that the generated measurements are periodic, and the period is equal to the sampling period.
All data included in the measurement domain are provided by sensors. We do not use uncertainty in the current version of the algorithm. However, such information can be used in future work to calculate the detection confidence coefficient that we already use in the event generation step of the algorithm.
In our approach, we do not model pollutant spreading. We require a short list of all possible pollutants. In the quantification process, each pollutant is considered for every measurement. Finally, the best pollutant is reported. In recent years, especially for air pollutants, hierarchical methods that model spatio-temporal processes and measurement noise were popular [34,35]. We plan to apply such models in the future to make our results more accurate.
The success rate and distance error of specific sensors indicate that there is a trade-off between those two metrics when considering sensor placement. However, the correctness of the results still strongly depends on how many sensors are present in the network and their placement. Another limitation of the proposed solution is the reliance on high-quality data. Simulated measurements are the best-case scenario. Data from real sensors are of varying quality because of the sensor technology and the characteristics of the wastewater networks.
Further research should focus on evaluating the data fusion algorithm in real-world scenarios, which means running fusion using data from real sensors in live wastewater networks. This will require defining a procedure for choosing the best values of the parameters of the algorithm. Parallel processing techniques could be applied to the proposed solution in case current performance is not enough in large networks with many sensors. Investigation of the influence of sensor placement and discharge amount on the uncertainty of reconstructed events could improve the calculation of event confidence coefficients. Similarly, the uncertainty of measurements, as reported by sensors, could be considered when calculating these coefficients.

5. Conclusions

The proposed improvements to the data fusion algorithm significantly broadened its applicability. The new, adaptive peak detection algorithm can adapt to changing background values as presented in Section 3.6. It is a milestone for testing this system in real-world networks. Implementing tracking in DAGs poses a significant improvement from previous achievements as real-world networks no longer have to be modified to perform fusion in as shown in Section 3.8. Results in Section 3.7 suggest that accounting for flow rate by introducing the attenuation coefficient helps when detected pollutant amounts are consistently low because of a high flow rate. Unlike the previous iteration, these improvements make the proposed multisensor data fusion algorithm applicable in real-world scenarios.
Moreover, the development mentioned above did not negatively influence the correctness of the results. This was verified by measuring success rate the same way as in our previous study, using the same network, this time unmodified, in Section 3.2. We performed more simulations to clearly show the linear relationship between the number of sensors and the success rate. In order to evaluate the algorithm in more depth, additional metrics were calculated.
The applicability was not the only aspect of the algorithm that was improved. Simplifying the implementation caused it to be able to process measurements 50 times faster than the previous one as presented in Section 3.9. The measured processing speed and memory requirements show that such a system could run on a regular computer and monitor the network in real-time.

Author Contributions

All authors developed the concept and methodology, prepared manuscript and agreed to the published version. K.C. and T.M.S. developed software and performed numerical experiments, R.N. supervised their work and provided resources. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Priority Research Area Cyber&DS Research Center at Warsaw University of Technology under contract number 1820/18/2021 and the H2020 SYSTEM [2] project, which has received funding from the European Union’s Horizon 2020 research and innovation programme under Grant Agreement No. 787128 and Institute of Computer Science Warsaw University of Technology statutory research grant.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Restrictions apply to the availability of these data. Data were obtained from Steffen Krause and Christoph Wöllgens of the Universität der Bundeswehr München and are available from the authors with the permission of Universität der Bundeswehr München.

Acknowledgments

The manuscript was improved by the anonymous reviewers. We would also like to thank Norbert Niderla, Fernando Solano and other colleagues from SYSTEM for their valuable comments.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Appendix A. Detailed Renders of Networks Used in Experiments

Figure A1. Detailed render of the city network.
Figure A1. Detailed render of the city network.
Sensors 22 00387 g0a1
Figure A2. Detailed render of the EPANET network.
Figure A2. Detailed render of the EPANET network.
Sensors 22 00387 g0a2

References

  1. Micromole. Micromole—Sewage Monitoring System for Tracking Synthetic Drug Laboratories. Available online: http://www.micromole.eu (accessed on 17 October 2019).
  2. SYSTEM. H2020 SYSTEM—SYnergy of Integrated Sensors and Technologies for Urban Secured Environment. Fact Sheet Available at EC Website. Under Project ID 787128. Available online: https://cordis.europa.eu/project/rcn/220304/factsheet/en (accessed on 12 October 2021).
  3. De Vito, S.; Fattoruso, G.; Esposito, E.; Salvato, M.; Agresta, A.; Panico, M.; Leopardi, A.; Formisano, F.; Buonanno, A.; Veneri, P.D.; et al. A distributed sensor network for waste water management plant protection. In Convegno Nazionale Sensori; Springer: Cham, Switzerland, 2016; pp. 303–314. [Google Scholar]
  4. Lepot, M.; Makris, K.F.; Clemens, F.H. Detection and quantification of lateral, illicit connections and infiltration in sewers with Infra-Red camera: Conclusions after a wide experimental plan. Water Res. 2017, 122, 678–691. [Google Scholar] [CrossRef]
  5. Tan, F.H.S.; Park, J.R.; Jung, K.; Lee, J.S.; Kang, D.K. Cascade of one class classifiers for water level anomaly detection. Electronics 2020, 9, 1012. [Google Scholar] [CrossRef]
  6. Tashman, Z.; Gorder, C.; Parthasarathy, S.; Nasr-Azadani, M.M.; Webre, R. Anomaly detection system for water networks in northern ethiopia using bayesian inference. Sustainability 2020, 12, 2897. [Google Scholar] [CrossRef] [Green Version]
  7. Zhang, D.; Heery, B.; O’Neil, M.; Little, S.; O’Connor, N.E.; Regan, F. A low-cost smart sensor network for catchment monitoring. Sensors 2019, 19, 2278. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Perfido, D.; Messervey, T.; Zanotti, C.; Raciti, M.; Costa, A. Automated leak detection system for the improvement of water network management. In Proceedings of the Multidisciplinary Digital Publishing Institute Proceedings, Online, 15–30 November 2016; Volume 1, p. 28. [Google Scholar]
  9. Rojek, I.; Studzinski, J. Detection and localization of water leaks in water nets supported by an ICT system with artificial intelligence methods as a way forward for smart cities. Sustainability 2019, 11, 518. [Google Scholar] [CrossRef] [Green Version]
  10. Ji, H.W.; Yoo, S.S.; Lee, B.J.; Koo, D.D.; Kang, J.H. Measurement of wastewater discharge in sewer pipes using image analysis. Water 2020, 12, 1771. [Google Scholar] [CrossRef]
  11. Kuchmenko, T.A.; Lvova, L.B. A perspective on recent advances in piezoelectric chemical sensors for environmental monitoring and foodstuffs analysis. Chemosensors 2019, 7, 39. [Google Scholar] [CrossRef] [Green Version]
  12. Pisa, I.; Santín, I.; Vicario, J.L.; Morell, A.; Vilanova, R. ANN-based soft sensor to predict effluent violations in wastewater treatment plants. Sensors 2019, 19, 1280. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Emke, E.; Vughs, D.; Kolkman, A.; de Voogt, P. Wastewater-based epidemiology generated forensic information: Amphetamine synthesis waste and its impact on a small sewage treatment plant. Forensic Sci. Int. 2018, 286, e1–e7. [Google Scholar] [CrossRef]
  14. Ma, J.; Meng, F.; Zhou, Y.; Wang, Y.; Shi, P. Distributed water pollution source localization with mobile UV-visible spectrometer probes in wireless sensor networks. Sensors 2018, 18, 606. [Google Scholar] [CrossRef] [Green Version]
  15. Desmet, C.; Degiuli, A.; Ferrari, C.; Romolo, F.S.; Blum, L.; Marquette, C. Electrochemical sensor for explosives precursors’ detection in water. Challenges 2017, 8, 10. [Google Scholar] [CrossRef] [Green Version]
  16. Kumar, P.M.; Hong, C.S. Internet of things for secure surveillance for sewage wastewater treatment systems. Environ. Res. 2022, 203, 111899. [Google Scholar] [CrossRef]
  17. Hammond, P.; Suttie, M.; Lewis, V.T.; Smith, A.P.; Singer, A.C. Detection of untreated sewage discharges to watercourses using machine learning. NPJ Clean Water 2021, 4, 1–10. [Google Scholar] [CrossRef]
  18. Aguiar-Oliveira, M.d.L.; Campos, A.; R Matos, A.; Rigotto, C.; Sotero-Martins, A.; Teixeira, P.F.; Siqueira, M.M. Wastewater-Based Epidemiology (WBE) and Viral Detection in Polluted Surface Water: A Valuable Tool for COVID-19 Surveillance—A Brief Review. Int. J. Environ. Res. Public Health 2020, 17, 9251. [Google Scholar] [CrossRef] [PubMed]
  19. Nine Days, Ten Finds of Drug Waste. Available online: https://vaaju.com/netherlandseng/nine-days-ten-finds-of-drug-waste/ (accessed on 6 October 2021).
  20. Treatment Plant almost Failed after Illegal Waste Discharge. Available online: https://www.rnz.co.nz/news/regional/222633/treatment-plant-almost-failed-after-illegal-waste-discharge (accessed on 12 October 2021).
  21. Department of Social Communication Panstwowe Gospodarstwo Wodne Wody Polskie. Failure in the ‘Czajka’ Sewage Treatment Plant. Available online: https://www.apgw.gov.pl/en/news/show/96 (accessed on 5 November 2021).
  22. Yan, X.; Gong, J.; Wu, Q. Pollution source intelligent location algorithm in water quality sensor networks. Neural Comput. Appl. 2021, 33, 209–222. [Google Scholar] [CrossRef]
  23. Saucedo-Dorantes, J.J.; Arellano-Espitia, F.; Delgado-Prieto, M.; Osornio-Rios, R.A. Diagnosis Methodology Based on Deep Feature Learning for Fault Identification in Metallic, Hybrid and Ceramic Bearings. Sensors 2021, 21, 5832. [Google Scholar] [CrossRef] [PubMed]
  24. Chachuła, K.; Nowak, R.; Solano, F. Pollution Source Localization in Wastewater Networks. Sensors 2021, 21, 826. [Google Scholar] [CrossRef] [PubMed]
  25. Buras, M.P.; Solano Donado, F. Identifying and Estimating the Location of Sources of Industrial Pollution in the Sewage Network. Sensors 2021, 21, 3426. [Google Scholar] [CrossRef]
  26. Sidhu, J.; Ahmed, W.; Gernjak, W.; Aryal, R.; McCarthy, D.; Palmer, A.; Kolotelo, P.; Toze, S. Sewage pollution in urban stormwater runoff as evident from the widespread presence of multiple microbial and chemical source tracking markers. Sci. Total Environ. 2013, 463, 488–496. [Google Scholar] [CrossRef]
  27. Yang, Z.; Castrignanò, E.; Estrela, P.; Frost, C.G.; Kasprzyk-Hordern, B. Community sewage sensors towards evaluation of drug use trends: Detection of cocaine in wastewater with DNA-directed immobilization aptamer sensors. Sci. Rep. 2016, 6, 21024. [Google Scholar] [CrossRef] [Green Version]
  28. Varon, D.; McKeever, J.; Jervis, D.; Maasakkers, J.; Pandey, S.; Houweling, S.; Aben, I.; Scarpelli, T.; Jacob, D. Satellite discovery of anomalously large methane point sources from oil/gas production. Geophys. Res. Lett. 2019, 46, 13507–13516. [Google Scholar] [CrossRef] [Green Version]
  29. Macas, M.; Wu, C. An unsupervised framework for anomaly detection in a water treatment system. In Proceedings of the 2019 18th IEEE International Conference On Machine Learning And Applications (ICMLA), Boca Raton, FL, USA, 16–19 December 2019; pp. 1298–1305. [Google Scholar]
  30. Montalvo-Cedillo, C.; Jerves-Cobo, R.; Domínguez-Granda, L. Determination of pollution loads in spillways of the combined sewage network of the city of Cuenca, Ecuador. Water 2020, 12, 2540. [Google Scholar] [CrossRef]
  31. Jalal, D.; Ezzedine, T. Decision Tree and Support Vector Machine for Anomaly Detection in Water Distribution Networks. In Proceedings of the 2020 International Wireless Communications and Mobile Computing (IWCMC), Limassol, Cyprus, 15–19 June 2020; pp. 1320–1323. [Google Scholar]
  32. Palshikar, G.K. Simple Algorithms for Peak Detection in Time-Series. In Proceedings of the 1st IIMA International Conference on Advanced Data Analysis, Business Analytics and Intelligence, Ahmedabad, India, 6–7 June 2009. [Google Scholar]
  33. Welford, B.P. Note on a Method for Calculating Corrected Sums of Squares and Products. In Technometrics; American Statistical Association and American Society for Quality: Cheshire, UK, 1962; pp. 419–420. [Google Scholar]
  34. Blangiardo, M.; Pirani, M.; Kanapka, L.; Hansell, A.; Fuller, G. A hierarchical modelling approach to assess multi pollutant effects in time-series studies. PLoS ONE 2019, 14, e0212565. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  35. Li, L.; Wu, J.; Ghosh, J.K.; Ritz, B. Estimating spatiotemporal variability of ambient air pollutant concentrations with a hierarchical model. Atmos. Environ. 2013, 71, 54–63. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. The data fusion algorithm.
Figure 1. The data fusion algorithm.
Sensors 22 00387 g001
Figure 2. Networks used in experiments: (a) the diamond network, (b) the city network, (c) the EPANET network.
Figure 2. Networks used in experiments: (a) the diamond network, (b) the city network, (c) the EPANET network.
Sensors 22 00387 g002
Figure 3. The success rate depends on the network coverage. (a) diamond network; (b) city network; (c) EPANET network.
Figure 3. The success rate depends on the network coverage. (a) diamond network; (b) city network; (c) EPANET network.
Sensors 22 00387 g003
Figure 4. Distance error depends on the network coverage. (a) diamond network; (b) city network; (c) EPANET network.
Figure 4. Distance error depends on the network coverage. (a) diamond network; (b) city network; (c) EPANET network.
Sensors 22 00387 g004
Figure 5. The success rate of sensors. (a) diamond network; (b) city network; (c) EPANET network.
Figure 5. The success rate of sensors. (a) diamond network; (b) city network; (c) EPANET network.
Sensors 22 00387 g005
Figure 6. Sensors’ share in localization error. (a) diamond network; (b) city network; (c) EPANET network.
Figure 6. Sensors’ share in localization error. (a) diamond network; (b) city network; (c) EPANET network.
Sensors 22 00387 g006
Figure 7. The output of the peak detection algorithm for real measurements taken by Micromole sensors.
Figure 7. The output of the peak detection algorithm for real measurements taken by Micromole sensors.
Sensors 22 00387 g007
Figure 8. The resistance of the peak detector to the occurrence of outliers.
Figure 8. The resistance of the peak detector to the occurrence of outliers.
Sensors 22 00387 g008
Figure 9. Correctness of peak detection for a measurement series with large variance.
Figure 9. Correctness of peak detection for a measurement series with large variance.
Sensors 22 00387 g009
Figure 10. Detection of different types of peaks. (a) Different heights of up peaks; (b) Both up peaks and down peaks.
Figure 10. Detection of different types of peaks. (a) Different heights of up peaks; (b) Both up peaks and down peaks.
Sensors 22 00387 g010
Figure 11. Amount error versus attenuation disturbance.
Figure 11. Amount error versus attenuation disturbance.
Sensors 22 00387 g011
Figure 12. Doubling of signals. The target flows through two different paths of different lengths, thus producing five peaks in a 4-node network.
Figure 12. Doubling of signals. The target flows through two different paths of different lengths, thus producing five peaks in a 4-node network.
Sensors 22 00387 g012
Figure 13. Two discharge events are correctly separated by the data fusion algorithm.
Figure 13. Two discharge events are correctly separated by the data fusion algorithm.
Sensors 22 00387 g013
Figure 14. CPU time and memory usage depend on detection count.
Figure 14. CPU time and memory usage depend on detection count.
Sensors 22 00387 g014
Figure 15. CPU time and memory usage depend on track count.
Figure 15. CPU time and memory usage depend on track count.
Sensors 22 00387 g015
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chachuła, K.; Słojewski, T.M.; Nowak, R. Multisensor Data Fusion for Localization of Pollution Sources in Wastewater Networks. Sensors 2022, 22, 387. https://doi.org/10.3390/s22010387

AMA Style

Chachuła K, Słojewski TM, Nowak R. Multisensor Data Fusion for Localization of Pollution Sources in Wastewater Networks. Sensors. 2022; 22(1):387. https://doi.org/10.3390/s22010387

Chicago/Turabian Style

Chachuła, Krystian, Tomasz Michał Słojewski, and Robert Nowak. 2022. "Multisensor Data Fusion for Localization of Pollution Sources in Wastewater Networks" Sensors 22, no. 1: 387. https://doi.org/10.3390/s22010387

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